PageSourceSearch

https://sourceworx.co.za/assets/index-Dm1Idngw.js

js sourceworx.co.za collected 2026-10-07 22:59:32 UTC 2,552,148 bytes, 1,683 lines download raw bytes

vendor: 4,094 bytes, lines 1-9
1var Wae=Object.defineProperty;var _L=e=>{throw TypeError(e)};var Kae=(e,t,n)=>t in e?Wae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qt=(e,t,n)=>Kae(e,typeof t!="symbol"?t+"":t,n),E5=(e,t,n)=>t.has(e)||_L("Cannot "+n);var We=(e,t,n)=>(E5(e,t,"read from private field"),n?n.call(e):t.get(e)),Pn=(e,t,n)=>t.has(e)?_L("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),cn=(e,t,n,r)=>(E5(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ra=(e,t,n)=>(E5(e,t,"access private method"),n);var nw=(e,t,n,r)=>({set _(i){cn(e,t,i,n)},get _(){return We(e,t,r)}});function Gae(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var rw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var N5={exports:{}},by={},T5={exports:{}},Bn={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its 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 IL;function Yae(){if(IL)return Bn;IL=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),A=Symbol.iterator;function h(X){return X===null||typeof X!="object"?null:(X=A&&X[A]||X["@@iterator"],typeof X=="function"?X:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,g={};function y(X,Q,R){this.props=X,this.context=Q,this.refs=g,this.updater=R||m}y.prototype.isReactComponent={},y.prototype.setState=function(X,Q){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,Q,"setState")},y.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function v(){}v.prototype=y.prototype;function x(X,Q,R){this.props=X,this.context=Q,this.refs=g,this.updater=R||m}var B=x.prototype=new v;B.constructor=x,b(B,y.prototype),B.isPureReactComponent=!0;var C=Array.isArray,E=Object.prototype.hasOwnProperty,T={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function O(X,Q,R){var re,ce={},le=null,he=null;if(Q!=null)for(re in Q.ref!==void 0&&(he=Q.ref),Q.key!==void 0&&(le=""+Q.key),Q)E.call(Q,re)&&!j.hasOwnProperty(re)&&(ce[re]=Q[re]);var ye=arguments.length-2;if(ye===1)ce.children=R;else if(1<ye){for(var Ae=Array(ye),be=0;be<ye;be++)Ae[be]=arguments[be+2];ce.children=Ae}if(X&&X.defaultProps)for(re in ye=X.defaultProps,ye)ce[re]===void 0&&(ce[re]=ye[re]);return{$$typeof:e,type:X,key:le,ref:he,props:ce,_owner:T.current}}
vendor: 10,497 bytes, lines 9-33
9function L(X,Q){return{$$typeof:e,type:X.type,key:Q,ref:X.ref,props:X.props,_owner:X._owner}}function z(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function F(X){var Q={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(R){return Q[R]})}var M=/\/+/g;function V(X,Q){return typeof X=="object"&&X!==null&&X.key!=null?F(""+X.key):Q.toString(36)}function q(X,Q,R,re,ce){var le=typeof X;(le==="undefined"||le==="boolean")&&(X=null);var he=!1;if(X===null)he=!0;else switch(le){case"string":case"number":he=!0;break;case"object":switch(X.$$typeof){case e:case t:he=!0}}if(he)return he=X,ce=ce(he),X=re===""?"."+V(he,0):re,C(ce)?(R="",X!=null&&(R=X.replace(M,"$&/")+"/"),q(ce,Q,R,"",function(be){return be})):ce!=null&&(z(ce)&&(ce=L(ce,R+(!ce.key||he&&he.key===ce.key?"":(""+ce.key).replace(M,"$&/")+"/")+X)),Q.push(ce)),1;if(he=0,re=re===""?".":re+":",C(X))for(var ye=0;ye<X.length;ye++){le=X[ye];var Ae=re+V(le,ye);he+=q(le,Q,R,Ae,ce)}else if(Ae=h(X),typeof Ae=="function")for(X=Ae.call(X),ye=0;!(le=X.next()).done;)le=le.value,Ae=re+V(le,ye++),he+=q(le,Q,R,Ae,ce);else if(le==="object")throw Q=String(X),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.");return he}function W(X,Q,R){if(X==null)return X;var re=[],ce=0;return q(X,re,"","",function(le){return Q.call(R,le,ce++)}),re}function ee(X){if(X._status===-1){var Q=X._result;Q=Q(),Q.then(function(R){(X._status===0||X._status===-1)&&(X._status=1,X._result=R)},function(R){(X._status===0||X._status===-1)&&(X._status=2,X._result=R)}),X._status===-1&&(X._status=0,X._result=Q)}if(X._status===1)return X._result.default;throw X._result}var ne={current:null},K={transition:null},oe={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:K,ReactCurrentOwner:T};function $(){throw Error("act(...) is not supported in production builds of React.")}return Bn.Children={map:W,forEach:function(X,Q,R){W(X,function(){Q.apply(this,arguments)},R)},count:function(X){var Q=0;return W(X,function(){Q++}),Q},toArray:function(X){return W(X,function(Q){return Q})||[]},only:function(X){if(!z(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},Bn.Component=y,Bn.Fragment=n,Bn.Profiler=i,Bn.PureComponent=x,Bn.StrictMode=r,Bn.Suspense=l,Bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,Bn.act=$,Bn.cloneElement=function(X,Q,R){if(X==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+X+".");var re=b({},X.props),ce=X.key,le=X.ref,he=X._owner;if(Q!=null){if(Q.ref!==void 0&&(le=Q.ref,he=T.current),Q.key!==void 0&&(ce=""+Q.key),X.type&&X.type.defaultProps)var ye=X.type.defaultProps;for(Ae in Q)E.call(Q,Ae)&&!j.hasOwnProperty(Ae)&&(re[Ae]=Q[Ae]===void 0&&ye!==void 0?ye[Ae]:Q[Ae])}var Ae=arguments.length-2;if(Ae===1)re.children=R;else if(1<Ae){ye=Array(Ae);for(var be=0;be<Ae;be++)ye[be]=arguments[be+2];re.children=ye}return{$$typeof:e,type:X.type,key:ce,ref:le,props:re,_owner:he}},Bn.createContext=function(X){return X={$$typeof:o,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},X.Provider={$$typeof:a,_context:X},X.Consumer=X},Bn.createElement=O,Bn.createFactory=function(X){var Q=O.bind(null,X);return Q.type=X,Q},Bn.createRef=function(){return{current:null}},Bn.forwardRef=function(X){return{$$typeof:s,render:X}},Bn.isValidElement=z,Bn.lazy=function(X){return{$$typeof:d,_payload:{_status:-1,_result:X},_init:ee}},Bn.memo=function(X,Q){return{$$typeof:c,type:X,compare:Q===void 0?null:Q}},Bn.startTransition=function(X){var Q=K.transition;K.transition={};try{X()}finally{K.transition=Q}},Bn.unstable_act=$,Bn.useCallback=function(X,Q){return ne.current.useCallback(X,Q)},Bn.useContext=function(X){return ne.current.useContext(X)},Bn.useDebugValue=function(){},Bn.useDeferredValue=function(X){return ne.current.useDeferredValue(X)},Bn.useEffect=function(X,Q){return ne.current.useEffect(X,Q)},Bn.useId=function(){return ne.current.useId()},Bn.useImperativeHandle=function(X,Q,R){return ne.current.useImperativeHandle(X,Q,R)},Bn.useInsertionEffect=function(X,Q){return ne.current.useInsertionEffect(X,Q)},Bn.useLayoutEffect=function(X,Q){return ne.current.useLayoutEffect(X,Q)},Bn.useMemo=function(X,Q){return ne.current.useMemo(X,Q)},Bn.useReducer=function(X,Q,R){return ne.current.useReducer(X,Q,R)},Bn.useRef=function(X){return ne.current.useRef(X)},Bn.useState=function(X){return ne.current.useState(X)},Bn.useSyncExternalStore=function(X,Q,R){return ne.current.useSyncExternalStore(X,Q,R)},Bn.useTransition=function(){return ne.current.useTransition()},Bn.version="18.3.1",Bn}var PL;function V2(){return PL||(PL=1,T5.exports=Yae()),T5.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its 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 jL;function Xae(){if(jL)return by;jL=1;var e=V2(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,c){var d,A={},h=null,m=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(m=l.ref);for(d in l)r.call(l,d)&&!a.hasOwnProperty(d)&&(A[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)A[d]===void 0&&(A[d]=l[d]);return{$$typeof:t,type:s,key:h,ref:m,props:A,_owner:i.current}}return by.Fragment=n,by.jsx=o,by.jsxs=o,by}var OL;function Jae(){return OL||(OL=1,N5.exports=Xae()),N5.exports}var u=Jae(),_=V2();const me=nr(_),W2=Gae({__proto__:null,default:me},[_]);var iw={},_5={exports:{}},Oo={},I5={exports:{}},P5={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its 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 FL;function Zae(){return FL||(FL=1,(function(e){function t(K,oe){var $=K.length;K.push(oe);e:for(;0<$;){var X=$-1>>>1,Q=K[X];if(0<i(Q,oe))K[X]=oe,K[$]=Q,$=X;else break e}}function n(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var oe=K[0],$=K.pop();if($!==oe){K[0]=$;e:for(var X=0,Q=K.length,R=Q>>>1;X<R;){var re=2*(X+1)-1,ce=K[re],le=re+1,he=K[le];if(0>i(ce,$))le<Q&&0>i(he,ce)?(K[X]=he,K[le]=$,X=le):(K[X]=ce,K[re]=$,X=re);else if(le<Q&&0>i(he,$))K[X]=he,K[le]=$,X=le;else break e}}return oe}function i(K,oe){var $=K.sortIndex-oe.sortIndex;return $!==0?$:K.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],d=1,A=null,h=3,m=!1,b=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(K){for(var oe=n(c);oe!==null;){if(oe.callback===null)r(c);else if(oe.startTime<=K)r(c),oe.sortIndex=oe.expirationTime,t(l,oe);else break;oe=n(c)}}function C(K){if(g=!1,B(K),!b)if(n(l)!==null)b=!0,ee(E);else{var oe=n(c);oe!==null&&ne(C,oe.startTime-K)}}function E(K,oe){b=!1,g&&(g=!1,v(O),O=-1),m=!0;var $=h;try{for(B(oe),A=n(l);A!==null&&(!(A.expirationTime>oe)||K&&!F());){var X=A.callback;if(typeof X=="function"){A.callback=null,h=A.priorityLevel;var Q=X(A.expirationTime<=oe);oe=e.unstable_now(),typeof Q=="function"?A.callback=Q:A===n(l)&&r(l),B(oe)}else r(l);A=n(l)}if(A!==null)var R=!0;else{var re=n(c);re!==null&&ne(C,re.startTime-oe),R=!1}return R}finally{A=null,h=$,m=!1}}var T=!1,j=null,O=-1,L=5,z=-1;function F(){return!(e.unstable_now()-z<L)}function M(){if(j!==null){var K=e.unstable_now();z=K;var oe=!0;try{oe=j(!0,K)}finally{oe?V():(T=!1,j=null)}}else T=!1}var V;if(typeof x=="function")V=function(){x(M)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,W=q.port2;q.port1.onmessage=M,V=function(){W.postMessage(null)}}else V=function(){y(M,0)};function ee(K){j=K,T||(T=!0,V())}function ne(K,oe){O=y(function(){K(e.unstable_now())},oe)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_continueExecution=function(){b||m||(b=!0,ee(E))},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(K){switch(h){case 1:case 2:case 3:var oe=3;break;default:oe=h}var $=h;h=oe;try{return K()}finally{h=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,oe){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var $=h;h=K;try{return oe()}finally{h=$}},e.unstable_scheduleCallback=function(K,oe,$){var X=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?X+$:X):$=X,K){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=$+Q,K={id:d++,callback:oe,priorityLevel:K,startTime:$,expirationTime:Q,sortIndex:-1},$>X?(K.sortIndex=$,t(c,K),n(l)===null&&K===n(c)&&(g?(v(O),O=-1):g=!0,ne(C,$-X))):(K.sortIndex=Q,t(l,K),b||m||(b=!0,ee(E))),K},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(K){var oe=h;return function(){var $=h;h=oe;try{return K.apply(this,arguments)}finally{h=$}}}})(P5)),P5}var LL;function eoe(){return LL||(LL=1,I5.exports=Zae()),I5.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its 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 DL;function toe(){if(DL)return Oo;DL=1;var e=V2(),t=eoe();function n(f){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+f,
vendor: 49,930 bytes, lines 33-38
33w=1;w<arguments.length;w++)p+="&args[]="+encodeURIComponent(arguments[w]);return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(f,p){o(f,p),o(f+"Capture",p)}function o(f,p){for(i[f]=p,f=0;f<p.length;f++)r.add(p[f])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,d={},A={};function h(f){return l.call(A,f)?!0:l.call(d,f)?!1:c.test(f)?A[f]=!0:(d[f]=!0,!1)}function m(f,p,w,k){if(w!==null&&w.type===0)return!1;switch(typeof p){case"function":case"symbol":return!0;case"boolean":return k?!1:w!==null?!w.acceptsBooleans:(f=f.toLowerCase().slice(0,5),f!=="data-"&&f!=="aria-");default:return!1}}function b(f,p,w,k){if(p===null||typeof p>"u"||m(f,p,w,k))return!0;if(k)return!1;if(w!==null)switch(w.type){case 3:return!p;case 4:return p===!1;case 5:return isNaN(p);case 6:return isNaN(p)||1>p}return!1}function g(f,p,w,k,P,U,J){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=k,this.attributeNamespace=P,this.mustUseProperty=w,this.propertyName=f,this.type=p,this.sanitizeURL=U,this.removeEmptyString=J}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(f){y[f]=new g(f,0,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var p=f[0];y[p]=new g(p,1,!1,f[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){y[f]=new g(f,2,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){y[f]=new g(f,2,!1,f,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(f){y[f]=new g(f,3,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){y[f]=new g(f,3,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){y[f]=new g(f,4,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){y[f]=new g(f,6,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){y[f]=new g(f,5,!1,f.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function x(f){return f[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(f){var p=f.replace(v,x);y[p]=new g(p,1,!1,f,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(f){var p=f.replace(v,x);y[p]=new g(p,1,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var p=f.replace(v,x);y[p]=new g(p,1,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){y[f]=new g(f,1,!1,f.toLowerCase(),null,!1,!1)}),y.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){y[f]=new g(f,1,!1,f.toLowerCase(),null,!0,!0)});function B(f,p,w,k){var P=y.hasOwnProperty(p)?y[p]:null;(P!==null?P.type!==0:k||!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(b(p,w,P,k)&&(w=null),k||P===null?h(p)&&(w===null?f.removeAttribute(p):f.setAttribute(p,""+w)):P.mustUseProperty?f[P.propertyName]=w===null?P.type===3?!1:"":w:(p=P.attributeName,k=P.attributeNamespace,w===null?f.removeAttribute(p):(P=P.type,w=P===3||P===4&&w===!0?"":""+w,k?f.setAttributeNS(k,p,w):f.setAttribute(p,w))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),T=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),F=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),K=Symbol.iterator;function oe(f){return f===null||typeof f!="object"?null:(f=K&&f[K]||f["@@iterator"],typeof f=="function"?f:null)}var $=Object.assign,X;function Q(f){if(X===void 0)try{throw Error()}catch(w){var p=w.stack.trim().match(/\n( *(at )?)/);X=p&&p[1]||""}return`
34`+X+f}var R=!1;function re(f,p){if(!f||R)return"";R=!0;var w=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(p)if(p=function(){throw Error()},Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(De){var k=De}Reflect.construct(f,[],p)}else{try{p.call()}catch(De){k=De}f.call(p.prototype)}else{try{throw Error()}catch(De){k=De}f()}}catch(De){if(De&&k&&typeof De.stack=="string"){for(var P=De.stack.split(`
35`),U=k.stack.split(`
36`),J=P.length-1,pe=U.length-1;1<=J&&0<=pe&&P[J]!==U[pe];)pe--;for(;1<=J&&0<=pe;J--,pe--)if(P[J]!==U[pe]){if(J!==1||pe!==1)do if(J--,pe--,0>pe||P[J]!==U[pe]){var Se=`
37`+P[J].replace(" at new "," at ");return f.displayName&&Se.includes("<anonymous>")&&(Se=Se.replace("<anonymous>",f.displayName)),Se}while(1<=J&&0<=pe);break}}}finally{R=!1,Error.prepareStackTrace=w}return(f=f?f.displayName||f.name:"")?Q(f):""}function ce(f){switch(f.tag){case 5:return Q(f.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 2:case 15:return f=re(f.type,!1),f;case 11:return f=re(f.type.render,!1),f;case 1:return f=re(f.type,!0),f;default:return""}}function le(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case j:return"Fragment";case T:return"Portal";case L:return"Profiler";case O:return"StrictMode";case V:return"Suspense";case q:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case F:return(f.displayName||"Context")+".Consumer";case z:return(f._context.displayName||"Context")+".Provider";case M:var p=f.render;return f=f.displayName,f||(f=p.displayName||p.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case W:return p=f.displayName||null,p!==null?p:le(f.type)||"Memo";case ee:p=f._payload,f=f._init;try{return le(f(p))}catch{}}return null}function he(f){var p=f.type;switch(f.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=p.render,f=f.displayName||f.name||"",p.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return le(p);case 8:return p===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function ye(f){switch(typeof f){case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function Ae(f){var p=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function be(f){var p=Ae(f)?"checked":"value",w=Object.getOwnPropertyDescriptor(f.constructor.prototype,p),k=""+f[p];if(!f.hasOwnProperty(p)&&typeof w<"u"&&typeof w.get=="function"&&typeof w.set=="function"){var P=w.get,U=w.set;return Object.defineProperty(f,p,{configurable:!0,get:function(){return P.call(this)},set:function(J){k=""+J,U.call(this,J)}}),Object.defineProperty(f,p,{enumerable:w.enumerable}),{getValue:function(){return k},setValue:function(J){k=""+J},stopTracking:function(){f._valueTracker=null,delete f[p]}}}}function Ee(f){f._valueTracker||(f._valueTracker=be(f))}function ge(f){if(!f)return!1;var p=f._valueTracker;if(!p)return!0;var w=p.getValue(),k="";return f&&(k=Ae(f)?f.checked?"true":"false":f.value),f=k,f!==w?(p.setValue(f),!0):!1}function Ue(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}function Ye(f,p){var w=p.checked;return $({},p,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:w??f._wrapperState.initialChecked})}function ae(f,p){var w=p.defaultValue==null?"":p.defaultValue,k=p.checked!=null?p.checked:p.defaultChecked;w=ye(p.value!=null?p.value:w),f._wrapperState={initialChecked:k,initialValue:w,controlled:p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null}}function Le(f,p){p=p.checked,p!=null&&B(f,"checked",p,!1)}function st(f,p){Le(f,p);var w=ye(p.value),k=p.type;if(w!=null)k==="number"?(w===0&&f.value===""||f.value!=w)&&(f.value=""+w):f.value!==""+w&&(f.value=""+w);else if(k==="submit"||k==="reset"){f.removeAttribute("value");return}p.hasOwnProperty("value")?He(f,p.type,w):p.hasOwnProperty("defaultValue")&&He(f,p.type,ye(p.defaultValue)),p.checked==null&&p.defaultChecked!=null&&(f.defaultChecked=!!p.defaultChecked)}function ut(f,p,w){if(p.hasOwnProperty("value")||p.hasOwnProperty("defaultValue")){var k=p.type;if(!(k!=="submit"&&k!=="reset"||p.value!==void 0&&p.value!==null))return;p=""+f._wrapperState.initialValue,w||p===f.value||(f.value=p),f.defaultValue=p}w=f.name,w!==""&&(f.name=""),f.defaultChecked=!!f._wrapperState.initialChecked,w!==""&&(f.name=w)}function He(f,p,w){(p!=="number"||Ue(f.ownerDocument)!==f)&&(w==null?f.defaultValue=""+f._wrapperState.initialValue:f.defaultValue!==""+w&&(f.defaultValue=""+w))}var ht=Array.isArray;function it(f,p,w,k){if(f=f.options,p){p={};for(var P=0;P<w.length;P++)p["$"+w[P]]=!0;for(w=0;w<f.length;w++)P=p.hasOwnProperty("$"+f[w].value),f[w].selected!==P&&(f[w].selected=P),P&&k&&(f[w].defaultSelected=!0)}else{for(w=""+ye(w),p=null,P=0;P<f.length;P++){if(f[P].value===w){f[P].selected=!0,k&&(f[P].defaultSelected=!0);return}p!==null||f[P].disabled||(p=f[P])}p!==null&&(p.selected=!0)}}function pt(f,p){if(p.dangerouslySetInnerHTML!=null)throw Error(n(91));return $({},p,{value:void 0,defaultValue:void 0,children:""+f._wrapperState.initialValue})}function Bt(f,p){var w=p.value;if(w==null){if(w=p.children,p=p.defaultValue,w!=null){if(p!=null)throw Error(n(92));if(ht(w)){if(1<w.length)throw Error(n(93));w=w[0]}p=w}p==null&&(p=""),w=p}f._wrapperState={initialValue:ye(w)}}function gn(f,p){var w=ye(p.value),k=ye(p.defaultValue);w!=null&&(w=""+w,w!==f.value&&(f.value=w),p.defaultValue==null&&f.defaultValue!==w&&(f.defaultValue=w)),k!=null&&(f.defaultValue=""+k)}function zt(f){var p=f.textContent;p===f._wrapperState.initialValue&&p!==""&&p!==null&&(f.value=p)}function Ie(f){switch(f){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ze(f,p){return f==null||f==="http://www.w3.org/1999/xhtml"?Ie(p):f==="http://www.w3.org/2000/svg"&&p==="foreignObject"?"http://www.w3.org/1999/xhtml":f}var at,Ze=(function(f){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(p,w,k,P){MSApp.execUnsafeLocalFunction(function(){return f(p,w,k,P)})}:f})(function(f,p){if(f.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in f)f.innerHTML=p;else{for(at=at||document.createElement("div"),at.innerHTML="<svg>"+p.valueOf().toString()+"</svg>",p=at.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;p.firstChild;)f.appendChild(p.firstChild)}});function At(f,p){if(p){var w=f.firstChild;if(w&&w===f.lastChild&&w.nodeType===3){w.nodeValue=p;return}}f.textContent=p}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ln=["Webkit","ms","Moz","O"];Object.keys(ft).forEach(function(f){Ln.forEach(function(p){p=p+f.charAt(0).toUpperCase()+f.substring(1),ft[p]=ft[f]})});function Gt(f,p,w){return p==null||typeof p=="boolean"||p===""?"":w||typeof p!="number"||p===0||ft.hasOwnProperty(f)&&ft[f]?(""+p).trim():p+"px"}function Yt(f,p){f=f.style;for(var w in p)if(p.hasOwnProperty(w)){var k=w.indexOf("--")===0,P=Gt(w,p[w],k);w==="float"&&(w="cssFloat"),k?f.setProperty(w,P):f[w]=P}}var Vt=$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fn(f,p){if(p){if(Vt[f]&&(p.children!=null||p.dangerouslySetInnerHTML!=null))throw Error(n(137,f));if(p.dangerouslySetInnerHTML!=null){if(p.children!=null)throw Error(n(60));if(typeof p.dangerouslySetInnerHTML!="object"||!("__html"in p.dangerouslySetInnerHTML))throw Error(n(61))}if(p.style!=null&&typeof p.style!="object")throw Error(n(62))}}function wt(f,p){if(f.indexOf("-")===-1)return typeof p.is=="string";switch(f){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 yn=null;function Mt(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var en=null,En=null,rn=null;function $t(f){if(f=Md(f)){if(typeof en!="function")throw Error(n(280));var p=f.stateNode;p&&(p=xf(p),en(f.stateNode,f.type,p))}}function Nn(f){En?rn?rn.push(f):rn=[f]:En=f}function zo(){if(En){var f=En,p=rn;if(rn=En=null,$t(f),p)for(f=0;f<p.length;f++)$t(p[f])}}function ve(f,p){return f(p)}function Ve(){}var vt=!1;function Tt(f,p,w){if(vt)return f(p,w);vt=!0;try{return ve(f,p,w)}finally{vt=!1,(En!==null||rn!==null)&&(Ve(),zo())}}function jr(f,p){var w=f.stateNode;if(w===null)return null;var k=xf(w);if(k===null)return null;w=k[p];e:switch(p){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(k=!k.disabled)||(f=f.type,k=!(f==="button"||f==="input"||f==="select"||f==="textarea")),f=!k;break e;default:f=!1}if(f)return null;if(w&&typeof w!="function")throw Error(n(231,p,typeof w));return w}var Or=!1;if(s)try{var kr={};Object.defineProperty(kr,"passive",{get:function(){Or=!0}}),window.addEventListener("test",kr,kr),window.removeEventListener("test",kr,kr)}catch{Or=!1}function Ui(f,p,w,k,P,U,J,pe,Se){var De=Array.prototype.slice.call(arguments,3);try{p.apply(w,De)}catch(et){this.onError(et)}}var Hn=!1,qr=null,Zr=!1,dl=null,oc={onError:function(f){Hn=!0,qr=f}};function Vo(f,p,w,k,P,U,J,pe,Se){Hn=!1,qr=null,Ui.apply(oc,arguments)}function ks(f,p,w,k,P,U,J,pe,Se){if(Vo.apply(this,arguments),Hn){if(Hn){var De=qr;Hn=!1,qr=null}else throw Error(n(198));Zr||(Zr=!0,dl=De)}}function Ri(f){var p=f,w=f;if(f.alternate)for(;p.return;)p=p.return;else{f=p;do p=f,(p.flags&4098)!==0&&(w=p.return),f=p.return;while(f)}return p.tag===3?w:null}function bo(f){if(f.tag===13){var p=f.memoizedState;if(p===null&&(f=f.alternate,f!==null&&(p=f.memoizedState)),p!==null)return p.dehydrated}return null}function no(f){if(Ri(f)!==f)throw Error(n(188))}function iu(f){var p=f.alternate;if(!p){if(p=Ri(f),p===null)throw Error(n(188));return p!==f?null:f}for(var w=f,k=p;;){var P=w.return;if(P===null)break;var U=P.alternate;if(U===null){if(k=P.return,k!==null){w=k;continue}break}if(P.child===U.child){for(U=P.child;U;){if(U===w)return no(P),f;if(U===k)return no(P),p;U=U.sibling}throw Error(n(188))}if(w.return!==k.return)w=P,k=U;else{for(var J=!1,pe=P.child;pe;){if(pe===w){J=!0,w=P,k=U;break}if(pe===k){J=!0,k=P,w=U;break}pe=pe.sibling}if(!J){for(pe=U.child;pe;){if(pe===w){J=!0,w=U,k=P;break}if(pe===k){J=!0,k=U,w=P;break}pe=pe.sibling}if(!J)throw Error(n(189))}}if(w.alternate!==k)throw Error(n(190))}if(w.tag!==3)throw Error(n(188));return w.stateNode.current===w?f:p}function Wo(f){return f=iu(f),f!==null?sc(f):null}function sc(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){var p=sc(f);if(p!==null)return p;f=f.sibling}return null}var au=t.unstable_scheduleCallback,ou=t.unstable_cancelCallback,md=t.unstable_shouldYield,Wg=t.unstable_requestPaint,fr=t.unstable_now,Zh=t.unstable_getCurrentPriorityLevel,gd=t.unstable_ImmediatePriority,ro=t.unstable_UserBlockingPriority,lc=t.unstable_NormalPriority,ep=t.unstable_LowPriority,yd=t.unstable_IdlePriority,su=null,io=null;function tp(f){if(io&&typeof io.onCommitFiberRoot=="function")try{io.onCommitFiberRoot(su,f,void 0,(f.current.flags&128)===128)}catch{}}var ei=Math.clz32?Math.clz32:ti,vd=Math.log,Kg=Math.LN2;function ti(f){return f>>>=0,f===0?32:31-(vd(f)/Kg|0)|0}var lu=64,ao=4194304;function Es(f){switch(f&-f){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: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 f&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return f&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return f}}function cu(f,p){var w=f.pendingLanes;if(w===0)return 0;var k=0,P=f.suspendedLanes,U=f.pingedLanes,J=w&268435455;if(J!==0){var pe=J&~P;pe!==0?k=Es(pe):(U&=J,U!==0&&(k=Es(U)))}else J=w&~P,J!==0?k=Es(J):U!==0&&(k=Es(U));if(k===0)return 0;if(p!==0&&p!==k&&(p&P)===0&&(P=k&-k,U=p&-p,P>=U||P===16&&(U&4194240)!==0))return p;if((k&4)!==0&&(k|=w&16),p=f.entangledLanes,p!==0)for(f=f.entanglements,p&=k;0<p;)w=31-ei(p),P=1<<w,k|=f[w],p&=~P;return k}function wo(f,p){switch(f){case 1:case 2:case 4:return p+250;case 8:case 16:case 32:case 64: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 p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fi(f,p){for(var w=f.suspendedLanes,k=f.pingedLanes,P=f.expirationTimes,U=f.pendingLanes;0<U;){var J=31-ei(U),pe=1<<J,Se=P[J];Se===-1?((pe&w)===0||(pe&k)!==0)&&(P[J]=wo(pe,p)):Se<=p&&(f.expiredLanes|=pe),U&=~pe}}function Ko(f){return f=f.pendingLanes&-1073741825,f!==0?f:f&1073741824?1073741824:0}function rf(){var f=lu;return lu<<=1,(lu&4194240)===0&&(lu=64),f}function af(f){for(var p=[],w=0;31>w;w++)p.push(f);return p}function uu(f,p,w){f.pendingLanes|=p,p!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,p=31-ei(p),f[p]=w}function Ns(f,p){var w=f.pendingLanes&~p;f.pendingLanes=p,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=p,f.mutableReadLanes&=p,f.entangledLanes&=p,p=f.entanglements;var k=f.eventTimes;for(f=f.expirationTimes;0<w;){var P=31-ei(w),U=1<<P;p[P]=0,k[P]=-1,f[P]=-1,w&=~U}}function bd(f,p){var w=f.entangledLanes|=p;for(f=f.entanglements;w;){var k=31-ei(w),P=1<<k;P&p|f[k]&p&&(f[k]|=p),w&=~P}}var On=0;function du(f){return f&=-f,1<f?4<f?(f&268435455)!==0?16:536870912:4:1}var cc,of,np,rp,wd,xd=!1,Ta=[],Ts=null,_a=null,xo=null,Au=new Map,Xt=new Map,_s=[],Gg="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 submit".split(" ");function ip(f,p){switch(f){case"focusin":case"focusout":Ts=null;break;case"dragenter":case"dragleave":_a=null;break;case"mouseover":case"mouseout":xo=null;break;case"pointerover":case"pointerout":Au.delete(p.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xt.delete(p.pointerId)}}function oo(f,p,w,k,P,U){return f===null||f.nativeEvent!==U?(f={blockedOn:p,domEventName:w,eventSystemFlags:k,nativeEvent:U,targetContainers:[P]},p!==null&&(p=Md(p),p!==null&&of(p)),f):(f.eventSystemFlags|=k,p=f.targetContainers,P!==null&&p.indexOf(P)===-1&&p.push(P),f)}function Al(f,p,w,k,P){switch(p){case"focusin":return Ts=oo(Ts,f,p,w,k,P),!0;case"dragenter":return _a=oo(_a,f,p,w,k,P),!0;case"mouseover":return xo=oo(xo,f,p,w,k,P),!0;case"pointerover":var U=P.pointerId;return Au.set(U,oo(Au.get(U)||null,f,p,w,k,P)),!0;case"gotpointercapture":return U=P.pointerId,Xt.set(U,oo(Xt.get(U)||null,f,p,w,k,P)),!0}return!1}function ap(f){var p=bc(f.target);if(p!==null){var w=Ri(p);if(w!==null){if(p=w.tag,p===13){if(p=bo(w),p!==null){f.blockedOn=p,wd(f.priority,function(){np(w)});return}}else if(p===3&&w.stateNode.current.memoizedState.isDehydrated){f.blockedOn=w.tag===3?w.stateNode.containerInfo:null;return}}}f.blockedOn=null}function Sd(f){if(f.blockedOn!==null)return!1;for(var p=f.targetContainers;0<p.length;){var w=pu(f.domEventName,f.eventSystemFlags,p[0],f.nativeEvent);if(w===null){w=f.nativeEvent;var k=new w.constructor(w.type,w);yn=k,w.target.dispatchEvent(k),yn=null}else return p=Md(w),p!==null&&of(p),f.blockedOn=w,!1;p.shift()}return!0}function fu(f,p,w){Sd(f)&&w.delete(p)}function sf(){xd=!1,Ts!==null&&Sd(Ts)&&(Ts=null),_a!==null&&Sd(_a)&&(_a=null),xo!==null&&Sd(xo)&&(xo=null),Au.forEach(fu),Xt.forEach(fu)}function Go(f,p){f.blockedOn===p&&(f.blockedOn=null,xd||(xd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,sf)))}function hu(f){function p(P){return Go(P,f)}if(0<Ta.length){Go(Ta[0],f);for(var w=1;w<Ta.length;w++){var k=Ta[w];k.blockedOn===f&&(k.blockedOn=null)}}for(Ts!==null&&Go(Ts,f),_a!==null&&Go(_a,f),xo!==null&&Go(xo,f),Au.forEach(p),Xt.forEach(p),w=0;w<_s.length;w++)k=_s[w],k.blockedOn===f&&(k.blockedOn=null);for(;0<_s.length&&(w=_s[0],w.blockedOn===null);)ap(w),w.blockedOn===null&&_s.shift()}var Ia=C.ReactCurrentBatchConfig,Bd=!0;function lf(f,p,w,k){var P=On,U=Ia.transition;Ia.transition=null;try{On=1,Cd(f,p,w,k)}finally{On=P,Ia.transition=U}}function cf(f,p,w,k){var P=On,U=Ia.transition;Ia.transition=null;try{On=4,Cd(f,p,w,k)}finally{On=P,Ia.transition=U}}function Cd(f,p,w,k){if(Bd){var P=pu(f,p,w,k);if(P===null)vf(f,p,k,So,w),ip(f,k);else if(Al(P,f,p,w,k))k.stopPropagation();else if(ip(f,k),p&4&&-1<Gg.indexOf(f)){for(;P!==null;){var U=Md(P);if(U!==null&&cc(U),U=pu(f,p,w,k),U===null&&vf(f,p,k,So,w),U===P)break;P=U}P!==null&&k.stopPropagation()}else vf(f,p,k,null,w)}}var So=null;function pu(f,p,w,k){if(So=null,f=Mt(k),f=bc(f),f!==null)if(p=Ri(f),p===null)f=null;else if(w=p.tag,w===13){if(f=bo(p),f!==null)return f;f=null}else if(w===3){if(p.stateNode.current.memoizedState.isDehydrated)return p.tag===3?p.stateNode.containerInfo:null;f=null}else p!==f&&(f=null);return So=f,null}function mu(f){switch(f){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Zh()){case gd:return 1;case ro:return 4;case lc:case ep:return 16;case yd:return 536870912;default:return 16}default:return 16}}var Bo=null,fl=null,uc=null;function uf(){if(uc)return uc;var f,p=fl,w=p.length,k,P="value"in Bo?Bo.value:Bo.textContent,U=P.length;for(f=0;f<w&&p[f]===P[f];f++);var J=w-f;for(k=1;k<=J&&p[w-k]===P[U-k];k++);return uc=P.slice(f,1<k?1-k:void 0)}function gu(f){var p=f.keyCode;return"charCode"in f?(f=f.charCode,f===0&&p===13&&(f=13)):f=p,f===10&&(f=13),32<=f||f===13?f:0}function Co(){return!0}function Is(){return!1}function ea(f){function p(w,k,P,U,J){this._reactName=w,this._targetInst=P,this.type=k,this.nativeEvent=U,this.target=J,this.currentTarget=null;for(var pe in f)f.hasOwnProperty(pe)&&(w=f[pe],this[pe]=w?w(U):U[pe]);return this.isDefaultPrevented=(U.defaultPrevented!=null?U.defaultPrevented:U.returnValue===!1)?Co:Is,this.isPropagationStopped=Is,this}return $(p.prototype,{preventDefault:function(){this.defaultPrevented=!0;var w=this.nativeEvent;w&&(w.preventDefault?w.preventDefault():typeof w.returnValue!="unknown"&&(w.returnValue=!1),this.isDefaultPrevented=Co)},stopPropagation:function(){var w=this.nativeEvent;w&&(w.stopPropagation?w.stopPropagation():typeof w.cancelBubble!="unknown"&&(w.cancelBubble=!0),this.isPropagationStopped=Co)},persist:function(){},isPersistent:Co}),p}var ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(f){return f.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kd=ea(ko),I=$({},ko,{view:0,detail:0}),Y=ea(I),fe,we,Ne,$e=$({},I,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yu,button:0,buttons:0,relatedTarget:function(f){return f.relatedTarget===void 0?f.fromElement===f.srcElement?f.toElement:f.fromElement:f.relatedTarget},movementX:function(f){return"movementX"in f?f.movementX:(f!==Ne&&(Ne&&f.type==="mousemove"?(fe=f.screenX-Ne.screenX,we=f.screenY-Ne.screenY):we=fe=0,Ne=f),fe)},movementY:function(f){return"movementY"in f?f.movementY:we}}),Xe=ea($e),Et=$({},$e,{dataTransfer:0}),Lt=ea(Et),nn=$({},I,{relatedTarget:0}),ln=ea(nn),In=$({},ko,{animationName:0,elapsedTime:0,pseudoElement:0}),Er=ea(In),ni=$({},ko,{clipboardData:function(f){return"clipboardData"in f?f.clipboardData:window.clipboardData}}),lr=ea(ni),hi=$({},ko,{data:0}),zr=ea(hi),Qi={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hl={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"},Yo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pl(f){var p=this.nativeEvent;return p.getModifierState?p.getModifierState(f):(f=Yo[f])?!!p[f]:!1}function yu(){return pl}var Ed=$({},I,{key:function(f){if(f.key){var p=Qi[f.key]||f.key;if(p!=="Unidentified")return p}return f.type==="keypress"?(f=gu(f),f===13?"Enter":String.fromCharCode(f)):f.type==="keydown"||f.type==="keyup"?hl[f.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yu,charCode:function(f){return f.type==="keypress"?gu(f):0},keyCode:function(f){return f.type==="keydown"||f.type==="keyup"?f.keyCode:0},which:function(f){return f.type==="keypress"?gu(f):f.type==="keydown"||f.type==="keyup"?f.keyCode:0}}),dc=ea(Ed),vu=$({},$e,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ac=ea(vu),fc=$({},I,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yu}),Hi=ea(fc),bu=$({},ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),wu=ea(bu),df=$({},$e,{deltaX:function(f){return"deltaX"in f?f.deltaX:"wheelDeltaX"in f?-f.wheelDeltaX:0},deltaY:function(f){return"deltaY"in f?f.deltaY:"wheelDeltaY"in f?-f.wheelDeltaY:"wheelDelta"in f?-f.wheelDelta:0},deltaZ:0,deltaMode:0}),Af=ea(df),ha=[9,13,27,32],Xo=s&&"CompositionEvent"in window,Ps=null;s&&"documentMode"in document&&(Ps=document.documentMode);var op=s&&"TextEvent"in window&&!Ps,so=s&&(!Xo||Ps&&8<Ps&&11>=Ps),hc=" ",Nd=!1;function Td(f,p){switch(f){case"keyup":return ha.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ml(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var Eo=!1;function lo(f,p){switch(f){case"compositionend":return ml(p);case"keypress":return p.which!==32?null:(Nd=!0,hc);case"textInput":return f=p.data,f===hc&&Nd?null:f;default:return null}}function co(f,p){if(Eo)return f==="compositionend"||!Xo&&Td(f,p)?(f=uf(),uc=fl=Bo=null,Eo=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1<p.char.length)return p.char;if(p.which)return String.fromCharCode(p.which)}return null;case"compositionend":return so&&p.locale!=="ko"?null:p.data;default:return null}}var pc={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 js(f){var p=f&&f.nodeName&&f.nodeName.toLowerCase();return p==="input"?!!pc[f.type]:p==="textarea"}function gl(f,p,w,k){Nn(k),p=dp(p,"onChange"),0<p.length&&(w=new kd("onChange","change",null,w,k),f.push({event:w,listeners:p}))}var yl=null,Os=null;function Vr(f){gf(f,0)}function xu(f){var p=Pu(f);if(ge(p))return f}function Fs(f,p){if(f==="change")return p}var Jo=!1;if(s){var Su;if(s){var Bu="oninput"in document;if(!Bu){var _d=document.createElement("div");_d.setAttribute("oninput","return;"),Bu=typeof _d.oninput=="function"}Su=Bu}else Su=!1;Jo=Su&&(!document.documentMode||9<document.documentMode)}function Id(){yl&&(yl.detachEvent("onpropertychange",vl),Os=yl=null)}function vl(f){if(f.propertyName==="value"&&xu(Os)){var p=[];gl(p,Os,f,Mt(f)),Tt(Vr,p)}}function mc(f,p,w){f==="focusin"?(Id(),yl=p,Os=w,yl.attachEvent("onpropertychange",vl)):f==="focusout"&&Id()}function gc(f){if(f==="selectionchange"||f==="keyup"||f==="keydown")return xu(Os)}function Cu(f,p){if(f==="click")return xu(p)}function yc(f,p){if(f==="input"||f==="change")return xu(p)}function ku(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var Fr=typeof Object.is=="function"?Object.is:ku;function Pa(f,p){if(Fr(f,p))return!0;if(typeof f!="object"||f===null||typeof p!="object"||p===null)return!1;var w=Object.keys(f),k=Object.keys(p);if(w.length!==k.length)return!1;for(k=0;k<w.length;k++){var P=w[k];if(!l.call(p,P)||!Fr(f[P],p[P]))return!1}return!0}function Dn(f){for(;f&&f.firstChild;)f=f.firstChild;return f}function Kn(f,p){var w=Dn(f);f=0;for(var k;w;){if(w.nodeType===3){if(k=f+w.textContent.length,f<=p&&k>=p)return{node:w,offset:p-f};f=k}e:{for(;w;){if(w.nextSibling){w=w.nextSibling;break e}w=w.parentNode}w=void 0}w=Dn(w)}}function Lr(f,p){return f&&p?f===p?!0:f&&f.nodeType===3?!1:p&&p.nodeType===3?Lr(f,p.parentNode):"contains"in f?f.contains(p):f.compareDocumentPosition?!!(f.compareDocumentPosition(p)&16):!1:!1}function ri(){for(var f=window,p=Ue();p instanceof f.HTMLIFrameElement;){try{var w=typeof p.contentWindow.location.href=="string"}catch{w=!1}if(w)f=p.contentWindow;else break;p=Ue(f.document)}return p}function Zo(f){var p=f&&f.nodeName&&f.nodeName.toLowerCase();return p&&(p==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||p==="textarea"||f.contentEditable==="true")}function ff(f){var p=ri(),w=f.focusedElem,k=f.selectionRange;if(p!==w&&w&&w.ownerDocument&&Lr(w.ownerDocument.documentElement,w)){if(k!==null&&Zo(w)){if(p=k.start,f=k.end,f===void 0&&(f=p),"selectionStart"in w)w.selectionStart=p,w.selectionEnd=Math.min(f,w.value.length);else if(f=(p=w.ownerDocument||document)&&p.defaultView||window,f.getSelection){f=f.getSelection();var P=w.textContent.length,U=Math.min(k.start,P);k=k.end===void 0?U:Math.min(k.end,P),!f.extend&&U>k&&(P=k,k=U,U=P),P=Kn(w,U);var J=Kn(w,k);P&&J&&(f.rangeCount!==1||f.anchorNode!==P.node||f.anchorOffset!==P.offset||f.focusNode!==J.node||f.focusOffset!==J.offset)&&(p=p.createRange(),p.setStart(P.node,P.offset),f.removeAllRanges(),U>k?(f.addRange(p),f.extend(J.node,J.offset)):(p.setEnd(J.node,J.offset),f.addRange(p)))}}for(p=[],f=w;f=f.parentNode;)f.nodeType===1&&p.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<p.length;w++)f=p[w],f.element.scrollLeft=f.left,f.element.scrollTop=f.top}}var Pd=s&&"documentMode"in document&&11>=document.documentMode,bl=null,sp=null,jd=null,lp=!1;function Yg(f,p,w){var k=w.window===w?w.document:w.nodeType===9?w:w.ownerDocument;lp||bl==null||bl!==Ue(k)||(k=bl,"selectionStart"in k&&Zo(k)?k={start:k.selectionStart,end:k.selectionEnd}:(k=(k.ownerDocument&&k.ownerDocument.defaultView||window).getSelection(),k={anchorNode:k.anchorNode,anchorOffset:k.anchorOffset,focusNode:k.focusNode,focusOffset:k.focusOffset}),jd&&Pa(jd,k)||(jd=k,k=dp(sp,"onSelect"),0<k.length&&(p=new kd("onSelect","select",null,p,w),f.push({event:p,listeners:k}),p.target=bl)))}function hf(f,p){var w={};return w[f.toLowerCase()]=p.toLowerCase(),w["Webkit"+f]="webkit"+p,w["Moz"+f]="moz"+p,w}var Eu={animationend:hf("Animation","AnimationEnd"),animationiteration:hf("Animation","AnimationIteration"),animationstart:hf("Animation","AnimationStart"),transitionend:hf("Transition","TransitionEnd")},Nu={},Xg={};s&&(Xg=document.createElement("div").style,"AnimationEvent"in window||(delete Eu.animationend.animation,delete Eu.animationiteration.animation,delete Eu.animationstart.animation),"TransitionEvent"in window||delete Eu.transitionend.transition);function pf(f){if(Nu[f])return Nu[f];if(!Eu[f])return f;var p=Eu[f],w;for(w in p)if(p.hasOwnProperty(w)&&w in Xg)return Nu[f]=p[w];return f}var Jg=pf("animationend"),Zg=pf("animationiteration"),ey=pf("animationstart"),ty=pf("transitionend"),ny=new Map,ry="abort auxClick 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(" ");function Ls(f,p){ny.set(f,p),a(p,[f])}for(var Od=0;Od<ry.length;Od++){var pa=ry[Od],No=pa.toLowerCase(),cp=pa[0].toUpperCase()+pa.slice(1);Ls(No,"on"+cp)}Ls(Jg,"onAnimationEnd"),Ls(Zg,"onAnimationIteration"),Ls(ey,"onAnimationStart"),Ls("dblclick","onDoubleClick"),Ls("focusin","onFocus"),Ls("focusout","onBlur"),Ls(ty,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vc="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(" "),xb=new Set("cancel close invalid load scroll toggle".split(" ").concat(vc));function mf(f,p,w){var k=f.type||"unknown-event";f.currentTarget=w,ks(k,p,void 0,f),f.currentTarget=null}function gf(f,p){p=(p&4)!==0;for(var w=0;w<f.length;w++){var k=f[w],P=k.event;k=k.listeners;e:{var U=void 0;if(p)for(var J=k.length-1;0<=J;J--){var pe=k[J],Se=pe.instance,De=pe.currentTarget;if(pe=pe.listener,Se!==U&&P.isPropagationStopped())break e;mf(P,pe,De),U=Se}else for(J=0;J<k.length;J++){if(pe=k[J],Se=pe.instance,De=pe.currentTarget,pe=pe.listener,Se!==U&&P.isPropagationStopped())break e;mf(P,pe,De),U=Se}}}if(Zr)throw f=dl,Zr=!1,dl=null,f}function rr(f,p){var w=p[Oa];w===void 0&&(w=p[Oa]=new Set);var k=f+"__bubble";w.has(k)||(yf(p,f,2,!1),w.add(k))}function up(f,p,w){var k=0;p&&(k|=4),yf(w,f,k,p)}var Fd="_reactListening"+Math.random().toString(36).slice(2);function Tu(f){if(!f[Fd]){f[Fd]=!0,r.forEach(function(w){w!=="selectionchange"&&(xb.has(w)||up(w,!1,f),up(w,!0,f))});var p=f.nodeType===9?f:f.ownerDocument;p===null||p[Fd]||(p[Fd]=!0,up("selectionchange",!1,p))}}function yf(f,p,w,k){switch(mu(p)){case 1:var P=lf;break;case 4:P=cf;break;default:P=Cd}w=P.bind(null,p,w,f),P=void 0,!Or||p!=="touchstart"&&p!=="touchmove"&&p!=="wheel"||(P=!0),k?P!==void 0?f.addEventListener(p,w,{capture:!0,passive:P}):f.addEventListener(p,w,!0):P!==void 0?f.addEventListener(p,w,{passive:P}):f.addEventListener(p,w,!1)}function vf(f,p,w,k,P){var U=k;if((p&1)===0&&(p&2)===0&&k!==null)e:for(;;){if(k===null)return;var J=k.tag;if(J===3||J===4){var pe=k.stateNode.containerInfo;if(pe===P||pe.nodeType===8&&pe.parentNode===P)break;if(J===4)for(J=k.return;J!==null;){var Se=J.tag;if((Se===3||Se===4)&&(Se=J.stateNode.containerInfo,Se===P||Se.nodeType===8&&Se.parentNode===P))return;J=J.return}for(;pe!==null;){if(J=bc(pe),J===null)return;if(Se=J.tag,Se===5||Se===6){k=U=J;continue e}pe=pe.parentNode}}k=k.return}Tt(function(){var De=U,et=Mt(w),tt=[];e:{var Je=ny.get(f);if(Je!==void 0){var yt=kd,_t=f;switch(f){case"keypress":if(gu(w)===0)break e;case"keydown":case"keyup":yt=dc;break;case"focusin":_t="focus",yt=ln;break;case"focusout":_t="blur",yt=ln;break;case"beforeblur":case"afterblur":yt=ln;break;case"click":if(w.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":yt=Xe;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":yt=Lt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":yt=Hi;break;case Jg:case Zg:case ey:yt=Er;break;case ty:yt=wu;break;case"scroll":yt=Y;break;case"wheel":yt=Af;break;case"copy":case"cut":case"paste":yt=lr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":yt=Ac}var Ot=(p&4)!==0,gi=!Ot&&f==="scroll",je=Ot?Je!==null?Je+"Capture":null:Je;Ot=[];for(var Ce=De,Fe;Ce!==null;){Fe=Ce;var ot=Fe.stateNode;if(Fe.tag===5&&ot!==null&&(Fe=ot,je!==null&&(ot=jr(Ce,je),ot!=null&&Ot.push(bf(Ce,ot,Fe)))),gi)break;Ce=Ce.return}0<Ot.length&&(Je=new yt(Je,_t,null,w,et),tt.push({event:Je,listeners:Ot}))}}if((p&7)===0){e:{if(Je=f==="mouseover"||f==="pointerover",yt=f==="mouseout"||f==="pointerout",Je&&w!==yn&&(_t=w.relatedTarget||w.fromElement)&&(bc(_t)||_t[ta]))break e;if((yt||Je)&&(Je=et.window===et?et:(Je=et.ownerDocument)?Je.defaultView||Je.parentWindow:window,yt?(_t=w.relatedTarget||w.toElement,yt=De,_t=_t?bc(_t):null,_t!==null&&(gi=Ri(_t),_t!==gi||_t.tag!==5&&_t.tag!==6)&&(_t=null)):(yt=null,_t=De),yt!==_t)){if(Ot=Xe,ot="onMouseLeave",je="onMouseEnter",Ce="mouse",(f==="pointerout"||f==="pointerover")&&(Ot=Ac,ot="onPointerLeave",je="onPointerEnter",Ce="pointer"),gi=yt==null?Je:Pu(yt),Fe=_t==null?Je:Pu(_t),Je=new Ot(ot,Ce+"leave",yt,w,et),Je.target=gi,Je.relatedTarget=Fe,ot=null,bc(et)===De&&(Ot=new Ot(je,Ce+"enter",_t,w,et),Ot.target=Fe,Ot.relatedTarget=gi,ot=Ot),gi=ot,yt&&_t)t:{for(Ot=yt,je=_t,Ce=0,Fe=Ot;Fe;Fe=_u(Fe))Ce++;for(Fe=0,ot=je;ot;ot=_u(ot))Fe++;for(;0<Ce-Fe;)Ot=_u(Ot),Ce--;for(;0<Fe-Ce;)je=_u(je),Fe--;for(;Ce--;){if(Ot===je||je!==null&&Ot===je.alternate)break t;Ot=_u(Ot),je=_u(je)}Ot=null}else Ot=null;yt!==null&&Sb(tt,Je,yt,Ot,!1),_t!==null&&gi!==null&&Sb(tt,gi,_t,Ot,!0)}}e:{if(Je=De?Pu(De):window,yt=Je.nodeName&&Je.nodeName.toLowerCase(),yt==="select"||yt==="input"&&Je.type==="file")var Ut=Fs;else if(js(Je))if(Jo)Ut=yc;else{Ut=gc;var Wt=mc}else(yt=Je.nodeName)&&yt.toLowerCase()==="input"&&(Je.type==="checkbox"||Je.type==="radio")&&(Ut=Cu);if(Ut&&(Ut=Ut(f,De))){gl(tt,Ut,w,et);break e}Wt&&Wt(f,Je,De),f==="focusout"&&(Wt=Je._wrapperState)&&Wt.controlled&&Je.type==="number"&&He(Je,"number",Je.value)}switch(Wt=De?Pu(De):window,f){case"focusin":(js(Wt)||Wt.contentEditable==="true")&&(bl=Wt,sp=De,jd=null);break;case"focusout":jd=sp=bl=null;break;case"mousedown":lp=!0;break;case"contextmenu":case"mouseup":case"dragend":lp=!1,Yg(tt,w,et);break;case"selectionchange":if(Pd)break;case"keydown":case"keyup":Yg(tt,w,et)}var Kt;if(Xo)e:{switch(f){case"compositionstart":var an="onCompositionStart";break e;case"compositionend":an="onCompositionEnd";break e;case"compositionupdate":an="onCompositionUpdate";break e}an=void 0}else Eo?Td(f,w)&&(an="onCompositionEnd"):f==="keydown"&&w.keyCode===229&&(an="onCompositionStart");an&&(so&&w.locale!=="ko"&&(Eo||an!=="onCompositionStart"?an==="onCompositionEnd"&&Eo&&(Kt=uf()):(Bo=et,fl="value"in Bo?Bo.value:Bo.textContent,Eo=!0)),Wt=dp(De,an),0<Wt.length&&(an=new zr(an,f,null,w,et),tt.push({event:an,listeners:Wt}),Kt?an.data=Kt:(Kt=ml(w),Kt!==null&&(an.data=Kt)))),(Kt=op?lo(f,w):co(f,w))&&(De=dp(De,"onBeforeInput"),0<De.length&&(et=new zr("onBeforeInput","beforeinput",null,w,et),tt.push({event:et,listeners:De}),et.data=Kt))}gf(tt,p)})}function bf(f,p,w){return{instance:f,listener:p,currentTarget:w}}function dp(f,p){for(var w=p+"Capture",k=[];f!==null;){var P=f,U=P.stateNode;P.tag===5&&U!==null&&(P=U,U=jr(f,w),U!=null&&k.unshift(bf(f,U,P)),U=jr(f,p),U!=null&&k.push(bf(f,U,P))),f=f.return}return k}function _u(f){if(f===null)return null;do f=f.return;while(f&&f.tag!==5);return f||null}function Sb(f,p,w,k,P){for(var U=p._reactName,J=[];w!==null&&w!==k;){var pe=w,Se=pe.alternate,De=pe.stateNode;if(Se!==null&&Se===k)break;pe.tag===5&&De!==null&&(pe=De,P?(Se=jr(w,U),Se!=null&&J.unshift(bf(w,Se,pe))):P||(Se=jr(w,U),Se!=null&&J.push(bf(w,Se,pe)))),w=w.return}J.length!==0&&f.push({event:p,listeners:J})}var QB=/\r\n?/g,HB=/\u0000|\uFFFD/g;function Bb(f){return(typeof f=="string"?f:""+f).replace(QB,`
38`).replace(HB,"")}function Ap(f,p,w){if(p=Bb(p),Bb(f)!==p&&w)throw Error(n(425))}function Ld(){}var wf=null,Iu=null;function iy(f,p){return f==="textarea"||f==="noscript"||typeof p.children=="string"||typeof p.children=="number"||typeof p.dangerouslySetInnerHTML=="object"&&p.dangerouslySetInnerHTML!==null&&p.dangerouslySetInnerHTML.__html!=null}var ay=typeof setTimeout=="function"?setTimeout:void 0,Cb=typeof clearTimeout=="function"?clearTimeout:void 0,kb=typeof Promise=="function"?Promise:void 0,$B=typeof queueMicrotask=="function"?queueMicrotask:typeof kb<"u"?function(f){return kb.resolve(null).then(f).catch(qB)}:ay;function qB(f){setTimeout(function(){throw f})}function oy(f,p){var w=p,k=0;do{var P=w.nextSibling;if(f.removeChild(w),P&&P.nodeType===8)if(w=P.data,w==="/$"){if(k===0){f.removeChild(P),hu(p);return}k--}else w!=="$"&&w!=="$?"&&w!=="$!"||k++;w=P}while(w);hu(p)}function ma(f){for(;f!=null;f=f.nextSibling){var p=f.nodeType;if(p===1||p===3)break;if(p===8){if(p=f.data,p==="$"||p==="$!"||p==="$?")break;if(p==="/$")return null}}return f}function To(f){f=f.previousSibling;for(var p=0;f;){if(f.nodeType===8){var w=f.data;if(w==="$"||w==="$!"||w==="$?"){if(p===0)return f;p--}else w==="/$"&&p++}f=f.previousSibling}return null}var ja=Math.random().toString(36).slice(2),Ds="__reactFiber$"+ja,Dd="__reactProps$"+ja,ta="__reactContainer$"+ja,Oa="__reactEvents$"+ja,zB="__reactListeners$"+ja,VB="__reactHandles$"+ja;function bc(f){var p=f[Ds];if(p)return p;for(var w=f.parentNode;w;){if(p=w[ta]||w[Ds]){if(w=p.alternate,p.child!==null||w!==null&&w.child!==null)for(f=To(f);f!==null;){if(w=f[Ds])return w;f=To(f)}return p}f=w,w=f.parentNode}return null}function Md(f){return f=f[Ds]||f[ta],!f||f.tag!==5&&f.tag!==6&&f.tag!==13&&f.tag!==3?null:f}function Pu(f){if(f.tag===5||f.tag===6)return f.stateNode;throw Error(n(33))}function xf(f){return f[Dd]||null}var sy=[],wl=-1;function es(f){return{current:f}}function zn(f){0>wl||(f.current=sy[wl],sy[wl]=null,wl--)}function Gn(f,p){wl++,sy[wl]=f.current,f.current=p}var wc={},$i=es(wc),Fa=es(!1),ju=wc;function Ud(f,p){var w=f.type.contextTypes;if(!w)return wc;var k=f.stateNode;if(k&&k.__reactInternalMemoizedUnmaskedChildContext===p)return k.__reactInternalMemoizedMaskedChildContext;var P={},U;for(U in w)P[U]=p[U];return k&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=p,f.__reactInternalMemoizedMaskedChildContext=P),P}function La(f){return f=f.childContextTypes,f!=null}function fp(){zn(Fa),zn($i)}function Eb(f,p,w){if($i.current!==wc)throw Error(n(168));Gn($i,p),Gn(Fa,w)}function ly(f,p,w){var k=f.stateNode;if(p=p.childContextTypes,typeof k.getChildContext!="function")return w;k=k.getChildContext();for(var P in k)if(!(P in p))throw Error(n(108,he(f)||"Unknown",P));return $({},w,k)}function Ou(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||wc,ju=$i.current,Gn($i,f),Gn(Fa,Fa.current),!0}function Nb(f,p,w){var k=f.stateNode;if(!k)throw Error(n(169));w?(f=ly(f,p,ju),k.__reactInternalMemoizedMergedChildContext=f,zn(Fa),zn($i),Gn($i,f)):zn(Fa),Gn(Fa,w)}var xl=null,Sf=!1,S=!1;function N(f){xl===null?xl=[f]:xl.push(f)}function D(f){Sf=!0,N(f)}function H(){if(!S&&xl!==null){S=!0;var f=0,p=On;try{var w=xl;for(On=1;f<w.length;f++){var k=w[f];do k=k(!0);while(k!==null)}xl=null,Sf=!1}catch(P){throw xl!==null&&(xl=xl.slice(f+1)),au(gd,H),P}finally{On=p,S=!1}}return null}var G=[],Z=0,te=null,ie=0,se=[],ue=0,xe=null,Pe=1,de="";function Be(f,p){G[Z++]=ie,G[Z++]=te,te=f,ie=p}function Te(f,p,w){se[ue++]=Pe,se[ue++]=de,se[ue++]=xe,xe=f;var k=Pe;f=de;var P=32-ei(k)-1;k&=~(1<<P),w+=1;var U=32-ei(p)+P;if(30<U){var J=P-P%5;U=(k&(1<<J)-1).toString(32),k>>=J,P-=J,Pe=1<<32-ei(p)+P|w<<P|k,de=U+f}else Pe=1<<U|w<<P|k,de=f}function Qe(f){f.return!==null&&(Be(f,1),Te(f,1,0))}function Oe(f){for(;f===te;)te=G[--Z],G[Z]=null,ie=G[--Z],G[Z]=null;for(;f===xe;)xe=se[--ue],se[ue]=null,de=se[--ue],se[ue]=null,Pe=se[--ue],se[ue]=null}var Me=null,Re=null,Ke=!1,Ge=null;function Dt(f,p){var w=Hs(5,null,null,0);w.elementType="DELETED",w.stateNode=p,w.return=f,p=f.deletions,p===null?(f.deletions=[w],f.flags|=16):p.push(w)}function xt(f,p){switch(f.tag){case 5:var w=f.type;return p=p.nodeType!==1||w.toLowerCase()!==p.nodeName.toLowerCase()?null:p,p!==null?(f.stateNode=p,Me=f,Re=ma(p.firstChild),!0):!1;case 6:return p=f.pendingProps===""||p.nodeType!==3?null:p,p!==null?(f.stateNode=p,Me=f,Re=null,!0):!1;case 13:return p=p.nodeType!==8?null:p,p!==null?(w=xe!==null?{id:Pe,overflow:de}:null,f.memoizedState={dehydrated:p,treeContext:w,retryLane:1073741824},w=Hs(18,null,null,0),w.stateNode=p,w.return=f,f.child=w,Me=f,Re=null,!0):!1;default:return!1}}function dn(f){return(f.mode&1)!==0&&(f.flags&128)===0}function Nt(f){if(Ke){var p=Re;if(p){var w=p;if(!xt(f,p)){if(dn(f))throw Error(n(418));p=ma(w.nextSibling);var k=Me;p&&xt(f,p)?Dt(k,w):(f.flags=f.flags&-4097|2,Ke=!1,Me=f)}}else{if(dn(f))throw Error(n(418));f.flags=f.flags&-4097|2,Ke=!1,Me=f}}}function Sn(f){for(f=f.return;f!==null&&f.tag!==5&&f.tag!==3&&f.tag!==13;)f=f.return;Me=f}function Dr(f){if(f!==Me)return!1;if(!Ke)return Sn(f),Ke=!0,!1;var p;if((p=f.tag!==3)&&!(p=f.tag!==5)&&(p=f.type,p=p!=="head"&&p!=="body"&&!iy(f.type,f.memoizedProps)),p&&(p=Re)){if(dn(f))throw hn(),Error(n(418));for(;p;)Dt(f,p),p=ma(p.nextSibling)}if(Sn(f),f.tag===13){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(n(317));e:{for(f=f.nextSibling,p=0;f;
vendor: 4,122 bytes, line 38
38){if(f.nodeType===8){var w=f.data;if(w==="/$"){if(p===0){Re=ma(f.nextSibling);break e}p--}else w!=="$"&&w!=="$!"&&w!=="$?"||p++}f=f.nextSibling}Re=null}}else Re=Me?ma(f.stateNode.nextSibling):null;return!0}function hn(){for(var f=Re;f;)f=ma(f.nextSibling)}function St(){Re=Me=null,Ke=!1}function ct(f){Ge===null?Ge=[f]:Ge.push(f)}var Wr=C.ReactCurrentBatchConfig;function tn(f,p,w){if(f=w.ref,f!==null&&typeof f!="function"&&typeof f!="object"){if(w._owner){if(w=w._owner,w){if(w.tag!==1)throw Error(n(309));var k=w.stateNode}if(!k)throw Error(n(147,f));var P=k,U=""+f;return p!==null&&p.ref!==null&&typeof p.ref=="function"&&p.ref._stringRef===U?p.ref:(p=function(J){var pe=P.refs;J===null?delete pe[U]:pe[U]=J},p._stringRef=U,p)}if(typeof f!="string")throw Error(n(284));if(!w._owner)throw Error(n(290,f))}return f}function wn(f,p){throw f=Object.prototype.toString.call(p),Error(n(31,f==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":f))}function cr(f){var p=f._init;return p(f._payload)}function Ni(f){function p(je,Ce){if(f){var Fe=je.deletions;Fe===null?(je.deletions=[Ce],je.flags|=16):Fe.push(Ce)}}function w(je,Ce){if(!f)return null;for(;Ce!==null;)p(je,Ce),Ce=Ce.sibling;return null}function k(je,Ce){for(je=new Map;Ce!==null;)Ce.key!==null?je.set(Ce.key,Ce):je.set(Ce.index,Ce),Ce=Ce.sibling;return je}function P(je,Ce){return je=Gd(je,Ce),je.index=0,je.sibling=null,je}function U(je,Ce,Fe){return je.index=Fe,f?(Fe=je.alternate,Fe!==null?(Fe=Fe.index,Fe<Ce?(je.flags|=2,Ce):Fe):(je.flags|=2,Ce)):(je.flags|=1048576,Ce)}function J(je){return f&&je.alternate===null&&(je.flags|=2),je}function pe(je,Ce,Fe,ot){return Ce===null||Ce.tag!==6?(Ce=w5(Fe,je.mode,ot),Ce.return=je,Ce):(Ce=P(Ce,Fe),Ce.return=je,Ce)}function Se(je,Ce,Fe,ot){var Ut=Fe.type;return Ut===j?et(je,Ce,Fe.props.children,ot,Fe.key):Ce!==null&&(Ce.elementType===Ut||typeof Ut=="object"&&Ut!==null&&Ut.$$typeof===ee&&cr(Ut)===Ce.type)?(ot=P(Ce,Fe.props),ot.ref=tn(je,Ce,Fe),ot.return=je,ot):(ot=Kb(Fe.type,Fe.key,Fe.props,null,je.mode,ot),ot.ref=tn(je,Ce,Fe),ot.return=je,ot)}function De(je,Ce,Fe,ot){return Ce===null||Ce.tag!==4||Ce.stateNode.containerInfo!==Fe.containerInfo||Ce.stateNode.implementation!==Fe.implementation?(Ce=x5(Fe,je.mode,ot),Ce.return=je,Ce):(Ce=P(Ce,Fe.children||[]),Ce.return=je,Ce)}function et(je,Ce,Fe,ot,Ut){return Ce===null||Ce.tag!==7?(Ce=If(Fe,je.mode,ot,Ut),Ce.return=je,Ce):(Ce=P(Ce,Fe),Ce.return=je,Ce)}function tt(je,Ce,Fe){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number")return Ce=w5(""+Ce,je.mode,Fe),Ce.return=je,Ce;if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case E:return Fe=Kb(Ce.type,Ce.key,Ce.props,null,je.mode,Fe),Fe.ref=tn(je,null,Ce),Fe.return=je,Fe;case T:return Ce=x5(Ce,je.mode,Fe),Ce.return=je,Ce;case ee:var ot=Ce._init;return tt(je,ot(Ce._payload),Fe)}if(ht(Ce)||oe(Ce))return Ce=If(Ce,je.mode,Fe,null),Ce.return=je,Ce;wn(je,Ce)}return null}function Je(je,Ce,Fe,ot){var Ut=Ce!==null?Ce.key:null;if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number")return Ut!==null?null:pe(je,Ce,""+Fe,ot);if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case E:return Fe.key===Ut?Se(je,Ce,Fe,ot):null;case T:return Fe.key===Ut?De(je,Ce,Fe,ot):null;case ee:return Ut=Fe._init,Je(je,Ce,Ut(Fe._payload),ot)}if(ht(Fe)||oe(Fe))return Ut!==null?null:et(je,Ce,Fe,ot,null);wn(je,Fe)}return null}function yt(je,Ce,Fe,ot,Ut){if(typeof ot=="string"&&ot!==""||typeof ot=="number")return je=je.get(Fe)||null,pe(Ce,je,""+ot,Ut);if(typeof ot=="object"&&ot!==null){switch(ot.$$typeof){case E:return je=je.get(ot.key===null?Fe:ot.key)||null,Se(Ce,je,ot,Ut);case T:return je=je.get(ot.key===null?Fe:ot.key)||null,De(Ce,je,ot,Ut);case ee:var Wt=ot._init;return yt(je,Ce,Fe,Wt(ot._payload),Ut)}if(ht(ot)||oe(ot))return je=je.get(Fe)||null,et(Ce,je,ot,Ut,null);wn(Ce,ot)}return null}function _t(je,Ce,Fe,ot){for(var Ut=null,Wt=null,Kt=Ce,an=Ce=0,oa=null;Kt!==null&&an<Fe.length;an++){Kt.index>an?(oa=Kt,Kt=null):oa=Kt.sibling;var $n=Je(je,Kt,Fe[an],ot);if($n===null){Kt===null&&(Kt=oa);break}f&&Kt&&$n.alternate===null&&p(je,Kt),Ce=U($n,Ce,an),Wt===null?Ut=$n:Wt.sibling=$n,Wt=$n,Kt=oa}
vendor: 9,734 bytes, line 38
38if(an===Fe.length)return w(je,Kt),Ke&&Be(je,an),Ut;if(Kt===null){for(;an<Fe.length;an++)Kt=tt(je,Fe[an],ot),Kt!==null&&(Ce=U(Kt,Ce,an),Wt===null?Ut=Kt:Wt.sibling=Kt,Wt=Kt);return Ke&&Be(je,an),Ut}for(Kt=k(je,Kt);an<Fe.length;an++)oa=yt(Kt,je,an,Fe[an],ot),oa!==null&&(f&&oa.alternate!==null&&Kt.delete(oa.key===null?an:oa.key),Ce=U(oa,Ce,an),Wt===null?Ut=oa:Wt.sibling=oa,Wt=oa);return f&&Kt.forEach(function(Yd){return p(je,Yd)}),Ke&&Be(je,an),Ut}function Ot(je,Ce,Fe,ot){var Ut=oe(Fe);if(typeof Ut!="function")throw Error(n(150));if(Fe=Ut.call(Fe),Fe==null)throw Error(n(151));for(var Wt=Ut=null,Kt=Ce,an=Ce=0,oa=null,$n=Fe.next();Kt!==null&&!$n.done;an++,$n=Fe.next()){Kt.index>an?(oa=Kt,Kt=null):oa=Kt.sibling;var Yd=Je(je,Kt,$n.value,ot);if(Yd===null){Kt===null&&(Kt=oa);break}f&&Kt&&Yd.alternate===null&&p(je,Kt),Ce=U(Yd,Ce,an),Wt===null?Ut=Yd:Wt.sibling=Yd,Wt=Yd,Kt=oa}if($n.done)return w(je,Kt),Ke&&Be(je,an),Ut;if(Kt===null){for(;!$n.done;an++,$n=Fe.next())$n=tt(je,$n.value,ot),$n!==null&&(Ce=U($n,Ce,an),Wt===null?Ut=$n:Wt.sibling=$n,Wt=$n);return Ke&&Be(je,an),Ut}for(Kt=k(je,Kt);!$n.done;an++,$n=Fe.next())$n=yt(Kt,je,an,$n.value,ot),$n!==null&&(f&&$n.alternate!==null&&Kt.delete($n.key===null?an:$n.key),Ce=U($n,Ce,an),Wt===null?Ut=$n:Wt.sibling=$n,Wt=$n);return f&&Kt.forEach(function(Vae){return p(je,Vae)}),Ke&&Be(je,an),Ut}function gi(je,Ce,Fe,ot){if(typeof Fe=="object"&&Fe!==null&&Fe.type===j&&Fe.key===null&&(Fe=Fe.props.children),typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case E:e:{for(var Ut=Fe.key,Wt=Ce;Wt!==null;){if(Wt.key===Ut){if(Ut=Fe.type,Ut===j){if(Wt.tag===7){w(je,Wt.sibling),Ce=P(Wt,Fe.props.children),Ce.return=je,je=Ce;break e}}else if(Wt.elementType===Ut||typeof Ut=="object"&&Ut!==null&&Ut.$$typeof===ee&&cr(Ut)===Wt.type){w(je,Wt.sibling),Ce=P(Wt,Fe.props),Ce.ref=tn(je,Wt,Fe),Ce.return=je,je=Ce;break e}w(je,Wt);break}else p(je,Wt);Wt=Wt.sibling}Fe.type===j?(Ce=If(Fe.props.children,je.mode,ot,Fe.key),Ce.return=je,je=Ce):(ot=Kb(Fe.type,Fe.key,Fe.props,null,je.mode,ot),ot.ref=tn(je,Ce,Fe),ot.return=je,je=ot)}return J(je);case T:e:{for(Wt=Fe.key;Ce!==null;){if(Ce.key===Wt)if(Ce.tag===4&&Ce.stateNode.containerInfo===Fe.containerInfo&&Ce.stateNode.implementation===Fe.implementation){w(je,Ce.sibling),Ce=P(Ce,Fe.children||[]),Ce.return=je,je=Ce;break e}else{w(je,Ce);break}else p(je,Ce);Ce=Ce.sibling}Ce=x5(Fe,je.mode,ot),Ce.return=je,je=Ce}return J(je);case ee:return Wt=Fe._init,gi(je,Ce,Wt(Fe._payload),ot)}if(ht(Fe))return _t(je,Ce,Fe,ot);if(oe(Fe))return Ot(je,Ce,Fe,ot);wn(je,Fe)}return typeof Fe=="string"&&Fe!==""||typeof Fe=="number"?(Fe=""+Fe,Ce!==null&&Ce.tag===6?(w(je,Ce.sibling),Ce=P(Ce,Fe),Ce.return=je,je=Ce):(w(je,Ce),Ce=w5(Fe,je.mode,ot),Ce.return=je,je=Ce),J(je)):w(je,Ce)}return gi}var ii=Ni(!0),Nr=Ni(!1),pi=es(null),Ti=null,yr=null,kn=null;function Mn(){kn=yr=Ti=null}function vr(f){var p=pi.current;zn(pi),f._currentValue=p}function Un(f,p,w){for(;f!==null;){var k=f.alternate;if((f.childLanes&p)!==p?(f.childLanes|=p,k!==null&&(k.childLanes|=p)):k!==null&&(k.childLanes&p)!==p&&(k.childLanes|=p),f===w)break;f=f.return}}function Mr(f,p){Ti=f,kn=yr=null,f=f.dependencies,f!==null&&f.firstContext!==null&&((f.lanes&p)!==0&&(Io=!0),f.firstContext=null)}function Ur(f){var p=f._currentValue;if(kn!==f)if(f={context:f,memoizedValue:p,next:null},yr===null){if(Ti===null)throw Error(n(308));yr=f,Ti.dependencies={lanes:0,firstContext:f}}else yr=yr.next=f;return p}var ir=null;function na(f){ir===null?ir=[f]:ir.push(f)}function Yn(f,p,w,k){var P=p.interleaved;return P===null?(w.next=w,na(p)):(w.next=P.next,P.next=w),p.interleaved=w,ar(f,k)}function ar(f,p){f.lanes|=p;var w=f.alternate;for(w!==null&&(w.lanes|=p),w=f,f=f.return;f!==null;)f.childLanes|=p,w=f.alternate,w!==null&&(w.childLanes|=p),w=f,f=f.return;return w.tag===3?w.stateNode:null}var ai=!1;function qi(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Da(f,p){f=f.updateQueue,p.updateQueue===f&&(p.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects})}function Kr(f,p){return{eventTime:f,lane:p,tag:0,payload:null,callback:null,next:null}}function Gr(f,p,w){var k=f.updateQueue;if(k===null)return null;if(k=k.shared,(Rn&2)!==0){var P=k.pending;return P===null?p.next=p:(p.next=P.next,P.next=p),k.pending=p,ar(f,w)}return P=k.interleaved,P===null?(p.next=p,na(k)):(p.next=P.next,P.next=p),k.interleaved=p,ar(f,w)}function ra(f,p,w){if(p=p.updateQueue,p!==null&&(p=p.shared,(w&4194240)!==0)){var k=p.lanes;k&=f.pendingLanes,w|=k,p.lanes=w,bd(f,w)}}function or(f,p){var w=f.updateQueue,k=f.alternate;if(k!==null&&(k=k.updateQueue,w===k)){var P=null,U=null;if(w=w.firstBaseUpdate,w!==null){do{var J={eventTime:w.eventTime,lane:w.lane,tag:w.tag,payload:w.payload,callback:w.callback,next:null};U===null?P=U=J:U=U.next=J,w=w.next}while(w!==null);U===null?P=U=p:U=U.next=p}else P=U=p;w={baseState:k.baseState,firstBaseUpdate:P,lastBaseUpdate:U,shared:k.shared,effects:k.effects},f.updateQueue=w;return}f=w.lastBaseUpdate,f===null?w.firstBaseUpdate=p:f.next=p,w.lastBaseUpdate=p}function ia(f,p,w,k){var P=f.updateQueue;ai=!1;var U=P.firstBaseUpdate,J=P.lastBaseUpdate,pe=P.shared.pending;if(pe!==null){P.shared.pending=null;var Se=pe,De=Se.next;Se.next=null,J===null?U=De:J.next=De,J=Se;var et=f.alternate;et!==null&&(et=et.updateQueue,pe=et.lastBaseUpdate,pe!==J&&(pe===null?et.firstBaseUpdate=De:pe.next=De,et.lastBaseUpdate=Se))}if(U!==null){var tt=P.baseState;J=0,et=De=Se=null,pe=U;do{var Je=pe.lane,yt=pe.eventTime;if((k&Je)===Je){et!==null&&(et=et.next={eventTime:yt,lane:0,tag:pe.tag,payload:pe.payload,callback:pe.callback,next:null});e:{var _t=f,Ot=pe;switch(Je=p,yt=w,Ot.tag){case 1:if(_t=Ot.payload,typeof _t=="function"){tt=_t.call(yt,tt,Je);break e}tt=_t;break e;case 3:_t.flags=_t.flags&-65537|128;case 0:if(_t=Ot.payload,Je=typeof _t=="function"?_t.call(yt,tt,Je):_t,Je==null)break e;tt=$({},tt,Je);break e;case 2:ai=!0}}pe.callback!==null&&pe.lane!==0&&(f.flags|=64,Je=P.effects,Je===null?P.effects=[pe]:Je.push(pe))}else yt={eventTime:yt,lane:Je,tag:pe.tag,payload:pe.payload,callback:pe.callback,next:null},et===null?(De=et=yt,Se=tt):et=et.next=yt,J|=Je;if(pe=pe.next,pe===null){if(pe=P.shared.pending,pe===null)break;Je=pe,pe=Je.next,Je.next=null,P.lastBaseUpdate=Je,P.shared.pending=null}}while(!0);if(et===null&&(Se=tt),P.baseState=Se,P.firstBaseUpdate=De,P.lastBaseUpdate=et,p=P.shared.interleaved,p!==null){P=p;do J|=P.lane,P=P.next;while(P!==p)}else U===null&&(P.shared.lanes=0);Ef|=J,f.lanes=J,f.memoizedState=tt}}function _o(f,p,w){if(f=p.effects,p.effects=null,f!==null)for(p=0;p<f.length;p++){var k=f[p],P=k.callback;if(P!==null){if(k.callback=null,k=w,typeof P!="function")throw Error(n(191,P));P.call(k)}}}var ts={},_i=es(ts),Yr=es(ts),xc=es(ts);function Sl(f){if(f===ts)throw Error(n(174));return f}function Rd(f,p){switch(Gn(xc,p),Gn(Yr,f),Gn(_i,ts),f=p.nodeType,f){case 9:case 11:p=(p=p.documentElement)?p.namespaceURI:ze(null,"");break;default:f=f===8?p.parentNode:p,p=f.namespaceURI||null,f=f.tagName,p=ze(p,f)}zn(_i),Gn(_i,p)}function Ms(){zn(_i),zn(Yr),zn(xc)}function Tb(f){Sl(xc.current);var p=Sl(_i.current),w=ze(p,f.type);p!==w&&(Gn(Yr,f),Gn(_i,w))}function cy(f){Yr.current===f&&(zn(_i),zn(Yr))}var hr=es(0);function ns(f){for(var p=f;p!==null;){if(p.tag===13){var w=p.memoizedState;if(w!==null&&(w=w.dehydrated,w===null||w.data==="$?"||w.data==="$!"))return p}else if(p.tag===19&&p.memoizedProps.revealOrder!==void 0){if((p.flags&128)!==0)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===f)break;for(;p.sibling===null;){if(p.return===null||p.return===f)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}var uy=[];function dy(){for(var f=0;f<uy.length;f++)uy[f]._workInProgressVersionPrimary=null;uy.length=0}var hp=C.ReactCurrentDispatcher,pp=C.ReactCurrentBatchConfig,Us=0,br=null,oi=null,Xr=null,Qd=!1,Bl=!1,Hd=0,WB=0;function mi(){throw Error(n(321))}function mp(f,p){if(p===null)return!1;for(var w=0;w<p.length&&w<f.length;w++)if(!Fr(f[w],p[w]))return!1;return!0}function Bf(f,p,w,k,P,U){if(Us=U,br=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,hp.current=f===null||f.memoizedState===null?yae:vae,f=w(k,P),Bl){U=0;do{if(Bl=!1,Hd=0,25<=U)throw Error(n(301));U+=1,Xr=oi=null,p.updateQueue=null,hp.current=bae,f=w(k,P)}while(Bl)}if(hp.current=Ob,p=oi!==null&&oi.next!==null,Us=0,Xr=oi=br=null,Qd=!1,p)throw Error(n(300));return f}function Rs(){var f=Hd!==0;return Hd=0,f}function rs(){var f={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xr===null?br.memoizedState=Xr=f:Xr=Xr.next=f,Xr}function uo(){if(oi===null){var f=br.alternate;f=f!==null?f.memoizedState:null}else f=oi.next;var p=Xr===null?br.memoizedState:Xr.next;if(p!==null)Xr=p,oi=f;else{if(f===null)throw Error(n(310));oi=f,f={memoizedState:oi.memoizedState,baseState:oi.baseState,baseQueue:oi.baseQueue,queue:oi.queue,next:null},Xr===null?br.memoizedState=Xr=f:Xr=Xr.next=f}return Xr}function Cf(f,p){return typeof p=="function"?p(f):p}function gp(f){var p=uo(),w=p.queue;if(w===null)throw Error(n(311));w.lastRenderedReducer=f;var k=oi,P=k.baseQueue,U=w.pending;if(U!==null){if(P!==null){var J=P.next;P.next=U.next,U.next=J}k.baseQueue=P=U,w.pending=null}if(P!==null){U=P.next,k=k.baseState;var pe=J=null,Se=null,De=U;do{var et=De.lane;if((Us&et)===et)Se!==null&&(Se=Se.next={lane:0,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null}),k=De.hasEagerState?De.eagerState:f(k,De.action);else{var tt={lane:et,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null};
vendor: 4,423 bytes, line 38
38Se===null?(pe=Se=tt,J=k):Se=Se.next=tt,br.lanes|=et,Ef|=et}De=De.next}while(De!==null&&De!==U);Se===null?J=k:Se.next=pe,Fr(k,p.memoizedState)||(Io=!0),p.memoizedState=k,p.baseState=J,p.baseQueue=Se,w.lastRenderedState=k}if(f=w.interleaved,f!==null){P=f;do U=P.lane,br.lanes|=U,Ef|=U,P=P.next;while(P!==f)}else P===null&&(w.lanes=0);return[p.memoizedState,w.dispatch]}function Sc(f){var p=uo(),w=p.queue;if(w===null)throw Error(n(311));w.lastRenderedReducer=f;var k=w.dispatch,P=w.pending,U=p.memoizedState;if(P!==null){w.pending=null;var J=P=P.next;do U=f(U,J.action),J=J.next;while(J!==P);Fr(U,p.memoizedState)||(Io=!0),p.memoizedState=U,p.baseQueue===null&&(p.baseState=U),w.lastRenderedState=U}return[U,k]}function _b(){}function Ay(f,p){var w=br,k=uo(),P=p(),U=!Fr(k.memoizedState,P);if(U&&(k.memoizedState=P,Io=!0),k=k.queue,bp(Pb.bind(null,w,k,f),[f]),k.getSnapshot!==p||U||Xr!==null&&Xr.memoizedState.tag&1){if(w.flags|=2048,Ao(9,fy.bind(null,w,k,P,p),void 0,null),aa===null)throw Error(n(349));(Us&30)!==0||Ib(w,p,P)}return P}function Ib(f,p,w){f.flags|=16384,f={getSnapshot:p,value:w},p=br.updateQueue,p===null?(p={lastEffect:null,stores:null},br.updateQueue=p,p.stores=[f]):(w=p.stores,w===null?p.stores=[f]:w.push(f))}function fy(f,p,w,k){p.value=w,p.getSnapshot=k,$d(p)&&yp(f)}function Pb(f,p,w){return w(function(){$d(p)&&yp(f)})}function $d(f){var p=f.getSnapshot;f=f.value;try{var w=p();return!Fr(f,w)}catch{return!0}}function yp(f){var p=ar(f,1);p!==null&&Tl(p,f,1,-1)}function kf(f){var p=rs();return typeof f=="function"&&(f=f()),p.memoizedState=p.baseState=f,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cf,lastRenderedState:f},p.queue=f,f=f.dispatch=gae.bind(null,br,f),[p.memoizedState,f]}function Ao(f,p,w,k){return f={tag:f,create:p,destroy:w,deps:k,next:null},p=br.updateQueue,p===null?(p={lastEffect:null,stores:null},br.updateQueue=p,p.lastEffect=f.next=f):(w=p.lastEffect,w===null?p.lastEffect=f.next=f:(k=w.next,w.next=f,f.next=k,p.lastEffect=f)),f}function Cl(){return uo().memoizedState}function is(f,p,w,k){var P=rs();br.flags|=f,P.memoizedState=Ao(1|p,w,void 0,k===void 0?null:k)}function Fu(f,p,w,k){var P=uo();k=k===void 0?null:k;var U=void 0;if(oi!==null){var J=oi.memoizedState;if(U=J.destroy,k!==null&&mp(k,J.deps)){P.memoizedState=Ao(p,w,U,k);return}}br.flags|=f,P.memoizedState=Ao(1|p,w,U,k)}function vp(f,p){return is(8390656,8,f,p)}function bp(f,p){return Fu(2048,8,f,p)}function jb(f,p){return Fu(4,2,f,p)}function wp(f,p){return Fu(4,4,f,p)}function xp(f,p){if(typeof p=="function")return f=f(),p(f),function(){p(null)};if(p!=null)return f=f(),p.current=f,function(){p.current=null}}function NF(f,p,w){return w=w!=null?w.concat([f]):null,Fu(4,4,xp.bind(null,p,f),w)}function KB(){}function TF(f,p){var w=uo();p=p===void 0?null:p;var k=w.memoizedState;return k!==null&&p!==null&&mp(p,k[1])?k[0]:(w.memoizedState=[f,p],f)}function _F(f,p){var w=uo();p=p===void 0?null:p;var k=w.memoizedState;return k!==null&&p!==null&&mp(p,k[1])?k[0]:(f=f(),w.memoizedState=[f,p],f)}function IF(f,p,w){return(Us&21)===0?(f.baseState&&(f.baseState=!1,Io=!0),f.memoizedState=w):(Fr(w,p)||(w=rf(),br.lanes|=w,Ef|=w,f.baseState=!0),p)}function pae(f,p){var w=On;On=w!==0&&4>w?w:4,f(!0);var k=pp.transition;pp.transition={};try{f(!1),p()}finally{On=w,pp.transition=k}}function PF(){return uo().memoizedState}function mae(f,p,w){var k=Wd(f);if(w={lane:k,action:w,hasEagerState:!1,eagerState:null,next:null},jF(f))OF(p,w);else if(w=Yn(f,p,w,k),w!==null){var P=ho();Tl(w,f,k,P),FF(w,p,k)}}function gae(f,p,w){var k=Wd(f),P={lane:k,action:w,hasEagerState:!1,eagerState:null,next:null};if(jF(f))OF(p,P);else{var U=f.alternate;if(f.lanes===0&&(U===null||U.lanes===0)&&(U=p.lastRenderedReducer,U!==null))try{var J=p.lastRenderedState,pe=U(J,w);if(P.hasEagerState=!0,P.eagerState=pe,Fr(pe,J)){var Se=p.interleaved;Se===null?(P.next=P,na(p)):(P.next=Se.next,Se.next=P),p.interleaved=P;return}}catch{}finally{}w=Yn(f,p,P,k),w!==null&&(P=ho(),Tl(w,f,k,P),FF(w,p,k))}}function jF(f){var p=f.alternate;return f===br||p!==null&&p===br}function OF(f,p){Bl=Qd=!0;var w=f.pending;w===null?p.next=p:(p.next=w.next,w.next=p),f.pending=p}function FF(f,p,w){if((w&4194240)!==0){var k=p.lanes;k&=f.pendingLanes,w|=k,p.lanes=w,bd(f,w)}}var Ob={readContext:Ur,useCallback:mi,useContext:mi,useEffect:mi,useImperativeHandle:mi,useInsertionEffect:mi,useLayoutEffect:mi,useMemo:mi,useReducer:mi,useRef
vendor: 5,124 bytes, line 38
38:mi,useState:mi,useDebugValue:mi,useDeferredValue:mi,useTransition:mi,useMutableSource:mi,useSyncExternalStore:mi,useId:mi,unstable_isNewReconciler:!1},yae={readContext:Ur,useCallback:function(f,p){return rs().memoizedState=[f,p===void 0?null:p],f},useContext:Ur,useEffect:vp,useImperativeHandle:function(f,p,w){return w=w!=null?w.concat([f]):null,is(4194308,4,xp.bind(null,p,f),w)},useLayoutEffect:function(f,p){return is(4194308,4,f,p)},useInsertionEffect:function(f,p){return is(4,2,f,p)},useMemo:function(f,p){var w=rs();return p=p===void 0?null:p,f=f(),w.memoizedState=[f,p],f},useReducer:function(f,p,w){var k=rs();return p=w!==void 0?w(p):p,k.memoizedState=k.baseState=p,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:p},k.queue=f,f=f.dispatch=mae.bind(null,br,f),[k.memoizedState,f]},useRef:function(f){var p=rs();return f={current:f},p.memoizedState=f},useState:kf,useDebugValue:KB,useDeferredValue:function(f){return rs().memoizedState=f},useTransition:function(){var f=kf(!1),p=f[0];return f=pae.bind(null,f[1]),rs().memoizedState=f,[p,f]},useMutableSource:function(){},useSyncExternalStore:function(f,p,w){var k=br,P=rs();if(Ke){if(w===void 0)throw Error(n(407));w=w()}else{if(w=p(),aa===null)throw Error(n(349));(Us&30)!==0||Ib(k,p,w)}P.memoizedState=w;var U={value:w,getSnapshot:p};return P.queue=U,vp(Pb.bind(null,k,U,f),[f]),k.flags|=2048,Ao(9,fy.bind(null,k,U,w,p),void 0,null),w},useId:function(){var f=rs(),p=aa.identifierPrefix;if(Ke){var w=de,k=Pe;w=(k&~(1<<32-ei(k)-1)).toString(32)+w,p=":"+p+"R"+w,w=Hd++,0<w&&(p+="H"+w.toString(32)),p+=":"}else w=WB++,p=":"+p+"r"+w.toString(32)+":";return f.memoizedState=p},unstable_isNewReconciler:!1},vae={readContext:Ur,useCallback:TF,useContext:Ur,useEffect:bp,useImperativeHandle:NF,useInsertionEffect:jb,useLayoutEffect:wp,useMemo:_F,useReducer:gp,useRef:Cl,useState:function(){return gp(Cf)},useDebugValue:KB,useDeferredValue:function(f){var p=uo();return IF(p,oi.memoizedState,f)},useTransition:function(){var f=gp(Cf)[0],p=uo().memoizedState;return[f,p]},useMutableSource:_b,useSyncExternalStore:Ay,useId:PF,unstable_isNewReconciler:!1},bae={readContext:Ur,useCallback:TF,useContext:Ur,useEffect:bp,useImperativeHandle:NF,useInsertionEffect:jb,useLayoutEffect:wp,useMemo:_F,useReducer:Sc,useRef:Cl,useState:function(){return Sc(Cf)},useDebugValue:KB,useDeferredValue:function(f){var p=uo();return oi===null?p.memoizedState=f:IF(p,oi.memoizedState,f)},useTransition:function(){var f=Sc(Cf)[0],p=uo().memoizedState;return[f,p]},useMutableSource:_b,useSyncExternalStore:Ay,useId:PF,unstable_isNewReconciler:!1};function kl(f,p){if(f&&f.defaultProps){p=$({},p),f=f.defaultProps;for(var w in f)p[w]===void 0&&(p[w]=f[w]);return p}return p}function GB(f,p,w,k){p=f.memoizedState,w=w(k,p),w=w==null?p:$({},p,w),f.memoizedState=w,f.lanes===0&&(f.updateQueue.baseState=w)}var Fb={isMounted:function(f){return(f=f._reactInternals)?Ri(f)===f:!1},enqueueSetState:function(f,p,w){f=f._reactInternals;var k=ho(),P=Wd(f),U=Kr(k,P);U.payload=p,w!=null&&(U.callback=w),p=Gr(f,U,P),p!==null&&(Tl(p,f,P,k),ra(p,f,P))},enqueueReplaceState:function(f,p,w){f=f._reactInternals;var k=ho(),P=Wd(f),U=Kr(k,P);U.tag=1,U.payload=p,w!=null&&(U.callback=w),p=Gr(f,U,P),p!==null&&(Tl(p,f,P,k),ra(p,f,P))},enqueueForceUpdate:function(f,p){f=f._reactInternals;var w=ho(),k=Wd(f),P=Kr(w,k);P.tag=2,p!=null&&(P.callback=p),p=Gr(f,P,k),p!==null&&(Tl(p,f,k,w),ra(p,f,k))}};function LF(f,p,w,k,P,U,J){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(k,U,J):p.prototype&&p.prototype.isPureReactComponent?!Pa(w,k)||!Pa(P,U):!0}function DF(f,p,w){var k=!1,P=wc,U=p.contextType;return typeof U=="object"&&U!==null?U=Ur(U):(P=La(p)?ju:$i.current,k=p.contextTypes,U=(k=k!=null)?Ud(f,P):wc),p=new p(w,U),f.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Fb,f.stateNode=p,p._reactInternals=f,k&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=P,f.__reactInternalMemoizedMaskedChildContext=U),p}function MF(f,p,w,k){f=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(w,k),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(w,k),p.state!==f&&Fb.enqueueReplaceState(p,p.state,null)}function YB(f,p,w,k){var P=f.stateNode;P.props=w,P.state=f.memoizedState,P.refs={},qi(f);var U=p.contextType;typeof U=="object"&&U!==null?P.context=Ur(U):(U=La(p)?ju:$i.current,P.context=Ud(f,U)),P.state=f.memoizedState,U=p.getDerivedStateFromProps,typeof U=="function"&&(GB(f,p,U,w),P.state=f.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(p=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),p!==P.state&&Fb.enqueueReplaceState(P,P.state,null),ia(f,w,P,k),P.state=f.memoizedState),typeof P.componentDidMount=="function"&&(f.flags|=4194308)}function Sp(f,p){try{var w="",k=p;
vendor: 40,405 bytes, lines 38-40
38do w+=ce(k),k=k.return;while(k);var P=w}catch(U){P=`
39Error generating stack: `+U.message+`
40`+U.stack}return{value:f,source:p,stack:P,digest:null}}function XB(f,p,w){return{value:f,source:null,stack:w??null,digest:p??null}}function JB(f,p){try{console.error(p.value)}catch(w){setTimeout(function(){throw w})}}var wae=typeof WeakMap=="function"?WeakMap:Map;function UF(f,p,w){w=Kr(-1,w),w.tag=3,w.payload={element:null};var k=p.value;return w.callback=function(){Hb||(Hb=!0,f5=k),JB(f,p)},w}function RF(f,p,w){w=Kr(-1,w),w.tag=3;var k=f.type.getDerivedStateFromError;if(typeof k=="function"){var P=p.value;w.payload=function(){return k(P)},w.callback=function(){JB(f,p)}}var U=f.stateNode;return U!==null&&typeof U.componentDidCatch=="function"&&(w.callback=function(){JB(f,p),typeof k!="function"&&(zd===null?zd=new Set([this]):zd.add(this));var J=p.stack;this.componentDidCatch(p.value,{componentStack:J!==null?J:""})}),w}function QF(f,p,w){var k=f.pingCache;if(k===null){k=f.pingCache=new wae;var P=new Set;k.set(p,P)}else P=k.get(p),P===void 0&&(P=new Set,k.set(p,P));P.has(w)||(P.add(w),f=Fae.bind(null,f,p,w),p.then(f,f))}function HF(f){do{var p;if((p=f.tag===13)&&(p=f.memoizedState,p=p!==null?p.dehydrated!==null:!0),p)return f;f=f.return}while(f!==null);return null}function $F(f,p,w,k,P){return(f.mode&1)===0?(f===p?f.flags|=65536:(f.flags|=128,w.flags|=131072,w.flags&=-52805,w.tag===1&&(w.alternate===null?w.tag=17:(p=Kr(-1,1),p.tag=2,Gr(w,p,1))),w.lanes|=1),f):(f.flags|=65536,f.lanes=P,f)}var xae=C.ReactCurrentOwner,Io=!1;function fo(f,p,w,k){p.child=f===null?Nr(p,null,w,k):ii(p,f.child,w,k)}function qF(f,p,w,k,P){w=w.render;var U=p.ref;return Mr(p,P),k=Bf(f,p,w,k,U,P),w=Rs(),f!==null&&!Io?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~P,Lu(f,p,P)):(Ke&&w&&Qe(p),p.flags|=1,fo(f,p,k,P),p.child)}function zF(f,p,w,k,P){if(f===null){var U=w.type;return typeof U=="function"&&!b5(U)&&U.defaultProps===void 0&&w.compare===null&&w.defaultProps===void 0?(p.tag=15,p.type=U,VF(f,p,U,k,P)):(f=Kb(w.type,null,k,p,p.mode,P),f.ref=p.ref,f.return=p,p.child=f)}if(U=f.child,(f.lanes&P)===0){var J=U.memoizedProps;if(w=w.compare,w=w!==null?w:Pa,w(J,k)&&f.ref===p.ref)return Lu(f,p,P)}return p.flags|=1,f=Gd(U,k),f.ref=p.ref,f.return=p,p.child=f}function VF(f,p,w,k,P){if(f!==null){var U=f.memoizedProps;if(Pa(U,k)&&f.ref===p.ref)if(Io=!1,p.pendingProps=k=U,(f.lanes&P)!==0)(f.flags&131072)!==0&&(Io=!0);else return p.lanes=f.lanes,Lu(f,p,P)}return ZB(f,p,w,k,P)}function WF(f,p,w){var k=p.pendingProps,P=k.children,U=f!==null?f.memoizedState:null;if(k.mode==="hidden")if((p.mode&1)===0)p.memoizedState={baseLanes:0,cachePool:null,transitions:null},Gn(Cp,as),as|=w;else{if((w&1073741824)===0)return f=U!==null?U.baseLanes|w:w,p.lanes=p.childLanes=1073741824,p.memoizedState={baseLanes:f,cachePool:null,transitions:null},p.updateQueue=null,Gn(Cp,as),as|=f,null;p.memoizedState={baseLanes:0,cachePool:null,transitions:null},k=U!==null?U.baseLanes:w,Gn(Cp,as),as|=k}else U!==null?(k=U.baseLanes|w,p.memoizedState=null):k=w,Gn(Cp,as),as|=k;return fo(f,p,P,w),p.child}function KF(f,p){var w=p.ref;(f===null&&w!==null||f!==null&&f.ref!==w)&&(p.flags|=512,p.flags|=2097152)}function ZB(f,p,w,k,P){var U=La(w)?ju:$i.current;return U=Ud(p,U),Mr(p,P),w=Bf(f,p,w,k,U,P),k=Rs(),f!==null&&!Io?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~P,Lu(f,p,P)):(Ke&&k&&Qe(p),p.flags|=1,fo(f,p,w,P),p.child)}function GF(f,p,w,k,P){if(La(w)){var U=!0;Ou(p)}else U=!1;if(Mr(p,P),p.stateNode===null)Db(f,p),DF(p,w,k),YB(p,w,k,P),k=!0;else if(f===null){var J=p.stateNode,pe=p.memoizedProps;J.props=pe;var Se=J.context,De=w.contextType;typeof De=="object"&&De!==null?De=Ur(De):(De=La(w)?ju:$i.current,De=Ud(p,De));var et=w.getDerivedStateFromProps,tt=typeof et=="function"||typeof J.getSnapshotBeforeUpdate=="function";tt||typeof J.UNSAFE_componentWillReceiveProps!="function"&&typeof J.componentWillReceiveProps!="function"||(pe!==k||Se!==De)&&MF(p,J,k,De),ai=!1;var Je=p.memoizedState;J.state=Je,ia(p,k,J,P),Se=p.memoizedState,pe!==k||Je!==Se||Fa.current||ai?(typeof et=="function"&&(GB(p,w,et,k),Se=p.memoizedState),(pe=ai||LF(p,w,pe,k,Je,Se,De))?(tt||typeof J.UNSAFE_componentWillMount!="function"&&typeof J.componentWillMount!="function"||(typeof J.componentWillMount=="function"&&J.componentWillMount(),typeof J.UNSAFE_componentWillMount=="function"&&J.UNSAFE_componentWillMount()),typeof J.componentDidMount=="function"&&(p.flags|=4194308)):(typeof J.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=k,p.memoizedState=Se),J.props=k,J.state=Se,J.context=De,k=pe):(typeof J.componentDidMount=="function"&&(p.flags|=4194308),k=!1)}else{J=p.stateNode,Da(f,p),pe=p.memoizedProps,De=p.type===p.elementType?pe:kl(p.type,pe),J.props=De,tt=p.pendingProps,Je=J.context,Se=w.contextType,typeof Se=="object"&&Se!==null?Se=Ur(Se):(Se=La(w)?ju:$i.current,Se=Ud(p,Se));var yt=w.getDerivedStateFromProps;(et=typeof yt=="function"||typeof J.getSnapshotBeforeUpdate=="function")||typeof J.UNSAFE_componentWillReceiveProps!="function"&&typeof J.componentWillReceiveProps!="function"||(pe!==tt||Je!==Se)&&MF(p,J,k,Se),ai=!1,Je=p.memoizedState,J.state=Je,ia(p,k,J,P);var _t=p.memoizedState;pe!==tt||Je!==_t||Fa.current||ai?(typeof yt=="function"&&(GB(p,w,yt,k),_t=p.memoizedState),(De=ai||LF(p,w,De,k,Je,_t,Se)||!1)?(et||typeof J.UNSAFE_componentWillUpdate!="function"&&typeof J.componentWillUpdate!="function"||(typeof J.componentWillUpdate=="function"&&J.componentWillUpdate(k,_t,Se),typeof J.UNSAFE_componentWillUpdate=="function"&&J.UNSAFE_componentWillUpdate(k,_t,Se)),typeof J.componentDidUpdate=="function"&&(p.flags|=4),typeof J.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof J.componentDidUpdate!="function"||pe===f.memoizedProps&&Je===f.memoizedState||(p.flags|=4),typeof J.getSnapshotBeforeUpdate!="function"||pe===f.memoizedProps&&Je===f.memoizedState||(p.flags|=1024),p.memoizedProps=k,p.memoizedState=_t),J.props=k,J.state=_t,J.context=Se,k=De):(typeof J.componentDidUpdate!="function"||pe===f.memoizedProps&&Je===f.memoizedState||(p.flags|=4),typeof J.getSnapshotBeforeUpdate!="function"||pe===f.memoizedProps&&Je===f.memoizedState||(p.flags|=1024),k=!1)}return e5(f,p,w,k,U,P)}function e5(f,p,w,k,P,U){KF(f,p);var J=(p.flags&128)!==0;if(!k&&!J)return P&&Nb(p,w,!1),Lu(f,p,U);k=p.stateNode,xae.current=p;var pe=J&&typeof w.getDerivedStateFromError!="function"?null:k.render();return p.flags|=1,f!==null&&J?(p.child=ii(p,f.child,null,U),p.child=ii(p,null,pe,U)):fo(f,p,pe,U),p.memoizedState=k.state,P&&Nb(p,w,!0),p.child}function YF(f){var p=f.stateNode;p.pendingContext?Eb(f,p.pendingContext,p.pendingContext!==p.context):p.context&&Eb(f,p.context,!1),Rd(f,p.containerInfo)}function XF(f,p,w,k,P){return St(),ct(P),p.flags|=256,fo(f,p,w,k),p.child}var t5={dehydrated:null,treeContext:null,retryLane:0};function n5(f){return{baseLanes:f,cachePool:null,transitions:null}}function JF(f,p,w){var k=p.pendingProps,P=hr.current,U=!1,J=(p.flags&128)!==0,pe;if((pe=J)||(pe=f!==null&&f.memoizedState===null?!1:(P&2)!==0),pe?(U=!0,p.flags&=-129):(f===null||f.memoizedState!==null)&&(P|=1),Gn(hr,P&1),f===null)return Nt(p),f=p.memoizedState,f!==null&&(f=f.dehydrated,f!==null)?((p.mode&1)===0?p.lanes=1:f.data==="$!"?p.lanes=8:p.lanes=1073741824,null):(J=k.children,f=k.fallback,U?(k=p.mode,U=p.child,J={mode:"hidden",children:J},(k&1)===0&&U!==null?(U.childLanes=0,U.pendingProps=J):U=Gb(J,k,0,null),f=If(f,k,w,null),U.return=p,f.return=p,U.sibling=f,p.child=U,p.child.memoizedState=n5(w),p.memoizedState=t5,f):r5(p,J));if(P=f.memoizedState,P!==null&&(pe=P.dehydrated,pe!==null))return Sae(f,p,J,k,pe,P,w);if(U){U=k.fallback,J=p.mode,P=f.child,pe=P.sibling;var Se={mode:"hidden",children:k.children};return(J&1)===0&&p.child!==P?(k=p.child,k.childLanes=0,k.pendingProps=Se,p.deletions=null):(k=Gd(P,Se),k.subtreeFlags=P.subtreeFlags&14680064),pe!==null?U=Gd(pe,U):(U=If(U,J,w,null),U.flags|=2),U.return=p,k.return=p,k.sibling=U,p.child=k,k=U,U=p.child,J=f.child.memoizedState,J=J===null?n5(w):{baseLanes:J.baseLanes|w,cachePool:null,transitions:J.transitions},U.memoizedState=J,U.childLanes=f.childLanes&~w,p.memoizedState=t5,k}return U=f.child,f=U.sibling,k=Gd(U,{mode:"visible",children:k.children}),(p.mode&1)===0&&(k.lanes=w),k.return=p,k.sibling=null,f!==null&&(w=p.deletions,w===null?(p.deletions=[f],p.flags|=16):w.push(f)),p.child=k,p.memoizedState=null,k}function r5(f,p){return p=Gb({mode:"visible",children:p},f.mode,0,null),p.return=f,f.child=p}function Lb(f,p,w,k){return k!==null&&ct(k),ii(p,f.child,null,w),f=r5(p,p.pendingProps.children),f.flags|=2,p.memoizedState=null,f}function Sae(f,p,w,k,P,U,J){if(w)return p.flags&256?(p.flags&=-257,k=XB(Error(n(422))),Lb(f,p,J,k)):p.memoizedState!==null?(p.child=f.child,p.flags|=128,null):(U=k.fallback,P=p.mode,k=Gb({mode:"visible",children:k.children},P,0,null),U=If(U,P,J,null),U.flags|=2,k.return=p,U.return=p,k.sibling=U,p.child=k,(p.mode&1)!==0&&ii(p,f.child,null,J),p.child.memoizedState=n5(J),p.memoizedState=t5,U);if((p.mode&1)===0)return Lb(f,p,J,null);if(P.data==="$!"){if(k=P.nextSibling&&P.nextSibling.dataset,k)var pe=k.dgst;return k=pe,U=Error(n(419)),k=XB(U,k,void 0),Lb(f,p,J,k)}if(pe=(J&f.childLanes)!==0,Io||pe){if(k=aa,k!==null){switch(J&-J){case 4:P=2;break;case 16:P=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:P=32;break;case 536870912:P=268435456;break;default:P=0}P=(P&(k.suspendedLanes|J))!==0?0:P,P!==0&&P!==U.retryLane&&(U.retryLane=P,ar(f,P),Tl(k,f,P,-1))}return v5(),k=XB(Error(n(421))),Lb(f,p,J,k)}return P.data==="$?"?(p.flags|=128,p.child=f.child,p=Lae.bind(null,f),P._reactRetry=p,null):(f=U.treeContext,Re=ma(P.nextSibling),Me=p,Ke=!0,Ge=null,f!==null&&(se[ue++]=Pe,se[ue++]=de,se[ue++]=xe,Pe=f.id,de=f.overflow,xe=p),p=r5(p,k.children),p.flags|=4096,p)}function ZF(f,p,w){f.lanes|=p;var k=f.alternate;k!==null&&(k.lanes|=p),Un(f.return,p,w)}function i5(f,p,w,k,P){var U=f.memoizedState;U===null?f.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:k,tail:w,tailMode:P}:(U.isBackwards=p,U.rendering=null,U.renderingStartTime=0,U.last=k,U.tail=w,U.tailMode=P)}function eL(f,p,w){var k=p.pendingProps,P=k.revealOrder,U=k.tail;if(fo(f,p,k.children,w),k=hr.current,(k&2)!==0)k=k&1|2,p.flags|=128;else{if(f!==null&&(f.flags&128)!==0)e:for(f=p.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&ZF(f,w,p);else if(f.tag===19)ZF(f,w,p);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===p)break e;for(;f.sibling===null;){if(f.return===null||f.return===p)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}k&=1}if(Gn(hr,k),(p.mode&1)===0)p.memoizedState=null;else switch(P){case"forwards":for(w=p.child,P=null;w!==null;)f=w.alternate,f!==null&&ns(f)===null&&(P=w),w=w.sibling;w=P,w===null?(P=p.child,p.child=null):(P=w.sibling,w.sibling=null),i5(p,!1,P,w,U);break;case"backwards":for(w=null,P=p.child,p.child=null;P!==null;){if(f=P.alternate,f!==null&&ns(f)===null){p.child=P;break}f=P.sibling,P.sibling=w,w=P,P=f}i5(p,!0,w,null,U);break;case"together":i5(p,!1,null,null,void 0);break;default:p.memoizedState=null}return p.child}function Db(f,p){(p.mode&1)===0&&f!==null&&(f.alternate=null,p.alternate=null,p.flags|=2)}function Lu(f,p,w){if(f!==null&&(p.dependencies=f.dependencies),Ef|=p.lanes,(w&p.childLanes)===0)return null;if(f!==null&&p.child!==f.child)throw Error(n(153));if(p.child!==null){for(f=p.child,w=Gd(f,f.pendingProps),p.child=w,w.return=p;f.sibling!==null;)f=f.sibling,w=w.sibling=Gd(f,f.pendingProps),w.return=p;w.sibling=null}return p.child}function Bae(f,p,w){switch(p.tag){case 3:YF(p),St();break;case 5:Tb(p);break;case 1:La(p.type)&&Ou(p);break;case 4:Rd(p,p.stateNode.containerInfo);break;case 10:var k=p.type._context,P=p.memoizedProps.value;Gn(pi,k._currentValue),k._currentValue=P;break;case 13:if(k=p.memoizedState,k!==null)return k.dehydrated!==null?(Gn(hr,hr.current&1),p.flags|=128,null):(w&p.child.childLanes)!==0?JF(f,p,w):(Gn(hr,hr.current&1),f=Lu(f,p,w),f!==null?f.sibling:null);Gn(hr,hr.current&1);break;case 19:if(k=(w&p.childLanes)!==0,(f.flags&128)!==0){if(k)return eL(f,p,w);p.flags|=128}if(P=p.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),Gn(hr,hr.current),k)break;return null;case 22:case 23:return p.lanes=0,WF(f,p,w)}return Lu(f,p,w)}var tL,a5,nL,rL;tL=function(f,p){for(var w=p.child;w!==null;){if(w.tag===5||w.tag===6)f.appendChild(w.stateNode);else if(w.tag!==4&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===p)break;for(;w.sibling===null;){if(w.return===null||w.return===p)return;w=w.return}w.sibling.return=w.return,w=w.sibling}},a5=function(){},nL=function(f,p,w,k){var P=f.memoizedProps;if(P!==k){f=p.stateNode,Sl(_i.current);var U=null;switch(w){case"input":P=Ye(f,P),k=Ye(f,k),U=[];break;case"select":P=$({},P,{value:void 0}),k=$({},k,{value:void 0}),U=[];break;case"textarea":P=pt(f,P),k=pt(f,k),U=[];break;default:typeof P.onClick!="function"&&typeof k.onClick=="function"&&(f.onclick=Ld)}fn(w,k);var J;w=null;for(De in P)if(!k.hasOwnProperty(De)&&P.hasOwnProperty(De)&&P[De]!=null)if(De==="style"){var pe=P[De];for(J in pe)pe.hasOwnProperty(J)&&(w||(w={}),w[J]="")}else De!=="dangerouslySetInnerHTML"&&De!=="children"&&De!=="suppressContentEditableWarning"&&De!=="suppressHydrationWarning"&&De!=="autoFocus"&&(i.hasOwnProperty(De)?U||(U=[]):(U=U||[]).push(De,null));for(De in k){var Se=k[De];if(pe=P!=null?P[De]:void 0,k.hasOwnProperty(De)&&Se!==pe&&(Se!=null||pe!=null))if(De==="style")if(pe){for(J in pe)!pe.hasOwnProperty(J)||Se&&Se.hasOwnProperty(J)||(w||(w={}),w[J]="");for(J in Se)Se.hasOwnProperty(J)&&pe[J]!==Se[J]&&(w||(w={}),w[J]=Se[J])}else w||(U||(U=[]),U.push(De,w)),w=Se;else De==="dangerouslySetInnerHTML"?(Se=Se?Se.__html:void 0,pe=pe?pe.__html:void 0,Se!=null&&pe!==Se&&(U=U||[]).push(De,Se)):De==="children"?typeof Se!="string"&&typeof Se!="number"||(U=U||[]).push(De,""+Se):De!=="suppressContentEditableWarning"&&De!=="suppressHydrationWarning"&&(i.hasOwnProperty(De)?(Se!=null&&De==="onScroll"&&rr("scroll",f),U||pe===Se||(U=[])):(U=U||[]).push(De,Se))}w&&(U=U||[]).push("style",w);var De=U;(p.updateQueue=De)&&(p.flags|=4)}},rL=function(f,p,w,k){w!==k&&(p.flags|=4)};function hy(f,p){if(!Ke)switch(f.tailMode){case"hidden":p=f.tail;for(var w=null;p!==null;)p.alternate!==null&&(w=p),p=p.sibling;w===null?f.tail=null:w.sibling=null;break;case"collapsed":w=f.tail;for(var k=null;w!==null;)w.alternate!==null&&(k=w),w=w.sibling;k===null?p||f.tail===null?f.tail=null:f.tail.sibling=null:k.sibling=null}}function Ma(f){var p=f.alternate!==null&&f.alternate.child===f.child,w=0,k=0;if(p)for(var P=f.child;P!==null;)w|=P.lanes|P.childLanes,k|=P.subtreeFlags&14680064,k|=P.flags&14680064,P.return=f,P=P.sibling;else for(P=f.child;P!==null;)w|=P.lanes|P.childLanes,k|=P.subtreeFlags,k|=P.flags,P.return=f,P=P.sibling;return f.subtreeFlags|=k,f.childLanes=w,p}function Cae(f,p,w){var k=p.pendingProps;switch(Oe(p),p.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ma(p),null;case 1:return La(p.type)&&fp(),Ma(p),null;case 3:return k=p.stateNode,Ms(),zn(Fa),zn($i),dy(),k.pendingContext&&(k.context=k.pendingContext,k.pendingContext=null),(f===null||f.child===null)&&(Dr(p)?p.flags|=4:f===null||f.memoizedState.isDehydrated&&(p.flags&256)===0||(p.flags|=1024,Ge!==null&&(m5(Ge),Ge=null))),a5(f,p),Ma(p),null;case 5:cy(p);var P=Sl(xc.current);if(w=p.type,f!==null&&p.stateNode!=null)nL(f,p,w,k,P),f.ref!==p.ref&&(p.flags|=512,p.flags|=2097152);else{if(!k){if(p.stateNode===null)throw Error(n(166));return Ma(p),null}if(f=Sl(_i.current),Dr(p)){k=p.stateNode,w=p.type;var U=p.memoizedProps;switch(k[Ds]=p,k[Dd]=U,f=(p.mode&1)!==0,w){case"dialog":rr("cancel",k),rr("close",k);break;case"iframe":case"object":case"embed":rr("load",k);break;case"video":case"audio":for(P=0;P<vc.length;P++)rr(vc[P],k);break;case"source":rr("error",k);break;case"img":case"image":case"link":rr("error",k),rr("load",k);break;case"details":rr("toggle",k);break;case"input":ae(k,U),rr("invalid",k);break;case"select":k._wrapperState={wasMultiple:!!U.multiple},rr("invalid",k);break;case"textarea":Bt(k,U),rr("invalid",k)}fn(w,U),P=null;for(var J in U)if(U.hasOwnProperty(J)){var pe=U[J];J==="children"?typeof pe=="string"?k.textContent!==pe&&(U.suppressHydrationWarning!==!0&&Ap(k.textContent,pe,f),P=["children",pe]):typeof pe=="number"&&k.textContent!==""+pe&&(U.suppressHydrationWarning!==!0&&Ap(k.textContent,pe,f),P=["children",""+pe]):i.hasOwnProperty(J)&&pe!=null&&J==="onScroll"&&rr("scroll",k)}switch(w){case"input":Ee(k),ut(k,U,!0);break;case"textarea":Ee(k),zt(k);break;case"select":case"option":break;default:typeof U.onClick=="function"&&(k.onclick=Ld)}k=P,p.updateQueue=k,k!==null&&(p.flags|=4)}else{J=P.nodeType===9?P:P.ownerDocument,f==="http://www.w3.org/1999/xhtml"&&(f=Ie(w)),f==="http://www.w3.org/1999/xhtml"?w==="script"?(f=J.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild)):typeof k.is=="string"?f=J.createElement(w,{is:k.is}):(f=J.createElement(w),w==="select"&&(J=f,k.multiple?J.multiple=!0:k.size&&(J.size=k.size))):f=J.createElementNS(f,w),f[Ds]=p,f[Dd]=k,tL(f,p,!1,!1),p.stateNode=f;e:{switch(J=wt(w,k),w){case"dialog":rr("cancel",f),rr("close",f),P=k;break;case"iframe":case"object":case"embed":rr("load",f),P=k;break;case"video":case"audio":for(P=0;P<vc.length;P++)rr(vc[P],f);P=k;break;case"source":rr("error",f),P=k;break;case"img":case"image":case"link":rr("error",f),rr("load",f),P=k;break;case"details":rr("toggle",f),P=k;break;case"input":ae(f,k),P=Ye(f,k),rr("invalid",f);break;case"option":P=k;break;case"select":f._wrapperState={wasMultiple:!!k.multiple},P=$({},k,{value:void 0}),rr("invalid",f);break;case"textarea":Bt(f,k),P=pt(f,k),rr("invalid",f);break;default:P=k}fn(w,P),pe=P;for(U in pe)if(pe.hasOwnProperty(U)){var Se=pe[U];U==="style"?Yt(f,Se):U==="dangerouslySetInnerHTML"?(Se=Se?Se.__html:void 0,Se!=null&&Ze(f,Se)):U==="children"?typeof Se=="string"?(w!=="textarea"||Se!=="")&&At(f,Se):typeof Se=="number"&&At(f,""+Se):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(i.hasOwnProperty(U)?Se!=null&&U==="onScroll"&&rr("scroll",f):Se!=null&&B(f,U,Se,J))}switch(w){case"input":Ee(f),ut(f,k,!1);break;case"textarea":Ee(f),zt(f);break;case"option":k.value!=null&&f.setAttribute("value",""+ye(k.value));break;case"select":f.multiple=!!k.multiple,U=k.value,U!=null?it(f,!!k.multiple,U,!1):k.defaultValue!=null&&it(f,!!k.multiple,k.defaultValue,!0);break;default:typeof P.onClick=="function"&&(f.onclick=Ld)}switch(w){case"button":case"input":case"select":case"textarea":k=!!k.autoFocus;break e;case"img":k=!0;break e;default:k=!1}}k&&(p.flags|=4)}p.ref!==null&&(p.flags|=512,p.flags|=2097152)}return Ma(p),null;case 6:if(f&&p.stateNode!=null)rL(f,p,f.memoizedProps,k);else{if(typeof k!="string"&&p.stateNode===null)throw Error(n(166));if(w=Sl(xc.current),Sl(_i.current),Dr(p)){if(k=p.stateNode,w=p.memoizedProps,k[Ds]=p,(U=k.nodeValue!==w)&&(f=Me,f!==null))switch(f.tag){case 3:Ap(k.nodeValue,w,(f.mode&1)!==0);break;case 5:f.memoizedProps.suppressHydrationWarning!==!0&&Ap(k.nodeValue,w,(f.mode&1)!==0)}U&&(p.flags|=4)}else k=(w.nodeType===9?w:w.ownerDocument).createTextNode(k),k[Ds]=p,p.stateNode=k}return Ma(p),null;case 13:if(zn(hr),k=p.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(Ke&&Re!==null&&(p.mode&1)!==0&&(p.flags&128)===0)hn(),St(),p.flags|=98560,U=!1;else if(U=Dr(p),k!==null&&k.dehydrated!==null){if(f===null){if(!U)throw Error(n(318));if(U=p.memoizedState,U=U!==null?U.dehydrated:null,!U)throw Error(n(317));U[Ds]=p}else St(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;Ma(p),U=!1}else Ge!==null&&(m5(Ge),Ge=null),U=!0;if(!U)return p.flags&65536?p:null}return(p.flags&128)!==0?(p.lanes=w,p):(k=k!==null,k!==(f!==null&&f.memoizedState!==null)&&k&&(p.child.flags|=8192,(p.mode&1)!==0&&(f===null||(hr.current&1)!==0?zi===0&&(zi=3):v5())),p.updateQueue!==null&&(p.flags|=4),Ma(p),null);case 4:return Ms(),a5(f,p),f===null&&Tu(p.stateNode.containerInfo),Ma(p),null;case 10:return vr(p.type._context),Ma(p),null;case 17:return La(p.type)&&fp(),Ma(p),null;case 19:if(zn(hr),U=p.memoizedState,U===null)return Ma(p),null;if(k=(p.flags&128)!==0,J=U.rendering,J===null)if(k)hy(U,!1);else{if(zi!==0||f!==null&&(f.flags&128)!==0)for(f=p.child;f!==null;){if(J=ns(f),J!==null){for(p.flags|=128,hy(U,!1),k=J.updateQueue,k!==null&&(p.updateQueue=k,p.flags|=4),p.subtreeFlags=0,k=w,w=p.child;w!==null;)U=w,f=k,U.flags&=14680066,J=U.alternate,J===null?(U.childLanes=0,U.lanes=f,U.child=null,U.subtreeFlags=0,U.memoizedProps=null,U.memoizedState=null,U.updateQueue=null,U.dependencies=null,U.stateNode=null):(U.childLanes=J.childLanes,U.lanes=J.lanes,U.child=J.child,U.subtreeFlags=0,U.deletions=null,U.memoizedProps=J.memoizedProps,U.memoizedState=J.memoizedState,U.updateQueue=J.updateQueue,U.type=J.type,f=J.dependencies,U.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),w=w.sibling;return Gn(hr,hr.current&1|2),p.child}f=f.sibling}U.tail!==null&&fr()>kp&&(p.flags|=128,k=!0,hy(U,!1),p.lanes=4194304)}else{if(!k)if(f=ns(J),f!==null){if(p.flags|=128,k=!0,w=f.updateQueue,w!==null&&(p.updateQueue=w,p.flags|=4),hy(U,!0),U.tail===null&&U.tailMode==="hidden"&&!J.alternate&&!Ke)return Ma(p),null}else 2*fr()-U.renderingStartTime>kp&&w!==1073741824&&(p.flags|=128,k=!0,hy(U,!1),p.lanes=4194304);U.isBackwards?(J.sibling=p.child,p.child=J):(w=U.last,w!==null?w.sibling=J:p.child=J,U.last=J)}return U.tail!==null?(p=U.tail,U.rendering=p,U.tail=p.sibling,U.renderingStartTime=fr(),p.sibling=null,w=hr.current,Gn(hr,k?w&1|2:w&1),p):(Ma(p),null);case 22:case 23:return y5(),k=p.memoizedState!==null,f!==null&&f.memoizedState!==null!==k&&(p.flags|=8192),k&&(p.mode&1)!==0?(as&1073741824)!==0&&(Ma(p),p.subtreeFlags&6&&(p.flags|=8192)):Ma(p),null;case 24:return null;case 25:return null}throw Error(n(156,p.tag))}function kae(f,p){switch(Oe(p),p.tag){case 1:return La(p.type)&&fp(),f=p.flags,f&65536?(p.flags=f&-65537|128,p):null;case 3:return Ms(),zn(Fa),zn($i),dy(),f=p.flags,(f&65536)!==0&&(f&128)===0?(p.flags=f&-65537|128,p):null;case 5:return cy(p),null;case 13:if(zn(hr),f=p.memoizedState,f!==null&&f.dehydrated!==null){if(p.alternate===null)throw Error(n(340));St()}return f=p.flags,f&65536?(p.flags=f&-65537|128,p):null;case 19:return zn(hr),null;case 4:return Ms(),null;case 10:return vr(p.type._context),null;case 22:case 23:return y5(),null;case 24:return null;default:return null}}var Mb=!1,Ua=!1,Eae=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function Bp(f,p){var w=f.ref;if(w!==null)if(typeof w=="function")try{w(null)}catch(k){si(f,p,k)}else w.current=null}function o5(f,p,w){try{w()}catch(k){si(f,p,k)}}var iL=!1;function Nae(f,p){if(wf=Bd,f=ri(),Zo(f)){if("selectionStart"in f)var w={start:f.selectionStart,end:f.selectionEnd};else e:{w=(w=f.ownerDocument)&&w.defaultView||window;var k=w.getSelection&&w.getSelection();if(k&&k.rangeCount!==0){w=k.anchorNode;var P=k.anchorOffset,U=k.focusNode;k=k.focusOffset;try{w.nodeType,U.nodeType}catch{w=null;break e}var J=0,pe=-1,Se=-1,De=0,et=0,tt=f,Je=null;t:for(;;){for(var yt;tt!==w||P!==0&&tt.nodeType!==3||(pe=J+P),tt!==U||k!==0&&tt.nodeType!==3||(Se=J+k),tt.nodeType===3&&(J+=tt.nodeValue.length),(yt=tt.firstChild)!==null;)Je=tt,tt=yt;for(;;){if(tt===f)break t;if(Je===w&&++De===P&&(pe=J),Je===U&&++et===k&&(Se=J),(yt=tt.nextSibling)!==null)break;tt=Je,Je=tt.parentNode}tt=yt}w=pe===-1||Se===-1?null:{start:pe,end:Se}}else w=null}w=w||{start:0,end:0}}else w=null;for(Iu={focusedElem:f,selectionRange:w},Bd=!1,Ct=p;Ct!==null;)if(p=Ct,f=p.child,(p.subtreeFlags&1028)!==0&&f!==null)f.return=p,Ct=f;else for(;Ct!==null;){p=Ct;try{var _t=p.alternate;if((p.flags&1024)!==0)switch(p.tag){case 0:case 11:case 15:break;case 1:if(_t!==null){var Ot=_t.memoizedProps,gi=_t.memoizedState,je=p.stateNode,Ce=je.getSnapshotBeforeUpdate(p.elementType===p.type?Ot:kl(p.type,Ot),gi);je.__reactInternalSnapshotBeforeUpdate=Ce}break;case 3:var Fe=p.stateNode.containerInfo;Fe.nodeType===1?Fe.textContent="":Fe.nodeType===9&&Fe.documentElement&&Fe.removeChild(Fe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ot){si(p,p.return,ot)}if(f=p.sibling,f!==null){f.return=p.return,Ct=f;break}Ct=p.return}return _t=iL,iL=!1,_t}function py(f,p,w){var k=p.updateQueue;if(k=k!==null?k.lastEffect:null,k!==null){var P=k=k.next;do{if((P.tag&f)===f){var U=P.destroy;P.destroy=void 0,U!==void 0&&o5(p,w,U)}P=P.next}while(P!==k)}}function Ub(f,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var w=p=p.next;do{if((w.tag&f)===f){var k=w.create;w.destroy=k()}w=w.next}while(w!==p)}}function s5(f){var p=f.ref;if(p!==null){var w=f.stateNode;switch(f.tag){case 5:f=w;break;default:f=w}typeof p=="function"?p(f):p.current=f}}function aL(f){var p=f.alternate;p!==null&&(f.alternate=null,aL(p)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(p=f.stateNode,p!==null&&(delete p[Ds],delete p[Dd],delete p[Oa],delete p[zB],delete p[VB])),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}function oL(f){return f.tag===5||f.tag===3||f.tag===4}function sL(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||oL(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function l5(f,p,w){var k=f.tag;if(k===5||k===6)f=f.stateNode,p?w.nodeType===8?w.parentNode.insertBefore(f,p):w.insertBefore(f,p):(w.nodeType===8?(p=w.parentNode,p.insertBefore(f,w)):(p=w,p.appendChild(f)),w=w._reactRootContainer,w!=null||p.onclick!==null||(p.onclick=Ld));else if(k!==4&&(f=f.child,f!==null))for(l5(f,p,w),f=f.sibling;f!==null;)l5(f,p,w),f=f.sibling}function c5(f,p,w){var k=f.tag;if(k===5||k===6)f=f.stateNode,p?w.insertBefore(f,p):w.appendChild(f);else if(k!==4&&(f=f.child,f!==null))for(c5(f,p,w),f=f.sibling;f!==null;)c5(f,p,w),f=f.sibling}var ga=null,El=!1;function qd(f,p,w){for(w=w.child;w!==null;)lL(f,p,w),w=w.sibling}function lL(f,p,w){if(io&&typeof io.onCommitFiberUnmount=="function")try{io.onCommitFiberUnmount(su,w)}catch{}switch(w.tag){case 5:Ua||Bp(w,p);case 6:var k=ga,P=El;ga=null,qd(f,p,w),ga=k,El=P,ga!==null&&(El?(f=ga,w=w.stateNode,f.nodeType===8?f.parentNode.removeChild(w):f.removeChild(w)):ga.removeChild(w.stateNode));break;case 18:ga!==null&&(El?(f=ga,w=w.stateNode,f.nodeType===8?oy(f.parentNode,w):f.nodeType===1&&oy(f,w),hu(f)):oy(ga,w.stateNode));break;case 4:k=ga,P=El,ga=w.stateNode.containerInfo,El=!0,qd(f,p,w),ga=k,El=P;break;case 0:case 11:case 14:case 15:if(!Ua&&(k=w.updateQueue,k!==null&&(k=k.lastEffect,k!==null))){P=k=k.next;do{var U=P,J=U.destroy;U=U.tag,J!==void 0&&((U&2)!==0||(U&4)!==0)&&o5(w,p,J),P=P.next}while(P!==k)}qd(f,p,w);break;case 1:if(!Ua&&(Bp(w,p),k=w.stateNode,typeof k.componentWillUnmount=="function"))try{k.props=w.memoizedProps,k.state=w.memoizedState,k.componentWillUnmount()}catch(pe){si(w,p,pe)}qd(f,p,w);break;case 21:qd(f,p,w);break;case 22:w.mode&1?(Ua=(k=Ua)||w.memoizedState!==null,qd(f,p,w),Ua=k):qd(f,p,w);break;default:qd(f,p,w)}}function cL(f){var p=f.updateQueue;if(p!==null){f.updateQueue=null;var w=f.stateNode;w===null&&(w=f.stateNode=new Eae),p.forEach(function(k){var P=Dae.bind(null,f,k);w.has(k)||(w.add(k),k.then(P,P))})}}function Nl(f,p){var w=p.deletions;if(w!==null)for(var k=0;k<w.length;k++){var P=w[k];try{var U=f,J=p,pe=J;e:for(;pe!==null;){switch(pe.tag){case 5:ga=pe.stateNode,El=!1;break e;case 3:ga=pe.stateNode.containerInfo,El=!0;break e;case 4:ga=pe.stateNode.containerInfo,El=!0;break e}pe=pe.return}if(ga===null)throw Error(n(160));lL(U,J,P),ga=null,El=!1;var Se=P.alternate;Se!==null&&(Se.return=null),P.return=null}catch(De){si(P,p,De)}}if(p.subtreeFlags&12854)for(p=p.child;p!==null;)uL(p,f),p=p.sibling}function uL(f,p){var w=f.alternate,k=f.flags;switch(f.tag){case 0:case 11:case 14:case 15:if(Nl(p,f),Bc(f),k&4){try{py(3,f,f.return),Ub(3,f)}catch(Ot){si(f,f.return,Ot)}try{py(5,f,f.return)}catch(Ot){si(f,f.return,Ot)}}break;case 1:Nl(p,f),Bc(f),k&512&&w!==null&&Bp(w,w.return);break;case 5:if(Nl(p,f),Bc(f),k&512&&w!==null&&Bp(w,w.return),f.flags&32){var P=f.stateNode;try{At(P,"")}catch(Ot){si(f,f.return,Ot)}}if(k&4&&(P=f.stateNode,P!=null)){var U=f.memoizedProps,J=w!==null?w.memoizedProps:U,pe=f.type,Se=f.updateQueue;if(f.updateQueue=null,Se!==null)try{pe==="input"&&U.type==="radio"&&U.name!=null&&Le(P,U),wt(pe,J);var De=wt(pe,U);for(J=0;J<Se.length;J+=2){var et=Se[J],tt=Se[J+1];et==="style"?Yt(P,tt):et==="dangerouslySetInnerHTML"?Ze(P,tt):et==="children"?At(P,tt):B(P,et,tt,De)}switch(pe){case"input":st(P,U);break;case"textarea":gn(P,U);break;case"select":var Je=P._wrapperState.wasMultiple;P._wrapperState.wasMultiple=!!U.multiple;var yt=U.value;yt!=null?it(P,!!U.multiple,yt,!1):Je!==!!U.multiple&&(U.defaultValue!=null?it(P,!!U.multiple,U.defaultValue,!0):it(P,!!U.multiple,U.multiple?[]:"",!1))}P[Dd]=U}catch(Ot){si(f,f.return,Ot)}}break;case 6:if(Nl(p,f),Bc(f),k&4){if(f.stateNode===null)throw Error(n(162));P=f.stateNode,U=f.memoizedProps;try{P.nodeValue=U}catch(Ot){si(f,f.return,Ot)}}break;case 3:if(Nl(p,f),Bc(f),k&4&&w!==null&&w.memoizedState.isDehydrated)try{hu(p.containerInfo)}catch(Ot){si(f,f.return,Ot)}break;case 4:Nl(p,f),Bc(f);break;case 13:Nl(p,f),Bc(f),P=f.child,P.flags&8192&&(U=P.memoizedState!==null,P.stateNode.isHidden=U,!U||P.alternate!==null&&P.alternate.memoizedState!==null||(A5=fr())),k&4&&cL(f);break;case 22:if(et=w!==null&&w.memoizedState!==null,f.mode&1?(Ua=(De=Ua)||et,Nl(p,f),Ua=De):Nl(p,f),Bc(f),k&8192){if(De=f.memoizedState!==null,(f.stateNode.isHidden=De)&&!et&&(f.mode&1)!==0)for(Ct=f,et=f.child;et!==null;){for(tt=Ct=et;Ct!==null;){switch(Je=Ct,yt=Je.child,Je.tag){case 0:case 11:case 14:case 15:py(4,Je,Je.return);break;case 1:Bp(Je,Je.return);var _t=Je.stateNode;if(typeof _t.componentWillUnmount=="function"){k=Je,w=Je.return;try{p=k,_t.props=p.memoizedProps,_t.state=p.memoizedState,_t.componentWillUnmount()}catch(Ot){si(k,w,Ot)}}break;case 5:Bp(Je,Je.return);break;case 22:if(Je.memoizedState!==null){fL(tt);continue}}yt!==null?(yt.return=Je,Ct=yt):fL(tt)}et=et.sibling}e:for(et=null,tt=f;;){if(tt.tag===5){if(et===null){et=tt;try{P=tt.stateNode,De?(U=P.style,typeof U.setProperty=="function"?U.setProperty("display","none","important"):U.display="none"):(pe=tt.stateNode,Se=tt.memoizedProps.style,J=Se!=null&&Se.hasOwnProperty("display")?Se.display:null,pe.style.display=Gt("display",J))}catch(Ot){si(f,f.return,Ot)}}}else if(tt.tag===6){if(et===null)try{tt.stateNode.nodeValue=De?"":tt.memoizedProps}catch(Ot){si(f,f.return,Ot)}}else if((tt.tag!==22&&tt.tag!==23||tt.memoizedState===null||tt===f)&&tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===f)break e;for(;tt.sibling===null;){if(tt.return===null||tt.return===f)break e;et===tt&&(et=null),tt=tt.return}et===tt&&(et=null),tt.sibling.return=tt.return,tt=tt.sibling}}break;case 19:Nl(p,f),Bc(f),k&4&&cL(f);break;case 21:break;default:Nl(p,f),Bc(f)}}function Bc(f){var p=f.flags;if(p&2){try{e:{for(var w=f.return;w!==null;){if(oL(w)){var k=w;break e}w=w.return}throw Error(n(160))}switch(k.tag){case 5:var P=k.stateNode;k.flags&32&&(At(P,""),k.flags&=-33);var U=sL(f);c5(f,U,P);break;case 3:case 4:var J=k.stateNode.containerInfo,pe=sL(f);l5(f,pe,J);break;default:throw Error(n(161))}}catch(Se){si(f,f.return,Se)}f.flags&=-3}p&4096&&(f.flags&=-4097)}function Tae(f,p,w){Ct=f,dL(f)}function dL(f,p,w){for(var k=(f.mode&1)!==0;Ct!==null;){var P=Ct,U=P.child;if(P.tag===22&&k){var J=P.memoizedState!==null||Mb;if(!J){var pe=P.alternate,Se=pe!==null&&pe.memoizedState!==null||Ua;pe=Mb;var De=Ua;if(Mb=J,(Ua=Se)&&!De)for(Ct=P;Ct!==null;)J=Ct,Se=J.child,J.tag===22&&J.memoizedState!==null?hL(P):Se!==null?(Se.return=J,Ct=Se):hL(P);for(;U!==null;)Ct=U,dL(U),U=U.sibling;Ct=P,Mb=pe,Ua=De}AL(f)}else(P.subtreeFlags&8772)!==0&&U!==null?(U.return=P,Ct=U):AL(f)}}function AL(f){for(;Ct!==null;){var p=Ct;if((p.flags&8772)!==0){var w=p.alternate;try{if((p.flags&8772)!==0)switch(p.tag){case 0:case 11:case 15:Ua||Ub(5,p);break;case 1:var k=p.stateNode;if(p.flags&4&&!Ua)if(w===null)k.componentDidMount();else{var P=p.elementType===p.type?w.memoizedProps:kl(p.type,w.memoizedProps);k.componentDidUpdate(P,w.memoizedState,k.__reactInternalSnapshotBeforeUpdate)}var U=p.updateQueue;U!==null&&_o(p,U,k);break;case 3:var J=p.updateQueue;if(J!==null){if(w=null,p.child!==null)switch(p.child.tag){case 5:w=p.child.stateNode;break;case 1:w=p.child.stateNode}_o(p,J,w)}break;case 5:var pe=p.stateNode;if(w===null&&p.flags&4){w=pe;var Se=p.memoizedProps;switch(p.type){case"button":case"input":case"select":case"textarea":Se.autoFocus&&w.focus();break;case"img":Se.src&&(w.src=Se.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(p.memoizedState===null){var De=p.alternate;if(De!==null){var et=De.memoizedState;if(et!==null){var tt=et.dehydrated;tt!==null&&hu(tt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ua||p.flags&512&&s5(p)}catch(Je){si(p,p.return,Je)}}if(p===f){Ct=null;break}if(w=p.sibling,w!==null){w.return=p.return,Ct=w;break}Ct=p.return}}function fL(f){for(;Ct!==null;){var p=Ct;if(p===f){Ct=null;break}var w=p.sibling;if(w!==null){w.return=p.return,Ct=w;break}Ct=p.return}}function hL(f){for(;Ct!==null;){var p=Ct;try{switch(p.tag){case 0:case 11:case 15:var w=p.return;try{Ub(4,p)}catch(Se){si(p,w,Se)}break;case 1:var k=p.stateNode;if(typeof k.componentDidMount=="function"){var P=p.return;try{k.componentDidMount()}catch(Se){si(p,P,Se)}}var U=p.return;try{s5(p)}catch(Se){si(p,U,Se)}break;case 5:var J=p.return;try{s5(p)}catch(Se){si(p,J,Se)}}}catch(Se){si(p,p.return,Se)}if(p===f){Ct=null;break}var pe=p.sibling;if(pe!==null){pe.return=p.return,Ct=pe;break}Ct=p.return}}var _ae=Math.ceil,Rb=C.ReactCurrentDispatcher,u5=C.ReactCurrentOwner,Qs=C.ReactCurrentBatchConfig,Rn=0,aa=null,Ii=null,ya=0,as=0,Cp=es(0),zi=0,my=null,Ef=0,Qb=0,d5=0,gy=null,Po=null,A5=0,kp=1/0,Du=null,Hb=!1,f5=null,zd=null,$b=!1,Vd=null,qb=0,yy=0,h5=null,zb=-1,Vb=0;function ho(){return(Rn&6)!==0?fr():zb!==-1?zb:zb=fr()}function Wd(f){return(f.mode&1)===0?1:(Rn&2)!==0&&ya!==0?ya&-ya:Wr.transition!==null?(Vb===0&&(Vb=rf()),Vb):(f=On,f!==0||(f=window.event,f=f===void 0?16:mu(f.type)),f)}function Tl(f,p,w,k){if(50<yy)throw yy=0,h5=null,Error(n(185));uu(f,w,k),((Rn&2)===0||f!==aa)&&(f===aa&&((Rn&2)===0&&(Qb|=w),zi===4&&Kd(f,ya)),jo(f,k),w===1&&Rn===0&&(p.mode&1)===0&&(kp=fr()+500,Sf&&H()))}function jo(f,p){var w=f.callbackNode;fi(f,p);var k=cu(f,f===aa?ya:0);if(k===0)w!==null&&ou(w),f.callbackNode=null,f.callbackPriority=0;else if(p=k&-k,f.callbackPriority!==p){if(w!=null&&ou(w),p===1)f.tag===0?D(mL.bind(null,f)):N(mL.bind(null,f)),$B(function(){(Rn&6)===0&&H()}),w=null;else{switch(du(k)){case 1:w=gd;break;case 4:w=ro;break;case 16:w=lc;break;case 536870912:w=yd;break;default:w=lc}w=BL(w,pL.bind(null,f))}f.callbackPriority=p,f.callbackNode=w}}function pL(f,p){if(zb=-1,Vb=0,(Rn&6)!==0)throw Error(n(327));var w=f.callbackNode;if(Ep()&&f.callbackNode!==w)return null;var k=cu(f,f===aa?ya:0);if(k===0)return null;if((k&30)!==0||(k&f.expiredLanes)!==0||p)p=Wb(f,k);else{p=k;var P=Rn;Rn|=2;var U=yL();(aa!==f||ya!==p)&&(Du=null,kp=fr()+500,Tf(f,p));do try{jae();break}catch(pe){gL(f,pe)}while(!0);Mn(),Rb.current=U,Rn=P,Ii!==null?p=0:(aa=null,ya=0,p=zi)}if(p!==0){if(p===2&&(P=Ko(f),P!==0&&(k=P,p=p5(f,P))),p===1)throw w=my,Tf(f,0),Kd(f,k),jo(f,fr()),w;if(p===6)Kd(f,k);else{if(P=f.current.alternate,(k&30)===0&&!Iae(P)&&(p=Wb(f,k),p===2&&(U=Ko(f),U!==0&&(k=U,p=p5(f,U))),p===1))throw w=my,Tf(f,0),Kd(f,k),jo(f,fr()),w;switch(f.finishedWork=P,f.finishedLanes=k,p){case 0:case 1:throw Error(n(345));case 2:_f(f,Po,Du);break;case 3:if(Kd(f,k),(k&130023424)===k&&(p=A5+500-fr(),10<p)){if(cu(f,0)!==0)break;if(P=f.suspendedLanes,(P&k)!==k){ho(),f.pingedLanes|=f.suspendedLanes&P;break}f.timeoutHandle=ay(_f.bind(null,f,Po,Du),p);break}_f(f,Po,Du);break;case 4:if(Kd(f,k),(k&4194240)===k)break;for(p=f.eventTimes,P=-1;0<k;){var J=31-ei(k);U=1<<J,J=p[J],J>P&&(P=J),k&=~U}if(k=P,k=fr()-k,k=(120>k?120:480>k?480:1080>k?1080:1920>k?1920:3e3>k?3e3:4320>k?4320:1960*_ae(k/1960))-k,10<k){f.timeoutHandle=ay(_f.bind(null,f,Po,Du),k);break}_f(f,Po,Du);break;case 5:_f(f,Po,Du);break;default:throw Error(n(329))}}}return jo(f,fr()),f.callbackNode===w?pL.bind(null,f):null}function p5(f,p){var w=gy;return f.current.memoizedState.isDehydrated&&(Tf(f,p).flags|=256),f=Wb(f,p),f!==2&&(p=Po,Po=w,p!==null&&m5(p)),f}function m5(f){Po===null?Po=f:Po.push.apply(Po,f)}function Iae(f){for(var p=f;;){if(p.flags&16384){var w=p.updateQueue;if(w!==null&&(w=w.stores,w!==null))for(var k=0;k<w.length;k++){var P=w[k],U=P.getSnapshot;P=P.value;try{if(!Fr(U(),P))return!1}catch{return!1}}}if(w=p.child,p.subtreeFlags&16384&&w!==null)w.return=p,p=w;else{if(p===f)break;for(;p.sibling===null;){if(p.return===null||p.return===f)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function Kd(f,p){for(p&=~d5,p&=~Qb,f.suspendedLanes|=p,f.pingedLanes&=~p,f=f.expirationTimes;0<p;){var w=31-ei(p),k=1<<w;f[w]=-1,p&=~k}}function mL(f){if((Rn&6)!==0)throw Error(n(327));Ep();var p=cu(f,0);if((p&1)===0)return jo(f,fr()),null;var w=Wb(f,p);if(f.tag!==0&&w===2){var k=Ko(f);k!==0&&(p=k,w=p5(f,k))}if(w===1)throw w=my,Tf(f,0),Kd(f,p),jo(f,fr()),w;if(w===6)throw Error(n(345));return f.finishedWork=f.current.alternate,f.finishedLanes=p,_f(f,Po,Du),jo(f,fr()),null}function g5(f,p){var w=Rn;Rn|=1;try{return f(p)}finally{Rn=w,Rn===0&&(kp=fr()+500,Sf&&H())}}function Nf(f){Vd!==null&&Vd.tag===0&&(Rn&6)===0&&Ep();var p=Rn;Rn|=1;var w=Qs.transition,k=On;try{if(Qs.transition=null,On=1,f)return f()}finally{On=k,Qs.transition=w,Rn=p,(Rn&6)===0&&H()}}function y5(){as=Cp.current,zn(Cp)}function Tf(f,p){f.finishedWork=null,f.finishedLanes=0;var w=f.timeoutHandle;if(w!==-1&&(f.timeoutHandle=-1,Cb(w)),Ii!==null)for(w=Ii.return;w!==null;){var k=w;switch(Oe(k),k.tag){case 1:k=k.type.childContextTypes,k!=null&&fp();break;case 3:Ms(),zn(Fa),zn($i),dy();break;case 5:cy(k);break;case 4:Ms();break;case 13:zn(hr);break;case 19:zn(hr);break;case 10:vr(k.type._context);break;case 22:case 23:y5()}w=w.return}if(aa=f,Ii=f=Gd(f.current,null),ya=as=p,zi=0,my=null,d5=Qb=Ef=0,Po=gy=null,ir!==null){for(p=0;p<ir.length;p++)if(w=ir[p],k=w.interleaved,k!==null){w.interleaved=null;var P=k.next,U=w.pending;if(U!==null){var J=U.next;U.next=P,k.next=J}w.pending=k}ir=null}return f}function gL(f,p){do{var w=Ii;try{if(Mn(),hp.current=Ob,Qd){for(var k=br.memoizedState;k!==null;){var P=k.queue;P!==null&&(P.pending=null),k=k.next}Qd=!1}if(Us=0,Xr=oi=br=null,Bl=!1,Hd=0,u5.current=null,w===null||w.return===null){zi=1,my=p,Ii=null;break}e:{var U=f,J=w.return,pe=w,Se=p;if(p=ya,pe.flags|=32768,Se!==null&&typeof Se=="object"&&typeof Se.then=="function"){var De=Se,et=pe,tt=et.tag;if((et.mode&1)===0&&(tt===0||tt===11||tt===15)){var Je=et.alternate;Je?(et.updateQueue=Je.updateQueue,et.memoizedState=Je.memoizedState,et.lanes=Je.lanes):(et.updateQueue=null,et.memoizedState=null)}var yt=HF(J);if(yt!==null){yt.flags&=-257,$F(yt,J,pe,U,p),yt.mode&1&&QF(U,De,p),p=yt,Se=De;var _t=p.updateQueue;if(_t===null){var Ot=new Set;Ot.add(Se),p.updateQueue=Ot}else _t.add(Se);break e}else{if((p&1)===0){QF(U,De,p),v5();break e}Se=Error(n(426))}}else if(Ke&&pe.mode&1){var gi=HF(J);if(gi!==null){(gi.flags&65536)===0&&(gi.flags|=256),$F(gi,J,pe,U,p),ct(Sp(Se,pe));break e}}U=Se=Sp(Se,pe),zi!==4&&(zi=2),gy===null?gy=[U]:gy.push(U),U=J;do{switch(U.tag){case 3:U.flags|=65536,p&=-p,U.lanes|=p;var je=UF(U,Se,p);or(U,je);break e;case 1:pe=Se;var Ce=U.type,Fe=U.stateNode;if((U.flags&128)===0&&(typeof Ce.getDerivedStateFromError=="function"||Fe!==null&&typeof Fe.componentDidCatch=="function"&&(zd===null||!zd.has(Fe)))){U.flags|=65536,p&=-p,U.lanes|=p;var ot=RF(U,pe,p);or(U,ot);break e}}U=U.return}while(U!==null)}bL(w)}catch(Ut){p=Ut,Ii===w&&w!==null&&(Ii=w=w.return);continue}break}while(!0)}function yL(){var f=Rb.current;return Rb.current=Ob,f===null?Ob:f}function v5(){(zi===0||zi===3||zi===2)&&(zi=4),aa===null||(Ef&268435455)===0&&(Qb&268435455)===0||Kd(aa,ya)}function Wb(f,p){var w=Rn;Rn|=2;var k=yL();
vendor: 8,458 bytes, line 40
40(aa!==f||ya!==p)&&(Du=null,Tf(f,p));do try{Pae();break}catch(P){gL(f,P)}while(!0);if(Mn(),Rn=w,Rb.current=k,Ii!==null)throw Error(n(261));return aa=null,ya=0,zi}function Pae(){for(;Ii!==null;)vL(Ii)}function jae(){for(;Ii!==null&&!md();)vL(Ii)}function vL(f){var p=SL(f.alternate,f,as);f.memoizedProps=f.pendingProps,p===null?bL(f):Ii=p,u5.current=null}function bL(f){var p=f;do{var w=p.alternate;if(f=p.return,(p.flags&32768)===0){if(w=Cae(w,p,as),w!==null){Ii=w;return}}else{if(w=kae(w,p),w!==null){w.flags&=32767,Ii=w;return}if(f!==null)f.flags|=32768,f.subtreeFlags=0,f.deletions=null;else{zi=6,Ii=null;return}}if(p=p.sibling,p!==null){Ii=p;return}Ii=p=f}while(p!==null);zi===0&&(zi=5)}function _f(f,p,w){var k=On,P=Qs.transition;try{Qs.transition=null,On=1,Oae(f,p,w,k)}finally{Qs.transition=P,On=k}return null}function Oae(f,p,w,k){do Ep();while(Vd!==null);if((Rn&6)!==0)throw Error(n(327));w=f.finishedWork;var P=f.finishedLanes;if(w===null)return null;if(f.finishedWork=null,f.finishedLanes=0,w===f.current)throw Error(n(177));f.callbackNode=null,f.callbackPriority=0;var U=w.lanes|w.childLanes;if(Ns(f,U),f===aa&&(Ii=aa=null,ya=0),(w.subtreeFlags&2064)===0&&(w.flags&2064)===0||$b||($b=!0,BL(lc,function(){return Ep(),null})),U=(w.flags&15990)!==0,(w.subtreeFlags&15990)!==0||U){U=Qs.transition,Qs.transition=null;var J=On;On=1;var pe=Rn;Rn|=4,u5.current=null,Nae(f,w),uL(w,f),ff(Iu),Bd=!!wf,Iu=wf=null,f.current=w,Tae(w),Wg(),Rn=pe,On=J,Qs.transition=U}else f.current=w;if($b&&($b=!1,Vd=f,qb=P),U=f.pendingLanes,U===0&&(zd=null),tp(w.stateNode),jo(f,fr()),p!==null)for(k=f.onRecoverableError,w=0;w<p.length;w++)P=p[w],k(P.value,{componentStack:P.stack,digest:P.digest});if(Hb)throw Hb=!1,f=f5,f5=null,f;return(qb&1)!==0&&f.tag!==0&&Ep(),U=f.pendingLanes,(U&1)!==0?f===h5?yy++:(yy=0,h5=f):yy=0,H(),null}function Ep(){if(Vd!==null){var f=du(qb),p=Qs.transition,w=On;try{if(Qs.transition=null,On=16>f?16:f,Vd===null)var k=!1;else{if(f=Vd,Vd=null,qb=0,(Rn&6)!==0)throw Error(n(331));var P=Rn;for(Rn|=4,Ct=f.current;Ct!==null;){var U=Ct,J=U.child;if((Ct.flags&16)!==0){var pe=U.deletions;if(pe!==null){for(var Se=0;Se<pe.length;Se++){var De=pe[Se];for(Ct=De;Ct!==null;){var et=Ct;switch(et.tag){case 0:case 11:case 15:py(8,et,U)}var tt=et.child;if(tt!==null)tt.return=et,Ct=tt;else for(;Ct!==null;){et=Ct;var Je=et.sibling,yt=et.return;if(aL(et),et===De){Ct=null;break}if(Je!==null){Je.return=yt,Ct=Je;break}Ct=yt}}}var _t=U.alternate;if(_t!==null){var Ot=_t.child;if(Ot!==null){_t.child=null;do{var gi=Ot.sibling;Ot.sibling=null,Ot=gi}while(Ot!==null)}}Ct=U}}if((U.subtreeFlags&2064)!==0&&J!==null)J.return=U,Ct=J;else e:for(;Ct!==null;){if(U=Ct,(U.flags&2048)!==0)switch(U.tag){case 0:case 11:case 15:py(9,U,U.return)}var je=U.sibling;if(je!==null){je.return=U.return,Ct=je;break e}Ct=U.return}}var Ce=f.current;for(Ct=Ce;Ct!==null;){J=Ct;var Fe=J.child;if((J.subtreeFlags&2064)!==0&&Fe!==null)Fe.return=J,Ct=Fe;else e:for(J=Ce;Ct!==null;){if(pe=Ct,(pe.flags&2048)!==0)try{switch(pe.tag){case 0:case 11:case 15:Ub(9,pe)}}catch(Ut){si(pe,pe.return,Ut)}if(pe===J){Ct=null;break e}var ot=pe.sibling;if(ot!==null){ot.return=pe.return,Ct=ot;break e}Ct=pe.return}}if(Rn=P,H(),io&&typeof io.onPostCommitFiberRoot=="function")try{io.onPostCommitFiberRoot(su,f)}catch{}k=!0}return k}finally{On=w,Qs.transition=p}}return!1}function wL(f,p,w){p=Sp(w,p),p=UF(f,p,1),f=Gr(f,p,1),p=ho(),f!==null&&(uu(f,1,p),jo(f,p))}function si(f,p,w){if(f.tag===3)wL(f,f,w);else for(;p!==null;){if(p.tag===3){wL(p,f,w);break}else if(p.tag===1){var k=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof k.componentDidCatch=="function"&&(zd===null||!zd.has(k))){f=Sp(w,f),f=RF(p,f,1),p=Gr(p,f,1),f=ho(),p!==null&&(uu(p,1,f),jo(p,f));break}}p=p.return}}function Fae(f,p,w){var k=f.pingCache;k!==null&&k.delete(p),p=ho(),f.pingedLanes|=f.suspendedLanes&w,aa===f&&(ya&w)===w&&(zi===4||zi===3&&(ya&130023424)===ya&&500>fr()-A5?Tf(f,0):d5|=w),jo(f,p)}function xL(f,p){p===0&&((f.mode&1)===0?p=1:(p=ao,ao<<=1,(ao&130023424)===0&&(ao=4194304)));var w=ho();f=ar(f,p),f!==null&&(uu(f,p,w),jo(f,w))}function Lae(f){var p=f.memoizedState,w=0;p!==null&&(w=p.retryLane),xL(f,w)}function Dae(f,p){var w=0;switch(f.tag){case 13:var k=f.stateNode,P=f.memoizedState;P!==null&&(w=P.retryLane);break;case 19:k=f.stateNode;break;default:throw Error(n(314))}k!==null&&k.delete(p),xL(f,w)}var SL;SL=function(f,p,w){if(f!==null)if(f.memoizedProps!==p.pendingProps||Fa.current)Io=!0;else{if((f.lanes&w)===0&&(p.flags&128)===0)return Io=!1,Bae(f,p,w);Io=(f.flags&131072)!==0}else Io=!1,Ke&&(p.flags&1048576)!==0&&Te(p,ie,p.index);switch(p.lanes=0,p.tag){case 2:var k=p.type;Db(f,p),f=p.pendingProps;var P=Ud(p,$i.current);Mr(p,w),P=Bf(null,p,k,f,P,w);var U=Rs();return p.flags|=1,typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0?(p.tag=1,p.memoizedState=null,p.updateQueue=null,La(k)?(U=!0,Ou(p)):U=!1,p.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,qi(p),P.updater=Fb,p.stateNode=P,P._reactInternals=p,YB(p,k,f,w),p=e5(null,p,k,!0,U,w)):(p.tag=0,Ke&&U&&Qe(p),fo(null,p,P,w),p=p.child),p;case 16:k=p.elementType;e:{switch(Db(f,p),f=p.pendingProps,P=k._init,k=P(k._payload),p.type=k,P=p.tag=Uae(k),f=kl(k,f),P){case 0:p=ZB(null,p,k,f,w);break e;case 1:p=GF(null,p,k,f,w);break e;case 11:p=qF(null,p,k,f,w);break e;case 14:p=zF(null,p,k,kl(k.type,f),w);break e}throw Error(n(306,k,""))}return p;case 0:return k=p.type,P=p.pendingProps,P=p.elementType===k?P:kl(k,P),ZB(f,p,k,P,w);case 1:return k=p.type,P=p.pendingProps,P=p.elementType===k?P:kl(k,P),GF(f,p,k,P,w);case 3:e:{if(YF(p),f===null)throw Error(n(387));k=p.pendingProps,U=p.memoizedState,P=U.element,Da(f,p),ia(p,k,null,w);var J=p.memoizedState;if(k=J.element,U.isDehydrated)if(U={element:k,isDehydrated:!1,cache:J.cache,pendingSuspenseBoundaries:J.pendingSuspenseBoundaries,transitions:J.transitions},p.updateQueue.baseState=U,p.memoizedState=U,p.flags&256){P=Sp(Error(n(423)),p),p=XF(f,p,k,w,P);break e}else if(k!==P){P=Sp(Error(n(424)),p),p=XF(f,p,k,w,P);break e}else for(Re=ma(p.stateNode.containerInfo.firstChild),Me=p,Ke=!0,Ge=null,w=Nr(p,null,k,w),p.child=w;w;)w.flags=w.flags&-3|4096,w=w.sibling;else{if(St(),k===P){p=Lu(f,p,w);break e}fo(f,p,k,w)}p=p.child}return p;case 5:return Tb(p),f===null&&Nt(p),k=p.type,P=p.pendingProps,U=f!==null?f.memoizedProps:null,J=P.children,iy(k,P)?J=null:U!==null&&iy(k,U)&&(p.flags|=32),KF(f,p),fo(f,p,J,w),p.child;case 6:return f===null&&Nt(p),null;case 13:return JF(f,p,w);case 4:return Rd(p,p.stateNode.containerInfo),k=p.pendingProps,f===null?p.child=ii(p,null,k,w):fo(f,p,k,w),p.child;case 11:return k=p.type,P=p.pendingProps,P=p.elementType===k?P:kl(k,P),qF(f,p,k,P,w);case 7:return fo(f,p,p.pendingProps,w),p.child;case 8:return fo(f,p,p.pendingProps.children,w),p.child;case 12:return fo(f,p,p.pendingProps.children,w),p.child;case 10:e:{if(k=p.type._context,P=p.pendingProps,U=p.memoizedProps,J=P.value,Gn(pi,k._currentValue),k._currentValue=J,U!==null)if(Fr(U.value,J)){if(U.children===P.children&&!Fa.current){p=Lu(f,p,w);break e}}else for(U=p.child,U!==null&&(U.return=p);U!==null;){var pe=U.dependencies;if(pe!==null){J=U.child;for(var Se=pe.firstContext;Se!==null;){if(Se.context===k){if(U.tag===1){Se=Kr(-1,w&-w),Se.tag=2;var De=U.updateQueue;if(De!==null){De=De.shared;var et=De.pending;et===null?Se.next=Se:(Se.next=et.next,et.next=Se),De.pending=Se}}U.lanes|=w,Se=U.alternate,Se!==null&&(Se.lanes|=w),Un(U.return,w,p),pe.lanes|=w;break}Se=Se.next}}else if(U.tag===10)J=U.type===p.type?null:U.child;else if(U.tag===18){if(J=U.return,J===null)throw Error(n(341));J.lanes|=w,pe=J.alternate,pe!==null&&(pe.lanes|=w),Un(J,w,p),J=U.sibling}else J=U.child;if(J!==null)J.return=U;else for(J=U;J!==null;){if(J===p){J=null;break}if(U=J.sibling,U!==null){U.return=J.return,J=U;break}J=J.return}U=J}fo(f,p,P.children,w),p=p.child}return p;case 9:return P=p.type,k=p.pendingProps.children,Mr(p,w),P=Ur(P),k=k(P),p.flags|=1,fo(f,p,k,w),p.child;case 14:return k=p.type,P=kl(k,p.pendingProps),P=kl(k.type,P),zF(f,p,k,P,w);case 15:return VF(f,p,p.type,p.pendingProps,w);case 17:return k=p.type,P=p.pendingProps,P=p.elementType===k?P:kl(k,P),Db(f,p),p.tag=1,La(k)?(f=!0,Ou(p)):f=!1,Mr(p,w),DF(p,k,P),YB(p,k,P,w),e5(null,p,k,!0,f,w);case 19:return eL(f,p,w);case 22:return WF(f,p,w)}throw Error(n(156,p.tag))};function BL(f,p){return au(f,p)}function Mae(f,p,w,k){this.tag=f,this.key=w,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 9,561 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=k,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hs(f,p,w,k){return new Mae(f,p,w,k)}function b5(f){return f=f.prototype,!(!f||!f.isReactComponent)}function Uae(f){if(typeof f=="function")return b5(f)?1:0;if(f!=null){if(f=f.$$typeof,f===M)return 11;if(f===W)return 14}return 2}function Gd(f,p){var w=f.alternate;return w===null?(w=Hs(f.tag,p,f.key,f.mode),w.elementType=f.elementType,w.type=f.type,w.stateNode=f.stateNode,w.alternate=f,f.alternate=w):(w.pendingProps=p,w.type=f.type,w.flags=0,w.subtreeFlags=0,w.deletions=null),w.flags=f.flags&14680064,w.childLanes=f.childLanes,w.lanes=f.lanes,w.child=f.child,w.memoizedProps=f.memoizedProps,w.memoizedState=f.memoizedState,w.updateQueue=f.updateQueue,p=f.dependencies,w.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},w.sibling=f.sibling,w.index=f.index,w.ref=f.ref,w}function Kb(f,p,w,k,P,U){var J=2;if(k=f,typeof f=="function")b5(f)&&(J=1);else if(typeof f=="string")J=5;else e:switch(f){case j:return If(w.children,P,U,p);case O:J=8,P|=8;break;case L:return f=Hs(12,w,p,P|2),f.elementType=L,f.lanes=U,f;case V:return f=Hs(13,w,p,P),f.elementType=V,f.lanes=U,f;case q:return f=Hs(19,w,p,P),f.elementType=q,f.lanes=U,f;case ne:return Gb(w,P,U,p);default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case z:J=10;break e;case F:J=9;break e;case M:J=11;break e;case W:J=14;break e;case ee:J=16,k=null;break e}throw Error(n(130,f==null?f:typeof f,""))}return p=Hs(J,w,p,P),p.elementType=f,p.type=k,p.lanes=U,p}function If(f,p,w,k){return f=Hs(7,f,k,p),f.lanes=w,f}function Gb(f,p,w,k){return f=Hs(22,f,k,p),f.elementType=ne,f.lanes=w,f.stateNode={isHidden:!1},f}function w5(f,p,w){return f=Hs(6,f,null,p),f.lanes=w,f}function x5(f,p,w){return p=Hs(4,f.children!==null?f.children:[],f.key,p),p.lanes=w,p.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},p}function Rae(f,p,w,k,P){this.tag=p,this.containerInfo=f,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=af(0),this.expirationTimes=af(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=af(0),this.identifierPrefix=k,this.onRecoverableError=P,this.mutableSourceEagerHydrationData=null}function S5(f,p,w,k,P,U,J,pe,Se){return f=new Rae(f,p,w,pe,Se),p===1?(p=1,U===!0&&(p|=8)):p=0,U=Hs(3,null,null,p),f.current=U,U.stateNode=f,U.memoizedState={element:k,isDehydrated:w,cache:null,transitions:null,pendingSuspenseBoundaries:null},qi(U),f}function Qae(f,p,w){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:k==null?null:""+k,children:f,containerInfo:p,implementation:w}}function CL(f){if(!f)return wc;f=f._reactInternals;e:{if(Ri(f)!==f||f.tag!==1)throw Error(n(170));var p=f;do{switch(p.tag){case 3:p=p.stateNode.context;break e;case 1:if(La(p.type)){p=p.stateNode.__reactInternalMemoizedMergedChildContext;break e}}p=p.return}while(p!==null);throw Error(n(171))}if(f.tag===1){var w=f.type;if(La(w))return ly(f,w,p)}return p}function kL(f,p,w,k,P,U,J,pe,Se){return f=S5(w,k,!0,f,P,U,J,pe,Se),f.context=CL(null),w=f.current,k=ho(),P=Wd(w),U=Kr(k,P),U.callback=p??null,Gr(w,U,P),f.current.lanes=P,uu(f,P,k),jo(f,k),f}function Yb(f,p,w,k){var P=p.current,U=ho(),J=Wd(P);return w=CL(w),p.context===null?p.context=w:p.pendingContext=w,p=Kr(U,J),p.payload={element:f},k=k===void 0?null:k,k!==null&&(p.callback=k),f=Gr(P,p,J),f!==null&&(Tl(f,P,J,U),ra(f,P,J)),J}function Xb(f){if(f=f.current,!f.child)return null;switch(f.child.tag){case 5:return f.child.stateNode;default:return f.child.stateNode}}function EL(f,p){if(f=f.memoizedState,f!==null&&f.dehydrated!==null){var w=f.retryLane;f.retryLane=w!==0&&w<p?w:p}}function B5(f,p){EL(f,p),(f=f.alternate)&&EL(f,p)}function Hae(){return null}var NL=typeof reportError=="function"?reportError:function(f){console.error(f)};function C5(f){this._internalRoot=f}Jb.prototype.render=C5.prototype.render=function(f){var p=this._internalRoot;if(p===null)throw Error(n(409));Yb(f,p,null,null)},Jb.prototype.unmount=C5.prototype.unmount=function(){var f=this._internalRoot;if(f!==null){this._internalRoot=null;var p=f.containerInfo;Nf(function(){Yb(null,f,null,null)}),p[ta]=null}};function Jb(f){this._internalRoot=f}Jb.prototype.unstable_scheduleHydration=function(f){if(f){var p=rp();f={blockedOn:null,target:f,priority:p};for(var w=0;w<_s.length&&p!==0&&p<_s[w].priority;w++);_s.splice(w,0,f),w===0&&ap(f)}};function k5(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)}function Zb(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11&&(f.nodeType!==8||f.nodeValue!==" react-mount-point-unstable "))}function TL(){}function $ae(f,p,w,k,P){if(P){if(typeof k=="function"){var U=k;k=function(){var De=Xb(J);U.call(De)}}var J=kL(p,k,f,0,null,!1,!1,"",TL);return f._reactRootContainer=J,f[ta]=J.current,Tu(f.nodeType===8?f.parentNode:f),Nf(),J}for(;P=f.lastChild;)f.removeChild(P);if(typeof k=="function"){var pe=k;k=function(){var De=Xb(Se);pe.call(De)}}var Se=S5(f,0,!1,null,null,!1,!1,"",TL);return f._reactRootContainer=Se,f[ta]=Se.current,Tu(f.nodeType===8?f.parentNode:f),Nf(function(){Yb(p,Se,w,k)}),Se}function ew(f,p,w,k,P){var U=w._reactRootContainer;if(U){var J=U;if(typeof P=="function"){var pe=P;P=function(){var Se=Xb(J);pe.call(Se)}}Yb(p,J,f,P)}else J=$ae(w,p,f,P,k);return Xb(J)}cc=function(f){switch(f.tag){case 3:var p=f.stateNode;if(p.current.memoizedState.isDehydrated){var w=Es(p.pendingLanes);w!==0&&(bd(p,w|1),jo(p,fr()),(Rn&6)===0&&(kp=fr()+500,H()))}break;case 13:Nf(function(){var k=ar(f,1);if(k!==null){var P=ho();Tl(k,f,1,P)}}),B5(f,1)}},of=function(f){if(f.tag===13){var p=ar(f,134217728);if(p!==null){var w=ho();Tl(p,f,134217728,w)}B5(f,134217728)}},np=function(f){if(f.tag===13){var p=Wd(f),w=ar(f,p);if(w!==null){var k=ho();Tl(w,f,p,k)}B5(f,p)}},rp=function(){return On},wd=function(f,p){var w=On;try{return On=f,p()}finally{On=w}},en=function(f,p,w){switch(p){case"input":if(st(f,w),p=w.name,w.type==="radio"&&p!=null){for(w=f;w.parentNode;)w=w.parentNode;for(w=w.querySelectorAll("input[name="+JSON.stringify(""+p)+'][type="radio"]'),p=0;p<w.length;p++){var k=w[p];if(k!==f&&k.form===f.form){var P=xf(k);if(!P)throw Error(n(90));ge(k),st(k,P)}}}break;case"textarea":gn(f,w);break;case"select":p=w.value,p!=null&&it(f,!!w.multiple,p,!1)}},ve=g5,Ve=Nf;var qae={usingClientEntryPoint:!1,Events:[Md,Pu,xf,Nn,zo,g5]},vy={findFiberByHostInstance:bc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zae={bundleType:vy.bundleType,version:vy.version,rendererPackageName:vy.rendererPackageName,rendererConfig:vy.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(f){return f=Wo(f),f===null?null:f.stateNode},findFiberByHostInstance:vy.findFiberByHostInstance||Hae,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tw=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tw.isDisabled&&tw.supportsFiber)try{su=tw.inject(zae),io=tw}catch{}}return Oo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qae,Oo.createPortal=function(f,p){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!k5(p))throw Error(n(200));return Qae(f,p,null,w)},Oo.createRoot=function(f,p){if(!k5(f))throw Error(n(299));var w=!1,k="",P=NL;return p!=null&&(p.unstable_strictMode===!0&&(w=!0),p.identifierPrefix!==void 0&&(k=p.identifierPrefix),p.onRecoverableError!==void 0&&(P=p.onRecoverableError)),p=S5(f,1,!1,null,null,w,!1,k,P),f[ta]=p.current,Tu(f.nodeType===8?f.parentNode:f),new C5(p)},Oo.findDOMNode=function(f){if(f==null)return null;if(f.nodeType===1)return f;var p=f._reactInternals;if(p===void 0)throw typeof f.render=="function"?Error(n(188)):(f=Object.keys(f).join(","),Error(n(268,f)));return f=Wo(p),f=f===null?null:f.stateNode,f},Oo.flushSync=function(f){return Nf(f)},Oo.hydrate=function(f,p,w){if(!Zb(p))throw Error(n(200));return ew(null,f,p,!0,w)},Oo.hydrateRoot=function(f,p,w){if(!k5(f))throw Error(n(405));var k=w!=null&&w.hydratedSources||null,P=!1,U="",J=NL;if(w!=null&&(w.unstable_strictMode===!0&&(P=!0),w.identifierPrefix!==void 0&&(U=w.identifierPrefix),w.onRecoverableError!==void 0&&(J=w.onRecoverableError)),p=kL(p,null,f,1,w??null,P,!1,U,J),f[ta]=p.current,Tu(f),k)for(f=0;f<k.length;f++)w=k[f],P=w._getVersion,P=P(w._source),p.mutableSourceEagerHydrationData==null?p.mutableSourceEagerHydrationData=[w,P]:p.mutableSourceEagerHydrationData.push(w,P);return new Jb(p)},Oo.render=function(f,p,w){if(!Zb(p))throw Error(n(200));return ew(null,f,p,!1,w)},Oo.unmountComponentAtNode=function(f){if(!Zb(f))throw Error(n(40));return f._reactRootContainer?(Nf(function(){ew(null,null,f,!1,function(){f._reactRootContainer=null,f[ta]=null})}),!0):!1},Oo.unstable_batchedUpdates=g5,Oo.unstable_renderSubtreeIntoContainer=function(f,p,w,k){if(!
40Zb(w))throw Error(n(200));if(f==null||f._reactInternals===void 0)throw Error(n(38));return ew(f,p,w,!1,k)},Oo.version="18.3.1-next-f1338f8080-20240426",Oo}var ML;function UV(){if(ML)return _5.exports;ML=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_5.exports=toe(),_5.exports}var UL;function noe(){if(UL)return iw;UL=1;var e=UV();return iw.createRoot=e.createRoot,iw.hydrateRoot=e.hydrateRoot,iw}var roe=noe();const ioe=nr(roe),aoe=20,ooe=1e6,Ku={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let j5=0;function soe(){return j5=(j5+1)%Number.MAX_VALUE,j5.toString()}const O5=new Map,RL=e=>{if(O5.has(e))return;const t=setTimeout(()=>{O5.delete(e),fv({type:Ku.REMOVE_TOAST,toastId:e})},ooe);O5.set(e,t)},loe=(e,t)=>{switch(t.type){case Ku.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,aoe)};case Ku.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Ku.DISMISS_TOAST:{const{toastId:n}=t;return n?RL(n):e.toasts.forEach(r=>{RL(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case Ku.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},bx=[];let wx={toasts:[]};function fv(e){wx=loe(wx,e),bx.forEach(t=>{t(wx)})}function coe({...e}){const t=soe(),n=i=>fv({type:Ku.UPDATE_TOAST,toast:{...i,id:t}}),r=()=>fv({type:Ku.DISMISS_TOAST,toastId:t});return fv({type:Ku.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function uoe(){const[e,t]=_.useState(wx);return _.useEffect(()=>(bx.push(t),()=>{const n=bx.indexOf(t);n>-1&&bx.splice(n,1)}),[e]),{...e,toast:coe,dismiss:n=>fv({type:Ku.DISMISS_TOAST,toastId:n})}}function RV(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=RV(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Cn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=RV(e))&&(r&&(r+=" "),r+=t);return r}const QL=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,HL=Cn,QV=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return HL(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(c=>{const d=n==null?void 0:n[c],A=a==null?void 0:a[c];if(d===null)return null;const h=QL(d)||QL(A);return i[c][h]}),s=n&&Object.entries(n).reduce((c,d)=>{let[A,h]=d;return h===void 0||(c[A]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:A,className:h,...m}=d;return Object.entries(m).every(b=>{let[g,y]=b;return Array.isArray(y)?y.includes({...a,...s}[g]):{...a,...s}[g]===y})?[...c,A,h]:c},[]);return HL(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const doe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),HV=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var Aoe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const foe=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...s},l)=>_.createElement("svg",{ref:l,...Aoe,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:HV("lucide",i),...s},[...o.map(([c,d])=>_.createElement(c,d)),...Array.isArray(a)?a:[a]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const rt=(e,t)=>{const n=_.forwardRef(({className:r,...i},a)=>_.createElement(foe,{ref:a,iconNode:t,className:HV(`lucide-${doe(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const hoe=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
65-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],poe=rt("Activity",hoe);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const moe=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Dh=rt("ArrowLeft",moe);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const goe=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],qA=rt("ArrowRight",goe);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const yoe=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],_n=rt("ArrowUpRight",yoe);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const voe=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],Om=rt("Award",voe);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const boe=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],K0=rt("BookOpen",boe);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const woe=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],xoe=rt("Briefcase",woe);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const Soe=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],RT=rt("Building2",Soe);/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const Boe=[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]],i3=rt("ChartNoAxesColumn",Boe);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const Coe=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],bg=rt("Check",Coe);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const koe=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],K2=rt("ChevronDown",koe);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const Eoe=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Noe=rt("ChevronLeft",Eoe);/**
121 * @license lucide-react v0.475.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const Toe=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],$V=rt("ChevronRight",Toe);/**
126 * @license lucide-react v0.475.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const _oe=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ioe=rt("ChevronUp",_oe);/**
131 * @license lucide-react v0.475.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const Poe=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Qc=rt("CircleCheckBig",Poe);/**
136 * @license lucide-react v0.475.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const joe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],qV=rt("CircleCheck",joe);/**
141 * @license lucide-react v0.475.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const Ooe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Foe=rt("CircleHelp",Ooe);/**
146 * @license lucide-react v0.475.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const Loe=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Doe=rt("ClipboardList",Loe);/**
151 * @license lucide-react v0.475.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const Moe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],bs=rt("Clock",Moe);/**
156 * @license lucide-react v0.475.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const Uoe=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],a3=rt("Cloud",Uoe);/**
161 * @license lucide-react v0.475.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const Roe=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Qoe=rt("CodeXml",Roe);/**
166 * @license lucide-react v0.475.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const Hoe=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],G2=rt("Code",Hoe);/**
171 * @license lucide-react v0.475.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const $oe=[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]],qoe=rt("Cookie",$oe);/**
176 * @license lucide-react v0.475.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const zoe=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
180],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],Voe=rt("Cpu",zoe);/**
181 * @license lucide-react v0.475.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const Woe=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],Fm=rt("Download",Woe);/**
186 * @license lucide-react v0.475.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const Koe=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Xx=rt("ExternalLink",Koe);/**
191 * @license lucide-react v0.475.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const Goe=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],bh=rt("Eye",Goe);/**
196 * @license lucide-react v0.475.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const Yoe=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Xoe=rt("Facebook",Yoe);/**
201 * @license lucide-react v0.475.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const Joe=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],Zoe=rt("FileDown",Joe);/**
206 * @license lucide-react v0.475.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const ese=[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]],tse=rt("FileSearch",ese);/**
211 * @license lucide-react v0.475.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const nse=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],o3=rt("FileText",nse);/**
216 * @license lucide-react v0.475.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const rse=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],zV=rt("GitMerge",rse);/**
221 * @license lucide-react v0.475.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const ise=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],wh=rt("Globe",ise);/**
226 * @license lucide-react v0.475.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const ase=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],VV=rt("GraduationCap",ase);/**
231 * @license lucide-react v0.475.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const ose=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],sse=rt("Handshake",ose);/**
236 * @license lucide-react v0.475.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const lse=[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]],WV=rt("HardHat",lse);/**
241 * @license lucide-react v0.475.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const cse=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],s3=rt("Heart",cse);/**
246 * @license lucide-react v0.475.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const use=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],KV=rt("KeyRound",use);/**
251 * @license lucide-react v0.475.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const dse=[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]],GV=rt("Landmark",dse);/**
256 * @license lucide-react v0.475.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const Ase=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],fse=rt("Layers",Ase);/**
261 * @license lucide-react v0.475.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const hse=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],pse=rt("LifeBuoy",hse);/**
266 * @license lucide-react v0.475.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const mse=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],gse=rt("Link2",mse);/**
271 * @license lucide-react v0.475.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const yse=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],l3=rt("Linkedin",yse);/**
276 * @license lucide-react v0.475.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const vse=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],rd=rt("LoaderCircle",vse);/**
281 * @license lucide-react v0.475.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const bse=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],wse=rt("LockOpen",bse);/**
286 * @license lucide-react v0.475.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const xse=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Mh=rt("Lock",xse);/**
291 * @license lucide-react v0.475.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const Sse=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],Bse=rt("LogIn",Sse);/**
296 * @license lucide-react v0.475.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const Cse=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Y2=rt("Mail",Cse);/**
301 * @license lucide-react v0.475.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const kse=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],c3=rt("MapPin",kse);/**
306 * @license lucide-react v0.475.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const Ese=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Nse=rt("Map",Ese);/**
311 * @license lucide-react v0.475.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const Tse=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],_se=rt("Menu",Tse);/**
316 * @license lucide-react v0.475.0 - ISC
317 *
318 * This source code is licensed under the ISC license.
319 * See the LICENSE file in the root directory of this source tree.
320 */const Ise=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],Pse=rt("MessageCircle",Ise);/**
321 * @license lucide-react v0.475.0 - ISC
322 *
323 * This source code is licensed under the ISC license.
324 * See the LICENSE file in the root directory of this source tree.
325 */const jse=[["path",{d:"M5 12h14",key:"1ays0h"}]],YV=rt("Minus",jse);/**
326 * @license lucide-react v0.475.0 - ISC
327 *
328 * This source code is licensed under the ISC license.
329 * See the LICENSE file in the root directory of this source tree.
330 */const Ose=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],XV=rt("Monitor",Ose);/**
331 * @license lucide-react v0.475.0 - ISC
332 *
333 * This source code is licensed under the ISC license.
334 * See the LICENSE file in the root directory of this source tree.
335 */const Fse=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.
335074z",key:"s0h3yz"}]],QT=rt("MousePointerClick",Fse);/**
336 * @license lucide-react v0.475.0 - ISC
337 *
338 * This source code is licensed under the ISC license.
339 * See the LICENSE file in the root directory of this source tree.
340 */const Lse=[["path",{d:"m18 8 4 4-4 4",key:"1ak13k"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}]],Dse=rt("MoveHorizontal",Lse);/**
341 * @license lucide-react v0.475.0 - ISC
342 *
343 * This source code is licensed under the ISC license.
344 * See the LICENSE file in the root directory of this source tree.
345 */const Mse=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],JV=rt("Network",Mse);/**
346 * @license lucide-react v0.475.0 - ISC
347 *
348 * This source code is licensed under the ISC license.
349 * See the LICENSE file in the root directory of this source tree.
350 */const Use=[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]],ZV=rt("Newspaper",Use);/**
351 * @license lucide-react v0.475.0 - ISC
352 *
353 * This source code is licensed under the ISC license.
354 * See the LICENSE file in the root directory of this source tree.
355 */const Rse=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Qse=rt("Package",Rse);/**
356 * @license lucide-react v0.475.0 - ISC
357 *
358 * This source code is licensed under the ISC license.
359 * See the LICENSE file in the root directory of this source tree.
360 */const Hse=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],$se=rt("PenLine",Hse);/**
361 * @license lucide-react v0.475.0 - ISC
362 *
363 * This source code is licensed under the ISC license.
364 * See the LICENSE file in the root directory of this source tree.
365 */const qse=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Jx=rt("Play",qse);/**
366 * @license lucide-react v0.475.0 - ISC
367 *
368 * This source code is licensed under the ISC license.
369 * See the LICENSE file in the root directory of this source tree.
370 */const zse=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],eW=rt("Plus",zse);/**
371 * @license lucide-react v0.475.0 - ISC
372 *
373 * This source code is licensed under the ISC license.
374 * See the LICENSE file in the root directory of this source tree.
375 */const Vse=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],tW=rt("Printer",Vse);/**
376 * @license lucide-react v0.475.0 - ISC
377 *
378 * This source code is licensed under the ISC license.
379 * See the LICENSE file in the root directory of this source tree.
380 */const Wse=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],Kse=rt("Puzzle",Wse);/**
381 * @license lucide-react v0.475.0 - ISC
382 *
383 * This source code is licensed under the ISC license.
384 * See the LICENSE file in the root directory of this source tree.
385 */const Gse=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],nW=rt("Quote",Gse);/**
386 * @license lucide-react v0.475.0 - ISC
387 *
388 * This source code is licensed under the ISC license.
389 * See the LICENSE file in the root directory of this source tree.
390 */const Yse=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],u3=rt("Radio",Yse);/**
391 * @license lucide-react v0.475.0 - ISC
392 *
393 * This source code is licensed under the ISC license.
394 * See the LICENSE file in the root directory of this source tree.
395 */const Xse=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}
395]],rW=rt("RefreshCw",Xse);/**
396 * @license lucide-react v0.475.0 - ISC
397 *
398 * This source code is licensed under the ISC license.
399 * See the LICENSE file in the root directory of this source tree.
400 */const Jse=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],Zse=rt("Rocket",Jse);/**
401 * @license lucide-react v0.475.0 - ISC
402 *
403 * This source code is licensed under the ISC license.
404 * See the LICENSE file in the root directory of this source tree.
405 */const ele=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 9h.01",key:"x1ddxp"}]],tle=rt("ScanFace",ele);/**
406 * @license lucide-react v0.475.0 - ISC
407 *
408 * This source code is licensed under the ISC license.
409 * See the LICENSE file in the root directory of this source tree.
410 */const nle=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],iW=rt("ScrollText",nle);/**
411 * @license lucide-react v0.475.0 - ISC
412 *
413 * This source code is licensed under the ISC license.
414 * See the LICENSE file in the root directory of this source tree.
415 */const rle=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],$L=rt("Search",rle);/**
416 * @license lucide-react v0.475.0 - ISC
417 *
418 * This source code is licensed under the ISC license.
419 * See the LICENSE file in the root directory of this source tree.
420 */const ile=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],aW=rt("Send",ile);/**
421 * @license lucide-react v0.475.0 - ISC
422 *
423 * This source code is licensed under the ISC license.
424 * See the LICENSE file in the root directory of this source tree.
425 */const ale=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],G0=rt("Server",ale);/**
426 * @license lucide-react v0.475.0 - ISC
427 *
428 * This source code is licensed under the ISC license.
429 * See the LICENSE file in the root directory of this source tree.
430 */const ole=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],sle=rt("Share2",ole);/**
431 * @license lucide-react v0.475.0 - ISC
432 *
433 * This source code is licensed under the ISC license.
434 * See the LICENSE file in the root directory of this source tree.
435 */const lle=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Mo=rt("ShieldCheck",lle);/**
436 * @license lucide-react v0.475.0 - ISC
437 *
438 * This source code is licensed under the ISC license.
439 * See the LICENSE file in the root directory of this source tree.
440 */const cle=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Uh=rt("Shield",cle);/**
441 * @license lucide-react v0.475.0 - ISC
442 *
443 * This source code is licensed under the ISC license.
444 * See the LICENSE file in the root directory of this source tree.
445 */const ule=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],dle=rt("Smartphone",ule);
445/**
446 * @license lucide-react v0.475.0 - ISC
447 *
448 * This source code is licensed under the ISC license.
449 * See the LICENSE file in the root directory of this source tree.
450 */const Ale=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Zx=rt("Sparkles",Ale);/**
451 * @license lucide-react v0.475.0 - ISC
452 *
453 * This source code is licensed under the ISC license.
454 * See the LICENSE file in the root directory of this source tree.
455 */const fle=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],HT=rt("Star",fle);/**
456 * @license lucide-react v0.475.0 - ISC
457 *
458 * This source code is licensed under the ISC license.
459 * See the LICENSE file in the root directory of this source tree.
460 */const hle=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],ple=rt("Stethoscope",hle);/**
461 * @license lucide-react v0.475.0 - ISC
462 *
463 * This source code is licensed under the ISC license.
464 * See the LICENSE file in the root directory of this source tree.
465 */const mle=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],gle=rt("Trash2",mle);/**
466 * @license lucide-react v0.475.0 - ISC
467 *
468 * This source code is licensed under the ISC license.
469 * See the LICENSE file in the root directory of this source tree.
470 */const yle=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],Mv=rt("TrendingUp",yle);/**
471 * @license lucide-react v0.475.0 - ISC
472 *
473 * This source code is licensed under the ISC license.
474 * See the LICENSE file in the root directory of this source tree.
475 */const vle=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],X2=rt("TriangleAlert",vle);/**
476 * @license lucide-react v0.475.0 - ISC
477 *
478 * This source code is licensed under the ISC license.
479 * See the LICENSE file in the root directory of this source tree.
480 */const ble=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],wle=rt("Trophy",ble);/**
481 * @license lucide-react v0.475.0 - ISC
482 *
483 * This source code is licensed under the ISC license.
484 * See the LICENSE file in the root directory of this source tree.
485 */const xle=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],Sle=rt("Twitter",xle);/**
486 * @license lucide-react v0.475.0 - ISC
487 *
488 * This source code is licensed under the ISC license.
489 * See the LICENSE file in the root directory of this source tree.
490 */const Ble=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],FA=rt("Users",Ble);/**
491 * @license lucide-react v0.475.0 - ISC
492 *
493 * This source code is licensed under the ISC license.
494 * See the LICENSE file in the root directory of this source tree.
495 */const Cle=[["path",{d:"M12 20h.01",key:"zekei9"}
495],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],J2=rt("Wifi",Cle);/**
496 * @license lucide-react v0.475.0 - ISC
497 *
498 * This source code is licensed under the ISC license.
499 * See the LICENSE file in the root directory of this source tree.
500 */const kle=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],Ele=rt("Wrench",kle);/**
501 * @license lucide-react v0.475.0 - ISC
502 *
503 * This source code is licensed under the ISC license.
504 * See the LICENSE file in the root directory of this source tree.
505 */const Nle=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],dd=rt("X",Nle);/**
506 * @license lucide-react v0.475.0 - ISC
507 *
508 * This source code is licensed under the ISC license.
509 * See the LICENSE file in the root directory of this source tree.
510 */const Tle=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],_le=rt("Youtube",Tle);
vendor: 3,680 bytes, lines 510-515
510/**
511 * @license lucide-react v0.475.0 - ISC
512 *
513 * This source code is licensed under the ISC license.
514 * See the LICENSE file in the root directory of this source tree.
515 */const Ile=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Rl=rt("Zap",Ile),Ple=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},jle=(e,t)=>({classGroupId:e,validator:t}),oW=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),e1="-",qL=[],Ole="arbitrary..",Fle=e=>{const t=Dle(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Lle(o);const s=o.split(e1),l=s[0]===""&&s.length>1?1:0;return sW(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=r[o],c=n[o];return l?c?Ple(c,l):l:c||qL}return n[o]||qL}}},sW=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const c=sW(e,t+1,a);if(c)return c}const o=n.validators;if(o===null)return;const s=t===0?e.join(e1):e.slice(t).join(e1),l=o.length;for(let c=0;c<l;c++){const d=o[c];if(d.validator(s))return d.classGroupId}},Lle=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Ole+r:void 0})(),Dle=e=>{const{theme:t,classGroups:n}=e;return Mle(n,t)},Mle=(e,t)=>{const n=oW();for(const r in e){const i=e[r];d3(i,n,r,t)}return n},d3=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];Ule(o,t,n,r)}},Ule=(e,t,n,r)=>{if(typeof e=="string"){Rle(e,t,n);return}if(typeof e=="function"){Qle(e,t,n,r);return}Hle(e,t,n,r)},Rle=(e,t,n)=>{const r=e===""?t:lW(t,e);r.classGroupId=n},Qle=(e,t,n,r)=>{if($le(e)){d3(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(jle(n,e))},Hle=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,l]=i[o];d3(l,lW(t,s),n,r)}},lW=(e,t)=>{let n=e;const r=t.split(e1),i=r.length;for(let a=0;a<i;a++){const o=r[a];let s=n.nextPart.get(o);s||(s=oW(),n.nextPart.set(o,s)),n=s}return n},$le=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,qle=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,o)=>{n[a]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let o=n[a];if(o!==void 0)return o;if((o=r[a])!==void 0)return i(a,o),o},set(a,o){a in n?n[a]=o:i(a,o)}}},$T="!",zL=":",zle=[],VL=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Vle=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let o=0,s=0,l=0,c;const d=i.length;for(let g=0;g<d;g++){const y=i[g];if(o===0&&s===0){if(y===zL){a.push(i.slice(l,g)),l=g+1;continue}if(y==="/"){c=g;continue}}y==="["?o++:y==="]"?o--:y==="("?s++:y===")"&&s--}const A=a.length===0?i:i.slice(l);let h=A,m=!1;A.endsWith($T)?(h=A.slice(0,-1),m=!0):A.startsWith($T)&&(h=A.slice(1),m=!0);const b=c&&c>l?c-l:void 0;return VL(a,m,h,b)};if(t){const i=t+zL,a=r;r=o=>o.startsWith(i)?a(o.slice(i.length)):VL(zle,!1,o,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},Wle=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const o=n[a],s=o[0]==="[",l=t.has(o);s||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},Kle=e=>({cache:qle(e.cacheSize),parseClassName:Vle(e),sortModifiers:Wle(e),...Fle(e)}),Gle=/\s+/,Yle=(e,t)=>
vendor: 5,126 bytes, line 515
515{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Gle);let l="";for(let c=s.length-1;c>=0;c-=1){const d=s[c],{isExternal:A,modifiers:h,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:g}=n(d);if(A){l=d+(l.length>0?" "+l:l);continue}let y=!!g,v=r(y?b.substring(0,g):b);if(!v){if(!y){l=d+(l.length>0?" "+l:l);continue}if(v=r(b),!v){l=d+(l.length>0?" "+l:l);continue}y=!1}const x=h.length===0?"":h.length===1?h[0]:a(h).join(":"),B=m?x+$T:x,C=B+v;if(o.indexOf(C)>-1)continue;o.push(C);const E=i(v,y);for(let T=0;T<E.length;++T){const j=E[T];o.push(B+j)}l=d+(l.length>0?" "+l:l)}return l},Xle=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=cW(n))&&(i&&(i+=" "),i+=r);return i},cW=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=cW(e[r]))&&(n&&(n+=" "),n+=t);return n},Jle=(e,...t)=>{let n,r,i,a;const o=l=>{const c=t.reduce((d,A)=>A(d),e());return n=Kle(c),r=n.cache.get,i=n.cache.set,a=s,s(l)},s=l=>{const c=r(l);if(c)return c;const d=Yle(l,n);return i(l,d),d};return a=o,(...l)=>a(Xle(...l))},Zle=[],Vi=e=>{const t=n=>n[e]||Zle;return t.isThemeGetter=!0,t},uW=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dW=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ece=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,tce=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nce=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rce=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ice=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ace=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xd=e=>ece.test(e),xn=e=>!!e&&!Number.isNaN(Number(e)),Jd=e=>!!e&&Number.isInteger(Number(e)),F5=e=>e.endsWith("%")&&xn(e.slice(0,-1)),Mu=e=>tce.test(e),AW=()=>!0,oce=e=>nce.test(e)&&!rce.test(e),A3=()=>!1,sce=e=>ice.test(e),lce=e=>ace.test(e),cce=e=>!It(e)&&!jt(e),uce=e=>zA(e,pW,A3),It=e=>uW.test(e),Pf=e=>zA(e,mW,oce),WL=e=>zA(e,yce,xn),dce=e=>zA(e,yW,AW),Ace=e=>zA(e,gW,A3),KL=e=>zA(e,fW,A3),fce=e=>zA(e,hW,lce),aw=e=>zA(e,vW,sce),jt=e=>dW.test(e),wy=e=>Rh(e,mW),hce=e=>Rh(e,gW),GL=e=>Rh(e,fW),pce=e=>Rh(e,pW),mce=e=>Rh(e,hW),ow=e=>Rh(e,vW,!0),gce=e=>Rh(e,yW,!0),zA=(e,t,n)=>{const r=uW.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Rh=(e,t,n=!1)=>{const r=dW.exec(e);return r?r[1]?t(r[1]):n:!1},fW=e=>e==="position"||e==="percentage",hW=e=>e==="image"||e==="url",pW=e=>e==="length"||e==="size"||e==="bg-size",mW=e=>e==="length",yce=e=>e==="number",gW=e=>e==="family-name",yW=e=>e==="number"||e==="weight",vW=e=>e==="shadow",vce=()=>{const e=Vi("color"),t=Vi("font"),n=Vi("text"),r=Vi("font-weight"),i=Vi("tracking"),a=Vi("leading"),o=Vi("breakpoint"),s=Vi("container"),l=Vi("spacing"),c=Vi("radius"),d=Vi("shadow"),A=Vi("inset-shadow"),h=Vi("text-shadow"),m=Vi("drop-shadow"),b=Vi("blur"),g=Vi("perspective"),y=Vi("aspect"),v=Vi("ease"),x=Vi("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),jt,It],T=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],O=()=>[jt,It,l],L=()=>[Xd,"full","auto",...O()],z=()=>[Jd,"none","subgrid",jt,It],F=()=>["auto",{span:["full",Jd,jt,It]},Jd,jt,It],M=()=>[Jd,"auto",jt,It],V=()=>["auto","min","max","fr",jt,It],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...O()],ne=()=>[Xd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],K=()=>[Xd,"screen","full","dvw","lvw","svw","min","max","fit",...O()],oe=()=>[Xd,"screen","full","lh","dvh","lvh","svh","min","max","fit",...O()],$=()=>[e,jt,It],X=()=>[...C(),GL,KL,{position:[jt,It]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",pce,uce,{size:[jt,It]}],re=()=>[F5,wy,Pf],ce=()=>["","none","full",c,jt,It],le=()=>["",xn,wy,Pf],he=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ae=()=>[xn,F5,GL,KL],be=()=>["","none",b,jt,It],Ee=()=>["none",xn,jt,It],ge=()=>["none",xn,jt,It],Ue=()=>[xn,jt,It],Ye=()=>[Xd,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Mu],breakpoint:[Mu],color:[AW],container:[Mu],"drop-shadow":[Mu],ease:["in","out","in-out"],font:[cce],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Mu],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Mu],shadow:[Mu],spacing:["px",xn],text:[Mu],"text-shadow":[Mu],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xd,It,jt,y]}
vendor: 5,909 bytes, line 515
515],container:["container"],columns:[{columns:[xn,It,jt,s]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Jd,"auto",jt,It]}],basis:[{basis:[Xd,"full","auto",s,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xn,Xd,"auto","initial","none",It]}],grow:[{grow:["",xn,jt,It]}],shrink:[{shrink:["",xn,jt,It]}],order:[{order:[Jd,"first","last","none",jt,It]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pbs:[{pbs:O()}],pbe:[{pbe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mbs:[{mbs:ee()}],mbe:[{mbe:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...oe()]}],"min-block-size":[{"min-block":["auto",...oe()]}],"max-block-size":[{"max-block":["none",...oe()]}],w:[{w:[s,"screen",...ne()]}],"min-w":[{"min-w":[s,"screen","none",...ne()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",n,wy,Pf]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,gce,dce]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",F5,It]}],"font-family":[{font:[hce,Ace,t]}],"font-features":[{"font-features":[It]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,jt,It]}],"line-clamp":[{"line-clamp":[xn,"none",jt,WL]}],leading:[{leading:[a,...O()]}],"list-image":[{"list-image":["none",jt,It]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",jt,It]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[xn,"from-font","auto",jt,Pf]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[xn,"auto",jt,It]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",jt,It]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",jt,It]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:Q()}
vendor: 7,612 bytes, line 515
515],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Jd,jt,It],radial:["",jt,It],conic:[Jd,jt,It]},mce,fce]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-bs":[{"border-bs":$()}],"border-color-be":[{"border-be":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xn,jt,It]}],"outline-w":[{outline:["",xn,wy,Pf]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",d,ow,aw]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",A,ow,aw]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[xn,Pf]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",h,ow,aw]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[xn,jt,It]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[xn]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ae()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":Ae()}],"mask-image-t-to-pos":[{"mask-t-to":Ae()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":Ae()}],"mask-image-r-to-pos":[{"mask-r-to":Ae()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":Ae()}],"mask-image-b-to-pos":[{"mask-b-to":Ae()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":Ae()}],"mask-image-l-to-pos":[{"mask-l-to":Ae()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":Ae()}],"mask-image-x-to-pos":[{"mask-x-to":Ae()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":Ae()}],"mask-image-y-to-pos":[{"mask-y-to":Ae()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[jt,It]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ae()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[xn]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ae()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",jt,It]}],filter:[{filter:["","none",jt,It]}],blur:[{blur:be()}],brightness:[{brightness:[xn,jt,It]}],contrast:[{contrast:[xn,jt,It]}],"drop-shadow":[{"drop-shadow":["","none",m,ow,aw]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",xn,jt,It]}],"hue-rotate":[{"hue-rotate":[xn,jt,It]}],invert:[{invert:["",xn,jt,It]}],saturate:[{saturate:[xn,jt,It]}],sepia:[{sepia:["",xn,jt,It]}],"backdrop-filter":[{"backdrop-filter":["","none",jt,It]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[xn,jt,It]}],"backdrop-contrast":[{"backdrop-contrast":[xn,jt,It]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xn,jt,It]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xn,jt,It]}],"backdrop-invert":[{"backdrop-invert":["",xn,jt,It]}],"backdrop-opacity":[{"backdrop-opacity":[xn,jt,It]}],"backdrop-saturate":[{"backdrop-saturate":[xn,jt,It]}],"backdrop-sepia":[{"backdrop-sepia":["",xn,jt,It]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",jt,It]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xn,"initial",jt,It]}],ease:[{ease:["linear","initial",v,jt,It]}],delay:[{delay:[xn,jt,It]}],animate:[{animate:["none",x,jt,It]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,jt,It]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[jt,It,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}
vendor: 6,963 bytes, line 515
515],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",jt,It]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mbs":[{"scroll-mbs":O()}],"scroll-mbe":[{"scroll-mbe":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pbs":[{"scroll-pbs":O()}],"scroll-pbe":[{"scroll-pbe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",jt,It]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[xn,wy,Pf,WL]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bce=Jle(vce);function Ci(...e){return bce(Cn(e))}const bW=_.forwardRef(({...e},t)=>u.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));bW.displayName="ToastProvider";const wW=_.forwardRef(({...e},t)=>u.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));wW.displayName="ToastViewport";const wce=QV("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),xW=_.forwardRef(({className:e,variant:t,...n},r)=>u.jsx("div",{ref:r,className:Ci(wce({variant:t}),e),...n}));xW.displayName="Toast";const xce=_.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Ci("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));xce.displayName="ToastAction";const SW=_.forwardRef(({className:e,...t},n)=>u.jsx("button",{ref:n,className:Ci("absolute right-2 top-2 rounded-md p-1 text-foreground
515/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(dd,{className:"h-4 w-4"})}));SW.displayName="ToastClose";const BW=_.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Ci("text-sm font-semibold",e),...t}));BW.displayName="ToastTitle";const CW=_.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Ci("text-sm opacity-90",e),...t}));CW.displayName="ToastDescription";function Sce(){const{toasts:e}=uoe();return u.jsxs(bW,{children:[e.map(function({id:t,title:n,description:r,action:i,...a}){return u.jsxs(xW,{...a,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(BW,{children:n}),r&&u.jsx(CW,{children:r})]}),i,u.jsx(SW,{})]},t)}),u.jsx(wW,{})]})}var Z2=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Bce={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},AA,r3,TV,Cce=(TV=class{constructor(){Pn(this,AA,Bce);Pn(this,r3,!1)}setTimeoutProvider(e){cn(this,AA,e)}setTimeout(e,t){return We(this,AA).setTimeout(e,t)}clearTimeout(e){We(this,AA).clearTimeout(e)}setInterval(e,t){return We(this,AA).setInterval(e,t)}clearInterval(e){We(this,AA).clearInterval(e)}},AA=new WeakMap,r3=new WeakMap,TV),qT=new Cce;function kce(e){setTimeout(e,0)}var eS=typeof window>"u"||"Deno"in globalThis;function Fl(){}function Ece(e,t){return typeof e=="function"?e(t):e}function Nce(e){return typeof e=="number"&&e>=0&&e!==1/0}function Tce(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zT(e,t){return typeof e=="function"?e(t):e}function _ce(e,t){return typeof e=="function"?e(t):e}function YL(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==f3(o,t.options))return!1}else if(!Rv(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function XL(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Uv(t.options.mutationKey)!==Uv(a))return!1}else if(!Rv(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function f3(e,t){return((t==null?void 0:t.queryKeyHashFn)||Uv)(e)}function Uv(e){return JSON.stringify(e,(t,n)=>VT(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Rv(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Rv(e[n],t[n])):!1}var Ice=Object.prototype.hasOwnProperty;function kW(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=JL(e)&&JL(t);if(!r&&!(VT(e)&&VT(t)))return t;const a=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),s=o.length,l=r?new Array(s):{};let c=0;for(let d=0;d<s;d++){const A=r?d:o[d],h=e[A],m=t[A];if(h===m){l[A]=h,(r?d<a:Ice.call(e,A))&&c++;continue}if(h===null||m===null||typeof h!="object"||typeof m!="object"){l[A]=m;continue}const b=kW(h,m,n+1);l[A]=b,b===h&&c++}return a===s&&c===a?e:l}function JL(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function VT(e){if(!ZL(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ZL(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ZL(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pce(e){return new Promise(t=>{qT.setTimeout(t,e)})}function jce(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?kW(e,t):t}function Oce(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Fce(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var h3=Symbol();function EW(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===h3?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Lce(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var ah,fA,km,_V,Dce=(_V=class extends Z2{constructor(){super();Pn(this,ah);Pn(this,fA);Pn(this,km);cn(this,km,t=>{if(!eS&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){We(this,fA)||this.setEventListener(We(this,km))}onUnsubscribe(){var t;this.hasListeners()||((t=We(this,fA))==null||t.call(this),cn(this,fA,void 0))}setEventListener(t){var n;cn(this,km,t),(n=We(this,fA))==null||n.call(this),cn(this,fA,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){We(this,ah)!==t&&(cn(this,ah,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 5,040 bytes, line 515
515this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof We(this,ah)=="boolean"?We(this,ah):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ah=new WeakMap,fA=new WeakMap,km=new WeakMap,_V),NW=new Dce;function Mce(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var Uce=kce;function Rce(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=Uce;const a=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var yo=Rce(),Em,hA,Nm,IV,Qce=(IV=class extends Z2{constructor(){super();Pn(this,Em,!0);Pn(this,hA);Pn(this,Nm);cn(this,Nm,t=>{if(!eS&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){We(this,hA)||this.setEventListener(We(this,Nm))}onUnsubscribe(){var t;this.hasListeners()||((t=We(this,hA))==null||t.call(this),cn(this,hA,void 0))}setEventListener(t){var n;cn(this,Nm,t),(n=We(this,hA))==null||n.call(this),cn(this,hA,t(this.setOnline.bind(this)))}setOnline(t){We(this,Em)!==t&&(cn(this,Em,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return We(this,Em)}},Em=new WeakMap,hA=new WeakMap,Nm=new WeakMap,IV),t1=new Qce;function Hce(e){return Math.min(1e3*2**e,3e4)}function TW(e){return(e??"online")==="online"?t1.isOnline():!0}var WT=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function _W(e){let t=!1,n=0,r;const i=Mce(),a=()=>i.status!=="pending",o=g=>{var y;if(!a()){const v=new WT(g);h(v),(y=e.onCancel)==null||y.call(e,v)}},s=()=>{t=!0},l=()=>{t=!1},c=()=>NW.isFocused()&&(e.networkMode==="always"||t1.isOnline())&&e.canRun(),d=()=>TW(e.networkMode)&&e.canRun(),A=g=>{a()||(r==null||r(),i.resolve(g))},h=g=>{a()||(r==null||r(),i.reject(g))},m=()=>new Promise(g=>{var y;r=v=>{(a()||c())&&g(v)},(y=e.onPause)==null||y.call(e)}).then(()=>{var g;r=void 0,a()||(g=e.onContinue)==null||g.call(e)}),b=()=>{if(a())return;let g;const y=n===0?e.initialPromise:void 0;try{g=y??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(A).catch(v=>{var T;if(a())return;const x=e.retry??(eS?0:3),B=e.retryDelay??Hce,C=typeof B=="function"?B(n,v):B,E=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,v);if(t||!E){h(v);return}n++,(T=e.onFail)==null||T.call(e,n,v),Pce(C).then(()=>c()?void 0:m()).then(()=>{t?h(v):b()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:s,continueRetry:l,canStart:d,start:()=>(d()?b():m().then(b),i)}}var oh,PV,IW=(PV=class{constructor(){Pn(this,oh)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Nce(this.gcTime)&&cn(this,oh,qT.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(eS?1/0:300*1e3))}clearGcTimeout(){We(this,oh)&&(qT.clearTimeout(We(this,oh)),cn(this,oh,void 0))}},oh=new WeakMap,PV),sh,Tm,Xs,lh,la,z0,ch,Ml,zu,jV,$ce=(jV=class extends IW{constructor(t){super();Pn(this,Ml);Pn(this,sh);Pn(this,Tm);Pn(this,Xs);Pn(this,lh);Pn(this,la);Pn(this,z0);Pn(this,ch);cn(this,ch,!1),cn(this,z0,t.defaultOptions),this.setOptions(t.options),this.observers=[],cn(this,lh,t.client),cn(this,Xs,We(this,lh).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,cn(this,sh,t6(this.options)),this.state=t.state??We(this,sh),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=We(this,la))==null?void 0:t.promise}setOptions(t){if(this.options={...We(this,z0),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=t6(this.options);n.data!==void 0&&(this.setState(e6(n.data,n.dataUpdatedAt)),cn(this,sh,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&We(this,Xs).remove(this)}setData(t,n){const r=jce(this.state.data,t,this.options);return Ra(this,Ml,zu).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ra(this,Ml,zu).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=We(this,la))==null?void 0:r.promise;return(i=We(this,la))==null||i.cancel(t),n?n.then(Fl).catch(Fl):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(We(this,sh))}isActive(){return this.observers.some(t=>_ce(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===h3||this.state.dataUpdateCount+this.state.errorUpdate
515Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>zT(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Tce(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=We(this,la))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=We(this,la))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),We(this,Xs).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(We(this,la)&&(We(this,ch)?We(this,la).cancel({revert:!0}):We(this,la).cancelRetry()),this.scheduleGc()),We(this,Xs).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ra(this,Ml,zu).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,d,A,h,m,b,g,y,v,x,B;if(this.state.fetchStatus!=="idle"&&((l=We(this,la))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(We(this,la))return We(this,la).continueRetry(),We(this,la).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(E=>E.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,i=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(cn(this,ch,!0),r.signal)})},a=()=>{const C=EW(this.options,n),T=(()=>{const j={client:We(this,lh),queryKey:this.queryKey,meta:this.meta};return i(j),j})();return cn(this,ch,!1),this.options.persister?this.options.persister(C,T,this):C(T)},s=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:We(this,lh),state:this.state,fetchFn:a};return i(C),C})();(c=this.options.behavior)==null||c.onFetch(s,this),cn(this,Tm,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&Ra(this,Ml,zu).call(this,{type:"fetch",meta:(A=s.fetchOptions)==null?void 0:A.meta}),cn(this,la,_W({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:C=>{C instanceof WT&&C.revert&&this.setState({...We(this,Tm),fetchStatus:"idle"}),r.abort()},onFail:(C,E)=>{Ra(this,Ml,zu).call(this,{type:"failed",failureCount:C,error:E})},onPause:()=>{Ra(this,Ml,zu).call(this,{type:"pause"})},onContinue:()=>{Ra(this,Ml,zu).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const C=await We(this,la).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(m=(h=We(this,Xs).config).onSuccess)==null||m.call(h,C,this),(g=(b=We(this,Xs).config).onSettled)==null||g.call(b,C,this.state.error,this),C}catch(C){if(C instanceof WT){if(C.silent)return We(this,la).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Ra(this,Ml,zu).call(this,{type:"error",error:C}),(v=(y=We(this,Xs).config).onError)==null||v.call(y,C,this),(B=(x=We(this,Xs).config).onSettled)==null||B.call(x,this.state.data,C,this),C}finally{this.scheduleGc()}}},sh=new WeakMap,Tm=new WeakMap,Xs=new WeakMap,lh=new WeakMap,la=new WeakMap,z0=new WeakMap,ch=new WeakMap,Ml=new WeakSet,zu=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...qce(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...e6(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return cn(this,Tm,t.manual?i:void 0),i;case"error":const a=t.error;
515return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),yo.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),We(this,Xs).notify({query:this,type:"updated",action:t})})},jV);function qce(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:TW(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function e6(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function t6(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function n6(e){return{onFetch:(t,n)=>{var d,A,h,m,b;const r=t.options,i=(h=(A=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:A.fetchMore)==null?void 0:h.direction,a=((m=t.state.data)==null?void 0:m.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const y=B=>{Lce(B,()=>t.signal,()=>g=!0)},v=EW(t.options,t.fetchOptions),x=async(B,C,E)=>{if(g)return Promise.reject();if(C==null&&B.pages.length)return Promise.resolve(B);const j=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:C,direction:E?"backward":"forward",meta:t.options.meta};return y(F),F})(),O=await v(j),{maxPages:L}=t.options,z=E?Fce:Oce;return{pages:z(B.pages,O,L),pageParams:z(B.pageParams,C,L)}};if(i&&a.length){const B=i==="backward",C=B?zce:r6,E={pages:a,pageParams:o},T=C(r,E);s=await x(E,T,B)}else{const B=e??a.length;do{const C=l===0?o[0]??r.initialPageParam:r6(r,s);if(l>0&&C==null)break;s=await x(s,C),l++}while(l<B)}return s};t.options.persister?t.fetchFn=()=>{var g,y;return(y=(g=t.options).persister)==null?void 0:y.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function r6(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function zce(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var V0,Ic,Va,uh,Pc,rA,OV,Vce=(OV=class extends IW{constructor(t){super();Pn(this,Pc);Pn(this,V0);Pn(this,Ic);Pn(this,Va);Pn(this,uh);cn(this,V0,t.client),this.mutationId=t.mutationId,cn(this,Va,t.mutationCache),cn(this,Ic,[]),this.state=t.state||Wce(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){We(this,Ic).includes(t)||(We(this,Ic).push(t),this.clearGcTimeout(),We(this,Va).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){cn(this,Ic,We(this,Ic).filter(n=>n!==t)),this.scheduleGc(),We(this,Va).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){We(this,Ic).length||(this.state.status==="pending"?this.scheduleGc():We(this,Va).remove(this))}continue(){var t;return((t=We(this,uh))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,l,c,d,A,h,m,b,g,y,v,x,B,C,E,T,j;const n=()=>{Ra(this,Pc,rA).call(this,{type:"continue"})},r={client:We(this,V0),meta:this.options.meta,mutationKey:this.options.mutationKey};cn(this,uh,_W({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(O,L)=>{Ra(this,Pc,rA).call(this,{type:"failed",failureCount:O,error:L})},onPause:()=>{Ra(this,Pc,rA).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>We(this,Va).canRun(this)}));const i=this.state.status==="pending",a=!We(this,uh).canStart();try{if(i)n();else{Ra(this,Pc,rA).call(this,{type:"pending",variables:t,isPaused:a}),We(this,Va).config.onMutate&&await We(this,Va).config.onMutate(t,this,r);const L=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t,r));L!==this.state.context&&Ra(this,Pc,rA).call(this,{type:"pending",context:L,variables:t,isPaused:a})}const O=await We(this,uh).start();return await((c=(l=We(this,Va).config).onSuccess)==null?void 0:c.call(l,O,t,this.state.context,this,r)),await((A=(d=this.options).onSuccess)==null?void 0:A.call(d,O,t,this.state.context,r)),await((m=(h=We(this,Va).config).onSettled)==null?void 0:m.call(h,O,null,this.state.variables,this.state.context,this,r)),await((g=(b=this.options).onSettled)==null?void 0:g.call(b,O,null,t,this.state.context,r)),Ra(this,Pc,rA).call(this,{type:"success",data:O}),O}catch(O){try{await((v=(y=We(this,Va).config).onError)==null?void 0:v.call(y,O,t,this.state.context,this,r))}catch(L){Promise.reject(L)}try{await((B=(x=this.options).onError)==null?void 0:B.call(x,O,t,this.state.context,r))}catch(L){Promise.reject(L)}
515try{await((E=(C=We(this,Va).config).onSettled)==null?void 0:E.call(C,void 0,O,this.state.variables,this.state.context,this,r))}catch(L){Promise.reject(L)}try{await((j=(T=this.options).onSettled)==null?void 0:j.call(T,void 0,O,t,this.state.context,r))}catch(L){Promise.reject(L)}throw Ra(this,Pc,rA).call(this,{type:"error",error:O}),O}finally{We(this,Va).runNext(this)}}},V0=new WeakMap,Ic=new WeakMap,Va=new WeakMap,uh=new WeakMap,Pc=new WeakSet,rA=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),yo.batch(()=>{We(this,Ic).forEach(r=>{r.onMutationUpdate(t)}),We(this,Va).notify({mutation:this,type:"updated",action:t})})},OV);function Wce(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wu,Ul,W0,FV,Kce=(FV=class extends Z2{constructor(t={}){super();Pn(this,Wu);Pn(this,Ul);Pn(this,W0);this.config=t,cn(this,Wu,new Set),cn(this,Ul,new Map),cn(this,W0,0)}build(t,n,r){const i=new Vce({client:t,mutationCache:this,mutationId:++nw(this,W0)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){We(this,Wu).add(t);const n=sw(t);if(typeof n=="string"){const r=We(this,Ul).get(n);r?r.push(t):We(this,Ul).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(We(this,Wu).delete(t)){const n=sw(t);if(typeof n=="string"){const r=We(this,Ul).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&We(this,Ul).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=sw(t);if(typeof n=="string"){const r=We(this,Ul).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=sw(t);if(typeof n=="string"){const i=(r=We(this,Ul).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yo.batch(()=>{We(this,Wu).forEach(t=>{this.notify({type:"removed",mutation:t})}),We(this,Wu).clear(),We(this,Ul).clear()})}getAll(){return Array.from(We(this,Wu))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>XL(n,r))}findAll(t={}){return this.getAll().filter(n=>XL(t,n))}notify(t){yo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return yo.batch(()=>Promise.all(t.map(n=>n.continue().catch(Fl))))}},Wu=new WeakMap,Ul=new WeakMap,W0=new WeakMap,FV);function sw(e){var t;return(t=e.options.scope)==null?void 0:t.id}var jc,LV,Gce=(LV=class extends Z2{constructor(t={}){super();Pn(this,jc);this.config=t,cn(this,jc,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??f3(i,n);let o=this.get(a);return o||(o=new $ce({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){We(this,jc).has(t.queryHash)||(We(this,jc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=We(this,jc).get(t.queryHash);n&&(t.destroy(),n===t&&We(this,jc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){yo.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return We(this,jc).get(t)}getAll(){return[...We(this,jc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>YL(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>YL(t,r)):n}notify(t){yo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){yo.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){yo.batch(()=>
vendor: 4,582 bytes, line 515
515{this.getAll().forEach(t=>{t.onOnline()})})}},jc=new WeakMap,LV),li,pA,mA,_m,Im,gA,Pm,jm,DV,Yce=(DV=class{constructor(e={}){Pn(this,li);Pn(this,pA);Pn(this,mA);Pn(this,_m);Pn(this,Im);Pn(this,gA);Pn(this,Pm);Pn(this,jm);cn(this,li,e.queryCache||new Gce),cn(this,pA,e.mutationCache||new Kce),cn(this,mA,e.defaultOptions||{}),cn(this,_m,new Map),cn(this,Im,new Map),cn(this,gA,0)}mount(){nw(this,gA)._++,We(this,gA)===1&&(cn(this,Pm,NW.subscribe(async e=>{e&&(await this.resumePausedMutations(),We(this,li).onFocus())})),cn(this,jm,t1.subscribe(async e=>{e&&(await this.resumePausedMutations(),We(this,li).onOnline())})))}unmount(){var e,t;nw(this,gA)._--,We(this,gA)===0&&((e=We(this,Pm))==null||e.call(this),cn(this,Pm,void 0),(t=We(this,jm))==null||t.call(this),cn(this,jm,void 0))}isFetching(e){return We(this,li).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return We(this,pA).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=We(this,li).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=We(this,li).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(zT(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return We(this,li).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=We(this,li).get(r.queryHash),a=i==null?void 0:i.state.data,o=Ece(t,a);if(o!==void 0)return We(this,li).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return yo.batch(()=>We(this,li).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=We(this,li).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=We(this,li);yo.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=We(this,li);return yo.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=yo.batch(()=>We(this,li).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Fl).catch(Fl)}invalidateQueries(e,t={}){return yo.batch(()=>(We(this,li).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=yo.batch(()=>We(this,li).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Fl)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Fl)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=We(this,li).build(this,t);return n.isStaleByTime(zT(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Fl).catch(Fl)}fetchInfiniteQuery(e){return e.behavior=n6(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Fl).catch(Fl)}ensureInfiniteQueryData(e){return e.behavior=n6(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return t1.isOnline()?We(this,pA).resumePausedMutations():Promise.resolve()}getQueryCache(){return We(this,li)}getMutationCache(){return We(this,pA)}getDefaultOptions(){return We(this,mA)}setDefaultOptions(e){cn(this,mA,e)}setQueryDefaults(e,t){We(this,_m).set(Uv(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...We(this,_m).values()],n={};return t.forEach(r=>{Rv(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){We(this,Im).set(Uv(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...We(this,Im).values()],n={};return t.forEach(r=>{Rv(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...We(this,mA).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=f3(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===h3&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...We(this,mA).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}
vendor: 4,140 bytes, lines 515-524
515clear(){We(this,li).clear(),We(this,pA).clear()}},li=new WeakMap,pA=new WeakMap,mA=new WeakMap,_m=new WeakMap,Im=new WeakMap,gA=new WeakMap,Pm=new WeakMap,jm=new WeakMap,DV),Xce=_.createContext(void 0),Jce=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Xce.Provider,{value:e,children:t}));const Zce=new Yce({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var Qh=UV();const PW=nr(Qh);/**
516 * @remix-run/router v1.23.2
517 *
518 * Copyright (c) Remix Software Inc.
519 *
520 * This source code is licensed under the MIT license found in the
521 * LICENSE.md file in the root directory of this source tree.
522 *
523 * @license MIT
524 */function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qv.apply(this,arguments)}var yA;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(yA||(yA={}));const i6="popstate";function eue(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:o,hash:s}=r.location;return KT("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:n1(i)}return nue(t,n,null,e)}function Di(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function p3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tue(){return Math.random().toString(36).substr(2,8)}function a6(e,t){return{usr:e.state,key:e.key,idx:t}}function KT(e,t,n,r){return n===void 0&&(n=null),Qv({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wg(t):t,{state:n,key:t&&t.key||r||tue()})}function n1(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function wg(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function nue(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=yA.Pop,l=null,c=d();c==null&&(c=0,o.replaceState(Qv({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function A(){s=yA.Pop;let y=d(),v=y==null?null:y-c;c=y,l&&l({action:s,location:g.location,delta:v})}function h(y,v){s=yA.Push;let x=KT(g.location,y,v);c=d()+1;let B=a6(x,c),C=g.createHref(x);try{o.pushState(B,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(C)}a&&l&&l({action:s,location:g.location,delta:1})}function m(y,v){s=yA.Replace;let x=KT(g.location,y,v);c=d();let B=a6(x,c),C=g.createHref(x);o.replaceState(B,"",C),a&&l&&l({action:s,location:g.location,delta:0})}function b(y){let v=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof y=="string"?y:n1(y);return x=x.replace(/ $/,"%20"),Di(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let g={get action(){return s},get location(){return e(i,o)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(i6,A),l=y,()=>{i.removeEventListener(i6,A),l=null}},createHref(y){return t(i,y)},createURL:b,encodeLocation(y){let v=b(y);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:m,go(y){return o.go(y)}};return g}var o6;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(o6||(o6={}));function rue(e,t,n){return n===void 0&&(n="/"),iue(e,t,n)}function iue(e,t,n,r){let i=typeof t=="string"?wg(t):t,a=m3(i.pathname||"/",n);if(a==null)return null;let o=jW(e);aue(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let c=gue(a);s=hue(o[l],c)}return s}function jW(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,o,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Di(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
524id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=EA([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(Di(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),jW(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:Aue(c,a.index),routesMeta:d})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of OW(a.path))i(a,o,l)}),t}function OW(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=OW(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function aue(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fue(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const oue=/^:[\w-]+$/,sue=3,lue=2,cue=1,uue=10,due=-2,s6=e=>e==="*";function Aue(e,t){let n=e.split("/"),r=n.length;return n.some(s6)&&(r+=due),t&&(r+=lue),n.filter(i=>!s6(i)).reduce((i,a)=>i+(oue.test(a)?sue:a===""?cue:uue),r)}function fue(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function hue(e,t,n){let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,d=a==="/"?t:t.slice(a.length)||"/",A=pue({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),h=l.route;if(!A)return null;
vendor: 9,943 bytes, lines 524-533
524Object.assign(i,A.params),o.push({params:i,pathname:EA([a,A.pathname]),pathnameBase:xue(EA([a,A.pathnameBase])),route:h}),A.pathnameBase!=="/"&&(a=EA([a,A.pathnameBase]))}return o}function pue(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=mue(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,d,A)=>{let{paramName:h,isOptional:m}=d;if(h==="*"){let g=s[A]||"";o=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const b=s[A];return m&&!b?c[h]=void 0:c[h]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function mue(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),p3(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function gue(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return p3(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function m3(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const yue=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vue=e=>yue.test(e);function bue(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?wg(e):e,a;if(n)if(vue(n))a=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),p3(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?a=l6(n.substring(1),"/"):a=l6(n,t)}else a=t;return{pathname:a,search:Sue(r),hash:Bue(i)}}function l6(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function L5(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function wue(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function FW(e,t){let n=wue(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function LW(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=wg(e):(i=Qv({},e),Di(!i.pathname||!i.pathname.includes("?"),L5("?","pathname","search",i)),Di(!i.pathname||!i.pathname.includes("#"),L5("#","pathname","hash",i)),Di(!i.search||!i.search.includes("#"),L5("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let A=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),A-=1;i.pathname=h.join("/")}s=A>=0?t[A]:"/"}let l=bue(i,s),c=o&&o!=="/"&&o.endsWith("/"),d=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const EA=e=>e.join("/").replace(/\/\/+/g,"/"),xue=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Sue=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Bue=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Cue(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const DW=["post","put","patch","delete"];new Set(DW);const kue=["get",...DW];new Set(kue);/**
525 * React Router v6.30.3
526 *
527 * Copyright (c) Remix Software Inc.
528 *
529 * This source code is licensed under the MIT license found in the
530 * LICENSE.md file in the root directory of this source tree.
531 *
532 * @license MIT
533 */function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hv.apply(this,arguments)}const g3=_.createContext(null),Eue=_.createContext(null),Hh=_.createContext(null),tS=_.createContext(null),Ad=_.createContext({outlet:null,matches:[],isDataRoute:!1}),MW=_.createContext(null);function Nue(e,t){let{relative:n}=t===void 0?{}:t;Y0()||Di(!1);let{basename:r,navigator:i}=_.useContext(Hh),{hash:a,pathname:o,search:s}=QW(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:EA([r,o])),i.createHref({pathname:l,search:s,hash:a})}function Y0(){return _.useContext(tS)!=null}function VA(){return Y0()||Di(!1),_.useContext(tS).location}function UW(e){_.useContext(Hh).static||_.useLayoutEffect(e)}function Tue(){let{isDataRoute:e}=_.useContext(Ad);return e?que():_ue()}function _ue(){Y0()||Di(!1);let e=_.useContext(g3),{basename:t,future:n,navigator:r}=_.useContext(Hh),{matches:i}=_.useContext(Ad),{pathname:a}=VA(),o=JSON.stringify(FW(i,n.v7_relativeSplatPath)),s=_.useRef(!1);return UW(()=>{s.current=!0}),_.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let A=LW(c,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(A.pathname=A.pathname==="/"?t:EA([t,A.pathname])),(d.replace?r.replace:r.push)(A,d.state,d)},[t,r,o,a,e])}const Iue=_.createContext(null);function Pue(e){let t=_.useContext(Ad).outlet;return t&&_.createElement(Iue.Provider,{value:e},t)}function RW(){let{matches:e}=_.useContext(Ad),t=e[e.length-1];return t?t.params:{}}function QW(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(Hh),{matches:i}=_.useContext(Ad),{pathname:a}=VA(),o=JSON.stringify(FW(i,r.v7_relativeSplatPath));return _.useMemo(()=>LW(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function jue(e,t){return Oue(e,t)}function Oue(e,t,n,r){Y0()||Di(!1);let{navigator:i}=_.useContext(Hh),{matches:a}=_.useContext(Ad),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=VA(),d;if(t){var A;let y=typeof t=="string"?wg(t):t;l==="/"||(A=y.pathname)!=null&&A.startsWith(l)||Di(!1),d=y}else d=c;let h=d.pathname||"/",m=h;if(l!=="/"){let y=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=rue(e,{pathname:m}),g=Uue(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:EA([l,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:EA([l,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),a,n,r);return t&&g?_.createElement(tS.Provider,{value:{location:Hv({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:yA.Pop}},g):g}function Fue(){let e=$ue(),t=Cue(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,null)}const Lue=_.createElement(Fue,null);class Due extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?_.createElement(Ad.Provider,{value:this.props.routeContext},_.createElement(MW.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Mue(e){let{routeContext:t,match:n,children:r}=e,i=_.useContext(g3);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(Ad.Provider,{value:t},r)}function Uue(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let d=o.findIndex(A=>A.route.id&&(s==null?void 0:s[A.route.id])!==void 0);d>=0||Di(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let A=o[d];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(c=d),A.route.id){let{loaderData:h,errors:m}=n,b=A.route.loader&&h[A.route.id]===void 0&&(!m||m[A.route.id]===void 0);if(A.route.lazy||b){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,A,h)=>{let m,b=!1,g=null,y=null;n&&(m=s&&A.route.id?s[A.route.id]:void 0,g=A.route.errorElement||Lue,l&&(c<0&&h===0?(zue("route-fallback"),b=!0,y=null):c===h&&(b=!0,y=A.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,h+1)),x=()=>{let B;return m?B=g:b?B=y:A.route.Component?B=_.createElement(A.route.Component,null):A.route.element?B=A.route.element:B=d,_.createElement(Mue,{match:A,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:B})};return n&&(A.route.ErrorBoundary||A.route.errorElement||h===0)?_.createElement(Due,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:x(),routeC
533ontext:{outlet:null,matches:v,isDataRoute:!0}}):x()},null)}var HW=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(HW||{}),$W=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})($W||{});function Rue(e){let t=_.useContext(g3);return t||Di(!1),t}function Que(e){let t=_.useContext(Eue);return t||Di(!1),t}function Hue(e){let t=_.useContext(Ad);return t||Di(!1),t}function qW(e){let t=Hue(),n=t.matches[t.matches.length-1];return n.route.id||Di(!1),n.route.id}function $ue(){var e;let t=_.useContext(MW),n=Que(),r=qW();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function que(){let{router:e}=Rue(HW.UseNavigateStable),t=qW($W.UseNavigateStable),n=_.useRef(!1);return UW(()=>{n.current=!0}),_.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Hv({fromRouteId:t},a)))},[e,t])}const c6={};function zue(e,t,n){c6[e]||(c6[e]=!0)}function Vue(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Wue(e){return Pue(e.context)}function Fn(e){Di(!1)}function Kue(e){let{basename:t="/",children:n=null,location:r,navigationType:i=yA.Pop,navigator:a,static:o=!1,future:s}=e;Y0()&&Di(!1);let l=t.replace(/^\/*/,"/"),c=_.useMemo(()=>({basename:l,navigator:a,static:o,future:Hv({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=wg(r));let{pathname:d="/",search:A="",hash:h="",state:m=null,key:b="default"}=r,g=_.useMemo(()=>{let y=m3(d,l);return y==null?null:{location:{pathname:y,search:A,hash:h,state:m,key:b},navigationType:i}},[l,d,A,h,m,b,i]);return g==null?null:_.createElement(Hh.Provider,{value:c},_.createElement(tS.Provider,{children:n,value:g}))}function Gue(e){let{children:t,location:n}=e;return jue(GT(t),n)}new Promise(()=>{});function GT(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(r,i)=>{if(!_.isValidElement(r))return;let a=[...t,i];if(r.type===_.Fragment){n.push.apply(n,GT(r.props.children,a));return}r.type!==Fn&&Di(!1),!r.props.index||!r.props.children||Di(!1);let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=GT(r.props.children,a)),n.push(o)}),n}/**
534 * React Router DOM v6.30.3
535 *
536 * Copyright (c) Remix Software Inc.
537 *
538 * This source code is licensed under the MIT license found in the
539 * LICENSE.md file in the root directory of this source tree.
540 *
541 * @license MIT
542 */function YT(){return YT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YT.apply(this,arguments)}function Yue(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Xue(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jue(e,t){return e.button===0&&(!t||t==="_self")&&!Xue(e)}const Zue=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ede="6";try{window.__reactRouterVersion=ede}catch{}const tde="startTransition",u6=W2[tde];function nde(e){let{basename:t,children:n,future:r,window:i}=e,a=_.useRef();a.current==null&&(a.current=eue({window:i,v5Compat:!0}));let o=a.current,[s,l]=_.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=_.useCallback(A=>{c&&u6?u6(()=>l(A)):l(A)},[l,c]);return _.useLayoutEffect(()=>o.listen(d),[o,d]),_.useEffect(()=>Vue(r),[r]),_.createElement(Kue,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}const rde=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ide=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ft=_.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:d,viewTransition:A}
vendor: 9,403 bytes, lines 542-543
542=t,h=Yue(t,Zue),{basename:m}=_.useContext(Hh),b,g=!1;if(typeof c=="string"&&ide.test(c)&&(b=c,rde))try{let B=new URL(window.location.href),C=c.startsWith("//")?new URL(B.protocol+c):new URL(c),E=m3(C.pathname,m);C.origin===B.origin&&E!=null?c=E+C.search+C.hash:g=!0}catch{}let y=Nue(c,{relative:i}),v=ade(c,{replace:o,state:s,target:l,preventScrollReset:d,relative:i,viewTransition:A});function x(B){r&&r(B),B.defaultPrevented||v(B)}return _.createElement("a",YT({},h,{href:b||y,onClick:g||a?r:x,ref:n,target:l}))});var d6;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(d6||(d6={}));var A6;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(A6||(A6={}));function ade(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=Tue(),c=VA(),d=QW(e,{relative:o});return _.useCallback(A=>{if(Jue(A,n)){A.preventDefault();let h=r!==void 0?r:n1(c)===n1(d);l(e,{replace:h,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[c,l,d,r,i,n,e,a,o,s])}function zW(e,t){return function(){return e.apply(t,arguments)}}const{toString:ode}=Object.prototype,{getPrototypeOf:Lm}=Object,{iterator:X0,toStringTag:VW}=Symbol,r1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$v=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),r1(n,t))return!0;n=Lm(n)}return!1},sde=(e,t)=>e!=null&&$v(e,t)?e[t]:void 0,y3=(e=>t=>{const n=ode.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zl=e=>(e=e.toLowerCase(),t=>y3(t)===e),nS=e=>t=>typeof t===e,{isArray:xh}=Array,Dm=nS("undefined");function xg(e){return e!==null&&!Dm(e)&&e.constructor!==null&&!Dm(e.constructor)&&Uo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const WW=Zl("ArrayBuffer");function lde(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&WW(e.buffer),t}const cde=nS("string"),Uo=nS("function"),KW=nS("number"),Sg=e=>e!==null&&typeof e=="object",ude=e=>e===!0||e===!1,xx=e=>{if(!Sg(e))return!1;const t=Lm(e);return(t===null||t===Object.prototype||Lm(t)===null)&&!$v(e,VW)&&!$v(e,X0)},dde=e=>{if(!Sg(e)||xg(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ade=Zl("Date"),fde=Zl("File"),hde=e=>!!(e&&typeof e.uri<"u"),pde=e=>e&&typeof e.getParts<"u",mde=Zl("Blob"),gde=Zl("FileList"),yde=e=>Sg(e)&&Uo(e.pipe);function vde(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const f6=vde(),h6=typeof f6.FormData<"u"?f6.FormData:void 0,bde=e=>{if(!e)return!1;if(h6&&e instanceof h6)return!0;const t=Lm(e);if(!t||t===Object.prototype||!Uo(e.append))return!1;const n=y3(e);return n==="formdata"||n==="object"&&Uo(e.toString)&&e.toString()==="[object FormData]"},wde=Zl("URLSearchParams"),[xde,Sde,Bde,Cde]=["ReadableStream","Request","Response","Headers"].map(Zl),kde=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J0(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),xh(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(xg(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(r=0;r<o;r++)s=a[r],t.call(null,e[s],s,e)}}function GW(e,t){if(xg(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Gf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,YW=e=>!Dm(e)&&e!==Gf;function XT(...e){const{caseless:t,skipUndefined:n}=YW(this)&&this||{},r={},i=(a,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const s=t&&typeof o=="string"&&GW(r,o)||o,l=r1(r,s)?r[s]:void 0;xx(l)&&xx(a)?r[s]=XT(l,a):xx(a)?r[s]=XT({},a):xh(a)?r[s]=a.slice():(!n||!Dm(a))&&(r[s]=a)};for(let a=0,o=e.length;a<o;a++){const s=e[a];if(!s||xg(s)||(J0(s,i),typeof s!="object"||xh(s)))continue;const l=Object.getOwnPropertySymbols(s);for(let c=0;c<l.length;c++){const d=l[c];Mde.call(s,d)&&i(s[d],d)}}return r}const Ede=(e,t,n,{allOwnKeys:r}={})=>(J0(t,(i,a)=>{n&&Uo(i)?Object.defineProperty(e,a,{__proto__:null,value:zW(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Nde=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Tde=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},_de=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Lm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ide=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Pde=e=>{if(!e)return null;if(xh(e))return e;let t=e.length;if(!KW(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jde=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lm(Uint8Array)),Ode=(e,t)=>{const r=(e&&e[X0]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},Fde=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Lde=Zl("HTMLFormElement"),Dde=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:Mde}=Object.prototype,Ude=Zl("RegExp"),XW=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J0(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},Rde=e=>{XW(e,(t,n)=>{if(Uo(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Uo(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Qde=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return xh(e)?r(e):r(String(e).split(t)),n},Hde=()=>{},$de=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function qde(e){return!!(e&&Uo(e.append)&&e[VW]==="FormData"&&e[X0])}const zde=e=>{const t=new WeakSet,n=r=>{if(Sg(r)){if(t.has(r))return;if(xg(r))return r;if(!("toJSON"in r)){t.add(r);const i=xh(r)?[]:{};return J0(r,(a,o)=>{const s=n(a);!Dm(s)&&(i[o]=s)}),t.delete(r),i}}return r};return n(e)},Vde=Zl("AsyncFunction"),Wde=e=>e&&(Sg(e)||Uo(e))&&Uo(e.then)&&Uo(e.catch),JW=((e,t)=>e?setImmediate:t?((n,r)=>(Gf.addEventListener("message",({source:i,data:a})=>{i===Gf&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Gf.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Uo(Gf.postMessage)),Kde=typeof queueMicrotask<"u"?queueMicrotask.bind(Gf):typeof process<"u"&&process.nextTick||JW,ZW=e=>e!=null&&Uo(e[X0]),Gde=e=>e!=null&&$v(e,X0)&&ZW(e),ke={isArray:xh,isArrayBuffer:WW,isBuffer:xg,isFormData:bde,isArrayBufferView:lde,isString:cde,isNumber:KW,isBoolean:ude,isObject:Sg,isPlainObject:xx,isEmptyObject:dde,isReadableStream:xde,isRequest:Sde,isResponse:Bde,isHeaders:Cde,isUndefined:Dm,isDate:Ade,isFile:fde,isReactNativeBlob:hde,isReactNative:pde,isBlob:mde,isRegExp:Ude,isFunction:Uo,isStream:yde,isURLSearchParams:wde,isTypedArray:jde,isFileList:gde,forEach:J0,merge:XT,extend:Ede,trim:kde,stripBOM:Nde,inherits:Tde,toFlatObject:_de,kindOf:y3,kindOfTest:Zl,endsWith:Ide,toArray:Pde,forEachEntry:Ode,matchAll:Fde,isHTMLForm:Lde,hasOwnProperty:r1,hasOwnProp:r1,hasOwnInPrototypeChain:$v,getSafeProp:sde,reduceDescriptors:XW,freezeMethods:Rde,toObjectSet:Qde,toCamelCase:Dde,noop:Hde,toFiniteNumber:$de,findKey:GW,global:Gf,isContextDefined:YW,isSpecCompliantForm:qde,toJSONObject:zde,isAsyncFn:Vde,isThenable:Wde,setImmediate:JW,asap:Kde,isIterable:ZW,isSafeIterable:Gde},Yde=ke.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xde=e=>{const t={};let n,r,i;return e&&e.split(`
543`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&Yde[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function Jde(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Zde=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),eAe=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function v3(e,t){return ke.isArray(e)?e.map(n=>v3(n,t)):Jde(String(e).replace(t,""))}const tAe=e=>v3(e,Zde),nAe=e=>v3(e,eAe);function eK(e){const t=Object.create(null);return ke.forEach(e.toJSON(),(n,r)=>{t[r]=nAe(n)}),t}const p6=Symbol("internals");function xy(e){return e&&String(e).trim().toLowerCase()}function Sx(e){return e===!1||e==null?e:ke.isArray(e)?e.map(Sx):tAe(String(e))}function rAe(e){const t=Object.create(null),n=/([^\s,;
543=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const iAe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function D5(e,t,n,r,i){if(ke.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ke.isString(t)){if(ke.isString(r))return t.indexOf(r)!==-1;if(ke.isRegExp(r))return r.test(t)}}function aAe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function oAe(e,t){const n=ke.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}let Za=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const d=xy(l);if(!d)return;const A=ke.findKey(i,d);(!A||i[A]===void 0||c===!0||c===void 0&&i[A]!==!1)&&(i[A||l]=Sx(s))}const o=(s,l)=>ke.forEach(s,(c,d)=>a(c,d,l));if(ke.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(ke.isString(t)&&(t=t.trim())&&!iAe(t))o(Xde(t),n);else if(ke.isObject(t)&&ke.isSafeIterable(t)){let s=Object.create(null),l,c;for(const d of t){if(!ke.isArray(d))throw new TypeError("Object iterator must return a key-value pair");c=d[0],ke.hasOwnProp(s,c)?(l=s[c],s[c]=ke.isArray(l)?[...l,d[1]]:[l,d[1]]):s[c]=d[1]}o(s,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=xy(t),t){const r=ke.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return rAe(i);if(ke.isFunction(n))return n.call(this,i,r);if(ke.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=xy(t),t){const r=ke.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||D5(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=xy(o),o){const s=ke.findKey(r,o);s&&(!n||D5(r,r[s],s,n))&&(delete r[s],i=!0)}}return ke.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||D5(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return ke.forEach(this,(i,a)=>{const o=ke.findKey(r,a);if(o){n[o]=Sx(i),delete n[a];return}const s=t?aAe(a):String(a).trim();s!==a&&delete n[a],n[s]=Sx(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ke.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ke.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
544`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[p6]=this[p6]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=xy(o);r[s]||(oAe(i,o),r[s]=!0)}return ke.isArray(t)?t.forEach(a):a(t),this}};Za.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ke.reduceDescriptors(Za.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ke.freezeMethods(Za);const sAe="[REDACTED ****]";function lAe(e){if(ke.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ke.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function cAe(e,t){const n=new Set(t.map(a=>String(a).toLowerCase())),r=[],i=a=>{if(a===null||typeof a!="object"||ke.isBuffer(a))return a;if(r.indexOf(a)!==-1)return;a instanceof Za&&(a=a.toJSON()),r.push(a);let o;if(ke.isArray(a))o=[],a.forEach((s,l)=>{const c=i(s);ke.isUndefined(c)||(o[l]=c)});else{if(!ke.isPlainObject(a)&&lAe(a))return r.pop(),a;o=Object.create(null);for(const[s,l]of Object.entries(a)){const c=n.has(s.toLowerCase())?sAe:i(l);ke.isUndefined(c)||(o[s]=c)}}return r.pop(),o};return i(e)}let mt=class tK extends Error{static from(t,n,r,i,a,o){const s=new tK(t.message,n||t.code,r,i,a);return Object.defineProperty(s,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(t,n,r,i,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){const t=this.config,n=t&&ke.hasOwnProp(t,"redact")?t.redact:void 0,r=ke.isArray(n)&&n.length>0?cAe(t,n):ke.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};mt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";mt.ERR_BAD_OPTION="ERR_BAD_OPTION";mt.ECONNABORTED="ECONNABORTED";mt.ETIMEDOUT="ETIMEDOUT";mt.ECONNREFUSED="ECONNREFUSED";mt.ERR_NETWORK="ERR_NETWORK";mt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";mt.ERR_DEPRECATED="ERR_DEPRECATED";mt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";mt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";mt.ERR_CANCELED="ERR_CANCELED";mt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";mt.ERR_INVALID_URL="ERR_INVALID_URL";mt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const uAe=null,nK=100;function JT(e){return ke.isPlainObject(e)||ke.isArray(e)}function rK(e){return ke.endsWith(e,"[]")?e.slice(0,-2):e}function M5(e,t,n){return e?e.concat(t).map(function(i,a){return i=rK(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function dAe(e){return ke.isArray(e)&&!e.some(JT)}const AAe=ke.toFlatObject(ke,{},null,function(t){return/^is[A-Z]/.test(t)});function rS(e,t,n){if(!ke.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ke.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,B){return!ke.isUndefined(B[x])});const r=n.metaTokens,i=n.visitor||b,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?nK:n.maxDepth,c=s&&ke.isSpecCompliantForm(t),d=[];if(!ke.isFunction(i))throw new TypeError("visitor must be a function");function A(v){if(v===null)return"";if(ke.isDate(v))return v.toISOString();if(ke.isBoolean(v))return v.toString();if(!c&&ke.isBlob(v))throw new mt("Blob is not supported. Use a Buffer instead.");if(ke.isArrayBuffer(v)||ke.isTypedArray(v)){if(c&&typeof s=="function")return new s([v]);if(typeof Buffer<"u")return Buffer.from(v);throw new mt("Blob is not supported. Use a Buffer instead.",mt.ERR_NOT_SUPPORT)}return v}function h(v){if(v>l)throw new mt("Object is too deeply nested ("+v+" levels). Max depth: "+l,mt.ERR_FORM_DATA_DEPTH_EXCEEDED)}
vendor: 4,172 bytes, line 544
544function m(v,x){if(l===1/0)return JSON.stringify(v);const B=[];return JSON.stringify(v,function(E,T){if(!ke.isObject(T))return T;for(;B.length&&B[B.length-1]!==this;)B.pop();return B.push(T),h(x+B.length-1),T})}function b(v,x,B){let C=v;if(ke.isReactNative(t)&&ke.isReactNativeBlob(v))return t.append(M5(B,x,a),A(v)),!1;if(v&&!B&&typeof v=="object"){if(ke.endsWith(x,"{}"))x=r?x:x.slice(0,-2),v=m(v,1);else if(ke.isArray(v)&&dAe(v)||(ke.isFileList(v)||ke.endsWith(x,"[]"))&&(C=ke.toArray(v)))return x=rK(x),C.forEach(function(T,j){!(ke.isUndefined(T)||T===null)&&t.append(o===!0?M5([x],j,a):o===null?x:x+"[]",A(T))}),!1}return JT(v)?!0:(t.append(M5(B,x,a),A(v)),!1)}const g=Object.assign(AAe,{defaultVisitor:b,convertValue:A,isVisitable:JT});function y(v,x,B=0){if(!ke.isUndefined(v)){if(h(B),d.indexOf(v)!==-1)throw new Error("Circular reference detected in "+x.join("."));d.push(v),ke.forEach(v,function(E,T){(!(ke.isUndefined(E)||E===null)&&i.call(t,E,ke.isString(T)?T.trim():T,x,g))===!0&&y(E,x?x.concat(T):[T],B+1)}),d.pop()}}if(!ke.isObject(e))throw new TypeError("data must be an object");return y(e),t}function m6(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function b3(e,t){this._pairs=[],e&&rS(e,this,t)}const iK=b3.prototype;iK.append=function(t,n){this._pairs.push([t,n])};iK.toString=function(t){const n=t?r=>t.call(this,r,m6):m6;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function fAe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function aK(e,t,n){if(!t)return e;e=e||"";const r=ke.isFunction(n)?{serialize:n}:n,i=ke.getSafeProp(r,"encode")||fAe,a=ke.getSafeProp(r,"serialize");let o;if(a?o=a(t,r):o=ke.isURLSearchParams(t)?t.toString():new b3(t,r).toString(i),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class g6{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ke.forEach(this.handlers,function(r){r!==null&&t(r)})}}const w3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},hAe=typeof URLSearchParams<"u"?URLSearchParams:b3,pAe=typeof FormData<"u"?FormData:null,mAe=typeof Blob<"u"?Blob:null,gAe={isBrowser:!0,classes:{URLSearchParams:hAe,FormData:pAe,Blob:mAe},protocols:["http","https","file","blob","url","data"]},x3=typeof window<"u"&&typeof document<"u",ZT=typeof navigator=="object"&&navigator||void 0,yAe=x3&&(!ZT||["ReactNative","NativeScript","NS"].indexOf(ZT.product)<0),vAe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bAe=x3&&window.location.href||"http://localhost",wAe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:x3,hasStandardBrowserEnv:yAe,hasStandardBrowserWebWorkerEnv:vAe,navigator:ZT,origin:bAe},Symbol.toStringTag,{value:"Module"})),Ca={...wAe,...gAe};function xAe(e,t){return rS(e,new Ca.classes.URLSearchParams,{visitor:function(n,r,i,a){return Ca.isNode&&ke.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}const y6=nK;function oK(e){if(e>y6)throw new mt("FormData field is too deeply nested ("+e+" levels). Max depth: "+y6,mt.ERR_FORM_DATA_DEPTH_EXCEEDED)}function SAe(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)oK(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function BAe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function sK(e){function t(n,r,i,a){oK(a);let o=n[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=n.length;return o=!o&&ke.isArray(i)?i.length:o,l?(ke.hasOwnProp(i,o)?i[o]=ke.isArray(i[o])?i[o].concat(r):[i[o],r]:i[o]=r,!s):((!ke.hasOwnProp(i,o)||!ke.isObject(i[o]))&&
vendor: 22,527 bytes, lines 544-550
544(i[o]=[]),t(n,r,i[o],a)&&ke.isArray(i[o])&&(i[o]=BAe(i[o])),!s)}if(ke.isFormData(e)&&ke.isFunction(e.entries)){const n={};return ke.forEachEntry(e,(r,i)=>{t(SAe(r),i,n,0)}),n}return null}const Np=(e,t)=>e!=null&&ke.hasOwnProp(e,t)?e[t]:void 0;function CAe(e,t,n){if(ke.isString(e))try{return(t||JSON.parse)(e),ke.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Z0={transitional:w3,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=ke.isObject(t);if(a&&ke.isHTMLForm(t)&&(t=new FormData(t)),ke.isFormData(t))return i?JSON.stringify(sK(t)):t;if(ke.isArrayBuffer(t)||ke.isBuffer(t)||ke.isStream(t)||ke.isFile(t)||ke.isBlob(t)||ke.isReadableStream(t))return t;if(ke.isArrayBufferView(t))return t.buffer;if(ke.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){const l=Np(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return xAe(t,l).toString();if((s=ke.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=Np(this,"env"),d=c&&c.FormData;return rS(s?{"files[]":t}:t,d&&new d,l)}}return a||i?(n.setContentType("application/json",!1),CAe(t)):t}],transformResponse:[function(t){const n=Np(this,"transitional")||Z0.transitional,r=n&&n.forcedJSONParsing,i=Np(this,"responseType"),a=i==="json";if(ke.isResponse(t)||ke.isReadableStream(t))return t;if(t&&ke.isString(t)&&(r&&!i||a)){const s=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,Np(this,"parseReviver"))}catch(l){if(s)throw l.name==="SyntaxError"?mt.from(l,mt.ERR_BAD_RESPONSE,this,null,Np(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ca.classes.FormData,Blob:Ca.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ke.forEach(["delete","get","head","post","put","patch","query"],e=>{Z0.headers[e]={}});function U5(e,t){const n=this||Z0,r=t||n,i=Za.from(r.headers);let a=r.data;return ke.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function lK(e){return!!(e&&e.__CANCEL__)}let eb=class extends mt{constructor(t,n,r){super(t??"canceled",mt.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function cK(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new mt("Request failed with status code "+n.status,n.status>=400&&n.status<500?mt.ERR_BAD_REQUEST:mt.ERR_BAD_RESPONSE,n.config,n.request,n))}function kAe(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function EAe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[a];o||(o=c),n[i]=l,r[i]=c;let A=a,h=0;for(;A!==i;)h+=n[A++],A=A%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const m=d&&c-d;return m?Math.round(h*1e3/m):void 0}}function NAe(e,t){let n=0,r=1e3/t,i,a;const o=(c,d=Date.now())=>{n=d,i=null,a&&(clearTimeout(a),a=null),e(...c)};return[(...c)=>{const d=Date.now(),A=d-n;A>=r?o(c,d):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-A)))},()=>i&&o(i)]}const i1=(e,t,n=3)=>{let r=0;const i=EAe(50,250);return NAe(a=>{if(!a||typeof a.loaded!="number")return;const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=s!=null?Math.min(o,s):o,c=Math.max(0,l-r),d=i(c);r=Math.max(r,l);const A={loaded:l,total:s,progress:s?l/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-l)/d:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(A)},n)},v6=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},b6=e=>(...t)=>ke.asap(()=>e(...t)),TAe=Ca.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ca.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ca.origin),Ca.navigator&&/(msie|trident)/i.test(Ca.navigator.userAgent)):()=>!0,_Ae=Ca.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];ke.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ke.isString(r)&&s.push(`path=${r}`),ke.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),ke.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function IAe(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function PAe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const jAe=/^https?:(?!\/\/)/i,OAe=/[\t\n\r]/g;function FAe(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function LAe(e){return FAe(e).replace(OAe,"")}function w6(e,t){if(typeof e=="string"&&jAe.test(LAe(e)))throw new mt('Invalid URL: missing "//" after protocol',mt.ERR_INVALID_URL,t)}function uK(e,t,n,r){w6(t,r);let i=!IAe(t);return e&&(i||n===!1)?(w6(e,r),PAe(e,t)):t}const x6=e=>e instanceof Za?{...e}:e;function Sh(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,A,h,m){return ke.isPlainObject(d)&&ke.isPlainObject(A)?ke.merge.call({caseless:m},d,A):ke.isPlainObject(A)?ke.merge({},A):ke.isArray(A)?A.slice():A}function i(d,A,h,m){if(ke.isUndefined(A)){if(!ke.isUndefined(d))return r(void 0,d,h,m)}else return r(d,A,h,m)}function a(d,A){if(!ke.isUndefined(A))return r(void 0,A)}function o(d,A){if(ke.isUndefined(A)){if(!ke.isUndefined(d))return r(void 0,d)}else return r(void 0,A)}function s(d){const A=ke.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ke.isUndefined(A))if(ke.isPlainObject(A)){if(ke.hasOwnProp(A,d))return A[d]}else return;const h=ke.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ke.isPlainObject(h)&&ke.hasOwnProp(h,d))return h[d]}function l(d,A,h){if(ke.hasOwnProp(t,h))return r(d,A);if(ke.hasOwnProp(e,h))return r(void 0,d)}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:l,headers:(d,A,h)=>i(x6(d),x6(A),h,!0)};return ke.forEach(Object.keys({...e,...t}),function(A){if(A==="__proto__"||A==="constructor"||A==="prototype")return;const h=ke.hasOwnProp(c,A)?c[A]:i,m=ke.hasOwnProp(e,A)?e[A]:void 0,b=ke.hasOwnProp(t,A)?t[A]:void 0,g=h(m,b,A);ke.isUndefined(g)&&h!==l||(n[A]=g)}),ke.hasOwnProp(t,"validateStatus")&&ke.isUndefined(t.validateStatus)&&s("validateStatusUndefinedResolves")===!1&&(ke.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const DAe=["content-type","content-length"];function MAe(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{DAe.includes(r.toLowerCase())&&e.set(r,i)})}const UAe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function dK(e){const t=Sh({},e),n=h=>ke.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let i=n("withXSRFToken");const a=n("xsrfHeaderName"),o=n("xsrfCookieName");let s=n("headers");const l=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),A=n("url");if(t.headers=s=Za.from(s),t.url=aK(uK(c,A,d,t),n("params"),n("paramsSerializer")),l){const h=ke.getSafeProp(l,"username")||"",m=ke.getSafeProp(l,"password")||"";try{s.set("Authorization","Basic "+btoa(h+":"+(m?UAe(m):"")))}catch(b){throw mt.from(b,mt.ERR_BAD_OPTION_VALUE,e)}}if(ke.isFormData(r)&&(Ca.hasStandardBrowserEnv||Ca.hasStandardBrowserWebWorkerEnv||ke.isReactNative(r)?s.setContentType(void 0):ke.isFunction(r.getHeaders)&&MAe(s,r.getHeaders(),n("formDataHeaderPolicy"))),Ca.hasStandardBrowserEnv&&(ke.isFunction(i)&&(i=i(t)),i===!0||i==null&&TAe(t.url))){const m=a&&o&&_Ae.read(o);m&&s.set(a,m)}return t}const RAe=typeof XMLHttpRequest<"u",QAe=RAe&&function(e){return new Promise(function(n,r){const i=dK(e);let a=i.data;const o=Za.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,d,A,h,m,b;function g(){m&&m(),b&&b(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function v(){if(!y)return;const B=Za.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:B,config:e,request:y};cK(function(j){n(j),g()},function(j){r(j),g()},E),y=null}"onloadend"in y?y.onloadend=v:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.startsWith("file:"))||setTimeout(v)},y.onabort=function(){y&&(r(new mt("Request aborted",mt.ECONNABORTED,e,y)),g(),y=null)},y.onerror=function(C){const E=C&&C.message?C.message:"Network Error",T=new mt(E,mt.ERR_NETWORK,e,y);T.event=C||null,r(T),g(),y=null},y.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||w3;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new mt(C,E.clarifyTimeoutError?mt.ETIMEDOUT:mt.ECONNABORTED,e,y)),g(),y=null},a===void 0&&o.setContentType(null),"setRequestHeader"in y&&ke.forEach(eK(o),function(C,E){y.setRequestHeader(E,C)}),ke.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),s&&s!=="json"&&(y.responseType=i.responseType),c&&([h,b]=i1(c,!0),y.addEventListener("progress",h)),l&&y.upload&&([A,m]=i1(l),y.upload.addEventListener("progress",A),y.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(d=B=>{y&&(r(!B||B.type?new eb(null,e,y):B),y.abort(),g(),y=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const x=kAe(i.url);if(x&&!Ca.protocols.includes(x)){r(new mt("Unsupported protocol "+x+":",mt.ERR_BAD_REQUEST,e)),g();return}y.send(a||null)})},HAe=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(l){if(!r){r=!0,o();const c=l instanceof Error?l:this.reason;n.abort(c instanceof mt?c:new eb(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new mt(`timeout of ${t}ms exceeded`,mt.ETIMEDOUT))},t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i,{once:!0}));const{signal:s}=n;return s.unsubscribe=()=>ke.asap(o),s},$Ae=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},qAe=async function*(e,t){for await(const n of zAe(e))yield*$Ae(n,t)},zAe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},S6=(e,t,n,r)=>{const i=qAe(e,t);let a=0,o,s=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await i.next();if(c){s(),l.close();return}let A=d.byteLength;if(n){let h=a+=A;n(h)}l.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},a1=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,VAe=(e,t,n)=>t+2<n&&a1(e.charCodeAt(t+1))&&a1(e.charCodeAt(t+2));function WAe(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let o=r.length;const s=r.length;for(let m=0;m<s;m++)if(r.charCodeAt(m)===37&&m+2<s){const b=r.charCodeAt(m+1),g=r.charCodeAt(m+2);a1(b)&&a1(g)&&(o-=2,m+=2)}let l=0,c=s-1;const d=m=>m>=2&&r.charCodeAt(m-2)===37&&r.charCodeAt(m-1)===51&&(r.charCodeAt(m)===68||r.charCodeAt(m)===100);c>=0&&(r.charCodeAt(c)===61?(l++,c--):d(c)&&(l++,c-=3)),l===1&&c>=0&&(r.charCodeAt(c)===61||d(c))&&l++;const h=Math.floor(o/4)*3-(l||0);return h>0?h:0}let a=0;for(let o=0,s=r.length;o<s;o++){const l=r.charCodeAt(o);if(l===37&&VAe(r,o,s))a+=1,o+=2;else if(l<128)a+=1;else if(l<2048)a+=2;else if(l>=55296&&l<=56319&&o+1<s){const c=r.charCodeAt(o+1);c>=56320&&c<=57343?(a+=4,o++):a+=3}else a+=3}return a}const S3="1.18.1",B6=64*1024,{isFunction:lw}=ke,KAe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),C6=e=>{if(!ke.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},k6=(e,...t)=>{try{return!!e(...t)}catch{return!1}},GAe=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},YAe=e=>{const t=ke.global!==void 0&&ke.global!==null?ke.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=ke.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:a,Response:o}=e,s=i?lw(i):typeof fetch=="function",l=lw(a),c=lw(o);if(!s)return!1;const d=s&&lw(n),A=s&&(typeof r=="function"?(v=>x=>v.encode(x))(new r):async v=>new Uint8Array(await new a(v).arrayBuffer())),h=l&&d&&k6(()=>{let v=!1;const x=new a(Ca.origin,{body:new n,method:"POST",get duplex(){return v=!0,"half"}}),B=x.headers.has("Content-Type");return x.body!=null&&x.body.cancel(),v&&!B}),m=c&&d&&k6(()=>ke.isReadableStream(new o("").body)),b={stream:m&&(v=>v.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!b[v]&&(b[v]=(x,B)=>{let C=x&&x[v];if(C)return C.call(x);throw new mt(`Response type '${v}' is not supported`,mt.ERR_NOT_SUPPORT,B)})});const g=async v=>{if(v==null)return 0;if(ke.isBlob(v))return v.size;if(ke.isSpecCompliantForm(v))return(await new a(Ca.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(ke.isArrayBufferView(v)||ke.isArrayBuffer(v))return v.byteLength;if(ke.isURLSearchParams(v)&&(v=v+""),ke.isString(v))return(await A(v)).byteLength},y=async(v,x)=>{const B=ke.toFiniteNumber(v.getContentLength());return B??g(x)};return async v=>{let{url:x,method:B,data:C,signal:E,cancelToken:T,timeout:j,onDownloadProgress:O,onUploadProgress:L,responseType:z,headers:F,withCredentials:M="same-origin",fetchOptions:V,maxContentLength:q,maxBodyLength:W}=dK(v);const ee=ke.isNumber(q)&&q>-1,ne=ke.isNumber(W)&&W>-1,K=le=>ke.hasOwnProp(v,le)?v[le]:void 0;let oe=i||fetch;z=z?(z+"").toLowerCase():"text";let $=HAe([E,T&&T.toAbortSignal()],j),X=null;const Q=$&&$.unsubscribe&&(()=>{$.unsubscribe()});let R,re=null;const ce=()=>new mt("Request body larger than maxBodyLength limit",mt.ERR_BAD_REQUEST,v,X);try{let le;const he=K("auth");if(he){const Le=ke.getSafeProp(he,"username")||"",st=ke.getSafeProp(he,"password")||"";le={username:Le,password:st}}if(GAe(x)){const Le=new URL(x,Ca.origin);if(!le&&(Le.username||Le.password)){const st=C6(Le.username),ut=C6(Le.password);le={username:st,password:ut}}(Le.username||Le.password)&&(Le.username="",Le.password="",x=Le.href)}if(le&&(F.delete("authorization"),F.set("Authorization","Basic "+btoa(KAe((le.username||"")+":"+(le.password||""))))),ee&&typeof x=="string"&&x.startsWith("data:")&&WAe(x)>q)throw new mt("maxContentLength size of "+q+" exceeded",mt.ERR_BAD_RESPONSE,v,X);if(ne&&B!=="get"&&B!=="head"){const Le=await g(C);if(typeof Le=="number"&&isFinite(Le)&&(R=Le,Le>W))throw ce()}const ye=ne&&(ke.isReadableStream(C)||ke.isStream(C)),Ae=(Le,st,ut)=>S6(Le,B6,He=>{if(ne&&He>W)throw re=ce();st&&st(He)},ut);if(h&&B!=="get"&&B!=="head"&&(L||ye)){if(R=R??await y(F,C),R!==0||ye){let Le=new a(x,{method:"POST",body:C,duplex:"half"}),st;if(ke.isFormData(C)&&(st=Le.headers.get("content-type"))&&F.setContentType(st),Le.body){const[ut,He]=L&&v6(R,i1(b6(L)))||[];C=Ae(Le.body,ut,He)}}}else if(ye&&!l&&d&&B!=="get"&&B!=="head")C=Ae(C);else if(ye&&l&&!h&&B!=="get"&&B!=="head")throw new mt("Stream request bodies are not supported by the current fetch implementation",mt.ERR_NOT_SUPPORT,v,X);ke.isString(M)||(M=M?"include":"omit");const be=l&&"credentials"in a.prototype;if(ke.isFormData(C)){const Le=F.getContentType();Le&&/^multipart\/form-data/i.test(Le)&&!/boundary=/i.test(Le)&&F.delete("content-type")}F.set("User-Agent","axios/"+S3,!1);const Ee={...V,signal:$,method:B.toUpperCase(),headers:eK(F.normalize()),body:C,duplex:"half",credentials:be?M:void 0};X=l&&new a(x,Ee);let ge=await(l?oe(X,V):oe(x,Ee));const Ue=Za.from(ge.headers);if(ee){const Le=ke.toFiniteNumber(Ue.getContentLength());if(Le!=null&&Le>q)throw new mt("maxContentLength size of "+q+" exceeded",mt.ERR_BAD_RESPONSE,v,X)}const Ye=m&&(z==="stream"||z==="response");if(m&&ge.body&&(O||ee||Ye&&Q)){const Le={};["status","statusText","headers"].forEach(pt=>{Le[pt]=ge[pt]});const st=ke.toFiniteNumber(Ue.getContentLength()),[ut,He]=O&&v6(st,i1(b6(O),!0))||[];let ht=0;const it=pt=>{if(ee&&(ht=pt,ht>q))throw new mt("maxContentLength size of "+q+" exceeded",mt.ERR_BAD_RESPONSE,v,X);ut&&ut(pt)};ge=new o(S6(ge.body,B6,it,()=>{He&&He(),Q&&Q()}),Le)}z=z||"text";let ae=await b[ke.findKey(b,z)||"text"](ge,v);if(ee&&!m&&!Ye){let Le;if(ae!=null&&(typeof ae.byteLength=="number"?Le=ae.byteLength:typeof ae.size=="number"?Le=ae.size:typeof ae=="string"&&(Le=typeof r=="function"?new r().encode(ae).byteLength:ae.length)),typeof Le=="number"&&Le>q)throw new mt("maxContentLength size of "+q+" exceeded",mt.ERR_BAD_RESPONSE,v,X)}return!Ye&&Q&&Q(),await new Promise((Le,st)=>{cK(Le,st,{data:ae,headers:Za.from(ge.headers),status:ge.status,statusText:ge.statusText,config:v,request:X})})}catch(le){if(Q&&Q(),$&&$.aborted&&$.reason instanceof mt){const he=$.reason;throw he.config=v,X&&(he.request=X),le!==he&&Object.defineProperty(he,"cause",{__proto__:null,value:le,writable:!0,enumerable:!1,configurable:!0}),he}if(re)throw X&&!re.request&&(re.request=X),re;if(le instanceof mt)throw X&&!le.request&&(le.request=X),le;if(le&&le.name==="TypeError"&&/Load failed|fetch/i.test(le.message)){const he=new mt("Network Error",mt.ERR_NETWORK,v,X,le&&le.response);throw Object.defineProperty(he,"cause",{__proto__:null,value:le.cause||le,writable:!0,enumerable:!1,configurable:!0}),he}throw mt.from(le,le&&le.code,v,X,le&&le.response)}}},XAe=new Map,AK=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let o=a.length,s=o,l,c,d=XAe;for(;s--;)l=a[s],c=d.get(l),c===void 0&&d.set(l,c=s?new Map:YAe(t)),d=c;return c};AK();const B3={http:uAe,xhr:QAe,fetch:{get:AK}};ke.forEach(B3,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const E6=e=>`- ${e}`,JAe=e=>ke.isFunction(e)||e===null||e===!1;function ZAe(e,t){e=ke.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let o=0;o<n;o++){r=e[o];let s;if(i=r,!JAe(r)&&(i=B3[(s=String(r)).toLowerCase()],i===void 0))throw new mt(`Unknown adapter '${s}'`);if(i&&(ke.isFunction(i)||(i=i.get(t))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?o.length>1?`since :
545`+o.map(E6).join(`
546`):" "+E6(o[0]):"as no adapter specified";throw new mt("There is no suitable adapter to dispatch the request "+s,mt.ERR_NOT_SUPPORT)}return i}const fK={getAdapter:ZAe,adapters:B3};function R5(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eb(null,e)}function N6(e){return R5(e),e.headers=Za.from(e.headers),e.data=U5.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fK.getAdapter(e.adapter||Z0.adapter,e)(e).then(function(r){R5(e),e.response=r;try{r.data=U5.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Za.from(r.headers),r},function(r){if(!lK(r)&&(R5(e),r&&r.response)){e.response=r.response;try{r.response.data=U5.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Za.from(r.response.headers)}return Promise.reject(r)})}const iS={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iS[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const T6={};iS.transitional=function(t,n,r){function i(a,o){return"[Axios v"+S3+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new mt(i(o," has been removed"+(n?" in "+n:"")),mt.ERR_DEPRECATED);return n&&!T6[o]&&(T6[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};iS.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function efe(e,t,n){if(typeof e!="object"||e===null)throw new mt("options must be an object",mt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new mt("option "+a+" must be "+l,mt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new mt("Unknown option "+a,mt.ERR_BAD_OPTION)}}const Bx={assertOptions:efe,validators:iS},Qa=Bx.validators;let dh=class{constructor(t){this.defaults=t||{},this.interceptors={request:new g6,response:new g6}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=(()=>{if(!i.stack)return"";const o=i.stack.indexOf(`
547`);return o===-1?"":i.stack.slice(o+1)})();try{if(!r.stack)r.stack=a;else if(a){const o=a.indexOf(`
548`),s=o===-1?-1:a.indexOf(`
549`,o+1),l=s===-1?"":a.slice(s+1);String(r.stack).endsWith(l)||(r.stack+=`
550`+a)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Sh(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Bx.assertOptions(r,{silentJSONParsing:Qa.transitional(Qa.boolean),forcedJSONParsing:Qa.transitional(Qa.boolean),clarifyTimeoutError:Qa.transitional(Qa.boolean),legacyInterceptorReqResOrdering:Qa.transitional(Qa.boolean),advertiseZstdAcceptEncoding:Qa.transitional(Qa.boolean),validateStatusUndefinedResolves:Qa.transitional(Qa.boolean)}
vendor: 3,175 bytes, line 550
550,!1),i!=null&&(ke.isFunction(i)?n.paramsSerializer={serialize:i}:Bx.assertOptions(i,{encode:Qa.function,serialize:Qa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Bx.assertOptions(n,{baseUrl:Qa.spelling("baseURL"),withXsrfToken:Qa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&ke.merge(a.common,a[n.method]);a&&ke.forEach(["delete","get","head","post","put","patch","query","common"],b=>{delete a[b]}),n.headers=Za.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;l=l&&g.synchronous;const y=n.transitional||w3;y&&y.legacyInterceptorReqResOrdering?s.unshift(g.fulfilled,g.rejected):s.push(g.fulfilled,g.rejected)});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,A=0,h;if(!l){const b=[N6.bind(this),void 0];for(b.unshift(...s),b.push(...c),h=b.length,d=Promise.resolve(n);A<h;)d=d.then(b[A++],b[A++]);return d}h=s.length;let m=n;for(;A<h;){const b=s[A++],g=s[A++];try{m=b(m)}catch(y){g.call(this,y);break}}try{d=N6.call(this,m)}catch(b){return Promise.reject(b)}for(A=0,h=c.length;A<h;)d=d.then(c[A++],c[A++]);return d}getUri(t){t=Sh(this.defaults,t);const n=uK(t.baseURL,t.url,t.allowAbsoluteUrls,t);return aK(n,t.params,t.paramsSerializer)}};ke.forEach(["delete","get","head","options"],function(t){dh.prototype[t]=function(n,r){return this.request(Sh(r||{},{method:t,url:n,data:r&&ke.hasOwnProp(r,"data")?r.data:void 0}))}});ke.forEach(["post","put","patch","query"],function(t){function n(r){return function(a,o,s){return this.request(Sh(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}dh.prototype[t]=n(),t!=="query"&&(dh.prototype[t+"Form"]=n(!0))});let tfe=class hK{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new eb(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new hK(function(i){t=i}),cancel:t}}};function nfe(e){return function(n){return e.apply(null,n)}}function rfe(e){return ke.isObject(e)&&e.isAxiosError===!0}const e_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
550alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(e_).forEach(([e,t])=>{e_[t]=e});function pK(e){const t=new dh(e),n=zW(dh.prototype.request,t);return ke.extend(n,dh.prototype,t,{allOwnKeys:!0}),ke.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return pK(Sh(e,i))},n}const ki=pK(Z0);ki.Axios=dh;ki.CanceledError=eb;ki.CancelToken=tfe;ki.isCancel=lK;ki.VERSION=S3;ki.toFormData=rS;ki.AxiosError=mt;ki.Cancel=ki.CanceledError;ki.all=function(t){return Promise.all(t)};ki.spread=nfe;ki.isAxiosError=rfe;ki.mergeConfig=Sh;ki.AxiosHeaders=Za;ki.formToJSON=e=>sK(ke.isHTMLForm(e)?new FormData(e):e);ki.getAdapter=fK.getAdapter;ki.HttpStatusCode=e_;ki.default=ki;const{Axios:yZe,AxiosError:vZe,CanceledError:bZe,isCancel:wZe,CancelToken:xZe,VERSION:SZe,all:BZe,Cancel:CZe,isAxiosError:kZe,spread:EZe,toFormData:NZe,AxiosHeaders:TZe,HttpStatusCode:_Ze,formToJSON:IZe,getAdapter:PZe,mergeConfig:jZe,create:OZe}=ki,mK=typeof window>"u",_6=!mK&&window.self!==window.top,ife=!mK&&typeof document>"u",gK=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),va=[];for(let e=0;e<256;++e)va.push((e+256).toString(16).slice(1));function afe(e,t=0){return(va[e[t+0]]+va[e[t+1]]+va[e[t+2]]+va[e[t+3]]+"-"+va[e[t+4]]+va[e[t+5]]+"-"+va[e[t+6]]+va[e[t+7]]+"-"+va[e[t+8]]+va[e[t+9]]+"-"+va[e[t+10]]+va[e[t+11]]+va[e[t+12]]+va[e[t+13]]+va[e[t+14]]+va[e[t+15]]).toLowerCase()}let Q5;const ofe=new Uint8Array(16);function sfe(){if(!Q5){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Q5=crypto.getRandomValues.bind(crypto)}return Q5(ofe)}const lfe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),I6={randomUUID:lfe};function cfe(e,t,n){var i;e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??sfe();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,afe(r)}function ufe(e,t,n){return I6.randomUUID&&!e?I6.randomUUID():cfe(e)}const Sy=typeof window<"u"?window:{base44SharedInstances:{}};function dfe(e,t){return Sy.base44SharedInstances||(Sy.base44SharedInstances={}),Sy.base44SharedInstances[e]||(Sy.base44SharedInstances[e]={instance:t()}),Sy.base44SharedInstances[e].instance}const Afe="__user_heartbeat_event__",ffe="__initialization_event__",hfe="__session_duration_event__",P6="analytics-enable",j6="base44_analytics_session_id",pfe={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},mfe="analytics",er=dfe(mfe,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...pfe,...Bfe()}})),gfe=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r,enabled:i})=>{var a;const{maxQueueSize:o,throttleTime:s,batchSize:l}=er.config;if(!i||!(!((a=er.config)===null||a===void 0)&&a.enabled)||ife)return{track:()=>{},cleanup:()=>{}};let c;const d=`${t}/api/apps/${n}/analytics/track/batch`,A=async C=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:C}})},h=C=>{try{const E=JSON.stringify({events:C}),T=new Blob([E],{type:"application/json"});return typeof navigator>"u"||E.length>6e4||!navigator.sendBeacon(d,T)}catch{return!1}},m=async(C,E={})=>
550{if(C.length===0)return;const T=await Sfe(r),j=C.map(xfe(T));try{(!E.isBeacon||!h(j))&&await A(j)}catch{}},b=()=>{F6(m,{throttleTime:s,batchSize:l})},g=C=>{if(er.requestsQueue.length>=o)return;const E=wfe();er.requestsQueue.push({...C,...E}),b()},y=()=>{F6(m,{throttleTime:s,batchSize:l}),c=L6(g),vfe()},v=()=>{O6(),c==null||c(),bfe(g);const C=er.requestsQueue.splice(0);m(C,{isBeacon:!0})},x=()=>{typeof window>"u"||(document.visibilityState==="hidden"?v():document.visibilityState==="visible"&&y())},B=()=>{O6(),c==null||c(),typeof window<"u"&&window.removeEventListener("visibilitychange",x)};return b(),c=L6(g),yfe(g),typeof window<"u"&&window.addEventListener("visibilitychange",x),{track:g,cleanup:B}};function O6(){er.isProcessing=!1}async function F6(e,t){if(er.isProcessing)return;er.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;er.isProcessing&&er.requestsQueue.length>0;){const i=er.requestsQueue.splice(0,r);i.length&&await e(i),await new Promise(a=>setTimeout(a,n))}er.isProcessing=!1}function L6(e){var t;if(typeof window>"u"||er.isHeartBeatProcessing||((t=er.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};er.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:Afe})},er.config.heartBeatInterval);return()=>{clearInterval(n),er.isHeartBeatProcessing=!1}}function yfe(e){typeof window>"u"||er.wasInitializationTracked||(er.wasInitializationTracked=!0,e({eventName:ffe,properties:{referrer:document==null?void 0:document.referrer}}))}function vfe(){typeof window>"u"||er.sessionStartTime!==null||(er.sessionStartTime=new Date().toISOString())}function bfe(e){if(typeof window>"u"||er.sessionStartTime===null)return;const t=new Date().getTime()-new Date(er.sessionStartTime).getTime();er.sessionStartTime=null,e({eventName:hfe,properties:{sessionDuration:t}})}function wfe(){var e,t;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(t=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&t!==void 0?t:null}}function xfe(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Yy=null;function D6(){er.sessionContext=null,Yy=null}async function Sfe(e){if(!er.sessionContext){if(!e.hasToken())return{user_id:null,session_id:o1()};if(!Yy){const r=o1();Yy=e.me().then(i=>({user_id:i.id,session_id:r})).catch(()=>({user_id:null,session_id:r}))}const t=Yy,n=await t;return Yy===t&&(er.sessionContext=n),n}return er.sessionContext}function Bfe(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(P6);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(P6);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function M6(){var e;return(e=er.fallbackSessionId)!==null&&e!==void 0?e:er.fallbackSessionId=gK()}function o1(){if(typeof window>"u")return M6();try{const e=localStorage.getItem(j6);if(!e){const t=gK();return localStorage.setItem(j6,t),t}return e}catch{return M6()}}class Cfe extends Error{constructor(t,n,r,i,a){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=i,this.originalError=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Xp({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:i}){const a=ki.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(a.defaults.headers.common.Authorization=`Bearer ${n}`),a.interceptors.request.use(o=>{typeof window<"u"&&(window.location&&o.headers.set("X-Origin-URL",window.location.href),o.headers.get("Authorization")||o.headers.set("X-Base44-Anonymous-Id",o1()));const s=ufe();if(o.requestId=s,_6)try{window.parent.postMessage({type:"api-request-start",requestId:s,data:{url:e+o.url,method:o.method,body:o.data instanceof FormData?"[FormData object]":o.data}},"*")}catch{}return o}),r&&a.interceptors.response.use(o=>{var s;const l=(s=o.config)===null||s===void 0?void 0:s.requestId;try{_6&&l&&window.parent.postMessage({type:"api-request-end",requestId:l,data:{statusCode:o.status,response:o.data}},"*")}catch{}return o.data},o=>{var s,l,c,d,A,h,m,b,g,y,v,x;const B=(s=o.response)===null||s===void 0?void 0:s.data,C=((l=B==null?void 0:B.error)===null||l===void 0?void 0:l.message)||(B==null?void 0:B.message)||(B==null?void 0:B.detail)||o.message,E=new Cfe(C,(c=o.response)===null||c===void 0?void 0:c.status,(y=(h=(A=(d=B==null?void 0:B.error)===null||d===void 0?void 0:d.code)!==null&&A!==void 0?A:B==null?void 0:B.code)!==null&&h!==void 0?h:(g=(b=(m=o.response)===null||m===void 0?void 0:m.headers)===null||b===void 0?void 0:b.get)===null||g===void 0?void 0:g.call(b,"x-base44-connector-error"))!==null&&y!==void 0?y:(x=(v=o.response)===null||v===void 0?void 0:v.headers)===null||x===void 0?void 0:x["x-base44-connector-error"],B,o);return i==null||i(E),Promise.reject(E)}),a}function U6(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return Nfe(t,n,a,r)}})}function kfe(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}const Efe=100;function R6(e){return typeof e=="object"&&e!==null}function Nfe(e,t,n,r){const i=`/apps/${t}/entities/${n}`,a=l=>
550Array.isArray(l)?l.join(","):l,o=(l,c,d,A,h)=>{const m={};return h&&(m.q=JSON.stringify(h)),l&&(m.sort=l),c&&(m.limit=c),d&&(m.skip=d),A&&(m.fields=a(A)),e.get(i,{params:m})},s=(l,c)=>{const d={};return c&&(d.q=JSON.stringify(c)),d.limit=l.limit||Efe,l.cursor&&(d.cursor=l.cursor),"distinct"in l?d.distinct=l.distinct:(l.sort&&(d.sort=l.sort),l.fields&&(d.fields=a(l.fields))),e.get(`${i}/v2/list`,{params:d})};return{async list(...l){const[c,d,A,h]=l;return R6(c)?s(c):o(c,d,A,h)},async filter(l,...c){const[d,A,h,m]=c;return R6(d)?s(d,l):o(d,A,h,m,l)},async get(l){return e.get(`${i}/${l}`)},async create(l){return e.post(i,l)},async update(l,c){return e.put(`${i}/${l}`,c)},async delete(l){return e.delete(`${i}/${l}`)},async deleteMany(l){return e.delete(i,{data:l})},async bulkCreate(l){return e.post(`${i}/bulk`,l)},async updateMany(l,c){return e.patch(`${i}/update-many`,{query:l,data:c})},async count(l){const c={};return l&&(c.q=JSON.stringify(l)),(await e.get(`${i}/count`,{params:c})).count},async aggregate(l){return e.post(`${i}/aggregate`,l)},async upsert(l,c){return e.post(`${i}/upsert`,{records:l,key:c.key})},async bulkUpdate(l){return e.put(`${i}/bulk`,l)},async importEntities(l){const c=new FormData;return c.append("file",l,l.name),e.post(`${i}/import`,c,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const c=`entities:${t}:${n}`;return r().subscribeToRoom(c,{update_model:h=>{var m;const b=kfe(h.data);if(b){b.type!=="delete"&&(!((m=b.data)===null||m===void 0)&&m._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${b.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${b.id}")\` to fetch the full record.`);try{l(b)}catch(g){console.error("[Base44 SDK] Subscription callback error:",g)}}}})}}}function Tfe(e,t){return{async call(n,r,i){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:a,queryParams:o,...s}=i??{},l={...s,...a&&{path_params:a},...o&&{query_params:o}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,l)}}}function Q6(e,t){const n=Tfe(e,t);return new Proxy({},{get(r,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?n:new Proxy({},{get(a,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return async s=>{if(typeof s=="string")throw new Error(`Integration ${o} must receive an object with named parameters, received: ${s}`);let l,c;return s instanceof FormData||s&&Object.values(s).some(d=>d instanceof File)?(l=new FormData,Object.keys(s).forEach(d=>{s[d]instanceof File?l.append(d,s[d],s[d].name):typeof s[d]=="object"&&s[d]!==null?l.append(d,JSON.stringify(s[d])):l.append(d,s[d])}),c="multipart/form-data"):(l=s,c="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${o}`,l||s,{headers:{"Content-Type":c}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${o}`,l||s,{headers:{"Content-Type":c}})}}})}})}function _fe(){return typeof window>"u"?!1:window!==window.parent}function Ife(e,t,n){const a=Math.round(window.screenX+(window.outerWidth-500)/2),o=Math.round(window.screenY+(window.outerHeight-600)/2),s=window.open(e,"base44_auth",`width=500,height=600,left=${a},top=${o},resizable=yes,scrollbars=yes`);if(!s)return;const l=()=>{window.removeEventListener("message",c),clearInterval(d),s.closed||s.close()},c=A=>{var h;if(A.origin!==n||A.source!==s||!(!((h=A.data)===null||h===void 0)&&h.access_token))return;l();const m=new URL(t),{access_token:b,is_new_user:g}=A.data;m.searchParams.set("access_token",b),g!=null&&m.searchParams.set("is_new_user",String(g)),window.location.href=m.toString()},d=setInterval(()=>{s.closed&&l()},500);window.addEventListener("message",c)}function Pfe(e,t,n,r){let i=null;const a=()=>{i=null};let o=!!r.token;return{hasToken(){return o},async me(){const s=i??e.get(`/apps/${n}/entities/User/me`).finally(()=>{i===s&&(i=null)});return i=s,s},async updateMe(s){return e.put(`/apps/${n}/entities/User/me`,s)},redirectToLogin(s){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const l=s?new URL(s,window.location.origin).toString():window.location.href,c=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(l)}`;window.location.href=c},loginWithProvider(s,l="/"){const c=new URL(l,window.location.origin).toString(),d=`app_id=${n}&from_url=${encodeURIComponent(c)}`;let A;s==="sso"?A=`/apps/${n}/auth/sso/login`:A=`/apps/auth${s==="google"?"":`/${s}`}/login`;const h=`${r.appBaseUrl}/api${A}?${d}`;if(_fe()){const m=`${h}&popup_origin=${encodeURIComponent(window.location.origin)}`;return Ife(m,c,window.location.origin)}window.location.href=h},logout(s){if(delete e.defaults.headers.common.Authorization,a(),D6(),o=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(d){console.error("Failed to remove token from localStorage:",d)}const l=s||window.location.href,c=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(l)}`;window.location.href=c}},setToken(s,l=!0){if(s&&(a(),D6(),o=!0,e.defaults.headers.common.Authorization=`Bearer ${s}`,t.defaults.headers.common.Authorization=`Bearer ${s}`,l&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",s),window.localStorage.setItem("token",s)}catch(c){console.error("Failed to save token to localStorage:",c)}},async loginViaEmailPassword(s,l,c){var d;try{const A=await e.post(`/apps/${n}/auth/login`,{email:s,password:l,...c&&{turnstile_token:c}}),{access_token:h,user:m}=A;return h&&this.setToken(h),{access_token:h,user:m}}catch(A){throw((d=A.response)===null||d===void 0?void 0:d.status)===401&&await this.logout(),A}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(s,l){return e.post(`/apps/${n}/users/invite-user`,{user_email:s,role:l})},register(s){return e.post(`/apps/${n}/auth/register`,s)},verifyOtp({email:s,otpCode:l}){return e.post(`/apps/${n}/auth/verify-otp`,{email:s,otp_code:l})},resendOtp(s){return e.post(`/apps/${n}/auth/resend-otp`,{email:s})},resetPasswordRequest(s){return e.post(`/apps/${n}/auth/reset-password-request`,{email:s})},resetPassword({resetToken:s,newPassword:l}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:s,new_password:l})},changePassword({userId:s,currentPassword:l,newPassword:c}){return e.post(`/apps/${n}/auth/change-password`,{user_id:s,current_password:l,new_password:c})}}}function jfe(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)},async getIdToken(n){const r=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(r)}}}const Ofe=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
550function Ffe(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async getWorkspaceConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const a=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}},async callApi(n,r){return yK(n,"Integration type"),Lfe(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,r)}}}function yK(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function Lfe(e,t,n){var r,i,a,o,s,l,c,d,A;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");yK(n.path,"Request path");const h=(r=n.method)!==null&&r!==void 0?r:"GET";if(!Ofe.has(h))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const b=await e.post(t,{method:h,...n.host==null?{}:{host:n.host},path:n.path,query:(i=n.query)!==null&&i!==void 0?i:{},headers:(a=n.headers)!==null&&a!==void 0?a:{},body:(o=n.body)!==null&&o!==void 0?o:null});return{success:b.success,phase:b.phase,status:(s=b.status_code)!==null&&s!==void 0?s:null,data:b.data,dataBase64:(l=b.data_base64)!==null&&l!==void 0?l:null,contentType:(c=b.content_type)!==null&&c!==void 0?c:null,headers:(d=b.headers)!==null&&d!==void 0?d:{},creditsCharged:(A=b.credits_charged)!==null&&A!==void 0?A:0}}function Dfe(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function vA(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:i=!0}=e;let a=null;if(typeof window<"u"&&window.location)try{const o=new URLSearchParams(window.location.search);if(a=o.get(n),a){if(r&&Mfe(a,{storageKey:t}),i){o.delete(n);const s=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,s)}return a}}catch(o){console.error("Error retrieving token from URL:",o)}if(typeof window<"u"&&window.localStorage)try{return a=window.localStorage.getItem(t),a}catch(o){console.error("Error retrieving token from local storage:",o)}return null}function Mfe(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(r){return console.error("Error saving token to local storage:",r),!1}}function Ufe({axios:e,serviceRoleAxios:t,appId:n,serverUrl:r,functionsVersion:i,platformHeaders:a}){const o=new Headers(a),s=l=>{const c=l.defaults.headers.common.Authorization;return typeof c=="string"&&c.startsWith("Bearer ")?c:null};return async function(c,d={}){Rfe(c);const{fetch:A=fetch,...h}=d,m=new Headers(d.headers),b=(g,y)=>{y&&!m.has(g)&&m.set(g,y)};return b("Authorization",s(e)),b("Base44-Service-Authorization",s(t)),b("Base44-App-Id",n),b("Base44-Api-Url",r),b("Base44-Functions-Version",i),b("Base44-State",o.get("Base44-State")),b("X-Data-Env",o.get("X-Data-Env")),A(c,{...h,headers:m})}}function Rfe(e){if(typeof e!="string"||e==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${e}" is not a path on it — pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function H6(e,t,n){const r=(a,o)=>a?`${String(a).replace(/\/$/,"")}${o}`:o,i=a=>{const o=new Headers;if(n!=null&&n.getAuthHeaders){const s=n.getAuthHeaders();
550Object.entries(s).forEach(([l,c])=>{c!=null&&o.set(l,String(c))})}return a&&new Headers(a).forEach((s,l)=>{o.set(l,s)}),o};return{async invoke(a,o){if(typeof o=="string")throw new Error(`Function ${a} must receive an object with named parameters, received: ${o}`);let s,l;return o instanceof FormData||o&&Object.values(o).some(c=>c instanceof File)?(s=new FormData,Object.keys(o).forEach(c=>{o[c]instanceof File?s.append(c,o[c],o[c].name):typeof o[c]=="object"&&o[c]!==null?s.append(c,JSON.stringify(o[c])):s.append(c,o[c])}),l="multipart/form-data"):(s=o,l="application/json"),e.post(`/apps/${t}/functions/${a}`,s||o,{headers:{"Content-Type":l}})},async fetch(a,o={}){const l=`/functions${a.startsWith("/")?a:`/${a}`}`,c=i(o.headers),d={...o,headers:c};return await fetch(r(n==null?void 0:n.baseURL,l),d)}}}function $6({axios:e,getSocket:t,appId:n,serverUrl:r,token:i}){const a=`/apps/${n}/agents`,o={},s=()=>e.get(`${a}/conversations`),l=g=>e.get(`${a}/conversations/${g}`);return{getConversations:s,getConversation:l,listConversations:g=>e.get(`${a}/conversations`,{params:g}),createConversation:g=>e.post(`${a}/conversations`,g),addMessage:async(g,y)=>e.post(`${a}/conversations/v2/${g.id}/messages`,y),subscribeToConversation:(g,y)=>{const v=`/agent-conversations/${g}`,x=t(),B=l(g).then(C=>(o[g]=C,C));return x.subscribeToRoom(v,{connect:()=>{},update_model:async({data:C})=>{const E=JSON.parse(C);if(E._message){await B;const T=E._message,j=o[g];if(j){const O=j.messages||[],L=O.findIndex(F=>F.id===T.id),z=L!==-1?O.map((F,M)=>M===L?T:F):[...O,T];o[g]={...j,messages:z},y==null||y(o[g])}}}})},getWhatsAppConnectURL:g=>{const y=`${r}/api/apps/${n}/agents/${encodeURIComponent(g)}/whatsapp`,v=i??vA();return v?`${y}?token=${v}`:y},getTelegramConnectURL:g=>{const y=`${r}/api/apps/${n}/agents/${encodeURIComponent(g)}/telegram`,v=i??vA();return v?`${y}?token=${v}`:y}}}const q6={openai:"openai",typesafe:"typesafe"};function z6({serverUrl:e,token:t,appId:n,headers:r={}}){return{connection:({provider:a="openai"}={})=>{var o;if(!Object.prototype.hasOwnProperty.call(q6,a))throw new Error(`Unsupported AI Gateway provider: ${a}`);const s=q6[a];return{baseURL:`${e}/api/apps/${n}/ai/${s}/v1`,token:(o=t??vA())!==null&&o!==void 0?o:"",headers:{...r}}}}}function V6(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function Qfe(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function Hfe(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const Gc=Object.create(null);Gc.open="0";Gc.close="1";Gc.ping="2";Gc.pong="3";Gc.message="4";Gc.upgrade="5";Gc.noop="6";const Cx=Object.create(null);Object.keys(Gc).forEach(e=>{Cx[Gc[e]]=e});const t_={type:"error",data:"parser error"},vK=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",bK=typeof ArrayBuffer=="function",wK=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,C3=({type:e,data:t},n,r)=>vK&&t instanceof Blob?n?r(t):W6(t,r):bK&&(t instanceof ArrayBuffer||wK(t))?n?r(t):W6(new Blob([t]),r):r(Gc[e]+(t||"")),W6=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function K6(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let H5;function $fe(e,t){if(vK&&e.data instanceof Blob)return e.data.arrayBuffer().then(K6).then(t);if(bK&&(e.data instanceof ArrayBuffer||wK(e.data)))return t(K6(e.data));C3(e,!1,n=>{H5||(H5=new TextEncoder),t(H5.encode(n))})}const G6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xy=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<G6.length;
vendor: 4,893 bytes, line 550
550e++)Xy[G6.charCodeAt(e)]=e;const qfe=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),d=new Uint8Array(c);for(r=0;r<n;r+=4)a=Xy[e.charCodeAt(r)],o=Xy[e.charCodeAt(r+1)],s=Xy[e.charCodeAt(r+2)],l=Xy[e.charCodeAt(r+3)],d[i++]=a<<2|o>>4,d[i++]=(o&15)<<4|s>>2,d[i++]=(s&3)<<6|l&63;return c},zfe=typeof ArrayBuffer=="function",k3=(e,t)=>{if(typeof e!="string")return{type:"message",data:xK(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Vfe(e.substring(1),t)}:Cx[n]?e.length>1?{type:Cx[n],data:e.substring(1)}:{type:Cx[n]}:t_},Vfe=(e,t)=>{if(zfe){const n=qfe(e);return xK(n,t)}else return{base64:!0,data:e}},xK=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},SK="�",Wfe=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,o)=>{C3(a,!1,s=>{r[o]=s,++i===n&&t(r.join(SK))})})},Kfe=(e,t)=>{const n=e.split(SK),r=[];for(let i=0;i<n.length;i++){const a=k3(n[i],t);if(r.push(a),a.type==="error")break}return r};function Gfe(){return new TransformStream({transform(e,t){$fe(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const a=new DataView(i.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{i=new Uint8Array(9);const a=new DataView(i.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let $5;function cw(e){return e.reduce((t,n)=>t+n.length,0)}function uw(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Yfe(e,t){$5||($5=new TextDecoder);const n=[];let r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(cw(n)<1)break;const l=uw(n,1);a=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(cw(n)<2)break;const l=uw(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(cw(n)<8)break;const l=uw(n,8),c=new DataView(l.buffer,l.byteOffset,l.length),d=c.getUint32(0);if(d>Math.pow(2,21)-1){s.enqueue(t_);break}i=d*Math.pow(2,32)+c.getUint32(4),r=3}else{if(cw(n)<i)break;const l=uw(n,i);s.enqueue(k3(a?l:$5.decode(l),t)),r=0}if(i===0||i>e){s.enqueue(t_);break}}}})}const BK=4;function Li(e){if(e)return Xfe(e)}function Xfe(e){for(var t in Li.prototype)e[t]=Li.prototype[t];return e}Li.prototype.on=Li.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Li.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Li.prototype.off=Li.prototype.removeListener=Li.prototype.removeAllListeners=Li.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Li.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};Li.prototype.emitReserved=Li.prototype.emit;Li.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Li.prototype.hasListeners=function(e){return!!this.listeners(e).length};const aS=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Js=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Jfe="arraybuffer";function CK(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Zfe=Js.setTimeout,ehe=Js.clearTimeout;function oS(e,t){t.useNativeTimers?(e.setTimeoutFn=Zfe.bind(Js),e.clearTimeoutFn=ehe.bind(Js)):(e.setTimeoutFn=Js.setTimeout.bind(Js),e.clearTimeoutFn=Js.clearTimeout.bind(Js))}const the=1.33;function nhe(e){return typeof e=="string"?rhe(e):Math.ceil((e.byteLength||e.size)*the)}function rhe(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function kK(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function ihe(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function ahe(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let a=n[r].split("=");
vendor: 5,833 bytes, line 550
550t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class ohe extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class E3 extends Li{constructor(t){super(),this.writable=!1,oS(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new ohe(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=k3(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=ihe(t);return n.length?"?"+n:""}}class she extends E3{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Kfe(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Wfe(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=kK()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let EK=!1;try{EK=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const lhe=EK;function che(){}class uhe extends she{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Hc extends Li{constructor(t,n,r){super(),this.createRequest=t,oS(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=CK(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Hc.requestsCount++,Hc.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=che,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Hc.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Hc.requestsCount=0;Hc.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Y6);else if(typeof addEventListener=="function"){const e="onpagehide"in Js?"pagehide":"unload";addEventListener(e,Y6,!1)}}function Y6(){for(let e in Hc.requests)Hc.requests.hasOwnProperty(e)&&Hc.requests[e].abort()}const dhe=(function(){const e=NK({xdomain:!1});return e&&e.responseType!==null})();class Ahe extends uhe{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=dhe&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Hc(NK,this.uri(),t)}}function NK(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||lhe))return new XMLHttpRequest}catch{}if(!t)try{return new Js[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const TK=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";
vendor: 16,473 bytes, line 550
550class fhe extends E3{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=TK?{}:CK(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;C3(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch{}i&&aS(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=kK()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const q5=Js.WebSocket||Js.MozWebSocket;class hhe extends fhe{createSocket(t,n,r){return TK?new q5(t,n,r):n?new q5(t,n):new q5(t)}doWrite(t,n){this.ws.send(n)}}class phe extends E3{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=Yfe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=Gfe();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const a=()=>{r.read().then(({done:s,value:l})=>{s||(this.onPacket(l),a())}).catch(s=>{})};a();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&aS(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const mhe={websocket:hhe,webtransport:phe,polling:Ahe},ghe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,yhe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function n_(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=ghe.exec(e||""),a={},o=14;for(;o--;)a[yhe[o]]=i[o]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=vhe(a,a.path),a.queryKey=bhe(a,a.query),a}function vhe(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function bhe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}const r_=typeof addEventListener=="function"&&typeof removeEventListener=="function",kx=[];r_&&addEventListener("offline",()=>{kx.forEach(e=>e())},!1);class NA extends Li{constructor(t,n){if(super(),this.binaryType=Jfe,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=n_(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=n_(n.host).host);oS(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=ahe(this.opts.query)),r_&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},kx.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=BK,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&NA.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",NA.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=nhe(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,aS(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(NA.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),r_&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=kx.indexOf(this._offlineEventListener);r!==-1&&kx.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}NA.protocol=BK;class whe extends NA{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;NA.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",A=>{if(!r)if(A.type==="pong"&&A.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;NA.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=n.name,this.emitReserved("upgradeError",h)}}))};function a(){r||(r=!0,d(),n.close(),n=null)}const o=A=>{const h=new Error("probe error: "+A);h.transport=n.name,a(),this.emitReserved("upgradeError",h)};function s(){o("transport closed")}function l(){o("socket closed")}function c(A){n&&A.name!==n.name&&a()}const d=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",s),this.off("close",l),this.off("upgrading",c)};n.once("open",i),n.once("error",o),n.once("close",s),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let xhe=class extends whe{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>mhe[i]).filter(i=>!!i)),super(t,r)}};function She(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=n_(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const Bhe=typeof ArrayBuffer=="function",Che=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,_K=Object.prototype.toString,khe=typeof Blob=="function"||typeof Blob<"u"&&_K.call(Blob)==="[object BlobConstructor]",Ehe=typeof File=="function"||typeof File<"u"&&_K.call(File)==="[object FileConstructor]";function N3(e){return Bhe&&(e instanceof ArrayBuffer||Che(e))||khe&&e instanceof Blob||Ehe&&e instanceof File}function Ex(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Ex(e[n]))return!0;return!1}if(N3(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Ex(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Ex(e[n]))return!0;return!1}function Nhe(e){const t=[],n=e.data,r=e;return r.data=i_(n,t),r.attachments=t.length,{packet:r,buffers:t}}function i_(e,t){if(!e)return e;if(N3(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=i_(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=i_(e[r],t));return n}return e}function The(e,t){return e.data=a_(e.data,t),delete e.attachments,e}function a_(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=a_(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=a_(e[n],t));return e}const _he=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var jn;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(jn||(jn={}));class Ihe{constructor(t){this.replacer=t}encode(t){return(t.type===jn.EVENT||t.type===jn.ACK)&&Ex(t)?this.encodeAsBinary({type:t.type===jn.EVENT?jn.BINARY_EVENT:jn.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===jn.BINARY_EVENT||t.type===jn.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Nhe(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class T3 extends Li{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===jn.BINARY_EVENT;r||n.type===jn.BINARY_ACK?(n.type=r?jn.EVENT:jn.ACK,this.reconstructor=new Phe(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(N3(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(jn[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===jn.BINARY_EVENT||r.type===jn.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const o=t.substring(a,n);if(o!=Number(o)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const a=n+1;for(;++n;){const o=t.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}
vendor: 4,508 bytes, line 550
550if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(T3.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case jn.CONNECT:return X6(n);case jn.DISCONNECT:return n===void 0;case jn.CONNECT_ERROR:return typeof n=="string"||X6(n);case jn.EVENT:case jn.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&_he.indexOf(n[0])===-1);case jn.ACK:case jn.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Phe{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=The(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function X6(e){return Object.prototype.toString.call(e)==="[object Object]"}const jhe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:T3,Encoder:Ihe,get PacketType(){return jn}},Symbol.toStringTag,{value:"Module"}));function Ql(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Ohe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class IK extends Li{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Ql(t,"open",this.onopen.bind(this)),Ql(t,"packet",this.onpacket.bind(this)),Ql(t,"error",this.onerror.bind(this)),Ql(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,a;if(Ohe.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const o={type:jn.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,A=n.pop();this._registerAckCallback(d,A),o.id=d}const s=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,l=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},i),o=(...s)=>{this.io.clearTimeoutFn(a),n.apply(this,s)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...n){return new Promise((r,i)=>{const a=(o,s)=>o?i(o):r(s);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:jn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,089 bytes, line 550
550_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case jn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case jn.EVENT:case jn.BINARY_EVENT:this.onevent(t);break;case jn.ACK:case jn.BINARY_ACK:this.onack(t);break;case jn.DISCONNECT:this.ondisconnect();break;case jn.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:jn.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:jn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Bg(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Bg.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Bg.prototype.reset=function(){this.attempts=0};Bg.prototype.setMin=function(e){this.ms=e};Bg.prototype.setMax=function(e){this.max=e};Bg.prototype.setJitter=function(e){this.jitter=e};class o_ extends Li{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,oS(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Bg({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||jhe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new xhe(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ql(n,"open",function(){r.onopen(),t&&t()}),a=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},o=Ql(n,"error",a);if(this._timeout!==!1){const s=this._timeout,l=this.setTimeoutFn(()=>{i(),a(new Error("timeout")),n.close()},s);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ql(t,"ping",this.onping.bind(this)),Ql(t,"data",this.ondata.bind(this)),Ql(t,"error",this.onerror.bind(this)),Ql(t,"close",this.onclose.bind(this)),Ql(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){aS(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new IK(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
550cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const By={};function Nx(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=She(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,o=By[i]&&a in By[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let l;return s?l=new o_(r,t):(By[i]||(By[i]=new o_(r,t)),l=By[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Nx,{Manager:o_,Socket:IK,io:Nx,connect:Nx});const Fhe=250;function J6(e,t){var n;const r=(n=e.token)!==null&&n!==void 0?n:vA(),i={app_id:e.appId};r?i.token=r:i.anonymous_id=o1();const a=Nx(e.serverUrl,{path:e.mountPath,transports:e.transports,query:i});return a.on("connect",async()=>{var o;return console.log("connect",a.id),(o=t.connect)===null||o===void 0?void 0:o.call(t)}),a.on("update_model",async o=>{var s;return(s=t.update_model)===null||s===void 0?void 0:s.call(t,o)}),a.on("error",async o=>{var s;return(s=t.error)===null||s===void 0?void 0:s.call(t,o)}),a.on("connect_error",async o=>{var s;return console.error("connect_error",o),(s=t.error)===null||s===void 0?void 0:s.call(t,o)}),a}function Lhe({config:e}){let t={...e};const n={},r={},i={connect:async()=>{const v=[];Object.keys(n).forEach(x=>{const B=h(x);B.length!==0&&(c(x),B.forEach(({connect:C})=>{const E=async()=>C==null?void 0:C();v.push(E())}))}),await Promise.all(v)},update_model:async v=>{const B=h(v.room).map(C=>{var E;return(E=C.update_model)===null||E===void 0?void 0:E.call(C,v)});await Promise.all(B)},error:async v=>{console.error("error",v);const x=Object.values(n).flat().map(B=>{var C;return(C=B.error)===null||C===void 0?void 0:C.call(B,v)});await Promise.all(x)}};let a=J6(e,i);function o(){s()}function s(){b(),a&&a.disconnect()}function l(v){o(),t={...t,...v},a=J6(t,i)}function c(v){a.emit("join",v)}function d(v){a.emit("leave",v)}async function A(v,x){var B;const C=JSON.stringify(x);return(B=i.update_model)===null||B===void 0?void 0:B.call(i,{room:v,data:C})}function h(v){var x;return(x=n[v])!==null&&x!==void 0?x:[]}function m(v){const x=r[v];x&&(clearTimeout(x),delete r[v])}function b(){Object.keys(r).forEach(v=>{var x,B;clearTimeout(r[v]),delete r[v],((B=(x=n[v])===null||x===void 0?void 0:x.length)!==null&&B!==void 0?B:0)===0&&delete n[v]})}function g(v){m(v),r[v]=setTimeout(()=>{var x,B;delete r[v],!(((B=(x=n[v])===null||x===void 0?void 0:x.length)!==null&&B!==void 0?B:0)>0)&&(d(v),delete n[v])},Fhe)}return{socket:a,subscribeToRoom:(v,x)=>{n[v]?m(v):(c(v),n[v]=[]),n[v].push(x);let B=!1;return()=>{var C,E;B||(B=!0,n[v]=(E=(C=n[v])===null||C===void 0?void 0:C.filter(T=>T!==x))!==null&&E!==void 0?E:[],n[v].length===0&&g(v))}},updateConfig:l,updateModel:A,disconnect:s}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
551  PartySocket requires a global 'EventTarget' class to be available!
552  You can polyfill this global by adding this to your code before any partysocket imports: 
553  
554  \`\`\`
555  import 'partysocket/event-target-polyfill';
556  \`\`\`
557  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
558`);
vendor: 5,083 bytes, line 558
558var PK=class extends Event{constructor(t,n){super("error",n);qt(this,"message");qt(this,"error");this.message=t.message,this.error=t}},jK=class extends Event{constructor(t=1e3,n="",r){super("close",r);qt(this,"code");qt(this,"reason");qt(this,"wasClean",!0);this.code=t,this.reason=n}},z5={Event,ErrorEvent:PK,CloseEvent:jK};function Dhe(e,t){if(!e)throw new Error(t)}function Mhe(e){return new e.constructor(e.type,e)}function Uhe(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new jK(e.code||1999,e.reason||"unknown reason",e):"error"in e?new PK(e.error,e):new Event(e.type,e)}var MV,Rhe=typeof process<"u"&&typeof((MV=process.versions)==null?void 0:MV.node)<"u"&&typeof document>"u",dw=Rhe?Uhe:Mhe,jf={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Z6=!1,Qhe=class Uf extends EventTarget{constructor(n,r,i={}){super();qt(this,"_ws");qt(this,"_retryCount",-1);qt(this,"_uptimeTimeout");qt(this,"_connectTimeout");qt(this,"_shouldReconnect",!0);qt(this,"_connectLock",!1);qt(this,"_binaryType","blob");qt(this,"_closeCalled",!1);qt(this,"_messageQueue",[]);qt(this,"_url");qt(this,"_protocols");qt(this,"_options");qt(this,"onclose",null);qt(this,"onerror",null);qt(this,"onmessage",null);qt(this,"onopen",null);qt(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:r=jf.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),r),Dhe(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(i=>{var a;return(a=this._ws)==null?void 0:a.send(i)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(dw(n))});qt(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(dw(n))});qt(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(dw(n)),this._connect()});qt(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(dw(n))});this._url=n,this._protocols=r,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return Uf.CONNECTING}get OPEN(){return Uf.OPEN}get CLOSING(){return Uf.CLOSING}get CLOSED(){return Uf.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((r,i)=>(typeof i=="string"?r+=i.length:i instanceof Blob?r+=i.size:r+=i.byteLength,r),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?Uf.CLOSED:Uf.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,r){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,r)}reconnect(n,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,r),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:r=jf.maxEnqueuedMessages}=this._options;this._messageQueue.length<r&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=jf.reconnectionDelayGrowFactor,minReconnectionDelay:r=jf.minReconnectionDelay,maxReconnectionDelay:i=jf.maxReconnectionDelay}=this._options;let a=0;return this._retryCount>0&&(a=r*Math.pow(n,this._retryCount-1),a>i&&(a=i)),this._debug("next delay",a),a}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const r=n();if(!r)return Promise.resolve(null);if(typeof r=="string"||Array.isArray(r))return Promise.resolve(r);if(r.then)return r}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const r=n();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
558const{maxRetries:n=jf.maxRetries,connectionTimeout:r=jf.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([i,a])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!Z6&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
559
560For example, if you're using node.js, run \`npm install ws\`, and then in your code:
561
562import PartySocket from 'partysocket';
563import WS from 'ws';
564
565const partysocket = new PartySocket({
566  host: "127.0.0.1:1999",
567  room: "test-room",
568  WebSocket: WS
569});
570
571`),Z6=!0);const o=this._options.WebSocket||WebSocket;this._debug("connect",{url:i,protocols:a}),this._ws=a?new o(i,a):new o(i),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),r)}).catch(i=>{this._connectLock=!1,this._handleError(new z5.ErrorEvent(Error(i.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new z5.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,r){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,r),this._handleClose(new z5.CloseEvent(n,r,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
572 * Reconnecting WebSocket
573 * by Pedro Ladaria <[email protected]>
574 * https://github.com/pladaria/reconnecting-websocket
575 * License MIT
576 */const Hhe=1e3,$he=3e3,qhe=new Set([405,409,422,503]),zhe=new Set([400,403,404]);function Vhe(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function Whe(e){return e instanceof Error?e:new Error(String(e))}class Khe{constructor(t,n,r,i,a){var o;this.onClose=a,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(o=i==null?void 0:i.id)!==null&&o!==void 0?o:crypto.randomUUID();let s=r.transport==="proxy";const l=async()=>{var h;if(this.closed)throw new Error("Actor connection is closed");if(!s)try{const{websocket_url:m,token:b}=await r.mintConnectionToken(t,n,this.id),g=m.includes("?")?"&":"?";return`${m}${g}token=${encodeURIComponent(b)}`}catch(m){const b=Vhe(m);if(!(r.transport!=="direct"&&b!==void 0&&qhe.has(b))){b!==void 0&&zhe.has(b)&&this.close();try{(h=r.onMintError)===null||h===void 0||h.call(r,Whe(m))}catch{}throw m}s=!0}return Yhe(r.host,t,n,this.id,r.appId,r.getAuthToken(),r.functionsVersion)},c=new Qhe(l);this.ws=c;let d=Date.now();const A=()=>{d=Date.now()};c.addEventListener("open",A),c.addEventListener("message",h=>{A();let m;try{m=JSON.parse(h.data)}catch{return}if((m&&typeof m=="object"?m.type:void 0)!=="__pong")for(const g of this.listeners)g(m)}),this.heartbeat=setInterval(()=>{if(Date.now()-d>$he){A(),c.readyState===c.OPEN&&c.reconnect();return}try{c.send(JSON.stringify({type:"__ping"}))}catch{}},Hhe)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.closed||this.ws.send(JSON.stringify(t))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function Ghe(e,t,n,r){let i=null;return{connect(a){if(i)return i;const o=new Khe(e,t,n,a,()=>{r.delete(o),i===o&&(i=null)});return i=o,r.add(o),o}}}function Yhe(e,t,n,r,i,a,o){let s=e.replace(/^(http|https|ws|wss):\/\//,"");s.endsWith("/")&&(s=s.slice(0,-1));const l=s.startsWith("localhost:")||s.startsWith("127.0.0.1:")||s.startsWith("192.168.")||s.startsWith("10.")||s.startsWith("172.")&&s.split(".")[1]>="16"&&s.split(".")[1]<="31"||s.startsWith("[::ffff:7f00:1]:"),c=new URLSearchParams([["_pk",r],["app_id",i],["handler",t]]);return a&&c.append("token",a),o&&c.append("fv",o),`${l?"ws":"wss"}://${s}/parties/${t}/${n}?${c}`}function Xhe(e,t){return e&&!e.startsWith("/")?e:t??e}function Jhe(e){const t=new Set;return{module:new Proxy({}
576,{get(r,i){if(!(typeof i!="string"||i==="then"))return a=>Ghe(i,a,e,t)}}),closeAll:()=>{for(const r of[...t])r.close()}}}function Zhe(e){var t,n,r,i;const{serverUrl:a="https://base44.app",appId:o,analytics:s,token:l,serviceToken:c,requiresAuth:d=!1,appBaseUrl:A,options:h,functionsVersion:m,headers:b}=e,g=typeof A=="string"?A:"",y={serverUrl:a,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:o,token:l};let v=null;const x=()=>(v||(v=Lhe({config:y})),v),B={...b,"X-App-Id":String(o)},C=b==null?void 0:b["Base44-State"],E=C?{"Base44-State":C}:{},T=m?{...B,"Base44-Functions-Version":m}:B,j=Xp({baseURL:`${a}/api`,headers:B,token:l,onError:h==null?void 0:h.onError}),O=Xp({baseURL:`${a}/api`,headers:T,token:l,interceptResponses:!1,onError:h==null?void 0:h.onError}),L={...B,...l?{"on-behalf-of":`Bearer ${l}`}:{}},z=Xp({baseURL:`${a}/api`,headers:L,token:c,onError:h==null?void 0:h.onError}),F=Xp({baseURL:`${a}/api`,headers:T,token:c,interceptResponses:!1}),M=Xp({baseURL:`${a}/api`,headers:B}),V=Pfe(j,O,o,{appBaseUrl:g,token:l});if(typeof window<"u"){const K=l||vA();K&&V.setToken(K)}const q=Jhe({appId:o,host:Xhe(a,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:m,getAuthToken:()=>l||vA(),mintConnectionToken:async(K,oe,$)=>{const X=l||vA();return await M.post(`/apps/${o}/actors/${encodeURIComponent(K)}/connection-token`,{room:oe,connection_id:$},{headers:{...X?{Authorization:`Bearer ${X}`}:{},...m?{"Base44-Functions-Version":m}:{}}})},transport:h==null?void 0:h.actorsTransport,onMintError:h==null?void 0:h.onError}),W={entities:U6({axios:j,appId:o,getSocket:x}),integrations:Q6(j,o),connectors:Dfe(j,o),auth:V,functions:H6(O,o,{getAuthHeaders:()=>{const K={},oe=l||vA();return oe&&(K.Authorization=`Bearer ${oe}`),K},baseURL:(n=O.defaults)===null||n===void 0?void 0:n.baseURL}),agents:$6({axios:j,getSocket:x,appId:o,serverUrl:a,token:l}),aiGateway:z6({serverUrl:a,token:l,appId:o,headers:E}),appLogs:V6(j,o),app:Qfe(j,o),users:Hfe(j,o),analytics:gfe({axiosClient:j,serverUrl:a,appId:o,userAuthModule:V,enabled:(r=s==null?void 0:s.enabled)!==null&&r!==void 0?r:!0}),actors:q.module,cleanup:()=>{W.analytics.cleanup(),q.closeAll(),v&&v.disconnect()}},ee={entities:U6({axios:z,appId:o,getSocket:x}),integrations:Q6(z,o),sso:jfe(z,o),connectors:Ffe(z,o),functions:H6(F,o,{getAuthHeaders:()=>{const K={};return c&&(K.Authorization=`Bearer ${c}`),K},baseURL:(i=F.defaults)===null||i===void 0?void 0:i.baseURL}),agents:$6({axios:z,getSocket:x,appId:o,serverUrl:a,token:l}),aiGateway:z6({serverUrl:a,token:c,appId:o,headers:E}),appLogs:V6(z,o),cleanup:()=>{v&&v.disconnect()}};return d&&typeof window<"u"&&setTimeout(async()=>{try{await W.auth.isAuthenticated()||W.auth.redirectToLogin(window.location.href)}catch(K){console.error("Authentication check failed:",K),W.auth.redirectToLogin(window.location.href)}},0),{...W,fetchWithAuth:Ufe({axios:j,serviceRoleAxios:z,appId:String(o),serverUrl:a,functionsVersion:m,platformHeaders:b}),setToken(K){W.auth.setToken(K),v&&v.updateConfig({token:K}),y.token=K},getConfig(){return{serverUrl:a,appId:o,requiresAuth:d}},get asServiceRole(){if(!c)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return ee}}}const OK=typeof window>"u",epe=OK?{localStorage:new Map}:window,hv=epe.localStorage,tpe=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Tp=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(OK)return t;const r=`base44_${tpe(e)}`,i=new URLSearchParams(window.location.search),a=i.get(e);if(n){i.delete(e);const s=`${window.location.pathname}${i.toString()?`?${i.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,s)}if(a)return hv.setItem(r,a),a;if(t)return hv.setItem(r,t),t;const o=hv.getItem(r);return o||null},npe=()=>(Tp("clear_access_token")==="true"&&(hv.removeItem("base44_access_token"),hv.removeItem("token")),{appId:Tp("app_id",{defaultValue:"69e5fadb62865073c43a0307"}),token:Tp("access_token",{removeFromUrl:!0}),fromUrl:Tp("from_url",{defaultValue:window.location.href}),functionsVersion:Tp("functions_version",{defaultValue:"prod"}),appBaseUrl:Tp("app_base_url",{defaultValue:void 0})}),Jy={...npe()},{appId:rpe,token:ipe,functionsVersion:ape,appBaseUrl:ope}=Jy,mr=Zhe({appId:rpe,token:ipe,functionsVersion:ape,serverUrl:"",requiresAuth:!1,appBaseUrl:ope}),FK=_.createContext(),spe=({children:e})=>{const[t,n]=_.useState(null),[r,i]=_.useState(!1),[a,o]=_.useState(!0),[s,l]=_.useState(!0),[c,d]=_.useState(null),[A,h]=_.useState(!1),[m,b]=_.useState(null);_.useEffect(()=>{g()},[]);const g=async()=>{var B,C;try{l(!0),d(null);const E=Xp({baseURL:"/api/apps/public",headers:{"X-App-Id":Jy.appId},token:Jy.token,interceptResponses:!0});try{const T=await E.get(`/prod/public-settings/by-id/${Jy.appId}`);b(T),Jy.token?await y():(o(!1),i(!1),h(!0)),l(!1)}catch(T){if(console.error("App state check failed:",T),T.status===403&&((C=(B=T.data)==null?void 0:B.extra_data)!=null&&C.reason)){const j=T.data.extra_data.reason;d(j==="auth_required"?{type:"auth_required",message:"Authentication required"}:j==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:j,message:T.message})}else d({type:"unknown",message:T.message||"Failed to load app"});l(!1),o(!1)}}catch(E){console.error("Unexpected error:",E),d({type:"unknown",message:E.message||"An unexpected error occurred"}),l(!1),o(!1)}},y=async()=>{try{o(!0);const B=await mr.auth.me();n(B),i(!0),o(!1),h(!0)}catch(B){console.error("User auth check failed:",B),o(!1),i(!1),h(!0),(B.status===401||B.status===403)&&d({type:"auth_required",message:"Authentication required"})}},v=(B=!0)=>{n(null),i(!1),B?mr.auth.logout(window.location.href):mr.auth.logout()},x=()=>{mr.auth.redirectToLogin(window.location.href)};return u.jsx(FK.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:a,isLoadingPublicSettings:s,authError:c,appPublicSettings:m,authChecked:A,logout:v,navigateToLogin:x,checkUserAuth:y,checkAppState:g},children:e})},lpe=()=>{const e=_.useContext(FK);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},cpe=()=>u.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:u.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:u.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),u.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),u.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),u.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[u.jsx("p",{children:"If you believe this is an error, you can:"}),u.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[u.jsx("li",{children:"Verify you are logged in with the correct account"}),u.jsx("li",{children:"Contact the app administrator for access"}),u.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),_3=_.createContext({});function I3(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const sS=_.createContext(null),P3=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class upe extends _.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function dpe({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),i=_.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=_.useContext(P3);return _.useInsertionEffect(()=>{const{width:o,height:s,top:l,left:c}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return a&&(d.nonce=a),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
577          [data-motion-pop-id="${n}"] {
578            position: absolute !important;
579            width: ${o}px !important;
580            height: ${s}px !important;
581            top: ${l}px !important;
582            left: ${c}px !important;
583          }
584        `),()=>{document.head.removeChild(d)}},[t]),u.jsx(upe,{isPresent:t,childRef:r,sizeRef:i,children:_.cloneElement(e,{ref:r})})}const Ape=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{const s=I3(fpe),l=_.useId(),c=_.useCallback(A=>{s.set(A,!0);for(const h of s.values())if(!h)return;r&&r()},[s,r]),d=_.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c,register:A=>(s.set(A,!1),()=>s.delete(A))}),a?[Math.random(),c]:[n,c]);return _.useMemo(()=>
vendor: 41,023 bytes, line 584
584{s.forEach((A,h)=>s.set(h,!1))},[n]),_.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),o==="popLayout"&&(e=u.jsx(dpe,{isPresent:n,children:e})),u.jsx(sS.Provider,{value:d,children:e})};function fpe(){return new Map}function LK(e=!0){const t=_.useContext(sS);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=_.useId();_.useEffect(()=>{e&&i(a)},[e]);const o=_.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const Aw=e=>e.key||"";function eD(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const j3=typeof window<"u",DK=j3?_.useLayoutEffect:_.useEffect,sl=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1})=>{const[s,l]=LK(o),c=_.useMemo(()=>eD(e),[e]),d=o&&!s?[]:c.map(Aw),A=_.useRef(!0),h=_.useRef(c),m=I3(()=>new Map),[b,g]=_.useState(c),[y,v]=_.useState(c);DK(()=>{A.current=!1,h.current=c;for(let C=0;C<y.length;C++){const E=Aw(y[C]);d.includes(E)?m.delete(E):m.get(E)!==!0&&m.set(E,!1)}},[y,d.length,d.join("-")]);const x=[];if(c!==b){let C=[...c];for(let E=0;E<y.length;E++){const T=y[E],j=Aw(T);d.includes(j)||(C.splice(E,0,T),x.push(T))}a==="wait"&&x.length&&(C=x),v(eD(C)),g(c);return}const{forceRender:B}=_.useContext(_3);return u.jsx(u.Fragment,{children:y.map(C=>{const E=Aw(C),T=o&&!s?!1:c===y||d.includes(E),j=()=>{if(m.has(E))m.set(E,!0);else return;let O=!0;m.forEach(L=>{L||(O=!1)}),O&&(B==null||B(),v(h.current),o&&(l==null||l()),r&&r())};return u.jsx(Ape,{isPresent:T,initial:!A.current||n?void 0:!1,custom:T?void 0:t,presenceAffectsLayout:i,mode:a,onExitComplete:T?void 0:j,children:C},E)})})},ws=e=>e;let MK=ws;function O3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Mm=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Xu=e=>e*1e3,Ju=e=>e/1e3,hpe={useManualTiming:!1};function ppe(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function s(c){a.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,A=!1)=>{const m=A&&r?t:n;return d&&a.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),a.delete(c)},process:c=>{if(o=c,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,i&&(i=!1,l.process(c))}};return l}const fw=["read","resolveKeyframes","update","preRender","render","postRender"],mpe=40;function UK(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=fw.reduce((v,x)=>(v[x]=ppe(a),v),{}),{read:s,resolveKeyframes:l,update:c,preRender:d,render:A,postRender:h}=o,m=()=>{const v=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,mpe),1),i.timestamp=v,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),d.process(i),A.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},b=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:fw.reduce((v,x)=>{const B=o[x];return v[x]=(C,E=!1,T=!1)=>(n||b(),B.schedule(C,E,T)),v},{}),cancel:v=>{for(let x=0;x<fw.length;x++)o[fw[x]].cancel(v)},state:i,steps:o}}const{schedule:Pr,cancel:LA,state:wa,steps:V5}=UK(typeof requestAnimationFrame<"u"?requestAnimationFrame:ws,!0),RK=_.createContext({strict:!1}),tD={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Um={};for(const e in tD)Um[e]={isEnabled:t=>tD[e].some(n=>!!t[n])};function gpe(e){for(const t in e)Um[t]={...Um[t],...e[t]}}const ype=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function s1(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ype.has(e)}let QK=e=>!s1(e);function vpe(e){e&&(QK=t=>t.startsWith("on")?!s1(t):e(t))}try{vpe(require("@emotion/is-prop-valid").default)}catch{}function bpe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(QK(i)||n===!0&&s1(i)||!t&&!s1(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function wpe(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const lS=_.createContext({});function qv(e){return typeof e=="string"||Array.isArray(e)}function cS(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const F3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],L3=["initial",...F3];function uS(e){return cS(e.animate)||L3.some(t=>qv(e[t]))}function HK(e){return!!(uS(e)||e.variants)}function xpe(e,t){if(uS(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qv(n)?n:void 0,animate:qv(r)?r:void 0}}return e.inherit!==!1?t:{}}function Spe(e){const{initial:t,animate:n}=xpe(e,_.useContext(lS));return _.useMemo(()=>({initial:t,animate:n}),[nD(t),nD(n)])}function nD(e){return Array.isArray(e)?e.join(" "):e}const Bpe=Symbol.for("motionComponentSymbol");function rm(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Cpe(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):rm(n)&&(n.current=r))},[t])}const D3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kpe="framerAppearId",$K="data-"+D3(kpe),{schedule:M3}=UK(queueMicrotask,!1),qK=_.createContext({});function Epe(e,t,n,r,i){var a,o;const{visualElement:s}=_.useContext(lS),l=_.useContext(RK),c=_.useContext(sS),d=_.useContext(P3).reducedMotion,A=_.useRef(null);r=r||l.renderer,!A.current&&r&&(A.current=r(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const h=A.current,m=_.useContext(qK);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Npe(A.current,n,i,m);const b=_.useRef(!1);_.useInsertionEffect(()=>{h&&b.current&&h.update(n,c)});const g=n[$K],y=_.useRef(!!g&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return DK(()=>{h&&(b.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),M3.render(h.render),y.current&&h.animationState&&h.animationState.animateChanges())}),_.useEffect(()=>{h&&(!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,g)}),y.current=!1))}),h}function Npe(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:zK(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&rm(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function zK(e){if(e)return e.options.allowProjection!==!1?e.projection:zK(e.parent)}function Tpe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&gpe(e);function s(c,d){let A;const h={..._.useContext(P3),...c,layoutId:_pe(c)},{isStatic:m}=h,b=Spe(c),g=r(c,m);if(!m&&j3){Ipe();const y=Ppe(h);A=y.MeasureLayout,b.visualElement=Epe(i,g,h,t,y.ProjectionNode)}return u.jsxs(lS.Provider,{value:b,children:[A&&b.visualElement?u.jsx(A,{visualElement:b.visualElement,...h}):null,n(i,c,Cpe(g,b.visualElement,d),g,m,b.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const l=_.forwardRef(s);return l[Bpe]=i,l}function _pe({layoutId:e}){const t=_.useContext(_3).id;return t&&e!==void 0?t+"-"+e:e}function Ipe(e,t){_.useContext(RK).strict}function Ppe(e){const{drag:t,layout:n}=Um;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const jpe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function U3(e){return typeof e!="string"||e.includes("-")?!1:!!(jpe.indexOf(e)>-1||/[A-Z]/u.test(e))}function rD(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function R3(e,t,n,r){if(typeof t=="function"){const[i,a]=rD(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=rD(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const s_=e=>Array.isArray(e),Ope=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Fpe=e=>s_(e)?e[e.length-1]||0:e,Ja=e=>!!(e&&e.getVelocity);function Tx(e){const t=Ja(e)?e.get():e;return Ope(t)?t.toValue():t}function Lpe({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:Dpe(r,i,a,e),renderState:t()};return n&&(o.onMount=s=>n({props:r,current:s,...o}),o.onUpdate=s=>n(s)),o}const VK=e=>(t,n)=>{const r=_.useContext(lS),i=_.useContext(sS),a=()=>Lpe(e,t,r,i);return n?a():I3(a)};function Dpe(e,t,n,r){const i={},a=r(e,{});for(const h in a)i[h]=Tx(a[h]);let{initial:o,animate:s}=e;const l=uS(e),c=HK(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const A=d?s:o;if(A&&typeof A!="boolean"&&!cS(A)){const h=Array.isArray(A)?A:[A];for(let m=0;m<h.length;m++){const b=R3(e,h[m]);if(b){const{transitionEnd:g,transition:y,...v}=b;for(const x in v){let B=v[x];if(Array.isArray(B)){const C=d?B.length-1:0;B=B[C]}B!==null&&(i[x]=B)}for(const x in g)i[x]=g[x]}}}return i}const Cg=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$h=new Set(Cg),WK=e=>t=>typeof t=="string"&&t.startsWith(e),KK=WK("--"),Mpe=WK("var(--"),Q3=e=>Mpe(e)?Upe.test(e.split("/*")[0].trim()):!1,Upe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,GK=(e,t)=>t&&typeof e=="number"?t.transform(e):e,id=(e,t,n)=>n>t?t:n<e?e:n,kg={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},zv={...kg,transform:e=>id(0,1,e)},hw={...kg,default:1},tb=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),iA=tb("deg"),$c=tb("%"),Zt=tb("px"),Rpe=tb("vh"),Qpe=tb("vw"),iD={...$c,parse:e=>$c.parse(e)/100,transform:e=>$c.transform(e*100)},Hpe={borderWidth:Zt,borderTopWidth:Zt,borderRightWidth:Zt,borderBottomWidth:Zt,borderLeftWidth:Zt,borderRadius:Zt,radius:Zt,borderTopLeftRadius:Zt,borderTopRightRadius:Zt,borderBottomRightRadius:Zt,borderBottomLeftRadius:Zt,width:Zt,maxWidth:Zt,height:Zt,maxHeight:Zt,top:Zt,right:Zt,bottom:Zt,left:Zt,padding:Zt,paddingTop:Zt,paddingRight:Zt,paddingBottom:Zt,paddingLeft:Zt,margin:Zt,marginTop:Zt,marginRight:Zt,marginBottom:Zt,marginLeft:Zt,backgroundPositionX:Zt,backgroundPositionY:Zt},$pe={rotate:iA,rotateX:iA,rotateY:iA,rotateZ:iA,scale:hw,scaleX:hw,scaleY:hw,scaleZ:hw,skew:iA,skewX:iA,skewY:iA,distance:Zt,translateX:Zt,translateY:Zt,translateZ:Zt,x:Zt,y:Zt,z:Zt,perspective:Zt,transformPerspective:Zt,opacity:zv,originX:iD,originY:iD,originZ:Zt},aD={...kg,transform:Math.round},H3={...Hpe,...$pe,zIndex:aD,size:Zt,fillOpacity:zv,strokeOpacity:zv,numOctaves:aD},qpe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zpe=Cg.length;function Vpe(e,t,n){let r="",i=!0;for(let a=0;a<zpe;a++){const o=Cg[a],s=e[o];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(o.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const c=GK(s,H3[o]);if(!l){i=!1;const d=qpe[o]||o;r+=`${d}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function $3(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const c=t[l];if($h.has(l)){o=!0;continue}else if(KK(l)){i[l]=c;continue}else{const d=GK(c,H3[l]);l.startsWith("origin")?(s=!0,a[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=Vpe(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:c="50%",originZ:d=0}=a;r.transformOrigin=`${l} ${c} ${d}`}}const Wpe={offset:"stroke-dashoffset",array:"stroke-dasharray"},Kpe={offset:"strokeDashoffset",array:"strokeDasharray"};function Gpe(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?Wpe:Kpe;e[a.offset]=Zt.transform(-r);const o=Zt.transform(t),s=Zt.transform(n);e[a.array]=`${o} ${s}`}function oD(e,t,n){return typeof e=="string"?e:Zt.transform(t+n*e)}function Ype(e,t,n){const r=oD(t,e.x,e.width),i=oD(n,e.y,e.height);return`${r} ${i}`}function q3(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...c},d,A){if($3(e,c,A),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:b}=e;h.transform&&(b&&(m.transform=h.transform),delete h.transform),b&&(i!==void 0||a!==void 0||m.transform)&&(m.transformOrigin=Ype(b,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&Gpe(h,o,s,l,!1)}const z3=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),YK=()=>({...z3(),attrs:{}}),V3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XK(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const JK=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ZK(e,t,n,r){XK(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(JK.has(i)?i:D3(i),t.attrs[i])}const l1={};function Xpe(e){Object.assign(l1,e)}function eG(e,{layout:t,layoutId:n}){return $h.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!l1[e]||e==="opacity")}function W3(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(Ja(i[o])||t.style&&Ja(t.style[o])||eG(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}function tG(e,t,n){const r=W3(e,t,n);for(const i in e)if(Ja(e[i])||Ja(t[i])){const a=Cg.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function Jpe(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const sD=["x","y","width","height","cx","cy","r"],Zpe={useVisualState:VK({scrapeMotionValuesFromProps:tG,createRenderState:YK,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const s in i)if($h.has(s)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let s=0;s<sD.length;s++){const l=sD[s];e[l]!==t[l]&&(o=!0)}o&&Pr.read(()=>{Jpe(n,r),Pr.render(()=>{q3(r,i,V3(n.tagName),e.transformTemplate),ZK(n,r)})})}})},eme={useVisualState:VK({scrapeMotionValuesFromProps:W3,createRenderState:z3})};function nG(e,t,n){for(const r in t)!Ja(t[r])&&!eG(r,n)&&(e[r]=t[r])}function tme({transformTemplate:e},t){return _.useMemo(()=>{const n=z3();return $3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function nme(e,t){const n=e.style||{},r={};return nG(r,n,e),Object.assign(r,tme(e,t)),r}function rme(e,t){const n={},r=nme(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function ime(e,t,n,r){const i=_.useMemo(()=>{const a=YK();return q3(a,t,V3(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};nG(a,e.style,e),i.style={...a,...i.style}}return i}function ame(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(U3(n)?ime:rme)(r,a,o,n),c=bpe(r,typeof n=="string",e),d=n!==_.Fragment?{...c,...l,ref:i}:{},{children:A}=r,h=_.useMemo(()=>Ja(A)?A.get():A,[A]);return _.createElement(n,{...d,children:h})}}function ome(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...U3(r)?Zpe:eme,preloadedFeatures:e,useRender:ame(i),createVisualElement:t,Component:r};return Tpe(o)}}function rG(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function dS(e,t,n){const r=e.getProps();return R3(r,t,n!==void 0?n:r.custom,e)}const sme=O3(()=>window.ScrollTimeline!==void 0);class lme{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(sme()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class cme extends lme{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function K3(e,t){return e?e[t]||e.default||e:void 0}const l_=2e4;function iG(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<l_;)t+=n,r=e.next(t);return t>=l_?1/0:t}function G3(e){return typeof e=="function"}function lD(e,t){e.timeline=t,e.onfinish=null}const Y3=e=>Array.isArray(e)&&typeof e[0]=="number",ume={linearEasing:void 0};function dme(e,t){const n=O3(e);return()=>{var r;return(r=ume[t])!==null&&r!==void 0?r:n()}}const c1=dme(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),aG=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(Mm(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function oG(e){return!!(typeof e=="function"&&c1()||!e||typeof e=="string"&&(e in c_||c1())||Y3(e)||Array.isArray(e)&&e.every(oG))}const Zy=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,c_={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zy([0,.65,.55,1]),circOut:Zy([.55,0,1,.45]),backIn:Zy([.31,.01,.66,-.59]),backOut:Zy([.33,1.53,.69,.99])};function sG(e,t){if(e)return typeof e=="function"&&c1()?aG(e,t):Y3(e)?Zy(e):Array.isArray(e)?e.map(n=>sG(n,t)||c_.easeOut):c_[e]}const jl={x:!1,y:!1};function lG(){return jl.x||jl.y}function cG(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function uG(e,t){const n=cG(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function cD(e){return t=>{t.pointerType==="touch"||lG()||e(t)}}function Ame(e,t,n={}){const[r,i,a]=uG(e,n),o=cD(s=>{const{target:l}=s,c=t(s);if(typeof c!="function"||!l)return;const d=cD(A=>{c(A),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,i)});return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}const dG=(e,t)=>t?e===t?!0:dG(e,t.parentElement):!1,X3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,fme=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hme(e){return fme.has(e.tagName)||e.tabIndex!==-1}const ev=new WeakSet;function uD(e){return t=>{t.key==="Enter"&&e(t)}}function W5(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const pme=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=uD(()=>{if(ev.has(n))return;W5(n,"down");const i=uD(()=>{W5(n,"up")}),a=()=>W5(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function dD(e){return X3(e)&&!lG()}function mme(e,t,n={}){const[r,i,a]=uG(e,n),o=s=>{const l=s.currentTarget;if(!dD(s)||ev.has(l))return;ev.add(l);const c=t(s),d=(m,b)=>{window.removeEventListener("pointerup",A),window.removeEventListener("pointercancel",h),!(!dD(m)||!ev.has(l))&&(ev.delete(l),typeof c=="function"&&c(m,{success:b}))},A=m=>{d(m,n.useGlobalTarget||dG(l,m.target))},h=m=>{d(m,!1)};window.addEventListener("pointerup",A,i),window.addEventListener("pointercancel",h,i)};return r.forEach(s=>{!hme(s)&&s.getAttribute("tabindex")===null&&(s.tabIndex=0),(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),s.addEventListener("focus",c=>pme(c,i),i)}),a}function gme(e){return e==="x"||e==="y"?jl[e]?null:(jl[e]=!0,()=>{jl[e]=!1}):jl.x||jl.y?null:(jl.x=jl.y=!0,()=>{jl.x=jl.y=!1})}const AG=new Set(["width","height","top","left","right","bottom",...Cg]);let _x;function yme(){_x=void 0}const qc={now:()=>(_x===void 0&&qc.set(wa.isProcessing||hpe.useManualTiming?wa.timestamp:performance.now()),_x),set:e=>{_x=e,queueMicrotask(yme)}};function J3(e,t){e.indexOf(t)===-1&&e.push(t)}function Z3(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ej{constructor(){this.subscriptions=[]}add(t){return J3(this.subscriptions,t),()=>Z3(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function fG(e,t){return t?e*(1e3/t):0}const AD=30,vme=e=>!isNaN(parseFloat(e));class bme{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=qc.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=qc.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=vme(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ej);const r=this.events[t].add(n);return t==="change"?()=>{r(),Pr.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=qc.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>AD)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,AD);return fG(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vv(e,t){return new bme(e,t)}function wme(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Vv(n))}function xme(e,t){const n=dS(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=Fpe(a[o]);wme(e,o,s)}}function Sme(e){return!!(Ja(e)&&e.add)}function u_(e,t){const n=e.getValue("willChange");if(Sme(n))return n.add(t)}function hG(e){return e.props[$K]}const pG=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Bme=1e-7,Cme=12;function kme(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=pG(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Bme&&++s<Cme);return o}function nb(e,t,n,r){if(e===t&&n===r)return ws;const i=a=>kme(a,0,1,e,n);return a=>a===0||a===1?a:pG(i(a),t,r)}const mG=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gG=e=>t=>1-e(1-t),yG=nb(.33,1.53,.69,.99),tj=gG(yG),vG=mG(tj),bG=e=>(e*=2)<1?.5*tj(e):.5*(2-Math.pow(2,-10*(e-1))),nj=e=>1-Math.sin(Math.acos(e)),wG=gG(nj),xG=mG(nj),SG=e=>/^0[^.\s]+$/u.test(e);function Eme(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||SG(e):!0}const pv=e=>Math.round(e*1e5)/1e5,rj=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nme(e){return e==null}const Tme=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ij=(e,t)=>n=>!!(typeof n=="string"&&Tme.test(n)&&n.startsWith(e)||t&&!Nme(n)&&Object.prototype.hasOwnProperty.call(n,t)),BG=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(rj);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},_me=e=>id(0,255,e),K5={...kg,transform:e=>Math.round(_me(e))},Yf={test:ij("rgb","red"),parse:BG("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+K5.transform(e)+", "+K5.transform(t)+", "+K5.transform(n)+", "+pv(zv.transform(r))+")"};function Ime(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const d_={test:ij("#"),parse:Ime,transform:Yf.transform},im={test:ij("hsl","hue"),parse:BG("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+$c.transform(pv(t))+", "+$c.transform(pv(n))+", "+pv(zv.transform(r))+")"},Ka={test:e=>Yf.test(e)||d_.test(e)||im.test(e),parse:e=>Yf.test(e)?Yf.parse(e):im.test(e)?im.parse(e):d_.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Yf.transform(e):im.transform(e)},Pme=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function jme(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(rj))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Pme))===null||n===void 0?void 0:n.length)||0)>0}const CG="number",kG="color",Ome="var",Fme="var(",fD="${}",Lme=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Wv(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(Lme,l=>(Ka.test(l)?(r.color.push(a),i.push(kG),n.push(Ka.parse(l))):l.startsWith(Fme)?(r.var.push(a),i.push(Ome),n.push(l)):(r.number.push(a),i.push(CG),n.push(parseFloat(l))),++a,fD)).split(fD);return{values:n,split:s,indexes:r,types:i}}function EG(e){return Wv(e).values}function NG(e){const{split:t,types:n}=Wv(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===CG?a+=pv(i[o]):s===kG?a+=Ka.transform(i[o]):a+=i[o]}return a}}const Dme=e=>typeof e=="number"?0:e;function Mme(e){const t=EG(e);return NG(e)(t.map(Dme))}const DA={test:jme,parse:EG,createTransformer:NG,getAnimatableNone:Mme},Ume=new Set(["brightness","contrast","saturate","opacity"]);function Rme(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(rj)||[];if(!r)return e;const i=n.replace(r,"");let a=Ume.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const Qme=/\b([a-z-]*)\(.*?\)/gu,A_={...DA,getAnimatableNone:e=>{const t=e.match(Qme);return t?t.map(Rme).join(" "):e}},Hme={...H3,color:Ka,backgroundColor:Ka,outlineColor:Ka,fill:Ka,stroke:Ka,borderColor:Ka,borderTopColor:Ka,borderRightColor:Ka,borderBottomColor:Ka,borderLeftColor:Ka,filter:A_,WebkitFilter:A_},aj=e=>Hme[e];function TG(e,t){let n=aj(e);return n!==A_&&(n=DA),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $me=new Set(["auto","none","0"]);function qme(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!$me.has(a)&&Wv(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=TG(n,i)}const hD=e=>e===kg||e===Zt,pD=(e,t)=>parseFloat(e.split(", ")[t]),mD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return pD(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?pD(a[1],e):0}},zme=new Set(["x","y","z"]),Vme=Cg.filter(e=>!zme.has(e));function Wme(e){const t=[];return Vme.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Rm={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:mD(4,13),y:mD(5,14)};Rm.translateX=Rm.x;Rm.translateY=Rm.y;const Ah=new Set;let f_=!1,h_=!1;function _G(){if(h_){const e=Array.from(Ah).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Wme(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var s;(s=r.getValue(a))===null||s===void 0||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}h_=!1,f_=!1,Ah.forEach(e=>e.complete()),Ah.clear()}function IG(){Ah.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(h_=!0)})}function Kme(){IG(),_G()}class oj{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ah.add(this),f_||(f_=!0,Pr.read(IG),Pr.resolveKeyframes(_G))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ah.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ah.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const PG=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Gme=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Yme(e){const t=Gme.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function jG(e,t,n=1){const[r,i]=Yme(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return PG(o)?parseFloat(o):o}return Q3(i)?jG(i,t,n+1):i}const OG=e=>t=>t.test(e),Xme={test:e=>e==="auto",parse:e=>e},FG=[kg,Zt,$c,iA,Qpe,Rpe,Xme],gD=e=>FG.find(OG(e));class LG extends oj{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Q3(c))){const d=jG(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!AG.has(r)||t.length!==2)return;const[i,a]=t,o=gD(i),s=gD(a);if(o!==s)if(hD(o)&&hD(s))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Eme(t[i])&&r.push(i);r.length&&qme(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Rm[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,s=i[o];i[o]=Rm[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const yD=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(DA.test(e)||e==="0")&&!e.startsWith("url("));function Jme(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Zme(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=yD(i,t),s=yD(a,t);return!o||!s?!1:Jme(e)||(n==="spring"||G3(n))&&r}const ege=e=>e!==null;function AS(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(ege),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const tge=40;class DG{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=qc.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>tge?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Kme(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=qc.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:s,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Zme(t,r,i,a))if(o)this.options.duration=0;else{l&&l(AS(t,this.options,n)),s&&s(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Jr=(e,t,n)=>e+(t-e)*n;function G5(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nge({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=G5(l,s,e+1/3),a=G5(l,s,e),o=G5(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function u1(e,t){return n=>n>0?t:e}const Y5=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},rge=[d_,Yf,im],ige=e=>rge.find(t=>t.test(e));function vD(e){const t=ige(e);if(!t)return!1;let n=t.parse(e);return t===im&&(n=nge(n)),n}const bD=(e,t)=>{const n=vD(e),r=vD(t);if(!n||!r)return u1(e,t);const i={...n};return a=>(i.red=Y5(n.red,r.red,a),i.green=Y5(n.green,r.green,a),i.blue=Y5(n.blue,r.blue,a),i.alpha=Jr(n.alpha,r.alpha,a),Yf.transform(i))},age=(e,t)=>n=>t(e(n)),rb=(...e)=>e.reduce(age),p_=new Set(["none","hidden"]);function oge(e,t){return p_.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sge(e,t){return n=>Jr(e,t,n)}function sj(e){return typeof e=="number"?sge:typeof e=="string"?Q3(e)?u1:Ka.test(e)?bD:uge:Array.isArray(e)?MG:typeof e=="object"?Ka.test(e)?bD:lge:u1}function MG(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>sj(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function lge(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=sj(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function cge(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],s=e.indexes[o][i[o]],l=(n=e.values[s])!==null&&n!==void 0?n:0;r[a]=l,i[o]++}return r}const uge=(e,t)=>{const n=DA.createTransformer(t),r=Wv(e),i=Wv(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?p_.has(e)&&!i.values.length||p_.has(t)&&!r.values.length?oge(e,t):rb(MG(cge(r,i),i.values),n):u1(e,t)};function UG(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Jr(e,t,n):sj(e)(e,t)}const dge=5;function RG(e,t,n){const r=Math.max(t-dge,0);return fG(n-e(r),t-r)}const ui={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},X5=.001;function Age({duration:e=ui.duration,bounce:t=ui.bounce,velocity:n=ui.velocity,mass:r=ui.mass}){let i,a,o=1-t;o=id(ui.minDamping,ui.maxDamping,o),e=id(ui.minDuration,ui.maxDuration,Ju(e)),o<1?(i=c=>{const d=c*o,A=d*e,h=d-n,m=m_(c,o),b=Math.exp(-A);return X5-h/m*b},a=c=>{const A=c*o*e,h=A*n+n,m=Math.pow(o,2)*Math.pow(c,2)*e,b=Math.exp(-A),g=m_(Math.pow(c,2),o);return(-i(c)+X5>0?-1:1)*((h-m)*b)/g}):(i=c=>{const d=Math.exp(-c*e),A=(c-n)*e+1;return-X5+d*A},a=c=>{const d=Math.exp(-c*e),A=(n-c)*(e*e);return d*A});const s=5/e,l=hge(i,a,s);if(e=Xu(e),isNaN(l))return{stiffness:ui.stiffness,damping:ui.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const fge=12;function hge(e,t,n){let r=n;for(let i=1;i<fge;i++)r=r-e(r)/t(r);return r}function m_(e,t){return e*Math.sqrt(1-t*t)}const pge=["duration","bounce"],mge=["stiffness","damping","mass"];function wD(e,t){return t.some(n=>e[n]!==void 0)}function gge(e){let t={velocity:ui.velocity,stiffness:ui.stiffness,damping:ui.damping,mass:ui.mass,isResolvedFromDuration:!1,...e};if(!wD(e,mge)&&wD(e,pge))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*id(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ui.mass,stiffness:i,damping:a}}else{const n=Age(e);t={...t,...n,mass:ui.mass},t.isResolvedFromDuration=!0}return t}function QG(e=ui.visualDuration,t=ui.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:c,mass:d,duration:A,velocity:h,isResolvedFromDuration:m}=gge({...n,velocity:-Ju(n.velocity||0)}),b=h||0,g=c/(2*Math.sqrt(l*d)),y=o-a,v=Ju(Math.sqrt(l/d)),x=Math.abs(y)<5;r||(r=x?ui.restSpeed.granular:ui.restSpeed.default),i||(i=x?ui.restDelta.granular:ui.restDelta.default);let B;if(g<1){const E=m_(v,g);B=T=>{const j=Math.exp(-g*v*T);return o-j*((b+g*v*y)/E*Math.sin(E*T)+y*Math.cos(E*T))}}else if(g===1)B=E=>o-Math.exp(-v*E)*(y+(b+v*y)*E);else{const E=v*Math.sqrt(g*g-1);B=T=>{const j=Math.exp(-g*v*T),O=Math.min(E*T,300);return o-j*((b+g*v*y)*Math.sinh(O)+E*y*Math.cosh(O))/E}}const C={calculatedDuration:m&&A||null,next:E=>{const T=B(E);if(m)s.done=E>=A;else{let j=0;g<1&&(j=E===0?Xu(b):RG(B,E,T));const O=Math.abs(j)<=r,L=Math.abs(o-T)<=i;s.done=O&&L}return s.value=s.done?o:T,s},toString:()=>{const E=Math.min(iG(C),l_),T=aG(j=>C.next(E*j).value,E,30);return E+"ms "+T}};return C}function xD({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=
vendor: 5,094 bytes, line 584
584500,modifyTarget:o,min:s,max:l,restDelta:c=.5,restSpeed:d}){const A=e[0],h={done:!1,value:A},m=O=>s!==void 0&&O<s||l!==void 0&&O>l,b=O=>s===void 0?l:l===void 0||Math.abs(s-O)<Math.abs(l-O)?s:l;let g=n*t;const y=A+g,v=o===void 0?y:o(y);v!==y&&(g=v-A);const x=O=>-g*Math.exp(-O/r),B=O=>v+x(O),C=O=>{const L=x(O),z=B(O);h.done=Math.abs(L)<=c,h.value=h.done?v:z};let E,T;const j=O=>{m(h.value)&&(E=O,T=QG({keyframes:[h.value,b(h.value)],velocity:RG(B,O,h.value),damping:i,stiffness:a,restDelta:c,restSpeed:d}))};return j(0),{calculatedDuration:null,next:O=>{let L=!1;return!T&&E===void 0&&(L=!0,C(O),j(O)),E!==void 0&&O>=E?T.next(O-E):(!L&&C(O),h)}}}const yge=nb(.42,0,1,1),vge=nb(0,0,.58,1),HG=nb(.42,0,.58,1),bge=e=>Array.isArray(e)&&typeof e[0]!="number",wge={linear:ws,easeIn:yge,easeInOut:HG,easeOut:vge,circIn:nj,circInOut:xG,circOut:wG,backIn:tj,backInOut:vG,backOut:yG,anticipate:bG},SD=e=>{if(Y3(e)){MK(e.length===4);const[t,n,r,i]=e;return nb(t,n,r,i)}else if(typeof e=="string")return wge[e];return e};function xge(e,t,n){const r=[],i=n||UG,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||ws:t;s=rb(l,s)}r.push(s)}return r}function Sge(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(MK(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=xge(t,r,i),l=s.length,c=d=>{if(o&&d<e[0])return t[0];let A=0;if(l>1)for(;A<e.length-2&&!(d<e[A+1]);A++);const h=Mm(e[A],e[A+1],d);return s[A](h)};return n?d=>c(id(e[0],e[a-1],d)):c}function Bge(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Mm(0,t,r);e.push(Jr(n,1,i))}}function Cge(e){const t=[0];return Bge(t,e.length-1),t}function kge(e,t){return e.map(n=>n*t)}function Ege(e,t){return e.map(()=>t||HG).splice(0,e.length-1)}function d1({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=bge(r)?r.map(SD):SD(r),a={done:!1,value:t[0]},o=kge(n&&n.length===t.length?n:Cge(t),e),s=Sge(o,t,{ease:Array.isArray(i)?i:Ege(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const Nge=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Pr.update(t,!0),stop:()=>LA(t),now:()=>wa.isProcessing?wa.timestamp:qc.now()}},Tge={decay:xD,inertia:xD,tween:d1,keyframes:d1,spring:QG},_ge=e=>e/100;class lj extends DG{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||oj,s=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(a,s,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,s=G3(n)?n:Tge[n]||d1;let l,c;s!==d1&&typeof t[0]!="number"&&(l=rb(_ge,UG(t[0],t[1])),t=[0,100]);const d=s({...this.options,keyframes:t});a==="mirror"&&(c=s({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=iG(d));const{calculatedDuration:A}=d,h=A+i,m=h*(r+1)-i;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:A,resolvedDuration:h,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:c,totalDuration:d,resolvedDuration:A}=r;if(this.startTime===null)return a.next(0);const{delay:h,repeat:m,repeatType:b,repeatDelay:g,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-h*(this.speed>=0?1:-1),x=this.speed>=0?v<0:v>d;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let B=this.currentTime,C=a;if(m){const O=Math.min(this.currentTime,d)/A;let L=Math.floor(O),z=O%1;!z&&O>=1&&(z=1),z===1&&L--,L=Math.min(L,m+1),!!(L%2)&&(b==="reverse"?(z=1-z,g&&(z-=g/A)):b==="mirror"&&(C=o)),B=id(0,1,z)*A}const E=x?{done:!1,value:l[0]}:C.next(B);s&&(E.value=s(E.value));let{done:T}=E;!x&&c!==null&&(T=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return j&&i!==void 0&&(E.value=AS(l,this.options,i)),y&&y(E.value),j&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Ju(t.calculatedDuration):0}
vendor: 54,597 bytes, line 584
584get time(){return Ju(this.currentTime)}set time(t){t=Xu(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ju(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Nge,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Ige=new Set(["opacity","clipPath","filter","transform"]);function Pge(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=sG(s,i);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const jge=O3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),A1=10,Oge=2e4;function Fge(e){return G3(e.type)||e.type==="spring"||!oG(e.ease)}function Lge(e,t){const n=new lj({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<Oge;)r=n.sample(a),i.push(r.value),a+=A1;return{times:void 0,keyframes:i,duration:a-A1,ease:"linear"}}const $G={anticipate:bG,backInOut:vG,circInOut:xG};function Dge(e){return e in $G}class BD extends DG{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new LG(a,(o,s)=>this.onKeyframesResolved(o,s),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:o,motionValue:s,name:l,startTime:c}=this.options;if(!s.owner||!s.owner.current)return!1;if(typeof a=="string"&&c1()&&Dge(a)&&(a=$G[a]),Fge(this.options)){const{onComplete:A,onUpdate:h,motionValue:m,element:b,...g}=this.options,y=Lge(t,g);t=y.keyframes,t.length===1&&(t[1]=t[0]),r=y.duration,i=y.times,a=y.ease,o="keyframes"}const d=Pge(s.owner.current,l,t,{...this.options,duration:r,times:i,ease:a});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(lD(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:A}=this.options;s.set(AS(t,this.options,n)),A&&A(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ju(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ju(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Xu(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ws;const{animation:r}=n;lD(r,t)}return ws}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:o,times:s}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:A,element:h,...m}=this.options,b=new lj({...m,keyframes:r,duration:i,type:a,ease:o,times:s,isGenerator:!0}),g=Xu(this.time);c.setWithVelocity(b.sample(g-A1).value,b.sample(g).value,A1)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:s}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return jge()&&r&&Ige.has(r)&&!l&&!c&&!i&&a!=="mirror"&&o!==0&&s!=="inertia"}}const Mge={type:"spring",stiffness:500,damping:25,restSpeed:10},Uge=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Rge={type:"keyframes",duration:.8},Qge={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Hge=(e,{keyframes:t})=>t.length>2?Rge:$h.has(e)?e.startsWith("scale")?Uge(t[1]):Mge:Qge;function $ge({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const cj=(e,t,n,r={},i,a)=>o=>{const s=K3(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Xu(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:h=>{t.set(h),s.onUpdate&&s.onUpdate(h)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};$ge(s)||(d={...d,...Hge(e,d)}),d.duration&&(d.duration=Xu(d.duration)),d.repeatDelay&&(d.repeatDelay=Xu(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let A=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(A=!0)),A&&!a&&t.get()!==void 0){const h=AS(d.keyframes,s);if(h!==void 0)return Pr.update(()=>{d.onUpdate(h),d.onComplete()}),new cme([])}return!a&&BD.supports(d)?new BD(d):new lj(d)};function qge({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function qG(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const A in l){const h=e.getValue(A,(a=e.latestValues[A])!==null&&a!==void 0?a:null),m=l[A];if(m===void 0||d&&qge(d,A))continue;const b={delay:n,...K3(o||{},A)};let g=!1;if(window.MotionHandoffAnimation){const v=hG(e);if(v){const x=window.MotionHandoffAnimation(v,A,Pr);x!==null&&(b.startTime=x,g=!0)}}u_(e,A),h.start(cj(A,h,m,e.shouldReduceMotion&&AG.has(A)?{type:!1}:b,e,g));const y=h.animation;y&&c.push(y)}return s&&Promise.all(c).then(()=>{Pr.update(()=>{s&&xme(e,s)})}),c}function g_(e,t,n={}){var r;const i=dS(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(qG(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:A,staggerDirection:h}=a;return zge(e,t,d+c,A,h,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[c,d]=l==="beforeChildren"?[o,s]:[s,o];return c().then(()=>d())}else return Promise.all([o(),s(n.delay)])}function zge(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(Vge).forEach((c,d)=>{c.notify("AnimationStart",t),o.push(g_(c,t,{...a,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function Vge(e,t){return e.sortNodePosition(t)}function Wge(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>g_(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=g_(e,t,n);else{const i=typeof t=="function"?dS(e,t,n.custom):t;r=Promise.all(qG(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Kge=L3.length;function zG(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?zG(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Kge;n++){const r=L3[n],i=e.props[r];(qv(i)||i===!1)&&(t[r]=i)}return t}const Gge=[...F3].reverse(),Yge=F3.length;function Xge(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Wge(e,n,r)))}function Jge(e){let t=Xge(e),n=CD(),r=!0;const i=l=>(c,d)=>{var A;const h=dS(e,d,l==="exit"?(A=e.presenceContext)===null||A===void 0?void 0:A.custom:void 0);if(h){const{transition:m,transitionEnd:b,...g}=h;c={...c,...g,...b}}return c};function a(l){t=l(e)}function o(l){const{props:c}=e,d=zG(e.parent)||{},A=[],h=new Set;let m={},b=1/0;for(let y=0;y<Yge;y++){const v=Gge[y],x=n[v],B=c[v]!==void 0?c[v]:d[v],C=qv(B),E=v===l?x.isActive:null;E===!1&&(b=y);let T=B===d[v]&&B!==c[v]&&C;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),x.protectedKeys={...m},!x.isActive&&E===null||!B&&!x.prevProp||cS(B)||typeof B=="boolean")continue;const j=Zge(x.prevProp,B);let O=j||v===l&&x.isActive&&!T&&C||y>b&&C,L=!1;const z=Array.isArray(B)?B:[B];let F=z.reduce(i(v),{});E===!1&&(F={});const{prevResolvedValues:M={}}=x,V={...M,...F},q=ne=>{O=!0,h.has(ne)&&(L=!0,h.delete(ne)),x.needsAnimating[ne]=!0;const K=e.getValue(ne);K&&(K.liveStyle=!1)};for(const ne in V){const K=F[ne],oe=M[ne];if(m.hasOwnProperty(ne))continue;let $=!1;s_(K)&&s_(oe)?$=!rG(K,oe):$=K!==oe,$?K!=null?q(ne):h.add(ne):K!==void 0&&h.has(ne)?q(ne):x.protectedKeys[ne]=!0}x.prevProp=B,x.prevResolvedValues=F,x.isActive&&(m={...m,...F}),r&&e.blockInitialAnimation&&(O=!1),O&&(!(T&&j)||L)&&A.push(...z.map(ne=>({animation:ne,options:{type:v}})))}if(h.size){const y={};h.forEach(v=>{const x=e.getBaseTarget(v),B=e.getValue(v);B&&(B.liveStyle=!0),y[v]=x??null}),A.push({animation:y})}let g=!!A.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(A):Promise.resolve()}function s(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var m;return(m=h.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const A=o(l);for(const h in n)n[h].protectedKeys={};return A}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=CD(),r=!0}}}function Zge(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rG(t,e):!1}function Of(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function CD(){return{animate:Of(!0),whileInView:Of(),whileHover:Of(),whileTap:Of(),whileDrag:Of(),whileFocus:Of(),exit:Of()}}class WA{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eye extends WA{constructor(t){super(t),t.animationState||(t.animationState=Jge(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();cS(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let tye=0;class nye extends WA{constructor(){super(...arguments),this.id=tye++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const rye={animation:{Feature:eye},exit:{Feature:nye}};function Kv(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ib(e){return{point:{x:e.pageX,y:e.pageY}}}const iye=e=>t=>X3(t)&&e(t,ib(t));function mv(e,t,n,r){return Kv(e,t,iye(n),r)}const kD=(e,t)=>Math.abs(e-t);function aye(e,t){const n=kD(e.x,t.x),r=kD(e.y,t.y);return Math.sqrt(n**2+r**2)}class VG{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=Z5(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=aye(A.offset,{x:0,y:0})>=3;if(!h&&!m)return;const{point:b}=A,{timestamp:g}=wa;this.history.push({...b,timestamp:g});const{onStart:y,onMove:v}=this.handlers;h||(y&&y(this.lastMoveEvent,A),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,A)},this.handlePointerMove=(A,h)=>{this.lastMoveEvent=A,this.lastMoveEventInfo=J5(h,this.transformPagePoint),Pr.update(this.updatePoint,!0)},this.handlePointerUp=(A,h)=>{this.end();const{onEnd:m,onSessionEnd:b,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Z5(A.type==="pointercancel"?this.lastMoveEventInfo:J5(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(A,y),b&&b(A,y)},!X3(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=ib(t),s=J5(o,this.transformPagePoint),{point:l}=s,{timestamp:c}=wa;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,Z5(s,this.history)),this.removeListeners=rb(mv(this.contextWindow,"pointermove",this.handlePointerMove),mv(this.contextWindow,"pointerup",this.handlePointerUp),mv(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),LA(this.updatePoint)}}function J5(e,t){return t?{point:t(e.point)}:e}function ED(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Z5({point:e},t){return{point:e,delta:ED(e,WG(t)),offset:ED(e,oye(t)),velocity:sye(t,.1)}}function oye(e){return e[0]}function WG(e){return e[e.length-1]}function sye(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=WG(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Xu(t)));)n--;if(!r)return{x:0,y:0};const a=Ju(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const KG=1e-4,lye=1-KG,cye=1+KG,GG=.01,uye=0-GG,dye=0+GG;function Cs(e){return e.max-e.min}function Aye(e,t,n){return Math.abs(e-t)<=n}function ND(e,t,n,r=.5){e.origin=r,e.originPoint=Jr(t.min,t.max,e.origin),e.scale=Cs(n)/Cs(t),e.translate=Jr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lye&&e.scale<=cye||isNaN(e.scale))&&(e.scale=1),(e.translate>=uye&&e.translate<=dye||isNaN(e.translate))&&(e.translate=0)}function gv(e,t,n,r){ND(e.x,t.x,n.x,r?r.originX:void 0),ND(e.y,t.y,n.y,r?r.originY:void 0)}function TD(e,t,n){e.min=n.min+t.min,e.max=e.min+Cs(t)}function fye(e,t,n){TD(e.x,t.x,n.x),TD(e.y,t.y,n.y)}function _D(e,t,n){e.min=t.min-n.min,e.max=e.min+Cs(t)}function yv(e,t,n){_D(e.x,t.x,n.x),_D(e.y,t.y,n.y)}function hye(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Jr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Jr(n,e,r.max):Math.min(e,n)),e}function ID(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function pye(e,{top:t,left:n,bottom:r,right:i}){return{x:ID(e.x,n,i),y:ID(e.y,t,r)}}function PD(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function mye(e,t){return{x:PD(e.x,t.x),y:PD(e.y,t.y)}}function gye(e,t){let n=.5;const r=Cs(e),i=Cs(t);return i>r?n=Mm(t.min,t.max-r,e.min):r>i&&(n=Mm(e.min,e.max-i,t.min)),id(0,1,n)}function yye(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const y_=.35;function vye(e=y_){return e===!1?e=0:e===!0&&(e=y_),{x:jD(e,"left","right"),y:jD(e,"top","bottom")}}function jD(e,t,n){return{min:OD(e,t),max:OD(e,n)}}function OD(e,t){return typeof e=="number"?e:e[t]||0}const FD=()=>({translate:0,scale:1,origin:0,originPoint:0}),am=()=>({x:FD(),y:FD()}),LD=()=>({min:0,max:0}),vi=()=>({x:LD(),y:LD()});function Ks(e){return[e("x"),e("y")]}function YG({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function bye({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function wye(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function eC(e){return e===void 0||e===1}function v_({scale:e,scaleX:t,scaleY:n}){return!eC(e)||!eC(t)||!eC(n)}function Rf(e){return v_(e)||XG(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function XG(e){return DD(e.x)||DD(e.y)}function DD(e){return e&&e!=="0%"}function f1(e,t,n){const r=e-n,i=t*r;return n+i}function MD(e,t,n,r,i){return i!==void 0&&(e=f1(e,i,r)),f1(e,n,r)+t}function b_(e,t=0,n=1,r,i){e.min=MD(e.min,t,n,r,i),e.max=MD(e.max,t,n,r,i)}function JG(e,{x:t,y:n}){b_(e.x,t.translate,t.scale,t.originPoint),b_(e.y,n.translate,n.scale,n.originPoint)}const UD=.999999999999,RD=1.0000000000001;function xye(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&sm(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,JG(e,o)),r&&Rf(a.latestValues)&&sm(e,a.latestValues))}t.x<RD&&t.x>UD&&(t.x=1),t.y<RD&&t.y>UD&&(t.y=1)}function om(e,t){e.min=e.min+t,e.max=e.max+t}function QD(e,t,n,r,i=.5){const a=Jr(e.min,e.max,i);b_(e,t,n,a,r)}function sm(e,t){QD(e.x,t.x,t.scaleX,t.scale,t.originX),QD(e.y,t.y,t.scaleY,t.scale,t.originY)}function ZG(e,t){return YG(wye(e.getBoundingClientRect(),t))}function Sye(e,t,n){const r=ZG(e,n),{scroll:i}=t;return i&&(om(r.x,i.offset.x),om(r.y,i.offset.y)),r}const eY=({current:e})=>e?e.ownerDocument.defaultView:null,Bye=new WeakMap;class Cye{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=vi(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:A}=this.getProps();A?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ib(d).point)},a=(d,A)=>{const{drag:h,dragPropagation:m,onDragStart:b}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=gme(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ks(y=>{let v=this.getAxisMotionValue(y).get()||0;if($c.test(v)){const{projection:x}=this.visualElement;if(x&&x.layout){const B=x.layout.layoutBox[y];B&&(v=Cs(B)*(parseFloat(v)/100))}}this.originPoint[y]=v}),b&&Pr.postRender(()=>b(d,A)),u_(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(d,A)=>{const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:b,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:y}=A;if(m&&this.currentDirection===null){this.currentDirection=kye(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",A.point,y),this.updateAxis("y",A.point,y),this.visualElement.render(),g&&g(d,A)},s=(d,A)=>this.stop(d,A),l=()=>Ks(d=>{var A;return this.getAnimationState(d)==="paused"&&((A=this.getAxisMotionValue(d).animation)===null||A===void 0?void 0:A.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new VG(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:eY(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Pr.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!pw(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=hye(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&rm(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=pye(i.layoutBox,n):this.constraints=!1,this.elastic=vye(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ks(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=yye(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!rm(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Sye(r,i.root,this.visualElement.getTransformPagePoint());let o=mye(i.layout.layoutBox,a);if(n){const s=n(bye(o));this.hasMutatedConstraints=!!s,s&&(o=YG(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Ks(d=>{if(!pw(d,n,this.currentDirection))return;let A=l&&l[d]||{};o&&(A={min:0,max:0});const h=i?200:1e6,m=i?40:1e7,b={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...A};return this.startAxisValueAnimation(d,b)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return u_(this.visualElement,t),r.start(cj(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ks(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ks(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ks(n=>{const{drag:r}=this.getProps();if(!pw(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-Jr(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rm(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ks(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const l=s.get();i[o]=gye({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ks(o=>{if(!pw(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];s.set(Jr(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;Bye.set(this.visualElement,this);const t=this.visualElement.current,n=mv(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();rm(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Pr.read(r);const o=Kv(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ks(d=>{const A=this.getAxisMotionValue(d);A&&(this.originPoint[d]+=l[d].translate,A.set(A.get()+l[d].translate))}),this.visualElement.render())}));return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=y_,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function pw(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kye(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Eye extends WA{constructor(t){super(t),this.removeGroupControls=ws,this.removeListeners=ws,this.controls=new Cye(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ws}unmount(){this.removeGroupControls(),this.removeListeners()}}const HD=e=>(t,n)=>{e&&Pr.postRender(()=>e(t,n))};class Nye extends WA{constructor(){super(...arguments),this.removePointerDownListener=ws}onPointerDown(t){this.session=new VG(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eY(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:HD(t),onStart:HD(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Pr.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=mv(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ix={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $D(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Cy={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Zt.test(e))e=parseFloat(e);else return e;const n=$D(e,t.target.x),r=$D(e,t.target.y);return`${n}% ${r}%`}},Tye={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=DA.parse(e);if(i.length>5)return r;const a=DA.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const c=Jr(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),a(i)}};class _ye extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Xpe(Iye),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Ix.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Pr.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),M3.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tY(e){const[t,n]=LK(),r=_.useContext(_3);return u.jsx(_ye,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(qK),isPresent:t,safeToRemove:n})}const Iye={borderRadius:{...Cy,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cy,borderTopRightRadius:Cy,borderBottomLeftRadius:Cy,borderBottomRightRadius:Cy,boxShadow:Tye};function Pye(e,t,n){const r=Ja(e)?e:Vv(e);return r.start(cj("",r,t,n)),r.animation}function jye(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Oye=(e,t)=>e.depth-t.depth;class Fye{constructor(){this.children=[],this.isDirty=!1}add(t){J3(this.children,t),this.isDirty=!0}remove(t){Z3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Oye),this.isDirty=!1,this.children.forEach(t)}}function Lye(e,t){const n=qc.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(LA(r),e(a-t))};return Pr.read(r,!0),()=>LA(r)}const nY=["TopLeft","TopRight","BottomLeft","BottomRight"],Dye=nY.length,qD=e=>typeof e=="string"?parseFloat(e):e,zD=e=>typeof e=="number"||Zt.test(e);function Mye(e,t,n,r,i,a){i?(e.opacity=Jr(0,n.opacity!==void 0?n.opacity:1,Uye(r)),e.opacityExit=Jr(t.opacity!==void 0?t.opacity:1,0,Rye(r))):a&&(e.opacity=Jr(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Dye;o++){const s=`border${nY[o]}Radius`;let l=VD(t,s),c=VD(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||zD(l)===zD(c)?(e[s]=Math.max(Jr(qD(l),qD(c),r),0),($c.test(c)||$c.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Jr(t.rotate||0,n.rotate||0,r))}function VD(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Uye=rY(0,.5,wG),Rye=rY(.5,.95,ws);function rY(e,t,n){return r=>r<e?0:r>t?1:n(Mm(e,t,r))}function WD(e,t){e.min=t.min,e.max=t.max}function $s(e,t){WD(e.x,t.x),WD(e.y,t.y)}function KD(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function GD(e,t,n,r,i){return e-=t,e=f1(e,1/n,r),i!==void 0&&(e=f1(e,1/i,r)),e}function Qye(e,t=0,n=1,r=.5,i,a=e,o=e){if($c.test(t)&&(t=parseFloat(t),t=Jr(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=Jr(a.min,a.max,r);e===a&&(s-=t),e.min=GD(e.min,t,n,s,i),e.max=GD(e.max,t,n,s,i)}function YD(e,t,[n,r,i],a,o){Qye(e,t[n],t[r],t[i],t.scale,a,o)}const Hye=["x","scaleX","originX"],$ye=["y","scaleY","originY"];function XD(e,t,n,r){YD(e.x,t,Hye,n?n.x:void 0,r?r.x:void 0),YD(e.y,t,$ye,n?n.y:void 0,r?r.y:void 0)}function JD(e){return e.translate===0&&e.scale===1}function iY(e){return JD(e.x)&&JD(e.y)}function ZD(e,t){return e.min===t.min&&e.max===t.max}function qye(e,t){return ZD(e.x,t.x)&&ZD(e.y,t.y)}function eM(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function aY(e,t){return eM(e.x,t.x)&&eM(e.y,t.y)}function tM(e){return Cs(e.x)/Cs(e.y)}function nM(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class zye{constructor(){this.members=[]}add(t){J3(this.members,t),t.scheduleRender()}remove(t){if(Z3(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Vye(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:A,rotateY:h,skewX:m,skewY:b}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),A&&(r+=`rotateX(${A}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),b&&(r+=`skewY(${b}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const Qf={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},tv=typeof window<"u"&&window.MotionDebug!==void 0,tC=["","X","Y","Z"],Wye={visibility:"hidden"},rM=1e3;let Kye=0;function nC(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function oY(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=hG(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Pr,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&oY(r)}function sY({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=Kye++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tv&&(Qf.totalNodes=Qf.resolvedTargetDeltas=Qf.recalculatedProjection=0),this.nodes.forEach(Xye),this.nodes.forEach(nve),this.nodes.forEach(rve),this.nodes.forEach(Jye),tv&&window.MotionDebug.record(Qf)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Fye)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ej),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=jye(o),this.instance=o;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let A;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,A&&A(),A=Lye(h,250),Ix.hasAnimatedSinceResize&&(Ix.hasAnimatedSinceResize=!1,this.nodes.forEach(aM))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:A,hasLayoutChanged:h,hasRelativeTargetChanged:m,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||lve,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=d.getProps(),x=!this.targetLayout||!aY(this.targetLayout,b)||m,B=!h&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||B||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(A,B);const C={...K3(g,"layout"),onPlay:y,onComplete:v};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else h||aM(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,LA(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ive),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&oY(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const A=this.path[d];A.shouldResetTransform=!0,A.updateScroll("snapshot"),A.options.layoutRoot&&A.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iM);return}this.isUpdating||this.nodes.forEach(eve),this.isUpdating=!1,this.nodes.forEach(tve),this.nodes.forEach(Gye),this.nodes.forEach(Yye),this.clearAllSnapshots();const s=qc.now();wa.delta=id(0,1e3/60,s-wa.timestamp),wa.timestamp=s,wa.isProcessing=!0,V5.update.process(wa),V5.preRender.process(wa),V5.render.process(wa),wa.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,M3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Zye),this.sharedNodes.forEach(ave)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=vi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!iY(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&(s||Rf(this.latestValues)||d)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),cve(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:s}=this.options;if(!s)return vi();const l=s.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(uve))){const{scroll:d}=this.root;d&&(om(l.x,d.offset.x),om(l.y,d.offset.y))}return l}removeElementScroll(o){var s;const l=vi();if($s(l,o),!((s=this.scroll)===null||s===void 0)&&s.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:A,options:h}=d;d!==this.root&&A&&h.layoutScroll&&(A.wasRoot&&$s(l,o),om(l.x,A.offset.x),om(l.y,A.offset.y))}return l}applyTransform(o,s=!1){const l=vi();$s(l,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&sm(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Rf(d.latestValues)&&sm(l,d.latestValues)}return Rf(this.latestValues)&&sm(l,this.latestValues),l}removeTransform(o){const s=vi();$s(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Rf(c.latestValues))continue;v_(c.latestValues)&&c.updateSnapshot();const d=vi(),A=c.measurePageBox();$s(d,A),XD(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Rf(this.latestValues)&&XD(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==wa.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:A,layoutId:h}=this.options;if(!(!this.layout||!(A||h))){if(this.resolvedRelativeTargetAt=wa.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vi(),this.relativeTargetOrigin=vi(),yv(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),$s(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=vi(),this.targetWithTransforms=vi()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),fye(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$s(this.target,this.layout.layoutBox),JG(this.target,this.targetDelta)):$s(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vi(),this.relativeTargetOrigin=vi(),yv(this.relativeTargetOrigin,this.target,m.target),$s(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tv&&Qf.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||v_(this.parent.latestValues)||XG(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===wa.timestamp&&(c=!1),c)return;const{layout:d,layoutId:A}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||A))return;$s(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;xye(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=vi());const{target:b}=s;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(KD(this.prevProjectionDelta.x,this.projectionDelta.x),KD(this.prevProjectionDelta.y,this.projectionDelta.y)),gv(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==m||!nM(this.projectionDelta.x,this.prevProjectionDelta.x)||!nM(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),tv&&Qf.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var s;if((s=this.options.visualElement)===null||s===void 0||s.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=am(),this.projectionDelta=am(),this.projectionDeltaWithTransform=am()}setAnimationOrigin(o,s=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},A=am();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const h=vi(),m=l?l.source:void 0,b=this.layout?this.layout.source:void 0,g=m!==b,y=this.getStack(),v=!y||y.members.length<=1,x=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(sve));this.animationProgress=0;let B;this.mixTargetDelta=C=>{const E=C/1e3;oM(A.x,o.x,E),oM(A.y,o.y,E),this.setTargetDelta(A),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yv(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ove(this.relativeTarget,this.relativeTargetOrigin,h,E),B&&qye(this.relativeTarget,B)&&(this.isProjectionDirty=!1),B||(B=vi()),$s(B,this.relativeTarget)),g&&(this.animationValues=d,Mye(d,c,this.latestValues,E,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(LA(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pr.update(()=>{Ix.hasAnimatedSinceResize=!0,this.currentAnimation=Pye(0,rM,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:d}=o;if(!(!s||!l||!c)){if(this!==o&&this.layout&&c&&lY(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||vi();const A=Cs(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+A;const h=Cs(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}$s(s,l),sm(s,d),gv(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new zye),this.sharedNodes.get(o).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&nC("z",o,c,this.animationValues);for(let d=0;d<tC.length;d++)nC(`rotate${tC[d]}`,o,c,this.animationValues),nC(`skew${tC[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}getProjectionStyles(o){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Wye;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Tx(o==null?void 0:o.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const A=this.getLead();if(!this.projectionDelta||!this.layout||!A.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Tx(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Rf(this.latestValues)&&(g.transform=d?d({},""):"none",this.hasProjected=!1),g}const h=A.animationValues||A.latestValues;this.applyTransformsToTarget(),c.transform=Vye(this.projectionDeltaWithTransform,this.treeScale,h),d&&(c.transform=d(h,c.transform));const{x:m,y:b}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${b.origin*100}% 0`,A.animationValues?c.opacity=A===this?(l=(s=h.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=A===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in l1){if(h[g]===void 0)continue;const{correct:y,applyTo:v}=l1[g],x=c.transform==="none"?h[g]:y(h[g],A);if(v){const B=v.length;for(let C=0;C<B;C++)c[v[C]]=x}else c[g]=x}return this.options.layoutId&&(c.pointerEvents=A===this?Tx(o==null?void 0:o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(iM),this.root.sharedNodes.clear()}}}function Gye(e){e.updateLayout()}function Yye(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?Ks(A=>{const h=o?n.measuredBox[A]:n.layoutBox[A],m=Cs(h);h.min=r[A].min,h.max=h.min+m}):lY(a,n.layoutBox,r)&&Ks(A=>{const h=o?n.measuredBox[A]:n.layoutBox[A],m=Cs(r[A]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[A].max=e.relativeTarget[A].min+m)});const s=am();gv(s,r,n.layoutBox);const l=am();o?gv(l,e.applyTransform(i,!0),n.measuredBox):gv(l,r,n.layoutBox);const c=!iY(s);let d=!1;if(!e.resumeFrom){const A=e.getClosestProjectingParent();if(A&&!A.resumeFrom){const{snapshot:h,layout:m}=A;if(h&&m){const b=vi();yv(b,n.layoutBox,h.layoutBox);const g=vi();yv(g,r,m.layoutBox),aY(b,g)||(d=!0),A.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=A)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Xye(e){tv&&Qf.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Jye(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Zye(e){e.clearSnapshot()}function iM(e){e.clearMeasurements()}function eve(e){e.isLayoutDirty=!1}function tve(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function aM(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nve(e){e.resolveTargetDelta()}function rve(e){e.calcProjection()}
vendor: 6,638 bytes, line 584
584function ive(e){e.resetSkewAndRotation()}function ave(e){e.removeLeadSnapshot()}function oM(e,t,n){e.translate=Jr(t.translate,0,n),e.scale=Jr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sM(e,t,n,r){e.min=Jr(t.min,n.min,r),e.max=Jr(t.max,n.max,r)}function ove(e,t,n,r){sM(e.x,t.x,n.x,r),sM(e.y,t.y,n.y,r)}function sve(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const lve={duration:.45,ease:[.4,0,.1,1]},lM=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cM=lM("applewebkit/")&&!lM("chrome/")?Math.round:ws;function uM(e){e.min=cM(e.min),e.max=cM(e.max)}function cve(e){uM(e.x),uM(e.y)}function lY(e,t,n){return e==="position"||e==="preserve-aspect"&&!Aye(tM(t),tM(n),.2)}function uve(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const dve=sY({attachResizeListener:(e,t)=>Kv(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rC={current:void 0},cY=sY({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rC.current){const e=new dve({});e.mount(window),e.setOptions({layoutScroll:!0}),rC.current=e}return rC.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ave={pan:{Feature:Nye},drag:{Feature:Eye,ProjectionNode:cY,MeasureLayout:tY}};function dM(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Pr.postRender(()=>a(t,ib(t)))}class fve extends WA{mount(){const{current:t}=this.node;t&&(this.unmount=Ame(t,n=>(dM(this.node,n,"Start"),r=>dM(this.node,r,"End"))))}unmount(){}}class hve extends WA{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rb(Kv(this.node.current,"focus",()=>this.onFocus()),Kv(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function AM(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Pr.postRender(()=>a(t,ib(t)))}class pve extends WA{mount(){const{current:t}=this.node;t&&(this.unmount=mme(t,n=>(AM(this.node,n,"Start"),(r,{success:i})=>AM(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const w_=new WeakMap,iC=new WeakMap,mve=e=>{const t=w_.get(e.target);t&&t(e)},gve=e=>{e.forEach(mve)};function yve({root:e,...t}){const n=e||document;iC.has(n)||iC.set(n,{});const r=iC.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(gve,{root:e,...t})),r[i]}function vve(e,t,n){const r=yve(t);return w_.set(e,n),r.observe(e),()=>{w_.delete(e),r.unobserve(e)}}const bve={some:0,all:1};class wve extends WA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:bve[i]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:A}=this.node.getProps(),h=c?d:A;h&&h(l)};return vve(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(xve(t,n))&&this.startObserver()}unmount(){}}function xve({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sve={inView:{Feature:wve},tap:{Feature:pve},focus:{Feature:hve},hover:{Feature:fve}},Bve={layout:{ProjectionNode:cY,MeasureLayout:tY}},x_={current:null},uY={current:!1};function Cve(){if(uY.current=!0,!!j3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>x_.current=e.matches;e.addListener(t),t()}else x_.current=!1}const kve=[...FG,Ka,DA],Eve=e=>kve.find(OG(e)),fM=new WeakMap;function Nve(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Ja(i))e.addValue(r,i);else if(Ja(a))e.addValue(r,Vv(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Vv(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const hM=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Tve{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=oj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=qc.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Pr.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=uS(n),this.isVariantNode=HK(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:A,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const b=h[m];l[m]!==void 0&&Ja(b)&&b.set(l[m],!1)}}mount(t){this.current=t,fM.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 5,941 bytes, line 584
584h((n,r)=>this.bindToMotionValue(r,n)),uY.current||Cve(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:x_.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){fM.delete(this.current),this.projection&&this.projection.unmount(),LA(this.notifyUpdate),LA(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=$h.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Pr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Um){const n=Um[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):vi()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<hM.length;r++){const i=hM[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Nve(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Vv(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(PG(i)||SG(i))?i=parseFloat(i):!Eve(i)&&DA.test(n)&&(i=TG(t,n)),this.setBaseTarget(t,Ja(i)?i.get():i)),Ja(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=R3(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Ja(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ej),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class dY extends Tve{constructor(){super(...arguments),this.KeyframeResolver=LG}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ja(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function _ve(e){return window.getComputedStyle(e)}class Ive extends dY{constructor(){super(...arguments),this.type="html",this.renderInstance=XK}readValueFromInstance(t,n){if($h.has(n)){const r=aj(n);return r&&r.default||0}else{const r=_ve(t),i=(KK(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ZG(t,n)}build(t,n,r){$3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return W3(t,n,r)}}class Pve extends dY{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vi}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if($h.has(n)){const r=aj(n);return r&&r.default||0}return n=JK.has(n)?n:D3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return tG(t,n,r)}build(t,n,r){q3(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){ZK(t,n,r,i)}mount(t){this.isSVGTag=V3(t.tagName),super.mount(t)}}const jve=(e,t)=>
584U3(e)?new Pve(t):new Ive(t,{allowProjection:e!==_.Fragment}),Ove=ome({...rye,...Sve,...Ave,...Bve},jve),_e=wpe(Ove),Fve={some:0,all:1};function Lve(e,t,{root:n,margin:r,amount:i="some"}={}){const a=cG(e),o=new WeakMap,s=c=>{c.forEach(d=>{const A=o.get(d.target);if(d.isIntersecting!==!!A)if(d.isIntersecting){const h=t(d);typeof h=="function"?o.set(d.target,h):l.unobserve(d.target)}else typeof A=="function"&&(A(d),o.delete(d.target))})},l=new IntersectionObserver(s,{root:n,rootMargin:r,threshold:typeof i=="number"?i:Fve[i]});return a.forEach(c=>l.observe(c)),()=>l.disconnect()}function Dve(e,{root:t,margin:n,amount:r,once:i=!1}={}){const[a,o]=_.useState(!1);return _.useEffect(()=>{if(!e.current||i&&a)return;const s=()=>(o(!0),i?void 0:()=>o(!1)),l={root:t&&t.current||void 0,margin:n,amount:r};return Lve(e.current,s,l)},[t,e,n,i,r]),a}const Rt={logoLight:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/2219639cb_SourceworxHorizontal-Light2.png",logoDark:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/0caebd27e_SourceworxHorizontal-Dark2.png",heroSkyline:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/1c23f5e57_generated_image.png",archBuilding:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/848210d30_generated_image.png",boardroom:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/848210d30_generated_image.png",abstractGlass:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/60921814d_generated_image.png",officeLight:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/3b6126646_generated_image.png",noc:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/60921814d_generated_image.png",masande:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/c683eb58b_MasandeDyasi-ManagingDirector.png",naledi:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/ffc1e4eb3_generated_image.png",jessica:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/eea1516fb_generated_image.png",dudu:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/78c7e2639_generated_image.png",pheladi:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/06df4cf6d_generated_image.png",tshepo:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/a68667f8f_ChatGPTImageJun5202609_05_27AM.png",doctor:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/b5bfce75b_generated_image.png",nikhil:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/fbc56aa35_generated_image.png",teamGroup1:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/78ef4ec79_FromLeft-SigqiboMaliwaJessicaBuckYashvirRanjit.jpg",teamGroup2:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/38f03ce30_FromLeft-MdumiseniNyanduRonewaMaivhaKgothatsoTshilambwanaNikhilRaviKiranMudireddy.jpg",pexels2:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/523e23fc6_pexels-googledeepmind-17483873.jpg",pexels3:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/95bbe6b66_pexels-googledeepmind-17483874.jpg",pexels4:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/d275244fd_pexels-cookiecutter-17489157.jpg",pexels5:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/780dd49a0_pexels-steve-26628057.jpg",officePic1:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/f7c50f308_IMG_008421.jpg",mediaCover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/30311714a_SourceworxOfferingsYourPartnerinPerformanceV2.png",topEmpowermentBadge:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/fbe0146c3_BronzeSponsorBadge.png"},un=[{name:"Masande Dyasi",role:"Managing Director",img:Rt.masande,quote:"We built Sourceworx around the realities of this market: its regulation, its infrastructure and its pace."},{name:"Naledi Kgofelo",role:"General Manager",img:Rt.naledi,quote:"Every engagement is measured against one question: is the client performing better because of us?"}
584,{name:"Jessica Buck",role:"Lead Service Manager, Network",img:Rt.jessica,quote:"When a network goes down, clients get technical depth and clear communication within the agreed response time."},{name:"Dudu Loate",role:"HR Manager",img:Rt.dudu,quote:"Our service quality tracks our hiring standard. We staff for technical depth and client accountability."},{name:"Tshepo Kgoroba",role:"Sales Manager",img:Rt.tshepo,quote:"Clients want to know the person across the table understands their environment and owns the outcome."},{name:"Nikhil Ravi",role:"Software Development Manager",img:Rt.nikhil,quote:"We build software that removes work from the people using it, then measure it against their day-to-day."},{name:"Doctor Ngobeni",role:"Information Security Manager",img:Rt.doctor,quote:"Security is judged on evidence: controls that hold up under audit and under attack."},{name:"Pheladi Makgeru",role:"Marketing Manager",img:Rt.pheladi,quote:"Seventeen years of delivery is the proof point. We state it plainly in each sector's own language."}],pM=[{label:"Home",path:"/"},{label:"Industries",path:"#",children:[{label:"Financial Services",path:"/industries/financial-services"},{label:"Government",path:"/industries/government"},{label:"Higher & Basic Education",path:"/industries/higher-education"},{label:"Mining and Industry",path:"/industries/mining"},{label:"Special IT Projects",path:"/industries/special-projects"}]},{label:"Services",path:"/services",children:[{label:"IT Managed Services",path:"/services/it-managed"},{label:"Network Managed Services",path:"/services/network"},{label:"Managed Cybersecurity",path:"/services/cybersecurity"},{label:"Software Development",path:"/services/software-development"}]},{label:"Insights",path:"/insights"},{label:"Media",path:"/media"},{label:"Diagnostics",path:"/diagnostics"},{label:"Who We Are",path:"/about"},{label:"Contact",path:"/contact"}];function Mve(){const[e,t]=_.useState(!1),[n,r]=_.useState(!1),[i,a]=_.useState(null),o=VA(),l=["/","/campaign/network-managed-services","/campaign/cybersecurity","/campaign/it-managed-services","/campaign/software-development"].includes(o.pathname);_.useEffect(()=>{const m=()=>r(window.scrollY>40);return window.addEventListener("scroll",m),()=>window.removeEventListener("scroll",m)},[]),_.useEffect(()=>{t(!1),a(null)},[o]);const c=n||!l,d=n?"bg-white/90 backdrop-blur-xl border-b border-slate/10 shadow-sm":l?"bg-transparent":"bg-white/90 backdrop-blur-xl border-b border-slate/10",A=c?"text-midnight hover:text-azure":"text-white hover:text-sky",h=c?Rt.logoDark:Rt.logoLight;return u.jsxs(u.Fragment,{children:[u.jsx("nav",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${d}`,children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"flex items-center justify-between h-18 py-4",children:[u.jsx(Ft,{to:"/",children:u.jsx("img",{src:h,alt:"Sourceworx",className:"h-8 md:h-9 w-auto transition-all duration-500"})}),u.jsxs("div",{className:"hidden lg:flex items-center gap-6",children:[pM.map(m=>u.jsxs("div",{className:"relative",onMouseEnter:()=>m.children&&a(m.label),onMouseLeave:()=>a(null),children:[m.children?u.jsxs("button",{className:`flex items-center gap-1 text-sm font-semibold tracking-wide transition-colors ${A}`,children:[m.label," ",u.jsx(K2,{className:"w-3.5 h-3.5"})]}):u.jsx(Ft,{to:m.path,className:`text-sm font-semibold tracking-wide transition-colors ${o.pathname===m.path?"text-azure":A}`,children:m.label}),u.jsx(sl,{children:m.children&&i===m.label&&u.jsx(_e.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},className:"absolute top-full left-0 mt-2 w-52 bg-white rounded-2xl shadow-xl border border-slate/10 overflow-hidden",children:m.children.map(b=>u.jsx(Ft,{to:b.path,className:"block px-4 py-3 text-sm text-midnight hover:text-azure hover:bg-cloud font-medium transition-colors",children:b.label},b.path))})})]},m.label)),u.jsxs(Ft,{to:"/contact",className:"flex items-center gap-1.5 px-5 py-2.5 rounded-full bg-azure text-white text-sm font-bold tracking-wide hover:bg-sky transition-colors shadow-md shadow-azure/20",children:["Talk to us ",u.jsx(_n,{className:"w-3.5 h-3.5"})]})]}),u.jsx("button",{onClick:()=>t(!0),className:`lg:hidden ${c?"text-midnight":"text-white"}`,children:u.jsx(_se,{className:"w-6 h-6"})})]})})}),u.jsx(sl,{children:e&&u.jsxs(_e.div,{initial:{opacity:0}
584,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[100] bg-obsidian/97 backdrop-blur-2xl flex flex-col",children:[u.jsxs("div",{className:"flex items-center justify-between px-6 h-18 py-4",children:[u.jsx("img",{src:Rt.logoLight,alt:"Sourceworx",className:"h-8 w-auto"}),u.jsx("button",{onClick:()=>t(!1),className:"text-white/70 hover:text-white",children:u.jsx(dd,{className:"w-6 h-6"})})]}),u.jsx("div",{className:"flex-1 overflow-y-auto py-8 px-8 space-y-2",children:pM.map((m,b)=>u.jsx(_e.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:b*.07},children:m.children?u.jsxs("div",{children:[u.jsx("p",{className:"text-white/40 text-xs uppercase tracking-widest mb-2 mt-4",children:m.label}),m.children.map(g=>u.jsx(Ft,{to:g.path,className:"block py-2 text-lg font-bold text-white hover:text-sky transition-colors",children:g.label},g.path))]}):u.jsx(Ft,{to:m.path,className:"block py-3 text-2xl font-bold text-white hover:text-sky transition-colors",children:m.label})},m.label))})]})})]})}function Uve(){return u.jsx("footer",{className:"bg-obsidian text-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8 pt-20 pb-10",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-10 lg:gap-8",children:[u.jsxs("div",{className:"lg:col-span-2",children:[u.jsx("img",{src:Rt.logoLight,alt:"Sourceworx",className:"h-8 w-auto mb-5"}),u.jsx("p",{className:"text-white/50 text-sm leading-relaxed max-w-xs",children:"Your Partner in Performance. We are the partner that makes technology deliver on its promise — reliably, accountably and built for the realities of Africa."}),u.jsx("div",{className:"flex flex-wrap gap-2 mt-6",children:["ISO 9001","ISO 27001","ISO 20000","Level 1 B-BBEE","ICASA"].map(e=>u.jsx("span",{className:"text-[11px] font-semibold text-sky/70 border border-sky/20 rounded-full px-3 py-1",children:e},e))})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-[11px] font-bold text-white/30 tracking-widest uppercase mb-5",children:"Industries"}),u.jsx("ul",{className:"space-y-2.5",children:[["Financial Services","/industries/financial-services"],["Government","/industries/government"],["Higher & Basic Education","/industries/higher-education"],["Mining","/industries/mining"],["Special Projects","/industries/special-projects"]].map(([e,t])=>u.jsx("li",{children:u.jsx(Ft,{to:t,className:"text-sm text-white/55 hover:text-white transition-colors",children:e})},t))})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-[11px] font-bold text-white/30 tracking-widest uppercase mb-5",children:"Services"}),u.jsx("ul",{className:"space-y-2.5",children:[["IT Managed Services","/services/it-managed"],["Network Services","/services/network"],["Cybersecurity","/services/cybersecurity"],["Software Dev","/services/software-development"],["Insights","/insights"],["Media","/media"],["Diagnostics","/diagnostics"]].map(([e,t])=>u.jsx("li",{children:u.jsx(Ft,{to:t,className:"text-sm text-white/55 hover:text-white transition-colors",children:e})},t))})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"text-[11px] font-bold text-white/30 tracking-widest uppercase mb-5",children:"Contact"}),u.jsxs("ul",{className:"space-y-3.5",children:[u.jsxs("li",{className:"flex items-start gap-2.5",children:[u.jsx(c3,{className:"w-4 h-4 text-azure mt-0.5 flex-shrink-0"}),u.jsx("span",{className:"text-sm text-white/55",children:"1st Floor, Investment Place, 10th Road, Hyde Park, Johannesburg"})]}),u.jsxs("li",{className:"flex items-center gap-2.5",children:[u.jsx(Y2,{className:"w-4 h-4 text-azure flex-shrink-0"}),u.jsx("a",{href:"mailto:[email protected]",className:"text-sm text-white/55 hover:text-white transition-colors",children:"[email protected]"})]}),u.jsxs("li",{className:"flex items-center gap-2.5",children:[u.jsx(wh,{className:"w-4 h-4 text-azure flex-shrink-0"}),u.jsx("span",{className:"text-sm text-white/55",children:"sourceworx.co.za"})]})]})]})]}),u.jsxs("div",{className:"border-t border-white/8 mt-16 pt-8 flex flex-col md:flex-row items-center justify-between gap-4",children:[u.jsxs("p",{className:"text-xs text-white/25",children:["© ",new Date().getFullYear()," Sourceworx (Pty) Ltd. All rights reserved."]}),u.jsxs("div",{className:"flex items-center gap-6",children:[u.jsx(Ft,{to:"/privacy",className:"text-xs text-white/25 hover:text-white/50 transition-colors",children:"Privacy Notice"}),u.jsx(Ft,{to:"/sitemap",className:"text-xs text-white/25 hover:text-white/50 transition-colors",children:"Sitemap"}),u.jsx("span",{className:"text-xs text-white/25",children:"POPIA Compliant"})]})]})]})})}const aC="sw_cookie_consent";function Rve(){const[e,t]=_.useState(!1),[n,r]=_.useState(!1);_.useEffect(()=>{if(!localStorage.getItem(aC)){const s=setTimeout(()=>t(!0),1200);return()=>clearTimeout(s)}},[]);const i=()=>{localStorage.setItem(aC,JSON.stringify({analytics:!0,timestamp:Date.now()})),t(!1)},a=()=>{localStorage.setItem(aC,JSON.stringify({analytics:!1,timestamp:Date.now()})),t(!1)};return u.jsx(sl,{children:e&&u.jsx(_e.div,{initial:{y:100,opacity:0}
584,animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:"spring",damping:28,stiffness:200},className:"fixed bottom-4 left-4 right-4 md:left-auto md:right-6 md:bottom-6 md:max-w-md z-50",children:u.jsx("div",{className:"bg-midnight text-white rounded-2xl shadow-2xl border border-white/10 overflow-hidden",children:u.jsxs("div",{className:"p-5",children:[u.jsxs("div",{className:"flex items-start gap-3 mb-3",children:[u.jsx(qoe,{className:"w-5 h-5 text-azure mt-0.5 flex-shrink-0"}),u.jsxs("div",{className:"flex-1",children:[u.jsx("p",{className:"font-semibold text-sm text-white",children:"We use cookies"}),u.jsxs("p",{className:"text-white/60 text-xs mt-1 leading-relaxed",children:["We use analytics cookies to understand how visitors use our site. No personal data is sold or shared with advertisers."," ",u.jsx(Ft,{to:"/privacy#cookies",className:"text-azure underline underline-offset-2",children:"Learn more"}),"."]})]}),u.jsx("button",{onClick:a,className:"text-white/40 hover:text-white transition-colors flex-shrink-0",children:u.jsx(dd,{className:"w-4 h-4"})})]}),n&&u.jsxs("div",{className:"mb-3 rounded-xl bg-white/5 border border-white/8 p-3 space-y-2 text-xs text-white/70",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("span",{className:"font-medium text-white",children:"Essential cookies"}),u.jsx("span",{className:"text-azure text-xs",children:"Always active"})]}),u.jsx("p",{children:"Required for basic site functionality. Cannot be disabled."}),u.jsxs("div",{className:"border-t border-white/10 pt-2 flex justify-between items-center",children:[u.jsx("span",{className:"font-medium text-white",children:"Analytics cookies"}),u.jsx("span",{className:"text-white/50 text-xs",children:"Google Analytics"})]}),u.jsx("p",{children:"Help us understand how visitors use our website so we can improve it. Data is aggregated and anonymised."})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:i,className:"flex-1 bg-azure hover:bg-sky text-white text-xs font-semibold py-2.5 px-4 rounded-xl transition-colors",children:"Accept all"}),u.jsx("button",{onClick:a,className:"flex-1 bg-white/10 hover:bg-white/15 text-white text-xs font-medium py-2.5 px-4 rounded-xl transition-colors",children:"Decline analytics"}),u.jsx("button",{onClick:()=>r(!n),className:"text-white/50 hover:text-white text-xs py-2.5 px-3 rounded-xl transition-colors whitespace-nowrap",children:n?"Less":"Details"})]})]})})})})}const mM="sw_session_id",Qve="sw_cookie_consent";function AY(){let e=sessionStorage.getItem(mM);return e||(e="s_"+Date.now().toString(36)+"_"+Math.random().toString(36).slice(2,8),sessionStorage.setItem(mM,e)),e}function Hve(){try{const e=localStorage.getItem(Qve);return e?JSON.parse(e).analytics===!0:!1}catch{return!1}}function Px(e){if(!e||e==="/")return"Home";const t=e.replace(/^\//,"").replace(/\/$/,"").split("/");return(t[t.length-1]||"Home").replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function _p(e,t,n={}){if(!Hve())return;const r=n.page_url||window.location.pathname,i={event_type:e,event_name:t,page_url:r,page_name:n.page_name||Px(r),session_id:AY(),referrer:document.referrer||"",...n};mr.analytics.track({eventName:t,properties:i}),mr.entities.SiteEvent.create(i).catch(()=>{})}function $ve(){const{pathname:e}=VA(),t=_.useRef(Date.now()),n=_.useRef(0),r=_.useRef(null);_.useEffect(()=>{r.current!==null&&_p("engagement","page_engagement",{time_on_page:Math.round((Date.now()-t.current)/1e3),scroll_depth:Math.round(n.current),page_url:r.current,page_name:Px(r.current)}),t.current=Date.now(),n.current=0,r.current=e,_p("page_view","page_view")},[e]),_.useEffect(()=>{const i=()=>{const a=document.documentElement.scrollHeight-window.innerHeight;if(a>0){const o=window.scrollY/a*100;o>n.current&&(n.current=o)}};return window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]),_.useEffect(()=>{const i=a=>{const o=a.target.closest('button, a, [role="button"]');if(!o)return;const s=(o.textContent||"").trim().slice(0,80)||"(icon)",l=o.getAttribute("href")||"",c=o.tagName.toLowerCase();let d=c==="a"?"link":"button";c==="a"&&l.startsWith("http")&&!l.includes(window.location.hostname)&&(d="link_external");const A=typeof o.className=="string"?o.className:"";/bg-azure|bg-primary|bg-sky/i.test(A)&&(d+="_primary");const h=document.documentElement.scrollWidth||1,m=document.documentElement.scrollHeight||1;_p("click","element_click",{element_text:s,element_type:d,click_x:Math.min(100,Math.max(0,Math.round(a.pageX/h*100))),click_y:Math.min(100,Math.max(0,Math.round(a.pageY/m*100)))})};return document.addEventListener("click",i,!0),()=>document.removeEventListener("click",i,!0)},[]),_.useEffect(()=>{const i=new Set,a=l=>l.dataset.formName?l.dataset.formName:Px(window.location.pathname),o=l=>{const c=l.target.closest("form");if(!c)return;const d=a(c),A=d+"_"+AY();i.has(A)||(i.add(A),_p("form_start","form_start",{element_text:d,element_type:"form"}))},s=l=>{const c=l.target;_p("form_complete","form_complete",{element_text:a(c),element_type:"form"})};return document.addEventListener("focusin",o,!0),document.addEventListener("submit",s,!0),()=>{document.removeEventListener("focusin",o,!0),document.removeEventListener("submit",s,!0)}},[]),_.useEffect(()=>{const i=()=>{_p("engagement","page_engagement",{time_on_page:Math.round((Date.now()-t.current)/1e3),scroll_depth:Math.round(n.current),page_url:r.current||window.location.pathname,page_name:Px(r.current||window.location.pathname)})},a=()=>{document.visibilityState==="hidden"&&i()};return window.addEventListener("pagehide",i),document.addEventListener("visibilitychange",a),()=>{window.removeEventListener("pagehide",i),document.removeEventListener("visibilitychange",a)}},[])}const gM={"structured-cabling-south-africa-small-business":{title:"Structured Cabling for South African Small Businesses | Cat6 and Molex Standards",de
584scription:"What structured cabling consists of, how Cat6 differs from Cat5e, and why most South African small offices run infrastructure designed in the 1990s. Covers TIA/EIA-568 and ISO/IEC 11801 subsystems, Molex installation standards, test reports and as-built documentation."},"cost-of-poor-office-connectivity-south-africa":{title:"The Cost of Poor Office Connectivity in South Africa | Productivity Calculation",description:"How to calculate what unreliable office networking costs your business each year, with worked figures for South African teams, the three most common causes of connectivity productivity loss and what a Cat6 installation costs against them."},"preventative-network-maintenance-south-africa":{title:"Preventative Network Maintenance South Africa | Quarterly Inspection Programme",description:"Why reactive network support costs more than scheduled maintenance. Covers what deteriorates in cabling and patch panels, load-shedding surge damage to switches, and the four categories of work in a quarterly or biannual maintenance visit."},"office-network-planning-new-premises-south-africa":{title:"Office Network Planning for New Premises | South African Move-In Checklist",description:"Network infrastructure planning should start eight to twelve weeks before an office move. Covers the cabling timeline, the questions to ask a fit-out contractor, Cat6 point counts per workstation, wireless survey placement and comms cabinet UPS provision."},"power-bi-south-african-small-business-reporting":{title:"Power BI for South African SMEs | Automated Management Accounts in Six Weeks",description:"How Power BI replaces manually rebuilt Excel management accounts, including licence costs in South African rand, connections to Sage, Xero and QuickBooks, and a week-by-week view of a realistic four-to-six-week implementation."},"power-apps-south-africa-what-can-it-do":{title:"Power Apps Explained for South African Businesses | Uses, Limits and Licensing",description:"What Microsoft Power Apps can and cannot do: canvas versus model-driven apps, more than 900 data connectors, strong use cases such as inspection forms, leave tracking and job cards, where it is the wrong tool, and South African licence pricing."},"process-automation-south-africa-professional-services":{title:"Power Automate for South African Professional Services | Where to Start",description:"Which processes to automate first and what a Power Automate engagement delivers, with FICA client onboarding as a worked example. Covers triggers, conditions and actions across more than 1,000 connectors and the hours recovered per workflow."},"data-standardisation-south-africa-analytics-readiness":{title:"Data Standardisation for Analytics | Preparing South African SME Data for Power BI",description:"Why more than half of Power BI projects need data standardisation first. Covers inconsistent naming, DD/MM/YYYY date conflicts, currency formatting, chart of accounts changes and missing reference data, plus what a one-to-two-week data audit produces."},"popia-section-22-data-breach-notification-south-africa":{title:"POPIA Section 22 Breach Notification | What South African Businesses Must Do",description:"The POPIA Section 22 obligation in practice: notifying the Information Regulator and affected data subjects, the Section 19 technical and organisational measures that precede it, and the fines of up to R10 million under Section 107."},"sarb-cyber-resilience-framework-mid-tier-banks":{title:"SARB Cyber Resilience Framework | Practical Guide for Mid-Tier South African Banks",description:"The SARB cyber resilience requirements mapped to the NIST functions Identify, Protect, Detect, Respond and Recover, where the evidence trail typically fails at assessment, and how a managed SOC satisfies the continuous monitoring requirement."},"fsca-cpd-evidence-management-south-africa":{title:"FSCA CPD Evidence Management | Automating FAIS Compliance Records",description:"The six-hour annual CPD requirement under the FAIS Act and FSCA Guidance Note 7 of 2018, why spreadsheet tracking fails at scale, and what an automated LMS, live compliance dashboard and reminder workflow replace."},"mfma-section-72-automation-south-african-municipalities":{title:"MFMA Section 72 Automation for Municipalities | Mid-Year Assessment Reporting",description:"Why South African municipalities still compile the MFMA Section 72 mid-year budget and performance assessment manually before the 25 January deadline, where the data architecture breaks, and how FiscalFocus generates the Treasury-format output."},"ag-it-audit-findings-local-government-south-africa":{title:"AGSA IT Audit Findings in Local Government | Causes and Sustainable Fixes",description:"The IT general control findings that repeat in AGSA local government audits: access management, programme change management, backup and recovery testing and IT security. Why they persist and the joiner, mover and leaver processes that resolve them."},"ot-it-convergence-cybersecurity-south-africa-mining":{title:"OT/IT Convergence Cybersecurity in South African Mining | Risk and Architecture",description:"Why SCADA, PLC and DCS environments carry a different threat profile to corporate IT, how ransomware moves laterally into production and safety systems, and what the ISA/IEC 62443 zones and conduits architecture requires."},"remote-mine-site-it-management-south-africa":{title:"Remote Mine Site IT Management | Monitoring, Patching and Guided Support",description:"IT faults at remote South African mine sites can take 24 to 48 hours to resolve on site. Covers continuous monitoring, remote diagnosis, patch management, automated response and RealWear hands-free expert support for physical interventions."},"seta-evidence-management-south-africa-technology":{title:"SETA Evidence Management | Automating Learner Portfolios and Grant Claims",description:"What SETA moderation evidence requires across enrolment, demographic, formative, summative and facilitator observation records, why manual management fails at scale, and how an LMS built for NQF and QCTO 
584compliance generates the package."},"tvet-campus-network-design-south-africa-assessments":{title:"TVET Campus Network Design | Reliable Connectivity During Online Assessments",description:"What online assessment delivery requires from a campus network: 2 to 4 Mbps per student, Wi-Fi 6 OFDMA for high-density venues, 802.1X access control against a RADIUS server, and UPS capacity sized to the full assessment session."},"south-africa-it-services-market-2025-growth-opportunities":{title:"South Africa's IT Services Market in 2025 | Growth Sectors and Supply Gaps",description:"A practitioner view of a R120 billion market growing at 9.1% annually: where demand is concentrated across financial services, government modernisation and mining technology, and which organisations remain underserved."},"sarb-cyber-resilience-guide":{title:"SARB Directive 1 of 2018 Whitepaper | Cyber Resilience for Banks and Insurers",description:"A section-by-section guide to SARB Directive 1 of 2018 covering governance and accountability, asset identification and classification, protection controls, detection capability, and a phased implementation roadmap for mid-tier institutions."},"popia-compliance-framework":{title:"POPIA Compliance for Technology Operations | Whitepaper | Sourceworx",description:"What the Information Regulator asks for during an investigation: access logs, encryption configuration, retention schedules and incident records. Covers Section 22 notification timelines and the responsible party and operator distinction."},"edvantage-seta-whitepaper":{title:"Automating SETA Evidence Assembly | EDVantage on Microsoft Teams Whitepaper",description:"How training providers eliminate manual SETA mandatory grant evidence assembly, including automatic attendance and assessment capture, B-BBEE Element 6 demographic reporting and delivery on existing Microsoft Teams infrastructure."},"ot-it-convergence-mining":{title:"OT/IT Convergence Security in Mining | Industrial DMZ Whitepaper",description:"Architecting secure boundaries between operational technology and corporate IT in mining: the industrial DMZ, deep packet inspection for Modbus, DNP3 and IEC 61850, and a five-phase implementation from asset discovery to SOC extension."}},yM={"ksd-microsoft-365":{title:"Microsoft 365 Migration Case Study | KSD Local Municipality | Sourceworx",description:"Appointed by Microsoft under a Statement of Work in 2019, Sourceworx migrated approximately 150 mailboxes from on-premises Exchange to Exchange Online and rolled out Microsoft Teams to approximately 300 users across King Sabata Dalindyebo Local Municipality, including tenant readiness, governance planning and post-go-live adoption support."},"sporting-federation-forensics":{title:"Digital Forensics Case Study | National Sporting Federation Investigation",description:"Independent mobile device and Office 365 mailbox forensics conducted for a national sporting federation between 2016 and 2018, commissioned by executive leadership and internal audit, with cryptographic hashing, documented chain of custody and defensible written reporting."}},qve="https://sourceworx.co.za",zve={title:"Managed IT Services and IT Consulting in South Africa | Sourceworx",description:"Sourceworx delivers managed IT, managed cybersecurity, network managed services and custom software development to South African enterprises. Operating since 2009 with 70-plus specialists, ISO 9001, ISO 27001 and ISO 20000 certification, Level 1 B-BBEE status, a 24-hour NOC and SOC and field coverage in all nine provinces."},vM={"/":{title:"Managed IT Services, Cybersecurity and Software Development in South Africa | Sourceworx",description:"Managed IT, managed cybersecurity, network managed services and bespoke software delivered under formal service level agreements. Sourceworx has operated since 2009, holds ISO 9001, ISO 27001 and ISO 20000 certification and Level 1 B-BBEE status, and runs a 24-hour NOC and SOC from Johannesburg."},"/about":{title:"About Sourceworx | ISO Certified, Level 1 B-BBEE IT Partner Since 2009",description:"Sourceworx was founded in South Africa in 2009 and employs more than 70 technical specialists. The company holds ISO 9001, ISO 27001 and ISO 20000 certification, Level 1 B-BBEE status and Microsoft partner accreditation, and serves financial services, government, higher education and mining."},"/services":{title:"IT Services: Managed IT, Network, Cybersecurity and Software | Sourceworx",description:"Four service lines under one accountable service level agreement: IT managed services, network managed services, managed cybersecurity and in-house software development. Gold, Silver and Bronze SLA tiers with named response times and 24-hour monitoring."},"/services/it-managed":{title:"IT Managed Services South Africa | Desktop, Server, Cloud and M365 Supp
584ort",description:"End-to-end IT managed services covering endpoints, servers, cloud workloads and Microsoft 365, with 24-hour service desk support under a formal SLA. ISO 20000 aligned service management, ISO 27001 certified security controls and technicians deployable in all nine provinces."},"/services/network":{title:"Network Managed Services South Africa | Design, Monitoring and 24-Hour NOC",description:"Network design, monitoring and management from a 24-hour Network Operations Centre, with Gold, Silver and Bronze SLA tiers. Covers LAN, WAN, SD-WAN, wireless and branch connectivity for banks, municipalities, campuses and mining operations."},"/services/cybersecurity":{title:"Managed Cybersecurity South Africa | Microsoft Sentinel SOC, VAPT and POPIA",description:"Managed cybersecurity built on Microsoft Sentinel, including 24-hour SOC monitoring, vulnerability assessment and penetration testing, incident response and POPIA compliance consulting. ISO 27001 certified, with digital forensics capability for fraud and misconduct investigations."},"/services/software-development":{title:"Custom Software Development South Africa | In-House Team, Local Compliance",description:"Bespoke applications, systems integration, automation and legacy modernisation built by an in-house South African development team. POPIA, MFMA, SETA and B-BBEE reporting requirements are designed into the build rather than retrofitted."},"/industries/financial-services":{title:"IT Services for Banks and Insurers in South Africa | SARB and POPIA Aligned",description:"Managed IT, network and cybersecurity services for banks, insurers and financial services providers answerable to the Prudential Authority, the FSCA and POPIA. Includes branch network management, 24-hour SOC monitoring and audit-ready evidence."},"/industries/government":{title:"IT Services for Municipalities and Government | MFMA and AGSA Ready",description:"Managed IT, cybersecurity and software for municipalities and public entities reporting under the MFMA and to the Auditor-General. Includes Microsoft 365 migration, records management and MFMA Section 72 and Section 87 budget assessment automation."},"/industries/higher-education":{title:"IT Services for Universities, TVET Colleges and Schools in South Africa",description:"Managed IT, campus network and cybersecurity services for universities, TVET colleges and schools, plus EDVantage for SETA compliance, NQF-aligned assessment and B-BBEE skills development evidence."},"/industries/mining":{title:"IT and OT Services for Mining and Industry in South Africa | Sourceworx",description:"Managed IT, remote site connectivity and OT and IT convergence for mining and industrial operations governed by the Mine Health and Safety Act. Includes RealWear hands-free remote expert support and 24-hour monitoring of production-critical systems."},"/industries/special-projects":{title:"Special IT Projects South Africa | Single Accountable Delivery Partner",description:"Scoped IT projects delivered end to end by one accountable partner: migrations, infrastru
584cture rollouts, data centre moves, forensic investigations and system implementations, with defined milestones and handover documentation."},"/diagnostics":{title:"Free IT, Cybersecurity and Compliance Diagnostics | Sourceworx",description:"Five short self-assessments covering IT maturity, cybersecurity posture, network readiness, software and automation, and compliance. Each returns a scored result and a written view of the gaps in your environment."},"/insights":{title:"IT Insights, Whitepapers and Case Studies for South African Organisations",description:"Articles, whitepapers and case studies on managed IT, cybersecurity, POPIA, SARB cyber resilience, SETA compliance and OT and IT convergence, written by the Sourceworx specialists who do the work."},"/insights/case-studies":{title:"IT Case Studies South Africa | Documented Client Engagements | Sourceworx",description:"Client engagements recorded in full, including a Microsoft 365 migration for a local municipality and independent digital forensic investigations for a national federation. Scope, method and outcome in each client context."},"/media":{title:"Sourceworx in the Media | Interviews, Press Coverage and Commentary",description:"Broadcast and podcast interviews with the Sourceworx Managing Director, coverage in Leadership Magazine and ITWeb, and commentary on artificial intelligence, cybersecurity and technology delivery in South Africa."},"/contact":{title:"Contact Sourceworx | Managed IT and Cybersecurity, Johannesburg",description:"Speak to the Sourceworx team about managed IT, network, cybersecurity or software requirements. Offices in Hyde Park, Johannesburg, with technical coverage in all nine provinces and a written response within one business day."},"/privacy":{title:"Privacy Notice and POPIA Compliance | Sourceworx",description:"How Sourceworx collects, processes and retains personal information in terms of the Protection of Personal Information Act, including data subject rights and information officer contact details."},"/sitemap":{title:"Sitemap | Sourceworx",description:"Full index of Sourceworx pages, covering service lines, industry sectors, diagnostics, insights, case studies and campaigns."},"/campaign/network-managed-services":{title:"Network Managed Services | Gold, Silver and Bronze SLA Tiers | Sourceworx",description:"Network monitoring and management from a 24-hour NOC, with three SLA tiers and named response times. Request a network assessment of your current environment."},"/campaign/cybersecurity":{title:"Managed Cybersecurity and SOC Services South Africa | Sourceworx",description:"Microsoft Sentinel-based SOC monitoring, VAPT, incident response and POPIA compliance consulting, ISO 27001 certified. Request a cybersecurity posture assessment."},"/campaign/it-managed-services":{title:"IT Managed Services and 24-Hour Support South Africa | Sourceworx",description:"Managed endpoints, servers, cloud and Microsoft 365 with 24-hour service desk support under a formal SLA. Request an IT environment assessment."},"/campaign/software-development":{title:"Custom Software Development and Automation South Africa | Sourceworx",description:"In-house South African development team building bespoke applications, integrations and automation with local regulatory requirements designed in. Request a software scoping session."}};function Vve(e){const t=e.length>1?e.replace(/\/$/,""):e;if(vM[t])return vM[t];const n=t.match(/^\/insights\/case-studies\/(.+)$/);if(n&&yM[n[1]])return yM[n[1]];const r=t.match(/^\/insights\/([^/]+)$/);return r&&gM[r[1]]?gM[r[1]]:zve}function Ip(e,t,n,r){let i=document.head.querySelector(e);i||(i=document.createElement("meta"),i.setAttribute(t,n),document.head.appendChild(i)),i.setAttribute("content",r)}function Wve(){const{pathname:e}=VA();_.useEffect(()=>{const{title:t,description:n}=Vve(e),r=`${qve}${e==="/"?"/":e}`;document.title=t,Ip('meta[name="description"]',"name","description",n),Ip('meta[property="og:title"]',"property","og:title",t),Ip('meta[property="og:description"]',"property","og:description",n),Ip('meta[property="og:url"]',"property","og:url",r),Ip('meta[name="twitter:title"]',"name","twitter:title",t),Ip('meta[name="twitter:description"]',"name","twitter:description",n);let i=document.head.querySelector('link[rel="canonical"]');i||(i=document.createElement("link"),i.setAttribute("rel","canonical"),document.head.appendChild(i)),i.setAttribute("href",r)},[e])}function Kve(){const{pathname:e}=VA();return $ve(),Wve(),_.useEffect(()=>{window.scrollTo(0,0)},[e]),u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Mve,{}),u.jsx("main",{children:u.jsx(Wue,{})}),u.jsx(Uve,{}),u.jsx(Rve,{})]})}function uj({source:e,service:t}={}){mr.analytics.track({eventName:"contact_cta_clicked",properties:{source:e,service:t}}),mr.entities.CtaEvent.create({event_name:"contact_cta_clicked",source:e||"unknown",service:t||""}).catch(()=>{})}function dr({label:e,title:t,description:n,align:r="left",dark:i=!1}){return u.jsxs(_e.div,{initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.6},className:`max-w-3xl ${r==="center"?"mx-auto text-center":""}`,children:[e&&u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-azure mb-3 block",children:e}),u.jsx("h2",{className:`text-xl font-normal tracking-tight leading-tight md:text-4xl lg:text-5xl ${i?"text-white":"text-midnight"}`,children:t}),n&&u.jsx("p",{className:`mt-3 text-base lg:text-lg leading-snug ${i?"text-white/60":"text-slate"}`,children:n})]})}function Vl({children:e,className:t="",dark:n=!1,float:r=!1,hover:i=!0}
584){return u.jsx(_e.div,{whileHover:i?{y:-5,boxShadow:"0 20px 60px rgba(0,155,223,0.12)"}:{},transition:{duration:.35,ease:"easeOut"},className:`${n?"glass-card-dark":"glass-card"} rounded-2xl p-6 lg:p-8 transition-all duration-400 ${r?"glass-float":""} ${t}`,children:e})}function ec({heading:e,sub:t,cta:n="Talk to our team",href:r="/contact",img:i,trackSource:a}){return u.jsxs("section",{className:"relative py-20 lg:py-28 overflow-hidden",children:[i&&u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:i,alt:"",className:"w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-midnight via-midnight/90 to-midnight/75"}),u.jsx("div",{className:"absolute inset-0 bg-midnight/40"})]}),!i&&u.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-midnight via-azure/80 to-sky/60"}),u.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-azure/10 rounded-full blur-3xl -translate-y-1/2 translate-x-1/3 pointer-events-none"}),u.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-sky/10 rounded-full blur-3xl translate-y-1/2 -translate-x-1/3 pointer-events-none"}),u.jsx("div",{className:"relative max-w-4xl mx-auto px-6 lg:px-8 text-center",children:u.jsxs(_e.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[u.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-heading font-extrabold text-white tracking-tight leading-tight",children:e}),t&&u.jsx("p",{className:"mt-3.5 text-lg text-white/60 max-w-2xl mx-auto leading-snug",children:t}),r.startsWith("http")?u.jsxs("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 mt-8 px-9 py-4 rounded-full bg-white text-azure font-bold text-sm tracking-wide hover:bg-frost hover:scale-105 transition-all duration-300 shadow-xl shadow-black/20",children:[n," ",u.jsx(_n,{className:"w-4 h-4"})]}):u.jsxs(Ft,{to:r,onClick:()=>r==="/contact"&&uj({source:a||"cta_strip"}),className:"inline-flex items-center gap-2 mt-8 px-9 py-4 rounded-full bg-white text-azure font-bold text-sm tracking-wide hover:bg-frost hover:scale-105 transition-all duration-300 shadow-xl shadow-black/20",children:[n," ",u.jsx(_n,{className:"w-4 h-4"})]})]})})]})}function ab({quote:e,name:t,role:n,img:r,dark:i=!1}){return u.jsxs(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:`relative rounded-2xl p-8 lg:p-10 ${i?"bg-white/5 border border-white/8":"bg-cloud border border-slate/10"}`,children:[u.jsx("div",{className:`text-5xl font-serif leading-none mb-4 ${i?"text-azure/30":"text-azure/20"}`,children:'"'}),u.jsx("blockquote",{className:`text-base lg:text-lg leading-relaxed italic ${i?"text-white/75":"text-slate"}`,children:e}),u.jsxs("div",{className:"flex items-center gap-4 mt-6",children:[r&&u.jsx("img",{src:r,alt:t,className:"w-12 h-12 rounded-full object-cover object-top border-2 border-azure/30"}),u.jsxs("div",{children:[u.jsx("p",{className:`font-bold text-sm ${i?"text-white":"text-midnight"}`,children:t}),u.jsx("p",{className:"text-xs text-azure",children:n})]})]})]})}const Gve="https://media.base44.com/images/public/69e5fadb62865073c43a0307/8bde41801_MicrosoftCloudAIPlatformSolutionsPartner2.png",Yve=["Digital and App Innovation (Azure)","Infrastructure (Azure)","Data and AI (Azure)"];function fY({to:e}){const t=u.jsxs(u.Fragment,{children:[u.jsx("img",{src:Gve,alt:"Microsoft Solutions Partner — Data and AI, Azure. Specialist: AI Platform on Microsoft Azure",className:"w-24 shrink-0 bg-white rounded-md p-1.5 object-contain"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("p",{className:"text-xs font-heading font-bold text-white leading-snug",children:"A designated Microsoft Solutions Partner."}),u.jsx("ul",{className:"mt-2 flex flex-wrap gap-x-4 gap-y-1",children:Yve.map(r=>u.jsxs("li",{className:"flex items-center gap-1.5",children:[u.jsx(qV,{className:"w-3 h-3 text-azure shrink-0"}),u.jsx("span",{className:"text-[11px] text-white/60 leading-snug",children:r})]},r))})]})]}),n="glass-card-dark rounded-xl px-5 py-3.5 w-full lg:max-w-2xl flex items-center gap-5";return u.jsx(_e.div,{initial:{opacity:0,y:20}
584,animate:{opacity:1,y:0},transition:{duration:.7,delay:.2},children:e?u.jsx(Ft,{to:e,className:`${n} hover:border-azure/40 transition-colors`,children:t}):u.jsx("div",{className:n,children:t})})}const Xve=["ISO 9001","ISO 27001","ISO 20000","Level 1 B-BBEE","24-hour NOC and SOC"];function Jve({image:e}){return u.jsxs("section",{className:"relative overflow-hidden bg-obsidian",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:e,alt:"",className:"w-full h-full object-cover opacity-65"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-obsidian/90 via-obsidian/65 to-midnight/20"})]}),u.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6 lg:px-8 pt-32 pb-20 lg:pt-40 lg:pb-28 flex flex-col lg:flex-row lg:items-center gap-12",children:[u.jsxs(_e.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.7},className:"max-w-3xl",children:[u.jsx("span",{className:"text-[11px] font-semibold tracking-[0.18em] uppercase text-sky/80",children:"Managed IT, Cybersecurity, Network and Software Consulting"}),u.jsx("h1",{className:"mt-6 text-4xl md:text-5xl lg:text-[3.2rem] font-heading font-bold tracking-tight leading-[1.06] text-white max-w-2xl",children:"Technology that performs, so your organisation runs with less effort."}),u.jsx("p",{className:"mt-3.5 text-base lg:text-lg text-white/65 leading-snug max-w-xl",children:"Seventeen years, 70-plus specialists, a 24-hour NOC and SOC and field coverage in all nine provinces."}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-3.5 mt-10",children:[u.jsxs(Ft,{to:"/contact",onClick:()=>uj({source:"home_hero"}),className:"inline-flex items-center justify-center gap-2 px-7 py-3.5 rounded-md bg-azure text-white font-semibold text-sm tracking-wide hover:bg-sky transition-colors",children:["Speak to a specialist ",u.jsx(_n,{className:"w-4 h-4"})]}),u.jsx(Ft,{to:"/services",className:"inline-flex items-center justify-center gap-2 px-7 py-3.5 rounded-md border border-white/20 text-white font-semibold text-sm tracking-wide hover:bg-white/10 transition-colors",children:"Review our services"})]}),u.jsx("div",{className:"flex flex-wrap items-center gap-3 mt-14 pt-8 border-t border-white/10",children:Xve.map((t,n)=>u.jsx("span",{className:"glass-card-dark rounded-full px-5 py-2.5 text-xs font-semibold uppercase tracking-[0.12em] text-white/85 shadow-lg shadow-black/25 hover:text-white hover:border-azure/40 transition-colors",children:t},t))})]}),u.jsx("div",{className:"lg:shrink-0 lg:self-end lg:mb-4",children:u.jsx(fY,{to:"/services/software-development"})})]})]})}function Zve(){return u.jsx("section",{className:"py-24 lg:py-32 bg-midnight overflow-hidden",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-14 items-center",children:[u.jsx(_e.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:u.jsx("img",{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/4bb2edcc6_SourceworxOfferingsYourPartnerinPerformanceV2.png",alt:"Sourceworx team",className:"rounded-2xl w-full object-cover shadow-xl h-72 lg:h-[420px]"})}),u.jsxs(_e.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"space-y-6",children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-sky block",children:"Join the team"}),u.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-heading font-extrabold text-white leading-tight",children:"Built by people who care about getting it right."}),u.jsx("p",{className:"text-white/60 leading-relaxed text-lg",children:"We are 70-plus technical specialists operating across South Africa. We hire people who take quality personally — engineers, analysts, service managers and software developers who want to work on real problems for clients who depend on them."}),u.jsx("p",{className:"text-white/60 leading-relaxed",children:"If that sounds like you, we would like to hear from you."}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 pt-2",children:[u.jsxs("a",{href:"https://sourceworx.breezy.hr/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full bg-azure text-white font-bold text-sm hover:bg-sky transition-colors shadow-xl shadow-azure/30",children:["View open roles ",u.jsx(_n,{className:"w-4 h-4"})]}),u.jsxs(Ft,{to:"/about",className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full border-2 border-white/20 text-white font-bold text-sm hover:bg-white/10 transition-colors",children:[u.jsx(FA,{className:"w-4 h-4"})," Meet the team"]})]})]})]})})})}
584const Xf={article:{label:"Article",color:"bg-azure/10 text-azure",dot:"bg-azure"},whitepaper:{label:"Whitepaper",color:"bg-indigo-50 text-indigo-600",dot:"bg-indigo-500"}},Qm={"Nikhil Ravi":{name:"Nikhil Ravi",role:"Senior Software Developer, Sourceworx",bio:"Nikhil specialises in Microsoft Power Platform, custom software development and data analytics for South African professional services and financial services businesses.",image:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/b345511b2_NikhilRavi.jpg"},"Noxolo Biyela":{name:"Noxolo Biyela",role:"Power Automate Developer, Sourceworx",bio:"Noxolo builds Power Automate workflows for South African professional services and financial services businesses, automating document handling, approval routing and compliance reporting.",image:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/f76dfd030_NoxoloBiyela-powerAutomateDeveloper.JPG",imageClass:"scale-[1.45] origin-top",imageStyle:{objectPosition:"50% 10%"}},"Masande Dyasi":{name:"Masande Dyasi",role:"Managing Director, Sourceworx",bio:"Masande is the Managing Director of Sourceworx, with 17 years building technology solutions for South African organisations across financial services, government, mining and education.",image:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/8ee72494d_MasandeDyasi.jpg"},"Jessica Buck":{name:"Jessica Buck",role:"Network Infrastructure Lead, Sourceworx",bio:"Jessica leads network infrastructure at Sourceworx, with extensive experience in structured cabling, campus network design and enterprise connectivity across South African operating conditions.",image:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/3adf1d099_JessicaBuck.jpg"},"Frans Skhosana":{name:"Frans Skhosana",role:"Senior Network Engineer, Sourceworx",bio:"Frans specialises in enterprise network architecture, preventative maintenance programmes and connectivity audits for South African businesses across all sectors.",image:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/0c6b84198_FransSkhosana.jpg"},"Sizwe Sourceworx":{name:"Sizwe Sourceworx",role:"Head of Insights, Sourceworx",bio:"Sizwe leads thought leadership and content strategy at Sourceworx, writing on managed IT, cybersecurity, compliance and the operational realities facing mid-market organisations across South Africa.",image:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/4e3f4040a_SizweSourceworx.jpg"},"Security Engineering Team":{name:"Security Engineering Team",role:"Sourceworx",bio:"The Sourceworx security engineering team delivers managed cybersecurity, VAPT, SOC monitoring and regulatory compliance services across financial services, government and mining sectors.",image:null},"Sourceworx Software Team":{name:"Sourceworx Software Team",role:"Sourceworx",bio:"The Sourceworx software team builds bespoke applications, compliance platforms and automation tools for South African organisations, with deep knowledge of local regulatory requirements.",image:null},"Sourceworx Network Infrastructure Team":{name:"Sourceworx Network Infrastructure Team",role:"Sourceworx",bio:"The network infrastructure team designs and manages enterprise connectivity solutions for remote and industrial South African environments.",image:null}},Hm=Qm["Sizwe Sourceworx"],Oc={fsi_it:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/8313dc020_generated_image.png",fsi_net:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/2f7beacab_generated_image.png",edu_cyber:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/4d1eac40e_generated_image.png",edu_it:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/95eb10091_generated_image.png",mining_sw:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/bd832de82_generated_image.png",mining_net:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/a3414583c_generated_image.png",popia:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/f4c6a3708_generated_image.png",seta:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/348ab85a4_generated_image.png",ot_mining:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/7a60aa34a_generated_image.png",popia2:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/3c7c980a5_generated_image.png"}
584,dj=[{id:"sarb-cyber-resilience-guide",type:"whitepaper",cover:Oc.popia,vertical:"Financial Services",tag:"Cybersecurity",title:"The SARB Cyber Resilience Framework: A Practical Guide for South African Banks and Insurers",excerpt:"A detailed breakdown of SARB Directive 1 of 2018 requirements, with an implementation roadmap and audit evidence checklist for mid-tier financial institutions.",pages:"18 pages",date:"Q1 2026",ctaPath:"/contact",cta:"Download Whitepaper",body:`The South African Reserve Bank's Directive 1 of 2018 on Cyber Resilience sets out specific requirements for regulated financial institutions that go well beyond generic information security best practice. For mid-tier banks, insurers and financial services firms, meeting these requirements while managing day-to-day IT operations with limited internal capacity is one of the most persistent compliance challenges of the current era.
585
586This whitepaper provides a practical, section-by-section breakdown of the SARB Directive 1 of 2018 requirements, mapped to the operational capabilities that an ISO 27001-certified managed services partner can deliver on a financial institution's behalf.
587
588**Section 1: Governance and Accountability**
589
590The Directive requires that boards and senior management demonstrate active oversight of cyber resilience. This means the cyber risk programme must be formally approved at board level, with quarterly reporting on key risk indicators. For institutions where the CISO function is split across roles or shared with IT operations, this governance requirement is frequently the first area of non-compliance identified in SARB assessments.
591
592A managed SOC partner addresses this by providing structured monthly and quarterly reporting in the format required for board and audit committee review, giving the institution the governance documentation it needs without requiring additional headcount.
593
594**Section 2: Identification and Classification**
595
596Asset inventory, risk classification and threat intelligence are foundational requirements of the Directive. The challenge for mid-tier institutions is maintaining an accurate, continuously updated asset register across a complex estate of endpoints, servers, cloud workloads and branch infrastructure.
597
598**Section 3: Protection Controls**
599
600The protection controls section of the Directive maps closely to the ISO 27001 control set, which is why ISO 27001 certification is such a meaningful differentiator for a managed security partner. When the partner's processes are certified, the institution's audit evidence is generated as a natural output of service delivery.
601
602**Section 4: Detection Capabilities**
603
60424/7 monitoring, SIEM deployment and threat detection coverage are explicit requirements. For institutions without an internal SOC, a managed SOC is not merely a cost-saving option. It is the only realistic path to compliance.
605
606**Implementation Roadmap**
607
608We recommend a phased approach: governance documentation and board reporting framework in the first 90 days; asset discovery and classification in months two to four; SOC deployment and detection coverage from month four onwards; annual penetration testing and Directive assessment thereafter.`},{id:"popia-compliance-framework",type:"whitepaper",cover:Oc.popia2,vertical:"Cross-sector",tag:"Compliance",title:"POPIA Compliance for Technology Operations: What the Information Regulator Actually Expects",excerpt:"Beyond policy documents: a technical and operational guide to POPIA compliance for IT managers, CISOs and compliance officers across South African organisations.",pages:"14 pages",date:"Q1 2026",ctaPath:"/contact",cta:"Download Whitepaper",body:`Three years after the Protection of Personal Information Act came into force, the gap between organisations that have POPIA policies and organisations that have POPIA-compliant technology operations remains wide. This whitepaper addresses the operational side of compliance: what the Information Regulator actually looks for when it investigates a complaint or conducts an assessment.
609
610**What the Information Regulator Investigates**
611
612When the Regulator investigates a data breach or responds to a complaint, it does not ask to see your POPIA policy document. It asks to see evidence of technical and organisational measures. It asks for access logs, encryption configurations, data retention schedules and incident response records. It wants to know what happened, when, who was notified and what was done to prevent recurrence.
613
614**Section 22 Breach Notification: The Timeline Problem**
615
616Section 22 of POPIA requires notification to the Information Regulator "as soon as reasonably possible" after a breach is discovered. In practice, the Regulator expects notification within 72 hours for serious breaches, consistent with the GDPR standard. For organisations without a documented incident response procedure and a managed SOC, the 72-hour window is extremely difficult to meet.
617
618**Technical Measures That Create Audit Evidence**
619
620The most efficient approach to POPIA compliance is designing technology operations so that audit evidence is generated continuously as a natural output of normal operations, rather than assembled retrospectively under pressure. This includes centralised log management with defined retention periods, endpoint encryption with centralised key management, access control reviews documented at defined intervals, data classification systems that identify personal information in storage and transit, and vendor due diligence records for all processors handling personal information on behalf of the organisation.
621
622**The Operator and Responsible Party Distinction**
623
624Many organisations do not have clarity on where they sit in the POPIA framework: as responsible parties, operators, or both. This has significant implications for c
624ontractual obligations, breach notification responsibilities and the liability framework that applies.`},{id:"edvantage-seta-whitepaper",type:"whitepaper",cover:Oc.seta,vertical:"Higher and Basic Education",tag:"Compliance",title:"From Manual to Automatic: How South African Training Providers Are Eliminating SETA Evidence Assembly",excerpt:"A technical and operational guide to automating SETA mandatory grant evidence, B-BBEE Element 6 reporting and QCTO assessment records using EDVantage on Microsoft Teams.",pages:"16 pages",date:"Q1 2026",ctaPath:"/contact",cta:"Download Whitepaper",body:`Every Skills Development Facilitator in South Africa knows the calendar. The SETA discretionary grant window. The mandatory grant claim deadlines. The moderation visit. And in the weeks before each of these events, the same scenario plays out across hundreds of training providers and corporate learning departments: staff are pulled from their normal roles to manually assemble learner portfolios, attendance registers, assessment records and demographic reports from disconnected systems.
625
626This whitepaper documents how EDVantage, Sourceworx's learning management and compliance platform built on Microsoft Teams, eliminates this cycle by generating SETA-ready evidence as a natural output of programme delivery.
627
628**The Evidence Gap**
629
630SETA mandatory grant claims require specific evidence: signed attendance registers, assessment records aligned to the unit standards, facilitator qualifications, learning material evidence and learner demographic data in the SETA's required format. When this evidence is assembled from paper registers, spreadsheets and email attachments, the assembly process itself introduces errors that cause claims to be rejected or reduced.
631
632**How EDVantage Generates Evidence Automatically**
633
634Every interaction on EDVantage is logged against the learner's profile. Attendance is recorded digitally at the point of delivery. Formative assessments generate immediate results. Summative assessment evidence is stored against the unit standard. Facilitator records are maintained centrally. When the SDF needs to compile a grant claim, the evidence package is generated in the required format with a single report run.
635
636**B-BBEE Element 6 Reporting**
637
638Skills development spend reporting for B-BBEE verification requires demographic analysis of training beneficiaries across race, gender and disability categories. EDVantage captures this data at enrolment and generates verification-agency-ready reports automatically, eliminating the manual reconciliation that typically takes three to four days per verification cycle.
639
640**Microsoft Teams Integration**
641
642The decision to build EDVantage on Microsoft Teams was deliberate. South African organisations already have Microsoft 365 licences. The Teams infrastructure is already managed. Learners and facilitators are already familiar with the interface. There is no new system to procure, no new app to support and no new infrastructure to maintain.`},{id:"ot-it-convergence-mining",type:"whitepaper",cover:Oc.ot_mining,vertical:"Mining and Industry",tag:"Cybersecurity",title:"OT/IT Convergence Security in South African Mining: Protecting Production Without Disrupting It",excerpt:"How to architect secure boundaries between operational technology and corporate IT networks, preserving production data flows while blocking cyber threats from crossing into SCADA and ICS environments.",pages:"20 pages",date:"Q1 2026",ctaPath:"/contact",cta:"Download Whitepaper",body:`The convergence of operational technology and information technology networks is one of the most significant shifts in the South African mining industry. SCADA systems, PLCs, sensors and historian databases that once operated in complete isolation from the corporate network are now connected, delivering enormous value in production monitoring, predictive maintenance and remote diagnostics, while simultaneously creating a category of cyber risk that the mining industry is only beginning to understand.
643
644**The Threat Landscape for OT Environments**
645
646OT environments in mining face a fundamentally different threat profile than corporate IT environments. The consequences of a successful attack are not measured in data loss or reputational damage: they are measured in production hours, safety incidents and potentially in lives. A ransomware infection that shuts down a plant control system, a targeted attack that manipulates sensor readings to cause equipment damage, or a simple misconfiguration that allows a corporate malware infection to reach the SCADA network are not theoretical risks. They have occurred at mining operations globally.
647
648**The Industrial DMZ Architecture**
649
650The foundation of secure OT/IT convergence is the industrial demilitarised zone: a network boundary that allows operational data to flow from OT systems to corporate systems for business intelligence and reporting purposes, while preventing any traffic from flowing in the opposite direction without explicit inspection and approval. This boundary must be enforced by industrial-grade firewalls with policies designed for the specific protocol characteristics of SCADA and PLC communications.
651
652**Fortinet's Industrial Security Platform**
653
654Sourceworx deploys Fortinet's FortiGate industrial security platform for OT/IT convergence environments. The platform provides deep packet inspection for industrial protocols including Modbus, DNP3 and IEC 61850, combined with the enterprise security capabilities of the broader Fortinet Security Fabric.
655
656**Implementation Approach**
657
658Phase 1: OT asset discovery and network mapping. Phase 2: Risk assessment and architecture design. Phase 3: Industrial DMZ implementation. Phase 4: SOC monitoring extension to cover OT environment. Phase 5: Ongoing vulnerability management and security testing.`}],ob=[{id:"structured-cabling-south-africa-small-business",cover:Oc.fsi_net,vertical:"General SMME",service:"Cabling and Small Site Work",tag:"Network Infrastructure",tagColor:"midnight",title:"What Structured Cabling Actually Means and Why Most South African Small Businesses Do Not Have It",excerpt:"There is a version of the office network that works and a version that performs. Most South African small businesses have the first. Structured cabling is the foundation of the second.",readTime:"6 min read",date:"June 2026",author:"Jessica Buck",cta:"Book a free Connectivity Audit",ctaPath:"/contact",body:`Cat6 structured cabling supports 10 Gbps data rates at up to 55 metres and 1 Gbps at 100 metres. Most South African small business offices run on Cat5e or, in older buildings, Cat5: standards designed in the 1990s for a fraction of today's bandwidth demand.
659
660There is a version of the office network that works and a version that performs. Most South African small businesses have the first.
661
662The distinction matters more than many business owners realise. An office network that works does what it was asked to do: most of the time, in most places, for most users. An office network that performs does what the business needs it to do: reliably, at speed, under load, across every workstation, across every day of the week.
663
664Structured cabling is the foundation of the second kind of network. It is not a premium option or a corporate nicety. It is a set of internationally standardised physical infrastructure principles, governed by TIA/EIA-568 in North America and ISO/IEC 11801 internationally, that specify exactly how cables should be routed, terminated, documented and tested so that the network built on top of them performs predictably.
665
666The alternative, which most South African small businesses have inherited or installed themselves, is typically described as "cable management" but is more accurately characterised as organised improvisation. Cables run along skirting boards, through ceiling voids without proper support, terminated at patch points without documentation, and extended with consumer-grade extenders when a new workstation needs a connection. It works. Until it does not.
667
668**What structured cabling actually consists of**
669
670A properly installed structured cabling system has six defined subsystems. The work area component connects each workstation to a wall outlet. Horizontal cabling runs from that outlet back to a telecommunications room or comms cabinet, using Cat6 or Cat6A cable, within a specified maximum run length of 90 metres for permanent links. The telecommunications room houses the patch panel where horizontal runs terminate and cross-connect to the active equipment. Backbone cabling connects multiple telecommunications rooms to the main equipment room. The equipment room houses the servers and core switching infrastructure. And the entrance facility connects the building to external services.
671
672In a small office, several of these subsystems may collapse into a single comms cabinet. But the principles, standardised cable grades, proper termination, physical separation of cable types and documentation, remain the same regardless of scale.
673
674Molex, one of the global standards bodies for structured cabling infrastructure and a brand whose certification our team holds at both individual and company level, publishes installation guidelines that specify minimum bend radii to prevent cable damage at corners, cable separation distances between data and power runs to prevent electromagnetic interference, and termination standards that ensure signal integrity across the full cable length. These are not suggestions. They are the conditions under which the performance claims for the cable are valid.
675
676**Why the distinction between Cat5e and Cat6 is relevant right now**
677
678Most South African small business offices that were fitted out before 2018 are running Cat5e infrastru
678cture. Cat5e was ratified in 2001 and supports 1 Gbps at 100 metres, which was more than adequate for the bandwidth demands of that era. In 2025, those demands are different.
679
680A business running a cloud-hosted ERP, Microsoft Teams video calls across twelve workstations simultaneously, cloud backup running in the background and Power BI datasets refreshing from a shared server will stress Cat5e infrastructure in ways that produce intermittent failures rather than clean outages. The cable does not break. It just cannot sustain the aggregate bandwidth under load, and the result is slowness, dropped calls, stalled uploads and the normalised complaint that "the internet is being difficult today."
681
682Cat6 cabling, which Sourceworx installs to Molex standards, supports 10 Gbps at 55 metres and 1 Gbps at 100 metres, with significantly better crosstalk rejection than Cat5e, which matters in environments where multiple cables run in parallel.
683
684**What a proper installation delivers**
685
686A structured cabling installation from Sourceworx produces three things beyond the cables themselves: an as-built floor plan that shows exactly where every run terminates, a test report for every installed cable using a calibrated tester that confirms the run meets the standard, and a labelled patch panel so that anyone who opens the comms cabinet in three years' time can understand what they are looking at.
687
688That documentation is not decoration. It is what allows the network to be maintained, expanded and handed over to a new IT support provider without starting from scratch. It is what allows a fault to be diagnosed in minutes rather than hours. And it is what separates a structured cabling installation from a cable run.
689
690The 90-day callback warranty we include on every installation is our way of making the accountability explicit. If anything we installed does not perform as documented, we return and resolve it at no cost. We stay accountable for what we build.
691
692Book a free Connectivity Audit: 45 minutes on site, Site Readiness Report within 48 hours.`},{id:"cost-of-poor-office-connectivity-south-africa",cover:Oc.fsi_it,vertical:"Financial Services",service:"Cabling and Small Site Work",tag:"Network Infrastructure",tagColor:"midnight",title:"The Real Cost of Poor Office Connectivity: A Calculation Every South African Business Owner Should Run",excerpt:"Poor office connectivity costs South African businesses far more than the price of fixing it. Here is how to calculate what unreliable networking is actually costing your team every month.",readTime:"7 min read",date:"June 2026",author:"Frans Skhosana",cta:"Book a free Connectivity Audit",ctaPath:"/contact",body:`A ten-person professional services team losing one productive hour per person per week to connectivity problems loses approximately 520 person-hours annually. At a fully loaded cost of R300 per person per hour, that is R156,000 per year. Enough to pay for a full structured cabling installation multiple times over.
693
694Most South African business owners know their office connectivity is not great. What they do not know is what that costs them.
695
696The problem with connectivity-related productivity loss is that it is invisible on a financial statement. It does not appear as a line item. It shows up as accepted friction: the video call that starts two minutes late while everyone waits for the connection to stabilise, the file that takes four attempts to upload, the team member who has learned to sit in a specific spot in the office because the Wi-Fi dead zone near their usual desk makes work impossible. These are not catastrophic failures. They are the slow, consistent drain of time and energy that businesses normalise because they have no obvious comparison point.
697
698The calculation is straightforward, which is why it is worth running.
699
700**How to calculate your connectivity productivity cost**
701
702Start with your team size and the average fully loaded employment cost per hour. For a South African professional services firm, a reasonable range for loaded hourly cost across a mixed team is R200 to R450, depending on seniority. Apply a conservative estimate of connectivity-related time lost per person per week: one hour is a deliberately modest starting point, and most operations managers who examine this number closely revise it upward.
703
704For a fifteen-person team at a loaded cost of R280 per person per hour, losing one hour per week to connectivity friction produces an annual cost of R218,400. For two hours per week, which is more representative of an office where connectivity has never been properly assessed, the figure doubles.
705
706This calculation does not include the cost of client-facing failures: the video call that dropped during a presentation, the file that did not arrive before a deadline, the shared document that would not load when a client was waiting. These 
706costs are harder to quantify but are not zero.
707
708**The three most common sources of connectivity productivity loss in South African offices**
709
710The first is wireless dead zones created by a single access point doing the work of several. A consumer-grade router positioned at one end of an open-plan floor cannot reliably serve workstations at the other end. Signal strength degrades with distance and physical obstruction, and the result is variable performance that users experience as unpredictability.
711
712The second is cable runs that were never properly terminated. A poorly terminated RJ45 connection, where individual wire pairs are not correctly punched down to the contact, introduces resistance and crosstalk that reduces effective throughput and contributes to packet errors. These runs typically pass a visual inspection but fail a performance test. They produce the symptom most IT support providers have heard: "the wired connection is almost as slow as the Wi-Fi."
713
714The third is shared bandwidth contention between office applications and background processes. A business running cloud backup during working hours, automatic software updates and Teams video calls simultaneously on a poorly segmented network will experience contention that degrades all three. Proper network design, with QoS rules that prioritise interactive traffic over background processes, resolves this without increasing internet bandwidth.
715
716**What the cost of a proper installation looks like against the cost of the problem**
717
718A Sourceworx Office Ready Pack for a small site, typically a single-floor office of ten to twenty workstations, ranges from R12,000 to R20,000 at pilot programme rates. This includes a free Connectivity Audit, structured Cat6 cabling to Molex standards, access point installation and configuration, a labelled patch panel, as-built documentation and a 90-day callback warranty.
719
720Measured against an annual productivity loss of R218,400 for a fifteen-person team, the payback period for that investment is measured in weeks, not years.
721
722Book your free Connectivity Audit and receive a Site Readiness Report within 48 hours.`},{id:"preventative-network-maintenance-south-africa",cover:Oc.mining_net,vertical:"Mining and Industry",service:"Cabling and Small Site Work",tag:"Network Infrastructure",tagColor:"midnight",title:"Preventative Network Maintenance for South African Businesses: The Case for Checking Before It Breaks",excerpt:"Reactive IT support costs more than preventative maintenance. There are two ways to find out your network cabling has a problem. The first is during a maintenance inspection. The second is during a production failure.",readTime:"6 min read",date:"June 2026",author:"Jessica Buck",cta:"Book a free Connectivity Audit",ctaPath:"/contact",body:`Properly installed Cat6 cabling has a manufacturer-rated service life of 15 to 25 years. The connectors and patch points at each end of the run are the primary failure points, and they can be identified, cleaned and replaced during a scheduled maintenance visit before they cause a fault.
723
724There are two ways to find out that your network cabling has a problem. The first is during a maintenance inspection. The second is during a production failure, a board meeting or an exam period.
725
726The second is significantly more expensive.
727
728Preventative maintenance is an established practice for physical infrastructure: vehicles, HVAC systems, electrical installations. Its application to IT cabling and network infrastructure is less universal, particularly in South African small business and industrial environments, where the prevailing model is reactive: wait for a fault, then investigate.
729
730The reactive model has a cost structure that is often worse than preventative maintenance once the full picture is understood.
731
732**What deteriorates in a network over time**
733
734Structured cabling is durable. Properly installed Cat6 cable, run within specified bend radii and protected from physical stress, will perform within specification for fifteen to twenty-five years without intervention. The cable itself is the most resilient component of the system.
735
736The components that deteriorate are at the endpoints. RJ45 patch cables, the shorter cables that connect workstations to wall outlets and patch panels to switches, experience physical stress every time they are plugged in, pulled out or moved. The locking tab breaks. The conductors at the plug end fatigue. In environments with high humidity, the contacts corrode. In environments with dust, the contacts accumulate debris that increases resistance.
737
738Patch panel ports accumulate dust, oxidise and suffer physical damage from cables being inserted at awkward angles. A port that is partially failed introduces intermittent connectivity problems that are among the most difficult to diagnose remotely, because the fault appears and disappears depending on temperature, humidity and the angle at which the cable sits.
739
740In South African conditions specifically, there are additional factors that accelerate wear. Load-shedding creates power instability that stresses active network equipment: switches, routers and access points, beyond what their power supplies were designed for if UPS protection is inadequate or not in place. Surge events during power restoration are a documented cause of premature switch failure in South African offices.
741
742**What a preventative maintenance programme covers**
743
744A Sourceworx network maintenance visit, which we recommend on a quarterly or biannual schedule depending on the environment, covers four categories of work.
745
746Visual inspection: every cable run checked for physical damage, every connector inspected for debris and physical wear, every access point confirmed to be properly mounted and showing correct status indicators, comms cabinet inspected for temperature, airflow and cable management condition.
747
748Physical cleaning: patch panel ports and accessible connectors cleaned with contact cleaner and compressed air, comms cabinet cleaned and debris removed, ventilation checked and cleared.
749
750Performance testing: spot-checks on cable runs in areas of reported slowness or intermittent faults, throughput measurements at representative workstations, access point signal coverage survey updated if the office layout has changed.
751
752Documentation update: as-built drawing updated for any changes made since the previous visit, maintenance log updated with findings and actions taken, any at-risk components flagged with replacement recommendation and cost estimate.
753
754The output is a one-page maintenance report delivered within 48 hours of the visit.
755
756**The specific case for mining and industrial environments**
757
758Preventative maintenance matters more in mining and industrial environments than in office settings, for three reasons.
759
760The physical environment is more demanding. Heat, dust, vibration and humidity accelerate wear in cabling and network equipment at a rate that office conditions do not. A cable run in an industrial area may need inspection every six months rather than every twelve.
761
762The cost of a connectivity failure is higher. A production reporting system that loses connectivity does not just slow down communication: it takes production data offline. In a mining context where shift reporting, SCADA monitoring and safety system communications all depend on the network, a connectivity failure has an immediate operational cost.
763
764And the physical distance from IT support resources means that response time for reactive faults is longer. A cable fault that would take two hours to diagnose and resolve in a Johannesburg office may take twenty-four hours at a remote mine site.
765
766Book a free Connectivity Audit: 45 minutes on site, report within 48 hours.`},{id:"office-network-planning-new-premises-south-africa",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/2f32e0c94_generated_image.png",vertical:"Financial Services",service:"Cabling and Small Site Work",tag:"Network Infrastru
766cture",tagColor:"midnight",title:"Planning Your Office Network When You Move Premises: What South African Businesses Get Wrong",excerpt:"Moving offices is the best opportunity you will have to build a network that performs. Most South African businesses miss it. Here is what to plan, when to start and what questions to ask.",readTime:"7 min read",date:"June 2026",author:"Frans Skhosana",cta:"Book a site survey",ctaPath:"/contact",body:`Network infrastructure planning should begin eight to twelve weeks before moving into new premises. Most South African businesses begin it two weeks before moving in, which is too late to avoid compromises in cabling quality, access point placement and documentation.
767
768An office move is the single best opportunity most South African businesses will have to build a network that performs from day one. It is also the opportunity that is most consistently wasted.
769
770The pattern is familiar. The lease is signed, the fit-out contractor is engaged, the furniture is ordered. Somewhere in the third week before the move-in date, someone asks: "What about the IT?" The answer, at that point, is almost always: "We'll sort it out." The sorting out produces an office network that works, but not one that was designed to perform.
771
772Fixing that network six months later, when the problems have become impossible to ignore, costs more than designing it correctly at the outset. Doing cabling work in an occupied office means running cables around furniture, negotiating with staff about access and accepting quality limitations that would not exist in an empty space. It is disruptive, expensive and entirely avoidable.
773
774**The timeline that most businesses miss**
775
776Network infrastructure planning for a new office should begin eight to twelve weeks before the move-in date. This reflects the actual lead times involved in doing the work correctly.
777
778A Connectivity Audit and site survey takes one visit and produces a design within 48 hours. That design must be reviewed, scoped and agreed before a cable schedule can be produced. The cable schedule determines the number of network points per area, access point positions, comms cabinet location and power requirements. Once agreed, materials need to be ordered. Then the cabling work itself needs to be scheduled and completed before the partitioning and ceiling tiles go in, because many cable runs go through ceiling voids that are inaccessible once the space is finished.
779
780Starting this process two weeks before moving in means either accepting inadequate infrastructure at move-in or doing disruptive remedial work in the months after.
781
782**The questions to ask your fit-out contractor before they start work**
783
784The fit-out contractor is responsible for the physical space. The network infrastructure is your responsibility. These two workstreams need to be coordinated from the beginning, not introduced to each other two weeks before completion.
785
786Ask the contractor: where will the ceiling voids be accessible? What is the path from the comms cabinet location to each wing of the floor? Are there existing conduits or cable trays, and if so, what is their current occupancy? What is the power provision plan for the comms cabinet: does it include a circuit capable of supporting UPS?
787
788These questions are standard for a project manager and a network infrastructure specialist working together. They are the kind of questions that cannot be answered after the ceiling tiles are in.
789
790**What to specify for the network infrastructure itself**
791
792For a South African small business office, the current minimum specification for new-build cabling is Cat6, installed to Molex standards. Cat6 supports 10 Gbps at 55 metres and 1 Gbps at 100 metres, with better crosstalk rejection than Cat5e, which is relevant in open-plan environments where multiple cable runs share cable trays.
793
794The number of network points should be calculated on the basis of workstations plus a planned growth margin plus dedicated runs for fixed equipment. A minimum of two network points per workstation is standard practice: one for the wired connection, one as a spare. A business planning for growth should provision three.
795
796Access point placement should be determined by a wireless survey of the empty space, not by where the contractor has left power. A professional Wi-Fi survey calculates coverage from the physical characteristics of the space and places access points to provide overlapping coverage with appropriate channel separation.
797
798The comms cabinet requires dedicated power, appropriate ventilation and a UPS with sufficient capacity to bridge load-shedding events. In South African operating conditions, UPS sizing is not optional.
799
800Moving offices? Book a site survey eight weeks before your move-in date and let us design it correctly from the start.`},{id:"power-bi-south-african-small-business-reporting",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/b71b2ee12_generated_image.png",vertical:"Financial Services",service:"Software Development",tag:"Software and Automation",tagColor:"midnight",title:"Power BI for South African SMEs: From Friday Morning Excel to Automated Reporting in Six Weeks",excerpt:"Power BI can replace the Excel reports your team rebuilds manually every week. Here is how, what it costs and what a realistic six-week implementation looks like for a South African SME.",readTime:"8 min read",date:"June 2026",author:"Nikhil Ravi",cta:"Book a free Digital Clarity Session",ctaPath:"/contact",body:`Power BI Desktop is free. Power BI Pro costs approximately R230 per user per month in South Africa. A management accounts dashboard that currently takes a senior financial manager four hours per month to compile manually can be automated in a four-to-six-week implementation, at a cost that pays back within six to twelve months of deployment.
801
802The Friday morning management accounts report is one of the most reliably painful processes in a South African professional services business.
803
804The data lives in the accounting system. The report template lives in an Excel file that somebody built three years ago. The process involves exporting data from the accounting system, pasting it into the Excel template, updating the formulas, correcting the formatting that breaks every time the paste happens slightly differently, reconciling the figures against the prior month to check for errors, and then compiling the presentation-ready version that the directors actually read.
805
806The process takes between two and six hours depending on the business. It happens every month. Every month it costs the same time. And every month the risk is the same: an error in the paste, a formula that references a cell that moved, a figure that does not reconcile and cannot be explained by the time the meeting starts.
807
808Power BI does not eliminate the need for management accounts. It eliminates the process of assembling them.
809
810**What Power BI actually does**
811
812Power BI is Microsoft's business intelligence platform. It connects directly to data sources: accounting systems (Sage, Xero, QuickBooks and most others via API or ODBC connection), Excel files, SharePoint, SQL databases and 100-plus other sources, and builds reports and dashboards from live data.
813
814Once a Power BI dashboard is built and connected, refreshing the management accounts report is not a process. It is a click. The data pulls from the source, the calculations run and the report updates. The version that was assembled manually in four hours on Friday morning is available by 08:00 on Monday because the refresh ran automatically over the weekend.
815
816The dashboard is not a static report. It is interactive. A director reviewing management accounts can filter by cost centre, drill into a specific income line, compare this month against the same month last year, or apply a scenario, all without asking anyone for a new cut of the data.
817
818**What a realistic six-week implementation looks like**
819
820The first week is requirements work. A Sourceworx developer meets with the person who currently builds the report and maps the current process: what data does the report show, where does each figure come from, what calculations are applied, what does management actually use it to decide.
821
822The second week is data source assessment. We connect to the accounting system and the relevant Excel files, assess data quality and identify any inconsistencies or gaps that need to be resolved before the dashboard will produce reliable outputs.
823
824Weeks three and four are the build. The dashboard is constructed in Power BI, connected to the live data source and reviewed with the client at the midpoint for feedback.
825
826Week five is testing. The financial manager runs the dashboard against the manual process for one full reporting period, comparing outputs and confirming that the dashboard matches their understanding of the figures. We do not hand over a dashboard that has not been independently verified by the person who knows the data.
827
828Week six is training and handover. We run a one-hour training session with everyone who will use the dashboard, answer questions, document the refresh schedule and transfer ownership to the client.
829
830**The data quality conversation that needs to happen before the build**
831
832The most common reason a Power BI implementation takes longer than six weeks is data quality. If the data in the accounting system is inconsistent, if account codes have changed over the years and historical data is not restated, if the chart of accounts has been modified repeatedly without a consistent logic, the dashboard will reflect that inconsistency.
833
834We raise this in the first session. If data standardisation work is required, we scope it separately and clearly, so the client understands what is needed before the build begins.
835
836Book a free Digital Clarity Session: 90 minutes with a senior developer, Digital Opportunity Map within 48 hours.`},{id:"power-apps-south-africa-what-can-it-do",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/7835a611e_generated_image.png",vertical:"General SMME",service:"Software Development",tag:"Software and Automation",tagColor:"midnight",title:"Power Apps Explained: What Microsoft's Low-Code Platform Can and Cannot Do for Your Business",excerpt:"Power Apps can replace paper forms, email approvals and Excel trackers with mobile-ready a
836pps your team will actually use. Here is what is realistic and what is not for a South African SME.",readTime:"7 min read",date:"June 2026",author:"Noxolo Biyela",cta:"Book a free Digital Clarity Session",ctaPath:"/contact",body:`Power Apps connects to more than 900 data sources via standard connectors, including SharePoint, Excel, SQL Server, Dataverse, Salesforce and most common South African ERP and accounting platforms. A canvas app for a single business process can be built and deployed in four to six weeks.
837
838The forms, trackers and approval processes that hold most small businesses together are not technology problems. They are process problems that technology has not yet been applied to.
839
840An expense approval that travels by email from the claimant to the manager to the finance team, with a spreadsheet somewhere in the middle that needs to be updated manually, is not a technology failure. It is a process that was designed before a better option existed and has not been reviewed since. Power Apps is the better option that now exists.
841
842**What Power Apps is**
843
844Power Apps is Microsoft's low-code application development platform, part of the Microsoft Power Platform alongside Power BI, Power Automate and Power Virtual Agents. It allows developers, and in some cases non-developers, to build applications that run on desktop, tablet and mobile without writing traditional code.
845
846There are two types of Power Apps. Canvas apps give the developer full control over the layout, interface and data connections. They look the way you design them, not the way a template dictates. Model-driven apps are built from a data model, useful for more complex, data-heavy applications where the structure of the data drives the interface. For South African SME use cases, canvas apps are almost always the right starting point.
847
848**What it is good at**
849
850Power Apps performs well for a defined category of use case: structured, form-based processes where data needs to be collected, reviewed and acted upon, and where the current process involves paper, email or Excel.
851
852Inspection and audit forms for health and safety, quality assurance or site compliance are a near-perfect fit. The inspector fills in the form on a mobile device. The data goes directly into SharePoint or Dataverse. An automated notification goes to the relevant manager. A dashboard built in Power BI shows the aggregate trend. No paper. No data entry by a second person.
853
854Leave and absence tracking, a process that in many South African businesses involves a paper form, a manager signature and a manual update to a spreadsheet, becomes a three-step mobile workflow. Employee submits. Manager approves or declines. HR record is updated automatically.
855
856Job card management for field service businesses, where a technician arrives at a site, completes work, collects a signature and submits a job card, can be entirely digitised. The technician uses the app on a mobile device. The completed job card is time-stamped, geotagged and signed digitally. The back-office system is updated in real time.
857
858**What it is not suited to**
859
860Power Apps is not a replacement for a full ERP system. It does not handle complex transactional accounting, multi-entity consolidation or sophisticated inventory management. Attempting to build these on Power Apps produces something that is more expensive to maintain than a proper system and less reliable under load.
861
862The most important question to ask before starting a Power Apps project is not "can this be built in Power Apps?" The question is "is Power Apps the right tool for this, given the complexity, the scale and the long-term maintenance requirements?" A Sourceworx developer will tell you if it is not.
863
864**Licensing: what your business probably already has**
865
866Power Apps is included at a basic level in Microsoft 365 Business Standard and Business Premium licences, which many South African businesses already hold. For more demanding use cases, the Power Apps per-app plan (approximately R115 per user per month) or per-user plan (approximately R290 per user per month) provides expanded capacity and premium connectors.
867
868Book a free Digital Clarity Session and find out in 90 minutes whether Power Apps is the right fit for your process.`},{id:"process-automation-south-africa-professional-services",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/2ac5e9d6e_generated_image.png",vertical:"Financial Services",service:"Software Development",tag:"Software and Automation",tagColor:"midnight",title:"Process Automation for South African Professional Services: Where to Start and What to Expect",excerpt:"Microsoft Power Automate c
868an eliminate the manual steps that cost your team hours every week. Here is which processes to automate first and what a realistic engagement looks like.",readTime:"7 min read",date:"June 2026",author:"Noxolo Biyela",cta:"Book a free Digital Clarity Session",ctaPath:"/contact",body:`Power Automate, Microsoft's workflow automation tool, connects to more than 1,000 services via standard connectors and can automate processes that currently involve manual copying, email routing, spreadsheet updates and approval chains, typically eliminating two to eight hours of manual work per week for each automated workflow.
869
870There is a category of work that exists in every South African professional services business that contributes nothing to the quality of the service delivered and that continues because nobody has stopped to ask whether it has to be done that way.
871
872It looks like this: a client submits a document by email. Someone downloads it, renames it according to the filing convention, uploads it to SharePoint or the document management system, sends a confirmation email to the client, updates a tracker spreadsheet with the date received and changes the status in a second tracker to "documents received." Five separate manual steps, involving two people, taking fifteen minutes.
873
874That process, done for forty clients per week, takes ten hours of staff time. Every week. Every year. It does not have to.
875
876**What Microsoft Power Automate does**
877
878Power Automate is Microsoft's cloud-based workflow automation platform. It connects applications and services: email, SharePoint, Excel, Teams, Dataverse, Salesforce, DocuSign and more than 1,000 others via standard connectors, and automates the actions that currently require a person to move information from one place to another.
879
880A Power Automate workflow has three components: a trigger (what starts the workflow), one or more conditions (if/then logic that routes the workflow based on the data) and actions (what the workflow does: send an email, update a record, create a file, notify a channel in Teams).
881
882**Where to start: the processes worth automating first**
883
884Not all processes are equal candidates for automation. The processes that yield the highest return on automation effort share three characteristics.
885
886They are repetitive. The same steps happen in the same order every time, with the same inputs and the same outputs.
887
888They are high frequency. A process that happens twice a year is worth automating eventually. A process that happens forty times a week is worth automating now.
889
890They are well-defined. Automation requires clarity about what the trigger is, what the inputs are, what the outputs are and what constitutes a successful completion.
891
892For South African professional services businesses, the categories that most consistently meet all three criteria are: document receipt and filing, client onboarding communication sequences, internal approval routing, data entry from forms to tracking systems and status notification communications.
893
894**The FICA onboarding process as a worked example**
895
896The FICA onboarding process for South African financial services firms is among the most reliably automatable processes in the sector.
897
898A new client submits FICA documents: certified ID copy, proof of address, source of funds declaration. These arrive by email, WhatsApp or via a web form. Compliance requires that they are received, reviewed, filed in a compliant document management structure, logged with a date stamp and that the client receives acknowledgement.
899
900Currently, in most South African financial advisory practices and smaller asset managers, this process is done manually by an administrator. A Power Automate workflow can handle receipt, filing, logging and acknowledgement automatically. The compliance officer's review, the human judgement that cannot be automated, is flagged by the workflow with a Teams notification that includes a link to the filed documents.
901
902The automation does not replace the compliance officer's judgement. It removes everything around the judgement that does not require it.
903
904Book a free Digital Clarity Session: we will map your highest-value automation opportunity in 90 minutes.`},{id:"data-standardisation-south-africa-analytics-readiness",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/3c37ab724_generated_image.png",vertical:"General SMME",service:"Software Development",tag:"Software and Automation",tagColor:"midnight",title:"Data Standardisation: The Unglamorous Work That Makes Analytics Possible",excerpt:"Power BI dashboards and automation workflows are only as reliable as the data they read. Here is what data standardisation is, why most South African businesses need it and how to do it.",readTime:"7 min read",date:"June 2026",author:"Nikhil Ravi",cta:"Book a free Digital Clarity Session",ctaPath:"/contact",body:`In our experience working with South African SMEs, more than half of Power BI engagements require data standardisation work before the dashboard build can begin reliably. The most common issue is not missing data: it is the same data recorded inconsistently across different systems and time periods.
905
906The most common reason a Power BI dashboard takes longer than expected to build is not the dashboard. It is the data that feeds it.
907
908This is not a South African problem specifically, but it has South African characteristics. The typical small business that approaches us for a reporting dashboard has been operating for several years, has changed accounting systems at least once, has modified its chart of accounts multiple times, and has at least one period where the data in the current system does not match the records in the predecessor system. The data exists. It is just not in a state where analytics can trust it.
909
910**What data standardisation means in practice**
911
912Data standardisation is the process of making data consistent, accurate and structured in a way that analytics tools can use reliably. It is distinct from data migration (moving data between systems) and data cleansing (fixing individual errors). It is closer to data architecture: establishing the rules and structures that govern how data is recorded so that it can be aggregated, filtered and analysed without producing misleading results.
913
914In a South African SME context, the most common standardisation problems fall into five categories.
915
916Inconsistent naming: the same entity, a client, a supplier, a cost centre, recorded under different names in different systems or at different points in time. "Standard Bank," "Std Bank," "Standard Bank Limited" and "STD BANK" are four records of the same entity that an analytics tool will treat as four separate entities unless the inconsistency is resolved.
917
918Date format inconsistency: South Africa uses DD/MM/YYYY by convention, but Excel and many accounting system exports default to MM/DD/YYYY in certain configurations. A dataset that mixes these conventions produces errors that are not immediately visible in the raw data but produce nonsensical results in aggregations.
919
920Currency and decimal formatting: a value stored as "R 1,234.56" in one system and "1234.56" in another, or with a comma as the decimal separator in one export and a period in another, cannot be directly compared or aggregated without transformation.
921
922Account code changes: when a chart of accounts is restructured, a common occurrence in growing businesses, historical data under the old codes does not automatically reclassify to the new structure.
923
924Missing reference data: analytics tools need to know what a code means, not just what the code is.
925
926**The data audit as the starting point**
927
928Before building any analytics solution, Sourceworx conducts a data audit, typically a one-to-two-week process that maps the data sources, identifies the key inconsistencies and produces a remediation plan with effort estimates.
929
930The audit has three outputs: a data quality assessment that rates each data source across the key quality dimensions (accuracy, completeness, consistency, timeliness and uniqueness); a specific list of the issues found, ranked by their likely impact on the planned analytics; and a recommendation on the remediation approach.
931
932The audit often reveals issues that the business did not know it had. This is not a criticism. It is the nature of data that accumulates over years without a consistent governance framework.
933
934This is not glamorous work. It does not produce a visible dashboard or an impressive presentation. But it is the work that determines whether the dashboard that follows it is trustworthy. A management accounts report that is "almost right" is not useful to the director making a decision based on it. Trustworthy is the only bar that matters.
935
936Book a free Digital Clarity Session: we will tell you in 90 minutes whether your data is analytics-ready.`},{id:"popia-section-22-data-breach-notification-south-africa",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/f44f2a7b1_generated_image.png",vertical:"Financial Services",service:"Managed Cybersecurity",tag:"Cybersecurity",tagColor:"azure",title:"POPIA Section 22 in Practice: What South African Businesses Must Do After a Data Breach",excerpt:"POPIA Section 22 requires South African businesses to notify the Information Regulator and data subjects after a breach. Here is exactly what that obligation means and how to be ready before it happens.",readTime:"9 min read",date:"June 2026",author:"Masande Dyasi",cta:"Book a free Security Gap Assessment",ctaPath:"/contact",body:`POPIA (the Protection of Personal Information Act 4 of 2013) became fully effective on 1 July 2021. Administrative fines under Section 107 reach up to R10 million. Criminal penalties under Section 109 include imprisonment of up to ten years. The Act has been in full effect for four years, and most South African businesses have not completed the notification readiness requirements it imposes.
937
938The POPIA breach notification obligation is not complicated. What makes it difficult is that it requires preparation that most South African businesses have not done, and the first time most businesses discover they have not done it is when they are facing an incident.
939
940Section 22 of the Protection of Personal Information Act 4 of 2013 is the operative provision. It applies to "responsible parties": the term POPIA uses for organisations that determine why and how personal information is processed. If your organisation holds the personal data of customers, employees, suppliers or any other natural persons, and that data is compromised, Section 22 applies to you.
941
942**What Section 22 actually requires**
943
944The obligation has two components, both of which must be met "as soon as reasonably possible" after the responsible party becomes aware that the personal information of a data subject has been accessed or acquired by an unauthorised person.
945
946First: notify the Information Regulator. The Regulator, established under POPIA and chaired by Adv. Pansy Tlakula, operates a notification portal. The notification must include a description of the possible consequences of the security compromise, a description of the measures taken or being taken to address the compromise, a recommendation of the measures the data subject should take to mitigate the impact, and the identity of the unauthorised person who may have accessed the information, if known.
947
948Second: notify the affected data subjects. The communication to data subjects must convey essentially the same information as the Regulator notification: what happened, what the consequences may be, what the responsible party is doing about it and what the data subject can do to protect themselves.
949
950The phrase "as soon as reasonably possible" is not defined in the Act with a specific timeframe, which means the determination of what is reasonable will be made after the fact, in the context of how quickly the responsible party actually moved. The Information Regulator has indicated in subsequent guidance that prompt action is expected: days, not weeks.
951
952**What Section 19 requires before a breach occurs**
953
954Section 22 is the response obligation. Section 19 is the prevention obligation, and it is equally important. Section 19 requires responsible parties to take "appropriate, reasonable technical and organisational measures" to prevent loss, damage or unlawful access to personal information.
955
956The organisational measures Section 19 requires are specific. An Information Officer must be appointed and registered with the Information Regulator. A POPIA compliance framework must exist. Staff must be trained on their obligations. Operators (third parties who process personal information on the responsible party's behalf) must be bound by a written agreement that requires them to maintain the same level of security.
957
958Most South African businesses that have done some POPIA compliance work have appointed an Information Officer. Fewer have completed the processing register. Fewer still have bound their operators by a compliant agreement or conducted the technical security assessment that underpins the "appropriate measures" claim.
959
960**The cybersecurity connection**
961
962POPIA compliance and cybersecurity are related but distinct. A business can have a fully compliant POPIA framework and still have a cybersecurity environment that makes a breach likely. Conversely, a business with strong technical security controls may have inadequate POPIA documentation, meaning that when a breach occurs, the response process is unclear.
963
964The intersection is the security assessment. A VAPT (Vulnerability Assessment and Penetration Test) identifies the technical gaps that create breach risk. A POPIA gap assessment identifies the process and documentation gaps that create compliance risk. Both are necessary. Neither substitutes for the other.
965
966**What to have in place before the incident**
967
968The preparation that makes Section 22 compliance manageable is an incident response plan: a documented, agreed process that specifies who declares an incident, who assesses the scope, who is responsible for the Regulator notification, who is responsible for the data subject notification, who is the legal contact and what the internal escalation path looks like.
969
970This plan does not need to be lengthy. It needs to be specific, agreed by the relevant people in the organisation and actually practised, at least once per year, in a tabletop exercise that walks through a hypothetical breach scenario. Organisations that discover their incident response plan for the first time during an actual breach do not implement it well.
971
972Book a free Security Gap Assessment: VAPT lite plus POPIA gap review, delivered in 90 minutes.`}
972,{id:"sarb-cyber-resilience-framework-mid-tier-banks",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/62d611014_generated_image.png",vertical:"Financial Services",service:"Managed Cybersecurity",tag:"Cybersecurity",tagColor:"azure",title:"The SARB Cyber Resilience Framework: A Practical Guide for Mid-Tier South African Banks",excerpt:"The SARB's cyber resilience requirements are detailed, annually assessed and mandatory. Here is what mid-tier South African banks need to have in place and where the most common gaps are.",readTime:"9 min read",date:"June 2026",author:"Masande Dyasi",cta:"Book a free Security Gap Assessment",ctaPath:"/contact",body:`The most common finding when we assess a mid-tier South African bank's cyber environment is not a missing control. It is a missing evidence trail. The controls exist. The logs exist. The policies exist. But the organised, auditor-ready documentation that the SARB cyber resilience assessment requires does not.
973
974A mid-tier South African bank operates in one of the most demanding regulatory technology environments in the country. The SARB's Prudential Authority, the FSCA and the POPIA Information Regulator each have specific requirements. Managing all three simultaneously, with an IT team that is not the size of one of the Big Four banks, is the practical challenge that few regulatory frameworks acknowledge directly.
975
976**The structure of the SARB's cyber resilience framework**
977
978The SARB's approach to cyber resilience is aligned with the NIST Cybersecurity Framework, organised around five functions: Identify, Protect, Detect, Respond and Recover.
979
980Under Identify, banks must demonstrate that they have a current, comprehensive inventory of their technology assets, an understanding of the cyber risks those assets present and a governance structure that makes someone accountable for each risk.
981
982Under Protect, the requirements cover access controls (including multi-factor authentication for privileged accounts), encryption, network security architecture, patch management and the training programme that ensures staff understand their cyber obligations. The Protect function also covers third-party risk management: the assessment and contractual management of suppliers who have access to the bank's technology environment. For a mid-tier bank with multiple fintech integrations, payment processors and cloud providers, third-party risk management is often the most resource-intensive Protect requirement.
983
984Under Detect, banks must demonstrate continuous monitoring capability: the ability to identify abnormal activity in their environment in near real-time. This typically requires a SIEM platform that aggregates log data from across the environment and generates alerts for defined threat indicators. The SIEM requirement, and the analyst capacity to act on its alerts, is where most mid-tier banks are most stretched.
985
986Under Respond, banks must have a documented, practised incident response plan that covers the complete lifecycle from detection through containment, eradication and recovery. The plan must be tested: a tabletop exercise that walks through a realistic scenario is the minimum evidence expected. An untested plan is treated as no plan.
987
988Under Recover, the requirements focus on business continuity and disaster recovery: the ability to restore critical systems within defined recovery time objectives, with tested and documented evidence of the restoration capability.
989
990**Where the documentation gap typically appears**
991
992When Sourceworx conducts a cyber security assessment for a South African financial institution, the finding that appears most consistently is not a missing control. It is a missing evidence trail.
993
994What does not exist, in the form the SARB's self-assessment requires, is the organised documentation that proves these controls are working as intended: the access review logs showing that privileged access rights were reviewed and confirmed quarterly; the vulnerability scan reports with remediation dates; the incident response exercise records; the third-party risk assessments for the payment processor that processes card transactions; the business continuity test results from the last financial year.
995
996Building the documentation is not technically complex. It requires a governance discipline: the commitment to document what is done, to retain what is documented and to organise it in a way that is retrievable at assessment time.
997
998**The SOC question for mid-tier banks**
999
1000The SARB's monitoring requirements create a practical challenge for mid-tier banks that do not have the scale to justify a fully staffed in-house Security Operations Centre.
1001
1002A managed SOC provides the same detection and response capability at a fraction of the in-house cost. The SARB's framework does not require in-house SOC capability. It requires demonstrable monitoring capability. A well-documented managed SOC arrangement satisfies that requirement.
1003
1004Sourceworx operates a 24/7 SOC with Fortinet-based monitoring infrastru
1004cture. Every alert is triaged by analysts who understand the South African financial services threat landscape and the regulatory context in which it sits.
1005
1006Book a free Security Gap Assessment and find out where your environment stands against the SARB framework.`},{id:"fsca-cpd-evidence-management-south-africa",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/b437f0192_generated_image.png",vertical:"Financial Services",service:"Software Development",tag:"Software and Automation",tagColor:"midnight",title:"FSCA CPD Evidence Management: The Problem Every Financial Services Compliance Manager Knows About and Few Have Solved",excerpt:"FSCA CPD compliance requires year-round evidence management, but most South African financial advisers still compile it in the weeks before the deadline. Here is what the technology solution looks like.",readTime:"8 min read",date:"June 2026",author:"Nikhil Ravi",cta:"Book a free Digital Clarity Session",ctaPath:"/contact",body:`Under the FAIS Act 37 of 2002 and FSCA Guidance Note 7 of 2018, financial services providers must ensure that key individuals and representatives maintain a minimum of six continuing professional development hours per year, with documented evidence of completion. Most compliance managers spend between two and four weeks per year compiling this evidence manually.
1007
1008There is a phrase we hear regularly when we speak to compliance managers at South African financial services firms: "controlled panic every February."
1009
1010The FSCA's CPD submission deadline creates it. The FAIS Act 37 of 2002 requires financial services providers to ensure their key individuals and representatives complete continuing professional development: a minimum of six hours per year under FSCA Guidance Note 7 of 2018. The evidence of that completion must be available for regulatory review. And in most South African financial services businesses, the evidence is not maintained throughout the year in a form that is ready for regulatory review. It is assembled in the weeks before the deadline.
1011
1012The assembly process is the controlled panic. Chasing advisers for certificates of completion. Following up on programmes that were completed but not documented. Reconciling records across email threads, WhatsApp messages and shared drives. Formatting the submission. Correcting errors identified during the final review. Resubmitting.
1013
1014It does not have to work this way.
1015
1016**What the FSCA actually requires**
1017
1018The CPD obligation under the FAIS Act has three components. First, the hours requirement: key individuals and representatives must complete a minimum of six CPD hours annually. Second, the competency requirement: CPD is not purely about hours. The FSCA expects that CPD activities are relevant to the adviser's product categories and maintain or improve their competence. Third, the documentation requirement: evidence of CPD completion must be retained and available for FSCA review.
1019
1020The challenge is that the evidence is generated across multiple CPD providers, in multiple formats, over the course of a year and needs to be consolidated into a submission-ready record for each registered individual at a defined point in the calendar.
1021
1022**Why the spreadsheet solution fails**
1023
1024Most South African financial services firms track CPD in a shared spreadsheet. The spreadsheet fails for three reasons. It is dependent on timely, accurate self-reporting by advisers. It is not scalable: for a firm with two hundred advisers across multiple regions, the manual process breaks down. And it does not generate submission-ready evidence. The spreadsheet is a tracking tool. Converting it into a submission requires a separate process: extracting the data, formatting it, attaching the certificates, checking for gaps, chasing missing items. This is the February panic, and it is structural: it will repeat every year the spreadsheet is the system.
1025
1026**What an automated CPD management system looks like**
1027
1028The technology solution to the CPD evidence problem has three components.
1029
1030A learning management system (LMS) that delivers or records CPD activities and captures completion evidence automatically. EDVantage, the LMS Sourceworx has developed on the Microsoft Teams platform, does this natively. When an adviser 
1030completes a CPD activity through the platform, the completion is recorded with a time stamp, the evidence is stored in the adviser's record and the hours are credited automatically.
1031
1032A real-time compliance dashboard that shows the compliance manager, at any point in the year, the CPD status of every registered adviser. The dashboard replaces the February panic with a continuous view that allows intervention early in the year when it is easy, rather than in February when it is urgent.
1033
1034An automated notification workflow that sends advisers reminders when they fall behind the target pace for the year and sends the compliance manager an alert when an adviser drops into a risk status.
1035
1036**The B-BBEE skills development connection**
1037
1038The same evidence management problem exists for B-BBEE Element 6 (Skills Development) verification. An LMS that captures demographic data at registration and tracks completion and spend automatically produces the B-BBEE evidence as a natural output of the training programme. The compliance and B-BBEE evidence problems have the same technology solution.
1039
1040Book a free Digital Clarity Session to see how EDVantage and Power BI address the CPD evidence management challenge.`},{id:"mfma-section-72-automation-south-african-municipalities",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/9e24f4ee9_generated_image.png",vertical:"Municipalities and Government",service:"Software Development",tag:"Software and Automation",tagColor:"midnight",title:"MFMA Section 72: Why South African Municipalities Are Still Compiling It Manually and What Changes That",excerpt:"MFMA Section 72 requires a mid-year budget assessment due 25 January every year. Most South African municipalities compile it manually, under time pressure, with risk of error. Here is what the automated alternative looks like.",readTime:"8 min read",date:"June 2026",author:"Nikhil Ravi",cta:"Speak to our public sector team",ctaPath:"/contact",body:`MFMA Section 72 mid-year assessments are due to National Treasury and the relevant provincial treasury by 25 January each year, within 25 days of the 31 December mid-year. Most municipal finance teams spend between two and four weeks preparing the assessment manually, drawing on data from multiple systems that do not integrate with each other.
1041
1042The Municipal Finance Management Act 56 of 2003 imposes a reporting obligation that National Treasury calls the mid-year budget and performance assessment. Most people in municipal finance know it simply as Section 72.
1043
1044The assessment is due by 25 January every year. It must be submitted to the accounting officer, the mayor or executive committee, the relevant provincial treasury and National Treasury simultaneously. It must include a performance review of the municipality's actual performance against the budget for the first half of the financial year, a revised projection for the second half, an assessment of service delivery performance and remedial action plans for any material underspending or revenue shortfalls identified.
1045
1046For a local municipality or district municipality with limited finance staff, multiple systems that do not talk to each other and data that requires manual extraction and reconciliation, the two weeks before 25 January are among the most pressured of the municipal finance calendar.
1047
1048**Why the manual preparation problem is structural**
1049
1050The root of the manual preparation problem is not a skills shortage. It is a data architecture problem. The data needed for a Section 72 assessment lives in multiple places: the municipal financial system (typically SAP Municipal, Accpac or a similar platform), the performance management system (where SDBIP targets and actuals are captured), the project management system (for capital expenditure tracking) and in some cases Excel-based subsidiary records that feed the primary system.
1051
1052None of these systems, in most South African municipalities, was designed to produce a Section 72-format output automatically. The calculation requirements are not simple. The assessment requires actual versus budget comparisons at a granular level, by vote, by project, by service delivery indicator, year-end projections based on the actual burn rate to date and explanations for variances above a defined threshold. All of this, from raw system exports to formatted submission, is done manually in most municipalities.
1053
1054**What FiscalFocus addresses**
1055
1056FiscalFocus is Sourceworx's financial reporting tool for South African municipalities, built specifically around the MFMA reporting cycle. It addresses the Section 72 preparation problem by connecting to the municipal financial system, extracting the relevant data, applying the MFMA-required calculations and generating the assessment in the prescribed National Treasury format.
1057
1058FiscalFocus does not ask staff to re-enter data. It reads the data from the system where it already exists, applies the Section 72 logic and produces the output. The finance team reviews and approves the output. They do not produce it.
1059
1060This design means that the Section 72 assessment can be produced in hours rather than weeks, and the risk of manual error in the calculation is replaced by a documented, auditable automated process.
1061
1062**The AG finding connection**
1063
1064The AGSA's local government audit outcomes consistently identify material misstatements in financial statements as a leading cause of qualified and adverse audit opinions. A significant proportion of those misstatements originate in the manual compilation process: data that was correctly captured in the source system but was incorrectly extracted, reconciled or formatted in the preparation of the submission.
1065
1066An automated, source-connected reporting process reduces this category of error. It does not eliminate all sources of financial reporting error: it does not correct errors in the underlying system data. But it eliminates a documented and consistent category of error. That is a meaningful contribution to a cleaner audit outcome.
1067
1068Speak to our public sector team about FiscalFocus and the MFMA reporting automation it provides.`},{id:"ag-it-audit-findings-local-government-south-africa",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/eac8188d0_generated_image.png",vertical:"Municipalities and Government",service:"Managed Cybersecurity",tag:"Cybersecurity",tagColor:"azure",title:"The IT Audit Finding That Keeps Appearing in South African Local Government and How to Prevent It",excerpt:"The AGSA's local government audit outcomes consistently flag IT governance findings that repeat across municipalities year after year. Here is what they are, why they persist and how to address them.",readTime:"8 min read",date:"June 2026",author:"Masande Dyasi",cta:"Speak to our public sector team",ctaPath:"/contact",body:`In the AGSA's 2022/23 local government audit outcomes, only 34 of South Africa's 257 municipalities received clean audit opinions. IT governance weaknesses, including inadequate IT general controls, poor access management and insufficient IT disaster recovery provisions, featured across the majority of qualified, adverse and disclaimed opinions.
1069
1070The Auditor-General's annual local government audit outcomes are a document most South African municipal officials are very familiar with, and not happily. The findings that appear year after year are not new findings. They are the same findings, identified in the same municipalities and in new ones, repeated across financial years because the root causes are not structural enough to resolve without deliberate organisational change.
1071
1072The IT findings are a specific subset of the overall audit findings, and they have a consistent character. They are not findings about technology failures. They are findings about governance: about the absence of controls, documentation and processes that the AGSA uses COBIT (Control Objectives for Information and Related Technology) to evaluate.
1073
1074**The category of finding that appears most consistently**
1075
1076The IT general controls (ITGCs) finding is the most common IT-related audit qualification in South African local government. ITGCs are the foundational controls over the IT environment that provide assurance that the financial data produced by IT systems is reliable.
1077
1078The AGSA evaluates four categories of ITGCs: access management, programme change management, computer operations (including backup and recovery) and IT security.
1079
1080The access management finding is the most common. It takes several specific forms: inappropriate access rights (users with system access that exceeds what their role requires, including in some cases former employees whose access was not revoked at termination); shared system credentials (multiple people using the same login, making it impossible to attribute actions in the system to specific individuals); and lack of privileged access review.
1081
1082The programme change management finding involves changes made to financial systems without a formal change management process: no approval, no testing, no documentation of what was changed and why.
1083
1084The backup and recovery finding involves either the absence of tested backup procedures or the absence of documentation that backups have been tested. A municipality that performs backups but cannot produce evidence that the backups have been restored successfully is in a worse position at audit time than a municipality with a tested and documented recovery process.
1085
1086**Why these findings persist**
1087
1088The findings persist because they require sustained governance discipline to resolve, and governance discipline is difficult to maintain in municipal environments characterised by staff turnover, capacity constraints and competing operational demands.
1089
1090Access management requires a process: when a person's role changes or they leave the organisation, their system access must be reviewed and adjusted or revoked. In a municipality where the IT function is staffed by one or two people and is managing day-to-day operational demands simultaneously, the access review process may not happen until an audit flags it. Then it happens once, as a remediation measure, and the cycle repeats.
1091
1092**What sustainable resolution looks like**
1093
1094The difference between municipalities that resolve IT general control findings and those that do not is not usually a technology difference. It is a process formalisation difference.
1095
1096Sustainable resolution of access management findings requires three things: a joiner/mover/leaver process that is integrated with HR and the IT function; a quarterly access review schedule that produces a documented record of what was reviewed, who approved it and what changes were made; and a system configuration that enforces the principle of least privilege.
1097
1098Sustainable resolution of backup and recovery findings requires documented test procedures and a scheduled testing calendar, with results recorded, signed off by the IT manager and retained for audit purposes. The test needs to happen. The evidence that it happened needs to exist.
1099
1100**The B-BBEE credential in the municipal procurement context**
1101
1102For accounting officers and municipal managers selecting IT support providers: Sourceworx is a verified Level 1 B-BBEE contributor, the highest rating available under the B-BBEE codes. Under the Preferential Procurement Policy Framework Act, Level 1 suppliers deliver the maximum preference points available in any procurement scoring.
1103
1104Speak to our public sector team about IT governance support for MFMA-compliant municipal environments.`},{id:"ot-it-convergence-cybersecurity-south-africa-mining",cover:Oc.mining_sw,vertical:"Mining and Industry",service:"Managed Cybersecurity",tag:"Cybersecurity",tagColor:"azure",title:"OT/IT Convergence in South African Mining: The Cybersecurity Risk Most Operations Have Not Addressed",excerpt:"The convergence of operational technology and information technology in South African mining creates cybersecurity risks that most operations have not assessed. Here is what OT/IT security actually involves.",readTime:"9 min read",date:"June 2026",author:"Masande Dyasi",cta:"Speak to our mining technology team",ctaPath:"/contact",body:`A cybersecurity incident that reaches an OT (operational technology) network in a mining environment is not just a data breach. It is a potential production stoppage, a safety system compromise and a MHSA (Mine Health and Safety Act 29 of 1996) liability simultaneously. The average time to detect a cyberattack in an industrial environment is 197 days, significantly longer than in corporate IT environments.
1105
1106The cybersecurity conversation in South African mining has historically been an IT conversation. Protect the corporate network. Secure the email system. Manage access to the ERP. Control the laptops.
1107
1108This is the right conversation. It is also the wrong one to be having exclusively.
1109
1110The more consequential risk in most modern South African mining operations is not the corporate IT environment. It is the operational technology environment: the SCADA systems that manage production processes, the PLCs that control conveyor systems and processing equipment, the DCS platforms that manage concentrator operations and the historian databases that aggregate production data. These systems are increasingly connected to the corporate IT network, and the corporate IT network is connected to the internet.
1111
1112**What OT is and why its security characteristics are different**
1113
1114Operational technology is the hardware and software that monitors and controls physical processes. In a mining context, this includes SCADA systems that aggregate data from across a mining complex and allow operators to monitor and control processes from a central point; PLCs (Programmable Logic Controllers) that execute the specific control logic for individual pieces of equipment; DCS (Distributed Control Systems) used in continuous process environments; and historian platforms that record process data for optimisation and reporting.
1115
1116OT systems have security characteristics that are fundamentally different from IT systems. They were designed for reliability and real-time performance, not for security. Many were designed decades ago, when connectivity was not an assumption, and run operating systems that are no longer supported and cannot be patched without significant operational disruption.
1117
1118This creates an environment where the standard IT security response, patch the vulnerability and update the softw
1118are, is often not operationally feasible. The security architecture has to compensate for the vulnerability at the network level rather than at the endpoint level.
1119
1120**The specific risks created by OT/IT convergence**
1121
1122A direct network path from the corporate IT environment to an OT network means that a ransomware infection that enters through a phishing email in the corporate environment has a potential path to production systems. The threat actor does not need to specifically target the OT environment. They target the easiest point of entry, which is almost always the corporate IT environment, and move laterally until they reach the most valuable target, which in a mining context may be the production control systems.
1123
1124The operational consequence is not a data breach. It is the shutdown of production systems while the infection is investigated, contained and eradicated. In a gold or platinum mining context, where production per shift has a direct rand value, the cost of a production stoppage is immediate and quantifiable.
1125
1126The safety consequence is also real. Safety systems in a mining environment, including gas detection, winding systems and ventilation controls, may run on the same OT network as production systems. A cyberattack that disrupts OT network availability does not respect the boundary between production systems and safety systems. This is the MHSA liability dimension that most cyber risk assessments have not yet incorporated.
1127
1128**What the ISA/IEC 62443 standard specifies**
1129
1130The ISA/IEC 62443 suite of standards is the international reference for industrial cybersecurity. It specifies a security architecture for OT environments based on zones and conduits: the OT network is divided into security zones based on the criticality and function of the systems within them, and communication between zones is channelled through conduits that are explicitly defined, c
1130ontrolled and monitored.
1131
1132Sourceworx designs OT/IT security architectures using Fortinet's industrial security platform. The starting point is always an OT security assessment: a structured review of the current network architecture, OT asset inventory, access controls and the communication paths between OT and IT. We do not prescribe a solution before we understand the environment.
1133
1134Speak to our mining technology team about an OT security assessment for your operation.`},{id:"remote-mine-site-it-management-south-africa",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/1b548f869_generated_image.png",vertical:"Mining and Industry",service:"IT Managed Services",tag:"Managed IT",tagColor:"azure",title:"Remote Mine Site IT Management: The Production Cost of Distance and How to Manage It",excerpt:"IT failures at remote South African mine sites cost more than the repair: they cost production. Here is how remote monitoring and management changes the risk calculation for mine site operations.",readTime:"8 min read",date:"June 2026",author:"Frans Skhosana",cta:"Speak to our mining technology team",ctaPath:"/contact",body:`South Africa's platinum mining belt in Limpopo and Mpumalanga sits between 300 and 500 kilometres from Johannesburg. An IT fault that requires an on-site engineer in this environment can take 24 to 48 hours to resolve from the moment of detection. During that window, every connected production system: shift reporting, production data, SCADA monitoring and safety communications, that depends on the failed component is degraded or offline.
1135
1136The distance problem in South African mining IT is straightforward and significant. Most of the country's mining operations are hundreds of kilometres from the metropolitan centres where IT support resources are concentrated. When an IT system fails at a remote mine site, the resolution timeline is governed not by the technical complexity of the problem but by the time it takes to get an engineer to site.
1137
1138The reactive support model, detect the failure, dispatch an engineer and resolve on-site, is appropriate for a Johannesburg office where an engineer can be on site in two hours. It is not appropriate for a mine in Limpopo where the same response takes twelve to twenty-four hours and the production impact accumulates at a rate determined by what the failed system was supporting.
1139
1140This is the production cost of distance, and it is a cost that remote monitoring and management (RMM) tools were specifically designed to address.
1141
1142**What remote monitoring and management covers**
1143
1144RMM is the category of tooling that allows IT systems to be monitored, managed and in many cases repaired from a remote location, without a physical presence on site. For a South African mine site, RMM provides four categories of capability.
1145
1146Continuous monitoring: every connected device on the mine site IT network (servers, workstations, network switches, wireless access points, routers and storage systems) is visible in real time on the RMM dashboard. An alert fires when a device shows degraded performance or connectivity before it fails completely.
1147
1148Remote diagnosis: when an alert fires, the IT support team can connect to the affected device remotely, pull the relevant logs, run diagnostic commands and in many cases identify the root cause and deploy the fix without leaving the office.
1149
1150Patch management: software patches, security updates and firmware updates are deployed to all managed devices on a defined schedule, without requiring a site visit. At a remote mine site, this is the difference between a patching programme that is consistently maintained and one that falls months or years behind because the logistics of on-site patch deployment are prohibitive.
1151
1152Automated response: specific alert conditions trigger automated responses before the support team is even notified. A disk filling beyond 85% triggers an automated cleanup of defined file categories. A service that has stopped triggers an automatic restart attempt.
1153
1154**The RealWear solution for on-site interventions that cannot be done remotely**
1155
1156Some mine site IT interventions cannot be performed remotely. Hardware replacement, physical cable faults and equipment installations all require someone to be physically present at the device.
1157
1158For these situations, RealWear head-mounted devices provide a different kind of remote capability. A mine site technician 
1158wearing a RealWear device can connect via the headset's camera and microphone to a remote expert in Johannesburg, who sees exactly what the technician sees and can provide real-time guided instructions, hands-free, allowing the technician to work with both hands while receiving guidance. For situations where the physical intervention is within the technician's capability but the diagnosis or procedure requires expert knowledge, this removes the expert travel time entirely.
1159
1160Sourceworx implements both RMM tooling and RealWear devices for South African mining clients. The combination addresses the full range of remote site IT management requirements: automated monitoring and management for software-resolvable issues and guided expert support for hardware interventions.
1161
1162Speak to our mining technology team about remote monitoring and management for your mine site.`},{id:"seta-evidence-management-south-africa-technology",cover:Oc.edu_cyber,vertical:"Higher Education",service:"Software Development",tag:"Software and Automation",tagColor:"midnight",title:"SETA Evidence Management: The Administrative Burden That Skills Development Technology Can Resolve",excerpt:"SETA evidence management costs South African training providers weeks of manual work before every moderation. Here is what the technology alternative looks like and what it replaces.",readTime:"8 min read",date:"June 2026",author:"Nikhil Ravi",cta:"Request a demo of EDVantage",ctaPath:"/contact",body:`South Africa has 21 SETA (Sector Education and Training Authority) sectors operating under the NSDS IV (National Skills Development Strategy IV, 2022-2030). The evidence requirements for SETA-registered learning programmes, including learner portfolios, facilitator observation records, assessment evidence and grant claim documentation, represent between two and six weeks of administrative work per moderation cycle for most training providers without an automated evidence management system.
1163
1164The pattern is consistent enough to be described as industry-standard. A SETA moderation visit is announced three to four weeks in advance. The training coordinator begins compiling the evidence package: collecting learner portfolios from the filing system, reconciling completion records against the enrolment register, checking that observation records are signed and dated by the relevant facilitator, confirming that assessment results match the learner management system records and formatting all of it in the structure the SETA moderator expects.
1165
1166The work takes weeks. The urgency is real. And when the moderator arrives, the evidence package either holds together or it does not.
1167
1168This is not a competence problem. It is an architecture problem. The evidence exists: learning happened, assessments were conducted, facilitators observed and recorded. The evidence is simply not in a form that is retrievable, organised and complete without a significant manual effort to make it so.
1169
1170**What the SETA evidence requirement actually covers**
1171
1172Under the National Qualifications Framework (NQF) and the QCTO frameworks that govern SETA-registered qualifications, the evidence a training provider must produce for moderation includes several categories.
1173
1174Learner enrolment and demographic records: confirmed registration on the SETA system, demographic classification (required for HDSA tracking and B-BBEE Element 6 evidence) and contact details.
1175
1176Formative assessment evidence: the assessment activities conducted during the programme, with the learner's response and the assessor's evaluation, dated and signed. Each assessment activity must be attributable to a specific unit standard or competency outcome.
1177
1178Summative assessment evidence: the final assessment that determines competency, with the assessment instrument, the learner's responses, the assessor's judgement and the evidence that the assessor is registered with the SETA or has the appropriate assessor qualification.
1179
1180Facilitator observation records: where the learning includes practical components, the facilitator's record of observing the learner demonstrate the required competencies, signed and dated.
1181
1182All of this, for every learner, for every programme, in a retrievable and organised format.
1183
1184**Why manual evidence management fails at scale**
1185
1186For a TVET college with 200 learners across five SETA-registered programmes, the evidence management requirement is substantial. The total volume of individual evidence items may reach several thousand documents. Managing this volume manually, in filing cabinets or a shared drive without a consistent naming and retrieval convention, produces the moderation preparation problem: everything exists somewhere, but finding everything for every learner and confirming it is complete takes more time than is reasonably available.
1187
1188The failure mode is well-known: the moderation visit reveals gaps in the evidence that the training provider was not aware of. The moderator cannot confirm competency without the evidence. Grant claims may be disputed. Learners who completed the programme successfully may not receive the qualification they earned because the evidence was not in order.
1189
1190**What an LMS built for South African compliance does differently**
1191
1192The design principle of an LMS built for South African SETA compliance is that evidence is captured at the point of the activity, not assembled retrospectively.
1193
1194When a learner submits an assessment through the LMS, the submission is time-stamped, linked to the specific unit standard or competency outcome, associated with the learner's registered profile and stored in the learner's evidence record. The evidence package for a moderation visit is not assembled from these records. It is generated from them: a compilation of all evidence for all learners in a programme, in the required structure, with all attribution and linking intact. The process that currently takes weeks of manual work takes a report generation.
1195
1196EDVantage, Sourceworx's LMS built on Microsoft Teams, follows this design principle. It was built for South African compliance requirements: SETA evidence, B-BBEE skills development tracking, FSCA CPD and NQF alignment, not adapted from a platform built for a market where these requirements do not exist.
1197
1198Request a demo of EDVantage and see what automated SETA evidence management looks like in practice.`}
1198,{id:"tvet-campus-network-design-south-africa-assessments",cover:Oc.edu_it,vertical:"Higher Education",service:"Cabling and Small Site Work",tag:"Network Infrastructure",tagColor:"midnight",title:"Campus Network Design for South African TVET Colleges: What Reliable Connectivity During Assessments Actually Requires",excerpt:"Online assessments at South African TVET colleges require a network designed for high-density load, load-shedding resilience and 802.1X access control. Here is what that actually means in practice.",readTime:"8 min read",date:"June 2026",author:"Jessica Buck",cta:"Book a free campus Connectivity Audit",ctaPath:"/contact",body:`South Africa has 50 public TVET colleges operating across 264 campuses (DHET data). Online assessment delivery requires a minimum of 2 to 4 Mbps of dedicated bandwidth per student for simultaneous assessment access and submission, plus additional capacity for system overhead. A 120-student assessment venue requires a minimum of 240 to 480 Mbps of available wireless throughput: a specification that most campus Wi-Fi systems built before 2020 cannot sustain.
1199
1200The most visible IT failure in a South African TVET college is the one that happens during an assessment.
1201
1202Students cannot connect to the online assessment platform. The system loads slowly and times out. Students in the back half of the examination hall cannot see their question papers. The practical assessment scheduled for the afternoon has to be rescheduled because the network collapsed during the morning session and nobody is confident it has recovered.
1203
1204These failures are not random. They are predictable consequences of a network infrastructure that was designed for a different load profile than online assessment delivery creates. And they are preventable.
1205
1206**Why assessment loads are different from everyday network loads**
1207
1208A campus network running normal daily operations manages a mix of traffic types at variable density. Students browse the internet from distributed locations across campus. Staff access shared drives and email. The aggregate load is significant, but it is distributed across time and space.
1209
1210An online assessment session concentrates the load in a way that is fundamentally different. A hundred and twenty students in an examination hall attempt to load the same assessment platform simultaneously, during a defined window, from a fixed location. They all need connectivity at the same moment. The network must sustain that concurrent load for the duration of the assessment, typically two to three hours, without degradation that would compromise the validity of a student's assessment.
1211
1212The airtime contention problem becomes severe when more than thirty to forty devices are connected to a single access point and all are actively transmitting and receiving simultaneously.
1213
1214Wi-Fi 6 (802.11ax), the current standard, introduces technologies specifically designed for high-density environments: OFDMA (Orthogonal Frequency Division Multiple Access) that allows an access point to serve multiple clients in the same transmission, and BSS Colouring that reduces interference from neighbouring access points. For an assessment venue with 120 students, Wi-Fi 6 access points with appropriate density and placement sustain the concurrent load that Wi-Fi 5 cannot.
1215
1216**The 802.1X authentication requirement for assessment environments**
1217
1218Online assessments introduce a specific access control requirement that everyday campus Wi-Fi does not: the network must ensure that only registered, authenticated students access the assessment environment during the assessment window and that it prevents access to materials or systems outside the defined assessment boundaries.
1219
1220802.1X is the IEEE standard for port-based network access control. It requires devices connecting to the network to authenticate against a RADIUS server before receiving network access. In an assessment context, 802.1X allows the network to grant students access to the assessment platform while restricting access to internet browsing, external storage services and communication applications during the assessment period.
1221
1222Most South African TVET colleges do not have 802.1X in place on their campus networks. The consequence is that the network access controls during assessments are process-based rather than technical: a student who violates the assessment rules by accessing external resources is caught by invigilation, not by the network. Technical controls are more reliable than process controls in a high-stakes assessment environment.
1223
1224**The load-shedding dimension**
1225
1226South African TVET colleges experienced the full impact of load-shedding on their assessment programmes during 2022 and 2023, when extended load-shedding schedules made it impossible to rely on mains power for the duration of an assessment session.
1227
1228The IT infrastructure requirements for assessment delivery during load-shedding are specific: UPS capacity for active network equipment that bridges the expected outage duration, and a generator connection for the IT infrastructure if the assessment session is expected to extend beyond UPS battery life.
1229
1230An under-specified UPS that runs for twenty minutes during a two-hour assessment creates the same problem as no UPS at all.
1231
1232Sourceworx designs campus network infrastructure for South African TVET colleges with load-shedding resilience as a stated design requirement, not an afterthought.
1233
1234Book a free campus Connectivity Audit and receive a Site Readiness Report tailored to assessment infrastructure requirements.`},{id:"south-africa-it-services-market-2025-growth-opportunities",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/fc90eaf56_generated_image.png",vertical:"All Verticals",service:"Cross-cutting",tag:"Industry Insight",tagColor:"midnight",title:"South Africa's IT Services Market in 2025: Where the Growth Is and Who Has Been Left Behind",excerpt:"South Africa's IT services market is growing at 9.1% annually. Understanding where the growth is concentrated and where demand is underserved matters for every organisation making technology decisions in 2025.",readTime:"9 min read",date:"June 2026",author:"Sizwe Sourceworx",cta:"Speak to our team",ctaPath:"/contact",body:`South Africa's IT services market was valued at over R120 billion in 2025, growing at 9.1% annually, faster than almost any other sector in the South African economy (Mordor Intelligence, 2025). The growth is not evenly distributed. Financial services, government modernisation and mining technology are the three sectors generating the most demand, and the capacity to serve that demand remains concentrated among a small number of providers.
1235
1236The South African IT services market is growing faster than most people in the sector appreciate. But the number does not tell the more important story about where that growth is concentrated and where the supply-side gaps are largest.
1237
1238Seventeen years of operating in this market has given Sourceworx a particular vantage point on that question. This is not an analyst's view of the market. It is a practitioner's view, with all the specificity and the limitations that implies.
1239
1240**Where the growth is concentrated**
1241
1242Three sectors account for the majority of technology investment growth in South Africa right now: financial services, government modernisation and mining and industrial technology.
1243
1244Financial services technology investment is driven by regulatory pressure and competitive necessity simultaneously. The SARB's cyber resilience requirements, POPIA's compliance obligations, the FSCA's technology expectations for financial services providers and the competitive pressure from digital-native challengers are all creating sustained demand for cybersecurity capability, managed IT infrastructure, data management and software development.
1245
1246Government modernisation is the most complex growth category. The demand is real: 255 identified digital government services, the SA Connect broadband rollout, SITA reform and the fiscal pressure on municipalities to improve financial management under MFMA and the AG's accountability framework. But for providers with the right credentials, Level 1 B-BBEE, relevant sector experience and PPPFA compliance, the demand is substantive.
1247
1248Mining and industrial technology investment is being driven by two concurrent pressures: operational efficiency imperatives as commodity margins compress and the OT/IT convergence challenge as older mining operations connect increasingly digitised operational environments to enterprise networks without the security architecture to do it safely.
1249
1250**Where supply is weakest**
1251
1252The supply-side gap that Sourceworx is most focused on is in the tier of organisations below the enterprise: the financial advisory firm with forty advisers, the TVET college with three campuses, the professional services business with sixty staff, the mining contractor with remote site operations and no in-house IT capability.
1253
1254These organisations have technology needs that are growing as fast as their larger counterparts. They face the same POPIA obligations, the same cybersecurity threat landscape and the same operational efficiency imperative. But the managed IT, cybersecurity and s
1254oftware development market has historically organised itself around larger clients, leaving a significant gap in the availability of quality IT services for smaller organisations.
1255
1256**The specific context of load-shedding and its aftermath**
1257
1258South Africa's extended load-shedding crisis has changed the technology investment priorities of South African organisations in ways that are only partly visible in aggregate market data.
1259
1260The demand for UPS and generator integration into IT infrastructure design has grown significantly. The demand for cloud migration, moving on-premises infrastructure to hosted environments that are not affected by local power instability, has accelerated. The interest in solar-backed IT infrastructure, particularly in remote and industrial environments, has increased.
1261
1262Load-shedding has also changed the tolerance for IT downtime. Organisations that experienced multiple unplanned IT outages during high load-shedding periods are more receptive to the business case for managed IT services with defined SLAs and proper UPS and generator integration.
1263
1264**The B-BBEE imperative**
1265
1266Sourceworx holds a verified Level 1 B-BBEE status, the highest available. In public sector procurement evaluated under the Preferential Procurement Policy Framework Act, a Level 1 supplier delivers the maximum preference points. In private sector procurement where B-BBEE supplier development obligations apply, a Level 1 technology partner contributes to the procuring organisation's own scorecard.
1267
1268The technology capability matters. So does the B-BBEE profile. Sourceworx delivers both.
1269
1270**What 2026 and beyond looks like from where we sit**
1271
1272The market dynamics that have driven 9.1% growth are not diminishing. Regulatory pressure on cybersecurity and data protection is increasing. The operational efficiency imperative in manufacturing and mining is deepening. The government modernisation agenda is creating sustained demand for MFMA automation and digital citizen engagement. The SMME sector, which accounts for approximately 34% of GDP and 98% of registered businesses, remains significantly underserved by quality IT providers.
1273
1274Sourceworx's position in this market is specific and intentional: a 17-year South African technology firm with ISO 9001, 27001 and 20000 certifications, Level 1 B-BBEE status, national field coverage and the specialist depth in managed IT, cybersecurity, network infrastructure and software development that the five target verticals require.
1275
1276We do not compete for all of the market. We compete for the part of the market where we have specialist depth and where our clients benefit specifically from a partner that understands South African conditions without being told about them.
1277
1278Speak to us about where your organisation sits in the South African technology landscape and what the right next step looks like.`}],e0e={"Managed IT":"bg-azure/10 text-azure",Network:"bg-midnight/10 text-midnight",Cybersecurity:"bg-red-50 text-red-600","Software & Automation":"bg-indigo-50 text-indigo-600"};function t0e(){const e=ob.slice(0,3);return u.jsx("section",{className:"py-20 lg:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-4 mb-12",children:[u.jsx(dr,{label:"Insights",title:"Advice we would give you before you signed anything.",description:"Written by the people who do the work, for the decisions our clients are weighing up right now."}),u.jsxs(Ft,{to:"/insights",className:"flex-shrink-0 flex items-center gap-1.5 text-sm font-bold text-azure hover:text-sky transition-colors",children:["All articles ",u.jsx(_n,{className:"w-4 h-4"})]})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:e.map((t,n)=>u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},children:u.jsxs(Ft,{to:`/insights/${t.id}`,className:"group flex flex-col h-full bg-white rounded-2xl border border-slate/10 hover:shadow-xl hover:shadow-azure/8 hover:border-azure/20 transition-all duration-400 overflow-hidden",children:[t.cover&&u.jsx("div",{className:"h-44 overflow-hidden bg-cloud",children:u.jsx("img",{src:t.cover,alt:"",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),u.jsxs("div",{className:"p-6 flex flex-col flex-1",children:[u.jsx("div",{className:"flex items-center gap-2 mb-3",children:u.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-full ${e0e[t.tag]||"bg-cloud text-slate"}`,children:t.tag})}),u.jsx("h3",{className:"text-sm font-heading font-extrabold text-midnight leading-snug group-hover:text-azure transition-colors flex-1",children:t.title}),u.jsx("p",{className:"text-xs text-slate mt-2.5 leading-relaxed line-clamp-2",children:t.excerpt}),(()=>{const r=t.author&&Qm[t.author]||Hm;return u.jsxs("div",{className:"flex items-center gap-3 mt-5 pt-4 border-t border-slate/8",children:[r.image?u.jsx("img",{src:r.image,alt:r.name,className:"w-7 h-7 rounded-full object-cover object-top"}):u.jsx("div",{className:"w-7 h-7 rounded-full bg-azure/10 flex items-center justify-center flex-shrink-0",children:u.jsx("span",{className:"text-[10px] font-heading font-extrabold text-azure",children:r.name.charAt(0)})}),u.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate/50",children:[u.jsx("span",{className:"font-semibold text-midnight/70",children:r.name}),u.jsx("span",{children:"·"}),u.jsx(bs,{className:"w-3 h-3"}),t.readTime]})]})})()]})]})},t.id))})]})})}const fS=[{id:"ksd-microsoft-365",discipline:"IT Managed Services",year:"2019",sector:"Local Government",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/c68d7d330_generated_image.png",logo:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/48b3ea206_image.png",logoAlt:"King Sabata Dalindyebo Local Municipality",website:"https://ksd.gov.za/",cardTitle:"Microsoft Teams and Exchange Online for a local municipality",cardSummary:"Appointed by Microsoft under a Statement of Work, Sourceworx moved a local municipality off on‑premises Exchange and rolled out Teams across directorates in separate towns — sequencing tenant readiness, migration and governance before a single mailbox moved, then supporting adoption past go‑live.",cardStats:[{num:"~300",lbl:"Users on Teams"},{num:"~150",lbl:"Mailboxes migrated"},{num:"SOW",lbl:"Appointed by Microsoft"}],detailTitle:"Microsoft Teams and Exchange Online implementation for KSD Local Municipality",dek:"Appointed by Microsoft under a Statement of Work to move a local municipality off on‑premises Exchange and into Microsoft 365, including the adoption work that follows go‑live.",factPanel:[{k:"Client",v:"King Sabata Dalindyebo Local Municipality (KSD), OR Tambo District, Eastern Cape"},{k:"Sector",v:"Local government"},{k:"Year",v:"2019"},{k:"Appointed by",v:"Microsoft, under a formal Statement of Work"},{k:"Discipline",v:"IT Managed Services (Microsoft 365 and Azure)"},{k:"Engagement type",v:"Fixed scope implementation with a defined completion point"}],sections:[{heading:"The situation",paragraphs:["King Sabata Dalindyebo Local Municipality serves Mthatha and Mqanduli in the OR Tambo District of the Eastern Cape, and its administration is arranged across directorates that sit in separate buildings and separate towns. In 2019 the municipality was running email on an on‑premises Exchange environment and had no Microsoft Teams deployment in place across those directorates.","Microsoft appointed Sourceworx under a formal Statement of Work to deliver the implementation. The municipality’s IT Manager at the time worked directly with the Sourceworx delivery team through the course of the engagement, which meant that decisions about tenant configuration, licensing and the shape of the Teams environment were taken with the person who would own the environment afterwards sitting in the room."]}
1278,{heading:"Scope of work",listItems:["Rollout of Microsoft Teams to approximately 300 users across the municipality","Migration of approximately 150 mailboxes from on‑premises Exchange to Exchange Online","Tenant readiness assessment and tenant configuration","Firewall and DNS configuration to support the Microsoft 365 service endpoints","Licensing allocation and assignment","Governance planning covering the naming, ownership and lifecycle of Teams","Creation and structuring of Teams aligned to the municipality’s business units and directorates","Structured end‑user training and change management to support adoption after go‑live"]},{heading:"How the work was delivered",paragraphs:["Sourceworx sequenced the engagement so that tenant readiness, firewall and DNS configuration, and licensing were completed and verified before any mailbox was moved — meaning the migration itself ran against an environment that had already been proven. Mailbox migration then proceeded in tranches, with each tranche confirmed before the next was released.","The Teams environment was designed against the municipality’s existing directorate and business unit boundaries, so the collaboration structure matched the reporting lines and functional groupings the administration already used. Governance planning was completed at the same time — who could create a Team, how Teams and channels would be named, and what would happen to a Team once its work concluded — so the environment handed over came with the rules for keeping it tidy already written down."]},{heading:"Training and adoption",paragraphs:["The Statement of Work covered structured user training and change management alongside the technical build. Training addressed daily collaboration in Teams, working with a migrated mailbox in Exchange Online, and what the governance rules meant in practice for staff creating channels and sharing files. The adoption component was scoped to run past go‑live, so usage was supported after the delivery team had stepped back."]}],boundaryBox:{k:"Engagement boundary",p:"The work was contracted and delivered as a fixed scope implementation with a defined completion point. Sourceworx was not retained as the municipality’s ongoing managed service provider following handover."},closingSection:{heading:"Where this sits in the Sourceworx offering today",paragraph:"The KSD engagement sits inside IT Managed Services, specifically the Microsoft 365 and Azure practice, which now covers full tenant management, Azure workload governance, cost management and cloud security under a single service level agreement. Sourceworx carries ISO 9001, ISO 27001 and ISO 20000 certification, holds Level 1 B‑BBEE contributor status, and runs a 24‑hour Network and Security Operations Centre with national field service coverage — so a client who wants the migration and adoption work carried forward into a managed arrangement is onboarded onto a Gold, Silver or Bronze service level agreement at handover."},serviceTags:["Microsoft 365 & Azure","Tenant Management","Cloud Security","Managed IT Services"],railStats:[{num:"2019",lbl:"Year of engagement"},{num:"~300",lbl:"Users onto Microsoft Teams"},{num:"~150",lbl:"Mailboxes migrated to Exchange Online"},{num:"SOW",lbl:"Appointed by Microsoft"},{num:"EC",lbl:"Eastern Cape local government"}],railCredentials:[{num:"ISO",lbl:"9001 · 27001 · 20000"},{num:"L1",lbl:"B‑BBEE contributor"},{num:"24/7",lbl:"NOC / SOC coverage"}],anonymised:!1},{id:"sporting-federation-forensics",discipline:"Managed Cybersecurity",year:"2016–2018",sector:"Sport Governance",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/c879917fc_generated_image.png",cardTitle:"Independent forensic investigation for a national sporting federation",cardSummary:"Commissioned by executive leadership and internal audit to establish, on defensible evidence, whether sensitive information reaching the media had left the organisation’s own systems and devices — mobile forensics, mailbox analysis and a fully documented chain of custody, across several separate appointments.",cardStats:[{num:"3",lbl:"Years covered"},{num:"Multi",lbl:"Executive devices"},{num:"100%",lbl:"Chain of custody"}],detailTitle:"Independent digital and mobile forensic investigation for a national sporting federation",dek:"Commissioned by executive leadership and internal audit to establish, on defensible evidence, whether sensitive information reaching the media had left the organisation’s own systems and devices.",factPanel:[{k:"Client",v:"A national sporting federation (named client withheld)"},{k:"Sector",v:"Sport administration and governance"},{k:"Period",v:"2016 to 2018, across several separate appointments"},{k:"Commissioned by",v:"Executive leadership together with internal audit"},{k:"Discipline",v:"Managed Cybersecurity (Digital Forensics)"},{k:"Framing",v:"Governance and risk intervention"}],sections:[{heading:"The situation",paragraphs:["Between 2016 and 2018 the federation was operating under sustained media scrutiny and internal governance pressure, with sensitive information appearing in the public domain and no established basis on which to determine whether those disclosures had originated inside the organisation’s own systems and devices. Sourceworx was appointed on several separate occasions across that period, each time commissioned by executive leadership together with internal audit, and the work was framed from the outset as a governance and risk intervention that had to produce findings capable of surviving external 
1278challenge.","The appointment was made on an independent basis, since the internal IT function fell within the scope of the assessment and could not therefore be the body conducting it. Each appointment was authorised at executive and internal audit level before any acquisition began."]},{heading:"Scope of work",listItems:["Mobile device forensics across multiple members of the executive","Forensic analysis of Office 365 Exchange mailboxes","A structured assessment of whether the information disclosures originated from the federation’s systems or devices","Defensible written reporting for the use of executive leadership and internal audit"]},{heading:"Forensic method",paragraphs:["Every appointment followed formal forensic methodology. Evidence acquisition was performed under controlled conditions, each acquired image was cryptographically hashed so its integrity could be established at the point of collection and demonstrated at any later date, chain of custody was documented from acquisition through analysis to reporting, and findings were written to a standard that would hold if the matter travelled further than an internal report.","Because the work reached the devices of named senior individuals as well as the organisation’s Office 365 environment, the scope of each appointment was agreed in writing before any acquisition took place, and the boundary between what had been authorised for examination and what had not was recorded as part of the case file."]},{heading:"What the client received",paragraphs:["The deliverable in each appointment was a written forensic report setting out what was acquired, how it was acquired, what the analysis established and what the analysis could not establish — giving executive leadership and internal audit a documented factual position from which to act."]}],boundaryBox:{k:"Confidentiality",p:"Findings are covered by the confidentiality terms of the engagements and are not disclosed here. The client is withheld by design on this page."},closingSection:{heading:"Where this sits in the Sourceworx offering today",paragraph:"Digital forensics sits inside Managed Cybersecurity alongside vulnerability assessment and penetration testing, managed detection and response, incident response and POPIA compliance consulting. Forensic work is delivered using Detego, one of the Performance Extensions in the Sourceworx portfolio, which supports court‑admissible evidence handling and cost recovery support. Sourceworx holds ISO 27001 certification and runs a 24‑hour Network and Security Operations Centre, and the same team that carries out the investigation supports clients through the notification obligations that POPIA now attaches to a confirmed compromise of personal information."},serviceTags:["Digital Forensics","Incident Response","POPIA Compliance","Managed Cybersecurity"],railStats:[{num:"2016–18",lbl:"Period covered"},{num:"Several",lbl:"Separate appointments"},{num:"Multi",lbl:"Executive devices examined"},{num:"O365",lbl:"Exchange mailbox analysis"},{num:"Full",lbl:"Chain of custody & defensible reporting"}],railCredentials:[{num:"Detego",lbl:"Forensic evidence platform"},{num:"ISO",lbl:"27001 certified"},{num:"24/7",lbl:"NOC / SOC coverage"}],anonymised:!0}];function n0e(){const e=fS.slice(0,2);return u.jsx("section",{className:"py-16 lg:py-20 bg-cloud border-t border-slate/8",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-4 mb-10",children:[u.jsxs("div",{className:"max-w-2xl",children:[u.jsx("span",{className:"text-[11px] font-semibold tracking-[0.18em] uppercase text-azure",children:"Client work"}),u.jsx("h2",{className:"mt-3 text-2xl md:text-3xl font-heading font-bold text-midnight tracking-tight leading-tight",children:"What it looks like when someone is accountable for the outcome."}),u.jsx("p",{className:"mt-3 text-sm lg:text-base text-slate leading-relaxed",children:"These clients came to us mid-pressure, with a deadline or an investigation already running. We write the work up the way they experienced it, so you can judge whether we would stand next to you in the same position."})]}),u.jsxs(Ft,{to:"/insights/case-studies",className:"flex-shrink-0 inline-flex items-center gap-1.5 text-sm font-semibold text-azure hover:text-sky transition-colors",children:["All case studies ",u.jsx(_n,{className:"w-4 h-4"})]})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:e.map((t,n)=>u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{delay:n*.1,duration:.5},children:u.jsxs(Ft,{to:`/insights/case-studies/${t.id}`,className:"group flex h-full bg-white rounded-lg border border-slate/12 overflow-hidden hover:border-azure/30 hover:shadow-lg transition-all duration-300",children:[u.jsxs("div",{className:"relative w-32 sm:w-40 flex-shrink-0 overflow-hidden",children:[u.jsx("img",{src:t.cover,alt:"",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),u.jsx("div",{className:"absolute inset-0 bg-midnight/25"})]}),u.jsxs("div",{className:"p-6 flex flex-col gap-2.5 flex-1",children:[u.jsxs("div",{className:"flex items-center gap-2.5 text-[11px] font-semibold uppercase tracking-wider text-slate/60",children:[u.jsx("span",{children:t.discipline}),u.jsx("span",{className:"text-slate/30",children:"·"}),u.jsx("span",{children:t.year})]}),u.jsx("h3",{className:"text-base font-heading font-bold text-midnight leading-snug group-hover:text-azure transition-colors",children:t.cardTitle}),u.jsx("div",{className:"flex gap-5 mt-1",children:t.cardStats.slice(0,2).map((r,i)=>u.jsxs("div",{children:[u.jsx("span",{className:"block text-lg font-heading font-bold text-midnight",children:r.num}),u.jsx("span",{className:"text-[11px] text-slate/60",children:r.lbl})]},i))}),u.jsxs("span",{className:"inline-flex items-center gap-1.5 mt-auto pt-3 text-sm font-semibold text-azure w-max group-hover:gap-2.5 transition-all",children:["Read the case study ",u.jsx(_n,{className:"w-3.5 h-3.5"})]})]})]})},t.id))})]})})}const r0e="uTOmNnlEmZQ",i0e=[{icon:_le,title:"Interviews",desc:"Broadcast and podcast conversations with our Managing Director.",href:"/media"},{icon:l3,title:"LinkedIn",desc:"Company updates and commentary from our page.",href:"/media"},{icon:ZV,title:"In the news",desc:"Coverage in Leadership Magazine and ITWeb.",href:"/media"}];function a0e(){return u.jsx("section",{className:"py-16 lg:py-20 bg-white border-y border-slate/8",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-end justify-between gap-4 mb-10",children:[u.jsxs("div",{className:"max-w-2xl",children:[u.jsx("span",{className:"text-[11px] font-semibold tracking-[0.18em] uppercase text-azure",children:"Media"}),u.jsx("h2",{className:"mt-3 text-2xl md:text-3xl font-heading font-bold text-midnight tracking-tight",children:"The views we are willing to defend in public."}),u.jsx("p",{className:"mt-3 text-sm lg:text-base text-slate leading-relaxed",children:"Our Managing Director takes the same positions on air that we take in your boardroom."})]}),u.jsxs(Ft,{to:"/media",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-azure hover:text-sky transition-colors",children:["All media ",u.jsx(_n,{className:"w-3.5 h-3.5"})]})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-7 items-stretch",children:[u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},className:"lg:col-span-7",children:u.jsx("div",{className:"rounded-lg overflow-hidden border border-slate/12 bg-obsidian aspect-video",children:u.jsx("iframe",{src:`https://www.youtube-nocookie.com/embed/${r0e}?rel=0&modestbranding=1`,title:"Masande Dyasi on building a technology company for Africa",className:"w-full h-full",allowFullScreen:!0,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"})})}),u.jsxs(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{delay:.12},className:"lg:col-span-5 flex flex-col justify-between rounded-lg border border-slate/12 bg-cloud p-7",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-[11px] font-semibold tracking-[0.18em] uppercase text-azure",children:"Interview · Artificial intelligence and delivery"}),u.jsx("h3",{className:"mt-3 text-lg font-heading font-bold text-midnight leading-snug",children:"Masande Dyasi on building a technology company for Africa."}),u.jsx("p",{className:"mt-3 text-sm text-slate leading-relaxed",children:"Where artificial intelligence changes the economics of software delivery, and where it is being oversold. It is a straight answer to the question most executives are being asked by their boards right now, and it is the same ground our own development team works on daily."})]}),u.jsxs("div",{className:"mt-6 pt-5 border-t border-slate/12",children:[u.jsx("p",{className:"text-[11px] font-semibold tracking-[0.14em] uppercase text-slate/50 mb-3",children:"Related service line"}),u.jsxs(Ft,{to:"/services/software-development",className:"inline-flex items-center gap-2 px-6 py-3 rounded-md bg-midnight text-white font-semibold text-sm hover:bg-azure transition-colors",children:["Software Development and Automation ",u.jsx(_n,{className:"w-4 h-4"})]})]})]})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-7",children:i0e.map((e,t)=>u.jsx(_e.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.08},children:u.jsxs(Ft,{to:e.href,className:"group flex items-center gap-4 p-5 rounded-lg border border-slate/12 bg-white hover:border-azure/30 transition-colors h-full",children:[u.jsx("div",{className:"w-10 h-10 rounded-md bg-azure/8 text-azure flex items-center justify-center flex-shrink-0",children:u.jsx(e.icon,{className:"w-4.5 h-4.5"})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("h3",{className:"font-heading font-bold text-sm text-midnight group-hover:text-azure transition-colors",children:e.title}),u.jsx("p",{className:"text-xs text-slate mt-0.5 leading-relaxed",children:e.desc})]}),u.jsx(_n,{className:"w-4 h-4 text-slate/30 group-hover:text-azure transition-colors flex-shrink-0"})]})}
1278,e.title))})]})})}function o0e(){return u.jsx("section",{className:"py-16 lg:py-20 bg-gray-50",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs(_e.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"grid grid-cols-1 lg:grid-cols-5 gap-10 items-center",children:[u.jsxs("div",{className:"lg:col-span-2 flex justify-center lg:justify-end items-center gap-4",children:[u.jsx("img",{src:Rt.topEmpowermentBadge,alt:"Nedbank Top Empowerment Conference 2026 — Bronze Sponsor",className:"w-full max-w-[200px] h-auto"}),u.jsx("img",{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/27aafad49_ConferenceSpeakerBadge.png",alt:"Nedbank Top Empowerment Conference 2026 — Conference Speaker",className:"w-full max-w-[200px] h-auto"})]}),u.jsxs("div",{className:"lg:col-span-3",children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-azure mb-3 block",children:"Proud sponsor"}),u.jsx("h2",{className:"text-xl md:text-2xl font-heading font-bold text-midnight leading-snug",children:"Sourceworx is proud to be a Bronze Sponsor of the Nedbank Top Empowerment Conference 2026."}),u.jsxs("p",{className:"text-slate leading-relaxed mt-4",children:["This year's theme, ",u.jsx("span",{className:"font-semibold text-midnight",children:"The Next Phase of Transformation"}),", is one we recognise in our own work. We believe transformation holds value when it moves beyond intent to action and delivers results that can be measured. As a partner in performance, our focus has never been the technology itself; it has been whether a client's organisation performs better because of us."]})]})]})})})}const bM=[{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/f375793d2_Fortinet-Logopng1.webp",alt:"Fortinet"},{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/1be48f6ef_Cisco-logo1.png",alt:"Cisco"},{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/9cadee63f_R21.png",alt:"Microsoft Solutions Partner"},{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/fce877c35_images.png",alt:"Huawei"},{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/556a49f04_icasa-logo-png_seeklogo-228795.png",alt:"ICASA"},{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/a1021cdae_molex-logo-png-transparent.png",alt:"Molex"}];function s0e(){return u.jsxs("section",{className:"py-10 bg-white border-t border-gray-100",children:[u.jsx("p",{className:"text-center text-xs font-bold tracking-widest uppercase text-slate-400 mb-8",children:"Partners & Certifications"}),u.jsxs("div",{className:"relative flex overflow-hidden",children:[u.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-32 bg-gradient-to-r from-white to-transparent z-10 pointer-events-none"}),u.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-32 bg-gradient-to-l from-white to-transparent z-10 pointer-events-none"}),u.jsx("div",{className:"flex animate-[ticker_28s_linear_infinite] items-center whitespace-nowrap",style:{gap:"calc(100vw / 3)"},children:[...bM,...bM].map((e,t)=>u.jsx("img",{src:e.src,alt:e.alt,className:"h-16 w-auto object-contain grayscale hover:grayscale-0 transition-all duration-300 flex-shrink-0"},t))})]})]})}const l0e=Rt.heroSkyline,c0e=[{icon:GV,title:"Financial Services",path:"/industries/financial-services",desc:"Regulatory certainty and zero downtime."},{icon:RT,title:"Municipalities and Government",path:"/industries/government",desc:"Service delivery and audit-clean records."},{icon:VV,title:"Higher Education",path:"/industries/higher-education",desc:"More learners completing, better evidence."},{icon:WV,title:"Mining and Industry",path:"/industries/mining",desc:"Production uptime and zero safety incidents."},{icon:Ele,title:"Special IT Projects",path:"/industries/special-projects",desc:"Single accountable partner, full lifecycle."}],u0e=[{id:"foundations",label:"01",title:"Performance Foundations",desc:"Core managed services that keep your technology environment stable, secure and compliant.",items:[{icon:G0,name:"IT Managed Services",path:"/services/it-managed",detail
1278:"End-to-end IT management covering desktops, servers, cloud workloads and M365. 24/7 support under a formal SLA."},{icon:JV,name:"Network Managed Services",path:"/services/network",detail:"Design, monitoring and management of your network infrastructure. Gold, Silver and Bronze SLA tiers."},{icon:Uh,name:"Managed Cybersecurity",path:"/services/cybersecurity",detail:"Microsoft Sentinel-powered SOC, VAPT, POPIA compliance consulting and incident response."},{icon:G2,name:"Software Development",path:"/services/software-development",detail:"Bespoke applications built by an in-house South African team. SA-regulatory context built in from day one."}]},{id:"accelerators",label:"02",title:"Performance Accelerators",desc:"Sourceworx-built software products that solve specific South African compliance and operational challenges.",items:[{icon:Rl,name:"EDVantage",path:"/services",detail:"The only LMS built natively for SETA compliance, B-BBEE evidence and NQF-aligned assessment."},{icon:Rl,name:"FiscalFocus",path:"/services",detail:"MFMA Section 72 and Section 87 budget assessment automation for municipal finance teams."},{icon:Rl,name:"iManage",path:"/services",detail:"Infrastructure project management aligned to the IDMS Stage Gate framework."}]},{id:"extensions",label:"03",title:"Performance Extensions",desc:"Proven third-party solutions implemented and supported by Sourceworx.",items:[{icon:Rl,name:"RealWear",path:"/services",detail:"Hands-free remote expert access for field workers in mining and industrial environments."},{icon:Rl,name:"Detego",path:"/services",detail:"Digital forensics platform for fraud, misconduct and cyber incident investigations."},{icon:Rl,name:"Ornecy",path:"/services",detail:"Continuous performance management replacing annual review paperwork."},{icon:Rl,name:"EPact",path:"/services",detail:"Procurement and contract lifecycle management with automated compliance tracking."}]}];function d0e(){const[e,t]=_.useState("foundations");return u.jsxs(u.Fragment,{children:[u.jsx(Jve,{image:l0e}),u.jsx("section",{className:"py-24 lg:py-32 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Industries we serve",title:"Five sectors, each with its own regulatory load.",description:"Financial services answers to the Prudential Authority, municipalities to the MFMA and the Auditor-General, universities to the SETAs and the NQF, and mining to the Mine Health and Safety Act, which is why the technology environment in each one is scoped differently from the outset.",align:"center"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 mt-14",children:c0e.map((n,r)=>u.jsx(_e.div,{initial:{opacity:0,y:25},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.09},children:u.jsx(Ft,{to:n.path,children:u.jsxs(Vl,{className:"h-full group",children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsx("div",{className:"w-11 h-11 rounded-xl bg-azure/10 flex items-center justify-center",children:u.jsx(n.icon,{className:"w-5 h-5 text-azure"})}),u.jsx(_n,{className:"w-4 h-4 text-slate/30 group-hover:text-azure transition-colors"})]}),u.jsx("h3",{className:"text-base font-heading font-bold text-midnight",children:n.title}),u.jsx("p",{className:"text-sm text-slate mt-2 leading-relaxed",children:n.desc})]})})},n.title))})]})}),u.jsx(o0e,{}),u.jsxs("section",{className:"relative h-72 md:h-96 overflow-hidden",children:[u.jsx("img",{src:Rt.archBuilding,alt:"Sourceworx architecture",className:"w-full h-full object-cover object-center"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-midnight/60 to-transparent"}),u.jsx("div",{className:"absolute inset-0 flex items-center px-10 lg:px-20",children:u.jsxs(_e.blockquote,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"max-w-lg",children:[u.jsx("p",{className:"text-xl lg:text-2xl font-heading font-bold text-white leading-snug italic",children:'"We have 17 years and 70-plus technical specialists behind every claim. We do not hedge unnecessarily."'}),u.jsx("p",{className:"text-sm text-sky mt-3 font-semibold",children:"Masande Dyasi, Managing Director"})]})})]}),u.jsx("section",{className:"py-24 lg:py-32 bg-cloud",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"How we work",title:"Three layers of capability under one service level agreement.",description:"Managed foundations, software we have built ourselves and third-party platforms we implement and support, contracted through a single accountable party with named response times.",align:"center"}),u.jsx("div",{className:"mt-14 space-y-4",children:u0e.map(n=>{const r=e===n.id;return u.jsxs("div",{className:"rounded-2xl overflow-hidden border border-slate/10 bg-white shadow-sm",children:[u.jsxs("button",{onClick:()=>t(r?null:n.id),className:"w-full flex items-center justify-between px-6 lg:px-8 py-5 hover:bg-cloud/50 transition-colors",children:[u.jsxs("div",{className:"flex items-center gap-5",children:[u.jsx("span",{className:"text-2xl font-heading font-extrabold text-azure/30",children:n.label}),u.jsxs("div",{className:"text-left",children:[u.jsx("h3",{className:"text-lg font-heading font-bold text-midnight",children:n.title}),u.jsx("p",{className:"text-sm text-slate hidden md:block",children:n.desc})]})]}),r?u.jsx(YV,{className:"w-5 h-5 text-azure flex-shrink-0"}):u.jsx(eW,{className:"w-5 h-5 text-slate flex-shrink-0"})]}),u.jsx(sl,{children:r&&u.jsx(_e.div,{initial:{height:0,opacity:0}
1278,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.35},className:"overflow-hidden",children:u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 px-6 lg:px-8 pb-8 pt-2",children:n.items.map(i=>u.jsx(Ft,{to:i.path,children:u.jsxs(_e.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"p-4 rounded-xl bg-cloud hover:bg-azure/8 border border-slate/8 group transition-colors cursor-pointer",children:[u.jsx(i.icon,{className:"w-5 h-5 text-azure mb-3"}),u.jsx("h4",{className:"font-bold text-sm text-midnight group-hover:text-azure transition-colors",children:i.name}),u.jsx("p",{className:"text-xs text-slate mt-1.5 leading-relaxed",children:i.detail})]})},i.name))})})})]},n.id)})})]})}),u.jsx("section",{className:"py-24 lg:py-32 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[u.jsx(_e.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},children:u.jsx("img",{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/f3a44dd3b_Linkedin-JanandFeb4.png",alt:"Sourceworx network infrastructure specialist",className:"rounded-2xl w-full object-contain shadow-xl"})}),u.jsxs("div",{className:"space-y-6",children:[u.jsx(dr,{label:"Our commitment",title:"Seventeen years of operating under South African conditions."}),u.jsx("p",{className:"text-slate leading-relaxed",children:"Sourceworx was founded in South Africa and has run continuously since 2009, through the introduction of load-shedding schedules, the amendment of the B-BBEE codes, the commencement of POPIA in July 2021 and a rise in ransomware activity against local government and financial institutions. Every service level agreement we hold was written after those conditions arrived, not before them."}),u.jsx(ab,{quote:un[0].quote,name:un[0].name,role:un[0].role,img:un[0].img})]})]})})}),u.jsx(Zve,{}),u.jsx(t0e,{}),u.jsx(n0e,{}),u.jsx(a0e,{}),u.jsx(s0e,{}),u.jsx(ec,{heading:"Tell us what your environment is doing.",sub:"Managed IT, cybersecurity, network infrastructure or bespoke software. We will assess the position and give you a written view within one business day.",cta:"Start the conversation",img:Rt.officeLight,trackSource:"home_cta_strip"})]})}function A0e({value:e,suffix:t="",prefix:n="",duration:r=1800}){const[i,a]=_.useState(0),o=_.useRef(null),s=Dve(o,{once:!0}),l=parseInt(e.replace(/\D/g,""))||0;return _.useEffect(()=>{if(!s)return;const c=Date.now(),d=setInterval(()=>{const A=Math.min((Date.now()-c)/r,1),h=1-Math.pow(1-A,3);a(Math.round(l*h)),A>=1&&clearInterval(d)},16);return()=>clearInterval(d)},[s,l,r]),u.jsxs("span",{ref:o,children:[n,i,t]})}const f0e=[{name:"Thatohatsi Mohale",role:"CRM Analyst",img:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/a259e4525_Thatohatsi.png",quote:"The thing I would tell somebody considering Sourceworx is that the work is visible. There is nowhere for a system to be broken without somebody noticing, and there is nowhere for good work to disappear either."},{name:"Victor Mabotja",role:"Pre-Sales Engineer",img:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/4b033abe4_VictorMabotja.png",quote:"If you want to know one thing extremely well, that breadth takes some adjusting to. What I get in exchange is access, because when a client asks me something I cannot answer, I go straight to the person who runs that practice and get a proper answer."},{name:"Noxolo Biyela",role:"Power Automate Developer",img:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/4437852c9_NoxoloBiyela-powerAutomateDeveloper.JPG",quote:"I'm grateful to be part of a supportive environment that inspires growth and continuous learning. The opportunities I've received here are not only advancing my career but are truly changing my life."}];function h0e(){return u.jsxs("div",{className:"mt-20 pt-14 border-t border-white/10",children:[u.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-12",children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-azure mb-3 block",children:"In their own words"}),u.jsx("h3",{className:"text-xl md:text-4xl font-normal tracking-tight leading-tight text-white",children:"What it is like to work here."}),u.jsx("p",{className:"mt-3 text-base lg:text-lg leading-snug text-white/60",children:"Three members of the team on what the work actually involves."})]}),u.jsxs("div",{className:"relative rounded-3xl overflow-hidden p-6 md:p-10",children:[u.jsx("div",{className:"absolute inset-0 fluted-bg"}),u.jsx("div",{className:"relative grid grid-cols-1 md:grid-cols-3 gap-6 items-stretch",children:f0e.map((e,t)=>u.jsx(_e.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"h-full",children:u.jsxs("div",{className:"glass-card-dark glass-float roun
1278ded-2xl p-8 flex flex-col h-full transition-all duration-300",style:{animationDelay:`${t*.6}s`},children:[u.jsx(nW,{className:"w-7 h-7 text-azure mb-5 shrink-0"}),u.jsx("blockquote",{className:"text-sm lg:text-base text-white/70 leading-relaxed flex-1",children:e.quote}),u.jsxs("div",{className:"flex items-center gap-4 mt-6 pt-5 border-t border-white/10",children:[u.jsx("img",{src:e.img,alt:e.name,className:"w-20 h-20 rounded-full object-cover object-top ring-2 ring-white/15"}),u.jsxs("div",{children:[u.jsx("p",{className:"font-heading font-bold text-white text-sm",children:e.name}),u.jsx("p",{className:"text-xs text-white/50 mt-0.5",children:e.role})]})]})]})},e.name))})]})]})}const p0e=[{icon:FA,title:"Diverse by design",desc:"Our team reflects the full richness of South Africa — every background, culture and perspective is a strength we actively leverage."},{icon:s3,title:"We care about our people",desc:"We invest in growth, celebrate wins and support each other through challenges. That is how we operate."},{icon:Rl,title:"Meaningful work",desc:"The projects we take on matter — for hospitals, universities, municipalities and banks that South Africa depends on."},{icon:wh,title:"Nationally connected",desc:"With field engineers across all nine provinces, you work alongside a team that is as spread out and dynamic as the country itself."}];function m0e(){return u.jsx("section",{className:"py-20 lg:py-28 bg-midnight text-white overflow-hidden",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-end lg:justify-between gap-8 mb-14",children:[u.jsxs(_e.div,{initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"max-w-2xl",children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-sky mb-3 block",children:"Join the team"}),u.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-heading font-extrabold text-white tracking-tight leading-tight",children:"A culture as diverse as it is vibrant."}),u.jsx("p",{className:"mt-4 text-base lg:text-lg text-white/60 leading-relaxed",children:"We hire people who care about their craft, their colleagues and the organisations they serve. At Sourceworx, every unique background and perspective strengthens how we perform."})]}),u.jsxs(_e.a,{href:"https://sourceworx.breezy.hr/",target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},whileHover:{scale:1.04},className:"flex-shrink-0 inline-flex items-center gap-2 px-8 py-4 rounded-full bg-azure text-white font-bold text-sm tracking-wide hover:bg-sky transition-colors shadow-xl shadow-azure/30",children:["View open roles ",u.jsx(_n,{className:"w-4 h-4"})]})]}),u.jsx(_e.div,{initial:{opacity:0,scale:.98},whileInView:{opacity:1,scale:1},viewport:{once:!0},className:"overflow-hidden rounded-2xl mb-14",children:u.jsx("img",{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/c8eef95e4_TeamCollage.png",alt:"The Sourceworx team",className:"w-full object-cover"})}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-
12785",children:p0e.map((e,t)=>{const n=e.icon;return u.jsxs(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"p-6 rounded-2xl bg-white/5 border border-white/8 hover:bg-white/8 transition-colors",children:[u.jsx(n,{className:"w-6 h-6 text-sky mb-3"}),u.jsx("h4",{className:"font-heading font-bold text-white text-sm",children:e.title}),u.jsx("p",{className:"text-xs text-white/55 mt-2 leading-relaxed",children:e.desc})]},e.title)})}),u.jsx(h0e,{}),u.jsxs(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-12 text-center",children:[u.jsx("p",{className:"text-white/50 text-sm mb-4",children:"Ready to be part of something that matters?"}),u.jsxs("a",{href:"https://sourceworx.breezy.hr/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-azure font-bold hover:text-sky transition-colors",children:["Explore careers at Sourceworx ",u.jsx(_n,{className:"w-4 h-4"})]})]})]})})}const g0e="https://media.base44.com/videos/public/69e5fadb62865073c43a0307/d1d1bb9e3_WellnessDayVideo.mp4",y0e=[{src:"https://media.base44.com/videos/public/69e5fadb62865073c43a0307/2b8936b00_WOMENSMONTH-Sibongile2.mp4",name:"Sibongile",caption:"On building a technical career in a sector that has not always made room for it."},{src:"https://media.base44.com/videos/public/69e5fadb62865073c43a0307/4555c01cb_WOMENSMONTH-Kelly1.mp4",name:"Kelly",caption:"On what support at work looks like when it is real rather than stated."},{src:"https://media.base44.com/videos/public/69e5fadb62865073c43a0307/d5eba6880_WOMENSMONTH-LeighVanWyk1.mp4",name:"Leigh van Wyk",caption:"On the standard she holds herself to and what she expects of the people around her."}];function v0e(){return u.jsx("section",{className:"py-20 lg:py-28 bg-cloud",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Life at Sourceworx",title:"The place behind the work.",description:"Technical delivery depends on people who want to be here. We invest in wellness, we make space for our teams to be heard, and we take the culture as seriously as the SLAs."}),u.jsxs(_e.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-12 mt-12 items-center",children:[u.jsx("div",{className:"lg:col-span-7",children:u.jsx("video",{src:g0e,controls:!0,playsInline:!0,className:"w-full rounded-2xl shadow-xl bg-midnight aspect-video object-cover"})}),u.jsxs("div",{className:"lg:col-span-5",children:[u.jsx("p",{className:"text-xs font-bold text-azure uppercase tracking-widest",children:"Wellness Day"}),u.jsx("h3",{className:"text-2xl font-heading font-extrabold text-midnight mt-2 leading-snug max-w-[24ch]",children:"A team that is looked after delivers better work."}),u.jsx("p",{className:"text-sm text-slate mt-3 leading-relaxed max-w-[52ch]",children:"Our wellness programme is part of how we operate, not an annual gesture. Health screenings, movement, time away from the desk and a day where the whole business is in the same room. Retention across our technical teams is one of the reasons clients keep the same engineers year after year."})]})]}),u.jsxs("div",{className:"mt-20 pt-14 border-t border-slate/10",children:[u.jsxs("div",{className:"max-w-2xl",children:[u.jsx("p",{className:"text-xs font-bold text-azure uppercase tracking-widest",children:"Women's Month series"}),u.jsx("h3",{className:"text-2xl font-heading font-extrabold text-midnight mt-2 leading-snug",children:"Our women, in their own words."}),u.jsx("p",{className:"text-sm text-slate mt-3 leading-relaxed",children:"Women hold technical, delivery and leadership roles across this business. During Women's Month we handed the camera to them rather than writing a statement about them."})]}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mt-10",children:y0e.map((e,t)=>u.jsxs(_e.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.12}
1278,children:[u.jsx("video",{src:e.src,controls:!0,playsInline:!0,className:"w-full rounded-2xl shadow-lg bg-midnight aspect-[9/16] object-cover"}),u.jsx("p",{className:"font-heading font-extrabold text-midnight mt-4",children:e.name}),u.jsx("p",{className:"text-sm text-slate mt-1.5 leading-relaxed",children:e.caption})]},e.name))})]})]})})}const b0e=[{title:"ISO 9001",sub:"Quality management — independently certified."},{title:"ISO 27001",sub:"Information security — independently certified."},{title:"ISO 20000",sub:"IT service management — independently certified."},{title:"Level 1 B-BBEE",sub:"The highest possible rating. Maximum preference points."},{title:"Continental Reach",sub:"Field service across Southern Africa and beyond."},{title:"24/7 NOC and SOC",sub:"Network and Security Operations Centre — always on."}],w0e=[{value:"17",suffix:" yrs",label:"Market experience"},{value:"70",suffix:"+",label:"Technical specialists"},{value:"3",suffix:"",label:"ISO certifications"}];function x0e(){return u.jsxs(u.Fragment,{children:[u.jsxs("section",{className:"relative pt-32 pb-20 lg:pt-44 lg:pb-28 overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/5ae77f14d_pexels-kelly-33622143.jpg",alt:"",className:"w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-midnight/85 via-midnight/80 to-midnight/95"})]}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Who we are",title:"Built for this market. Proven in it.",description:"17 years. 70-plus technical specialists. Deployed across Africa with the credentials and the track record to prove it.",dark:!0}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 mt-12 pt-10 border-t border-white/15",children:w0e.map(e=>u.jsxs("div",{children:[u.jsx("div",{className:"text-4xl md:text-5xl font-heading font-extrabold text-white",children:u.jsx(A0e,{value:e.value,suffix:e.suffix})}),u.jsx("div",{className:"text-xs text-white/50 uppercase tracking-wider mt-2",children:e.label})]},e.label))})]})]}),u.jsx("section",{className:"py-20 lg:py-28 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-14 items-center",children:[u.jsxs("div",{children:[u.jsx(dr,{label:"Our story",title:"Built here. Proven here."}),u.jsx("p",{className:"text-slate mt-5 leading-relaxed",children:"17 years of operating in this market means we have navigated load-shedding, regulatory reform, POPIA enforcement and an escalating cyber threat landscape. Our solutions are shaped by those realities from the ground up. We started here and we stay here."}),u.jsx("p",{className:"text-slate mt-4 leading-relaxed",children:"Performance Foundations, Accelerators and Extensions. Three layers of capability, all managed under formal SLAs that reflect how African organisations actually operate."})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("img",{src:Rt.teamGroup1,alt:"Sourceworx team",className:"rounded-2xl w-full h-60 object-cover shadow-lg"}),u.jsx("img",{src:Rt.teamGroup2,alt:"Sourceworx team",className:"rounded-2xl w-full h-48 object-cover shadow-lg"})]})]})})}),u.jsx("section",{className:"py-20 lg:py-28 bg-cloud",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Credentials",title:"Independently certified.",align:"center"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 mt-12",children:b0e.map((e,t)=>u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.08},children:u.jsxs(Vl,{children:[u.jsx("h3",{className:"text-lg font-heading font-extrabold text-midnight",children:e.title}),u.jsx("p",{className:"text-sm text-slate mt-2",children:e.sub})]})},e.title))})]})}),u.jsx("section",{className:"py-20 lg:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Leadership",title:"Practitioners with a track record.",description:"Every leader in this team has o
1278perated in the African technology landscape. They know what works here.",align:"center"}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mt-14",children:un.map((e,t)=>u.jsxs(_e.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"group",children:[u.jsx("div",{className:`aspect-[3/4] overflow-hidden rounded-2xl mb-4 ${e.imgBg||"bg-cloud"}`,children:u.jsx("img",{src:e.img,alt:e.name,style:e.imgStyle,className:"w-full h-full object-cover object-top grayscale group-hover:grayscale-0 transition-all duration-700 group-hover:scale-105"})}),u.jsx("h3",{className:"font-heading font-extrabold text-midnight",children:e.name}),u.jsx("p",{className:"text-sm text-azure font-semibold mt-0.5",children:e.role}),u.jsxs("p",{className:"text-sm text-slate mt-3 leading-relaxed italic",children:['"',e.quote,'"']})]},e.name))})]})}),u.jsx(v0e,{}),u.jsx("section",{className:"py-20 lg:py-28 bg-cloud",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"From leadership",title:"In their own words.",align:"center"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-12",children:un.slice(0,2).map((e,t)=>u.jsx(ab,{quote:e.quote,name:e.name,role:e.role,img:e.img},t))})]})}),u.jsx("section",{className:"py-14 bg-white border-y border-slate/8",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx("p",{className:"text-xs font-bold text-slate/40 uppercase tracking-widest text-center mb-8",children:"Technology partnerships"}),u.jsx("div",{className:"flex flex-wrap items-center justify-center gap-10 md:gap-16",children:["Fortinet","Cisco","Huawei","Microsoft","Molex","ICASA"].map(e=>u.jsx("span",{className:"text-xl font-heading font-extrabold text-midnight/12 hover:text-midnight/30 transition-colors",children:e},e))})]})}),u.jsx(m0e,{}),u.jsx(ec,{heading:"Tell us what you are dealing with.",sub:"17 years in this market means we have seen it. We will give you a direct view — within one business day.",cta:"Start the conversation",img:Rt.officeLight})]})}const S0e=[{icon:G0,name:"IT Managed Services",path:"/services/it-managed",sub:"Your IT, running quietly in the background.",desc:"End-to-end IT management under a formal SLA. Microsoft Digital App Innovation Partner."},{icon:JV,name:"Network Managed Services",path:"/services/network",sub:"Every branch, every link, one accountable team.",desc:"WAN, SD-WAN, campus networks and branch connectivity managed as a single portfolio."},{icon:Uh,name:"Managed Cybersecurity",path:"/services/cybersecurity",sub:"A SOC that never switches off, watching your environment.",desc:"24/7 SOC powered by Microsoft Sentinel. VAPT, POPIA compliance and incident response."},{icon:G2,name:"Software Development",path:"/services/software-development",sub:"Built for your context, from day one.",desc:"Bespoke applications built with SA-regulatory context from day one. The same team that builds it supports it."}],B0e=[{name:"EDVantage",desc:"The only LMS built natively for SETA compliance, B-BBEE evidence and NQF-aligned assessment. Runs on Microsoft Teams."},{name:"FiscalFocus",desc:"MFMA Section 72 and 87 budget assessment automation for local government. A three-week manual process reduced to a same-day report."},{name:"iManage",desc:"Infrastructure project lifecycle management aligned to the IDMS Stage Gate framework. AG audit trail generated as projects progress."}],C0e=[{name:"RealWear",desc:"Hands-free remote expert access for field workers in mining and industrial environments."},{name:"Detego",desc:"Digital forensics for fraud, misconduct and cyber incident investigations."},{name:"Ornecy",desc:"Continuous performance management replacing annual review paperwork."},{name:"EPact",desc:"Procurement and contract lifecycle management."}];function k0e(){return u.jsxs(u.Fragment,{children:[u.jsxs("section",{className:"relative pt-32 pb-20 lg:pt-44 lg:pb-28 overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:Rt.officeLight,alt:"",className:"w-full h-full object-cover opacity-30"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-cloud to-white"})]}),u.jsx("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8",children:u.jsx(dr,{label:"Services",title:"Three layers. One accountable partner.",description:"Performance Foundations, Accelerators and Extensions — structured to deliver measurable outcomes under a single SLA."})})]}),u.jsx("section",{className:"py-20 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx("h3",{className:"text-xs font-bold tracking-widest uppercase text-azure mb-8",children:"Performance Foundations"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:S0e.map((e,t)=>u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},children:u.jsx(Ft,{to:e.path,children:u.jsx(Vl,{className:"h-full group",children:u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"w-11 h-11 rounded-xl bg-azure/10 flex items-center justify-center flex-shrink-0",children:u.jsx(e.icon,{className:"w-5 h-5 text-azure"})}),u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h4",{className:"text-base font-heading font-bold text-midnight group-hover:text-azure transition-colors",children:e.name}),u.jsx(_n,{className:"w-4 h-4 text-slate/30 group-hover:text-azure transition-colors"})]}),u.jsx("p",{className:"text-xs text-azure font-semibold mt-1",children:e.sub}),u.jsx("p",{className:"text-sm text-slate mt-2 leading-relaxed",children:e.desc})]})]})})})},e.name))})]})}),u.jsx("section",{className:"py-20 bg-cloud border-t border-slate/8",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx("h3",{className:"text-xs font-bold tracking-widest uppercase text-azure mb-8",children:"Performance Accelerators"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:B0e.map((e,t)=>u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},children:u.jsxs(Vl,{className:"h-full",children:[u.jsx(Rl,{className:"w-5 h-5 text-sky mb-3"}),u.jsx("h4",{className:"font-heading font-bold text-midnight text-base",children:e.name}),u.jsx("p",{className:"text-sm text-slate mt-2 leading-relaxed",children:e.desc})]})},e.name))})]})}),u.jsx("section",{className:"py-20 bg-white border-t border-slate/8",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx("h3",{className:"text-xs font-bold tracking-widest uppercase text-azure mb-8",children:"Performance Extensions"}
vendor: 21,115 bytes, line 1278
1278),u.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:C0e.map((e,t)=>u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.08},children:u.jsxs(Vl,{className:"h-full",children:[u.jsx(Kse,{className:"w-4 h-4 text-slate/40 mb-3"}),u.jsx("h4",{className:"font-heading font-bold text-midnight text-sm",children:e.name}),u.jsx("p",{className:"text-xs text-slate mt-1.5 leading-relaxed",children:e.desc})]})},e.name))})]})}),u.jsx(ec,{heading:"Know your gaps. Fix them.",sub:"One conversation is usually enough. We assess your environment and give you a direct view of what needs to change and what it will cost.",cta:"Start the conversation",img:Rt.archBuilding})]})}const ql=_.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:Ci("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));ql.displayName="Input";const hY=_.forwardRef(({className:e,...t},n)=>u.jsx("textarea",{className:Ci("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));hY.displayName="Textarea";function wM(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Eg(...e){return t=>{let n=!1;const r=e.map(i=>{const a=wM(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():wM(e[i],null)}}}}function Ei(...e){return _.useCallback(Eg(...e),e)}var E0e=Symbol.for("react.lazy"),h1=W2[" use ".trim().toString()];function N0e(e){return typeof e=="object"&&e!==null&&"then"in e}function pY(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===E0e&&"_payload"in e&&N0e(e._payload)}function T0e(e){const t=I0e(e),n=_.forwardRef((r,i)=>{let{children:a,...o}=r;pY(a)&&typeof h1=="function"&&(a=h1(a._payload));const s=_.Children.toArray(a),l=s.find(j0e);if(l){const c=l.props.children,d=s.map(A=>A===l?_.Children.count(c)>1?_.Children.only(null):_.isValidElement(c)?c.props.children:null:A);return u.jsx(t,{...o,ref:i,children:_.isValidElement(c)?_.cloneElement(c,void 0,d):null})}return u.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var _0e=T0e("Slot");function I0e(e){const t=_.forwardRef((n,r)=>{let{children:i,...a}=n;if(pY(i)&&typeof h1=="function"&&(i=h1(i._payload)),_.isValidElement(i)){const o=F0e(i),s=O0e(a,i.props);return i.type!==_.Fragment&&(s.ref=r?Eg(r,o):o),_.cloneElement(i,s)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P0e=Symbol("radix.slottable");function j0e(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P0e}function O0e(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function F0e(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const L0e=QV("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),mY=_.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const o=r?_0e:"button";return u.jsx(o,{className:Ci(L0e({variant:t,size:n,className:e})),ref:a,...i})});mY.displayName="Button";function xM(e,[t,n]){return Math.min(n,Math.max(t,e))}function _r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function D0e(e,t){const n=_.createContext(t),r=a=>{const{children:o,...s}=a,l=_.useMemo(()=>s,Object.values(s));return u.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function i(a){const o=_.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,i]}function hS(e,t=[]){let n=[];function r(a,o){const s=_.createContext(o),l=n.length;n=[...n,o];const c=A=>{var v;const{scope:h,children:m,...b}=A,g=((v=h==null?void 0:h[e])==null?void 0:v[l])||s,y=_.useMemo(()=>b,Object.values(b));return u.jsx(g.Provider,{value:y,children:m})};c.displayName=a+"Provider";function d(A,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[l])||s,b=_.useContext(m);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${A}\` must be used within \`${a}\``)}return[c,d]}const i=()=>{const a=n.map(o=>_.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return _.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,M0e(i,...t)]}function M0e(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const A=l(a)[`__scope${c}`];return{...s,...A}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function SM(e){const t=U0e(e),n=_.forwardRef((r,i)=>{const{children:a,...o}=r,s=_.Children.toArray(a),l=s.find(Q0e);if(l){const c=l.props.children,d=s.map(A=>A===l?_.Children.count(c)>1?_.Children.only(null):_.isValidElement(c)?c.props.children:null:A);return u.jsx(t,{...o,ref:i,children:_.isValidElement(c)?_.cloneElement(c,void 0,d):null})}return u.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function U0e(e){const t=_.forwardRef((n,r)=>{const{children:i,...a}=n;if(_.isValidElement(i)){const o=$0e(i),s=H0e(a,i.props);return i.type!==_.Fragment&&(s.ref=r?Eg(r,o):o),_.cloneElement(i,s)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var R0e=Symbol("radix.slottable");function Q0e(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===R0e}function H0e(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function $0e(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function q0e(e){const t=e+"CollectionProvider",[n,r]=hS(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:y,children:v}=g,x=me.useRef(null),B=me.useRef(new Map).current;return u.jsx(i,{scope:y,itemMap:B,collectionRef:x,children:v})};o.displayName=t;const s=e+"CollectionSlot",l=SM(s),c=me.forwardRef((g,y)=>{const{scope:v,children:x}=g,B=a(s,v),C=Ei(y,B.collectionRef);return u.jsx(l,{ref:C,children:x})});c.displayName=s;const d=e+"CollectionItemSlot",A="data-radix-collection-item",h=SM(d),m=me.forwardRef((g,y)=>{const{scope:v,children:x,...B}=g,C=me.useRef(null),E=Ei(y,C),T=a(d,v);return me.useEffect(()=>(T.itemMap.set(C,{ref:C,...B}),()=>void T.itemMap.delete(C))),u.jsx(h,{[A]:"",ref:E,children:x})});m.displayName=d;function b(g){const y=a(e+"CollectionConsumer",g);return me.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const B=Array.from(x.querySelectorAll(`[${A}]`));return Array.from(y.itemMap.values()).sort((T,j)=>B.indexOf(T.ref.current)-B.indexOf(j.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:c,ItemSlot:m},b,r]}var z0e=_.createContext(void 0);function V0e(e){const t=_.useContext(z0e);return e||t||"ltr"}function W0e(e){const t=K0e(e),n=_.forwardRef((r,i)=>{const{children:a,...o}=r,s=_.Children.toArray(a),l=s.find(Y0e);if(l){const c=l.props.children,d=s.map(A=>A===l?_.Children.count(c)>1?_.Children.only(null):_.isValidElement(c)?c.props.children:null:A);return u.jsx(t,{...o,ref:i,children:_.isValidElement(c)?_.cloneElement(c,void 0,d):null})}return u.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function K0e(e){const t=_.forwardRef((n,r)=>{const{children:i,...a}=n;if(_.isValidElement(i)){const o=J0e(i),s=X0e(a,i.props);return i.type!==_.Fragment&&(s.ref=r?Eg(r,o):o),_.cloneElement(i,s)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var G0e=Symbol("radix.slottable");function Y0e(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===G0e}function X0e(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function J0e(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Z0e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Cr=Z0e.reduce((e,t)=>{const n=W0e(`Primitive.${t}`),r=_.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ebe(e,t){e&&Qh.flushSync(()=>e.dispatchEvent(t))}function Bh(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function tbe(e,t=globalThis==null?void 0:globalThis.document){const n=Bh(e);_.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var nbe="DismissableLayer",S_="dismissableLayer.update",rbe="dismissableLayer.pointerDownOutside",ibe="dismissableLayer.focusOutside",BM,gY=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Aj=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=e,c=_.useContext(gY),[d,A]=_.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=_.useState({}),b=Ei(t,j=>A(j)),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),x=d?g.indexOf(d):-1,B=c.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,E=sbe(j=>{const O=j.target,L=[...c.branches].some(z=>z.contains(O));!C||L||(i==null||i(j),o==null||o(j),j.defaultPrevented||s==null||s())},h),T=lbe(j=>{const O=j.target;[...c.branches].some(z=>z.contains(O))||(a==null||a(j),o==null||o(j),j.defaultPrevented||s==null||s())},h);return tbe(j=>{x===c.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&s&&(j.preventDefault(),s()))},h),_.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(BM=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),CM(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=BM)}},[d,h,n,c]),_.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),CM())},[d,c]),_.useEffect(()=>{const j=()=>m({});return document.addEventListener(S_,j),()=>document.removeEventListener(S_,j)},[]),u.jsx(Cr.div,{...l,ref:b,style:{pointerEvents:B?C?"auto":"none":void 0,...e.style},onFocusCapture:_r(e.onFocusCapture,T.onFocusCapture),onBlurCapture:_r(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_r(e.onPointerDownCapture,E.onPointerDownCapture)})});Aj.displayName=nbe;var abe="DismissableLayerBranch",obe=_.forwardRef((e,t)=>{const n=_.useContext(gY),r=_.useRef(null),i=Ei(t,r);return _.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),u.jsx(Cr.div,{...e,ref:i})});obe.displayName=abe;function sbe(e,t=globalThis==null?void 0:globalThis.document){const n=Bh(e),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let l=function(){yY(rbe,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function lbe(e,t=globalThis==null?void 0:globalThis.document){const n=Bh(e),r=_.useRef(!1);return _.useEffect(()=>{const i=a=>{a.target&&!r.current&&yY(ibe,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function CM(){const e=new CustomEvent(S_);document.dispatchEvent(e)}function yY(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ebe(i,a):i.dispatchEvent(a)}var oC=0;function vY(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kM()),document.body.insertAdjacentElement("beforeend",e[1]??kM()),oC++,()=>{oC===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),oC--}},[])}function kM(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var sC="focusScope.autoFocusOnMount",lC="focusScope.autoFocusOnUnmount",EM={bubbles:!1,cancelable:!0},cbe="FocusScope",fj=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=_.useState(null),c=Bh(i),d=Bh(a),A=_.useRef(null),h=Ei(t,g=>l(g)),m=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let g=function(B){if(m.paused||!s)return;const C=B.target;s.contains(C)?A.current=C:aA(A.current,{select:!0})},y=function(B){if(m.paused||!s)return;const C=B.relatedTarget;C!==null&&(s.contains(C)||aA(A.current,{select:!0}))},v=function(B){if(document.activeElement===document.body)for(const E of B)E.removedNodes.length>0&&aA(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",y);const x=new MutationObserver(v);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),x.disconnect()}}},[r,s,m.paused]),_.useEffect(()=>{if(s){TM.add(m);const g=document.activeElement;if(!s.contains(g)){const v=new CustomEvent(sC,EM);s.addEventListener(sC,c),s.dispatchEvent(v),v.defaultPrevented||(ube(pbe(bY(s)),{select:!0}),document.activeElement===g&&aA(s))}return()=>{s.removeEventListener(sC,c),setTimeout(()=>{const v=new CustomEvent(lC,EM);s.addEventListener(lC,d),s.dispatchEvent(v),v.defaultPrevented||aA(g??document.body,{select:!0}),s.removeEventListener(lC,d),TM.remove(m)},0)}}},[s,c,d,m]);const b=_.useCallback(g=>{if(!n&&!r||m.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(y&&v){const x=g.currentTarget,[B,C]=dbe(x);B&&C?!g.shiftKey&&v===C?(g.preventDefault(),n&&aA(B,{select:!0})):g.shiftKey&&v===B&&(g.preventDefault(),n&&aA(C,{select:!0})):v===x&&g.preventDefault()}},[n,r,m.paused]);return u.jsx(Cr.div,{tabIndex:-1,...o,ref:h,onKeyDown:b})});fj.displayName=cbe;function ube(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(aA(r,{select:t}),document.activeElement!==n)return}function dbe(e){const t=bY(e),n=NM(t,e),r=NM(t.reverse(),e);return[n,r]}function bY(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function NM(e,t){for(const n of e)if(!Abe(n,{upTo:t}))return n}function Abe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fbe(e){return e instanceof HTMLInputElement&&"select"in e}function aA(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fbe(e)&&t&&e.select()}}var TM=hbe();function hbe(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=_M(e,t),e.unshift(t)},remove(t){var n;e=_M(e,t),(n=e[0])==null||n.resume()}}}function _M(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function pbe(e){return e.filter(t=>t.tagName!=="A")}var eo=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},mbe=W2[" useId ".trim().toString()]||(()=>{}),gbe=0;function fm(e){const[t,n]=_.useState(mbe());return eo(()=>{n(r=>r??String(gbe++))},[e]),t?`radix-${t}`:""}const ybe=["top","right","bottom","left"],MA=Math.min,ps=Math.max,p1=Math.round,mw=Math.floor,zc=e=>({x:e,y:e}),vbe={left:"right",right:"left",bottom:"top",top:"bottom"},bbe={start:"end",end:"start"};function B_(e,t,n){return ps(e,MA(t,n))}function ad(e,t){return typeof e=="function"?e(t):e}function od(e){return e.split("-")[0]}function Ng(e){return e.split("-")[1]}function hj(e){return e==="x"?"y":"x"}function pj(e){return e==="y"?"height":"width"}const wbe=new Set(["top","bottom"]);function Dc(e){return wbe.has(od(e))?"y":"x"}function mj(e){return hj(Dc(e))}function xbe(e,t,n){n===void 0&&(n=!1);const r=Ng(e),i=mj(e),a=pj(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=m1(o)),[o,m1(o)]}function Sbe(e){const t=m1(e);return[C_(e),t,C_(t)]}function C_(e){return e.replace(/start|end/g,t=>bbe[t])}const IM=["left","right"],PM=["right","left"],Bbe=["top","bottom"],Cbe=["bottom","top"];function kbe(e,t,n){switch(e){case"top":case"bottom":return n?t?PM:IM:t?IM:PM;case"left":case"right":return t?Bbe:Cbe;default:return[]}}function Ebe(e,t,n,r){const i=Ng(e);let a=kbe(od(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(C_)))),a}function m1(e){return e.replace(/left|right|bottom|top/g,t=>vbe[t])}function Nbe(e){return{top:0,right:0,bottom:0,left:0,...e}}function wY(e){return typeof e!="number"?Nbe(e):{top:e,right:e,bottom:e,left:e}}function g1(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function jM(e,t,n){let{reference:r,floating:i}=e;const a=Dc(t),o=mj(t),s=pj(o),l=od(t),c=a==="y",d=r.x+r.width/2-i.width/2,A=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let m;switch(l){case"top":m={x:d,y:r.y-i.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:A};break;case"left":m={x:r.x-i.width,y:A};break;default:m={x:r.x,y:r.y}}switch(Ng(t)){case"start":m[o]-=h*(n&&c?-1:1);break;case"end":m[o]+=h*(n&&c?-1:1);break}return m}async function Tbe(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:A="floating",altBoundary:h=!1,padding:m=0}=ad(t,e),b=wY(m),y=s[h?A==="floating"?"reference":"floating":A],v=g1(await a.getClippingRect
vendor: 9,287 bytes, line 1278
1278({element:(n=await(a.isElement==null?void 0:a.isElement(y)))==null||n?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),x=A==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,B=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(B))?await(a.getScale==null?void 0:a.getScale(B))||{x:1,y:1}:{x:1,y:1},E=g1(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:B,strategy:l}):x);return{top:(v.top-E.top+b.top)/C.y,bottom:(E.bottom-v.bottom+b.bottom)/C.y,left:(v.left-E.left+b.left)/C.x,right:(E.right-v.right+b.right)/C.x}}const _be=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:A}=jM(c,r,l),h=r,m={},b=0;for(let y=0;y<s.length;y++){var g;const{name:v,fn:x}=s[y],{x:B,y:C,data:E,reset:T}=await x({x:d,y:A,initialPlacement:r,placement:h,strategy:i,middlewareData:m,rects:c,platform:{...o,detectOverflow:(g=o.detectOverflow)!=null?g:Tbe},elements:{reference:e,floating:t}});d=B??d,A=C??A,m={...m,[v]:{...m[v],...E}},T&&b<=50&&(b++,typeof T=="object"&&(T.placement&&(h=T.placement),T.rects&&(c=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:d,y:A}=jM(c,h,l)),y=-1)}return{x:d,y:A,placement:h,strategy:i,middlewareData:m}},Ibe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=ad(e,t)||{};if(c==null)return{};const A=wY(d),h={x:n,y:r},m=mj(i),b=pj(m),g=await o.getDimensions(c),y=m==="y",v=y?"top":"left",x=y?"bottom":"right",B=y?"clientHeight":"clientWidth",C=a.reference[b]+a.reference[m]-h[m]-a.floating[b],E=h[m]-a.reference[m],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let j=T?T[B]:0;(!j||!await(o.isElement==null?void 0:o.isElement(T)))&&(j=s.floating[B]||a.floating[b]);const O=C/2-E/2,L=j/2-g[b]/2-1,z=MA(A[v],L),F=MA(A[x],L),M=z,V=j-g[b]-F,q=j/2-g[b]/2+O,W=B_(M,q,V),ee=!l.arrow&&Ng(i)!=null&&q!==W&&a.reference[b]/2-(q<M?z:F)-g[b]/2<0,ne=ee?q<M?q-M:q-V:0;return{[m]:h[m]+ne,data:{[m]:W,centerOffset:q-W-ne,...ee&&{alignmentOffset:ne}},reset:ee}}}),Pbe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:A=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...y}=ad(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=od(i),x=Dc(s),B=od(s)===s,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(B||!g?[m1(s)]:Sbe(s)),T=b!=="none";!h&&T&&E.push(...Ebe(s,g,b,C));const j=[s,...E],O=await l.detectOverflow(t,y),L=[];let z=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&L.push(O[v]),A){const q=xbe(i,o,C);L.push(O[q[0]],O[q[1]])}if(z=[...z,{placement:i,overflows:L}],!L.every(q=>q<=0)){var F,M;const q=(((F=a.flip)==null?void 0:F.index)||0)+1,W=j[q];if(W&&(!(A==="alignment"?x!==Dc(W):!1)||z.every(K=>Dc(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:q,overflows:z},reset:{placement:W}};let ee=(M=z.filter(ne=>ne.overflows[0]<=0).sort((ne,K)=>ne.overflows[1]-K.overflows[1])[0])==null?void 0:M.placement;if(!ee)switch(m){case"bestFit":{var V;const ne=(V=z.filter(K=>{if(T){const oe=Dc(K.placement);return oe===x||oe==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(oe=>oe>0).reduce((oe,$)=>oe+$,0)]).sort((K,oe)=>K[1]-oe[1])[0])==null?void 0:V[0];ne&&(ee=ne);break}case"initialPlacement":ee=s;break}if(i!==ee)return{reset:{placement:ee}}}return{}}}};function OM(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function FM(e){return ybe.some(t=>e[t]>=0)}const jbe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...a}=ad(e,t);switch(i){case"referenceHidden":{const o=await r.detectOverflow(t,{...a,elementContext:"reference"}),s=OM(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:FM(s)}}}case"escaped":{const o=await r.detectOverflow(t,{...a,altBoundary:!0}),s=OM(o,n.floating);return{data:{escapedOffsets:s,escaped:FM(s)}}}default:return{}}}}},xY=new Set(["left","top"]);async function Obe(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=od(n),s=Ng(n),l=Dc(n)==="y",c=xY.has(o)?-1:1,d=a&&l?-1:1,A=ad(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:b}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:A.mainAxis||0,crossAxis:A.crossAxis||0,alignmentAxis:A.alignmentAxis};return s&&typeof b=="number"&&(m=s==="end"?b*-1:b),l?{x:m*d,y:h*c}:{x:h*c,y:m*d}}const Fbe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await Obe(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},Lbe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:v=>{let{x,y:B}=v;return{x,y:B}}},...c}=ad(e,t),d={x:n,y:r},A=await a.detectOverflow(t,c),h=Dc(od(i)),m=hj(h);let b=d[m],g=d[h];if(o){const v=m==="y"?"top":"left",x=m==="y"?"bottom":"right",B=b+A[v],C=b-A[x];b=B_(B,b,C)}if(s){const v=h==="y"?"top":"left",x=h==="y"?"bottom":"right",B=g+A[v],C=g-A[x];g=B_(B,g,C)}const y=l.fn({...t,[m]:b,[h]:g});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[m]:o,[h]:s}}}}}},Dbe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=ad(e,t),d={x:n,y:r},A=Dc(i),h=hj(A);let m=d[h],b=d[A];const g=ad(s,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const B=h==="y"?"height":"width",C=a.reference[h]-a.floating[B]+y.mainAxis,E=a.reference[h]+a.reference[B]-y.mainAxis;m<C?m=C:m>E&&(m=E)}if(c){var v,x;const B=h==="y"?"width":"height",C=xY.has(od(i)),E=a.reference[A]-a.floating[B]+(C&&((v=o.offset)==null?void 0:v[A])||0)+(C?0:y.crossAxis),T=a.reference[A]+a.reference[B]+(C?0:((x=o.offset)==null?void 0:x[A])||0)-(C?y.crossAxis:0);b<E?b=E:b>T&&(b=T)}return{[h]:m,[A]:b}}}},Mbe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:l=()=>{},...c}=ad(e,t),d=await o.detectOverflow(t,c),A=od(i),h=Ng(i),m=Dc(i)==="y",{width:b,height:g}=a.floating;let y,v;A==="top"||A==="bottom"?(y=A,v=h===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(v=A,y=h==="end"?"top":"bottom");const x=g-d.top-d.bottom,B=b-d.left-d.right,C=MA(g-d[y],x),E=MA(b-d[v],B),T=!t.middlewareData.shift;let j=C,O=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=B),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=x),T&&!h){const z=ps(d.left,0),F=ps(d.right,0),M=ps(d.top,0),V=ps(d.bottom,0);m?O=b-2*(z!==0||F!==0?z+F:ps(d.left,d.right)):j=g-2*(M!==0||V!==0?M+V:ps(d.top,d.bottom))}await l({...t,availableWidth:O,availableHeight:j});const L=await o.getDimensions(s.floating);return b!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function pS(){return typeof window<"u"}function Tg(e){return SY(e)?(e.nodeName||"").toLowerCase():"#document"}function xs(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zc(e){var t;return(t=(SY(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function SY(e){return pS()?e instanceof Node||e instanceof xs(e).Node:!1}function Gl(e){return pS()?e instanceof Element||e instanceof xs(e).Element:!1}function Yc(e){return pS()?e instanceof HTMLElement||e instanceof xs(e).HTMLElement:!1}function LM(e){return!pS()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xs(e).ShadowRoot}const Ube=new Set(["inline","contents"]);function sb(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Yl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ube.has(i)}const Rbe=new Set(["table","td","th"]);function Qbe(e){return Rbe.has(Tg(e))}const Hbe=[":popover-open",":modal"];function mS(e){return Hbe.some(t=>{try{return e.matches(t)}catch{return!1}})}const $be=["transform","translate","scale","rotate","perspective"],qbe=["transform","translate","scale","rotate","perspective","filter"],zbe=["paint","layout","strict","content"];function gj(e){const t=yj(),n=Gl(e)?Yl(e):e;return $be.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||qbe.some(r=>(n.willChange||"").includes(r))||zbe.some(r=>(n.contain||"").includes(r))}function Vbe(e){let t=UA(e);for(;Yc(t)&&!$m(t);){if(gj(t))return t;if(mS(t))return null;t=UA(t)}return null}function yj(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}
vendor: 14,958 bytes, line 1278
1278const Wbe=new Set(["html","body","#document"]);function $m(e){return Wbe.has(Tg(e))}function Yl(e){return xs(e).getComputedStyle(e)}function gS(e){return Gl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function UA(e){if(Tg(e)==="html")return e;const t=e.assignedSlot||e.parentNode||LM(e)&&e.host||Zc(e);return LM(t)?t.host:t}function BY(e){const t=UA(e);return $m(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yc(t)&&sb(t)?t:BY(t)}function Gv(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=BY(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=xs(i);if(a){const s=k_(o);return t.concat(o,o.visualViewport||[],sb(i)?i:[],s&&n?Gv(s):[])}return t.concat(i,Gv(i,[],n))}function k_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function CY(e){const t=Yl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Yc(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=p1(n)!==a||p1(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function vj(e){return Gl(e)?e:e.contextElement}function hm(e){const t=vj(e);if(!Yc(t))return zc(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=CY(t);let o=(a?p1(n.width):n.width)/r,s=(a?p1(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Kbe=zc(0);function kY(e){const t=xs(e);return!yj()||!t.visualViewport?Kbe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gbe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==xs(e)?!1:t}function Ch(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=vj(e);let o=zc(1);t&&(r?Gl(r)&&(o=hm(r)):o=hm(e));const s=Gbe(a,n,r)?kY(a):zc(0);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,d=i.width/o.x,A=i.height/o.y;if(a){const h=xs(a),m=r&&Gl(r)?xs(r):r;let b=h,g=k_(b);for(;g&&r&&m!==b;){const y=hm(g),v=g.getBoundingClientRect(),x=Yl(g),B=v.left+(g.clientLeft+parseFloat(x.paddingLeft))*y.x,C=v.top+(g.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,d*=y.x,A*=y.y,l+=B,c+=C,b=xs(g),g=k_(b)}}return g1({width:d,height:A,x:l,y:c})}function yS(e,t){const n=gS(e).scrollLeft;return t?t.left+n:Ch(Zc(e)).left+n}function EY(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-yS(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Ybe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Zc(r),s=t?mS(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=zc(1);const d=zc(0),A=Yc(r);if((A||!A&&!a)&&((Tg(r)!=="body"||sb(o))&&(l=gS(r)),Yc(r))){const m=Ch(r);c=hm(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=o&&!A&&!a?EY(o,l):zc(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function Xbe(e){return Array.from(e.getClientRects())}function Jbe(e){const t=Zc(e),n=gS(e),r=e.ownerDocument.body,i=ps(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ps(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+yS(e);const s=-n.scrollTop;return Yl(r).direction==="rtl"&&(o+=ps(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}const DM=25;function Zbe(e,t){const n=xs(e),r=Zc(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const d=yj();(!d||d&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const c=yS(r);if(c<=0){const d=r.ownerDocument,A=d.body,h=getComputedStyle(A),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,b=Math.abs(r.clientWidth-A.clientWidth-m);b<=DM&&(a-=b)}else c<=DM&&(a+=c);return{width:a,height:o,x:s,y:l}}const ewe=new Set(["absolute","fixed"]);function twe(e,t){const n=Ch(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Yc(e)?hm(e):zc(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,c=r*a.y;return{width:o,height:s,x:l,y:c}}function MM(e,t,n){let r;if(t==="viewport")r=Zbe(e,n);else if(t==="document")r=Jbe(Zc(e));else if(Gl(t))r=twe(t,n);else{const i=kY(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return g1(r)}function NY(e,t){const n=UA(e);return n===t||!Gl(n)||$m(n)?!1:Yl(n).position==="fixed"||NY(n,t)}function nwe(e,t){const n=t.get(e);if(n)return n;let r=Gv(e,[],!1).filter(s=>Gl(s)&&Tg(s)!=="body"),i=null;const a=Yl(e).position==="fixed";let o=a?UA(e):e;for(;Gl(o)&&!$m(o);){const s=Yl(o),l=gj(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&ewe.has(i.position)||sb(o)&&!l&&NY(e,o))?r=r.filter(d=>d!==o):i=s,o=UA(o)}return t.set(e,r),r}function rwe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?mS(t)?[]:nwe(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((c,d)=>{const A=MM(t,d,i);return c.top=ps(A.top,c.top),c.right=MA(A.right,c.right),c.bottom=MA(A.bottom,c.bottom),c.left=ps(A.left,c.left),c},MM(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function iwe(e){const{width:t,height:n}=CY(e);return{width:t,height:n}}function awe(e,t,n){const r=Yc(t),i=Zc(t),a=n==="fixed",o=Ch(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=zc(0);function c(){l.x=yS(i)}if(r||!r&&!a)if((Tg(t)!=="body"||sb(i))&&(s=gS(t)),r){const m=Ch(t,!0,a,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&c();a&&!r&&i&&c();const d=i&&!r&&!a?EY(i,s):zc(0),A=o.left+s.scrollLeft-l.x-d.x,h=o.top+s.scrollTop-l.y-d.y;return{x:A,y:h,width:o.width,height:o.height}}function cC(e){return Yl(e).position==="static"}function UM(e,t){if(!Yc(e)||Yl(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zc(e)===n&&(n=n.ownerDocument.body),n}function TY(e,t){const n=xs(e);if(mS(e))return n;if(!Yc(e)){let i=UA(e);for(;i&&!$m(i);){if(Gl(i)&&!cC(i))return i;i=UA(i)}return n}let r=UM(e,t);for(;r&&Qbe(r)&&cC(r);)r=UM(r,t);return r&&$m(r)&&cC(r)&&!gj(r)?n:r||Vbe(e)||n}const owe=async function(e){const t=this.getOffsetParent||TY,n=this.getDimensions,r=await n(e.floating);return{reference:awe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function swe(e){return Yl(e).direction==="rtl"}const lwe={convertOffsetParentRelativeRectToViewportRelativeRect:Ybe,getDocumentElement:Zc,getClippingRect:rwe,getOffsetParent:TY,getElementRects:owe,getClientRects:Xbe,getDimensions:iwe,getScale:hm,isElement:Gl,isRTL:swe};function _Y(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cwe(e,t){let n=null,r;const i=Zc(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:d,top:A,width:h,height:m}=c;if(s||t(),!h||!m)return;const b=mw(A),g=mw(i.clientWidth-(d+h)),y=mw(i.clientHeight-(A+m)),v=mw(d),B={rootMargin:-b+"px "+-g+"px "+-y+"px "+-v+"px",threshold:ps(0,MA(1,l))||1};let C=!0;function E(T){const j=T[0].intersectionRatio;if(j!==l){if(!C)return o();j?o(!1,j):r=setTimeout(()=>{o(!1,1e-7)},1e3)}j===1&&!_Y(c,e.getBoundingClientRect())&&o(),C=!1}try{n=new IntersectionObserver(E,{...B,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,B)}n.observe(e)}return o(!0),a}function uwe(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=vj(e),d=i||a?[...c?Gv(c):[],...Gv(t)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const A=c&&s?cwe(c,n):null;let h=-1,m=null;o&&(m=new ResizeObserver(v=>{let[x]=v;x&&x.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var B;(B=m)==null||B.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let b,g=l?Ch(e):null;l&&y();function y(){const v=Ch(e);g&&!_Y(g,v)&&n(),g=v,b=requestAnimationFrame(y)}return n(),()=>{var v;d.forEach(x=>{i&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),A==null||A(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(b)}}const dwe=Fbe,Awe=Lbe,fwe=Pbe,hwe=Mbe,pwe=jbe,RM=Ibe,mwe=Dbe,gwe=(e,t,n)=>{const r=new Map,i={platform:lwe,...n},a={...i.platform,_c:r};return _be(e,t,{...i,platform:a})};var ywe=typeof document<"u",vwe=function(){},jx=ywe?_.useLayoutEffect:vwe;function y1(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!y1(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!y1(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function IY(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function QM(e,t){const n=IY(e);return Math.round(t*n)/n}function uC(e){const t=_.useRef(e);return jx(()=>{t.current=e}),t}function bwe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,A]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=_.useState(r);y1(h,r)||m(r);const[b,g]=_.useState(null),[y,v]=_.useState(null),x=_.useCallback(K=>{K!==T.current&&(T.current=K,g(K))},[]),B=_.useCallback(K=>{K!==j.current&&(j.current=K,v(K))},[]),C=a||b,E=o||y,T=_.useRef(null),j=_.useRef(null),O=_.useRef(d),L=l!=null,z=uC(l),F=uC(i),M=uC(c),V=_.useCallback(()=>{if(!T.current||!j.current)return;const K={placement:t,strategy:n,middleware:h};F.current&&(K.platform=F.current),gwe(T.current,j.current,K).then(oe=>{const $={...oe,isPositioned:M.current!==!1};q.current&&!y1(O.current,$)&&(O.current=$,Qh.flushSync(()=>{A($)}))})},[h,t,n,F,M]);jx(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,A(K=>({...K,isPositioned:!1})))},[c]);const q=_.useRef(!1);jx(()=>(q.current=!0,()=>{q.current=!1}),[]),jx(()=>{if(C&&(T.current=C),E&&(j.current=E),C&&E){if(z.current)return z.current(C,E,V);V()}},[C,E,V,z,L]);const W=_.useMemo(()=>({reference:T,floating:j,setReference:x,setFloating:B}),[x,B]),ee=_.useMemo(()=>({reference:C,floating:E}),[C,E]),ne=_.useMemo(()=>{const K={position:n,left:0,top:0};if(!ee.floating)return K;const oe=QM(ee.floating,d.x),$=QM(ee.floating,d.y);return s?{...K,transform:"translate("+oe+"px, "+$+"px)",...IY(ee.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:oe,top:$}},[n,s,ee.floating,d.x,d.y]);return _.useMemo(()=>({...d,update:V,refs:W,elements:ee,floatingStyles:ne}),[d,V,W,ee,ne])}const wwe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?RM({element:r.current,padding:i}).fn(n):{}:r?RM({element:r,padding:i}).fn(n):{}}}},xwe=(e,t)=>({...dwe(e),options:[e,t]}),Swe=(e,t)=>({...Awe(e),options:[e,t]}),Bwe=(e,t)=>({...mwe(e),options:[e,t]}),Cwe=(e,t)=>({...fwe(e),options:[e,t]}),kwe=(e,t)=>({...hwe(e),options:[e,t]}),Ewe=(e,t)=>({...pwe(e),options:[e,t]}),Nwe=(e,t)=>({...wwe(e),options:[e,t]});var Twe="Arrow",PY=_.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return u.jsx(Cr.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});PY.displayName=Twe;var _we=PY;function Iwe(e){const[t,n]=_.useState(void 0);return eo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var bj="Popper",[jY,OY]=hS(bj),[Pwe,FY]=jY(bj),LY=e=>{const{__scopePopper:t,children:n}=e,[r,i]=_.useState(null);return u.jsx(Pwe,{scope:t,anchor:r,onAnchorChange:i,children:n})};LY.displayName=bj;var DY="PopperAnchor",MY=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=FY(DY,n),o=_.useRef(null),s=Ei(t,o),l=_.useRef(null);return _.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||o.current,c!==l.current&&a.onAnchorChange(l.current)}),r?null:u.jsx(Cr.div,{...i,ref:s})});MY.displayName=DY;var wj="PopperContent",[jwe,Owe]=jY(wj),UY=_.forwardRef((e,t)=>{var he,ye,Ae,be,Ee,ge;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:A="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:b,...g}=e,y=FY(wj,n),[v,x]=_.useState(null),B=Ei(t,Ue=>x(Ue)),[C,E]=_.useState(null),T=Iwe(C),j=(T==null?void 0:T.width)??0,O=(T==null?void 0:T.height)??0,L=r+(a!=="center"?"-"+a:""),z=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(c)?c:[c],M=F.length>0,V={padding:z,boundary:F.filter(Lwe),altBoundary:M},{refs:q,floatingStyles:W,placement:ee,isPositioned:ne,middlewareData:K}=bwe({strategy:"fixed",placement:L,whileElementsMounted:(...Ue)=>uwe(...Ue,{animationFrame:m==="always"}),elements:{reference:y.anchor},middleware:[xwe({mainAxis:i+O,alignmentAxis:o}),l&&Swe({mainAxis:!0,crossAxis:!1,limiter:A==="partial"?Bwe():void 0,...V}),l&&Cwe({...V}),kwe({...V,apply:({elements:Ue,rects:Ye,availableWidth:ae,availableHeight:Le})=>{const{width:st,height:ut}=Ye.reference,He=Ue.floating.style;He.setProperty("--radix-popper-available-width",`${ae}px`),He.setProperty("--radix-popper-available-height",`${Le}px`),He.setProperty("--radix-popper-anchor-width",`${st}px`),He.setProperty("--radix-popper-anchor-height",`${ut}px`)}}),C&&Nwe({element:C,padding:s}),Dwe({arrowWidth:j,arrowHeight:O}),h&&Ewe({strategy:"referenceHidden",...V})]}),[oe,$]=HY(ee),X=Bh(b);eo(()=>{ne&&(X==null||X())},[ne,X]);const Q=(he=K.arrow)==null?void 0:he.x,R=(ye=K.arrow)==null?void 0:ye.y,re=((Ae=K.arrow)==null?void 0:Ae.centerOffset)!==0,[ce,le]=_.useState();return eo(()=>{v&&le(window.getComputedStyle(v).zIndex)},[v]),u.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:ne?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(be=K.transformOrigin)==null?void 0:be.x,(Ee=K.transformOrigin)==null?void 0:Ee.y].join(" "),...((ge=K.hide)==null?void 0:ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(jwe,{scope:n,placedSide:oe,onArrowChange:E,arrowX:Q,arrowY:R,shouldHideArrow:re,children:u.jsx(Cr.div,{"data-side":oe,"data-align":$,...g,ref:B,style:{...g.style,animation:ne?void 0:"none"}})})})});UY.displayName=wj;var RY="PopperArrow",Fwe={top:"bottom",right:"left",bottom:"top",left:"r
1278ight"},QY=_.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=Owe(RY,r),o=Fwe[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(_we,{...i,ref:n,style:{...i.style,display:"block"}})})});QY.displayName=RY;function Lwe(e){return e!==null}var Dwe=e=>({name:"transformOrigin",options:e,fn(t){var y,v,x;const{placement:n,rects:r,middlewareData:i}=t,o=((y=i.arrow)==null?void 0:y.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,d]=HY(n),A={start:"0%",center:"50%",end:"100%"}[d],h=(((v=i.arrow)==null?void 0:v.x)??0)+s/2,m=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let b="",g="";return c==="bottom"?(b=o?A:`${h}px`,g=`${-l}px`):c==="top"?(b=o?A:`${h}px`,g=`${r.floating.height+l}px`):c==="right"?(b=`${-l}px`,g=o?A:`${m}px`):c==="left"&&(b=`${r.floating.width+l}px`,g=o?A:`${m}px`),{data:{x:b,y:g}}}});function HY(e){const[t,n="center"]=e.split("-");return[t,n]}var Mwe=LY,Uwe=MY,Rwe=UY,Qwe=QY,Hwe="Portal",xj=_.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[i,a]=_.useState(!1);eo(()=>a(!0),[]);const o=n||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?PW.createPortal(u.jsx(Cr.div,{...r,ref:t}),o):null});xj.displayName=Hwe;function $we(e){const t=qwe(e),n=_.forwardRef((r,i)=>{const{children:a,...o}=r,s=_.Children.toArray(a),l=s.find(Vwe);if(l){const c=l.props.children,d=s.map(A=>A===l?_.Children.count(c)>1?_.Children.only(null):_.isValidElement(c)?c.props.children:null:A);return u.jsx(t,{...o,ref:i,children:_.isValidElement(c)?_.cloneElement(c,void 0,d):null})}return u.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function qwe(e){const t=_.forwardRef((n,r)=>{const{children:i,...a}=n;if(_.isValidElement(i)){const o=Kwe(i),s=Wwe(a,i.props);return i.type!==_.Fragment&&(s.ref=r?Eg(r,o):o),_.cloneElement(i,s)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zwe=Symbol("radix.slottable");function Vwe(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zwe}function Wwe(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function Kwe(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Gwe=W2[" useInsertionEffect ".trim().toString()]||eo;function E_({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,o]=Ywe({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:i;{const d=_.useRef(e!==void 0);_.useEffect(()=>{const A=d.current;A!==s&&console.warn(`${r} is changing from ${A?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,r])}const c=_.useCallback(d=>{var A;if(s){const h=Xwe(d)?d(e):d;h!==e&&((A=o.current)==null||A.call(o,h))}else a(d)},[s,e,a,o]);return[l,c]}function Ywe({defaultProp:e,onChange:t}){const[n,r]=_.useState(e),i=_.useRef(n),a=_.useRef(t);return Gwe(()=>{a.current=t},[t]),_.useEffect(()=>{var o;i.current!==n&&((o=a.current)==null||o.call(a,n),i.current=n)},[n,i]),[n,r,a]}function Xwe(e){return typeof e=="function"}function Jwe(e){const t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var $Y=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Zwe="VisuallyHidden",exe=_.forwardRef((e,t)=>
vendor: 7,196 bytes, lines 1278-1293
1278u.jsx(Cr.span,{...e,ref:t,style:{...$Y,...e.style}}));exe.displayName=Zwe;var txe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pp=new WeakMap,gw=new WeakMap,yw={},dC=0,qY=function(e){return e&&(e.host||qY(e.parentNode))},nxe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=qY(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},rxe=function(e,t,n,r){var i=nxe(t,Array.isArray(e)?e:[e]);yw[n]||(yw[n]=new WeakMap);var a=yw[n],o=[],s=new Set,l=new Set(i),c=function(A){!A||s.has(A)||(s.add(A),c(A.parentNode))};i.forEach(c);var d=function(A){!A||l.has(A)||Array.prototype.forEach.call(A.children,function(h){if(s.has(h))d(h);else try{var m=h.getAttribute(r),b=m!==null&&m!=="false",g=(Pp.get(h)||0)+1,y=(a.get(h)||0)+1;Pp.set(h,g),a.set(h,y),o.push(h),g===1&&b&&gw.set(h,!0),y===1&&h.setAttribute(n,"true"),b||h.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};return d(t),s.clear(),dC++,function(){o.forEach(function(A){var h=Pp.get(A)-1,m=a.get(A)-1;Pp.set(A,h),a.set(A,m),h||(gw.has(A)||A.removeAttribute(r),gw.delete(A)),m||A.removeAttribute(n)}),dC--,dC||(Pp=new WeakMap,Pp=new WeakMap,gw=new WeakMap,yw={})}},zY=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=txe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),rxe(r,i,n,"aria-hidden")):function(){return null}},Fc=function(){return Fc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Fc.apply(this,arguments)};function VY(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ixe(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ox="right-scroll-bar-position",Fx="width-before-scroll-bar",axe="with-scroll-bars-hidden",oxe="--removed-body-scroll-bar-size";function AC(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sxe(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var lxe=typeof window<"u"?_.useLayoutEffect:_.useEffect,HM=new WeakMap;function cxe(e,t){var n=sxe(null,function(r){return e.forEach(function(i){return AC(i,r)})});return lxe(function(){var r=HM.get(n);if(r){var i=new Set(r),a=new Set(e),o=n.current;i.forEach(function(s){a.has(s)||AC(s,null)}),a.forEach(function(s){i.has(s)||AC(s,o)})}HM.set(n,e)},[e]),n}function uxe(e){return e}function dxe(e,t){t===void 0&&(t=uxe);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var o=t(a,r);return n.push(o),function(){n=n.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(r=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var o=[];if(n.length){var s=n;n=[],s.forEach(a),o=n}var l=function(){var d=o;o=[],d.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){o.push(d),c()},filter:function(d){return o=o.filter(d),n}}}};return i}function Axe(e){e===void 0&&(e={});var t=dxe(null);return t.options=Fc({async:!0,ssr:!1},e),t}var WY=function(e){var t=e.sideCar,n=VY(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return _.createElement(r,Fc({},n))};WY.isSideCarExport=!0;function fxe(e,t){return e.useMedium(t),WY}var KY=Axe(),fC=function(){},vS=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:fC,onWheelCapture:fC,onTouchMoveCapture:fC}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,A=e.shards,h=e.sideCar,m=e.noRelative,b=e.noIsolation,g=e.inert,y=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,B=e.gapMode,C=VY(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,T=cxe([n,t]),j=Fc(Fc({},C),i);return _.createElement(_.Fragment,null,d&&_.createElement(E,{sideCar:KY,removeScrollBar:c,shards:A,noRelative:m,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:B}),o?_.cloneElement(_.Children.only(s),Fc(Fc({},j),{ref:T})):_.createElement(x,Fc({},j,{className:l,ref:T}),s))});vS.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vS.classNames={fullWidth:Fx,zeroRight:Ox};var hxe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pxe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hxe();return t&&e.setAttribute("nonce",t),e}function mxe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gxe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yxe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pxe())&&(mxe(t,n),gxe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vxe=function(){var e=yxe();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},GY=function(){var e=vxe(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},bxe={left:0,top:0,right:0,gap:0},hC=function(e){return parseInt(e||"",10)||0},wxe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[hC(n),hC(r),hC(i)]},xxe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bxe;var t=wxe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Sxe=GY(),pm="data-scroll-locked",Bxe=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),`
1279  .`.concat(axe,` {
1280   overflow: hidden `).concat(r,`;
1281   padding-right: `).concat(s,"px ").concat(r,`;
1282  }
1283  body[`).concat(pm,`] {
1284    overflow: hidden `).concat(r,`;
1285    overscroll-behavior: contain;
1286    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
1287    padding-left: `.concat(i,`px;
1288    padding-top: `).concat(a,`px;
1289    padding-right: `).concat(o,`px;
1290    margin-left:0;
1291    margin-top:0;
1292    margin-right: `).concat(s,"px ").concat(r,`;
1293    `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";
1293")].filter(Boolean).join(""),`
1294  }
1295  
1296  .`).concat(Ox,` {
1297    right: `).concat(s,"px ").concat(r,`;
1298  }
1299  
1300  .`).concat(Fx,` {
1301    margin-right: `).concat(s,"px ").concat(r,`;
1302  }
1303  
1304  .`).concat(Ox," .").concat(Ox,` {
1305    right: 0 `).concat(r,`;
1306  }
1307  
1308  .`).concat(Fx," .").concat(Fx,` {
1309    margin-right: 0 `).concat(r,`;
1310  }
1311  
1312  body[`).concat(pm,`] {
1313    `).concat(oxe,": ").concat(s,`px;
1314  }
1315`)},$M=function(){var e=parseInt(document.body.getAttribute(pm)||"0",10);return isFinite(e)?e:0},Cxe=function(){_.useEffect(function(){return document.body.setAttribute(pm,($M()+1).toString()),function(){var e=$M()-1;e<=0?document.body.removeAttribute(pm):document.body.setAttribute(pm,e.toString())}},[])},kxe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;Cxe();var a=_.useMemo(function(){return xxe(i)},[i]);return _.createElement(Sxe,{styles:Bxe(a,!t,i,n?"":"!important")})},N_=!1;if(typeof window<"u")try{var vw=Object.defineProperty({},"passive",{get:function(){return N_=!0,!0}});window.addEventListener("test",vw,vw),window.removeEventListener("test",vw,vw)}catch{N_=!1}var jp=N_?{passive:!1}:!1,Exe=function(e){return e.tagName==="TEXTAREA"},YY=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Exe(e)&&n[t]==="visible")},Nxe=function(e){return YY(e,"overflowY")},Txe=function(e){return YY(e,"overflowX")},qM=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=XY(e,r);if(i){var a=JY(e,r),o=a[1],s=a[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_xe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ixe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},XY=function(e,t){return e==="v"?Nxe(t):Txe(t)},JY=function(e,t){return e==="v"?_xe(t):Ixe(t)},Pxe=function(e,t){return e==="h"&&t==="rtl"?-1:1},jxe=function(e,t,n,r,i){var a=Pxe(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,l=t.contains(s),c=!1,d=o>0,A=0,h=0;do{if(!s)break;var m=JY(e,s),b=m[0],g=m[1],y=m[2],v=g-y-a*b;(b||v)&&XY(e,s)&&(A+=v,h+=b);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&Math.abs(A)<1||!d&&Math.abs(h)<1)&&(c=!0),c},bw=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zM=function(e){return[e.deltaX,e.deltaY]},VM=function(e){return e&&"current"in e?e.current:e},Oxe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Fxe=function(e){return`
1316  .block-interactivity-`.concat(e,` {pointer-events: none;}
1317  .allow-interactivity-`).concat(e,` {pointer-events: all;}
1318`)},Lxe=0,Op=[];function Dxe(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(Lxe++)[0],a=_.useState(GY)[0],o=_.useRef(e);_.useEffect(function(){o.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=ixe([e.lockRef.current],(e.shards||[]).map(VM),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=_.useCallback(function(g,y){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var v=bw(g),x=n.current,B="deltaX"in g?g.deltaX:x[0]-v[0],C="deltaY"in g?g.deltaY:x[1]-v[1],E,T=g.target,j=Math.abs(B)>Math.abs(C)?"h":"v";if("touches"in g&&j==="h"&&T.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,z=L?L===T||L.contains(T):!1;if(z)return!1;var F=qM(j,T);if(!F)return!0;if(F?E=j:(E=j==="v"?"h":"v",F=qM(j,T)),!F)return!1;if(!r.current&&"changedTouches"in g&&(B||C)&&(r.current=E),!E)return!0;var M=r.current||E;return jxe(M,y,g,M==="h"?B:C)},[]),l=_.useCallback(function(g){var y=g;if(!(!Op.length||Op[Op.length-1]!==a)){var v="deltaY"in y?zM(y):bw(y),x=t.current.filter(function(E){return E.name===y.type&&(E.target===y.target||y.target===E.shadowParent)&&Oxe(E.delta,v)}
vendor: 4,312 bytes, line 1318
1318)[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var B=(o.current.shards||[]).map(VM).filter(Boolean).filter(function(E){return E.contains(y.target)}),C=B.length>0?s(y,B[0]):!o.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),c=_.useCallback(function(g,y,v,x){var B={name:g,delta:y,target:v,should:x,shadowParent:Mxe(v)};t.current.push(B),setTimeout(function(){t.current=t.current.filter(function(C){return C!==B})},1)},[]),d=_.useCallback(function(g){n.current=bw(g),r.current=void 0},[]),A=_.useCallback(function(g){c(g.type,zM(g),g.target,s(g,e.lockRef.current))},[]),h=_.useCallback(function(g){c(g.type,bw(g),g.target,s(g,e.lockRef.current))},[]);_.useEffect(function(){return Op.push(a),e.setCallbacks({onScrollCapture:A,onWheelCapture:A,onTouchMoveCapture:h}),document.addEventListener("wheel",l,jp),document.addEventListener("touchmove",l,jp),document.addEventListener("touchstart",d,jp),function(){Op=Op.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,jp),document.removeEventListener("touchmove",l,jp),document.removeEventListener("touchstart",d,jp)}},[]);var m=e.removeScrollBar,b=e.inert;return _.createElement(_.Fragment,null,b?_.createElement(a,{styles:Fxe(i)}):null,m?_.createElement(kxe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Mxe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Uxe=fxe(KY,Dxe);var Sj=_.forwardRef(function(e,t){return _.createElement(vS,Fc({},e,{ref:t,sideCar:Uxe}))});Sj.classNames=vS.classNames;var Rxe=[" ","Enter","ArrowUp","ArrowDown"],Qxe=[" ","Enter"],kh="Select",[bS,wS,Hxe]=q0e(kh),[_g]=hS(kh,[Hxe,OY]),xS=OY(),[$xe,KA]=_g(kh),[qxe,zxe]=_g(kh),ZY=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:l,dir:c,name:d,autoComplete:A,disabled:h,required:m,form:b}=e,g=xS(t),[y,v]=_.useState(null),[x,B]=_.useState(null),[C,E]=_.useState(!1),T=V0e(c),[j,O]=E_({prop:r,defaultProp:i??!1,onChange:a,caller:kh}),[L,z]=E_({prop:o,defaultProp:s,onChange:l,caller:kh}),F=_.useRef(null),M=y?b||!!y.closest("form"):!0,[V,q]=_.useState(new Set),W=Array.from(V).map(ee=>ee.props.value).join(";");return u.jsx(Mwe,{...g,children:u.jsxs($xe,{required:m,scope:t,trigger:y,onTriggerChange:v,valueNode:x,onValueNodeChange:B,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:fm(),value:L,onValueChange:z,open:j,onOpenChange:O,dir:T,triggerPointerDownPosRef:F,disabled:h,children:[u.jsx(bS.Provider,{scope:t,children:u.jsx(qxe,{scope:e.__scopeSelect,onNativeOptionAdd:_.useCallback(ee=>{q(ne=>new Set(ne).add(ee))},[]),onNativeOptionRemove:_.useCallback(ee=>{q(ne=>{const K=new Set(ne);return K.delete(ee),K})},[]),children:n})}),M?u.jsxs(SX,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:A,value:L,onChange:ee=>z(ee.target.value),disabled:h,form:b,children:[L===void 0?u.jsx("option",{value:""}):null,Array.from(V)]},W):null]})})};ZY.displayName=kh;var eX="SelectTrigger",tX=_.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,a=xS(n),o=KA(eX,n),s=o.disabled||r,l=Ei(t,o.onTriggerChange),c=wS(n),d=_.useRef("touch"),[A,h,m]=CX(g=>{const y=c().filter(B=>!B.disabled),v=y.find(B=>B.value===o.value),x=kX(y,g,v);x!==void 0&&o.onValueChange(x.value)}),b=g=>{s||(o.onOpenChange(!0),m()),g&&(o.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return u.jsx(Uwe,{asChild:!0,...a,children:u.jsx(Cr.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":BX(o.value)?"":void 0,...i,ref:l,onClick:_r(i.onClick,g=>{g.currentTarget.focus(),d.current!=="mouse"&&b(g)}),onPointerDown:_r(i.onPointerDown,g=>{d.current=g.pointerType;const y=g.target;y.hasPointerCapture(g.pointerId)&&y.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(b(g),g.preventDefault())}),onKeyDown:_r(i.onKeyDown,g=>{const y=A.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(y&&g.key===" ")&&Rxe.includes(g.key)&&(b(),g.preventDefault())})})})});tX.displayName=eX;var nX="SelectValue",rX=_.forwardRef((e,t)=>
vendor: 16,946 bytes, line 1318
1318{const{__scopeSelect:n,className:r,style:i,children:a,placeholder:o="",...s}=e,l=KA(nX,n),{onValueNodeHasChildrenChange:c}=l,d=a!==void 0,A=Ei(t,l.onValueNodeChange);return eo(()=>{c(d)},[c,d]),u.jsx(Cr.span,{...s,ref:A,style:{pointerEvents:"none"},children:BX(l.value)?u.jsx(u.Fragment,{children:o}):a})});rX.displayName=nX;var Vxe="SelectIcon",iX=_.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return u.jsx(Cr.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});iX.displayName=Vxe;var Wxe="SelectPortal",aX=e=>u.jsx(xj,{asChild:!0,...e});aX.displayName=Wxe;var Eh="SelectContent",oX=_.forwardRef((e,t)=>{const n=KA(Eh,e.__scopeSelect),[r,i]=_.useState();if(eo(()=>{i(new DocumentFragment)},[]),!n.open){const a=r;return a?Qh.createPortal(u.jsx(sX,{scope:e.__scopeSelect,children:u.jsx(bS.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(lX,{...e,ref:t})});oX.displayName=Eh;var Ol=10,[sX,GA]=_g(Eh),Kxe="SelectContentImpl",Gxe=$we("SelectContent.RemoveScroll"),lX=_.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:l,align:c,alignOffset:d,arrowPadding:A,collisionBoundary:h,collisionPadding:m,sticky:b,hideWhenDetached:g,avoidCollisions:y,...v}=e,x=KA(Eh,n),[B,C]=_.useState(null),[E,T]=_.useState(null),j=Ei(t,he=>C(he)),[O,L]=_.useState(null),[z,F]=_.useState(null),M=wS(n),[V,q]=_.useState(!1),W=_.useRef(!1);_.useEffect(()=>{if(B)return zY(B)},[B]),vY();const ee=_.useCallback(he=>{const[ye,...Ae]=M().map(ge=>ge.ref.current),[be]=Ae.slice(-1),Ee=document.activeElement;for(const ge of he)if(ge===Ee||(ge==null||ge.scrollIntoView({block:"nearest"}),ge===ye&&E&&(E.scrollTop=0),ge===be&&E&&(E.scrollTop=E.scrollHeight),ge==null||ge.focus(),document.activeElement!==Ee))return},[M,E]),ne=_.useCallback(()=>ee([O,B]),[ee,O,B]);_.useEffect(()=>{V&&ne()},[V,ne]);const{onOpenChange:K,triggerPointerDownPosRef:oe}=x;_.useEffect(()=>{if(B){let he={x:0,y:0};const ye=be=>{var Ee,ge;he={x:Math.abs(Math.round(be.pageX)-(((Ee=oe.current)==null?void 0:Ee.x)??0)),y:Math.abs(Math.round(be.pageY)-(((ge=oe.current)==null?void 0:ge.y)??0))}},Ae=be=>{he.x<=10&&he.y<=10?be.preventDefault():B.contains(be.target)||K(!1),document.removeEventListener("pointermove",ye),oe.current=null};return oe.current!==null&&(document.addEventListener("pointermove",ye),document.addEventListener("pointerup",Ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ye),document.removeEventListener("pointerup",Ae,{capture:!0})}}},[B,K,oe]),_.useEffect(()=>{const he=()=>K(!1);return window.addEventListener("blur",he),window.addEventListener("resize",he),()=>{window.removeEventListener("blur",he),window.removeEventListener("resize",he)}},[K]);const[$,X]=CX(he=>{const ye=M().filter(Ee=>!Ee.disabled),Ae=ye.find(Ee=>Ee.ref.current===document.activeElement),be=kX(ye,he,Ae);be&&setTimeout(()=>be.ref.current.focus())}),Q=_.useCallback((he,ye,Ae)=>{const be=!W.current&&!Ae;(x.value!==void 0&&x.value===ye||be)&&(L(he),be&&(W.current=!0))},[x.value]),R=_.useCallback(()=>B==null?void 0:B.focus(),[B]),re=_.useCallback((he,ye,Ae)=>{const be=!W.current&&!Ae;(x.value!==void 0&&x.value===ye||be)&&F(he)},[x.value]),ce=r==="popper"?T_:cX,le=ce===T_?{side:s,sideOffset:l,align:c,alignOffset:d,arrowPadding:A,collisionBoundary:h,collisionPadding:m,sticky:b,hideWhenDetached:g,avoidCollisions:y}:{};return u.jsx(sX,{scope:n,content:B,viewport:E,onViewportChange:T,itemRefCallback:Q,selectedItem:O,onItemLeave:R,itemTextRefCallback:re,focusSelectedItem:ne,selectedItemText:z,position:r,isPositioned:V,searchRef:$,children:u.jsx(Sj,{as:Gxe,allowPinchZoom:!0,children:u.jsx(fj,{asChild:!0,trapped:x.open,onMountAutoFocus:he=>{he.preventDefault()},onUnmountAutoFocus:_r(i,he=>{var ye;(ye=x.trigger)==null||ye.focus({preventScroll:!0}),he.preventDefault()}),children:u.jsx(Aj,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:he=>he.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:u.jsx(ce,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:he=>he.preventDefault(),...v,...le,onPlaced:()=>q(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:_r(v.onKeyDown,he=>{const ye=he.ctrlKey||he.altKey||he.metaKey;if(he.key==="Tab"&&he.preventDefault(),!ye&&he.key.length===1&&X(he.key),["ArrowUp","ArrowDown","Home","End"].includes(he.key)){let be=M().filter(Ee=>!Ee.disabled).map(Ee=>Ee.ref.current);if(["ArrowUp","End"].includes(he.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(he.key)){const Ee=he.target,ge=be.indexOf(Ee);be=be.slice(ge+1)}setTimeout(()=>ee(be)),he.preventDefault()}})})})})})})});lX.displayName=Kxe;var Yxe="SelectItemAlignedPosition",cX=_.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,a=KA(Eh,n),o=GA(Eh,n),[s,l]=_.useState(null),[c,d]=_.useState(null),A=Ei(t,j=>d(j)),h=wS(n),m=_.useRef(!1),b=_.useRef(!0),{viewport:g,selectedItem:y,selectedItemText:v,focusSelectedItem:x}=o,B=_.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&c&&g&&y&&v){const j=a.trigger.getBoundingClientRect(),O=c.getBoundingClientRect(),L=a.valueNode.getBoundingClientRect(),z=v.getBoundingClientRect();if(a.dir!=="rtl"){const Ee=z.left-O.left,ge=L.left-Ee,Ue=j.left-ge,Ye=j.width+Ue,ae=Math.max(Ye,O.width),Le=window.innerWidth-Ol,st=xM(ge,[Ol,Math.max(Ol,Le-ae)]);s.style.minWidth=Ye+"px",s.style.left=st+"px"}else{const Ee=O.right-z.right,ge=window.innerWidth-L.right-Ee,Ue=window.innerWidth-j.right-ge,Ye=j.width+Ue,ae=Math.max(Ye,O.width),Le=window.innerWidth-Ol,st=xM(ge,[Ol,Math.max(Ol,Le-ae)]);s.style.minWidth=Ye+"px",s.style.right=st+"px"}const F=h(),M=window.innerHeight-Ol*2,V=g.scrollHeight,q=window.getComputedStyle(c),W=parseInt(q.borderTopWidth,10),ee=parseInt(q.paddingTop,10),ne=parseInt(q.borderBottomWidth,10),K=parseInt(q.paddingBottom,10),oe=W+ee+V+K+ne,$=Math.min(y.offsetHeight*5,oe),X=window.getComputedStyle(g),Q=parseInt(X.paddingTop,10),R=parseInt(X.paddingBottom,10),re=j.top+j.height/2-Ol,ce=M-re,le=y.offsetHeight/2,he=y.offsetTop+le,ye=W+ee+he,Ae=oe-ye;if(ye<=re){const Ee=F.length>0&&y===F[F.length-1].ref.current;s.style.bottom="0px";const ge=c.clientHeight-g.offsetTop-g.offsetHeight,Ue=Math.max(ce,le+(Ee?R:0)+ge+ne),Ye=ye+Ue;s.style.height=Ye+"px"}else{const Ee=F.length>0&&y===F[0].ref.current;s.style.top="0px";const Ue=Math.max(re,W+g.offsetTop+(Ee?Q:0)+le)+Ae;s.style.height=Ue+"px",g.scrollTop=ye-re+g.offsetTop}s.style.margin=`${Ol}px 0`,s.style.minHeight=$+"px",s.style.maxHeight=M+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[h,a.trigger,a.valueNode,s,c,g,y,v,a.dir,r]);eo(()=>B(),[B]);const[C,E]=_.useState();eo(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const T=_.useCallback(j=>{j&&b.current===!0&&(B(),x==null||x(),b.current=!1)},[B,x]);return u.jsx(Jxe,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:u.jsx(Cr.div,{...i,ref:A,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});cX.displayName=Yxe;var Xxe="SelectPopperPosition",T_=_.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Ol,...a}=e,o=xS(n);return u.jsx(Rwe,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});T_.displayName=Xxe;var[Jxe,Bj]=_g(Eh,{}),__="SelectViewport",uX=_.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,a=GA(__,n),o=Bj(__,n),s=Ei(t,a.onViewportChange),l=_.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(bS.Slot,{scope:n,children:u.jsx(Cr.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:_r(i.onScroll,c=>{const d=c.currentTarget,{contentWrapper:A,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&A){const m=Math.abs(l.current-d.scrollTop);if(m>0){const b=window.innerHeight-Ol*2,g=parseFloat(A.style.minHeight),y=parseFloat(A.style.height),v=Math.max(g,y);if(v<b){const x=v+m,B=Math.min(b,x),C=x-B;A.style.height=B+"px",A.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,A.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});uX.displayName=__;var dX="SelectGroup",[Zxe,e1e]=_g(dX),t1e=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=fm();return u.jsx(Zxe,{scope:n,id:i,children:u.jsx(Cr.div,{role:"group","aria-labelledby":i,...r,ref:t})})});t1e.displayName=dX;var AX="SelectLabel",fX=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=e1e(AX,n);return u.jsx(Cr.div,{id:i.id,...r,ref:t})});fX.displayName=AX;var v1="SelectItem",[n1e,hX]=_g(v1),pX=_.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=KA(v1,n),l=GA(v1,n),c=s.value===r,[d,A]=_.useState(a??""),[h,m]=_.useState(!1),b=Ei(t,x=>{var B;return(B=l.itemRefCallback)==null?void 0:B.call(l,x,r,i)}),g=fm(),y=_.useRef("touch"),v=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(n1e,{scope:n,value:r,disabled:i,textId:g,isSelected:c,onItemTextChange:_.useCallback(x=>{A(B=>B||((x==null?void 0:x.textContent)??"").trim())},[]),children:u.jsx(bS.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:u.jsx(Cr.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:b,onFocus:_r(o.onFocus,()=>m(!0)),onBlur:_r(o.onBlur,()=>m(!1)),onClick:_r(o.onClick,()=>{y.current!=="mouse"&&v()}),onPointerUp:_r(o.onPointerUp,()=>{y.current==="mouse"&&v()}),onPointerDown:_r(o.onPointerDown,x=>{y.current=x.pointerType}),onPointerMove:_r(o.onPointerMove,x=>{var B;y.current=x.pointerType,i?(B=l.onItemLeave)==null||B.call(l):y.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:_r(o.onPointerLeave,x=>{var B;x.currentTarget===document.activeElement&&((B=l.onItemLeave)==null||B.call(l))}),onKeyDown:_r(o.onKeyDown,x=>{var C;((C=l.searchRef)==null?void 0:C.current)!==""&&x.key===" "||(Qxe.includes(x.key)&&v(),x.key===" "&&x.preventDefault())})})})})});pX.displayName=v1;var nv="SelectItemText",mX=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...a}=e,o=KA(nv,n),s=GA(nv,n),l=hX(nv,n),c=zxe(nv,n),[d,A]=_.useState(null),h=Ei(t,v=>A(v),l.onItemTextChange,v=>{var x;return(x=s.itemTextRefCallback)==null?void 0:x.call(s,v,l.value,l.disabled)}),m=d==null?void 0:d.textContent,b=_.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=c;return eo(()=>(g(b),()=>y(b)),[g,y,b]),u.jsxs(u.Fragment,{children:[u.jsx(Cr.span,{id:l.textId,...a,ref:h}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Qh.createPortal(a.children,o.valueNode):null]})});mX.displayName=nv;var gX="SelectItemIndicator",yX=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return hX(gX,n).isSelected?u.jsx(Cr.span,{"aria-hidden":!0,...r,ref:t}):null});yX.displayName=gX;var I_="SelectScrollUpButton",vX=_.forwardRef((e,t)=>{const n=GA(I_,e.__scopeSelect),r=Bj(I_,e.__scopeSelect),[i,a]=_.useState(!1),o=Ei(t,r.onScrollButtonChange);return eo(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollTop>0;a(c)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),i?u.jsx(wX,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});vX.displayName=I_;var P_="SelectScrollDownButton",bX=_.forwardRef((e,t)=>{const n=GA(P_,e.__scopeSelect),r=Bj(P_,e.__scopeSelect),[i,a]=_.useState(!1),o=Ei(t,r.onScrollButtonChange);return eo(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<c;a(d)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),i?u.jsx(wX,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});bX.displayName=P_;var wX=_.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,a=GA("SelectScrollButton",n),o=_.useRef(null),s=wS(n),l=_.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return _.useEffect(()=>()=>l(),[l]),eo(()=>{var d;const c=s().find(A=>A.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[s]),u.jsx(Cr.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:_r(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:_r(i.onPointerMove,()=>{var c;(c=a.onItemLeave)==null||c.call(a),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:_r(i.onPointerLeave,()=>{l()})})}),r1e="SelectSeparator",xX=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.jsx(Cr.div,{"aria-hidden":!0,...r,ref:t})});xX.displayName=r1e;var j_="SelectArrow",i1e=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=xS(n),a=KA(j_,n),o=GA(j_,n);return a.open&&o.position==="popper"?u.jsx(Qwe,{...i,...r,ref:t}):null});i1e.displayName=j_;var a1e="SelectBubbleInput",SX=_.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=_.useRef(null),a=Ei(r,i),o=Jwe(t);return _.useEffect(()=>{const s=i.current;if(!s)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&d){const A=new Event("change",{bubbles:!0});d.call(s,t),s.dispatchEvent(A)}},[o,t]),u.jsx(Cr.select,{...n,style:{...$Y,...n.style},ref:a,defaultValue:t})});SX.displayName=a1e;function BX(e){return e===""||e===void 0}function CX(e){const t=Bh(e),n=_.useRef(""),r=_.useRef(0),i=_.useCallback(o=>{const s=n.current+o;t(s),(function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),a=_.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function kX(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=o1e(e,Math.max(a,0));i.length===1&&(o=o.filter(c=>c!==n));const l=o.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function o1e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var s1e=ZY,EX=tX,l1e=rX,c1e=iX,u1e=aX,NX=oX,d1e=uX,TX=fX,_X=pX,A1e=mX,f1e=yX,IX=vX,PX=bX,jX=xX;const h1e=s1e,p1e=l1e,OX=_.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(EX,{ref:r,className:Ci("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,u.jsx(c1e,{asChild:!0,children:u.jsx(K2,{className:"h-4 w-4 opacity-50"})})]}));OX.displayName=EX.displayName;const FX=_.forwardRef(({className:e,...t},n)=>u.jsx(IX,{ref:n,className:Ci("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Ioe,{className:"h-4 w-4"})}));FX.displayName=IX.displayName;const LX=_.forwardRef(({className:e,...t},n)=>u.jsx(PX,{ref:n,className:Ci("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(K2,{className:"h-4 w-4"})}));LX.displayName=PX.displayName;const DX=_.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>u.jsx(u1e,{children:u.jsxs(NX,{ref:i,className:Ci("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1318de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[u.jsx(FX,{}),u.jsx(d1e,{className:Ci("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(LX,{})]})}));DX.displayName=NX.displayName;const m1e=_.forwardRef(({className:e,...t},n)=>u.jsx(TX,{ref:n,className:Ci("px-2 py-1.5 text-sm font-semibold",e),...t}));m1e.displayName=TX.displayName;const Hf=_.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(_X,{ref:r,className:Ci("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(f1e,{children:u.jsx(bg,{className:"h-4 w-4"})})}),u.jsx(A1e,{children:t})]}));Hf.displayName=_X.displayName;const g1e=_.forwardRef(({className:e,...t},n)=>u.jsx(jX,{ref:n,className:Ci("-mx-1 my-1 h-px bg-muted",e),...t}));g1e.displayName=jX.displayName;function y1e(){const[e,t]=_.useState(!1),[n,r]=_.useState({fullName:"",email:"",phone:"",organisation:"",industry:"",message:""}),i=async a=>{a.preventDefault(),mr.functions.invoke("syncToHubspot",{source:"contact",...n}).catch(()=>{}),t(!0)};return u.jsxs(u.Fragment,{children:[u.jsxs("section",{className:"relative pt-32 pb-8 lg:pt-44 lg:pb-10 overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:Rt.boardroom,alt:"",className:"w-full h-full object-cover opacity-20"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-cloud to-white"})]}),u.jsx("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8",children:u.jsx(dr,{label:"Contact",title:"Tell us what's broken. We'll fix it.",description:"Describe your environment and your challenges. We respond with a direct, specific view — within one business day."})})]}),u.jsx("section",{className:"py-8 lg:py-12 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-10",children:[u.jsx("div",{className:"lg:col-span-2",children:u.jsx(Vl,{children:e?u.jsxs(_e.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"py-16 text-center",children:[u.jsx(Qc,{className:"w-16 h-16 text-azure mx-auto mb-5"}),u.jsx("h3",{className:"text-2xl font-heading font-extrabold text-midnight",children:"Thank you."}),u.jsx("p",{className:"text-slate mt-3",children:"We'll be in touch soon."})]}):u.jsxs("form",{onSubmit:i,"data-form-name":"Contact Enquiry",className:"space-y-5",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-xs text-slate/60 uppercase tracking-wider mb-1.5 block",children:"Full name"}),u.jsx(ql,{required:!0,placeholder:"Your name",value:n.fullName,onChange:a=>r({...n,fullName:a.target.value})})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs text-slate/60 uppercase tracking-wider mb-1.5 block",children:"Email"}),u.jsx(ql,{required:!0,type:"email",placeholder:"[email protected]",value:n.email,onChange:a=>r({...n,email:a.target.value})})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs text-slate/60 uppercase tracking-wider mb-1.5 block",children:"Phone"}),u.jsx(ql,{type:"tel",placeholder:"+27 11 234 5678",value:n.phone,onChange:a=>r({...n,phone:a.target.value})})]})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-xs text-slate/60 uppercase tracking-wider mb-1.5 block",children:"Organisation"}),u.jsx(ql,{placeholder:"Company name",value:n.organisation,onChange:a=>r({...n,organisation:a.target.value})})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs text-slate/60 uppercase tracking-wider mb-1.5 block",children:"Industry"}),u.jsxs(h1e,{value:n.industry,onValueChange:a=>r({...n,industry:a}),children:[u.jsx(OX,{children:u.jsx(p1e,{placeholder:"Select your industry"})}),u.jsxs(DX,{children:[u.jsx(Hf,{value:"Financial Services and Insurance",children:"Financial Services and Insurance"}),u.jsx(Hf,{value:"Municipalities and Government",children:"Municipalities and Government"}),u.jsx(Hf,{value:"Higher Education",children:"Higher Education"}),u.jsx(Hf,{value:"Mining and Industry",children:"Mining and Industry"}),u.jsx(Hf,{value:"Special IT Projects",children:"Special IT Projects"}),u.jsx(Hf,{value:"Other",children:"Other"})]})]})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs text-slate/60 uppercase tracking-wider mb-1.5 block",children:"How can we help?"}),u.jsx(hY,{required:!0,placeholder:"Tell us about your requirements...",rows:5,className:"resize-none",value:n.message,onChange:a=>r({...n,message:a.target.value})})]}),u.jsxs(mY,{type:"submit",className:"px-10 py-3 bg-azure hover:bg-sky text-white font-bold text-sm tracking-wide rounded-full",children:[u.jsx(aW,{className:"w-4 h-4 mr-2"}),"Submit enquiry"]})]})})}),u.jsxs("div",{className:"space-y-5",children:[u.jsxs(Vl,{children:[u.jsx(c3,{className:"w-5 h-5 text-azure mb-2"}),u.jsx("h4",{className:"font-bold text-midnight text-sm",children:"Office"}),u.jsxs("p",{className:"text-sm text-slate mt-1.5 leading-relaxed",children:["1st Floor, Investment Place",u.jsx("br",{}),"10th Road, Hyde Park",u.jsx("br",{}),"Johannesburg"]})]}),u.jsxs(Vl,{children:[u.jsx(Y2,{className:"w-5 h-5 text-azure mb-2"}),u.jsx("h4",{className:"font-bold text-midnight text-sm",children:"Email"}),u.jsx("a",{href:"mailto:[email protected]",className:"text-sm text-slate mt-1 block hover:text-azure transition-colors",children:"[email protected]"})]}),u.jsxs(Vl,{children:[u.jsx(wh,{className:"w-5 h-5 text-azure mb-2"}),u.jsx("h4",{className:"font-bold text-midnight text-sm",children:"Web"}),u.jsx("span",{className:"text-sm text-slate mt-1 block",children:"sourceworx.co.za"})]}),u.jsx(ab,{quote:un[1].quote,name:un[1].name,role:un[1].role,img:un[1].img})]})]})})})]})}const pC=[{id:"intro",title:"Introduction",content:'Sourceworx (Pty) Ltd ("Sourceworx", "we", "us" or "our") is committed to protecting the privacy and personal information of all individuals whose data we process. This Privacy Notice explains how we 
1318collect, use, store and protect personal information in compliance with the Protection of Personal Information Act 4 of 2013 (POPIA) and other applicable South African legislation.'},{id:"responsible",title:"Responsible Party",content:"Sourceworx (Pty) Ltd is the responsible party as defined in POPIA. Our registered address is Block A, 1st Floor, Investment Place Office Park, 111 10th Road, Hyde Park, Johannesburg, 2196. For queries regarding this Privacy Notice or your personal information, contact our Information Officers: Masande Dyasi ([email protected]) or Naledi Kgofelo ([email protected])."},{id:"collection",title:"Information We Collect",content:"We may collect the following categories of personal information: contact details (name, email address, telephone number, physical address), employment and professional information, identification details required for B-BBEE verification purposes, technical information related to your use of our website and services, and any additional information you voluntarily provide to us."},{id:"purpose",title:"Purpose of Processing",content:"We process personal information for the following purposes: to provide and manage our IT managed services, network managed services, cybersecurity and software development offerings; to communicate with clients and prospective clients; to comply with legal and regulatory obligations including POPIA, B-BBEE and ISO certification requirements; to manage our workforce and talent development programmes; and to improve our services and website experience."},{id:"lawful",title:"Lawful Basis for Processing",content:"We process personal information on one or more of the following lawful grounds: your consent; the performance of a contract to which you are a party; compliance with a legal obligation; protection of your legitimate interests; and the pursuit of our legitimate business interests, provided this does not prejudice your rights."},{id:"sharing",title:"Sharing of Information",content:"We may share personal information with our technology partners (including Microsoft, Fortinet, Cisco and Huawei) to the extent necessary to deliver our services, with regulatory bodies and auditors as required by law, and with service providers who assist us in operating our business. We do not sell personal information to third parties."},{id:"security",title:"Security Measures",content:"We take appropriate technical and organisational measures to protect personal information against unauthorised access, alteration, disclosure or destruction. Our security practices are certified under ISO 27001 and include encryption, access controls, regular security assessments and staff training."},{id:"retention",title:"Retention",content:"We retain personal information only for as long as is necessary to fulfil the purposes for which it was collected, or as required by law. When personal information is no longer needed, it is securely destroyed or de-identified."},{id:"rights",title:"Your Rights",content:"Under POPIA, you have the right to: request access to your personal information; request correction of inaccurate or incomplete information; request deletion of your personal information where it is no longer necessary; object to the processing of your personal information; and lodge a complaint with the Information Regulator."},{id:"paia",title:"PAIA Manual",content:""},{id:"cookies",title:"Cookies and Website Analytics",content:'Our website uses cookies and similar technologies to improve your browsing experience and to analyse website traffic using tools such as Google Analytics. We only activate analytics cookies with your consent. You may withdraw consent at any time by clicking "Cookie Settings" in the footer. You may also control cookies through your browser settings; however, disabling certain cookies may affect the functionality of parts of the website.'},{id:"changes",title:"Changes to This Notice",content:"We may update this Privacy Notice from time to time to reflect changes in our practices or applicable law. Any material changes will be communicated through our website. This notice was last updated in April 2026."},{id:"contact",title:"Contact Us",content:"If you have questions about this Privacy Notice or wish to exercise your rights under POPIA, please contact our Information Officers: Masande Dyasi at [email protected] or Naledi Kgofelo at [email protected]. You may also write to us at Block A, 1st Floor, Investment Place Office Park, 111 10th Road, Hyde Park, Johannesburg, 2196."}];function v1e(){const[e,t]=_.useState("intro");return _.useEffect(()=>{const n=()=>{for(const r of pC){const i=document.getElementById(r.id);if(i){const a=i.getBoundingClientRect();if(a.top<=200&&a.bottom>
1318200){t(r.id);break}}}};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)},[]),u.jsx("section",{className:"pt-32 pb-24 lg:pt-40 lg:pb-36",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsxs("div",{className:"max-w-3xl mb-16",children:[u.jsx("span",{className:"text-xs font-semibold tracking-widest uppercase text-azure mb-4 block",children:"Legal"}),u.jsx("h1",{className:"text-3xl md:text-5xl font-heading font-bold text-midnight tracking-tight",children:"Privacy Notice"}),u.jsx("p",{className:"text-slate mt-4",children:"In compliance with the Protection of Personal Information Act (POPIA)."})]}),u.jsxs("div",{className:"flex gap-12",children:[u.jsx("nav",{className:"hidden lg:block w-64 flex-shrink-0 sticky top-28 self-start",children:u.jsx("ul",{className:"space-y-1",children:pC.map(n=>u.jsx("li",{children:u.jsx("a",{href:`#${n.id}`,className:`block text-sm py-2 px-4 rounded-lg transition-colors ${e===n.id?"text-midnight bg-azure/10 font-medium":"text-slate/60 hover:text-slate"}`,children:n.title})},n.id))})}),u.jsx("div",{className:"flex-1 max-w-3xl space-y-12",children:pC.map(n=>u.jsxs(_e.div,{id:n.id,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.05},children:[u.jsx("h2",{className:"text-xl font-heading font-bold text-midnight mb-4",children:n.title}),n.id==="paia"?u.jsxs("div",{className:"space-y-8",children:[u.jsxs("div",{className:"rounded-2xl bg-midnight text-white p-6",children:[u.jsx("p",{className:"text-xs font-bold uppercase tracking-widest text-azure mb-1",children:"PAIA Manual"}),u.jsx("h3",{className:"text-lg font-heading font-bold",children:"Promotion of Access to Information Act 2 of 2000"}),u.jsx("p",{className:"text-white/60 text-sm mt-1",children:"Sourceworx (Pty) Ltd — Section 51 Manual"})]}
1318),[{num:"1",title:"Introduction",body:'The Promotion of Access to Information Act 2 of 2000 ("PAIA") gives effect to the constitutional right of access to any information held by the State, and to any information held by a private body that is required for the exercise or protection of any rights. This manual is published in terms of Section 51 of PAIA and describes how members of the public may submit requests for access to records held by Sourceworx (Pty) Ltd ("Sourceworx").'},{num:"2",title:"Details of the Responsible Party",body:null,table:[["Company name","Sourceworx (Pty) Ltd"],["Registration number","Available on request"],["Physical address","Block A, 1st Floor, Investment Place Office Park, 111 10th Road, Hyde Park, Johannesburg, 2196"],["Postal address","Block A, 1st Floor, Investment Place Office Park, 111 10th Road, Hyde Park, Johannesburg, 2196"],["Website","www.sourceworx.co.za"]]},{num:"3",title:"Information Officers",body:"Sourceworx has designated the following individuals as Information Officers for the purposes of PAIA and POPIA. All requests for access to information must be submitted to one of the Information Officers below.",table:[["Information Officer 1","Masande Dyasi"],["Title","Managing Director"],["Email","[email protected]"],["Information Officer 2","Naledi Kgofelo"],["Email","[email protected]"],["Physical address","Block A, 1st Floor, Investment Place Office Park, 111 10th Road, Hyde Park, Johannesburg, 2196"]]},{num:"4",title:"SAHRC Guide",body:"The South African Human Rights Commission (SAHRC) has compiled a guide to assist members of the public in exercising their rights under PAIA. This guide is available free of charge from the SAHRC at ",link:{href:"https://www.sahrc.org.za",label:"www.sahrc.org.za"},bodySuffix:"."},{num:"5",title:"Description of the Business",body:"Sourceworx (Pty) Ltd is a South African information technology company providing IT Managed Services, Managed Cybersecurity, and Software Development solutions to organisations across multiple sectors, including financial services, higher and basic education, mining and government. Sourceworx holds ISO 9001, ISO 27001 and ISO 20000 certifications and is a registered Microsoft partner."},{num:"6",title:"Categories of Records Held",body:"Sourceworx holds the following categories of records, subject to applicable grounds for refusal:",list:["Client and prospective client records (contracts, correspondence, service records)","Employee and contractor records (employment contracts, payroll, HR documentation)","Financial records (invoices, bank statements, tax returns)","Supplier and vendor records (contracts, service level agreements)","Company statutory records (MOI, share register, board resolutions)","IT and cybersecurity records (system logs, security assessments, incident records)","Compliance records (ISO certifications, B-BBEE verification certificates, POPIA records)","Training and skills development records (SETA submissions, learner records)"]},{num:"7",title:"How to Submit a Request for Access",body:"Any person wishing to request access to records held by Sourceworx must complete the prescribed Form C (available from the SAHRC website or the Information Regulator's website) and submit it to one of the Information Officers listed in Section 3 of this manual. The request must include: full name and contact details of the requester; a description of the record(s) requested; the form in which access is requested; the right being exercised or protected and the reason the record is required; proof of identity of the requester."},{num:"8",title:"Fees",body:"A request fee is payable upon submission of a request. An access fee is payable before access is granted if the request is approved. Fees are prescribed by the Minister of Justice and are available from the SAHRC or the Information Regulator. Sourceworx will provide written confirmation of applicable fees upon receipt of a request. Persons who can demonstrate that they cannot afford the prescribed fees may apply for a waiver."},{num:"9",title:"Grounds for Refusal",body:"Sourceworx may refuse a request for access to records on grounds set out in PAIA, including but not limited to: mandatory protection of the privacy of a third party; mandatory protection of commercial information; mandatory protection of certain confidential information; protection of research information; protection of the commercial activities of a private body; and where disclosure would be an abuse of the PAIA process. Any refusal will be communicated in writing with reasons within 30 days of receipt of the request."},{num:"10",title:"Availability of This Manual",body:"This manual is available free of charge on the Sourceworx website at www.sourceworx.co.za/privacy. A copy may also be requested from the Information Officers listed in Section 3. This manual will be updated as required to reflect changes in legislation or company operations. Last updated: June 2026."}].map(r=>u.jsxs("div",{className:"border border-slate/10 rounded-xl overflow-hidden",children:[u.jsxs("div",{className:"bg-cloud px-5 py-3 flex items-center gap-3",children:[u.jsx("span",{className:"w-6 h-6 rounded-full bg-azure text-white text-xs font-bold flex items-center justify-center flex-shrink-0",children:r.num}),u.jsx("h3",{className:"font-heading font-bold text-midnight text-sm",children:r.title})]}),u.jsxs("div",{className:"px-5 py-4 space-y-3",children:[r.body&&u.jsxs("p",{className:"text-slate text-sm leading-relaxed",children:[r.body,r.link&&u.jsx("a",{href:r.link.href,target:"_blank",rel:"noopener noreferrer",className:"text-azure underline underline-offset-2",children:r.link.label}),r.bodySuffix]}),r.table&&u.jsx("table",{className:"w-full text-sm",children:u.jsx("tbody",{children:r.table.map(([i,a])=>u.jsxs("tr",{className:"border-t border-slate/8 first:border-0",children:[u.jsx("td",{className:"py-2 pr-4 text-slate/60 font-medium w-44 align-top",children:i}),u.jsx("td",{className:"py-2 text-midnight",children:a})]},i))})}),r.list&&u.jsx("ul",{className:"space-y-1",children:r.list.map(i=>u.jsxs("li",{className:"flex items-start gap-2 text-sm text-slate",children:[u.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-azure mt-1.5 flex-shrink-0"}),i]},i))})]})]},r.num))]}):u.jsx("p",{className:"text-slate leading-relaxed",children:n.content})]},n.id))})]})]})})}const b1e=[{icon:Mo,label:"ISO 27001 aligned"},{icon:c3,label:"SA regulatory context built in"},{icon:bs,label:"10 minutes per assessment"},{icon:Y2,label:"Results in your inbox"}];function w1e(){return u.jsx(_e.div,{initial:{opacity:0,y:12}
1318,animate:{opacity:1,y:0},transition:{delay:.4,duration:.5},className:"mt-9 inline-flex flex-wrap items-stretch glass-card rounded-2xl divide-y sm:divide-y-0 sm:divide-x divide-slate/10 overflow-hidden",children:b1e.map(({icon:e,label:t})=>u.jsxs("div",{className:"flex items-center gap-2.5 px-5 py-3.5 w-full sm:w-auto",children:[u.jsx(e,{className:"w-4 h-4 text-azure flex-shrink-0",strokeWidth:2.2}),u.jsx("span",{className:"text-xs font-semibold tracking-wide text-midnight/80 whitespace-nowrap",children:t})]},t))})}const x1e=[{value:"fsi",label:"Financial Services and Insurance"},{value:"gov",label:"Municipalities and Government"},{value:"edu",label:"Higher Education"},{value:"mining",label:"Mining and Industry"},{value:"other",label:"Other"}],S1e={bpa:[{min:9,max:17,label:"Tier 1 — Automation Deficit",badge:"Immediate Action Needed",color:"#EF4444"},{min:18,max:25,label:"Tier 2 — Manual-Heavy",badge:"Significant Opportunity",color:"#F59E0B"},{min:26,max:32,label:"Tier 3 — Partially Automated",badge:"Targeted Improvement",color:"#009BDF"},{min:33,max:36,label:"Tier 4 — Automation Mature",badge:"Strong Foundation",color:"#10B981"}],mit:[{min:9,max:17,label:"Tier 1 — Critical Risk",badge:"Immediate Action Needed",color:"#EF4444"},{min:18,max:25,label:"Tier 2 — Reactive IT",badge:"Significant Opportunity",color:"#F59E0B"},{min:26,max:32,label:"Tier 3 — Managed with Gaps",badge:"Targeted Improvement",color:"#009BDF"},{min:33,max:36,label:"Tier 4 — Proactively Managed",badge:"Strong Foundation",color:"#10B981"}],net:[{min:9,max:17,label:"Tier 1 — Network at Risk",badge:"Immediate Action Needed",color:"#EF4444"},{min:18,max:25,label:"Tier 2 — Connectivity Gaps",badge:"Significant Opportunity",color:"#F59E0B"},{min:26,max:32,label:"Tier 3 — Stable, Not Resilient",badge:"Targeted Improvement",color:"#009BDF"},{min:33,max:36,label:"Tier 4 — Network Resilient",badge:"Strong Foundation",color:"#10B981"}],cyber:[{min:9,max:17,label:"Tier 1 — High Exposure",badge:"Immediate Action Needed",color:"#EF4444"},{min:18,max:25,label:"Tier 2 — Significant Gaps",badge:"Significant Risk",color:"#F59E0B"},{min:26,max:32,label:"Tier 3 — Partial Coverage",badge:"Targeted Improvement",color:"#009BDF"},{min:33,max:36,label:"Tier 4 — Well Defended",badge:"Strong Foundation",color:"#10B981"}],ai:[{min:9,max:17,label:"Tier 1 — Pre-Foundation",badge:"Not Yet Ready",color:"#EF4444"},{min:18,max:25,label:"Tier 2 — Foundation Building",badge:"Early Stage",color:"#F59E0B"},{min:26,max:32,label:"Tier 3 — Emerging Readiness",badge:"Advancing",color:"#009BDF"},{min:33,max:36,label:"Tier 4 — AI Ready",badge:"Strong Readiness",color:"#10B981"}]},O_=[{id:"bpa",label:"Business Process Automation",subtitle:"The Audit Room",concept:"Feel like a structured internal audit — not a tech quiz.",color:"#009BDF",accentColor:"#E0F4FD",intro:"Most organisations are losing time and money to manual processes they have learned to tolerate. This assessment examines nine dimensions of your current automation maturity. Answer accurately — the value is proportional to how seriously you engage with each question.",industryQ:"Which best describes your organisation?",questions:[{q:"How much of your finance and reporting cycle relies on manual data re-entry between systems?",variants:{fsi:"How much of your finance and regulatory reporting cycle relies on manual data re-entry between core banking, CRM and compliance systems?",gov:"How much of your MFMA reporting, budget submissions and grant management relies on manual data re-entry between systems?",edu:"How much of your SETA reporting, student administration and financial aid processing relies on manual data re-entry?",mining:"How much of your shift reporting, maintenance logging and compliance documentation relies on manual data capture and transcription?"},options:[{label:"Fully automated — systems integrate and data flows without manual intervention",score:4},{label:"Mostly automated — some manual steps remain but they are minimal",score:3},{label:"Partially automated — significant manual effort still required at most stages",score:2},{label:"Almost entirely manual — data is re-keyed between most systems",score:1}],flag:{threshold:1,title:"Critical data integrity risk",body:"Manual re-entry is the single largest source of reportable data errors. In a regulated environment, a data error that reaches a regulatory submission carries consequences beyond the operational cost of fixing it."}},{q:"How consistently are your approval workflows followed and documented?",variants:{fsi:"How consistently are your credit, compliance and procurement approval workflows followed and documented for FSCA and internal audit purposes?",gov:"How consistently are your supply chain management and infrastru
1318cture project approval workflows documented in an audit-ready format?",edu:"How consistently are your academic, financial aid and procurement approvals followed and documented for DHET and internal audit purposes?",mining:"How consistently are your safety, maintenance and contractor approval workflows documented and traceable to a named individual?"},options:[{label:"Fully documented — every approval is logged, timestamped and traceable",score:4},{label:"Mostly documented — exceptions exist but they are rare",score:3},{label:"Inconsistently documented — it depends on the individual and the department",score:2},{label:"Not documented — approvals happen via email, verbal or WhatsApp",score:1}],flag:{threshold:1,title:"Audit exposure on approval chains",body:"Undocumented approvals are the most common finding in Auditor-General and internal audit reports. A workflow system does not change the business decision — it creates the evidence that the right person made it."}},{q:"How long does it take your team to produce a compliance or management report from existing data?",variants:{fsi:"How long does it take to produce your SARB or FSCA compliance reports and board packs from existing operational data?",gov:"How long does it take to produce your Section 72 mid-year budget assessment, Section 87 report or MIG progress report?",edu:"How long does it take to produce your SETA grant claim evidence, B-BBEE skills development report or HEMIS statistical return?",mining:"How long does it take to produce your DMRE compliance report, Mining Charter evidence or SLP progress report?"},options:[{label:"Hours — reports are generated automatically from live data",score:4},{label:"One to two days — mostly automated but some manual formatting required",score:3},{label:"One to two weeks — significant manual compilation required",score:2},{label:"Three weeks or more — it is an event that consumes significant staff time",score:1}],flag:{threshold:1,title:"Reporting cycle consuming strategic capacity",body:"If producing a single compliance report takes three or more weeks, your most capable people are spending their time assembling the past rather than managing the present. This is a structural problem, not a staff effort problem."}},{q:"How well do your core operational systems share data with each other without manual intervention?",options:[{label:"Fully integrated — data flows automatically between all core systems",score:4},{label:"Mostly integrated — a few systems still require manual data transfer",score:3},{label:"Partially integrated — most systems are siloed and manual transfers are common",score:2},{label:"Not integrated — every system is a separate data island",score:1}],flag:null},{q:"How much time do managers spend chasing status updates, following up on outstanding tasks or compiling progress reports?",options:[{label:"Very little — dashboards and automated updates provide real-time visibility",score:4},{label:"Some — maybe a few hours per week but it is manageable",score:3},{label:"Significant — a material part of every manager's week is spent on status chasing",score:2},{label:"Most of it — status management consumes the majority of management time",score:1}],flag:null},{q:"How are new employee onboarding, offboarding and role-change processes managed?",options:[{label:"Fully automated — HR changes trigger system updates across IT, payroll and access automatically",score:4},{label:"Mostly automated — some manual steps remain",score:3},{label:"Mostly manual — checklists are used but there are often gaps and delays",score:2},{label:"Ad hoc — no defined process, handled differently every time",score:1}],flag:{threshold:1,title:"Access control and POPIA risk from manual offboarding",body:"Manual offboarding processes regularly result in former employees retaining system access beyond their last day. In a POPIA-regulated environment this creates data protection liability that is simple to eliminate with automation."}},{q:"How are customer or client interactions, requests and complaints tracked and resolved?",options:[{label:"Via a formal CRM or case management system with full audit trail",score:4},{label:"Via a helpdesk or ticketing system — mostly structured but gaps exist",score:3},{label:"Via email and spreadsheet tracking — inconsistent and manually managed",score:2}
1318,{label:"Via email and phone — no formal tracking system",score:1}],flag:null},{q:"How visible are you to the real-time performance of your key operational metrics?",options:[{label:"Fully visible — live dashboards update in real time from source systems",score:4},{label:"Mostly visible — weekly reports give a reasonable picture",score:3},{label:"Limited — monthly reports are the primary source of performance data",score:2},{label:"Not visible — I find out about problems when someone tells me",score:1}],flag:null},{q:"If a key staff member who manages a critical process left tomorrow, how confident are you that the process would continue without disruption?",options:[{label:"Fully confident — processes are documented and system-supported",score:4},{label:"Mostly confident — some documentation exists and another person could take over",score:3},{label:"Not confident — there would be disruption but we would manage",score:2},{label:"Not at all confident — that individual is the process",score:1}],flag:{threshold:1,title:"Single point of failure in critical processes",body:"Process dependency on specific individuals is the most common and most underestimated operational risk. Automation is not just about efficiency — it is about building a business that is resilient to the normal events of a human workforce."}}],resultCopy:{fsi:{T1:"Your financial services operation is carrying significant automation debt. The manual processes your teams have learned to tolerate are creating measurable risk in three areas: regulatory reporting accuracy, audit trail integrity and operational resilience. The good news is that the highest-value automation opportunities in financial services are well-understood and implementable without replacing your core systems.",T2:"Your organisation has some automation in place but the gaps are creating real cost — in staff time, in reporting quality and in regulatory risk. The most common pattern at this maturity level is point solutions that do not talk to each other, creating automation islands rather than an integrated workflow environment.",T3:"Your automation maturity is above average for the SA mid-market. The opportunities at this level are in connecting your existing automations into a coherent workflow environment and closing the specific gaps your diagnostic flags have identified.",T4:"Your automation environment is well-developed. The conversation now is about optimisation, governance of your automated processes and identifying where AI-enhanced automation can deliver the next generation of efficiency gains."},gov:{T1:"Your municipality is managing compliance and reporting obligations with a manual infrastructure that creates consistent risk at audit time. The Section 72 and 87 reporting burden, MIG project documentation and supply chain management processes are all candidates for automation that would directly reduce your AG finding exposure.",T2:"There are meaningful automation gaps in your municipality's core compliance and reporting processes. FiscalFocus and iManage were specifically built for the automation challenges your diagnostic has identified.",T3:"Your municipality has a reasonable automation foundation. The remaining gaps are creating unnecessary manual burden on senior staff whose time has higher-value uses.",T4:"Your automation maturity is exceptional for the public sector. The focus now is on governance of your automated processes and identifying where further digitisation can improve service delivery outcomes."},edu:{T1:"Your institution is managing SETA reporting, student administration and financial aid on a manual infrastructure that creates risk at every compliance deadline. EDVantage and automated workflow tools were built specifically for the challenges your diagnostic has identified.",T2:"The automation gaps in your institution are creating an annual burden on your most capable staff — particularly around SETA evidence assembly, B-BBEE reporting and financial aid processing. Targeted automation closes these gaps without replacing your existing systems.",T3:"Your institution has a reasonable automation foundation. Closing the remaining gaps would recover significant staff capacity, particularly in your compliance and reporting cycles.",T4:"Your automation maturity is strong. The opportunity now is in AI-enhanced learning analytics and further integration between your student systems and compliance platforms."},mining:{T1:"Your operation is carrying significant manual process risk across shift reporting, maintenance logging and compliance documentation. The exposure in a DMRE audit or Mining Charter assessment is measurable and foreseeable.",T2:"Your operation has automation in place but the manual gaps are creating real cost — in reporting quality, in shift-to-management communication latency and in compliance evidence integrity.",T3:"Your automation maturity is above average for the sector. The remaining gaps are in connecting your existing systems and closing specific compliance documentation weaknesses.",T4:"Your operation is well automated. The next opportunity is in predictive maintenance analytics and AI-assisted production monitoring to extract further performance gains."},other:{T1:"Your organisation is carrying significant manual process overhead that is creating measurable risk and cost. The highest-value automation opportunities are in y
1318our reporting cycle, approval workflows and system integration gaps.",T2:"Your automation has a foundation but the gaps are generating real cost in staff time and process reliability. A targeted process discovery session will identify where the highest-value interventions lie.",T3:"Your automation maturity is above average. Connecting your existing systems and closing the specific gaps your diagnostic identified will deliver the next efficiency gain.",T4:"Your automation environment is well developed. The conversation now is about governance of automated processes and identifying where AI enhancement can drive the next generation of gains."}},cta:{T1:"Book an Automation Assessment",T2:"Book a Process Discovery Session",T3:"Request an Optimisation Review",T4:"Book an AI Enhancement Consultation"}},{id:"mit",label:"Managed IT Health Check",subtitle:"The Infrastructure Dashboard",concept:"A health check used by engineers — functional, precise and informative.",color:"#20BCED",accentColor:"#E0F7FF",intro:"This assessment examines nine dimensions of your IT environment health. As you answer each question, a live status indicator will reflect where your environment stands. The result is a clear picture of your IT operational maturity — and where the highest-value improvements lie.",industryQ:"Which best describes your organisation?",questions:[{q:"How quickly are IT incidents typically resolved once logged?",variants:{fsi:"How quickly are IT incidents affecting branch operations, trading systems or compliance tools typically resolved once logged?",edu:"How quickly are IT incidents affecting campus systems, the LMS or student-facing services resolved during exam and registration periods?",mining:"How quickly are IT incidents affecting production systems, SCADA connectivity or remote site operations resolved?"},options:[{label:"Same day consistently — we have SLA-backed resolution times that are met",score:4},{label:"Usually resolved within 24 hours — occasional delays",score:3},{label:"Typically one to three days — resolution times are unpredictable",score:2},{label:"Days or weeks — incidents stay open and work around them become permanent",score:1}],flag:{threshold:1,title:"Unresolved incident accumulation",body:"When incidents stay open for weeks, the workarounds that users develop become embedded in business processes and are far harder to unwind than the original technical issue. Every open incident is a future complication."},dimension:"Incident Response"},{q:"How confident are you that all your systems and endpoints are fully patched against known vulnerabilities?",options:[{label:"Fully confident — we have automated patch management with documented compliance",score:4},{label:"Mostly confident — patching is managed but some exceptions exist",score:3},{label:"Somewhat confident — patching is inconsistent and we have limited visibility",score:2},{label:"Not confident — we do not have a clear view of our patch status",score:1}],flag:{threshold:1,title:"Unpatched systems are the most common breach entry point",body:"Over 60% of breaches that CISA attributes to known vulnerabilities involve systems that had a patch available but had not applied it. Unpatched systems in a regulated environment also create direct compliance exposure."},dimension:"Patch Management"},{q:"How well does your IT environment scale when you add new users, locations or services?",options:[{label:"Scales effortlessly — adding users and locations is a routine, low-effort operation",score:4},{label:"Mostly scales well — occasional friction but generally manageable",score:3},{label:"Significant effort required — every change causes some disruption",score:2},{label:"Every change is a project — adding anything creates significant disruption",score:1}],flag:null,dimension:"Scalability"},{q:"How proactive is your IT function — how often do issues get resolved before users notice them?",options:[{label:"Highly proactive — we resolve most issues before they affect users",score:4},{label:"Mostly proactive — some issues are caught early, some are not",score:3},{label:"Mostly reactive — we typically find out about issues when users report them",score:2},{label:"Entirely reactive — we only know there is a problem when users complain",score:1}],flag:{threshold:1,title:"Fully reactive IT creates compounding risk",body:"A fully reactive IT model means that users are effectively your monitoring system. The issues that users notice and report are the tip of the iceberg — for every reported incident there are typically several undetected conditions that will become incidents next."},dimension:"Proactive Monitoring"}
1318,{q:"How well documented is your IT environment — infrastructure, configurations, processes and service dependencies?",options:[{label:"Fully documented and kept current — we could rebuild the environment from documentation",score:4},{label:"Mostly documented — some areas lack documentation but key systems are covered",score:3},{label:"Partially documented — we know roughly what we have but it is not written down properly",score:2},{label:"Not documented — the knowledge lives in specific individuals' heads",score:1}],flag:{threshold:1,title:"Undocumented environments are unbuyable and unauditable",body:"An undocumented IT environment is a business continuity risk, an M&A liability and an audit problem simultaneously. When the person who knows how it works leaves, the cost of reconstruction can exceed the cost of years of documentation."},dimension:"Documentation"},{q:"How well are your business continuity and disaster recovery capabilities tested?",options:[{label:"Tested at least annually with documented results and recovery time objectives met",score:4},{label:"Tested occasionally — backups are checked but full DR is not regularly exercised",score:3},{label:"Backups run but are rarely if ever tested for restorability",score:2},{label:"No formal backup testing or DR process exists",score:1}],flag:{threshold:1,title:"Untested backups are not backups",body:"The distinction between having a backup and having a restorable backup is only discovered at the worst possible moment. Untested backup systems create false confidence that is more dangerous than acknowledged absence."},dimension:"Business Continuity"},{q:"How well do you manage the IT requirements of staff onboarding, role changes and departures?",options:[{label:"Fully managed — access is provisioned and revoked automatically and consistently",score:4},{label:"Mostly managed — processes exist but occasional gaps occur",score:3},{label:"Inconsistently managed — it depends on which manager makes the request",score:2},{label:"Ad hoc — no consistent process, access management is reactive",score:1}],flag:null,dimension:"Identity Management"},{q:"How effectively does your IT function support remote or hybrid working?",options:[{label:"Fully supported — remote workers have the same experience as office-based staff",score:4},{label:"Mostly supported — some differences in experience but generally workable",score:3},{label:"Partially supported — remote working creates regular IT challenges",score:2},{label:"Poorly supported — remote working is a significant source of IT issues",score:1}],flag:null,dimension:"Remote Support"}
1318,{q:"How transparent and measurable is your IT service performance to your business leadership?",options:[{label:"Fully transparent — regular reporting on SLA performance, incident trends and project status",score:4},{label:"Mostly transparent — some reporting exists but it is not comprehensive",score:3},{label:"Limited — management has a general sense of IT performance but little hard data",score:2},{label:"Not transparent — IT is a black box to business leadership",score:1}],flag:null,dimension:"Governance"}],resultCopy:{fsi:{T1:"Your IT environment presents significant operational and compliance risk. In a sector where the SARB, FSCA and Information Regulator all have oversight of your technology operations, an IT function operating at this maturity level creates exposure that is measurable and foreseeable. The highest-priority interventions are patch management, backup integrity verification and incident management SLA establishment.",T2:"Your IT environment is functional but the gaps are creating real risk — particularly in regulatory environments that require documented evidence of operational controls. The most common profile at this maturity level is an IT function that handles daily operations but lacks the process maturity and depth to sustain a SARB cyber resilience assessment.",T3:"Your IT operations are above average for the SA mid-market. The gaps identified in your diagnostic are addressable with targeted interventions rather than wholesale change.",T4:"Your IT environment is well managed. The conversation at this maturity level is about optimisation, cost efficiency and positioning the IT function to enable the next phase of business strategy."},gov:{T1:"Your municipality's IT environment presents significant risk for the next AG assessment. The gaps in patch management, incident management and documentation are the most common sources of material findings. A structured managed IT engagement closes all three.",T2:"Your IT environment handles daily operations but the process maturity gaps create risk at audit time. Closing these gaps with a managed IT partner delivers both operational reliability and the evidence trail your auditors require.",T3:"Your IT operations are above average for the public sector. Targeted improvements in the gaps your diagnostic identified would reduce your AG risk profile further.",T4:"Your IT environment is well managed. The focus now is on using your strong foundation to enable the next phase of digital service delivery."},edu:{T1:"Your institution's IT environment is creating risk at the worst possible times — registration, examinations and financial aid deadlines. The gaps in proactive monitoring, patching and business continuity are the highest-priority interventions.",T2:"Your IT environment functions day-to-day but the gaps become visible under peak load. A managed IT partner who understands the academic calendar can close these gaps before the next exam season.",T3:"Your IT operations are above average for higher education. The remaining gaps are addressable with targeted improvements rather than wholesale change.",T4:"Your IT environment is well managed for a higher education context. The opportunity is in using this foundation to enable more ambitious digital learning and research infrastructure."},mining:{T1:"Your IT environment creates measurable operational risk. In a production environment where downtime has a direct rand cost, the gaps in proactive monitoring, patching and business continuity are not acceptable. The highest-priority interventions are clear.",T2:"Your IT environment handles routine operations but the gaps create exposure when incidents escalate. A managed IT partner with mining sector experience closes these gaps under a single SLA.",T3:"Your IT operations are above the sector average. The diagnostic has identified specific gaps — closing them would materially reduce your operational risk profile.",T4:"Your IT environment is well managed. The conversation now is about optimisation and extending your strong IT foundation to support OT/IT convergence initiatives."},other:{T1:"Your IT environment presents significant operational and compliance risk. The highest-priority interventions are patch management, backup integrity verification and proactive monitoring establishment.",T2:"Your IT environment is functional but the gaps are creating real risk — particularly in environments with regulatory oversight. A managed IT partnership closes these gaps with documented, SLA-backed service delivery.",T3:"Your IT operations are above average. The gaps identified are addressable with targeted interventions rather than wholesale change.",T4:"Your IT environment is well managed. The focus now is on optimisation and positioning the IT function to enable your next phase of growth."}},cta:{T1:"Book an Emergency IT Assessment",T2:"Book an IT Operations Review",T3:"Request a Gap Analysis",T4:"Book an Optimisation Consultation"}},{id:"net",label:"Network Resilience Assessment",subtitle:"The Signal Map",concept:"Review a network monitoring dashboard — clean, te
1318chnical and precise.",color:"#0077B6",accentColor:"#E0F0FF",intro:"South Africa's grid instability, geographic spread and mixed connectivity landscape create network challenges that international tools are not designed for. This assessment benchmarks your network environment against the specific resilience requirements of South African operations.",industryQ:"Which best describes your organisation?",questions:[{q:"How frequently does your organisation experience unexpected network outages or significant connectivity degradation?",variants:{fsi:"How frequently do branch network outages or connectivity degradation affect your ability to serve clients or process transactions?",edu:"How frequently does network performance degradation affect campus operations, especially during peak periods like exams and registration?",mining:"How frequently do network outages at remote sites affect production monitoring, safety reporting or communication between site and head office?"},options:[{label:"Rarely or never — we cannot recall a significant unplanned outage in the past year",score:4},{label:"Occasionally — one to three significant incidents in the past year",score:3},{label:"Regularly — monthly incidents are common",score:2},{label:"Frequently — weekly or more often",score:1}],flag:{threshold:1,title:"Chronic connectivity incidents indicate a structural network problem",body:"Frequent outages are rarely about individual faults. They are about a network architecture that was not designed for the traffic patterns and resilience requirements now being placed on it."},dimension:"Reliability"},{q:"How does your network perform during your peak demand periods?",options:[{label:"No noticeable degradation — the network is designed for peak load",score:4},{label:"Minor degradation — some slowness but operations continue normally",score:3},{label:"Significant degradation — peak periods regularly cause performance issues",score:2},{label:"Failure — our network cannot cope with peak demand",score:1}],flag:null,dimension:"Peak Performance"},{q:"How resilient is your network to load-shedding or primary connectivity failure?",variants:{fsi:"If your primary internet or WAN connectivity fails during a load-shedding event, what happens to your branch operations?",mining:"If connectivity between a remote mine site and head office fails, what happens to production monitoring and safety reporting?"},options:[{label:"Fully resilient — automatic failover to a secondary link with no service interruption",score:4},{label:"Mostly resilient — failover exists but there is a brief service interruption",score:3},{label:"Partially resilient — some services fail over, others go down",score:2},{label:"Not resilient — a primary failure means a full outage",score:1}],flag:{threshold:1,title:"No resilience to load-shedding is an unacceptable operational risk in South Africa",body:"Load-shedding is a predictable, scheduled event. An organisation that has no network resilience to a predictable event is accepting operational loss that is entirely preventable at a cost far below the downtime cost it generates."},dimension:"Load-Shedding Resilience"},{q:"How comprehensive is your real-time visibility into network performance across all your locations?",options:[{label:"Full real-time visibility — centralised dashboard covers every site, link and device",score:4},{label:"Partial visibility — head office is well monitored, remote sites have limited visibility",score:3},{label:"Limited — we know broadly when something is wrong but lack detail",score:2},{label:"No centralised visibility — we find out about problems when users report them",score:1}],flag:null,dimension:"Visibility"},{q:"How well is your network security architecture designed and consistently enforced across all sites?",variants:{fsi:"How well does your network security architecture meet SARB cyber resilience requirements at every branch location?",mining:"How well does your OT/IT network segmentation prevent threats in the corporate environment from reaching SCADA and industrial 
1318control systems?"},options:[{label:"Comprehensively designed and enforced — consistent policies across every site",score:4},{label:"Well designed at head office with mostly consistent enforcement at branch level",score:3},{label:"Policy exists but enforcement is inconsistent across sites",score:2},{label:"No consistent security policy across network locations",score:1}],flag:{threshold:1,title:"Inconsistent network security is equivalent to no security",body:"A network is only as secure as its weakest site. An attacker who identifies a branch or remote location with inconsistent security enforcement uses that entry point to reach the same systems as if they had broken through head office defences."},dimension:"Security Consistency"},{q:"How are carrier faults and WAN incidents managed and escalated?",options:[{label:"Managed by a partner who owns carrier escalations on our behalf under SLA",score:4},{label:"Managed internally by our IT team who escalates directly to carriers",score:3},{label:"Managed informally — whoever notices the problem makes the call",score:2},{label:"No formal process — carrier faults are reported and then we wait",score:1}],flag:null,dimension:"Carrier Management"},{q:"How ready is your network for the bandwidth and performance demands of your cloud applications and services?",options:[{label:"Designed for it — SD-WAN or equivalent optimises cloud traffic across all sites",score:4},{label:"Mostly ready — cloud applications work but some performance limitations exist",score:3},{label:"Struggling — cloud adoption has created network performance issues",score:2},{label:"Not ready — cloud usage is limited by network performance constraints",score:1}],flag:null,dimension:"Cloud Readiness"},{q:"How monitored is your network outside of standard business hours?",options:[{label:"24/7 monitoring with proactive response regardless of time",score:4},{label:"Extended hours monitoring — some after-hours coverage",score:3},{label:"Business hours only — an on-call arrangement exists for emergencies",score:2},{label:"Business hours only — no after-hours monitoring",score:1}],flag:{threshold:1,title:"Business-hours-only monitoring creates an overnight risk window",body:"Most ransomware attacks and network intrusions are initiated outside business hours, precisely because the monitoring gap is predictable. Anomalies that occur at 10pm and go undetected until 8am have had 10 hours to propagate."},dimension:"24/7 Coverage"},{q:"How well does your network design account for the specific infrastructure realities of your SA operating environment?",options:[{label:"Specifically designed for SA conditions — load-shedding, mixed connectivity and geography are all addressed",score:4},{label:"Mostly adapted — some SA-specific considerations are addressed",score:3},{label:"Limited — the network design was not specifically adapted for SA conditions",score:2},{label:"Not considered — the network is designed to international standards without SA adaptation",score:1}],flag:null,dimension:"SA Adaptability"}],resultCopy:{fsi:{T1:"Your branch network presents significant operational and compliance risk. Frequent outages are compliance events and reputational risks simultaneously. SD-WAN, 24/7 NOC monitoring and carrier management are the three interventions that most directly address your diagnostic profile.",T2:"Your network handles routine operations but the resilience gaps are creating measurable exposure — particularly around branch failover and after-hours monitoring. These are directly addressable with a managed network service.",T3:"Your network is stable but not fully resilient. The specific gaps your diagnostic has identified are the difference between a network that works and a network that works under pressure.",T4:"Your network is well managed and resilient. The conversation now is about optimisation, cost efficiency and ensuring your architecture is ready for your next growth phase."},gov:{T1:"Your municipality's network presents significant service delivery and audit risk. Connectivity failures are service delivery failures. SD-WAN with failover and 24/7 NOC monitoring are the foundational interventions your diagnostic indicates.",T2:"Your network has a reasonable foundation but the resilience and monitoring gaps create risk during peak service delivery periods. These gaps are directly addressable.",T3:"Your network is stable. The remaining gaps are in resilience and monitoring consistency — closing these would materially reduce your service delivery risk.",T4:"Your network is well managed. The opportunity now is in futureproofing for increasing digital service delivery demand."},edu:{T1:"Your campus network is at risk during your highest-stakes periods — registration, examinations and financial aid processing. The resilience and monitoring gaps your diagnostic has identified are the most urgent interventions.",T2:"Your network functions day-to-day but the gaps become visible under peak academic load. A managed network service designed for the academic calendar closes these gaps.",T3:"Your campus network is stable. The remaining gaps are addressable with targeted improvements in resilience and monitoring coverage.",T4:"Your campus network is well managed. The focus now is on ensuring it can support the increasing bandwidth demands of digital learning and research infrastru
1318cture."},mining:{T1:"Your site connectivity is creating production risk. Remote sites without resilient connectivity are operating with an unacceptable exposure. The OT/IT segmentation and 24/7 monitoring gaps compound this further.",T2:"Your network has a foundation but the resilience gaps at remote sites and the monitoring coverage gaps are creating measurable operational exposure.",T3:"Your network is stable. The remaining gaps — particularly around OT/IT segmentation and after-hours monitoring — are the priority interventions.",T4:"Your network is well managed for a mining environment. The conversation now is about optimisation and ensuring your architecture supports future operational technology integration."},other:{T1:"Your network presents significant operational risk. The resilience, monitoring and security gaps your diagnostic has identified are directly addressable with a managed network service.",T2:"Your network handles routine operations but the resilience and monitoring gaps create exposure when incidents occur outside business hours. These are directly addressable.",T3:"Your network is stable. Closing the specific gaps your diagnostic identified would make it resilient — not just functional.",T4:"Your network is well managed. The opportunity now is in optimisation and ensuring your architecture is ready for your next growth phase."}},cta:{T1:"Request a Network Assessment",T2:"Book a Network Review",T3:"Request a Resilience Audit",T4:"Book a Futureproofing Consultation"}},{id:"cyber",label:"Cybersecurity Posture Review",subtitle:"The Threat Monitor",concept:"A security briefing: serious, precise and unambiguous.",color:"#023E8A",accentColor:"#EBF0FF",intro:"South Africa is consistently among the most targeted countries in the world for ransomware and business email compromise. This is not a scare tactic — it is a documented fact that frames why accurate answers to these nine questions matter. The results will tell you where you stand.",industryQ:"Which best describes your organisation?",questions:[{q:"How confident are you that a cyber breach or intrusion would be detected within 24 hours?",variants:{fsi:"How confident are you that a breach affecting your client data or core banking environment would be detected within 24 hours — in line with SARB cyber resilience expectations?",edu:"How confident are you that a breach affecting student data or research systems would be detected within 24 hours — triggering your POPIA notification obligations?"},options:[{label:"Fully confident — we have 24/7 SOC monitoring with defined detection SLAs",score:4},{label:"Mostly confident — monitoring exists but has gaps outside business hours",score:3},{label:"Not very confident — monitoring is limited and largely reactive",score:2},{label:"Not confident at all — we have no active threat monitoring",score:1}],flag:{threshold:1,title:"No active threat monitoring means you will not know until it is too late",body:"The average dwell time for a threat actor in an unmonitored South African SME environment is 28 days. In that time they can exfiltrate data, establish persistence and stage a ransomware deployment. Detection within hours limits damage dramatically."},dimension:"Detection"},{q:"How current and tested is your incident response plan?",options:[{label:"Tested within the last six months — the team is trained and the plan reflects current systems",score:4},{label:"Exists and was tested within the last two years",score:3},{label:"Exists but has not been tested or updated recently",score:2},{label:"No formal incident response plan exists",score:1}],flag:{threshold:1,title:"No incident response plan means an incident becomes a crisis",body:"An organisation without an incident response plan makes every decision under pressure, without agreed communication protocols, authority structures or technical runbooks. Decisions made in panic after a breach are consistently worse than those made in preparation."},dimension:"Incident Response"},{q:"How well do your cybersecurity controls align with your specific regulatory requirements?",variants:{fsi:"How well do your controls align with SARB Directive 1 of 2018, POPIA and the FSCA's cybersecurity governance expectations?",edu:"How well do your controls align with POPIA obligations for student data and research IP protection?",mining:"How well do your controls align with MHSA cybersecurity requirements and the OT/IT convergence security standards applicable to your operation?",gov:"How well do your controls align with COGTA cybersecurity guidelines, the PFMA security requirements and the Information Regulator's POPIA expectations?"},options:[{label:"Fully aligned — we have completed a formal compliance assessment and address all requirements",score:4},{label:"Mostly aligned — we have addressed the major requirements with some gaps",
1318score:3},{label:"Partially aligned — we are aware of the requirements but implementation is incomplete",score:2},{label:"Not aligned — we have not formally assessed our alignment to regulatory requirements",score:1}],flag:null,dimension:"Compliance Alignment"},{q:"How comprehensively are your endpoints, identities and cloud environments protected?",options:[{label:"Comprehensively — zero-trust principles applied, EDR on every endpoint, MFA enforced across all users and applications",score:4},{label:"Well protected — most controls are in place with some gaps",score:3},{label:"Partially protected — basic controls exist but significant gaps remain",score:2},{label:"Minimally protected — traditional antivirus only, no EDR, inconsistent MFA",score:1}],flag:{threshold:1,title:"Antivirus-only endpoint protection is insufficient against modern threats",body:"Traditional antivirus does not detect modern ransomware, fileless attacks or credential theft. Endpoint Detection and Response is the minimum effective standard for any organisation handling regulated data."},dimension:"Endpoint and Identity"},{q:"How regularly do you conduct vulnerability assessments or penetration tests?",options:[{label:"Quarterly or more frequently",score:4},{label:"Annually",score:3},{label:"Irregularly — done once or twice but not on a fixed cycle",score:2},{label:"Never",score:1}],flag:{threshold:1,title:"Untested security is assumed security",body:"An organisation that has never conducted a penetration test is relying on the belief that its security controls work. Penetration testing replaces belief with evidence — and finds the gaps before an attacker does."},dimension:"Vulnerability Testing"},{q:"How well do you manage third-party and supplier access to your systems and data?",options:[{label:"Formally managed — all third-party access is documented, time-limited and monitored",score:4},{label:"Mostly managed — major suppliers are controlled but smaller access points may have gaps",score:3},{label:"Informally managed — access is granted when needed without a consistent process",score:2},{label:"Not managed — third-party access is unrestricted and unmonitored",score:1}],flag:null,dimension:"Third-Party Risk"},{q:"How effectively does your organisation address the human layer of cybersecurity — awareness training, phishing simulation and security culture?",options:[{label:"Comprehensive programme — regular simulated phishing, role-based training and documented awareness metrics",score:4},{label:"Annual training is conducted and phishing simulations are run occasionally",score:3},{label:"Annual compliance training exists but no active simulation or culture programme",score:2},{label:"No formal security awareness programme",score:1}],flag:{threshold:1,title:"People are the most exploited vulnerability in your security architecture",body:"No technical security control prevents an employee from entering their credentials on a convincing phishing page. Security awareness training and simulated phishing reduce this risk by building recognition before the real attack arrives."},dimension:"Human Layer"},{q:"How well do you manage and protect your sensitive and regulated data throughout its lifecycle?",options:[{label:"Formally managed — data is classified, encrypted and governed with a documented retention and disposal policy",score:4},{label:"Mostly managed — major data assets are protected with some gaps",
1318score:3},{label:"Partially managed — some data is protected but classification and governance are incomplete",score:2},{label:"Not formally managed — no data classification or governance framework exists",score:1}],flag:null,dimension:"Data Protection"},{q:"If your organisation suffered a ransomware attack today, how quickly could you restore operations from clean backups?",options:[{label:"Within hours — backups are immutable, tested and recovery time objectives are defined and met",score:4},{label:"Within one to two days — backups exist and are mostly current",score:3},{label:"Within a week — backups exist but have not been tested for restorability",score:2},{label:"Unknown — or we would lose significant data and face extended downtime",score:1}],flag:{threshold:1,title:"Unknown recovery capability is not a backup strategy",body:"If you cannot answer this question with a tested recovery time, your backup is providing false assurance. In a ransomware scenario, an untested backup is often discovered to be unusable at the worst possible moment."},dimension:"Recovery Capability"}],resultCopy:{fsi:{T1:"Your financial services operation has significant cybersecurity exposure. In a sector where SARB, FSCA and the Information Regulator all have direct enforcement authority over your technology posture, this level of risk is foreseeable and measurable. The highest-priority interventions are SOC deployment, incident response planning and endpoint protection uplift.",T2:"Your cybersecurity posture has a foundation but the gaps create real exposure — particularly in a sector where a breach triggers regulatory notification obligations simultaneously with operational response. Closing the monitoring and detection gaps is the most urgent priority.",T3:"Your cybersecurity posture is above average for the SA financial services mid-market. The gaps are specific and addressable — a VAPT and a targeted controls review would give you a precise remediation roadmap.",T4:"Your cybersecurity posture is strong. The conversation now is about staying ahead of an evolving threat landscape — advanced threat hunting, red team exercises and ensuring your controls continue to meet SARB expectations as they evolve."},gov:{T1:"Your municipality has significant cybersecurity exposure. Ransomware targeting South African local government is well documented. Without active threat monitoring and tested incident response, the question is not whether an incident will occur but when.",T2:"Your cybersecurity posture handles baseline requirements but the monitoring and detection gaps create exposure that the COGTA and Information Regulator frameworks do not permit. These gaps are directly addressable.",T3:"Your cybersecurity posture is above average for the public sector. The remaining gaps are specific — closing them would materially reduce your regulatory risk profile.",T4:"Your cybersecurity posture is strong for a government environment. The focus now is on sustaining this standard as threat sophistication increases."},edu:{T1:"Your institution holds some of the most sensitive personal data in the country — student identity records, financial information, research IP. The cybersecurity gaps your diagnostic has identified create direct POPIA exposure that the Information Regulator has the authority to act on.",T2:"Your cybersecurity posture has a foundation but the detection and response gaps create significant risk. A managed SOC with academic sector experience is the most direct path to closing them.",T3:"Your cybersecurity posture is above average for the higher education sector. The specific gaps your diagnostic identified are addressable with targeted interventions.",T4:"Your cybersecurity posture is strong. The focus now is on sustaining this standard and extending it to cover the evolving threat landscape facing research institutions."},mining:{T1:"Your operation has significant cybersecurity exposure — particularly in OT/IT convergence environments where a corporate IT breach can reach production systems. The monitoring, endpoint and incident response gaps your diagnostic identified are the highest-priority interventions.",T2:"Your cybersecurity posture has a foundation but the OT/IT convergence security gaps and monitoring limitations create measurable production and safety risk.",T3:"Your cybersecurity posture is above average for the mining sector. The remaining gaps are specific — OT/IT segmentation review and 24/7 monitoring coverage are the priority areas.",T4:"Your cybersecurity posture is strong. The conversation now is about sustaining this standard across an increasingly complex OT/IT environment."},other:{T1:"Your organisation has significant cybersecurity exposure. South Africa is consistently one of the most targeted countries for ransomware and business email compromise. The monitoring, endpoint and response gaps your diagnostic identified are directly addressable.",T2:"Your cybersecurity posture has a foundation but the detection and response gaps create exposure that grows with every month they remain open. A managed security service closes these gaps under a single accountable SLA.",T3:"Your cybersecurity posture is above average. The specific gaps your diagnostic identified are addressable with targeted interventions rather than wholesale change.",T4:"Your cybersecurity posture is strong. The focus now is on sustaining this standard and staying ahead of an evolving threat landscape."}},cta:{T1:"Book an Emergency Posture Assessment",T2:"Book a Security Gap Analysis",T3:"Request a VAPT Scope",T4:"Book a Security Optimisation Review"}},{id:"ai",label:"AI Adoption Readiness",subtitle:"The Readiness Map",concept:"A structured self-reflection exercise: thoughtful, unhurried and intellectually serious.",color:"#6366F1",accentColor:"#EEEFFF",intro:"Most organisations are already using AI — Microsoft Copilot, ChatGPT, vendor-embedded AI in SaaS tools — without a governance framework in place. This assessment is not about whether you should adopt AI. It is about understanding where you stand before you commit to something you cannot govern. Answer accurately.",industryQ:"Which best describes your organisation?",questions:[{q:"How clean, structured and accessible is the data your organisation generates and relies on?",variants:{fsi:"How well governed is your financial, client and regulatory data — in terms of structure, accessibility and accuracy for AI model input?",edu:"How well structured and governed is your student, academic and research data for use in AI-driven analytics or personalised learning?",mining:"How accessible and reliable is y
1318our operational, maintenance and production data — from SCADA systems, shift reports and manual logs — for AI processing?"},options:[{label:"Excellent — structured, governed, consistently accurate and centralised",score:4},{label:"Good — mostly structured with some gaps in governance or consistency",score:3},{label:"Limited — significant siloing, inconsistency or quality issues exist",score:2},{label:"Poor — data is mostly unstructured, inconsistent and hard to access at scale",score:1}],flag:{threshold:1,title:"Poor data quality is the most common reason AI initiatives fail",body:"AI does not improve data quality — it amplifies data quality. A model trained on inconsistent or siloed data produces inconsistent, unreliable outputs. Data readiness is the foundation that all other AI capability depends on."},dimension:"Data Foundation"},{q:"How clearly has your organisation identified specific business problems that AI could meaningfully address?",options:[{label:"Fully defined — specific use cases are prioritised, scoped and have business case approval",score:4},{label:"Mostly defined — some use cases are clear but others are still exploratory",score:3},{label:"Vaguely defined — we know AI should help but specific use cases are not agreed",score:2},{label:"Not defined — we know we should do something with AI but have not identified what",score:1}],flag:null,dimension:"Use Case Clarity"},{q:"How mature is your data governance and privacy framework — including POPIA alignment — for AI use?",options:[{label:"Mature and audited — data governance framework exists, POPIA alignment verified, AI-specific policies in place",score:4},{label:"Developing — POPIA alignment work is underway and governance framework exists but is not AI-specific",score:3},{label:"Early stage — POPIA work has started but governance is not formally documented",score:2},{label:"Not in place — no formal data governance or POPIA compliance framework",score:1}],flag:{threshold:1,title:"Using AI on personal data without a POPIA framework creates regulatory exposure",body:"If your organisation is using AI tools on data that includes personal information — customer records, employee data, student information — without a documented POPIA-aligned governance framework, you are accepting regulatory risk that the Information Regulator has the authority and the intention to act on."},dimension:"Governance"},{q:"How ready are your people to work alongside AI-assisted tools and processes?",options:[{label:"Ready — change management plan is in place, pilot users trained, adoption strategy defined",score:4},{label:"Partially ready — some champions exist but organisation-wide readiness is inconsistent",score:3},{label:"Not ready — there is general awareness that AI is coming but no preparation underway",score:2},{label:"Not ready — significant cultural resistance or fear of AI exists in the organisation",score:1}],flag:null,dimension:"People Readiness"},{q:"How much internal technical capability does your organisation have to implement, integrate and maintain AI solutions?",options:[{label:"Strong — dedicated data science or AI engineering capability exists",score:4},{label:"Moderate — some relevant skills exist but dedicated AI capability is limited",score:3},{label:"Limited — general IT capability exists but no AI-specific skills",score:2},{label:"None — no relevant technical capability for AI implementation",score:1}],flag:null,dimension:"Technical Capability"},{q:"How well integrated are your core systems (ERP, CRM, operational platforms) for AI data consumption?",options:[{label:"Well integrated — APIs exist and data flows are accessible for AI processing",score:4},{label:"Mostly integrated — some integration work required but foundation exists",score:3},{label:"Poorly integrated — significant integration work needed before AI can be applied",score:2},{label:"Not integrated — systems are entirely siloed and integration is a major project",score:1}],flag:null,dimension:"Infrastructure"},{q:"Does your organisation have a defined policy for acceptable use of AI tools — including generative AI and AI embedded in commercial software?",options:[{label:"Yes — a comprehensive AI acceptable use policy exists and is enforced",score:4},{label:"Partially — some guidance exists but a formal policy is not in place",score:3},{label:"No — we are aware of the need but have not formalised anything",score:2},{label:"No — staff are using AI tools freely with no governance",score:1}],flag:{threshold:1,title:"Uncontrolled AI tool use is your most immediate AI risk",body:"If your staff are freely using generative AI tools — including ChatGPT, Microsoft Copilot or AI embedded in their SaaS applications — without an acceptable use policy, there is a high probability that confidential or regulated data has already been submitted to these tools without your knowledge or consent."},dimension:"AI Policy"},{q:"Have you assessed where AI could introduce bias, error or compliance risk in your existing or planned use cases?",options:[{label:"Yes — formal AI risk assessment has been conducted for all planned use cases",score:4},{label:"Partially — some risk consideration has taken place but no formal assessment",score:3},{label:"No — we have not formally considered AI-specific risks",score:2},{label:"No — we were not aware this was a consideration",score:1}],flag:null,dimension:"Risk Assessment"},{q:"How would you characterise your organisation's overall strategic relationship with AI at this moment?",options:[{label:"Strategically committed — AI is on the executive agenda with budget and ownership allocated",score:4},{label:"Actively exploring — AI is being evaluated with pilots or proofs of concept underway",score:3},{label:"Watching and waiting — we know it is important but have not committed",score:2},{label:"Not yet engaged — AI is not currently a strategic priority",score:1}],flag:null,dimension:"Strategic Commitment"}],resultCopy:{fsi:{T1:"Your financial services operation is not yet ready for meaningful AI adoption. The data governance, POPIA alignment and infrastru
1318cture gaps your diagnostic has identified are not blockers to eventual AI — they are the foundation that must be built first. Starting with data readiness is the right first step.",T2:"Your organisation has the beginnings of an AI foundation but the governance and data quality gaps create significant risk if AI adoption proceeds without addressing them first. The priority is building the framework before expanding the use cases.",T3:"Your organisation is in a strong position to begin structured AI adoption. The remaining gaps are specific — closing them would allow you to move from exploration to production deployment with confidence.",T4:"Your organisation is AI ready. The conversation now is about selecting the highest-value use cases, governing the deployment and ensuring your AI adoption keeps pace with regulatory guidance from FSCA and the Information Regulator."},gov:{T1:"Your municipality is not yet ready for AI adoption. The data quality, governance and infrastructure gaps are the foundation that must be addressed before AI can deliver reliable, auditable outcomes in a public sector context.",T2:"Your municipality has some AI foundation elements in place but the governance and data readiness gaps create risk — particularly given the AG's increasing scrutiny of automated decision-making in local government.",T3:"Your municipality is in a reasonable position to begin structured AI exploration. The priority is ensuring your governance framework is in place before moving to production deployment.",T4:"Your municipality has strong AI readiness. The opportunity is in deploying AI to improve service delivery reporting, budget forecasting and maintenance planning."},edu:{T1:"Your institution is not yet ready for AI adoption. The data governance, POPIA alignment for student data and infrastructure gaps must be addressed first — particularly given the sensitivity of the data your institution holds.",T2:"Your institution has some AI foundation elements in place but the student data governance and POPIA alignment gaps create regulatory exposure that must be closed before AI adoption expands.",T3:"Your institution is in a good position to begin structured AI adoption — particularly for learning analytics and administrative automation. The remaining gaps are specific and addressable.",T4:"Your institution has strong AI readiness. The opportunity is in deploying AI for personalised learning, predictive student support and SETA reporting automation."},mining:{T1:"Your operation is not yet ready for meaningful AI adoption. The operational data quality, infrastructure integration and governance gaps are significant — and in a safety-critical environment, AI adoption without these foundations in place creates unacceptable risk.",T2:"Your operation has some AI foundation elements but the data accessibility and governance gaps mean that AI adoption would produce unreliable outputs in the most important use cases — predictive maintenance and production monitoring.",T3:"Your operation is in a good position to begin structured AI adoption for predictive maintenance and operational analytics. The remaining gaps are specific and addressable.",T4:"Your operation has strong AI readiness. The opportunity is in deploying AI for predictive equipment failure detection, production optimisation and safety monitoring enhancement."},other:{T1:"Your organisation is not yet ready for meaningful AI adoption. The data governance, POPIA alignment and infrastructure gaps your diagnostic has identified are the foundation that must be in place first.",T2:"Your organisation has some AI foundation elements in place but the data quality and governance gaps create risk if AI adoption proceeds without addressing them. Build the framework first.",T3:"Your organisation is in a good position to begin structured AI adoption. The remaining gaps are specific — closing them would allow you to move to production deployment with confidence.",T4:"Your organisation has strong AI readiness. The conversation now is about selecting the highest-value use cases and governing deployment responsibly."}},cta:{T1:"Book an AI Readiness Consultation",T2:"Book a Data Readiness Assessment",T3:"Book an AI Strategy Session",T4:"Book an AI Implementation Review"}}];function B1e(e,t){const n=S1e[e];return n.find(r=>t>=r.min&&t<=r.max)||n[0]}function C1e(e,t){return e.variants&&e.variants[t]?{...e,q:e.variants[t]}:e}const MX={bpa:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/80badc22f_generated_image.png",mit:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/e20c60e06_generated_image.png",net:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/7201f0b06_generated_image.png",cyber:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/5a44a4f1f_generated_image.png",ai:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/7ab51d87a_generated_image.png"};function k1e(e){return e.reduce((t,n)=>t+(n??2),0)}function E1e({score:e}){const t=Math.round((36-e)/27*100),n=e<=17?"#EF4444":e<=25?"#F59E0B":e<=32?"#009BDF":"#10B981";return u.jsxs("div",{children:[u.jsxs("div",{className:"flex justify-between text-xs font-semibold mb-1.5",children:[u.jsx("span",{className:"text-green-600",children:"Low Exposure"}),u.jsx("span",{className:"text-red-500",children:"High Exposure"})]}),u.jsx("div",{className:"h-4 bg-slate/10 rounded-full overflow-hidden",children:u.jsx(_e.div,{initial:{width:0},animate:{width:`${t}%`},transition:{duration:1.2,ease:"easeOut"},className:"h-full rounded-full",style:{background:`linear-gradient(90deg, #10B981, ${n})`}})}),u.jsxs("div",{className:"flex justify-between text-xs text-slate/50 mt-1",children:[u.jsx("span",{children:"Well Defended"}),u.jsx("span",{children:"Fully Exposed"})]})]})}function N1e({answers:e,questions:t}){const n={0:"#e2e8f0",1:"#EF4444",2:"#F59E0B",3:"#009BDF",4:"#10B981"};return u.jsxs("div",{className:"bg-cloud rounded-xl border border-slate/10 p-4 space-y-2",children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest mb-3",children:"Environment Health"}),t.map((r,i)=>{const a=e[i]??0;return u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:a?n[a]:n[0]}}),u.jsx("p",{className:"text-xs text-slate flex-1 truncate",children:r.dimension}),u.jsx("div",{className:"h-1.5 w-16 bg-slate/10 rounded-full overflow-hidden",children:u.jsx(_e.div,{animate:{width:a?`${a/4*100}%`:"0%"},transition:{duration:.5},className:"h-full rounded-full",style:{background:a?n[a]:n[0]}})})]},i)})]})}function T1e({answers:e,questions:t}){const n=["Data Foundation","Governance","People & Culture","Use Cases","Infrastru
1318cture"];return u.jsxs("div",{className:"bg-cloud rounded-xl border border-slate/10 p-4",children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest mb-4",children:"Readiness Map"}),u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute top-3 left-3 right-3 h-0.5 bg-slate/10"}),u.jsx("div",{className:"flex justify-between relative z-10",children:n.map((r,i)=>{const a=i<e.filter(l=>l!=null).length,o=e[i*2]??0,s=a&&o>0;return u.jsxs("div",{className:"flex flex-col items-center gap-1.5 w-16",children:[u.jsx(_e.div,{animate:{background:s?"#6366F1":"#e2e8f0"},transition:{duration:.4},className:"w-6 h-6 rounded-full border-2 border-white shadow-sm flex items-center justify-center",children:s&&u.jsx("div",{className:"w-2 h-2 rounded-full bg-white"})}),u.jsx("p",{className:"text-[9px] text-slate text-center leading-tight",children:r})]},r)})})]})]})}function _1e({onUnlock:e,toolId:t,toolLabel:n,industry:r,score:i,tier:a}){const[o,s]=_.useState({firstName:"",email:"",phone:"",company:"",jobTitle:"",testDomain:""}),[l,c]=_.useState(!1),d=async A=>{A.preventDefault(),c(!0),mr.entities.DiagnosticLead.create({first_name:o.firstName,email:o.email,phone:o.phone,company:o.company,job_title:o.jobTitle,tool_id:t,tool_label:n,industry:r||"unspecified",score:i,tier:a,test_domain:o.testDomain}).catch(()=>{}),mr.functions.invoke("syncToHubspot",{source:"diagnostic",email:o.email,firstName:o.firstName,phone:o.phone,company:o.company,jobTitle:o.jobTitle,industry:r||"unspecified",toolLabel:n,score:i,tier:a,testDomain:o.testDomain}).catch(()=>{}),c(!1),e(o)};return u.jsxs(_e.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"bg-cloud rounded-2xl border border-slate/15 p-6 lg:p-8",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[u.jsx(Mh,{className:"w-5 h-5 text-azure"}),u.jsx("h4",{className:"font-heading font-bold text-midnight",children:"Unlock your full result"})]}),u.jsx("p",{className:"text-sm text-slate mb-5 leading-relaxed",children:"Enter your details to unlock your personalised analysis, diagnostic flags and service recommendations."}),u.jsxs("form",{onSubmit:d,"data-form-name":"Diagnostic Lead Gate",className:"space-y-3",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[u.jsx(ql,{required:!0,placeholder:"First name",value:o.firstName,onChange:A=>s({...o,firstName:A.target.value}),className:"bg-white"}),u.jsx(ql,{required:!0,type:"email",placeholder:"Work email",value:o.email,onChange:A=>s({...o,email:A.target.value}),className:"bg-white"}),u.jsx(ql,{type:"tel",placeholder:"Phone number",value:o.phone,onChange:A=>s({...o,phone:A.target.value}),className:"bg-white"}),u.jsx(ql,{required:!0,placeholder:"Company",value:o.company,onChange:A=>s({...o,company:A.target.value}),className:"bg-white"}),u.jsx(ql,{placeholder:"Job title",value:o.jobTitle,onChange:A=>s({...o,jobTitle:A.target.value}),className:"bg-white"}),u.jsx(ql,{placeholder:"Domain to be tested (e.g. sourceworx.co.za)",value:o.testDomain,onChange:A=>s({...o,testDomain:A.target.value}),className:"bg-white"})]}),u.jsxs("button",{type:"submit",disabled:l,className:"w-full flex items-center justify-center gap-2 px-6 py-3 rounded-full bg-azure text-white font-bold text-sm hover:bg-sky transition-colors mt-2 disabled:opacity-60",children:[u.jsx(wse,{className:"w-4 h-4"})," ",l?"Sending…":"Unlock full results"]})]}),u.jsx("p",{className:"text-xs text-slate/40 mt-3 text-center",children:"No spam. Your information is handled under our POPIA-compliant privacy policy."})]})}function I1e({question:e,index:t,total:n,selectedAnswer:r,onAnswer:i,industry:a}){const o=C1e(e,a);return u.jsxs("div",{className:"bg-white rounded-2xl border border-slate/10 shadow-sm p-6 lg:p-8",children:[u.jsx("div",{className:"flex items-center gap-3 mb-5",children:u.jsxs("span",{className:"text-xs font-bold text-azure/60 bg-azure/8 px-2.5 py-1 rounded-full",children:["Q",t+1," of ",n]})}),u.jsx("p",{className:"text-base font-semibold text-midnight leading-relaxed mb-6",children:o.q}),u.jsx("div",{className:"space-y-3",children:o.options.map((s,l)=>u.jsx(_e.button,{whileHover:{x:3},onClick:()=>i(s.score),className:`w-full text-left p-4 rounded-xl border-2 transition-all text-sm ${r===s.score?"border-azure bg-azure/5 text-midnight font-semibold":"border-slate/10 hover:border-azure/30 text-slate hover:text-midnight"}`,children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:`w-4 h-4 rounded-full border-2 flex-shrink-0 ${r===s.score?"border-azure bg-azure":"border-slate/30"}`,children:r===s.score&&u.jsx("div",{className:"w-full h-full rounded-full bg-azure scale-50 block"})}),s.label]})},l))})]})}function P1e({tool:e,onBack:t}){var O;const[n,r]=_.useState(null),[i,a]=_.useState(0),[o,s]=_.useState(Array(e.questions.length).fill(null)),[l,c]=_.useState(!1),[d,A]=_.useState(null),h=k1e(o.filter(L=>L!==null)),m=B1e(e.id,h),b=`T${O_.find(L=>
1318L.id===e.id)?(O=m.label.match(/Tier (\d)/))==null?void 0:O[1]:"1"}`,g=(e.resultCopy[n]||e.resultCopy.other||{})[b]||m.label;i>=1&&i<=e.questions.length&&e.questions[i-1];const y=i>=1?o[i-1]:null,v=i===0?0:Math.round(i/(e.questions.length+1)*100),x=e.questions.filter((L,z)=>L.flag&&o[z]===1).map(L=>L.flag),B=L=>{const z=[...o];z[i-1]=L,s(z)},C=i===0?!!n:y!==null,E=()=>{i<e.questions.length?a(i+1):a(e.questions.length+1)},T=()=>{i>0&&a(i-1)},j=i===e.questions.length+1;return u.jsxs("div",{children:[u.jsxs("button",{onClick:t,className:"flex items-center gap-1.5 text-sm text-slate hover:text-azure transition-colors mb-8",children:[u.jsx("span",{className:"text-lg leading-none",children:"←"})," Back to tools"]}),u.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-8 h-40 md:h-48",children:[u.jsx("img",{src:MX[e.id],alt:e.label,className:"absolute inset-0 w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-midnight/85 via-midnight/60 to-midnight/25"}),u.jsxs("div",{className:"relative h-full flex flex-col justify-end p-6",children:[u.jsx("p",{className:"text-xs font-bold text-sky uppercase tracking-widest",children:e.subt
1318itle}),u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-white leading-tight mt-1",children:e.label})]})]}),i>0&&!j&&u.jsxs("div",{className:"mb-8",children:[u.jsxs("div",{className:"flex justify-between text-xs text-slate/50 mb-2",children:[u.jsxs("span",{children:["Question ",i," of ",e.questions.length]}),u.jsxs("span",{children:[v,"% complete"]})]}),u.jsx("div",{className:"h-1.5 bg-slate/10 rounded-full overflow-hidden",children:u.jsx(_e.div,{animate:{width:`${v}%`},transition:{duration:.4},className:"h-full rounded-full",style:{background:`linear-gradient(90deg, ${e.color}, #20BCED)`}})})]}),u.jsxs("div",{className:`flex gap-8 ${(e.id==="mit"||e.id==="ai")&&!j&&i>0?"flex-col lg:flex-row":""}`,children:[u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs(sl,{mode:"wait",children:[i===0&&u.jsxs(_e.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},children:[u.jsxs("div",{className:"bg-white rounded-2xl border border-slate/10 shadow-sm p-6 lg:p-8 mb-6",children:[u.jsx("p",{className:"text-base font-semibold text-midnight mb-2 leading-relaxed",children:e.industryQ}),u.jsx("p",{className:"text-sm text-slate mb-6",children:"Your answer personalises the questions and result for your specific regulatory and operational context."}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:x1e.map(L=>u.jsx(_e.button,{whileHover:{x:3},onClick:()=>r(L.value),className:`text-left p-4 rounded-xl border-2 text-sm font-medium transition-all ${n===L.value?"border-azure bg-azure/5 text-midnight":"border-slate/10 hover:border-azure/30 text-slate"}`,children:L.label},L.value))})]}),u.jsx("div",{className:"bg-cloud rounded-xl border border-slate/10 p-5 mb-6",children:u.jsx("p",{className:"text-sm text-slate leading-relaxed italic",children:e.intro})})]},"industry"),i>=1&&!j&&u.jsx(_e.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:u.jsx(I1e,{question:e.questions[i-1],index:i-1,total:e.questions.length,selectedAnswer:o[i-1],onAnswer:B,industry:n})},`q${i}`),j&&u.jsxs(_e.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[u.jsx("div",{className:"bg-white rounded-2xl border-2 p-6 lg:p-8 mb-5",style:{borderColor:m.color},children:u.jsxs("div",{className:"flex flex-col md:flex-row gap-6 items-start",children:[u.jsxs("div",{className:"flex-shrink-0",children:[u.jsx("div",{className:"w-20 h-20 rounded-2xl flex items-center justify-center",style:{background:`${m.color}18`},children:u.jsx("span",{className:"text-3xl font-heading font-extrabold",style:{color:m.color},children:h})}),u.jsx("p",{className:"text-xs text-center mt-1.5 font-semibold",style:{color:m.color},children:"/ 36"})]}),u.jsxs("div",{className:"flex-1",children:[u.jsx("span",{className:"text-xs font-bold uppercase tracking-widest px-3 py-1 rounded-full mb-2 inline-block",style:{background:`${m.color}18`,color:m.color},children:m.badge}),u.jsx("h3",{className:"text-xl font-heading font-extrabold text-midnight mt-1",children:m.label}),u.jsx("p",{className:"text-sm text-slate mt-2 leading-relaxed",children:g||m.label}),e.id==="cyber"&&u.jsx("div",{className:"mt-4",children:u.jsx(E1e,{score:h})})]})]})}),l?u.jsxs(_e.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:[x.length>0&&u.jsxs("div",{className:"space-y-3 mb-5",children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest",children:"Specific gaps identified"}),x.map((L,z)=>u.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-xl border border-amber-200 bg-amber-50",children:[u.jsx(X2,{className:"w-4 h-4 text-amber-600 flex-shrink-0 mt-0.5"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-bold text-amber-800",children:L.title}),u.jsx("p",{className:"text-xs text-amber-700 mt-1 leading-relaxed",children:L.body})]})]},z))]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-6",children:[u.jsxs("div",{className:"p-5 rounded-xl bg-cloud border border-slate/10",children:[u.jsx("p",{className:"text-xs font-bold text-azure uppercase tracking-wide mb-2",children:"Recommended next step"}),u.jsx("p",{className:"text-sm text-midnight font-semibold leading-snug",children:e.cta[b]||"Book a consultation"})]}),u.jsxs("div",{className:"p-5 rounded-xl bg-azure/8 border border-azure/15",children:[u.jsx("p",{className:"text-xs font-bold text-azure uppercase tracking-wide mb-2",children:"Sourceworx capability"}),u.jsx("p",{className:"text-sm text-midnight font-semibold leading-snug",children:"ISO 9001 · ISO 27001 · Level 1 B-BBEE · 24/7 NOC/SOC"})]})]}),u.jsx("div",{className:"bg-gradient-to-r from-midnight to-azure/90 rounded-2xl p-8 text-white",children:u.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[u.jsxs("div",{className:"flex-1",children:[u.jsx("h3",{className:"text-xl font-heading font-extrabold",children:"Talk to the Sourceworx team."}),u.jsx("p",{className:"text-white/70 mt-2 text-sm leading-relaxed",children:"Share your diagnostic results and we will build a tailored response specific to your industry, your regulatory context and your priorities."})]}),u.jsxs("div",{className:"flex flex-col gap-3 flex-shrink-0",children:[u.jsxs("a",{href:"https://outlook.office.com/book/[email protected]/?ismsaljsauthenabled",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-7 py-3 rounded-full bg-white text-azure font-bold text-sm hover:bg-frost transition-colors",children:[e.cta[b]||"Book a call"," ",u.jsx(_n,{className:"w-4 h-4"})]}),u.jsxs("button",{onClick:()=>{a(0),s(Array(e.questions.length).fill(null)),c(!1),r(null)},className:"flex items-center justify-center gap-2 px-7 py-3 rounded-full border border-white/25 text-white/80 text-sm hover:bg-white/10 transition-colors",children:[u.jsx(rW,{className:"w-4 h-4"})," Retake"]})]})]})})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"relative mb-5",children:[u.jsxs("div",{className:"blur-sm pointer-events-none select-none",children:[x.length>0&&u.jsx("div",{className:"space-y-3 mb-4",children:x.map((L,z)=>u.jsxs("div",{className:"p-4 rounded-xl border border-amber-200 bg-amber-50",children:[u.jsx("p",{className:"text-sm font-bold text-amber-800",children:L.title}),u.jsx("p",{className:"text-xs text-amber-700 mt-1",children:L.body})]},z))}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-4",children:[u.jsxs("div",{className:"p-5 rounded-xl bg-cloud border border-slate/10",children:[u.jsx("p",{className:"text-xs font-bold text-azure uppercase tracking-wide mb-2",children:"Service recommendation"}),u.jsx("p",{className:"text-sm text-midnight font-medium",children:"Unlock to see your personalised 
1318service recommendation."})]}),u.jsxs("div",{className:"p-5 rounded-xl bg-cloud border border-slate/10",children:[u.jsx("p",{className:"text-xs font-bold text-azure uppercase tracking-wide mb-2",children:"Next step"}),u.jsx("p",{className:"text-sm text-midnight font-medium",children:e.cta[b]||"Book a consultation"})]})]})]}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-white/60 to-white"})]}),u.jsx(_1e,{onUnlock:L=>{A(L),c(!0)},toolId:e.id,toolLabel:e.label,industry:n,score:h,tier:m.label})]})]},"result")]}),!j&&u.jsxs("div",{className:"flex justify-between items-center mt-6",children:[u.jsx("button",{onClick:T,className:`text-sm text-slate hover:text-azure transition-colors ${i===0?"invisible":""}`,children:"← Previous"}),u.jsx(_e.button,{whileHover:{scale:C?1.03:1},onClick:E,disabled:!C,className:`px-8 py-3.5 rounded-full font-bold text-sm transition-all ${C?"bg-azure text-white hover:bg-sky shadow-lg shadow-azure/20":"bg-slate/10 text-slate/40 cursor-not-allowed"}`,children:i===e.questions.length?"View results →":"Next question →"})]})]}),e.id==="mit"&&i>=1&&!j&&u.jsx("div",{className:"lg:w-64 flex-shrink-0",children:u.jsx(N1e,{answers:o,questions:e.questions})}
1318),e.id==="ai"&&i>=1&&!j&&u.jsx("div",{className:"lg:w-64 flex-shrink-0",children:u.jsx(T1e,{answers:o,questions:e.questions})})]})]})}function j1e(){const[e,t]=_.useState(null),n=r=>{mr.analytics.track({eventName:"diagnostic_tool_start",properties:{tool_id:r.id}}),t(r)};return u.jsxs(u.Fragment,{children:[u.jsxs("section",{className:"relative pt-32 pb-16 lg:pt-44 lg:pb-24 overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:Rt.abstractGlass,alt:"",className:"w-full h-full object-cover opacity-15"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-cloud to-white"})]}),u.jsx("div",{className:"absolute top-32 right-12 w-64 h-64 bg-azure/8 rounded-full blur-3xl pointer-events-none glass-float"}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Interactive diagnostics",title:"Assess your performance. Understand your gaps.",description:"Five assessment tools. Scored across nine dimensions. Personalised to your industry and regulatory context. Each one delivers real value to the person completing it accurately."}),u.jsx(w1e,{})]})]}),u.jsx("section",{className:"py-12 lg:py-20 bg-white min-h-[60vh]",children:u.jsx("div",{className:"max-w-4xl mx-auto px-6 lg:px-8",children:u.jsx(sl,{mode:"wait",children:e?u.jsx(_e.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},children:u.jsx(P1e,{tool:e,onBack:()=>t(null)})},e.id):u.jsxs(_e.div,{initial:{opacity:0}
1318,animate:{opacity:1},exit:{opacity:0},children:[u.jsx("p",{className:"text-sm font-semibold text-slate text-center mb-10",children:"Select a diagnostic to begin — each takes approximately 10 minutes"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:O_.map((r,i)=>u.jsxs(_e.button,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:i*.08},onClick:()=>n(r),className:"text-left rounded-2xl border-2 border-slate/10 bg-white hover:border-azure hover:shadow-xl hover:shadow-azure/10 transition-all group overflow-hidden",children:[u.jsxs("div",{className:"relative h-40 overflow-hidden",children:[u.jsx("img",{src:MX[r.id],alt:r.label,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-midnight/45 to-transparent"})]}),u.jsxs("div",{className:"p-6",children:[u.jsx("p",{className:"text-[10px] font-bold uppercase tracking-widest mb-1.5",style:{color:r.color},children:r.subtitle}),u.jsx("h3",{className:"font-heading font-extrabold text-midnight text-base group-hover:text-azure transition-colors leading-snug",children:r.label}),u.jsxs("p",{className:"text-xs text-slate mt-2 leading-relaxed line-clamp-3",children:[r.intro.slice(0,100),"…"]}),u.jsxs("div",{className:"flex items-center gap-1 mt-4 text-xs font-bold text-azure opacity-0 group-hover:opacity-100 transition-opacity",children:["Start assessment ",u.jsx($V,{className:"w-3.5 h-3.5"})]})]})]},r.id))}),u.jsxs(_e.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{delay:.5},className:"mt-12 p-6 rounded-2xl bg-cloud border border-slate/10 flex flex-col md:flex-row items-center gap-5",children:[u.jsx("div",{className:"w-10 h-10 rounded-xl bg-azure/10 flex items-center justify-center flex-shrink-0",children:u.jsx(Uh,{className:"w-5 h-5 text-azure"})}),u.jsxs("div",{className:"flex-1 text-center md:text-left",children:[u.jsx("p",{className:"font-bold text-midnight text-sm",children:"Not sure which diagnostic to start with?"}),u.jsx("p",{className:"text-sm text-slate mt-1",children:"Start with Cybersecurity Posture — it is the most time-sensitive for South African organisations operating in Q2 2026."})]}),u.jsx("button",{onClick:()=>n(O_.find(r=>r.id==="cyber")),className:"flex-shrink-0 px-6 py-2.5 rounded-full bg-azure text-white text-sm font-bold hover:bg-sky transition-colors",children:"Start with Cyber"})]})]},"selector")})})}),u.jsx(ec,{heading:"Ready for a deeper conversation?",sub:"Our team can turn your diagnostic results into a specific, actionable roadmap — within 24 hours.",cta:"Book an assessment session",href:"https://outlook.office.com/book/[email protected]/?ismsaljsauthenabled",img:Rt.boardroom})]})}const O1e={"Managed IT":"bg-azure/10 text-azure",Network:"bg-midnight/10 text-midnight",Cybersecurity:"bg-azure/10 text-azure","Software & Automation":"bg-midnight/10 text-midnight"};function lb({config:e}){const{hero:t,headline:n,sub:r,label:i,challenges:a,response:o,compliance:s,services:l,testimonials:c,quote:d,img:A,accentImg:h,insightsVertical:m,challengeImg:b,bandStyle:g}=e;return u.jsxs(u.Fragment,{children:[u.jsxs("section",{className:"relative min-h-[70vh] flex items-end pb-20 overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:t,alt:"",className:"w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-midnight/95 via-midnight/70 to-midnight/30"})]}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8 pt-32",children:[u.jsx(_e.span,{initial:{opacity:0}
1318,animate:{opacity:1},transition:{delay:.3},className:"text-xs font-bold tracking-widest uppercase text-sky mb-4 block",children:i}),u.jsx(_e.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.5},className:"text-4xl md:text-6xl font-heading font-extrabold text-white tracking-tight leading-tight max-w-3xl",children:n}),u.jsx(_e.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.75},className:"mt-5 text-lg text-white/60 max-w-2xl leading-relaxed",children:r}),u.jsxs(_e.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1},className:"mt-8 flex gap-4 flex-wrap",children:[u.jsxs(Ft,{to:"/contact",className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full bg-azure text-white font-bold text-sm hover:bg-sky transition-colors shadow-xl shadow-azure/30",children:["Talk to our team ",u.jsx(_n,{className:"w-4 h-4"})]}),u.jsx(Ft,{to:"/diagnostics",className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full border-2 border-white/20 text-white font-bold text-sm hover:bg-white/10 transition-colors",children:"Take a diagnostic"})]})]})]}),u.jsx("section",{className:"py-20 lg:py-28 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-start",children:[u.jsxs("div",{children:[u.jsx(dr,{label:"The challenges",title:"What we hear most often.",description:"The specific technology and compliance burdens this sector carries."}),b&&u.jsxs(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"mt-10 rounded-2xl overflow-hidden shadow-xl shadow-azure/10 relative",children:[u.jsx("img",{src:b,alt:"",className:"w-full h-96 object-cover"}),u.jsx("div",{className:"absolute inset-0 pointer-events-none overflow-hidden rounded-2xl",style:{mixBlendMode:"multiply"},children:u.jsx("div",{style:{position:"absolute",background:"rgba(0,155,223,0.38)",...g||{top:"30%",left:"-20%",width:"160%",height:"38%",transform:"rotate(-14deg)"}}})})]})]}),u.jsx("div",{className:"space-y-4",children:a.map((y,v)=>u.jsxs(_e.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:v*.08},className:"flex items-start gap-4 p-5 rounded-xl bg-cloud border border-slate/10",children:[u.jsx(X2,{className:"w-5 h-5 text-amber-500 flex-shrink-0 mt-0.5"}),u.jsx("p",{className:"text-sm text-midnight font-medium leading-relaxed",children:y})]},v))})]})})}),u.jsx("section",{className:"py-20 lg:py-28 bg-cloud",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"The Sourceworx response",title:"What we do about it.",description:"Specific capabilities, deployed against the challenges this sector faces.",align:"center"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 mt-12",children:o.map((y,v)=>u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:v*.08},children:u.jsxs(Vl,{className:"h-full",children:[y.product?u.jsx(Qse,{className:"w-6 h-6 text-sky mb-3"}):u.jsx(Qc,{className:"w-6 h-6 text-azure mb-3"}),u.jsx("h4",{className:"font-heading font-bold text-midnight text-base",children:y.title}),u.jsx("p",{className:"text-sm text-slate mt-2 leading-relaxed",children:y.desc}),y.product&&u.jsx("span",{className:"inline-block mt-3 text-[10px] font-bold uppercase tracking-wider text-sky bg-sky/10 px-2 py-0.5 rounded-full",children:"Proprietary product"})]})},v))})]})}),u.jsx("section",{className:"py-20 lg:py-28 bg-midnight text-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Compliance and regulatory",title:"We know the regulations.",description:"We have been working within them for years, across every sector we serve.",dark:!0}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 mt-12",children:s.map((y,v)=>u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:v*.08},children:u.jsxs("div",{className:"p-6 rounded-2xl bg-white/5 border border-white/8 hover:bg-white/8 transition-colors",children:[u.jsx(Uh,{className:"w-5 h-5 text-sky mb-3"}),u.jsx("h4",{className:"font-bold text-white text-sm",children:y.name}),u.jsx("p",{className:"text-xs text-white/55 mt-2 leading-relaxed",children:y.desc})]})},v))})]})}),d&&u.jsx("section",{className:"py-16 lg:py-20 bg-white",children:u.jsx("div",{className:"max-w-3xl mx-auto px-6 lg:px-8",children:u.jsx(ab,{...d})})}),m&&(()=>{const y=ob.filter(v=>v.vertical===m).slice(0,3);return y.length?u.jsx("section",{className:"py-20 lg:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsxs("div",{className:"flex items-end justify-between mb-10 flex-wrap gap-4",children:[u.jsx(dr,{label:"Insights",title:`Thought leadership for ${m}.`,description:"Research, analysis and practical guidance written for your sector."}),u.jsxs(Ft,{to:"/insights",className:"inline-flex items-center gap-2 text-sm font-bold text-azure hover:text-sky transition-colors flex-shrink-0",children:["All insights ",u.jsx(_n,{className:"w-4 h-4"})]})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:y.map((v,x)=>{var B;return u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:x*.1},children:u.jsxs(Ft,{to:`/insights/${v.id}`,className:"group flex flex-col h-full bg-white rounded-2xl border border-slate/10 hover:shadow-xl hover:shadow-azure/8 hover:border-azure/20 transition-all duration-300 overflow-hidden",children:[v.cover&&u.jsx("div",{className:"h-40 overflow-hidden bg-cloud",children:u.jsx("img",{src:v.cover,alt:"",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),u.jsxs("div",{className:"p-5 flex flex-col flex-1",children:[u.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-full self
1318-start mb-3 ${O1e[v.tag]||"bg-cloud text-slate"}`,children:v.tag}),u.jsx("h4",{className:"text-sm font-heading font-extrabold text-midnight leading-snug group-hover:text-azure transition-colors flex-1",children:v.title}),u.jsxs("div",{className:"flex items-center gap-2 mt-4 pt-3 border-t border-slate/8",children:[(()=>{const C=v.author&&Qm[v.author]||Hm;return C.image?u.jsx("img",{src:C.image,alt:C.name,className:"w-6 h-6 rounded-full object-cover object-top"}):u.jsx("div",{className:"w-6 h-6 rounded-full bg-azure/10 flex items-center justify-center flex-shrink-0",children:u.jsx("span",{className:"text-[9px] font-bold text-azure",children:C.name.charAt(0)})})})(),u.jsx("span",{className:"text-xs text-slate/60",children:v.author&&((B=Qm[v.author])==null?void 0:B.name)||Hm.name}),u.jsxs("span",{className:"ml-auto text-xs font-semibold text-azure flex items-center gap-1",children:["Read ",u.jsx(_n,{className:"w-3 h-3"})]})]})]})]})},v.id)})}),u.jsxs("div",{className:"mt-10 p-6 rounded-2xl bg-azure/5 border border-azure/15 flex flex-col md:flex-row items-center gap-6",children:[u.jsx(K0,{className:"w-10 h-10 text-azure flex-shrink-0"}),u.jsxs("div",{className:"flex-1 text-center md:text-left",children:[u.jsx("p",{className:"font-heading font-bold text-midnight",children:"Not sure where to start?"}),u.jsx("p",{className:"text-sm text-slate mt-1",children:"Run our free diagnostic tool and get a personalised technology readiness report for your organisation."})]}),u.jsxs(Ft,{to:"/diagnostics",className:"flex-shrink-0 inline-flex items-center gap-2 px-6 py-3 rounded-full bg-azure text-white font-bold text-sm hover:bg-sky transition-colors",children:["Take the diagnostic ",u.jsx(_n,{className:"w-4 h-4"})]})]})]})}):null})(),u.jsx(ec,{heading:"Ready to talk about your environment?",sub:"Tell us what you are dealing with. We will tell you exactly how we would respond.",cta:"Start the conversation",img:h})]})}const F1e={hero:Rt.archBuilding,accentImg:Rt.boardroom,challengeImg:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/12d8a21df_generated_image.png",bandStyle:{bottom:"8%",left:"-20%",width:"160%",height:"32%",transform:"rotate(-10deg)"},label:"Financial Services and Insurance",headline:"In financial services, a system failure is never just an IT problem.",sub:"It is a compliance event, a reputational event and a revenue event simultaneously. We manage the technology environments that South African financial institutions cannot afford to lose.",challenges:["A network outage is a compliance event, a reputational event and a revenue event at the same time.","SARB cyber resilience assessments require continuous documentation that most in-house teams cannot sustain.","FSCA CPD evidence is assembled manually by compliance officers in the weeks before submission deadlines.","Mid-tier institutions lack the budget for a fully staffed 24/7 SOC, leaving them exposed.","Branch network incidents go unresolved for months because carrier escalations are not managed systematically.","POPIA breach notification timelines create liability when incident response processes are undocumented."],response:[{title:"24/7 SOC that speaks SARB fluently",desc:"Our managed Security Operations Centre provides mid-tier banks and insurers with enterprise-grade detection and response. Powered by Microsoft Sentinel. Aligned to SARB Directive 1 of 2018."},{title:"One partner. Every branch. No excuses.",desc:"We manage retail banking networks as a single portfolio — monitoring every link, managing carrier escalations and maintaining failover configurations."},{title:"FSCA CPD evidence. Automatically.",desc:"EDVantage generates FSCA-ready CPD evidence and B-BBEE Element 6 reports automatically as advisers complete their programmes. No more February panic.",product:!0},{title:"POPIA compliance consulting",desc:"Documentation, governance frameworks and audit-ready evidence aligned to the Information Regulator's expectations. Section 22 breach notification processes built in."},{title:"ISO 27001 certified operations",desc:"Every managed security engagement operates under our ISO 27001 certification. Audit evidence is generated as a natural output of our service delivery."},{title:"PCI-DSS network segmentation",desc:"Network architecture designed for PCI-DSS compliance. Segmentation, monitoring and change management aligned to card industry standards."}],compliance:[{name:"SARB Directive 1 of 2018",desc:"Cyber resilience framework requirements built into how 
1318we design and operate SOC services."},{name:"FSCA CPD obligations",desc:"EDVantage automates FSCA CPD evidence generation throughout the year — not assembled retrospectively."},{name:"POPIA",desc:"Data governance frameworks, breach notification processes and Section 22 compliance built into service delivery."},{name:"PCI-DSS",desc:"Network segmentation, monitoring and change management aligned to Payment Card Industry standards."},{name:"ISO 27001",desc:"Our managed cybersecurity operations are independently certified under ISO 27001."},{name:"B-BBEE Level 1",desc:"Maximum preference points in every FSI procurement evaluation. Highest rating available."}],quote:{quote:un[0].quote,name:un[0].name,role:un[0].role,img:un[0].img},insightsVertical:"Financial Services"};function L1e(){return u.jsx(lb,{config:F1e})}const D1e={hero:Rt.heroSkyline,accentImg:Rt.officeLight,challengeImg:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/c7270f2df_generated_image.png",bandStyle:{top:"25%",left:"-25%",width:"170%",height:"30%",transform:"rotate(-20deg)"},label:"Municipalities and Government",headline:"Service delivery and audit accountability. Both. At the same time.",sub:"South African municipalities and government departments face a double mandate that most IT partners have never had to understand. We have spent 17 years building for exactly this context.",challenges:["The Auditor-General finds incomplete infrastru
1318cture project files because documentation is assembled retrospectively.","MFMA Section 72 mid-year budget assessments consume two to three weeks of senior finance staff time, every cycle.","B-BBEE procurement requirements create liability when IT vendors cannot demonstrate Level 1 status.","Load-shedding and connectivity constraints mean global IT solutions fail in the SA public sector context.","Under-resourced IT teams cannot maintain the documentation standard that COGTA and National Treasury require.","Grant funding is at risk when MIG project close-out files are incomplete or non-compliant with IDMS requirements."],response:[{title:"FiscalFocus for MFMA compliance",desc:"Automates Section 72 and Section 87 budget assessments, reducing a three-week manual process to a same-day report generation. Aligned to National Treasury format.",product:!0},{title:"iManage for infrastructure projects",desc:"Infrastructure project lifecycle management aligned to the IDMS Stage Gate framework. Audit trail generated as projects progress, not assembled before the AG arrives.",product:!0},{title:"Level 1 B-BBEE procurement",desc:"Maximum preference points under the PPPFA scoring system. Protects accounting officers in every tender evaluation."},{title:"Load-shedding resilient design",desc:"Network and IT infrastructure designed for South African grid realities. Failover configurations, UPS management and hybrid connectivity for municipal environments."},{title:"POPIA data governance",desc:"Public sector data governance frameworks aligned to POPIA and the Government's information security requirements."},{title:"Managed IT for under-resourced teams",desc:"We supplement or replace under-resourced municipal IT teams with certified specialists under a formal SLA, at a fraction of the cost of full internal staffing."}],compliance:[{name:"MFMA",desc:"Section 72 and 87 compliance automation. iManage aligns to MFMA project management requirements."},{name:"PFMA",desc:"Public Finance Management Act alignment built into our financial systems and reporting."},{name:"IDMS Stage Gate",desc:"iManage follows the Infrastructure Delivery Management System framework for all project phases."},{name:"B-BBEE Level 1",desc:"Verified Level 1 contributor. Maximum PPPFA preference points. Protects procurement decisions."},{name:"POPIA",desc:"Data governance and privacy compliance for public sector information management obligations."},{name:"Auditor-General readiness",desc:"Audit evidence generated automatically as operations proceed — not assembled under pressure."}],quote:{quote:un[1].quote,name:un[1].name,role:un[1].role,img:un[1].img},insightsVertical:null};function M1e(){return u.jsx(lb,{config:D1e})}const U1e={hero:Rt.officeLight,accentImg:Rt.pexels2,challengeImg:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/9cd54cf8b_generated_image.png",bandStyle:{top:"40%",left:"-15%",width:"140%",height:"28%",transform:"rotate(-6deg)"},label:"Higher Education & Basic Education",headline:"Teaching is hard enough. The compliance burden should not make it harder.",sub:"From university campuses to district school funding — we manage the technology and compliance infrastructure that lets South African education institutions focus on what they are actually there to do.",challenges:["SETA evidence assembly consumes weeks of manual effort before every moderation visit.","Campus Wi-Fi fails under examination load — creating risk for online assessments and CBE.","Two separate vendor relationships for campus IT and the LMS means neither team owns the outcome.","Global LMS platforms require SETA, QCTO and B-BBEE compliance to be added as workarounds — not built in.","DHET HEMIS reporting creates a recurring data quality crisis for institutions on legacy student systems.","Basic Education: Most districts track school funding allocations and infrastructure projects in spreadsheets or disconnected systems, creating audit risk and NNSSF non-compliance.","Basic Education: Quintile tracking is manual, error-prone and fails to generate the DoRA-compliant conditional grant reports AGSA examiners expect."],response:[{title:"EDVantage: built for a SETA moderation visit",desc:"Formative assessments, summative evidence, learner portfolios, facilitator records and demographic reports generated automatically. Evidence complete before the moderator arrives.",product:!0},{title:"Campus network for peak load",desc:"High-density wireless design specifically for examination halls and lecture theatres. Tested against the concurrent device load of your largest examination sitting."},{title:"One SLA: campus IT and learning platform",desc:"Campus network, IT infrastru
1318cture and EDVantage managed under a single SLA. One number to call. One team accountable."},{title:"B-BBEE Element 6 evidence",desc:"EDVantage tracks skills development spend against learner demographic profiles and generates verification agency evidence automatically.",product:!0},{title:"Fiscal Focus: quintile tracking and NNSSF compliance",desc:"Fiscal Focus manages the complete district school funding lifecycle, calculating per-learner allocations by quintile, tracking spending against NNSSF norms and generating DoRA-compliant conditional grant reports.",product:!0},{title:"Audit-ready evidence as a natural output",desc:"Every payment run, approval workflow and bank detail verification is logged and version-controlled. When the Auditor General arrives, the evidence file is complete because the system required it to be captured at the time, not reconstructed under pressure."}],compliance:[{name:"SETA compliance",desc:"EDVantage generates grant claim evidence and learner portfolios automatically as programmes progress."},{name:"QCTO accreditation",desc:"NQF-aligned assessment structures and QCTO evidence templates built into EDVantage workflows."},{name:"B-BBEE Element 6",desc:"Demographic reporting and skills development evidence generated automatically for verification agencies."},{name:"DHET HEMIS",desc:"Statistical submission support with data quality validation against HEMIS requirements."},{name:"POPIA",desc:"Learner data governance aligned to POPIA — particularly relevant for minor learners in TVET environments."},{name:"NNSSF & DoRA — Basic Education",desc:"Fiscal Focus automates quintile-based fund allocation, tracks compliance with NNSSF norms and generates DoRA-compliant conditional grant reports throughout the budget cycle."},{name:"AGSA audit readiness",desc:"Dashboards and reports that give CFOs, EMIS Heads and Infrastructure Units full visibility across fund allocation, bank detail verification and payment status — in the format their reporting lines require."}],quote:{quote:un[3].quote,name:un[3].name,role:un[3].role,img:un[3].img},insightsVertical:"Higher Education"};function R1e(){return u.jsx(lb,{config:U1e})}const Q1e={hero:Rt.pexels5,accentImg:Rt.noc,challengeImg:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/401af85e3_generated_image.png",bandStyle:{top:"10%",left:"-10%",width:"150%",height:"35%",transform:"rotate(-28deg)"},label:"Mining and Industry",headline:"Downtime at a mine site is measured in rand per hour. We treat it that way.",sub:"Remote sites, converging OT/IT networks, safety compliance and Charter obligations: we manage the technology challenges that are unique to South African mining and industry.",challenges:["Remote mine sites are hundreds of kilometres from the nearest technical expert. Downtime resolution takes hours.","OT and IT networks are converging without adequate security architecture, creating MHSA and safety risks.","SCADA and industrial 
1318control systems connected to corporate networks without proper DMZ boundaries.","Mining Charter HDSA skills evidence and SLP obligations require manual tracking across disparate systems.","Field workers cannot access expert guidance hands-free during plant maintenance and safety inspections.","MQA learnership management is undocumented, creating DMRE liability at Charter assessment time."],response:[{title:"RealWear: expert access at every technician's eye level",desc:"Head-mounted devices connect field workers to any expert in the world hands-free, in real time, with AR-guided instructions. Sourceworx is the SA RealWear partner.",product:!0},{title:"OT/IT convergence security",desc:"Fortinet industrial security platform creating the right boundaries between operational and corporate zones. SCADA and ICS protection without disrupting production data flows."},{title:"Remote site IT management",desc:"RMM tooling, hybrid connectivity (microwave, VSAT, bonded LTE) and national field specialist coverage for sites where fibre is not available."},{title:"Mining Charter compliance",desc:"EDVantage delivers MHSA safety inductions, MQA learnerships and HDSA development programmes via mobile — generating Charter and SLP evidence automatically.",product:!0},{title:"Industrial DMZ architecture",desc:"Purpose-designed network boundaries that allow operational data to reach corporate systems while preventing threats from crossing in the opposite direction."},{title:"24/7 production-grade SLAs",desc:"SLAs that reflect the continuous nature of mining operations, not 8-hour business-day support windows."}],compliance:[{name:"MHSA",desc:"Mine Health and Safety Act compliance built into safety induction delivery and incident documentation workflows."},{name:"Mining Charter",desc:"HDSA skills development tracking and evidence generation for Charter assessments."},{name:"DMRE reporting",desc:"DMRE-compliant MQA learnership reports generated automatically by EDVantage."},{name:"SLP obligations",desc:"Social and Labour Plan skills training tracking with automated evidence generation."},{name:"MQA",desc:"Mining Qualifications Authority learnership management and evidence within EDVantage."},{name:"ISO 27001 OT/IT",desc:"Information security applied to OT/IT convergence environments under our ISO 27001 certification."}],quote:{quote:un[2].quote,name:un[2].name,role:un[2].role,img:un[2].img},insightsVertical:"Mining and Industry"};function H1e(){return u.jsx(lb,{config:Q1e})}const $1e={hero:Rt.boardroom,accentImg:Rt.archBuilding,challengeImg:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/c53380e51_generated_image.png",bandStyle:{bottom:"0%",left:"-20%",width:"160%",height:"36%",transform:"rotate(-14deg)"},label:"Special IT Projects",headline:"One partner. Accountable from the first architecture decision to the support call three years later.",sub:"Some technology challenges do not fit neatly into a service line. They need a partner who can think, build, integrate and own the outcome — without passing responsibility between teams.",challenges:["Five vendors in the room and none of them own the outcome when the integration fails.","Mergers and acquisitions require IT environments to co-exist, separate or integrate faster than anyone planned for.","Power BI deployments create twelve versions of the truth instead of one governed analytics environment.","Bespoke software gets handed off to a support desk that was not part of the original build.","Government digitisation programmes fail because no single partner owns the full technical scope.","Complex projects fail not for technical reasons — but because of accountability fragmentation."],response:[{title:"Single accountable partner",desc:"We design it, build it, integrate it and support it with the same team throughout. One contract. One set of consequences. No handoff."},{title:"Bespoke software for SA conditions",desc:"We understand the MFMA, POPIA, SETA and mSCOA context without being briefed. The same team that built EDVantage and FiscalFocus — available for your specific requirement.",product:!0},{title:"Power BI Centre of Excellence",desc:"Governance frameworks, certified dataset libraries and deployment pipelines. Twelve departmental reports become one single version of the truth."},{title:"M&A IT transition management",desc:"Sourceworx stabilises both environments during the transaction window and executes integration or separation with engineering depth and single accountability."},{title:"Long-term support SLAs",desc:"Every bespoke engagement includes a supp
1318ort SLA delivered by the team that built the system. Same specialists. Same code knowledge. No handoff."},{title:"Flexible commercial models",desc:"Fixed-fee, outcome-based or time-and-materials — we accommodate the way complex projects are actually procured."}],compliance:[{name:"MFMA and mSCOA",desc:"Bespoke applications built with MFMA and mSCOA chart of accounts compliance built in from day one."},{name:"POPIA",desc:"Privacy by design applied throughout the software development lifecycle."},{name:"SETA compliance",desc:"Custom applications that understand SETA evidence requirements without a project phase of context-setting."},{name:"ESG reporting",desc:"Data and analytics frameworks for ESG reporting aligned to JSE and international disclosure requirements."},{name:"B-BBEE Level 1",desc:"Maximum procurement preference points in every complex project tender evaluation."},{name:"ISO 9001",desc:"Quality management applied to project delivery under our ISO 9001 certification."}],quote:{quote:un[0].quote,name:un[0].name,role:un[0].role,img:un[0].img}};function q1e(){return u.jsx(lb,{config:$1e})}function z1e({label:e,campaignPath:t}){const[n,r]=_.useState(!1),[i,a]=_.useState(!1),o=_.useRef(null),s=_.useRef(!1);_.useEffect(()=>{if(i||s.current)return;const c=()=>{s.current||i||(s.current=!0,r(!0))},d=()=>{const A=window.scrollY+window.innerHeight,h=document.documentElement.scrollHeight;A/h>=.5&&c(),clearTimeout(o.current),o.current=setTimeout(c,4e3)};return window.addEventListener("scroll",d,{passive:!0}),o.current=setTimeout(c,8e3),()=>{window.removeEventListener("scroll",d),clearTimeout(o.current)}},[i]);const l=()=>{r(!1),a(!0)};return me.useEffect(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[n]),u.jsx(sl,{children:n&&u.jsxs(u.Fragment,{children:[u.jsx(_e.div,{initial:{opacity:0}
1318,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},onClick:l,className:"fixed inset-0 z-[199] bg-midnight/40 backdrop-blur-sm"}),u.jsx(_e.div,{initial:{opacity:0,y:20,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.97},transition:{type:"spring",stiffness:260,damping:22},className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:u.jsxs("div",{className:"w-[380px] max-w-full bg-white rounded-2xl shadow-2xl shadow-midnight/25 border border-slate/10 overflow-hidden",children:[u.jsx("div",{className:"h-1 bg-gradient-to-r from-azure to-sky"}),u.jsxs("div",{className:"p-6 relative",children:[u.jsx("button",{onClick:l,className:"absolute top-4 right-4 text-slate/40 hover:text-midnight transition-colors","aria-label":"Close",children:u.jsx(dd,{className:"w-4 h-4"})}),u.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[u.jsx("div",{className:"w-9 h-9 rounded-xl bg-azure/10 flex items-center justify-center flex-shrink-0",children:u.jsx(Doe,{className:"w-4 h-4 text-azure"})}),u.jsx("span",{className:"text-[10px] font-bold tracking-widest uppercase text-azure",children:"Free Assessment"})]}),u.jsxs("h3",{className:"text-base font-heading font-extrabold text-midnight leading-snug mb-2",children:["Get a free ",e," assessment."]}),u.jsx("p",{className:"text-xs text-slate leading-relaxed mb-5",children:"No obligation. A certified specialist reviews your environment and gives you a clear picture of where you stand."}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ft,{to:t,onClick:l,className:"flex-1 inline-flex items-center justify-center gap-1.5 px-4 py-2.5 rounded-full bg-azure text-white font-bold text-xs hover:bg-sky transition-colors shadow-md shadow-azure/20",children:["Start assessment ",u.jsx(_n,{className:"w-3.5 h-3.5"})]}),u.jsx("button",{onClick:l,className:"px-4 py-2.5 rounded-full border border-slate/20 text-slate text-xs font-semibold hover:bg-cloud transition-colors",children:"Not now"})]})]})]})})]})})}function V1e({ids:e,label:t}){const n=fS.filter(r=>e.includes(r.id));return n.length===0?null:u.jsx("section",{className:"py-20 lg:py-28 bg-cloud border-t border-slate/8",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Client work",title:"How this shows up when a client is under pressure.",description:`Read what ${t.toLowerCase()} actually looked like for organisations facing a hard deadline, and decide for yourself whether you would want us alongside you.`}),u.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-7 mt-12",children:n.map((r,i)=>u.jsx(_e.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.12},children:u.jsxs(Ft,{to:`/insights/case-studies/${r.id}`,className:"group flex flex-col h-full bg-white rounded-2xl border border-slate/10 overflow-hidden hover:shadow-xl hover:shadow-midnight/10 hover:-translate-y-1 transition-all duration-300",children:[u.jsxs("div",{className:"relative h-48 overflow-hidden",children:[r.cover?u.jsxs(u.Fragment,{children:[u.jsx("img",{src:r.cover,alt:"",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-midnight/70 via-midnight/20 to-transparent"})]}):u.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-midnight to-azure"}),u.jsx("span",{className:"absolute top-4 left-4 z-10 text-[11px] font-semibold uppercase tracking-wider text-white border border-white/30 bg-white/10 backdrop-blur-sm px-3.5 py-1.5 rounded-full",children:r.discipline}),r.logo&&u.jsx("div",{className:"absolute top-4 right-4 z-10 bg-white/90 backdrop-blur-sm rounded-xl p-1.5 shadow-lg",children:u.jsx("img",{src:r.logo,alt:r.logoAlt||"",className:"w-12 h-12 object-contain"})})]}),u.jsxs("div",{className:"p-7 flex flex-col gap-3.5 flex-1",children:[u.jsxs("div",{className:"flex items-center gap-3 text-xs font-semibold uppercase tracking-wider text-slate/60",children:[u.jsx("span",{children:r.year}),u.jsx("span",{className:"text-slate/30",children:"·"}),u.jsx("span",{children:r.sector})]}),u.jsx("h3",{className:"text-xl font-heading font-bold text-midnight leading-snug group-hover:text-azure transition-colors",children:r.cardTitle}),u.jsx("p",{className:"text-sm leading-relaxed text-slate/70 flex-1",children:r.cardSummary}),u.jsx("div",{className:"flex gap-5 pt-3.5 border-t border-slate/8",children:r.cardStats.map((a,o)=>u.jsxs("div",{className:"flex flex-col",children:[u.jsx("span",{className:"text-lg font-heading font-extrabold text-midnight",children:a.num}),u.jsx("span",{className:"text-[11px] text-slate/60 tracking-wide",children:a.lbl})]},o))}),u.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm font-semibold text-azure w-max group-hover:gap-2.5 transition-all",children:["Read case study ",u.jsx(_n,{className:"w-3.5 h-3.5"})]})]})]})},r.id))})]})})}function SS({config:e}){const{hero:t,headline:n,overviewTitle:r,sub:i,label:a,description:o,capabilities:s,whyUs:l,process:c,testimonials:d,quote:A,img:h,accentImg:m,certBadges:b}=e;return u.jsxs(u.Fragment,{children:[u.jsxs("section",{className:"relative min-h-[65vh] flex items-end pb-20 overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:t,alt:"",className:"w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-midnight/95 via-midnight/65 to-midnight/25"})]}),u.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6 lg:px-8 pt-32",children:[u.jsx(_e.span,{initial:{opacity:0}
1318,animate:{opacity:1},transition:{delay:.3},className:"text-xs font-bold tracking-widest uppercase text-sky mb-4 block",children:a}),u.jsx(_e.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.5},className:"text-4xl md:text-6xl font-heading font-extrabold text-white tracking-tight leading-tight max-w-3xl",children:n}),u.jsx(_e.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},className:"mt-5 text-lg text-white/60 max-w-2xl leading-relaxed",children:i}),b&&u.jsx(_e.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.1},className:"flex flex-wrap gap-2 mt-6",children:b.map(g=>u.jsx("span",{className:"text-xs font-semibold text-sky/80 border border-sky/25 rounded-full px-3 py-1.5",children:g},g))}),e.microsoftBadge&&u.jsx("div",{className:"mt-6 max-w-2xl",children:u.jsx(fY,{})}),u.jsx(_e.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.3},className:"mt-8 flex gap-4 flex-wrap",children:u.jsxs(Ft,{to:"/contact",onClick:()=>uj({source:"service_hero",service:a}),className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full bg-azure text-white font-bold text-sm hover:bg-sky transition-colors shadow-xl shadow-azure/30",children:["Talk to our team ",u.jsx(_n,{className:"w-4 h-4"})]})})]})]}),u.jsx("section",{className:"py-20 lg:py-28 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-14 items-center",children:[u.jsx(dr,{label:"Overview",title:r||n,description:o}),u.jsx("div",{children:u.jsx("img",{src:m||h,alt:"",className:"rounded-2xl w-full h-72 object-cover shadow-xl"})})]})})}),u.jsx("section",{className:"py-20 lg:py-28 bg-cloud",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Capabilities",title:`What's included in ${a}.`,align:"center"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 mt-12",children:s.map((g,y)=>u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:y*.08},children:u.jsxs(Vl,{className:"h-full",children:[u.jsx(Qc,{className:"w-5 h-5 text-azure mb-3"}),u.jsx("h4",{className:"font-heading font-bold text-midnight text-base",children:g.title}),u.jsx("p",{className:"text-sm text-slate mt-2 leading-relaxed",children:g.desc})]})},y))})]})}),u.jsx("section",{className:"py-20 lg:py-28 bg-midnight text-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Why Sourceworx",title:"Why clients choose us for this.",dark:!0}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 mt-12",children:l.map((g,y)=>u.jsxs(_e.div,{initial:{opacity:0,x:y%2===0?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:y*.1},className:"flex items-start gap-4 p-5 rounded-xl bg-white/5 border border-white/8",children:[u.jsx(Qc,{className:"w-5 h-5 text-sky flex-shrink-0 mt-0.5"}),u.jsxs("div",{children:[u.jsx("p",{className:"font-bold text-white text-sm",children:g.title}),u.jsx("p",{className:"text-xs text-white/55 mt-1.5 leading-relaxed",children:g.desc})]})]},y))})]})}),A&&u.jsx("section",{className:"py-16 bg-white",children:u.jsx("div",{className:"max-w-3xl mx-auto px-6 lg:px-8",children:u.jsx(ab,{...A})})}),e.campaignPath&&u.jsx("section",{className:"py-20 lg:py-28 bg-white border-t border-slate/8",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-14 items-center",children:[u.jsxs(_e.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-azure mb-4 block",children:"Free Assessment"}),u.jsxs("h2",{className:"text-3xl md:text-4xl font-heading font-extrabold text-midnight leading-tight mb-5",children:["See exactly where you stand. A free ",a," assessment."]}),u.jsx("p",{className:"text-slate leading-relaxed mb-6",children:"A certified Sourceworx specialist will review your current environment and give you a specific picture of where the gaps are and what closing them is actually worth. No sales pressure. No generic report."}),u.jsx("ul",{className:"space-y-3 mb-8",children:["Documented findings, no sales pressure","Delivered by a certified Sourceworx specialist","Specific to your environment and your conditions"].map((g,y)=>u.jsxs("li",{className:"flex items-start gap-3 text-sm text-midnight/70",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-azure/10 flex items-center justify-center text-azure font-bold text-xs flex-shrink-0 mt-0.5",children:"✓"}),g]},y))}),u.jsxs(Ft,{to:e.campaignPath,className:"inline-flex items-center gap-2 px-8 py-4 rounded-full bg-azure text-white font-bold text-sm hover:bg-sky transition-colors shadow-xl shadow-azure/25",children:["Start your assessment ",u.jsx(_n,{className:"w-4 h-4"})]})]}),u.jsxs(_e.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-cloud rounded-2xl p-8 border border-slate/10",children:[u.jsx("p",{className:"text-xs font-bold text-azure uppercase tracking-widest mb-6",children:"What the assessment covers"}),u.jsx("div",{className:"space-y-4",children:["Current environment review","Risk and gap identification","Capability recommendations","Cost and ROI indicative model"].map((g,y)=>u.jsxs("div",{className:"flex items-center gap-4 p-4 bg-white rounded-xl border border-slate/8",children:[u.jsx("span",{className:"w-8 h-8 rounded-full bg-azure/10 flex items-center justify-center text-azure font-extrabold text-sm flex-shrink-0",children:String(y+1).padStart(2,"0")}),u.jsx("span",{className:"text-sm font-semibold text-midnight",children:g})]},y))})]})]})})}),e.caseStudies&&e.caseStudies.length>0&&u.jsx(V1e,{ids:e.caseStudies,label:a}),u.jsx(ec,{heading:"Your environment. Our accountability.",sub:"Tell us what you are dealing with. We will tell you exactly what we can do about it.",cta:"Talk to our team",img:h,trackSource:`service_cta_strip_${a==null?void 0:a.toLowerCase().replace(/\s+/g,"_")}`}),e.campaignPath&&u.jsx(z1e,{label:a,campaignPath:e.campaignPath})]})}
1318const W1e={hero:Rt.noc,img:Rt.officeLight,accentImg:Rt.boardroom,label:"IT Managed Services",headline:"Your IT should be invisible. When it isn't, that's our problem.",overviewTitle:"Managed IT that runs in the background, so your team doesn't have to think about it.",sub:"Sourceworx manages your entire IT environment so your team can focus on the work that generates revenue.",certBadges:["Microsoft Digital App Innovation Partner","ISO 9001","ISO 20000","24/7 Support"],description:"Every managed IT engagement runs under a formal SLA, with a dedicated support team and certified Microsoft expertise. As a Microsoft Digital App Innovation Partner, we manage your environment proactively, accountably and with 24/7 cover.",capabilities:[{title:"Desktop and endpoint management",desc:"Full lifecycle management of workstations, laptops and mobile devices. Patching, updates, remote support and asset tracking."},{title:"Server and cloud infrastructure",desc:"On-premises servers, Azure workloads and hybrid environments managed under SLA. Capacity planning, performance monitoring and backup management."},{title:"Microsoft 365 tenant management",desc:"Full M365 administration including Exchange, Teams, SharePoint and Entra ID. User provisioning, licence management and governance."},{title:"24/7 helpdesk and support",desc:"Round-the-clock support backed by guaranteed SLAs. When you call, you reach a real Sourceworx engineer, not a script-reading offshore desk."},{title:"IT asset management",desc:"Full ITAM programme covering procurement, deployment, lifecycle tracking and disposal. Compliant disposal documentation for POPIA-regulated environments."},{title:"Mobile Device Management",desc:"Secure and govern every device accessing your network. Policy enforcement, remote wipe and BYOD management under zero-trust principles."}],whyUs:[{title:"Microsoft Digital App Innovation Partner",desc:"One of the most selective Microsoft partner recognitions, awarded for deep technical expertise and consistent delivery across Microsoft's core solution areas."},{title:"ISO 9001 and ISO 20000 certified",desc:"Quality management and IT service management independently certified. Your service delivery operates to an externally audited standard."},{title:"South African context built in",desc:"We understand POPIA, B-BBEE, load-shedding and the specific compliance obligations of your sector. The context is already in the room before the engagement starts."},{title:"Sized to give your account real attention",desc:"70-plus certified specialists means your account is never a number. Large enough to have the depth. Small enough to know your environment."}],quote:{quote:un[2].quote,name:un[2].name,role:un[2].role,img:un[2].img},ctaLabel:"Book an IT Assessment",campaignPath:"/campaign/it-managed-services",caseStudies:["ksd-microsoft-365"]};function K1e(){return u.jsx(SS,{config:W1e})}const G1e={hero:Rt.pexels4,img:Rt.archBuilding,accentImg:Rt.noc,label:"Network Managed Services",headline:"When your network goes down, everything does. We make sure it doesn't.",overviewTitle:"Managed network infrastructure, with SLA tiers that match what's actually at stake.",sub:"A network that works today but cannot handle tomorrow's demands is a liability. We design and manage your infrastructure with both in mind.",certBadges:["Fortinet Authorised Partner","Cisco Partner","Molex Certified","ICASA Registered"],description:"Sourceworx manages WANs, campus networks, SD-WAN deployments and branch connectivity for organisations across South Africa. Our Gold, Silver and Bronze SLA tiers are built around what is actually at stake in your environment, not a generic service catalogue.",capabilities:[{title:"WAN and SD-WAN management",desc:"Enterprise-grade SD-WAN with traffic management, redundant systems and automatic failover. Carrier management and escalation on your behalf."},{title:"Campus and wireless networks",desc:"High-density wireless design for peak-load environments: examination halls, trading floors, open-plan offices and industrial sites."},{title:"Branch network management",desc:"Multi-site monitoring as a single portfolio. Every branch link, every failover configuration, every carrier relationship managed centrally."},{title:"Proactive monitoring",desc:"AI-assisted monitoring scans your network continuously, identifying degradation, configuration drift and security anomalies before they affect users."},{title:"Load-shedding resilience",desc:"Failover connectivity, UPS integration and generator management designed specifically for South African grid realities."},{title:"Network security",desc:"Zero-trust network access, firewall policies, intrusion detection and granular access controls integrated into the managed service."}],whyUs:[{title:"Carrier relationship management",desc:"We manage escalations with carriers on your behalf. When a fibre cut affects your branch, we own the fault, the escalation and the resolution."},{title:"Fortinet Authorised Partner",desc:"Deep Fortinet expertise for network security and SD-WAN. From FortiGate firewall management to Fortinet SD-WAN architecture and optimisation."},{title:"Load-shedding built into the design",desc:"South African grid instability is not an afterthought in our network designs. Failover and resilience are structural from day one."},{title:"National field coverage",desc:"Our field specialists are in all nine provinces. When a site needs a physical intervention, distance is a geography problem, not a service delivery problem."}],quote:{quote:un[2].quote,name:un[2].name,role:un[2].role,img:un[2].img},ctaLabel:"Request a Network Assessment",campaignPath:"/campaign/network-managed-services"};function Y1e(){return u.jsx(SS,{config:G1e})}
1318const X1e={hero:Rt.noc,img:Rt.pexels3,accentImg:Rt.pexels2,label:"Managed Cybersecurity",headline:"The threats are real. So is the team watching your back.",overviewTitle:"End-to-end cybersecurity, from a SOC that never switches off.",sub:"The threat landscape targeting South African businesses is sophisticated, relentless and local. Sourceworx delivers end-to-end managed cybersecurity through a dedicated SOC.",certBadges:["ISO 27001 Certified","Microsoft Sentinel Powered","POPIA Compliant","24/7 SOC"],description:"VAPT, managed detection and response, digital forensics, POPIA compliance consulting: all covered under one ISO 27001-certified managed service. Our SOC runs on Microsoft Sentinel and the full Microsoft Defender suite. The threat does not clock off at five. Neither do we.",capabilities:[{title:"24/7 Security Operations Centre",desc:"Continuous threat monitoring and detection. Microsoft Sentinel SIEM with automated response workflows. Real analysts, not just alerts."},{title:"VAPT: Vulnerability Assessment and Penetration Testing",desc:"Scoped vulnerability assessments and penetration tests that expose the gaps before attackers do. Not a generic checklist. Tailored to your environment."},{title:"Incident response",desc:"When a breach occurs, response time is everything. Our team contains, investigates and remediates — with communication throughout and a post-incident report."},{title:"POPIA compliance consulting",desc:"Data governance frameworks, data flow mapping, PAIA manual preparation and Section 22 breach notification process design."},{title:"Digital forensics",desc:"Post-incident forensic investigation using industry-leading tools. Court-admissible evidence for fraud, misconduct and cyber incident matters."},{title:"Cloud security",desc:"Zero-trust architecture, identity governance and posture monitoring across Azure, M365 and hybrid environments. POPIA-aligned data governance."}],whyUs:[{title:"ISO 27001 certified operations",desc:"Our managed cybersecurity service operates under ISO 27001 certification. Audit evidence is generated as a natural output of our daily service delivery."},{title:"Microsoft Sentinel and Defender",desc:"Full Microsoft security stack expertise — Sentinel SIEM, Defender for Endpoint, Identity, Cloud and Office 365. Native integration, not bolt-on tooling."},{title:"SOC partner for IT firms",desc:"We operate as a white-label SOC for IT firms who want to offer managed security to their own clients. Your brand, our SOC, one accountable team behind it."},{title:"SA regulatory alignment built in",desc:"SARB Directive 1, POPIA, FSCA and MHSA security requirements are built into how we design our services from the start."}],quote:{quote:un[0].quote,name:un[0].name,role:un[0].role,img:un[0].img},campaignPath:"/campaign/cybersecurity",caseStudies:["sporting-federation-forensics"]};function J1e(){return u.jsx(SS,{config:X1e})}const Z1e={hero:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/f24342b2a_generated_image.png",img:Rt.officeLight,accentImg:Rt.pexels2,label:"Software Development",headline:"Off-the-shelf doesn't fit your context. We build what actually does.",overviewTitle:"Bespoke South African software, built and supported by the same team.",sub:"Sourceworx builds the custom applications that solve your specific challenges — designed, built and supported by an in-house South African team.",certBadges:["Microsoft Digital App Innovation Partner","Azure Native","POPIA Compliant","Long-term Support SLA"],description:"Most software firms can build what you describe. Ver
1318y few understand MFMA, POPIA, SETA evidence requirements or the mSCOA chart of accounts without a project phase of context-setting at your expense. We already know this context. The build starts with it in place.",capabilities:[{title:"Custom web and mobile applications",desc:"End-to-end build of web and mobile applications tailored to your specific workflows. Built on Azure-native architecture and designed for your regulatory context from day one."},{title:"Systems integration",desc:"Connect your ERP, CRM, HR and operational systems into a single coherent data environment. Stop rekeying. Start automating."},{title:"Power BI Centre of Excellence",desc:"Governance frameworks, certified dataset libraries and deployment pipelines. Transform twelve departmental reports into one single version of the truth."},{title:"Process automation",desc:"Identify the manual, repetitive processes that drain your team's time. Replace them with reliable, auditable automated workflows."},{title:"Legacy system modernisation",desc:"Cloud-native re-architecture of legacy applications. Preserve institutional knowledge while eliminating technical debt."},{title:"Long-term support SLA",desc:"We do not hand off after go-live. The team that built the system maintains it under a long-term support SLA. Same specialists, same code knowledge."}],whyUs:[{title:"SA-regulatory context, no briefing required",desc:"MFMA, POPIA, SETA, mSCOA: we understand these without being briefed. No time wasted bringing us up to speed. The context is already in the room."},{title:"The team that built EDVantage and FiscalFocus",desc:"Commercially deployed SA-specific products, live in production environments. Engineering depth you can see in use."},{title:"Supported after go-live",desc:"The same specialists who built the system support it for the long term. That continuity is contractually committed."},{title:"Microsoft Digital App Innovation Partner",desc:"Recognised expertise across Azure, Microsoft 365, Power Platform, DevOps and low-code application development."}],quote:{quote:un[1].quote,name:un[1].name,role:un[1].role,img:un[1].img},campaignPath:"/campaign/software-development",microsoftBadge:!0};function e2e(){return u.jsx(SS,{config:Z1e})}const t2e=["All","Financial Services","Higher & Basic Education","Mining and Industry","Cross-sector"],n2e=["All types","Article","Whitepaper"],r2e={"Managed IT":"bg-azure/10 text-azure",Network:"bg-midnight/10 text-midnight",Cybersecurity:"bg-red-50 text-red-600","Software & Automation":"bg-indigo-50 text-indigo-600",Compliance:"bg-amber-50 text-amber-700"},ky=[...ob.map(e=>({...e,type:"article"})),...dj],i2e=["sarb-cyber-resilience-guide","edvantage-seta-whitepaper","ot-it-convergence-mining"];function UX({type:e}){const t=Xf[e]||Xf.article;return u.jsxs("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-bold px-2.5 py-1 rounded-full ${t.color}`,children:[u.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${t.dot}`}),t.label]})}function a2e({item:e,index:t}){const n=`/insights/${e.id}`,r=e.author&&Qm[e.author]||Hm;return u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.06},children:u.jsxs(Ft,{to:n,className:"group flex flex-col h-full bg-white rounded-2xl border border-slate/10 hover:shadow-xl hover:shadow-azure/8 hover:border-azure/20 transition-all duration-300 overflow-hidden",children:[e.cover&&u.jsx("div",{className:"h-44 overflow-hidden bg-cloud flex-shrink-0",children:u.jsx("img",{src:e.cover,alt:"",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),u.jsxs("div",{className:"p-6 flex flex-col flex-1",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3 flex-wrap",children:[u.jsx(UX,{type:e.type}),u.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-full ${r2e[e.tag]||"bg-cloud text-slate"}`,children:e.tag})]}),u.jsx("h3",{className:"text-sm font-heading font-extrabold text-midnight leading-snug group-hover:text-azure transition-colors flex-1",children:e.title}),u.jsx("p",{className:"text-xs text-slate mt-2.5 leading-relaxed line-clamp-2",children:e.excerpt}),u.jsxs("div",{className:"flex items-center justify-between mt-5 pt-4 border-t border-slate/8",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"w-6 h-6 rounded-full bg-azure/10 flex items-center justify-center flex-shrink-0",children:u.jsx("span",{className:"text-[10px] font-heading font-extrabold text-azure",children:r.name.charAt(0)})}),u.jsx("span",{className:"text-xs text-midnight/60 font-semibold",children:r.name}),e.readTime&&u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"text-xs text-slate/30",children:"·"}),u.jsxs("span",{className:"flex items-center gap-1 text-xs text-slate/50",children:[u.jsx(bs,{className:"w-3 h-3"}),e.readTime]})]}),e.pages&&u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"text-xs text-slate/30",children:"·"}),u.jsx("span",{className:"text-xs text-slate/50",children:e.pages})]})]}),u.jsxs("span",{className:"flex items-center gap-1 text-xs font-bold text-azure group-hover:gap-2 transition-all flex-shrink-0",children:[e.type==="whitepaper"?"Download":"Read"," ",u.
1318jsx(_n,{className:"w-3 h-3"})]})]})]})]})})}function o2e(){const[e,t]=_.useState("All"),[n,r]=_.useState("All types"),[i,a]=_.useState(""),o=ky.filter(c=>i2e.includes(c.id)),s=ky.filter(c=>{var m;const d=e==="All"||c.vertical===e,A=n==="All types"||((m=Xf[c.type])==null?void 0:m.label)===n,h=!i||c.title.toLowerCase().includes(i.toLowerCase())||c.excerpt.toLowerCase().includes(i.toLowerCase());return d&&A&&h}),l=[{icon:o3,value:ob.length,label:"Articles"},{icon:K0,value:dj.length,label:"Whitepapers"}];return u.jsxs(u.Fragment,{children:[u.jsxs("section",{className:"relative pt-32 pb-16 lg:pt-44 lg:pb-24 overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:Rt.officeLight,alt:"",className:"w-full h-full object-cover opacity-20"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-cloud to-white"})]}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-end lg:justify-between gap-10",children:[u.jsx(dr,{label:"Resource Hub",title:"The thinking we bring to the table before you are a client.",description:"Articles, whitepapers and case studies written by the specialists who do the work, aimed squarely at the decisions your sector is facing this year."}),u.jsx("div",{className:"flex gap-8 flex-shrink-0",children:l.map(c=>{const d=c.icon;return u.jsxs("div",{className:"text-center",children:[u.jsx(d,{className:"w-5 h-5 text-azure mx-auto mb-1"}),u.jsx("div",{className:"text-2xl font-heading font-extrabold text-midnight",children:c.value}),u.jsx("div",{className:"text-xs text-slate uppercase tracking-wider",children:c.label})]},c.label)})})]}),u.jsx(_e.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{delay:.5},className:"mt-8 flex flex-wrap gap-3",children:["SARB Compliance Q2","SETA Deadline 30 Apr","Mining Charter 2026","POPIA Enforcement","AI Readiness SA"].map(c=>u.jsx("span",{className:"text-xs font-bold text-azure border border-azure/25 rounded-full px-3 py-1.5 bg-azure/5",children:c},c))})]})]}),u.jsx("section",{className:"py-10 bg-white border-b border-slate/8",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs(Ft,{to:"/insights/case-studies",className:"group flex flex-col md:flex-row md:items-center justify-between gap-5 p-7 rounded-2xl bg-gradient-to-br from-midnight to-[#00335c] hover:shadow-xl hover:shadow-midnight/20 transition-all",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-widest text-sky mb-2 block",children:"Insights · Client work"}),u.jsx("h3",{className:"text-xl font-heading font-bold text-white",children:"Case Studies: the work our clients would vouch for."}),u.jsx("p",{className:"text-sm text-white/60 mt-2",children:"What partnership looked like when the deadline was real and the outcome had to hold up afterwards."})]}),u.jsxs("span",{className:"inline-flex items-center gap-2 text-sm font-bold text-sky group-hover:gap-3 transition-all flex-shrink-0",children:["Browse case studies ",u.jsx(_n,{className:"w-4 h-4"})]})]})})}),u.jsx("section",{className:"py-12 lg:py-16 bg-white border-b border-slate/8",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-slate/50 mb-6",children:"Featured resources"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:o.map((c,d)=>u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:d*.1},children:u.jsxs(Ft,{to:`/insights/${c.id}`,className:"group relative flex flex-col h-full rounded-2xl overflow-hidden shadow-lg hover:shadow-2xl hover:shadow-azure/10 transition-all duration-300 min-h-[220px]",children:[u.jsx("img",{src:c.cover,alt:"",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-midnight via-midnight/70 to-midnight/20"}),u.jsxs("div",{className:"relative flex flex-col justify-end h-full p-6",children:[u.jsx("div",{className:"flex gap-2 mb-3",children:u.jsx(UX,{type:c.type})}),u.jsx("h3",{className:"text-sm font-heading font-extrabold text-white leading-snug",children:c.title}),u.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-bold text-sky mt-3 group-hover:gap-2 transition-all",children:[c.type==="whitepaper"?"Download":"Read"," ",u.
1318jsx(_n,{className:"w-3 h-3"})]})]})]})},c.id))})]})}),u.jsx("section",{className:"bg-white border-b border-slate/10 sticky top-[72px] z-30",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8 py-3",children:u.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 items-start sm:items-center",children:[u.jsxs("div",{className:"relative flex-shrink-0 w-full sm:w-56",children:[u.jsx($L,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-slate/40"}),u.jsx("input",{value:i,onChange:c=>a(c.target.value),placeholder:"Search resources…",className:"w-full pl-8 pr-3 py-2 text-sm rounded-full border border-slate/15 bg-cloud/50 focus:outline-none focus:border-azure/40"})]}),u.jsx("div",{className:"flex gap-1 overflow-x-auto flex-1",children:t2e.map(c=>u.jsx("button",{onClick:()=>t(c),className:`flex-shrink-0 px-3.5 py-1.5 rounded-full text-xs font-semibold transition-all ${e===c?"bg-azure text-white":"text-slate hover:bg-cloud"}`,children:c},c))}),u.jsx("div",{className:"flex gap-1 flex-shrink-0",children:n2e.map(c=>u.jsx("button",{onClick:()=>r(c),className:`flex-shrink-0 px-3 py-1.5 rounded-full text-xs font-semibold transition-all border ${n===c?"bg-midnight text-white border-midnight":"text-slate border-slate/15 hover:bg-cloud"}`,children:c},c))})]})})}),u.jsx("section",{className:"py-16 lg:py-24 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:s.length===0?u.jsxs("div",{className:"text-center py-20 text-slate/40",children:[u.jsx($L,{className:"w-10 h-10 mx-auto mb-4 opacity-30"}),u.jsx("p",{className:"font-semibold",children:"No resources match your filters."})]}):u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-xs text-slate/50 mb-6 uppercase tracking-wider font-semibold",children:[s.length," resource",s.length!==1?"s":""]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:s.map((c,d)=>u.jsx(a2e,{item:c,index:d},c.id))})]})})}),u.jsx("section",{className:"py-14 lg:py-20 bg-cloud border-t border-slate/8",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Browse by sector",title:"Resources for your sector.",align:"center"}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5 mt-10",children:[{vertical:"Financial Services",path:"/industries/financial-services",desc:"SARB, FSCA, POPIA and branch network compliance for banks and insurers.",count:ky.filter(c=>c.vertical==="Financial Services").length},{vertical:"Higher & Basic Education",path:"/industries/higher-education",desc:"SETA evidence, EDVantage, campus cybersecurity and managed IT for universities, TVET colleges and schools.",count:ky.filter(c=>c.vertical==="Higher & Basic Education").length},{vertical:"Mining and Industry",path:"/industries/mining",desc:"OT/IT convergence, remote connectivity, RealWear and Mining Charter compliance.",count:ky.filter(c=>c.vertical==="Mining and Industry").length}].map((c,d)=>u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:d*.1},children:u.jsxs(Ft,{to:c.path,className:"group flex flex-col p-7 bg-white rounded-2xl border border-slate/10 hover:border-azure/25 hover:shadow-lg transition-all h-full",children:[u.jsxs("div",{className:"flex items-center justify-between mb-3",children:[u.jsx("span",{className:"text-xs font-bold text-azure uppercase tracking-wider",children:c.vertical}),u.jsxs("span",{className:"text-xs text-slate/50 bg-cloud px-2 py-0.5 rounded-full",children:[c.count," resources"]})]}),u.jsx("p",{className:"text-sm text-slate leading-relaxed flex-1",children:c.desc}),u.jsxs("span",{className:"mt-5 inline-flex items-center gap-1 text-xs font-bold text-azure group-hover:gap-2 transition-all",children:["View sector page ",u.jsx(_n,{className:"w-3 h-3"})]})]})},c.vertical))})]})}),u.jsx(ec,{heading:"Find out where you actually stand.",sub:"Five short assessments that give you a clear read on your current capability, with no obligation and no sales follow-up you did not ask for.",cta:"Take a diagnostic",href:"/diagnostics",img:Rt.abstractGlass})]})}function s2e(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const l2e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,c2e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,u2e={};function WM(e,t){return(u2e.jsx?c2e:l2e).test(e)}const d2e=/[ \t\n\f\r]/g;function A2e(e){return typeof e=="object"?e.type==="text"?KM(e.value):!1:KM(e)}function KM(e){return e.replace(d2e,"")===""}class cb{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}cb.prototype.normal={};cb.prototype.property={};cb.prototype.space=void 0;function RX(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new cb(n,r,t)}function F_(e){return e.toLowerCase()}class Ho{constructor(t,n){this.attribute=n,this.property=t}}Ho.prototype.attribute="";Ho.prototype.booleanish=!1;Ho.prototype.boolean=!1;Ho.prototype.commaOrSpaceSeparated=!1;Ho.prototype.commaSeparated=!1;Ho.prototype.defined=!1;Ho.prototype.mustUseProperty=!1;Ho.prototype.number=!1;Ho.prototype.overloadedBoolean=!1;Ho.prototype.property="";Ho.prototype.spaceSeparated=!1;Ho.prototype.space=void 0;let f2e=0;const vn=qh(),ji=qh(),L_=qh(),nt=qh(),wr=qh(),mm=qh(),cs=qh();function qh(){return 2**++f2e}const D_=Object.freeze(Object.defineProperty({__proto__:null,boolean:vn,booleanish:ji,commaOrSpaceSeparated:cs,commaSeparated:mm,number:nt,overloadedBoolean:L_,spaceSeparated:wr},Symbol.toStringTag,{value:"Module"})),mC=Object.keys(D_);class Cj extends Ho{constructor(t,n,r,i){let a=-1;if(super(t,n),GM(this,"space",i),typeof r=="number")for(;++a<mC.length;){const o=mC[a];GM(this,mC[a],(r&D_[o])===D_[o])}}}Cj.prototype.defined=!0;function GM(e,t,n){n&&(e[t]=n)}function Ig(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Cj(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[F_(r)]=r,n[F_(a.attribute)]=r}return new cb(t,n,e.space)}const QX=Ig({properties:{ariaActiveDescendant:null,ariaAtomic:ji,ariaAutoComplete:null,ariaBusy:ji,ariaChecked:ji,ariaColCount:nt,ariaColIndex:nt,ariaColSpan:nt,ariaControl
vendor: 5,436 bytes, line 1318
1318s:wr,ariaCurrent:null,ariaDescribedBy:wr,ariaDetails:null,ariaDisabled:ji,ariaDropEffect:wr,ariaErrorMessage:null,ariaExpanded:ji,ariaFlowTo:wr,ariaGrabbed:ji,ariaHasPopup:null,ariaHidden:ji,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:wr,ariaLevel:nt,ariaLive:null,ariaModal:ji,ariaMultiLine:ji,ariaMultiSelectable:ji,ariaOrientation:null,ariaOwns:wr,ariaPlaceholder:null,ariaPosInSet:nt,ariaPressed:ji,ariaReadOnly:ji,ariaRelevant:null,ariaRequired:ji,ariaRoleDescription:wr,ariaRowCount:nt,ariaRowIndex:nt,ariaRowSpan:nt,ariaSelected:ji,ariaSetSize:nt,ariaSort:null,ariaValueMax:nt,ariaValueMin:nt,ariaValueNow:nt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function HX(e,t){return t in e?e[t]:t}function $X(e,t){return HX(e,t.toLowerCase())}const h2e=Ig({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mm,acceptCharset:wr,accessKey:wr,action:null,allow:null,allowFullScreen:vn,allowPaymentRequest:vn,allowUserMedia:vn,alt:null,as:null,async:vn,autoCapitalize:null,autoComplete:wr,autoFocus:vn,autoPlay:vn,blocking:wr,capture:null,charSet:null,checked:vn,cite:null,className:wr,cols:nt,colSpan:null,content:null,contentEditable:ji,controls:vn,controlsList:wr,coords:nt|mm,crossOrigin:null,data:null,dateTime:null,decoding:null,default:vn,defer:vn,dir:null,dirName:null,disabled:vn,download:L_,draggable:ji,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:vn,formTarget:null,headers:wr,height:nt,hidden:L_,high:nt,href:null,hrefLang:null,htmlFor:wr,httpEquiv:wr,id:null,imageSizes:null,imageSrcSet:null,inert:vn,inputMode:null,integrity:null,is:null,isMap:vn,itemId:null,itemProp:wr,itemRef:wr,itemScope:vn,itemType:wr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:vn,low:nt,manifest:null,max:null,maxLength:nt,media:null,method:null,min:null,minLength:nt,multiple:vn,muted:vn,name:null,nonce:null,noModule:vn,noValidate:vn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:vn,optimum:nt,pattern:null,ping:wr,placeholder:null,playsInline:vn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:vn,referrerPolicy:null,rel:wr,required:vn,reversed:vn,rows:nt,rowSpan:nt,sandbox:wr,scope:null,scoped:vn,seamless:vn,selected:vn,shadowRootClonable:vn,shadowRootDelegatesFocus:vn,shadowRootMode:null,shape:null,size:nt,sizes:null,slot:null,span:nt,spellCheck:ji,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nt,step:null,style:null,tabIndex:nt,target:null,title:null,translate:null,type:null,typeMustMatch:vn,useMap:null,value:ji,width:nt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:wr,axis:null,background:null,bgColor:null,border:nt,borderColor:null,bottomMargin:nt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:vn,declare:vn,event:null,face:null,frame:null,frameBorder:null,hSpace:nt,leftMargin:nt,link:null,longDesc:null,lowSrc:null,marginHeight:nt,marginWidth:nt,noResize:vn,noHref:vn,noShade:vn,noWrap:vn,object:null,profile:null,prompt:null,rev:null,rightMargin:nt,rules:null,scheme:null,scrolling:ji,standby:null,summary:null,text:null,topMargin:nt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:vn,disableRemotePlayback:vn,prefix:null,property:null,results:nt,security:null,unselectable:null},space:"html",transform:$X}),p2e=Ig({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
1318dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:cs,accentHeight:nt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nt,amplitude:nt,arabicForm:null,ascent:nt,attributeName:null,attributeType:null,azimuth:nt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nt,by:null,calcMode:null,capHeight:nt,className:wr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
1318dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:nt,diffuseConstant:nt,direction:null,display:null,dur:null,divisor:nt,dominantBaseline:null,download:vn,dx:null,dy:null,edgeMode:null,editable:null,elevation:nt,enableBackground:null,end:null,event:null,exponent:nt,externalResourcesRequired:null,fill:null,fillOpacity:nt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:mm,g2:mm,glyphName:mm,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nt,horizOriginX:nt,horizOriginY:nt,id:null,ideographic:nt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nt,k:nt,k1:nt,k2:nt,k3:nt,k4:nt,kernelMatrix:cs,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:nt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nt,overlineThickness:nt,paintOrder:null,panose1:null,path:null,pathLength:nt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:wr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nt,pointsAtY:nt,pointsAtZ:nt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cs,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cs,rev:cs,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cs,requiredFeatures:cs,requiredFonts:cs,requiredFormats:cs,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:nt,specularExponent:nt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nt,strikethroughThickness:nt,string:null,stroke:null,strokeDashArray:cs,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nt,strokeOpacity:nt,strokeWidth:null,style:null,surfaceScale:nt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cs,tabIndex:nt,tableValues:null,target:null,targetX:nt,targetY:nt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cs,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nt,underlineThickness:nt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nt,values:null,vAlphabetic:nt,vMathematical:nt,vectorEffect:null,vHanging:nt,vIdeographic:nt,version:null,vertAdvY:nt,vertOriginX:nt,vertOriginY:nt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:HX}),qX=Ig({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,119 bytes, lines 1318-1319
1318,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),zX=Ig({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$X}),VX=Ig({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),m2e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},g2e=/[A-Z]/g,YM=/-[a-z]/g,y2e=/^data[-\w.:]+$/i;function v2e(e,t){const n=F_(t);let r=t,i=Ho;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&y2e.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(YM,w2e);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!YM.test(a)){let o=a.replace(g2e,b2e);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Cj}return new i(r,t)}function b2e(e){return"-"+e.toLowerCase()}function w2e(e){return e.charAt(1).toUpperCase()}const x2e=RX([QX,h2e,qX,zX,VX],"html"),kj=RX([QX,p2e,qX,zX,VX],"svg");function S2e(e){return e.join(" ").trim()}var Fp={},gC,XM;function B2e(){if(XM)return gC;XM=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
1319`,c="/",d="*",A="",h="comment",m="declaration";function b(y,v){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];v=v||{};var x=1,B=1;function C(q){var W=q.match(t);W&&(x+=W.length);var ee=q.lastIndexOf(l);B=~ee?q.length-ee:B+q.length}function E(){var q={line:x,column:B};return function(W){return W.position=new T(q),L(),W}}function T(q){this.start=q,this.end={line:x,column:B},this.source=v.source}T.prototype.content=y;function j(q){var W=new Error(v.source+":"+x+":"+B+": "+q);if(W.reason=q,W.filename=v.source,W.line=x,W.column=B,W.source=y,!v.silent)throw W}function O(q){var W=q.exec(y);if(W){var ee=W[0];return C(ee),y=y.slice(ee.length),W}}function L(){O(n)}function z(q){var W;for(q=q||[];W=F();)W!==!1&&q.push(W);return q}function F(){var q=E();if(!(c!=y.charAt(0)||d!=y.charAt(1))){for(var W=2;A!=y.charAt(W)&&(d!=y.charAt(W)||c!=y.charAt(W+1));)++W;if(W+=2,A===y.charAt(W-1))return j("End of comment missing");var ee=y.slice(2,W-2);return B+=2,C(ee),y=y.slice(W),B+=2,q({type:h,comment:ee})}}function M(){var q=E(),W=O(r);if(W){if(F(),!O(i))return j("property missing ':'");var ee=O(a),ne=q({type:m,property:g(W[0].replace(e,A)),value:ee?g(ee[0].replace(e,A)):A});return O(o),ne}}function V(){var q=[];z(q);for(var W;W=M();)W!==!1&&(q.push(W),z(q));return q}return L(),V()}function g(y){return y?y.replace(s,A):A}return gC=b,gC}var JM;function C2e(){if(JM)return Fp;JM=1;var e=Fp&&Fp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.default=n;const t=e(B2e());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const o=(0,t.default)(r),s=typeof i=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:d}=l;s?i(c,d,l):d&&(a=a||{},a[c]=d)}),a}return Fp}var Ey={},ZM;function k2e(){if(ZM)return Ey;ZM=1,Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(c){return!c||n.test(c)||e.test(c)},o=function(c,d){return d.toUpperCase()},s=function(c,d){return"".concat(d,"-")},l=function(c,d){return d===void 0&&(d={}),a(c)?c:(c=c.toLowerCase(),d.reactCompat?c=c.replace(i,s):c=c.replace(r,s),c.replace(t,o))};return Ey.camelCase=l,Ey}var Ny,eU;function E2e(){if(eU)return Ny;eU=1;var e=Ny&&Ny.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(C2e()),n=k2e();function r(i,a){var o={};
vendor: 2,744 bytes, line 1319
1319return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(o[(0,n.camelCase)(s,a)]=l)}),o}return r.default=r,Ny=r,Ny}var N2e=E2e();const T2e=nr(N2e),WX=KX("end"),Ej=KX("start");function KX(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function _2e(e){const t=Ej(e),n=WX(e);if(t&&n)return{start:t,end:n}}function vv(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tU(e.position):"start"in e||"end"in e?tU(e):"line"in e||"column"in e?M_(e):""}function M_(e){return nU(e&&e.line)+":"+nU(e&&e.column)}function tU(e){return M_(e&&e.start)+"-"+M_(e&&e.end)}function nU(e){return e&&typeof e=="number"?e:1}class to extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=vv(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}to.prototype.file="";to.prototype.name="";to.prototype.reason="";to.prototype.message="";to.prototype.stack="";to.prototype.column=void 0;to.prototype.line=void 0;to.prototype.ancestors=void 0;to.prototype.cause=void 0;to.prototype.fatal=void 0;to.prototype.place=void 0;to.prototype.ruleId=void 0;to.prototype.source=void 0;const Nj={}.hasOwnProperty,I2e=new Map,P2e=/[A-Z]/g,j2e=new Set(["table","tbody","thead","tfoot","tr"]),O2e=new Set(["td","th"]),GX="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function F2e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=$2e(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,347 bytes, line 1319
1319if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=H2e(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?kj:x2e,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=YX(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function YX(e,t,n){if(t.type==="element")return L2e(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return D2e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return U2e(e,t,n);if(t.type==="mdxjsEsm")return M2e(e,t);if(t.type==="root")return R2e(e,t,n);if(t.type==="text")return Q2e(e,t)}function L2e(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=kj,e.schema=i),e.ancestors.push(t);const a=JX(e,t.tagName,!1),o=q2e(e,t);let s=_j(e,t);return j2e.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!A2e(l):!0})),XX(e,o,a,t),Tj(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function D2e(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Yv(e,t.position)}function M2e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Yv(e,t.position)}function U2e(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=kj,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:JX(e,t.name,!0),o=z2e(e,t),s=_j(e,t);return XX(e,o,a,t),Tj(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function R2e(e,t,n){const r={};return Tj(r,_j(e,t)),e.create(t,e.Fragment,r,n)}function Q2e(e,t){return t.value}function XX(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Tj(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function H2e(e,t,n){return r;function r(i,a,o,s){const c=Array.isArray(o.children)?n:t;return s?c(a,o,s):c(a,o)}}function $2e(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=Ej(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function q2e(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Nj.call(t.properties,i)){const a=V2e(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&O2e.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function z2e(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Yv(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else Yv(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function _j(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:I2e;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const c=i.get(l)||0;o=l+"-"+c,i.set(l,c+1)}}const s=YX(e,a,o);s!==void 0&&n.push(s)}return n}function V2e(e,t,n){const r=v2e(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?s2e(n):S2e(n)),r.property==="style"){let i=typeof n=="object"?n:W2e(e,String(n));return e.stylePropertyNameCase==="css"&&(i=K2e(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?m2e[r.property]||r.property:r.attribute,n]}}function W2e(e,t){try{return T2e(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new to("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=GX+"#cannot-parse-style-attribute",i}}function JX(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const s=WM(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}r=o}else r=WM(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Nj.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Yv(e)}function Yv(e,t){const n=new to("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=GX+"#cannot-handle-mdx-estrees-without-createevaluater",n}function K2e(e){const t={};let n;for(n in e)Nj.call(e,n)&&(t[G2e(n)]=e[n]);return t}function G2e(e){let t=e.replace(P2e,Y2e);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Y2e(e){return"-"+e.toLowerCase()}const yC={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},X2e={};function J2e(e,t){const n=X2e,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ZX(e,r,i)}function ZX(e,t,n){if(Z2e(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return rU(e.children,t,n)}return Array.isArray(e)?rU(e,t,n):""}function rU(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=ZX(e[i],t,n);return r.join("")}function Z2e(e){return!!(e&&typeof e=="object")}const iU=document.createElement("i");function Ij(e){const t="&"+e+";";iU.innerHTML=t;const n=iU.textContent;
vendor: 10,925 bytes, line 1319
1319return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Xc(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Zs(e,t){return e.length>0?(Xc(e,e.length,0,t),e):t}const aU={}.hasOwnProperty;function eSe(e){const t={};let n=-1;for(;++n<e.length;)tSe(t,e[n]);return t}function tSe(e,t){let n;for(n in t){const i=(aU.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){aU.call(i,o)||(i[o]=[]);const s=a[o];nSe(i[o],Array.isArray(s)?s:s?[s]:[])}}}function nSe(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Xc(e,0,0,r)}function eJ(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function gm(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lc=YA(/[A-Za-z]/),gs=YA(/[\dA-Za-z]/),rSe=YA(/[#-'*+\--9=?A-Z^-~]/);function U_(e){return e!==null&&(e<32||e===127)}const R_=YA(/\d/),iSe=YA(/[\dA-Fa-f]/),aSe=YA(/[!-/:-@[-`{-~]/);function sn(e){return e!==null&&e<-2}function Ro(e){return e!==null&&(e<0||e===32)}function Vn(e){return e===-2||e===-1||e===32}const oSe=YA(new RegExp("\\p{P}|\\p{S}","u")),sSe=YA(/\s/);function YA(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Pg(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&gs(e.charCodeAt(n+1))&&gs(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Br(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return Vn(l)?(e.enter(n),s(l)):t(l)}function s(l){return Vn(l)&&a++<i?(e.consume(l),s):(e.exit(n),t(l))}}const lSe={tokenize:cSe};function cSe(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Br(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return sn(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const uSe={tokenize:dSe},oU={tokenize:ASe};function dSe(e){const t=this,n=[];let r=0,i,a,o;return s;function s(B){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,l,c)(B)}return c(B)}function l(B){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const C=t.events.length;let E=C,T;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){T=t.events[E][1].end;break}v(r);let j=C;for(;j<t.events.length;)t.events[j][1].end={...T},j++;return Xc(t.events,E+1,0,t.events.slice(C)),t.events.length=j,c(B)}return s(B)}function c(B){if(r===n.length){if(!i)return h(B);if(i.currentConstruct&&i.currentConstruct.concrete)return b(B);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(oU,d,A)(B)}function d(B){return i&&x(),v(r),h(B)}function A(B){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,b(B)}function h(B){return t.containerState={},e.attempt(oU,m,b)(B)}function m(B){return r++,n.push([t.currentConstruct,t.containerState]),h(B)}function b(B){if(B===null){i&&x(),v(0),e.consume(B);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),g(B)}function g(B){if(B===null){y(e.exit("chunkFlow"),!0),v(0),e.consume(B);return}return sn(B)?(e.consume(B),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(B),g)}function y(B,C){const E=t.sliceStream(B);if(C&&E.push(null),B.previous=a,a&&(a.next=B),a=B,i.defineSkip(B.start),i.write(E),t.parser.lazy[B.start.line]){let T=i.events.length;for(;T--;)if(i.events[T][1].start.offset<o&&(!i.events[T][1].end||i.events[T][1].end.offset>o))return;const j=t.events.length;let O=j,L,z;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(L){z=t.events[O][1].end;break}L=!0}for(v(r),T=j;T<t.events.length;)t.events[T][1].end={...z},T++;Xc(t.events,O+1,0,t.events.slice(j)),t.events.length=T}}function v(B){let C=n.length;for(;C-- >B;){const E=n[C];t.containerState=E[1],E[0].exit.call(t,e)}n.length=B}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function ASe(e,t,n){return Br(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function sU(e){if(e===null||Ro(e)||sSe(e))return 1;if(oSe(e))return 2}function Pj(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Q_={name:"attention",resolveAll:fSe,tokenize:hSe};function fSe(e,t){let n=-1,r,i,a,o,s,l,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const A={...e[r][1].end},h={...e[n][1].start};lU(A,-l),lU(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:A,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Zs(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Zs(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Zs(c,Pj(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Zs(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=Zs(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Xc(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function hSe(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=sU(r);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const c=e.exit("attentionSequence"),d=sU(l),A=!d||d===2&&i||n.includes(l),h=!i||i===2&&d||n.includes(r);return c._open=!!(a===42?A:A&&(i||!h)),c._close=!!(a===42?h:h&&(d||!A)),t(l)}}function lU(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const pSe={name:"autolink",tokenize:mSe};function mSe(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return Lc(m)?(e.consume(m),o):m===64?n(m):c(m)}function o(m){return m===43||m===45||m===46||gs(m)?(r=1,s(m)):c(m)}function s(m){return m===58?(e.consume(m),r=0,l):(m===43||m===45||m===46||gs(m))&&r++<32?(e.consume(m),s):(r=0,c(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||U_(m)?n(m):(e.consume(m),l)}function c(m){return m===64?(e.consume(m),d):rSe(m)?(e.consume(m),c):n(m)}function d(m){return gs(m)?A(m):n(m)}function A(m){return m===46?(e.consume(m),r=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):h(m)}function h(m){if((m===45||gs(m))&&r++<63){const b=m===45?h:A;return e.consume(m),b}return n(m)}}const BS={partial:!0,tokenize:gSe};function gSe(e,t,n){return r;function r(a){return Vn(a)?Br(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||sn(a)?t(a):n(a)}}const tJ={continuation:{tokenize:vSe},exit:bSe,name:"blockQuote",tokenize:ySe};function ySe(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return Vn(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function vSe(e,t,n){const r=this;return i;function i(o){return Vn(o)?Br(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(tJ,t,n)(o)}}function bSe(e){e.exit("blockQuote")}const nJ={name:"characterEscape",tokenize:wSe};function wSe(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return aSe(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const rJ={name:"characterReference",tokenize:xSe};function xSe(e,t,n){const r=this;let i=0,a,o;return s;function s(A){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(A),e.exit("characterReferenceMarker"),l}function l(A){return A===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(A),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=gs,d(A))}function c(A){return A===88||A===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(A),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=iSe,d):(e.enter("characterReferenceValue"),a=7,o=R_,d(A))}function d(A){if(A===59&&i){const h=e.exit("characterReferenceValue");return o===gs&&!Ij(r.sliceSerialize(h))?n(A):(e.enter("characterReferenceMarker"),e.consume(A),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(A)&&i++<a?(e.consume(A),d):n(A)}}const cU={partial:!0,tokenize:BSe},uU={concrete:!0,name:"codeFenced",tokenize:SSe};function SSe(e,t,n){const r=this,i={partial:!0,tokenize:E};let a=0,o=0,s;return l;function l(T){return c(T)}function c(T){const j=r.events[r.events.length-1];return a=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,s=T,e.enter("co
1319deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(T)}function d(T){return T===s?(o++,e.consume(T),d):o<3?n(T):(e.exit("codeFencedFenceSequence"),Vn(T)?Br(e,A,"whitespace")(T):A(T))}function A(T){return T===null||sn(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(cU,g,C)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===null||sn(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),A(T)):Vn(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Br(e,m,"whitespace")(T)):T===96&&T===s?n(T):(e.consume(T),h)}function m(T){return T===null||sn(T)?A(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===null||sn(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),A(T)):T===96&&T===s?n(T):(e.consume(T),b)}function g(T){return e.attempt(i,C,y)(T)}function y(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),v}function v(T){return a>0&&Vn(T)?Br(e,x,"linePrefix",a+1)(T):x(T)}function x(T){return T===null||sn(T)?e.check(cU,g,C)(T):(e.enter("codeFlowValue"),B(T))}function B(T){return T===null||sn(T)?(e.exit("codeFlowValue"),x(T)):(e.consume(T),B)}function C(T){return e.exit("codeFenced"),t(T)}function E(T,j,O){let L=0;return z;function z(W){return T.enter("lineEnding"),T.consume(W),T.exit("lineEnding"),F}function F(W){return T.enter("codeFencedFence"),Vn(W)?Br(T,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):M(W)}function M(W){return W===s?(T.enter("codeFencedFenceSequence"),V(W)):O(W)}function V(W){return W===s?(L++,T.consume(W),V):L>=o?(T.exit("codeFencedFenceSequence"),Vn(W)?Br(T,q,"whitespace")(W):q(W)):O(W)}function q(W){return W===null||sn(W)?(T.exit("codeFencedFence"),j(W)):O(W)}}}function BSe(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const vC={name:"codeIndented",tokenize:kSe},CSe={partial:!0,tokenize:ESe};function kSe(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Br(e,a,"linePrefix",5)(c)}function a(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):sn(c)?e.attempt(CSe,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||sn(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function ESe(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):sn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Br(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):sn(o)?i(o):n(o)}}const NSe={name:"codeText",previous:_Se,resolve:TSe,tokenize:ISe};function TSe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function _Se(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ISe(e,t,n){let r=0,i,a;return o;function o(A){return e.enter("codeText"),e.enter("codeTextSequence"),s(A)}function s(A){return A===96?(e.consume(A),r++,s):(e.exit("codeTextSequence"),l(A))}function l(A){return A===null?n(A):A===32?(e.enter("space"),e.consume(A),e.exit("space"),l):A===96?(a=e.enter("codeTextSequence"),i=0,d(A)):sn(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(A))}function c(A){return A===null||A===32||A===96||sn(A)?(e.exit("codeTextData"),l(A)):(e.consume(A),c)}function d(A){return A===96?(e.consume(A),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(A)):(a.type="codeTextData",c(A))}}
vendor: 5,296 bytes, line 1319
1319class PSe{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ty(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ty(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ty(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ty(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ty(this.left,n.reverse())}}}function Ty(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function iJ(e){const t={};let n=-1,r,i,a,o,s,l,c;const d=new PSe(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,jSe(d,n)),n=t[n],c=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=d.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},s=d.slice(i,n),s.unshift(r),d.splice(i,n-i+1,s))}}return Xc(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function jSe(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let d,A,h=-1,m=n,b=0,g=0;const y=[g];for(;m;){for(;e.get(++i)[1]!==m;);a.push(i),m._tokenizer||(d=r.sliceStream(m),m.next||d.push(null),A&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),A=m,m=m.next}for(m=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(g=h+1,y.push(g),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0):y.pop(),h=y.length;h--;){const v=s.slice(y[h],y[h+1]),x=a.pop();l.push([x,x+v.length-1]),e.splice(x,2,v)}for(l.reverse(),h=-1;++h<l.length;)c[b+l[h][0]]=b+l[h][1],b+=l[h][1]-l[h][0]-1;return c}const OSe={resolve:LSe,tokenize:DSe},FSe={partial:!0,tokenize:MSe};function LSe(e){return iJ(e),e}function DSe(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):sn(s)?e.check(FSe,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function MSe(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Br(e,a,"linePrefix")}function a(o){if(o===null||sn(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function aJ(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return A;function A(v){return v===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(v),e.exit(a),h):v===null||v===32||v===41||U_(v)?n(v):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(v))}function h(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===62?(e.exit("chunkString"),e.exit(s),h(v)):v===null||v===60||sn(v)?n(v):(e.consume(v),v===92?b:m)}function b(v){return v===60||v===62||v===92?(e.consume(v),m):m(v)}function g(v){return!d&&(v===null||v===41||Ro(v))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(v)):d<c&&v===40?(e.consume(v),d++,g):v
vendor: 20,570 bytes, line 1319
1319===41?(e.consume(v),d--,g):v===null||v===32||v===40||U_(v)?n(v):(e.consume(v),v===92?y:g)}function y(v){return v===40||v===41||v===92?(e.consume(v),g):g(v)}}function oJ(e,t,n,r,i,a){const o=this;let s=0,l;return c;function c(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(a),d}function d(m){return s>999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):sn(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),A(m))}function A(m){return m===null||m===91||m===93||sn(m)||s++>999?(e.exit("chunkString"),d(m)):(e.consume(m),l||(l=!Vn(m)),m===92?h:A)}function h(m){return m===91||m===92||m===93?(e.consume(m),s++,A):A(m)}}function sJ(e,t,n,r,i,a){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),c(h))}function c(h){return h===o?(e.exit(a),l(o)):h===null?n(h):sn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Br(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===o||h===null||sn(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?A:d)}function A(h){return h===o||h===92?(e.consume(h),d):d(h)}}function bv(e,t){let n;return r;function r(i){return sn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Vn(i)?Br(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const USe={name:"definition",tokenize:QSe},RSe={partial:!0,tokenize:HSe};function QSe(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),o(m)}function o(m){return oJ.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return i=gm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return Ro(m)?bv(e,c)(m):c(m)}function c(m){return aJ(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(RSe,A,A)(m)}function A(m){return Vn(m)?Br(e,h,"whitespace")(m):h(m)}function h(m){return m===null||sn(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function HSe(e,t,n){return r;function r(s){return Ro(s)?bv(e,i)(s):n(s)}function i(s){return sJ(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Vn(s)?Br(e,o,"whitespace")(s):o(s)}function o(s){return s===null||sn(s)?t(s):n(s)}}const $Se={name:"hardBreakEscape",tokenize:qSe};function qSe(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return sn(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const zSe={name:"headingAtx",resolve:VSe,tokenize:WSe};function VSe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Xc(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function WSe(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||Ro(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||sn(d)?(e.exit("atxHeading"),t(d)):Vn(d)?Br(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||Ro(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const KSe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],dU=["pre","script","style","textarea"],GSe={concrete:!0,name:"htmlFlow",resolveTo:JSe,tokenize:ZSe},YSe={partial:!0,tokenize:tBe},XSe={partial:!0,tokenize:eBe};function JSe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ZSe(e,t,n){const r=this;let i,a,o,s,l;return c;function c(R){return d(R)}function d(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),A}function A(R){return R===33?(e.consume(R),h):R===47?(e.consume(R),a=!0,g):R===63?(e.consume(R),i=3,r.interrupt?t:$):Lc(R)?(e.consume(R),o=String.fromCharCode(R),y):n(R)}function h(R){return R===45?(e.consume(R),i=2,m):R===91?(e.consume(R),i=5,s=0,b):Lc(R)?(e.consume(R),i=4,r.interrupt?t:$):n(R)}function m(R){return R===45?(e.consume(R),r.interrupt?t:$):n(R)}function b(R){const re="CDATA[";return R===re.charCodeAt(s++)?(e.consume(R),s===re.length?r.interrupt?t:M:b):n(R)}function g(R){return Lc(R)?(e.consume(R),o=String.fromCharCode(R),y):n(R)}function y(R){if(R===null||R===47||R===62||Ro(R)){const re=R===47,ce=o.toLowerCase();return!re&&!a&&dU.includes(ce)?(i=1,r.interrupt?t(R):M(R)):KSe.includes(o.toLowerCase())?(i=6,re?(e.consume(R),v):r.interrupt?t(R):M(R)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):a?x(R):B(R))}return R===45||gs(R)?(e.consume(R),o+=String.fromCharCode(R),y):n(R)}function v(R){return R===62?(e.consume(R),r.interrupt?t:M):n(R)}function x(R){return Vn(R)?(e.consume(R),x):z(R)}function B(R){return R===47?(e.consume(R),z):R===58||R===95||Lc(R)?(e.consume(R),C):Vn(R)?(e.consume(R),B):z(R)}function C(R){return R===45||R===46||R===58||R===95||gs(R)?(e.consume(R),C):E(R)}function E(R){return R===61?(e.consume(R),T):Vn(R)?(e.consume(R),E):B(R)}function T(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),l=R,j):Vn(R)?(e.consume(R),T):O(R)}function j(R){return R===l?(e.consume(R),l=null,L):R===null||sn(R)?n(R):(e.consume(R),j)}function O(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Ro(R)?E(R):(e.consume(R),O)}function L(R){return R===47||R===62||Vn(R)?B(R):n(R)}function z(R){return R===62?(e.consume(R),F):n(R)}function F(R){return R===null||sn(R)?M(R):Vn(R)?(e.consume(R),F):n(R)}function M(R){return R===45&&i===2?(e.consume(R),ee):R===60&&i===1?(e.consume(R),ne):R===62&&i===4?(e.consume(R),X):R===63&&i===3?(e.consume(R),$):R===93&&i===5?(e.consume(R),oe):sn(R)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(YSe,Q,V)(R)):R===null||sn(R)?(e.exit("htmlFlowData"),V(R)):(e.consume(R),M)}function V(R){return e.check(XSe,q,Q)(R)}function q(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),W}function W(R){return R===null||sn(R)?V(R):(e.enter("htmlFlowData"),M(R))}function ee(R){return R===45?(e.consume(R),$):M(R)}function ne(R){return R===47?(e.consume(R),o="",K):M(R)}function K(R){if(R===62){const re=o.toLowerCase();return dU.includes(re)?(e.consume(R),X):M(R)}return Lc(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),K):M(R)}function oe(R){return R===93?(e.consume(R),$):M(R)}function $(R){return R===62?(e.consume(R),X):R===45&&i===2?(e.consume(R),$):M(R)}function X(R){return R===null||sn(R)?(e.exit("htmlFlowData"),Q(R)):(e.consume(R),X)}function Q(R){return e.exit("htmlFlow"),t(R)}}function eBe(e,t,n){const r=this;return i;function i(o){return sn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function tBe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(BS,t,n)}}const nBe={name:"htmlText",tokenize:rBe};function rBe(e,t,n){const r=this;let i,a,o;return s;function s($){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume($),l}function l($){return $===33?(e.consume($),c):$===47?(e.consume($),E):$===63?(e.consume($),B):Lc($)?(e.consume($),O):n($)}function c($){return $===45?(e.consume($),d):$===91?(e.consume($),a=0,b):Lc($)?(e.consume($),x):n($)}function d($){return $===45?(e.consume($),m):n($)}function A($){return $===null?n($):$===45?(e.consume($),h):sn($)?(o=A,ne($)):(e.consume($),A)}function h($){return $===45?(e.consume($),m):A($)}function m($){return $===62?ee($):$===45?h($):A($)}function b($){const X="CDATA[";return $===X.charCodeAt(a++)?(e.consume($),a===X.length?g:b):n($)}function g($){return $===null?n($):$===93?(e.consume($),y):sn($)?(o=g,ne($)):(e.consume($),g)}function y($){return $===93?(e.consume($),v):g($)}function v($){return $===62?ee($):$===93?(e.consume($),v):g($)}function x($){return $===null||$===62?ee($):sn($)?(o=x,ne($)):(e.consume($),x)}function B($){return $===null?n($):$===63?(e.consume($),C):sn($)?(o=B,ne($)):(e.consume($),B)}function C($){return $===62?ee($):B($)}function E($){return Lc($)?(e.consume($),T):n($)}function T($){return $===45||gs($)?(e.consume($),T):j($)}function j($){return sn($)?(o=j,ne($)):Vn($)?(e.consume($),j):ee($)}function O($){return $===45||gs($)?(e.consume($),O):$===47||$===62||Ro($)?L($):n($)}function L($){return $===47?(e.consume($),ee):$===58||$===95||Lc($)?(e.consume($),z):sn($)?(o=L,ne($)):Vn($)?(e.consume($),L):ee($)}function z($){return $===45||$===46||$===58||$===95||gs($)?(e.consume($),z):F($)}function F($){return $===61?(e.consume($),M):sn($)?(o=F,ne($)):Vn($)?(e.consume($),F):L($)}function M($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),i=$,V):sn($)?(o=M,ne($)):Vn($)?(e.consume($),M):(e.consume($),q)}function V($){return $===i?(e.consume($),i=void 0,W):$===null?n($):sn($)?(o=V,ne($)):(e.consume($),V)}function q($){return $===null||$===34||$===39||$===60||$===61||$===96?n($):$===47||$===62||Ro($)?L($):(e.consume($),q)}function W($){return $===47||$===62||Ro($)?L($):n($)}function ee($){return $===62?(e.consume($),e.exit("htmlTextData"),e.exit("htmlText"),t):n($)}function ne($){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),K}function K($){return Vn($)?Br(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):oe($)}function oe($){return e.enter("htmlTextData"),o($)}}const jj={name:"labelEnd",resolveAll:sBe,resolveTo:lBe,tokenize:cBe},iBe={tokenize:uBe},aBe={tokenize:dBe},oBe={tokenize:ABe};function sBe(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Xc(e,0,e.length,n),e}function lBe(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=Zs(s,e.slice(a+1,a+r+3)),s=Zs(s,[["enter",d,t]]),s=Zs(s,Pj(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Zs(s,[["exit",d,t],e[o-2],e[o-1],["exit",c,t]]),s=Zs(s,e.slice(o+1)),s=Zs(s,[["exit",l,t]]),Xc(e,a,e.length,s),e}function cBe(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(h){return a?a._inactive?A(h):(o=r.parser.defined.includes(gm(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(iBe,d,o?d:A)(h):h===91?e.attempt(aBe,d,o?c:A)(h):o?d(h):A(h)}function c(h){return e.attempt(oBe,d,A)(h)}function d(h){return t(h)}function A(h){return a._balanced=!0,n(h)}}function uBe(e,t,n){return r;function r(A){return e.enter("resource"),e.enter("resourceMarker"),e.consume(A),e.exit("resourceMarker"),i}function i(A){return Ro(A)?bv(e,a)(A):a(A)}function a(A){return A===41?d(A):aJ(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(A)}function o(A){return Ro(A)?bv(e,l)(A):d(A)}function s(A){return n(A)}function l(A){return A===34||A===39||A===40?sJ(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(A):d(A)}function c(A){return Ro(A)?bv(e,d)(A):d(A)}function d(A){return A===41?(e.enter("resourceMarker"),e.consume(A),e.exit("resourceMarker"),e.exit("resource"),t):n(A)}}function dBe(e,t,n){const r=this;return i;function i(s){return oJ.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(gm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function ABe(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const fBe={name:"labelStartImage",resolveAll:jj.resolveAll,tokenize:hBe};function hBe(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const pBe={name:"labelStartLink",resolveAll:jj.resolveAll,tokenize:mBe};function mBe(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const bC={name:"lineEnding",tokenize:gBe};function gBe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Br(e,t,"linePrefix")}}const Lx={name:"thematicBreak",tokenize:yBe};function yBe(e,t,n){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||sn(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Vn(c)?Br(e,s,"whitespace")(c):s(c))}}const Fo={continuation:{tokenize:xBe},exit:BBe,name:"list",tokenize:wBe},vBe={partial:!0,tokenize:CBe},bBe={partial:!0,tokenize:SBe};function wBe(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(m){const b=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:R_(m)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Lx,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return R_(m)&&++o<10?(e.consume(m),l):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(BS,r.interrupt?n:d,e.attempt(vBe,h,A))}function d(m){return r.containerState.initialBlankLine=!0,a++,h(m)}function A(m){return Vn(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function xBe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(BS,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Br(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Vn(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(bBe,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Br(e,e.attempt(Fo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function SBe(e,t,n){const r=this;return Br(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function BBe(e){e.exit(this.containerState.type)}function CBe(e,t,n){const r=this;return Br(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!Vn(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const AU={name:"setextUnderline",resolveTo:kBe,tokenize:EBe};function kBe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function EBe(e,t,n){const r=this;let i;return a;function a(c){let d=r.events.length,A;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){A=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||A)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Vn(c)?Br(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||sn(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const NBe={tokenize:TBe};function TBe(e){const t=this,n=e.attempt(BS,r,e.attempt(this.parser.constructs.flowInitial,i,Br(e,e.attempt(this.parser.constructs.flow,i,e.attempt(OSe,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const _Be={resolveAll:cJ()},IBe=lJ("string"),PBe=lJ("text");function lJ(e){return{resolveAll:cJ(e==="text"?jBe:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(d){return c(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function c(d){if(d===null)return!0;const A=i[d];let h=-1;if(A)for(;++h<A.length;){const m=A[h];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function cJ(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function jBe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,s=0,l;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;
vendor: 2,510 bytes, line 1319
1319c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)l=!0,s++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const OBe={42:Fo,43:Fo,45:Fo,48:Fo,49:Fo,50:Fo,51:Fo,52:Fo,53:Fo,54:Fo,55:Fo,56:Fo,57:Fo,62:tJ},FBe={91:USe},LBe={[-2]:vC,[-1]:vC,32:vC},DBe={35:zSe,42:Lx,45:[AU,Lx],60:GSe,61:AU,95:Lx,96:uU,126:uU},MBe={38:rJ,92:nJ},UBe={[-5]:bC,[-4]:bC,[-3]:bC,33:fBe,38:rJ,42:Q_,60:[pSe,nBe],91:pBe,92:[$Se,nJ],93:jj,95:Q_,96:NSe},RBe={null:[Q_,_Be]},QBe={null:[42,95]},HBe={null:[]},$Be=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:QBe,contentInitial:FBe,disable:HBe,document:OBe,flow:DBe,flowInitial:LBe,insideSpan:RBe,string:MBe,text:UBe},Symbol.toStringTag,{value:"Module"}));function qBe(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],s=[];const l={attempt:j(E),check:j(T),consume:x,enter:B,exit:C,interrupt:j(T,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:b,parser:e,previous:null,sliceSerialize:h,sliceStream:m,write:A};let d=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function A(F){return o=Zs(o,F),y(),o[o.length-1]!==null?[]:(O(t,0),c.events=Pj(a,c.events,c),c.events)}function h(F,M){return VBe(m(F),M)}function m(F){return zBe(o,F)}function b(){const{_bufferIndex:F,_index:M,line:V,column:q,offset:W}=r;return{_bufferIndex:F,_index:M,line:V,column:q,offset:W}}function g(F){i[F.line]=F.column,z()}function y(){let F;for(;r._index<o.length;){const M=o[r._index];if(typeof M=="string")for(F=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===F&&r._bufferIndex<M.length;)v(M.charCodeAt(r._bufferIndex));else v(M)}}function v(F){d=d(F)}function x(F){sn(F)?(r.line++,r.column=1,r.offset+=F===-3?2:1,z()):F!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=F}function B(F,M){const V=M||{};return V.type=F,V.start=b(),c.events.push(["enter",V,c]),s.push(V),V}function C(F){const M=s.pop();return M.end=b(),c.events.push(["exit",M,c]),M}function E(F,M){O(F,M.from)}
vendor: 13,506 bytes, lines 1319-1321
1319function T(F,M){M.restore()}function j(F,M){return V;function V(q,W,ee){let ne,K,oe,$;return Array.isArray(q)?Q(q):"tokenize"in q?Q([q]):X(q);function X(le){return he;function he(ye){const Ae=ye!==null&&le[ye],be=ye!==null&&le.null,Ee=[...Array.isArray(Ae)?Ae:Ae?[Ae]:[],...Array.isArray(be)?be:be?[be]:[]];return Q(Ee)(ye)}}function Q(le){return ne=le,K=0,le.length===0?ee:R(le[K])}function R(le){return he;function he(ye){return $=L(),oe=le,le.partial||(c.currentConstruct=le),le.name&&c.parser.constructs.disable.null.includes(le.name)?ce():le.tokenize.call(M?Object.assign(Object.create(c),M):c,l,re,ce)(ye)}}function re(le){return F(oe,$),W}function ce(le){return $.restore(),++K<ne.length?R(ne[K]):ee}}}function O(F,M){F.resolveAll&&!a.includes(F)&&a.push(F),F.resolve&&Xc(c.events,M,c.events.length-M,F.resolve(c.events.slice(M),c)),F.resolveTo&&(c.events=F.resolveTo(c.events,c))}function L(){const F=b(),M=c.previous,V=c.currentConstruct,q=c.events.length,W=Array.from(s);return{from:q,restore:ee};function ee(){r=F,c.previous=M,c.currentConstruct=V,c.events.length=q,s=W,z()}}function z(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function zBe(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function VBe(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
1320`;break}case-3:{o=`\r
1321`;break}case-2:{o=t?" ":"	";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function WBe(e){const r={constructs:eSe([$Be,...(e||{}).extensions||[]]),content:i(lSe),defined:[],document:i(uSe),flow:i(NBe),lazy:{},string:i(IBe),text:i(PBe)};return r;function i(a){return o;function o(s){return qBe(r,a,s)}}}function KBe(e){for(;!iJ(e););return e}const fU=/[\0\t\n\r]/g;function GBe(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const l=[];let c,d,A,h,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),A=0,t="",n&&(a.charCodeAt(0)===65279&&A++,n=void 0);A<a.length;){if(fU.lastIndex=A,c=fU.exec(a),h=c&&c.index!==void 0?c.index:a.length,m=a.charCodeAt(h),!c){t=a.slice(A);break}if(m===10&&A===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),A<h&&(l.push(a.slice(A,h)),e+=h-A),m){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}A=h+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const YBe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function XBe(e){return e.replace(YBe,JBe)}function JBe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return eJ(n.slice(a?2:1),a?16:10)}return Ij(n)||e}const uJ={}.hasOwnProperty;function ZBe(e,t,n){return typeof t!="string"&&(n=t,t=void 0),e5e(n)(KBe(WBe(n).document().write(GBe()(e,t,!0))))}function e5e(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(He),autolinkProtocol:L,autolinkEmail:L,atxHeading:a(ae),blockQuote:a(be),characterEscape:L,characterReference:L,codeFenced:a(Ee),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Ee,o),codeText:a(ge,o),codeTextData:L,data:L,codeFlowValue:L,definition:a(Ue),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Ye),hardBreakEscape:a(Le),hardBreakTrailing:a(Le),htmlFlow:a(st,o),htmlFlowData:L,htmlText:a(st,o),htmlTextData:L,image:a(ut),label:o,link:a(He),listItem:a(it),listItemValue:h,listOrdered:a(ht,A),listUnordered:a(ht),paragraph:a(pt),reference:R,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ae),strong:a(Bt),thematicBreak:a(zt)},exit:{atxHeading:l(),atxHeadingSequence:E,autolink:l(),autolinkEmail:Ae,autolinkProtocol:ye,blockQuote:l(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:le,characterReference:he,codeFenced:l(y),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:z,codeIndented:l(v),codeText:l(W),codeTextData:z,data:z,definition:l(),definitionDestinationString:C,definitionLabelString:x,definitionTitleString:B,emphasis:l(),hardBreakEscape:l(M),hardBreakTrailing:l(M),htmlFlow:l(V),htmlFlowData:z,htmlText:l(q),htmlTextData:z,image:l(ne),label:oe,labelText:K,lineEnding:F,link:l(ee),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:re,resourceDestinationString:$,resourceTitleString:X,resource:Q,setextHeading:l(O),setextHeadingLineSequence:j,setextHeadingText:T,strong:l(),thematicBreak:l()}};dJ(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Ie){let ze={type:"root",children:[]};const at={stack:[ze],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:d,data:n},Ze=[];let At=-1;for(;++At<Ie.length;)if(Ie[At][1].type==="listOrdered"||Ie[At][1].type==="listUnordered")if(Ie[At][0]==="enter")Ze.push(At);else{const ft=Ze.pop();At=i(Ie,ft,At)}for(At=-1;++At<Ie.length;){const ft=t[Ie[At][0]];uJ.call(ft,Ie[At][1].type)&&ft[Ie[At][1].type].call(Object.assign({sliceSerialize:Ie[At][2].sliceSerialize},at),Ie[At][1])}if(at.tokenStack.length>0){const ft=at.tokenStack[at.tokenStack.length-1];(ft[1]||hU).call(at,void 0,ft[0])}for(ze.position={start:Zd(Ie.length>0?Ie[0][1].start:{line:1,column:1,offset:0}),end:Zd(Ie.length>0?Ie[Ie.length-2][1].end:{line:1,column:1,offset:0})},At=-1;++At<t.transforms.length;)ze=t.transforms[At](ze)||ze;return ze}function i(Ie,ze,at){let Ze=ze-1,At=-1,ft=!1,Ln,Gt,Yt,Vt;for(;++Ze<=at;){const fn=Ie[Ze];switch(fn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{fn[0]==="enter"?At++:At--,Vt=void 0;break}case"lineEndingBlank":{fn[0]==="enter"&&(Ln&&!Vt&&!At&&!Yt&&(Yt=Ze),Vt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Vt=void 0}if(!At&&fn[0]==="enter"&&fn[1].type==="listItemPrefix"||At===-1&&fn[0]==="exit"&&(fn[1].type==="listUnordered"||fn[1].type==="listOrdered")){if(Ln){let wt=Ze;for(Gt=void 0;wt--;){const yn=Ie[wt];if(yn[1].type==="lineEnding"||yn[1].type==="lineEndingBlank"){if(yn[0]==="exit")continue;Gt&&(Ie[Gt][1].type="lineEndingBlank",ft=!0),yn[1].type="lineEnding",Gt=wt}else if(!(yn[1].type==="linePrefix"||yn[1].type==="blockQuotePrefix"||yn[1].type==="blockQuotePrefixWhitespace"||yn[1].type==="blockQuoteMarker"||yn[1].type==="listItemIndent"))break}Yt&&(!Gt||Yt<Gt)&&(Ln._spread=!0),Ln.end=Object.assign({},Gt?Ie[Gt][1].start:fn[1].end),Ie.splice(Gt||Ze,0,["exit",Ln,fn[2]]),Ze++,at++}if(fn[1].type==="listItemPrefix"){const wt={type:"listItem",_spread:!1,start:Object.assign({},fn[1].start),end:void 0};Ln=wt,Ie.splice(Ze,0,["enter",wt,fn[2]]),Ze++,at++,Yt=void 0,Vt=!0}}}return Ie[ze][1]._spread=ft,at}function a(Ie,ze){return at;function at(Ze){s.call(this,Ie(Ze),Ze),ze&&ze.call(this,Ze)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(Ie,ze,at){this.stack[this.stack.length-1].children.push(Ie),this.stack.push(Ie),this.tokenStack.push([ze,at||void 0]),Ie.position={start:Zd(ze.start),end:void 0}}function l(Ie){return ze;function ze(at){Ie&&Ie.call(this,at),c.call(this,at)}}function c(Ie,ze){const at=this.stack.pop(),Ze=this.tokenStack.pop();if(Ze)Ze[0].type!==Ie.type&&(ze?ze.call(this,Ie,Ze[0]):(Ze[1]||hU).call(this,Ie,Ze[0]));else throw new Error("Cannot close `"+Ie.type+"` ("+vv({start:Ie.start,end:Ie.end})+"): it’s not open");at.position.end=Zd(Ie.end)}function d(){return J2e(this.stack.pop())}function A(){this.data.expectingFirstListItemValue=!0}function h(Ie){if(this.data.expectingFirstListItemValue){const ze=this.stack[this.stack.length-2];ze.start=Number.parseInt(this.sliceSerialize(Ie),10),this.data.expectingFirstListItemValue=void 0}}function m(){const Ie=this.resume(),ze=this.stack[this.stack.length-1];ze.lang=Ie}function b(){const Ie=this.resume(),ze=this.stack[this.stack.length-1];ze.meta=Ie}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const Ie=this.resume(),ze=this.stack[this.stack.length-1];ze.value=Ie.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const Ie=this.resume(),ze=this.stack[this.stack.length-1];ze.value=Ie.replace(/(\r?\n|\r)$/g,"")}function x(Ie){const ze=this.resume(),at=this.stack[this.stack.length-1];at.label=ze,at.identifier=gm(this.sliceSerialize(Ie)).toLowerCase()}function B(){const Ie=this.resume(),ze=this.stack[this.stack.length-1];ze.title=Ie}function C(){const Ie=this.resume(),ze=this.stack[this.stack.length-1];ze.url=Ie}function E(Ie){const ze=this.stack[this.stack.length-1];if(!ze.depth){const at=this.sliceSerialize(Ie).length;ze.depth=at}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function j(Ie){const ze=this.stack[this.stack.length-1];ze.depth=this.sliceSerialize(Ie).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function L(Ie){const at=this.stack[this.stack.length-1].children;let Ze=at[at.length-1];(!Ze||Ze.type!=="text")&&(Ze=gn(),Ze.position={start:Zd(Ie.start),end:void 0},at.push(Ze)),this.stack.push(Ze)}function z(Ie){const ze=this.stack.pop();ze.value+=this.sliceSerialize(Ie),ze.position.end=Zd(Ie.end)}function F(Ie){const ze=this.stack[this.stack.length-1];if(this.data.atHardBreak){const at=ze.children[ze.children.length-1];at.position.end=Zd(Ie.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ze.type)&&(L.call(this,Ie),z.call(this,Ie))}function M(){this.data.atHardBreak=!0}function V(){const Ie=this.resume(),ze=this.stack[this.stack.length-1];ze.value=Ie}function q(){const Ie=this.resume(),ze=this.stack[this.stack.length-1];ze.value=Ie}function W(){const Ie=this.resume(),ze=this.stack[this.stack.length-1];ze.value=Ie}function ee(){const Ie=this.stack[this.stack.length-1];if(this.data.inReference){const ze=this.data.referenceType||"shortcut";Ie.type+="Reference",Ie.referenceType=ze,delete Ie.url,delete Ie.title}else delete Ie.identifier,delete Ie.label;this.data.referenceType=void 0}function ne(){const Ie=this.stack[this.stack.length-1];if(this.data.inReference){const ze=this.data.referenceType||"shortcut";Ie.type+="Reference",Ie.referenceType=ze,delete Ie.url,delete Ie.title}else delete Ie.identifier,delete Ie.label;this.data.referenceType=void 0}function K(Ie){const ze=this.sliceSerialize(Ie),at=this.stack[this.stack.length-2];at.label=XBe(ze),at.identifier=gm(ze).toLowerCase()}function oe(){const Ie=this.stack[this.stack.length-1],ze=this.resume(),at=this.stack[this.stack.length-1];if(this.data.inReference=!0,at.type==="link"){const Ze=Ie.children;at.children=Ze}else at.alt=ze}function $(){const Ie=this.resume(),ze=this.stack[this.stack.length-1];ze.url=Ie}function X(){const Ie=this.resume(),ze=this.stack[this.stack.length-1];ze.title=Ie}function Q(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function re(Ie){const ze=this.resume(),at=this.stack[this.stack.length-1];at.label=ze,at.identifier=gm(this.sliceSerialize(Ie)).toLowerCase(),this.data.referenceType="full"}function ce(Ie){this.data.characterReferenceType=Ie.type}function le(Ie){const ze=this.sliceSerialize(Ie),at=this.data.characterReferenceType;let Ze;at?(Ze=eJ(ze,at==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ze=Ij(ze);const At=this.stack[this.stack.length-1];At.value+=Ze}function he(Ie){const ze=this.stack.pop();ze.position.end=Zd(Ie.end)}function ye(Ie){z.call(this,Ie);const ze=this.stack[this.stack.length-1];ze.url=this.sliceSerialize(Ie)}function Ae(Ie){z.call(this,Ie);const ze=this.stack[this.stack.length-1];ze.url="mailto:"+this.sliceSerialize(Ie)}function be(){return{type:"blockquote",children:[]}}function Ee(){return{type:"code",lang:null,meta:null,value:""}}function ge(){return{type:"inlineCode",value:""}}function Ue(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ye(){return{type:"emphasis",children:[]}}function ae(){return{type:"heading",depth:0,children:[]}}function Le(){return{type:"break"}}function st(){return{type:"html",value:""}}function ut(){return{type:"image",title:null,url:"",alt:null}}function He(){return{type:"link",title:null,url:"",children:[]}}function ht(Ie){return{type:"list",ordered:Ie.type==="listOrdered",start:null,spread:Ie._spread,children:[]}}function it(Ie){return{type:"listItem",spread:Ie._spread,checked:null,children:[]}}function pt(){return{type:"paragraph",children:[]}}function Bt(){return{type:"strong",children:[]}}function gn(){return{type:"text",value:""}}function zt(){return{type:"thematicBreak"}}}function Zd(e){return{line:e.line,column:e.column,offset:e.offset}}function dJ(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?dJ(e,r):t5e(e,r)}}function t5e(e,t){let n;for(n in t)if(uJ.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function hU(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+vv({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+vv({start:t.start,end:t.end}
vendor: 10,671 bytes, lines 1321-1325
1321)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+vv({start:t.start,end:t.end})+") is still open")}function n5e(e){const t=this;t.parser=n;function n(r){return ZBe(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function r5e(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function i5e(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
1322`}]}function a5e(e,t){const n=t.value?t.value+`
1323`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function o5e(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function s5e(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function l5e(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Pg(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function c5e(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function u5e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function AJ(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function d5e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return AJ(e,t);const i={src:Pg(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function A5e(e,t){const n={src:Pg(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function f5e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function h5e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return AJ(e,t);const i={href:Pg(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function p5e(e,t){const n={href:Pg(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function m5e(e,t,n){const r=e.all(t),i=n?g5e(n):fJ(t),a={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let A;d&&d.type==="element"&&d.tagName==="p"?A=d:(A={type:"element",tagName:"p",properties:{},children:[]},r.unshift(A)),A.children.length>0&&A.children.unshift({type:"text",value:" "}),A.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(i||s!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
1324`}),d.type==="element"&&d.tagName==="p"&&!i?o.push(...d.children):o.push(d)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
1325`});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)}function g5e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=fJ(n[r])}return t}function fJ(e){const t=e.spread;return t??e.children.length>1}function y5e(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function v5e(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function b5e(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function w5e(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function x5e(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Ej(t.children[1]),l=WX(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function S5e(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const A=t.children[l],h={},m=o?o[l]:void 0;m&&(h.align=m);let b={type:"element",tagName:a,properties:h,children:[]};A&&(b.children=e.all(A),e.patch(A,b),b=e.applyData(A,b)),c.push(b)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function B5e(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const pU=9,mU=32;function C5e(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(gU(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(gU(t.slice(i),i>0,!1)),a.join("")}function gU(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===pU||a===mU;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===pU||a===mU;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function k5e(e,t){const n={type:"text",value:C5e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function E5e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const N5e={blockquote:r5e,break:i5e,code:a5e,delete:o5e,emphasis:s5e,footnoteReference:l5e,heading:c5e,html:u5e,imageReference:d5e,image:A5e,inlineCode:f5e,linkReference:h5e,link:p5e,listItem:m5e,list:y5e,paragraph:v5e,root:b5e,strong:w5e,table:x5e,tableCell:B5e,tableRow:S5e,text:k5e,thematicBreak:E5e,toml:ww,yaml:ww,definition:ww,footnoteDefinition:ww};function ww(){}const hJ=-1,CS=0,wv=1,b1=2,Oj=3,Fj=4,Lj=5,Dj=6,pJ=7,mJ=8,yU=typeof self=="object"?self:globalThis,T5e=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case CS:case hJ:return n(o,i);case wv:{const s=n([],i);for(const l of o)s.push(r(l));return s}case b1:{const s=n({},i);for(const[l,c]of o)s[r(l)]=r(c);return s}case Oj:return n(new Date(o),i);case Fj:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case Lj:{const s=n(new Map,i);for(const[l,c]of o)s.set(r(l),r(c));return s}case Dj:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case pJ:{const{name:s,message:l}=o;return n(new yU[s](l),i)}case mJ:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new yU[a](o),i)};return r},vU=e=>T5e(new Map,e)(0),Lp="",{toString:_5e}={},{keys:I5e}=Object,_y=e=>{const t=typeof e;if(t!=="object"||!e)return[CS,t];const n=_5e.call(e).slice(8,-1);switch(n){case"Array":return[wv,Lp];case"Object":return[b1,Lp];case"Date":return[Oj,Lp];case"RegExp":return[Fj,Lp];case"Map":return[Lj,Lp];case"Set":return[Dj,Lp];case"DataView":return[wv,n]}return n.includes("Array")?[wv,n]:n.includes("Error")?[pJ,n]:[b1,n]},xw=([e,t])=>e===CS&&(t==="function"||t==="symbol"),P5e=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=_y(o);switch(s){case CS:{let d=o;switch(l){case"bigint":s=mJ,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([hJ],o)}return i([s,d],o)}case wv:{if(l){let h=o;return l==="DataView"?h=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(o)),i([l,[...h]],o)}const d=[],A=i([s,d],o);for(const h of o)d.push(a(h));return A}case b1:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],A=i([s,d],o);for(const h of I5e(o))(e||!xw(_y(o[h])))&&d.push([a(h),a(o[h])]);return A}case Oj:return i([s,o.toISOString()],o);case Fj:{const{source:d,flags:A}=o;return i([s,{source:d,flags:A}],o)}case Lj:{const d=[],A=i([s,d],o);for(const[h,m]of o)(e||!(xw(_y(h))||xw(_y(m))))&&d.push([a(h),a(m)]);return A}case Dj:{const d=[],A=i([s,d],o);for(const h of o)(e||!xw(_y(h)))&&d.push(a(h));return A}}const{message:c}=o;return i([s,{name:l,message:c}],o)};return a},bU=(e,{json:t,lossy:n}={})=>{const r=[];return P5e(!(t||n),!!t,new Map,r)(e),r},w1=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?vU(bU(e,t)):structuredClone(e):(e,t)=>vU(bU(e,t));function j5e(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function O5e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 4,173 bytes, lines 1325-1327
1325function F5e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||j5e,r=e.options.footnoteBackLabel||O5e,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const d=e.all(c),A=String(c.identifier).toUpperCase(),h=Pg(A.toLowerCase());let m=0;const b=[],g=e.footnoteCounts.get(A);for(;g!==void 0&&++m<=g;){b.length>0&&b.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,m);typeof x=="string"&&(x={type:"text",value:x}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,m),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const y=d[d.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const x=y.children[y.children.length-1];x&&x.type==="text"?x.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...b)}else d.push(...b);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(c,v),s.push(v)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...w1(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
1326`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
1327`}]}}const gJ=(function(e){if(e==null)return U5e;if(typeof e=="function")return kS(e);if(typeof e=="object")return Array.isArray(e)?L5e(e):D5e(e);if(typeof e=="string")return M5e(e);throw new Error("Expected function, string, or object as test")});function L5e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=gJ(e[n]);return kS(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function D5e(e){const t=e;return kS(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function M5e(e){return kS(t);function t(n){return n&&n.type===e}}function kS(e){return t;function t(n,r,i){return!!(R5e(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function U5e(){return!0}function R5e(e){return e!==null&&typeof e=="object"&&"type"in e}const yJ=[],Q5e=!0,wU=!1,H5e="skip";function $5e(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=gJ(i),o=r?-1:1;s(e,void 0,[])();function s(l,c,d){const A=l&&typeof l=="object"?l:{};if(typeof A.type=="string"){const m=typeof A.tagName=="string"?A.tagName:typeof A.name=="string"?A.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return h;function h(){let m=yJ,b,g,y;if((!t||a(l,c,d[d.length-1]||void 0))&&(m=q5e(n(l,d)),m[0]===wU))return m;if("children"in l&&l.children){const v=l;if(v.children&&m[0]!==H5e)for(g=(r?v.children.length:-1)+o,y=d.concat(v);g>-1&&g<v.children.length;){const x=v.children[g];if(b=s(x,g,y)(),b[0]===wU)return b;g=typeof b[1]=="number"?b[1]:g+o}}return m}}}function q5e(e){return Array.isArray(e)?e:typeof e=="number"?[Q5e,e]:e==null?yJ:[e]}function vJ(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),$5e(e,a,s,i);function s(l,c){const d=c[c.length-1],A=d?d.children.indexOf(l):void 0;return o(l,A,d)}}const H_={}.hasOwnProperty,z5e={};function V5e(e,t){const n=t||z5e,r=new Map,i=new Map,a=new Map,o={...N5e,...n.handlers},s={all:c,applyData:K5e,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:n,patch:W5e,wrap:Y5e};return vJ(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const A=d.type==="definition"?r:i,h=String(d.identifier).toUpperCase();A.has(h)||A.set(h,d)}}),s;function l(d,A){const h=d.type,m=s.handlers[h];if(H_.call(s.handlers,h)&&m)return m(s,d,A);if(s.options.passThrough&&s.options.passThrough.includes(h)){if("children"in d){const{children:g,...y}=d,v=w1(y);return v.children=s.all(d),v}return w1(d)}return(s.options.unknownHandler||G5e)(s,d,A)}function c(d){const A=[];
vendor: 15,551 bytes, lines 1327-1331
1327if("children"in d){const h=d.children;let m=-1;for(;++m<h.length;){const b=s.one(h[m],d);if(b){if(m&&h[m-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=xU(b.value)),!Array.isArray(b)&&b.type==="element")){const g=b.children[0];g&&g.type==="text"&&(g.value=xU(g.value))}Array.isArray(b)?A.push(...b):A.push(b)}}}return A}}function W5e(e,t){e.position&&(t.position=_2e(e))}function K5e(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,w1(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function G5e(e,t){const n=t.data||{},r="value"in t&&!(H_.call(n,"hProperties")||H_.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Y5e(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
1328`});++r<e.length;)r&&n.push({type:"text",value:`
1329`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
1330`}),n}function xU(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function SU(e,t){const n=V5e(e,t),r=n.one(e,void 0),i=F5e(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
1331`},i),a}function X5e(e,t){return e&&"run"in e?async function(n,r){const i=SU(n,{file:r,...t});await e.run(i,r)}:function(n,r){return SU(n,{file:r,...e||t})}}function BU(e){if(e)throw e}var wC,CU;function J5e(){if(CU)return wC;CU=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var d=e.call(c,"constructor"),A=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!A)return!1;var h;for(h in c);return typeof h>"u"||e.call(c,h)},o=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},s=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(r)return r(c,d).value}else return;return c[d]};return wC=function l(){var c,d,A,h,m,b,g=arguments[0],y=1,v=arguments.length,x=!1;for(typeof g=="boolean"&&(x=g,g=arguments[1]||{},y=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});y<v;++y)if(c=arguments[y],c!=null)for(d in c)A=s(g,d),h=s(c,d),g!==h&&(x&&h&&(a(h)||(m=i(h)))?(m?(m=!1,b=A&&i(A)?A:[]):b=A&&a(A)?A:{},o(g,{name:d,newValue:l(x,b,h)})):typeof h<"u"&&o(g,{name:d,newValue:h}));return g},wC}var Z5e=J5e();const xC=nr(Z5e);function $_(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function eCe(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...c){const d=e[++a];let A=-1;if(l){o(l);return}for(;++A<i.length;)(c[A]===null||c[A]===void 0)&&(c[A]=i[A]);i=c,d?tCe(d,s)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function tCe(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const d=c;if(s&&n)throw d;return i(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const Tc={basename:nCe,dirname:rCe,extname:iCe,join:aCe,sep:"/"};function nCe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ub(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function rCe(e){if(ub(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function iCe(e){ub(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function aCe(...e){let t=-1,n;for(;++t<e.length;)ub(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":oCe(n)}function oCe(e){ub(e);const t=e.codePointAt(0)===47;let n=sCe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function sCe(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function ub(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const lCe={cwd:cCe};function cCe(){return"/"}function q_(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function uCe(e){if(typeof e=="string")e=new URL(e);else if(!q_(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return dCe(e)}function dCe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const SC=["history","path","basename","stem","extname","dirname"];class bJ{constructor(t){let n;t?q_(t)?n={path:t}:typeof t=="string"||ACe(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":lCe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<SC.length;){const a=SC[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)SC.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Tc.basename(this.path):void 0}set basename(t){CC(t,"basename"),BC(t,"basename"),this.path=Tc.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Tc.dirname(this.path):void 0}set dirname(t){kU(this.basename,"dirname"),this.path=Tc.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Tc.extname(this.path):void 0}set extname(t){if(BC(t,"extname"),kU(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Tc.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){q_(t)&&(t=uCe(t)),CC(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Tc.basename(this.path,this.extname):void 0}set stem(t){CC(t,"stem"),BC(t,"stem"),this.path=Tc.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new to(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function BC(e,t){if(e&&e.includes(Tc.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Tc.sep+"`")}function CC(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function kU(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ACe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const fCe=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),hCe={}.hasOwnProperty;class Mj extends fCe{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=eCe()}copy(){const t=new Mj;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(xC(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(NC("data",this.frozen),this.namespace[t]=n,this):hCe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(NC("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Sw(t),r=this.parser||this.Parser;return kC("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),kC("process",this.parser||this.Parser),EC("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const s=Sw(t),l=r.parse(s);r.run(l,s,function(d,A,h){if(d||!A||!h)return c(d);const m=A,b=r.stringify(m,h);gCe(b)?h.value=b:h.result=b,c(d,h)});function c(d,A){d||!A?o(d):a?a(A):n(void 0,A)}}}processSync(t){let n=!1,r;return this.freeze(),kC("processSync",this.parser||this.Parser),EC("processSync",this.compiler||this.Compiler),this.process(t,i),NU("processSync","process",n),r;function i(a,o){n=!0,BU(a),r=o}}run(t,n,r){EU(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,s){const l=Sw(n);i.run(t,l,c);function c(d,A,h){const m=A||t;d?s(d):o?o(m):r(void 0,m,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),NU("runSync","run",r),i;function a(o,s){BU(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=Sw(n),i=this.compiler||this.Compiler;return EC("stringify",i),EU(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(NC("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...A]=c;l(d,A)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(i.settings=xC(!0,i.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const A=c[d];a(A)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,d){let A=-1,h=-1;for(;++A<r.length;)if(r[A][0]===c){h=A;break}if(h===-1)r.push([c,...d]);else if(d.length>0){let[m,...b]=d;const g=r[h][1];$_(g)&&$_(m)&&(m=xC(!0,g,m)),r[h]=[c,m,...b]}}}}const pCe=new Mj().freeze();function kC(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function EC(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function NC(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function EU(e){if(!$_(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function NU(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Sw(e){return mCe(e)?e:new bJ(e)}function mCe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function gCe(e){return typeof e=="string"||yCe(e)}function yCe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const vCe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",TU=[],_U={allowDangerousHtml:!0},bCe=/^(https?|ircs?|mailto|xmpp)$/i,wCe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function xCe(e){const t=SCe(e),n=BCe(e);return CCe(t.runSync(t.parse(n),n),e)}function SCe(e){const t=e.rehypePlugins||TU,n=e.remarkPlugins||TU,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._U}:_U;return pCe().use(n5e).use(n).use(X5e,r).use(t)}function BCe(e){const t=e.children||"",n=new bJ;return typeof t=="string"&&(n.value=t),n}function CCe(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||kCe;for(const d of wCe)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+vCe+d.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),vJ(e,c),F2e(e,{Fragment:u.Fragment,components:i,ignoreInvalidStyle:!0,jsx:u.jsx,jsxs:u.jsxs,passKeys:!0,passNode:!0});function c(d,A,h){if(d.type==="raw"&&h&&typeof A=="number")return o?h.children.splice(A,1):h.children[A]={type:"text",value:d.value},A;if(d.type==="element"){let m;
1331for(m in yC)if(Object.hasOwn(yC,m)&&Object.hasOwn(d.properties,m)){const b=d.properties[m],g=yC[m];(g===null||g.includes(d.tagName))&&(d.properties[m]=l(String(b||""),m,d))}}if(d.type==="element"){let m=n?!n.includes(d.tagName):a?a.includes(d.tagName):!1;if(!m&&r&&typeof A=="number"&&(m=!r(d,A,h)),m&&h&&typeof A=="number")return s&&d.children?h.children.splice(A,1,...d.children):h.children.splice(A,1),A}}}function kCe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||bCe.test(e.slice(0,t))?e:""}const IU={"Managed IT":"bg-azure/10 text-azure",Network:"bg-midnight/10 text-midnight","Network Infrastructure":"bg-midnight/10 text-midnight",Cybersecurity:"bg-red-50 text-red-600","Software & Automation":"bg-indigo-50 text-indigo-600","Software and Automation":"bg-indigo-50 text-indigo-600","Industry Insight":"bg-cloud text-slate"},PU=[...ob.map(e=>({...e,type:e.type||"article"})),...dj];function ECe(){const{id:e}=RW(),t=PU.find(r=>r.id===e),n=PU.filter(r=>r.id!==e&&r.vertical===(t==null?void 0:t.vertical)).slice(0,2);return t?u.jsxs(u.Fragment,{children:[u.jsx("section",{className:"relative pt-28 pb-16 lg:pt-40 lg:pb-24 overflow-hidden bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsxs(Ft,{to:"/insights",className:"inline-flex items-center gap-2 text-sm text-slate hover:text-azure transition-colors mb-10",children:[u.jsx(Dh,{className:"w-4 h-4"})," Back to Insights"]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-16 items-center",children:[u.jsxs(_e.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-5",children:[t.type&&Xf[t.type]&&u.jsxs("span",{className:`inline-flex items-center gap-1.5 text-xs font-bold px-2.5 py-1 rounded-full ${Xf[t.type].color}`,children:[u.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${Xf[t.type].dot}`}),Xf[t.type].label]}),u.jsx("span",{className:`text-xs font-bold px-2.5 py-1 rounded-full ${IU[t.tag]||"bg-cloud text-slate"}`,children:t.tag}),u.jsx("span",{className:"text-xs text-slate/40",children:"·"}),u.jsx("span",{className:"text-xs text-slate/50",children:t.vertical}),u.jsx("span",{className:"text-xs text-slate/40",children:"·"}),t.readTime&&u.jsxs("span",{className:"flex items-center gap-1 text-xs text-slate/50",children:[u.jsx(bs,{className:"w-3 h-3"}),t.readTime]}),t.pages&&u.jsx("span",{className:"text-xs text-slate/50",children:t.pages}),u.jsx("span",{className:"text-xs text-slate/40",children:"·"}),u.jsx("span",{className:"text-xs text-slate/50",children:t.date})]}),u.jsx("h1",{className:"text-3xl md:text-4xl lg:text-4xl xl:text-5xl font-heading font-extrabold text-midnight leading-[1.12] tracking-tight mb-5",children:t.title}),u.jsx("div",{className:"relative pl-6 border-l-4 border-azure/40 mt-6 mb-7",children:u.jsx("p",{className:"text-lg text-slate/70 italic leading-snug font-heading",children:t.excerpt})}),u.jsxs(Ft,{to:t.ctaPath||"/contact",className:"inline-flex items-center gap-2 mt-2 px-7 py-3.5 rounded-full bg-gradient-to-r from-azure to-sky text-white font-bold text-sm hover:shadow-lg hover:shadow-azure/20 transition-all duration-300",children:[t.cta||"Read more"," ",u.jsx(_n,{className:"w-4 h-4"})]})]}),t.cover&&u.jsxs(_e.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.15},className:"relative",children:[u.jsx("div",{className:"absolute -inset-4 bg-gradient-to-br from-azure/10 to-sky/5 rounded-3xl -rotate-2"}),u.jsx("img",{src:t.cover,alt:"",className:"relative w-full h-80 md:h-96 lg:h-[440px] object-cover rounded-2xl shadow-xl"})]})]}),(()=>{const r=t.author||"",i=Qm[r]||Hm;return u.jsxs(_e.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"mt-16 pt-10 border-t border-slate/10",children:[u.jsxs("div",{className:"flex flex-col sm:flex-row items-start gap-6",children:[i.image?u.jsx("div",{className:"w-28 h-28 rounded-2xl overflow-hidden flex-shrink-0 ring-2 ring-azure/20 shadow-md",children:u.jsx("img",{src:i.image,alt:i.name,className:`w-full h-full object-cover ${i.imageClass||""}`,style:i.imageStyle})}):u.jsx("div",{className:"w-28 h-28 rounded-2xl bg-azure/10 flex items-center justify-center flex-shrink-0 ring-2 ring-azure/20",children:u.jsx("span",{className:"text-2xl font-heading font-extrabold text-azure",children:i.name.charAt(0)})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("p",{className:"text-xs font-bold text-azure uppercase tracking-wide mb-1",children:"+ About the author"}),u.jsx("p",{className:"text-xl font-heading font-extrabold text-midnight",children:i.name}),u.jsx("p",{className:"text-sm text-azure font-semibold mt-0.5",children:i.role}),u.jsx("p",{className:"text-sm text-slate/70 mt-2 leading-relaxed max-w-xl",children:i.bio})]})]}),u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mt-8 ml-0 sm:ml-[136px]",children:[u.jsxs("div",{className:"flex items-center gap-3 p-4 rounded-xl bg-cloud border border-slate/10",children:[u.jsx("div",{className:"w-10 h-10 rounded-lg bg-azure/10 flex items-center justify-center flex-shrink-0",children:u.jsx("svg",{className:"w-5 h-5 text-azure",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-wide",children:"Certifications"}),u.jsx("p",{className:"text-sm font-semibold text-midnight",children:"ISO 9001 · 27001 · 20000"})]})]}),u.jsxs("div",{className:"flex items-center gap-3 p-4 rounded-xl bg-cloud border border-slate/10",children:[u.jsx("div",{className:"w-10 h-10 rounded-lg bg-azure/10 flex items-center justify-center flex-shrink-0",children:u.jsxs("svg",{className:"w-5 h-5 text-azure",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",children:[u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-wide",children:"Based in"}),u.jsx("p",{className:"text-sm font-semibold text-midnight",children:"Johannesburg, South Africa"})]})]})]})]})})()]})}),u.jsx("section",{className:"py-16 lg:py-24 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-16",children:[u.jsxs("div",{className:"lg:col-span-8",children:[u.jsx(_e.div,{initial:{opacity:0}
1331,animate:{opacity:1},transition:{delay:.2},className:`article-prose prose prose-lg prose-slate max-w-[68ch]
1332                  prose-headings:font-heading prose-headings:text-midnight prose-headings:mt-10 prose-headings:mb-3 prose-headings:leading-snug
1333                  prose-p:text-[15px] prose-p:leading-[1.7] prose-p:mb-5 prose-p:text-slate/90
1334                  prose-a:text-azure prose-strong:text-midnight
1335                  prose-blockquote:border-l-4 prose-blockquote:border-azure/40 prose-blockquote:bg-azure/[0.03] prose-blockquote:py-6 prose-blockquote:px-8 prose-blockquote:mx-0 prose-blockquote:my-10 prose-blockquote:rounded-r-xl
1336                  prose-blockquote:not-italic prose-blockquote:text-midnight prose-blockquote:text-lg prose-blockquote:font-heading prose-blockquote:font-semibold prose-blockquote:leading-snug
1337                  prose-blockquote:shadow-sm`,children:u.jsx(xCe,{children:t.body})}),u.jsxs(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-16 p-10 rounded-2xl bg-gradient-to-br from-azure to-sky text-white",children:[u.jsx(K0,{className:"w-6 h-6 mb-3 text-white/70"}),u.jsx("h3",{className:"text-xl font-heading font-extrabold mb-2",children:"Ready to act on this?"}),u.jsx("p",{className:"text-white/75 text-sm mb-6",children:"Our team can give you a specific assessment of where your organisation stands — in a single conversation."}),u.jsxs(Ft,{to:t.ctaPath,className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-white text-azure font-bold text-sm hover:bg-frost transition-colors",children:[t.cta," ",u.jsx(_n,{className:"w-4 h-4"})]})]})]}),u.jsx("div",{className:"lg:col-span-4",children:u.jsxs("div",{className:"space-y-8 lg:sticky lg:top-28",children:[u.jsxs("div",{className:"bg-cloud rounded-2xl p-7 border border-slate/10",children:[u.jsx("p",{className:"text-xs font-bold text-azure uppercase tracking-wide mb-3",children:"Take the diagnostic"}),u.jsx("p",{className:"text-sm text-midnight font-semibold leading-snug mb-5",children:"See where your organisation stands — before the next pressure point arrives."}),u.jsxs(Ft,{to:"/diagnostics",className:"flex items-center gap-2 text-sm font-bold text-azure hover:text-sky transition-colors",children:["Start assessment ",u.jsx(NCe,{className:"w-4 h-4"})]})]}),n.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold text-slate/40 uppercase tracking-widest mb-5",children:"Related reading"}),u.jsx("div",{className:"space-y-4",children:n.map(r=>u.jsxs(Ft,{to:`/insights/${r.id}`,className:"block p-5 rounded-xl border border-slate/10 hover:border-azure/20 hover:bg-cloud transition-colors group",children:[u.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-full ${IU[r.tag]||"bg-cloud text-slate"}`,children:r.tag}),u.jsxs("p",{className:"text-sm font-bold text-midnight mt-2.5 leading-snug group-hover:text-azure transition-colors",children:[r.title.slice(0,70),"…"]})]},r.id))})]}),u.jsxs("div",{className:"p-6 rounded-2xl bg-midnight text-white",children:[u.jsx("p",{className:"text-xs font-bold text-white/40 uppercase tracking-widest mb-4",children:"Topical right now"}),u.jsx("div",{className:"flex flex-wrap gap-2",children:["SARB Compliance Q2","POPIA 2026","Mining Charter","SETA Deadline 30 Apr","AI Governance SA"].map(r=>u.jsx("span",{className:"text-xs font-semibold text-sky/80 border border-sky/20 rounded-full px-2.5 py-1",children:r},r))})]})]})})]})})}),u.jsx(ec,{heading:"Speak to a specialist.",sub:"No slide decks. No generic proposals. A conversation about your environment, your sector and your priorities.",cta:"Talk to our team",img:Rt.boardroom})]}):u.jsx("div",{className:"min-h-screen flex items-center justify-center bg-cloud",children:u.jsxs("div",{className:"text-center",children:[u.jsx("p",{className:"text-slate mb-4",children:"Article not found."}),u.jsx(Ft,{to:"/insights",className:"text-azure font-semibold hover:underline",children:"← Back to Insights"})]})})}function NCe({className:e}){return u.jsx("svg",{className:e,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}function TCe({study:e,index:t}){return u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.08},children:u.jsxs(Ft,{to:`/insights/case-studies/${e.id}`,className:"group flex flex-col h-full bg-white rounded-2xl border border-slate/10 overflow-hidden hover:shadow-xl hover:shadow-midnight/10 hover:-translate-y-1 transition-all duration-300",children:[u.jsxs("div",{className:"relative h-52 overflow-hidden",children:[e.cover?u.jsxs(u.Fragment,{children:[u.jsx("img",{src:e.cover,alt:"",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-midnight/70 via-midnight/20 to-transparent"})]}):u.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-midnight to-azure"}),u.jsx("span",{className:"absolute top-4 left-4 z-10 text-[11px] font-semibold uppercase tracking-wider text-white border border-white/30 bg-white/10 backdrop-blur-sm px-3.5 py-1.5 rounded-full",children:e.discipline}),e.logo&&u.jsx("div",{className:"absolute top-4 right-4 z-10 bg-white/90 backdrop-blur-sm rounded-xl p-1.5 shadow-lg",children:u.jsx("img",{src:e.logo,alt:e.logoAlt||"",className:"w-12 h-12 object-contain"})})]}),u.jsxs("div",{className:"p-7 flex flex-col gap-3.5 flex-1",children:[u.jsxs("div",{className:"flex items-center gap-3 text-xs font-semibold uppercase tracking-wider text-slate/60",children:[u.jsx("span",{children:e.year}),u.jsx("span",{className:"text-slate/30",children:"·"}),u.jsx("span",{children:e.sector})]}),u.jsx("h3",{className:"text-xl font-heading font-bold text-midnight leading-snug group-hover:text-azure transition-colors",children:e.cardTitle}),u.jsx("p",{className:"text-sm leading-relaxed text-slate/70 flex-1",children:e.cardSummary}),u.jsx("div",{className:"flex gap-5 pt-3.5 border-t border-slate/8",children:e.cardStats.map((n,r)=>u.jsxs("div",{className:"flex flex-col",children:[u.jsx("span",{className:"text-lg font-heading font-extrabold text-midnight",children:n.num}),u.jsx("span",{className:"text-[11px] text-slate/60 tracking-wide",children:n.lbl})]},r))}),u.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm font-semibold text-azure w-max group-hover:gap-2.5 transition-all",children:["Read case study ",u.jsx(qA,{className:"w-3.5 h-3.5"})]}),e.anonymised&&u.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-wider text-amber-700 bg-amber-50 border border-amber-200 px-2.5 py-1 rounded-full w-max -mt-1",children:[u.jsx(Mh,{className:"w-2.5 h-2.5"})," Client anonymised"]})]})]})})}function _Ce(){return u.jsxs(u.Fragment,{children:[u.jsxs("section",{className:"relative pt-32 pb-20 lg:pt-44 lg:pb-28 overflow-hidden bg-midnight",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/9e06a0d31_generated_image.png",alt:"",className:"w-full h-full object-cover opacity-50"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-midnight/90 via-midnight/55 to-midnight/30"})]}),u.jsx("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs(_e.div,{initial:{opacity:0,y:20}
1337,animate:{opacity:1,y:0},className:"max-w-3xl",children:[u.jsx("span",{className:"inline-flex items-center gap-2 text-[11px] font-semibold uppercase tracking-widest text-sky border border-white/20 bg-white/10 rounded-full px-3.5 py-1.5 mb-5",children:"Insights · Client work"}),u.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-heading font-extrabold text-white leading-[1.05] tracking-tight mb-3.5 max-w-2xl",children:"The work our clients would vouch for."}),u.jsx("p",{className:"text-lg lg:text-xl text-white/75 leading-snug max-w-xl",children:"Seventeen years of managed IT, cybersecurity and cloud delivery, and the pattern is the same every time: someone is under pressure, the answer has to hold up afterwards, and we stay in the room until it does."}),u.jsx(Ft,{to:"/insights",className:"inline-flex items-center gap-2 mt-8 text-sm font-semibold text-sky/80 hover:text-white transition-colors",children:"← Back to Insights"})]})})]}),u.jsx("section",{className:"py-16 lg:py-24 bg-cloud",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsxs("div",{className:"max-w-2xl mb-12",children:[u.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-widest text-azure bg-azure/8 border border-azure/20 rounded-full px-3.5 py-1.5 inline-block mb-4",children:"Selected engagements"}),u.jsx("h2",{className:"text-3xl md:text-4xl font-heading font-bold text-midnight tracking-tight mb-3",children:"Two clients. Two very different kinds of pressure."}),u.jsx("p",{className:"text-lg text-slate leading-snug",children:"One needed a municipality moved onto Microsoft 365 without losing a day of service delivery. The other needed findings that would survive scrutiny. Both needed a partner who would carry the risk with them."})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-7",children:fS.map((e,t)=>u.jsx(TCe,{study:e,index:t},e.id))})]})}),u.jsx(ec,{heading:"Your environment deserves the same attention.",sub:"Start with a conversation about what is actually keeping you up at night. We will tell you plainly what we would do about it, and what we would not.",cta:"Talk to us",href:"/contact",img:Rt.boardroom})]})}function ICe(){const{id:e}=RW(),t=fS.find(n=>n.id===e);return t?u.jsxs(u.Fragment,{children:[u.jsxs("section",{className:"relative pt-28 pb-0 overflow-hidden bg-midnight",children:[t.cover&&u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:t.cover,alt:"",className:"w-full h-full object-cover opacity-55"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-midnight/85 via-midnight/45 to-midnight/20"})]}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8 pb-16",children:[u.jsxs(Ft,{to:"/insights/case-studies",className:"inline-flex items-center gap-2 text-sm text-white/60 hover:text-white transition-colors mb-8",children:[u.jsx(Dh,{className:"w-4 h-4"})," Back to Case Studies"]}),u.jsxs(_e.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[u.jsxs("span",{className:"inline-flex items-center gap-2 text-[11px] font-semibold uppercase tracking-widest text-sky border border-white/20 bg-white/10 rounded-full px-3.5 py-1.5 mb-5",children:["Case study · ",t.discipline]}),t.logo&&u.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[u.jsx("div",{className:"bg-white rounded-2xl p-2 shadow-lg",children:u.jsx("img",{src:t.logo,alt:t.logoAlt||"",className:"w-16 h-16 object-contain"})}),t.website&&u.jsxs("a",{href:t.website,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm font-semibold text-sky hover:text-white transition-colors",children:[t.website.replace(/^https?:\/\//,"").replace(/\/$/,""),u.jsx(Xx,{className:"w-3.5 h-3.5"})]})]}),u.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-heading font-extrabold text-white leading-[1.12] tracking-tight max-w-3xl mb-3",children:t.detailTitle}),u.jsx("p",{className:"text-lg text-white/75 leading-snug max-w-2xl italic",children:t.dek})]}),u.jsx(_e.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{delay:.15},className:"mt-10 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 rounded-2xl overflow-hidden border border-white/15 bg-white/[0.06] backdrop-blur-sm",children:t.factPanel.map((n,r)=>u.jsxs("div",{className:"p-6 border-b border-r border-white/10 last:border-r-0 [&:nth-child(3n)]:border-r-0",children:[u.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-wider text-sky mb-2",children:n.k}),u.jsx("p",{className:"text-sm font-semibold text-white leading-snug",children:n.v})]},r))})]})]}),u.jsx("section",{className:"py-16 lg:py-24 bg-white",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_320px] gap-14",children:[u.jsxs("div",{children:[t.sections.map((n,r)=>{var i;return u.jsxs("div",{className:r===0?"":"mt-11",children:[u.jsx("h2",{className:"text-2xl font-heading font-bold text-midnight mb-3 max-w-[34ch]",children:n.heading}),(i=n.paragraphs)==null?void 0:i.map((a,o)=>u.jsx("p",{className:"text-base leading-[1.7] text-slate/90 mb-4 max-w-[68ch]",children:a},o)),n.listItems&&u.jsx("ul",{className:"ml-5 mb-4 space-y-1.5 max-w-[66ch]",children:n.listItems.map((a,o)=>u.jsx("li",{className:"text-base leading-[1.65] text-slate/90 list-disc",children:a},o))})]},r)}),u.jsxs("div",{className:"bg-cloud border-l-[3px] border-sky rounded-r-xl py-5 px-6 my-7 max-w-[68ch]",children:[u.jsx("p",{className:"text-[11px] font-bold uppercase tracking-wider text-azure mb-1.5",children:t.boundaryBox.k}),u.jsx("p",{className:"text-sm text-slate leading-snug",children:t.boundaryBox.p})]}),u.jsxs("div",{className:"mt-11",children:[u.jsx("h2",{className:"text-2xl font-heading font-bold text-midnight mb-3 max-w-[34ch]",children:t.closingSection.heading}),u.jsx("p",{className:"text-base leading-[1.7] text-slate/90 mb-5 max-w-[68ch]",children:t.closingSection.paragraph}),u.jsx("div",{className:"flex flex-wrap gap-2",children:t.serviceTags.map((n,r)=>u.jsx("span",{className:"inline-flex items-center text-sm font-semibold text-midnight bg-white border border-slate/15 px-3.5 py-2 rounded-full",children:n},r))})]})]}),u.jsxs("aside",{className:"flex flex-col gap-6",children:[u.jsxs("div",{className:"bg-cloud rounded-2xl p-6",children:[u.jsx("p",{className:"text-[11px] font-bold uppercase tracking-wider text-azure mb-3.5",children:"Pull-out figures"}),t.railStats.map((n,r)=>u.jsxs("div",{className:"flex flex-col py-3 border-b border-slate/10 last:border-b-0 last:pb-0 first:pt-0",children:[u.jsx("span",{className:"text-2xl font-heading font-extrabold text-midnight leading-tight",children:n.num}),u.jsx("span",{className:"text-xs text-slate mt-0.5",children:n.lbl})]},r))]}),u.jsxs("div",{className:"bg-cloud rounded-2xl p-6",children:[u.jsx("p",{className:"text-[11px] font-bold uppercase tracking-wider text-azure mb-3.5",children:t.anonymised?"Delivered with":"Credentials"}),t.railCredentials.map((n,r)=>u.jsxs("div",{className:"flex flex-col py-3 border-b border-slate/10 last:border-b-0 last:pb-0 first:pt-0",children:[u.jsx("span",{className:"text-2xl font-heading font-extrabold text-midnight leading-tight",children:n.num}),u.jsx("span",{className:"text-xs text-slate mt-0.5",children:n.lbl})]},r))]})]})]})})}),u.jsx(ec,{heading:"Want a similar outcome documented for your organisation?",sub:"No slide decks. No generic proposals. A conversation about your environment, your sector and 
1337your priorities.",cta:"Talk to us",href:"/contact",img:Rt.boardroom})]}):u.jsx("div",{className:"min-h-screen flex items-center justify-center bg-cloud pt-28",children:u.jsxs("div",{className:"text-center",children:[u.jsx("p",{className:"text-slate mb-4",children:"Case study not found."}),u.jsx(Ft,{to:"/insights/case-studies",className:"text-azure font-semibold hover:underline",children:"← Back to Case Studies"})]})})}function PCe(){return u.jsxs("div",{className:"min-h-screen bg-cloud flex flex-col items-center justify-center px-6 text-center",children:[u.jsx("img",{src:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/0caebd27e_SourceworxHorizontal-Dark2.png",alt:"Sourceworx",className:"h-8 mb-10"}),u.jsx("h1",{className:"text-7xl font-heading font-extrabold text-midnight/10",children:"404"}),u.jsx("h2",{className:"text-2xl font-heading font-bold text-midnight mt-4",children:"Page not found"}),u.jsx("p",{className:"text-slate mt-3 max-w-sm",children:"The page you are looking for does not exist or has been moved."}),u.jsxs(Ft,{to:"/",className:"inline-flex items-center gap-2 mt-8 px-6 py-3 rounded-full border border-slate/20 text-midnight text-sm font-semibold hover:bg-white transition-colors",children:[u.jsx(Dh,{className:"w-4 h-4"})," Back to home"]})]})}const wJ=[{label:"Main Pages",icon:wh,color:"text-azure",bg:"bg-azure/8",links:[{title:"Home",path:"/",desc:"Company overview and value proposition"},{title:"About",path:"/about",desc:"Our story, team, credentials and partners"},{title:"Services",path:"/services",desc:"Full service catalogue overview"},{title:"Insights",path:"/insights",desc:"Articles, whitepapers and case studies"},{title:"Diagnostics",path:"/diagnostics",desc:"Interactive IT health diagnostics tool"},{title:"Contact",path:"/contact",desc:"Get in touch with our team"},{title:"Privacy Notice",path:"/privacy",desc:"POPIA-compliant privacy policy"}]},{label:"Service Lines",icon:fse,color:"text-sky",bg:"bg-sky/8",links:[{title:"IT Managed Services",path:"/services/it-managed",desc:"End-to-end management of your IT environment",icon:Voe},{title:"Network Services",path:"/services/network",desc:"Connectivity, WAN, SD-WAN and network infrastructure",icon:wh},{title:"Cybersecurity",path:"/services/cybersecurity",desc:"Threat detection, compliance and security operations",icon:Mo},{title:"Software Development",path:"/services/software-development",desc:"Custom software, integrations and platforms",icon:Qoe}]},{label:"Industry Verticals",icon:RT,color:"text-azure",bg:"bg-azure/8",links:[{title:"Financial Services",path:"/industries/financial-services",desc:"Banks, insurers and asset managers",icon:GV},{title:"Government",path:"/industries/government",desc:"Public sector and SOE technology solutions",icon:RT},{title:"Higher & Basic Education",path:"/industries/higher-education",desc:"Universities, TVET colleges, district schools and basic education institutions",icon:VV},{title:"Mining",path:"/industries/mining",desc:"Mining operations and remote site connectivity",icon:WV},{title:"Special Projects",path:"/industries/special-projects",desc:"Complex, multi-disciplinary engagements",icon:xoe}]},{label:"Campaign & Assessment Pages",icon:i3,color:"text-sky",bg:"bg-sky/8",links:[{title:"IT Managed Services Assessment",path:"/campaign/it-managed-services",desc:"Free IT managed services readiness assessment"},{title:"Network Services Assessment",path:"/campaign/network-managed-services",desc:"Free network infrastructure assessment"},{title:"Cybersecurity Assessment",path:"/campaign/cybersecurity",desc:"Free cybersecurity posture assessment"},{title:"Software Development Assessment",path:"/campaign/software-development",desc:"Free software needs and readiness assessment"}]},{label:"Tools & Resources",icon:ple,color:"text-azure",bg:"bg-azure/8",links:[{title:"IT Diagnostics",path:"/diagnostics",desc:"Self-service IT health and risk diagnostics"},{title:"Insights Hub",path:"/insights",desc:"Industry-specific articles and research"}]},{label:"Contact & Legal",icon:Y2,color:"text-sky",bg:"bg-sky/8",links:[{title:"Contact Us",path:"/contact",desc:"Speak to a specialist or request a proposal"},{title:"Privacy Notice",path:"/privacy",desc:"How we handle your data under POPIA"}]}],jCe=()=>{const e=[["Section","Page Title","URL Path","Description"]];wJ.forEach(a=>{a.links.forEach(o=>{e.push([a.label,o.title,`https://sourceworx.co.za${o.path}`,o.desc||""])})});const t=e.map(a=>a.map(o=>`"${String(o).replace(/"/g,'""')}"`).join(",")).join(`
1338`),n=new Blob([t],{type:"text/csv;charset=utf-8;"}),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download="Sourceworx_Sitemap.csv",i.click(),URL.revokeObjectURL(r)},OCe={hidden:{opacity:0,y:20},visible:e=>({opacity:1,y:0,transition:{delay:e*.06,duration:.4}})};function FCe(){return u.jsxs("div",{className:"min-h-screen bg-cloud",children:[u.jsx("section",{className:"bg-midnight pt-32 pb-20",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs(_e.div,{initial:{opacity:0,y:24}
1338,animate:{opacity:1,y:0},transition:{duration:.6},children:[u.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[u.jsx(Nse,{className:"w-5 h-5 text-azure"}),u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-azure",children:"Navigation"})]}),u.jsx("h1",{className:"text-4xl md:text-5xl font-heading font-extrabold text-white tracking-tight leading-tight mb-4",children:"Site Map"}),u.jsx("p",{className:"text-white/50 text-lg max-w-2xl leading-relaxed",children:"A complete directory of every page, service, industry vertical, campaign and resource available on the Sourceworx platform."}),u.jsxs("button",{onClick:jCe,className:"inline-flex items-center gap-2 mt-8 px-7 py-3.5 rounded-full bg-azure text-white font-bold text-sm hover:bg-sky transition-colors shadow-xl shadow-azure/25",children:[u.jsx(Fm,{className:"w-4 h-4"})," Download as Excel / CSV"]})]})})}),u.jsx("section",{className:"py-20",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8 space-y-14",children:wJ.map((e,t)=>{const n=e.icon;return u.jsxs(_e.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.5,delay:t*.05},children:[u.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[u.jsx("div",{className:`w-9 h-9 rounded-xl ${e.bg} flex items-center justify-center`,children:u.jsx(n,{className:`w-4 h-4 ${e.color}`})}),u.jsx("h2",{className:"text-lg font-heading font-extrabold text-midnight tracking-tight",children:e.label}),u.jsx("div",{className:"flex-1 h-px bg-slate/10 ml-2"})]}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:e.links.map((r,i)=>{const a=r.icon;return u.jsx(_e.div,{custom:i,variants:OCe,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:u.jsxs(Ft,{to:r.path,className:"group flex flex-col gap-2 p-5 bg-white rounded-2xl border border-slate/10 hover:border-azure/30 hover:shadow-lg hover:shadow-azure/6 transition-all duration-300 h-full",children:[u.jsxs("div",{className:"flex items-start justify-between gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[a&&u.jsx("div",{className:`w-7 h-7 rounded-lg ${e.bg} flex items-center justify-center flex-shrink-0`,children:u.jsx(a,{className:`w-3.5 h-3.5 ${e.color}`})}),u.jsx("span",{className:"font-heading font-bold text-midnight text-sm group-hover:text-azure transition-colors",children:r.title})]}),u.jsx(_n,{className:`w-4 h-4 flex-shrink-0 text-slate/30 group-hover:${e.color} group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-all`})]}),r.desc&&u.jsx("p",{className:"text-xs text-slate leading-relaxed",children:r.desc}),u.jsx("div",{className:`mt-auto pt-2 text-[10px] font-mono ${e.color} opacity-40`,children:r.path})]})},r.path)})})]},e.label)})})}),u.jsx("section",{className:"py-16 bg-midnight",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8 text-center",children:u.jsxs(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-white mb-4",children:"Can't find what you're looking for?"}),u.jsx("p",{className:"text-white/50 mb-8 max-w-md mx-auto text-sm leading-relaxed",children:"Our team is happy to point you in the right direction."}),u.jsxs(Ft,{to:"/contact",className:"inline-flex items-center gap-2 px-8 py-4 rounded-full bg-azure text-white font-bold text-sm hover:bg-sky transition-colors shadow-xl shadow-azure/25",children:["Talk to us ",u.jsx(_n,{className:"w-4 h-4"})]})]})})})]})}var TC,jU;function $o(){if(jU)return TC;jU=1;var e=Array.isArray;return TC=e,TC}var _C,OU;function xJ(){if(OU)return _C;OU=1;var e=typeof rw=="object"&&rw&&rw.Object===Object&&rw;return _C=e,_C}var IC,FU;function eu(){if(FU)return IC;FU=1;var e=xJ(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return IC=n,IC}var PC,LU;function db(){if(LU)return PC;LU=1;var e=eu(),t=e.Symbol;return PC=t,PC}var jC,DU;function LCe(){if(DU)return jC;DU=1;var e=db(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=n.call(o,i),l=o[i];try{o[i]=void 0;var c=!0}catch{}var d=r.call(o);return c&&(s?o[i]=l:delete o[i]),d}return jC=a,jC}var OC,MU;function DCe(){if(MU)return OC;MU=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return OC=n,OC}var FC,UU;function fd(){if(UU)return FC;UU=1;
vendor: 5,454 bytes, line 1338
1338var e=db(),t=LCe(),n=DCe(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:r:a&&a in Object(s)?t(s):n(s)}return FC=o,FC}var LC,RU;function hd(){if(RU)return LC;RU=1;function e(t){return t!=null&&typeof t=="object"}return LC=e,LC}var DC,QU;function jg(){if(QU)return DC;QU=1;var e=fd(),t=hd(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return DC=r,DC}var MC,HU;function Uj(){if(HU)return MC;HU=1;var e=$o(),t=jg(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||o!=null&&a in Object(o)}return MC=i,MC}var UC,$U;function XA(){if($U)return UC;$U=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return UC=e,UC}var RC,qU;function Rj(){if(qU)return RC;qU=1;var e=fd(),t=XA(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==r||l==i||l==n||l==a}return RC=o,RC}var QC,zU;function MCe(){if(zU)return QC;zU=1;var e=eu(),t=e["__core-js_shared__"];return QC=t,QC}var HC,VU;function UCe(){if(VU)return HC;VU=1;var e=MCe(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return HC=n,HC}var $C,WU;function SJ(){if(WU)return $C;WU=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return $C=n,$C}var qC,KU;function RCe(){if(KU)return qC;KU=1;var e=Rj(),t=UCe(),n=XA(),r=SJ(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,d=RegExp("^"+l.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function A(h){if(!n(h)||t(h))return!1;var m=e(h)?d:a;return m.test(r(h))}return qC=A,qC}var zC,GU;function QCe(){if(GU)return zC;GU=1;function e(t,n){return t==null?void 0:t[n]}return zC=e,zC}var VC,YU;function zh(){if(YU)return VC;YU=1;var e=RCe(),t=QCe();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return VC=n,VC}var WC,XU;function ES(){if(XU)return WC;XU=1;var e=zh(),t=e(Object,"create");return WC=t,WC}var KC,JU;function HCe(){if(JU)return KC;JU=1;var e=ES();function t(){this.__data__=e?e(null):{},this.size=0}return KC=t,KC}var GC,ZU;function $Ce(){if(ZU)return GC;ZU=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return GC=e,GC}var YC,eR;function qCe(){if(eR)return YC;eR=1;var e=ES(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return r.call(o,a)?o[a]:void 0}return YC=i,YC}var XC,tR;function zCe(){if(tR)return XC;tR=1;var e=ES(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return XC=r,XC}var JC,nR;function VCe(){if(nR)return JC;nR=1;var e=ES(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return JC=n,JC}var ZC,rR;function WCe(){if(rR)return ZC;rR=1;var e=HCe(),t=$Ce(),n=qCe(),r=zCe(),i=VCe();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,ZC=a,ZC}var ek,iR;function KCe(){if(iR)return ek;iR=1;function e(){this.__data__=[],this.size=0}return ek=e,ek}var tk,aR;function Qj(){if(aR)return tk;aR=1;function e(t,n){return t===n||t!==t&&n!==n}return tk=e,tk}var nk,oR;function NS(){if(oR)return nk;oR=1;var e=Qj();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return nk=t,nk}var rk,sR;function GCe(){if(sR)return rk;sR=1;var e=NS(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():n.call(a,o,1),--this.size,!0}return rk=r,rk}var ik,lR;function YCe(){if(lR)return ik;lR=1;var e=NS();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return ik=t,ik}var ak,cR;function XCe(){if(cR)return ak;cR=1;var e=NS();function t(n){return e(this.__data__,n)>-1}return ak=t,ak}var ok,uR;function JCe(){if(uR)return ok;uR=1;var e=NS();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return ok=t,ok}var sk,dR;function TS(){if(dR)return sk;dR=1;var e=KCe(),t=GCe(),n=YCe(),r=XCe(),i=JCe();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,sk=a,sk}var lk,AR;function Hj(){if(AR)return lk;AR=1;var e=zh(),t=eu(),n=e(t,"Map");return lk=n,lk}var ck,fR;function ZCe(){if(fR)return ck;fR=1;var e=WCe(),t=TS(),n=Hj();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ck=r,ck}var uk,hR;function eke(){if(hR)return uk;hR=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return uk=e,uk}var dk,pR;function _S(){if(pR)return dk;pR=1;var e=eke();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return dk=t,dk}var Ak,mR;
vendor: 11,917 bytes, lines 1338-1346
1338function tke(){if(mR)return Ak;mR=1;var e=_S();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Ak=t,Ak}var fk,gR;function nke(){if(gR)return fk;gR=1;var e=_S();function t(n){return e(this,n).get(n)}return fk=t,fk}var hk,yR;function rke(){if(yR)return hk;yR=1;var e=_S();function t(n){return e(this,n).has(n)}return hk=t,hk}var pk,vR;function ike(){if(vR)return pk;vR=1;var e=_S();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return pk=t,pk}var mk,bR;function $j(){if(bR)return mk;bR=1;var e=ZCe(),t=tke(),n=nke(),r=rke(),i=ike();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,mk=a,mk}var gk,wR;function BJ(){if(wR)return gk;wR=1;var e=$j(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var c=r.apply(this,o);return a.cache=l.set(s,c)||l,c};return a.cache=new(n.Cache||e),a}return n.Cache=e,gk=n,gk}var yk,xR;function ake(){if(xR)return yk;xR=1;var e=BJ(),t=500;function n(r){var i=e(r,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return yk=n,yk}var vk,SR;function oke(){if(SR)return vk;SR=1;var e=ake(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,l,c){a.push(l?c.replace(n,"$1"):s||o)}),a});return vk=r,vk}var bk,BR;function qj(){if(BR)return bk;BR=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return bk=e,bk}var wk,CR;function ske(){if(CR)return wk;CR=1;var e=db(),t=qj(),n=$o(),r=jg(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(n(s))return t(s,o)+"";if(r(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return wk=o,wk}var xk,kR;function CJ(){if(kR)return xk;kR=1;var e=ske();function t(n){return n==null?"":e(n)}return xk=t,xk}var Sk,ER;function kJ(){if(ER)return Sk;ER=1;var e=$o(),t=Uj(),n=oke(),r=CJ();function i(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}return Sk=i,Sk}var Bk,NR;function IS(){if(NR)return Bk;NR=1;var e=jg();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Bk=t,Bk}var Ck,TR;function zj(){if(TR)return Ck;TR=1;var e=kJ(),t=IS();function n(r,i){i=e(i,r);for(var a=0,o=i.length;r!=null&&a<o;)r=r[t(i[a++])];return a&&a==o?r:void 0}return Ck=n,Ck}var kk,_R;function EJ(){if(_R)return kk;_R=1;var e=zj();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return kk=t,kk}var lke=EJ();const al=nr(lke);var Ek,IR;function cke(){if(IR)return Ek;IR=1;function e(t){return t==null}return Ek=e,Ek}var uke=cke();const An=nr(uke);var Nk,PR;function dke(){if(PR)return Nk;PR=1;var e=fd(),t=$o(),n=hd(),r="[object String]";function i(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return Nk=i,Nk}var Ake=dke();const Nh=nr(Ake);var fke=Rj();const bn=nr(fke);var hke=XA();const Og=nr(hke);var Tk={exports:{}},Xn={};/**
1339 * @license React
1340 * react-is.production.min.js
1341 *
1342 * Copyright (c) Facebook, Inc. and its affiliates.
1343 *
1344 * This source code is licensed under the MIT license found in the
1345 * LICENSE file in the root directory of this source tree.
1346 */var jR;function pke(){if(jR)return Xn;jR=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function g(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case n:case i:case r:case c:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case o:case l:case h:case A:case a:return y;default:return v}}case t:return v}}}return Xn.ContextConsumer=o,Xn.ContextProvider=a,Xn.Element=e,Xn.ForwardRef=l,Xn.Fragment=n,Xn.Lazy=h,Xn.Memo=A,Xn.Portal=t,Xn.Profiler=i,Xn.StrictMode=r,Xn.Suspense=c,Xn.SuspenseList=d,Xn.isAsyncMode=function(){return!1},Xn.isConcurrentMode=function(){return!1},Xn.isContextConsumer=function(y){return g(y)===o},Xn.isContextProvider=function(y){return g(y)===a},Xn.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Xn.isForwardRef=function(y){return g(y)===l},Xn.isFragment=function(y){return g(y)===n},Xn.isLazy=function(y){return g(y)===h},Xn.isMemo=function(y){return g(y)===A},Xn.isPortal=function(y){return g(y)===t},Xn.isProfiler=function(y){return g(y)===i},Xn.isStrictMode=function(y){return g(y)===r},Xn.isSuspense=function(y){return g(y)===c},Xn.isSuspenseList=function(y){return g(y)===d},Xn.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===i||y===r||y===c||y===d||y===m||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===A||y.$$typeof===a||y.$$typeof===o||y.$$typeof===l||y.$$typeof===b||y.getModuleId!==void 0)},Xn.typeOf=g,Xn}var OR;function mke(){return OR||(OR=1,Tk.exports=pke()),Tk.exports}var gke=mke(),_k,FR;function NJ(){if(FR)return _k;FR=1;var e=fd(),t=hd(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return _k=r,_k}var Ik,LR;function yke(){if(LR)return Ik;LR=1;var e=NJ();function t(n){return e(n)&&n!=+n}return Ik=t,Ik}var vke=yke();const Fg=nr(vke);var bke=NJ();const wke=nr(bke);var Wl=function(t){return t===0?0:t>0?1:-1},Jf=function(t){return Nh(t)&&t.indexOf("%")===t.length-1},dt=function(t){return wke(t)&&!Fg(t)},xke=function(t){return An(t)},Xi=function(t){return dt(t)||Nh(t)},Ske=0,Vh=function(t){var n=++Ske;return"".concat(t||"").concat(n)},Th=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!dt(t)&&!Nh(t))return r;var a;if(Jf(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Fg(a)&&(a=r),i&&a>n&&(a=n),a},Jp=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Bke=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},wi=function(t,n){return dt(t)&&dt(n)?function(r){return t+r*(n-t)}:function(){return n}};function x1(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):al(r,t))===n})}var Cke=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,i=0,a=0,o=0,s=1/0,l=-1/0,c=0,d=0,A=0;A<n;A++)c=t[A].cx||0,d=t[A].cy||0,r+=c,i+=d,a+=c*d,o+=c*c,s=Math.min(s,c),l=Math.max(l,c);var h=n*o!==r*r?(n*a-r*i)/(n*o-r*r):0;return{xmin:s,xmax:l,a:h,b:(i-h*r)/n}},kke=function(t,n){return dt(t)&&dt(n)?t-n:Nh(t)&&Nh(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function ym(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function z_(e){"@babel/helpers - typeof";return z_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z_(e)}var Eke=["viewBox","children"],Nke=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],DR=["points","pathLength"],Pk={svg:Eke,polygon:DR,polyline:DR},Vj=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
1346ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],S1=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(_.isValidElement(t)&&(r=t.props),!Og(r))return null;var i={};return Object.keys(r).forEach(function(a){Vj.includes(a)&&(i[a]=n||function(o){return r[a](r,o)})}),i},Tke=function(t,n,r){return function(i){return t(n,r,i),null}},Xv=function(t,n,r){if(!Og(t)||z_(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Vj.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Tke(o,n,r))}),i},_ke=["children"],Ike=["children"];function MR(e,t){if(e==null)return{};var n=Pke(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pke(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function V_(e){"@babel/helpers - typeof";return V_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V_(e)}var UR={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"}
vendor: 6,386 bytes, line 1346
1346,Zu=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},RR=null,jk=null,Wj=function e(t){if(t===RR&&Array.isArray(jk))return jk;var n=[];return _.Children.forEach(t,function(r){An(r)||(gke.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),jk=n,RR=t,n};function Qo(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Zu(i)}):r=[Zu(t)],Wj(e).forEach(function(i){var a=al(i,"type.displayName")||al(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function fs(e,t){var n=Qo(e,t);return n&&n[0]}var QR=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!dt(r)||r<=0||!dt(i)||i<=0)},jke=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Oke=function(t){return t&&t.type&&Nh(t.type)&&jke.indexOf(t.type)>=0},TJ=function(t){return t&&V_(t)==="object"&&"clipDot"in t},Fke=function(t,n,r,i){var a,o=(a=Pk==null?void 0:Pk[i])!==null&&a!==void 0?a:[];return n.startsWith("data-")||!bn(t)&&(i&&o.includes(n)||Nke.includes(n))||r&&Vj.includes(n)},mn=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(_.isValidElement(t)&&(i=t.props),!Og(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;Fke((s=i)===null||s===void 0?void 0:s[o],o,n,r)&&(a[o]=i[o])}),a},W_=function e(t,n){if(t===n)return!0;var r=_.Children.count(t);if(r!==_.Children.count(n))return!1;if(r===0)return!0;if(r===1)return HR(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!HR(a,o))return!1}return!0},HR=function(t,n){if(An(t)&&An(n))return!0;if(!An(t)&&!An(n)){var r=t.props||{},i=r.children,a=MR(r,_ke),o=n.props||{},s=o.children,l=MR(o,Ike);return i&&s?ym(a,l)&&W_(i,s):!i&&!s?ym(a,l):!1}return!1},$R=function(t,n){var r=[],i={};return Wj(t).forEach(function(a,o){if(Oke(a))r.push(a);else if(a){var s=Zu(a.type),l=n[s]||{},c=l.handler,d=l.once;if(c&&(!d||!i[s])){var A=c(a,s,o);r.push(A),i[s]=!0}}}),r},Lke=function(t){var n=t&&t.type;return n&&UR[n]?UR[n]:null},Dke=function(t,n){return Wj(n).indexOf(t)},Mke=["children","width","height","viewBox","className","style","title","desc"];function K_(){return K_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K_.apply(this,arguments)}function Uke(e,t){if(e==null)return{};var n=Rke(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rke(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function G_(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,c=Uke(e,Mke),d=i||{width:n,height:r,x:0,y:0},A=Cn("recharts-surface",a);return me.createElement("svg",K_({},mn(c,!0,"svg"),{className:A,width:n,height:r,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),me.createElement("title",null,s),me.createElement("desc",null,l),t)}var Qke=["children","className"];function Y_(){return Y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y_.apply(this,arguments)}function Hke(e,t){if(e==null)return{};var n=$ke(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $ke(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Wn=me.forwardRef(function(e,t){var n=e.children,r=e.className,i=Hke(e,Qke),a=Cn("recharts-layer",r);return me.createElement("g",Y_({className:a},mn(i,!0),{ref:t}),n)}),fh=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a]},Ok,qR;function qke(){if(qR)return Ok;qR=1;function e(t,n,r){var i=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+n];return o}return Ok=e,Ok}var Fk,zR;function zke(){if(zR)return Fk;zR=1;var e=qke();function t(n,r,i){var a=n.length;return i=i===void 0?a:i,!r&&i>=a?n:e(n,r,i)}return Fk=t,Fk}var Lk,VR;function _J(){if(VR)return Lk;VR=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(c){return s.test(c)}return Lk=l,Lk}var Dk,WR;function Vke(){if(WR)return Dk;WR=1;function e(t){return t.split("")}return Dk=e,Dk}var Mk,KR;function Wke(){if(KR)return Mk;KR=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+l+")",d="[^"+e+"]",A="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",b=c+"?",g="["+a+"]?",y="(?:"+m+"(?:"+[d,A,h].join("|")+")"+g+b+")*",v=g+b+y,x="(?:"+[d+s+"?",s,A,h,o].join("|")+")",B=RegExp(l+"(?="+l+")|"+x+v,"g");function C(E){return E.match(B)||[]}return Mk=C,Mk}var Uk,GR;function Kke(){if(GR)return Uk;GR=1;var e=Vke(),t=_J(),n=Wke();function r(i){return t(i)?n(i):e(i)}return Uk=r,Uk}var Rk,YR;
vendor: 5,866 bytes, line 1346
1346function Gke(){if(YR)return Rk;YR=1;var e=zke(),t=_J(),n=Kke(),r=CJ();function i(a){return function(o){o=r(o);var s=t(o)?n(o):void 0,l=s?s[0]:o.charAt(0),c=s?e(s,1).join(""):o.slice(1);return l[a]()+c}}return Rk=i,Rk}var Qk,XR;function Yke(){if(XR)return Qk;XR=1;var e=Gke(),t=e("toUpperCase");return Qk=t,Qk}var Xke=Yke();const PS=nr(Xke);function xr(e){return function(){return e}}const IJ=Math.cos,B1=Math.sin,tc=Math.sqrt,C1=Math.PI,jS=2*C1,X_=Math.PI,J_=2*X_,$f=1e-6,Jke=J_-$f;function PJ(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Zke(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return PJ;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class eEe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?PJ:Zke(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=r-t,c=i-n,d=o-t,A=s-n,h=d*d+A*A;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>$f)if(!(Math.abs(A*l-c*d)>$f)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-o,b=i-s,g=l*l+c*c,y=m*m+b*b,v=Math.sqrt(g),x=Math.sqrt(h),B=a*Math.tan((X_-Math.acos((g+h-y)/(2*v*x)))/2),C=B/x,E=B/v;Math.abs(C-1)>$f&&this._append`L${t+C*d},${n+C*A}`,this._append`A${a},${a},0,0,${+(A*m>d*b)},${this._x1=t+E*l},${this._y1=n+E*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,d=n+l,A=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>$f||Math.abs(this._y1-d)>$f)&&this._append`L${c},${d}`,r&&(h<0&&(h=h%J_+J_),h>Jke?this._append`A${r},${r},0,1,${A},${t-s},${n-l}A${r},${r},0,1,${A},${this._x1=c},${this._y1=d}`:h>$f&&this._append`A${r},${r},0,${+(h>=X_)},${A},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Kj(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new eEe(t)}function Gj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function jJ(e){this._context=e}jJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function OS(e){return new jJ(e)}function OJ(e){return e[0]}function FJ(e){return e[1]}function LJ(e,t){var n=xr(!0),r=null,i=OS,a=null,o=Kj(s);e=typeof e=="function"?e:e===void 0?OJ:xr(e),t=typeof t=="function"?t:t===void 0?FJ:xr(t);function s(l){var c,d=(l=Gj(l)).length,A,h=!1,m;for(r==null&&(a=i(m=o())),c=0;c<=d;++c)!(c<d&&n(A=l[c],c,l))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(A,c,l),+t(A,c,l));if(m)return a=null,m+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:xr(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:xr(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:xr(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(a=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),s):r},s}function Bw(e,t,n){var r=null,i=xr(!0),a=null,o=OS,s=null,l=Kj(c);e=typeof e=="function"?e:e===void 0?OJ:xr(+e),t=typeof t=="function"?t:xr(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?FJ:xr(+n);function c(A){var h,m,b,g=(A=Gj(A)).length,y,v=!1,x,B=new Array(g),C=new Array(g);for(a==null&&(s=o(x=l())),h=0;h<=g;++h){if(!(h<g&&i(y=A[h],h,A))===v)if(v=!v)m=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),b=h-1;b>=m;--b)s.point(B[b],C[b]);s.lineEnd(),s.areaEnd()}v&&(B[h]=+e(y,h,A),C[h]=+t(y,h,A),s.point(r?+r(y,h,A):B[h],n?+n(y,h,A):C[h]))}if(x)return s=null,x+""||null}function d(){return LJ().defined(i).curve(o).context(a)}return c.x=function(A){return arguments.length?(e=typeof A=="function"?A:xr(+A),r=null,c):e},c.x0=function(A){return arguments.length?(e=typeof A=="function"?A:xr(+A),c):e},c.x1=function(A){return arguments.length?(r=A==null?null:typeof A=="function"?A:xr(+A),c):r},c.y=function(A){return arguments.length?(t=typeof A=="function"?A:xr(+A),n=null,c):t},c.y0=function(A){return arguments.length?(t=typeof A=="function"?A:xr(+A),c):t},c.y1=function(A){return arguments.length?(n=A==null?null:typeof A=="function"?A:xr(+A),c):n},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(n)},c.lineX1=function(){return d().x(r).y(t)},c.defined=function(A){return arguments.length?(i=typeof A=="function"?A:xr(!!A),c):i},c.curve=function(A){return arguments.length?(o=A,a!=null&&(s=o(a)),c):o},c.context=function(A){return arguments.length?(A==null?a=s=null:s=o(a=A),c):a},c}class DJ{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}
1346point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function tEe(e){return new DJ(e,!0)}function nEe(e){return new DJ(e,!1)}const Yj={draw(e,t){const n=tc(t/C1);e.moveTo(n,0),e.arc(0,0,n,0,jS)}},rEe={draw(e,t){const n=tc(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},MJ=tc(1/3),iEe=MJ*2,aEe={draw(e,t){const n=tc(t/iEe),r=n*MJ;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},oEe={draw(e,t){const n=tc(t),r=-n/2;e.rect(r,r,n,n)}},sEe=.8908130915292852,UJ=B1(C1/10)/B1(7*C1/10),lEe=B1(jS/10)*UJ,cEe=-IJ(jS/10)*UJ,uEe={draw(e,t){const n=tc(t*sEe),r=lEe*n,i=cEe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=jS*a/5,s=IJ(o),l=B1(o);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Hk=tc(3),dEe={draw(e,t){const n=-tc(t/(Hk*3));e.moveTo(0,n*2),e.lineTo(-Hk*n,-n),e.lineTo(Hk*n,-n),e.closePath()}},qs=-.5,zs=tc(3)/2,Z_=1/tc(12),AEe=(Z_/2+1)*3,fEe={draw(e,t){const n=tc(t/AEe),r=n/2,i=n*Z_,a=r,o=n*Z_+n,s=-a,l=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(qs*r-zs*i,zs*r+qs*i),e.lineTo(qs*a-zs*o,zs*a+qs*o),e.lineTo(qs*s-zs*l,zs*s+qs*l),e.lineTo(qs*r+zs*i,qs*i-zs*r),e.lineTo(qs*a+zs*o,qs*o-zs*a),e.lineTo(qs*s+zs*l,qs*l-zs*s),e.closePath()}};function hEe(e,t){let n=null,r=Kj(i);e=typeof e=="function"?e:xr(e||Yj),t=typeof t=="function"?t:xr(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:xr(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:xr(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function k1(){}function E1(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function RJ(e){this._context=e}RJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:E1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:E1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pEe(e){return new RJ(e)}function QJ(e){this._context=e}QJ.prototype={areaStart:k1,areaEnd:k1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:E1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mEe(e){return new QJ(e)}function HJ(e){this._context=e}HJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:E1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gEe(e){return new HJ(e)}function $J(e){this._context=e}$J.prototype={areaStart:k1,areaEnd:k1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function yEe(e){return new $J(e)}function JR(e){return e<0?-1:1}
1346function ZR(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(JR(a)+JR(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function e8(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function $k(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function N1(e){this._context=e}N1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$k(this,this._t0,e8(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,$k(this,e8(this,n=ZR(this,e,t)),n);break;default:$k(this,this._t0,n=ZR(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function qJ(e){this._context=new zJ(e)}(qJ.prototype=Object.create(N1.prototype)).point=function(e,t){N1.prototype.point.call(this,t,e)};function zJ(e){this._context=e}zJ.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function vEe(e){return new N1(e)}function bEe(e){return new qJ(e)}function VJ(e){this._context=e}VJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=t8(e),i=t8(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function t8(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function wEe(e){return new VJ(e)}function FS(e,t){this._context=e,this._t=t}FS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function xEe(e){return new FS(e,.5)}function SEe(e){return new FS(e,0)}function BEe(e){return new FS(e,1)}function qm(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function eI(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function CEe(e,t){return e[t]}function kEe(e){const t=[];return t.key=e,t}function EEe(){var e=xr([]),t=eI,n=qm,r=CEe;function i(a){var o=Array.from(e.apply(this,arguments),kEe),s,l=o.length,c=-1,d;for(const A of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+r(A,o[s].key,c,a)]).data=A;for(s=0,d=Gj(t(o));s<l;++s)o[d[s]].index=s;return n(o,d),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:xr(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:xr(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?eI:typeof a=="function"?a:xr(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??qm,i):n},i}function NEe(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}qm(e,t)}}function TEe(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}qm(e,t)}}function _Ee(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,l=0,c=0;s<o;++s){for(var d=e[t[s]],A=d[r][1]||0,h=d[r-1][1]||0,m=(A-h)/2,b=0;b<s;++b){var g=e[t[b]],y=g[r][1]||0,v=g[r-1][1]||0;m+=y-v}l+=A,c+=m*A}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,qm(e,t)}}function Jv(e){"@babel/helpers - typeof";return Jv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jv(e)}var IEe=["type","size","sizeType"];function tI(){return tI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tI.apply(this,arguments)}function n8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function r8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 13,667 bytes, lines 1346-1349
1346t%2?n8(Object(n),!0).forEach(function(r){PEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PEe(e,t,n){return t=jEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jEe(e){var t=OEe(e,"string");return Jv(t)=="symbol"?t:t+""}function OEe(e,t){if(Jv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FEe(e,t){if(e==null)return{};var n=LEe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function LEe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var WJ={symbolCircle:Yj,symbolCross:rEe,symbolDiamond:aEe,symbolSquare:oEe,symbolStar:uEe,symbolTriangle:dEe,symbolWye:fEe},DEe=Math.PI/180,MEe=function(t){var n="symbol".concat(PS(t));return WJ[n]||Yj},UEe=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*DEe;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},REe=function(t,n){WJ["symbol".concat(PS(t))]=n},LS=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=FEe(t,IEe),c=r8(r8({},l),{},{type:r,size:a,sizeType:s}),d=function(){var y=MEe(r),v=hEe().type(y).size(UEe(a,s,r));return v()},A=c.className,h=c.cx,m=c.cy,b=mn(c,!0);return h===+h&&m===+m&&a===+a?me.createElement("path",tI({},b,{className:Cn("recharts-symbols",A),transform:"translate(".concat(h,", ").concat(m,")"),d:d()})):null};LS.registerSymbol=REe;function zm(e){"@babel/helpers - typeof";return zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zm(e)}function nI(){return nI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nI.apply(this,arguments)}function i8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QEe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i8(Object(n),!0).forEach(function(r){Zv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GJ(r.key),r)}}function qEe(e,t,n){return t&&$Ee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zEe(e,t,n){return t=T1(t),VEe(e,KJ()?Reflect.construct(t,n||[],T1(e).constructor):t.apply(e,n))}function VEe(e,t){if(t&&(zm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WEe(e)}function WEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KJ=function(){return!!e})()}function T1(e){return T1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},T1(e)}function KEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rI(e,t)}function rI(e,t){return rI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rI(e,t)}function Zv(e,t,n){return t=GJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GJ(e){var t=GEe(e,"string");return zm(t)=="symbol"?t:t+""}function GEe(e,t){if(zm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vs=32,Xj=(function(e){function t(){return HEe(this,t),zEe(this,t,arguments)}return KEe(t,e),qEe(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,a=Vs/2,o=Vs/6,s=Vs/3,l=r.inactive?i:r.color;if(r.type==="plainline")return me.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:Vs,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return me.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
1347            A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
1348            H`).concat(Vs,"M").concat(2*s,",").concat(a,`
1349            A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return me.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Vs/8,"h").concat(Vs,"v").concat(Vs*3/4,"h").concat(-Vs,"z"),className:"recharts-legend-icon"});if(me.isValidElement(r.legendIcon)){var c=QEe({},r);return delete c.legendIcon,me.cloneElement(r.legendIcon,c)}return me.createElement(LS,{fill:l,cx:a,cy:a,size:Vs,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,c=i.inactiveColor,d={x:0,y:0,width:Vs,height:Vs},A={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(m,b){var g=m.formatter||l,y=Cn(Zv(Zv({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",m.inactive));if(m.type==="none")return null;var v=bn(m.value)?null:m.value;fh(!bn(m.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=m.inactive?c:m.color;return me.createElement("li",nI({className:y,style:A,key:"legend-item-".concat(b)},Xv(r.props,m,b)),me.createElement(G_,{width:o,height:o,viewBox:d,style:h},r.renderIcon(m)),me.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},g?g(v,m,b):v))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,o=r.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return me.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(_.PureComponent);Zv(Xj,"displayName","Legend");Zv(Xj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var qk,a8;function YEe(){if(a8)return qk;a8=1;var e=TS();function t(){this.__data__=new e,this.size=0}return qk=t,qk}var zk,o8;function XEe(){if(o8)return zk;o8=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return zk=e,zk}var Vk,s8;function JEe(){if(s8)return Vk;s8=1;function e(t){return this.__data__.get(t)}return Vk=e,Vk}var Wk,l8;function ZEe(){if(l8)return Wk;l8=1;function e(t){return this.__data__.has(t)}return Wk=e,Wk}var Kk,c8;function e4e(){if(c8)return Kk;c8=1;var e=TS(),t=Hj(),n=$j(),r=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<r-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new n(l)}return s.set(a,o),this.size=s.size,this}return Kk=i,Kk}var Gk,u8;function YJ(){if(u8)return Gk;u8=1;var e=TS(),t=YEe(),n=XEe(),r=JEe(),i=ZEe(),a=e4e();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=a,Gk=o,Gk}var Yk,d8;function t4e(){if(d8)return Yk;d8=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Yk=t,Yk}var Xk,A8;function n4e(){if(A8)return Xk;A8=1;function e(t){return this.__data__.has(t)}return Xk=e,Xk}var Jk,f8;function XJ(){if(f8)return Jk;f8=1;var e=$j(),t=t4e(),n=n4e();function r(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Jk=r,Jk}var Zk,h8;function JJ(){if(h8)return Zk;h8=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return Zk=e,Zk}var eE,p8;function ZJ(){if(p8)return eE;p8=1;function e(t,n){return t.has(n)}return eE=e,eE}var tE,m8;function eZ(){if(m8)return tE;m8=1;var e=XJ(),t=JJ(),n=ZJ(),r=1,i=2;function a(o,s,l,c,d,A){var h=l&r,m=o.length,b=s.length;if(m!=b&&!(h&&b>m))return!1;var g=A.get(o),y=A.get(s);if(g&&y)return g==s&&y==o;var v=-1,x=!0,B=l&i?new e:void 0;for(A.set(o,s),A.set(s,o);++v<m;){var C=o[v],E=s[v];if(c)var T=h?c(E,C,v,s,o,A):c(C,E,v,o,s,A);if(T!==void 0){if(T)continue;x=!1;break}if(B){if(!t(s,function(j,O){if(!n(B,O)&&(C===j||d(C,j,l,c,A)))return B.push(O)})){x=!1;break}}else if(!(C===E||d(C,E,l,c,A))){x=!1;break}}return A.delete(o),A.delete(s),x}return tE=a,tE}var nE,g8;function r4e(){if(g8)return nE;g8=1;var e=eu(),t=e.Uint8Array;return nE=t,nE}var rE,y8;function i4e(){if(y8)return rE;y8=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return rE=e,rE}var iE,v8;function Jj(){if(v8)return iE;v8=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return iE=e,iE}var aE,b8;function a4e(){if(b8)return aE;b8=1;var e=db(),t=r4e(),n=Qj(),r=eZ(),i=i4e(),a=Jj(),o=1,s=2,l="[object Boolean]",c="[object Date]",d="[object Error]",A="[object Map]",h="[object Number]",m="[object RegExp]",b="[object Set]",g="[object String]",y="[object Symbol]",v="[object ArrayBuffer]",x="[object DataView]",B=e?e.prototype:void 0,C=B?B.valueOf:void 0;function E(T,j,O,L,z,F,M){switch(O){case x:if(T.byteLength!=j.byteLength||T.byteOffset!=j.byteOffset)return!1;T=T.buffer,j=j.buffer;case v:return!(T.byteLength!=j.byteLength||!F(new t(T),new t(j)));case l:case c:case h:return n(+T,+j);case d:return T.name==j.name&&T.message==j.message;case m:case g:return T==j+"";case A:var V=i;case b:var q=L&o;if(V||(V=a),T.size!=j.size&&!q)return!1;var W=M.get(T);if(W)return W==j;L|=s,M.set(T,j);var ee=r(V(T),V(j),L,z,F,M);return M.delete(T),ee;case y:if(C)return C.call(T)==C.call(j)}return!1}return aE=E,aE}var oE,w8;function tZ(){if(w8)return oE;w8=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return oE=e,oE}var sE,x8;function o4e(){if(x8)return sE;x8=1;var e=tZ(),t=$o();function n(r,i,a){var o=i(r);return t(r)?o:e(o,a(r))}return sE=n,sE}var lE,S8;function s4e(){if(S8)return lE;S8=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,o=[];++r<i;){var s=t[r];n(s,r,t)&&(o[a++]=s)}return o}return lE=e,lE}var cE,B8;function l4e(){if(B8)return cE;B8=1;function e(){return[]}return cE=e,cE}var uE,C8;function c4e(){if(C8)return uE;C8=1;var e=s4e(),t=l4e(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return r.call(o,s)}))}:t;return uE=a,uE}var dE,k8;function u4e(){if(k8)return dE;k8=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return dE=e,dE}var AE,E8;function d4e(){if(E8)return AE;E8=1;var e=fd(),t=hd(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return AE=r,AE}var fE,N8;function Zj(){if(N8)return fE;N8=1;var e=d4e(),t=hd(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return fE=a,fE}var rv={exports:{}},hE,T8;function A4e(){if(T8)return hE;T8=1;function e(){return!1}return hE=e,hE}rv.exports;var _8;function nZ(){return _8||(_8=1,(function(e,t){var n=eu(),r=A4e(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(rv,rv.exports)),rv.exports}var pE,I8;function eO(){if(I8)return pE;I8=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return pE=n,pE}var mE,P8;function tO(){if(P8)return mE;P8=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return mE=t,mE}var gE,j8;function f4e(){if(j8)return gE;j8=1;var e=fd(),t=tO(),n=hd(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",d="[object Number]",A="[object Object]",h="[object RegExp]",m="[object Set]",b="[object String]",g="[object WeakMap]",y="[object ArrayBuffer]",v="[object DataView]",x="[object Float32Array]",B="[object Float64Array
1349]",C="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",j="[object Uint8Array]",O="[object Uint8ClampedArray]",L="[object Uint16Array]",z="[object Uint32Array]",F={};F[x]=F[B]=F[C]=F[E]=F[T]=F[j]=F[O]=F[L]=F[z]=!0,F[r]=F[i]=F[y]=F[a]=F[v]=F[o]=F[s]=F[l]=F[c]=F[d]=F[A]=F[h]=F[m]=F[b]=F[g]=!1;function M(V){return n(V)&&t(V.length)&&!!F[e(V)]}return gE=M,gE}var yE,O8;function rZ(){if(O8)return yE;O8=1;function e(t){return function(n){return t(n)}}return yE=e,yE}var iv={exports:{}};iv.exports;var F8;function h4e(){return F8||(F8=1,(function(e,t){var n=xJ(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(iv,iv.exports)),iv.exports}var vE,L8;function iZ(){if(L8)return vE;L8=1;var e=f4e(),t=rZ(),n=h4e(),r=n&&n.isTypedArray,i=r?t(r):e;return vE=i,vE}var bE,D8;function p4e(){if(D8)return bE;D8=1;var e=u4e(),t=Zj(),n=$o(),r=nZ(),i=eO(),a=iZ(),o=Object.prototype,s=o.hasOwnProperty;function l(c,d){var A=n(c),h=!A&&t(c),m=!A&&!h&&r(c),b=!A&&!h&&!m&&a(c),g=A||h||m||b,y=g?e(c.length,String):[],v=y.length;for(var x in c)(d||s.call(c,x))&&!(g&&(x=="length"||m&&(x=="offset"||x=="parent")||b&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,v)))&&y.push(x);return y}return bE=l,bE}var wE,M8;function m4e(){if(M8)return wE;M8=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return wE=t,wE}var xE,U8;function aZ(){if(U8)return xE;U8=1;function e(t,n){return function(r){return t(n(r))}}return xE=e,xE}var SE,R8;function g4e(){if(R8)return SE;R8=1;var e=aZ(),t=e(Object.keys,Object);return SE=t,SE}var BE,Q8;function y4e(){if(Q8)return BE;Q8=1;var e=m4e(),t=g4e(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&o.push(s);return o}return BE=i,BE}var CE,H8;function Ab(){if(H8)return CE;H8=1;var e=Rj(),t=tO();function n(r){return r!=null&&t(r.length)&&!e(r)}return CE=n,CE}var kE,$8;function DS(){if($8)return kE;$8=1;var e=p4e(),t=y4e(),n=Ab();function r(i){return n(i)?e(i):t(i)}return kE=r,kE}var EE,q8;function v4e(){if(q8)return EE;q8=1;var e=o4e(),t=c4e(),n=DS();function r(i){return e(i,n,t)}return EE=r,EE}var NE,z8;function b4e(){if(z8)return NE;z8=1;var e=v4e(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,s,l,c,d){var A=s&t,h=e(a),m=h.length,b=e(o),g=b.length;if(m!=g&&!A)return!1;for(var y=m;y--;){var v=h[y];if(!(A?v in o:r.call(o,v)))return!1}var x=d.get(a),B=d.get(o);if(x&&B)return x==o&&B==a;var C=!0;d.set(a,o),d.set(o,a);for(var E=A;++y<m;){v=h[y];var T=a[v],j=o[v];if(l)var O=A?l(j,T,v,o,a,d):l(T,j,v,a,o,d);if(!(O===void 0?T===j||c(T,j,s,l,d):O)){C=!1;break}E||(E=v=="constructor")}if(C&&!E){var L=a.constructor,z=o.constructor;L!=z&&"constructor"in a&&"constructor"in o&&!(typeof L=="function"&&L instanceof L&&typeof z=="function"&&z instanceof z)&&(C=!1)}return d.delete(a),d.delete(o),C}return NE=i,NE}var TE,V8;function w4e(){if(V8)return TE;V8=1;var e=zh(),t=eu(),n=e(t,"DataView");return TE=n,TE}var _E,W8;function x4e(){if(W8)return _E;W8=1;var e=zh(),t=eu(),n=e(t,"Promise");return _E=n,_E}var IE,K8;
vendor: 1,236 bytes, line 1349
1349function oZ(){if(K8)return IE;K8=1;var e=zh(),t=eu(),n=e(t,"Set");return IE=n,IE}var PE,G8;function S4e(){if(G8)return PE;G8=1;var e=zh(),t=eu(),n=e(t,"WeakMap");return PE=n,PE}var jE,Y8;function B4e(){if(Y8)return jE;Y8=1;var e=w4e(),t=Hj(),n=x4e(),r=oZ(),i=S4e(),a=fd(),o=SJ(),s="[object Map]",l="[object Object]",c="[object Promise]",d="[object Set]",A="[object WeakMap]",h="[object DataView]",m=o(e),b=o(t),g=o(n),y=o(r),v=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=s||n&&x(n.resolve())!=c||r&&x(new r)!=d||i&&x(new i)!=A)&&(x=function(B){var C=a(B),E=C==l?B.constructor:void 0,T=E?o(E):"";if(T)switch(T){case m:return h;case b:return s;case g:return c;case y:return d;case v:return A}return C}),jE=x,jE}var OE,X8;function C4e(){if(X8)return OE;X8=1;var e=YJ(),t=eZ(),n=a4e(),r=b4e(),i=B4e(),a=$o(),o=nZ(),s=iZ(),l=1,c="[object Arguments]",d="[object Array]",A="[object Object]",h=Object.prototype,m=h.hasOwnProperty;function b(g,y,v,x,B,C){var E=a(g),T=a(y),j=E?d:i(g),O=T?d:i(y);j=j==c?A:j,O=O==c?A:O;var L=j==A,z=O==A,F=j==O;if(F&&o(g)){if(!o(y))return!1;E=!0,L=!1}if(F&&!L)return C||(C=new e),E||s(g)?t(g,y,v,x,B,C):n(g,y,j,v,x,B,C);if(!(v&l)){var M=L&&m.call(g,"__wrapped__"),V=z&&m.call(y,"__wrapped__");
vendor: 48,983 bytes, lines 1349-1357
1349if(M||V){var q=M?g.value():g,W=V?y.value():y;return C||(C=new e),B(q,W,v,x,C)}}return F?(C||(C=new e),r(g,y,v,x,B,C)):!1}return OE=b,OE}var FE,J8;function nO(){if(J8)return FE;J8=1;var e=C4e(),t=hd();function n(r,i,a,o,s){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,o,n,s)}return FE=n,FE}var LE,Z8;function k4e(){if(Z8)return LE;Z8=1;var e=YJ(),t=nO(),n=1,r=2;function i(a,o,s,l){var c=s.length,d=c,A=!l;if(a==null)return!d;for(a=Object(a);c--;){var h=s[c];if(A&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++c<d;){h=s[c];var m=h[0],b=a[m],g=h[1];if(A&&h[2]){if(b===void 0&&!(m in a))return!1}else{var y=new e;if(l)var v=l(b,g,m,a,o,y);if(!(v===void 0?t(g,b,n|r,l,y):v))return!1}}return!0}return LE=i,LE}var DE,eQ;function sZ(){if(eQ)return DE;eQ=1;var e=XA();function t(n){return n===n&&!e(n)}return DE=t,DE}var ME,tQ;function E4e(){if(tQ)return ME;tQ=1;var e=sZ(),t=DS();function n(r){for(var i=t(r),a=i.length;a--;){var o=i[a],s=r[o];i[a]=[o,s,e(s)]}return i}return ME=n,ME}var UE,nQ;function lZ(){if(nQ)return UE;nQ=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return UE=e,UE}var RE,rQ;function N4e(){if(rQ)return RE;rQ=1;var e=k4e(),t=E4e(),n=lZ();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return RE=r,RE}var QE,iQ;function T4e(){if(iQ)return QE;iQ=1;function e(t,n){return t!=null&&n in Object(t)}return QE=e,QE}var HE,aQ;function _4e(){if(aQ)return HE;aQ=1;var e=kJ(),t=Zj(),n=$o(),r=eO(),i=tO(),a=IS();function o(s,l,c){l=e(l,s);for(var d=-1,A=l.length,h=!1;++d<A;){var m=a(l[d]);if(!(h=s!=null&&c(s,m)))break;s=s[m]}return h||++d!=A?h:(A=s==null?0:s.length,!!A&&i(A)&&r(m,A)&&(n(s)||t(s)))}return HE=o,HE}var $E,oQ;function I4e(){if(oQ)return $E;oQ=1;var e=T4e(),t=_4e();function n(r,i){return r!=null&&t(r,i,e)}return $E=n,$E}var qE,sQ;function P4e(){if(sQ)return qE;sQ=1;var e=nO(),t=EJ(),n=I4e(),r=Uj(),i=sZ(),a=lZ(),o=IS(),s=1,l=2;function c(d,A){return r(d)&&i(A)?a(o(d),A):function(h){var m=t(h,d);return m===void 0&&m===A?n(h,d):e(A,m,s|l)}}return qE=c,qE}var zE,lQ;function Lg(){if(lQ)return zE;lQ=1;function e(t){return t}return zE=e,zE}var VE,cQ;function j4e(){if(cQ)return VE;cQ=1;function e(t){return function(n){return n==null?void 0:n[t]}}return VE=e,VE}var WE,uQ;function O4e(){if(uQ)return WE;uQ=1;var e=zj();function t(n){return function(r){return e(r,n)}}return WE=t,WE}var KE,dQ;function F4e(){if(dQ)return KE;dQ=1;var e=j4e(),t=O4e(),n=Uj(),r=IS();function i(a){return n(a)?e(r(a)):t(a)}return KE=i,KE}var GE,AQ;function JA(){if(AQ)return GE;AQ=1;var e=N4e(),t=P4e(),n=Lg(),r=$o(),i=F4e();function a(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return GE=a,GE}var YE,fQ;function cZ(){if(fQ)return YE;fQ=1;function e(t,n,r,i){for(var a=t.length,o=r+(i?1:-1);i?o--:++o<a;)if(n(t[o],o,t))return o;return-1}return YE=e,YE}var XE,hQ;function L4e(){if(hQ)return XE;hQ=1;function e(t){return t!==t}return XE=e,XE}var JE,pQ;function D4e(){if(pQ)return JE;pQ=1;function e(t,n,r){for(var i=r-1,a=t.length;++i<a;)if(t[i]===n)return i;return-1}return JE=e,JE}var ZE,mQ;function M4e(){if(mQ)return ZE;mQ=1;var e=cZ(),t=L4e(),n=D4e();function r(i,a,o){return a===a?n(i,a,o):e(i,t,o)}return ZE=r,ZE}var e4,gQ;function U4e(){if(gQ)return e4;gQ=1;var e=M4e();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return e4=t,e4}var t4,yQ;function R4e(){if(yQ)return t4;yQ=1;function e(t,n,r){for(var i=-1,a=t==null?0:t.length;++i<a;)if(r(n,t[i]))return!0;return!1}return t4=e,t4}var n4,vQ;function Q4e(){if(vQ)return n4;vQ=1;function e(){}return n4=e,n4}var r4,bQ;function H4e(){if(bQ)return r4;bQ=1;var e=oZ(),t=Q4e(),n=Jj(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return r4=i,r4}var i4,wQ;function $4e(){if(wQ)return i4;wQ=1;var e=XJ(),t=U4e(),n=R4e(),r=ZJ(),i=H4e(),a=Jj(),o=200;function s(l,c,d){var A=-1,h=t,m=l.length,b=!0,g=[],y=g;if(d)b=!1,h=n;else if(m>=o){var v=c?null:i(l);if(v)return a(v);b=!1,h=r,y=new e}else y=c?[]:g;e:for(;++A<m;){var x=l[A],B=c?c(x):x;if(x=d||x!==0?x:0,b&&B===B){for(var C=y.length;C--;)if(y[C]===B)continue e;c&&y.push(B),g.push(x)}else h(y,B,d)||(y!==g&&y.push(B),g.push(x))}return g}return i4=s,i4}var a4,xQ;function q4e(){if(xQ)return a4;xQ=1;var e=JA(),t=$4e();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return a4=n,a4}var z4e=q4e();const SQ=nr(z4e);function uZ(e,t,n){return t===!0?SQ(e,n):bn(t)?SQ(e,t):e}function Vm(e){"@babel/helpers - typeof";return Vm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vm(e)}var V4e=["ref"];function BQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BQ(Object(n),!0).forEach(function(r){MS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BQ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CQ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AZ(r.key),r)}}function K4e(e,t,n){return t&&CQ(e.prototype,t),n&&CQ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function G4e(e,t,n){return t=_1(t),Y4e(e,dZ()?Reflect.construct(t,n||[],_1(e).constructor):t.apply(e,n))}function Y4e(e,t){if(t&&(Vm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X4e(e)}function X4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dZ=function(){return!!e})()}function _1(e){return _1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_1(e)}function J4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iI(e,t)}function iI(e,t){return iI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},iI(e,t)}function MS(e,t,n){return t=AZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AZ(e){var t=Z4e(e,"string");return Vm(t)=="symbol"?t:t+""}function Z4e(e,t){if(Vm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function eNe(e,t){if(e==null)return{};var n=tNe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tNe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nNe(e){return e.value}function rNe(e,t){if(me.isValidElement(e))return me.cloneElement(e,t);if(typeof e=="function")return me.createElement(e,t);t.ref;var n=eNe(t,V4e);return me.createElement(Xj,n)}var kQ=1,ed=(function(e){function t(){var n;W4e(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=G4e(this,t,[].concat(i)),MS(n,"lastBoundingBox",{width:-1,height:-1}),n}return J4e(t,e),K4e(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>kQ||Math.abs(i.height-this.lastBoundingBox.height)>kQ)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Uu({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,c=i.chartWidth,d=i.chartHeight,A,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&a==="vertical"){var m=this.getBBoxSnapshot();A={left:((c||0)-m.width)/2}}else A=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var b=this.getBBoxSnapshot();h={top:((d||0)-b.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Uu(Uu({},A),h)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,c=i.payloadUniqBy,d=i.payload,A=Uu(Uu({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return me.createElement("div",{className:"recharts-legend-wrapper",style:A,ref:function(m){r.wrapperNode=m}},rNe(a,Uu(Uu({},this.props),{},{payload:uZ(d,c,nNe)})))}}],[{key:"getWithHeight",value:function(r,i){var a=Uu(Uu({},this.defaultProps),r.props),o=a.layout;return o==="vertical"&&dt(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}])})(_.PureComponent);MS(ed,"displayName","Legend");MS(ed,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var o4,EQ;function iNe(){if(EQ)return o4;EQ=1;var e=db(),t=Zj(),n=$o(),r=e?e.isConcatSpreadable:void 0;function i(a){return n(a)||t(a)||!!(r&&a&&a[r])}return o4=i,o4}var s4,NQ;function fZ(){if(NQ)return s4;NQ=1;var e=tZ(),t=iNe();function n(r,i,a,o,s){var l=-1,c=r.length;for(a||(a=t),s||(s=[]);++l<c;){var d=r[l];i>0&&a(d)?i>1?n(d,i-1,a,o,s):e(s,d):o||(s[s.length]=d)}return s}return s4=n,s4}var l4,TQ;function aNe(){if(TQ)return l4;TQ=1;function e(t){return function(n,r,i){for(var a=-1,o=Object(n),s=i(n),l=s.length;l--;){var c=s[t?l:++a];if(r(o[c],c,o)===!1)break}return n}}return l4=e,l4}var c4,_Q;function oNe(){if(_Q)return c4;_Q=1;var e=aNe(),t=e();return c4=t,c4}var u4,IQ;function hZ(){if(IQ)return u4;IQ=1;var e=oNe(),t=DS();function n(r,i){return r&&e(r,i,t)}return u4=n,u4}var d4,PQ;function sNe(){if(PQ)return d4;PQ=1;var e=Ab();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var o=i.length,s=r?o:-1,l=Object(i);(r?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return d4=t,d4}var A4,jQ;function rO(){if(jQ)return A4;jQ=1;var e=hZ(),t=sNe(),n=t(e);return A4=n,A4}var f4,OQ;function pZ(){if(OQ)return f4;OQ=1;var e=rO(),t=Ab();function n(r,i){var a=-1,o=t(r)?Array(r.length):[];return e(r,function(s,l,c){o[++a]=i(s,l,c)}),o}return f4=n,f4}var h4,FQ;function lNe(){if(FQ)return h4;FQ=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return h4=e,h4}var p4,LQ;function cNe(){if(LQ)return p4;LQ=1;var e=jg();function t(n,r){if(n!==r){var i=n!==void 0,a=n===null,o=n===n,s=e(n),l=r!==void 0,c=r===null,d=r===r,A=e(r);if(!c&&!A&&!s&&n>r||s&&l&&d&&!c&&!A||a&&l&&d||!i&&d||!o)return 1;if(!a&&!s&&!A&&n<r||A&&i&&o&&!a&&!s||c&&i&&o||!l&&o||!d)return-1}return 0}return p4=t,p4}var m4,DQ;function uNe(){if(DQ)return m4;DQ=1;var e=cNe();function t(n,r,i){for(var a=-1,o=n.criteria,s=r.criteria,l=o.length,c=i.length;++a<l;){var d=e(o[a],s[a]);if(d){if(a>=c)return d;var A=i[a];return d*(A=="desc"?-1:1)}}return n.index-r.index}return m4=t,m4}var g4,MQ;function dNe(){if(MQ)return g4;MQ=1;var e=qj(),t=zj(),n=JA(),r=pZ(),i=lNe(),a=rZ(),o=uNe(),s=Lg(),l=$o();function c(d,A,h){A.length?A=e(A,function(g){return l(g)?function(y){return t(y,g.length===1?g[0]:g)}:g}):A=[s];var m=-1;A=e(A,a(n));var b=r(d,function(g,y,v){var x=e(A,function(B){return B(g)});return{criteria:x,index:++m,value:g}});return i(b,function(g,y){return o(g,y,h)})}return g4=c,g4}var y4,UQ;function ANe(){if(UQ)return y4;UQ=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return y4=e,y4}var v4,RQ;function fNe(){if(RQ)return v4;RQ=1;var e=ANe(),t=Math.max;function n(r,i,a){return i=t(i===void 0?r.length-1:i,0),function(){for(var o=arguments,s=-1,l=t(o.length-i,0),c=Array(l);++s<l;)c[s]=o[i+s];s=-1;for(var d=Array(i+1);++s<i;)d[s]=o[s];return d[i]=a(c),e(r,this,d)}}return v4=n,v4}var b4,QQ;function hNe(){if(QQ)return b4;QQ=1;function e(t){return function(){return t}}return b4=e,b4}var w4,HQ;function mZ(){if(HQ)return w4;HQ=1;var e=zh(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return w4=t,w4}var x4,$Q;function pNe(){if($Q)return x4;$Q=1;var e=hNe(),t=mZ(),n=Lg(),r=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return x4=r,x4}var S4,qQ;function mNe(){if(qQ)return S4;qQ=1;var e=800,t=16,n=Date.now;function r(i){var a=0,o=0;return function(){var s=n(),l=t-(s-o);if(o=s,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return S4=r,S4}var B4,zQ;function gNe(){if(zQ)return B4;zQ=1;var e=pNe(),t=mNe(),n=t(e);return B4=n,B4}var C4,VQ;function yNe(){if(VQ)return C4;VQ=1;var e=Lg(),t=fNe(),n=gNe();function r(i,a){return n(t(i,a,e),i+"")}return C4=r,C4}var k4,WQ;function US(){if(WQ)return k4;WQ=1;var e=Qj(),t=Ab(),n=eO(),r=XA();function i(a,o,s){if(!r(s))return!1;var l=typeof o;return(l=="number"?t(s)&&n(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return k4=i,k4}var E4,KQ;function vNe(){if(KQ)return E4;KQ=1;var e=fZ(),t=dNe(),n=yNe(),r=US(),i=n(function(a,o){if(a==null)return[];var s=o.length;return s>1&&r(a,o[0],o[1])?o=[]:s>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return E4=i,E4}var bNe=vNe();const iO=nr(bNe);function e0(e){"@babel/helpers - typeof";return e0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e0(e)}function aI(){return aI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aI.apply(this,arguments)}function wNe(e,t){return CNe(e)||BNe(e,t)||SNe(e,t)||xNe()}function xNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1350In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SNe(e,t){if(e){if(typeof e=="string")return GQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GQ(e,t)}}function GQ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function CNe(e){if(Array.isArray(e))return e}function YQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function N4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YQ(Object(n),!0).forEach(function(r){kNe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YQ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kNe(e,t,n){return t=ENe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ENe(e){var t=NNe(e,"string");return e0(t)=="symbol"?t:t+""}function NNe(e,t){if(e0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(e0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TNe(e){return Array.isArray(e)&&Xi(e[0])&&Xi(e[1])?e.join(" ~ "):e}var _Ne=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,c=l===void 0?{}:l,d=t.payload,A=t.formatter,h=t.itemSorter,m=t.wrapperClassName,b=t.labelClassName,g=t.label,y=t.labelFormatter,v=t.accessibilityLayer,x=v===void 0?!1:v,B=function(){if(d&&d.length){var M={padding:0,margin:0},V=(h?iO(d,h):d).map(function(q,W){if(q.type==="none")return null;var ee=N4({display:"block",paddingTop:4,paddingBottom:4,color:q.color||"#000"},s),ne=q.formatter||A||TNe,K=q.value,oe=q.name,$=K,X=oe;if(ne&&$!=null&&X!=null){var Q=ne(K,oe,q,W,d);if(Array.isArray(Q)){var R=wNe(Q,2);$=R[0],X=R[1]}else $=Q}return me.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:ee},Xi(X)?me.createElement("span",{className:"recharts-tooltip-item-name"},X):null,Xi(X)?me.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,me.createElement("span",{className:"recharts-tooltip-item-value"},$),me.createElement("span",{className:"recharts-tooltip-item-unit"},q.unit||""))});return me.createElement("ul",{className:"recharts-tooltip-item-list",style:M},V)}return null},C=N4({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),E=N4({margin:0},c),T=!An(g),j=T?g:"",O=Cn("recharts-default-tooltip",m),L=Cn("recharts-tooltip-label",b);T&&y&&d!==void 0&&d!==null&&(j=y(g,d));var z=x?{role:"status","aria-live":"assertive"}:{};return me.createElement("div",aI({className:O,style:C},z),me.createElement("p",{className:L,style:E},me.isValidElement(j)?j:"".concat(j)),B())};function t0(e){"@babel/helpers - typeof";return t0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t0(e)}function Cw(e,t,n){return t=INe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function INe(e){var t=PNe(e,"string");return t0(t)=="symbol"?t:t+""}function PNe(e,t){if(t0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(t0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iy="recharts-tooltip-wrapper",jNe={visibility:"hidden"};function ONe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Cn(Iy,Cw(Cw(Cw(Cw({},"".concat(Iy,"-right"),dt(n)&&t&&dt(t.x)&&n>=t.x),"".concat(Iy,"-left"),dt(n)&&t&&dt(t.x)&&n<t.x),"".concat(Iy,"-bottom"),dt(r)&&t&&dt(t.y)&&r>=t.y),"".concat(Iy,"-top"),dt(r)&&t&&dt(t.y)&&r<t.y))}function XQ(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(a&&dt(a[r]))return a[r];var d=n[r]-s-i,A=n[r]+i;if(t[r])return o[r]?d:A;if(o[r]){var h=d,m=l[r];return h<m?Math.max(A,l[r]):Math.max(d,l[r])}var b=A+s,g=l[r]+c;return b>g?Math.max(d,l[r]):Math.max(A,l[r])}function FNe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function LNe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,d,A;return o.height>0&&o.width>0&&n?(d=XQ({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),A=XQ({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=FNe({translateX:d,translateY:A,useTranslate3d:s})):c=jNe,{cssProperties:c,cssClasses:ONe({translateX:d,translateY:A,coordinate:n})}}function Wm(e){"@babel/helpers - typeof";return Wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wm(e)}function JQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ZQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JQ(Object(n),!0).forEach(function(r){sI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JQ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yZ(r.key),r)}}function UNe(e,t,n){return t&&MNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function RNe(e,t,n){return t=I1(t),QNe(e,gZ()?Reflect.construct(t,n||[],I1(e).constructor):t.apply(e,n))}function QNe(e,t){if(t&&(Wm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HNe(e)}function HNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gZ=function(){return!!e})()}function I1(e){return I1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},I1(e)}function $Ne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oI(e,t)}function oI(e,t){return oI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},oI(e,t)}function sI(e,t,n){return t=yZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yZ(e){var t=qNe(e,"string");return Wm(t)=="symbol"?t:t+""}function qNe(e,t){if(Wm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var e7=1,zNe=(function(e){function t(){var n;DNe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=RNe(this,t,[].concat(i)),sI(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),sI(n,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,c,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&c!==void 0?c:0}})}}),n}return $Ne(t,e),UNe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>e7||Math.abs(r.height-this.state.lastBoundingBox.height)>e7)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,c=i.children,d=i.coordinate,A=i.hasPayload,h=i.isAnimationActive,m=i.offset,b=i.position,g=i.reverseDirection,y=i.useTranslate3d,v=i.viewBox,x=i.wrapperStyle,B=LNe({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:m,position:b,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:v}),C=B.cssClasses,E=B.cssProperties,T=ZQ(ZQ({transition:h&&a?"transform ".concat(s,"ms ").concat(l):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&A?"visible":"hidden",position:"absolute",top:0,left:0},x);return me.createElement("div",{tabIndex:-1,className:C,style:T,ref:function(O){r.wrapperNode=O}},c)}}])})(_.PureComponent),VNe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ZA={isSsr:VNe()};function Km(e){"@babel/helpers - typeof";return Km=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Km(e)}function t7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function n7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t7(Object(n),!0).forEach(function(r){aO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bZ(r.key),r)}}function GNe(e,t,n){return t&&KNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YNe(e,t,n){return t=P1(t),XNe(e,vZ()?Reflect.construct(t,n||[],P1(e).constructor):t.apply(e,n))}function XNe(e,t){if(t&&(Km(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JNe(e)}function JNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vZ=function(){return!!e})()}function P1(e){return P1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},P1(e)}function ZNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lI(e,t)}function lI(e,t){return lI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lI(e,t)}function aO(e,t,n){return t=bZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bZ(e){var t=eTe(e,"string");return Km(t)=="symbol"?t:t+""}function eTe(e,t){if(Km(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Km(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function tTe(e){return e.dataKey}function nTe(e,t){return me.isValidElement(e)?me.cloneElement(e,t):typeof e=="function"?me.createElement(e,t):me.createElement(_Ne,t)}var di=(function(e){function t(){return WNe(this,t),YNe(this,t,arguments)}return ZNe(t,e),GNe(t,[{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,c=i.content,d=i.coordinate,A=i.filterNull,h=i.isAnimationActive,m=i.offset,b=i.payload,g=i.payloadUniqBy,y=i.position,v=i.reverseDirection,x=i.useTranslate3d,B=i.viewBox,C=i.wrapperStyle,E=b??[];A&&E.length&&(E=uZ(b.filter(function(j){return j.value!=null&&(j.hide!==!0||r.props.includeHidden)}),g,tTe));var T=E.length>0;return me.createElement(zNe,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:d,hasPayload:T,offset:m,position:y,reverseDirection:v,useTranslate3d:x,viewBox:B,wrapperStyle:C},nTe(c,n7(n7({},this.props),{},{payload:E})))}}])})(_.PureComponent);aO(di,"displayName","Tooltip");aO(di,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ZA.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var T4,r7;function rTe(){if(r7)return T4;r7=1;var e=eu(),t=function(){return e.Date.now()};return T4=t,T4}var _4,i7;function iTe(){if(i7)return _4;i7=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return _4=t,_4}var I4,a7;function aTe(){if(a7)return I4;a7=1;var e=iTe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return I4=n,I4}var P4,o7;function wZ(){if(o7)return P4;o7=1;var e=aTe(),t=XA(),n=jg(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=t(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=e(c);var A=a.test(c);return A||o.test(c)?s(c.slice(2),A?2:8):i.test(c)?r:+c}return P4=l,P4}var j4,s7;function oTe(){if(s7)return j4;s7=1;var e=XA(),t=rTe(),n=wZ(),r="Expected a function",i=Math.max,a=Math.min;function o(s,l,c){var d,A,h,m,b,g,y=0,v=!1,x=!1,B=!0;if(typeof s!="function")throw new TypeError(r);l=n(l)||0,e(c)&&(v=!!c.leading,x="maxWait"in c,h=x?i(n(c.maxWait)||0,l):h,B="trailing"in c?!!c.trailing:B);function C(V){var q=d,W=A;return d=A=void 0,y=V,m=s.apply(W,q),m}function E(V){return y=V,b=setTimeout(O,l),v?C(V):m}function T(V){var q=V-g,W=V-y,ee=l-q;return x?a(ee,h-W):ee}function j(V){var q=V-g,W=V-y;return g===void 0||q>=l||q<0||x&&W>=h}function O(){var V=t();if(j(V))return L(V);b=setTimeout(O,T(V))}function L(V){return b=void 0,B&&d?C(V):(d=A=void 0,m)}function z(){b!==void 0&&clearTimeout(b),y=0,d=g=A=b=void 0}function F(){return b===void 0?m:L(t())}function M(){var V=t(),q=j(V);if(d=arguments,A=this,g=V,q){if(b===void 0)return E(g);if(x)return clearTimeout(b),b=setTimeout(O,l),C(g)}return b===void 0&&(b=setTimeout(O,l)),m}return M.cancel=z,M.flush=F,M}return j4=o,j4}var O4,l7;function sTe(){if(l7)return O4;l7=1;var e=oTe(),t=XA(),n="Expected a function";function r(i,a,o){var s=!0,l=!0;if(typeof i!="function")throw new TypeError(n);return t(o)&&(s="leading"in o?!!o.leading:s,l="trailing"in o?!!o.trailing:l),e(i,a,{leading:s,maxWait:a,trailing:l})}return O4=r,O4}var lTe=sTe();const xZ=nr(lTe);function n0(e){"@babel/helpers - typeof";return n0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n0(e)}function c7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c7(Object(n),!0).forEach(function(r){cTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cTe(e,t,n){return t=uTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uTe(e){var t=dTe(e,"string");return n0(t)=="symbol"?t:t+""}function dTe(e,t){if(n0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(n0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ATe(e,t){return mTe(e)||pTe(e,t)||hTe(e,t)||fTe()}function fTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1351In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hTe(e,t){if(e){if(typeof e=="string")return u7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u7(e,t)}}function u7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function mTe(e){if(Array.isArray(e))return e}var hs=_.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,d=c===void 0?0:c,A=e.minHeight,h=e.maxHeight,m=e.children,b=e.debounce,g=b===void 0?0:b,y=e.id,v=e.className,x=e.onResize,B=e.style,C=B===void 0?{}:B,E=_.useRef(null),T=_.useRef();T.current=x,_.useImperativeHandle(t,function(){return Object.defineProperty(E.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current},configurable:!0})});var j=_.useState({containerWidth:i.width,containerHeight:i.height}),O=ATe(j,2),L=O[0],z=O[1],F=_.useCallback(function(V,q){z(function(W){var ee=Math.round(V),ne=Math.round(q);return W.containerWidth===ee&&W.containerHeight===ne?W:{containerWidth:ee,containerHeight:ne}})},[]);_.useEffect(function(){var V=function(oe){var $,X=oe[0].contentRect,Q=X.width,R=X.height;F(Q,R),($=T.current)===null||$===void 0||$.call(T,Q,R)};g>0&&(V=xZ(V,g,{trailing:!0,leading:!1}));var q=new ResizeObserver(V),W=E.current.getBoundingClientRect(),ee=W.width,ne=W.height;return F(ee,ne),q.observe(E.current),function(){q.disconnect()}},[F,g]);var M=_.useMemo(function(){var V=L.containerWidth,q=L.containerHeight;if(V<0||q<0)return null;fh(Jf(o)||Jf(l),`The width(%s) and height(%s) are both fixed numbers,
1352       maybe you don't need to use a ResponsiveContainer.`,o,l),fh(!n||n>0,"The aspect(%s) must be greater than zero.",n);var W=Jf(o)?V:o,ee=Jf(l)?q:l;n&&n>0&&(W?ee=W/n:ee&&(W=ee*n),h&&ee>h&&(ee=h)),fh(W>0||ee>0,`The width(%s) and height(%s) of chart should be greater than 0,
1353       please check the style of container, or the props width(%s) and height(%s),
1354       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
1355       height and width.`,W,ee,o,l,d,A,n);var ne=!Array.isArray(m)&&Zu(m.type).endsWith("Chart");return me.Children.map(m,function(K){return me.isValidElement(K)?_.cloneElement(K,kw({width:W,height:ee},ne?{style:kw({height:"100%",width:"100%",maxHeight:ee,maxWidth:W},K.props.style)}:{})):K})},[n,m,l,h,A,d,L,o]);return me.createElement("div",{id:y?"".concat(y):void 0,className:Cn("recharts-responsive-container",v),style:kw(kw({},C),{},{width:o,height:l,minWidth:d,minHeight:A,maxHeight:h}),ref:E},M)}),Zf=function(t){return null};Zf.displayName="Cell";function r0(e){"@babel/helpers - typeof";return r0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r0(e)}function d7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d7(Object(n),!0).forEach(function(r){gTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gTe(e,t,n){return t=yTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yTe(e){var t=vTe(e,"string");return r0(t)=="symbol"?t:t+""}function vTe(e,t){if(r0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(r0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dp={widthCache:{},cacheCount:0},bTe=2e3,wTe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},A7="recharts_measurement_span";function xTe(e){var t=cI({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var xv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ZA.isSsr)return{width:0,height:0};var r=xTe(n),i=JSON.stringify({text:t,copyStyle:r});if(Dp.widthCache[i])return Dp.widthCache[i];try{var a=document.getElementById(A7);a||(a=document.createElement("span"),a.setAttribute("id",A7),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=cI(cI({},wTe),r);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Dp.widthCache[i]=l,++Dp.cacheCount>bTe&&(Dp.cacheCount=0,Dp.widthCache={}),l}catch{return{width:0,height:0}}},STe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function i0(e){"@babel/helpers - typeof";return i0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i0(e)}function j1(e,t){return ETe(e)||kTe(e,t)||CTe(e,t)||BTe()}function BTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1356In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CTe(e,t){if(e){if(typeof e=="string")return f7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f7(e,t)}}function f7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function ETe(e){if(Array.isArray(e))return e}function NTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_Te(r.key),r)}}function TTe(e,t,n){return t&&h7(e.prototype,t),n&&h7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Te(e){var t=ITe(e,"string");return i0(t)=="symbol"?t:t+""}function ITe(e,t){if(i0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(i0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var p7=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,m7=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,PTe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,jTe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,SZ={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},OTe=Object.keys(SZ),lm="NaN";function FTe(e,t){return e*SZ[t]}var Ew=(function(){function e(t,n){NTe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!PTe.test(n)&&(this.num=NaN,this.unit=""),OTe.includes(n)&&(this.num=FTe(t,n),this.unit="px")}return TTe(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=jTe.exec(n))!==null&&r!==void 0?r:[],a=j1(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function BZ(e){if(e.includes(lm))return lm;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=p7.exec(t))!==null&&n!==void 0?n:[],i=j1(r,4),a=i[1],o=i[2],s=i[3],l=Ew.parse(a??""),c=Ew.parse(s??""),d=o==="*"?l.multiply(c):l.divide(c);if(d.isNaN())return lm;t=t.replace(p7,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var A,h=(A=m7.exec(t))!==null&&A!==void 0?A:[],m=j1(h,4),b=m[1],g=m[2],y=m[3],v=Ew.parse(b??""),x=Ew.parse(y??""),B=g==="+"?v.add(x):v.subtract(x);if(B.isNaN())return lm;t=t.replace(m7,B.toString())}return t}var g7=/\(([^()]*)\)/;function LTe(e){for(var t=e;t.includes("(");){var n=g7.exec(t),r=j1(n,2),i=r[1];t=t.replace(g7,BZ(i))}return t}function DTe(e){var t=e.replace(/\s+/g,"");return t=LTe(t),t=BZ(t),t}function MTe(e){try{return DTe(e)}catch{return lm}}function F4(e){var t=MTe(e.slice(5,-1));return t===lm?"":t}var UTe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],RTe=["dx","dy","angle","className","breakAll"];function uI(){return uI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uI.apply(this,arguments)}function y7(e,t){if(e==null)return{};var n=QTe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QTe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function v7(e,t){return zTe(e)||qTe(e,t)||$Te(e,t)||HTe()}function HTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1357In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Te(e,t){if(e){if(typeof e=="string")return b7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b7(e,t)}}function b7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function zTe(e){if(Array.isArray(e))return e}var CZ=/[ \f\n\r\t\v\u2028\u2029]+/,kZ=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var a=[];An(n)||(r?a=n.toString().split(""):a=n.toString().split(CZ));var o=a.map(function(l){return{word:l,width:xv(l,i).width}}),s=r?0:xv(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},VTe=function(t,n,r,i,a){var o=t.maxLines,s=t.children,l=t.style,c=t.breakAll,d=dt(o),A=s,h=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce(function(ee,ne){var K=ne.word,oe=ne.width,$=ee[ee.length-1];if($&&(i==null||a||$.width+oe+r<Number(i)))$.words.push(K),$.width+=oe+r;else{var X={words:[K],width:oe};ee.push(X)}return ee},[])},m=h(n),b=function(W){return W.reduce(function(ee,ne){return ee.width>ne.width?ee:ne})};if(!d)return m;for(var g="…",y=function(W){var ee=A.slice(0,W),ne=kZ({breakAll:c,style:l,children:ee+g}).wordsWithComputedWidth,K=h(ne),oe=K.length>o||b(K).width>Number(i);return[oe,K]},v=0,x=A.length-1,B=0,C;v<=x&&B<=A.length-1;){var E=Math.floor((v+x)/2),T=E-1,j=y(T),O=v7(j,2),L=O[0],z=O[1],F=y(E),M=v7(F,1),V=M[0];if(!L&&!V&&(v=E+1),L&&V&&(x=E-1),!L&&V){C=z;break}B++}return C||m},w7=function(t){var n=An(t)?[]:t.toString().split(CZ);return[{words:n}]},WTe=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((n||r)&&!ZA.isSsr){var l,c,d=kZ({breakAll:o,children:i,style:a});if(d){var A=d.wordsWithComputedWidth,h=d.spaceWidth;l=A,c=h}else return w7(i);return VTe({breakAll:o,children:i,maxLines:s,style:a},l,c,n,r)}return w7(i)},x7="#808080",O1=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,d=t.scaleToFit,A=d===void 0?!1:d,h=t.textAnchor,m=h===void 0?"start":h,b=t.verticalAnchor,g=b===void 0?"end":b,y=t.fill,v=y===void 0?x7:y,x=y7(t,UTe),B=_.useMemo(function(){return WTe({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:A,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,A,x.style,x.width]),C=x.dx,E=x.dy,T=x.angle,j=x.className,O=x.breakAll,L=y7(x,RTe);if(!Xi(r)||!Xi(a))return null;var z=r+(dt(C)?C:0),F=a+(dt(E)?E:0),M;switch(g){case"start":M=F4("calc(".concat(c,")"));break;case"middle":M=F4("calc(".concat((B.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:M=F4("calc(".concat(B.length-1," * -").concat(s,")"));break}var V=[];if(A){var q=B[0].width,W=x.width;V.push("scale(".concat((dt(W)?W/q:1)/q,")"))}return T&&V.push("rotate(".concat(T,", ").concat(z,", ").concat(F,")")),V.length&&(L.transform=V.join(" ")),me.createElement("text",uI({},mn(L,!0),{x:z,y:F,className:Cn("recharts-text",j),textAnchor:m,fill:v.includes("url")?x7:v}),B.map(function(ee,ne){var K=ee.words.join(O?"":" ");return me.createElement("tspan",{x:z,dy:ne===0?M:s,key:"".concat(K,"-").concat(ne)},K)}))};function TA(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function KTe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oO(e){let t,n,r;e.length!==2?(t=TA,n=(s,l)=>TA(e(s),l),r=(s,l)=>e(s)-l):(t=e===TA||e===KTe?e:GTe,n=e,r=e);
1357function i(s,l,c=0,d=s.length){if(c<d){if(t(l,l)!==0)return d;do{const A=c+d>>>1;n(s[A],l)<0?c=A+1:d=A}while(c<d)}return c}function a(s,l,c=0,d=s.length){if(c<d){if(t(l,l)!==0)return d;do{const A=c+d>>>1;n(s[A],l)<=0?c=A+1:d=A}while(c<d)}return c}function o(s,l,c=0,d=s.length){const A=i(s,l,c,d-1);return A>c&&r(s[A-1],l)>-r(s[A],l)?A-1:A}return{left:i,center:o,right:a}}function GTe(){return 0}function EZ(e){return e===null?NaN:+e}function*YTe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const XTe=oO(TA),fb=XTe.right;oO(EZ).center;class S7 extends Map{constructor(t,n=e_e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(B7(this,t))}has(t){return super.has(B7(this,t))}set(t,n){return super.set(JTe(this,t),n)}delete(t){return super.delete(ZTe(this,t))}}function B7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function JTe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function ZTe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function e_e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function t_e(e=TA){if(e===TA)return NZ;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function NZ(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const n_e=Math.sqrt(50),r_e=Math.sqrt(10),i_e=Math.sqrt(2);function F1(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=n_e?10:a>=r_e?5:a>=i_e?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?F1(e,t,n*2):[s,l,c]}function dI(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?F1(t,e,n):F1(e,t,n);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function AI(e,t,n){return t=+t,e=+e,n=+n,F1(e,t,n)[2]}function fI(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?AI(t,e,n):AI(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function C7(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function k7(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function TZ(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?NZ:t_e(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,d=Math.log(l),A=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*A*(l-A)/l)*(c-l/2<0?-1:1),m=Math.max(n,Math.floor(t-c*A/l+h)),b=Math.min(r,Math.floor(t+(l-c)*A/l+h));TZ(e,t,m,b,i)}const a=e[t];let o=n,s=r;for(Py(e,n,t),i(e[r],a)>0&&Py(e,n,r);o<s;){for(Py(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?Py(e,n,s):(++s,Py(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Py(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function a_e(e,t,n){if(e=Float64Array.from(YTe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return k7(e);if(t>=1)return C7(e);var r,i=(r-1)*t,a=Math.floor(i),o=C7(TZ(e,a).subarray(0,a+1)),s=k7(e.subarray(a+1));return o+(s-o)*(i-a)}}function o_e(e,t,n=EZ){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function s_e(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function ul(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function pd(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 13,229 bytes, line 1357
1357const hI=Symbol("implicit");function sO(){var e=new S7,t=[],n=[],r=hI;function i(a){let o=e.get(a);if(o===void 0){if(r!==hI)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new S7;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return sO(t,n).unknown(r)},ul.apply(i,arguments),i}function a0(){var e=sO().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,l=0,c=0,d=.5;delete e.unknown;function A(){var h=t().length,m=i<r,b=m?i:r,g=m?r:i;a=(g-b)/Math.max(1,h-l+c*2),s&&(a=Math.floor(a)),b+=(g-b-a*(h-l))*d,o=a*(1-l),s&&(b=Math.round(b),o=Math.round(o));var y=s_e(h).map(function(v){return b+a*v});return n(m?y.reverse():y)}return e.domain=function(h){return arguments.length?(t(h),A()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,A()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,A()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,A()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),A()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),A()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,A()):c},e.align=function(h){return arguments.length?(d=Math.max(0,Math.min(1,h)),A()):d},e.copy=function(){return a0(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(d)},ul.apply(A(),arguments)}function _Z(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _Z(t())},e}function Sv(){return _Z(a0.apply(null,arguments).paddingInner(1))}function lO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function IZ(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function hb(){}var o0=.7,L1=1/o0,vm="\\s*([+-]?\\d+)\\s*",s0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l_e=/^#([0-9a-f]{3,8})$/,c_e=new RegExp(`^rgb\\(${vm},${vm},${vm}\\)$`),u_e=new RegExp(`^rgb\\(${Vc},${Vc},${Vc}\\)$`),d_e=new RegExp(`^rgba\\(${vm},${vm},${vm},${s0}\\)$`),A_e=new RegExp(`^rgba\\(${Vc},${Vc},${Vc},${s0}\\)$`),f_e=new RegExp(`^hsl\\(${s0},${Vc},${Vc}\\)$`),h_e=new RegExp(`^hsla\\(${s0},${Vc},${Vc},${s0}\\)$`),E7={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};lO(hb,l0,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:N7,formatHex:N7,formatHex8:p_e,formatHsl:m_e,formatRgb:T7,toString:T7});function N7(){return this.rgb().formatHex()}function p_e(){return this.rgb().formatHex8()}function m_e(){return PZ(this).formatHsl()}function T7(){return this.rgb().formatRgb()}function l0(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=l_e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_7(t):n===3?new Do(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Nw(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Nw(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=c_e.exec(e))?new Do(t[1],t[2],t[3],1):(t=u_e.exec(e))?new Do(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=d_e.exec(e))?Nw(t[1],t[2],t[3],t[4]):(t=A_e.exec(e))?Nw(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=f_e.exec(e))?j7(t[1],t[2]/100,t[3]/100,1):(t=h_e.exec(e))?j7(t[1],t[2]/100,t[3]/100,t[4]):E7.hasOwnProperty(e)?_7(E7[e]):e==="transparent"?new Do(NaN,NaN,NaN,0):null}function _7(e){return new Do(e>>16&255,e>>8&255,e&255,1)}function Nw(e,t,n,r){return r<=0&&(e=t=n=NaN),new Do(e,t,n,r)}function g_e(e){return e instanceof hb||(e=l0(e)),e?(e=e.rgb(),new Do(e.r,e.g,e.b,e.opacity)):new Do}function pI(e,t,n,r){return arguments.length===1?g_e(e):new Do(e,t,n,r??1)}function Do(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}lO(Do,pI,IZ(hb,{brighter(e){return e=e==null?L1:Math.pow(L1,e),new Do(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?o0:Math.pow(o0,e),new Do(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Do(hh(this.r),hh(this.g),hh(this.b),D1(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:I7,formatHex:I7,formatHex8:y_e,formatRgb:P7,toString:P7}));function I7(){return`#${eh(this.r)}${eh(this.g)}${eh(this.b)}`}function y_e(){return`#${eh(this.r)}${eh(this.g)}${eh(this.b)}${eh((isNaN(this.opacity)?1:this.opacity)*255)}`}function P7(){const e=D1(this.opacity);return`${e===1?"rgb(":"rgba("}${hh(this.r)}, ${hh(this.g)}, ${hh(this.b)}${e===1?")":`, ${e})`}`}function D1(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function eh(e){return e=hh(e),(e<16?"0":"")+e.toString(16)}function j7(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new zl(e,t,n,r)}function PZ(e){if(e instanceof zl)return new zl(e.h,e.s,e.l,e.opacity);if(e instanceof hb||(e=l0(e)),!e)return new zl;if(e instanceof zl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new zl(o,s,l,e.opacity)}function v_e(e,t,n,r){return arguments.length===1?PZ(e):new zl(e,t,n,r??1)}function zl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}lO(zl,v_e,IZ(hb,{brighter(e){return e=e==null?L1:Math.pow(L1,e),new zl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?o0:Math.pow(o0,e),new zl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Do(L4(e>=240?e-240:e+120,i,r),L4(e,i,r),L4(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new zl(O7(this.h),Tw(this.s),Tw(this.l),D1(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 e=D1(this.opacity);return`${e===1?"hsl(":"hsla("}${O7(this.h)}, ${Tw(this.s)*100}%, ${Tw(this.l)*100}%${e===1?")":`, ${e})`}`}}));function O7(e){return e=(e||0)%360,e<0?e+360:e}function Tw(e){return Math.max(0,Math.min(1,e||0))}function L4(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const cO=e=>()=>e;function b_e(e,t){return function(n){return e+n*t}}function w_e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function x_e(e){return(e=+e)==1?jZ:function(t,n){return n-t?w_e(t,n,e):cO(isNaN(t)?n:t)}}function jZ(e,t){var n=t-e;return n?b_e(e,n):cO(isNaN(e)?t:e)}const F7=(function e(t){var n=x_e(t);function r(i,a){var o=n((i=pI(i)).r,(a=pI(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),c=jZ(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=s(d),i.b=l(d),i.opacity=c(d),i+""}}return r.gamma=e,r})(1);function S_e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function B_e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function C_e(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Dg(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function k_e(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function M1(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function E_e(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Dg(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var mI=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,D4=new RegExp(mI.source,"g");function N_e(e){return function(){return e}}function T_e(e){return function(t){return e(t)+""}}function __e(e,t){var n=mI.lastIndex=D4.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=mI.exec(e))&&(i=D4.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:M1(r,i)})),n=D4.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?T_e(l[0].x):N_e(t):(t=l.length,function(c){for(var d=0,A;d<t;++d)s[(A=l[d]).i]=A.x(c);return s.join("")})}function Dg(e,t){var n=typeof t,r;return t==null||n==="boolean"?cO(t):(n==="number"?M1:n==="string"?(r=l0(t))?(t=r,F7):__e:t instanceof l0?F7:t instanceof Date?k_e:B_e(t)?S_e:Array.isArray(t)?C_e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?E_e:M1)(e,t)}function uO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function I_e(e,t){t===void 0&&(t=e,e=Dg);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var s=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[s](o-s)}}function P_e(e){return function(){return e}}function U1(e){return+e}var L7=[0,1];function vo(e){return e}function gI(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:P_e(isNaN(t)?NaN:.5)}function j_e(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function O_e(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=gI(i,r),a=n(o,a)):(r=gI(r,i),a=n(a,o)),function(s){return a(r(s))}}function F_e(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=gI(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var l=fb(e,s,1,r)-1;return a[l](i[l](s))}}function pb(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function RS(){var e=L7,t=L7,n=Dg,r,i,a,o=vo,s,l,c;function d(){var h=Math.min(e.length,t.length);return o!==vo&&(o=j_e(e[0],e[h-1])),s=h>2?F_e:O_e,l=c=null,A}function A(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(r),t,n)))(r(o(h)))}return A.invert=function(h){return o(i((c||(c=s(t,e.map(r),M1)))(h)))},A.domain=function(h){return arguments.length?(e=Array.from(h,U1),d()):e.slice()},A.range=function(h){return arguments.length?(t=Array.from(h),d()):t.slice()},A.rangeRound=function(h){return t=Array.from(h),n=uO,d()},A.clamp=function(h){return arguments.length?(o=h?!0:vo,d()):o!==vo},A.interpolate=function(h){return arguments.length?(n=h,d()):n},A.unknown=function(h){return arguments.length?(a=h,A):a},function(h,m){return r=h,i=m,d()}}function dO(){return RS()(vo,vo)}
vendor: 4,519 bytes, line 1357
1357function L_e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function R1(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Gm(e){return e=R1(Math.abs(e)),e?e[1]:NaN}function D_e(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function M_e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var U_e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function c0(e){if(!(t=U_e.exec(e)))throw new Error("invalid format: "+e);var t;return new AO({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}c0.prototype=AO.prototype;function AO(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}AO.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 R_e(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Q1;function Q_e(e,t){var n=R1(e,t);if(!n)return Q1=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Q1=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+R1(e,Math.max(0,t+a-1))[0]}function D7(e,t){var n=R1(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const M7={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:L_e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>D7(e*100,t),r:D7,s:Q_e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function U7(e){return e}var R7=Array.prototype.map,Q7=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function H_e(e){var t=e.grouping===void 0||e.thousands===void 0?U7:D_e(R7.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?U7:M_e(R7.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(A,h){A=c0(A);var m=A.fill,b=A.align,g=A.sign,y=A.symbol,v=A.zero,x=A.width,B=A.comma,C=A.precision,E=A.trim,T=A.type;T==="n"?(B=!0,T="g"):M7[T]||(C===void 0&&(C=12),E=!0,T="g"),(v||m==="0"&&b==="=")&&(v=!0,m="0",b="=");var j=(h&&h.prefix!==void 0?h.prefix:"")+(y==="$"?n:y==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():""),O=(y==="$"?r:/[%p]/.test(T)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),L=M7[T],z=/[defgprs%]/.test(T);C=C===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function F(M){var V=j,q=O,W,ee,ne;if(T==="c")q=L(M)+q,M="";else{M=+M;var K=M<0||1/M<0;if(M=isNaN(M)?l:L(Math.abs(M),C),E&&(M=R_e(M)),K&&+M==0&&g!=="+"&&(K=!1),V=(K?g==="("?g:s:g==="-"||g==="("?"":g)+V,q=(T==="s"&&!isNaN(M)&&Q1!==void 0?Q7[8+Q1/3]:"")+q+(K&&g==="("?")":""),z){for(W=-1,ee=M.length;++W<ee;)if(ne=M.charCodeAt(W),48>ne||ne>57){q=(ne===46?i+M.slice(W+1):M.slice(W))+q,M=M.slice(0,W);break}}}B&&!v&&(M=t(M,1/0));var oe=V.length+M.length+q.length,$=oe<x?new Array(x-oe+1).join(m):"";switch(B&&v&&(M=t($+M,$.length?x-q.length:1/0),$=""),b){case"<":M=V+M+q+$;break;case"=":M=V+$+M+q;break;case"^":M=$.slice(0,oe=$.length>>1)+V+M+q+$.slice(oe);break;default:M=$+V+M+q;break}return a(M)}return F.toString=function(){return A+""},F}function d(A,h){var m=Math.max(-8,Math.min(8,Math.floor(Gm(h)/3)))*3,b=Math.pow(10,-m),g=c((A=c0(A),A.type="f",A),{suffix:
1357Q7[8+m/3]});return function(y){return g(b*y)}}return{format:c,formatPrefix:d}}var _w,fO,OZ;$_e({thousands:",",grouping:[3],currency:["$",""]});function $_e(e){return _w=H_e(e),fO=_w.format,OZ=_w.formatPrefix,_w}function q_e(e){return Math.max(0,-Gm(Math.abs(e)))}function z_e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Gm(t)/3)))*3-Gm(Math.abs(e)))}function V_e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Gm(t)-Gm(e))+1}function FZ(e,t,n,r){var i=fI(e,t,n),a;switch(r=c0(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=z_e(i,o))&&(r.precision=a),OZ(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=V_e(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=q_e(i))&&(r.precision=a-(r.type==="%")*2);break}}return fO(r)}function ef(e){var t=e.domain;return e.ticks=function(n){var r=t();return dI(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return FZ(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,c,d=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);d-- >0;){if(c=AI(o,s,n),c===l)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function H1(){var e=dO();return e.copy=function(){return pb(e,H1())},ul.apply(e,arguments),ef(e)}function LZ(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,U1),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return LZ(e).unknown(t)},e=arguments.length?Array.from(e,U1):[0,1],ef(n)}function DZ(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function H7(e){return Math.log(e)}function $7(e){return Math.exp(e)}function W_e(e){return-Math.log(-e)}function K_e(e){return-Math.exp(-e)}function G_e(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Y_e(e){return e===10?G_e:e===Math.E?Math.exp:t=>Math.pow(e,t)}function X_e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function q7(e){return(t,n)=>-e(-t,n)}function hO(e){const t=e(H7,$7),n=t.domain;let r=10,i,a;function o(){return i=X_e(r),a=Y_e(r),n()[0]<0?(i=q7(i),a=q7(a),e(W_e,K_e)):e(H7,$7),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let c=l[0],d=l[l.length-1];const A=d<c;A&&([c,d]=[d,c]);let h=i(c),m=i(d),b,g;const y=s==null?10:+s;let v=[];if(!(r%1)&&m-h<y){if(h=Math.floor(h),m=Math.ceil(m),c>0){for(;h<=m;++h)for(b=1;b<r;++b)if(g=h<0?b/a(-h):b*a(h),!(g<c)){if(g>d)break;v.push(g)}}else for(;h<=m;++h)for(b=r-1;b>=1;--b)if(g=h>0?b/a(-h):b*a(h),!(g<c)){if(g>d)break;v.push(g)}v.length*2<y&&(v=dI(c,d,y))}else v=dI(h,m,Math.min(m-h,y)).map(a);return A?v.reverse():v},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=c0(l)).precision==null&&(l.trim=!0),l=fO(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return d=>{let A=d/a(Math.round(i(d)));return A*r<r-.5&&(A*=r),A<=c?l(d):""}},t.nice=()=>n(DZ(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function MZ(){const e=hO(RS()).domain([1,10]);return e.copy=()=>pb(e,MZ()).base(e.base()),ul.apply(e,arguments),e}function z7(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function V7(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function pO(e){var t=1,n=e(z7(t),V7(t));return n.constant=function(r){return arguments.length?e(z7(t=+r),V7(t)):t},ef(n)}function UZ(){var e=pO(RS());return e.copy=function(){return pb(e,UZ()).constant(e.constant())},ul.apply(e,arguments)}function W7(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function J_e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Z_e(e){return e<0?-e*e:e*e}function mO(e){var t=e(vo,vo),n=1;function r(){return n===1?e(vo,vo):n===.5?e(J_e,Z_e):e(W7(n),W7(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},ef(t)}function gO(){var e=mO(RS());return e.copy=function(){return pb(e,gO()).exponent(e.exponent())},ul.apply(e,arguments),e}function eIe(){return gO.apply(null,arguments).exponent(.5)}function K7(e){return Math.sign(e)*e*e}function tIe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function RZ(){var e=dO(),t=[0,1],n=!1,r;function i(a){var o=tIe(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(K7(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,U1)).map(K7)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return RZ(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},ul.apply(i,arguments),ef(i)}function QZ(){var e=[],t=[],n=[],r;function i(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o<s;)n[o-1]=o_e(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?r:t[fb(n,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]}
1357,a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(TA),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return QZ().domain(e).range(t).unknown(r)},ul.apply(a,arguments)}function HZ(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[fb(r,l,0,n)]:a}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return HZ().domain([e,t]).range(i).unknown(a)},ul.apply(ef(o),arguments)}function $Z(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[fb(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return $Z().domain(e).range(t).unknown(n)},ul.apply(i,arguments)}const M4=new Date,U4=new Date;function Zi(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>Zi(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(M4.setTime(+a),U4.setTime(+o),e(M4),e(U4),Math.floor(n(M4,U4))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const $1=Zi(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);$1.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Zi(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):$1);$1.range;const Gu=1e3,tl=Gu*60,Yu=tl*60,sd=Yu*24,yO=sd*7,G7=sd*30,R4=sd*365,th=Zi(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Gu)},(e,t)=>(t-e)/Gu,e=>e.getUTCSeconds());th.range;const vO=Zi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Gu)},(e,t)=>{e.setTime(+e+t*tl)},(e,t)=>(t-e)/tl,e=>e.getMinutes());vO.range;const bO=Zi(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*tl)},(e,t)=>(t-e)/tl,e=>e.getUTCMinutes());bO.range;const wO=Zi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Gu-e.getMinutes()*tl)},(e,t)=>{e.setTime(+e+t*Yu)},(e,t)=>(t-e)/Yu,e=>e.getHours());wO.range;const xO=Zi(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Yu)},(e,t)=>(t-e)/Yu,e=>e.getUTCHours());xO.range;const mb=Zi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tl)/sd,e=>e.getDate()-1);mb.range;const QS=Zi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sd,e=>e.getUTCDate()-1);QS.range;const qZ=Zi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sd,e=>Math.floor(e/sd));qZ.range;function Wh(e){return Zi(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*tl)/yO)}const HS=Wh(0),q1=Wh(1),nIe=Wh(2),rIe=Wh(3),Ym=Wh(4),iIe=Wh(5),aIe=Wh(6);HS.range;q1.range;nIe.range;rIe.range;Ym.range;iIe.range;aIe.range;function Kh(e){return Zi(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/yO)}
vendor: 6,389 bytes, line 1357
1357const $S=Kh(0),z1=Kh(1),oIe=Kh(2),sIe=Kh(3),Xm=Kh(4),lIe=Kh(5),cIe=Kh(6);$S.range;z1.range;oIe.range;sIe.range;Xm.range;lIe.range;cIe.range;const SO=Zi(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());SO.range;const BO=Zi(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());BO.range;const ld=Zi(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ld.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Zi(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ld.range;const cd=Zi(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());cd.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Zi(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});cd.range;function zZ(e,t,n,r,i,a){const o=[[th,1,Gu],[th,5,5*Gu],[th,15,15*Gu],[th,30,30*Gu],[a,1,tl],[a,5,5*tl],[a,15,15*tl],[a,30,30*tl],[i,1,Yu],[i,3,3*Yu],[i,6,6*Yu],[i,12,12*Yu],[r,1,sd],[r,2,2*sd],[n,1,yO],[t,1,G7],[t,3,3*G7],[e,1,R4]];function s(c,d,A){const h=d<c;h&&([c,d]=[d,c]);const m=A&&typeof A.range=="function"?A:l(c,d,A),b=m?m.range(c,+d+1):[];return h?b.reverse():b}function l(c,d,A){const h=Math.abs(d-c)/A,m=oO(([,,y])=>y).right(o,h);if(m===o.length)return e.every(fI(c/R4,d/R4,A));if(m===0)return $1.every(Math.max(fI(c,d,A),1));const[b,g]=o[h/o[m-1][2]<o[m][2]/h?m-1:m];return b.every(g)}return[s,l]}const[uIe,dIe]=zZ(cd,BO,$S,qZ,xO,bO),[AIe,fIe]=zZ(ld,SO,HS,mb,wO,vO);function Q4(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function H4(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function jy(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function hIe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Oy(i),d=Fy(i),A=Oy(a),h=Fy(a),m=Oy(o),b=Fy(o),g=Oy(s),y=Fy(s),v=Oy(l),x=Fy(l),B={a:ne,A:K,b:oe,B:$,c:null,d:tH,e:tH,f:DIe,g:WIe,G:GIe,H:OIe,I:FIe,j:LIe,L:VZ,m:MIe,M:UIe,p:X,q:Q,Q:iH,s:aH,S:RIe,u:QIe,U:HIe,V:$Ie,w:qIe,W:zIe,x:null,X:null,y:VIe,Y:KIe,Z:YIe,"%":rH},C={a:R,A:re,b:ce,B:le,c:null,d:nH,e:nH,f:ePe,g:uPe,G:APe,H:XIe,I:JIe,j:ZIe,L:KZ,m:tPe,M:nPe,p:he,q:ye,Q:iH,s:aH,S:rPe,u:iPe,U:aPe,V:oPe,w:sPe,W:lPe,x:null,X:null,y:cPe,Y:dPe,Z:fPe,"%":rH},E={a:z,A:F,b:M,B:V,c:q,d:Z7,e:Z7,f:_Ie,g:J7,G:X7,H:eH,I:eH,j:kIe,L:TIe,m:CIe,M:EIe,p:L,q:BIe,Q:PIe,s:jIe,S:NIe,u:vIe,U:bIe,V:wIe,w:yIe,W:xIe,x:W,X:ee,y:J7,Y:X7,Z:SIe,"%":IIe};B.x=T(n,B),B.X=T(r,B),B.c=T(t,B),C.x=T(n,C),C.X=T(r,C),C.c=T(t,C);function T(Ae,be){return function(Ee){var ge=[],Ue=-1,Ye=0,ae=Ae.length,Le,st,ut;for(Ee instanceof Date||(Ee=new Date(+Ee));++Ue<ae;)Ae.charCodeAt(Ue)===37&&(ge.push(Ae.slice(Ye,Ue)),(st=Y7[Le=Ae.charAt(++Ue)])!=null?Le=Ae.charAt(++Ue):st=Le==="e"?" ":"0",(ut=be[Le])&&(Le=ut(Ee,st)),ge.push(Le),Ye=Ue+1);return ge.push(Ae.slice(Ye,Ue)),ge.join("")}}function j(Ae,be){return function(Ee){var ge=jy(1900,void 0,1),Ue=O(ge,Ae,Ee+="",0),Ye,ae;if(Ue!=Ee.length)return null;if("Q"in ge)return new Date(ge.Q);if("s"in ge)return new Date(ge.s*1e3+("L"in ge?ge.L:0));if(be&&!("Z"in ge)&&(ge.Z=0),"p"in ge&&(ge.H=ge.H%12+ge.p*12),ge.m===void 0&&(ge.m="q"in ge?ge.q:0),"V"in ge){if(ge.V<1||ge.V>53)return null;"w"in ge||(ge.w=1),"Z"in ge?(Ye=H4(jy(ge.y,0,1)),ae=Ye.getUTCDay(),Ye=ae>4||ae===0?z1.ceil(Ye):z1(Ye),Ye=QS.offset(Ye,(ge.V-1)*7),ge.y=Ye.getUTCFullYear(),ge.m=Ye.getUTCMonth(),ge.d=Ye.getUTCDate()+(ge.w+6)%7):(Ye=Q4(jy(ge.y,0,1)),ae=Ye.getDay(),Ye=ae>4||ae===0?q1.ceil(Ye):q1(Ye),Ye=mb.offset(Ye,(ge.V-1)*7),ge.y=Ye.getFullYear(),ge.m=Ye.getMonth(),ge.d=Ye.getDate()+(ge.w+6)%7)}else("W"in ge||"U"in ge)&&("w"in ge||(ge.w="u"in ge?ge.u%7:"W"in ge?1:0),ae="Z"in ge?H4(jy(ge.y,0,1)).getUTCDay():Q4(jy(ge.y,0,1)).getDay(),ge.m=0,ge.d="W"in ge?(ge.w+6)%7+ge.W*7-(ae+5)%7:ge.w+ge.U*7-(ae+6)%7);return"Z"in ge?(ge.H+=ge.Z/100|0,ge.M+=ge.Z%100,H4(ge)):Q4(ge)}}function O(Ae,be,Ee,ge){for(var Ue=0,Ye=be.length,ae=Ee.length,Le,st;Ue<Ye;){if(ge>=ae)return-1;if(Le=be.charCodeAt(Ue++),Le===37){if(Le=be.charAt(Ue++),st=E[Le in Y7?be.charAt(Ue++):Le],!st||(ge=st(Ae,Ee,ge))<0)return-1}else if(Le!=Ee.charCodeAt(ge++))return-1}return ge}function L(Ae,be,Ee){var ge=c.exec(be.slice(Ee));return ge?(Ae.p=d.get(ge[0].toLowerCase()),Ee+ge[0].length):-1}function z(Ae,be,Ee){var ge=m.exec(be.slice(Ee));return ge?(Ae.w=b.get(ge[0].toLowerCase()),Ee+ge[0].length):-1}function F(Ae,be,Ee){var ge=A.exec(be.slice(Ee));return ge?(Ae.w=h.get(ge[0].toLowerCase()),Ee+ge[0].length):-1}function M(Ae,be,Ee){var ge=v.exec(be.slice(Ee));return ge?(Ae.m=x.get(ge[0].toLowerCase()),Ee+ge[0].length):-1}function V(Ae,be,Ee){var ge=g.exec(be.slice(Ee));return ge?(Ae.m=y.get(ge[0].toLowerCase()),Ee+ge[0].length):-1}function q(Ae,be,Ee){return O(Ae,t,be,Ee)}function W(Ae,be,Ee){return O(Ae,n,be,Ee)}function ee(Ae,be,Ee){return O(Ae,r,be,Ee)}function ne(Ae){return o[Ae.getDay()]}function K(Ae){return a[Ae.getDay()]}function oe(Ae){return l[Ae.getMonth()]}function $(Ae){return s[Ae.getMonth()]}function X(Ae){return i[+(Ae.getHours()>=12)]}function Q(Ae){return 1+~~(Ae.getMonth()/3)}function R(Ae){return o[Ae.getUTCDay()]}function re(Ae){return a[Ae.getUTCDay()]}function ce(Ae){return l[Ae.getUTCMonth()]}function le(Ae){return s[Ae.getUTCMonth()]}function he(Ae){return i[+(Ae.getUTCHours()>=12)]}function ye(Ae){return 1+~~(Ae.getUTCMonth()/3)}return{format:function(Ae){var be=T(Ae+="",B);return be.toString=function(){return Ae},be},parse:function(Ae){var be=j(Ae+="",!1);return be.toString=function(){return Ae},be},utcFormat:function(Ae){var be=T(Ae+="",C);return be.toString=function(){return Ae},be},utcParse:function(Ae){var be=j(Ae+="",!0);return be.toString=function(){return Ae},be}}}var Y7={"-":"",_:" ",0:"0"},fa=/^\s*\d+/,pIe=/^%/,mIe=/[\\^$*+?|[\]().{}]/g;
vendor: 4,617 bytes, line 1357
1357function qn(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function gIe(e){return e.replace(mIe,"\\$&")}function Oy(e){return new RegExp("^(?:"+e.map(gIe).join("|")+")","i")}function Fy(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function yIe(e,t,n){var r=fa.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function vIe(e,t,n){var r=fa.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function bIe(e,t,n){var r=fa.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function wIe(e,t,n){var r=fa.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function xIe(e,t,n){var r=fa.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function X7(e,t,n){var r=fa.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function J7(e,t,n){var r=fa.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function SIe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function BIe(e,t,n){var r=fa.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function CIe(e,t,n){var r=fa.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Z7(e,t,n){var r=fa.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function kIe(e,t,n){var r=fa.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function eH(e,t,n){var r=fa.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function EIe(e,t,n){var r=fa.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function NIe(e,t,n){var r=fa.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function TIe(e,t,n){var r=fa.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function _Ie(e,t,n){var r=fa.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function IIe(e,t,n){var r=pIe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function PIe(e,t,n){var r=fa.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function jIe(e,t,n){var r=fa.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function tH(e,t){return qn(e.getDate(),t,2)}function OIe(e,t){return qn(e.getHours(),t,2)}function FIe(e,t){return qn(e.getHours()%12||12,t,2)}function LIe(e,t){return qn(1+mb.count(ld(e),e),t,3)}function VZ(e,t){return qn(e.getMilliseconds(),t,3)}function DIe(e,t){return VZ(e,t)+"000"}function MIe(e,t){return qn(e.getMonth()+1,t,2)}function UIe(e,t){return qn(e.getMinutes(),t,2)}function RIe(e,t){return qn(e.getSeconds(),t,2)}function QIe(e){var t=e.getDay();return t===0?7:t}function HIe(e,t){return qn(HS.count(ld(e)-1,e),t,2)}function WZ(e){var t=e.getDay();return t>=4||t===0?Ym(e):Ym.ceil(e)}function $Ie(e,t){return e=WZ(e),qn(Ym.count(ld(e),e)+(ld(e).getDay()===4),t,2)}function qIe(e){return e.getDay()}function zIe(e,t){return qn(q1.count(ld(e)-1,e),t,2)}function VIe(e,t){return qn(e.getFullYear()%100,t,2)}function WIe(e,t){return e=WZ(e),qn(e.getFullYear()%100,t,2)}function KIe(e,t){return qn(e.getFullYear()%1e4,t,4)}function GIe(e,t){var n=e.getDay();return e=n>=4||n===0?Ym(e):Ym.ceil(e),qn(e.getFullYear()%1e4,t,4)}function YIe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qn(t/60|0,"0",2)+qn(t%60,"0",2)}function nH(e,t){return qn(e.getUTCDate(),t,2)}function XIe(e,t){return qn(e.getUTCHours(),t,2)}function JIe(e,t){return qn(e.getUTCHours()%12||12,t,2)}function ZIe(e,t){return qn(1+QS.count(cd(e),e),t,3)}function KZ(e,t){return qn(e.getUTCMilliseconds(),t,3)}function ePe(e,t){return KZ(e,t)+"000"}function tPe(e,t){return qn(e.getUTCMonth()+1,t,2)}function nPe(e,t){return qn(e.getUTCMinutes(),t,2)}function rPe(e,t){return qn(e.getUTCSeconds(),t,2)}function iPe(e){var t=e.getUTCDay();return t===0?7:t}function aPe(e,t){return qn($S.count(cd(e)-1,e),t,2)}function GZ(e){var t=e.getUTCDay();return t>=4||t===0?Xm(e):Xm.ceil(e)}function oPe(e,t){return e=GZ(e),qn(Xm.count(cd(e),e)+(cd(e).getUTCDay()===4),t,2)}function sPe(e){return e.getUTCDay()}function lPe(e,t){return qn(z1.count(cd(e)-1,e),t,2)}function cPe(e,t){return qn(e.getUTCFullYear()%100,t,2)}function uPe(e,t){return e=GZ(e),qn(e.getUTCFullYear()%100,t,2)}function dPe(e,t){return qn(e.getUTCFullYear()%1e4,t,4)}function APe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xm(e):Xm.ceil(e),qn(e.getUTCFullYear()%1e4,t,4)}function fPe(){return"+0000"}function rH(){return"%"}function iH(e){return+e}function aH(e){return Math.floor(+e/1e3)}var Mp,YZ,XZ;hPe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1357ay","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 hPe(e){return Mp=hIe(e),YZ=Mp.format,Mp.parse,XZ=Mp.utcFormat,Mp.utcParse,Mp}function pPe(e){return new Date(e)}function mPe(e){return e instanceof Date?+e:+new Date(+e)}function CO(e,t,n,r,i,a,o,s,l,c){var d=dO(),A=d.invert,h=d.domain,m=c(".%L"),b=c(":%S"),g=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),x=c("%b %d"),B=c("%B"),C=c("%Y");function E(T){return(l(T)<T?m:s(T)<T?b:o(T)<T?g:a(T)<T?y:r(T)<T?i(T)<T?v:x:n(T)<T?B:C)(T)}return d.invert=function(T){return new Date(A(T))},d.domain=function(T){return arguments.length?h(Array.from(T,mPe)):h().map(pPe)},d.ticks=function(T){var j=h();return e(j[0],j[j.length-1],T??10)},d.tickFormat=function(T,j){return j==null?E:c(j)},d.nice=function(T){var j=h();return(!T||typeof T.range!="function")&&(T=t(j[0],j[j.length-1],T??10)),T?h(DZ(j,T)):d},d.copy=function(){return pb(d,CO(e,t,n,r,i,a,o,s,l,c))},d}function gPe(){return ul.apply(CO(AIe,fIe,ld,SO,HS,mb,wO,vO,th,YZ).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function yPe(){return ul.apply(CO(uIe,dIe,cd,BO,$S,QS,xO,bO,th,XZ).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function qS(){var e=0,t=1,n,r,i,a,o=vo,s=!1,l;function c(A){return A==null||isNaN(A=+A)?l:o(i===0?.5:(A=(a(A)-n)*i,s?Math.max(0,Math.min(1,A)):A))}c.domain=function(A){return arguments.length?([e,t]=A,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(A){return arguments.length?(s=!!A,c):s},c.interpolator=function(A){return arguments.length?(o=A,c):o};function d(A){return function(h){var m,b;return arguments.length?([m,b]=h,o=A(m,b),c):[o(0),o(1)]}}return c.range=d(Dg),c.rangeRound=d(uO),c.unknown=function(A){return arguments.length?(l=A,c):l},function(A){return a=A,n=A(e),r=A(t),i=n===r?0:1/(r-n),c}}function tf(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function JZ(){var e=ef(qS()(vo));return e.copy=function(){return tf(e,JZ())},pd.apply(e,arguments)}function ZZ(){var e=hO(qS()).domain([1,10]);return e.copy=function(){return tf(e,ZZ()).base(e.base())},pd.apply(e,arguments)}function eee(){var e=pO(qS());return e.copy=function(){return tf(e,eee()).constant(e.constant())},pd.apply(e,arguments)}function kO(){var e=mO(qS());return e.copy=function(){return tf(e,kO()).exponent(e.exponent())},pd.apply(e,arguments)}function vPe(){return kO.apply(null,arguments).exponent(.5)}function tee(){var e=[],t=vo;function n(r){if(r!=null&&!isNaN(r=+r))return t((fb(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(TA),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>a_e(e,a/r))},n.copy=function(){return tee(t).domain(e)},pd.apply(n,arguments)}function zS(){var e=0,t=.5,n=1,r=1,i,a,o,s,l,c=vo,d,A=!1,h;function m(g){return isNaN(g=+g)?h:(g=.5+((g=+d(g))-a)*(r*g<r*a?s:l),c(A?Math.max(0,Math.min(1,g)):g))}m.domain=function(g){return arguments.length?([e,t,n]=g,i=d(e=+e),a=d(t=+t),o=d(n=+n),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),r=a<i?-1:1,m):[e,t,n]},m.clamp=function(g){return arguments.length?(A=!!g,m):A},m.interpolator=function(g){return arguments.length?(c=g,m):c};function b(g){return function(y){var v,x,B;return arguments.length?([v,x,B]=y,c=I_e(g,[v,x,B]),m):[c(0),c(.5),c(1)]}}return m.range=b(Dg),m.rangeRound=b(uO),m.unknown=function(g){return arguments.length?(h=g,m):h},function(g){return d=g,i=g(e),a=g(t),o=g(n),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),r=a<i?-1:1,m}}function nee(){var e=ef(zS()(vo));return e.copy=function(){return tf(e,nee())},pd.apply(e,arguments)}function ree(){var e=hO(zS()).domain([.1,1,10]);return e.copy=function(){return tf(e,ree()).base(e.base())},pd.apply(e,arguments)}function iee(){var e=pO(zS());return e.copy=function(){return tf(e,iee()).constant(e.constant())},pd.apply(e,arguments)}function EO(){var e=mO(zS());return e.copy=function(){return tf(e,EO()).exponent(e.exponent())},pd.apply(e,arguments)}function bPe(){return EO.apply(null,arguments).exponent(.5)}const oH=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:a0,scaleDiverging:nee,scaleDivergingLog:ree,scaleDivergingPow:EO,scaleDivergingSqrt:bPe,scaleDivergingSymlog:iee,scaleIdentity:LZ,scaleImplicit:hI,scaleLinear:H1,scaleLog:MZ,scaleOrdinal:sO,scalePoint:Sv,scalePow:gO,scaleQuantile:QZ,scaleQuantize:HZ,scaleRadial:RZ,scaleSequential:JZ,scaleSequentialLog:ZZ,scaleSequentialPow:kO,scaleSequentialQuantile:tee,scaleSequentialSqrt:vPe,scaleSequentialSymlog:eee,scaleSqrt:eIe,scaleSymlog:UZ,scaleThreshold:$Z,scaleTime:gPe,scaleUtc:yPe,tickFormat:FZ},Symbol.toStringTag,{value:"Module"}));var $4,sH;function aee(){if(sH)return $4;sH=1;var e=jg();function t(n,r,i){for(var a=-1,o=n.length;++a<o;){var s=n[a],l=r(s);if(l!=null&&(c===void 0?l===l&&!e(l):i(l,c)))var c=l,d=s}return d}return $4=t,$4}var q4,lH;function wPe(){if(lH)return q4;lH=1;function e(t,n){return t>n}return q4=e,q4}var z4,cH;function xPe(){if(cH)return z4;cH=1;var e=aee(),t=wPe(),n=Lg();function r(i){return i&&i.length?e(i,n,t):void 0}return z4=r,z4}var SPe=xPe();const bA=nr(SPe);var V4,uH;function BPe(){if(uH)return V4;uH=1;function e(t,n){return t<n}return V4=e,V4}var W4,dH;function CPe(){if(dH)return W4;dH=1;var e=aee(),t=BPe(),n=Lg();function r(i){return i&&i.length?e(i,n,t):void 0}return W4=r,W4}var kPe=CPe();const VS=nr(kPe);var K4,AH;
vendor: 250,612 bytes, lines 1357-1406
1357function EPe(){if(AH)return K4;AH=1;var e=qj(),t=JA(),n=pZ(),r=$o();function i(a,o){var s=r(a)?e:n;return s(a,t(o,3))}return K4=i,K4}var G4,fH;function NPe(){if(fH)return G4;fH=1;var e=fZ(),t=EPe();function n(r,i){return e(t(r,i),1)}return G4=n,G4}var TPe=NPe();const _Pe=nr(TPe);var Y4,hH;function IPe(){if(hH)return Y4;hH=1;var e=nO();function t(n,r){return e(n,r)}return Y4=t,Y4}var PPe=IPe();const _h=nr(PPe);var Mg=1e9,jPe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},TO,$r=!0,ll="[DecimalError] ",ph=ll+"Invalid argument: ",NO=ll+"Exponent out of range: ",Ug=Math.floor,qf=Math.pow,OPe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ms,ca=1e7,Tr=7,oee=9007199254740991,V1=Ug(oee/Tr),kt={};kt.absoluteValue=kt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};kt.comparedTo=kt.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};kt.decimalPlaces=kt.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Tr;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};kt.dividedBy=kt.div=function(e){return td(this,new this.constructor(e))};kt.dividedToIntegerBy=kt.idiv=function(e){var t=this,n=t.constructor;return gr(td(t,new n(e),0,1),n.precision)};kt.equals=kt.eq=function(e){return!this.cmp(e)};kt.exponent=function(){return Mi(this)};kt.greaterThan=kt.gt=function(e){return this.cmp(e)>0};kt.greaterThanOrEqualTo=kt.gte=function(e){return this.cmp(e)>=0};kt.isInteger=kt.isint=function(){return this.e>this.d.length-2};kt.isNegative=kt.isneg=function(){return this.s<0};kt.isPositive=kt.ispos=function(){return this.s>0};kt.isZero=function(){return this.s===0};kt.lessThan=kt.lt=function(e){return this.cmp(e)<0};kt.lessThanOrEqualTo=kt.lte=function(e){return this.cmp(e)<1};kt.logarithm=kt.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(ms))throw Error(ll+"NaN");if(n.s<1)throw Error(ll+(n.s?"NaN":"-Infinity"));return n.eq(ms)?new r(0):($r=!1,t=td(u0(n,a),u0(e,a),a),$r=!0,gr(t,i))};kt.minus=kt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cee(t,e):see(t,(e.s=-e.s,e))};kt.modulo=kt.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ll+"NaN");return n.s?($r=!1,t=td(n,e,0,1).times(e),$r=!0,n.minus(t)):gr(new r(n),i)};kt.naturalExponential=kt.exp=function(){return lee(this)};kt.naturalLogarithm=kt.ln=function(){return u0(this)};kt.negated=kt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};kt.plus=kt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?see(t,e):cee(t,(e.s=-e.s,e))};kt.precision=kt.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ph+e);if(t=Mi(i)+1,r=i.d.length-1,n=r*Tr+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};kt.squareRoot=kt.sqrt=function(){var e,t,n,r,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(ll+"NaN")}for(e=Mi(s),$r=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Mc(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ug((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=o=n+3;;)if(a=r,r=a.plus(td(s,a,o+2)).times(.5),Mc(a.d).slice(0,o)===(t=Mc(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(gr(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!="9999")break;o+=4}return $r=!0,gr(r,n)};kt.times=kt.mul=function(e){var t,n,r,i,a,o,s,l,c,d=this,A=d.constructor,h=d.d,m=(e=new A(e)).d;if(!d.s||!e.s)return new A(0);for(e.s*=d.s,n=d.e+e.e,l=h.length,c=m.length,l<c&&(a=h,h=m,m=a,o=l,l=c,c=o),a=[],o=l+c,r=o;r--;)a.push(0);for(r=c;--r>=0;){for(t=0,i=l+r;i>r;)s=a[i]+m[r]*h[i-r-1]+t,a[i--]=s%ca|0,t=s/ca|0;a[i]=(a[i]+t)%ca|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,$r?gr(e,A.precision):e};kt.toDecimalPlaces=kt.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Jc(e,0,Mg),t===void 0?t=r.rounding:Jc(t,0,8),gr(n,e+Mi(n)+1,t))};kt.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Ih(r,!0):(Jc(e,0,Mg),t===void 0?t=i.rounding:Jc(t,0,8),r=gr(new i(r),e+1,t),n=Ih(r,!0,e+1)),n};kt.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?Ih(i):(Jc(e,0,Mg),t===void 0?t=a.rounding:Jc(t,0,8),r=gr(new a(i),e+Mi(i)+1,t),n=Ih(r.abs(),!1,e+Mi(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};kt.toInteger=kt.toint=function(){var e=this,t=e.constructor;return gr(new t(e),Mi(e)+1,t.rounding)};kt.toNumber=function(){return+this};kt.toPower=kt.pow=function(e){var t,n,r,i,a,o,s=this,l=s.constructor,c=12,d=+(e=new l(e));if(!e.s)return new l(ms);if(s=new l(s),!s.s){if(e.s<1)throw Error(ll+"Infinity");return s}if(s.eq(ms))return s;if(r=l.precision,e.eq(ms))return gr(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,o){if((n=d<0?-d:d)<=oee){for(i=new l(ms),t=Math.ceil(r/Tr+4),$r=!1;n%2&&(i=i.times(s),mH(i.d,t)),n=Ug(n/2),n!==0;)s=s.times(s),mH(s.d,t);return $r=!0,e.s<0?new l(ms).div(i):gr(i,r)}}else if(a<0)throw Error(ll+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,$r=!1,i=e.times(u0(s,r+c)),$r=!0,i=lee(i),i.s=a,i};kt.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=Mi(i),r=Ih(i,n<=a.toExpNeg||n>=a.toExpPos)):(Jc(e,1,Mg),t===void 0?t=a.rounding:Jc(t,0,8),i=gr(new a(i),e,t),n=Mi(i),r=Ih(i,e<=n||n<=a.toExpNeg,e)),r};kt.toSignificantDigits=kt.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Jc(e,1,Mg),t===void 0?t=r.rounding:Jc(t,0,8)),gr(new r(n),e,t)};kt.toString=kt.valueOf=kt.val=kt.toJSON=kt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Mi(e),n=e.constructor;return Ih(e,t<=n.toExpNeg||t>=n.toExpPos)};function see(e,t){var n,r,i,a,o,s,l,c,d=e.constructor,A=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),$r?gr(t,A):t;if(l=e.d,c=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(r=l,a=-a,s=c.length):(r=c,i=o,s=l.length),o=Math.ceil(A/Tr),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=l.length,a=c.length,s-a<0&&(a=s,r=c,c=l,l=r),n=0;a;)n=(l[--a]=l[a]+c[a]+n)/ca|0,l[a]%=ca;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,$r?gr(t,A):t}function Jc(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ph+e)}function Mc(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+"",n=Tr-r.length,n&&(a+=cA(n)),a+=r;o=e[t],r=o+"",n=Tr-r.length,n&&(a+=cA(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var td=(function(){function e(r,i){var a,o=0,s=r.length;for(r=r.slice();s--;)a=r[s]*i+o,r[s]=a%ca|0,o=a/ca|0;return o&&r.unshift(o),r}function t(r,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(r[s]!=i[s]){l=r[s]>i[s]?1:-1;break}return l}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]<i[a]?1:0,r[a]=o*ca+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,o){var s,l,c,d,A,h,m,b,g,y,v,x,B,C,E,T,j,O,L=r.constructor,z=r.s==i.s?1:-1,F=r.d,M=i.d;if(!r.s)return new L(r);if(!i.s)throw Error(ll+"Division by zero");for(l=r.e-i.e,j=M.length,E=F.length,m=new L(z),b=m.d=[],c=0;M[c]==(F[c]||0);)++c;if(M[c]>(F[c]||0)&&--l,a==null?x=a=L.precision:o?x=a+(Mi(r)-Mi(i))+1:x=a,x<0)return new L(0);if(x=x/Tr+2|0,c=0,j==1)for(d=0,M=M[0],x++;(c<E||d)&&x--;c++)B=d*ca+(F[c]||0),b[c]=B/M|0,d=B%M|0;else{for(d=ca/(M[0]+1)|0,d>1&&(M=e(M,d),F=e(F,d),j=M.length,E=F.length),C=j,g=F.slice(0,j),y=g.length;y<j;)g[y++]=0;O=M.slice(),O.unshift(0),T=M[0],M[1]>=ca/2&&++T;do d=0,s=t(M,g,j,y),s<0?(v=g[0],j!=y&&(v=v*ca+(g[1]||0)),d=v/T|0,d>1?(d>=ca&&(d=ca-1),A=e(M,d),h=A.length,y=g.length,s=t(A,g,h,y),s==1&&(d--,n(A,j<h?O:M,h))):(d==0&&(s=d=1),A=M.slice()),h=A.length,h<y&&A.unshift(0),n(g,A,y),s==-1&&(y=g.length,s=t(M,g,j,y),s<1&&(d++,n(g,j<y?O:M,y))),y=g.length):s===0&&(d++,g=[0]),b[c++]=d,s&&g[0]?g[y++]=F[C]||0:(g=[F[C]],y=1);while((C++<E||g[0]!==void 0)&&x--)}return b[0]||b.shift(),m.e=l,gr(m,o?a+Mi(m)+1:a)}})();function lee(e,t){var n,r,i,a,o,s,l=0,c=0,d=e.constructor,A=d.precision;if(Mi(e)>16)throw Error(NO+Mi(e));if(!e.s)return new d(ms);for($r=!1,s=A,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(r=Math.log(qf(2,c))/Math.LN10*2+5|0,s+=r,n=i=a=new d(ms),d.precision=s;;){if(i=gr(i.times(e),s),n=n.times(++l),o=a.plus(td(i,n,s)),Mc(o.d).slice(0,s)===Mc(a.d).slice(0,s)){for(;c--;)a=gr(a.times(a),s);return d.precision=A,t==null?($r=!0,gr(a,A)):a}a=o}}function Mi(e){for(var t=e.e*Tr,n=e.d[0];n>=10;n/=10)t++;return t}function X4(e,t,n){if(t>e.LN10.sd())throw $r=!0,n&&(e.precision=n),Error(ll+"LN10 precision limit exceeded");return gr(new e(e.LN10),t)}function cA(e){for(var t="";e--;)t+="0";return t}function u0(e,t){var n,r,i,a,o,s,l,c,d,A=1,h=10,m=e,b=m.d,g=m.constructor,y=g.precision;if(m.s<1)throw Error(ll+(m.s?"NaN":"-Infinity"));if(m.eq(ms))return new g(0);if(t==null?($r=!1,c=y):c=t,m.eq(10))return t==null&&($r=!0),X4(g,c);if(c+=h,g.precision=c,n=Mc(b),r=n.charAt(0),a=Mi(m),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=Mc(m.d),r=n.charAt(0),A++;a=Mi(m),r>1?(m=new g("0."+n),a++):m=new g(r+"."+n.slice(1))}else return l=X4(g,c+2,y).times(a+""),m=u0(new g(r+"."+n.slice(1)),c-h).plus(l),g.precision=y,t==null?($r=!0,gr(m,y)):m;for(s=o=m=td(m.minus(ms),m.plus(ms),c),d=gr(m.times(m),c),i=3;;){if(o=gr(o.times(d),c),l=s.plus(td(o,new g(i),c)),Mc(l.d).slice(0,c)===Mc(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(X4(g,c+2,y).times(a+""))),s=td(s,new g(A),c),g.precision=y,t==null?($r=!0,gr(s,y)):s;s=l,i+=2}}function pH(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Ug(n/Tr),e.d=[],r=(n+1)%Tr,n<0&&(r+=Tr),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Tr;r<i;)e.d.push(+t.slice(r,r+=Tr));t=t.slice(r),r=Tr-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),$r&&(e.e>V1||e.e<-V1))throw Error(NO+n)}else e.s=0,e.e=0,e.d=[0];return e}function gr(e,t,n){var r,i,a,o,s,l,c,d,A=e.d;for(o=1,a=A[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=Tr,i=t,c=A[d=0];else{if(d=Math.ceil((r+1)/Tr),a=A.length,d>=a)return e;for(c=a=A[d],o=1;a>=10;a/=10)o++;r%=Tr,i=r-Tr+o}if(n!==void 0&&(a=qf(10,o-i-1),s=c/a%10|0,l=t<0||A[d+1]!==void 0||c%a,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?c/qf(10,o-i):0:A[d-1])%10&1||n==(e.s<0?8:7))),t<1||!A[0])return l?(a=Mi(e),A.length=1,t=t-a-1,A[0]=qf(10,(Tr-t%Tr)%Tr),e.e=Ug(-t/Tr)||0):(A.length=1,A[0]=e.e=e.s=0),e;if(r==0?(A.length=d,a=1,d--):(A.length=d+1,a=qf(10,Tr-r),A[d]=i>0?(c/qf(10,o-i)%qf(10,i)|0)*a:0),l)for(;;)if(d==0){(A[0]+=a)==ca&&(A[0]=1,++e.e);break}else{if(A[d]+=a,A[d]!=ca)break;A[d--]=0,a=1}for(r=A.length;A[--r]===0;)A.pop();if($r&&(e.e>V1||e.e<-V1))throw Error(NO+Mi(e));return e}function cee(e,t){var n,r,i,a,o,s,l,c,d,A,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),$r?gr(t,m):t;if(l=e.d,A=t.d,r=t.e,c=e.e,l=l.slice(),o=c-r,o){for(d=o<0,d?(n=l,o=-o,s=A.length):(n=A,r=c,s=l.length),i=Math.max(Math.ceil(m/Tr),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=A.length,d=i<s,d&&(s=i),i=0;i<s;i++)if(l[i]!=A[i]){d=l[i]<A[i];break}o=0}for(d&&(n=l,l=A,A=n,t.s=-t.s),s=l.length,i=A.length-s;i>0;--i)l[s++]=0;for(i=A.length;i>o;){if(l[--i]<A[i]){for(a=i;a&&l[--a]===0;)l[a]=ca-1;--l[a],l[i]+=ca}l[i]-=A[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,$r?gr(t,m):t):new h(0)}function Ih(e,t,n){var r,i=Mi(e),a=Mc(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+cA(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+cA(-i-1)+a,n&&(r=n-o)>0&&(a+=cA(r))):i>=o?(a+=cA(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+cA(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=cA(r))),e.s<0?"-"+a:a}function mH(e,t){if(e.length>t)return e.length=t,!0}function uee(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(ph+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return pH(o,a.toString())}else if(typeof a!="string")throw Error(ph+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,OPe.test(a))pH(o,a);else throw Error(ph+a)}if(i.prototype=kt,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=uee,i.config=i.set=FPe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function FPe(e){if(!e||typeof e!="object")throw Error(ll+"Object expected");var t,n,r,i=["precision",1,Mg,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Ug(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(ph+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ph+n+": "+r);return this}var TO=uee(jPe);ms=new TO(1);const ur=TO;function LPe(e){return RPe(e)||UPe(e)||MPe(e)||DPe()}function DPe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1358In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MPe(e,t){if(e){if(typeof e=="string")return yI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yI(e,t)}}function UPe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function RPe(e){if(Array.isArray(e))return yI(e)}function yI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var QPe=function(t){return t},dee={},Aee=function(t){return t===dee},gH=function(t){return function n(){return arguments.length===0||arguments.length===1&&Aee(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},HPe=function e(t,n){return t===1?n:gH(function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==dee}).length;return o>=t?n.apply(void 0,i):e(t-o,gH(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var d=i.map(function(A){return Aee(A)?l.shift():A});return n.apply(void 0,LPe(d).concat(l))}))})},WS=function(t){return HPe(t.length,t)},vI=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},$Pe=WS(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),qPe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return QPe;var i=n.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},bI=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},fee=function(t){var n=null,r=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n&&a.every(function(s,l){return s===n[l]})||(n=a,r=t.apply(void 0,a)),r}};function zPe(e){var t;return e===0?t=1:t=Math.floor(new ur(e).abs().log(10).toNumber())+1,t}function VPe(e,t,n){for(var r=new ur(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var WPe=WS(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),KPe=WS(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),GPe=WS(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const KS={rangeStep:VPe,getDigitCount:zPe,interpolateNumber:WPe,uninterpolateNumber:KPe,uninterpolateTruncation:GPe};function wI(e){return JPe(e)||XPe(e)||hee(e)||YPe()}function YPe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1359In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XPe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function JPe(e){if(Array.isArray(e))return xI(e)}function d0(e,t){return t3e(e)||e3e(e,t)||hee(e,t)||ZPe()}function ZPe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1360In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hee(e,t){if(e){if(typeof e=="string")return xI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xI(e,t)}}function xI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function e3e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,a=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function t3e(e){if(Array.isArray(e))return e}function pee(e){var t=d0(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function mee(e,t,n){if(e.lte(0))return new ur(0);var r=KS.getDigitCount(e.toNumber()),i=new ur(10).pow(r),a=e.div(i),o=r!==1?.05:.1,s=new ur(Math.ceil(a.div(o).toNumber())).add(n).mul(o),l=s.mul(i);return t?l:new ur(Math.ceil(l))}function n3e(e,t,n){var r=1,i=new ur(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new ur(10).pow(KS.getDigitCount(e)-1),i=new ur(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new ur(Math.floor(e)))}else e===0?i=new ur(Math.floor((t-1)/2)):n||(i=new ur(Math.floor(e)));var o=Math.floor((t-1)/2),s=qPe($Pe(function(l){return i.add(new ur(l-o).mul(r)).toNumber()}),vI);return s(0,t)}function gee(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new ur(0),tickMin:new ur(0),tickMax:new ur(0)};var a=mee(new ur(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new ur(0):(o=new ur(e).add(t).div(2),o=o.sub(new ur(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new ur(t).sub(o).div(a).toNumber()),c=s+l+1;return c>n?gee(e,t,n,r,i+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:a,tickMin:o.sub(new ur(s).mul(a)),tickMax:o.add(new ur(l).mul(a))})}function r3e(e){var t=d0(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=pee([n,r]),l=d0(s,2),c=l[0],d=l[1];if(c===-1/0||d===1/0){var A=d===1/0?[c].concat(wI(vI(0,i-1).map(function(){return 1/0}))):[].concat(wI(vI(0,i-1).map(function(){return-1/0})),[d]);return n>r?bI(A):A}if(c===d)return n3e(c,i,a);var h=gee(c,d,o,a),m=h.step,b=h.tickMin,g=h.tickMax,y=KS.rangeStep(b,g.add(new ur(.1).mul(m)),m);return n>r?bI(y):y}function i3e(e,t){var n=d0(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=pee([r,i]),s=d0(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[r,i];if(l===c)return[l];var d=Math.max(t,2),A=mee(new ur(c).sub(l).div(d-1),a,0),h=[].concat(wI(KS.rangeStep(new ur(l),new ur(c).sub(new ur(.99).mul(A)),A)),[c]);return r>i?bI(h):h}var a3e=fee(r3e),o3e=fee(i3e),s3e="Invariant failed";function RA(e,t){throw new Error(s3e)}var l3e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Jm(e){"@babel/helpers - typeof";return Jm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jm(e)}function W1(){return W1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W1.apply(this,arguments)}function c3e(e,t){return f3e(e)||A3e(e,t)||d3e(e,t)||u3e()}function u3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1361In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d3e(e,t){if(e){if(typeof e=="string")return yH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yH(e,t)}}function yH(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A3e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function f3e(e){if(Array.isArray(e))return e}function h3e(e,t){if(e==null)return{};var n=p3e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function p3e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function m3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g3e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bee(r.key),r)}}function y3e(e,t,n){return t&&g3e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v3e(e,t,n){return t=K1(t),b3e(e,yee()?Reflect.construct(t,n||[],K1(e).constructor):t.apply(e,n))}function b3e(e,t){if(t&&(Jm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w3e(e)}function w3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yee=function(){return!!e})()}function K1(e){return K1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},K1(e)}function x3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SI(e,t)}function SI(e,t){return SI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},SI(e,t)}function vee(e,t,n){return t=bee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bee(e){var t=S3e(e,"string");return Jm(t)=="symbol"?t:t+""}function S3e(e,t){if(Jm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rg=(function(e){function t(){return m3e(this,t),v3e(this,t,arguments)}return x3e(t,e),y3e(t,[{key:"render",value:function(){var r=this.props,i=r.offset,a=r.layout,o=r.width,s=r.dataKey,l=r.data,c=r.dataPointFormatter,d=r.xAxis,A=r.yAxis,h=h3e(r,l3e),m=mn(h,!1);this.props.direction==="x"&&d.type!=="number"&&RA();var b=l.map(function(g){var y=c(g,s),v=y.x,x=y.y,B=y.value,C=y.errorVal;if(!C)return null;var E=[],T,j;if(Array.isArray(C)){var O=c3e(C,2);T=O[0],j=O[1]}else T=j=C;if(a==="vertical"){var L=d.scale,z=x+i,F=z+o,M=z-o,V=L(B-T),q=L(B+j);E.push({x1:q,y1:F,x2:q,y2:M}),E.push({x1:V,y1:z,x2:q,y2:z}),E.push({x1:V,y1:F,x2:V,y2:M})}else if(a==="horizontal"){var W=A.scale,ee=v+i,ne=ee-o,K=ee+o,oe=W(B-T),$=W(B+j);E.push({x1:ne,y1:$,x2:K,y2:$}),E.push({x1:ee,y1:oe,x2:ee,y2:$}),E.push({x1:ne,y1:oe,x2:K,y2:oe})}return me.createElement(Wn,W1({className:"recharts-errorBar",key:"bar-".concat(E.map(function(X){return"".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))},m),E.map(function(X){return me.createElement("line",W1({},X,{key:"line-".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))}))});return me.createElement(Wn,{className:"recharts-errorBars"},b)}}])})(me.Component);vee(Rg,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});vee(Rg,"displayName","ErrorBar");function A0(e){"@babel/helpers - typeof";return A0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A0(e)}function vH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ff(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vH(Object(n),!0).forEach(function(r){B3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B3e(e,t,n){return t=C3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C3e(e){var t=k3e(e,"string");return A0(t)=="symbol"?t:t+""}function k3e(e,t){if(A0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(A0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wee=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=fs(n,ed);if(!o)return null;var s=ed.defaultProps,l=s!==void 0?Ff(Ff({},s),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(r||[]).reduce(function(d,A){var h=A.item,m=A.props,b=m.sectors||m.data||[];return d.concat(b.map(function(g){return{type:o.props.iconType||h.props.legendType,value:g.name,color:g.fill,payload:g}}))},[]):c=(r||[]).map(function(d){var A=d.item,h=A.type.defaultProps,m=h!==void 0?Ff(Ff({},h),A.props):{},b=m.dataKey,g=m.name,y=m.legendType,v=m.hide;return{inactive:v,dataKey:b,type:l.iconType||y||"square",color:_O(A),value:g||b,payload:m}}),Ff(Ff(Ff({},l),ed.getWithHeight(o,i)),{},{payload:c,item:o})};function f0(e){"@babel/helpers - typeof";return f0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f0(e)}function bH(e){return _3e(e)||T3e(e)||N3e(e)||E3e()}function E3e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1362In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N3e(e,t){if(e){if(typeof e=="string")return BI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BI(e,t)}}function T3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _3e(e){if(Array.isArray(e))return BI(e)}function BI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wH(Object(n),!0).forEach(function(r){bm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bm(e,t,n){return t=I3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I3e(e){var t=P3e(e,"string");return f0(t)=="symbol"?t:t+""}function P3e(e,t){if(f0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(f0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ji(e,t,n){return An(e)||An(t)?n:Xi(t)?al(e,t,n):bn(t)?t(e):n}function Bv(e,t,n,r){var i=_Pe(e,function(s){return Ji(s,t)});if(n==="number"){var a=i.filter(function(s){return dt(s)||parseFloat(s)});return a.length?[VS(a),bA(a)]:[1/0,-1/0]}var o=r?i.filter(function(s){return!An(s)}):i;return o.map(function(s){return Xi(s)||s instanceof Date?s:""})}var j3e=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,c=0;c<s;c++){var d=c>0?i[c-1].coordinate:i[s-1].coordinate,A=i[c].coordinate,h=c>=s-1?i[0].coordinate:i[c+1].coordinate,m=void 0;if(Wl(A-d)!==Wl(h-A)){var b=[];if(Wl(h-A)===Wl(l[1]-l[0])){m=h;var g=A+l[1]-l[0];b[0]=Math.min(g,(g+d)/2),b[1]=Math.max(g,(g+d)/2)}else{m=d;var y=h+l[1]-l[0];b[0]=Math.min(A,(y+A)/2),b[1]=Math.max(A,(y+A)/2)}var v=[Math.min(A,(m+A)/2),Math.max(A,(m+A)/2)];if(t>v[0]&&t<=v[1]||t>=b[0]&&t<=b[1]){o=i[c].index;break}}else{var x=Math.min(d,h),B=Math.max(d,h);if(t>(x+A)/2&&t<=(B+A)/2){o=i[c].index;break}}}else for(var C=0;C<s;C++)if(C===0&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C>0&&C<s-1&&t>(r[C].coordinate+r[C-1].coordinate)/2&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C===s-1&&t>(r[C].coordinate+r[C-1].coordinate)/2){o=r[C].index;break}return o},_O=function(t){var n,r=t,i=r.type.displayName,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ai(Ai({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},O3e=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,c=s.length;l<c;l++)for(var d=a[s[l]].stackGroups,A=Object.keys(d),h=0,m=A.length;h<m;h++){var b=d[A[h]],g=b.items,y=b.cateAxisId,v=g.filter(function(j){return Zu(j.type).indexOf("Bar")>=0});if(v&&v.length){var x=v[0].type.defaultProps,B=x!==void 0?Ai(Ai({},x),v[0].props):v[0].props,C=B.barSize,E=B[y];o[E]||(o[E]=[]);var T=An(C)?n:C;o[E].push({item:v[0],stackList:v.slice(1),barSize:An(T)?void 0:Th(T,r,0)})}}return o},F3e=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var c=Th(n,i,0,!0),d,A=[];if(o[0].barSize===+o[0].barSize){var h=!1,m=i/l,b=o.reduce(function(C,E){return C+E.barSize||0},0);b+=(l-1)*c,b>=i&&(b-=(l-1)*c,c=0),b>=i&&m>0&&(h=!0,m*=.9,b=l*m);var g=(i-b)/2>>0,y={offset:g-c,size:0};d=o.reduce(function(C,E){var T={item:E.item,position:{offset:y.offset+y.size+c,size:h?m:E.barSize}},j=[].concat(bH(C),[T]);return y=j[j.length-1].position,E.stackList&&E.stackList.length&&E.stackList.forEach(function(O){j.push({item:O,position:y})}),j},A)}else{var v=Th(r,i,0,!0);i-2*v-(l-1)*c<=0&&(c=0);var x=(i-2*v-(l-1)*c)/l;x>1&&(x>>=0);var B=s===+s?Math.min(x,s):x;d=o.reduce(function(C,E,T){var j=[].concat(bH(C),[{item:E.item,position:{offset:v+(x+c)*T+(x-B)/2,size:B}}]);return E.stackList&&E.stackList.length&&E.stackList.forEach(function(O){j.push({item:O,position:j[j.length-1].position})}),j},A)}return d},L3e=function(t,n,r,i){var a=r.children,o=r.width,s=r.margin,l=o-(s.left||0)-(s.right||0),c=wee({children:a,legendWidth:l});if(c){var d=i||{},A=d.width,h=d.height,m=c.align,b=c.verticalAlign,g=c.layout;if((g==="vertical"||g==="horizontal"&&b==="middle")&&m!=="center"&&dt(t[m]))return Ai(Ai({},t),{},bm({},m,t[m]+(A||0)));if((g==="horizontal"||g==="vertical"&&m==="center")&&b!=="middle"&&dt(t[b]))return Ai(Ai({},t),{},bm({},b,t[b]+(h||0)))}return t},D3e=function(t,n,r){return An(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},xee=function(t,n,r,i,a){var o=n.props.children,s=Qo(o,Rg).filter(function(c){return D3e(i,a,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,d){var A=Ji(d,r);if(An(A))return c;var h=Array.isArray(A)?[VS(A),bA(A)]:[A,A],m=l.reduce(function(b,g){var y=Ji(d,g,0),v=h[0]-Math.abs(Array.isArray(y)?y[0]:y),x=h[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(v,b[0]),Math.max(x,b[1])]},[1/0,-1/0]);return[Math.min(m[0],c[0]),Math.max(m[1],c[1])]},[1/0,-1/0])}return null},M3e=function(t,n,r,i,a){var o=n.map(function(s){return xee(t,s,r,a,i)}).filter(function(s){return!An(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},See=function(t,n,r,i,a){var o=n.map(function(l){var c=l.props.dataKey;return r==="number"&&c&&xee(t,l,c,i)||Bv(t,c,r,a)});if(r==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var d=0,A=c.length;d<A;d++)s[c[d]]||(s[c[d]]=!0,l.push(c[d]));return l},[])},Bee=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},nh=function(t,n,r){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(n||r)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Wl(s[0]-s[1])*2*c:c,n&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(A){var h=a?a.indexOf(A):A;return{coordinate:i(h)+c,value:A,offset:c}});return d.filter(function(A){return!Fg(A.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(A,h){return{coordinate:i(A)+c,value:A,index:h,offset:c}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(A){return{coordinate:i(A)+c,value:A,offset:c}}):i.domain().map(function(A,h){return{coordinate:i(A)+c,value:a?a[A]:A,index:h,offset:c}})},J4=new WeakMap,Iw=function(t,n){if(typeof n!="function")return t;J4.has(t)||J4.set(t,new WeakMap);var r=J4.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},U3e=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:a0(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:H1(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Sv(),realScaleType:"point"}:a==="category"?{scale:a0(),realScaleType:"band"}:{scale:H1(),realScaleType:"linear"};if(Nh(i)){var l="scale".concat(PS(i));return{scale:(oH[l]||Sv)(),realScaleType:oH[l]?l:"point"}}return bn(i)?{scale:i}:{scale:Sv(),realScaleType:"point"}},xH=1e-4,R3e=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-xH,o=Math.max(i[0],i[1])+xH,s=t(n[0]),l=t(n[r-1]);(s<a||s>o||l<a||l>o)&&t.domain([n[0],n[r-1]])}},Q3e=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},H3e=function(t,n){if(!n||n.length!==2||!dt(n[0])||!dt(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),a=[t[0],t[1]];return(!dt(t[0])||t[0]<r)&&(a[0]=r),(!dt(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<r&&(a[1]=r),a},$3e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0,s=0;s<n;++s){var l=Fg(t[s][r][1])?t[s][r][0]:t[s][r][1];l>=0?(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1]):(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1])}},q3e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0;o<n;++o){var s=Fg(t[o][r][1])?t[o][r][0]:t[o][r][1];s>=0?(t[o][r][0]=a,t[o][r][1]=a+s,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},z3e={sign:$3e,expand:NEe,none:qm,silhouette:TEe,wiggle:_Ee,positive:q3e},V3e=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),a=z3e[r],o=EEe().keys(i).value(function(s,l){return+Ji(s,l,0)}).order(eI).offset(a);return o(t)},W3e=function(t,n,r,i,a,o){if(!t)return null;var s=o?n.reverse():n,l={},c=s.reduce(function(A,h){var m,b=(m=h.type)!==null&&m!==void 0&&m.defaultProps?Ai(Ai({},h.type.defaultProps),h.props):h.props,g=b.stackId,y=b.hide;if(y)return A;var v=b[r],x=A[v]||{hasStack:!1,stackGroups:{}};if(Xi(g)){var B=x.stackGroups[g]||{numericAxisId:r,cateAxisId:i,items:[]};B.items.push(h),x.hasStack=!0,x.stackGroups[g]=B}else x.stackGroups[Vh("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[h]};return Ai(Ai({},A),{},bm({},v,x))},l),d={};return Object.keys(c).reduce(function(A,h){var m=c[h];if(m.hasStack){var b={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(g,y){var v=m.stackGroups[y];return Ai(Ai({},g),{},bm({},y,{numericAxisId:r,cateAxisId:i,items:v.items,stackedData:V3e(t,v.items,a)}))},b)}return Ai(Ai({},A),{},bm({},h,m))},d)},K3e=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var d=a3e(c,a,s);return t.domain([VS(d),bA(d)]),{niceTicks:d}}if(a&&i==="number"){var A=t.domain(),h=o3e(A,a,s);return{niceTicks:h}}return null};function Zm(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!An(i[t.dataKey])){var s=x1(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var l=Ji(i,An(o)?t.dataKey:o);return An(l)?null:t.scale(l)}var SH=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+i:null;var l=Ji(o,n.dataKey,n.domain[s]);return An(l)?null:n.scale(l)-a/2+i},G3e=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},Y3e=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ai(Ai({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Xi(a)){var o=n[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},X3e=function(t){return t.reduce(function(n,r){return[VS(r.concat([n[0]]).filter(dt)),bA(r.concat([n[1]]).filter(dt))]},[1/0,-1/0])},Cee=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(c,d){var A=X3e(d.slice(n,r+1));return[Math.min(c[0],A[0]),Math.max(c[1],A[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},BH=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,CH=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,CI=function(t,n,r){if(bn(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(dt(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(BH.test(t[0])){var a=+BH.exec(t[0])[1];i[0]=n[0]-a}else bn(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(dt(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(CH.test(t[1])){var o=+CH.exec(t[1])[1];i[1]=n[1]+o}else bn(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},G1=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=iO(n,function(A){return A.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var c=a[s],d=a[s-1];o=Math.min((c.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},kH=function(t,n,r){return!t||!t.length||_h(t,al(r,"type.defaultProps.domain"))?n:t},kee=function(t,n){var r=t.type.defaultProps?Ai(Ai({},t.type.defaultProps),t.props):t.props,i=r.dataKey,a=r.name,o=r.unit,s=r.formatter,l=r.tooltipType,c=r.chartType,d=r.hide;return Ai(Ai({},mn(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:_O(t),value:Ji(n,i),type:l,payload:n,chartType:c,hide:d})};function h0(e){"@babel/helpers - typeof";return h0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h0(e)}function EH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EH(Object(n),!0).forEach(function(r){J3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J3e(e,t,n){return t=Z3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z3e(e){var t=eje(e,"string");return h0(t)=="symbol"?t:t+""}function eje(e,t){if(h0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(h0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Y1=Math.PI/180,tje=function(t){return t*180/Math.PI},ka=function(t,n,r,i){return{x:t+Math.cos(-Y1*i)*r,y:n+Math.sin(-Y1*i)*r}},nje=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return Math.sqrt(Math.pow(r-a,2)+Math.pow(i-o,2))},rje=function(t,n){var r=t.x,i=t.y,a=n.cx,o=n.cy,s=nje({x:r,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(r-a)/s,c=Math.acos(l);return i>o&&(c=2*Math.PI-c),{radius:s,angle:tje(c),angleInRadian:c}},ije=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},aje=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},TH=function(t,n){var r=t.x,i=t.y,a=rje({x:r,y:i},n),o=a.radius,s=a.angle,l=n.innerRadius,c=n.outerRadius;if(o<l||o>c)return!1;if(o===0)return!0;var d=ije(n),A=d.startAngle,h=d.endAngle,m=s,b;if(A<=h){for(;m>h;)m-=360;for(;m<A;)m+=360;b=m>=A&&m<=h}else{for(;m>A;)m-=360;for(;m<h;)m+=360;b=m>=h&&m<=A}return b?NH(NH({},n),{},{radius:o,angle:aje(m,n)}):null};function p0(e){"@babel/helpers - typeof";return p0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p0(e)}var oje=["offset"];function sje(e){return dje(e)||uje(e)||cje(e)||lje()}function lje(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1363In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cje(e,t){if(e){if(typeof e=="string")return kI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kI(e,t)}}function uje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dje(e){if(Array.isArray(e))return kI(e)}function kI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Aje(e,t){if(e==null)return{};var n=fje(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function _H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_H(Object(n),!0).forEach(function(r){hje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_H(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hje(e,t,n){return t=pje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pje(e){var t=mje(e,"string");return p0(t)=="symbol"?t:t+""}function mje(e,t){if(p0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(p0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m0(){return m0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m0.apply(this,arguments)}var gje=function(t){var n=t.value,r=t.formatter,i=An(t.children)?n:t.children;return bn(r)?r(i):i},yje=function(t,n){var r=Wl(n-t),i=Math.min(Math.abs(n-t),360);return r*i},vje=function(t,n,r){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,c=l.cx,d=l.cy,A=l.innerRadius,h=l.outerRadius,m=l.startAngle,b=l.endAngle,g=l.clockWise,y=(A+h)/2,v=yje(m,b),x=v>=0?1:-1,B,C;i==="insideStart"?(B=m+x*o,C=g):i==="insideEnd"?(B=b-x*o,C=!g):i==="end"&&(B=b+x*o,C=g),C=v<=0?C:!C;var E=ka(c,d,y,B),T=ka(c,d,y,B+(C?1:-1)*359),j="M".concat(E.x,",").concat(E.y,`
1364    A`).concat(y,",").concat(y,",0,1,").concat(C?0:1,`,
1365    `).concat(T.x,",").concat(T.y),O=An(t.id)?Vh("recharts-radial-line-"):t.id;return me.createElement("text",m0({},r,{dominantBaseline:"central",className:Cn("recharts-radial-bar-label",s)}),me.createElement("defs",null,me.createElement("path",{id:O,d:j})),me.createElement("textPath",{xlinkHref:"#".concat(O)},n))},bje=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,o=a.cx,s=a.cy,l=a.innerRadius,c=a.outerRadius,d=a.startAngle,A=a.endAngle,h=(d+A)/2;if(i==="outside"){var m=ka(o,s,c+r,h),b=m.x,g=m.y;return{x:b,y:g,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var y=(l+c)/2,v=ka(o,s,y,h),x=v.x,B=v.y;return{x,y:B,textAnchor:"middle",verticalAnchor:"middle"}},wje=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,s=o.x,l=o.y,c=o.width,d=o.height,A=d>=0?1:-1,h=A*i,m=A>0?"end":"start",b=A>0?"start":"end",g=c>=0?1:-1,y=g*i,v=g>0?"end":"start",x=g>0?"start":"end";if(a==="top"){var B={x:s+c/2,y:l-A*i,textAnchor:"middle",verticalAnchor:m};return Ki(Ki({},B),r?{height:Math.max(l-r.y,0),width:c}:{})}if(a==="bottom"){var C={x:s+c/2,y:l+d+h,textAnchor:"middle",verticalAnchor:b};return Ki(Ki({},C),r?{height:Math.max(r.y+r.height-(l+d),0),width:c}:{})}if(a==="left"){var E={x:s-y,y:l+d/2,textAnchor:v,verticalAnchor:"middle"};return Ki(Ki({},E),r?{width:Math.max(E.x-r.x,0),height:d}:{})}if(a==="right"){var T={x:s+c+y,y:l+d/2,textAnchor:x,verticalAnchor:"middle"};return Ki(Ki({},T),r?{width:Math.max(r.x+r.width-T.x,0),height:d}:{})}var j=r?{width:c,height:d}:{};return a==="insideLeft"?Ki({x:s+y,y:l+d/2,textAnchor:x,verticalAnchor:"middle"},j):a==="insideRight"?Ki({x:s+c-y,y:l+d/2,textAnchor:v,verticalAnchor:"middle"},j):a==="insideTop"?Ki({x:s+c/2,y:l+h,textAnchor:"middle",verticalAnchor:b},j):a==="insideBottom"?Ki({x:s+c/2,y:l+d-h,textAnchor:"middle",verticalAnchor:m},j):a==="insideTopLeft"?Ki({x:s+y,y:l+h,textAnchor:x,verticalAnchor:b},j):a==="insideTopRight"?Ki({x:s+c-y,y:l+h,textAnchor:v,verticalAnchor:b},j):a==="insideBottomLeft"?Ki({x:s+y,y:l+d-h,textAnchor:x,verticalAnchor:m},j):a==="insideBottomRight"?Ki({x:s+c-y,y:l+d-h,textAnchor:v,verticalAnchor:m},j):Og(a)&&(dt(a.x)||Jf(a.x))&&(dt(a.y)||Jf(a.y))?Ki({x:s+Th(a.x,c),y:l+Th(a.y,d),textAnchor:"end",verticalAnchor:"end"},j):Ki({x:s+c/2,y:l+d/2,textAnchor:"middle",verticalAnchor:"middle"},j)},xje=function(t){return"cx"in t&&dt(t.cx)};function Xa(e){var t=e.offset,n=t===void 0?5:t,r=Aje(e,oje),i=Ki({offset:n},r),a=i.viewBox,o=i.position,s=i.value,l=i.children,c=i.content,d=i.className,A=d===void 0?"":d,h=i.textBreakAll;if(!a||An(s)&&An(l)&&!_.isValidElement(c)&&!bn(c))return null;if(_.isValidElement(c))return _.cloneElement(c,i);var m;if(bn(c)){if(m=_.createElement(c,i),_.isValidElement(m))return m}else m=gje(i);var b=xje(a),g=mn(i,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return vje(i,m,g);var y=b?bje(i):wje(i);return me.createElement(O1,m0({className:Cn("recharts-label",A)},g,y,{breakAll:h}),m)}Xa.displayName="Label";var Eee=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,d=t.outerRadius,A=t.x,h=t.y,m=t.top,b=t.left,g=t.width,y=t.height,v=t.clockWise,x=t.labelViewBox;if(x)return x;if(dt(g)&&dt(y)){if(dt(A)&&dt(h))return{x:A,y:h,width:g,height:y};if(dt(m)&&dt(b))return{x:m,y:b,width:g,height:y}}return dt(A)&&dt(h)?{x:A,y:h,width:0,height:0}:dt(n)&&dt(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:d||l||s||0,clockWise:v}:t.viewBox?t.viewBox:{}},Sje=function(t,n){return t?t===!0?me.createElement(Xa,{key:"label-implicit",viewBox:n}):Xi(t)?me.createElement(Xa,{key:"label-implicit",viewBox:n,value:t}):_.isValidElement(t)?t.type===Xa?_.cloneElement(t,{key:"label-implicit",viewBox:n}):me.createElement(Xa,{key:"label-implicit",content:t,viewBox:n}):bn(t)?me.createElement(Xa,{key:"label-implicit",content:t,viewBox:n}):Og(t)?me.createElement(Xa,m0({viewBox:n},t,{key:"label-implicit"})):null:null},Bje=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,a=Eee(t),o=Qo(i,Xa).map(function(l,c){return _.cloneElement(l,{viewBox:n||a,key:"label-".concat(c)})});if(!r)return o;var s=Sje(t.label,n||a);return[s].concat(sje(o))};Xa.parseViewBox=Eee;Xa.renderCallByParent=Bje;var Z4,IH;function Cje(){if(IH)return Z4;IH=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Z4=e,Z4}var kje=Cje();const Eje=nr(kje);function g0(e){"@babel/helpers - typeof";return g0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g0(e)}var Nje=["valueAccessor"],Tje=["data","dataKey","clockWise","id","textBreakAll"];function _je(e){return Oje(e)||jje(e)||Pje(e)||Ije()}function Ije(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1366In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pje(e,t){if(e){if(typeof e=="string")return EI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EI(e,t)}}function jje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Oje(e){if(Array.isArray(e))return EI(e)}function EI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X1(){return X1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X1.apply(this,arguments)}function PH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PH(Object(n),!0).forEach(function(r){Fje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fje(e,t,n){return t=Lje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lje(e){var t=Dje(e,"string");return g0(t)=="symbol"?t:t+""}function Dje(e,t){if(g0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(g0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OH(e,t){if(e==null)return{};var n=Mje(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Uje=function(t){return Array.isArray(t.value)?Eje(t.value):t.value};function Wc(e){var t=e.valueAccessor,n=t===void 0?Uje:t,r=OH(e,Nje),i=r.data,a=r.dataKey,o=r.clockWise,s=r.id,l=r.textBreakAll,c=OH(r,Tje);return!i||!i.length?null:me.createElement(Wn,{className:"recharts-label-list"},i.map(function(d,A){var h=An(a)?n(d,A):Ji(d&&d.payload,a),m=An(s)?{}:{id:"".concat(s,"-").concat(A)};return me.createElement(Xa,X1({},mn(d,!0),c,m,{parentViewBox:d.parentViewBox,value:h,textBreakAll:l,viewBox:Xa.parseViewBox(An(o)?d:jH(jH({},d),{},{clockWise:o})),key:"label-".concat(A),index:A}))}))}Wc.displayName="LabelList";function Rje(e,t){return e?e===!0?me.createElement(Wc,{key:"labelList-implicit",data:t}):me.isValidElement(e)||bn(e)?me.createElement(Wc,{key:"labelList-implicit",data:t,content:e}):Og(e)?me.createElement(Wc,X1({data:t},e,{key:"labelList-implicit"})):null:null}function Qje(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Qo(r,Wc).map(function(o,s){return _.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var a=Rje(e.label,t);return[a].concat(_je(i))}Wc.renderCallByParent=Qje;function y0(e){"@babel/helpers - typeof";return y0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y0(e)}function NI(){return NI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NI.apply(this,arguments)}function FH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FH(Object(n),!0).forEach(function(r){Hje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hje(e,t,n){return t=$je(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $je(e){var t=qje(e,"string");return y0(t)=="symbol"?t:t+""}function qje(e,t){if(y0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(y0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zje=function(t,n){var r=Wl(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Pw=function(t){var n=t.cx,r=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,d=l*(s?1:-1)+i,A=Math.asin(l/d)/Y1,h=c?a:a+o*A,m=ka(n,r,d,h),b=ka(n,r,i,h),g=c?a-o*A:a,y=ka(n,r,d*Math.cos(A*Y1),g);return{center:m,circleTangency:b,lineTangency:y,theta:A}},Nee=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=zje(o,s),c=o+l,d=ka(n,r,a,o),A=ka(n,r,a,c),h="M ".concat(d.x,",").concat(d.y,`
1367    A `).concat(a,",").concat(a,`,0,
1368    `).concat(+(Math.abs(l)>180),",").concat(+(o>c),`,
1369    `).concat(A.x,",").concat(A.y,`
1370  `);if(i>0){var m=ka(n,r,i,o),b=ka(n,r,i,c);h+="L ".concat(b.x,",").concat(b.y,`
1371            A `).concat(i,",").concat(i,`,0,
1372            `).concat(+(Math.abs(l)>180),",").concat(+(o<=c),`,
1373            `).concat(m.x,",").concat(m.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},Vje=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,d=t.endAngle,A=Wl(d-c),h=Pw({cx:n,cy:r,radius:a,angle:c,sign:A,cornerRadius:o,cornerIsExternal:l}),m=h.circleTangency,b=h.lineTangency,g=h.theta,y=Pw({cx:n,cy:r,radius:a,angle:d,sign:-A,cornerRadius:o,cornerIsExternal:l}),v=y.circleTangency,x=y.lineTangency,B=y.theta,C=l?Math.abs(c-d):Math.abs(c-d)-g-B;if(C<0)return s?"M ".concat(b.x,",").concat(b.y,`
1374        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
1375        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
1376      `):Nee({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:c,endAngle:d});var E="M ".concat(b.x,",").concat(b.y,`
1377    A`).concat(o,",").concat(o,",0,0,").concat(+(A<0),",").concat(m.x,",").concat(m.y,`
1378    A`).concat(a,",").concat(a,",0,").concat(+(C>180),",").concat(+(A<0),",").concat(v.x,",").concat(v.y,`
1379    A`).concat(o,",").concat(o,",0,0,").concat(+(A<0),",").concat(x.x,",").concat(x.y,`
1380  `);if(i>0){var T=Pw({cx:n,cy:r,radius:i,angle:c,sign:A,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=T.circleTangency,O=T.lineTangency,L=T.theta,z=Pw({cx:n,cy:r,radius:i,angle:d,sign:-A,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),F=z.circleTangency,M=z.lineTangency,V=z.theta,q=l?Math.abs(c-d):Math.abs(c-d)-L-V;if(q<0&&o===0)return"".concat(E,"L").concat(n,",").concat(r,"Z");E+="L".concat(M.x,",").concat(M.y,`
1381      A`).concat(o,",").concat(o,",0,0,").concat(+(A<0),",").concat(F.x,",").concat(F.y,`
1382      A`).concat(i,",").concat(i,",0,").concat(+(q>180),",").concat(+(A>0),",").concat(j.x,",").concat(j.y,`
1383      A`).concat(o,",").concat(o,",0,0,").concat(+(A<0),",").concat(O.x,",").concat(O.y,"Z")}else E+="L".concat(n,",").concat(r,"Z");return E},Wje={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Tee=function(t){var n=LH(LH({},Wje),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,c=n.cornerIsExternal,d=n.startAngle,A=n.endAngle,h=n.className;if(o<a||d===A)return null;var m=Cn("recharts-sector",h),b=o-a,g=Th(s,b,0,!0),y;return g>0&&Math.abs(d-A)<360?y=Vje({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(g,b/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:d,endAngle:A}):y=Nee({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:d,endAngle:A}),me.createElement("path",NI({},mn(n,!0),{className:m,d:y,role:"img"}))};function v0(e){"@babel/helpers - typeof";return v0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v0(e)}function TI(){return TI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TI.apply(this,arguments)}function DH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function MH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DH(Object(n),!0).forEach(function(r){Kje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kje(e,t,n){return t=Gje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gje(e){var t=Yje(e,"string");return v0(t)=="symbol"?t:t+""}function Yje(e,t){if(v0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(v0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UH={curveBasisClosed:mEe,curveBasisOpen:gEe,curveBasis:pEe,curveBumpX:tEe,curveBumpY:nEe,curveLinearClosed:yEe,curveLinear:OS,curveMonotoneX:vEe,curveMonotoneY:bEe,curveNatural:wEe,curveStep:xEe,curveStepAfter:BEe,curveStepBefore:SEe},jw=function(t){return t.x===+t.x&&t.y===+t.y},Ly=function(t){return t.x},Dy=function(t){return t.y},Xje=function(t,n){if(bn(t))return t;var r="curve".concat(PS(t));return(r==="curveMonotone"||r==="curveBump")&&n?UH["".concat(r).concat(n==="vertical"?"Y":"X")]:UH[r]||OS},Jje=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,c=l===void 0?!1:l,d=Xje(r,s),A=c?a.filter(function(g){return jw(g)}):a,h;if(Array.isArray(o)){var m=c?o.filter(function(g){return jw(g)}):o,b=A.map(function(g,y){return MH(MH({},g),{},{base:m[y]})});return s==="vertical"?h=Bw().y(Dy).x1(Ly).x0(function(g){return g.base.x}):h=Bw().x(Ly).y1(Dy).y0(function(g){return g.base.y}),h.defined(jw).curve(d),h(b)}return s==="vertical"&&dt(o)?h=Bw().y(Dy).x1(Ly).x0(o):dt(o)?h=Bw().x(Ly).y1(Dy).y0(o):h=LJ().x(Ly).y(Dy),h.defined(jw).curve(d),h(A)},mh=function(t){var n=t.className,r=t.points,i=t.path,a=t.pathRef;if((!r||!r.length)&&!i)return null;var o=r&&r.length?Jje(t):i;return _.createElement("path",TI({},mn(t,!1),S1(t),{className:Cn("recharts-curve",n),d:o,ref:a}))},eN={exports:{}},tN,RH;function Zje(){if(RH)return tN;RH=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return tN=e,tN}var nN,QH;function eOe(){if(QH)return nN;QH=1;var e=Zje();function t(){}function n(){}return n.resetWarningCache=t,nN=function(){function r(o,s,l,c,d,A){if(A!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},nN}var HH;function tOe(){return HH||(HH=1,eN.exports=eOe()()),eN.exports}var nOe=tOe();const Jn=nr(nOe),{getOwnPropertyNames:rOe,getOwnPropertySymbols:iOe}=Object,{hasOwnProperty:aOe}=Object.prototype;function rN(e,t){return function(r,i,a){return e(r,i,a)&&t(r,i,a)}}function Ow(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:a}=i,o=a.get(n),s=a.get(r);if(o&&s)return o===r&&s===n;a.set(n,r),a.set(r,n);const l=e(n,r,i);return a.delete(n),a.delete(r),l}}function oOe(e){return e!=null?e[Symbol.toStringTag]:void 0}function $H(e){return rOe(e).concat(iOe(e))}const sOe=Object.hasOwn||((e,t)=>aOe.call(e,t));function Gh(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const lOe="__v",cOe="__o",uOe="_owner",{getOwnPropertyDescriptor:qH,keys:zH}=Object;function dOe(e,t){return e.byteLength===t.byteLength&&J1(new Uint8Array(e),new Uint8Array(t))}function AOe(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function fOe(e,t){return e.byteLength===t.byteLength&&J1(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function hOe(e,t){return Gh(e.getTime(),t.getTime())}function pOe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function mOe(e,t){return e===t}function VH(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let d=!1,A=0;for(;(s=c.next())&&!s.done;){if(i[A]){A++;continue}const h=o.value,m=s.value;if(n.equals(h[0],m[0],l,A,e,t,n)&&n.equals(h[1],m[1],h[0],m[0],e,t,n)){d=i[A]=!0;break}A++}if(!d)return!1;l++}return!0}const gOe=Gh;function yOe(e,t,n){const r=zH(e);let i=r.length;if(zH(t).length!==i)return!1;for(;i-- >0;)if(!_ee(e,t,n,r[i]))return!1;return!0}function My(e,t,n){const r=$H(e);let i=r.length;if($H(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=r[i],!_ee(e,t,n,a)||(o=qH(e,a),s=qH(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function vOe(e,t){return Gh(e.valueOf(),t.valueOf())}function bOe(e,t){return e.source===t.source&&e.flags===t.flags}function WH(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let c=!1,d=0;for(;(s=l.next())&&!s.done;){if(!i[d]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){c=i[d]=!0;break}d++}if(!c)return!1}return!0}function J1(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function wOe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function _ee(e,t,n,r){return(r===uOe||r===cOe||r===lOe)&&(e.$$typeof||t.$$typeof)?!0:sOe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const xOe="[object ArrayBuffer]",SOe="[object Arguments]",BOe="[object Boolean]",COe="[object DataView]",kOe="[object Date]",EOe="[object Error]",NOe="[object Map]",TOe="[object Number]",_Oe="[object Object]",IOe="[object RegExp]",POe="[object Set]",jOe="[object String]",OOe={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},FOe="[object URL]",LOe=Object.prototype.toString;function DOe({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:d,areSetsEqual:A,areTypedArraysEqual:h,areUrlsEqual:m,unknownTagComparators:b}){return function(y,v,x){if(y===v)return!0;if(y==null||v==null)return!1;const B=typeof y;if(B!==typeof v)return!1;if(B!=="object")return B==="number"?s(y,v,x):B==="function"?a(y,v,x):!1;const C=y.constructor;if(C!==v.constructor)return!1;if(C===Object)return l(y,v,x);if(Array.isArray(y))return t(y,v,x);if(C===Date)return r(y,v,x);if(C===RegExp)return d(y,v,x);if(C===Map)return o(y,v,x);if(C===Set)return A(y,v,x);const E=LOe.call(y);if(E===kOe)return r(y,v,x);if(E===IOe)return d(y,v,x);if(E===NOe)return o(y,v,x);if(E===POe)return A(y,v,x);if(E===_Oe)return typeof y.then!="function"&&typeof v.then!="function"&&l(y,v,x);if(E===FOe)return m(y,v,x);if(E===EOe)return i(y,v,x);if(E===SOe)return l(y,v,x);if(OOe[E])return h(y,v,x);if(E===xOe)return e(y,v,x);if(E===COe)return n(y,v,x);if(E===BOe||E===TOe||E===jOe)return c(y,v,x);if(b){let T=b[E];if(!T){const j=oOe(y);j&&(T=b[j])}if(T)return T(y,v,x)}return!1}}function MOe({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:dOe,areArraysEqual:n?My:AOe,areDataViewsEqual:fOe,areDatesEqual:hOe,areErrorsEqual:pOe,areFunctionsEqual:mOe,areMapsEqual:n?rN(VH,My):VH,areNumbersEqual:gOe,areObjectsEqual:n?My:yOe,arePrimitiveWrappersEqual:vOe,areRegExpsEqual:bOe,areSetsEqual:n?rN(WH,My):WH,areTypedArraysEqual:n?rN(J1,My):J1,areUrlsEqual:wOe,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=Ow(r.areArraysEqual),a=Ow(r.areMapsEqual),o=Ow(r.areObjectsEqual),s=Ow(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return r}function UOe(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function ROe({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(s,l){const{cache:c=e?new WeakMap:void 0,meta:d}=n();return t(s,l,{cache:c,equals:r,meta:d,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const a={cache:void 0,equals:r,meta:void 0,strict:i};return function(s,l){return t(s,l,a)}}const QOe=nf();nf({strict:!0});nf({circular:!0});nf({circular:!0,strict:!0});nf({createInternalComparator:()=>Gh});nf({strict:!0,createInternalComparator:()=>Gh});nf({circular:!0,createInternalComparator:()=>Gh});nf({circular:!0,createInternalComparator:()=>Gh,strict:!0});function nf(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=MOe(e),o=DOe(a),s=n?n(o):UOe(o);return ROe({circular:t,comparator:o,createState:r,equals:s,strict:i})}function HOe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function KH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):HOe(i)};requestAnimationFrame(r)}function _I(e){"@babel/helpers - typeof";return _I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_I(e)}function $Oe(e){return WOe(e)||VOe(e)||zOe(e)||qOe()}function qOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1384In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zOe(e,t){if(e){if(typeof e=="string")return GH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GH(e,t)}}function GH(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WOe(e){if(Array.isArray(e))return e}function KOe(){var e={},t=function(){return null},n=!1,r=function i(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var o=a,s=$Oe(o),l=s[0],c=s.slice(1);if(typeof l=="number"){KH(i.bind(null,c),l);return}i(l),KH(i.bind(null,c));return}_I(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,r(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function b0(e){"@babel/helpers - typeof";return b0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b0(e)}function YH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function XH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YH(Object(n),!0).forEach(function(r){Iee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YH(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iee(e,t,n){return t=GOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GOe(e){var t=YOe(e,"string");return b0(t)==="symbol"?t:String(t)}function YOe(e,t){if(b0(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(b0(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var XOe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(a){return i.includes(a)})})},JOe=function(t){return t},ZOe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Cv=function(t,n){return Object.keys(n).reduce(function(r,i){return XH(XH({},r),{},Iee({},i,t(i,n[i])))},{})},JH=function(t,n,r){return t.map(function(i){return"".concat(ZOe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function eFe(e,t){return rFe(e)||nFe(e,t)||Pee(e,t)||tFe()}function tFe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1385In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nFe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function rFe(e){if(Array.isArray(e))return e}function iFe(e){return sFe(e)||oFe(e)||Pee(e)||aFe()}function aFe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1386In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pee(e,t){if(e){if(typeof e=="string")return II(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return II(e,t)}}function oFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sFe(e){if(Array.isArray(e))return II(e)}function II(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Z1=1e-4,jee=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Oee=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},ZH=function(t,n){return function(r){var i=jee(t,n);return Oee(i,r)}},lFe=function(t,n){return function(r){var i=jee(t,n),a=[].concat(iFe(i.map(function(o,s){return o*s}).slice(1)),[0]);return Oee(a,r)}},e9=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],s=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),d=eFe(c,4);i=d[0],a=d[1],o=d[2],s=d[3]}}}var A=ZH(i,o),h=ZH(a,s),m=lFe(i,o),b=function(v){return v>1?1:v<0?0:v},g=function(v){for(var x=v>1?1:v,B=x,C=0;C<8;++C){var E=A(B)-x,T=m(B);if(Math.abs(E-x)<Z1||T<Z1)return h(B);B=b(B-E/T)}return h(B)};return g.isStepper=!1,g},cFe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(d,A,h){var m=-(d-A)*r,b=h*a,g=h+(m-b)*s/1e3,y=h*s/1e3+d;return Math.abs(y-A)<Z1&&Math.abs(g)<Z1?[A,0]:[y,g]};return l.isStepper=!0,l.dt=s,l},uFe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return e9(i);case"spring":return cFe();default:if(i.split("(")[0]==="cubic-bezier")return e9(i)}return typeof i=="function"?i:null};function w0(e){"@babel/helpers - typeof";return w0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w0(e)}function t9(e){return fFe(e)||AFe(e)||Fee(e)||dFe()}function dFe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1387In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fFe(e){if(Array.isArray(e))return jI(e)}function n9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n9(Object(n),!0).forEach(function(r){PI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PI(e,t,n){return t=hFe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hFe(e){var t=pFe(e,"string");return w0(t)==="symbol"?t:String(t)}function pFe(e,t){if(w0(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(w0(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mFe(e,t){return vFe(e)||yFe(e,t)||Fee(e,t)||gFe()}function gFe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1388In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fee(e,t){if(e){if(typeof e=="string")return jI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jI(e,t)}}function jI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yFe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function vFe(e){if(Array.isArray(e))return e}var e2=function(t,n,r){return t+(n-t)*r},OI=function(t){var n=t.from,r=t.to;return n!==r},bFe=function e(t,n,r){var i=Cv(function(a,o){if(OI(o)){var s=t(o.from,o.to,o.velocity),l=mFe(s,2),c=l[0],d=l[1];return ba(ba({},o),{},{from:c,velocity:d})}return o},n);return r<1?Cv(function(a,o){return OI(o)?ba(ba({},o),{},{velocity:e2(o.velocity,i[a].velocity,r),from:e2(o.from,i[a].from,r)}):o},n):e(t,i,r-1)};const wFe=(function(e,t,n,r,i){var a=XOe(e,t),o=a.reduce(function(y,v){return ba(ba({},y),{},PI({},v,[e[v],t[v]]))},{}),s=a.reduce(function(y,v){return ba(ba({},y),{},PI({},v,{from:e[v],velocity:0,to:t[v]}))},{}),l=-1,c,d,A=function(){return null},h=function(){return Cv(function(v,x){return x.from},s)},m=function(){return!Object.values(s).filter(OI).length},b=function(v){c||(c=v);var x=v-c,B=x/n.dt;s=bFe(n,s,B),i(ba(ba(ba({},e),t),h())),c=v,m()||(l=requestAnimationFrame(A))},g=function(v){d||(d=v);var x=(v-d)/r,B=Cv(function(E,T){return e2.apply(void 0,t9(T).concat([n(x)]))},o);if(i(ba(ba(ba({},e),t),B)),x<1)l=requestAnimationFrame(A);else{var C=Cv(function(E,T){return e2.apply(void 0,t9(T).concat([n(1)]))},o);i(ba(ba(ba({},e),t),C))}};return A=n.isStepper?b:g,function(){return requestAnimationFrame(A),function(){cancelAnimationFrame(l)}}});function eg(e){"@babel/helpers - typeof";return eg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eg(e)}var xFe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function SFe(e,t){if(e==null)return{};var n=BFe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BFe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function iN(e){return NFe(e)||EFe(e)||kFe(e)||CFe()}function CFe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1389In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kFe(e,t){if(e){if(typeof e=="string")return FI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FI(e,t)}}function EFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NFe(e){if(Array.isArray(e))return FI(e)}function FI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r9(Object(n),!0).forEach(function(r){av(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function av(e,t,n){return t=Lee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _Fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lee(r.key),r)}}function IFe(e,t,n){return t&&_Fe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lee(e){var t=PFe(e,"string");return eg(t)==="symbol"?t:String(t)}function PFe(e,t){if(eg(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(eg(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jFe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LI(e,t)}function LI(e,t){return LI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LI(e,t)}function OFe(e){var t=FFe();return function(){var r=t2(e),i;if(t){var a=t2(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return DI(this,i)}}function DI(e,t){if(t&&(eg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MI(e)}function MI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FFe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function t2(e){return t2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},t2(e)}var Xl=(function(e){jFe(n,e);var t=OFe(n);function n(r,i){var a;TFe(this,n),a=t.call(this,r,i);var o=a.props,s=o.isActive,l=o.attributeName,c=o.from,d=o.to,A=o.steps,h=o.children,m=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(MI(a)),a.changeStyle=a.changeStyle.bind(MI(a)),!s||m<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:d}),DI(a);if(A&&A.length)a.state={style:A[0].style};else if(c){if(typeof h=="function")return a.state={style:c},DI(a);a.state={style:l?av({},l,c):c}}else a.state={style:{}};return a}return IFe(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,c=a.shouldReAnimate,d=a.to,A=a.from,h=this.state.style;if(s){if(!o){var m={style:l?av({},l,d):d};this.state&&h&&(l&&h[l]!==d||!l&&h!==d)&&this.setState(m);return}if(!(QOe(i.to,d)&&i.canBegin&&i.isActive)){var b=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var g=b||c?A:i.to;if(this.state&&h){var y={style:l?av({},l,g):g};(l&&h[l]!==g||!l&&h!==g)&&this.setState(y)}this.runAnimation(_l(_l({},this.props),{},{from:g,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,c=i.easing,d=i.begin,A=i.onAnimationEnd,h=i.onAnimationStart,m=wFe(o,s,uFe(c),l,this.changeStyle),b=function(){a.stopJSAnimation=m()};this.manager.start([h,d,b,l,A])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,c=o[0],d=c.style,A=c.duration,h=A===void 0?0:A,m=function(g,y,v){if(v===0)return g;var x=y.duration,B=y.easing,C=B===void 0?"ease":B,E=y.style,T=y.properties,j=y.onAnimationEnd,O=v>0?o[v-1]:y,L=T||Object.keys(E);if(typeof C=="function"||C==="spring")return[].concat(iN(g),[a.runJSAnimation.bind(a,{from:O.style,to:E,duration:x,easing:C}),x]);var z=JH(L,x,C),F=_l(_l(_l({},O.style),E),{},{transition:z});return[].concat(iN(g),[F,x,j]).filter(JOe)};return this.manager.start([l].concat(iN(o.reduce(m,[d,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=KOe());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,c=i.easing,d=i.onAnimationStart,A=i.onAnimationEnd,h=i.steps,m=i.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof c=="function"||typeof m=="function"||c==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var g=s?av({},s,l):l,y=JH(Object.keys(g),o,c);b.start([d,a,_l(_l({},g),{},{transition:y}),o,A])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=SFe(i,xFe),c=_.Children.count(a),d=this.state.style;if(typeof a=="function")return a(d);if(!s||c===0||o<=0)return a;var A=function(m){var b=m.props,g=b.style,y=g===void 0?{}:g,v=b.className,x=_.cloneElement(m,_l(_l({},l),{},{style:_l(_l({},y),d),className:v}));return x};return c===1?A(_.Children.only(a)):me.createElement("div",null,_.Children.map(a,function(h){return A(h)}))}}]),n})(_.PureComponent);Xl.displayName="Animate";Xl.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Xl.propTypes={from:Jn.oneOfType([Jn.object,Jn.string]),to:Jn.oneOfType([Jn.object,Jn.string]),attributeName:Jn.string,duration:Jn.number,begin:Jn.number,easing:Jn.oneOfType([Jn.string,Jn.func]),steps:Jn.arrayOf(Jn.shape({duration:Jn.number.isRequired,style:Jn.object.isRequired,easing:Jn.oneOfType([Jn.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Jn.func]),properties:Jn.arrayOf("string"),onAnimationEnd:Jn.func})),children:Jn.oneOfType([Jn.node,Jn.func]),isActive:Jn.bool,canBegin:Jn.bool,onAnimationEnd:Jn.func,shouldReAnimate:Jn.bool,onAnimationStart:Jn.func,onAnimationReStart:Jn.func};function n2(){return n2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n2.apply(null,arguments)}function x0(e){"@babel/helpers - typeof";return x0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x0(e)}function r2(){return r2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r2.apply(this,arguments)}function LFe(e,t){return RFe(e)||UFe(e,t)||MFe(e,t)||DFe()}function DFe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1390In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MFe(e,t){if(e){if(typeof e=="string")return i9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i9(e,t)}}function i9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UFe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function RFe(e){if(Array.isArray(e))return e}function a9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function o9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a9(Object(n),!0).forEach(function(r){QFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QFe(e,t,n){return t=HFe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HFe(e){var t=$Fe(e,"string");return x0(t)=="symbol"?t:t+""}function $Fe(e,t){if(x0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(x0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var s9=function(t,n,r,i,a){var o=Math.min(Math.abs(r)/2,Math.abs(i)/2),s=i>=0?1:-1,l=r>=0?1:-1,c=i>=0&&r>=0||i<0&&r<0?1:0,d;if(o>0&&a instanceof Array){for(var A=[0,0,0,0],h=0,m=4;h<m;h++)A[h]=a[h]>o?o:a[h];d="M".concat(t,",").concat(n+s*A[0]),A[0]>0&&(d+="A ".concat(A[0],",").concat(A[0],",0,0,").concat(c,",").concat(t+l*A[0],",").concat(n)),d+="L ".concat(t+r-l*A[1],",").concat(n),A[1]>0&&(d+="A ".concat(A[1],",").concat(A[1],",0,0,").concat(c,`,
1391        `).concat(t+r,",").concat(n+s*A[1])),d+="L ".concat(t+r,",").concat(n+i-s*A[2]),A[2]>0&&(d+="A ".concat(A[2],",").concat(A[2],",0,0,").concat(c,`,
1392        `).concat(t+r-l*A[2],",").concat(n+i)),d+="L ".concat(t+l*A[3],",").concat(n+i),A[3]>0&&(d+="A ".concat(A[3],",").concat(A[3],",0,0,").concat(c,`,
1393        `).concat(t,",").concat(n+i-s*A[3])),d+="Z"}else if(o>0&&a===+a&&a>0){var b=Math.min(o,a);d="M ".concat(t,",").concat(n+s*b,`
1394            A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t+l*b,",").concat(n,`
1395            L `).concat(t+r-l*b,",").concat(n,`
1396            A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t+r,",").concat(n+s*b,`
1397            L `).concat(t+r,",").concat(n+i-s*b,`
1398            A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t+r-l*b,",").concat(n+i,`
1399            L `).concat(t+l*b,",").concat(n+i,`
1400            A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t,",").concat(n+i-s*b," Z")}else d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return d},qFe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(a,a+s),d=Math.max(a,a+s),A=Math.min(o,o+l),h=Math.max(o,o+l);return r>=c&&r<=d&&i>=A&&i<=h}return!1},zFe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},IO=function(t){var n=o9(o9({},zFe),t),r=_.useRef(),i=_.useState(-1),a=LFe(i,2),o=a[0],s=a[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var C=r.current.getTotalLength();C&&s(C)}catch{}},[]);var l=n.x,c=n.y,d=n.width,A=n.height,h=n.radius,m=n.className,b=n.animationEasing,g=n.animationDuration,y=n.animationBegin,v=n.isAnimationActive,x=n.isUpdateAnimationActive;if(l!==+l||c!==+c||d!==+d||A!==+A||d===0||A===0)return null;var B=Cn("recharts-rectangle",m);return x?me.createElement(Xl,{canBegin:o>0,from:{width:d,height:A,x:l,y:c},to:{width:d,height:A,x:l,y:c},duration:g,animationEasing:b,isActive:x},function(C){var E=C.width,T=C.height,j=C.x,O=C.y;return me.createElement(Xl,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:g,isActive:v,easing:b},me.createElement("path",r2({},mn(n,!0),{className:B,d:s9(j,O,E,T,h),ref:r})))}):me.createElement("path",r2({},mn(n,!0),{className:B,d:s9(l,c,d,A,h)}))};function UI(){return UI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UI.apply(this,arguments)}var GS=function(t){var n=t.cx,r=t.cy,i=t.r,a=t.className,o=Cn("recharts-dot",a);return n===+n&&r===+r&&i===+i?_.createElement("circle",UI({},mn(t,!1),S1(t),{className:o,cx:n,cy:r,r:i})):null};function S0(e){"@babel/helpers - typeof";return S0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S0(e)}var VFe=["x","y","top","left","width","height","className"];function RI(){return RI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RI.apply(this,arguments)}function l9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WFe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l9(Object(n),!0).forEach(function(r){KFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KFe(e,t,n){return t=GFe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GFe(e){var t=YFe(e,"string");return S0(t)=="symbol"?t:t+""}function YFe(e,t){if(S0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(S0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XFe(e,t){if(e==null)return{};var n=JFe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function JFe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ZFe=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},eLe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,c=l===void 0?0:l,d=t.width,A=d===void 0?0:d,h=t.height,m=h===void 0?0:h,b=t.className,g=XFe(t,VFe),y=WFe({x:r,y:a,top:s,left:c,width:A,height:m},g);return!dt(r)||!dt(a)||!dt(A)||!dt(m)||!dt(s)||!dt(c)?null:me.createElement("path",RI({},mn(y,!0),{className:Cn("recharts-cross",b),d:ZFe(r,a,A,m,s,c)}))},aN,c9;function tLe(){if(c9)return aN;c9=1;var e=aZ(),t=e(Object.getPrototypeOf,Object);return aN=t,aN}var oN,u9;function nLe(){if(u9)return oN;u9=1;var e=fd(),t=tLe(),n=hd(),r="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function c(d){if(!n(d)||e(d)!=r)return!1;var A=t(d);if(A===null)return!0;var h=s.call(A,"constructor")&&A.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==l}return oN=c,oN}var rLe=nLe();const iLe=nr(rLe);var sN,d9;function aLe(){if(d9)return sN;d9=1;var e=fd(),t=hd(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return sN=r,sN}var oLe=aLe();const sLe=nr(oLe);function B0(e){"@babel/helpers - typeof";return B0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B0(e)}function i2(){return i2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i2.apply(this,arguments)}function lLe(e,t){return ALe(e)||dLe(e,t)||uLe(e,t)||cLe()}function cLe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1401In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uLe(e,t){if(e){if(typeof e=="string")return A9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A9(e,t)}}function A9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dLe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function ALe(e){if(Array.isArray(e))return e}function f9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function h9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f9(Object(n),!0).forEach(function(r){fLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fLe(e,t,n){return t=hLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hLe(e){var t=pLe(e,"string");return B0(t)=="symbol"?t:t+""}function pLe(e,t){if(B0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(B0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p9=function(t,n,r,i,a){var o=r-i,s;return s="M ".concat(t,",").concat(n),s+="L ".concat(t+r,",").concat(n),s+="L ".concat(t+r-o/2,",").concat(n+a),s+="L ".concat(t+r-o/2-i,",").concat(n+a),s+="L ".concat(t,",").concat(n," Z"),s},mLe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gLe=function(t){var n=h9(h9({},mLe),t),r=_.useRef(),i=_.useState(-1),a=lLe(i,2),o=a[0],s=a[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var B=r.current.getTotalLength();B&&s(B)}catch{}},[]);var l=n.x,c=n.y,d=n.upperWidth,A=n.lowerWidth,h=n.height,m=n.className,b=n.animationEasing,g=n.animationDuration,y=n.animationBegin,v=n.isUpdateAnimationActive;if(l!==+l||c!==+c||d!==+d||A!==+A||h!==+h||d===0&&A===0||h===0)return null;var x=Cn("recharts-trapezoid",m);return v?me.createElement(Xl,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:c},to:{upperWidth:d,lowerWidth:A,height:h,x:l,y:c},duration:g,animationEasing:b,isActive:v},function(B){var C=B.upperWidth,E=B.lowerWidth,T=B.height,j=B.x,O=B.y;return me.createElement(Xl,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:g,easing:b},me.createElement("path",i2({},mn(n,!0),{className:x,d:p9(j,O,C,E,T),ref:r})))}):me.createElement("g",null,me.createElement("path",i2({},mn(n,!0),{className:x,d:p9(l,c,d,A,h)})))},yLe=["option","shapeType","propTransformer","activeClassName","isActive"];function C0(e){"@babel/helpers - typeof";return C0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C0(e)}function vLe(e,t){if(e==null)return{};var n=bLe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bLe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function m9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function a2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m9(Object(n),!0).forEach(function(r){wLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wLe(e,t,n){return t=xLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xLe(e){var t=SLe(e,"string");return C0(t)=="symbol"?t:t+""}function SLe(e,t){if(C0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(C0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BLe(e,t){return a2(a2({},t),e)}function CLe(e,t){return e==="symbols"}function g9(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return me.createElement(IO,n);case"trapezoid":return me.createElement(gLe,n);case"sector":return me.createElement(Tee,n);case"symbols":if(CLe(t))return me.createElement(LS,n);break;default:return null}}function kLe(e){return _.isValidElement(e)?e.props:e}function QI(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?BLe:r,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=vLe(e,yLe),c;if(_.isValidElement(t))c=_.cloneElement(t,a2(a2({},l),kLe(t)));else if(bn(t))c=t(l);else if(iLe(t)&&!sLe(t)){var d=i(t,l);c=me.createElement(g9,{shapeType:n,elementProps:d})}else{var A=l;c=me.createElement(g9,{shapeType:n,elementProps:A})}return s?me.createElement(Wn,{className:o},c):c}function YS(e,t){return t!=null&&"trapezoids"in e.props}function XS(e,t){return t!=null&&"sectors"in e.props}function k0(e,t){return t!=null&&"points"in e.props}function ELe(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&a}function NLe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function TLe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function _Le(e,t){var n;return YS(e,t)?n=ELe:XS(e,t)?n=NLe:k0(e,t)&&(n=TLe),n}function ILe(e,t){var n;return YS(e,t)?n="trapezoids":XS(e,t)?n="sectors":k0(e,t)&&(n="points"),n}function PLe(e,t){if(YS(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(XS(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return k0(e,t)?t.payload:{}}function jLe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=ILe(n,t),a=PLe(n,t),o=r.filter(function(l,c){var d=_h(a,l),A=n.props[i].filter(function(b){var g=_Le(n,t);return g(b,t)}),h=n.props[i].indexOf(A[A.length-1]),m=c===h;return d&&m}),s=r.indexOf(o[o.length-1]);return s}var lN,y9;function OLe(){if(y9)return lN;y9=1;var e=Math.ceil,t=Math.max;function n(r,i,a,o){for(var s=-1,l=t(e((i-r)/(a||1)),0),c=Array(l);l--;)c[o?l:++s]=r,r+=a;return c}return lN=n,lN}var cN,v9;function Dee(){if(v9)return cN;v9=1;var e=wZ(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*n}return i===i?i:0}return cN=r,cN}var uN,b9;function FLe(){if(b9)return uN;b9=1;var e=OLe(),t=US(),n=Dee();function r(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=n(a),o===void 0?(o=a,a=0):o=n(o),s=s===void 0?a<o?1:-1:n(s),e(a,o,s,i)}}return uN=r,uN}var dN,w9;function LLe(){if(w9)return dN;w9=1;var e=FLe(),t=e();return dN=t,dN}var DLe=LLe();const o2=nr(DLe);function E0(e){"@babel/helpers - typeof";return E0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E0(e)}function x9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function S9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x9(Object(n),!0).forEach(function(r){Mee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mee(e,t,n){return t=MLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MLe(e){var t=ULe(e,"string");return E0(t)=="symbol"?t:t+""}function ULe(e,t){if(E0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(E0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RLe=["Webkit","Moz","O","ms"],QLe=function(t,n){var r=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=RLe.reduce(function(a,o){return S9(S9({},a),{},Mee({},o+r,n))},{});return i[t]=n,i};function tg(e){"@babel/helpers - typeof";return tg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tg(e)}function s2(){return s2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s2.apply(this,arguments)}function B9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B9(Object(n),!0).forEach(function(r){As(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ree(r.key),r)}}function $Le(e,t,n){return t&&C9(e.prototype,t),n&&C9(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qLe(e,t,n){return t=l2(t),zLe(e,Uee()?Reflect.construct(t,n||[],l2(e).constructor):t.apply(e,n))}function zLe(e,t){if(t&&(tg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VLe(e)}function VLe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uee=function(){return!!e})()}function l2(e){return l2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},l2(e)}function WLe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HI(e,t)}function HI(e,t){return HI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},HI(e,t)}function As(e,t,n){return t=Ree(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ree(e){var t=KLe(e,"string");return tg(t)=="symbol"?t:t+""}function KLe(e,t){if(tg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var GLe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,c=Sv().domain(o2(0,l)).range([a,a+o-s]),d=c.domain().map(function(A){return c(A)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(i),scale:c,scaleValues:d}},k9=function(t){return t.changedTouches&&!!t.changedTouches.length},ng=(function(e){function t(n){var r;return HLe(this,t),r=qLe(this,t,[n]),As(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),As(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),As(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),r.detachDragEndListener()}),As(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),As(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),As(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),As(r,"handleSlideDragStart",function(i){var a=k9(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return WLe(t,e),$Le(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,o=this.state.scaleValues,s=this.props,l=s.gap,c=s.data,d=c.length-1,A=Math.min(i,a),h=Math.max(i,a),m=t.getIndexInRange(o,A),b=t.getIndexInRange(o,h);return{startIndex:m-m%l,endIndex:b===d?d:b-b%l}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=Ji(a[r],s,r);return bn(o)?o(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,c=l.x,d=l.width,A=l.travellerWidth,h=l.startIndex,m=l.endIndex,b=l.onChange,g=r.pageX-a;g>0?g=Math.min(g,c+d-A-s,c+d-A-o):g<0&&(g=Math.max(g,c-o,c-s));var y=this.getIndex({startX:o+g,endX:s+g});(y.startIndex!==h||y.endIndex!==m)&&b&&b(y),this.setState({startX:o+g,endX:s+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=k9(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,c=this.state[o],d=this.props,A=d.x,h=d.width,m=d.travellerWidth,b=d.onChange,g=d.gap,y=d.data,v={startX:this.state.startX,endX:this.state.endX},x=r.pageX-a;x>0?x=Math.min(x,A+h-m-c):x<0&&(x=Math.max(x,A-c)),v[o]=c+x;var B=this.getIndex(v),C=B.startIndex,E=B.endIndex,T=function(){var O=y.length-1;return o==="startX"&&(s>l?C%g===0:E%g===0)||s<l&&E===O||o==="endX"&&(s>l?E%g===0:C%g===0)||s>l&&E===O};this.setState(As(As({},o,c+x),"brushMoveStartX",r.pageX),function(){b&&T()&&b(B)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,c=o.endX,d=this.state[i],A=s.indexOf(d);if(A!==-1){var h=A+r;if(!(h===-1||h>=s.length)){var m=s[h];i==="startX"&&m>=c||i==="endX"&&m<=l||this.setState(As({},i,m),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,s=r.height,l=r.fill,c=r.stroke;return me.createElement("rect",{stroke:c,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,s=r.height,l=r.data,c=r.children,d=r.padding,A=_.Children.only(c);return A?me.cloneElement(A,{x:i,y:a,width:o,height:s,margin:d,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,i){var a,o,s=this,l=this.props,c=l.y,d=l.travellerWidth,A=l.height,h=l.traveller,m=l.ariaLabel,b=l.data,g=l.startIndex,y=l.endIndex,v=Math.max(r,this.props.x),x=AN(AN({},mn(this.props,!1)),{},{x:v,y:c,width:d,height:A}),B=m||"Min value: ".concat((a=b[g])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=b[y])===null||o===void 0?void 0:o.name);return me.createElement(Wn,{tabIndex:0,role:"slider","aria-label":B,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(E){["ArrowLeft","ArrowRight"].includes(E.key)&&(E.preventDefault(),E.stopPropagation(),s.handleTravellerMoveKeyboard(E.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(r,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,c=a.travellerWidth,d=Math.min(r,i)+c,A=Math.max(Math.abs(i-r)-c,0);return me.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:d,y:o,width:A,height:s})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,o=r.y,s=r.height,l=r.travellerWidth,c=r.stroke,d=this.state,A=d.startX,h=d.endX,m=5,b={pointerEvents:"none",fill:c};return me.createElement(Wn,{className:"recharts-brush-texts"},me.createElement(O1,s2({textAnchor:"end",verticalAnchor:"middle",x:Math.min(A,h)-m,y:o+s/2},b),this.getTextOfTick(i)),me.createElement(O1,s2({textAnchor:"start",verticalAnchor:"middle",x:Math.max(A,h)+l+m,y:o+s/2},b),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,o=r.children,s=r.x,l=r.y,c=r.width,d=r.height,A=r.alwaysShowText,h=this.state,m=h.startX,b=h.endX,g=h.isTextActive,y=h.isSlideMoving,v=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!dt(s)||!dt(l)||!dt(c)||!dt(d)||c<=0||d<=0)return null;var B=Cn("recharts-brush",a),C=me.Children.count(o)===1,E=QLe("userSelect","none");return me.createElement(Wn,{className:B,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),C&&this.renderPanorama(),this.renderSlide(m,b),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(b,"endX"),(g||y||v||x||A)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,o=r.width,s=r.height,l=r.stroke,c=Math.floor(a+s/2)-1;return me.createElement(me.Fragment,null,me.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),me.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),me.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return me.isValidElement(r)?a=me.cloneElement(r,i):bn(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,o=r.width,s=r.x,l=r.travellerWidth,c=r.updateId,d=r.startIndex,A=r.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return AN({prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o},a&&a.length?GLe({data:a,width:o,x:s,travellerWidth:l,startIndex:d,endIndex:A}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var h=i.scale.domain().map(function(m){return i.scale(m)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);r[l]>i?s=l:o=l}return i>=r[s]?s:o}}])})(_.PureComponent);As(ng,"displayName","Brush");As(ng,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var fN,E9;function YLe(){if(E9)return fN;E9=1;var e=rO();function t(n,r){var i;return e(n,function(a,o,s){return i=r(a,o,s),!i}),!!i}return fN=t,fN}var hN,N9;function XLe(){if(N9)return hN;N9=1;var e=JJ(),t=JA(),n=YLe(),r=$o(),i=US();function a(o,s,l){var c=r(o)?e:n;return l&&i(o,s,l)&&(s=void 0),c(o,t(s,3))}return hN=a,hN}var JLe=XLe();const ZLe=nr(JLe);var Kc=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},pN,T9;function e6e(){if(T9)return pN;T9=1;var e=mZ();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return pN=t,pN}var mN,_9;function t6e(){if(_9)return mN;_9=1;var e=e6e(),t=hZ(),n=JA();function r(i,a){var o={};return a=n(a,3),t(i,function(s,l,c){e(o,l,a(s,l,c))}),o}return mN=r,mN}var n6e=t6e();const r6e=nr(n6e);var gN,I9;function i6e(){if(I9)return gN;I9=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return gN=e,gN}var yN,P9;function a6e(){if(P9)return yN;P9=1;var e=rO();function t(n,r){var i=!0;return e(n,function(a,o,s){return i=!!r(a,o,s),i}),i}return yN=t,yN}var vN,j9;function o6e(){if(j9)return vN;j9=1;var e=i6e(),t=a6e(),n=JA(),r=$o(),i=US();function a(o,s,l){var c=r(o)?e:t;return l&&i(o,s,l)&&(s=void 0),c(o,n(s,3))}return vN=a,vN}var s6e=o6e();const l6e=nr(s6e);var c6e=["x","y"];function N0(e){"@babel/helpers - typeof";return N0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N0(e)}function $I(){return $I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$I.apply(this,arguments)}function O9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O9(Object(n),!0).forEach(function(r){u6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u6e(e,t,n){return t=d6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d6e(e){var t=A6e(e,"string");return N0(t)=="symbol"?t:t+""}function A6e(e,t){if(N0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(N0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f6e(e,t){if(e==null)return{};var n=h6e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h6e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function p6e(e,t){var n=e.x,r=e.y,i=f6e(e,c6e),a="".concat(n),o=parseInt(a,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||i.height),d=parseInt(c,10),A="".concat(t.width||i.width),h=parseInt(A,10);return Uy(Uy(Uy(Uy(Uy({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:d,width:h,name:t.name,radius:t.radius})}function F9(e){return me.createElement(QI,$I({shapeType:"rectangle",propTransformer:p6e,activeClassName:"recharts-active-bar"},e))}var m6e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var a=dt(r)||xke(r);return a?t(r,i):(a||RA(),n)}},g6e=["value","background"],Qee;function rg(e){"@babel/helpers - typeof";return rg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rg(e)}function y6e(e,t){if(e==null)return{};var n=v6e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function v6e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function c2(){return c2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c2.apply(this,arguments)}function L9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L9(Object(n),!0).forEach(function(r){wA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$ee(r.key),r)}}function w6e(e,t,n){return t&&D9(e.prototype,t),n&&D9(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function x6e(e,t,n){return t=u2(t),S6e(e,Hee()?Reflect.construct(t,n||[],u2(e).constructor):t.apply(e,n))}function S6e(e,t){if(t&&(rg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B6e(e)}function B6e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hee=function(){return!!e})()}function u2(e){return u2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},u2(e)}function C6e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qI(e,t)}function qI(e,t){return qI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qI(e,t)}function wA(e,t,n){return t=$ee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ee(e){var t=k6e(e,"string");return rg(t)=="symbol"?t:t+""}function k6e(e,t){if(rg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hr=(function(e){function t(){var n;b6e(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=x6e(this,t,[].concat(i)),wA(n,"state",{isAnimationFinished:!1}),wA(n,"id",Vh("recharts-bar-")),wA(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),wA(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return C6e(t,e),w6e(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,c=a.activeBar,d=mn(this.props,!1);return r&&r.map(function(A,h){var m=h===l,b=m?c:o,g=Oi(Oi(Oi({},d),A),{},{isActive:m,option:b,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return me.createElement(Wn,c2({className:"recharts-bar-rectangle"},Xv(i.props,A,h),{key:"rectangle-".concat(A==null?void 0:A.x,"-").concat(A==null?void 0:A.y,"-").concat(A==null?void 0:A.value,"-").concat(h)}),me.createElement(F9,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,d=i.animationEasing,A=i.animationId,h=this.state.prevData;return me.createElement(Xl,{begin:l,duration:c,isActive:s,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(A),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var b=m.t,g=a.map(function(y,v){var x=h&&h[v];if(x){var B=wi(x.x,y.x),C=wi(x.y,y.y),E=wi(x.width,y.width),T=wi(x.height,y.height);return Oi(Oi({},y),{},{x:B(b),y:C(b),width:E(b),height:T(b)})}if(o==="horizontal"){var j=wi(0,y.height),O=j(b);return Oi(Oi({},y),{},{y:y.y+y.height-O,height:O})}var L=wi(0,y.width),z=L(b);return Oi(Oi({},y),{},{width:z})});return me.createElement(Wn,null,r.renderRectanglesStatically(g))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,a=r.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!_h(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=mn(this.props.background,!1);return a.map(function(c,d){c.value;var A=c.background,h=y6e(c,g6e);if(!A)return null;var m=Oi(Oi(Oi(Oi(Oi({},h),{},{fill:"#eee"},A),l),Xv(r.props,c,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return me.createElement(F9,c2({key:"background-bar-".concat(d),option:r.props.background,isActive:d===s},m))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,c=a.layout,d=a.children,A=Qo(d,Rg);if(!A)return null;var h=c==="vertical"?o[0].height/2:o[0].width/2,m=function(y,v){var x=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:x,errorVal:Ji(y,v)}},b={clipPath:r?"url(#clipPath-".concat(i,")"):null};return me.createElement(Wn,b,A.map(function(g){return me.cloneElement(g,{key:"error-bar-".concat(i,"-").concat(g.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,offset:h,dataPointFormatter:m})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.data,o=r.className,s=r.xAxis,l=r.yAxis,c=r.left,d=r.top,A=r.width,h=r.height,m=r.isAnimationActive,b=r.background,g=r.id;if(i||!a||!a.length)return null;var y=this.state.isAnimationFinished,v=Cn("recharts-bar",o),x=s&&s.allowDataOverflow,B=l&&l.allowDataOverflow,C=x||B,E=An(g)?this.id:g;return me.createElement(Wn,{className:v},x||B?me.createElement("defs",null,me.createElement("clipPath",{id:"clipPath-".concat(E)},me.createElement("rect",{x:x?c:c-A/2,y:B?d:d-h/2,width:x?A:A*2,height:B?h:h*2}))):null,me.createElement(Wn,{className:"recharts-bar-rectangles",clipPath:C?"url(#clipPath-".concat(E,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(C,E),(!m||y)&&Wc.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(_.PureComponent);Qee=Hr;wA(Hr,"displayName","Bar");wA(Hr,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ZA.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});wA(Hr,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,d=e.dataStartIndex,A=e.displayedData,h=e.offset,m=Q3e(r,n);if(!m)return null;var b=t.layout,g=n.type.defaultProps,y=g!==void 0?Oi(Oi({},g),n.props):n.props,v=y.dataKey,x=y.children,B=y.minPointSize,C=b==="horizontal"?o:a,E=c?C.scale.domain():null,T=G3e({numericAxis:C}),j=Qo(x,Zf),O=A.map(function(L,z){var F,M,V,q,W,ee;c?F=H3e(c[d+z],E):(F=Ji(L,v),Array.isArray(F)||(F=[T,F]));var ne=m6e(B,Qee.defaultProps.minPointSize)(F[1],z);if(b==="horizontal"){var K,oe=[o.scale(F[0]),o.scale(F[1])],$=oe[0],X=oe[1];M=SH({axis:a,ticks:s,bandSize:i,offset:m.offset,entry:L,index:z}),V=(K=X??$)!==null&&K!==void 0?K:void 0,q=m.size;var Q=$-X;if(W=Number.isNaN(Q)?0:Q,ee={x:M,y:o.y,width:q,height:o.height},Math.abs(ne)>0&&Math.abs(W)<Math.abs(ne)){var R=Wl(W||ne)*(Math.abs(ne)-Math.abs(W));V-=R,W+=R}}else{var re=[a.scale(F[0]),a.scale(F[1])],ce=re[0],le=re[1];if(M=ce,V=SH({axis:o,ticks:l,bandSize:i,offset:m.offset,entry:L,index:z}),q=le-ce,W=m.size,ee={x:a.x,y:V,width:a.width,height:W},Math.abs(ne)>0&&Math.abs(q)<Math.abs(ne)){var he=Wl(q||ne)*(Math.abs(ne)-Math.abs(q));q+=he}}return Oi(Oi(Oi({},L),{},{x:M,y:V,width:q,height:W,value:c?F:F[1],payload:L,background:ee},j&&j[z]&&j[z].props),{},{tooltipPayload:[kee(n,L)],tooltipPosition:{x:M+q/2,y:V+W/2}})});return Oi({data:O,layout:b},h)});function T0(e){"@babel/helpers - typeof";return T0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T0(e)}function E6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qee(r.key),r)}}function N6e(e,t,n){return t&&M9(e.prototype,t),n&&M9(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function U9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U9(Object(n),!0).forEach(function(r){JS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JS(e,t,n){return t=qee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qee(e){var t=T6e(e,"string");return T0(t)=="symbol"?t:t+""}function T6e(e,t){if(T0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(T0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zee=function(t,n,r,i,a){var o=t.width,s=t.height,l=t.layout,c=t.children,d=Object.keys(n),A={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},h=!!fs(c,Hr);return d.reduce(function(m,b){var g=n[b],y=g.orientation,v=g.domain,x=g.padding,B=x===void 0?{}:x,C=g.mirror,E=g.reversed,T="".concat(y).concat(C?"Mirror":""),j,O,L,z,F;if(g.type==="number"&&(g.padding==="gap"||g.padding==="no-gap")){var M=v[1]-v[0],V=1/0,q=g.categoricalDomain.sort(kke);if(q.forEach(function(re,ce){ce>0&&(V=Math.min((re||0)-(q[ce-1]||0),V))}),Number.isFinite(V)){var W=V/M,ee=g.layout==="vertical"?r.height:r.width;if(g.padding==="gap"&&(j=W*ee/2),g.padding==="no-gap"){var ne=Th(t.barCategoryGap,W*ee),K=W*ee/2;j=K-ne-(K-ne)/ee*ne}}}i==="xAxis"?O=[r.left+(B.left||0)+(j||0),r.left+r.width-(B.right||0)-(j||0)]:i==="yAxis"?O=l==="horizontal"?[r.top+r.height-(B.bottom||0),r.top+(B.top||0)]:[r.top+(B.top||0)+(j||0),r.top+r.height-(B.bottom||0)-(j||0)]:O=g.range,E&&(O=[O[1],O[0]]);var oe=U3e(g,a,h),$=oe.scale,X=oe.realScaleType;$.domain(v).range(O),R3e($);var Q=K3e($,Hl(Hl({},g),{},{realScaleType:X}));i==="xAxis"?(F=y==="top"&&!C||y==="bottom"&&C,L=r.left,z=A[T]-F*g.height):i==="yAxis"&&(F=y==="left"&&!C||y==="right"&&C,L=A[T]-F*g.width,z=r.top);var R=Hl(Hl(Hl({},g),Q),{},{realScaleType:X,x:L,y:z,scale:$,width:i==="xAxis"?r.width:g.width,height:i==="yAxis"?r.height:g.height});return R.bandSize=G1(R,Q),!g.hide&&i==="xAxis"?A[T]+=(F?-1:1)*R.height:g.hide||(A[T]+=(F?-1:1)*R.width),Hl(Hl({},m),{},JS({},b,R))},{})},Vee=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},_6e=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return Vee({x:n,y:r},{x:i,y:a})},Wee=(function(){function e(t){E6e(this,e),this.scale=t}return N6e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();JS(Wee,"EPS",1e-4);var PO=function(t){var n=Object.keys(t).reduce(function(r,i){return Hl(Hl({},r),{},JS({},i,Wee.create(t[i])))},{});return Hl(Hl({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return r6e(i,function(l,c){return n[c].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return l6e(i,function(a,o){return n[o].isInRange(a)})}})};function I6e(e){return(e%180+180)%180}var P6e=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=I6e(i),o=a*Math.PI/180,s=Math.atan(r/n),l=o>s&&o<Math.PI-s?r/Math.sin(o):n/Math.cos(o);return Math.abs(l)},bN,R9;function j6e(){if(R9)return bN;R9=1;var e=JA(),t=Ab(),n=DS();function r(i){return function(a,o,s){var l=Object(a);if(!t(a)){var c=e(o,3);a=n(a),o=function(A){return c(l[A],A,l)}}var d=i(a,o,s);return d>-1?l[c?a[d]:d]:void 0}}return bN=r,bN}var wN,Q9;function O6e(){if(Q9)return wN;Q9=1;var e=Dee();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return wN=t,wN}var xN,H9;function F6e(){if(H9)return xN;H9=1;var e=cZ(),t=JA(),n=O6e(),r=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var c=s==null?0:n(s);return c<0&&(c=r(l+c,0)),e(a,t(o,3),c)}return xN=i,xN}var SN,$9;function L6e(){if($9)return SN;$9=1;var e=j6e(),t=F6e(),n=e(t);return SN=n,SN}L6e();var D6e=BJ();const M6e=nr(D6e);var U6e=M6e(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Kee=_.createContext(void 0),Gee=_.createContext(void 0),Yee=_.createContext(void 0),R6e=_.createContext({}),Xee=_.createContext(void 0),Jee=_.createContext(0),Zee=_.createContext(0),q9=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,o=t.clipPathId,s=t.children,l=t.width,c=t.height,d=U6e(a);return me.createElement(Kee.Provider,{value:r},me.createElement(Gee.Provider,{value:i},me.createElement(R6e.Provider,{value:a},me.createElement(Yee.Provider,{value:d},me.createElement(Xee.Provider,{value:o},me.createElement(Jee.Provider,{value:c},me.createElement(Zee.Provider,{value:l},s)))))))},Q6e=function(){return _.useContext(Xee)},ete=function(t){var n=_.useContext(Kee);n==null&&RA();var r=n[t];return r==null&&RA(),r},tte=function(t){var n=_.useContext(Gee);n==null&&RA();var r=n[t];return r==null&&RA(),r},H6e=function(){var t=_.useContext(Yee);return t},nte=function(){return _.useContext(Zee)},rte=function(){return _.useContext(Jee)};function ig(e){"@babel/helpers - typeof";return ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ig(e)}function $6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q6e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ate(r.key),r)}}function z6e(e,t,n){return t&&q6e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V6e(e,t,n){return t=d2(t),W6e(e,ite()?Reflect.construct(t,n||[],d2(e).constructor):t.apply(e,n))}function W6e(e,t){if(t&&(ig(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K6e(e)}function K6e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ite(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ite=function(){return!!e})()}function d2(e){return d2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},d2(e)}function G6e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zI(e,t)}function zI(e,t){return zI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zI(e,t)}function z9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z9(Object(n),!0).forEach(function(r){jO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jO(e,t,n){return t=ate(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ate(e){var t=Y6e(e,"string");return ig(t)=="symbol"?t:t+""}function Y6e(e,t){if(ig(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ig(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function X6e(e,t){return tDe(e)||eDe(e,t)||Z6e(e,t)||J6e()}function J6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1402In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z6e(e,t){if(e){if(typeof e=="string")return W9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W9(e,t)}}function W9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eDe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function tDe(e){if(Array.isArray(e))return e}function VI(){return VI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VI.apply(this,arguments)}var nDe=function(t,n){var r;return me.isValidElement(t)?r=me.cloneElement(t,n):bn(t)?r=t(n):r=me.createElement("line",VI({},n,{className:"recharts-reference-line-line"})),r},rDe=function(t,n,r,i,a,o,s,l,c){var d=a.x,A=a.y,h=a.width,m=a.height;if(r){var b=c.y,g=t.y.apply(b,{position:o});if(Kc(c,"discard")&&!t.y.isInRange(g))return null;var y=[{x:d+h,y:g},{x:d,y:g}];return l==="left"?y.reverse():y}if(n){var v=c.x,x=t.x.apply(v,{position:o});if(Kc(c,"discard")&&!t.x.isInRange(x))return null;var B=[{x,y:A+m},{x,y:A}];return s==="top"?B.reverse():B}if(i){var C=c.segment,E=C.map(function(T){return t.apply(T,{position:o})});return Kc(c,"discard")&&ZLe(E,function(T){return!t.isInRange(T)})?null:E}return null};function iDe(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,c=Q6e(),d=ete(i),A=tte(a),h=H6e();if(!c||!h)return null;fh(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=PO({x:d.scale,y:A.scale}),b=Xi(t),g=Xi(n),y=r&&r.length===2,v=rDe(m,b,g,y,h,e.position,d.orientation,A.orientation,e);if(!v)return null;var x=X6e(v,2),B=x[0],C=B.x,E=B.y,T=x[1],j=T.x,O=T.y,L=Kc(e,"hidden")?"url(#".concat(c,")"):void 0,z=V9(V9({clipPath:L},mn(e,!0)),{},{x1:C,y1:E,x2:j,y2:O});return me.createElement(Wn,{className:Cn("recharts-reference-line",s)},nDe(o,z),Xa.renderCallByParent(e,_6e({x1:C,y1:E,x2:j,y2:O})))}var OO=(function(e){function t(){return $6e(this,t),V6e(this,t,arguments)}return G6e(t,e),z6e(t,[{key:"render",value:function(){return me.createElement(iDe,this.props)}}])})(me.Component);jO(OO,"displayName","ReferenceLine");jO(OO,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function WI(){return WI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WI.apply(this,arguments)}function ag(e){"@babel/helpers - typeof";return ag=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ag(e)}function K9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function G9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K9(Object(n),!0).forEach(function(r){ZS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oDe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ste(r.key),r)}}function sDe(e,t,n){return t&&oDe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lDe(e,t,n){return t=A2(t),cDe(e,ote()?Reflect.construct(t,n||[],A2(e).constructor):t.apply(e,n))}function cDe(e,t){if(t&&(ag(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uDe(e)}function uDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ote(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ote=function(){return!!e})()}function A2(e){return A2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},A2(e)}function dDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KI(e,t)}function KI(e,t){return KI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},KI(e,t)}function ZS(e,t,n){return t=ste(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ste(e){var t=ADe(e,"string");return ag(t)=="symbol"?t:t+""}function ADe(e,t){if(ag(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ag(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fDe=function(t){var n=t.x,r=t.y,i=t.xAxis,a=t.yAxis,o=PO({x:i.scale,y:a.scale}),s=o.apply({x:n,y:r},{bandAware:!0});return Kc(t,"discard")&&!o.isInRange(s)?null:s},eB=(function(e){function t(){return aDe(this,t),lDe(this,t,arguments)}return dDe(t,e),sDe(t,[{key:"render",value:function(){var r=this.props,i=r.x,a=r.y,o=r.r,s=r.alwaysShow,l=r.clipPathId,c=Xi(i),d=Xi(a);if(fh(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!d)return null;var A=fDe(this.props);if(!A)return null;var h=A.x,m=A.y,b=this.props,g=b.shape,y=b.className,v=Kc(this.props,"hidden")?"url(#".concat(l,")"):void 0,x=G9(G9({clipPath:v},mn(this.props,!0)),{},{cx:h,cy:m});return me.createElement(Wn,{className:Cn("recharts-reference-dot",y)},t.renderDot(g,x),Xa.renderCallByParent(this.props,{x:h-o,y:m-o,width:2*o,height:2*o}))}}])})(me.Component);ZS(eB,"displayName","ReferenceDot");ZS(eB,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ZS(eB,"renderDot",function(e,t){var n;return me.isValidElement(e)?n=me.cloneElement(e,t):bn(e)?n=e(t):n=me.createElement(GS,WI({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function GI(){return GI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GI.apply(this,arguments)}function og(e){"@babel/helpers - typeof";return og=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},og(e)}function Y9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function X9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y9(Object(n),!0).forEach(function(r){tB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pDe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cte(r.key),r)}}function mDe(e,t,n){return t&&pDe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gDe(e,t,n){return t=f2(t),yDe(e,lte()?Reflect.construct(t,n||[],f2(e).constructor):t.apply(e,n))}function yDe(e,t){if(t&&(og(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vDe(e)}function vDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lte=function(){return!!e})()}function f2(e){return f2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},f2(e)}function bDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YI(e,t)}function YI(e,t){return YI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},YI(e,t)}function tB(e,t,n){return t=cte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cte(e){var t=wDe(e,"string");return og(t)=="symbol"?t:t+""}function wDe(e,t){if(og(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(og(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xDe=function(t,n,r,i,a){var o=a.x1,s=a.x2,l=a.y1,c=a.y2,d=a.xAxis,A=a.yAxis;if(!d||!A)return null;var h=PO({x:d.scale,y:A.scale}),m={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(l,{position:"start"}):h.y.rangeMin},b={x:n?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(c,{position:"end"}):h.y.rangeMax};return Kc(a,"discard")&&(!h.isInRange(m)||!h.isInRange(b))?null:Vee(m,b)},nB=(function(e){function t(){return hDe(this,t),gDe(this,t,arguments)}return bDe(t,e),mDe(t,[{key:"render",value:function(){var r=this.props,i=r.x1,a=r.x2,o=r.y1,s=r.y2,l=r.className,c=r.alwaysShow,d=r.clipPathId;fh(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var A=Xi(i),h=Xi(a),m=Xi(o),b=Xi(s),g=this.props.shape;if(!A&&!h&&!m&&!b&&!g)return null;var y=xDe(A,h,m,b,this.props);if(!y&&!g)return null;var v=Kc(this.props,"hidden")?"url(#".concat(d,")"):void 0;return me.createElement(Wn,{className:Cn("recharts-reference-area",l)},t.renderRect(g,X9(X9({clipPath:v},mn(this.props,!0)),y)),Xa.renderCallByParent(this.props,y))}}])})(me.Component);tB(nB,"displayName","ReferenceArea");tB(nB,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});tB(nB,"renderRect",function(e,t){var n;return me.isValidElement(e)?n=me.cloneElement(e,t):bn(e)?n=e(t):n=me.createElement(IO,GI({},t,{className:"recharts-reference-area-rect"})),n});function ute(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function SDe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return P6e(r,n)}function BDe(e,t,n){var r=n==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function h2(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function CDe(e,t){return ute(e,t+1)}function kDe(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,l=0,c=1,d=o,A=function(){var b=r==null?void 0:r[l];if(b===void 0)return{v:ute(r,c)};var g=l,y,v=function(){return y===void 0&&(y=n(b,g)),y},x=b.coordinate,B=l===0||h2(e,x,v,d,s);B||(l=0,d=o,c+=1),B&&(d=x+e*(v()/2+i),l+=c)},h;c<=a.length;)if(h=A(),h)return h.v;return[]}function _0(e){"@babel/helpers - typeof";return _0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_0(e)}function J9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ga(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J9(Object(n),!0).forEach(function(r){EDe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EDe(e,t,n){return t=NDe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NDe(e){var t=TDe(e,"string");return _0(t)=="symbol"?t:t+""}function TDe(e,t){if(_0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _De(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,s=t.start,l=t.end,c=function(h){var m=a[h],b,g=function(){return b===void 0&&(b=n(m,h)),b};if(h===o-1){var y=e*(m.coordinate+e*g()/2-l);a[h]=m=Ga(Ga({},m),{},{tickCoord:y>0?m.coordinate-y*e:m.coordinate})}else a[h]=m=Ga(Ga({},m),{},{tickCoord:m.coordinate});var v=h2(e,m.tickCoord,g,s,l);v&&(l=m.tickCoord-e*(g()/2+i),a[h]=Ga(Ga({},m),{},{isShow:!0}))},d=o-1;d>=0;d--)c(d);return a}function IDe(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,l=t.start,c=t.end;if(a){var d=r[s-1],A=n(d,s-1),h=e*(d.coordinate+e*A/2-c);o[s-1]=d=Ga(Ga({},d),{},{tickCoord:h>0?d.coordinate-h*e:d.coordinate});var m=h2(e,d.tickCoord,function(){return A},l,c);m&&(c=d.tickCoord-e*(A/2+i),o[s-1]=Ga(Ga({},d),{},{isShow:!0}))}for(var b=a?s-1:s,g=function(x){var B=o[x],C,E=function(){return C===void 0&&(C=n(B,x)),C};if(x===0){var T=e*(B.coordinate-e*E()/2-l);o[x]=B=Ga(Ga({},B),{},{tickCoord:T<0?B.coordinate-T*e:B.coordinate})}else o[x]=B=Ga(Ga({},B),{},{tickCoord:B.coordinate});var j=h2(e,B.tickCoord,E,l,c);j&&(l=B.tickCoord+e*(E()/2+i),o[x]=Ga(Ga({},B),{},{isShow:!0}))},y=0;y<b;y++)g(y);return o}function PDe(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,d=e.unit,A=e.angle;if(!i||!i.length||!r)return[];if(dt(l)||ZA.isSsr)return CDe(i,typeof l=="number"&&dt(l)?l:0);var h=[],m=s==="top"||s==="bottom"?"width":"height",b=d&&m==="width"?xv(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(B,C){var E=bn(c)?c(B.value,C):B.value;return m==="width"?SDe(xv(E,{fontSize:t,letterSpacing:n}),b,A):xv(E,{fontSize:t,letterSpacing:n})[m]},y=i.length>=2?Wl(i[1].coordinate-i[0].coordinate):1,v=BDe(a,y,m);return l==="equidistantPreserveStart"?kDe(y,v,g,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=IDe(y,v,g,i,o,l==="preserveStartEnd"):h=_De(y,v,g,i,o),h.filter(function(x){return x.isShow}))}var jDe=["viewBox"],ODe=["viewBox"],FDe=["ticks"];function sg(e){"@babel/helpers - typeof";return sg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sg(e)}function cm(){return cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cm.apply(this,arguments)}function Z9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z9(Object(n),!0).forEach(function(r){FO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BN(e,t){if(e==null)return{};var n=LDe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function LDe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function DDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ate(r.key),r)}}function MDe(e,t,n){return t&&e$(e.prototype,t),n&&e$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UDe(e,t,n){return t=p2(t),RDe(e,dte()?Reflect.construct(t,n||[],p2(e).constructor):t.apply(e,n))}function RDe(e,t){if(t&&(sg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QDe(e)}function QDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dte=function(){return!!e})()}function p2(e){return p2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},p2(e)}function HDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XI(e,t)}function XI(e,t){return XI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},XI(e,t)}function FO(e,t,n){return t=Ate(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ate(e){var t=$De(e,"string");return sg(t)=="symbol"?t:t+""}function $De(e,t){if(sg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rB=(function(e){function t(n){var r;return DDe(this,t),r=UDe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return HDe(t,e),MDe(t,[{key:"shouldComponentUpdate",value:function(r,i){var a=r.viewBox,o=BN(r,jDe),s=this.props,l=s.viewBox,c=BN(s,ODe);return!ym(a,l)||!ym(o,c)||!ym(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,c=i.orientation,d=i.tickSize,A=i.mirror,h=i.tickMargin,m,b,g,y,v,x,B=A?-1:1,C=r.tickSize||d,E=dt(r.tickCoord)?r.tickCoord:r.coordinate;switch(c){case"top":m=b=r.coordinate,y=o+ +!A*l,g=y-B*C,x=g-B*h,v=E;break;case"left":g=y=r.coordinate,b=a+ +!A*s,m=b-B*C,v=m-B*h,x=E;break;case"right":g=y=r.coordinate,b=a+ +A*s,m=b+B*C,v=m+B*h,x=E;break;default:m=b=r.coordinate,y=o+ +A*l,g=y+B*C,x=g+B*h,v=E;break}return{line:{x1:m,y1:g,x2:b,y2:y},tick:{x:v,y:x}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,s=r.height,l=r.orientation,c=r.mirror,d=r.axisLine,A=Wi(Wi(Wi({},mn(this.props,!1)),mn(d,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!c||l==="bottom"&&c);A=Wi(Wi({},A),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var m=+(l==="left"&&!c||l==="right"&&c);A=Wi(Wi({},A),{},{x1:i+m*o,y1:a,x2:i+m*o,y2:a+s})}return me.createElement("line",cm({},A,{className:Cn("recharts-cartesian-axis-line",al(d,"className"))}))}},{key:"renderTicks",value:function(r,i,a){var o=this,s=this.props,l=s.tickLine,c=s.stroke,d=s.tick,A=s.tickFormatter,h=s.unit,m=PDe(Wi(Wi({},this.props),{},{ticks:r}),i,a),b=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),y=mn(this.props,!1),v=mn(d,!1),x=Wi(Wi({},y),{},{fill:"none"},mn(l,!1)),B=m.map(function(C,E){var T=o.getTickLineCoord(C),j=T.line,O=T.tick,L=Wi(Wi(Wi(Wi({textAnchor:b,verticalAnchor:g},y),{},{stroke:"none",fill:c},v),O),{},{index:E,payload:C,visibleTicksCount:m.length,tickFormatter:A});return me.createElement(Wn,cm({className:"recharts-cartesian-axis-tick",key:"tick-".concat(C.value,"-").concat(C.coordinate,"-").concat(C.tickCoord)},Xv(o.props,C,E)),l&&me.createElement("line",cm({},x,j,{className:Cn("recharts-cartesian-axis-tick-line",al(l,"className"))})),d&&t.renderTickItem(d,L,"".concat(bn(A)?A(C.value,E):C.value).concat(h||"")))});return me.createElement("g",{className:"recharts-cartesian-axis-ticks"},B)}},{key:"render",value:function(){var r=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,c=i.className,d=i.hide;if(d)return null;var A=this.props,h=A.ticks,m=BN(A,FDe),b=h;return bn(l)&&(b=h&&h.length>0?l(this.props):l(m)),o<=0||s<=0||!b||!b.length?null:me.createElement(Wn,{className:Cn("recharts-cartesian-axis",c),ref:function(y){r.layerReference=y}},a&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Xa.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,a){var o,s=Cn(i.className,"recharts-cartesian-axis-tick-value");return me.isValidElement(r)?o=me.cloneElement(r,Wi(Wi({},i),{},{className:s})):bn(r)?o=r(Wi(Wi({},i),{},{className:s})):o=me.createElement(O1,cm({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(_.Component);FO(rB,"displayName","CartesianAxis");FO(rB,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var qDe=["type","layout","connectNulls","ref"],zDe=["key"];function lg(e){"@babel/helpers - typeof";return lg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lg(e)}function t$(e,t){if(e==null)return{};var n=VDe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VDe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kv.apply(this,arguments)}function n$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function us(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n$(Object(n),!0).forEach(function(r){$l(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Up(e){return YDe(e)||GDe(e)||KDe(e)||WDe()}function WDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1403In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KDe(e,t){if(e){if(typeof e=="string")return JI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JI(e,t)}}function GDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YDe(e){if(Array.isArray(e))return JI(e)}function JI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hte(r.key),r)}}function JDe(e,t,n){return t&&r$(e.prototype,t),n&&r$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZDe(e,t,n){return t=m2(t),eMe(e,fte()?Reflect.construct(t,n||[],m2(e).constructor):t.apply(e,n))}function eMe(e,t){if(t&&(lg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tMe(e)}function tMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fte=function(){return!!e})()}function m2(e){return m2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},m2(e)}function nMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZI(e,t)}function ZI(e,t){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ZI(e,t)}function $l(e,t,n){return t=hte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hte(e){var t=rMe(e,"string");return lg(t)=="symbol"?t:t+""}function rMe(e,t){if(lg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qg=(function(e){function t(){var n;XDe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=ZDe(this,t,[].concat(i)),$l(n,"state",{isAnimationFinished:!0,totalLength:0}),$l(n,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),$l(n,"getStrokeDasharray",function(o,s,l){var c=l.reduce(function(v,x){return v+x});if(!c)return n.generateSimpleStrokeDasharray(s,o);for(var d=Math.floor(o/c),A=o%c,h=s-o,m=[],b=0,g=0;b<l.length;g+=l[b],++b)if(g+l[b]>A){m=[].concat(Up(l.slice(0,b)),[A-g]);break}var y=m.length%2===0?[0,h]:[h];return[].concat(Up(t.repeat(l,d)),Up(m),y).map(function(v){return"".concat(v,"px")}).join(", ")}),$l(n,"id",Vh("recharts-line-")),$l(n,"pathRef",function(o){n.mainCurve=o}),$l(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),$l(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return nMe(t,e),JDe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,c=a.layout,d=a.children,A=Qo(d,Rg);if(!A)return null;var h=function(g,y){return{x:g.x,y:g.y,value:g.value,errorVal:Ji(g.payload,y)}},m={clipPath:r?"url(#clipPath-".concat(i,")"):null};return me.createElement(Wn,m,A.map(function(b){return me.cloneElement(b,{key:"bar-".concat(b.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,dataPointFormatter:h})}))}},{key:"renderDots",value:function(r,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,c=s.points,d=s.dataKey,A=mn(this.props,!1),h=mn(l,!0),m=c.map(function(g,y){var v=us(us(us({key:"dot-".concat(y),r:3},A),h),{},{index:y,cx:g.x,cy:g.y,value:g.value,dataKey:d,payload:g.payload,points:c});return t.renderDotItem(l,v)}),b={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return me.createElement(Wn,kv({className:"recharts-line-dots",key:"dots"},b),m)}},{key:"renderCurveStatically",value:function(r,i,a,o){var s=this.props,l=s.type,c=s.layout,d=s.connectNulls;s.ref;var A=t$(s,qDe),h=us(us(us({},mn(A,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:r},o),{},{type:l,layout:c,connectNulls:d});return me.createElement(mh,kv({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,c=o.isAnimationActive,d=o.animationBegin,A=o.animationDuration,h=o.animationEasing,m=o.animationId,b=o.animateNewValues,g=o.width,y=o.height,v=this.state,x=v.prevPoints,B=v.totalLength;return me.createElement(Xl,{begin:d,duration:A,isActive:c,easing:h,from:{t:0},to:{t:1},key:"line-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(C){var E=C.t;if(x){var T=x.length/s.length,j=s.map(function(M,V){var q=Math.floor(V*T);if(x[q]){var W=x[q],ee=wi(W.x,M.x),ne=wi(W.y,M.y);return us(us({},M),{},{x:ee(E),y:ne(E)})}if(b){var K=wi(g*2,M.x),oe=wi(y/2,M.y);return us(us({},M),{},{x:K(E),y:oe(E)})}return us(us({},M),{},{x:M.x,y:M.y})});return a.renderCurveStatically(j,r,i)}var O=wi(0,B),L=O(E),z;if(l){var F="".concat(l).split(/[,\s]+/gim).map(function(M){return parseFloat(M)});z=a.getStrokeDasharray(L,B,F)}else z=a.generateSimpleStrokeDasharray(B,L);return a.renderCurveStatically(s,r,i,{strokeDasharray:z})})}},{key:"renderCurve",value:function(r,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,c=l.prevPoints,d=l.totalLength;return s&&o&&o.length&&(!c&&d>0||!_h(c,o))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(o,r,i)}},{key:"render",value:function(){var r,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,c=i.xAxis,d=i.yAxis,A=i.top,h=i.left,m=i.width,b=i.height,g=i.isAnimationActive,y=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,x=s.length===1,B=Cn("recharts-line",l),C=c&&c.allowDataOverflow,E=d&&d.allowDataOverflow,T=C||E,j=An(y)?this.id:y,O=(r=mn(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},L=O.r,z=L===void 0?3:L,F=O.strokeWidth,M=F===void 0?2:F,V=TJ(o)?o:{},q=V.clipDot,W=q===void 0?!0:q,ee=z*2+M;return me.createElement(Wn,{className:B},C||E?me.createElement("defs",null,me.createElement("clipPath",{id:"clipPath-".concat(j)},me.createElement("rect",{x:C?h:h-m/2,y:E?A:A-b/2,width:C?m:m*2,height:E?b:b*2})),!W&&me.createElement("clipPath",{id:"clipPath-dots-".concat(j)},me.createElement("rect",{x:h-ee/2,y:A-ee/2,width:m+ee,height:b+ee}))):null,!x&&this.renderCurve(T,j),this.renderErrorBar(T,j),(x||o)&&this.renderDots(T,W,j),(!g||v)&&Wc.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var a=r.length%2!==0?[].concat(Up(r),[0]):r,o=[],s=0;s<i;++s)o=[].concat(Up(o),Up(a));return o}},{key:"renderDotItem",value:function(r,i){var a;if(me.isValidElement(r))a=me.cloneElement(r,i);else if(bn(r))a=r(i);else{var o=i.key,s=t$(i,zDe),l=Cn("recharts-line-dot",typeof r!="boolean"?r.className:"");a=me.createElement(GS,kv({key:o},s,{className:l}))}return a}}])})(_.PureComponent);$l(Qg,"displayName","Line");$l(Qg,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ZA.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});$l(Qg,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,d=t.layout,A=l.map(function(h,m){var b=Ji(h,o);return d==="horizontal"?{x:Zm({axis:n,ticks:i,bandSize:s,entry:h,index:m}),y:An(b)?null:r.scale(b),value:b,payload:h}:{x:An(b)?null:n.scale(b),y:Zm({axis:r,ticks:a,bandSize:s,entry:h,index:m}),value:b,payload:h}});return us({points:A,layout:d},c)});var iMe=["layout","type","stroke","connectNulls","isRange","ref"],aMe=["key"],pte;function cg(e){"@babel/helpers - typeof";return cg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cg(e)}function mte(e,t){if(e==null)return{};var n=oMe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oMe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rh(){return rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rh.apply(this,arguments)}function i$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i$(Object(n),!0).forEach(function(r){Uc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yte(r.key),r)}}function lMe(e,t,n){return t&&a$(e.prototype,t),n&&a$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cMe(e,t,n){return t=g2(t),uMe(e,gte()?Reflect.construct(t,n||[],g2(e).constructor):t.apply(e,n))}function uMe(e,t){if(t&&(cg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dMe(e)}function dMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gte=function(){return!!e})()}function g2(e){return g2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},g2(e)}function AMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eP(e,t)}function eP(e,t){return eP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},eP(e,t)}function Uc(e,t,n){return t=yte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yte(e){var t=fMe(e,"string");return cg(t)=="symbol"?t:t+""}function fMe(e,t){if(cg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yh=(function(e){function t(){var n;sMe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=cMe(this,t,[].concat(i)),Uc(n,"state",{isAnimationFinished:!0}),Uc(n,"id",Vh("recharts-area-")),Uc(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),bn(o)&&o()}),Uc(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),bn(o)&&o()}),n}return AMe(t,e),lMe(t,[{key:"renderDots",value:function(r,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,c=l.dot,d=l.points,A=l.dataKey,h=mn(this.props,!1),m=mn(c,!0),b=d.map(function(y,v){var x=oA(oA(oA({key:"dot-".concat(v),r:3},h),m),{},{index:v,cx:y.x,cy:y.y,dataKey:A,value:y.value,payload:y.payload,points:d});return t.renderDotItem(c,x)}),g={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return me.createElement(Wn,rh({className:"recharts-area-dots"},g),b)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,c=o[o.length-1].x,d=r*Math.abs(l-c),A=bA(o.map(function(h){return h.y||0}));return dt(a)&&typeof a=="number"?A=Math.max(a,A):a&&Array.isArray(a)&&a.length&&(A=Math.max(bA(a.map(function(h){return h.y||0})),A)),dt(A)?me.createElement("rect",{x:l<c?l:l-d,y:0,width:d,height:Math.floor(A+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,c=o[o.length-1].y,d=r*Math.abs(l-c),A=bA(o.map(function(h){return h.x||0}));return dt(a)&&typeof a=="number"?A=Math.max(a,A):a&&Array.isArray(a)&&a.length&&(A=Math.max(bA(a.map(function(h){return h.x||0})),A)),dt(A)?me.createElement("rect",{x:0,y:l<c?l:l-d,width:A+(s?parseInt("".concat(s),10):1),height:Math.floor(d)}):null}},{key:"renderClipRect",value:function(r){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,i,a,o){var s=this.props,l=s.layout,c=s.type,d=s.stroke,A=s.connectNulls,h=s.isRange;s.ref;var m=mte(s,iMe);return me.createElement(Wn,{clipPath:a?"url(#clipPath-".concat(o,")"):null},me.createElement(mh,rh({},mn(m,!0),{points:r,connectNulls:A,type:c,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),d!=="none"&&me.createElement(mh,rh({},mn(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:A,fill:"none",points:r})),d!=="none"&&h&&me.createElement(mh,rh({},mn(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:A,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var a=this,o=this.props,s=o.points,l=o.baseLine,c=o.isAnimationActive,d=o.animationBegin,A=o.animationDuration,h=o.animationEasing,m=o.animationId,b=this.state,g=b.prevPoints,y=b.prevBaseLine;return me.createElement(Xl,{begin:d,duration:A,isActive:c,easing:h,from:{t:0},to:{t:1},key:"area-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var x=v.t;if(g){var B=g.length/s.length,C=s.map(function(O,L){var z=Math.floor(L*B);if(g[z]){var F=g[z],M=wi(F.x,O.x),V=wi(F.y,O.y);return oA(oA({},O),{},{x:M(x),y:V(x)})}return O}),E;if(dt(l)&&typeof l=="number"){var T=wi(y,l);E=T(x)}else if(An(l)||Fg(l)){var j=wi(y,0);E=j(x)}else E=l.map(function(O,L){var z=Math.floor(L*B);if(y[z]){var F=y[z],M=wi(F.x,O.x),V=wi(F.y,O.y);return oA(oA({},O),{},{x:M(x),y:V(x)})}return O});return a.renderAreaStatically(C,E,r,i)}return me.createElement(Wn,null,me.createElement("defs",null,me.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),me.createElement(Wn,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,r,i)))})}},{key:"renderArea",value:function(r,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,c=this.state,d=c.prevPoints,A=c.prevBaseLine,h=c.totalLength;return l&&o&&o.length&&(!d&&h>0||!_h(d,o)||!_h(A,s))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(o,s,r,i)}},{key:"render",value:function(){var r,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,c=i.top,d=i.left,A=i.xAxis,h=i.yAxis,m=i.width,b=i.height,g=i.isAnimationActive,y=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,x=s.length===1,B=Cn("recharts-area",l),C=A&&A.allowDataOverflow,E=h&&h.allowDataOverflow,T=C||E,j=An(y)?this.id:y,O=(r=mn(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},L=O.r,z=L===void 0?3:L,F=O.strokeWidth,M=F===void 0?2:F,V=TJ(o)?o:{},q=V.clipDot,W=q===void 0?!0:q,ee=z*2+M;return me.createElement(Wn,{className:B},C||E?me.createElement("defs",null,me.createElement("clipPath",{id:"clipPath-".concat(j)},me.createElement("rect",{x:C?d:d-m/2,y:E?c:c-b/2,width:C?m:m*2,height:E?b:b*2})),!W&&me.createElement("clipPath",{id:"clipPath-dots-".concat(j)},me.createElement("rect",{x:d-ee/2,y:c-ee/2,width:m+ee,height:b+ee}))):null,x?null:this.renderArea(T,j),(o||x)&&this.renderDots(T,W,j),(!g||v)&&Wc.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:r.points!==i.curPoints||r.baseLine!==i.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])})(_.PureComponent);pte=Yh;Uc(Yh,"displayName","Area");Uc(Yh,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ZA.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Uc(Yh,"getBaseValue",function(e,t,n,r){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(dt(s)&&typeof s=="number")return s;var l=i==="horizontal"?r:n,c=l.scale.domain();if(l.type==="number"){var d=Math.max(c[0],c[1]),A=Math.min(c[0],c[1]);return s==="dataMin"?A:s==="dataMax"||d<0?d:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});Uc(Yh,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,c=e.stackedData,d=e.dataStartIndex,A=e.displayedData,h=e.offset,m=t.layout,b=c&&c.length,g=pte.getBaseValue(t,n,r,i),y=m==="horizontal",v=!1,x=A.map(function(C,E){var T;b?T=c[d+E]:(T=Ji(C,l),Array.isArray(T)?v=!0:T=[g,T]);var j=T[1]==null||b&&Ji(C,l)==null;return y?{x:Zm({axis:r,ticks:a,bandSize:s,entry:C,index:E}),y:j?null:i.scale(T[1]),value:T,payload:C}:{x:j?null:r.scale(T[1]),y:Zm({axis:i,ticks:o,bandSize:s,entry:C,index:E}),value:T,payload:C}}),B;return b||v?B=x.map(function(C){var E=Array.isArray(C.value)?C.value[0]:null;return y?{x:C.x,y:E!=null&&C.y!=null?i.scale(E):null}:{x:E!=null?r.scale(E):null,y:C.y}}):B=y?i.scale(g):r.scale(g),oA({points:x,baseLine:B,layout:m,isRange:v},h)});Uc(Yh,"renderDotItem",function(e,t){var n;if(me.isValidElement(e))n=me.cloneElement(e,t);else if(bn(e))n=e(t);else{var r=Cn("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=mte(t,aMe);n=me.createElement(GS,rh({},a,{key:i,className:r}))}return n});function ug(e){"@babel/helpers - typeof";return ug=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ug(e)}function hMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pMe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wte(r.key),r)}}function mMe(e,t,n){return t&&pMe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gMe(e,t,n){return t=y2(t),yMe(e,vte()?Reflect.construct(t,n||[],y2(e).constructor):t.apply(e,n))}function yMe(e,t){if(t&&(ug(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vMe(e)}function vMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vte=function(){return!!e})()}function y2(e){return y2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},y2(e)}function bMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tP(e,t)}function tP(e,t){return tP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tP(e,t)}function bte(e,t,n){return t=wte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wte(e){var t=wMe(e,"string");return ug(t)=="symbol"?t:t+""}function wMe(e,t){if(ug(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ug(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iB=(function(e){function t(){return hMe(this,t),gMe(this,t,arguments)}return bMe(t,e),mMe(t,[{key:"render",value:function(){return null}}])})(_.Component);bte(iB,"displayName","ZAxis");bte(iB,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var xMe=["option","isActive"];function Ev(){return Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ev.apply(this,arguments)}function SMe(e,t){if(e==null)return{};var n=BMe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BMe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function CMe(e){var t=e.option,n=e.isActive,r=SMe(e,xMe);return typeof t=="string"?_.createElement(QI,Ev({option:_.createElement(LS,Ev({type:t},r)),isActive:n,shapeType:"symbols"},r)):_.createElement(QI,Ev({option:t,isActive:n,shapeType:"symbols"},r))}function dg(e){"@babel/helpers - typeof";return dg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dg(e)}function Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nv.apply(this,arguments)}function o$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o$(Object(n),!0).forEach(function(r){xA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ste(r.key),r)}}function EMe(e,t,n){return t&&s$(e.prototype,t),n&&s$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function NMe(e,t,n){return t=v2(t),TMe(e,xte()?Reflect.construct(t,n||[],v2(e).constructor):t.apply(e,n))}function TMe(e,t){if(t&&(dg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _Me(e)}function _Me(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xte=function(){return!!e})()}function v2(e){return v2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},v2(e)}function IMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nP(e,t)}function nP(e,t){return nP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nP(e,t)}function xA(e,t,n){return t=Ste(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ste(e){var t=PMe(e,"string");return dg(t)=="symbol"?t:t+""}function PMe(e,t){if(dg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aB=(function(e){function t(){var n;kMe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=NMe(this,t,[].concat(i)),xA(n,"state",{isAnimationFinished:!1}),xA(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),xA(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),xA(n,"id",Vh("recharts-scatter-")),n}return IMe(t,e),EMe(t,[{key:"renderSymbolsStatically",value:function(r){var i=this,a=this.props,o=a.shape,s=a.activeShape,l=a.activeIndex,c=mn(this.props,!1);return r.map(function(d,A){var h=l===A,m=h?s:o,b=Gs(Gs({},c),d);return me.createElement(Wn,Nv({className:"recharts-scatter-symbol",key:"symbol-".concat(d==null?void 0:d.cx,"-").concat(d==null?void 0:d.cy,"-").concat(d==null?void 0:d.size,"-").concat(A)},Xv(i.props,d,A),{role:"img"}),me.createElement(CMe,Nv({option:m,isActive:h,key:"symbol-".concat(A)},b)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,c=i.animationEasing,d=i.animationId,A=this.state.prevPoints;return me.createElement(Xl,{begin:s,duration:l,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var m=h.t,b=a.map(function(g,y){var v=A&&A[y];if(v){var x=wi(v.cx,g.cx),B=wi(v.cy,g.cy),C=wi(v.size,g.size);return Gs(Gs({},g),{},{cx:x(m),cy:B(m),size:C(m)})}var E=wi(0,g.size);return Gs(Gs({},g),{},{size:E(m)})});return me.createElement(Wn,null,r.renderSymbolsStatically(b))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,a=r.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!_h(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,l=i.children,c=Qo(l,Rg);return c?c.map(function(d,A){var h=d.props,m=h.direction,b=h.dataKey;return me.cloneElement(d,{key:"".concat(m,"-").concat(b,"-").concat(a[A]),data:a,xAxis:o,yAxis:s,layout:m==="x"?"vertical":"horizontal",dataPointFormatter:function(y,v){return{x:y.cx,y:y.cy,value:m==="x"?+y.node.x:+y.node.y,errorVal:Ji(y,v)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,a=r.line,o=r.lineType,s=r.lineJointType,l=mn(this.props,!1),c=mn(a,!1),d,A;if(o==="joint")d=i.map(function(B){return{x:B.cx,y:B.cy}});else if(o==="fitting"){var h=Cke(i),m=h.xmin,b=h.xmax,g=h.a,y=h.b,v=function(C){return g*C+y};d=[{x:m,y:v(m)},{x:b,y:v(b)}]}var x=Gs(Gs(Gs({},l),{},{fill:"none",stroke:l&&l.fill},c),{},{points:d});return me.isValidElement(a)?A=me.cloneElement(a,x):bn(a)?A=a(x):A=me.createElement(mh,Nv({},x,{type:s})),me.createElement(Wn,{className:"recharts-scatter-line",key:"recharts-scatter-line"},A)}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.points,o=r.line,s=r.className,l=r.xAxis,c=r.yAxis,d=r.left,A=r.top,h=r.width,m=r.height,b=r.id,g=r.isAnimationActive;if(i||!a||!a.length)return null;var y=this.state.isAnimationFinished,v=Cn("recharts-scatter",s),x=l&&l.allowDataOverflow,B=c&&c.allowDataOverflow,C=x||B,E=An(b)?this.id:b;return me.createElement(Wn,{className:v,clipPath:C?"url(#clipPath-".concat(E,")"):null},x||B?me.createElement("defs",null,me.createElement("clipPath",{id:"clipPath-".concat(E)},me.createElement("rect",{x:x?d:d-h/2,y:B?A:A-m/2,width:x?h:h*2,height:B?m:m*2}))):null,o&&this.renderLine(),this.renderErrorBar(),me.createElement(Wn,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!g||y)&&Wc.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}}])})(_.PureComponent);xA(aB,"displayName","Scatter");xA(aB,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ZA.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});xA(aB,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,c=i.props.tooltipType,d=Qo(i.props.children,Zf),A=An(t.dataKey)?i.props.dataKey:t.dataKey,h=An(n.dataKey)?i.props.dataKey:n.dataKey,m=r&&r.dataKey,b=r?r.range:iB.defaultProps.range,g=b&&b[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,x=a.map(function(B,C){var E=Ji(B,A),T=Ji(B,h),j=!An(m)&&Ji(B,m)||"-",O=[{name:An(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:E,payload:B,dataKey:A,type:c},{name:An(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:T,payload:B,dataKey:h,type:c}];j!=="-"&&O.push({name:r.name||r.dataKey,unit:r.unit||"",value:j,payload:B,dataKey:m,type:c});var L=Zm({axis:t,ticks:o,bandSize:y,entry:B,index:C,dataKey:A}),z=Zm({axis:n,ticks:s,bandSize:v,entry:B,index:C,dataKey:h}),F=j!=="-"?r.scale(j):g,M=Math.sqrt(Math.max(F,0)/Math.PI);return Gs(Gs({},B),{},{cx:L,cy:z,x:L-M,y:z-M,xAxis:t,yAxis:n,zAxis:r,width:2*M,height:2*M,size:F,node:{x:E,y:T,z:j},tooltipPayload:O,tooltipPosition:{x:L,y:z},payload:B},d&&d[C]&&d[C].props)});return Gs({points:x},l)});function Ag(e){"@babel/helpers - typeof";return Ag=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ag(e)}function jMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OMe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kte(r.key),r)}}function FMe(e,t,n){return t&&OMe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LMe(e,t,n){return t=b2(t),DMe(e,Bte()?Reflect.construct(t,n||[],b2(e).constructor):t.apply(e,n))}function DMe(e,t){if(t&&(Ag(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MMe(e)}function MMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bte=function(){return!!e})()}function b2(e){return b2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},b2(e)}function UMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rP(e,t)}function rP(e,t){return rP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rP(e,t)}function Cte(e,t,n){return t=kte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kte(e){var t=RMe(e,"string");return Ag(t)=="symbol"?t:t+""}function RMe(e,t){if(Ag(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ag(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function iP(){return iP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iP.apply(this,arguments)}function QMe(e){var t=e.xAxisId,n=nte(),r=rte(),i=ete(t);return i==null?null:_.createElement(rB,iP({},i,{className:Cn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return nh(o,!0)}}))}var Ba=(function(e){function t(){return jMe(this,t),LMe(this,t,arguments)}return UMe(t,e),FMe(t,[{key:"render",value:function(){return _.createElement(QMe,this.props)}}])})(_.Component);Cte(Ba,"displayName","XAxis");Cte(Ba,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function fg(e){"@babel/helpers - typeof";return fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fg(e)}function HMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tte(r.key),r)}}function qMe(e,t,n){return t&&$Me(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zMe(e,t,n){return t=w2(t),VMe(e,Ete()?Reflect.construct(t,n||[],w2(e).constructor):t.apply(e,n))}function VMe(e,t){if(t&&(fg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WMe(e)}function WMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ete(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ete=function(){return!!e})()}function w2(e){return w2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},w2(e)}function KMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aP(e,t)}function aP(e,t){return aP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},aP(e,t)}function Nte(e,t,n){return t=Tte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tte(e){var t=GMe(e,"string");return fg(t)=="symbol"?t:t+""}function GMe(e,t){if(fg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function oP(){return oP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oP.apply(this,arguments)}var YMe=function(t){var n=t.yAxisId,r=nte(),i=rte(),a=tte(n);return a==null?null:_.createElement(rB,oP({},a,{className:Cn("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(s){return nh(s,!0)}}))},Gi=(function(e){function t(){return HMe(this,t),zMe(this,t,arguments)}return KMe(t,e),qMe(t,[{key:"render",value:function(){return _.createElement(YMe,this.props)}}])})(_.Component);Nte(Gi,"displayName","YAxis");Nte(Gi,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function l$(e){return eUe(e)||ZMe(e)||JMe(e)||XMe()}function XMe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1404In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JMe(e,t){if(e){if(typeof e=="string")return sP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sP(e,t)}}function ZMe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eUe(e){if(Array.isArray(e))return sP(e)}function sP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lP=function(t,n,r,i,a){var o=Qo(t,OO),s=Qo(t,eB),l=[].concat(l$(o),l$(s)),c=Qo(t,nB),d="".concat(i,"Id"),A=i[0],h=n;if(l.length&&(h=l.reduce(function(g,y){if(y.props[d]===r&&Kc(y.props,"extendDomain")&&dt(y.props[A])){var v=y.props[A];return[Math.min(g[0],v),Math.max(g[1],v)]}return g},h)),c.length){var m="".concat(A,"1"),b="".concat(A,"2");h=c.reduce(function(g,y){if(y.props[d]===r&&Kc(y.props,"extendDomain")&&dt(y.props[m])&&dt(y.props[b])){var v=y.props[m],x=y.props[b];return[Math.min(g[0],v,x),Math.max(g[1],v,x)]}return g},h)}return a&&a.length&&(h=a.reduce(function(g,y){return dt(y)?[Math.min(g[0],y),Math.max(g[1],y)]:g},h)),h},CN={exports:{}},c$;function tUe(){return c$||(c$=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,d){this.fn=l,this.context=c,this.once=d||!1}function a(l,c,d,A,h){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new i(d,A||l,h),b=n?n+c:c;return l._events[b]?l._events[b].fn?l._events[b]=[l._events[b],m]:l._events[b].push(m):(l._events[b]=m,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],d,A;if(this._eventsCount===0)return c;for(A in d=this._events)t.call(d,A)&&c.push(n?A.slice(1):A);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},s.prototype.listeners=function(c){var d=n?n+c:c,A=this._events[d];if(!A)return[];if(A.fn)return[A.fn];for(var h=0,m=A.length,b=new Array(m);h<m;h++)b[h]=A[h].fn;return b},s.prototype.listenerCount=function(c){var d=n?n+c:c,A=this._events[d];return A?A.fn?1:A.length:0},s.prototype.emit=function(c,d,A,h,m,b){var g=n?n+c:c;if(!this._events[g])return!1;var y=this._events[g],v=arguments.length,x,B;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),v){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,d),!0;case 3:return y.fn.call(y.context,d,A),!0;case 4:return y.fn.call(y.context,d,A,h),!0;case 5:return y.fn.call(y.context,d,A,h,m),!0;case 6:return y.fn.call(y.context,d,A,h,m,b),!0}for(B=1,x=new Array(v-1);B<v;B++)x[B-1]=arguments[B];y.fn.apply(y.context,x)}else{var C=y.length,E;for(B=0;B<C;B++)switch(y[B].once&&this.removeListener(c,y[B].fn,void 0,!0),v){case 1:y[B].fn.call(y[B].context);break;case 2:y[B].fn.call(y[B].context,d);break;case 3:y[B].fn.call(y[B].context,d,A);break;case 4:y[B].fn.call(y[B].context,d,A,h);break;default:if(!x)for(E=1,x=new Array(v-1);E<v;E++)x[E-1]=arguments[E];y[B].fn.apply(y[B].context,x)}}return!0},s.prototype.on=function(c,d,A){return a(this,c,d,A,!1)},s.prototype.once=function(c,d,A){return a(this,c,d,A,!0)},s.prototype.removeListener=function(c,d,A,h){var m=n?n+c:c;if(!this._events[m])return this;if(!d)return o(this,m),this;var b=this._events[m];if(b.fn)b.fn===d&&(!h||b.once)&&(!A||b.context===A)&&o(this,m);else{for(var g=0,y=[],v=b.length;g<v;g++)(b[g].fn!==d||h&&!b[g].once||A&&b[g].context!==A)&&y.push(b[g]);y.length?this._events[m]=y.length===1?y[0]:y:o(this,m)}return this},s.prototype.removeAllListeners=function(c){var d;return c?(d=n?n+c:c,this._events[d]&&o(this,d)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(CN)),CN.exports}var nUe=tUe();const rUe=nr(nUe);var kN=new rUe,EN="recharts.syncMouseEvents";function I0(e){"@babel/helpers - typeof";return I0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I0(e)}function iUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aUe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_te(r.key),r)}}function oUe(e,t,n){return t&&aUe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NN(e,t,n){return t=_te(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _te(e){var t=sUe(e,"string");return I0(t)=="symbol"?t:t+""}function sUe(e,t){if(I0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(I0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lUe=(function(){function e(){iUe(this,e),NN(this,"activeIndex",0),NN(this,"coordinateList",[]),NN(this,"layout","horizontal")}return oUe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,a=i===void 0?null:i,o=n.container,s=o===void 0?null:o,l=n.layout,c=l===void 0?null:l,d=n.offset,A=d===void 0?null:d,h=n.mouseHandlerCallback,m=h===void 0?null:h;this.coordinateList=(r=a??this.coordinateList)!==null&&r!==void 0?r:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=A??this.offset,this.mouseHandlerCallback=m??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,c=((n=window)===null||n===void 0?void 0:n.scrollX)||0,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,A=a+l+c,h=o+this.offset.top+s/2+d;this.mouseHandlerCallback({pageX:A,pageY:h})}}}])})();function cUe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&dt(r)&&dt(i))return!0}return!1}function uUe(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function Ite(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=ka(t,n,r,i),s=ka(t,n,r,a);return{points:[o,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function dUe(e,t,n){var r,i,a,o;if(e==="horizontal")r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e==="vertical")i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,c=t.innerRadius,d=t.outerRadius,A=t.angle,h=ka(s,l,c,A),m=ka(s,l,d,A);r=h.x,i=h.y,a=m.x,o=m.y}else return Ite(t);return[{x:r,y:i},{x:a,y:o}]}function P0(e){"@babel/helpers - typeof";return P0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P0(e)}function u$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u$(Object(n),!0).forEach(function(r){AUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AUe(e,t,n){return t=fUe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fUe(e){var t=hUe(e,"string");return P0(t)=="symbol"?t:t+""}function hUe(e,t){if(P0(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(P0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pUe(e){var t,n,r=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,c=e.activeTooltipIndex,d=e.tooltipAxisBandSize,A=e.layout,h=e.chartName,m=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!m||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var b,g=mh;if(h==="ScatterChart")b=o,g=eLe;else if(h==="BarChart")b=uUe(A,o,l,d),g=IO;else if(A==="radial"){var y=Ite(o),v=y.cx,x=y.cy,B=y.radius,C=y.startAngle,E=y.endAngle;b={cx:v,cy:x,startAngle:C,endAngle:E,innerRadius:B,outerRadius:B},g=Tee}else b={points:dUe(A,o,l)},g=mh;var T=Fw(Fw(Fw(Fw({stroke:"#ccc",pointerEvents:"none"},l),b),mn(m,!1)),{},{payload:s,payloadIndex:c,className:Cn("recharts-tooltip-cursor",m.className)});return _.isValidElement(m)?_.cloneElement(m,T):_.createElement(g,T)}var mUe=["item"],gUe=["children","className","width","height","style","compact","title","desc"];function hg(e){"@babel/helpers - typeof";return hg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hg(e)}function um(){return um=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},um.apply(this,arguments)}function d$(e,t){return bUe(e)||vUe(e,t)||jte(e,t)||yUe()}function yUe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1405In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vUe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function bUe(e){if(Array.isArray(e))return e}function A$(e,t){if(e==null)return{};var n=wUe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wUe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function xUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SUe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ote(r.key),r)}}function BUe(e,t,n){return t&&SUe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CUe(e,t,n){return t=x2(t),kUe(e,Pte()?Reflect.construct(t,n||[],x2(e).constructor):t.apply(e,n))}function kUe(e,t){if(t&&(hg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EUe(e)}function EUe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pte=function(){return!!e})()}function x2(e){return x2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},x2(e)}function NUe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cP(e,t)}function cP(e,t){return cP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cP(e,t)}function pg(e){return IUe(e)||_Ue(e)||jte(e)||TUe()}function TUe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1406In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jte(e,t){if(e){if(typeof e=="string")return uP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uP(e,t)}}function _Ue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IUe(e){if(Array.isArray(e))return uP(e)}function uP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f$(Object(n),!0).forEach(function(r){Jt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jt(e,t,n){return t=Ote(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ote(e){var t=PUe(e,"string");return hg(t)=="symbol"?t:t+""}function PUe(e,t){if(hg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jUe={xAxis:["bottom","top"],yAxis:["left","right"]},OUe={width:"100%",height:"100%"},Fte={x:0,y:0};function Lw(e){return e}var FUe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},LUe=function(t,n,r,i){var a=n.find(function(d){return d&&d.index===r});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return qe(qe(qe({},i),ka(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,c=i.angle;return qe(qe(qe({},i),ka(i.cx,i.cy,l,c)),{},{angle:c,radius:l})}return Fte},oB=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,a=n.dataEndIndex,o=(r??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(pg(s),pg(c)):s},[]);return o.length>0?o:t&&t.length&&dt(i)&&dt(a)?t.slice(i,a+1):[]};function Lte(e){return e==="number"?[0,"auto"]:void 0}var dP=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,s=oB(n,t);return r<0||!a||!a.length||r>=s.length?null:a.reduce(function(l,c){var d,A=(d=c.props.data)!==null&&d!==void 0?d:n;A&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(A=A.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var m=A===void 0?s:A;h=x1(m,o.dataKey,i)}else h=A&&A[r]||s[r];return h?[].concat(pg(l),[kee(c,h)]):l},[])},h$=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=FUe(a,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,d=j3e(o,s,c,l);if(d>=0&&c){var A=c[d]&&c[d].value,h=dP(t,n,d,A),m=LUe(r,s,d,a);return{activeTooltipIndex:d,activeLabel:A,activePayload:h,activeCoordinate:m}}return null},DUe=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,d=t.layout,A=t.children,h=t.stackOffset,m=Bee(d,a);return r.reduce(function(b,g){var y,v=g.type.defaultProps!==void 0?qe(qe({},g.type.defaultProps),g.props):g.props,x=v.type,B=v.dataKey,C=v.allowDataOverflow,E=v.allowDuplicatedCategory,T=v.scale,j=v.ticks,O=v.includeHidden,L=v[o];if(b[L])return b;var z=oB(t.data,{graphicalItems:i.filter(function(Q){var R,re=o in Q.props?Q.props[o]:(R=Q.type.defaultProps)===null||R===void 0?void 0:R[o];return re===L}),dataStartIndex:l,dataEndIndex:c}),F=z.length,M,V,q;cUe(v.domain,C,x)&&(M=CI(v.domain,null,C),m&&(x==="number"||T!=="auto")&&(q=Bv(z,B,"category")));var W=Lte(x);if(!M||M.length===0){var ee,ne=(ee=v.domain)!==null&&ee!==void 0?ee:W;if(B){if(M=Bv(z,B,x),x==="category"&&m){var K=Bke(M);E&&K?(V=M,M=o2(0,F)):E||(M=kH(ne,M,g).reduce(function(Q,R){return Q.indexOf(R)>=0?Q:[].concat(pg(Q),[R])},[]))}else if(x==="category")E?M=M.filter(function(Q){return Q!==""&&!An(Q)}):M=kH(ne,M,g).reduce(function(Q,R){return Q.indexOf(R)>=0||R===""||An(R)?Q:[].concat(pg(Q),[R])},[]);else if(x==="number"){var oe=M3e(z,i.filter(function(Q){var R,re,ce=o in Q.props?Q.props[o]:(R=Q.type.defaultProps)===null||R===void 0?void 0:R[o],le="hide"in Q.props?Q.props.hide:(re=Q.type.defaultProps)===null||re===void 0?void 0:re.hide;return ce===L&&(O||!le)}),B,a,d);oe&&(M=oe)}m&&(x==="number"||T!=="auto")&&(q=Bv(z,B,"category"))}else m?M=o2(0,F):s&&s[L]&&s[L].hasStack&&x==="number"?M=h==="expand"?[0,1]:Cee(s[L].stackGroups,l,c):M=See(z,i.filter(function(Q){var R=o in Q.props?Q.props[o]:Q.type.defaultProps[o],re="hide"in Q.props?Q.props.hide:Q.type.defaultProps.hide;return R===L&&(O||!re)}),x,d,!0);if(x==="number")M=lP(A,M,L,a,j),ne&&(M=CI(ne,M,C));else if(x==="category"&&ne){var $=ne,X=M.every(function(Q){return $.indexOf(Q)>=0});X&&(M=$)}}return qe(qe({},b),{},Jt({},L,qe(qe({},v),{},{axisType:a,domain:M,categoricalDomain:q,duplicateDomain:V,originalDomain:(y=v.domain)!==null&&y!==void 0?y:W,isCategorical:m,layout:d})))},{})},MUe=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,d=t.layout,A=t.children,h=oB(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:c}),m=h.length,b=Bee(d,a),g=-1;return r.reduce(function(y,v){var x=v.type.defaultProps!==void 0?qe(qe({},v.type.defaultProps),v.props):v.props,B=x[o],C=Lte("number");if(!y[B]){g++;var E;return b?E=o2(0,m):s&&s[B]&&s[B].hasStack?(E=Cee(s[B].stackGroups,l,c),E=lP(A,E,B,a)):(E=CI(C,See(h,r.filter(function(T){var j,O,L=o in T.props?T.props[o]:(j=T.type.defaultProps)===null||j===void 0?void 0:j[o],z="hide"in T.props?T.props.hide:(O=T.type.defaultProps)===null||O===void 0?void 0:O.hide;return L===B&&!z}),"number",d),i.defaultProps.allowDataOverflow),E=lP(A,E,B,a)),qe(qe({},y),{},Jt({},B,qe(qe({axisType:a},i.defaultProps),{},{hide:!0,orientation:al(jUe,"".concat(a,".").concat(g%2),null),domain:E,originalDomain:C,isCategorical:b,layout:d})))}return y},{})},UUe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,d=t.children,A="".concat(i,"Id"),h=Qo(d,a),m={};return h&&h.length?m=DUe(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:A,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(m=MUe(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:A,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),m},RUe=function(t){var n=Jp(t),r=nh(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:iO(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:G1(n,r)}},p$=function(t){var n=t.children,r=t.defaultShowTooltip,i=fs(n,ng),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},QUe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Zu(n&&n.type);return r&&r.indexOf("Bar")>=0})},m$=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},HUe=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,c=r.width,d=r.height,A=r.children,h=r.margin||{},m=fs(A,ng),b=fs(A,ed),g=Object.keys(l).reduce(function(E,T){var j=l[T],O=j.orientation;return!j.mirror&&!j.hide?qe(qe({},E),{},Jt({},O,E[O]+j.width)):E},{left:h.left||0,right:h.right||0}),y=Object.keys(o).reduce(function(E,T){var j=o[T],O=j.orientation;return!j.mirror&&!j.hide?qe(qe({},E),{},Jt({},O,al(E,"".concat(O))+j.height)):E},{top:h.top||0,bottom:h.bottom||0}),v=qe(qe({},y),g),x=v.bottom;m&&(v.bottom+=m.props.height||ng.defaultProps.height),b&&n&&(v=L3e(v,i,r,n));var B=c-v.left-v.right,C=d-v.top-v.bottom;return qe(qe({brushBottom:x},v),{},{width:Math.max(B,0),height:Math.max(C,0)})},$Ue=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Dte=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,c=t.legendContent,d=t.formatAxisMap,A=t.defaultProps,h=function(v,x){var B=x.graphicalItems,C=x.stackGroups,E=x.offset,T=x.updateId,j=x.dataStartIndex,O=x.dataEndIndex,L=v.barSize,z=v.layout,F=v.barGap,M=v.barCategoryGap,V=v.maxBarSize,q=m$(z),W=q.numericAxisName,ee=q.cateAxisName,ne=QUe(B),K=[];return B.forEach(function(oe,$){var X=oB(v.data,{graphicalItems:[oe],dataStartIndex:j,dataEndIndex:O}),Q=oe.type.defaultProps!==void 0?qe(qe({},oe.type.defaultProps),oe.props):oe.props,R=Q.dataKey,re=Q.maxBarSize,ce=Q["".concat(W,"Id")],le=Q["".concat(ee,"Id")],he={},ye=l.reduce(function(it,pt){var Bt=x["".concat(pt.axisType,"Map")],gn=Q["".concat(pt.axisType,"Id")];Bt&&Bt[gn]||pt.axisType==="zAxis"||RA();var zt=Bt[gn];return qe(qe({},it),{},Jt(Jt({},pt.axisType,zt),"".concat(pt.axisType,"Ticks"),nh(zt)))},he),Ae=ye[ee],be=ye["".concat(ee,"Ticks")],Ee=C&&C[ce]&&C[ce].hasStack&&Y3e(oe,C[ce].stackGroups),ge=Zu(oe.type).indexOf("Bar")>=0,Ue=G1(Ae,be),Ye=[],ae=ne&&O3e({barSize:L,stackGroups:C,totalSize:$Ue(ye,ee)});if(ge){var Le,st,ut=An(re)?V:re,He=(Le=(st=G1(Ae,be,!0))!==null&&st!==void 0?st:ut)!==null&&Le!==void 0?Le:0;Ye=F3e({barGap:F,barCategoryGap:M,bandSize:He!==Ue?He:Ue,sizeList:ae[le],maxBarSize:ut}),He!==Ue&&(Ye=Ye.map(function(it){return qe(qe({},it),{},{position:qe(qe({},it.position),{},{offset:it.position.offset-He/2})})}))}var ht=oe&&oe.type&&oe.type.getComposedData;ht&&K.push({props:qe(qe({},ht(qe(qe({},ye),{},{displayedData:X,props:v,dataKey:R,item:oe,bandSize:Ue,barPosition:Ye,offset:E,stackedData:Ee,layout:z,dataStartIndex:j,dataEndIndex:O}))),{},Jt(Jt(Jt({key:oe.key||"item-".concat($)},W,ye[W]),ee,ye[ee]),"animationId",T)),childIndex:Dke(oe,v.children),item:oe})}),K},m=function(v,x){var B=v.props,C=v.dataStartIndex,E=v.dataEndIndex,T=v.updateId;if(!QR({props:B}))return null;var j=B.children,O=B.layout,L=B.stackOffset,z=B.data,F=B.reverseStackOrder,M=m$(O),V=M.numericAxisName,q=M.cateAxisName,W=Qo(j,r),ee=W3e(z,W,"".concat(V,"Id"),"".concat(q,"Id"),L,F),ne=l.reduce(function(Q,R){var re="".concat(R.axisType,"Map");return qe(qe({},Q),{},Jt({},re,UUe(B,qe(qe({},R),{},{graphicalItems:W,stackGroups:R.axisType===V&&ee,dataStartIndex:C,dataEndIndex:E}))))},{}),K=HUe(qe(qe({},ne),{},{props:B,graphicalItems:W}),x==null?void 0:x.legendBBox);Object.keys(ne).forEach(function(Q){ne[Q]=d(B,ne[Q],K,Q.replace("Map",""),n)});var oe=ne["".concat(q,"Map")],$=RUe(oe),X=h(B,qe(qe({},ne),{},{dataStartIndex:C,dataEndIndex:E,updateId:T,graphicalItems:W,stackGroups:ee,offset:K}));return qe(qe({formattedGraphicalItems:X,graphicalItems:W,offset:K,stackGroups:ee},$),ne)},b=(function(y){function v(x){var B,C,E;return xUe(this,v),E=CUe(this,v,[x]),Jt(E,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Jt(E,"accessibilityManager",new lUe),Jt(E,"handleLegendBBoxUpdate",function(T){if(T){var j=E.state,O=j.dataStartIndex,L=j.dataEndIndex,z=j.updateId;E.setState(qe({legendBBox:T},m({props:E.props,dataStartIndex:O,dataEndIndex:L,updateId:z},qe(qe({},E.state),{},{legendBBox:T}))))}}),Jt(E,"handleReceiveSyncEvent",function(T,j,O){if(E.props.syncId===T){if(O===E.eventEmitterSymbol&&typeof E.props.syncMethod!="function")return;E.applySyncEvent(j)}}),Jt(E,"handleBrushChange",function(T){var j=T.startIndex,O=T.endIndex;if(j!==E.state.dataStartIndex||O!==E.state.dataEndIndex){var L=E.state.updateId;E.setState(function(){return qe({dataStartIndex:j,dataEndIndex:O},m({props:E.props,dataStartIndex:j,dataEndIndex:O,updateId:L},E.state))}),E.triggerSyncEvent({dataStartIndex:j,dataEndIndex:O})}}),Jt(E,"handleMouseEnter",function(T){var j=E.getMouseInfo(T);if(j){var O=qe(qe({},j),{},{isTooltipActive:!0});E.setState(O),E.triggerSyncEvent(O);var L=E.props.onMouseEnter;bn(L)&&L(O,T)}}),Jt(E,"triggeredAfterMouseMove",function(T){var j=E.getMouseInfo(T),O=j?qe(qe({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};E.setState(O),E.triggerSyncEvent(O);var L=E.props.onMouseMove;bn(L)&&L(O,T)}),Jt(E,"handleItemMouseEnter",function(T){E.setState(function(){return{isTooltipActive:!0,activeItem:T,activePayload:T.tooltipPayload,activeCoordinate:T.tooltipPosition||{x:T.cx,y:T.cy}}})}),Jt(E,"handleItemMouseLeave",function(){E.setState(function(){return{isTooltipActive:!1}})}),Jt(E,"handleMouseMove",function(T){T.persist(),E.throttleTriggeredAfterMouseMove(T)}),Jt(E,"handleMouseLeave",function(T){E.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};E.setState(j),E.triggerSyncEvent(j);var O=E.props.onMouseLeave;bn(O)&&O(j,T)}),Jt(E,"handleOuterEvent",function(T){var j=Lke(T),O=al(E.props,"".concat(j));if(j&&bn(O)){var L,z;/.*touch.*/i.test(j)?z=E.getMouseInfo(T.changedTouches[0]):z=E.getMouseInfo(T),O((L=z)!==null&&L!==void 0?L:{},T)}}),Jt(E,"handleClick",function(T){var j=E.getMouseInfo(T);if(j){var O=qe(qe({},j),{},{isTooltipActive:!0});E.setState(O),E.triggerSyncEvent(O);var L=E.props.onClick;bn(L)&&L(O,T)}}),Jt(E,"handleMouseDown",function(T){var j=E.props.onMouseDown;if(bn(j)){var O=E.getMouseInfo(T);j(O,T)}}),Jt(E,"handleMouseUp",function(T){var j=E.props.onMouseUp;if(bn(j)){var O=E.getMouseInfo(T);j(O,T)}}),Jt(E,"handleTouchMove",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&E.throttleTriggeredAfterMouseMove(T.changedTouches[0])}),Jt(E,"handleTouchStart",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&E.handleMouseDown(T.changedTouches[0])}),Jt(E,"handleTouchEnd",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&E.handleMouseUp(T.changedTouches[0])}),Jt(E,"handleDoubleClick",function(T){var j=E.props.onDoubleClick;if(bn(j)){var O=E.getMouseInfo(T);j(O,T)}}),Jt(E,"handleContextMenu",function(T){var j=E.props.onContextMenu;if(bn(j)){var O=E.getMouseInfo(T);j(O,T)}}),Jt(E,"triggerSyncEvent",function(T){E.props.syncId!==void 0&&kN.emit(EN,E.props.syncId,T,E.eventEmitterSymbol)}),Jt(E,"applySyncEvent",function(T){var j=E.props,O=j.layout,L=j.syncMethod,z=E.state.updateId,F=T.dataStartIndex,M=T.dataEndIndex;if(T.dataStartIndex!==void 0||T.dataEndIndex!==void 0)E.setState(qe({dataStartIndex:F,dataEndIndex:M},m({props:E.props,dataStartIndex:F,dataEndIndex:M,updateId:z},E.state)));else if(T.activeTooltipIndex!==void 0){var V=T.chartX,q=T.chartY,W=T.activeTooltipIndex,ee=E.state,ne=ee.offset,K=ee.tooltipTicks;if(!ne)return;if(typeof L=="function")W=L(K,T);else if(L==="value"){W=-1;for(var oe=0;oe<K.length;oe++)if(K[oe].value===T.activeLabel){W=oe;break}}var $=qe(qe({},ne),{},{x:ne.left,y:ne.top}),X=Math.min(V,$.x+$.width),Q=Math.min(q,$.y+$.height),R=K[W]&&K[W].value,re=dP(E.state,E.props.data,W),ce=K[W]?{x:O==="horizontal"?K[W].coordinate:X,y:O==="horizontal"?Q:K[W].coordinate}:Fte;E.setState(qe(qe({},T),{},{activeLabel:R,activeCoordinate:ce,activePayload:re,activeTooltipIndex:W}))}else E.setState(T)}),Jt(E,"renderCursor",function(T){var j,O=E.state,L=O.isTooltipActive,z=O.activeCoordinate,F=O.activePayload,M=O.offset,V=O.activeTooltipIndex,q=O.tooltipAxisBandSize,W=E.getTooltipEventType(),ee=(j=T.props.active)!==null&&j!==void 0?j:L,ne=E.props.layout,K=T.key||"_recharts-cursor";return me.createElement(pUe,{key:K,activeCoordinate:z,activePayload:F,activeTooltipIndex:V,chartName:n,element:T,isActive:ee,layout:ne,offset:M,tooltipAxisBandSize:q,tooltipEventType:W})}),Jt(E,"renderPolarAxis",function(T,j,O){var L=al(T,"type.axisType"),z=al(E.state,"".concat(L,"Map")),F=T.type.defaultProps,M=F!==void 0?qe(qe({},F),T.props):T.props,V=z&&z[M["".concat(L,"Id")]];return _.cloneElement(T,qe(qe({},V),{},{className:Cn(L,V.className),key:T.key||"".concat(j,"-").concat(O),ticks:nh(V,!0)}))}),Jt(E,"renderPolarGrid",function(T){var j=T.props,O=j.radialLines,L=j.polarAngles,z=j.polarRadius,F=E.state,M=F.radiusAxisMap,V=F.angleAxisMap,q=Jp(M),W=Jp(V),ee=W.cx,ne=W.cy,K=W.innerRadius,oe=W.outerRadius;return _.cloneElement(T,{polarAngles:Array.isArray(L)?L:nh(W,!0).map(function($){return $.coordinate}),polarRadius:Array.isArray(z)?z:nh(q,!0).map(function($){return $.coordinate}),cx:ee,cy:ne,innerRadius:K,outerRadius:oe,key:T.key||"polar-grid",radialLines:O})}),Jt(E,"renderLegend",function(){var T=E.state.formattedGraphicalItems,j=E.props,O=j.children,L=j.width,z=j.height,F=E.props.margin||{},M=L-(F.left||0)-(F.right||0),V=wee({children:O,formattedGraphicalItems:T,legendWidth:M,legendContent:c});if(!V)return null;var q=V.item,W=A$(V,mUe);return _.cloneElement(q,qe(qe({},W),{},{chartWidth:L,chartHeight:z,margin:F,onBBoxUpdate:E.handleLegendBBoxUpdate}))}),Jt(E,"renderTooltip",function(){var T,j=E.props,O=j.children,L=j.accessibilityLayer,z=fs(O,di);if(!z)return null;var F=E.state,M=F.isTooltipActive,V=F.activeCoordinate,q=F.activePayload,W=F.activeLabel,ee=F.offset,ne=(T=z.props.active)!==null&&T!==void 0?T:M;return _.cloneElement(z,{viewBox:qe(qe({},ee),{},{x:ee.left,y:ee.top}),active:ne,label:W,payload:ne?q:[],coordinate:V,accessibilityLayer:L})}),Jt(E,"renderBrush",function(T){var j=E.props,O=j.margin,L=j.data,z=E.state,F=z.offset,M=z.dataStartIndex,V=z.dataEndIndex,q=z.updateId;return _.cloneElement(T,{key:T.key||"_recharts-brush",onChange:Iw(E.handleBrushChange,T.props.onChange),data:L,x:dt(T.props.x)?T.props.x:F.left,y:dt(T.props.y)?T.props.y:F.top+F.height+F.brushBottom-(O.bottom||0),width:dt(T.props.width)?T.props.width:F.width,startIndex:M,endIndex:V,updateId:"brush-".concat(q)})}),Jt(E,"renderReferenceElement",function(T,j,O){if(!T)return null;var L=E,z=L.clipPathId,F=E.state,M=F.xAxisMap,V=F.yAxisMap,q=F.offset,W=T.type.defaultProps||{},ee=T.props,ne=ee.xAxisId,K=ne===void 0?W.xAxisId:ne,oe=ee.yAxisId,$=oe===void 0?W.yAxisId:oe;return _.cloneElement(T,{key:T.key||"".concat(j,"-").concat(O),xAxis:M[K],yAxis:V[$],viewBox:{x:q.left,y:q.top,width:q.width,height:q.height},clipPathId:z})}),Jt(E,"renderActivePoints",function(T){var j=T.item,O=T.activePoint,L=T.basePoint,z=T.childIndex,F=T.isRange,M=[],V=j.props.key,q=j.item.type.defaultProps!==void 0?qe(qe({},j.item.type.defaultProps),j.item.props):j.item.props,W=q.activeDot,ee=q.dataKey,ne=qe(qe({index:z,dataKey:ee,cx:O.x,cy:O.y,r:4,fill:_O(j.item),strokeWidth:2,stroke:"#fff",payload:O.payload,value:O.value},mn(W,!1)),S1(W));return M.push(v.renderActiveDot(W,ne,"".concat(V,"-activePoint-").concat(z))),L?M.push(v.renderActiveDot(W,qe(qe({},ne),{},{cx:L.x,cy:L.y}),"".concat(V,"-basePoint-").concat(z))):F&&M.push(null),M}),Jt(E,"renderGraphicChild",function(T,j,O){var L=E.filterFormatItem(T,j,O);if(!L)return null;var z=E.getTooltipEventType(),F=E.state,M=F.isTooltipActive,V=F.tooltipAxis,q=F.activeTooltipIndex,W=F.activeLabel,ee=E.props.children,ne=fs(ee,di),K=L.props,oe=K.points,$=K.isRange,X=K.baseLine,Q=L.item.type.defaultProps!==void 0?qe(qe({},L.item.type.defaultProps),L.item.props):L.item.props,R=Q.activeDot,re=Q.hide,ce=Q.activeBar,le=Q.activeShape,he=!!(!re&&M&&ne&&(R||ce||le)),ye={};z!=="axis"&&ne&&ne.props.trigger==="click"?ye={onClick:Iw(E.handleItemMouseEnter,T.props.onClick)}:z!=="axis"&&(ye={onMouseLeave:Iw(E.handleItemMouseLeave,T.props.onMouseLeave),onMouseEnter:Iw(E.handleItemMouseEnter,T.props.onMouseEnter)});var Ae=_.cloneElement(T,qe(qe({},L.props),ye));function be(pt){return typeof V.dataKey=="function"?V.dataKey(pt.payload):null}if(he)if(q>=0){var Ee,ge;if(V.dataKey&&!V.allowDuplicatedCategory){var Ue=typeof V.dataKey=="function"?be:"payload.".concat(V.dataKey.toString());Ee=x1(oe,Ue,W),ge=$&&X&&x1(X,Ue,W)}else Ee=oe==null?void 0:oe[q],ge=$&&X&&X[q];if(le||ce){var Ye=T.props.activeIndex!==void 0?T.props.activeIndex:q;return[_.cloneElement(T,qe(qe(qe({},L.props),ye),{},{activeIndex:Ye})),null,null]}if(!An(Ee))return[Ae].concat(pg(E.renderActivePoints({item:L,activePoint:Ee,basePoint:ge,childIndex:q,isRange:$})))}else{var ae,Le=(ae=E.getItemByXY(E.state.activeCoordinate))!==null&&ae!==void 0?ae:{graphicalItem:Ae},st=Le.graphicalItem,ut=st.item,He=ut===void 0?T:ut,ht=st.childIndex,it=qe(qe(qe({},L.props),ye),{},{activeIndex:ht});return[_.cloneElement(He,it),null,null]}return $?[Ae,null,null]:[Ae,null]}),Jt(E,"renderCustomized",function(T,j,O){return _.cloneElement(T,qe(qe({key:"recharts-customized-".concat(O)},E.props),E.state))}),Jt(E,"renderMap",{CartesianGrid:{handler:Lw,once:!0},ReferenceArea:{handler:E.renderReferenceElement},ReferenceLine:{handler:Lw},ReferenceDot:{handler:E.renderReferenceElement},XAxis:{handler:Lw},YAxis:{handler:Lw},Brush:{handler:E.renderBrush,once:!0},Bar:{handler:E.renderGraphicChild},Line:{handler:E.renderGraphicChild},Area:{handler:E.renderGraphicChild},Radar:{handler:E.renderGraphicChild},RadialBar:{handler:E.renderGraphicChild},Scatter:{handler:E.renderGraphicChild},Pie:{handler:E.renderGraphicChild},Funnel:{handler:E.renderGraphicChild},Tooltip:{handler:E.renderCursor,once:!0},PolarGrid:{handler:E.renderPolarGrid,once:!0},PolarAngleAxis:{handler:E.renderPolarAxis},PolarRadiusAxis:{handler:E.renderPolarAxis},Customized:{handler:E.renderCustomized}}),E.clipPathId="".concat((B=x.id)!==null&&B!==void 0?B:Vh("recharts"),"-clip"),E.throttleTriggeredAfterMouseMove=xZ(E.triggeredAfterMouseMove,(C=x.throttleDelay)!==null&&C!==void 0?C:1e3/60),E.state={},E}return NUe(v,y),BUe(v,[{key:"componentDidMount",value:function(){var B,C;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(B=this.props.margin.left)!==null&&B!==void 0?B:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var B=this.props,C=B.children,E=B.data,T=B.height,j=B.layout,O=fs(C,di);if(O){var L=O.props.defaultIndex;if(!(typeof L!="number"||L<0||L>this.state.tooltipTicks.length-1)){var z=this.state.tooltipTicks[L]&&this.state.tooltipTicks[L].value,F=dP(this.state,E,L,z),M=this.state.tooltipTicks[L].coordinate,V=(this.state.offset.top+T)/2,q=j==="horizontal",W=q?{x:M,y:V}:{y:M,x:V},ee=this.state.formattedGraphicalItems.find(function(K){var oe=K.item;return oe.type.name==="Scatter"});ee&&(W=qe(qe({},W),ee.props.points[L].tooltipPosition),F=ee.props.points[L].tooltipPayload);var ne={activeTooltipIndex:L,isTooltipActive:!0,activeLabel:z,activePayload:F,activeCoordinate:W};this.setState(ne),this.renderCursor(O),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(B,C){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==C.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==B.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==B.margin){var E,T;this.accessibilityManager.setDetails({offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0}})}return null}},{key:"componentDidUpdate",value:function(B){W_([fs(B.children,di)],[fs(this.props.children,di)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var B=fs(this.props.children,di);if(B&&typeof B.props.shared=="boolean"){var C=B.props.shared?"axis":"item";return s.indexOf(C)>=0?C:a}return a}},{key:"getMouseInfo",value:function(B){if(!this.container)return null;var C=this.container,E=C.getBoundingClientRect(),T=STe(E),j={chartX:Math.round(B.pageX-T.left),chartY:Math.round(B.pageY-T.top)},O=E.width/C.offsetWidth||1,L=this.inRange(j.chartX,j.chartY,O);if(!L)return null;var z=this.state,F=z.xAxisMap,M=z.yAxisMap,V=this.getTooltipEventType(),q=h$(this.state,this.props.data,this.props.layout,L);if(V!=="axis"&&F&&M){var W=Jp(F).scale,ee=Jp(M).scale,ne=W&&W.invert?W.invert(j.chartX):null,K=ee&&ee.invert?ee.invert(j.chartY):null;return qe(qe({},j),{},{xValue:ne,yValue:K},q)}return q?qe(qe({},j),q):null}},{key:"inRange",value:function(B,C){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,T=this.props.layout,j=B/E,O=C/E;if(T==="horizontal"||T==="vertical"){var L=this.state.offset,z=j>=L.left&&j<=L.left+L.width&&O>=L.top&&O<=L.top+L.height;return z?{x:j,y:O}:null}var F=this.state,M=F.angleAxisMap,V=F.radiusAxisMap;if(M&&V){var q=Jp(M);return TH({x:j,y:O},q)}return null}},{key:"parseEventsOfWrapper",value:function(){var B=this.props.children,C=this.getTooltipEventType(),E=fs(B,di),T={};E&&C==="axis"&&(E.props.trigger==="click"?T={onClick:this.handleClick}:T={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var j=S1(this.props,this.handleOuterEvent);return qe(qe({},j),T)}},{key:"addListener",value:function(){kN.on(EN,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){kN.removeListener(EN,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(B,C,E){for(var T=this.state.formattedGraphicalItems,j=0,O=T.length;j<O;j++){var L=T[j];if(L.item===B||L.props.key===B.key||C===Zu(L.item.type)&&E===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var B=this.clipPathId,C=this.state.offset,E=C.left,T=C.top,j=C.height,O=C.width;return me.createElement("defs",null,me.createElement("clipPath",{id:B},me.createElement("rect",{x:E,y:T,height:j,width:O})))}},{key:"getXScales",value:function(){var B=this.state.xAxisMap;return B?Object.entries(B).reduce(function(C,E){var T=d$(E,2),j=T[0],O=T[1];return qe(qe({},C),{},Jt({},j,O.scale))},{}):null}},{key:"getYScales",value:function(){var B=this.state.yAxisMap;return B?Object.entries(B).reduce(function(C,E){var T=d$(E,2),j=T[0],O=T[1];return qe(qe({},C),{},Jt({},j,O.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(B){var C;return(C=this.state.xAxisMap)===null||C===void 0||(C=C[B])===null||C===void 0?void 0:C.scale}},{key:"getYScaleByAxisId",value:function(B){var C;return(C=this.state.yAxisMap)===null||C===void 0||(C=C[B])===null||C===void 0?void 0:C.scale}},{key:"getItemByXY",value:function(B){var C=this.state,E=C.formattedGraphicalItems,T=C.activeItem;if(E&&E.length)for(var j=0,O=E.length;j<O;j++){var L=E[j],z=L.props,F=L.item,M=F.type.defaultProps!==void 0?qe(qe({},F.type.defaultProps),F.props):F.props,V=Zu(F.type);if(V==="Bar"){var q=(z.data||[]).find(function(K){return qFe(B,K)});if(q)return{graphicalItem:L,payload:q}}else if(V==="RadialBar"){var W=(z.data||[]).find(function(K){return TH(B,K)});if(W)return{graphicalItem:L,payload:W}}else if(YS(L,T)||XS(L,T)||k0(L,T)){var ee=jLe({graphicalItem:L,activeTooltipItem:T,itemData:M.data}),ne=M.activeIndex===void 0?ee:M.activeIndex;return{graphicalItem:qe(qe({},L),{},{childIndex:ne}),payload:k0(L,T)?M.data[ee]:L.props.data[ee]}}}return null}},{key:"render",value:function(){var B=this;if(!QR(this))return null;var C=this.props,E=C.children,T=C.className,j=C.width,O=C.height,L=C.style,z=C.compact,F=C.title,M=C.desc,V=A$(C,gUe),q=mn(V,!1);if(z)return me.createElement(q9,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},me.createElement(G_,um({},q,{width:j,height:O,title:F,desc:M}),this.renderClipPath(),$R(E,this.renderMap)));if(this.props.accessibilityLayer){var W,ee;q.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,q.role=(ee=this.props.role)!==null&&ee!==void 0?ee:"application",q.onKeyDown=function(K){B.accessibilityManager.keyboardEvent(K)},q.onFocus=function(){B.accessibilityManager.focus()}}var ne=this.parseEventsOfWrapper();return me.createElement(q9,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},me.createElement("div",um({className:Cn("recharts-wrapper",T),style:qe({position:"relative",cursor:"default",width:j,height:O},L)},ne,{ref:function(oe){B.container=oe}}),me.createElement(G_,um({},q,{width:j,height:O,title:F,desc:M,style:OUe}),this.renderClipPath(),$R(E,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(_.Component);Jt(b,"displayName",n),Jt(b,"defaultProps",qe({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},A)),Jt(b,"getDerivedStateFromProps",function(y,v){var x=y.dataKey,B=y.data,C=y.children,E=y.width,T=y.height,j=y.layout,O=y.stackOffset,L=y.margin,z=v.dataStartIndex,F=v.dataEndIndex;if(v.updateId===void 0){var M=p$(y);return qe(qe(qe({},M),{},{updateId:0},m(qe(qe({props:y},M),{},{updateId:0}),v)),{},{prevDataKey:x,prevData:B,prevWidth:E,prevHeight:T,prevLayout:j,prevStackOffset:O,prevMargin:L,prevChildren:C})}if(x!==v.prevDataKey||B!==v.prevData||E!==v.prevWidth||T!==v.prevHeight||j!==v.prevLayout||O!==v.prevStackOffset||!ym(L,v.prevMargin)){var V=p$(y),q={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},W=qe(qe({},h$(v,B,j)),{},{updateId:v.updateId+1}),ee=qe(qe(qe({},V),q),W);return qe(qe(qe({},ee),m(qe({props:y},ee),v)),{},{prevDataKey:x,prevData:B,prevWidth:E,prevHeight:T,prevLayout:j,prevStackOffset:O,prevMargin:L,prevChildren:C})}if(!W_(C,v.prevChildren)){var ne,K,oe,$,X=fs(C,ng),Q=X&&(ne=(K=X.props)===null||K===void 0?void 0:K.startIndex)!==null&&ne!==void 0?ne:z,R=X&&(oe=($=X.props)===null||$===void 0?void 0:$.endIndex)!==null&&oe!==void 0?oe:F,re=Q!==z||R!==F,ce=!An(B),le=ce&&!re?v.updateId:v.updateId+1;return qe(qe({updateId:le},m(qe(qe({props:y},v),{},{updateId:le,dataStartIndex:Q,dataEndIndex:R}),v)),{},{prevChildren:C,dataStartIndex:Q,dataEndIndex:R})}return null}),Jt(b,"renderActiveDot",function(y,v,x){var B;return _.isValidElement(y)?B=_.cloneElement(y,v):bn(y)?B=y(v):B=me.createElement(GS,v),me.createElement(Wn,{className:"recharts-active-dot",key:x},B)});var g=_.forwardRef(function(v,x){return me.createElement(b,um({},v,{ref:x}))});return g.displayName=b.displayName,g},Ll=Dte({chartName:"BarChart",GraphicalChild:Hr,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ba},{axisType:"yAxis",AxisComp:Gi}],formatAxisMap:zee}
1406),Mte=Dte({chartName:"ComposedChart",GraphicalChild:[Qg,Yh,Hr,aB],axisComponents:[{axisType:"xAxis",AxisComp:Ba},{axisType:"yAxis",AxisComp:Gi},{axisType:"zAxis",AxisComp:iB}],formatAxisMap:zee});const qUe=[{id:"7d",label:"7D"},{id:"30d",label:"30D"},{id:"90d",label:"90D"},{id:"1y",label:"1Y"},{id:"custom",label:"Custom"}];function zUe({dateRange:e,setDateRange:t,customStart:n,setCustomStart:r,customEnd:i,setCustomEnd:a}){return u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("div",{className:"flex bg-white rounded-full border border-slate/15 p-1",children:qUe.map(o=>u.jsx("button",{onClick:()=>t(o.id),className:`px-3 py-1.5 rounded-full text-xs font-bold transition-colors ${e===o.id?"bg-azure text-white":"text-slate/50 hover:text-slate"}`,children:o.label},o.id))}),e==="custom"&&u.jsxs("div",{className:"flex items-center gap-2 bg-white rounded-full border border-slate/15 px-3 py-1.5",children:[u.jsx("input",{type:"date",value:n,max:i||void 0,onChange:o=>r(o.target.value),className:"text-xs font-semibold text-midnight bg-transparent outline-none"}),u.jsx("span",{className:"text-xs text-slate/40",children:"to"}),u.jsx("input",{type:"date",value:i,min:n||void 0,onChange:o=>a(o.target.value),className:"text-xs font-semibold text-midnight bg-transparent outline-none"})]})]})}function VUe(e){if(e==null)return"";const t=String(e).replace(/"/g,'""');return/[",\n]/.test(t)?`"${t}"`:t}function WUe(e,t){const n=t.join(","),r=e.map(i=>t.map(a=>VUe(i[a])).join(",")).join(`
1407`);return`${n}
1408${r}`}function KUe(e,t){const n=new Blob([t],{type:"text/csv;charset=utf-8;"}),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download=e,i.click(),URL.revokeObjectURL(r)}const GUe=["created_date","event_type","event_name","page_name","page_url","session_id","element_text","element_type","scroll_depth","time_on_page","click_x","click_y","referrer"];function YUe({pageViews:e,clicks:t,engagements:n,ctaEvents:r,formStarts:i,formCompletes:a,label:o}){const s=[...e,...t,...n,...i,...a,...r.map(l=>({...l,event_type:"cta_click",page_name:l.source,element_text:l.service}))].sort((l,c)=>new Date(c.created_date)-new Date(l.created_date));KUe(`sourceworx-analytics-${o}.csv`,WUe(s,GUe))}const Dw=["#009BDF","#20BCED","#0073A8","#00AEDD"],Ru=20;function XUe({engagements:e}){if(!e||e.length===0)return u.jsx("div",{className:"h-56 flex items-center justify-center text-slate/30 text-sm",children:"No scroll data for this page yet."});const t=e.map(d=>d.scroll_depth).filter(d=>d!=null);if(t.length===0)return u.jsx("div",{className:"h-56 flex items-center justify-center text-slate/30 text-sm",children:"No scroll data for this page yet."});const n=t.length,r=Array.from({length:Ru},(d,A)=>{const h=A/Ru*100;return Math.round(t.filter(m=>m>=h).length/n*100)}),i=Array(Ru).fill(0);t.forEach(d=>{const A=Math.min(Ru-1,Math.floor(d/(100/Ru)));i[A]++});const a=Math.max(...i,1),o=Math.round(t.reduce((d,A)=>d+A,0)/t.length),s=r.findIndex(d=>d<50),l=s>=0?Math.round(s/Ru*100):100,c=[{label:"Top Quarter",range:"0% – 25%",pct:r[5]},{label:"Upper Middle",range:"25% – 50%",pct:r[10]},{label:"Lower Middle",range:"50% – 75%",pct:r[15]},{label:"Bottom Quarter",range:"75% – 100%",pct:r[Ru-1]}];return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[u.jsxs("div",{className:"text-center",children:[u.jsxs("p",{className:"text-2xl font-heading font-extrabold text-midnight",children:[o,"%"]}),u.jsx("p",{className:"text-xs text-slate/50 mt-0.5",children:"Avg scroll depth"})]}),u.jsxs("div",{className:"text-center",children:[u.jsxs("p",{className:"text-2xl font-heading font-extrabold text-midnight",children:[l,"%"]}),u.jsx("p",{className:"text-xs text-slate/50 mt-0.5",children:"50% drop-off point"})]}),u.jsxs("div",{className:"text-center",children:[u.jsxs("p",{className:"text-2xl font-heading font-extrabold text-midnight",children:[r[Ru-1],"%"]}),u.jsx("p",{className:"text-xs text-slate/50 mt-0.5",children:"Reached page bottom"})]})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest mb-3",children:"Scroll depth map"}),u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"flex flex-col gap-px w-10",children:r.map((d,A)=>{const h=d/100;return u.jsx("div",{style:{height:"13px",background:d>0?`rgba(0,155,223,${.08+h*.92})`:"rgba(248,248,248,0.6)"},className:"rounded-sm"},A)})}),u.jsx("div",{className:"flex flex-col gap-px text-[9px] text-slate/40 font-mono",children:r.map((d,A)=>u.jsx("div",{style:{height:"13px"},className:"flex items-center",children:A%4===0?`${Math.round(A/Ru*100)}%`:""},A))}),u.jsx("div",{className:"flex flex-col gap-px text-[9px] text-slate/40 font-mono",children:r.map((d,A)=>u.jsx("div",{style:{height:"13px"},className:"flex items-center",children:A%4===0?`${d}%`:""},A))}),u.jsxs("div",{className:"flex flex-col justify-end items-center gap-1 ml-2",children:[u.jsx("span",{className:"text-[9px] text-slate/40 font-bold",children:"100%"}),u.jsx("div",{className:"w-3 h-32 rounded-full",style:{background:"linear-gradient(to top, rgba(0,155,223,0.08), rgba(0,155,223,1)
1408)"}}),u.jsx("span",{className:"text-[9px] text-slate/40 font-bold",children:"0%"})]})]}),u.jsx("p",{className:"text-xs text-slate/40 mt-3",children:"Each band = 5% of page height. Darker = more visitors scrolled to that depth."})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest mb-3",children:"Section retention"}),u.jsx("div",{className:"space-y-4",children:c.map((d,A)=>u.jsxs("div",{children:[u.jsxs("div",{className:"flex justify-between text-xs mb-1.5",children:[u.jsxs("span",{className:"font-semibold text-midnight",children:[d.label," ",u.jsx("span",{className:"text-slate/30 font-normal ml-1",children:d.range})]}),u.jsxs("span",{className:"text-slate/50",children:[d.pct,"% reached"]})]}),u.jsx("div",{className:"h-6 bg-cloud rounded-lg overflow-hidden",children:u.jsx(_e.div,{initial:{width:0},animate:{width:`${d.pct}%`},transition:{duration:.6,delay:A*.1},className:"h-full rounded-lg",style:{background:`linear-gradient(90deg, ${Dw[A%Dw.length]}, ${Dw[(A+1)%Dw.length]})`}})})]},A))}),u.jsxs("div",{className:"mt-6",children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest mb-3",children:"Where visitors stop scrolling"}),u.jsx("div",{className:"flex items-end gap-px h-20",children:i.map((d,A)=>u.jsx("div",{className:"flex-1 flex flex-col justify-end",children:u.jsx("div",{className:"rounded-t-sm transition-all",style:{height:`${d/a*100}%`,background:d>0?`rgba(0,155,223,${.2+d/a*.8})`:"rgba(248,248,248,0.6)",minHeight:d>0?"4px":"2px"}})},A))}),u.jsxs("div",{className:"flex justify-between text-[9px] text-slate/30 mt-1",children:[u.jsx("span",{children:"Top of page"}),u.jsx("span",{children:"Bottom of page"})]})]})]})]})]})}const JUe={fontSize:12,borderRadius:8,border:"1px solid #e2e8f0"};function g$(e){return new Date(e).toISOString().slice(0,10)}function TN(e){if(!e||e==="/")return"Home";const t=e.replace(/^\//,"").replace(/\/$/,"").split("/");return(t[t.length-1]||"Home").replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function ZUe(e){if(!e||e<1)return"<1s";if(e<60)return`${e}s`;const t=Math.floor(e/60),n=e%60;return`${t}m ${n}s`}function eRe({page:e,pageViews:t,clicks:n,engagements:r}){const i=t.filter(B=>(B.page_name||TN(B.page_url))===e),a=n.filter(B=>(B.page_name||TN(B.page_url))===e),o=r.filter(B=>(B.page_name||TN(B.page_url))===e),s=new Date,l=Array.from({length:14},(B,C)=>{const E=new Date(s);return E.setDate(E.getDate()-(13-C)),g$(E)}),c=i.reduce((B,C)=>{const E=C.created_date?g$(C.created_date):null;return E&&(B[E]=(B[E]||0)+1),B},{}),d=l.map(B=>({day:B.slice(5),count:c[B]||0})),A=o.map(B=>B.time_on_page).filter(B=>B!=null),h=o.map(B=>B.scroll_depth).filter(B=>B!=null),m=A.length?Math.round(A.reduce((B,C)=>B+C,0)/A.length):0,b=h.length?Math.round(h.reduce((B,C)=>B+C,0)/h.length):0,g=new Set(i.map(B=>B.session_id).filter(Boolean)).size,y=a.reduce((B,C)=>{const E=(C.element_text||"(no label)").slice(0,40);return B[E]=(B[E]||0)+1,B},{}),v=Object.entries(y).map(([B,C])=>({text:B,count:C})).sort((B,C)=>C.count-B.count).slice(0,8),x=[{label:"Total views",value:i.length,Ic:bh,color:"text-azure"},{label:"Unique visitors",value:g,Ic:FA,color:"text-sky"},{label:"Avg time",value:ZUe(m),Ic:bs,color:"text-green-600"},{label:"Avg scroll",value:`${b}%`,Ic:iW,color:"text-indigo-600"}];return u.jsxs("div",{className:"space-y-6",children:[u.jsx("div",{className:"grid grid-cols-4 gap-4",children:x.map((B,C)=>{const E=B.Ic;return u.jsxs("div",{className:"bg-cloud rounded-xl p-4 text-center",children:[u.jsx(E,{className:`w-4 h-4 ${B.color} mx-auto mb-2`}),u.jsx("p",{className:"text-xl font-heading font-extrabold text-midnight",children:B.value}),u.jsx("p",{className:"text-xs text-slate/50",children:B.label})]},C)})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest mb-3",children:"Views — last 14 days"}),u.jsx(hs,{width:"100%",height:180,children:u.jsxs(Ll,{data:d,margin:{left:0,right:8},children:[u.jsx(Ba,{dataKey:"day",tick:{fontSize:10,fill:"#6A7280"},axisLine:!1,tickLine:!1}),u.jsx(Gi,{tick:{fontSize:11,fill:"#6A7280"}
1408,axisLine:!1,tickLine:!1,allowDecimals:!1}),u.jsx(di,{contentStyle:JUe,formatter:B=>[B,"Views"]}),u.jsx(Hr,{dataKey:"count",fill:"#009BDF",radius:[4,4,0,0]})]})})]}),v.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest mb-3",children:"Top clicked elements on this page"}),u.jsx("div",{className:"space-y-2",children:v.map((B,C)=>u.jsxs("div",{className:"flex items-center justify-between bg-cloud rounded-lg px-4 py-2.5",children:[u.jsx("span",{className:"text-sm font-medium text-midnight truncate",children:B.text}),u.jsx("span",{className:"text-xs font-bold text-azure bg-azure/8 px-2 py-0.5 rounded-full flex-shrink-0 ml-3",children:B.count})]},C))})]})]})}function tRe(e){if(!e||e==="/")return"Home";const t=e.replace(/^\//,"").replace(/\/$/,"").split("/");return(t[t.length-1]||"Home").replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function y$(e){if(!e||e<1)return"<1s";if(e<60)return`${e}s`;const t=Math.floor(e/60),n=e%60;return`${t}m ${n}s`}function nRe({sessionId:e,pageViews:t,clicks:n}){const r=t.filter(c=>c.session_id===e).sort((c,d)=>new Date(c.created_date)-new Date(d.created_date)),i=n.filter(c=>c.session_id===e).sort((c,d)=>new Date(c.created_date)-new Date(d.created_date)),a=r[0]?new Date(r[0].created_date):null,o=r[r.length-1]?new Date(r[r.length-1].created_date):null,s=a&&o?Math.round((o-a)/1e3):0,l=[{label:"Pages visited",value:r.length},{label:"Clicks made",value:i.length},{label:"Duration",value:y$(s)}];return u.jsxs("div",{className:"space-y-5",children:[u.jsx("div",{className:"grid grid-cols-3 gap-4",children:l.map((c,d)=>u.jsxs("div",{className:"bg-cloud rounded-xl p-4 text-center",children:[u.jsx("p",{className:"text-xl font-heading font-extrabold text-midnight",children:c.value}),u.jsx("p",{className:"text-xs text-slate/50",children:c.label})]},d))}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest mb-3",children:"Full timeline"}),u.jsx("div",{children:r.map((c,d)=>{const A=r[d+1],h=A?Math.round((new Date(A.created_date)-new Date(c.created_date))/1e3):null,m=i.filter(b=>{const g=new Date(b.created_date),y=new Date(c.created_date);return(!A||g<new Date(A.created_date))&&g>=y});return u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"text-xs text-slate/40 font-mono w-20 pt-1 flex-shrink-0",children:new Date(c.created_date).toLocaleTimeString()}),u.jsxs("div",{className:"flex flex-col items-center flex-shrink-0",children:[u.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-azure border-2 border-white shadow-sm"}),d<r.length-1&&u.jsx("div",{className:"w-px bg-slate/15",style:{minHeight:m.length>0?"48px":"32px"}})]}),u.jsxs("div",{className:"flex-1 pb-4",children:[u.jsx("span",{className:"text-sm font-semibold text-midnight bg-azure/8 px-3 py-1 rounded-lg",children:c.page_name||tRe(c.page_url)}),h!=null&&u.jsxs("span",{className:"text-xs text-slate/40 ml-2",children:["· ",y$(h)]}),m.length>0&&u.jsx("div",{className:"mt-2 space-y-1",children:m.map((b,g)=>u.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate/60",children:[u.jsx(QT,{className:"w-3 h-3 text-azure flex-shrink-0"}),u.jsx("span",{children:b.element_text||"(no label)"}),u.jsxs("span",{className:"text-slate/30",children:["· ",b.element_type]})]},g))})]})]},d)})})]})]})}const rRe={fontSize:12,borderRadius:8,border:"1px solid #e2e8f0"};function Mw(e){return new Date(e).toISOString().slice(0,10)}function v$(e){if(!e||e==="/")return"Home";const t=e.replace(/^\//,"").replace(/\/$/,"").split("/");return(t[t.length-1]||"Home").replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function iRe({elementText:e,clicks:t}){const n=t.filter(A=>(A.element_text||"(no label)").slice(0,50)===e),r=n.reduce((A,h)=>{const m=h.page_name||v$(h.page_url);return A[m]=(A[m]||0)+1,A},{}),i=Object.entries(r).map(([A,h])=>({name:A,count:h})).sort((A,h)=>h.count-A.count),a=new Date,o=Array.from({length:14},(A,h)=>{const m=new Date(a);return m.setDate(m.getDate()-(13-h)),Mw(m)}),s=n.reduce((A,h)=>{const m=h.created_date?Mw(h.created_date):null;return m&&(A[m]=(A[m]||0)+1),A},{}),l=o.map(A=>({day:A.slice(5),count:s[A]||0})),c=n.filter(A=>A.created_date&&Mw(A.created_date)===Mw(a)).length,d=[{label:"Total clicks",value:n.length},{label:"Pages it appears on",value:i.length},{label:"Clicks today",value:c}];return u.jsxs("div",{className:"space-y-6",children:[u.jsx("div",{className:"grid grid-cols-3 gap-4",children:d.map((A,h)=>u.jsxs("div",{className:"bg-cloud rounded-xl p-4 text-center",children:[u.jsx("p",{className:"text-xl font-heading font-extrabold text-midnight",children:A.value}),u.jsx("p",{className:"text-xs text-slate/50",children:A.label})]},h))}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest mb-3",children:"Click trend — last 14 days"}),u.jsx(hs,{width:"100%",height:160,children:u.jsxs(Ll,{data:l,margin:{left:0,right:8},children:[u.jsx(Ba,{dataKey:"day",tick:{fontSize:10,fill:"#6A7280"}
vendor: 10,907 bytes, lines 1408-1412
1408,axisLine:!1,tickLine:!1}),u.jsx(Gi,{tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1,allowDecimals:!1}),u.jsx(di,{contentStyle:rRe,formatter:A=>[A,"Clicks"]}),u.jsx(Hr,{dataKey:"count",fill:"#009BDF",radius:[4,4,0,0]})]})})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest mb-3",children:"Clicks by page"}),u.jsx("div",{className:"space-y-2",children:i.map((A,h)=>u.jsxs("div",{className:"flex items-center justify-between bg-cloud rounded-lg px-4 py-2.5",children:[u.jsx("span",{className:"text-sm font-medium text-midnight",children:A.name}),u.jsx("span",{className:"text-xs font-bold text-azure bg-azure/8 px-2 py-0.5 rounded-full",children:A.count})]},h))})]}),n.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest mb-3",children:"Recent click events"}),u.jsx("div",{className:"space-y-1.5",children:n.slice(0,10).map((A,h)=>u.jsxs("div",{className:"flex items-center justify-between text-xs bg-cloud rounded-lg px-4 py-2",children:[u.jsx("span",{className:"text-slate",children:A.page_name||v$(A.page_url)}),u.jsx("span",{className:"text-slate/40",children:A.created_date?new Date(A.created_date).toLocaleString():"—"})]},h))})]})]})}function aRe(e,t){return _.useReducer((n,r)=>t[n][r]??n,e)}var sB=e=>{const{present:t,children:n}=e,r=oRe(t),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),a=Ei(r.ref,sRe(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:a}):null};sB.displayName="Presence";function oRe(e){const[t,n]=_.useState(),r=_.useRef(null),i=_.useRef(e),a=_.useRef("none"),o=e?"mounted":"unmounted",[s,l]=aRe(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const c=Uw(r.current);a.current=s==="mounted"?c:"none"},[s]),eo(()=>{const c=r.current,d=i.current;if(d!==e){const h=a.current,m=Uw(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),eo(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,A=m=>{const g=Uw(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(l("ANIMATION_END"),!i.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=m=>{m.target===t&&(a.current=Uw(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",A),t.addEventListener("animationend",A),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",A),t.removeEventListener("animationend",A)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:_.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Uw(e){return(e==null?void 0:e.animationName)||"none"}function sRe(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function lRe(e){const t=cRe(e),n=_.forwardRef((r,i)=>{const{children:a,...o}=r,s=_.Children.toArray(a),l=s.find(dRe);if(l){const c=l.props.children,d=s.map(A=>A===l?_.Children.count(c)>1?_.Children.only(null):_.isValidElement(c)?c.props.children:null:A);return u.jsx(t,{...o,ref:i,children:_.isValidElement(c)?_.cloneElement(c,void 0,d):null})}return u.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}function cRe(e){const t=_.forwardRef((n,r)=>{const{children:i,...a}=n;if(_.isValidElement(i)){const o=fRe(i),s=ARe(a,i.props);return i.type!==_.Fragment&&(s.ref=r?Eg(r,o):o),_.cloneElement(i,s)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uRe=Symbol("radix.slottable");function dRe(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uRe}function ARe(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function fRe(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var lB="Dialog",[Ute]=hS(lB),[hRe,nc]=Ute(lB),Rte=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=_.useRef(null),l=_.useRef(null),[c,d]=E_({prop:r,defaultProp:i??!1,onChange:a,caller:lB});return u.jsx(hRe,{scope:t,triggerRef:s,contentRef:l,contentId:fm(),titleId:fm(),descriptionId:fm(),open:c,onOpenChange:d,onOpenToggle:_.useCallback(()=>d(A=>!A),[d]),modal:o,children:n})};Rte.displayName=lB;var Qte="DialogTrigger",pRe=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=nc(Qte,n),a=Ei(t,i.triggerRef);return u.jsx(Cr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":MO(i.open),...r,ref:a,onClick:_r(e.onClick,i.onOpenToggle)})});pRe.displayName=Qte;var LO="DialogPortal",[mRe,Hte]=Ute(LO,{forceMount:void 0}),$te=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=nc(LO,t);return u.jsx(mRe,{scope:t,forceMount:n,children:_.Children.map(r,o=>u.jsx(sB,{present:n||a.open,children:u.jsx(xj,{asChild:!0,container:i,children:o})}))})};$te.displayName=LO;var S2="DialogOverlay",qte=_.forwardRef((e,t)=>{const n=Hte(S2,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=nc(S2,e.__scopeDialog);return a.modal?u.jsx(sB,{present:r||a.open,children:u.jsx(yRe,{...i,ref:t})}):null});qte.displayName=S2;var gRe=lRe("DialogOverlay.RemoveScroll"),yRe=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=nc(S2,n);return u.jsx(Sj,{as:gRe,allowPinchZoom:!0,shards:[i.contentRef],children:u.jsx(Cr.div,{"data-state":MO(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ph="DialogContent",zte=_.forwardRef((e,t)=>{const n=Hte(Ph,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=nc(Ph,e.__scopeDialog);return u.jsx(sB,{present:r||a.open,children:a.modal?u.jsx(vRe,{...i,ref:t}):u.jsx(bRe,{...i,ref:t})})});zte.displayName=Ph;var vRe=_.forwardRef((e,t)=>{const n=nc(Ph,e.__scopeDialog),r=_.useRef(null),i=Ei(t,n.contentRef,r);return _.useEffect(()=>{const a=r.current;if(a)return zY(a)},[]),u.jsx(Vte,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_r(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:_r(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&a.preventDefault()}),onFocusOutside:_r(e.onFocusOutside,a=>a.preventDefault())})}),bRe=_.forwardRef((e,t)=>{const n=nc(Ph,e.__scopeDialog),r=_.useRef(!1),i=_.useRef(!1);return u.jsx(Vte,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o,s;(o=e.onCloseAutoFocus)==null||o.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:a=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),Vte=_.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=nc(Ph,n),l=_.useRef(null),c=Ei(t,l);return vY(),u.jsxs(u.Fragment,{children:[u.jsx(fj,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:u.jsx(Aj,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":MO(s.open),...o,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(wRe,{titleId:s.titleId}),u.jsx(SRe,{contentRef:l,descriptionId:s.descriptionId})]})]})}),DO="DialogTitle",Wte=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=nc(DO,n);return u.jsx(Cr.h2,{id:i.titleId,...r,ref:t})});Wte.displayName=DO;var Kte="DialogDescription",Gte=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=nc(Kte,n);return u.jsx(Cr.p,{id:i.descriptionId,...r,ref:t})});Gte.displayName=Kte;var Yte="DialogClose",Xte=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=nc(Yte,n);return u.jsx(Cr.button,{type:"button",...r,ref:t,onClick:_r(e.onClick,()=>i.onOpenChange(!1))})});Xte.displayName=Yte;function MO(e){return e?"open":"closed"}var Jte="DialogTitleWarning",[DZe,Zte]=D0e(Jte,{contentName:Ph,titleName:DO,docsSlug:"dialog"}),wRe=({titleId:e})=>{const t=Zte(Jte),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1409
1410If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
1411
1412For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return _.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},xRe="DialogDescriptionWarning",SRe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zte(xRe).contentName}}.`;return _.useEffect(()=>{var a;const i=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},BRe=Rte,CRe=$te,ene=qte,tne=zte,nne=Wte,rne=Gte,kRe=Xte;const _N=BRe,ERe=CRe,ine=_.forwardRef(({className:e,...t},n)=>u.jsx(ene,{ref:n,className:Ci("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ine.displayName=ene.displayName;const Dx=_.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(ERe,{children:[u.jsx(ine,{}),u.jsxs(tne,{ref:r,className:Ci("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,u.jsxs(kRe,{className:"absolute right-4 top-4 roun
1412ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[u.jsx(dd,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Dx.displayName=tne.displayName;const Mx=({className:e,...t})=>u.jsx("div",{className:Ci("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Mx.displayName="DialogHeader";const Ux=_.forwardRef(({className:e,...t},n)=>u.jsx(nne,{ref:n,className:Ci("text-lg font-semibold leading-none tracking-tight",e),...t}));Ux.displayName=nne.displayName;const NRe=_.forwardRef(({className:e,...t},n)=>u.jsx(rne,{ref:n,className:Ci("text-sm text-muted-foreground",e),...t}));NRe.displayName=rne.displayName;function TRe(e){if(!e||e==="/")return"Home";const t=e.replace(/^\//,"").replace(/\/$/,"").split("/");return(t[t.length-1]||"Home").replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function b$(e){if(!e||e<1)return"<1s";if(e<60)return`${e}s`;const t=Math.floor(e/60),n=e%60;return`${t}m ${n}s`}function IN(e){return e?e.startsWith("/services/")||e.startsWith("/industries/")||e.startsWith("/insights/")||e.startsWith("/campaign/")||e==="/diagnostics":!1}const _Re=[{id:"all",label:"All Content"},{id:"services",label:"Services"},{id:"industries",label:"Industries"},{id:"insights",label:"Articles"},{id:"campaigns",label:"Campaigns"},{id:"diagnostics",label:"Diagnostics"}];function PN(e,t){return t==="all"?!0:t==="services"?e==null?void 0:e.startsWith("/services/"):t==="industries"?e==null?void 0:e.startsWith("/industries/"):t==="insights"?e==null?void 0:e.startsWith("/insights/"):t==="campaigns"?e==null?void 0:e.startsWith("/campaign/"):t==="diagnostics"?e==="/diagnostics":!1}function IRe({pageViews:e,clicks:t,engagements:n}){const[r,i]=_.useState("all"),a=e.filter(v=>IN(v.page_url)&&PN(v.page_url,r)),o=n.filter(v=>IN(v.page_url)&&PN(v.page_url,r)),s=t.filter(v=>IN(v.page_url)&&PN(v.page_url,r)),l={};a.forEach(v=>{const x=v.page_url||"",B=v.page_name||TRe(x);l[x]||(l[x]={url:x,name:B,views:0,sessions:new Set,times:[],scrolls:[],clicks:0}),l[x].views++,v.session_id&&l[x].sessions.add(v.session_id)}),o.forEach(v=>{const x=v.page_url||"";l[x]&&(v.time_on_page!=null&&l[x].times.push(v.time_on_page),v.scroll_depth!=null&&l[x].scrolls.push(v.scroll_depth))}),s.forEach(v=>{const x=v.page_url||"";l[x]&&l[x].clicks++});const c=Object.values(l).map(v=>({url:v.url,name:v.name,views:v.views,uniqueVisitors:v.sessions.size,avgTime:v.times.length?Math.round(v.times.reduce((x,B)=>x+B,0)/v.times.length):0,avgScroll:v.scrolls.length?Math.round(v.scrolls.reduce((x,B)=>x+B,0)/v.scrolls.length):0,clicks:v.clicks})).sort((v,x)=>x.views-v.views),d=Math.max(...c.map(v=>v.views),1),A=c.reduce((v,x)=>v+x.views,0),h=new Set(a.map(v=>v.session_id).filter(Boolean)).size,m=o.map(v=>v.time_on_page).filter(v=>v!=null),b=m.length?Math.round(m.reduce((v,x)=>v+x,0)/m.length):0,g=c[0],y=[{label:"Content Views",value:A,Ic:bh,color:"text-azure",bg:"bg-azure/8"},{label:"Unique Visitors",value:h,Ic:FA,color:"text-sky",bg:"bg-sky/8"},{label:"Avg Engagement",value:b$(b),Ic:bs,color:"text-green-600",bg:"bg-green-50"},{label:"Top Topic",value:(g==null?void 0:g.name)||"—",Ic:Mv,color:"text-azure",bg:"bg-azure/8",small:!0}];return u.jsxs("div",{className:"space-y-6",children:[u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-
14125",children:y.map((v,x)=>{const B=v.Ic;return u.jsxs(_e.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},className:"bg-white rounded-2xl border border-slate/10 p-6 shadow-sm",children:[u.jsxs("div",{className:"flex items-start justify-between mb-4",children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest",children:v.label}),u.jsx("div",{className:`w-9 h-9 rounded-xl ${v.bg} flex items-center justify-center`,children:u.jsx(B,{className:`w-4 h-4 ${v.color}`})})]}),u.jsx("p",{className:`font-heading font-extrabold text-midnight ${v.small?"text-lg leading-snug":"text-4xl"}`,children:v.value})]},x)})}),u.jsx("div",{className:"flex gap-2 flex-wrap",children:_Re.map(v=>u.jsx("button",{onClick:()=>i(v.id),className:`px-4 py-2 rounded-full text-xs font-semibold transition-colors ${r===v.id?"bg-azure text-white":"bg-white text-slate border border-slate/15 hover:border-azure/30"}`,children:v.label},v.id))}),u.jsxs("div",{className:"bg-white rounded-2xl border border-slate/10 p-6 shadow-sm",children:[u.jsx("h2",{className:"text-sm font-heading font-bold text-midnight mb-1",children:"Content Performance Ranking"}),u.jsx("p",{className:"text-xs text-slate/50 mb-6",children:"Which topics generate the most visitor interest — ranked by views"}),c.length===0?u.jsx("div",{className:"h-40 flex items-center justify-center text-slate/30 text-sm",children:"No content page views recorded yet for this category."}):u.jsx("div",{className:"space-y-3",children:c.map((v,x)=>u.jsxs("div",{className:`rounded-xl border p-5 ${x===0?"border-azure/30 bg-azure/3":"border-slate/8"}`,children:[u.jsxs("div",{className:"flex items-center justify-between mb-3",children:[u.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[u.jsx("span",{className:`w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold flex-shrink-0 ${x===0?"bg-azure text-white":"bg-cloud text-slate/50"}`,children:x+1}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("p",{className:"text-sm font-bold text-midnight truncate",children:v.name}),u.jsx("p",{className:"text-xs text-slate/30 truncate",children:v.url})]})]}),x===0&&u.jsx("span",{className:"text-xs font-bold text-azure bg-azure/10 px-3 py-1 rounded-full flex-shrink-0 ml-2",children:"Top Performer"})]}),u.jsx("div",{className:"h-2 bg-cloud rounded-full overflow-hidden mb-3",children:u.jsx(_e.div,{initial:{width:0},animate:{width:`${v.views/d*100}%`},transition:{duration:.5,delay:x*.05},className:"h-full rounded-full",style:{background:x===0?"linear-gradient(90deg, #009BDF, #20BCED)":"#009BDF"}})}),u.jsxs("div",{className:"grid grid-cols-5 gap-2 text-center",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-bold text-midnight",children:v.views}),u.jsx("p",{className:"text-[10px] text-slate/40 uppercase tracking-wide",children:"Views"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-bold text-midnight",children:v.uniqueVisitors}),u.jsx("p",{className:"text-[10px] text-slate/40 uppercase tracking-wide",children:"Visitors"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-bold text-midnight",children:b$(v.avgTime)}),u.jsx("p",{className:"text-[10px] text-slate/40 uppercase tracking-wide",children:"Avg Time"})]}),u.jsxs("div",{children:[u.jsxs("p",{className:"text-sm font-bold text-midnight",children:[v.avgScroll,"%"]}),u.jsx("p",{className:"text-[10px] text-slate/40 uppercase tracking-wide",children:"Scroll"})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-bold text-midnight",children:v.clicks}),u.jsx("p",{className:"text-[10px] text-slate/40 uppercase tracking-wide",children:"Clicks"})]})]})]},x))})]})]})}const PRe={fontSize:12,borderRadius:8,border:"1px solid #e2e8f0"};function Dl(e){return new Date(e).toISOString().slice(0,10)}function jRe(e){const t=new Date;return e==="7d"?Array.from({length:7},(n,r)=>{const i=new Date(t);return i.setDate(i.getDate()-(6-r)),{label:i.toLocaleDateString("en-US",{month:"short",day:"numeric"}),start:Dl(i),end:Dl(i)}}):e==="30d"?Array.from({length:30},(n,r)=>{const i=new Date(t);return i.setDate(i.getDate()-(29-r)),{label:i.toLocaleDateString("en-US",{month:"short",day:"numeric"}),start:Dl(i),end:Dl(i)}}):e==="90d"?Array.from({length:13},(n,r)=>{const i=new Date(t);i.setDate(i.getDate()-(12-r)*7);const a=new Date(i);return a.setDate(a.getDate()-6),{label:a.toLocaleDateString("en-US",{month:"short",day:"numeric"}),start:Dl(a),end:Dl(i)}}):e==="1y"?Array.from({length:12},(n,r)=>{const i=new Date(t);i.setMonth(i.getMonth()-(11-r));const a=new Date(i.getFullYear(),i.getMonth(),1),o=new Date(i.getFullYear(),i.getMonth()+1,0);return{label:i.toLocaleDateString("en-US",{month:"short",year:"2-digit"}),start:Dl(a),end:Dl(o)}}):[]}function ORe({pageViews:e,diagnosticLeads:t,loading:n,dateRange:r="30d",formStarts:i=[],trendBuckets:a}){const o=e.filter(g=>(g.page_url||"").startsWith("/diagnostics")),s=i.filter(g=>(g.element_text||"").includes("Diagnostic")),c=(a&&a.length?a:jRe(r)).map(g=>
1412{const y=o.filter(B=>{const C=B.created_date?Dl(B.created_date):null;return C&&C>=g.start&&C<=g.end}).length,v=t.filter(B=>{const C=B.created_date?Dl(B.created_date):null;return C&&C>=g.start&&C<=g.end}).length,x=s.filter(B=>{const C=B.created_date?Dl(B.created_date):null;return C&&C>=g.start&&C<=g.end}).length;return{day:g.label,visits:y,starts:x,completions:v,conversionRate:y>0?Math.round(v/y*100):0}}),d=c.reduce((g,y)=>g+y.visits,0),A=c.reduce((g,y)=>g+y.starts,0),h=c.reduce((g,y)=>g+y.completions,0),m=d>0?Math.round(h/d*100):0,b=[{label:"Diagnostic Visits",value:n?"…":d,Ic:bh,color:"text-azure",bg:"bg-azure/8"},{label:"Form Starts",value:n?"…":A,Ic:o3,color:"text-sky",bg:"bg-sky/8"},{label:"Completions",value:n?"…":h,Ic:Qc,color:"text-green-600",bg:"bg-green-50"},{label:"Conversion Rate",value:n?"…":`${m}%`,Ic:Mv,color:"text-amber-600",bg:"bg-amber-50"}];return u.jsxs("div",{className:"mt-6",children:[u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-5 mb-6",children:b.map((g,y)=>{const v=g.Ic;return u.jsxs(_e.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},className:"bg-white rounded-2xl border border-slate/10 p-6 shadow-sm",children:[u.jsxs("div",{className:"flex items-start justify-between mb-4",children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest",children:g.label}),u.jsx("div",{className:`w-9 h-9 rounded-xl ${g.bg} flex items-center justify-center`,children:u.jsx(v,{className:`w-4 h-4 ${g.color}`})})]}),u.jsx("p",{className:"font-heading font-extrabold text-midnight text-4xl",children:g.value}),u.jsx("p",{className:"text-xs text-slate/40 mt-1",children:r==="1y"?"Last year":r==="90d"?"Last 90 days":r==="30d"?"Last 30 days":"Last 7 days"})]},y)})}),u.jsxs(_e.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-2xl border border-slate/10 p-6 shadow-sm",children:[u.jsx("h2",{className:"text-sm font-heading font-bold text-midnight mb-1",children:"Diagnostic Conversion Trend"}),u.jsxs("p",{className:"text-xs text-slate/50 mb-6",children:["Diagnostic visits → form starts → completions with conversion rate — last ",r==="1y"?"year":r==="90d"?"90 days":r==="30d"?"30 days":"7 days"]}),n?u.jsx("div",{className:"h-72 flex items-center justify-center text-slate/30 text-sm",children:"Loading…"}):d===0&&A===0&&h===0?u.jsx("div",{className:"h-72 flex items-center justify-center text-slate/30 text-sm",children:"No diagnostic data recorded yet."}):u.jsx(hs,{width:"100%",height:320,children:u.jsxs(Mte,{data:c,margin:{left:0,right:8,top:8},children:[u.jsx(Ba,{dataKey:"day",tick:{fontSize:9,fill:"#6A7280"},axisLine:!1,tickLine:!1,interval:r==="30d"?2:r==="90d"?1:0}),u.jsx(Gi,{yAxisId:"left",tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1,allowDecimals:!1}),u.jsx(Gi,{yAxisId:"right",orientation:"right",domain:[0,100],tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1,tickFormatter:g=>`${g}%`}),u.jsx(di,{contentStyle:PRe,formatter:(g,y)=>y==="Conversion Rate"?[`${g}%`,y]:[g,y]}),u.jsx(ed,{wrapperStyle:{fontSize:11,paddingTop:8}}),u.jsx(Hr,{yAxisId:"left",dataKey:"visits",name:"Diagnostic Visits",fill:"#009BDF",radius:[3,3,0,0],barSize:5}),u.jsx(Hr,{yAxisId:"left",dataKey:"starts",name:"Form Starts",fill:"#8B5CF6",radius:[3,3,0,0],barSize:5}),u.jsx(Hr,{yAxisId:"left",dataKey:"completions",name:"Completions",fill:"#10B981",radius:[3,3,0,0],barSize:5}),u.jsx(Qg,{yAxisId:"right",dataKey:"conversionRate",name:"Conversion Rate",stroke:"#F59E0B",strokeWidth:2,dot:{r:2,fill:"#F59E0B"}})]})})]})]})}const w$={fontSize:12,borderRadius:8,border:"1px solid #e2e8f0"};function _c(e){return new Date(e).toISOString().slice(0,10)}function FRe(e){const t=new Date;return e==="7d"?Array.from({length:7},(n,r)=>{const i=new Date(t);return i.setDate(i.getDate()-(6-r)),{label:i.toLocaleDateString("en-US",{month:"short",day:"numeric"}),start:_c(i),end:_c(i)}}):e==="30d"?Array.from({length:30},(n,r)=>{const i=new Date(t);return i.setDate(i.getDate()-(29-r)),{label:i.toLocaleDateString("en-US",{month:"short",day:"numeric"}),start:_c(i),end:_c(i)}}):e==="90d"?Array.from({length:13},(n,r)=>{const i=new Date(t);i.setDate(i.getDate()-(12-r)*7);const a=new Date(i);return a.setDate(a.getDate()-6),{label:a.toLocaleDateString("en-US",{month:"short",day:"numeric"}),start:_c(a),end:_c(i)}}):e==="1y"?Array.from({length:12},(n,r)=>{const i=new Date(t);i.setMonth(i.getMonth()-(11-r));const a=new Date(i.getFullYear(),i.getMonth(),1),o=new Date(i.getFullYear(),i.getMonth()+1,0);return{label:i.toLocaleDateString("en-US",{month:"short",year:"2-digit"}),start:_c(a),end:_c(o)}}):[]}function Rp({text:e}){return u.jsx("div",{className:"h-56 flex items-center justify-center text-slate/30 text-sm",children:e})}function LRe({label:e,value:t,Ic:n,color:r,bg:i,small:a}){return u.jsxs(_e.div,{initial:{opacity:0,y:16}
1412,animate:{opacity:1,y:0},className:"bg-white rounded-2xl border border-slate/10 p-6 shadow-sm",children:[u.jsxs("div",{className:"flex items-start justify-between mb-4",children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest",children:e}),u.jsx("div",{className:`w-9 h-9 rounded-xl ${i} flex items-center justify-center`,children:u.jsx(n,{className:`w-4 h-4 ${r}`})})]}),u.jsx("p",{className:`font-heading font-extrabold text-midnight ${a?"text-lg leading-snug":"text-4xl"}`,children:t})]})}function jN({title:e,subtitle:t,children:n}){return u.jsxs(_e.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-2xl border border-slate/10 p-6 shadow-sm",children:[u.jsx("h2",{className:"text-sm font-heading font-bold text-midnight mb-1",children:e}),u.jsx("p",{className:"text-xs text-slate/50 mb-6",children:t}),n]})}function DRe({formStarts:e,formCompletes:t,loading:n,dateRange:r,trendBuckets:i}){const a=r==="custom"?"selected period":r==="1y"?"year":r==="90d"?"90 days":r==="30d"?"30 days":"7 days",o={};e.forEach(v=>{const x=v.element_text||v.page_name||"Unknown";o[x]||(o[x]={name:x,starts:0,completions:0}),o[x].starts++}),t.forEach(v=>{const x=v.element_text||v.page_name||"Unknown";o[x]||(o[x]={name:x,starts:0,completions:0}),o[x].completions++});const s=Object.values(o).map(v=>({...v,rate:v.starts>0?Math.round(v.completions/v.starts*100):0,dropOff:v.starts-v.completions})).sort((v,x)=>x.starts-v.starts),l=e.length,c=t.length,d=l>0?Math.round(c/l*100):0,A=l-c,h=s[0],m=s.map(v=>({name:v.name,starts:v.starts,completions:v.completions})),g=(i&&i.length?i:FRe(r)).map(v=>{const x=e.filter(C=>{const E=C.created_date?_c(C.created_date):null;return E&&E>=v.start&&E<=v.end}).length,B=t.filter(C=>{const E=C.created_date?_c(C.created_date):null;return E&&E>=v.start&&E<=v.end}).length;return{day:v.label,starts:x,completions:B,rate:x>0?Math.round(B/x*100):0}}),y=[{label:"Form Starts",value:n?"…":l,Ic:o3,color:"text-azure",bg:"bg-azure/8"},{label:"Completions",value:n?"…":c,Ic:Qc,color:"text-green-600",bg:"bg-green-50"},{label:"Completion Rate",value:n?"…":`${d}%`,Ic:Mv,color:"text-sky",bg:"bg-sky/8"},{label:"Top Form",value:n?"…":(h==null?void 0:h.name)||"—",Ic:Om,color:"text-azure",bg:"bg-azure/8",small:!0}];return u.jsxs("div",{children:[u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-
14125 mb-8",children:y.map((v,x)=>(v.Ic,u.jsx(LRe,{...v},x)))}),u.jsx(jN,{title:"Form Activity Trend",subtitle:`Starts vs completions with completion rate — last ${a}`,children:n?u.jsx(Rp,{text:"Loading…"}):l===0&&c===0?u.jsx(Rp,{text:"No form events recorded yet. Starts and completions are tracked when visitors interact with site forms."}):u.jsx(hs,{width:"100%",height:300,children:u.jsxs(Mte,{data:g,margin:{left:0,right:8,top:8},children:[u.jsx(Ba,{dataKey:"day",tick:{fontSize:10,fill:"#6A7280"},axisLine:!1,tickLine:!1,interval:r==="30d"?2:r==="90d"?1:0}),u.jsx(Gi,{yAxisId:"left",tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1,allowDecimals:!1}),u.jsx(Gi,{yAxisId:"right",orientation:"right",domain:[0,100],tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1,tickFormatter:v=>`${v}%`}),u.jsx(di,{contentStyle:w$,formatter:(v,x)=>x==="Completion Rate"?[`${v}%`,x]:[v,x]}),u.jsx(ed,{wrapperStyle:{fontSize:11,paddingTop:8}}),u.jsx(Hr,{yAxisId:"left",dataKey:"starts",name:"Starts",fill:"#009BDF",radius:[3,3,0,0],barSize:8}),u.jsx(Hr,{yAxisId:"left",dataKey:"completions",name:"Completions",fill:"#10B981",radius:[3,3,0,0],barSize:8}),u.jsx(Qg,{yAxisId:"right",dataKey:"rate",name:"Completion Rate",stroke:"#F59E0B",strokeWidth:2,dot:{r:2,fill:"#F59E0B"}})]})})}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[u.jsx(jN,{title:"Starts vs Completions by Form",subtitle:"Which forms convert best",children:n?u.jsx(Rp,{text:"Loading…"}):s.length===0?u.jsx(Rp,{text:"No form data yet."}):u.jsx(hs,{width:"100%",height:Math.max(200,s.length*50),children:u.jsxs(Ll,{data:m,layout:"vertical",margin:{left:0,right:16},children:[u.jsx(Ba,{type:"number",tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1,allowDecimals:!1}),u.jsx(Gi,{type:"category",dataKey:"name",tick:{fontSize:10,fill:"#6A7280"},width:140,axisLine:!1,tickLine:!1}),u.jsx(di,{contentStyle:w$}),u.jsx(ed,{wrapperStyle:{fontSize:11,paddingTop:8}}),u.jsx(Hr,{dataKey:"starts",name:"Starts",fill:"#009BDF",radius:[0,4,4,0],barSize:14}),u.jsx(Hr,{dataKey:"completions",name:"Completions",fill:"#10B981",radius:[0,4,4,0],barSize:14})]})})}),u.jsx(jN,{title:"Form Breakdown",subtitle:"Per-form start, completion, and drop-off metrics",children:n?u.jsx(Rp,{text:"Loading…"}):s.length===0?u.jsx(Rp,{text:"No form data yet."}):u.jsx("div",{className:"overflow-x-auto",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-slate/8",children:[u.jsx("th",{className:"text-left text-xs font-bold text-slate/40 uppercase tracking-widest pb-3 pr-4",children:"Form"}),u.jsx("th",{className:"text-right text-xs font-bold text-slate/40 uppercase tracking-widest pb-3 pr-4",children:"Starts"}),u.jsx("th",{className:"text-right text-xs font-bold text-slate/40 uppercase tracking-widest pb-3 pr-4",children:"Done"}),u.jsx("th",{className:"text-right text-xs font-bold text-slate/40 uppercase tracking-widest pb-3 pr-4",children:"Drop"}),u.jsx("th",{className:"text-right text-xs font-bold text-slate/40 uppercase tracking-widest pb-3",children:"Rate"})]})}),u.jsx("tbody",{children:s.map((v,x)=>u.jsxs("tr",{className:"border-b border-slate/5 hover:bg-cloud/50 transition-colors",children:[u.jsx("td",{className:"py-2.5 pr-4 font-medium text-midnight truncate max-w-[140px]",children:v.name}),u.jsx("td",{className:"py-2.5 pr-4 text-right text-slate",children:v.starts}),u.jsx("td",{className:"py-2.5 pr-4 text-right text-green-600 font-semibold",children:v.completions}),u.jsx("td",{className:"py-2.5 pr-4 text-right text-slate/60",children:v.dropOff}),u.jsx("td",{className:"py-2.5 text-right",children:u.jsxs("span",{className:`text-xs font-bold px-2 py-1 rounded-full ${v.rate>=50?"bg-green-50 text-green-700":v.rate>=25?"bg-amber-50 text-amber-700":"bg-red-50 text-red-600"}`,children:[v.rate,"%"]})})]},x))})]})})})]}),u.jsxs("p",{className:"text-xs text-slate/30 text-center mt-6",children:["Form starts are tracked on first field focus · completions on form submit · ",A," total drop-offs in this period"]})]})}const MRe={home_hero:"Home — Hero CTA",home_cta_strip:"Home — CTA Strip",cta_strip:"Generic CTA Strip",service_hero:"Service Page — Hero"};function URe(e){if(!e)return"Unknown";if(e.startsWith("service_cta_strip_")){const t=e.replace("service_cta_strip_","").replace(/_/g," ");return`${t.charAt(0).toUpperCase()+t.slice(1)} — CTA Strip`}return MRe[e]||e}function xa(e){return new Date(e).toISOString().slice(0,10)}function Lf(e){if(!e||e==="/")return"Home";const t=e.replace(/^\//,"").replace(/\/$/,"").split("/");return(t[t.length-1]||"Home").replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function Ry(e){if(!e||e<1)return"<1s";if(e<60)return`${e}s`;const t=Math.floor(e/60),n=e%60;return`${t}m ${n}s`}function RRe(e,t,n){const r=new Date;if(e==="custom"){if(!t||!n)return[];const i=new Date(t),a=new Date(n),o=Math.max(1,Math.round((a-i)/864e5)+1),s=o<=31?1:Math.ceil(o/30),l=[];for(let c=0;c<o;c+=s){const d=new Date(i);d.setDate(d.getDate()+c);const A=new Date(i);A.setDate(A.getDate()+Math.min(c+s-1,o-1)),l.push({label:d.toLocaleDateString("en-US",{month:"short",day:"numeric"}),start:xa(d),end:xa(A)})}return l}return e==="7d"?Array.from({length:7},(i,a)=>{const o=new Date(r);return o.setDate(o.getDate()-(6-a)),{label:o.toLocaleDateString("en-US",{month:"short",day:"numeric"}),start:xa(o),end:xa(o)}}):e==="30d"?Array.from({length:30},(i,a)=>{const o=new Date(r);return o.setDate(o.getDate()-(29-a)),{label:o.toLocaleDateString("en-US",{month:"short",day:"numeric"}),start:xa(o),end:xa(o)}}):e==="90d"?Array.from({length:13},(i,a)=>{const o=new Date(r);o.setDate(o.getDate()-(12-a)*7);const s=new Date(o);return s.setDate(s.getDate()-6),{label:s.toLocaleDateString("en-US",{month:"short",day:"numeric"}),start:xa(s),end:xa(o)}}):e==="1y"?Array.from({length:12},(i,a)=>{const o=new Date(r);o.setMonth(o.getMonth()-(11-a));const s=new Date(o.getFullYear(),o.getMonth(),1),l=new Date(o.getFullYear(),o.getMonth()+1,0);return{label:o.toLocaleDateString("en-US",{month:"short",year:"2-digit"}),start:xa(s),end:xa(l)}}):[]}const Cc=["#009BDF","#20BCED","#0073A8","#00AEDD","#006B9F","#17A8E0"],QRe=[{id:"pages",label:"Pages & Engagement"},{id:"content",label:"Content Report"},{id:"clicks",label:"Click Tracking"},{id:"sessions",label:"Session Journeys"},{id:"heatmap",label:"Heatmap"},{id:"cta",label:"CTA Performance"},{id:"forms",label:"Form Performance"}];function os({label:e,value:t,Ic:n,color:r,bg:i,small:a}){return u.jsxs(_e.div,{initial:{opacity:0,y:16}
1412,animate:{opacity:1,y:0},className:"bg-white rounded-2xl border border-slate/10 p-6 shadow-sm",children:[u.jsxs("div",{className:"flex items-start justify-between mb-4",children:[u.jsx("p",{className:"text-xs font-bold text-slate/50 uppercase tracking-widest",children:e}),u.jsx("div",{className:`w-9 h-9 rounded-xl ${i} flex items-center justify-center`,children:u.jsx(n,{className:`w-4 h-4 ${r}`})})]}),u.jsx("p",{className:`font-heading font-extrabold text-midnight ${a?"text-lg leading-snug":"text-4xl"}`,children:t})]})}function ss({title:e,subtitle:t,children:n}){return u.jsxs(_e.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-2xl border border-slate/10 p-6 shadow-sm",children:[u.jsx("h2",{className:"text-sm font-heading font-bold text-midnight mb-1",children:e}),u.jsx("p",{className:"text-xs text-slate/50 mb-6",children:t}),n]})}function Pi({text:e}){return u.jsx("div",{className:"h-56 flex items-center justify-center text-slate/30 text-sm",children:e})}const eA={fontSize:12,borderRadius:8,border:"1px solid #e2e8f0"};function HRe(){var Nn,zo;const[e,t]=_.useState("pages"),[n,r]=_.useState(""),[i,a]=_.useState(null),[o,s]=_.useState(null),[l,c]=_.useState(null),[d,A]=_.useState([]),[h,m]=_.useState([]),[b,g]=_.useState([]),[y,v]=_.useState([]),[x,B]=_.useState([]),[C,E]=_.useState([]),[T,j]=_.useState([]),[O,L]=_.useState("30d"),[z,F]=_.useState(xa(new Date(Date.now()-30*864e5))),[M,V]=_.useState(xa(new Date)),[q,W]=_.useState(!0),[ee,ne]=_.useState(new Date),K=async()=>{W(!0);const ve={created_date:{$gte:oe.toISOString(),$lte:$.toISOString()}},Ve=5e3;try{const[vt,Tt,jr,Or,kr,Ui,Hn]=await Promise.all([mr.entities.SiteEvent.filter({event_type:"page_view",...ve},"-created_date",Ve).catch(()=>[]),mr.entities.SiteEvent.filter({event_type:"click",...ve},"-created_date",Ve).catch(()=>[]),mr.entities.SiteEvent.filter({event_type:"engagement",...ve},"-created_date",Ve).catch(()=>[]),mr.entities.CtaEvent.filter({event_name:"contact_cta_clicked",...ve},"-created_date",Ve).catch(()=>[]),mr.entities.DiagnosticLead.filter({...ve},"-created_date",Ve).catch(()=>[]),mr.entities.SiteEvent.filter({event_type:"form_start",...ve},"-created_date",Ve).catch(()=>[]),mr.entities.SiteEvent.filter({event_type:"form_complete",...ve},"-created_date",Ve).catch(()=>[])]);A(vt||[]),m(Tt||[]),g(jr||[]),v(Or||[]),B(kr||[]),E(Ui||[]),j(Hn||[])}catch{A([]),m([]),g([]),v([]),B([]),E([]),j([])}W(!1),ne(new Date)},{startDate:oe,endDate:$}=_.useMemo(()=>{if(O==="custom"){const Ve=z?new Date(`${z}T00:00:00`):new Date(0),vt=M?new Date(`${M}T23:59:59`):new Date;return{startDate:Ve,endDate:vt}}const ve=new Date;return O==="7d"?ve.setDate(ve.getDate()-7):O==="30d"?ve.setDate(ve.getDate()-30):O==="90d"?ve.setDate(ve.getDate()-90):O==="1y"&&ve.setFullYear(ve.getFullYear()-1),{startDate:ve,endDate:new Date(Date.now()+864e5)}},[O,z,M]);_.useEffect(()=>{K()},[oe,$]),_.useEffect(()=>{const ve=setInterval(K,432e5);return()=>clearInterval(ve)},[]);const X=ve=>{if(!ve.created_date)return!1;const Ve=new Date(ve.created_date);return Ve>=oe&&Ve<=$},Q=_.useMemo(()=>d.filter(X),[d,oe,$]),R=_.useMemo(()=>h.filter(X),[h,oe,$]),re=_.useMemo(()=>b.filter(X),[b,oe,$]),ce=_.useMemo(()=>y.filter(X),[y,oe,$]),le=_.useMemo(()=>x.filter(X),[x,oe,$]),he=_.useMemo(()=>C.filter(X),[C,oe,$]),ye=_.useMemo(()=>T.filter(X),[T,oe,$]),Ae=new Date,be=_.useMemo(()=>
1412RRe(O,z,M),[O,z,M]),Ee=O==="custom"?`${z} → ${M}`:O==="1y"?"year":O==="90d"?"90 days":O==="30d"?"30 days":"7 days",ge=Q.reduce((ve,Ve)=>{const vt=Ve.page_name||Lf(Ve.page_url);return ve[vt]=(ve[vt]||0)+1,ve},{}),Ue=Object.entries(ge).map(([ve,Ve])=>({name:ve,count:Ve})).sort((ve,Ve)=>Ve.count-ve.count);Q.reduce((ve,Ve)=>{const vt=Ve.created_date?xa(Ve.created_date):null;return vt&&(ve[vt]=(ve[vt]||0)+1),ve},{});const Ye=be.map(ve=>({day:ve.label,count:Q.filter(Ve=>{const vt=Ve.created_date?xa(Ve.created_date):null;return vt&&vt>=ve.start&&vt<=ve.end}).length})),ae=R.reduce((ve,Ve)=>{const vt=(Ve.element_text||"(no label)").slice(0,50);return ve[vt]||(ve[vt]={count:0,type:Ve.element_type||"button"}),ve[vt].count++,ve},{}),Le=Object.entries(ae).map(([ve,{count:Ve,type:vt}])=>({text:ve,count:Ve,type:vt})).sort((ve,Ve)=>Ve.count-ve.count).slice(0,12),st=R.reduce((ve,Ve)=>{const vt=Ve.element_type||"button";return ve[vt]=(ve[vt]||0)+1,ve},{}),ut=Object.entries(st).map(([ve,Ve])=>({type:ve,count:Ve})).sort((ve,Ve)=>Ve.count-ve.count),He=re.reduce((ve,Ve)=>{const vt=Ve.page_name||Lf(Ve.page_url);return ve[vt]||(ve[vt]={times:[],scrolls:[]}),Ve.time_on_page!=null&&ve[vt].times.push(Ve.time_on_page),Ve.scroll_depth!=null&&ve[vt].scrolls.push(Ve.scroll_depth),ve},{}),ht=Object.entries(He).map(([ve,{times:Ve,scrolls:vt}])=>({name:ve,avgTime:Ve.length?Math.round(Ve.reduce((Tt,jr)=>Tt+jr,0)/Ve.length):0,avgScroll:vt.length?Math.round(vt.reduce((Tt,jr)=>Tt+jr,0)/vt.length):0,samples:Ve.length})).filter(ve=>ve.samples>0).sort((ve,Ve)=>Ve.avgTime-ve.avgTime),it={};Q.forEach(ve=>{const Ve=ve.session_id;Ve&&(it[Ve]||(it[Ve]=[]),it[Ve].push(ve))}),Object.values(it).forEach(ve=>ve.sort((Ve,vt)=>new Date(Ve.created_date)-new Date(vt.created_date)));const pt=Object.entries(it).sort((ve,Ve)=>{var vt,Tt;return new Date(((vt=Ve[1][0])==null?void 0:vt.created_date)||0)-new Date(((Tt=ve[1][0])==null?void 0:Tt.created_date)||0)}).slice(0,20),Bt=[...new Set(R.map(ve=>ve.page_name||Lf(ve.page_url)))],gn=n||Bt[0]||"",zt=R.filter(ve=>(ve.page_name||Lf(ve.page_url))===gn),Ie=re.filter(ve=>(ve.page_name||Lf(ve.page_url))===gn),ze=10,at=20,Ze=Array.from({length:at},()=>Array(ze).fill(0));zt.forEach(ve=>{if(ve.click_x==null||ve.click_y==null)return;const Ve=Math.min(ze-1,Math.floor(ve.click_x/100*ze)),vt=Math.min(at-1,Math.floor(ve.click_y/100*at));Ze[vt][Ve]++});const At=Math.max(...Ze.flat(),1),ft=[{label:"Top (above fold)",count:zt.filter(ve=>ve.click_y!=null&&ve.click_y<25).length},{label:"Upper Mid",count:zt.filter(ve=>ve.click_y!=null&&ve.click_y>=25&&ve.click_y<50).length},{label:"Lower Mid",count:zt.filter(ve=>ve.click_y!=null&&ve.click_y>=50&&ve.click_y<75).length},{label:"Bottom",count:zt.filter(ve=>ve.click_y!=null&&ve.click_y>=75).length}],Ln=Math.max(...ft.map(ve=>ve.count),1),Gt=Q.length,Yt=R.length,Vt=re.map(ve=>ve.time_on_page).filter(ve=>ve!=null),fn=Vt.length?Math.round(Vt.reduce((ve,Ve)=>ve+Ve,0)/Vt.length):0,wt=re.map(ve=>ve.scroll_depth).filter(ve=>ve!=null),yn=wt.length?Math.round(wt.reduce((ve,Ve)=>ve+Ve,0)/wt.length):0,Mt=Object.keys(it).length,en=ce.reduce((ve,Ve)=>{const vt=Ve.source||"unknown";return ve[vt]=(ve[vt]||0)+1,ve},{}),En=Object.entries(en).map(([ve,Ve])=>({source:ve,label:URe(ve),count:Ve})).sort((ve,Ve)=>Ve.count-ve.count),rn=ce.reduce((ve,Ve)=>{const vt=Ve.created_date?xa(Ve.created_date):null;return vt&&(ve[vt]=(ve[vt]||0)+1),ve},{}),$t=be.map(ve=>({day:ve.label,count:ce.filter(Ve=>{const vt=Ve.created_date?xa(Ve.created_date):null;return vt&&vt>=ve.start&&vt<=ve.end}).length}));return u.jsx("div",{className:"min-h-screen bg-cloud pt-28 pb-20",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-6 lg:px-8",children:[u.jsxs("div",{className:"flex items-center justify-between mb-8",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-azure block mb-1",children:"Analytics"}),u.jsx("h1",{className:"text-3xl md:text-4xl font-heading font-extrabold text-midnight",children:"Site Performance"}),u.jsx("p",{className:"text-slate mt-2 text-sm",children:"Page views, click tracking, session journeys and engagement metrics."})]}),u.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-3",children:[u.jsx(zUe,{dateRange:O,setDateRange:L,customStart:z,setCustomStart:F,customEnd:M,setCustomEnd:V}),u.jsxs("button",{onClick:()=>YUe({pageViews:Q,clicks:R,engagements:re,ctaEvents:ce,formStarts:he,formCompletes:ye,label:O==="custom"?`${z}_${M}`:O}),className:"flex items-center gap-2 px-5 py-2.5 rounded-full bg-azure text-white text-sm font-semibold hover:bg-azure/90 transition-colors",children:[u.jsx(Fm,{className:"w-4 h-4"})," Export CSV"]}),u.jsxs("button",{onClick:K,className:"flex items-center gap-2 px-5 py-2.5 rounded-full border border-slate/20 text-slate text-sm font-semibold hover:bg-white transition-colors",children:[u.jsx(rW,{className:`w-4 h-4 ${q?"animate-spin":""}`})," Refresh"]})]})]}),u.jsx("div",{className:"flex gap-1 mb-8 border-b border-slate/10 overflow-x-auto",children:QRe.map(ve=>u.jsx("button",{onClick:()=>t(ve.id),className:`px-4 py-2.5 text-sm font-semibold whitespace-nowrap border-b-2 transition-colors ${e===ve.id?"border-azure text-azure":"border-transparent text-slate/50 hover:text-slate"}`,children:ve.label},ve.id))}),e==="pages"&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-
14125 mb-8",children:[u.jsx(os,{label:"Page Views",value:q?"…":Gt,Ic:bh,color:"text-azure",bg:"bg-azure/8"}),u.jsx(os,{label:"Unique Sessions",value:q?"…":Mt,Ic:FA,color:"text-sky",bg:"bg-sky/8"}),u.jsx(os,{label:"Avg Time on Page",value:q?"…":Ry(fn),Ic:bs,color:"text-green-600",bg:"bg-green-50"}),u.jsx(os,{label:"Avg Scroll Depth",value:q?"…":`${yn}%`,Ic:iW,color:"text-indigo-600",bg:"bg-indigo-50"})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6",children:[u.jsx(ss,{title:"Page Views by Page",subtitle:"Which pages get the most traffic — click a bar for details",children:q?u.jsx(Pi,{text:"Loading…"}):Ue.length===0?u.jsx(Pi,{text:"No page views recorded yet."}):u.jsx(hs,{width:"100%",height:Math.max(220,Ue.length*36),children:u.jsxs(Ll,{data:Ue,layout:"vertical",margin:{left:0,right:16},children:[u.jsx(Ba,{type:"number",tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1}),u.jsx(Gi,{type:"category",dataKey:"name",tick:{fontSize:10,fill:"#6A7280"},width:140,axisLine:!1,tickLine:!1}),u.jsx(di,{contentStyle:eA,formatter:ve=>[ve,"Views"]}),u.jsx(Hr,{dataKey:"count",radius:[0,6,6,0],onClick:ve=>{var Ve;return a((Ve=ve==null?void 0:ve.payload)==null?void 0:Ve.name)},className:"cursor-pointer",children:Ue.map((ve,Ve)=>u.jsx(Zf,{fill:Cc[Ve%Cc.length]},Ve))})]})})}),u.jsx(ss,{title:"Page View Trend",subtitle:`Last ${Ee}`,children:q?u.jsx(Pi,{text:"Loading…"}):u.jsx(hs,{width:"100%",height:260,children:u.jsxs(Ll,{data:Ye,margin:{left:0,right:8},children:[u.jsx(Ba,{dataKey:"day",tick:{fontSize:10,fill:"#6A7280"},axisLine:!1,tickLine:!1}),u.jsx(Gi,{tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1,allowDecimals:!1}),u.jsx(di,{contentStyle:eA,formatter:ve=>[ve,"Views"]}),u.jsx(Hr,{dataKey:"count",fill:"#009BDF",radius:[4,4,0,0]})]})})})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[u.jsx(ss,{title:"Avg Time on Page (Lingering)",subtitle:"Where visitors spend the most time",children:q?u.jsx(Pi,{text:"Loading…"}):ht.length===0?u.jsx(Pi,{text:"No engagement data yet — recorded when visitors leave a page."}):u.jsx(hs,{width:"100%",height:Math.max(220,ht.length*36),children:u.jsxs(Ll,{data:ht,layout:"vertical",margin:{left:0,right:16},children:[u.jsx(Ba,{type:"number",tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1,tickFormatter:Ry}),u.jsx(Gi,{type:"category",dataKey:"name",tick:{fontSize:10,fill:"#6A7280"},width:140,axisLine:!1,tickLine:!1}),u.jsx(di,{contentStyle:eA,formatter:ve=>[Ry(ve),"Avg time"]}),u.jsx(Hr,{dataKey:"avgTime",fill:"#20BCED",radius:[0,6,6,0]})]})})}),u.jsx(ss,{title:"Avg Scroll Depth by Page",subtitle:"How far visitors scroll on each page",children:q?u.jsx(Pi,{text:"Loading…"}):ht.length===0?u.jsx(Pi,{text:"No scroll data yet."}):u.jsx(hs,{width:"100%",height:Math.max(220,ht.length*36),children:u.jsxs(Ll,{data:ht,layout:"vertical",margin:{left:0,right:16},children:[u.jsx(Ba,{type:"number",domain:[0,100],tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1,tickFormatter:ve=>`${ve}%`}),u.jsx(Gi,{type:"category",dataKey:"name",tick:{fontSize:10,fill:"#6A7280"},width:140,axisLine:!1,tickLine:!1}),u.jsx(di,{contentStyle:eA,formatter:ve=>[`${ve}%`,"Scroll depth"]}),u.jsx(Hr,{dataKey:"avgScroll",fill:"#0073A8",radius:[0,6,6,0]})]})})})]}),u.jsx(ORe,{pageViews:Q,diagnosticLeads:le,loading:q,dateRange:O,formStarts:he,trendBuckets:be})]}),e==="content"&&u.jsx(IRe,{pageViews:Q,clicks:R,engagements:re}),e==="clicks"&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5 mb-8",children:[u.jsx(os,{label:"Total Clicks",value:q?"…":Yt,Ic:QT,color:"text-azure",bg:"bg-azure/8"}),u.jsx(os,{label:"Click-to-View Ratio",value:q?"…":Gt?`${Math.round(Yt/Gt*100)}%`:"—",Ic:Mv,color:"text-green-600",bg:"bg-green-50"}),u.jsx(os,{label:"Top Element",value:q?"…":((Nn=Le[0])==null?void 0:Nn.text)||"—",Ic:_n,color:"text-sky",bg:"bg-sky/8",small:!0})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6",children:[u.jsx(ss,{title:"Top Clicked Elements",subtitle:"Most-clicked buttons and links — click a bar for details",children:q?u.jsx(Pi,{text:"Loading…"}):Le.length===0?u.jsx(Pi,{text:"No clicks recorded yet."}):u.jsx(hs,{width:"100%",height:Math.max(220,Le.length*32),children:u.jsxs(Ll,{data:Le,layout:"vertical",margin:{left:0,right:16},children:[u.jsx(Ba,{type:"number",tick:{fontSize:11,fill:"#6A7280"}
1412,axisLine:!1,tickLine:!1}),u.jsx(Gi,{type:"category",dataKey:"text",tick:{fontSize:10,fill:"#6A7280"},width:160,axisLine:!1,tickLine:!1}),u.jsx(di,{contentStyle:eA,formatter:ve=>[ve,"Clicks"]}),u.jsx(Hr,{dataKey:"count",radius:[0,6,6,0],onClick:ve=>{var Ve;return c((Ve=ve==null?void 0:ve.payload)==null?void 0:Ve.text)},className:"cursor-pointer",children:Le.map((ve,Ve)=>u.jsx(Zf,{fill:Cc[Ve%Cc.length]},Ve))})]})})}),u.jsx(ss,{title:"Click Types Breakdown",subtitle:"Primary buttons vs links vs external",children:q?u.jsx(Pi,{text:"Loading…"}):ut.length===0?u.jsx(Pi,{text:"No click data yet."}):u.jsx(hs,{width:"100%",height:260,children:u.jsxs(Ll,{data:ut,margin:{left:0,right:8},children:[u.jsx(Ba,{dataKey:"type",tick:{fontSize:9,fill:"#6A7280"},axisLine:!1,tickLine:!1,interval:0,angle:-15,textAnchor:"end",height:50}),u.jsx(Gi,{tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1,allowDecimals:!1}),u.jsx(di,{contentStyle:eA,formatter:ve=>[ve,"Clicks"]}),u.jsx(Hr,{dataKey:"count",radius:[4,4,0,0],children:ut.map((ve,Ve)=>u.jsx(Zf,{fill:Cc[Ve%Cc.length]},Ve))})]})})})]}),u.jsx(ss,{title:"Recent Click Events",subtitle:"Last 20 clicks across the site",children:q?u.jsx(Pi,{text:"Loading…"}):R.length===0?u.jsx(Pi,{text:"No clicks recorded yet."}):u.jsx("div",{className:"overflow-x-auto",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-slate/8",children:[u.jsx("th",{className:"text-left text-xs font-bold text-slate/40 uppercase tracking-widest pb-3 pr-6",children:"Element"}),u.jsx("th",{className:"text-left text-xs font-bold text-slate/40 uppercase tracking-widest pb-3 pr-6",children:"Type"}),u.jsx("th",{className:"text-left text-xs font-bold text-slate/40 uppercase tracking-widest pb-3 pr-6",children:"Page"}),u.jsx("th",{className:"text-left text-xs font-bold text-slate/40 uppercase tracking-widest pb-3",children:"Time"})]})}),u.jsx("tbody",{children:R.slice(0,20).map((ve,Ve)=>u.jsxs("tr",{className:"border-b border-slate/5 hover:bg-cloud/50 transition-colors",children:[u.jsx("td",{className:"py-3 pr-6 font-medium text-midnight truncate max-w-[200px]",children:ve.element_text||"—"}),u.jsx("td",{className:"py-3 pr-6 text-slate",children:ve.element_type||"—"}),u.jsx("td",{className:"py-3 pr-6 text-slate",children:ve.page_name||Lf(ve.page_url)}),u.jsx("td",{className:"py-3 text-slate/50 text-xs",children:ve.created_date?new Date(ve.created_date).toLocaleString():"—"})]},Ve))})]})})})]}),e==="sessions"&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5 mb-8",children:[u.jsx(os,{label:"Unique Sessions",value:q?"…":Mt,Ic:FA,color:"text-azure",bg:"bg-azure/8"}),u.jsx(os,{label:"Pages per Session",value:q?"…":Mt?(Gt/Mt).toFixed(1):"—",Ic:bh,color:"text-sky",bg:"bg-sky/8"}),u.jsx(os,{label:"Avg Session Duration",value:q?"…":Ry(Mt?Math.round(Vt.reduce((ve,Ve)=>ve+Ve,0)/Mt):0),Ic:bs,color:"text-green-600",bg:"bg-green-50"})]}),u.jsx(ss,{title:"Recent Session Journeys",subtitle:"How visitors flow through the site — click a session for its full timeline",children:q?u.jsx(Pi,{text:"Loading…"}):pt.length===0?u.jsx(Pi,{text:"No sessions recorded yet."}):u.jsx("div",{className:"space-y-4",children:pt.map(([ve,Ve])=>{var jr;const vt=new Date((jr=Ve[0])==null?void 0:jr.created_date),Tt=Ve.map((Or,kr)=>{const Ui=Ve[kr+1],Hn=Ui?Math.round((new Date(Ui.created_date)-new Date(Or.created_date))/1e3):null;return{name:Or.page_name||Lf(Or.page_url),time:Or.created_date,timeSpent:Hn}});return u.jsxs("div",{onClick:()=>s(ve),className:"rounded-xl border border-slate/8 p-4 hover:bg-cloud/30 transition-colors cursor-pointer",children:[u.jsxs("div",{className:"flex items-center justify-between mb-3",children:[u.jsx("span",{className:"text-xs font-mono text-slate/40",children:ve}),u.jsx("span",{className:"text-xs text-slate/50",children:vt.toLocaleString()})]}),u.jsx("div",{className:"flex items-center flex-wrap gap-2",children:Tt.map((Or,kr)=>u.jsxs(me.Fragment,{children:[kr>0&&u.jsx(_n,{className:"w-3 h-3 text-slate/30 rotate-45"}),u.jsxs("div",{className:"flex flex-col",children:[u.jsx("span",{className:"text-xs font-semibold text-midnight bg-azure/8 px-2.5 py-1 rounded-lg",children:Or.name}),Or.timeSpent!=null&&u.jsx("span",{className:"text-[10px] text-slate/40 mt-0.5 text-center",children:Ry(Or.timeSpent)})]})]},kr))})]},ve)})})})]}),e==="heatmap"&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-6",children:[u.jsx("label",{className:"text-sm font-semibold text-slate",children:"Page:"}),u.jsxs("select",{value:gn,onChange:ve=>r(ve.target.value),className:"px-4 py-2 rounded-xl border border-slate/20 text-sm font-medium text-midnight bg-white cursor-pointer",children:[Bt.length===0&&u.jsx("option",{value:"",children:"No data yet"}),Bt.map(ve=>u.jsx("option",{value:ve,children:ve},ve))]}),u.jsxs("span",{className:"text-xs text-slate/40",children:[zt.length," clicks · ",Ie.length," sessions tracked"]})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6",children:[u.jsx("div",{className:"lg:col-span-2",children:u.jsx(ss,{title:"Click Heatmap",subtitle:"Where visitors click — darker cells indicate more clicks",children:zt.filter(ve=>ve.click_x!=null).length===0?u.jsx(Pi,{text:"No click position data for this page yet. Coordinates are captured for new clicks."}):u.jsxs("div",{className:"flex gap-4",children:[u.jsx("div",{className:"flex-1",children:u.jsx("div",{className:"grid gap-px bg-cloud rounded-lg overflow-hidden p-1",style:{gridTemplateColumns:`repeat(${ze}, 1fr)`},children:Ze.flat().map((ve,Ve)=>{const vt=ve/At;return u.jsx("div",{style:{aspectRatio:"1",background:ve>0?`rgba(0,155,223,${.15+vt*.85})`:"rgba(248,248,248,0.6)"},className:"rounded-sm"},Ve)})})}),u.jsxs("div",{className:"flex flex-col justify-end items-center gap-1",children:[u.jsx("span",{className:"text-[10px] text-slate/40 font-bold",children:"More"}),u.jsx("div",{className:"w-3 h-24 rounded-full",style:{background:"linear-gradient(to top, rgba(0,155,223,0.15), rgba(0,155,223,1)
1412)"}}),u.jsx("span",{className:"text-[10px] text-slate/40 font-bold",children:"Less"})]})]})})}),u.jsx(ss,{title:"Click Zones",subtitle:"Clicks by page section",children:zt.length===0?u.jsx(Pi,{text:"No data yet."}):u.jsx("div",{className:"space-y-5",children:ft.map((ve,Ve)=>u.jsxs("div",{children:[u.jsxs("div",{className:"flex justify-between text-xs mb-1.5",children:[u.jsx("span",{className:"font-semibold text-midnight",children:ve.label}),u.jsx("span",{className:"text-slate/50",children:ve.count})]}),u.jsx("div",{className:"h-3 bg-cloud rounded-full overflow-hidden",children:u.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${ve.count/Ln*100}%`,background:Cc[Ve%Cc.length]}})})]},Ve))})})]}),u.jsx(ss,{title:"Scroll Depth Heatmap",subtitle:"How far visitors scroll — darker bands show where more users reach",children:u.jsx(XUe,{engagements:Ie})})]}),e==="cta"&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5 mb-8",children:[u.jsx(os,{label:"Total CTA Clicks",value:q?"…":ce.length,Ic:QT,color:"text-azure",bg:"bg-azure/8"}),u.jsx(os,{label:"Clicks Today",value:q?"…":rn[xa(Ae)]||0,Ic:Mv,color:"text-green-600",bg:"bg-green-50"}),u.jsx(os,{label:"Top Source",value:q?"…":((zo=En[0])==null?void 0:zo.label)||"—",Ic:_n,color:"text-sky",bg:"bg-sky/8",small:!0})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[u.jsx(ss,{title:"Clicks by Source",subtitle:"Which button drove the most contact page visits",children:q?u.jsx(Pi,{text:"Loading…"}):En.length===0?u.jsx(Pi,{text:"No CTA clicks recorded yet."}):u.jsx(hs,{width:"100%",height:220,children:u.jsxs(Ll,{data:En,layout:"vertical",margin:{left:0,right:16},children:[u.jsx(Ba,{type:"number",tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1}),u.jsx(Gi,{type:"category",dataKey:"label",tick:{fontSize:10,fill:"#6A7280"},width:160,axisLine:!1,tickLine:!1}),u.jsx(di,{contentStyle:eA,formatter:ve=>[ve,"Clicks"]}),u.jsx(Hr,{dataKey:"count",radius:[0,6,6,0],children:En.map((ve,Ve)=>u.jsx(Zf,{fill:Cc[Ve%Cc.length]},Ve))})]})})}),u.jsx(ss,{title:"CTA Trend",subtitle:`Contact CTA clicks — last ${Ee}`,children:q?u.jsx(Pi,{text:"Loading…"}):u.jsx(hs,{width:"100%",height:220,children:u.jsxs(Ll,{data:$t,margin:{left:0,right:8},children:[u.jsx(Ba,{dataKey:"day",tick:{fontSize:10,fill:"#6A7280"},axisLine:!1,tickLine:!1}),u.jsx(Gi,{tick:{fontSize:11,fill:"#6A7280"},axisLine:!1,tickLine:!1,allowDecimals:!1}),u.jsx(di,{contentStyle:eA,formatter:ve=>[ve,"Clicks"]}),u.jsx(Hr,{dataKey:"count",fill:"#009BDF",radius:[4,4,0,0]})]})})})]})]}),e==="forms"&&u.jsx(DRe,{formStarts:he,formCompletes:ye,loading:q,dateRange:O,trendBuckets:be}),u.jsx(_N,{open:!!i,onOpenChange:ve=>!ve&&a(null),children:u.jsxs(Dx,{className:"max-w-3xl max-h-[85vh] overflow-y-auto",children:[u.jsx(Mx,{children:u.jsx(Ux,{children:i})}),i&&u.jsx(eRe,{page:i,pageViews:Q,clicks:R,engagements:re})]})}),u.jsx(_N,{open:!!o,onOpenChange:ve=>!ve&&s(null),children:u.jsxs(Dx,{className:"max-w-3xl max-h-[85vh] overflow-y-auto",children:[u.jsx(Mx,{children:u.jsx(Ux,{className:"font-mono text-sm",children:o})}),o&&u.jsx(nRe,{sessionId:o,pageViews:Q,clicks:R})]})}),u.jsx(_N,{open:!!l,onOpenChange:ve=>!ve&&c(null),children:u.jsxs(Dx,{className:"max-w-3xl max-h-[85vh] overflow-y-auto",children:[u.jsx(Mx,{children:u.jsx(Ux,{className:"truncate",children:l})}),l&&u.jsx(iRe,{elementText:l,clicks:R})]})}),u.jsxs("p",{className:"text-xs text-slate/30 text-center mt-8",children:["Last refreshed: ",ee.toLocaleTimeString()," · Tracking respects cookie consent — visitors who decline analytics are not recorded."]})]})})}const $Re="https://media.base44.com/videos/public/69e5fadb62865073c43a0307/5a1e4a9f3_SOUNDBITE2.mp4";function qRe(){return u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 items-start mt-12",children:[u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"lg:col-span-7 rounded-2xl overflow-hidden border border-slate/12 bg-obsidian",children:u.jsx("video",{src:$Re,controls:!0,className:"w-full aspect-video bg-obsidian"})}),u.jsxs(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.12},className:"lg:col-span-5",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.16em] text-azure mb-3",children:[u.jsx(u3,{className:"w-3.5 h-3.5"})," Broadcast · The Full Circle with Bridget Masinga"]}),u.jsx("h3",{className:"text-xl md:text-2xl font-heading font-bold text-midnight leading-snug max-w-[28ch]",children:"The gap between the published digital transformation strategy and the operating reality inside the organisation."}),u.jsx("p",{className:"mt-3 text-sm text-slate leading-[1.7] max-w-[60ch]",children:"The segment covers private and public sector organisations alike. Masande develops an extended domestic metaphor: the high wall and gate of a house tell a passer by what to expect, and the view once you go through the gate reveals the lived reality of the property, unkempt grass and water running down the paveway. He applies it to organisations that invested in technology on the stated basis of doing the work better and satisfying customers, while the internal position is a set of tools that were bought, are underused, and are not communicating with one another."})]})]})}const x$=[{id:"uTOmNnlEmZQ",title:"Masande Dyasi on Building a Tech Company for Africa",description:"Our Managing Director discusses what it takes to build a technology services company that truly understands the African operating environment."},{id:"s53KW4qKe0I",title:"Leadership in South African IT — Masande Dyasi",description:"A candid conversation about leading through South Africa's unique technology challenges, from load-shedding to regulatory complexity."},{id:"yC89LfBavYY",title:"The Future of Managed Services in Africa",description:"Masande shares his perspective on where managed IT services are headed and how Sourceworx is positioning for the next decade."}],zRe=[{outlet:"Leadership Magazine",title:"From Strategic Alignment to African Innovation",description:"Masande Dyasi on the next major differentiator for Africa: not access to technology, but how leaders choose to apply it. Sourceworx MD discusses building solutions that are commercially viable and socially valuable.",url:"https://www.leadershiponline.co.za/from-strategic-alignment-to-african-innovation/",date:"2026",image:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/a3af423c7_1775635205506.jpg",quote:"Complexity does not guarantee value. Clarity does."},{outlet:"ITWeb",title:"Women in IT: Empower yourself, says Sourceworx GM",de
1412scription:"Naledi Kgofelo shares her journey and advice for women building careers in the South African technology sector.",url:"https://www.itweb.co.za/article/women-in-it-empower-yourself-says-sourceworx-gm/VgZeyvJlwwNMdjX9",date:"2025"}];function VRe(){const[e,t]=_.useState(x$[0].id);return u.jsxs(u.Fragment,{children:[u.jsxs("section",{className:"relative pt-32 pb-20 lg:pt-44 lg:pb-28 overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:Rt.mediaCover,alt:"",className:"w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-midnight/80"})]}),u.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-azure/10 rounded-full blur-3xl -translate-y-1/2 translate-x-1/3 pointer-events-none"}),u.jsx("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8 text-white",children:u.jsx(dr,{label:"Media & News",title:"Sourceworx in the media.",description:"Interviews, articles and conversations that tell our story — from leading publications and platforms across the technology landscape.",dark:!0})})]}),u.jsx("section",{className:"py-20 lg:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Interviews",title:"Conversations with our MD.",description:"Masande Dyasi shares his perspective on technology, leadership and building for Africa.",align:"center"}),u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-12 rounded-2xl overflow-hidden shadow-xl bg-midnight aspect-video",children:u.jsx("iframe",{src:`https://www.youtube-nocookie.com/embed/${e}?rel=0&modestbranding=1`,title:"YouTube interview",className:"w-full h-full",allowFullScreen:!0,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"})}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 mt-6",children:x$.map((n,r)=>u.jsx(_e.button,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},onClick:()=>t(n.id),className:`text-left p-3 rounded-xl border transition-all duration-300 ${e===n.id?"border-azure bg-azure/5 shadow-md":"border-slate/15 bg-white hover:border-azure/30 hover:shadow-sm"}`,children:u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsxs("div",{className:"relative w-28 h-16 rounded-lg overflow-hidden flex-shrink-0",children:[u.jsx("img",{src:`https://img.youtube.com/vi/${n.id}/mqdefault.jpg`,alt:"",className:"w-full h-full object-cover"}),u.jsx("div",{className:`absolute inset-0 flex items-center justify-center ${e===n.id?"bg-azure/50":"bg-midnight/40 group-hover:bg-midnight/30"} transition-colors`,children:u.jsx(Jx,{className:`w-5 h-5 ml-0.5 ${e===n.id,"text-white"}`})})]}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("h3",{className:`font-heading font-bold text-sm leading-snug ${e===n.id?"text-azure":"text-midnight"}`,children:n.title}),u.jsx("p",{className:"text-xs text-slate/60 mt-1 line-clamp-2",children:n.description})]})]})},n.id))})]})}),u.jsx("section",{className:"py-20 lg:py-28 bg-cloud border-y border-slate/8",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Broadcast",title:"The Full Circle with Bridget Masinga.",description:"Masande Dyasi on strategy against operating reality, and on repairing what has already been bought.",align:"center"}),u.jsx(qRe,{})]})}),u.jsx("section",{className:"py-20 lg:py-28 bg-cloud",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"In the news",title:"What the press is saying.",align:"center"}),u.jsx("div",{className:"grid grid-cols-1 gap-5 mt-12 max-w-3xl mx-auto",children:zRe.map((n,r)=>n.image?u.jsx(_e.a,{href:n.url,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"group rounded-2xl bg-white border border-slate/10 hover:border-azure/30 hover:shadow-xl transition-all duration-300 overflow-hidden",children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2",children:[u.jsx("div",{className:"relative h-56 md:h-full overflow-hidden",children:u.jsx("img",{src:n.image,alt:n.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),u.jsxs("div",{className:"p-7 flex flex-col justify-between",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx("span",{className:"text-xs font-bold tracking-wider up
1412percase text-azure",children:n.outlet}),u.jsx("span",{className:"text-xs text-slate/50",children:n.date})]}),u.jsx("h3",{className:"font-heading font-bold text-midnight group-hover:text-azure transition-colors text-lg leading-snug",children:n.title}),n.quote&&u.jsxs("p",{className:"mt-3 text-sm italic text-slate/70 border-l-2 border-azure/30 pl-3",children:['"',n.quote,'"']}),u.jsx("p",{className:"text-sm text-slate mt-3 leading-relaxed",children:n.description})]}),u.jsxs("span",{className:"inline-flex items-center gap-1.5 mt-5 text-sm font-bold text-azure group-hover:gap-2.5 transition-all",children:["Read article ",u.jsx(Xx,{className:"w-3.5 h-3.5"})]})]})]})},r):u.jsxs(_e.a,{href:n.url,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"group flex items-start gap-5 p-6 rounded-2xl bg-white border border-slate/10 hover:border-azure/30 hover:shadow-lg transition-all duration-300",children:[u.jsx("div",{className:"w-12 h-12 rounded-xl bg-azure/10 flex items-center justify-center flex-shrink-0",children:u.jsx(ZV,{className:"w-5 h-5 text-azure"})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("span",{className:"text-xs font-bold tracking-wider uppercase text-azure",children:n.outlet}),u.jsx("span",{className:"text-xs text-slate/50",children:n.date})]}),u.jsx("h3",{className:"font-heading font-bold text-midnight group-hover:text-azure transition-colors",children:n.title}),u.jsx("p",{className:"text-sm text-slate mt-1.5",children:n.description})]}),u.jsx(Xx,{className:"w-4 h-4 text-slate/30 group-hover:text-azure transition-colors flex-shrink-0 mt-1"})]},r))})]})}),u.jsx("section",{className:"py-20 lg:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx(dr,{label:"Connect",title:"Follow us on social.",description:"Stay up to date with our latest news, insights and behind-the-scenes at Sourceworx.",align:"center"}),u.jsx("div",{className:"flex justify-center mt-12",children:u.jsxs(_e.a,{href:"https://www.linkedin.com/company/sourceworx-sa",target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"group flex flex-col items-center text-center p-8 rounded-2xl bg-[#0A66C2]/5 border border-[#0A66C2]/10 hover:bg-[#0A66C2]/10 hover:border-[#0A66C2]/20 transition-all duration-300 w-full max-w-sm",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-[#0A66C2] flex items-center justify-center mb-5 group-hover:scale-110 transition-transform duration-300",children:u.jsx(l3,{className:"w-8 h-8 text-white"})}),u.jsx("h3",{className:"font-heading font-bold text-midnight text-lg mb-2",children:"LinkedIn"}),u.jsx("p",{className:"text-sm text-slate leading-relaxed mb-4",children:"Follow our company page for the latest updates, job openings and sector commentary."}),u.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm font-bold text-[#0A66C2] group-hover:gap-2 transition-all",children:["Visit LinkedIn ",u.jsx(_n,{className:"w-3.5 h-3.5"})]})]})})]})}),u.jsx(ec,{heading:"Want to feature Sourceworx?",sub:"For media enquiries, interview requests or speaking engagements — reach our communications team directly.",cta:"Email our media team",href:"mailto:communications@sourceworx",trackSource:"media_page"})]})}function cB({label:e,headline:t,sub:n,ctaText:r="Get an Assessment",ctaHref:i="#assessment",secondaryCta:a="See how it works",secondaryHref:o="#approach",img:s}){return u.jsxs("section",{className:"relative min-h-screen flex items-center overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:s,alt:"",className:"w-full h-full object-cover",loading:"eager"}),u.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(rgba(13,27,42,0.72), rgba(13,27,42,0.88))"}}),u.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(135deg, rgba(0,180,216,0.08) 0%, transparent 60%)"}})]}),u.jsx("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8 pt-28 pb-20 w-full",children:u.jsxs(_e.div,{initial:{opacity:0,y:32}
1412,animate:{opacity:1,y:0},transition:{duration:.7},className:"max-w-2xl",children:[u.jsx("span",{className:"inline-block text-xs font-bold tracking-widest uppercase text-[#00B4D8] border-l-2 border-[#00B4D8] pl-3 mb-6",children:e}),u.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-heading font-extrabold text-white leading-tight tracking-tight mb-6",children:t}),u.jsx("p",{className:"text-lg md:text-xl text-white/75 leading-relaxed mb-10 max-w-xl",children:n}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[u.jsx("a",{href:i,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-[#00B4D8] hover:bg-[#009BC0] text-white font-bold text-sm tracking-wide rounded-full transition-all duration-200 hover:scale-[1.02] w-full sm:w-auto min-w-[200px] shadow-lg shadow-[#00B4D8]/30",children:r}),u.jsx("a",{href:o,className:"inline-flex items-center justify-center gap-2 px-8 py-4 border border-white/40 hover:border-white text-white font-semibold text-sm rounded-full transition-all duration-200 w-full sm:w-auto",children:a})]})]})}),u.jsx("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 text-white/50 animate-bounce",children:u.jsx(K2,{className:"w-6 h-6"})})]})}const S$=[{icon:Mo,text:"ISO 27001"},{icon:Mo,text:"ISO 9001"},{icon:Mo,text:"ISO 20000"},{icon:Om,text:"Level 1 B-BBEE"},{icon:wh,text:"17 Years SA"},{icon:FA,text:"70+ Specialists"},{icon:Qc,text:"Cisco Partner"},{icon:Qc,text:"Fortinet Partner"},{icon:Qc,text:"Microsoft Partner"}];function uB(){return u.jsx("div",{className:"bg-[#F4F6F8] border-y border-slate/10 py-4 overflow-hidden",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsx("div",{className:"flex flex-nowrap overflow-x-auto gap-0 scrollbar-hide md:flex-wrap md:justify-center md:gap-0",children:S$.map((e,t)=>{const n=e.icon;return u.jsxs(me.Fragment,{children:[u.jsxs("div",{className:"flex items-center gap-2 px-4 py-1 flex-shrink-0",children:[u.jsx(n,{className:"w-4 h-4 text-slate/50"}),u.jsx("span",{className:"text-xs font-semibold text-midnight/70 whitespace-nowrap",children:e.text})]}),t<S$.length-1&&u.jsx("span",{className:"text-slate/25 self-center hidden md:block",children:"|"})]},e.text)})})})})}function dB({headline:e,points:t}){return u.jsx("section",{className:"py-20 lg:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-[#00B4D8] mb-4 block",children:"The Challenge"}),u.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-heading font-extrabold text-midnight mb-12 max-w-2xl leading-tight",children:e}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:t.map((n,r)=>{const i=n.icon;return u.jsxs(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},className:"bg-white border border-slate/10 rounded-lg p-6 shadow-sm border-t-4 border-t-[#00B4D8] flex flex-col gap-3",children:[u.jsx("div",{className:"w-10 h-10 flex items-center justify-center rounded-lg bg-[#00B4D8]/10",children:u.jsx(i,{className:"w-5 h-5 text-[#00B4D8]"})}),u.jsx("h3",{className:"font-heading font-bold text-midnight text-base",children:n.title}),u.jsx("p",{className:"text-sm text-slate leading-relaxed",children:n.desc})]},r)})})]})})}const B$=[{num:"01",title:"Discover",desc:"We map your operations, pain points and priorities before making a single recommendation."},{num:"02",title:"Design",desc:"We architect a solution fitted to your world, not an off-the-shelf template."},{num:"03",title:"Deliver & Manage",desc:"We deploy, monitor and evolve with you. 24/7, under a formal SLA."}];function AB(){return u.jsx("section",{id:"approach",className:"py-20 lg:py-28",style:{background:"#0D1B2A"},children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-[#00B4D8] mb-4 block",children:"The Sourceworx Approach"}),u.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-end lg:justify-between gap-8 mb-14",children:[u.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-heading font-extrabold text-white leading-tight max-w-xl",children:["We listen to your rhythm first.",u.jsx("br",{}),"Then we build."]}),u.jsx("p",{className:"text-white/60 text-base leading-relaxed max-w-md",children:"Sourceworx maps friction points and builds solutions around how y
1412our organisation actually works. Not around what a product sales sheet says is possible."})]}),u.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-0",children:B$.map((e,t)=>u.jsxs(_e.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.15},className:"relative flex flex-col gap-4 p-8 border border-white/8 rounded-lg lg:rounded-none lg:first:rounded-l-lg lg:last:rounded-r-lg",children:[t<B$.length-1&&u.jsx("div",{className:"hidden lg:block absolute right-0 top-1/2 w-6 h-px bg-[#00B4D8]/40 translate-x-full z-10"}),u.jsx("div",{className:"w-10 h-10 rounded-full bg-[#00B4D8] flex items-center justify-center text-white font-bold text-sm flex-shrink-0",children:e.num}),u.jsx("h3",{className:"font-heading font-extrabold text-white text-lg",children:e.title}),u.jsx("p",{className:"text-white/60 text-sm leading-relaxed",children:e.desc})]},t))})]})})}function fB({label:e,headline:t,features:n}){return u.jsx("section",{className:"py-20 lg:py-28 bg-[#F4F6F8]",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-[#00B4D8] mb-4 block",children:"What We Deliver"}),u.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-heading font-extrabold text-midnight mb-12 leading-tight",children:t}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:n.map((r,i)=>{const a=r.icon;return u.jsxs(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.08},className:"bg-white border border-[#DDE3EA] rounded-lg p-8 flex gap-5 items-start",children:[u.jsx("div",{className:"w-12 h-12 rounded-xl bg-[#00B4D8]/10 flex items-center justify-center flex-shrink-0",children:u.jsx(a,{className:"w-6 h-6 text-[#00B4D8]"})}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-heading font-extrabold text-midnight text-base mb-2",children:r.title}),u.jsx("p",{className:"text-sm text-slate leading-relaxed",children:r.desc})]})]},i)})})]})})}const C$=["Financial Services","Education","Industry"];function hB({cases:e,img:t}){const[n,r]=_.useState(0),[i,a]=_.useState(!1),o=e[n];return u.jsxs("section",{className:"relative py-20 lg:py-28 overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:t,alt:"",className:"w-full h-full object-cover",loading:"lazy"}),u.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(rgba(13,27,42,0.88), rgba(13,27,42,0.93))"}})]}),u.jsxs("div",{className:"relative max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-[#00B4D8] mb-6 block",children:"Sector Use Cases"}),u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-white mb-10",children:"Built for your sector."}),u.jsx("div",{className:"hidden md:flex gap-1 mb-8 border-b border-white/10",children:C$.map((s,l)=>u.jsx("button",{onClick:()=>r(l),className:`px-5 py-3 text-sm font-semibold transition-all border-b-2 -mb-px ${n===l?"border-[#00B4D8] text-[#00B4D8]":"border-transparent text-white/50 hover:text-white/80"}`,children:s},s))}),u.jsx("div",{className:"md:hidden mb-6",children:u.jsx("select",{value:n,onChange:s=>r(Number(s.target.value)),className:"w-full bg-white/10 border border-white/20 text-white rounded px-4 py-3 text-sm",children:C$.map((s,l)=>u.jsx("option",{value:l,className:"text-midnight",children:s},s))})}),u.jsx(sl,{mode:"wait",children:u.jsxs(_e.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.25},className:"grid grid-cols-1 lg:grid-cols-2 gap-10 items-start",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-heading font-extrabold text-white mb-4 leading-snug",children:o.headline}),u.jsx("p",{className:"text-white/65 leading-relaxed text-base mb-6",children:o.scenario}),o.stats&&u.jsx("div",{className:"flex gap-8 flex-wrap",children:o.stats.map((s,l)=>u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-heading font-extrabold text-[#00B4D8]",children:s.value}),u.jsx("div",{className:"text-xs text-white/50 mt-0.5",children:s.label})]},l))})]}),u.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-xl p-6",children:[u.jsx("p",{className:"text-xs font-bold text-[#00B4D8] uppercase tracking-widest mb-3",children:"Key services for this sector"}),u.jsx("ul",{className:"space-y-2",children:o.services.map((s,l)=>u.jsxs("li",{className:"flex items-start gap-2 text-sm text-white/70",children:[u.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#00B4D8] mt-1.5 flex-shrink-0"}),s]},l))})]})]},n)})]})]})}const WRe={icon:X2,headline:"WSP/ATR deadline passed — is your next B-BBEE cycle at risk?",body:"Missing the SETA submission can cost you up to 20 B-BBEE points and drop your rating by 2 levels. Start planning for the next cycle now.",cta:"Speak to a Specialist",ctaHref:"#assessment"};function pB(){const{icon:e,headline:t,body:n,cta:r,ctaHref:i}=WRe;return u.jsx("section",{className:"py-14 bg-[#00B4D8]",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-6 md:gap-10",children:[u.jsx("div",{className:"w-12 h-12 rounded-full bg-white/20 flex items-center justify-center flex-shrink-0",children:u.jsx(e,{className:"w-6 h-6 text-white"})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("h3",{className:"text-lg font-heading font-extrabold text-white leading-tight mb-1",children:t}),u.jsx("p",{className:"text-white/80 text-sm leading-relaxed",children:n})]}),u.jsx("a",{href:i,className:"flex-shrink-0 inline-flex items-center justify-center px-7 py-3.5 bg-white text-[#00B4D8] font-bold text-sm rounded-full hover:bg-white/90 transition-colors whitespace-nowrap shadow-md",children:r})]})})})}const KRe=[{icon:bs,title:"17 Years SA Experience",desc:"Not a global firm learning your market. We grew up here, built for South African conditions."}
1412,{icon:Om,title:"Level 1 B-BBEE",desc:"Strengthens your procurement position. Fully verified and annually maintained."},{icon:Mo,title:"ISO 27001 | 9001 | 20000",desc:"Three certifications covering security, quality and service delivery management."},{icon:FA,title:"70+ Technical Specialists",desc:"In-house, not subcontracted. National field coverage across all nine provinces."},{icon:u3,title:"24/7 NOC/SOC",desc:"Monitoring, detection and response around the clock, every day of the year."},{icon:sse,title:"Performance Partner Model",desc:"We sit alongside your team. Not a drop-and-run vendor. Accountable for outcomes."}];function mB(){return u.jsx("section",{className:"py-20 lg:py-28 bg-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[u.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-heading font-extrabold text-midnight mb-12 max-w-2xl leading-tight",children:"Why South African organisations choose Sourceworx."}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:KRe.map((e,t)=>{const n=e.icon;return u.jsxs(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.07},className:"flex gap-4 items-start",children:[u.jsx("div",{className:"w-10 h-10 rounded-lg bg-[#00B4D8]/10 flex items-center justify-center flex-shrink-0",children:u.jsx(n,{className:"w-5 h-5 text-[#00B4D8]"})}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-heading font-bold text-midnight text-sm mb-1",children:e.title}),u.jsx("p",{className:"text-xs text-slate leading-relaxed",children:e.desc})]})]},t)})})]})})}function gB({faqs:e}){const[t,n]=_.useState(0);return u.jsx("section",{className:"py-20 lg:py-28 bg-[#F4F6F8]",children:u.jsxs("div",{className:"max-w-4xl mx-auto px-6 lg:px-8",children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-[#00B4D8] mb-4 block",children:"Frequently Asked Questions"}),u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-midnight mb-10",children:"Common questions, direct answers."}),u.jsx("div",{className:"space-y-3",children:e.map((r,i)=>u.jsxs("div",{className:"bg-white border border-slate/10 rounded-lg overflow-hidden",children:[u.jsxs("button",{onClick:()=>n(t===i?-1:i),className:"w-full flex items-center justify-between px-6 py-5 text-left group",children:[u.jsx("span",{className:"font-heading font-bold text-midnight text-base pr-4",children:r.q}),t===i?u.jsx(YV,{className:"w-5 h-5 text-[#00B4D8] flex-shrink-0"}):u.jsx(eW,{className:"w-5 h-5 text-[#00B4D8] flex-shrink-0"})]}),u.jsx(sl,{initial:!1,children:t===i&&u.jsx(_e.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},children:u.jsx("div",{className:"px-6 pb-5 text-slate text-sm leading-relaxed border-t border-slate/8 pt-4",children:r.a})})})]},i))})]})})}const GRe=["Financial Services","Higher Education / TVET","Mining","Manufacturing / Logistics","Government / Public Sector","Other"],YRe=["1–50 employees","51–200 employees","201–500 employees","501–2 000 employees","2 000+ employees"],XRe=["Immediate (within 30 days)","1–3 months","3–6 months","Planning / budgeting only"],JRe=["Phone call","Video call","Email","In-person meeting"];function yB({serviceLabel:e,serviceQuestions:t}){const[n,r]=_.useState(0),[i,a]=_.useState(!1),[o,s]=_.useState({company:"",industry:"",size:"",province:"",challenges:[],itEnv:"",serviceAnswers:{},decisionRole:"",timeline:"",firstName:"",lastName:"",email:"",phone:"",company:"",channel:"",popia:!1,marketing:!1}),l=(b,g)=>s(y=>({...y,[b]:g})),c=b=>s(g=>({...g,challenges:g.challenges.includes(b)?g.challenges.filter(y=>y!==b):[...g.challenges,b]})),d=[{label:"Organisation",hint:"This helps us understand your sector context before we make recommendations."},{label:"IT Environment",hint:"Helps us understand the scale and complexity of what you are managing today."},{label:"Challenges",hint:"Lets us focus the right expertise on your most pressing problems."},{label:e,hint:"Specific questions about your current situation in this area."},{label:"Decision Context",hint:"Helps us match the right specialist and timeline to your engagement."},{label:"Contact Details",hint:"So a Sourceworx specialist can reach you via your preferred channel."}],A=d.length,h=Math.round((n+1)/A*100),m=b=>{b.preventDefault(),mr.functions.invoke("syncToHubspot",{source:"assessment",serviceLabel:e,...o}).catch(()=>{}),a(!0)};return i?u.jsxs(_e.div,{initial:{opacity:0,scale:.95}
1412,animate:{opacity:1,scale:1},className:"text-center py-16 px-6",children:[u.jsx("div",{className:"w-16 h-16 rounded-full bg-[#00B4D8]/15 flex items-center justify-center mx-auto mb-6",children:u.jsx(Qc,{className:"w-8 h-8 text-[#00B4D8]"})}),u.jsx("h3",{className:"text-2xl font-heading font-extrabold text-midnight mb-3",children:"Your assessment request is confirmed."}),u.jsxs("p",{className:"text-slate leading-relaxed max-w-md mx-auto mb-8",children:["Thank you, ",o.firstName||"there",". A Sourceworx specialist will review your responses and contact you within one business day via your preferred channel."]}),u.jsx("p",{className:"text-xs text-slate/50 mb-3",children:"Want to fast-track your assessment?"}),u.jsx("a",{href:"https://outlook.office.com/book/[email protected]/?ismsaljsauthenabled",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-[#00B4D8] text-white font-bold text-sm rounded-full hover:bg-[#009BC0] transition-colors",children:"Book a 30-minute call"})]}):u.jsxs("div",{className:"bg-white rounded-2xl border border-slate/10 shadow-lg overflow-hidden",children:[u.jsx("div",{className:"h-1.5 bg-slate/10",children:u.jsx(_e.div,{className:"h-full bg-[#00B4D8]",animate:{width:`${h}%`},transition:{duration:.4}})}),u.jsxs("div",{className:"px-6 pt-5 pb-2 flex items-center justify-between border-b border-slate/8",children:[u.jsxs("p",{className:"text-xs font-bold text-[#00B4D8]",children:["Step ",n+1," of ",A]}),u.jsx("p",{className:"text-xs text-slate/50",children:d[n].label})]}),u.jsxs("form",{onSubmit:m,"data-form-name":"Service Assessment",className:"p-6 lg:p-8",children:[u.jsx("p",{className:"text-xs text-slate/60 mb-5 italic",children:d[n].hint}),u.jsx(sl,{mode:"wait",children:u.jsxs(_e.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2},children:[n===0&&u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"First name"}),u.jsx("input",{required:!0,value:o.firstName,onChange:b=>l("firstName",b.target.value),placeholder:"First name",className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8]"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Last name"}),u.jsx("input",{required:!0,value:o.lastName,onChange:b=>l("lastName",b.target.value),placeholder:"Last name",className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8]"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Work email"}),u.jsx("input",{required:!0,type:"email",value:o.email,onChange:b=>l("email",b.target.value),placeholder:"[email protected]",className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8]"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Company name"}),u.jsx("input",{value:o.company,onChange:b=>l("company",b.target.value),placeholder:"Company name",required:!0,className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8]"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Industry sector"}),u.jsx("div",{className:"grid grid-cols-2 gap-2",children:GRe.map(b=>u.jsx("button",{type:"button",onClick:()=>l("industry",b),className:`px-3 py-2.5 text-xs font-semibold rounded-full border text-left transition-colors ${o.industry===b?"bg-[#00B4D8] text-white border-[#00B4D8]":"border-slate/20 text-midnight/70 hover:border-[#00B4D8]/50"}`,children:b},b))})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Organisation size"}),u.jsx("div",{className:"grid grid-cols-2 gap-2",children:YRe.map(b=>u.jsx("button",{type:"button",onClick:()=>l("size",b),className:`px-3 py-2.5 text-xs font-semibold rounded-full border text-left transition-colors ${o.size===b?"bg-[#00B4D8] text-white border-[#00B4D8]":"border-slate/20 text-midnight/70 hover:border-[#00B4D8]/50"}`,children:b},b))})]})]}),n===1&&u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Describe your current IT environment"}),u.jsx("textarea",{value:o.itEnv,onChange:b=>l("itEnv",b.target.value),rows:4,placeholder:"e.g. On-premise servers, Microsoft 365, multiple branch locations, 3 ISPs...",className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8] resize-none"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Province / primary location"}),u.jsx("input",{value:o.province,onChange:b=>l("province",b.target.value),placeholder:"e.g. Gauteng",className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8]"})]})]}),n===2&&u.jsxs("div",{className:"space-y-3",children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-3 block",children:"Select your top challenges (all that apply)"}),["Unplanned downtime is costing us","We lack internal IT expertise","Cybersecurity risks keep us up at night","We are not meeting regulatory / compliance requirements","Our technology is holding back growth","We have no visibility into what is happening on our network","Load-shedding is disrupting operations"].map(b=>u.jsx("button",{type:"button",onClick:()=>c(b),className:`w-full text-left px-4 py-3 text-sm font-medium rounded-full border transition-colors ${o.challenges.includes(b)?"bg-[#00B4D8]/10 border-[#00B4D8] text-midnight":"border-slate/20 text-midnight/70 hover:border-[#00B4D8]/50"}`,children:b},b))]}),n===3&&t&&u.jsx("div",{className:"space-y-4",children:t.map((b,g)=>u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:b.label}),b.type==="select"?u.jsx("div",{className:"grid grid-cols-2 gap-2",children:b.options.map(y=>u.jsx("button",{type:"button",onClick:()=>l("serviceAnswers",{...o.serviceAnswers,[b.key]:y}),className:`px-3 py-2.5 text-xs font-semibold rounded-full border text-left transition-colors ${o.serviceAnswers[b.key]===y?"bg-[#00B4D8] text-white border-[#00B4D8]":"border-slate/20 text-midnight/70 hover:border-[#00B4D8]/50"}`,children:y},y))}):u.jsx("textarea",{rows:3,onChange:y=>l("serviceAnswers",{...o.serviceAnswers,[b.key]:y.target.value}),placeholder:b.placeholder||"",className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8] resize-none"})]},g))}),n===4&&u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Your role in this decision"}),u.jsx("input",{value:o.decisionRole,onChange:b=>l("decisionRole",b.target.value),placeholder:"e.g. CTO, IT Manager, CFO",className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8]"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Decision / implementation timeline"}),u.jsx("div",{className:"grid grid-cols-2 gap-2",children:XRe.map(b=>u.jsx("button",{type:"button",onClick:()=>l("timeline",b),className:`px-3 py-2.5 text-xs font-semibold rounded-full border text-left transition-colors ${o.timeline===b?"bg-[#00B4D8] text-white border-[#00B4D8]":"border-slate/20 text-midnight/70 hover:border-[#00B4D8]/50"}`,children:b},b))})]})]}),n===5&&u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"First name"}),u.jsx("input",{required:!0,value:o.firstName,onChange:b=>l("firstName",b.target.value),placeholder:"First name",className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8]"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Last name"}),u.jsx("input",{required:!0,value:o.lastName,onChange:b=>l("lastName",b.target.value),placeholder:"Last name",className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8]"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Work email"}),u.jsx("input",{required:!0,type:"email",value:o.email,onChange:b=>l("email",b.target.value),placeholder:"[email protected]",className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8]"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Phone"}),u.jsx("input",{value:o.phone,onChange:b=>l("phone",b.target.value),placeholder:"+27",className:"w-full border border-slate/20 rounded px-4 py-3 text-sm focus:outline-none focus:border-[#00B4D8]"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-semibold text-midnight/70 uppercase tracking-wider mb-1.5 block",children:"Preferred contact method"}),u.jsx("div",{className:"grid grid-cols-2 gap-2",children:JRe.map(b=>u.jsx("button",{type:"button",onClick:()=>l("channel",b),className:`px-3 py-2.5 text-xs font-semibold rounded-full border text-left transition-colors ${o.channel===b?"bg-[#00B4D8] text-white border-[#00B4D8]":"border-slate/20 text-midnight/70 hover:border-[#00B4D8]/50"}`,children:b},b))})]}),u.jsxs("div",{className:"space-y-3 pt-2",children:[u.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[u.jsx("input",{type:"checkbox",required:!0,checked:o.popia,onChange:b=>l("popia",b.target.checked),className:"mt-0.5 accent-[#00B4D8]"}),u.jsxs("span",{className:"text-xs text-slate/70 leading-relaxed",children:["I consent to Sourceworx processing my personal information in accordance with POPIA and the ",u.jsx("a",{href:"/privacy",className:"text-[#00B4D8] hover:underline",children:"Privacy Policy"}),". (Required)"]})]}),u.jsxs("label",{className:"flex items-start gap-3 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:o.marketing,onChange:b=>l("marketing",b.target.checked),className:"mt-0.5 accent-[#00B4D8]"}),u.jsx("span",{className:"text-xs text-slate/70",children:"I agree to re
1412ceive relevant marketing communications from Sourceworx. (Optional)"})]})]})]})]},n)}),u.jsxs("div",{className:"flex items-center justify-between mt-8 pt-6 border-t border-slate/8",children:[n>0?u.jsxs("button",{type:"button",onClick:()=>r(b=>b-1),className:"flex items-center gap-2 px-5 py-2.5 border border-slate/20 text-midnight/60 text-sm font-semibold rounded-full hover:border-slate/40 transition-colors",children:[u.jsx(Noe,{className:"w-4 h-4"})," Back"]}):u.jsx("div",{}),n<A-1?u.jsxs("button",{type:"button",onClick:()=>r(b=>b+1),className:"flex items-center gap-2 px-6 py-2.5 bg-[#00B4D8] text-white text-sm font-bold rounded-full hover:bg-[#009BC0] transition-colors shadow-md shadow-[#00B4D8]/20",children:["Next ",u.jsx($V,{className:"w-4 h-4"})]}):u.jsx("button",{type:"submit",className:"flex items-center gap-2 px-6 py-2.5 bg-[#00B4D8] text-white text-sm font-bold rounded-full hover:bg-[#009BC0] transition-colors shadow-md shadow-[#00B4D8]/20",children:"Submit Assessment"})]})]})]})}const ZRe=[{icon:J2,title:"Branch connectivity failures",desc:"One fibre cut takes down a branch. With no proactive monitoring, you find out when the branch manager calls to say nothing works."},{icon:poe,title:"No network-wide visibility",desc:"Multiple carriers, multiple sites, no single view. Identifying the source of degradation takes hours — hours you cannot afford."},{icon:Rl,title:"Load-shedding kills your SLA",desc:"South African grid instability is not an edge case. Without built-in resilience, every blackout is a service outage."}],e8e=[{icon:wh,title:"WAN & SD-WAN Management",desc:"Enterprise SD-WAN with automatic failover, traffic prioritisation and carrier management. We escalate with your ISPs on your behalf so you never have to."},{icon:J2,title:"Campus & Wireless Networks",desc:"High-density wireless designed for peak-load environments — trading floors, exam halls, open-plan offices and industrial operations."},{icon:G0,title:"Branch Network Management",desc:"All sites managed as a single portfolio. Every branch link, every failover, every carrier SLA tracked centrally with full reporting."},{icon:Uh,title:"Network Security Integration",desc:"Zero-trust access policies, Fortinet firewall management, intrusion detection and granular access controls — embedded in the managed service."}],t8e=[{headline:"Regulatory-grade connectivity for financial services.",scenario:"SARB and FSCA require that banks and insurers maintain documented evidence of network resilience. Sourceworx manages multi-site branch connectivity under a formal SLA with uptime reporting suitable for regulatory submissions.",stats:[{value:"R49m",label:"Average SA breach cost linked to network gaps"},{value:"99.9%",label:"SLA uptime commitment"}],services:["Branch WAN with automatic failover","Regulatory uptime reporting","Carrier management and escalation","Fortinet-secured network perimeter"]},{headline:"Campus networks built for exam day peak loads.",scenario:"Universities and TVET colleges face extreme demand spikes during exams. Sourceworx designs high-density wireless that handles simultaneous device connections without degradation — and manages it under a formal SLA year-round.",stats:[{value:"5 000+",label:"Concurrent devices on exam day"},{value:"30 Apr",label:"SETA submission tied to IT reliability"}],services:["High-density exam-hall wireless","Campus-wide network monitoring","Load-shedding resilience design","Student and staff network segmentation"]},{headline:"Remote site connectivity where standard ISPs cannot reach.",scenario:"Mining and industrial operations in remote locations cannot rely on standard fibre. Sourceworx architects hybrid connectivity — microwave, bonded LTE and satellite — and manages it as a single resilient portfolio.",stats:[{value:"R1m+",label:"Per hour in downtime losses at mining sites"},{value:"9",label:"Provinces with Sourceworx field coverage"}],services:["Remote site hybrid connectivity","OT/IT network segmentation","SD-WAN for multi-site industrial operations","Generator and UPS-integrated failover"]}],n8e=[{q:"What does a Network Managed Services SLA actually include?",a:"Our Gold, Silver and Bronze tiers each define response times, monitoring scope, proactive maintenance and escalation paths. Every tier includes a dedicated account contact, monthly reporting and formal incident management."},{q:"Do you manage carrier relationships on our behalf?",a:"Yes. When a carrier fault affects your network, Sourceworx opens and manages the fault ticket, escalates to carrier senior management when SLAs are breached, and keeps your team informed throughout."},{q:"How do you handle load-shedding and power outages?",a:"Load-shedding resilience is built into every network design from day one — not bolted on later. This includes UPS integration, failover link configuration and generator management where relevant."},{q:"Can you take over our existing network from another provider?",a:"Yes. We have a structured transition process that maintains service continuity. Our team maps your existing environment, identifies gaps, and implements a handover plan that minimises disruption."},{q:"What certifications does your network team hold?",a:"Our network engineers hold Cisco, Fortinet and Huawei certifications. Sourceworx is a Fortinet Authorised Partner and Cisco partner, with deep expertise across SD-WAN, campus wireless and security integration."}],r8e=[{key:"sites",label:"How many sites / locations do you manage?",type:"select",options:["1–5 sites","6–20 sites","21–50 sites","50+ sites"]},{key:"carriers",label:"How many ISPs / carriers are you currently on?",type:"select",options:["1 carrier","2–3 carriers","4+ carriers","N
1412ot sure"]},{key:"resilience",label:"Do you have documented failover / resilience for your network?",type:"select",options:["Yes, fully documented","Partial / informal","No","Not sure"]},{key:"testDomain",label:"Please enter the domain you would like to have tested",type:"text",placeholder:"e.g. sourceworx.co.za"}];function i8e(){return u.jsxs(u.Fragment,{children:[u.jsx(cB,{label:"Network Managed Services",headline:"Your branch network should not be your biggest vulnerability.",sub:"Sourceworx manages WAN, SD-WAN, campus and branch connectivity across South Africa under a formal SLA — with 24/7 monitoring and full carrier management.",img:Rt.pexels4,ctaText:"Get a Network Assessment",secondaryCta:"See our approach"}),u.jsx(uB,{}),u.jsx(dB,{headline:"Network failures do not warn you. They just happen.",points:ZRe}),u.jsx(AB,{}),u.jsx(fB,{headline:"End-to-end network management built for South Africa.",features:e8e}),u.jsx(hB,{cases:t8e,img:Rt.noc}),u.jsx(pB,{}),u.jsx(mB,{}),u.jsx(gB,{faqs:n8e}),u.jsx("section",{id:"assessment",className:"py-20 lg:py-28 bg-[#F4F6F8]",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-14 items-start",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-[#00B4D8] mb-4 block",children:"Get Started"}),u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-midnight mb-5 leading-tight",children:"Request your network assessment."}),u.jsx("p",{className:"text-slate leading-relaxed mb-8",children:"A Sourceworx network specialist will review your environment and contact you within one business day with a specific assessment — not a generic brochure."}),u.jsxs("div",{className:"space-y-3 text-sm text-midnight/70",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," No obligation"]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," Response within 1 business day"]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," POPIA compliant — your data is protected"]})]})]}),u.jsx(yB,{serviceLabel:"Network Managed Services",serviceQuestions:r8e})]})})})]})}const a8e=[{icon:X2,title:"You do not know what you cannot see",desc:"1 in 15 African organisations faces a ransomware attempt every week (Interpol 2026). Without 24/7 monitoring, threats dwell undetected for an average of 197 days."},{icon:Uh,title:"POPIA and regulatory exposure",desc:"A breach is no longer just an IT problem. Under POPIA, it is a legal, financial and reputational event with mandatory disclosure requirements and fines up to R10 million."},{icon:bh,title:"Internal capacity cannot keep pace",desc:"Cybersecurity skills are scarce and expensive. Most organisations cannot afford a full-time SOC team, which is exactly what attackers exploit."}
1412],o8e=[{icon:u3,title:"24/7 Microsoft Sentinel SOC",desc:"Our Security Operations Centre monitors your environment around the clock using Microsoft Sentinel SIEM. Threats are detected, investigated and contained — not just logged."},{icon:tse,title:"Vulnerability Assessment & Pen Testing",desc:"Regular VAPT exercises identify exploitable weaknesses before attackers do. Reports are mapped to CVSS severity, with remediation guidance and timelines."},{icon:Mh,title:"POPIA Compliance Consulting",desc:"We help you map personal information flows, implement technical controls and document your POPIA compliance posture — reducing both regulatory and litigation risk."},{icon:Uh,title:"Incident Response",desc:"When an incident occurs, we contain it fast. Our IR process includes isolation, forensic investigation, root cause analysis and a post-incident report for insurance or regulatory purposes."}],s8e=[{headline:"SARB-grade security for South African financial institutions.",scenario:"SARB Directive 1 requires banks to maintain cyber resilience frameworks with documented detection and response capabilities. Sourceworx provides a managed SOC with Microsoft Sentinel aligned to SARB, FSCA and PCI-DSS requirements.",stats:[{value:"R49m",label:"Average breach cost in SA financial services"},{value:"197 days",label:"Average dwell time without SOC monitoring"}],services:["24/7 SOC with Microsoft Sentinel","SARB cyber resilience framework alignment","VAPT and red team exercises","Incident response and forensics"]},{headline:"Protecting student data and institutional systems.",scenario:"Universities and colleges hold sensitive student PII, research data and financial records. A breach triggers mandatory POPIA notification and reputational damage. Sourceworx provides endpoint protection, SOC monitoring and POPIA compliance support.",stats:[{value:"42%",label:"Of SA education institutions reported cyber incidents in 2025"},{value:"30 Apr",label:"SETA data submissions carry PII obligations"}],services:["Endpoint detection and response","POPIA data mapping and compliance","Phishing simulation and staff training","Incident response readiness"]},{headline:"Industrial cybersecurity for OT/IT convergence environments.",scenario:"Mining and manufacturing operations increasingly converge OT and IT networks. A ransomware attack on an operational technology environment can halt production for days. Sourceworx delivers OT-aware security monitoring and segmentation.",stats:[{value:"R1m+",label:"Per hour in losses from production stoppages"},{value:"1 in 15",label:"African organisations hit by ransomware weekly"}],services:["OT/IT network segmentation","Industrial protocol monitoring","Remote access security for field workers","RealWear-secured hands-free operations"]}],l8e=[{q:"What does your 24/7 SOC actually do when it detects a threat?",a:"Our SOC analysts investigate the alert, determine severity and context, then follow a documented playbook — which ranges from blocking a suspicious IP address to initiating full incident response procedures. You are notified with a clear explanation at every stage."},{q:"We already have antivirus. Do we need a managed SOC?",a:"Antivirus addresses known malware signatures. A SOC using Microsoft Sentinel detects behavioural anomalies, lateral movement, credential misuse and zero-day threats that antivirus cannot see. They are complementary, not interchangeable."},{q:"How does Sourceworx help with POPIA compliance?",a:"We help you map personal information flows, identify technical vulnerabilities that could lead to a breach, implement controls and document your posture. We do not provide legal advice but work alongside your legal team to close technical gaps."},{q:"What happens if we have an active incident right now?",a:"Contact us immediately at [email protected]. Our incident response team can assist with active containment, forensic investigation and communication support — including for organisations not yet under a managed contract."},{q:"What is the AG April 2026 report and why does it matter?",a:"The Auditor-General's April 2026 report identified widespread IT security failures in the public sector, including inadequate access controls, unpatched systems and absent security policies. It signals increased scrutiny across all regulated entities."}],c8e=[{key:"soc",label:"Do you currently have any SOC or SIEM monitoring in place?",type:"select",options:["Yes, fully operational","Partial monitoring","No","Not sure"]},{key:"incidents",label:"Have you experienced a security incident in the last 12 months?",type:"select",options:["Yes","Possibly / unsure","No","Prefer not to say"]},{key:"vapt",label:"When was your last vulnerability assessment or pe
1412n test?",type:"select",options:["Within 6 months","6–18 months ago","Over 18 months ago","Never"]},{key:"testDomain",label:"Please enter the domain you would like to have tested",type:"text",placeholder:"e.g. sourceworx.co.za"}];function u8e(){return u.jsxs(u.Fragment,{children:[u.jsx(cB,{label:"Managed Cybersecurity",headline:"Your threat is not hypothetical. Your response should not be either.",sub:"1 in 15 African organisations faces a ransomware attempt every week. Sourceworx provides 24/7 SOC monitoring, VAPT and incident response — so you are never unprepared.",img:Rt.noc,ctaText:"Get a Security Assessment",secondaryCta:"See our SOC capabilities"}),u.jsx(uB,{}),u.jsx(dB,{headline:"The threats are real. The question is whether you can see them.",points:a8e}),u.jsx(AB,{}),u.jsx(fB,{headline:"Vigilant by design. Responsive by commitment.",features:o8e}),u.jsx(hB,{cases:s8e,img:Rt.boardroom}),u.jsx(pB,{}),u.jsx(mB,{}),u.jsx(gB,{faqs:l8e}),u.jsx("section",{id:"assessment",className:"py-20 lg:py-28 bg-[#F4F6F8]",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-14 items-start",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-[#00B4D8] mb-4 block",children:"Get Started"}),u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-midnight mb-5 leading-tight",children:"Get a free Vulnerability Assessment"}),u.jsx("p",{className:"text-slate leading-relaxed mb-8",children:"Our security specialists will assess your current posture and provide a specific picture of your risk profile — in a single conversation."}),u.jsxs("div",{className:"space-y-3 text-sm text-midnight/70",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," ISO 27001 certified operations"]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," Microsoft Sentinel SIEM platform"]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," POPIA compliant — your data is protected"]})]})]}),u.jsx(yB,{serviceLabel:"Managed Cybersecurity",serviceQuestions:c8e})]})})})]})}const d8e=[{icon:G0,title:"Reactive IT is costing you more",desc:"Break-fix models mean every failure is a crisis. Without proactive monitoring and maintenance, small issues compound into expensive outages."},{icon:XV,title:"Your IT team is firefighting",desc:"Internal staff spend 70% of their time on operational issues. Strategic projects get deferred indefinitely. The business falls behind."},{icon:a3,title:"Microsoft 365 is underutilised",desc:"Most organisations use less than 30% of their M365 licences. Unused capabilities mean you are paying for tools that are not delivering value."}],A8e=[{icon:XV,title:"End-to-End Endpoint Management",desc:"Proactive monitoring, patch management, antivirus and MDM for all devices — laptops, desktops and mobile. Managed under a formal SLA with defined response times."},{icon:a3,title:"Microsoft 365 Administration",desc:"Full M365 tenant management — user provisioning, Teams, SharePoint, Exchange, Intune and licence optimisation. Microsoft Digital App Innovation Partner."},{icon:G0,title:"Server & Infrastructure Management",desc:"On-premise and cloud server monitoring, backup management, capacity planning and hardware lifecycle management — all under one contract."},{icon:pse,title:"Helpdesk & Service Desk",desc:"SA-based L1, L2 and L3 support. SLA-governed response times. Full ticket tracking with monthly reporting against agreed KPIs."}],f8e=[{headline:"IT management aligned to financial services operating rhythms.",scenario:"Financial services firms need IT that supports trading hours, monthly close cycles and regulatory reporting deadlines. Sourceworx builds SLAs around your operational calendar — not a generic IT support model.",stats:[{value:"99.9%",label:"SLA uptime commitment"},{value:"< 4 hrs",label:"Gold tier critical incident response"}],services:["M365 and Azure administration","Endpoint management for hybrid workforces","POPIA-compliant data handling procedures","Monthly IT health reporting"]},{headline:"IT that keeps campuses running through term and exam pressure.",scenario:"Higher education and TVET IT teams are stretched between term cycles, exam periods and compliance deadlines. Sourceworx provides a proactive managed IT layer that absorbs operational load so your internal team can focus on strategy.",stats:[{value:"30 Apr",label:"SETA deadline — IT must support compliance"},{value:"70%",label:"Of IT teams' time saved with managed services"}],services:["Campus device management","Microsoft Teams and SharePoint for education","Staff and student helpdesk supp
1412ort","IT asset lifecycle management"]},{headline:"Industrial IT management that understands shift work and remote sites.",scenario:"Mining and manufacturing operations run 24/7 across multiple sites. Standard 8-to-5 IT support does not match operational reality. Sourceworx provides round-the-clock managed IT with national field coverage.",stats:[{value:"24/7",label:"NOC monitoring — no gaps in coverage"},{value:"9",label:"Provinces with field engineer coverage"}],services:["Remote site IT infrastructure management","24/7 NOC monitoring","Rugged device management","OT/IT environment support"]}],h8e=[{q:"What is included in a managed IT services contract with Sourceworx?",a:"Our contracts include proactive monitoring, patch management, helpdesk support, monthly reporting and a named account manager. The specific SLA tiers (Gold, Silver, Bronze) define response times and coverage hours."},{q:"Can Sourceworx take over IT from our current provider or internal team?",a:"Yes. We have a structured onboarding process that maps your environment, documents all systems and establishes a service baseline before we take over — minimising disruption during transition."},{q:"What makes Sourceworx a Microsoft partner?",a:"Sourceworx holds Microsoft Digital App Innovation Partner status, with certified engineers across M365, Azure, Teams and Intune. This means we are held to Microsoft's standards for technical capability and customer outcomes."},{q:"How does your helpdesk differ from a call centre?",a:"Our helpdesk is staffed by technically qualified engineers, not scripted agents. L1 support resolves most issues on first contact. L2 and L3 are available for complex problems without the delay of re-routing tickets."},{q:"Do you support hybrid and remote workforces?",a:"Yes. We manage endpoints regardless of location — office, home or remote site. Our MDM capabilities cover corporate and BYOD devices with appropriate policy enforcement and security controls."}],p8e=[{key:"itModel",label:"How is your IT currently managed?",type:"select",options:["In-house IT team only","Mix of internal and outsourced","Fully outsourced","Ad hoc / no formal model"]},{key:"endpoints",label:"How many devices / endpoints do you need managed?",type:"select",options:["1–50 devices","51–200 devices","201–500 devices","500+ devices"]},{key:"m365",label:"Are you on Microsoft 365?",type:"select",options:["Yes, fully deployed","Partially deployed","Planning to migrate","No"]},{key:"testDomain",label:"Please enter the domain you would like to have tested",type:"text",placeholder:"e.g. sourceworx.co.za"}];function m8e(){return u.jsxs(u.Fragment,{children:[u.jsx(cB,{label:"IT Managed Services",headline:"Proactive by design. Accountable by commitment.",sub:"Sourceworx manages your IT infrastructure end-to-end — endpoints, M365, servers and helpdesk — under a formal SLA. So your team can focus on what they were hired to do.",img:Rt.officePic1,ctaText:"Get an IT Assessment",secondaryCta:"See our service model"}),u.jsx(uB,{}),u.jsx(dB,{headline:"Reactive IT has a cost. It just does not always show up on an invoice.",points:d8e}),u.jsx(AB,{}),u.jsx(fB,{headline:"Complete IT management for South African organisations.",features:A8e}),u.jsx(hB,{cases:f8e,img:Rt.officeLight}),u.jsx(pB,{}),u.jsx(mB,{}),u.jsx(gB,{faqs:h8e}),u.jsx("section",{id:"assessment",className:"py-20 lg:py-28 bg-[#F4F6F8]",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-14 items-start",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-[#00B4D8] mb-4 block",children:"Get Started"}),u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-midnight mb-5 leading-tight",children:"Request your IT managed services assessment."}),u.jsx("p",{className:"text-slate leading-relaxed mb-8",children:"Tell us about your environment. A Sourceworx IT specialist will assess your current setup and outline where a managed services model would drive real value."}),u.jsxs("div",{className:"space-y-3 text-sm text-midnight/70",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," Microsoft Digital App Innovation Partner"]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," ISO 9001 and ISO 20000 certified"]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," POPIA compliant — your data is protected"]})]})]}),u.jsx(yB,{serviceLabel:"IT Managed Services",serviceQuestions:p8e})]})})})]})}const g8e=[{icon:G2,title:"Off-the-shelf software does not fit your world",desc:"Generic platforms are built for generic businesses. South African regulatory requirements — POPIA, B-BBEE, MFMA, SETA — are not afterthoughts. They are the conditions your software must be built for."},{icon:zV,title:"Systems that do not talk to each other",desc:"Spreadsheets filling the gaps between disconnected systems. Manual reconciliation between platforms that should communicate automatically. Hours of human effort that should not exist."},{icon:i3,title:"You cannot see your own data clearly",desc:"Operational data sits in silos. Reporting requires manual extraction. Decision-makers are working with outdated information when they need real-time insight."}],y8e=[{icon:G2,title:"Bespoke Application Development",desc:"Custom applications designed around your processes, your regulatory obligations and your sector. Built in-house by our SA development team — no offshore handoff, no knowledge drain after go-live."},{icon:zV,title:"Systems Integration",desc:"Connect your ERP, CRM, HR and operational systems via custom middleware and API integration. Eliminate manual data transfer and create a single source of operational truth."},{icon:i3,title:"Power BI & Analytics",desc:"Turn raw operational data into real-time dashboards and executive reporting. Built with your business logic, not generic templates. Training included."},{icon:K0,title:"EDVantage — SETA Compliance Platform",desc:"The only LMS built natively for SETA compliance, B-BBEE evidence and NQF-aligned assessment. Runs on Microsoft Teams. Automates WSP/ATR submission preparation."}],v8e=[{headline:"Automation for FSCA, SARB and B-BBEE reporting.",scenario:"South African banks and insurers face growing regulatory reporting burdens. Sourceworx builds custom automation tools that extract, validate and format data for FSCA CPD submissions, SARB reporting and B-BBEE evidence packs — reducing weeks of manual effort to hours.",stats:[{value:"9 in 10",label:"SA firms report AI skills gaps impacting operations"},{value:"Weeks → Hours",label:"Regulatory reporting time reduction"}],services:["FSCA CPD automation","SARB reporting tools","B-BBEE evidence management","Power BI regulatory dashboards"]},{headline:"EDVantage — built for SETA compliance and B-BBEE.",scenario:"WSP/ATR submission carries 20 B-BBEE points. Most higher education and TVET institutions still manage this manually. EDVantage automates the entire skills development evidence trail — from learner registration to NQF assessment and SETA submission.",stats:[{value:"20",label:"B-BBEE points on the line per SETA submission"},{value:"30 Apr",label:"Annual WSP/ATR submission deadline"}],services:["EDVantage SETA compliance LMS","NQF-aligned assessment automation","WSP/ATR evidence trail generation","Microsoft Teams integration"]},{headline:"Operational intelligence for mining and industrial environments.",scenario:"Mining operations generate vast operational data — from plant performance to contractor compliance and procurement. Sourceworx builds custom dashboards and automation tools that surface the right information to decision-makers in real time.",stats:[{value:"R7.51/L",label:"Diesel cost increase driving efficiency demand"},{value:"Real-time",label:"Operational dashboards from existing data"}],services:["Mining Charter compliance tracking","Contractor and procurement management","Power BI operational dashboards","iManage IDMS project lifecycle tools"]}],b8e=[{q:"Why build custom instead of buying an off-the-shelf product?",a:"Off-the-shelf products are built for global markets. South African regulatory requirements — POPIA, B-BBEE, MFMA, SETA compliance — are either unsupported or require expensive customisation. We build from the SA context upward."},{q:"What does EDVantage do that an LMS like Moodle does not?",a:"EDVantage is purpose-built for SETA compliance. It automates WSP/ATR evidence collection, NQF-aligned assessments and B-BBEE skills development reporting. Moodle requires significant customisation and does not natively support SETA workflows."},{q:"Do you hand over the source code when a project is complete?",a:"Yes. You own the intellectual property of software we build for you. We provide full source code, documentation and a knowledge transfer. We also offer post-go-live support and enhancement services under a separate agreement."},{q:"How do you handle regulatory changes that affect our software?",a:"We build SA regulatory logic as a managed layer, not hard-coded logic. When regulations change — POPIA amendments, new SETA requirements, updated MFMA thresholds — we update that layer without rebuilding from scratch."},{q:"Can Sourceworx integrate with our existing ERP or CRM?",a:"Yes. We have integration experience across SAP, Microsoft Dynamics, Sage, Salesforce and numerous sector-specific platforms. Integration is asse
1412ssed during the Discovery phase and scoped before development begins."}],w8e=[{key:"softwareType",label:"What type of software solution are you considering?",type:"select",options:["New custom application","Systems integration","Analytics / BI dashboards","EDVantage / SETA compliance","Legacy modernisation"]},{key:"existingSystems",label:"Which systems would this need to integrate with?",type:"text",placeholder:"e.g. SAP, Microsoft Dynamics, Sage, custom legacy systems..."},{key:"stage",label:"Where are you in the planning process?",type:"select",options:["Early exploration","Have requirements documented","Ready to start","Replacing an existing solution"]},{key:"testDomain",label:"Please enter the domain you would like to have tested",type:"text",placeholder:"e.g. sourceworx.co.za"}];function x8e(){return u.jsxs(u.Fragment,{children:[u.jsx(cB,{label:"Software Development & Automation",headline:"Built for South Africa. Not adapted for it.",sub:"Generic software was not designed for POPIA, B-BBEE, SETA compliance or MFMA reporting. Sourceworx builds bespoke applications and automation tools that reflect how your organisation actually works.",img:Rt.pexels2,ctaText:"Start a Conversation",secondaryCta:"See our capabilities"}),u.jsx(uB,{}),u.jsx(dB,{headline:"Off-the-shelf software was not built for your world.",points:g8e}),u.jsx(AB,{}),u.jsx(fB,{headline:"In-house development. African context. No handoff after go-live.",features:y8e}),u.jsx(hB,{cases:v8e,img:Rt.archBuilding}),u.jsx(pB,{}),u.jsx(mB,{}),u.jsx(gB,{faqs:b8e}),u.jsx("section",{id:"assessment",className:"py-20 lg:py-28 bg-[#F4F6F8]",children:u.jsx("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-14 items-start",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-xs font-bold tracking-widest uppercase text-[#00B4D8] mb-4 block",children:"Get Started"}),u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-midnight mb-5 leading-tight",children:"Tell us about your software challenge."}),u.jsx("p",{className:"text-slate leading-relaxed mb-8",children:"Our development team will review your requirements and outline a specific approach — including whether EDVantage or a custom build is the right path for your organisation."}),u.jsxs("div",{className:"space-y-3 text-sm text-midnight/70",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," Microsoft Digital App Innovation Partner"]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," SA-based development team — no offshore"]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"w-5 h-5 rounded-full bg-[#00B4D8]/15 flex items-center justify-center text-[#00B4D8] font-bold text-xs",children:"✓"})," POPIA compliant — your data is protected"]})]})]}),u.jsx(yB,{serviceLabel:"Software Development",serviceQuestions:w8e})]})})})]})}const k$=["Pinging the NOC…","Scanning for vulnerabilities (none found)…","Patching Tuesday's patches…","Negotiating SLA terms with the server…","Calibrating uptime to 99.99%…","Rerouting traffic through the SD-WAN…","Checking ISO 27001 compliance…","Activating 24/7 monitoring…","Deploying performance foundations…","Promising performance, not promises…"],Qp=8;function S8e(){const[e,t]=_.useState(0),[n,r]=_.useState(0),[i,a]=_.useState(new Set);return _.useEffect(()=>{const o=setInterval(()=>{t(s=>(s+1)%k$.length)},600);return()=>clearInterval(o)},[]),_.useEffect(()=>{const o=setInterval(()=>{r(s=>Math.min(s+Math.random()*12,95))},200);return()=>clearInterval(o)},[]),_.useEffect(()=>{const o=setInterval(()=>{const s=Qp*Qp,l=Math.floor(Math.random()*6)+3,c=new Set;for(;c.size<l;)c.add(Math.floor(Math.random()*s));a(c)},300);return()=>clearInterval(o)},[]),u.jsxs("div",{className:"fixed inset-0 bg-obsidian flex flex-col items-center justify-center overflow-hidden z-[9999]",children:[u.jsx("div",{className:"absolute inset-0 opacity-20",style:{display:"grid",gridTemplateColumns:`repeat(${Qp}, 1fr)`,gridTemplateRows:`repeat(${Qp}, 1fr)`,padding:"40px",gap:"4px"},children:Array.from({length:Qp*Qp}).map((o,s)=>u.jsx(_e.div,{animate:{backgroundColor:i.has(s)?"#009BDF":"rgba(255,255,255,0.08)",scale:i.has(s)?1.4:1},transition:{duration:.3},className:"rounded-full",style:{width:6,height:6,margin:"auto"}},s))}
1412),u.jsx("div",{className:"absolute w-64 h-64 rounded-full border border-azure/10",children:u.jsx(_e.div,{animate:{rotate:360},transition:{duration:8,repeat:1/0,ease:"linear"},className:"absolute inset-0",children:u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 w-2 h-2 rounded-full bg-azure"})})}),u.jsx("div",{className:"absolute w-44 h-44 rounded-full border border-sky/8",children:u.jsx(_e.div,{animate:{rotate:-360},transition:{duration:5,repeat:1/0,ease:"linear"},className:"absolute inset-0",children:u.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 translate-y-1/2 w-1.5 h-1.5 rounded-full bg-sky"})})}),u.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[u.jsx(_e.img,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.6},src:"https://media.base44.com/images/public/user_69e0910e48e31e0ec54e4669/2219639cb_SourceworxHorizontal-Light2.png",alt:"Sourceworx",className:"h-9 mb-10"}),u.jsxs("div",{className:"relative w-56 h-12 mb-8",children:[u.jsx("div",{className:"absolute top-0 left-0 w-4 h-4 border-t-2 border-l-2 border-azure/60"}),u.jsx("div",{className:"absolute top-0 right-0 w-4 h-4 border-t-2 border-r-2 border-azure/60"}),u.jsx("div",{className:"absolute bottom-0 left-0 w-4 h-4 border-b-2 border-l-2 border-azure/60"}),u.jsx("div",{className:"absolute bottom-0 right-0 w-4 h-4 border-b-2 border-r-2 border-azure/60"}),u.jsx(_e.div,{animate:{y:[0,32,0]},transition:{duration:1.4,repeat:1/0,ease:"easeInOut"},className:"absolute left-2 right-2 h-px bg-gradient-to-r from-transparent via-azure to-transparent"}),u.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:u.jsx("span",{className:"text-[10px] font-mono text-azure/60 tracking-widest uppercase",children:"INITIALISING"})})]}),u.jsx("div",{className:"w-56 h-0.5 bg-white/8 rounded-full overflow-hidden mb-4",children:u.jsx(_e.div,{animate:{width:`${n}%`},transition:{duration:.3,ease:"easeOut"},className:"h-full bg-gradient-to-r from-azure to-sky rounded-full"})}),u.jsx("div",{className:"h-5 overflow-hidden",children:u.jsx(sl,{mode:"wait",children:u.jsx(_e.p,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.25},className:"text-[11px] font-mono text-white/35 tracking-wide text-center",children:k$[e]},e)})})]}),u.jsx(_e.div,{initial:{opacity:0}
1412,animate:{opacity:1},transition:{delay:.5},className:"absolute bottom-8 flex gap-3",children:["ISO 9001","ISO 27001","ISO 20000","Level 1 B-BBEE"].map(o=>u.jsx("span",{className:"text-[10px] font-semibold text-sky/30 border border-sky/10 rounded-full px-2.5 py-1",children:o},o))})]})}const B8e="https://media.base44.com/images/public/69e5fadb62865073c43a0307/6c40c3322_TshepoModikwe.jpg",C8e="https://media.base44.com/images/public/69e5fadb62865073c43a0307/2f5f7a690_generated_image.png",k8e="https://media.base44.com/images/public/69e5fadb62865073c43a0307/7901dab78_IMG_0315.jpg",E8e="https://media.base44.com/images/public/69e5fadb62865073c43a0307/d22e1c4df_generated_image.png",AP=[{id:"core_training_teen",label:"Deliver the training to me",descriptor:"We store your email and the name you want on your certificate so we can save your progress. This is required for the programme to work.",locked:!0},{id:"guardian_copy",label:"Send my certificate to a parent or guardian too",descriptor:"If you give us a parent email, we send them your certificate at the end. Nothing else, and nothing about your individual answers."},{id:"progress_emails",label:"Email me weekly reminders",descriptor:"A short email each week telling you which section is next. Every email has a one-click unsubscribe."},{id:"research",label:"Use my anonymous answers for research",descriptor:"We report totals only, such as how many people spotted the fake. Your name and email are never part of it."},{id:"marketing",label:"Tell me about other Sourceworx programmes",descriptor:"Occasional emails about future programmes. Declining this changes nothing about your training."}],N8e=[{id:"teen-w1",week:1,section:"When the Group Chat Turns",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/c84140964_generated_image.png",title:"Cyberbullying, group chats and the screenshot that spreads",outcome:"Recognise cyberbullying as it starts, respond without making it worse, and know exactly how to report it.",minutes:15,steps:[{type:"lesson",eyebrow:"Overview",title:"It rarely starts as bullying",body:["Almost nobody joins a group chat intending to hurt somebody. It starts as a joke, then a screenshot, then a nickname that sticks, then an edited photo, and by the time anybody notices that it has become cruelty there are forty people in the chat and nobody wants to be the one who says stop. That gradual slide is what makes online bullying different from a fight in a corridor, because there is no bell, no end of the school day, and no walking home away from it.","Three things make it hit harder than face-to-face conflict. It follows you into your bedroom at eleven at night, it has an audience that can grow without limit, and it leaves a permanent record that can be forwarded again months later. A single edited image can be reposted by strangers who have no idea who you are and no reason to stop. The South African Council for Educators and the Film and Publication Board both treat serious online harassment as conduct that can be reported, and under the Cybercrimes Act messages that threaten violence or damage, or that distribute intimate images without consent, are criminal offences rather than schoolyard matters.","The most useful person in any of this is the bystander, because the target is usually too overwhelmed to act well and the person doing the harm is performing for an audience. Removing the audience removes the point. That does not mean posting a dramatic defence in the chat, which usually escalates it. It means screenshotting, not forwarding, messaging the target privately, and telling an adult who can act. Nothing about that requires you to be brave in public."],facts:[{stat:"Screenshot",label:"evidence first, always, before anybody deletes anything"},{stat:"0 forwards",label:"forwarding it, even to complain about it, spreads the harm further"},{stat:"Cybercrimes Act",label:"threats and intimate images shared without consent are criminal offences in South Africa"}],takeaways:["Do not reply in the chat while angry — screenshot, mute, then decide.","A private message to the target does more good than a public defence.","Reporting is not snitching when somebody is being harmed."],video:{id:"4papLSDnAlY",title:"From bystander to upstander: what actually helps"}},{type:"quiz",prompt:"Somebody posts an edited photo of a classmate in a group of sixty people. Everybody is reacting with laughing emojis. What is the most useful thing you can do?",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/1490ba81a_generated_image.png",caption:"Sixty people, reactions piling up, and nobody willing to be the one who says stop."},options:['Post "this is not funny" in the chat and argue with whoever made it',"Screenshot it, message the classmate privately to check on them, and report it to a teacher or the platform","Leave the group quietly so you are not involved"],answer:1,why:"Arguing publicly gives the post more attention and more reactions. Quietly leaving protects only you. Evidence, private support, and a report to somebody who can remove it are the three things that actually change the outcome."},{type:"eliminate",prompt:"You are being targeted in a chat. Strike out every response that will make your situation worse.",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/56dc0cfd9_generated_image.png",caption:"The notifications keep arriving. What you do in the first ten minutes decides how the rest of it goes."},items:[{id:"b1",label:"Screenshot everything before you do anything else",bad:!1},{id:"b2",label:"Reply with something worse to show you are not bothered",bad:!0,why:"It turns you into a participant, and your message becomes the screenshot that gets shown to the adults."},{id:"b3",label:"Mute or leave the chat once you have your evidence",bad:!1},{id:"b4",label:"Delete the messages so you do not have to see them again",bad:!0,why:"Deleting destroys the only proof that this happened. Screenshot first, then hide the chat instead."},{id:"b5",label:"Block the accounts involved",bad:!1},{id:"b6",label:"Agree to meet up to sort it out in person",bad:!0,why:"Moving an online conflict into a physical meeting is how people get hurt. Involve an adult instead."},{id:"b7",label:"Tell one adult you trust, even if you ask them not to act yet",bad:!1}]},{type:"sort",prompt:"Sort these into ordinary chat friction and behaviour that has crossed into harassment.",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/0d24396a1_generated_image.png",caption:"Exclusion organised deliberately, then made obvious, is one of the four lines."}
1412,leftLabel:"Ordinary friction",rightLabel:"Crossed the line",items:[{id:"c1",label:"A disagreement about who caused a loss in a game",bucket:"left"},{id:"c2",label:"A fake account made in someone's name to post as them",bucket:"right"},{id:"c3",label:"Being left on read for a day",bucket:"left"},{id:"c4",label:"Repeated messages after being told clearly to stop",bucket:"right"},{id:"c5",label:"Two friends teasing each other in a way both find funny",bucket:"left"},{id:"c6",label:"Sharing a private photo of somebody without their permission",bucket:"right"},{id:"c7",label:"A group voting on who to exclude, then telling that person",bucket:"right"}],why:"The test is not how funny it feels to the group. It is repetition after a request to stop, impersonation, exclusion organised deliberately, and anything private shared without permission. Those are the four lines."},{type:"quiz",prompt:"A friend tells you they are being harassed and begs you not to tell anyone because it will get worse. What do you do?",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/df140e8b3_generated_image.png",caption:"Being the person who goes with them is worth more than being the person who keeps the secret."},options:["Keep the secret, they asked you to","Stay with them, keep the evidence, and help them tell one trusted adult — going with them if that helps","Handle it yourself by confronting the person doing it"],answer:1,why:"Keeping the secret leaves them alone with it, and confronting the bully yourself usually escalates it. The realistic middle path is supporting them to report it and being the person who goes along."},{type:"written",prompt:"Write the plan you would follow if somebody started targeting you online tomorrow: what you would do in the first ten minutes, and who you would tell.",hint:"Order matters more than detail. Think evidence, then distance, then people.",guide:"A strong answer starts with screenshotting or saving evidence before anything is deleted, avoids replying while angry, uses mute, block and report functions, names at least one specific trusted adult, and recognises that serious cases involving threats or intimate images can be reported to the school and to the police. Acknowledging that the person being targeted did nothing to deserve it is a strength."}],action:"Find the report and block buttons in the app you use most, so you already know where they are before you need them."},{id:"teen-w2",week:2,section:"Your Permanent Record",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/03e7292c6_generated_image.png",title:"Digital footprint, oversharing and the things you cannot take back",outcome:"Understand what your posts reveal about you, and shrink what strangers can work out.",minutes:14,steps:[{type:"lesson",eyebrow:"Overview",title:"Nothing is temporary, and small details add up",body:["Disappearing messages and stories create a feeling of impermanence that is not real. Anything on a screen can be screenshotted, screen-recorded, or saved by the app itself. The useful assumption is not that everything you post lasts forever in some dramatic sense, but that you have no control over the copy somebody else keeps. That copy is the one that resurfaces years later.","The bigger risk is quieter, and it is aggregation. One post rarely gives anything away. Twenty do. Your school blazer in one photo, your suburb in a running route, your surname in a tagged family post, a match fixture that names your team, a bedroom window in the background, a first-day-of-term countdown. None of that is secret, and together it is enough for a stranger to know where you will be on Tuesday afternoon and who your younger siblings are. People who target teenagers do not guess. They read.","Then there is the version of you that other people search for later: bursaries, universities, first employers, and coaches all look. Nobody sensible expects a teenager to have no online life, and a single awkward post is not going to end your career. What does cause real damage is content that is cruel about somebody else, or that is intimate. Intimate images of anybody under eighteen are child sexual abuse material under South African law even when the person in the image made it themselves, which is why the right answer to a request for one is always no, and the right answer to receiving one is to delete it and tell an adult rather than forward it."],facts:[{stat:"Aggregation",label:"twenty harmless posts together reveal what one never would"},{stat:"Under 18",label:"intimate images of a minor are illegal to make, hold or share, including your own"},{stat:"Screenshots",label:"assume every disappearing message has been saved by somebody"}],takeaways:["Check the background of a photo before posting: uniforms, street names, house numbers, number plates.","Lock accounts down to people you actually know, and audit your follower list occasionally.","A request for an intimate image is a red flag about that person, not a test of how much you like them."],video:{id:"wyjd73tUXig",title:"Oversharing and your digital footprint: think before you post"}},{type:"eliminate",prompt:"You are about to post a photo taken at home. Strike out everything that should not be visible or written in the caption.",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/f5047e5aa_generated_image.png",caption:"One ordinary bedroom photo: a school badge, a street sign through the window and a number plate in the driveway."},items:[{id:"d1",label:"Your school blazer badge",bad:!0,why:"A badge tells any stranger exactly where you are every weekday morning."},{id:"d2",label:"Your dog",bad:!1},{id:"d3",label:"The street name sign outside your gate",bad:!0,why:"With a tagged surname, that is your home address published permanently."},{id:"d4",label:'A caption saying "bored, home alone until Sunday"',bad:!0,why:"That is an announcement that the house is empty and that you are unsupervised."},{id:"d5",label:"Your favourite artist's album cover",bad:!1},{id:"d6",label:"A car number plate in the driveway",bad:!0,why:"Number plates connect to your family across other records and support impersonation."},{id:"d7",label:"Your live location shared publicly rather than with close friends",bad:!0,why:"Public live location turns your daily routine into something anyone can follow."}]},{type:"quiz",prompt:"Somebody you have been chatting to for three weeks, who you have never met, asks for a photo of you in your underwear and promises to delete it straight after.",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/a756e855e_generated_image.png",caption:"Three weeks of kindness, then one request. The request is the warning sign."},options:["Send it, they have been kind and you trust them","Refuse, screenshot the request, block them, and tell an adult","Send it but crop your face out so you cannot be identified"],answer:1,why:"The promise to delete is meaningless and the request itself is the warning sign. Cropping does not help, because backgrounds, tattoos, marks and metadata all identify people. This exact pattern is how blackmail starts."},{type:"sort",prompt:"Sort each of these into what is reasonably safe to post publicly and what belongs to people you actually know.",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/b075922e6_generated_image.png",caption:"Opinions cost nothing. A timetable tells a stranger where you will be on Tuesday."}
1412,leftLabel:"Fine publicly",rightLabel:"Friends only, or not at all",items:[{id:"e1",label:"A drawing you made",bucket:"left"},{id:"e2",label:"Your class timetable",bucket:"right"},{id:"e3",label:"A review of a film you watched",bucket:"left"},{id:"e4",label:"A photo of your matric dance outfit tagged at your house",bucket:"right"},{id:"e5",label:"Your gaming handle",bucket:"left"},{id:"e6",label:"Your phone number so people can add you",bucket:"right"},{id:"e7",label:"A screenshot of a friend's private message",bucket:"right"}],why:"Opinions, creations and handles cost you nothing. Anything that reveals where you will physically be, how to contact you directly, or something a friend told you privately is a different category entirely."},{type:"written",prompt:"Imagine a stranger looked only at your public posts from the last month. Write what they could work out about you, and what you would change.",hint:"Be honest. School, area, routine, family names, who you are close to.",guide:"A strong answer identifies specific inferable details such as school, suburb, daily routine, family members, close friends and physical appearance, recognises that these come from combining posts rather than one post, and names concrete changes such as tightening privacy settings, removing location tags, auditing followers, and checking photo backgrounds."}],action:"Open your main account's privacy settings tonight and switch the account to private, then scroll your follower list and remove anybody you cannot name."},{id:"teen-w3",week:3,section:"Scams Built For You",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/fbb8a7162_generated_image.png",title:"Sneaker pages, free V-Bucks, money flipping and blackmail",outcome:"Recognise the scams aimed specifically at teenager
1412s, and know that being caught out is survivable.",minutes:16,steps:[{type:"lesson",eyebrow:"Overview",title:"Different bait, identical mechanics",body:["The scams aimed at teenagers do not look like the ones aimed at your parents. Nobody sends you a fake bank SMS. They send you a sneaker page with a sale that ends in an hour and only accepts an instant EFT, a free skins generator that needs your account login, a modded game file, a person offering to double any R200 you send them, or a holiday job that pays extremely well and asks for a registration fee first.","Underneath, the mechanics are exactly the same as every other scam: something you want badly, a deadline that stops you thinking, and a payment method that cannot be reversed. Instant EFT, gift card codes, airtime vouchers and crypto transfers are all favoured precisely because there is no chargeback. If somebody insists on one of those and will not use a normal, reversible method, that insistence is the whole answer.",'Account theft deserves its own warning, because a gaming account with years of progress and paid items is genuinely valuable and gets stolen constantly through fake login pages, fake giveaway sites and "let me boost your rank, just send me your details" offers. No legitimate giveaway, moderator or developer will ever need your password or your two-factor code.',"Then there is the ugliest one: somebody friendly, quickly affectionate, who moves the conversation to a private app, gets an intimate image, and immediately demands money or more images while threatening to send it to your followers. This happens to enormous numbers of teenagers, boys very much included, and it works because of shame. So learn the answer now, before it is ever needed. Stop replying, do not pay, screenshot the account and threats, block, and tell an adult or report it. Paying always leads to more demands, and the people doing this are running dozens of these conversations at once from another country. You are not the first and you will not be blamed."],facts:[{stat:"Irreversible",label:"gift cards, airtime vouchers, instant EFT and crypto are chosen because they cannot be reversed"},{stat:"Never",label:"no moderator, developer or giveaway needs your password or your 2FA code"},{stat:"Do not pay",label:"in blackmail cases paying increases the demands rather than ending them"}],takeaways:["Urgency plus an unreversible payment method is the signature of a scam, whatever the product is.","Search the seller separately before buying, and use a payment method with buyer protection.","If you are ever blackmailed: stop, screenshot, block, tell somebody. Never pay, never send more."],video:{id:"lmsTJUbOr-w",title:"Teen online safety: how sextortion scams work and what to do"}},{type:"eliminate",prompt:"An account is selling limited-edition sneakers at half price. Strike out every warning sign that this is a scam.",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/07a42b016_generated_image.png",caption:"Half price, a countdown, instant EFT only and comments switched off."},items:[{id:"f1",label:"The page was created three weeks ago",bad:!0,why:"Scam shopfronts are new by necessity, because the old ones get reported and shut down."},{id:"f2",label:"They have a returns policy on a website with a real business address",bad:!1},{id:"f3",label:"Payment only by instant EFT or a friend-to-friend transfer",bad:!0,why:"These cannot be reversed and give you no buyer protection at all."},{id:"f4",label:'The price ends in an hour and there are "two left"',bad:!0,why:"Manufactured scarcity exists to stop you checking anything."},{id:"f5",label:"Comments are turned off or filtered",bad:!0,why:"Disabled comments hide the people saying they were never sent anything."},{id:"f6",label:"You can find independent reviews of the seller from months ago",bad:!1},{id:"f7",label:"They will only chat on a private app, never in the comments",bad:!0,why:"Moving you into a private channel removes any witnesses and any record."}]},{type:"quiz",prompt:'Someone in a game offers you 5,000 free coins. They just need you to log in on their link to "verify" your account.',image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/0cf357632_generated_image.png",caption:"A login page that exists only to collect your username and password."},options:["Do it, you have nothing valuable to lose","Refuse — that link is a fake login page built to steal your account","Do it with a different password, then change it back afterwards"],answer:1,why:"That is a phishing page. Your account has real resale value because of your progress and purchases, and once they have the login and your session they will change the recovery email immediately."},{type:"sort",prompt:"Sort these offers into plausible and definitely a scam.",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/1e9d9b111_generated_image.png",caption:"Money that multiplies overnight, and a job that charges you to be hired."}
1412,leftLabel:"Could be genuine",rightLabel:"Definitely a scam",items:[{id:"g1",label:"A weekend job advertised through your school with no fees",bucket:"left"},{id:"g2",label:'"Send me R200 and I will flip it into R2,000 by tonight"',bucket:"right"},{id:"g3",label:"An official in-game event run inside the game itself",bucket:"left"},{id:"g4",label:'"Pay a R350 registration fee to secure the position"',bucket:"right"},{id:"g5",label:"A store with reviews, a physical address and card payment",bucket:"left"},{id:"g6",label:"A free skins generator that asks for your username and password",bucket:"right"},{id:"g7",label:'"You have been chosen as our giveaway winner, just cover the courier fee"',bucket:"right"}],why:"Genuine opportunities do not charge you to be hired, do not multiply money, and never happen through a login page outside the platform. Any upfront fee to receive something you did not enter for is the scam itself."},{type:"quiz",prompt:"A person you met online has an intimate photo of you and is demanding R1,500 or they will send it to your followers. What is the correct sequence?",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/e2d05ddc7_generated_image.png",caption:"The threat arrives with a deadline and a payment request. Shame is the tool being used."},options:["Pay quickly so it stops, then block them","Stop replying, screenshot the account and the threats, block, and tell a trusted adult or report it","Send another photo to buy time while you think"],answer:1,why:"Paying identifies you as somebody who pays, and the demands continue. Evidence, silence, blocking and involving an adult is the sequence that ends it. This is a crime committed against you, and you are not in trouble."},{type:"written",prompt:"A friend messages you at midnight in a panic because they have been blackmailed over a photo. Write what you would say to them.",hint:"Think about what they need to hear first, then what they need to do.",guide:"A strong answer leads with reassurance that it is not their fault and that they are not in trouble, tells them not to pay and not to send anything further, advises screenshotting the account and messages as evidence, advises blocking and reporting, and encourages telling a trusted adult or the police. Recognising how common this is, and that shame is the tool being used, is a real strength."}],action:"Turn on two-factor authentication for your main gaming or social account this week."},{id:"teen-w4",week:4,section:"Real, Fake, Or Just Loud",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/16c04ce3a_generated_image.png",title:"Deepfakes, AI content and why your feed shows you the worst version",outcome:"Test yourself against real AI fakes, and check a claim before it costs somebody their reputation.",minutes:16,steps:[{type:"lesson",eyebrow:"Overview",title:"A video is a claim, not proof",body:['For most of history a photograph or a recording was treated as evidence. That is over. A convincing still image of a real person takes one photograph and one prompt, a recognisable voice takes seconds of audio from any video they have posted, and video is no longer far behind. The important shift is not learning to spot fakes perfectly, because that will keep getting harder. It is changing the question from "does this look real?" to "where did this come from, and can I confirm it anywhere else?"',"AI still fails in predictable places, and knowing them is genuinely useful right now. Small text and logos collapse into pseudo-lettering. Hands, fingers, teeth and ears are inconsistent. Hair dissolves into backgrounds instead of ending cleanly. Jewellery, watch faces and patterns drift. In group images, shadows point in disagreeing directions. In video, blinking looks wrong, the mouth and audio drift apart, and the edges of a face shimmer when the head turns.","The harm closest to you is not political misinformation. It is a fake nude or a fake video of a classmate made from an ordinary photo, which is now trivial to produce and utterly devastating to the person in it. Under South African law, creating or sharing that content about a minor is a serious criminal offence, and forwarding it makes you part of the offence rather than a spectator. The correct response to receiving one is to not forward it, screenshot who sent it, and tell an adult.","Then there is the quieter mechanism: your feed. Recommendation systems optimise for how long you keep watching, and outrage, extremes and conflict hold attention better than accuracy or nuance. That means your sense of what is normal, what people believe, and what your own body should look like is being shaped by a system that has no interest in whether any of it is true or good for you. Noticing that is most of the defence."],facts:[{stat:"Seconds",label:"of posted audio is enough to clone a recognisable voice"},{stat:"Edges",label:"hands, teeth, ears, hair and small text are where synthesis still fails"},{stat:"Forwarding",label:"sharing a fake intimate image of a classmate is a criminal act, not a joke"}],takeaways:["Trace the earliest source rather than judging the forward you received.","Absence of coverage from anywhere credible is itself strong evidence it is fabricated.","Your feed optimises for attention, not truth — that is the design, not a glitch."],video:{id:"fOEqDygg56w",title:"How to spot AI-generated video and images"}},{type:"spot",prompt:"Both images show the same person. One is a genuine photograph and one was generated by AI from it. Which is the fake?",imageA:B8e,imageB:C8e,fakeIndex:1,why:"Image B was generated using image A as the only reference, in a different pose, from a single prompt in a few seconds. That is how little effort a convincing fake of a real person now takes.",tells:["Skin looks slightly waxy and too even, with pores and fine lines smoothed away.","The two ears do not quite match in shape or angle.","Hands and fingers lose definition and blend at the edges.","The collar and shoulder seam warp subtly instead of holding a clean line."]},{type:"spot",prompt:"Two people in one image is much harder to fake. Which one is synthetic?",imageA:E8e,
1412imageB:k8e,fakeIndex:0,why:"Image A is generated. Every extra person multiplies the failure points, because hands, contact between bodies and two separate sets of shadows all have to agree.",tells:["Hands and fingers blend or miscount where they are visible.","Shadow directions disagree between the two figures.","Hair strands dissolve into the background rather than ending cleanly.","Any small text, badge or logo on the clothing turns into unreadable squiggles."]},{type:"quiz",prompt:"A video of a well-known person saying something shocking is going around your grade. No news outlet has mentioned it. What is most likely?",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/af995e6c9_generated_image.png",caption:"Enormous share count, glitching edges around the face, and silence everywhere credible."},options:["The media is hiding it","It is fabricated or edited, because a real statement like that would be covered everywhere within hours","It is real but too recent for anybody to have noticed"],answer:1,why:"Genuine statements by public figures generate coverage almost immediately. Silence from every credible outlet is one of the strongest signals available that something did not happen."},{type:"eliminate",prompt:"Somebody sends you a fake AI image of a classmate. Strike out every response that is wrong or illegal.",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/2cb9ea363_generated_image.png",caption:"The forward arrow is the moment you stop being a spectator."},items:[{id:"h1",label:"Forward it to one friend to ask if it is real",bad:!0,why:"Forwarding it spreads the harm and, for an image of a minor, makes you part of a criminal offence."},{id:"h2",label:"Screenshot who sent it, without spreading the image itself",bad:!1},{id:"h3",label:"Post it in the class group to warn people it is fake",bad:!0,why:"Warning people by republishing the image causes exactly the damage you are warning about."},{id:"h4",label:"Tell a trusted adult, and report the account",bad:!1},{id:"h5",label:"Say nothing and hope somebody else deals with it",bad:!0,why:"Silence is what lets it circulate for weeks. A quiet report is enough."},{id:"h6",label:"Check on the person it depicts privately",bad:!1}]},{type:"written",prompt:"Write the three checks you will run before you believe or share anything shocking that arrives on your phone.",hint:"Think source, confirmation, and what you look at in the content itself.",guide:"A strong answer includes not sharing until checked, finding the original or earliest source rather than the forward, looking for the same claim from an established outlet or the person's own official account, and examining specific tells such as hands, teeth, hair edges, small text, lighting, lip sync and audio quality. Noting that emotional intensity is itself a warning sign is a strength."}],action:"Pick the last thing that made you angry on your feed and spend two minutes finding who published it first."},{id:"teen-w5",week:5,section:"Locking Your Own Doors",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/10027a1be_generated_image.png",title:"Accounts, phones and the things you only have to set up once",outcome:"Secure the accounts that matter with about half an hour of one-time work.",minutes:14,steps:[{type:"lesson",eyebrow:"Overview",title:"Three accounts, then everything else",body:["Everything you own online hangs off your email address, because email is the reset channel for your gaming accounts, your social accounts, your school login and eventually your banking. Whoever controls your inbox can request a password reset on almost anything else and intercept the confirmation. So your email gets the strongest protection, your phone lock screen gets the second strongest, and your main social or gaming account gets the third.","Attackers almost never sit and guess passwords. They buy lists of email and password pairs exposed in old breaches at other companies, then replay those pairs automatically across hundreds of services. It works only when the same password was reused. That is 
1412why one password used in three places means one leak compromises three accounts, and why length beats cleverness: four unrelated words are far harder to crack than a short password with a zero swapped in for an o, and much easier to type on a phone.","Two-factor authentication is what saves you when the password leaks anyway, and an authenticator app is meaningfully stronger than SMS codes, because SIM swap fraud, where somebody persuades a network to move your number to their SIM, is common in South Africa. If your phone suddenly loses signal for no reason while you are somewhere with coverage, treat that as a possible SIM swap and check it rather than shrugging.","The rest is unglamorous and takes minutes. Turn on automatic updates, because most successful attacks exploit flaws that were patched months earlier. Set a real passcode with biometrics rather than a four-digit pattern anybody in class has watched you draw. Turn off installing apps from unknown sources, since modded games and cracked apps are a standard delivery route for account-stealing malware. Use mobile data or a hotspot rather than open public WiFi for anything involving a login. And when a friend hands you their unlocked phone, remember that you would want the same care in return."],facts:[{stat:"3 first",label:"email, phone lock, then your main social or gaming account"},{stat:"4 words",label:"a passphrase of four unrelated words beats a short complex password"},{stat:"App > SMS",label:"authenticator codes resist SIM swap fraud in a way SMS codes do not"}],takeaways:["Never reuse a password across accounts that matter — a manager makes that realistic.","Use an authenticator app rather than SMS wherever the option exists.","Automatic updates are the highest-value security habit you will ever switch on once."],video:{id:"QYdHm7zoF_M",title:"Passwords, passkeys and two-factor authentication explained simply"}},{type:"quiz",prompt:"Which of these is both strongest and easiest to remember?",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/58ca0f476_generated_image.png",caption:"Four unrelated words, quick to type and very slow to crack."},options:["Sneakers2026!","yellow-taxi-eats-vetkoek","P@ssw0rd123"],answer:1,why:"Length defeats cracking. Character substitutions like @ for a and 0 for o have been in every cracking dictionary for decades, while four unrelated words give far more resistance and are quicker to type."},{type:"sort",prompt:"Sort each habit into what genuinely protects you and what only feels safe.",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/9370374cf_generated_image.png",caption:"Half an hour, once, on the accounts everything else hangs off."},leftLabel:"Genuinely protects you",rightLabel:"Only feels safe",items:[{id:"i1",label:"A different long passphrase on your email and your main account",bucket:"left"},{id:"i2",label:"One strong password reused everywhere",bucket:"right"},{id:"i3",label:"Two-factor authentication through an authenticator app",bucket:"left"},{id:"i4",label:"Keeping your passwords in your phone's notes app",bucket:"right"},{id:"i5",label:"Automatic updates left switched on",bucket:"left"},{id:"i6",label:"A four-digit passcode people have watched you type",bucket:"right"},{id:"i7",label:"A recovery email or number you actually still control",bucket:"left"}],why:"Anything predictable to a person is predictable to software, and one reused password turns any single breach into a chain of compromised accounts. Uniqueness, length, a second factor and current software are the four things that hold."},{type:"eliminate",prompt:"Strike out everything on this phone setup that leaves you exposed.",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/01dc6e21e_generated_image.png",caption:"Half an hour of one-time setup protects the accounts everything else hangs off."},items:[{id:"j1",label:"Installing a cracked or modded version of a paid game",bad:!0,why:"Modded installer
1412s are one of the most common ways account-stealing malware reaches phones."},{id:"j2",label:"Automatic updates enabled for the system and apps",bad:!1},{id:"j3",label:"The same password on your email and your gaming account",bad:!0,why:"One breach then compromises both, and email can reset everything else you own."},{id:"j4",label:"Biometric unlock with a long passcode as backup",bad:!1},{id:"j5",label:"Logging into your account on a friend's phone and staying signed in",bad:!0,why:"A live session on somebody else's device is an account anybody who picks up that phone can use."},{id:"j6",label:"Banking or shopping over open mall WiFi",bad:!0,why:"An open network is shared with everybody on it. Mobile data or a hotspot avoids that entirely."},{id:"j7",label:"Two-factor authentication through an authenticator app",bad:!1}]},{type:"quiz",prompt:"Your phone suddenly shows no signal in a place where you always have coverage, and stays that way. What should cross your mind?",image:{url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/db460c384_generated_image.png",caption:"Unexplained loss of service is the one visible symptom of a SIM swap."},options:["Nothing, networks go down all the time","It could be a SIM swap — check with your network, because SMS codes would now go to somebody else","Restart it and forget about it"],answer:1,why:"A SIM swap moves your number to an attacker's SIM, which hands them every SMS verification code you rely on. Unexplained, persistent loss of service is the one visible symptom, which is why it is worth checking."},{type:"written",prompt:"List the accounts that would do the most damage if somebody took them over, in order, and say what you will change about the top one this week.",hint:"Think about which account can be used to reach the others.",guide:"A strong answer places primary email first and explains that it resets everything else, then names a main social or gaming account and the phone itself, and commits to specific concrete actions such as a unique four-word passphrase, enabling authenticator-app two-factor authentication, updating recovery details, and signing out of old sessions."}],action:"Do three things today: change your email password to a four-word passphrase, switch its two-factor authentication to an authenticator app, and sign out of every session you do not recognise."}],_A={adultHero:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/f863bfa1f_generated_image.png",teenHero:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/4486d9fb3_generated_image.png",adultModule:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/18cbbbf09_generated_image.png",kidHero:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/ae8f5c9a3_generated_image.png",kidBadge:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/ad8bbd479_generated_image.png",sourceworxLogo:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/847c96b5b_Edvantage-Alearningskillsandcompliancemanagementplatform1.png"},uA={tshepo:{real:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/6c40c3322_TshepoModikwe.jpg",fake:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/2f5f7a690_generated_image.png"},frans:{real:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/40abbef3f_FransSkhosana.jpg",fake:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/30219f979_generated_image.png"},pair:{real:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/7901dab78_IMG_0315.jpg",fake:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/d22e1c4df_generated_image.png"}},fP=[{id:"core_training",label:"Deliver the training to me",descriptor:"We store your email and name so we can save your progress and issue your certificate. This is required for the programme to work.",locked:!0},{id:"progress_emails",label:"Send me weekly progress reminders",descriptor:"A short email each week during October reminding you what is next. Every email has a one-click unsubscribe."},{id:"certificate_listing",label:"Let my certificate be verified publicly",descriptor:"Anyone with your certificate ID can confirm the name and month on it. Nothing else is shown."},{id:"research",label:"Use my anonymous answers for research",descriptor:"We report totals only, such as how many people spotted a scam. Your name and email are never part of it."},{id:"marketing",label:"Tell me about other Sourceworx programmes",descriptor:"Occasional emails about future awareness programmes and services. Declining this changes nothing about your training."}],hP=[{id:"core_training_child",label:"Deliver the training to my child",descriptor:"We store your email, your first name and 
1412your child's nickname and age band. Nothing more. This is required for the programme to work.",locked:!0},{id:"progress_emails",label:"Email me my child's weekly progress",descriptor:"A short weekly email to you, the parent, with what your child completed and what is next."},{id:"certificate_listing",label:"Let my child's certificate be verified publicly",descriptor:"Anyone with the certificate ID can confirm the nickname and month on it. No surname, no email, no age."},{id:"research",label:"Use anonymous answers for research",descriptor:"Totals only, never anything that identifies your child."},{id:"marketing",label:"Tell me about other Sourceworx programmes",descriptor:"Occasional emails to you about future programmes. Declining this changes nothing about your child's training."}],T8e=[{id:"adult-w1",week:1,section:"Scam Signals",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/9fda78065_generated_image.png",title:"The SMS that is not from your bank",outcome:"Spot smishing before you tap, and know what a real bank message never asks for.",minutes:12,steps:[{type:"lesson",eyebrow:"Overview",title:"Why the phone in your hand is the target",body:["South African fraud has moved away from breaking into bank systems. Bank infrastructure is hardened, monitored and expensive to attack. You are not. A convincing message costs a fraudster almost nothing to send, and the whole attack succeeds or fails on one decision made by one person in about four seconds.","SABRIC, the banking industry's own crime centre, records the bulk of digital banking losses in the country coming through banking apps and social engineering rather than technical compromise. In plain terms: nobody hacked the bank. Someone was persuaded to hand over the key, or to approve a prompt they did not understand.","Every one of these attacks needs three ingredients: urgency so you do not pause, authority so you do not question, and a single channel that the attacker controls. Remove any one ingredient and the attack collapses. That is the entire defence, and it is why this programme spends more time on habits than on technology."],facts:[{stat:"R2.4bn",label:"digital banking crime losses recorded in South Africa by SABRIC"},{stat:"70%+",label:"of those losses ran through banking apps and social engineering"},{stat:"4 sec",label:"roughly how long people take to decide whether to tap a link"}],takeaways:["Urgency is not information. A real emergency survives a five-minute pause.","Never use a contact number that arrived inside the message that alarmed you.","Approving an app prompt is the same as handing over cash — read it fully first."],video:{id:"jEx9k9JNS38",title:"Inside South Africa's R2.4 billion digital banking fraud epidemic"}},{type:"quiz",prompt:'You get an SMS: "ABSA: R4,850.00 paid to J MOKOENA. Not you? Call 087 xxx xxxx immediately." What do you do?',options:["Call the number in the SMS right away, before more money goes","Open your banking app yourself, check your balance, and call the number printed on your card","Reply STOP to the SMS"],answer:1,why:"The number in the message is part of the scam. Real fraud checks always start from a channel you chose yourself — your app, or the number on your bank card. Replying at all confirms the number is live."},{type:"eliminate",prompt:"A caller says they are from your bank's fraud department. Strike out everything you must never give them.",items:[{id:"name",label:"Your first name",bad:!1},{id:"otp",label:"The one-time PIN that just arrived",bad:!0,why:"No bank employee ever needs your OTP. That request alone identifies the caller as a fraudster."},{id:"branch",label:"The branch where you opened the account",bad:!1},{id:"approve",label:"An in-app approval you did not initiate",bad:!0,why:"Approving the prompt authorises the fraudster's device or payment. Once approved, the money is gone legitimately."},{id:"pin",label:"Your card PIN",bad:!0,why:"Your card PIN is never needed by anyone, ever, for any reason other than a card machine or ATM."},{id:"card_last4",label:"The last four digits already printed on your statement",bad:!1}]},{type:"sort",prompt:"Sort these messages into real bank behaviour and fraud behaviour.",leftLabel:"A real bank might do this",rightLabel:"This is fraud",items:[{id:"s1",label:"Sends a notification with no link, telling you to open your app",bucket:"left"},{id:"s2",label:'Asks you to click a link to "reverse" a transaction',bucket:"right"},{id:"s3",label:"Declines a transaction and asks you to phone the number on your card",bucket:"left"},{id:"s4",label:'Phones you and reads back your OTP to "verify" you',bucket:"right"},{id:"s5",label:"Warns you it will never ask for your PIN or OTP",bucket:"left"},{id:"s6",label:"Threatens to freeze your account within ten minutes unless you act",bucket:"right"}],why:"Real banks push you towards channels you already control and never create a countdown. Fraud always needs you to move now, inside a channel the fraudster chose."},{type:"quiz",prompt:"A caller knows your ID number and your last transaction. Does that prove they are from the bank?",options:["Yes, only the bank has that","No — that data leaks and gets bought cheaply","Only if they also know your address"],answer:1,why:"Previous breaches and leaked databases make personal detail cheap and widely traded. Knowing things about you proves nothing about who they are."},{type:"written",prompt:'In your own words, write the rule you will follow the next time an urgent "bank" message arrives.',hint:"A good rule says what you will do, on which channel, and what you will never do.",guide:"The answer should include: stopping and not using any contact details from the message; independently opening the banking app or phoning the number on the back of the card; and never sharing an OTP, PIN, or approving an unexpected in-app prompt. Mentioning pausing or resisting urgency is a strength."}],action:`Save your bank's real fraud number from the back of your card 
1412into your phone contacts now, named "BANK FRAUD — REAL".`},{id:"adult-w2",week:2,section:"The Keys to Your Life",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/bff9a19bf_generated_image.png",title:"Passwords, and the three accounts that actually matter",outcome:"Protect your email, your banking and your phone with passwords that survive a breach.",minutes:12,steps:[{type:"lesson",eyebrow:"Overview",title:"Your email is the master key",body:["People instinctively protect their banking password hardest and treat email as trivial. It is exactly backwards. Email is the reset channel for banking, SARS eFiling, medical aid, retail accounts and social media. Whoever controls your inbox can request a reset on almost everything else and intercept the confirmation.","Attackers rarely guess passwords one at a time any more. They buy lists of email and password combinations exposed in old breaches, then replay those pairs automatically across hundreds of other services. This is called credential stuffing, and it works only because the same password was reused. One reused password turns a breach at a shopping site from years ago into a live compromise of your bank today.",'Length is what defeats cracking, not punctuation. Substituting a zero for an "o" is a trick every cracking tool has expected since the 1990s. Four unrelated words give you far more resistance and are dramatically easier to type on a phone. Then two-factor authentication catches the case where the password leaks anyway.'],facts:[{stat:"3",label:"accounts to fix first: email, banking, and your phone lock"},{stat:"4 words",label:"a passphrase of four unrelated words beats a short complex password"},{stat:"1 leak",label:"is all it takes when the same password is reused everywhere"}],takeaways:["Fix email first, banking second, phone lock screen third.","Unique password per account is only realistic with a password manager — use one.","Turn on two-factor authentication wherever money or identity is involved."],video:{id:"QYdHm7zoF_M",title:"Passwords, passkeys and two-factor authentication explained simply"}},{type:"quiz",prompt:"Which is both the strongest and the easiest to remember?",options:["Sourceworx2026!","braai-tuesday-yellow-bakkie","P@ssw0rd#1"],answer:1,why:"Length beats symbols. Four unrelated words are far harder to crack and far easier to recall than a short password with the substitutions attackers already expect."},{type:"sort",prompt:"Sort each habit into what genuinely helps and what only feels safe.",leftLabel:"Genuinely helps",rightLabel:"Only feels safe",items:[{id:"p1",label:"A different long passphrase for every important account",bucket:"left"},{id:"p2",label:"Changing one character each month on the same password",bucket:"right"},{id:"p3",label:"A password manager with one long master passphrase",bucket:"left"},{id:"p4",label:'Keeping passwords in a phone note called "pw"',bucket:"right"},{id:"p5",label:"Two-factor authentication on your email",bucket:"left"},{id:"p6",label:`Using your child's name with a "1" on the end`,bucket:"right"}],why:"Anything predictable to a person is predictable to software. Real protection comes from uniqueness, length, and a second factor — not from small variations of a familiar secret."},{type:"quiz",prompt:"Your Gmail password appears in a breach list. What breaks first?",options:["Nothing, email is just email","Every account that resets through that email","Only your Google Drive"],answer:1,why:"Email is the reset channel for banking, eFiling and social media. It is the first account to secure, not the last."},{type:"written",prompt:"Which three accounts of yours would do the most damage if someone took them over, and why those three?",hint:"Think about which account can be used to reach the others.",guide:"A good answer identifies primary email as the highest-value target because it resets other accounts, plus banking or payment access, plus something like the phone itself, a work mailbox, or a social account used for identity. The reasoning should show awareness that accounts are chained together through resets."}],action:"Change your email password to a four-word passphrase, and turn on two-factor authentication for it today."},{id:"adult-w3",week:3,section:"Trust, Then Verify",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/eb5f3442e_generated_image.png",title:"WhatsApp, the family emergency and the fake invoice",outcome:"Verify identity on a channel the sender did not choose, before any money moves.",minutes:13,steps:[{type:"lesson",eyebrow:"Overview",title:"Two scams, one missing habit",body:["The two most expensive WhatsApp-based scams in South Africa look nothing alike. The first is emotional: a message from a fam
1412ily member's number saying their phone broke, this is the new number, please send money for a deposit. The second is procedural: a supplier sends an invoice with changed banking details from what appears to be their own email address.","Both work for the same reason. The victim verifies the request inside the same channel the request arrived on. Replying to the email asks the fraudster to confirm their own fraud. Asking the new WhatsApp number for a selfie asks the person holding a hijacked account for a photo they can lift from Facebook or generate outright.","Business email compromise is now one of the highest-value fraud categories facing South African small businesses, precisely because it needs no malware. Someone reads a mailbox quietly for weeks, learns the payment cycle, then intervenes once at the right moment with a plausible change of banking details. The invoice looks correct because it largely is correct — only the account number moved."],facts:[{stat:"2 channels",label:"always verify on a second channel the sender did not choose"},{stat:"Weeks",label:"how long an attacker may sit quietly in a mailbox before acting"},{stat:"1 setting",label:"WhatsApp two-step verification blocks the account takeover itself"}],takeaways:["Any change of banking details is verified by voice, on a number you already had on file.","Never verify a suspicious message by replying to it.","A shared fact only the real person knows beats any photo or voice note."],video:{id:"zOojl5t1oUw",title:"Invoice fraud: why the criminals wait until a payment is due"}},{type:"quiz",prompt:`A message from your daughter's number: "Mom my phone broke, this is my new number, please send R1,500 for the deposit." What is the first step?`,options:["Send it, she sounds desperate","Phone her original number and ask something only she can answer","Ask for a selfie"],answer:1,why:"Voice on the old number, or a shared fact no scammer could know. Selfies and photos can be lifted from social media or generated on demand."},{type:"eliminate",prompt:'A supplier emails changed banking details. Strike out every "verification" that does not actually verify anything.',items:[{id:"v1",label:"Reply to the email and ask if it is genuine",bad:!0,why:"If the mailbox is compromised, you are asking the fraudster to confirm their own fraud."},{id:"v2",label:"Phone the supplier on the number you already have on file",bad:!1},{id:"v3",label:"Check the letterhead and logo look right",bad:!0,why:"Letterheads are copied in seconds. Visual polish is the cheapest part of the attack."},{id:"v4",label:"Confirm with a second known contact at that company",bad:!1},{id:"v5",label:"Phone the new number printed on the changed invoice",bad:!0,why:"Any contact detail supplied inside the suspicious document belongs to the attacker."}]},{type:"quiz",prompt:"What single WhatsApp setting most protects a small business owner?",options:['Hiding "last seen"',"Two-step verification PIN","Disappearing messages"],answer:1,why:'Two-step verification stops account takeover, which is how the "hijacked contact" scam starts in the first place.'},{type:"written",prompt:"Write the payment verification rule you would put in place for your household or your business.",hint:"Say what triggers the rule, who verifies, and on which channel.",guide:"A strong answer states a threshold or trigger (any new beneficiary, any change of banking details, any urgent request), requires verification by voice on a previously known number or in person, names who does the verifying, and states that the rule holds regardless of how senior or urgent the requester sounds."}],action:"Turn on WhatsApp two-step verification: Settings, Account, Two-step verification."},{id:"adult-w4",week:4,section:"Real or Synthetic",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/1fc290efe_generated_image.png",title:"Deepfakes, voice clones and the R50,000 phone call",outcome:"Test your own eyes against real AI fakes, and build a verification habit that holds when the voice sounds right.",minutes:15,steps:[{type:"lesson",eyebrow:"Overview",title:"Synthetic media is now cheap, fast and good enough",body:["Cloning a recognisable voice takes seconds of audio — a voice note, a podcast clip, a video posted to LinkedIn. Generating a convincing still image of a real person takes one photograph and one prompt. Live video is harder, but it no longer requires a studio or a specialist.",'This changes what evidence means. For most of the last century, a photograph or a recording was treated as proof. It is now merely a claim, exactly like a text message. The useful question is no longer "does this look real?" but "did this reach me through a channel I trust, and can I confirm it independently?"',"That said, current AI still fails in predictable places. It fails at edges and at counting: hair meeting a background, ear shapes that do not match each other, fingers, teeth that are too uniform, jewellery and watch faces, and any small text or logo, which typically collapses into pseudo-lettering. Lighting and shadow direction between two subjects also drifts. In the exercises below you will test yourself on genuine photographs of Sourceworx colleagues alongside AI-generated ver
1412sions of the same people."],facts:[{stat:"Seconds",label:"of public audio is enough to clone a recognisable voice"},{stat:"Edges",label:"hair, ears, fingers, teeth and logos are where synthesis still fails"},{stat:"0",label:"payments that should ever be approved on a single channel"}],takeaways:["Treat images and recordings as claims, not proof.","Assume any voice you have published can be reproduced.","Defend with process — a second-channel rule — not with better listening."],video:{id:"fOEqDygg56w",title:"How to spot AI-generated video and deepfakes"}},{type:"spot",prompt:"Both of these show the same colleague. One is his real photograph. Which one is the AI fake?",imageA:uA.tshepo.real,imageB:uA.tshepo.fake,fakeIndex:1,why:"Image B was generated by AI using the real photograph in image A as its only reference. It took one prompt and a few seconds.",tells:["Skin looks slightly waxy and too even, with pores and fine lines smoothed away.","The two ears do not quite match in shape or angle.","Shirt button spacing drifts and the collar warps subtly where it meets the neck.","The folded hands lose detail, with fingers that blend or miscount at the edges."]},{type:"spot",prompt:"Same test, different colleague. Which image is synthetic?",imageA:uA.frans.fake,imageB:uA.frans.real,fakeIndex:0,why:"Image A is the generated one. Notice that your instinct probably went to the friendlier or sharper image — attractiveness and polish are not evidence of authenticity.",tells:["The embroidered chest logo turns into unreadable pseudo-lettering under close inspection.","Teeth are unnaturally uniform and bright.","The collar edge blends into the shoulder instead of casting a clean shadow.","Zoom in on any text on clothing, signage or documents first — it is the fastest single check."]},{type:"spot",prompt:"Two people together is harder for AI. Which of these is the fake?",imageA:uA.pair.fake,imageB:uA.pair.real,fakeIndex:0,why:"Image A is generated. Multiple subjects multiply the failure points: hands, contact between bodies, and two sets of shadows that must agree.",tells:["The hands at their sides have blended or miscounted fingers, and the folder edge bends impossibly.","Shadow directions disagree between the two figures.","Hair strands dissolve into the background rather than ending cleanly.","Shoe and heel geometry becomes subtly impossible."]},{type:"quiz",prompt:'Your MD "calls" and urgently instructs a R50,000 payment before a deadline. The voice is right. What holds?',options:["Pay it, you recognised the voice","Follow the agreed rule: no payment on a call alone, confirm through a second channel","Ask the voice to repeat the amount"],answer:1,why:"Urgency plus authority plus a single channel is the whole attack. A pre-agreed second-channel rule removes the judgement call under pressure."},{type:"written",prompt:"A relative sends you a video that seems to show a public figure saying something shocking. Describe how you would check it before sharing.",hint:"Think about the source, the original, and what you would look at in the video itself.",guide:"A strong answer includes: not sharing until verified; looking for the same claim from established news outlets or the person's own official channel; tracing the earliest source rather than the forward; and examining tells such as face and hair edges, lip sync, lighting, hands, and audio quality. Acknowledging that absence of coverage is itself a signal is a strength."}],action:"Agree one verification rule with your family or your finance person this week, and write it down."},{id:"adult-w5",week:5,section:"Living with AI",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/a6996d123_generated_image.png",title:"Advanced: living with AI without feeding it your life",outcome:"Use AI tools productively while understanding what leaves your control when you paste.",minutes:14,steps:[{type:"lesson",eyebrow:"Advanced · Artificial intelligence",title:"What actually happens when you paste into a chatbot",body:["AI assistants are extraordinarily useful and are now embedded in browsers, phones, email clients and office softw
1412are. The risk is not that they are malicious. The risk is that they are a channel: text you paste leaves your device, travels to a provider, and may be retained, logged, reviewed by humans for quality, or used to improve future models depending on the product and the plan you are on.","For an individual, the practical consequence is that a pasted medical letter, ID number, contract or client list has left your control. For an employer, the same paste may be a reportable data incident. Free consumer tiers are generally the most permissive about retention and training; paid business tiers usually offer contractual assurances that the content is not used for training. Reading which one you are actually using takes two minutes and is worth doing once.","The second AI risk is the opposite direction: what comes back. Models generate fluent, confident text whether or not the underlying facts exist. They invent case law, statutes, statistics and sources with complete composure. Fluency is not accuracy. Anything you would act on financially, legally, medically or publicly must be verified against a primary source, every time.","The third risk is that AI has industrialised social engineering. Grammatically perfect Afrikaans or isiZulu phishing at scale, personalised to your job title from public data, is now trivially cheap. The old advice to look for bad spelling is obsolete. What still works is checking the channel and the request, not the prose."],facts:[{stat:"Retained",label:"assume anything pasted into a free AI tool may be stored and reviewed"},{stat:"Confident",label:"invented facts arrive in the same fluent tone as correct ones"},{stat:"No typos",label:"AI removed bad grammar as a phishing warning sign"}],takeaways:["Decide once what categories of information you will never paste, and hold that line.","Verify anything actionable against a primary source before relying on it.","Judge messages by channel and request, never by how well written they are."],video:{id:"dfAZbuAQxi8",title:"What not to share with an AI assistant, and when to double-check it"}},{type:"sort",prompt:"Sort each item into what is reasonable to paste into a consumer AI assistant and what is not.",leftLabel:"Reasonable to paste",rightLabel:"Never paste",items:[{id:"a1",label:"A blog outline about braai recipes",bucket:"left"},{id:"a2",label:"A client contract with names and payment terms",bucket:"right"},{id:"a3",label:"A public job advert you want reworded",bucket:"left"},{id:"a4",label:"Your ID number and banking details for a form",bucket:"right"},{id:"a5",label:"A patient or employee record",bucket:"right"},{id:"a6",label:"A generic email template with no real names",bucket:"left"}],why:"The test is simple: if the content identifies a real person, discloses commercial terms, or would embarrass you if it appeared in a log, it does not go into a consumer tool."},{type:"quiz",prompt:"An AI assistant cites a South African court judgment that supports your position perfectly. What do you do?",options:["Use it, it named the case and the year","Find the judgment on SAFLII or an official source before relying on it","Ask the AI whether it is sure"],answer:1,why:"Models invent citations that look completely plausible, and asking the model to confirm itself produces more confident text, not more truth. Only a primary source settles it."},{type:"eliminate",prompt:"Strike out the phishing warning signs that AI has made unreliable.",items:[{id:"e1",label:"Spelling and grammar mistakes",bad:!0,why:"AI writes flawlessly in any language, including Afrikaans and isiZulu. Clean prose is now meaningless as a signal."},{id:"e2",label:"An unexpected request to move money urgently",bad:!1},{id:"e3",label:'Generic greetings like "Dear customer"',bad:!0,why:"Personalisation is now automated from public data, so messages arrive with your name, employer and job title correct."},{id:"e4",label:"A link whose domain does not match the organisation",bad:!1},{id:"e5",label:"Awkward, obviously translated phrasing",bad:!0,why:"Translation quality is no longer a tell. Judge the request and the channel instead."},{id:"e6",label:"Pressure to bypass a normal approval process",bad:!1}]},{type:"written",prompt:"Write the AI usage rule you would give a small team: what may go in, what may never, and how output gets checked.",hint:"Three short sentences is plenty.",guide:"A strong answer draws a clear line excluding personal data, client-identifying information, credentials and confidential commercial terms; allows non-sensitive drafting and summarising work; and requires that any factual, legal or financial output be verified against a primary source before use. Mentioning approved tools or paid business tiers is a bonus."}],action:"Open the settings of the AI tool you use most and turn off chat history or training on your data if the option exists."},{id:"adult-w6",week:6,section:"Your Data, Your Rights",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/e70bb7213_generated_image.png",title:"Advanced: privacy, POPIA and the data you give away free",outcome:"Know your actual rights under POPIA and shrink the trail you leave behind.",minutes:14,steps:[{type:"lesson",eyebrow:"Advanced · Privacy",title:"Privacy is not secrecy — it is control",body:["Privacy is often dismissed as something only people with something to hide worry about. That framing is wrong. Privacy is control over who holds information about you and what they may do with it. Every extra copy of your identity number, address, or movement history sitting in a database you have never heard of is another opportunity for that data to leak and be used to impersonate you convincingly.","South Africa's Protection of Personal Information Act, POPIA, has been fully in force since July 2021 and it gives you real, usable rights rather than vague principles. Organisations that process your personal information must have a lawful basis for doing so, must collect only what they actually need for a stated purpose, must secure it, and must not keep it indefinitely. The Information Regulator enforces this and receives complaints directly.","Your practical rights are worth knowing by name. You may ask any organisation what personal information it holds about you. You may require that incorrect information be corrected and that information it has no lawful reason to keep be deleted. You may object to processing, and you may opt out of direct marketing — under POPIA, unsolicited electronic marketing to someone who is not already a customer generally requires consent, and every marketing message must offer a way out.",`Then there is the data you hand over voluntarily. Loyalty programmes, competition entries, "free" WiFi sign-ups, quizzes that ask for your mother's maiden name and first pet — that last one is a password reset questionnaire wearing a costume. Photographs are worse than people assume: an image posted publicly can carry location metadata, and a school badge, street name, number plate or gate code in the background does the rest.`],facts:[{stat:"July 2021",label:"POPIA fully in force, with the Information Regulator enforcing it"}
1412,{stat:"4 rights",label:"access, correction, deletion, and objection — all exercisable by email"},{stat:"Minimality",label:"organisations may only collect what the stated purpose actually requires"}],takeaways:["You can email any company and ask what it holds about you, and require deletion of what it should not.","Refuse fields that are not necessary — most competition and WiFi forms over-collect deliberately.","Check backgrounds in photos before posting: badges, street signs, number plates, gate codes."],video:{id:"RkTPlFg4wdc",title:"POPIA know-how: what the Act requires and what it gives you"}},{type:"quiz",prompt:"A retailer keeps emailing you promotions. You have never bought from them. Under POPIA, what is the position?",options:["Nothing can be done, marketing is always allowed","Unsolicited electronic marketing to a non-customer generally needs your consent, and you can object","You must prove financial harm first"],answer:1,why:"POPIA restricts unsolicited electronic direct marketing and gives you a right to object. If objecting is ignored, the Information Regulator accepts complaints directly."},{type:"sort",prompt:"A competition entry form asks for these. Sort what is genuinely necessary from what is over-collection.",leftLabel:"Necessary for the purpose",rightLabel:"Over-collection, refuse it",items:[{id:"c1",label:"A contact email so they can notify the winner",bucket:"left"},{id:"c2",label:"Your full ID number",bucket:"right"},{id:"c3",label:"Your first name",bucket:"left"},{id:"c4",label:"Your monthly household income",bucket:"right"},{id:"c5",label:"Your mother's maiden name and first pet",bucket:"right"},{id:"c6",label:"Confirmation that you are over 18",bucket:"left"}],why:`Minimality is a legal requirement, not a courtesy. Anything beyond what the stated purpose needs is over-collection — and "mother's maiden name" is a password reset question, not a competition question.`},{type:"eliminate",prompt:"You are about to post a family photo publicly. Strike out everything that should not be visible in it.",items:[{id:"f1",label:"Your child's school badge or uniform",bad:!0,why:"A uniform tells a stranger exactly where your child is every weekday morning."},{id:"f2",label:"A plain garden wall",bad:!1},{id:"f3",label:"Your street name or house number",bad:!0,why:"Combined with a surname, that is your home address published permanently."},{id:"f4",label:"Your vehicle number plate",bad:!0,why:"Number plates link to you across other records and support impersonation."},{id:"f5",label:"A birthday cake",bad:!1},{id:"f6",label:"The keypad or code on your gate",bad:!0,why:"Physical access codes are frequently readable in the background of otherwise innocent photos."}]},{type:"written",prompt:"Draft the short email you would send a company to exercise your POPIA rights over your data.",hint:"Say who you are, what you want, and under which law.",guide:"A strong answer identifies the sender, requests access to the personal information held about them, asks for correction of anything inaccurate and deletion of anything no longer needed for a lawful purpose, objects to direct marketing, references POPIA, and asks for a response within a reasonable stated period. Politeness and specificity are both strengths."}],action:"Pick one company you no longer deal with and email them asking what personal information they hold and requesting its deletion."},{id:"adult-w7",week:7,section:"Locking Your Own Doors",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/5c240e9ab_generated_image.png",title:"Advanced: hardening the devices and accounts you already own",outcome:"Close the technical gaps that scams rely on, in about an hour of one-time work.",minutes:14,steps:[{type:"lesson",eyebrow:"Advanced · Cyber security",title:"Small business, home office, same exposure",body:["Most South African small businesses and households run on the same handful of things: a phone, a laptop, a router from the fibre provider, a Microsoft or Google account, WhatsApp, and cloud storage. Attackers know this inventory as well as you do, and they do not need bespoke malware to exploit it. They need one unpatched device, one reused password, or one router still using the sticker password on the side.","Ransomware reaches small organisations mostly through ordinary routes: a malicious attachment, a compromised remote access tool, or credentials bought from a previous breach. What determines whether the incident is a bad afternoon or the end of the business is almost never the sophistication of the attack. It is whether a working, tested, offline or immutable backup exists. Backups that sync live to the same cloud folder get encrypted alongside everything else, which is why the three-two-one principle still matters: three copies, on two kinds of media, one of them off-site and disconnected.","Updates are the highest-return security action available to a non-specialist, and the most neglected. Attackers overwhelmingly exploit vulnerabilities that were patched months or years earlier. Turning on automatic updates for your operating system, browser and ph
1412one eliminates the majority of realistic technical attack paths without you thinking about it again.","Finally, public WiFi and load shedding create their own habits. Free WiFi at a mall or airport is fine for reading news and unwise for banking; a phone hotspot is safer than an open network. And when power returns, devices reconnect and update in a rush — that is a good moment to check that your router admin password is not still the default printed on the label."],facts:[{stat:"3-2-1",label:"three copies, two media types, one off-site and disconnected"},{stat:"Patched",label:"most successful attacks exploit flaws that were already fixed"},{stat:"1 hour",label:"roughly what this whole checklist costs you, once"}],takeaways:["Turn on automatic updates everywhere, then stop thinking about it.","One backup must be disconnected — a live-synced copy is not a backup.","Change the router admin password off the sticker default and enable WPA3 or WPA2."],video:{id:"ZYMLlTKMQkA",title:"Top security practices for small businesses right now"}},{type:"sort",prompt:"Sort these into a real backup strategy and a false sense of security.",leftLabel:"Real protection",rightLabel:"False sense of security",items:[{id:"b1",label:"An external drive backup kept disconnected between backups",bucket:"left"},{id:"b2",label:"A cloud folder that syncs every change instantly",bucket:"right"},{id:"b3",label:"A restore you have actually tested at least once",bucket:"left"},{id:"b4",label:"A second copy on the same laptop, in another folder",bucket:"right"},{id:"b5",label:"Versioned cloud backup with a retention window",bucket:"left"},{id:"b6",label:"Assuming your provider backs things up for you",bucket:"right"}],why:"Ransomware encrypts everything it can reach, including live-synced folders and second copies on the same machine. Only disconnected or versioned copies survive, and only a tested restore proves the backup exists."},{type:"quiz",prompt:"You are at a mall with free open WiFi and need to check your bank balance. Best option?",options:["Use the free WiFi, banking apps are encrypted anyway","Use your phone's mobile data, or your phone as a hotspot","Ask the centre for the WiFi password so it is a private network"],answer:1,why:'Mobile data avoids the shared network entirely. A "password-protected" mall network is still shared with everyone who has that password.'},{type:"eliminate",prompt:"Strike out every item on this router and device setup that leaves you exposed.",items:[{id:"r1",label:"Router admin password still the one on the sticker",bad:!0,why:"Default credentials are published online for every model and are the first thing tried."},{id:"r2",label:"WPA3 or WPA2 encryption enabled",bad:!1},{id:"r3",label:'Automatic operating system updates switched off "to save data"',bad:!0,why:"Unpatched flaws are the most common technical route in. Schedule updates instead of disabling them."},{id:"r4",label:"A separate guest WiFi network for visitors",bad:!1},{id:"r5",label:"Remote administration of the router enabled from the internet",bad:!0,why:"This exposes the router's admin interface to the whole internet and is almost never needed at home."},{id:"r6",label:"Old laptop still running an operating system no longer receiving updates",bad:!0,why:"An unsupported device on your network never gets fixed and becomes the permanent way in."}]},{type:"written",prompt:"Someone in your business opens a malicious attachment and files start becoming unreadable. Write the first four things you would do, in order.",hint:"Think containment before cleanup.",guide:"A strong answer prioritises: disconnecting the affected machine from the network and WiFi immediately; not paying and not powering off blindly; alerting whoever handles IT and preserving evidence; checking and isolating backups before restoring; and reporting appropriately, including notifying the Information Regulator and affected people if personal information was compromised. Order matters — containment first."}],action:"Do three things today: enable automatic updates, change your router admin password, and disconnect one backup drive."}],_8e=[{id:"kid-w1",week:1,section:"Secret or Share",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/774383496_generated_image.png",noteArt:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/84d070e22_generated_image.png",title:"Secret or share?",outcome:"Know which things stay inside your house.",minutes:7,steps:[{type:"lesson",eyebrow:"Let's learn",title:"Some things are for everyone, some stay home",body:["Think about your house. The front door is open for family and friends, but you would not leave it open for a stranger walking past. Information works the same way. Some things are fun to share with anybody, and some things belong inside your house only.","The things that stay inside are the ones that tell a stranger where to find you: where you live, where you go to school, your phone number, and ph
1412otos in your school uniform. Nobody online needs those to be your friend."],facts:[{stat:"3",label:"always-private things: your address, your school, your phone number"},{stat:"Ask",label:"when you are not sure, ask a grown-up — that is always the right answer"}],takeaways:["Fun facts about you are fine to share, like your favourite colour.","Anything that shows where you are stays private.","You are never in trouble for asking a grown-up first."],video:{id:"OCPRJl17ji4",title:"Internet safety for children: keeping private things private"}},{type:"sort",prompt:"Drag each one into the right box.",leftLabel:"Okay to share",rightLabel:"Keep private",items:[{id:"k1",label:"My favourite colour",bucket:"left"},{id:"k2",label:"My school's name",bucket:"right"},{id:"k3",label:"That I like soccer",bucket:"left"},{id:"k4",label:"My home address",bucket:"right"},{id:"k5",label:"My pet's name and my password",bucket:"right"},{id:"k6",label:"My favourite cartoon",bucket:"left"}],why:"Well done! Fun things about you are lovely to share. Anything that shows a stranger where to find you stays at home."},{type:"quiz",prompt:"The name of your school and your school uniform photo?",options:["Okay to share with strangers online","Keep it private"],answer:1,why:"Well done. Your school tells a stranger where to find you every morning."},{type:"written",prompt:"Tell us one thing about you that is fun to share, and one thing you will keep private.",hint:"Just one sentence each is perfect.",guide:"A good answer names something harmless to share (a hobby, favourite food, favourite colour) and something genuinely private (address, school, phone number, password, full name). Be warm and praise the effort."}],action:'Show a grown-up one thing on your device and ask, "is this a secret or a share?"'},{id:"kid-w2",week:2,section:"The Friendly Stranger",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/8642d1437_generated_image.png",noteArt:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/20cb95e0f_generated_image.png",title:"The friendly stranger in the game",outcome:"Tell a grown-up when someone new asks you things.",minutes:7,steps:[{type:"lesson",eyebrow:"Let's learn",title:"Kind words do not make someone safe",body:["Most people in games are just there to play. But some people are not really children at all, and they are very good at being nice first. They give compliments, they give free things, and then they start asking questions.","Here is the trick that always works: you never have to figure out who is safe on your own. That is a grown-up's job. Your job is just to tell them."],facts:[{stat:"Never",label:"a real friend never asks you to keep secrets from your parents"},{stat:"Block",label:"you are allowed to block anyone, any time, without explaining"}],takeaways:["In a game you only need your player name. Nothing else.",`"Don't tell your parents" is the biggest warning sign there is.`,"You will never be in trouble for telling a grown-up."],video:{id:"fyQksPYFek4",title:"Online safety tips for kids: not everyone is who they say they are"}},{type:"eliminate",prompt:'Tap every message that means "go tell a grown-up".',items:[{id:"g1",label:'"Good game! Want to play again tomorrow?"',bad:!1},{id:"g2",label:'"What is your real name and how old are you?"',bad:!0,why:"In a game you only need your player name. Nobody needs your real one."},{id:"g3",label:`"I will give you free coins, but don't tell your parents."`,bad:!0,why:"Free things plus a secret is the biggest warning sign of all."},{id:"g4",label:'"Nice score!"',bad:!1},{id:"g5",label:'"Send me a photo of you."',bad:!0,why:"Never send photos of yourself to someone you only know from a game."},{id:"g6",label:`"Let's chat somewhere private where no one can see."`,bad:!0,why:"Moving to a private chat is how someone hides what they are saying to you."}]},{type:"quiz",prompt:"Someone is mean to you in a chat. What do you do?",options:["Be mean back","Block, and show a grown-up"],answer:1,why:"Yes. Block and show someone. You will never be in trouble for telling."},{type:"written",prompt:"Who are the two grown-ups you would tell if something online made you feel funny inside?",hint:'You can say "my mom" or "my teacher" — anyone you trust.',guide:"A good answer names two trusted adults, such as a parent, grandparent, teacher, or older sibling. Praise them warmly and remind them those people will never be cross with them for telling."}],action:'With a grown-up, find the "block" button in your favourite game or app.'},{id:"kid-w3",week:3,section:"Silly Strong Passwords",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/10bcbc3c8_generated_image.png",noteArt:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/47ab35194_generated_image.png",title:"Strong password, silly sentence",outcome:"Make a long password you can actually remember.",minutes:7,steps:[{type:"lesson",eyebrow:"Let's learn",title:"Long is strong",body:["A password is like the key to your treasure box. A short key is easy to copy. A long, silly key that only you would ever think of is very, very hard to copy.","The best passwords are four funny words squashed together, like a tiny story: purple-goat-eats-pap. It makes you laugh, so you remember it, and a computer would take forever to guess it."],facts:[{stat:"4 words",label:"four silly words makes a super strong password"},{stat:"1 each",label:"important accounts each get their own password"}],takeaways:["Longer is stronger — even if it is silly.","Only you and your parent know your password.","Never use your name, your birthday, or 1234."],video:{id:"YitHISP0Isk",title:"Why strong passwords matter — a guide for kids"}},{type:"sort",prompt:"Drag each password into the right box.",leftLabel:"Strong",rightLabel:"Too easy to guess",items:[{id:"p1",label:"my-purple-goat-eats-pap",bucket:"left"},{id:"p2",label:"1234",bucket:"right"},{id:"p3",label:"seven-blue-taxis-sing-loud",bucket:"left"}
1412,{id:"p4",label:"My own name",bucket:"right"},{id:"p5",label:"password",bucket:"right"},{id:"p6",label:"tiny-elephant-drives-bakkie",bucket:"left"}],why:"Great sorting! Silly and long is strong. Short, or anything a person could guess about you, is easy to break."},{type:"written",prompt:"Make up a four-word silly password and tell us why it is easy for you to remember.",hint:"Do not use a real password you already use anywhere!",guide:"A good answer gives four unrelated words joined together and a reason it is memorable, such as a funny picture in their head. Gently remind them not to reuse this one anywhere real if they say they will, and praise length and silliness."}],action:"Make up a silly four-word password with your grown-up and use it on one account."},{id:"kid-w4",week:4,section:"Is It Real?",cover:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/7be6f0f5e_generated_image.png",noteArt:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/cd1e796cb_generated_image.png",title:"Is it real?",outcome:"Pause and check before you tap or believe.",minutes:8,steps:[{type:"lesson",eyebrow:"Let's learn",title:"Computers can make pictures of people who never posed",body:["Screens can show made-up prizes, made-up videos and even made-up people. Computers can now draw a picture of a real person doing something they never did, and it can look almost perfect.","You do not have to be a detective. You only need one superpower: pause. Stop, do not tap, and show a grown-up. Pausing is free and it always works."],facts:[{stat:"Pause",label:"stopping for ten seconds beats every trick on a screen"},{stat:"Never",label:"free prizes in a pop-up are never, ever real"}],takeaways:["If a screen wants you to hurry, that is exactly when you slow down.","A video is not proof any more — computers can make them.","Games do not need to see you, so they do not need your camera."],video:{id:"n4I3nbQb_2c",title:"How well can children spot fake AI images online?"}},{type:"spot",prompt:"One of these two pictures is a real photo of a real person. The other one was drawn by a computer. Which one is the computer one?",imageA:uA.frans.fake,imageB:uA.frans.real,fakeIndex:0,why:"Picture A was made by a computer using the real photo! Tricky, hey? That is why we always check with a grown-up.",tells:["Look at the little writing on his shirt — in the computer one it is squiggles, not letters.","The teeth look a bit too perfect and shiny.","Look at his hand near his chin — the fingers do not look quite right."]},{type:"eliminate",prompt:"Tap everything on a screen that you should never tap.",items:[{id:"r1",label:'"YOU WON A FREE PHONE! Tap here!"',bad:!0,why:"Free prizes in a pop-up are never real."},{id:"r2",label:"The play button on your own game",bad:!1},{id:"r3",label:'"Allow this game to use your camera"',bad:!0,why:"A puzzle game does not need to see you. Ask a grown-up first."},{id:"r4",label:'"Click to get free game money, hurry!"',bad:!0,why:"Anything that says hurry is trying to stop you from thinking."},{id:"r5",label:"The volume button",bad:!1},{id:"r6",label:"A link a stranger sent you in a chat",bad:!0,why:"Links from strangers can take you somewhere unsafe."}]},{type:"written",prompt:'Explain the "pause and check" rule in your own words, like you are teaching it to a younger cousin.',hint:"Two sentences is perfect.",guide:"A good answer says: stop before tapping or believing, and show or ask a trusted grown-up, especially when something is exciting or in a hurry. Praise them warmly for being able to teach it to someone else."}],action:'Teach one person in your house the "pause and check" rule.'}],I8e={adult:{key:"adult",label:"Adults",modules:T8e,tiers:fP},teen:{key:"teen",label:"Teens (13–17)",modules:N8e,tiers:AP},kid:{key:"kid",label:"Kids (8–12, with a parent)",modules:_8e,tiers:hP}};function ane(e){return e.steps.filter(t=>t.type!=="lesson")}function P8e(e){return Math.ceil(ane(e).length*.67)}function one({kid:e=!1}){return u.jsx("div",{className:`rounded-3xl p-6 md:p-8 ${e?"bg-white border-2 border-slate-200":"bg-white/5 border border-white/10"}`,children:u.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-6",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsxs("p",{className:`inline-flex items-center gap-2 text-xs font-bold uppercase tracking-widest ${e?"text-yellow-600":"text-sky"}`,children:[u.jsx(Mo,{className:"w-3.5 h-3.5"})," For your organisation"]}),u.jsx("h3",{className:`text-xl md:text-2xl font-heading font-extrabold mt-2 ${e?"text-slate-900":"text-white"}`,children:"Protecting a business, not just a phone?"}),u.jsx("p",{className:`text-sm mt-2 max-w-xl leading-relaxed ${e?"text-slate-600":"text-white/55"}`,children:"See our cybersecurity offerings — managed detection, POPIA-aligned governance, network security and incident response."})]}),u.jsxs(Ft,{to:"/services/cybersecurity",className:`inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-bold text-sm transition-colors flex-shrink-0 ${e?"bg-slate-900 text-white hover:bg-slate-800":"bg-azure text-white hover:bg-sky"}`,children:["View cybersecurity services ",u.jsx(qA,{className:"w-4 h-4"})]})]})})}const j8e="https://media.base44.com/images/public/69e5fadb62865073c43a0307/35884f667_generated_image.png";function O8e(){return u.jsx("section",{className:"py-16",children:u.jsx(_e.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"max-w-5xl mx-auto px-6 lg:px-8",children:u.jsxs("div",{className:"rounded-[2rem] bg-white shadow-[0_10px_40px_rgba(15,60,90,0.08)] p-8 md:p-12 flex flex-col md:flex-row items-center gap-8 md:gap-12",children:[u.jsx("img",{src:j8e,alt:"Doctor Ngobeni",className:"w-48 h-60 md:w-56 md:h-72 rounded-3xl object-cover object-top ring-8 ring-sky-50 flex-shrink-0"}),u.jsxs("div",{className:"font-body",children:[u.jsx(nW,{className:"w-8 h-8 text-azure/40"}),u.jsx("p",{className:"text-lg md:text-xl text-slate-700 leading-relaxed mt-3",children:"Most online harm in South African homes begins with a single convincing message or a frightening chat that nobody felt able to talk about, and a few calm habits learnt together as a family are often all it takes to 
1412stop that harm before it starts."}),u.jsx("p",{className:"mt-6 text-base font-semibold text-slate-900",children:"Doctor Ngobeni"}),u.jsx("p",{className:"text-sm text-slate-500",children:"Information Security Manager, Sourceworx"})]})]})})})}const E$="https://source-worx-core.base44.app/cyber-savvy",F8e="Cyber Savvy SA — a free, practical cybersecurity programme for South African families. Small habits, safer phones, stronger homes.";function L8e(){const[e,t]=_.useState(!1),n=a=>{const o=encodeURIComponent(E$),s=encodeURIComponent(F8e),l={whatsapp:`https://wa.me/?text=${s}%20${o}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${o}`,x:`https://twitter.com/intent/tweet?text=${s}&url=${o}`,linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${o}`};window.open(l[a],"_blank","noopener,noreferrer,width=620,height=600")},r=async()=>{try{await navigator.clipboard.writeText(E$),t(!0),setTimeout(()=>t(!1),2200)}catch{t(!1)}},i=[{id:"whatsapp",label:"WhatsApp",icon:Pse,tint:"bg-emerald-600 hover:bg-emerald-700"},{id:"facebook",label:"Facebook",icon:Xoe,tint:"bg-blue-600 hover:bg-blue-700"},{id:"x",label:"X",icon:Sle,tint:"bg-slate-900 hover:bg-black"},{id:"linkedin",label:"LinkedIn",icon:l3,tint:"bg-sky-800 hover:bg-sky-900"}];return u.jsx("section",{className:"pb-16",children:u.jsx("div",{className:"max-w-6xl mx-auto px-6 lg:px-8",children:u.jsxs(_e.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"rounded-3xl bg-white/80 p-7 md:p-9 shadow-sm border border-slate-100",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[u.jsx("span",{className:"w-10 h-10 rounded-xl bg-azure/10 text-azure flex items-center justify-center",children:u.jsx(sle,{className:"w-5 h-5"})}),u.jsx("h3",{className:"text-xl md:text-2xl font-heading font-bold text-slate-900",children:"Share Cyber Savvy SA"})]}),u.jsx("p",{className:"text-sm text-slate-600 max-w-xl leading-relaxed mb-6",children:"Help a friend, colleague or family member find the programme — share it where they already are."}),u.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i.map(a=>{const o=a.icon;return u.jsxs("button",{onClick:()=>n(a.id),className:`inline-flex items-center gap-2 px-6 py-3.5 rounded-full text-white font-bold text-base transition-colors shadow-md ${a.tint}`,children:[u.jsx(o,{className:"w-5 h-5"})," ",a.label]},a.id)}),u.jsxs("button",{onClick:r,className:"inline-flex items-center gap-2 px-6 py-3.5 rounded-full bg-slate-800 text-white font-bold text-base hover:bg-slate-900 transition-colors shadow-md",children:[e?u.jsx(bg,{className:"w-5 h-5 text-emerald-400"}):u.jsx(gse,{className:"w-5 h-5"}),e?"Link copied":"Copy link"]})]})]})})})}function ON({img:e,eyebrow:t,title:n,body:r,meta:i,to:a,cta:o,tint:s,delay:l=0}){return u.jsxs(_e.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:l},className:"rounded-[2rem] overflow-hidden bg-white shadow-[0_10px_40px_rgba(15,60,90,0.08)] flex flex-col",children:[u.jsx("img",{src:e,alt:"",className:"w-full h-48 object-cover"}),u.jsxs("div",{className:"p-7 flex flex-col flex-1 font-body",children:[u.jsx("span",{className:`self-start text-xs font-semibold rounded-full px-3 py-1 ${s}`,children:t}),u.jsx("h3",{className:"text-2xl font-heading font-bold text-slate-900 mt-4",children:n}),u.jsx("p",{className:"text-sm text-slate-600 mt-3 leading-relaxed flex-1",children:r}),u.jsx("div",{className:"flex gap-4 mt-5 text-xs text-slate-500",children:i}),u.jsxs(Ft,{to:a,className:"mt-6 inline-flex items-center justify-center gap-2 px-6 py-3 rounded-full bg-azure text-white font-semibold text-sm hover:bg-sky transition-colors",children:[o," ",u.jsx(qA,{className:"w-4 h-4"})]})]})]})}const D8e="https://media.base44.com/images/public/69e5fadb62865073c43a0307/a9f1d2111_generated_image.png",M8e=[{stat:"R2.4bn",label:"lost to digital banking crime in South Africa, per SABRIC"},{stat:"70%+",label:"of those losses came through banking apps and social engineering"},{stat:"20 min",label:"a week, on your own phone, for four weeks"}];function U8e(){return u.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-sky-50 via-slate-50 to-emerald-50/40 font-body",children:[u.jsxs("section",{className:"max-w-6xl mx-auto px-6 lg:px-8 pt-10 md:pt-16 pb-12 grid md:grid-cols-2 gap-10 items-center",children:[u.jsxs("div",{children:[u.jsxs(_e.span,{initial:{opacity:0}
1412,animate:{opacity:1},className:"inline-flex items-center gap-2 text-xs font-semibold text-azure bg-white rounded-full px-4 py-2 shadow-sm",children:[u.jsx(Mo,{className:"w-3.5 h-3.5"})," A Sourceworx programme · October 2026"]}),u.jsx(_e.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.15},className:"text-4xl md:text-6xl font-heading font-bold text-slate-900 tracking-tight leading-[1.05] mt-6",children:"Cyber Savvy SA"}),u.jsx(_e.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},className:"text-lg text-slate-600 mt-5 leading-relaxed",children:"Small habits, safer phones and stronger homes, in a free and practical programme of around fifteen minutes a week that you complete on your own phone."}),u.jsxs(_e.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.45},className:"flex flex-wrap gap-3 mt-8",children:[u.jsxs(Ft,{to:"/cyber-savvy/adults",className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full bg-azure text-white font-semibold text-sm hover:bg-sky transition-colors shadow-lg shadow-azure/20",children:["Start the adult path ",u.jsx(qA,{className:"w-4 h-4"})]}),u.jsx(Ft,{to:"/cyber-savvy/teens",className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full bg-white text-slate-800 font-semibold text-sm shadow-sm hover:shadow-md transition-shadow",children:"Teens, 13 to 17"}),u.jsx(Ft,{to:"/cyber-savvy/kids",className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full bg-white text-slate-800 font-semibold text-sm shadow-sm hover:shadow-md transition-shadow",children:"Kids, with a parent"})]})]}),u.jsx(_e.img,{initial:{opacity:0,scale:.97},animate:{opacity:1,scale:1},transition:{delay:.2},src:D8e,alt:"A South African family using their devices safely together",className:"w-full aspect-[4/3] object-cover rounded-[2rem] shadow-[0_20px_60px_rgba(15,60,90,0.15)]"})]}),u.jsx("section",{className:"max-w-6xl mx-auto px-6 lg:px-8 grid grid-cols-1 md:grid-cols-3 gap-5",children:M8e.map((e,t)=>u.jsxs(_e.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.08},className:"rounded-3xl bg-white/80 p-6 shadow-sm",children:[u.jsx("p",{className:"text-3xl font-heading font-bold text-azure",children:e.stat}),u.jsx("p",{className:"text-sm text-slate-600 mt-2 leading-relaxed",children:e.label})]},t))}),u.jsx(O8e,{}),u.jsx("section",{className:"pb-16",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-6 lg:px-8",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-heading font-bold text-slate-900 text-center",children:"Choose your path"}),u.jsx("p",{className:"text-slate-500 text-center mt-3 max-w-xl mx-auto",children:"Three separate environments, each with its own content and its own consent flow."}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mt-10",children:[u.jsx(ON,{img:_A.adultModule,eyebrow:"Adults",tint:"bg-sky-50 text-azure",title:"Personal and small business use",to:"/cyber-savvy/adults",cta:"Enter the adult path",body:"Banking scams, WhatsApp hijacking, fake invoices and voice clones, followed by three advanced weeks on AI, POPIA and privacy and hardening your devices, including a real deepfake test.",meta:u.jsxs(u.Fragment,{children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(bs,{className:"w-3.5 h-3.5"})," 7 sections · ~95 min"]}),u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Om,{className:"w-3.5 h-3.5"})," Certificate"]})]})}),u.jsx(ON,{img:_A.teenHero,eyebrow:"Teens, 13 to 17",tint:"bg-emerald-50 text-emerald-700",delay:.08,title:"Group chats, scams and AI fakes",to:"/cyber-savvy/teens",cta:"Enter the teen path",body:"Cyberbullying and what actually helps, your digital footprint, the scams aimed at your age group, spotting AI fakes and locking down your accounts, all through real scenarios.",meta:u.jsxs(u.Fragment,{children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(bs,{className:"w-3.5 h-3.5"})," 5 sections · ~75 min"]}),u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Om,{className:"w-3.5 h-3.5"})," Certificate"]})]})}),u.jsx(ON,{img:_A.kidHero,eyebrow:"Kids, 8 to 12",tint:"bg-amber-50 text-amber-700",delay:.16,title:"Done together with a grown-up",to:"/cyber-savvy/kids",cta:"Enter the kids path",body:"Secret or share, the friendly stranger in the game, silly-sentence passwords and is it real, with drag-and-drop games, short videos and a printable certificate at the end.",meta:u.jsxs(u.Fragment,{children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(bs,{className:"w-3.5 h-3.5"})," 4 sections · ~30 min"]}),u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(dle,{className:"w-3.5 h-3.5"})," Parent-led"]})]})})]})]})}),u.jsx("section",{className:"pb-16",children:u.jsx("div",{className:"max-w-6xl mx-auto px-6 lg:px-8",children:u.jsx(one,{kid:!0})})}),u.jsx(L8e,{}),u.jsx("footer",{className:"border-t border-slate-200 py-10",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-6 lg:px-8 flex flex-wrap gap-4 items-center justify-between",children:[u.jsx("p",{className:"text-xs text-slate-500",children:"Cyber Savvy SA is an awareness programme by Sourceworx. Sourceworx is the responsible party under POPIA. Programme data is deleted on 31 January 2027."}),u.jsx(Ft,{to:"/privacy",className:"text-xs font-semibold text-azure",children:"Privacy notice"})]})})]})}const UO="cyber_savvy_session",RO="1.0";function FN(){try{const e=localStorage.getItem(UO);return e?JSON.parse(e):null}catch{return null}}function vB(e){localStorage.setItem(UO,JSON.stringify(e))}function LN(){localStorage.removeItem(UO)}function QO(e){const t=I8e[e].modules,[n,r]=_.useState(null),[i,a]=_.useState([]),[o,s]=_.useState([]),[l,c]=_.useState(null),[d,A]=_.useState(!0),h=_.useCallback(async(v,x)=>{var C,E,T;const B=await mr.functions.invoke("cyberProgramme",{action:"progress",participantId:v,token:x});return a(((C=B.data)==null?void 0:C.attempts)||[]),s(((E=B.data)==null?void 0:E.badges)||[]),((T=B.data)==null?void 0:T.participant)||null},[]);_.useEffect(()=>{const v=FN();if(!(v!=null&&v.token)||v.path!==e){A(!1);return}h(v.participantId,v.token).then(x=>{x?r(x):LN()}).catch(()=>LN()).finally(()=>A(!1))},[e,h]);const m=async v=>{r(v);const x=FN();x!=null&&x.token&&await h(v.id,x.token)},b=async(v,x)=>{var E,T;const B=FN(),C=await mr.functions.invoke("cyberProgramme",{action:"completeModule",participantId:n.id,token:B==null?void 0:B.token,moduleId:v.id,moduleLabel:`${v.section||v.title} complete`,moduleCount:t.length,week:v.week,score:x.score,total:x.total,passed:x.passed,seconds:x.seconds});a(((E=C.data)==null?void 0:E.attempts)||[]),s(((T=C.data)==null?void 0:T.badges)||[])},g=()=>{LN(),r(null),a([]),s([]),c(null)},y=t.every(v=>i.some(x=>x.passed&&x.module_id===v.id));return{modules:t,participant:n,attempts:i,badges:o,activeModule:l,setActiveModule:c,loading:d,onEnrolled:m,completeModule:b,signOut:g,allComplete:y}}function HO({tiers:e,values:t,onChange:n,kid:r=!1}){return u.jsx("div",{className:"space-y-3",children:e.map(i=>{const a=i.locked?!0:!!t[i.id];return u.jsx("div",{className:`rounded-2xl p-4 border ${r?"bg-white border-slate-200":"bg-white/5 border-white/10"}`,children:u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:`text-sm font-bold ${r?"text-slate-900":"text-white"}`,children:i.label}),u.jsx("p",{className:`text-xs mt-1.5 leading-relaxed ${r?"text-slate-600":"text-white/55"}`,children:i.descriptor})]}),i.locked?u.jsxs("span",{className:`flex items-center gap-1 text-xs font-semibold flex-shrink-0 ${r?"text-slate-500":"text-white/50"}`,children:[u.jsx(Mh,{className:"w-3.5 h-3.5"})," Required"]}):u.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[u.jsx("button",{type:"button",onClick:()=>n(i.id,!1),className:`px-3 py-1.5 rounded-full text-xs font-bold border transition-colors ${a?r?"bg-white text-slate-600 border-slate-300":"bg-transparent text-white/60 border-white/25":r?"bg-slate-900 text-white border-slate-900":"bg-white text-midnight border-white"}`,children:"No"}),u.jsx("button",{type:"button",onClick:()=>n(i.id,!0),className:`px-3 py-1.5 rounded-full text-xs font-bold border transition-colors ${a?r?"bg-slate-900 text-white border-slate-900":"bg-white text-midnight border-white":r?"bg-white text-slate-600 border-slate-300":"bg-transparent text-white/60 border-white/25"}`,children:"Yes"})]})]})},i.id)})})}function $O(e,t){return e.map(n=>({id:n.id,granted:n.locked?!0:!!t[n.id]}))}async function R8e({email:e,displayName:t,consents:n,tiers:r}){var o;const i=await mr.functions.invoke("cyberProgramme",{action:"enrolAdult",email:e,displayName:t,consents:$O(r,n),consentMap:n,consentVersion:RO});if((o=i.data)!=null&&o.error)throw new Error(i.data.error);const a=i.data.participant;return vB({participantId:a.id,token:i.data.token,path:"adult",displayName:t,email:e}),a}async function Q8e({email:e,displayName:t,guardianEmail:n,consents:r,tiers:i}){var s;const a=await mr.functions.invoke("cyberProgramme",{action:"enrolAdult",path:"teen",email:e,displayName:t,guardianEmail:n,consents:$O(i,r),consentMap:r,consentVersion:RO});if((s=a.data)!=null&&s.error)throw new Error(a.data.error);const o=a.data.participant;return vB({participantId:o.id,token:a.data.token,path:"teen",displayName:t,email:e}),o}async function H8e({guardianEmail:e,guardianName:t,childName:n,ageBand:r,consents:i,tiers:a}){var l;const o=await mr.functions.invoke("cyberProgramme",{action:"enrolChild",guardianEmail:e,guardianName:t,childName:n,ageBand:r,consents:$O(a,i),c
1412onsentMap:i,consentVersion:RO});if((l=o.data)!=null&&l.error)throw new Error(o.data.error);const s=o.data.participant;return vB({participantId:s.id,token:o.data.token,path:"kid",displayName:n,email:e}),s}function $8e({onEnrolled:e}){const[t,n]=_.useState(""),[r,i]=_.useState(""),[a,o]=_.useState({}),[s,l]=_.useState(!1),[c,d]=_.useState(""),A=(m,b)=>o(g=>({...g,[m]:b})),h=async m=>{if(m.preventDefault(),d(""),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))return d("Please enter a valid email address.");if(!r.trim())return d("Please enter the name you want on your certificate.");l(!0);try{const b=await R8e({email:t.trim(),displayName:r.trim(),consents:a,tiers:fP});e(b)}catch(b){d(b.message||"Something went wrong. Please try again."),l(!1)}};return u.jsxs(_e.form,{onSubmit:h,initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"rounded-3xl border border-white/10 bg-white/5 p-6 md:p-8 backdrop-blur",children:[u.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-sky",children:"Register · Adults"}),u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-white mt-3",children:"Twenty minutes a week. Your own phone."}),u.jsx("p",{className:"text-sm text-white/55 mt-2 leading-relaxed",children:"We ask for two things only, and you choose what else we may do with them."}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-7",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-bold text-white/70 uppercase tracking-widest",children:"Email address"}),u.jsx("input",{type:"email",value:t,onChange:m=>n(m.target.value),className:"mt-2 w-full rounded-xl bg-white/5 border border-white/15 px-4 py-3 text-white text-sm placeholder:text-white/30 focus:border-azure outline-none",placeholder:"[email protected]"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-bold text-white/70 uppercase tracking-widest",children:"Name for your certificate"}),u.jsx("input",{value:r,onChange:m=>i(m.target.value),className:"mt-2 w-full rounded-xl bg-white/5 border border-white/15 px-4 py-3 text-white text-sm placeholder:text-white/30 focus:border-azure outline-none",placeholder:"Thandi Mokoena"})]})]}),u.jsxs("div",{className:"mt-8",children:[u.jsx("p",{className:"text-xs font-bold text-white/70 uppercase tracking-widest mb-4",children:"Your choices"}),u.jsx(HO,{tiers:fP,values:a,onChange:A})]}),c&&u.jsx("p",{className:"text-sm text-red-400 mt-5",children:c}),u.jsxs("button",{type:"submit",disabled:s,className:"mt-7 w-full md:w-auto inline-flex items-center justify-center gap-2 px-8 py-4 rounded-full bg-azure text-white font-bold text-sm hover:bg-sky transition-colors disabled:opacity-60",children:[s?u.jsx(rd,{className:"w-4 h-4 animate-spin"}):u.jsx(Mo,{className:"w-4 h-4"}),s?"Setting up your path":"Start the first section"," ",!s&&u.jsx(qA,{className:"w-4 h-4"})]}),u.jsx("p",{className:"text-xs text-white/40 mt-4 leading-relaxed",children:"Your answers are stored under POPIA as the responsible party, Sourceworx. All programme data is deleted on 31 January 2027. You can withdraw any choice above at any time."})]})}function qO({pathKey:e,onEnrolled:t}){const n=e==="kid",[r,i]=_.useState(""),[a,o]=_.useState(!1),[s,l]=_.useState(""),c=async A=>{var g,y;A.preventDefault(),l("");const h=r.trim().toLowerCase();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h))return l("Please enter the email address you registered with.");o(!0);const m=await mr.functions.invoke("cyberProgramme",{action:"resume",email:h,path:e});o(!1);const b=(g=m.data)==null?void 0:g.participant;if(!b||!((y=m.data)!=null&&y.token))return l("We could not find a registration for that email address.");vB({participantId:b.id,token:m.data.token,path:e,displayName:b.display_name,email:h}),t(b)},d=n?"bg-white border-slate-300 text-slate-900 placeholder:text-slate-400 focus:border-yellow-400":"bg-white/5 border-white/15 text-white placeholder:text-white/30 focus:border-azure";return u.jsxs("form",{onSubmit:c,className:`rounded-3xl p-6 md:p-7 mt-6 ${n?"bg-white border-2 border-slate-200":"bg-white/5 border border-white/10"}`,children:[u.jsx("p",{className:`text-xs font-bold uppercase tracking-widest ${n?"text-yellow-600":"text-sky"}`,children:"Already registered?"}),u.jsx("h3",{className:`text-lg font-heading font-extrabold mt-2 ${n?"text-slate-900":"text-white"}`,children:"Pick up where you left off"}),u.jsxs("p",{className:`text-sm mt-2 ${n?"text-slate-600":"text-white/55"}`,children:["Enter the ",n?"parent's":""," email address used at registration and your progress, badges and certificate come back on any device."]}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mt-5",children:[u.jsx("input",{type:"email",value:r,onChange:A=>i(A.target.value),placeholder:"[email protected]",className:`flex-1 rounded-xl border px-4 py-3 text-sm outline-none ${d}`}),u.jsxs("button",{type:"submit",disabled:a,className:`inline-flex items-center justify-center gap-2 px-7 py-3 rounded-full font-bold text-sm disabled:opacity-60 ${n?"bg-yellow-400 text-slate-900":"bg-azure text-white hover:bg-sky"}`,children:[a?u.jsx(rd,{className:"w-4 h-4 animate-spin"}):u.jsx(Bse,{className:"w-4 h-4"}),a?"Finding you":"Continue"]})]}),s&&u.jsx("p",{className:`text-sm mt-3 ${n?"text-red-600":"text-red-400"}`,children:s})]})}function zO({modules:e,attempts:t,badges:n,displayName:r,kid:i=!1,onOpen:a,onCertificate:o}){const s=new Set(t.filter(y=>y.passed).map(y=>y.module_id)),l=e.filter(y=>s.has(y.id)).length,c=Math.round(l/e.length*100),d=e.find(y=>!s.has(y.id)),A=i?"bg-white border-2 border-slate-200":"bg-white/5 border border-white/10",h=i?"text-slate-900":"text-white",m=i?"text-slate-600":"text-white/55",b=i?"bg-yellow-400":"bg-azure",g=i?"bg-slate-200":"bg-white/10";return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:`rounded-3xl p-6 md:p-8 ${A}`,children:[u.jsxs("div",{className:"flex items-start justify-between gap-6 flex-wrap",children:[u.jsxs("div",{children:[u.jsx("p",{className:`text-xs font-bold uppercase tracking-widest ${i?"text-yellow-600":"text-sky"}`,children:i?"My safety adventure":"My programme"}),u.jsx("h2",{className:`text-2xl md:text-3xl font-heading font-extrabold mt-2 ${h}`,children:i?`Hi ${r}
1412!`:`Welcome back, ${r}`}),u.jsxs("p",{className:`text-sm mt-2 ${m}`,children:[l," of ",e.length," sections complete"]})]}),u.jsxs("div",{className:"text-right",children:[u.jsxs("p",{className:`text-4xl font-heading font-extrabold ${h}`,children:[c,"%"]}),u.jsx("p",{className:`text-xs ${m}`,children:"progress"})]})]}),u.jsx("div",{className:`h-2 rounded-full mt-6 ${g}`,children:u.jsx(_e.div,{className:`h-2 rounded-full ${b}`,initial:{width:0},animate:{width:`${c}%`},transition:{duration:.8}})}),d&&u.jsxs("button",{onClick:()=>a(d),className:`mt-6 inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-bold text-sm ${i?"bg-yellow-400 text-slate-900":"bg-azure text-white hover:bg-sky"} transition-colors`,children:[u.jsx(Jx,{className:"w-4 h-4"})," ",i?"Play":"Continue",": ",d.section||d.title]})]}),!d&&o&&u.jsxs(_e.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},className:`rounded-3xl p-6 md:p-8 text-center ${i?"bg-yellow-50 border-2 border-yellow-300":"bg-azure/10 border border-azure/40"}`,children:[u.jsx("p",{className:"text-4xl",children:i?"🎉":"🏅"}),u.jsx("h3",{className:`text-2xl font-heading font-extrabold mt-3 ${h}`,children:i?"Every section done!":"Programme complete"}),u.jsx("p",{className:`text-sm mt-2 ${m}`,children:i?"Grown-ups: the certificate is ready to download or print.":"Your certificate is ready to download or print."}),u.jsxs("button",{onClick:o,className:`mt-5 inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-bold text-sm ${i?"bg-yellow-400 text-slate-900 hover:bg-yellow-300":"bg-azure text-white hover:bg-sky"} transition-colors`,children:[u.jsx(tW,{className:"w-4 h-4"})," ",i?"See my certificate":"Get my certificate"]})]}),u.jsx("div",{className:"space-y-3",children:e.map((y,v)=>{const x=s.has(y.id),B=!x&&!!e.slice(0,v).find(C=>!s.has(C.id));return u.jsxs(_e.button,{onClick:()=>!B&&a(y),disabled:B,initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:v*.06},className:`w-full text-left rounded-2xl overflow-hidden flex flex-col sm:flex-row transition-colors ${A} ${B?"opacity-50":i?"hover:border-yellow-400":"hover:border-azure/60"}`,children:[y.cover&&u.jsx("img",{src:y.cover,alt:"",className:"w-full sm:w-44 h-32 sm:h-auto object-cover flex-shrink-0"}),u.jsxs("div",{className:"p-5 flex items-start gap-4 min-w-0",children:[u.jsx("span",{className:`w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0 ${x?"bg-emerald-500":B?i?"bg-slate-200":"bg-white/10":b}`,children:x?u.jsx(qV,{className:"w-5 h-5 text-white"}):B?u.jsx(Mh,{className:`w-4 h-4 ${i?"text-slate-500":"text-white/50"}`}):u.jsx(Jx,{className:`w-4 h-4 ${i?"text-slate-900":"text-white"}`})}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("p",{className:`text-xs font-bold uppercase tracking-widest ${i?"text-yellow-600":"text-sky"}`,children:y.section||y.title}),u.jsx("p",{className:`font-heading font-bold mt-1 ${h}`,children:y.title}),u.jsx("p",{className:`text-sm mt-1.5 leading-relaxed ${m}`,children:y.outcome}),u.jsxs("p",{className:`text-xs mt-2 flex items-center gap-1.5 ${m}`,children:[u.jsx(bs,{className:"w-3 h-3"})," about ",y.minutes," minutes"]})]})]})]},y.id)})}),u.jsxs("div",{className:`rounded-3xl p-6 ${A}`,children:[u.jsx("p",{className:`text-xs font-bold uppercase tracking-widest mb-4 ${i?"text-yellow-600":"text-sky"}`,children:"Badges earned"}),n.length===0?u.jsx("p",{className:`text-sm ${m}`,children:i?"Finish a section to win your first badge!":"Pass your first section to earn a badge."}):u.jsx("div",{className:"flex flex-wrap gap-3",children:n.map(y=>u.jsxs("span",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-full text-xs font-bold ${i?"bg-yellow-100 text-yellow-800":"bg-azure/15 text-sky"}`,children:[u.jsx(Om,{className:"w-3.5 h-3.5"})," ",y.label||y.badge_type]},y.id))})]}),u.jsx(one,{kid:i})]})}function q8e({video:e,kid:t}){if(!e)return null;const n=t?"text-yellow-600":"text-sky",r=t?"text-slate-500":"text-white/40";return u.jsxs("div",{className:"mt-7",children:[u.jsx("p",{className:`text-xs font-bold uppercase tracking-widest mb-3 ${n}`,children:"Watch"}),e.id?u.jsx("div",{className:`rounded-2xl overflow-hidden bg-black aspect-video ${t?"border-2 border-slate-200":"border border-white/10"}`,children:u.jsx("iframe",{className:"w-full h-full",src:`https://www.youtube-nocookie.com/embed/${e.id}?rel=0`,title:e.title,loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
1412 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}):u.jsxs("a",{href:`https://www.youtube.com/results?search_query=${encodeURIComponent(e.query)}`,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-4 rounded-2xl p-5 transition-colors ${t?"bg-sky-50 border-2 border-slate-200 hover:border-yellow-400":"bg-white/5 border border-white/10 hover:border-azure/60"}`,children:[u.jsx("span",{className:`w-12 h-12 rounded-full flex items-center justify-center flex-shrink-0 ${t?"bg-yellow-400":"bg-azure"}`,children:u.jsx(Jx,{className:`w-5 h-5 ${t?"text-slate-900":"text-white"}`})}),u.jsxs("span",{className:"min-w-0",children:[u.jsx("span",{className:`block font-heading font-bold text-sm ${t?"text-slate-900":"text-white"}`,children:e.title}),u.jsxs("span",{className:`block text-xs mt-1 inline-flex items-center gap-1.5 ${r}`,children:["Opens on YouTube in a new tab ",u.jsx(Xx,{className:"w-3 h-3"})]})]})]}),e.id&&u.jsx("p",{className:`text-xs mt-2 ${r}`,children:e.title})]})}function z8e({module:e,kid:t=!1,innerRef:n}){const r=e.steps.find(s=>s.type==="lesson")||{},i=r.facts||[],a=r.takeaways||[],o=t?"#F59E0B":"#009BDF";return u.jsxs("div",{ref:n,className:"relative bg-white w-full overflow-hidden",style:{width:820},children:[u.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:`radial-gradient(circle at 15% 18%, ${t?"rgba(245,158,11,0.14)":"rgba(0,155,223,0.12)"} 0%, transparent 40%),
1413            radial-gradient(circle at 88% 82%, ${t?"rgba(56,189,248,0.12)":"rgba(32,188,237,0.10)"} 0%, transparent 42%),
1414            radial-gradient(${t?"rgba(245,158,11,0.16)":"rgba(0,155,223,0.13)"} 1px, transparent 1.4px)`,backgroundSize:"100% 100%, 100% 100%, 22px 22px"}}),u.jsx("div",{className:"relative h-2",style:{background:o}}),u.jsxs("div",{className:"relative px-10 pt-8 pb-10",children:[u.jsxs("div",{className:"flex items-start justify-between gap-6",children:[u.jsxs("div",{children:[u.jsxs("p",{className:"text-[11px] font-bold uppercase tracking-[0.25em]",style:{color:o},children:["Cyber Savvy SA · ",t?"Kids path":"Adult path"," · ",e.section||e.title]}),u.jsx("h1",{className:"text-3xl font-heading font-extrabold text-slate-900 mt-2 leading-tight",children:e.title}),u.jsx("p",{className:"text-sm text-slate-600 mt-2 max-w-xl leading-relaxed",children:e.outcome})]}),u.jsx("img",{src:_A.sourceworxLogo,alt:"Sourceworx",className:"w-40 flex-shrink-0",crossOrigin:"anonymous"})]}),i.length>0&&u.jsx("div",{className:"grid grid-cols-3 gap-4 mt-8",children:i.map((s,l)=>u.jsxs("div",{className:"rounded-2xl bg-slate-50 border border-slate-200 p-4",children:[u.jsx("p",{className:"text-2xl font-heading font-extrabold text-slate-900",children:s.stat}),u.jsx("p",{className:"text-[11px] text-slate-500 mt-1.5 leading-snug",children:s.label})]},l))}),a.length>0&&u.jsxs("div",{className:"mt-8",children:[u.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.2em] text-slate-400",children:"Remember this"}),u.jsx("div",{className:"space-y-2.5 mt-3",children:a.map((s,l)=>u.jsxs("div",{className:"flex gap-3 items-start",children:[u.jsx("span",{className:"w-6 h-6 rounded-full flex items-center justify-center text-[11px] font-bold text-white flex-shrink-0",style:{background:o},children:l+1}),u.jsx("p",{className:"text-sm text-slate-700 leading-relaxed",children:s})]},l))})]}),u.jsxs("div",{className:"mt-8 rounded-2xl p-5 flex items-center gap-5",style:{background:t?"#FEF9E7":"#EAF7FD"},children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.2em]",style:{color:o},children:"Do this today"}),u.jsx("p",{className:"text-sm text-slate-800 mt-2 leading-relaxed font-medium",children:e.action})]}),t&&e.noteArt&&u.jsx("img",{src:e.noteArt,alt:"",crossOrigin:"anonymous",className:"w-56 h-56 object-contain flex-shrink-0"})]}),u.jsxs("div",{className:"flex items-end justify-between gap-6 mt-8 pt-5 border-t border-slate-200",children:[u.jsx("p",{className:"text-[10px] text-slate-400 leading-relaxed max-w-md",children:"Cyber Savvy SA is a free awareness programme by Sourceworx. Sourceworx is the responsible party under POPIA. Programme data is deleted on 31 January 2027. Stick this on the fridge, the notice board or the office wall."}),u.jsx("p",{className:"text-[10px] font-bold uppercase tracking-[0.2em] text-slate-400",children:"sourceworx.co.za"})]})]})]})}/*!
1415 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
1416 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
1417 * Released under MIT License
1418 *//*! *****************************************************************************
1419Copyright (c) Microsoft Corporation.
1420
1421Permission to use, copy, modify, and/or distribute this software for any
1422purpose with or without fee is hereby granted.
1423
1424THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1425REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1426AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1427INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1428LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1429OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1430PERFORMANCE OF THIS SOFTWARE.
1431***************************************************************************** */var pP=function(e,t){return pP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},pP(e,t)};function rc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pP(e,t);function n(){this.constructor=e}
vendor: 5,620 bytes, line 1431
1431e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var mP=function(){return mP=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},mP.apply(this,arguments)};function go(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(d){try{c(r.next(d))}catch(A){o(A)}}function l(d){try{c(r.throw(d))}catch(A){o(A)}}function c(d){d.done?a(d.value):i(d.value).then(s,l)}c((r=r.apply(e,[])).next())})}function Wa(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(d){c=[6,d],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Rw(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||t)}var ud=(function(){function e(t,n,r,i){this.left=t,this.top=n,this.width=r,this.height=i}return e.prototype.add=function(t,n,r,i){return new e(this.left+t,this.top+n,this.width+r,this.height+i)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find(function(i){return i.width!==0});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),bB=function(e,t){return ud.fromClientRect(e,t.getBoundingClientRect())},V8e=function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),i=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new ud(0,0,r,i)},wB=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)===56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t},bi=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,a="";++i<n;){var o=e[i];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},N$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W8e=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Qw=0;Qw<N$.length;Qw++)W8e[N$.charCodeAt(Qw)]=Qw;var T$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ov=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Hw=0;Hw<T$.length;Hw++)ov[T$.charCodeAt(Hw)]=Hw;var K8e=function(e){var t=e.length*.75,n=e.length,r,i=0,a,o,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),d=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<n;r+=4)a=ov[e.charCodeAt(r)],o=ov[e.charCodeAt(r+1)],s=ov[e.charCodeAt(r+2)],l=ov[e.charCodeAt(r+3)],d[i++]=a<<2|o>>4,d[i++]=(o&15)<<4|s>>2,d[i++]=(s&3)<<6|l&63;return c},G8e=function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n},Y8e=function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n},gh=5,VO=11,DN=2,X8e=VO-gh,sne=65536>>gh,J8e=1<<gh,MN=J8e-1,Z8e=1024>>gh,eQe=sne+Z8e,tQe=eQe,nQe=32,rQe=tQe+nQe,iQe=65536>>VO,aQe=1<<X8e,oQe=aQe-1,_$=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},sQe=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},lQe=function(e,t){var n=K8e(e),r=Array.isArray(n)?Y8e(n):new Uint32Array(n),i=Array.isArray(n)?G8e(n):new Uint16Array(n),a=24,o=_$(i,a/2,r[4]/2),s=r[5]===2?_$(i,(a+r[4])/2):sQe(r,Math.ceil((a+r[4])/4));return new cQe(r[0],r[1],r[2],r[3],o,s)},cQe=(function(){function e(t,n,r,i,a,o){this.initialValue=t,this.errorValue=n,this.highStart=r,this.highValueIndex=i,this.index=a,this.data=o}return e.prototype.get=function(t){var n;if(t>=0){if(t<55296||t>56319&&t<=65535)return n=this.index[t>>gh],n=(n<<DN)+(t&MN),this.data[n];if(t<=65535)return n=this.index[sne+(t-55296>>gh)],n=(n<<DN)+(t&MN),this.data[n];if(t<this.highStart)return n=rQe-iQe+(t>>VO),n=this.index[n],n+=t>>gh&oQe,n=this.index[n],n=(n<<DN)+(t&MN),this.data[n];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),I$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1431+/",uQe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var $w=0;$w<I$.length;$w++)uQe[I$.charCodeAt($w)]=$w;var dQe=
vendor: 52,891 bytes, line 1431
1431"KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",
vendor: 30,206 bytes, line 1431
1431P$=50,AQe=1,lne=2,cne=3,fQe=4,hQe=5,j$=7,une=8,O$=9,SA=10,gP=11,F$=12,yP=13,pQe=14,sv=15,vP=16,qw=17,Qy=18,mQe=19,L$=20,bP=21,Hy=22,UN=23,Hp=24,ds=25,lv=26,cv=27,$p=28,gQe=29,Wf=30,yQe=31,zw=32,Vw=33,wP=34,xP=35,SP=36,j0=37,BP=38,Rx=39,Qx=40,RN=41,dne=42,vQe=43,bQe=[9001,65288],Ane="!",Tn="×",Ww="÷",CP=lQe(dQe),Qu=[Wf,SP],kP=[AQe,lne,cne,hQe],fne=[SA,une],D$=[cv,lv],wQe=kP.concat(fne),M$=[BP,Rx,Qx,wP,xP],xQe=[sv,yP],SQe=function(e,t){t===void 0&&(t="strict");var n=[],r=[],i=[];return e.forEach(function(a,o){var s=CP.get(a);if(s>P$?(i.push(!0),s-=P$):i.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return r.push(o),n.push(vP);if(s===fQe||s===gP){if(o===0)return r.push(o),n.push(Wf);var l=n[o-1];return wQe.indexOf(l)===-1?(r.push(r[o-1]),n.push(l)):(r.push(o),n.push(Wf))}if(r.push(o),s===yQe)return n.push(t==="strict"?bP:j0);if(s===dne||s===gQe)return n.push(Wf);if(s===vQe)return a>=131072&&a<=196605||a>=196608&&a<=262141?n.push(j0):n.push(Wf);n.push(s)}),[r,n,i]},QN=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?e.indexOf(i)!==-1:e===i)for(var a=n;a<=r.length;){a++;var o=r[a];if(o===t)return!0;if(o!==SA)break}if(i===SA)for(var a=n;a>0;){a--;var s=r[a];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var l=n;l<=r.length;){l++;var o=r[l];if(o===t)return!0;if(o!==SA)break}if(s!==SA)break}return!1},U$=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r===SA)n--;else return r}return 0},BQe=function(e,t,n,r,i){if(n[r]===0)return Tn;var a=r-1;if(Array.isArray(i)&&i[a]===!0)return Tn;var o=a-1,s=a+1,l=t[a],c=o>=0?t[o]:0,d=t[s];if(l===lne&&d===cne)return Tn;if(kP.indexOf(l)!==-1)return Ane;if(kP.indexOf(d)!==-1||fne.indexOf(d)!==-1)return Tn;if(U$(a,t)===une)return Ww;if(CP.get(e[a])===gP||(l===zw||l===Vw)&&CP.get(e[s])===gP||l===j$||d===j$||l===O$||[SA,yP,sv].indexOf(l)===-1&&d===O$||[qw,Qy,mQe,Hp,$p].indexOf(d)!==-1||U$(a,t)===Hy||QN(UN,Hy,a,t)||QN([qw,Qy],bP,a,t)||QN(F$,F$,a,t))return Tn;if(l===SA)return Ww;if(l===UN||d===UN)return Tn;if(d===vP||l===vP)return Ww;if([yP,sv,bP].indexOf(d)!==-1||l===pQe||c===SP&&xQe.indexOf(l)!==-1||l===$p&&d===SP||d===L$||Qu.indexOf(d)!==-1&&l===ds||Qu.indexOf(l)!==-1&&d===ds||l===cv&&[j0,zw,Vw].indexOf(d)!==-1||[j0,zw,Vw].indexOf(l)!==-1&&d===lv||Qu.indexOf(l)!==-1&&D$.indexOf(d)!==-1||D$.indexOf(l)!==-1&&Qu.indexOf(d)!==-1||[cv,lv].indexOf(l)!==-1&&(d===ds||[Hy,sv].indexOf(d)!==-1&&t[s+1]===ds)||[Hy,sv].indexOf(l)!==-1&&d===ds||l===ds&&[ds,$p,Hp].indexOf(d)!==-1)return Tn;if([ds,$p,Hp,qw,Qy].indexOf(d)!==-1)for(var A=a;A>=0;){var h=t[A];if(h===ds)return Tn;if([$p,Hp].indexOf(h)!==-1)A--;else break}if([cv,lv].indexOf(d)!==-1)for(var A=[qw,Qy].indexOf(l)!==-1?o:a;A>=0;){var h=t[A];if(h===ds)return Tn;if([$p,Hp].indexOf(h)!==-1)A--;else break}if(BP===l&&[BP,Rx,wP,xP].indexOf(d)!==-1||[Rx,wP].indexOf(l)!==-1&&[Rx,Qx].indexOf(d)!==-1||[Qx,xP].indexOf(l)!==-1&&d===Qx||M$.indexOf(l)!==-1&&[L$,lv].indexOf(d)!==-1||M$.indexOf(d)!==-1&&l===cv||Qu.indexOf(l)!==-1&&Qu.indexOf(d)!==-1||l===Hp&&Qu.indexOf(d)!==-1||Qu.concat(ds).indexOf(l)!==-1&&d===Hy&&bQe.indexOf(e[s])===-1||Qu.concat(ds).indexOf(d)!==-1&&l===Qy)return Tn;if(l===RN&&d===RN){for(var m=n[a],b=1;m>0&&(m--,t[m]===RN);)b++;if(b%2!==0)return Tn}return l===zw&&d===Vw?Tn:Ww},CQe=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=SQe(e,t.lineBreak),r=n[0],i=n[1],a=n[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(i=i.map(function(s){return[ds,Wf,dne].indexOf(s)!==-1?j0:s}));var o=t.wordBreak==="keep-all"?a.map(function(s,l){return s&&e[l]>=19968&&e[l]<=40959}):void 0;return[r,i,o]},kQe=(function(){function e(t,n,r,i){this.codePoints=t,this.required=n===Ane,this.start=r,this.end=i}return e.prototype.slice=function(){return bi.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),EQe=function(e,t){var n=wB(e),r=CQe(n,t),i=r[0],a=r[1],o=r[2],s=n.length,l=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};for(var d=Tn;c<s&&(d=BQe(n,a,i,++c,o))===Tn;);if(d!==Tn||c===s){var A=new kQe(n,d,l,c);return l=c,{value:A,done:!1}}return{done:!0,value:null}}}},NQe=1,TQe=2,gb=4,R$=8,B2=10,Q$=47,Tv=92,_Qe=9,IQe=32,Kw=34,$y=61,PQe=35,jQe=36,OQe=37,Gw=39,Yw=40,qy=41,FQe=95,Lo=45,LQe=33,DQe=60,MQe=62,UQe=64,RQe=91,QQe=93,HQe=61,$Qe=123,Xw=63,qQe=125,H$=124,zQe=126,VQe=128,$$=65533,HN=42,ih=43,WQe=44,KQe=58,GQe=59,O0=46,YQe=0,XQe=8,JQe=11,ZQe=14,e7e=31,t7e=127,kc=-1,hne=48,pne=97,mne=101,n7e=102,r7e=117,i7e=122,gne=65,yne=69,vne=70,a7e=85,o7e=90,Ya=function(e){return e>=hne&&e<=57},s7e=function(e){return e>=55296&&e<=57343},qp=function(e){return Ya(e)||e>=gne&&e<=vne||e>=pne&&e<=n7e},l7e=function(e){return e>=pne&&e<=i7e},c7e=function(e){return e>=gne&&e<=o7e},u7e=function(e){return l7e(e)||c7e(e)},d7e=function(e){return e>=VQe},Jw=function(e){return e===B2||e===_Qe||e===IQe},C2=function(e){return u7e(e)||d7e(e)||e===FQe},q$=function(e){return C2(e)||Ya(e)||e===Lo},A7e=function(e){return e>=YQe&&e<=XQe||e===JQe||e>=ZQe&&e<=e7e||e===t7e},dA=function(e,t){return e!==Tv?!1:t!==B2},Zw=function(e,t,n){return e===Lo?C2(t)||dA(t,n):C2(e)?!0:!!(e===Tv&&dA(e,t))},$N=function(e,t,n){return e===ih||e===Lo?Ya(t)?!0:t===O0&&Ya(n):Ya(e===O0?t:e)},f7e=function(e){var t=0,n=1;(e[t]===ih||e[t]===Lo)&&(e[t]===Lo&&(n=-1),t++);for(var r=[];Ya(e[t]);)r.push(e[t++]);var i=r.length?parseInt(bi.apply(void 0,r),10):0;e[t]===O0&&t++;for(var a=[];Ya(e[t]);)a.push(e[t++]);var o=a.length,s=o?parseInt(bi.apply(void 0,a),10):0;(e[t]===yne||e[t]===mne)&&t++;var l=1;(e[t]===ih||e[t]===Lo)&&(e[t]===Lo&&(l=-1),t++);for(var c=[];Ya(e[t]);)c.push(e[t++]);var d=c.length?parseInt(bi.apply(void 0,c),10):0;return n*(i+s*Math.pow(10,-o))*Math.pow(10,l*d)},h7e={type:2},p7e={type:3},m7e={type:4},g7e={type:13},y7e={type:8},v7e={type:21},b7e={type:9},w7e={type:10},x7e={type:11},S7e={type:12},B7e={type:14},ex={type:23},C7e={type:1},k7e={type:25},E7e={type:24},N7e={type:26},T7e={type:27},_7e={type:28},I7e={type:29},P7e={type:31},EP={type:32},bne=(function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(wB(t))},e.prototype.read=function(){for(var t=[],n=this.consumeToken();n!==EP;)t.push(n),n=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Kw:return this.consumeStringToken(Kw);case PQe:var n=this.peekCodePoint(0),r=this.peekCodePoint(1),i=this.peekCodePoint(2);if(q$(n)||dA(r,i)){var a=Zw(n,r,i)?TQe:NQe,o=this.consumeName();return{type:5,value:o,flags:a}}break;case jQe:if(this.peekCodePoint(0)===$y)return this.consumeCodePoint(),g7e;break;case Gw:return this.consumeStringToken(Gw);case Yw:return h7e;case qy:return p7e;case HN:if(this.peekCodePoint(0)===$y)return this.consumeCodePoint(),B7e;break;case ih:if($N(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case WQe:return m7e;case Lo:var s=t,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if($N(s,l,c))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Zw(s,l,c))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(l===Lo&&c===MQe)return this.consumeCodePoint(),this.consumeCodePoint(),E7e;break;case O0:if($N(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Q$:if(this.peekCodePoint(0)===HN)for(this.consumeCodePoint();;){var d=this.consumeCodePoint();if(d===HN&&(d=this.consumeCodePoint(),d===Q$))return this.consumeToken();if(d===kc)return this.consumeToken()}break;case KQe:return N7e;case GQe:return T7e;case DQe:if(this.peekCodePoint(0)===LQe&&this.peekCodePoint(1)===Lo&&this.peekCodePoint(2)===Lo)return this.consumeCodePoint(),this.consumeCodePoint(),k7e;break;case UQe:var A=this.peekCodePoint(0),h=this.peekCodePoint(1),m=this.peekCodePoint(2);if(Zw(A,h,m)){var o=this.consumeName();return{type:7,value:o}}break;case RQe:return _7e;case Tv:if(dA(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case QQe:return I7e;case HQe:if(this.peekCodePoint(0)===$y)return this.consumeCodePoint(),y7e;break;case $Qe:return x7e;case qQe:return S7e;case r7e:case a7e:var b=this.peekCodePoint(0),g=this.peekCodePoint(1);return b===ih&&(qp(g)||g===Xw)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case H$:if(this.peekCodePoint(0)===$y)return this.consumeCodePoint(),b7e;if(this.peekCodePoint(0)===H$)return this.consumeCodePoint(),v7e;break;case zQe:if(this.peekCodePoint(0)===$y)return this.consumeCodePoint(),w7e;break;case kc:return EP}return Jw(t)?(this.consumeWhiteSpace(),P7e):Ya(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):C2(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:bi(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],n=this.consumeCodePoint();qp(n)&&t.length<6;)t.push(n),n=this.consumeCodePoint();for(var r=!1;n===Xw&&t.length<6;)t.push(n),n=this.consumeCodePoint(),r=!0;if(r){var i=parseInt(bi.apply(void 0,t.map(function(l){return l===Xw?hne:l})),16),a=parseInt(bi.apply(void 0,t.map(function(l){return l===Xw?vne:l})),16);return{type:30,start:i,end:a}}var o=parseInt(bi.apply(void 0,t),16);if(this.peekCodePoint(0)===Lo&&qp(this.peekCodePoint(1))){this.consumeCodePoint(),n=this.consumeCodePoint();for(var s=[];qp(n)&&s.length<6;)s.push(n),n=this.consumeCodePoint();var a=parseInt(bi.apply(void 0,s),16);return{type:30,start:o,end:a}}else return{type:30,start:o,end:o}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Yw?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Yw?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===kc)return{type:22,value:""};var n=this.peekCodePoint(0);if(n===Gw||n===Kw){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===kc||this.peekCodePoint(0)===qy)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),ex)}for(;;){var i=this.consumeCodePoint();if(i===kc||i===qy)return{type:22,value:bi.apply(void 0,t)};if(Jw(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===kc||this.peekCodePoint(0)===qy?(this.consumeCodePoint(),{type:22,value:bi.apply(void 0,t)}):(this.consumeBadUrlRemnants(),ex);if(i===Kw||i===Gw||i===Yw||A7e(i))return this.consumeBadUrlRemnants(),ex;if(i===Tv)if(dA(i,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ex;else t.push(i)}},e.prototype.consumeWhiteSpace=function(){for(;Jw(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===qy||t===kc)return;dA(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var n=5e4,r="";t>0;){var i=Math.min(n,t);r+=bi.apply(void 0,this._value.splice(0,i)),t-=i}return this._value.shift(),r},e.prototype.consumeStringToken=function(t){var n="",r=0;do{var i=this._value[r];if(i===kc||i===void 0||i===t)return n+=this.consumeStringSlice(r),{type:0,value:n};if(i===B2)return this._value.splice(0,r),C7e;if(i===Tv){var a=this._value[r+1];a!==kc&&a!==void 0&&(a===B2?(n+=this.consumeStringSlice(r),r=-1,this._value.shift()):dA(i,a)&&(n+=this.consumeStringSlice(r),n+=bi(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var t=[],n=gb,r=this.peekCodePoint(0);for((r===ih||r===Lo)&&t.push(this.consumeCodePoint());Ya(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(r===O0&&Ya(i))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),n=R$;Ya(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0),i=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((r===yne||r===mne)&&((i===ih||i===Lo)&&Ya(a)||Ya(i)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),n=R$;Ya(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[f7e(t),n]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),n=t[0],r=t[1],i=this.peekCodePoint(0),a=this.peekCodePoint(1),o=this.peekCodePoint(2);if(Zw(i,a,o)){var s=this.consumeName();return{type:15,number:n,flags:r,unit:s}}return i===OQe?(this.consumeCodePoint(),{type:16,number:n,flags:r}):{type:17,number:n,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(qp(t)){for(var n=bi(t);qp(this.peekCodePoint(0))&&n.length<6;)n+=bi(this.consumeCodePoint());Jw(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(n,16);return r===0||s7e(r)||r>1114111?$$:r}return t===kc?$$:t},e.prototype.consumeName=function(){for(var t="";;){var n=this.consumeCodePoint();if(q$(n))t+=bi(n);else if(dA(n,this.peekCodePoint(0)))t+=bi(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(n),t}},e})(),wne=(function(){function e(t){this._tokens=t}return e.create=function(t){var n=new bne;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var n=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return n;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var n=this.consumeComponentValue();if(n.type===32)return t;t.push(n),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var n={type:t,values:[]},r=this.consumeToken();;){if(r.type===32||O7e(r,t))return n;this.reconsumeToken(r),n.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var n={name:t.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return n;this.reconsumeToken(r),n.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?EP:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e})(),yb=function(e){return e.type===15},Hg=function(e){return e.type===17},Ar=function(e){return e.type===20},j7e=function(e){return e.type===0},NP=function(e,t){return Ar(e)&&e.value===t},xne=function(e){return e.type!==31},mg=function(e){return e.type!==31&&e.type!==4},tu=function(e){var t=[],n=[];return e.forEach(function(r){if(r.type===4){if(n.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(n),n=[];return}r.type!==31&&n.push(r)}),n.length&&t.push(n),t},O7e=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},QA=function(e){return e.type===17||e.type===15},Fi=function(e){return e.type===16||QA(e)},Sne=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Ea={type:17,number:0,flags:gb},WO={type:16,number:50,flags:gb},BA={type:16,number:100,flags:gb},uv=function(e,t,n){var r=e[0],i=e[1];return[Sr(r,t),Sr(typeof i<"u"?i:r,n)]},Sr=function(e,t){if(e.type===16)return e.number/100*t;if(yb(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},Bne="deg",Cne="grad",kne="rad",Ene="turn",xB={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case Bne:return Math.PI*t.number/180;case Cne:return Math.PI/200*t.number;case kne:return t.number;case Ene:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},Nne=function(e){return e.type===15&&(e.unit===Bne||e.unit===Cne||e.unit===kne||e.unit===Ene)},Tne=function(e){var t=e.filter(Ar).map(function(n){return n.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ea,Ea];case"to top":case"bottom":return nl(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ea,BA];case"to right":case"left":return nl(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[BA,BA];case"to bottom":case"top":return nl(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[BA,Ea];case"to left":case"right":return nl(270)}return 0},nl=function(e){return Math.PI*e/180},IA={name:"color",parse:function(e,t){if(t.type===18){var n=F7e[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(t.type===5){if(t.value.length===3){var r=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3);return CA(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(t.value.length===4){var r=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3),o=t.value.substring(3,4);return CA(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(t.value.length===6){var r=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6);return CA(parseInt(r,16),parseInt(i,16),parseInt(a,16),1)}if(t.value.length===8){var r=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6),o=t.value.substring(6,8);return CA(parseInt(r,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}}if(t.type===20){var s=nd[t.value.toUpperCase()];if(typeof s<"u")return s}return nd.TRANSPARENT}},PA=function(e){return(255&e)===0},sa=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+r+","+n+","+t/255+")":"rgb("+i+","+r+","+n+")"},CA=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(r*255)<<0)>>>0},z$=function(e,t){if(e.type===17)return e.number;if(e.type===16){var n=t===3?1:255;return t===3?e.number/100*n:Math.round(e.number/100*n)}return 0},V$=function(e,t){var n=t.filter(mg);if(n.length===3){var r=n.map(z$),i=r[0],a=r[1],o=r[2];return CA(i,a,o,1)}if(n.length===4){var s=n.map(z$),i=s[0],a=s[1],o=s[2],l=s[3];return CA(i,a,o,l)}return 0};function qN(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<1/2?t:n<2/3?(t-e)*6*(2/3-n)+e:e}var W$=function(e,t){var n=t.filter(mg),r=n[0],i=n[1],a=n[2],o=n[3],s=(r.type===17?nl(r.number):xB.parse(e,r))/(Math.PI*2),l=Fi(i)?i.number/100:0,c=Fi(a)?a.number/100:0,d=typeof o<"u"&&Fi(o)?Sr(o,1):1;if(l===0)return CA(c*255,c*255,c*255,1);var A=c<=.5?c*(l+1):c+l-c*l,h=c*2-A,m=qN(h,A,s+1/3),b=qN(h,A,s),g=qN(h,A,s-1/3);return CA(m*255,b*255,g*255,d)},F7e={hsl:W$,hsla:W$,rgb:V$,rgba:V$},_v=function(e,t){return IA.parse(e,wne.create(t).parseComponentValue())},nd={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},L7e={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(n){if(Ar(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},D7e={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},SB=function(e,t){var n=IA.parse(e,t[0]),r=t[1];return r&&Fi(r)?{color:n,stop:r}:{color:n,stop:null}},K$=function(e,t){var n=e[0],r=e[e.length-1];n.stop===null&&(n.stop=Ea),r.stop===null&&(r.stop=BA);for(var i=[],a=0,o=0;o<e.length;o++){var s=e[o].stop;if(s!==null){var l=Sr(s,t);l>a?i.push(l):i.push(a),a=l}else i.push(null)}for(var c=null,o=0;o<i.length;o++){var d=i[o];if(d===null)c===null&&(c=o);else if(c!==null){for(var A=o-c,h=i[c-1],m=(d-h)/(A+1),b=1;b<=A;b++)i[c+b-1]=m*b;c=null}}return e.map(function(g,y){var v=g.color;return{color:v,stop:Math.max(Math.min(1,i[y]/t),0)}})},M7e=function(e,t,n){var r=t/2,i=n/2,a=Sr(e[0],t)-r,o=i-Sr(e[1],n);return(Math.atan2(o,a)+Math.PI*2)%(Math.PI*2)},U7e=function(e,t,n){var r=typeof e=="number"?e:M7e(e,t,n),i=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),a=t/2,o=n/2,s=i/2,l=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[i,a-c,a+c,o-l,o+l]},Pl=function(e,t){return Math.sqrt(e*e+t*t)},G$=function(e,t,n,r,i){var a=[[0,0],[0,t],[e,0],[e,t]];return a.reduce(function(o,s){var l=s[0],c=s[1],d=Pl(n-l,r-c);return(i?d<o.optimumDistance:d>o.optimumDistance)?{optimumCorner:s,optimumDistance:d}:o},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},R7e=function(e,t,n,r,i){var a=0,o=0;switch(e.size){case 0:e.shape===0?a=o=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===1&&(a=Math.min(Math.abs(t),Math.abs(t-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(e.shape===0)a=o=Math.min(Pl(t,n),Pl(t,n-i),Pl(t-r,n),Pl(t-r,n-i));else if(e.shape===1){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),l=G$(r,i,t,n,!0),c=l[0],d=l[1];a=Pl(c-t,(d-n)/s),o=s*a}break;case 1:e.shape===0?a=o=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===1&&(a=Math.max(Math.abs(t),Math.abs(t-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(e.shape===0)a=o=Math.max(Pl(t,n),Pl(t,n-i),Pl(t-r,n),Pl(t-r,n-i));else if(e.shape===1){var s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r)),A=G$(r,i,t,n,!1),c=A[0],d=A[1];a=Pl(c-t,(d-n)/s),o=s*a}break}return Array.isArray(e.size)&&(a=Sr(e.size[0],r),o=e.size.length===2?Sr(e.size[1],i):a),[a,o]},Q7e=function(e,t){var n=nl(180),r=[];return tu(t).forEach(function(i,a){if(a===0){var o=i[0];if(o.type===20&&o.value==="to"){n=Tne(i);return}else if(Nne(o)){n=xB.parse(e,o);return}}var s=SB(e,i);r.push(s)}),{angle:n,stops:r,type:1}},tx=function(e,t){var n=nl(180),r=[];return tu(t).forEach(function(i,a){if(a===0){var o=i[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){n=Tne(i);return}else if(Nne(o)){n=(xB.parse(e,o)+nl(270))%nl(360);return}}var s=SB(e,i);r.push(s)}),{angle:n,stops:r,type:1}},H7e=function(e,t){var n=nl(180),r=[],i=1,a=0,o=3,s=[];return tu(t).forEach(function(l,c){var d=l[0];if(c===0){if(Ar(d)&&d.value==="linear"){i=1;return}else if(Ar(d)&&d.value==="radial"){i=2;return}}if(d.type===18){if(d.name==="from"){var A=IA.parse(e,d.values[0]);r.push({stop:Ea,color:A})}else if(d.name==="to"){var A=IA.parse(e,d.values[0]);r.push({stop:BA,color:A})}else if(d.name==="color-stop"){var h=d.values.filter(mg);if(h.length===2){var A=IA.parse(e,h[1]),m=h[0];Hg(m)&&r.push({stop:{type:16,number:m.number*100,flags:m.flags},color:A})}}}}),i===1?{angle:(n+nl(180))%nl(360),stops:r,type:i}:{size:o,shape:a,stops:r,position:s,type:i}},_ne="closest-side",Ine="farthest-side",Pne="closest-corner",jne="farthest-corner",One="circle",Fne="ellipse",Lne="cover",Dne="contain",$7e=function(e,t){var n=0,r=3,i=[],a=[];return tu(t).forEach(function(o,s){var l=!0;if(s===0){var c=!1;l=o.reduce(function(A,h){if(c)if(Ar(h))switch(h.value){case"center":return a.push(WO),A;case"top":case"left":return a.push(Ea),A;case"right":case"bottom":return a.push(BA),A}else(Fi(h)||QA(h))&&a.push(h);else if(Ar(h))switch(h.value){case One:return n=0,!1;case Fne:return n=1,!1;case"at":return c=!0,!1;case _ne:return r=0,!1;case Lne:case Ine:return r=1,!1;case Dne:case Pne:return r=2,!1;case jne:return r=3,!1}else if(QA(h)||Fi(h))return Array.isArray(r)||(r=[]),r.push(h),!1;return A},l)}if(l){var d=SB(e,o);i.push(d)}}),{size:r,shape:n,stops:i,position:a,type:2}},nx=function(e,t){var n=0,r=3,i=[],a=[];return tu(t).forEach(function(o,s){var l=!0;if(s===0?l=o.reduce(function(d,A){if(Ar(A))switch(A.value){case"center":return a.push(WO),!1;case"top":case"left":return a.push(Ea),!1;case"right":case"bottom":return a.push(BA),!1}else if(Fi(A)||QA(A))return a.push(A),!1;return d},l):s===1&&(l=o.reduce(function(d,A){if(Ar(A))switch(A.value){case One:return n=0,!1;case Fne:return n=1,!1;case Dne:case _ne:return r=0,!1;case Ine:return r=1,!1;case Pne:return r=2,!1;case Lne:case jne:return r=3,!1}else if(QA(A)||Fi(A))return Array.isArray(r)||(r=[]),r.push(A),!1;return d},l)),l){var c=SB(e,o);i.push(c)}}),{size:r,shape:n,stops:i,position:a,type:2}},q7e=function(e){return e.type===1},z7e=function(e){return e.type===2},KO={name:"image",parse:function(e,t){if(t.type===22){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(t.type===18){var r=Mne[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function V7e(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!Mne[e.name])}var Mne={"linear-gradient":Q7e,"-moz-linear-gradient":tx,"-ms-linear-gradient":tx,"-o-linear-gradient":tx,"-webkit-linear-gradient":tx,"radial-gradient":$7e,"-moz-radial-gradient":nx,"-ms-radial-gradient":nx,"-o-radial-gradient":nx,"-webkit-radial-gradient":nx,"-webkit-gradient":H7e},W7e={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var n=t[0];return n.type===20&&n.value==="none"?[]:t.filter(function(r){return mg(r)&&V7e(r)}).map(function(r){return KO.parse(e,r)})}},K7e={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(n){if(Ar(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},G7e={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return tu(t).map(function(n){return n.filter(Fi)}).map(Sne)}},Y7e={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return tu(t).map(function(n){return n.filter(Ar).map(function(r){return r.value}).join(" ")}).map(X7e)}},X7e=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},wm;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(wm||(wm={}));var J7e={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return tu(t).map(function(n){return n.filter(Z7e)})}},Z7e=function(e){return Ar(e)||Fi(e)},BB=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},eHe=BB("top"),tHe=BB("right"),nHe=BB("bottom"),rHe=BB("left"),CB=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,n){return Sne(n.filter(Fi))}}},iHe=CB("top-left"),aHe=CB("top-right"),oHe=CB("bottom-right"),sHe=CB("bottom-left"),kB=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,n){switch(n){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},lHe=kB("top"),cHe=kB("right"),uHe=kB("bottom"),dHe=kB("left"),EB=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,n){return yb
vendor: 7,909 bytes, line 1431
1431(n)?n.number:0}}},AHe=EB("top"),fHe=EB("right"),hHe=EB("bottom"),pHe=EB("left"),mHe={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gHe={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},yHe={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Ar).reduce(function(n,r){return n|vHe(r.value)},0)}},vHe=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},bHe={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},wHe={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},k2;(function(e){e.NORMAL="normal",e.STRICT="strict"})(k2||(k2={}));var xHe={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return k2.STRICT;case"normal":default:return k2.NORMAL}}},SHe={name:"line-height",initialValue:"normal",prefix:!1,type:4},Y$=function(e,t){return Ar(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:Fi(e)?Sr(e,t):t},BHe={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:KO.parse(e,t)}},CHe={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},TP={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},NB=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},kHe=NB("top"),EHe=NB("right"),NHe=NB("bottom"),THe=NB("left"),_He={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Ar).map(function(n){switch(n.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},IHe={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},TB=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},PHe=TB("top"),jHe=TB("right"),OHe=TB("bottom"),FHe=TB("left"),LHe={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},DHe={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},MHe={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&NP(t[0],"none")?[]:tu(t).map(function(n){for(var r={color:nd.TRANSPARENT,offsetX:Ea,offsetY:Ea,blur:Ea},i=0,a=0;a<n.length;a++){var o=n[a];QA(o)?(i===0?r.offsetX=o:i===1?r.offsetY=o:r.blur=o,i++):r.color=IA.parse(e,o)}return r})}},UHe={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},RHe={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var n=$He[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},QHe=function(e){var t=e.filter(function(n){return n.type===17}).map(function(n){return n.number});return t.length===6?t:null},HHe=function(e){var t=e.filter(function(l){return l.type===17}).map(function(l){return l.number}),n=t[0],r=t[1];t[2],t[3];var i=t[4],a=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var o=t[12],s=t[13];return t[14],t[15],t.length===16?[n,r,i,a,o,s]:null},$He={matrix:QHe,matrix3d:HHe},X$={type:16,number:50,flags:gb},qHe=[X$,X$],zHe={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(Fi);return n.length!==2?qHe:[n[0],n[1]]}},VHe={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Iv;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Iv||(Iv={}));var WHe={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return Iv.BREAK_ALL;case"keep-all":return Iv.KEEP_ALL;case"normal":default:return Iv.NORMAL}}},KHe={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(Hg(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Une={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},GHe={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Hg(t)?t.number:1}},YHe={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},XHe={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Ar).map(function(n){switch(n.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(n){return n!==0})}}
vendor: 7,192 bytes, line 1431
1431,JHe={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach(function(i){switch(i.type){case 20:case 0:n.push(i.value);break;case 17:n.push(i.number.toString());break;case 4:r.push(n.join(" ")),n.length=0;break}}),n.length&&r.push(n.join(" ")),r.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},ZHe={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},e9e={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Hg(t))return t.number;if(Ar(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},t9e={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Ar).map(function(n){return n.value})}},n9e={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Yi=function(e,t){return(e&t)!==0},r9e={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var n=t[0];return n.type===20&&n.value==="none"?[]:t}},i9e={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var n=t[0];if(n.type===20&&n.value==="none")return null;for(var r=[],i=t.filter(xne),a=0;a<i.length;a++){var o=i[a],s=i[a+1];if(o.type===20){var l=s&&Hg(s)?s.number:1;r.push({counter:o.value,increment:l})}}return r}},a9e={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var n=[],r=t.filter(xne),i=0;i<r.length;i++){var a=r[i],o=r[i+1];if(Ar(a)&&a.value!=="none"){var s=o&&Hg(o)?o.number:0;n.push({counter:a.value,reset:s})}}return n}},o9e={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(yb).map(function(n){return Une.parse(e,n)})}},s9e={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var n=t[0];if(n.type===20&&n.value==="none")return null;var r=[],i=t.filter(j7e);if(i.length%2!==0)return null;for(var a=0;a<i.length;a+=2){var o=i[a].value,s=i[a+1].value;r.push({open:o,close:s})}return r}},J$=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},l9e={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&NP(t[0],"none")?[]:tu(t).map(function(n){for(var r={color:255,offsetX:Ea,offsetY:Ea,blur:Ea,spread:Ea,inset:!1},i=0,a=0;a<n.length;a++){var o=n[a];NP(o,"inset")?r.inset=!0:QA(o)?(i===0?r.offsetX=o:i===1?r.offsetY=o:i===2?r.blur=o:r.spread=o,i++):r.color=IA.parse(e,o)}return r})}},c9e={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[0,1,2],r=[];return t.filter(Ar).forEach(function(i){switch(i.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),n.forEach(function(i){r.indexOf(i)===-1&&r.push(i)}),r}},u9e={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},d9e={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return yb(t)?t.number:0}},A9e=(function(){function e(t,n){var r,i;this.animationDuration=bt(t,o9e,n.animationDuration),this.backgroundClip=bt(t,L7e,n.backgroundClip),this.backgroundColor=bt(t,D7e,n.backgroundColor),this.backgroundImage=bt(t,W7e,n.backgroundImage),this.backgroundOrigin=bt(t,K7e,n.backgroundOrigin),this.backgroundPosition=bt(t,G7e,n.backgroundPosition),this.backgroundRepeat=bt(t,Y7e,n.backgroundRepeat),this.backgroundSize=bt(t,J7e,n.backgroundSize),this.borderTopColor=bt(t,eHe,n.borderTopColor),this.borderRightColor=bt(t,tHe,n.borderRightColor),this.borderBottomColor=bt(t,nHe,n.borderBottomColor),this.borderLeftColor=bt(t,rHe,n.borderLeftColor),this.borderTopLeftRadius=bt(t,iHe,n.borderTopLeftRadius),this.borderTopRightRadius=bt(t,aHe,n.borderTopRightRadius),this.borderBottomRightRadius=bt(t,oHe,n.borderBottomRightRadius),this.borderBottomLeftRadius=bt(t,sHe,n.borderBottomLeftRadius),this.borderTopStyle=bt(t,lHe,n.borderTopStyle),this.borderRightStyle=bt(t,cHe,n.borderRightStyle),this.borderBottomStyle=bt(t,uHe,n.borderBottomStyle),this.borderLeftStyle=bt(t,dHe,n.borderLeftStyle),this.borderTopWidth=bt(t,AHe,n.borderTopWidth),this.borderRightWidth=bt(t,fHe,n.borderRightWidth),this.borderBottomWidth=bt(t,hHe,n.borderBottomWidth),this.borderLeftWidth=bt(t,pHe,n.borderLeftWidth),this.boxShadow=bt(t,l9e,n.boxShadow),this.color=bt(t,mHe,n.color),this.direction=bt(t,gHe,n.direction),this.display=bt(t,yHe,n.display),this.float=bt(t,bHe,n.cssFloat),this.fontFamily=bt(t,JHe,n.fontFamily),this.fontSize=bt(t,ZHe,n.fontSize),this.fontStyle=bt(t,n9e,n.fontStyle),this.fontVariant=bt(t,t9e,n.fontVariant),this.fontWeight=bt(t,e9e,n.fontWeight),this.letterSpacing=bt(t,wHe,n.letterSpacing),this.lineBreak=bt(t,xHe,n.lineBreak),this.lineHeight=bt(t,SHe,n.lineHeight),this.listStyleImage=bt(t,BHe,n.listStyleImage),this.listStylePosition=bt(t,CHe,n.listStylePosition),this.listStyleType=bt(t,TP,n.listStyleType),this.marginTop=bt(t,kHe,n.marginTop),this.marginRight=bt(t,EHe,n.marginRight),this.marginBottom=bt(t,NHe,n.marginBottom),this.marginLeft=bt(t,THe,n.marginLeft),this.opacity=bt(t,GHe,n.opacity);var a=bt(t,_He,n.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=bt(t,IHe,n.overflowWrap),this.paddingTop=bt(t,PHe,n.paddingTop),this.paddingRight=bt(t,jHe,n.paddingRight),this.paddingBottom=bt(t,OHe,n.paddingBottom),this.paddingLeft=bt(t,FHe,n.paddingLeft),this.paintOrder=bt(t,c9e,n.paintOrder),this.position=bt(t,DHe,n.position),this.textAlign=bt(t,LHe,n.textAlign),this.textDecorationColor=bt(t,YHe,(r=n.textDecorationColor)!==null&&r!==void 0?r:n.color),this.textDecorationLine=bt(t,XHe,(i=n.textDecorationLine)!==null&&i!==void 0?i:n.textDecoration),this.textShadow=bt(t,MHe,n.textShadow),this.textTransform=bt(t,UHe,n.textTransform),this.transform=bt(t,RHe,n.transform),this.transformOrigin=bt(t,zHe,n.transformOrigin),this.visibility=bt(t,VHe,n.visibility),this.webkitTextStrokeColor=bt(t,u9e,n.webkitTextStrokeColor),this.webkitTextStrokeWidth=bt(t,d9e,n.webkitTextStrokeWidth),this.wordBreak=bt(t,WHe,n.wordBreak),this.zIndex=bt(t,KHe,n.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return PA(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return Yi(this.display,4)||Yi(this.display,33554432)||Yi(this.display,268435456)||Yi(this.display,536870912)||Yi(this.display,67108864)||Yi(this.display,134217728)},e})(),f9e=(function(){function e(t,n){this.content=bt(t,r9e,n.content),this.quotes=bt(t,s9e,n.quotes)}return e})(),Z$=(function(){function e(t,n){this.counterIncrement=bt(t,i9e,n.counterIncrement),this.counterReset=bt(t,a9e,n.counterReset)}return e}
vendor: 1,215 bytes, line 1431
1431)(),bt=function(e,t,n){var r=new bne,i=n!==null&&typeof n<"u"?n.toString():t.initialValue;r.write(i);var a=new wne(r.read());switch(t.type){case 2:var o=a.parseComponentValue();return t.parse(e,Ar(o)?o.value:t.initialValue);case 0:return t.parse(e,a.parseComponentValue());case 1:return t.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(t.format){case"angle":return xB.parse(e,a.parseComponentValue());case"color":return IA.parse(e,a.parseComponentValue());case"image":return KO.parse(e,a.parseComponentValue());case"length":var s=a.parseComponentValue();return QA(s)?s:Ea;case"length-percentage":var l=a.parseComponentValue();return Fi(l)?l:Ea;case"time":return Une.parse(e,a.parseComponentValue())}break}},h9e="data-html2canvas-debug",p9e=function(e){var t=e.getAttribute(h9e);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},_P=function(e,t){var n=p9e(e);return n===1||t===n},nu=(function(){function e(t,n){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,_P(n,3))debugger;this.styles=new A9e(t,window.getComputedStyle(n,null)),jP(n)&&(this.styles.animationDuration.some(function(r){return r>0}
1431)&&(n.style.animationDuration="0s"),this.styles.transform!==null&&(n.style.transform="none")),this.bounds=bB(this.context,n),_P(n,4)&&(this.flags|=16)}return e})(),m9e=
vendor: 26,159 bytes, line 1431
1431"AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",
1431eq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 22,882 bytes, line 1431
1431+/",dv=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var rx=0;rx<eq.length;rx++)dv[eq.charCodeAt(rx)]=rx;var g9e=function(e){var t=e.length*.75,n=e.length,r,i=0,a,o,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),d=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<n;r+=4)a=dv[e.charCodeAt(r)],o=dv[e.charCodeAt(r+1)],s=dv[e.charCodeAt(r+2)],l=dv[e.charCodeAt(r+3)],d[i++]=a<<2|o>>4,d[i++]=(o&15)<<4|s>>2,d[i++]=(s&3)<<6|l&63;return c},y9e=function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n},v9e=function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n},yh=5,GO=11,zN=2,b9e=GO-yh,Rne=65536>>yh,w9e=1<<yh,VN=w9e-1,x9e=1024>>yh,S9e=Rne+x9e,B9e=S9e,C9e=32,k9e=B9e+C9e,E9e=65536>>GO,N9e=1<<b9e,T9e=N9e-1,tq=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},_9e=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},I9e=function(e,t){var n=g9e(e),r=Array.isArray(n)?v9e(n):new Uint32Array(n),i=Array.isArray(n)?y9e(n):new Uint16Array(n),a=24,o=tq(i,a/2,r[4]/2),s=r[5]===2?tq(i,(a+r[4])/2):_9e(r,Math.ceil((a+r[4])/4));return new P9e(r[0],r[1],r[2],r[3],o,s)},P9e=(function(){function e(t,n,r,i,a,o){this.initialValue=t,this.errorValue=n,this.highStart=r,this.highValueIndex=i,this.index=a,this.data=o}return e.prototype.get=function(t){var n;if(t>=0){if(t<55296||t>56319&&t<=65535)return n=this.index[t>>yh],n=(n<<zN)+(t&VN),this.data[n];if(t<=65535)return n=this.index[Rne+(t-55296>>yh)],n=(n<<zN)+(t&VN),this.data[n];if(t<this.highStart)return n=k9e-E9e+(t>>GO),n=this.index[n],n+=t>>yh&T9e,n=this.index[n],n=(n<<zN)+(t&VN),this.data[n];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),nq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j9e=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ix=0;ix<nq.length;ix++)j9e[nq.charCodeAt(ix)]=ix;var O9e=1,WN=2,KN=3,rq=4,iq=5,F9e=7,aq=8,GN=9,YN=10,oq=11,sq=12,lq=13,cq=14,XN=15,L9e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)===56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t},D9e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,a="";++i<n;){var o=e[i];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},M9e=I9e(m9e),Ys="×",JN="÷",U9e=function(e){return M9e.get(e)},R9e=function(e,t,n){var r=n-2,i=t[r],a=t[n-1],o=t[n];if(a===WN&&o===KN)return Ys;if(a===WN||a===KN||a===rq||o===WN||o===KN||o===rq)return JN;if(a===aq&&[aq,GN,oq,sq].indexOf(o)!==-1||(a===oq||a===GN)&&(o===GN||o===YN)||(a===sq||a===YN)&&o===YN||o===lq||o===iq||o===F9e||a===O9e)return Ys;if(a===lq&&o===cq){for(;i===iq;)i=t[--r];if(i===cq)return Ys}if(a===XN&&o===XN){for(var s=0;i===XN;)s++,i=t[--r];if(s%2===0)return Ys}return JN},Q9e=function(e){var t=L9e(e),n=t.length,r=0,i=0,a=t.map(U9e);return{next:function(){if(r>=n)return{done:!0,value:null};for(var o=Ys;r<n&&(o=R9e(t,a,++r))===Ys;);if(o!==Ys||r===n){var s=D9e.apply(null,t.slice(i,r));return i=r,{value:s,done:!1}}return{done:!0,value:null}}}},H9e=function(e){for(var t=Q9e(e),n=[],r;!(r=t.next()).done;)r.value&&n.push(r.value.slice());return n},$9e=function(e){var t=123;if(e.createRange){var n=e.createRange();if(n.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height=t+"px",r.style.display="block",e.body.appendChild(r),n.selectNode(r);var i=n.getBoundingClientRect(),a=Math.round(i.height);if(e.body.removeChild(r),a===t)return!0}}return!1},q9e=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=t.firstChild,i=wB(r.data).map(function(l){return bi(l)}),a=0,o={},s=i.every(function(l,c){n.setStart(r,a),n.setEnd(r,a+l.length);var d=n.getBoundingClientRect();a+=l.length;var A=d.x>o.x||d.y>o.y;return o=d,c===0?!0:A});return e.body.removeChild(t),s},z9e=function(){return typeof new Image().crossOrigin<"u"},V9e=function(){return typeof new XMLHttpRequest().responseType=="string"},W9e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch{return!1}return!0},uq=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},K9e=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,a=t.toDataURL();i.src=a;var o=IP(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),dq(o).then(function(s){r.drawImage(s,0,0);var l=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var c=e.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=n+"px",uq(l)?dq(IP(n,n,0,0,c)):Promise.reject(!1)}).then(function(s){return r.drawImage(s,0,0),uq(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})},IP=function(e,t,n,r,i){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},dq=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Sa={get SUPPORT_RANGE_BOUNDS(){var e=$9e(document);return Object.defineProperty(Sa,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Sa.SUPPORT_RANGE_BOUNDS&&q9e(document);return Object.defineProperty(Sa,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=W9e(document);return Object.defineProperty(Sa,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?K9e(document):Promise.resolve(!1);return Object.defineProperty(Sa,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=z9e();return Object.defineProperty(Sa,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=V9e();return Object.defineProperty(Sa,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Sa,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Sa,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Pv=(function(){function e(t,n){this.text=t,this.bounds=n}return e})(),G9e=function(e,t,n,r){var i=J9e(t,n),a=[],o=0;return i.forEach(function(s){if(n.textDecorationLine.length||s.trim().length>0)if(Sa.SUPPORT_RANGE_BOUNDS){var l=Aq(r,o,s.length).getClientRects();if(l.length>1){var c=YO(s),d=0;c.forEach(function(h){a.push(new Pv(h,ud.fromDOMRectList(e,Aq(r,d+o,h.length).getClientRects()))),d+=h.length})}else a.push(new Pv(s,ud.fromDOMRectList(e,l)))}else{var A=r.splitText(s.length);a.push(new Pv(s,Y9e(e,r))),r=A}else Sa.SUPPORT_RANGE_BOUNDS||(r=r.splitText(s.length));o+=s.length}),a},Y9e=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(r,t);var a=bB(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),a}}return ud.EMPTY},Aq=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(e,t),i.setEnd(e,t+n),i},YO=function(e){if(Sa.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(n){return n.segment})}return H9e(e)},X9e=function(e,t){if(Sa.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map(function(r){return r.segment})}return e$e(e,t)},J9e=function(e,t){return t.letterSpacing!==0?YO(e):X9e(e,t)},Z9e=[32,160,4961,65792,65793,4153,4241],e$e=function(e,t){for(var n=EQe(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),r=[],i,a=function(){if(i.value){var o=i.value.slice(),s=wB(o),l="";s.forEach(function(c){Z9e.indexOf(c)===-1?l+=bi(c):(l.length&&r.push(l),r.push(bi(c)),l="")}),l.length&&r.push(l)}};!(i=n.next()).done;)a();return r},t$e=(function(){function e(t,n,r){this.text=n$e(n.data,r.textTransform),this.textBounds=G9e(t,this.text,r,n)}return e})(),n$e=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(r$e,i$e);case 2:return e.toUpperCase();default:return e}},r$e=/(^|\s|:|-|\(|\))([a-z])/g,i$e=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Qne=(function(e){rc(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.src=r.currentSrc||r.src,i.intrinsicWidth=r.naturalWidth,i.intrinsicHeight=r.naturalHeight,i.context.cache.addImage(i.src),i}return t})(nu),Hne=(function(e){rc(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.canvas=r,i.intrinsicWidth=r.width,i.intrinsicHeight=r.height,i}return t})(nu),$ne=(function(e){rc(t,e);function t(n,r){var i=e.call(this,n,r)||this,a=new XMLSerializer,o=bB(n,r);return r.setAttribute("width",o.width+"px"),r.setAttribute("height",o.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(r)),i.intrinsicWidth=r.width.baseVal.value,i.intrinsicHeight=r.height.baseVal.value,i.context.cache.addImage(i.svg),i}return t})(nu),qne=(function(e){rc(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.value=r.value,i}return t})(nu),PP=(function(e){rc(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.start=r.start,i.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,i}return t})(nu),a$e=[{type:15,flags:0,unit:"px",number:3}],o$e=[{type:16,flags:0,number:50}],s$e=function(e){return e.width>e.height?new ud(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new ud(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},l$e=function(e){var t=e.type===c$e?new Array(e.value.length+1).join("•"):e.value;return t.length===0?e.placeholder||"":t},E2="checkbox",N2="radio",c$e="password",fq=707406591,XO=(function(e){rc(t,e);function t(n,r){var i=e.call(this,n,r)||this;switch(i.type=r.type.toLowerCase(),i.checked=r.checked,i.value=l$e(r),(i.type===E2||i.type===N2)&&(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=s$e(i.bounds)),i.type){case E2:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=a$e;break;case N2:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=o$e;break}return i}return t})(nu),zne=(function(e){rc(t,e);function t(n,r){var i=e.call(this,n,r)||this,a=r.options[r.selectedIndex||0];return i.value=a&&a.text||"",i}return t})(nu),Vne=(function(e){rc(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.value=r.value,i}return t})(nu),Wne=(function(e){rc(t,e);function t(n,r){var i=e.call(this,n,r)||this;i.src=r.src,i.width=parseInt(r.width,10)||0,i.height=parseInt(r.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){i.tree=Gne(n,r.contentWindow.document.documentElement);var a=r.contentWindow.document.documentElement?_v(n,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):nd.TRANSPARENT,o=r.contentWindow.document.body?_v(n,getComputedStyle(r.contentWindow.document.body).backgroundColor):nd.TRANSPARENT;i.backgroundColor=PA(a)?PA(o)?i.styles.backgroundColor:o:a}}catch{}return i}return t})(nu),u$e=["OL","UL","MENU"],Hx=function(e,t,n,r){for(var i=t.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,Yne(i)&&i.data.trim().length>0)n.textNodes.push(new t$e(e,i,n.styles));else if(dm(i))if(ere(i)&&i.assignedNodes)i.assignedNodes().forEach(function(s){return Hx(e,s,n,r)});else{var o=Kne(e,i);o.styles.isVisible()&&(d$e(i,o,r)?o.flags|=4:A$e(o.styles)&&(o.flags|=2),u$e.indexOf(i.tagName)!==-1&&(o.flags|=8),n.elements.push(o),i.slot,i.shadowRoot?Hx(e,i.shadowRoot,o,r):!T2(i)&&!Xne(i)&&!_2(i)&&Hx(e,i,o,r))}},Kne=function(e,t){return OP(t)?new Qne(e,t):Jne(t)?new Hne(e,t):Xne(t)?new $ne(e,t):f$e(t)?new qne(e,t):h$e(t)?new PP(e,t):p$e(t)?new XO(e,t):_2(t)?new zne(e,t):T2(t)?new Vne(e,t):Zne(t)?new Wne(e,t):new nu(e,t)},Gne=function(e,t){var n=Kne(e,t);return n.flags|=4,Hx(e,t,n,n),n},d$e=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||JO(e)&&n.styles.isTransparent()},A$e=function(e){return e.isPositioned()||e.isFloating()},Yne=function(e){return e.nodeType===Node.TEXT_NODE},dm=function(e){return e.nodeType===Node.ELEMENT_NODE},jP=function(e){return dm(e)&&typeof e.style<"u"&&!$x(e)},$x=function(e){return typeof e.className=="object"},f$e=function(e){return e.tagName==="LI"},h$e=function(e){return e.tagName==="OL"},p$e=function(e){return e.tagName==="INPUT"},m$e=function(e){return e.tagName==="HTML"},Xne=function(e){return e.tagName==="svg"},JO=function(e){return e.tagName==="BODY"},Jne=function(e){return e.tagName==="CANVAS"},hq=function(e){return e.tagName==="VIDEO"},OP=function(e){return e.tagName==="IMG"},Zne=function(e){return e.tagName==="IFRAME"},pq=function(e){return e.tagName==="STYLE"},g$e=function(e){return e.tagName==="SCRIPT"},T2=function(e){return e.tagName==="TEXTAREA"},_2=function(e){return e.tagName==="SELECT"},ere=function(e){return e.tagName==="SLOT"},mq=function(e){return e.tagName.indexOf("-")>0},y$e=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var n=this.counters[t];return n&&n.length?n[n.length-1]:1},e.prototype.getCounterValues=function(t){var n=this.counters[t];return n||[]},e.prototype.pop=function(t){var n=this;t.forEach(function(r){return n.counters[r].pop()})},e.prototype.parse=function(t){var n=this,r=t.counterIncrement,i=t.counterReset,a=!0;r!==null&&r.forEach(function(s){var l=n.counters[s.counter];l&&s.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=s.increment)});var o=[];return a&&i.forEach(function(s){var l=n.counters[s.counter];o.push(s.counter),l||(l=n.counters[s.counter]=[]),l.push(s.reset)}),o},e})(),gq={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},yq={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},v$e={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},b$e={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},zp=function(e,t,n,r,i,a){return e<t||e>n?F0(e,i,a.length>0):r.integers.reduce(function(o,s,l){for(;e>=s;)e-=s,o+=r.values[l];return o},"")+a},tre=function(e,t,n,r){var i="";do n||e--,i=r(e)+i,e/=t;while(e*t>=t);return i},yi=function(e,t,n,r,i){var a=n-t+1;return(e<0?"-":"")+(tre(Math.abs(e),a,r,function(o){return bi(Math.floor(o%a)+t)})+i)},Df=function(e,t,n){n===void 0&&(n=". ");var r=t.length;return tre(Math.abs(e),r,!1,function(i){return t[Math.floor(i%r)]})+n},Zp=1,sA=2,lA=4,Av=8,Hu=function(e,t,n,r,i,a){if(e<-9999||e>9999)return F0(e,4,i.length>0);var o=Math.abs(e),s=i;if(o===0)return t[0]+s;for(var l=0;o>0&&l<=4;l++){var c=o%10;c===0&&Yi(a,Zp)&&s!==""?s=t[c]+s:c>1||c===1&&l===0||c===1&&l===1&&Yi(a,sA)||c===1&&l===1&&Yi(a,lA)&&e>100||c===1&&l>1&&Yi(a,Av)?s=t[c]+(l>0?n[l-1]:"")+s:c===1&&l>0&&(s=n[l-1]+s),o=Math.floor(o/10)}return(e<0?r:"")+s},vq="十百千萬",bq="拾佰仟萬",wq="マイナス",ZN="마이너스",F0=function(e,t,n){var r=n?". ":"",i=n?"、":"",a=n?", ":"",o=n?" ":"";switch(t){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=yi(e,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Df(e,"〇一二三四五六七八九",i);case 6:return zp(e,1,3999,gq,3,r).toLowerCase();case 7:return zp(e,1,3999,gq,3,r);case 8:return yi(e,945,969,!1,r);case 9:return yi(e,97,122,!1,r);case 10:return yi(e,65,90,!1,r);case 11:return yi(e,1632,1641,!0,r);case 12:case 49:return zp(e,1,9999,yq,3,r);case 35:return zp(e,1,9999,yq,3,r).toLowerCase();case 13:return yi(e,2534,2543,!0,r);case 14:case 30:return yi(e,6112,6121,!0,r);case 15:return Df(e,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Df(e,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Hu(e,"零一二三四五六七八九",vq,"負",i,sA|lA|Av);case 47:return Hu(e,"零壹貳參肆伍陸柒捌玖",bq,"負",i,Zp|sA|lA|Av);case 42:return Hu(e,"零一二三四五六七八九",vq,"负",i,sA|lA|Av);case 41:return Hu(e,"零壹贰叁肆伍陆柒捌玖",bq,"负",i,Zp|sA|lA|Av);case 26:return Hu(e,"〇一二三四五六七八九","十百千万",wq,i,0);case 25:return Hu(e,"零壱弐参四伍六七八九","拾百千万",wq,i,Zp|sA|lA);case 31:return Hu(e,"영일이삼사오육칠팔구","십백천만",ZN,a,Zp|sA|lA);case 33:return Hu(e,"零一二三四五六七八九","十百千萬",ZN,a,0);case 32:return Hu(e,"零壹貳參四五六七八九","拾百千",ZN,a,Zp|sA|lA);case 18:return yi(e,2406,2415,!0,r);case 20:return zp(e,1,19999,b$e,3,r);case 21:return yi(e,2790,2799,!0,r);case 22:return yi(e,2662,2671,!0,r);case 22:return zp(e,1,10999,v$e,3,r);case 23:return Df(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Df(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return yi(e,3302,3311,!0,r);case 28:return Df(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Df(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return yi(e,3792,3801,!0,r);case 37:return yi(e,6160,6169,!0,r);case 38:return yi(e,4160,4169,!0,r);case 39:return yi(e,2918,2927,!0,r);case 40:return yi(e,1776,1785,!0,r);case 43:return yi(e,3046,3055,!0,r);case 44:return yi(e,3174,3183,!0,r);case 45:return yi(e,3664,3673,!0,r);case 46:return yi(e,3872,3881,!0,r);case 3:default:return yi(e,48,57,!0,r)}},nre="data-html2canvas-ignore",xq=(function(){function e(t,n,r){if(this.context=t,this.options=r,this.scrolledElements=[],this.referenceElement=n,this.counters=new y$e,this.quoteDepth=0,!n.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(n.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,n){var r=this,i=w$e(t,n);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var a=t.defaultView.pageXOffset,o=t.defaultView.pageYOffset,s=i.contentWindow,l=s.document,c=B$e(i).then(function(){return go(r,void 0,void 0,function(){var d,A;return Wa(this,function(h){switch(h.label){case 0:return this.scrolledElements.forEach(N$e),s&&(s.scrollTo(n.left,n.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==n.top||s.scrollX!==n.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-n.left,s.scrollY-n.top,0,0))),d=this.options.onclone,A=this.clonedReferenceElement,typeof A>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:h.sent(),h.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,S$e(l)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof d=="function"?[2,Promise.resolve().then(function(){return d(l,A)}).then(function(){return i})]:[2,i]}})})});return l.open(),l.write(k$e(document.doctype)+"<html></html>"),E$e(this.referenceElement.ownerDocument,a,o),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(t){if(_P(t,2))debugger;if(Jne(t))return this.createCanvasClone(t);if(hq(t))return this.createVideoClone(t);if(pq(t))return this.createStyleClone(t);var n=t.cloneNode(!1);return OP(n)&&(OP(t)&&t.currentSrc&&t.currentSrc!==t.src&&(n.src=t.currentSrc,n.srcset=""),n.loading==="lazy"&&(n.loading="eager")),mq(n)?this.createCustomElementClone(n):n},e.prototype.createCustomElementClone=function(t){var n=document.createElement("html2canvascustomelement");return eT(t.style,n),n},e.prototype.createStyleClone=function(t){try{var n=t.sheet;if(n&&n.cssRules){var r=[].slice.call(n.cssRules,0).reduce(function(a,o){return o&&typeof o.cssText=="string"?a+o.cssText:a},""),i=t.cloneNode(!1);return i.textContent=r,i}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return t.cloneNode(!1)}
vendor: 7,116 bytes, lines 1431-1435
1431,e.prototype.createCanvasClone=function(t){var n;if(this.options.inlineImages&&t.ownerDocument){var r=t.ownerDocument.createElement("img");try{return r.src=t.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var i=t.cloneNode(!1);try{i.width=t.width,i.height=t.height;var a=t.getContext("2d"),o=i.getContext("2d");if(o)if(!this.options.allowTaint&&a)o.putImageData(a.getImageData(0,0,t.width,t.height),0,0);else{var s=(n=t.getContext("webgl2"))!==null&&n!==void 0?n:t.getContext("webgl");if(s){var l=s.getContextAttributes();(l==null?void 0:l.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}o.drawImage(t,0,0)}return i}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return i},e.prototype.createVideoClone=function(t){var n=t.ownerDocument.createElement("canvas");n.width=t.offsetWidth,n.height=t.offsetHeight;var r=n.getContext("2d");try{return r&&(r.drawImage(t,0,0,n.width,n.height),this.options.allowTaint||r.getImageData(0,0,n.width,n.height)),n}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var i=t.ownerDocument.createElement("canvas");return i.width=t.offsetWidth,i.height=t.offsetHeight,i},e.prototype.appendChildNode=function(t,n,r){(!dm(n)||!g$e(n)&&!n.hasAttribute(nre)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(n)))&&(!this.options.copyStyles||!dm(n)||!pq(n))&&t.appendChild(this.cloneNode(n,r))},e.prototype.cloneChildNodes=function(t,n,r){for(var i=this,a=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;a;a=a.nextSibling)if(dm(a)&&ere(a)&&typeof a.assignedNodes=="function"){var o=a.assignedNodes();o.length&&o.forEach(function(s){return i.appendChildNode(n,s,r)})}else this.appendChildNode(n,a,r)},e.prototype.cloneNode=function(t,n){if(Yne(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var r=t.ownerDocument.defaultView;if(r&&dm(t)&&(jP(t)||$x(t))){var i=this.createElementClone(t);i.style.transitionProperty="none";var a=r.getComputedStyle(t),o=r.getComputedStyle(t,":before"),s=r.getComputedStyle(t,":after");this.referenceElement===t&&jP(i)&&(this.clonedReferenceElement=i),JO(i)&&I$e(i);var l=this.counters.parse(new Z$(this.context,a)),c=this.resolvePseudoContent(t,i,o,jv.BEFORE);mq(t)&&(n=!0),hq(t)||this.cloneChildNodes(t,i,n),c&&i.insertBefore(c,i.firstChild);var d=this.resolvePseudoContent(t,i,s,jv.AFTER);return d&&i.appendChild(d),this.counters.pop(l),(a&&(this.options.copyStyles||$x(t))&&!Zne(t)||n)&&eT(a,i),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([i,t.scrollLeft,t.scrollTop]),(T2(t)||_2(t))&&(T2(i)||_2(i))&&(i.value=t.value),i}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,n,r,i){var a=this;if(r){var o=r.content,s=n.ownerDocument;if(!(!s||!o||o==="none"||o==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Z$(this.context,r));var l=new f9e(this.context,r),c=s.createElement("html2canvaspseudoelement");eT(r,c),l.content.forEach(function(A){if(A.type===0)c.appendChild(s.createTextNode(A.value));else if(A.type===22){var h=s.createElement("img");h.src=A.value,h.style.opacity="1",c.appendChild(h)}else if(A.type===18){if(A.name==="attr"){var m=A.values.filter(Ar);m.length&&c.appendChild(s.createTextNode(t.getAttribute(m[0].value)||""))}else if(A.name==="counter"){var b=A.values.filter(mg),g=b[0],y=b[1];if(g&&Ar(g)){var v=a.counters.getCounterValue(g.value),x=y&&Ar(y)?TP.parse(a.context,y.value):3;c.appendChild(s.createTextNode(F0(v,x,!1)))}}else if(A.name==="counters"){var B=A.values.filter(mg),g=B[0],C=B[1],y=B[2];if(g&&Ar(g)){var E=a.counters.getCounterValues(g.value),T=y&&Ar(y)?TP.parse(a.context,y.value):3,j=C&&C.type===0?C.value:"",O=E.map(function(F){return F0(F,T,!1)}).join(j);c.appendChild(s.createTextNode(O))}}}else if(A.type===20)switch(A.value){case"open-quote":c.appendChild(s.createTextNode(J$(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(s.createTextNode(J$(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(s.createTextNode(A.value))}}),c.className=FP+" "+LP;var d=i===jv.BEFORE?" "+FP:" "+LP;return $x(n)?n.className.baseValue+=d:n.className+=d,c}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e})(),jv;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(jv||(jv={}));var w$e=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(nre,"true"),e.body.appendChild(n),n},x$e=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},S$e=function(e){return Promise.all([].slice.call(e.images,0).map(x$e))},B$e=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var a=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(a),t(e))},50)}})},C$e=["all","d","content"],eT=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);C$e.indexOf(r)===-1&&t.style.setProperty(r,e.getPropertyValue(r))}return t},k$e=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},E$e=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},N$e=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},T$e=":before",_$e=":after",FP="___html2canvas___pseudoelement_before",LP="___html2canvas___pseudoelement_after",Sq=`{
1432    content: "" !important;
1433    display: none !important;
1434}`,I$e=function(e){P$e(e,"."+FP+T$e+Sq+`
1435         .`+LP+_$e+Sq)},P$e=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},rre=(function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e})(),j$e=(function(){function e(t,n){this.context=t,this._options=n,this._cache={}}return e.prototype.addImage=function(t){var n=Promise.resolve();return this.has(t)||(nT(t)||D$e(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),n},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return go(this,void 0,void 0,function(){var n,r,i,a,o=this;return Wa(this,function(s){switch(s.label){case 0:return n=rre.isSameOrigin(t),r=!tT(t)&&this._options.useCORS===!0&&Sa.SUPPORT_CORS_IMAGES&&!n,i=!tT(t)&&!n&&!nT(t)&&typeof this._options.proxy=="str
1435ing"&&Sa.SUPPORT_CORS_XHR&&!r,!n&&this._options.allowTaint===!1&&!tT(t)&&!nT(t)&&!i&&!r?[2]:(a=t,i?[4,this.proxy(a)]:[3,2]);case 1:a=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,c){var d=new Image;d.onload=function(){return l(d)},d.onerror=c,(M$e(a)||r)&&(d.crossOrigin="anonymous"),d.src=a,d.complete===!0&&setTimeout(function(){return l(d)},500),o._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var n=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var i=t.substring(0,256);return new Promise(function(a,o){var s=Sa.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(s==="text")a(l.response);else{var A=new FileReader;A.addEventListener("load",function(){return a(A.result)},!1),A.addEventListener("error",function(h){return o(h)},!1),A.readAsDataURL(l.response)}else o("Failed to proxy resource "+i+" with status code "+l.status)},l.onerror=o;var c=r.indexOf("?")>-1?"&":"?";if(l.open("GET",""+r+c+"url="+encodeURIComponent(t)+"&responseType="+s),s!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=s),n._options.imageTimeout){var d=n._options.imageTimeout;l.timeout=d,l.ontimeout=function(){return o("Timed out ("+d+"ms) proxying "+i)}}l.send()})},e})(),O$e=/^data:image\/svg\+xml/i,F$e=/^data:image\/.*;base64,/i,L$e=/^data:image\/.*/i,D$e=function(e){return Sa.SUPPORT_SVG_DRAWING||!U$e(e)},tT=function(e){return L$e.test(e)},M$e=function(e){return F$e.test(e)},nT=function(e){return e.substr(0,4)==="blob"},U$e=function(e){return e.substr(-3).toLowerCase()==="svg"||O$e.test(e)},gt=(function(){function e(t,n){this.type=0,this.x=t,this.y=n}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e})(),Vp=function(e,t,n){return new gt(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},ax=(function(){function e(t,n,r,i){this.type=1,this.start=t,this.startControl=n,this.endControl=r,this.end=i}return e.prototype.subdivide=function(t,n){var r=Vp(this.start,this.startControl,t),i=Vp(this.startControl,this.endControl,t),a=Vp(this.endControl,this.end,t),o=Vp(r,i,t),s=Vp(i,a,t),l=Vp(o,s,t);return n?new e(this.start,r,o,l):new e(l,s,a,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),el=function(e){return e.type===1}
vendor: 15,394 bytes, line 1435
1435,R$e=(function(){function e(t){var n=t.styles,r=t.bounds,i=uv(n.borderTopLeftRadius,r.width,r.height),a=i[0],o=i[1],s=uv(n.borderTopRightRadius,r.width,r.height),l=s[0],c=s[1],d=uv(n.borderBottomRightRadius,r.width,r.height),A=d[0],h=d[1],m=uv(n.borderBottomLeftRadius,r.width,r.height),b=m[0],g=m[1],y=[];y.push((a+l)/r.width),y.push((b+A)/r.width),y.push((o+g)/r.height),y.push((c+h)/r.height);var v=Math.max.apply(Math,y);v>1&&(a/=v,o/=v,l/=v,c/=v,A/=v,h/=v,b/=v,g/=v);var x=r.width-l,B=r.height-h,C=r.width-A,E=r.height-g,T=n.borderTopWidth,j=n.borderRightWidth,O=n.borderBottomWidth,L=n.borderLeftWidth,z=Sr(n.paddingTop,t.bounds.width),F=Sr(n.paddingRight,t.bounds.width),M=Sr(n.paddingBottom,t.bounds.width),V=Sr(n.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||o>0?Rr(r.left+L/3,r.top+T/3,a-L/3,o-T/3,Zn.TOP_LEFT):new gt(r.left+L/3,r.top+T/3),this.topRightBorderDoubleOuterBox=a>0||o>0?Rr(r.left+x,r.top+T/3,l-j/3,c-T/3,Zn.TOP_RIGHT):new gt(r.left+r.width-j/3,r.top+T/3),this.bottomRightBorderDoubleOuterBox=A>0||h>0?Rr(r.left+C,r.top+B,A-j/3,h-O/3,Zn.BOTTOM_RIGHT):new gt(r.left+r.width-j/3,r.top+r.height-O/3),this.bottomLeftBorderDoubleOuterBox=b>0||g>0?Rr(r.left+L/3,r.top+E,b-L/3,g-O/3,Zn.BOTTOM_LEFT):new gt(r.left+L/3,r.top+r.height-O/3),this.topLeftBorderDoubleInnerBox=a>0||o>0?Rr(r.left+L*2/3,r.top+T*2/3,a-L*2/3,o-T*2/3,Zn.TOP_LEFT):new gt(r.left+L*2/3,r.top+T*2/3),this.topRightBorderDoubleInnerBox=a>0||o>0?Rr(r.left+x,r.top+T*2/3,l-j*2/3,c-T*2/3,Zn.TOP_RIGHT):new gt(r.left+r.width-j*2/3,r.top+T*2/3),this.bottomRightBorderDoubleInnerBox=A>0||h>0?Rr(r.left+C,r.top+B,A-j*2/3,h-O*2/3,Zn.BOTTOM_RIGHT):new gt(r.left+r.width-j*2/3,r.top+r.height-O*2/3),this.bottomLeftBorderDoubleInnerBox=b>0||g>0?Rr(r.left+L*2/3,r.top+E,b-L*2/3,g-O*2/3,Zn.BOTTOM_LEFT):new gt(r.left+L*2/3,r.top+r.height-O*2/3),this.topLeftBorderStroke=a>0||o>0?Rr(r.left+L/2,r.top+T/2,a-L/2,o-T/2,Zn.TOP_LEFT):new gt(r.left+L/2,r.top+T/2),this.topRightBorderStroke=a>0||o>0?Rr(r.left+x,r.top+T/2,l-j/2,c-T/2,Zn.TOP_RIGHT):new gt(r.left+r.width-j/2,r.top+T/2),this.bottomRightBorderStroke=A>0||h>0?Rr(r.left+C,r.top+B,A-j/2,h-O/2,Zn.BOTTOM_RIGHT):new gt(r.left+r.width-j/2,r.top+r.height-O/2),this.bottomLeftBorderStroke=b>0||g>0?Rr(r.left+L/2,r.top+E,b-L/2,g-O/2,Zn.BOTTOM_LEFT):new gt(r.left+L/2,r.top+r.height-O/2),this.topLeftBorderBox=a>0||o>0?Rr(r.left,r.top,a,o,Zn.TOP_LEFT):new gt(r.left,r.top),this.topRightBorderBox=l>0||c>0?Rr(r.left+x,r.top,l,c,Zn.TOP_RIGHT):new gt(r.left+r.width,r.top),this.bottomRightBorderBox=A>0||h>0?Rr(r.left+C,r.top+B,A,h,Zn.BOTTOM_RIGHT):new gt(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=b>0||g>0?Rr(r.left,r.top+E,b,g,Zn.BOTTOM_LEFT):new gt(r.left,r.top+r.height),this.topLeftPaddingBox=a>0||o>0?Rr(r.left+L,r.top+T,Math.max(0,a-L),Math.max(0,o-T),Zn.TOP_LEFT):new gt(r.left+L,r.top+T),this.topRightPaddingBox=l>0||c>0?Rr(r.left+Math.min(x,r.width-j),r.top+T,x>r.width+j?0:Math.max(0,l-j),Math.max(0,c-T),Zn.TOP_RIGHT):new gt(r.left+r.width-j,r.top+T),this.bottomRightPaddingBox=A>0||h>0?Rr(r.left+Math.min(C,r.width-L),r.top+Math.min(B,r.height-O),Math.max(0,A-j),Math.max(0,h-O),Zn.BOTTOM_RIGHT):new gt(r.left+r.width-j,r.top+r.height-O),this.bottomLeftPaddingBox=b>0||g>0?Rr(r.left+L,r.top+Math.min(E,r.height-O),Math.max(0,b-L),Math.max(0,g-O),Zn.BOTTOM_LEFT):new gt(r.left+L,r.top+r.height-O),this.topLeftContentBox=a>0||o>0?Rr(r.left+L+V,r.top+T+z,Math.max(0,a-(L+V)),Math.max(0,o-(T+z)),Zn.TOP_LEFT):new gt(r.left+L+V,r.top+T+z),this.topRightContentBox=l>0||c>0?Rr(r.left+Math.min(x,r.width+L+V),r.top+T+z,x>r.width+L+V?0:l-L+V,c-(T+z),Zn.TOP_RIGHT):new gt(r.left+r.width-(j+F),r.top+T+z),this.bottomRightContentBox=A>0||h>0?Rr(r.left+Math.min(C,r.width-(L+V)),r.top+Math.min(B,r.height+T+z),Math.max(0,A-(j+F)),h-(O+M),Zn.BOTTOM_RIGHT):new gt(r.left+r.width-(j+F),r.top+r.height-(O+M)),this.bottomLeftContentBox=b>0||g>0?Rr(r.left+L+V,r.top+E,Math.max(0,b-(L+V)),g-(O+M),Zn.BOTTOM_LEFT):new gt(r.left+L+V,r.top+r.height-(O+M))}return e})(),Zn;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Zn||(Zn={}));var Rr=function(e,t,n,r,i){var a=4*((Math.sqrt(2)-1)/3),o=n*a,s=r*a,l=e+n,c=t+r;switch(i){case Zn.TOP_LEFT:return new ax(new gt(e,c),new gt(e,c-s),new gt(l-o,t),new gt(l,t));case Zn.TOP_RIGHT:return new ax(new gt(e,t),new gt(e+o,t),new gt(l,c-s),new gt(l,c));case Zn.BOTTOM_RIGHT:return new ax(new gt(l,t),new gt(l,t+s),new gt(e+o,c),new gt(e,c));case Zn.BOTTOM_LEFT:default:return new ax(new gt(l,c),new gt(l-o,c),new gt(e,t+s),new gt(e,t))}},I2=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Q$e=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},P2=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},H$e=(function(){function e(t,n,r){this.offsetX=t,this.offsetY=n,this.matrix=r,this.type=0,this.target=6}return e})(),ox=(function(){function e(t,n){this.path=t,this.target=n,this.type=1}return e})(),$$e=(function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e})(),q$e=function(e){return e.type===0},ire=function(e){return e.type===1},z$e=function(e){return e.type===2},Bq=function(e,t){return e.length===t.length?e.some(function(n,r){return n===t[r]}):!1},V$e=function(e,t,n,r,i){return e.map(function(a,o){switch(o){case 0:return a.add(t,n);case 1:return a.add(t+r,n);case 2:return a.add(t+r,n+i);case 3:return a.add(t,n+i)}return a})},are=(function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),ore=(function(){function e(t,n){if(this.container=t,this.parent=n,this.effects=[],this.curves=new R$e(this.container),this.container.styles.opacity<1&&this.effects.push(new $$e(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new H$e(r,i,a))}if(this.container.styles.overflowX!==0){var o=I2(this.curves),s=P2(this.curves);Bq(o,s)?this.effects.push(new ox(o,6)):(this.effects.push(new ox(o,2)),this.effects.push(new ox(s,4)))}}return e.prototype.getEffects=function(t){for(var n=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,i=this.effects.slice(0);r;){var a=r.effects.filter(function(l){return!ire(l)});if(n||r.container.styles.position!==0||!r.parent){if(i.unshift.apply(i,a),n=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var o=I2(r.curves),s=P2(r.curves);Bq(o,s)||i.unshift(new ox(s,6))}}else i.unshift.apply(i,a);r=r.parent}return i.filter(function(l){return Yi(l.target,t)})},e})(),DP=function(e,t,n,r){e.container.elements.forEach(function(i){var a=Yi(i.flags,4),o=Yi(i.flags,2),s=new ore(i,e);Yi(i.styles.display,2048)&&r.push(s);var l=Yi(i.flags,8)?[]:r;if(a||o){var c=a||i.styles.isPositioned()?n:t,d=new are(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var A=i.styles.zIndex.order;if(A<0){var h=0;c.negativeZIndex.some(function(b,g){return A>b.element.container.styles.zIndex.order?(h=g,!1):h>0}),c.negativeZIndex.splice(h,0,d)}else if(A>0){var m=0;c.positiveZIndex.some(function(b,g){return A>=b.element.container.styles.zIndex.order?(m=g+1,!1):m>0}),c.positiveZIndex.splice(m,0,d)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else i.styles.isFloating()?c.nonPositionedFloats.push(d):c.nonPositionedInlineLevel.push(d);DP(s,d,a?d:n,l)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),DP(s,t,n,l);Yi(i.flags,8)&&sre(i,l)})},sre=function(e,t){for(var n=e instanceof PP?e.start:1,r=e instanceof PP?e.reversed:!1,i=0;i<t.length;i++){var a=t[i];a.container instanceof qne&&typeof a.container.value=="number"&&a.container.value!==0&&(n=a.container.value),a.listValue=F0(n,a.container.styles.listStyleType,!0),n+=r?-1:1}},W$e=function(e){var t=new ore(e,null),n=new are(t),r=[];return DP(t,n,n,r),sre(t.container,r),n},Cq=function(e,t){switch(t){case 0:return rl(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return rl(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return rl(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return rl(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},K$e=function(e,t){switch(t){case 0:return rl(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return rl(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return rl(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return rl(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},G$e=function(e,t){switch(t){case 0:return rl(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return rl(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return rl(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return rl(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},Y$e=function(e,t){switch(t){case 0:return sx(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return sx(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return sx(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return sx(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},sx=function(e,t){var n=[];return el(e)?n.push(e.subdivide(.5,!1)):n.push(e),el(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},rl=function(e,t,n,r){var i=[];return el(e)?i.push(e.subdivide(.5,!1)):i.push(e),el(n)?i.push(n.subdivide(.5,!0)):i.push(n),el(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),el(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},lre=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},j2=function(e){var t=e.styles,n=e.bounds,r=Sr(t.paddingLeft,n.width),i=Sr(t.paddingRight,n.width),a=Sr(t.paddingTop,n.width),o=Sr(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,a+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+i),-(t.borderTopWidth+t.borderBottomWidth+a+o))},X$e=function(e,t){return e===0?t.bounds:e===2?j2(t):lre(t)},J$e=function(e,t){return e===0?t.bounds:e===2?j2(t):lre(t)},rT=function(e,t,n){var r=X$e(em(e.styles.backgroundOrigin,t),e),i=J$e(em(e.styles.backgroundClip,t),e),a=Z$e(em(e.styles.backgroundSize,t),n,r),o=a[0],s=a[1],l=uv(em(e.styles.backgroundPosition,t),r.width-o,r.height-s),c=eqe(em(e.styles.backgroundRepeat,t),l,a,r,i),d=Math.round(r.left+l[0]),A=Math.round(r.top+l[1]);return[c,d,A,o,s]},Wp=function(e){return Ar(e)&&e.value===wm.AUTO},lx=function(e){return typeof e=="number"},Z$e=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1];if(!o)return[0,0];if(Fi(o)&&s&&Fi(s))return[Sr(o,n.width),Sr(s,n.height)];var l=lx(a);if(Ar(o)&&(o.value===wm.CONTAIN||o.value===wm.COVER)){if(lx(a)){var c=n.width/n.height;return c<a!=(o.value===wm.COVER)?[n.width,n.width/a]:[n.height*a,n.height]}return[n.width,n.height]}var d=lx(r),A=lx(i),h=d||A;if(Wp(o)&&(!s||Wp(s))){if(d&&A)return[r,i];if(!l&&!h)return[n.width,n.height];if(h&&l){var m=d?r:i*a,b=A?i:r/a;return[m,b]}var g=d?r:n.width,y=A?i:n.height;return[g,y]}if(l){var v=0,x=0;return Fi(o)?v=Sr(o,n.width):Fi(s)&&(x=Sr(s,n.height)),Wp(o)?v=x*a:(!s||Wp(s))&&(x=v/a),[v,x]}var B=null,C=null;if(Fi(o)?B=Sr(o,n.width):s&&Fi(s)&&(C=Sr(s,n.height)),B!==null&&(!s||Wp(s))&&(C=d&&A?B/r*i:n.height),C!==null&&Wp(o)&&(B=d&&A?C/i*r:n.width),B!==null&&C!==null)return[B,C];throw new Error("Unable to calculate background-size for element")},em=function(e,t){var n=e[t];return typeof n>"u"?e[0]:n},eqe=function(e,t,n,r,i){var a=t[0],o=t[1],s=n[0],l=n[1];switch(e){case 2:return[new gt(Math.round(r.left),Math.round(r.top+o)),new gt(Math.round(r.left+r.width),Math.round(r.top+o)),new gt(Math.round(r.left+r.width),Math.round(l+r.top+o)),new gt(Math.round(r.left),Math.round(l+r.top+o))];case 3:return[new gt(Math.round(r.left+a),Math.round(r.top)),new gt(Math.round(r.left+a+s),Math.round(r.top)),new gt(Math.round(r.left+a+s),Math.round(r.height+r.top)),new gt(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new gt(Math.round(r.left+a),Math.round(r.top+o)),new gt(Math.round(r.left+a+s),Math.round(r.top+o)),new gt(Math.round(r.left+a+s),Math.round(r.top+o+l)),new gt(Math.round(r.left+a),Math.round(r.top+o+l))];default:return[new gt(Math.round(i.left),Math.round(i.top)),new gt(Math.round(i.left+i.width),Math.round(i.top)),new gt(Math.round(i.left+i.width),Math.round(i.height+i.top)),new gt(Math.round(i.left),Math.round(i.height+i.top))]}},tqe="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",kq="Hidden Text",nqe=(function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,n){var r=this._document.createElement("div"),i=this._document.createElement("img"),a=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=n,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),i.src=tqe,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",a.style.fontFamily=t,a.style.fontSize=n,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(kq)),r.appendChild(a),r.appendChild(i);var s=i.offsetTop-a.offsetTop+2;r.removeChild(a),r.appendChild(this._document.createTextNode(kq)),r.style.lineHeight="normal",i.style.verticalAlign="super";var l=i.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:s,middle:l}},e.prototype.getMetrics=function(t,n){var r=t+" "+n;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(t,n)),this._data[r]},e})(),cre=(function(){function e(t,n){this.context=t,this.options=n}return e})(),rqe=1e4,iqe=(function(e){rc(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i._activeEffects=[],i.canvas=r.canvas?r.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),r.canvas||(i.canvas.width=Math.floor(r.width*r.scale),i.canvas.height=Math.floor(r.height*r.scale),i.canvas.style.width=r.width+"px",i.canvas.style.height=r.height+"px"),i.fontMetrics=new nqe(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-r.x,-r.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),i}return t.prototype.applyEffects=function(n){for(var r=this;this._activeEffects.length;)this.popEffect();
vendor: 4,176 bytes, line 1435
1435n.forEach(function(i){return r.applyEffect(i)})},t.prototype.applyEffect=function(n){this.ctx.save(),z$e(n)&&(this.ctx.globalAlpha=n.opacity),q$e(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),ire(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(n){return go(this,void 0,void 0,function(){var r;return Wa(this,function(i){switch(i.label){case 0:return r=n.element.container.styles,r.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(n){return go(this,void 0,void 0,function(){return Wa(this,function(r){switch(r.label){case 0:if(Yi(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(n)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(n,r,i){var a=this;if(r===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+i);else{var o=YO(n.text);o.reduce(function(s,l){return a.ctx.fillText(l,s,n.bounds.top+i),s+a.ctx.measureText(l).width},n.bounds.left)}},t.prototype.createFontStyle=function(n){var r=n.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),i=cqe(n.fontFamily).join(", "),a=yb(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,r,n.fontWeight,a,i].join(" "),i,a]},t.prototype.renderTextNode=function(n,r){return go(this,void 0,void 0,function(){var i,a,o,s,l,c,d,A,h=this;return Wa(this,function(m){return i=this.createFontStyle(r),a=i[0],o=i[1],s=i[2],this.ctx.font=a,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(o,s),c=l.baseline,d=l.middle,A=r.paintOrder,n.textBounds.forEach(function(b){A.forEach(function(g){switch(g){case 0:h.ctx.fillStyle=sa(r.color),h.renderTextWithLetterSpacing(b,r.letterSpacing,c);var y=r.textShadow;y.length&&b.text.trim().length&&(y.slice(0).reverse().forEach(function(v){h.ctx.shadowColor=sa(v.color),h.ctx.shadowOffsetX=v.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=v.offsetY.number*h.options.scale,h.ctx.shadowBlur=v.blur.number,h.renderTextWithLetterSpacing(b,r.letterSpacing,c)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),r.textDecorationLine.length&&(h.ctx.fillStyle=sa(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(v){switch(v){case 1:h.ctx.fillRect(b.bounds.left,Math.round(b.bounds.top+c),b.bounds.width,1);break;case 2:h.ctx.fillRect(b.bounds.left,Math.round(b.bounds.top),b.bounds.width,1);break;case 3:h.ctx.fillRect(b.bounds.left,Math.ceil(b.bounds.top+d),b.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&b.text.trim().length&&(h.ctx.strokeStyle=sa(r.webkitTextStrokeColor),h.ctx.lineWidth=r.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(b.text,b.bounds.left,b.bounds.top+c)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(n,r,i){if(i&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var a=j2(n),o=P2(r);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,n.intrinsicWidth,n.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(n){return go(this,void 0,void 0,function(){var r,i,a,o,s,l,x,x,c,d,A,h,C,m,b,E,g,y,v,x,B,C,E;return Wa(this,function(T){switch(T.label){case 0:this.applyEffects(n.getEffects(4)),r=n.container,i=n.curves,a=r.styles,o=0,s=r.textNodes,T.label=1;case 1:return o<s.length?(l=s[o],[4,this.renderTextNode(l,a)]):[3,4];case 2:T.sent(),T.label=3;case 3:return o++,[3,1];case 4:if(!(r instanceof Qne))return[3,8];T.label=5;case 5:return T.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return x=T.sent(),this.renderReplacedElement(r,i,x),[3,8];
vendor: 4,148 bytes, line 1435
1435case 7:return T.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof Hne&&this.renderReplacedElement(r,i,r.canvas),!(r instanceof $ne))return[3,12];T.label=9;case 9:return T.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return x=T.sent(),this.renderReplacedElement(r,i,x),[3,12];case 11:return T.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Wne&&r.tree?(c=new t(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,c.render(r.tree)]):[3,14];case 13:d=T.sent(),r.width&&r.height&&this.ctx.drawImage(d,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),T.label=14;case 14:if(r instanceof XO&&(A=Math.min(r.bounds.width,r.bounds.height),r.type===E2?r.checked&&(this.ctx.save(),this.path([new gt(r.bounds.left+A*.39363,r.bounds.top+A*.79),new gt(r.bounds.left+A*.16,r.bounds.top+A*.5549),new gt(r.bounds.left+A*.27347,r.bounds.top+A*.44071),new gt(r.bounds.left+A*.39694,r.bounds.top+A*.5649),new gt(r.bounds.left+A*.72983,r.bounds.top+A*.23),new gt(r.bounds.left+A*.84,r.bounds.top+A*.34085),new gt(r.bounds.left+A*.39363,r.bounds.top+A*.79)]),this.ctx.fillStyle=sa(fq),this.ctx.fill(),this.ctx.restore()):r.type===N2&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+A/2,r.bounds.top+A/2,A/4,0,Math.PI*2,!0),this.ctx.fillStyle=sa(fq),this.ctx.fill(),this.ctx.restore())),aqe(r)&&r.value.length){switch(h=this.createFontStyle(a),C=h[0],m=h[1],b=this.fontMetrics.getMetrics(C,m).baseline,this.ctx.font=C,this.ctx.fillStyle=sa(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=sqe(r.styles.textAlign),E=j2(r),g=0,r.styles.textAlign){case 1:g+=E.width/2;break;case 2:g+=E.width;break}y=E.add(g,0,0,-E.height/2+1),this.ctx.save(),this.path([new gt(E.left,E.top),new gt(E.left+E.width,E.top),new gt(E.left+E.width,E.top+E.height),new gt(E.left,E.top+E.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Pv(r.value,y),a.letterSpacing,b),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Yi(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(v=r.styles.listStyleImage,v.type!==0)return[3,18];x=void 0,B=v.url,T.label=15;case 15:return T.trys.push([15,17,,18]),[4,this.context.cache.match(B)];case 16:return x=T.sent(),this.ctx.drawImage(x,r.bounds.left-(x.width+10),r.bounds.top),[3,18];case 17:return T.sent(),this.context.logger.error("Error loading list-style-image "+B),[3,18];case 18:return[3,20];case 19:n.listValue&&r.styles.listStyleType!==-1&&(C=this.createFontStyle(a)[0],this.ctx.font=C,this.ctx.fillStyle=sa(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",E=new ud(r.bounds.left,r.bounds.top+Sr(r.styles.paddingTop,r.bounds.width),r.bounds.width,Y$(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Pv(n.listValue,E),a.letterSpacing,Y$(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),T.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(n){return go(this,void 0,void 0,function(){var r,i,v,a,o,v,s,l,v,c,d,v,A,h,v,m,b,v,g,y,v;return Wa(this,function(x){switch(x.label){case 0:if(Yi(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:x.sent(),r=0,i=n.negativeZIndex,x.label=2;case 2:return r<i.length?(v=i[r],[4,this.renderStack(v)]):[3,5];case 3:x.sent(),x.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:x.sent(),a=0,o=n.nonInlineLevel,x.label=7;case 7:return a<o.length?(v=o[a],[4,this.renderNode(v)]):[3,10];case 8:x.sent(),x.label=9;case 9:return a++,[3,7];case 10:s=0,l=n.nonPositionedFloats,x.label=11;case 11:return s<l.length?(v=l[s],[4,this.renderStack(v)]):[3,14];case 12:x.sent(),x.label=13;case 13:return s++,[3,11];case 14:c=0,d=n.nonPositionedInlineLevel,x.label=15;case 15:return c<d.length?(v=d[c],[4,this.renderStack(v)]):[3,18];case 16:x.sent(),x.label=17;case 17:return c++,[3,15];
vendor: 4,189 bytes, line 1435
1435case 18:A=0,h=n.inlineLevel,x.label=19;case 19:return A<h.length?(v=h[A],[4,this.renderNode(v)]):[3,22];case 20:x.sent(),x.label=21;case 21:return A++,[3,19];case 22:m=0,b=n.zeroOrAutoZIndexOrTransformedOrOpacity,x.label=23;case 23:return m<b.length?(v=b[m],[4,this.renderStack(v)]):[3,26];case 24:x.sent(),x.label=25;case 25:return m++,[3,23];case 26:g=0,y=n.positiveZIndex,x.label=27;case 27:return g<y.length?(v=y[g],[4,this.renderStack(v)]):[3,30];case 28:x.sent(),x.label=29;case 29:return g++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(n){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(n.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},t.prototype.formatPath=function(n){var r=this;n.forEach(function(i,a){var o=el(i)?i.start:i;a===0?r.ctx.moveTo(o.x,o.y):r.ctx.lineTo(o.x,o.y),el(i)&&r.ctx.bezierCurveTo(i.startControl.x,i.startControl.y,i.endControl.x,i.endControl.y,i.end.x,i.end.y)})},t.prototype.renderRepeat=function(n,r,i,a){this.path(n),this.ctx.fillStyle=r,this.ctx.translate(i,a),this.ctx.fill(),this.ctx.translate(-i,-a)},t.prototype.resizeImage=function(n,r,i){var a;if(n.width===r&&n.height===i)return n;var o=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,s=o.createElement("canvas");s.width=Math.max(1,r),s.height=Math.max(1,i);var l=s.getContext("2d");return l.drawImage(n,0,0,n.width,n.height,0,0,r,i),s},t.prototype.renderBackgroundImage=function(n){return go(this,void 0,void 0,function(){var r,i,a,o,s,l;return Wa(this,function(c){switch(c.label){case 0:r=n.styles.backgroundImage.length-1,i=function(d){var A,h,m,z,ee,ne,V,q,O,b,z,ee,ne,V,q,g,y,v,x,B,C,E,T,j,O,L,z,F,M,V,q,W,ee,ne,K,oe,$,X,Q,R,re,ce;return Wa(this,function(le){switch(le.label){case 0:if(d.type!==0)return[3,5];A=void 0,h=d.url,le.label=1;case 1:return le.trys.push([1,3,,4]),[4,a.context.cache.match(h)];case 2:return A=le.sent(),[3,4];case 3:return le.sent(),a.context.logger.error("Error loading background-image "+h),[3,4];case 4:return A&&(m=rT(n,r,[A.width,A.height,A.width/A.height]),z=m[0],ee=m[1],ne=m[2],V=m[3],q=m[4],O=a.ctx.createPattern(a.resizeImage(A,V,q),"repeat"),a.renderRepeat(z,O,ee,ne)),[3,6];case 5:q7e(d)?(b=rT(n,r,[null,null,null]),z=b[0],ee=b[1],ne=b[2],V=b[3],q=b[4],g=U7e(d.angle,V,q),y=g[0],v=g[1],x=g[2],B=g[3],C=g[4],E=document.createElement("canvas"),E.width=V,E.height=q,T=E.getContext("2d"),j=T.createLinearGradient(v,B,x,C),K$(d.stops,y).forEach(function(he){return j.addColorStop(he.stop,sa(he.color))}),T.fillStyle=j,T.fillRect(0,0,V,q),V>0&&q>0&&(O=a.ctx.createPattern(E,"repeat"),a.renderRepeat(z,O,ee,ne))):z7e(d)&&(L=rT(n,r,[null,null,null]),z=L[0],F=L[1],M=L[2],V=L[3],q=L[4],W=d.position.length===0?[WO]:d.position,ee=Sr(W[0],V),ne=Sr(W[W.length-1],q),K=R7e(d,ee,ne,V,q),oe=K[0],$=K[1],oe>0&&$>0&&(X=a.ctx.createRadialGradient(F+ee,M+ne,0,F+ee,M+ne,oe),K$(d.stops,oe*2).forEach(function(he){return X.addColorStop(he.stop,sa(he.color))}),a.path(z),a.ctx.fillStyle=X,oe!==$?(Q=n.bounds.left+.5*n.bounds.width,R=n.bounds.top+.5*n.bounds.height,re=$/oe,ce=1/re,a.ctx.save(),a.ctx.translate(Q,R),a.ctx.transform(1,0,0,re,0,0),a.ctx.translate(-Q,-R),a.ctx.fillRect(F,ce*(M-R)+R,V,q*ce),a.ctx.restore()):a.ctx.fill())),le.label=6;case 6:return r--,[2]}})},a=this,o=0,s=n.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return o<s.length?(l=s[o],[5,i(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(n,r,i){return go(this,void 0,void 0,function(){return Wa(this,function(a){return this.path(Cq(i,r)),this.ctx.fillStyle=sa(n),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(n,r,i,a){return go(this,void 0,void 0,function(){var o,s;return Wa(this,function(l){switch(l.label){case 0:return r<3?[4,this.renderSolidBorder(n,i,a)]:[3,2];case 1:return l.sent(),[2];case 2:return o=K$e(a,i),this.path(o),this.ctx.fillStyle=sa(n),this.ctx.fill(),s=G$e(a,i),this.path(s),this.ctx.fill(),[2]}})})}
vendor: 7,430 bytes, line 1435
1435,t.prototype.renderNodeBackgroundAndBorders=function(n){return go(this,void 0,void 0,function(){var r,i,a,o,s,l,c,d,A=this;return Wa(this,function(h){switch(h.label){case 0:return this.applyEffects(n.getEffects(2)),r=n.container.styles,i=!PA(r.backgroundColor)||r.backgroundImage.length,a=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],o=oqe(em(r.backgroundClip,0),n.curves),i||r.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),PA(r.backgroundColor)||(this.ctx.fillStyle=sa(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:h.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(m){A.ctx.save();var b=I2(n.curves),g=m.inset?0:rqe,y=V$e(b,-g+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(A.path(b),A.ctx.clip(),A.mask(y)):(A.mask(b),A.ctx.clip(),A.path(y)),A.ctx.shadowOffsetX=m.offsetX.number+g,A.ctx.shadowOffsetY=m.offsetY.number,A.ctx.shadowColor=sa(m.color),A.ctx.shadowBlur=m.blur.number,A.ctx.fillStyle=m.inset?sa(m.color):"rgba(0,0,0,1)",A.ctx.fill(),A.ctx.restore()}),h.label=2;case 2:s=0,l=0,c=a,h.label=3;case 3:return l<c.length?(d=c[l],d.style!==0&&!PA(d.color)&&d.width>0?d.style!==2?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,s,n.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return d.style!==3?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,s,n.curves,3)];case 6:return h.sent(),[3,11];case 7:return d.style!==4?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,s,n.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,s,n.curves)];case 10:h.sent(),h.label=11;case 11:s++,h.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(n,r,i,a,o){return go(this,void 0,void 0,function(){var s,l,c,d,A,h,m,b,g,y,v,x,B,C,E,T,E,T;return Wa(this,function(j){return this.ctx.save(),s=Y$e(a,i),l=Cq(a,i),o===2&&(this.path(l),this.ctx.clip()),el(l[0])?(c=l[0].start.x,d=l[0].start.y):(c=l[0].x,d=l[0].y),el(l[1])?(A=l[1].end.x,h=l[1].end.y):(A=l[1].x,h=l[1].y),i===0||i===2?m=Math.abs(c-A):m=Math.abs(d-h),this.ctx.beginPath(),o===3?this.formatPath(s):this.formatPath(l.slice(0,2)),b=r<3?r*3:r*2,g=r<3?r*2:r,o===3&&(b=r,g=r),y=!0,m<=b*2?y=!1:m<=b*2+g?(v=m/(2*b+g),b*=v,g*=v):(x=Math.floor((m+g)/(b+g)),B=(m-x*b)/(x-1),C=(m-(x+1)*b)/x,g=C<=0||Math.abs(g-B)<Math.abs(g-C)?B:C),y&&(o===3?this.ctx.setLineDash([0,b+g]):this.ctx.setLineDash([b,g])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=sa(n),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(el(l[0])&&(E=l[3],T=l[0],this.ctx.beginPath(),this.formatPath([new gt(E.end.x,E.end.y),new gt(T.start.x,T.start.y)]),this.ctx.stroke()),el(l[1])&&(E=l[1],T=l[2],this.ctx.beginPath(),this.formatPath([new gt(E.end.x,E.end.y),new gt(T.start.x,T.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(n){return go(this,void 0,void 0,function(){var r;return Wa(this,function(i){switch(i.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=sa(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=W$e(n),[4,this.renderStack(r)];case 1:return i.sent(),this.applyEffects([]),[2,this.canvas]}})})},t})(cre),aqe=function(e){return e instanceof Vne||e instanceof zne?!0:e instanceof XO&&e.type!==N2&&e.type!==E2},oqe=function(e,t){switch(e){case 0:return I2(t);case 2:return Q$e(t);case 1:default:return P2(t)}},sqe=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},lqe=["-apple-system","system-ui"],cqe=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return lqe.indexOf(t)===-1}):e},uqe=(function(e){rc(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.canvas=r.canvas?r.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=r,i.canvas.width=Math.floor(r.width*r.scale),i.canvas.height=Math.floor(r.height*r.scale),i.canvas.style.width=r.width+"px",i.canvas.style.height=r.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-r.x,-r.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),i}return t.prototype.render=function(n){return go(this,void 0,void 0,function(){var r,i;return Wa(this,function(a){switch(a.label){case 0:return r=IP(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,dqe(r)];case 1:return i=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=sa(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(i,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t})(cre),dqe=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Aqe=(function(){function e(t){var n=t.id,r=t.enabled;this.id=n,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Rw([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Rw([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Rw([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Rw([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e})(),fqe=(function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new Aqe({id:this.instanceName,enabled:t.logging}),this.cache=(r=t.cache)!==null&&r!==void 0?r:new j$e(this,t)}return e.instanceCount=1,e})(),ure=function(e,t){return t===void 0&&(t={}),hqe(e,t)};typeof window<"u"&&rre.setContext(window);var hqe=function(e,t){return go(void 0,void 0,void 0,function(){var n,r,i,a,o,s,l,c,d,A,h,m,b,g,y,v,x,B,C,E,j,T,j,O,L,z,F,M,V,q,W,ee,ne,K,oe,$,X,Q,R,re;return Wa(this,function(ce){switch(ce.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=e.ownerDocument,!n)throw new Error("Element is not attached to a Document");
vendor: 18,573 bytes, lines 1435-1436
1435if(r=n.defaultView,!r)throw new Error("Document is not attached to a Window");return i={allowTaint:(O=t.allowTaint)!==null&&O!==void 0?O:!1,imageTimeout:(L=t.imageTimeout)!==null&&L!==void 0?L:15e3,proxy:t.proxy,useCORS:(z=t.useCORS)!==null&&z!==void 0?z:!1},a=mP({logging:(F=t.logging)!==null&&F!==void 0?F:!0,cache:t.cache},i),o={windowWidth:(M=t.windowWidth)!==null&&M!==void 0?M:r.innerWidth,windowHeight:(V=t.windowHeight)!==null&&V!==void 0?V:r.innerHeight,scrollX:(q=t.scrollX)!==null&&q!==void 0?q:r.pageXOffset,scrollY:(W=t.scrollY)!==null&&W!==void 0?W:r.pageYOffset},s=new ud(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),l=new fqe(a,s),c=(ee=t.foreignObjectRendering)!==null&&ee!==void 0?ee:!1,d={allowTaint:(ne=t.allowTaint)!==null&&ne!==void 0?ne:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),A=new xq(l,e,d),h=A.clonedReferenceElement,h?[4,A.toIFrame(n,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=ce.sent(),b=JO(h)||m$e(h)?V8e(h.ownerDocument):bB(l,h),g=b.width,y=b.height,v=b.left,x=b.top,B=pqe(l,h,t.backgroundColor),C={canvas:t.canvas,backgroundColor:B,scale:(oe=(K=t.scale)!==null&&K!==void 0?K:r.devicePixelRatio)!==null&&oe!==void 0?oe:1,x:(($=t.x)!==null&&$!==void 0?$:0)+v,y:((X=t.y)!==null&&X!==void 0?X:0)+x,width:(Q=t.width)!==null&&Q!==void 0?Q:Math.ceil(g),height:(R=t.height)!==null&&R!==void 0?R:Math.ceil(y)},c?(l.logger.debug("Document cloned, using foreign object rendering"),j=new uqe(l,C),[4,j.render(h)]):[3,3];case 2:return E=ce.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+v+","+x+" with size "+g+"x"+y+" using computed rendering"),l.logger.debug("Starting DOM parsing"),T=Gne(l,h),B===T.styles.backgroundColor&&(T.styles.backgroundColor=nd.TRANSPARENT),l.logger.debug("Starting renderer for element at "+C.x+","+C.y+" with size "+C.width+"x"+C.height),j=new iqe(l,C),[4,j.render(T)];case 4:E=ce.sent(),ce.label=5;case 5:return(!((re=t.removeContainer)!==null&&re!==void 0)||re)&&(xq.destroy(m)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,E]}})})},pqe=function(e,t,n){var r=t.ownerDocument,i=r.documentElement?_v(e,getComputedStyle(r.documentElement).backgroundColor):nd.TRANSPARENT,a=r.body?_v(e,getComputedStyle(r.body).backgroundColor):nd.TRANSPARENT,o=typeof n=="string"?_v(e,n):n===null?nd.TRANSPARENT:4294967295;return t===r.documentElement?PA(i)?PA(a)?o:a:i:o};const mqe=Object.freeze(Object.defineProperty({__proto__:null,default:ure},Symbol.toStringTag,{value:"Module"})),gqe="modulepreload",yqe=function(e){return"/"+e},Eq={},iT=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let o=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(A=>({status:"fulfilled",value:A}),A=>({status:"rejected",reason:A}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=o(n.map(c=>{if(c=yqe(c),c in Eq)return;Eq[c]=!0;const d=c.endsWith(".css"),A=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${A}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":gqe,d||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),d)return new Promise((m,b)=>{h.addEventListener("load",m),h.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};function sr(e){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sr(e)}var Jl=Uint8Array,ys=Uint16Array,ZO=Int32Array,eF=new Jl([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),tF=new Jl([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Nq=new Jl([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),dre=function(e,t){for(var n=new ys(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new ZO(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},Are=dre(eF,2),vqe=Are.b,MP=Are.r;vqe[28]=258,MP[258]=28;var bqe=dre(tF,0),Tq=bqe.r,UP=new ys(32768);for(var Ir=0;Ir<32768;++Ir){var tA=(Ir&43690)>>1|(Ir&21845)<<1;tA=(tA&52428)>>2|(tA&13107)<<2,tA=(tA&61680)>>4|(tA&3855)<<4,UP[Ir]=((tA&65280)>>8|(tA&255)<<8)>>1}var Ov=(function(e,t,n){for(var r=e.length,i=0,a=new ys(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new ys(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new ys(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],d=t-e[i],A=o[e[i]-1]++<<d,h=A|(1<<d)-1;A<=h;++A)s[UP[A]>>l]=c}else for(s=new ys(r),i=0;i<r;++i)e[i]&&(s[i]=UP[o[e[i]-1]++]>>15-e[i]);return s}),jh=new Jl(288);for(var Ir=0;Ir<144;++Ir)jh[Ir]=8;for(var Ir=144;Ir<256;++Ir)jh[Ir]=9;for(var Ir=256;Ir<280;++Ir)jh[Ir]=7;for(var Ir=280;Ir<288;++Ir)jh[Ir]=8;var O2=new Jl(32);for(var Ir=0;Ir<32;++Ir)O2[Ir]=5;var wqe=Ov(jh,9,0),xqe=Ov(O2,5,0),fre=function(e){return(e+7)/8|0},Sqe=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new Jl(e.subarray(t,n))},$u=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},zy=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},aT=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return{t:pre,l:0};if(i==1){var o=new Jl(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(E,T){return E.f-T.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],c=0,d=1,A=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};d!=i-1;)s=n[n[c].f<n[A].f?c++:A++],l=n[c!=d&&n[c].f<n[A].f?c++:A++],n[d++]={s:-1,f:s.f+l.f,l:s,r:l};for(var h=a[0].s,r=1;r<i;++r)a[r].s>h&&(h=a[r].s);var m=new ys(h+1),b=RP(n[d-1],m,0);if(b>t){var r=0,g=0,y=b-t,v=1<<y;for(a.sort(function(T,j){return m[j.s]-m[T.s]||T.f-j.f});r<i;++r){var x=a[r].s;if(m[x]>t)g+=v-(1<<b-m[x]),m[x]=t;else break}for(g>>=y;g>0;){var B=a[r].s;m[B]<t?g-=1<<t-m[B]++-1:++r}for(;r>=0&&g;--r){var C=a[r].s;m[C]==t&&(--m[C],++g)}b=t}return{t:new Jl(m),l:b}},RP=function(e,t,n){return e.s==-1?Math.max(RP(e.l,t,n+1),RP(e.r,t,n+1)):t[e.s]=n},_q=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ys(++t),r=0,i=e[0],a=1,o=function(l){n[r++]=l},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:n.subarray(0,r),n:t}},Vy=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},hre=function(e,t,n){var r=n.length,i=fre(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<r;++a)e[i+a+4]=n[a];return(i+4+r)*8},Iq=function(e,t,n,r,i,a,o,s,l,c,d){$u(t,d++,n),++i[256];for(var A=aT(i,15),h=A.t,m=A.l,b=aT(a,15),g=b.t,y=b.l,v=_q(h),x=v.c,B=v.n,C=_q(g),E=C.c,T=C.n,j=new ys(19),O=0;O<x.length;++O)++j[x[O]&31];for(var O=0;O<E.length;++O)++j[E[O]&31];for(var L=aT(j,7),z=L.t,F=L.l,M=19;M>4&&!z[Nq[M-1]];--M);var V=c+5<<3,q=Vy(i,jh)+Vy(a,O2)+o,W=Vy(i,h)+Vy(a,g)+o+14+3*M+Vy(j,z)+2*j[16]+3*j[17]+7*j[18];if(l>=0&&V<=q&&V<=W)return hre(t,d,e.subarray(l,l+c));var ee,ne,K,oe;if($u(t,d,1+(W<q)),d+=2,W<q){ee=Ov(h,m,0),ne=h,K=Ov(g,y,0),oe=g;var $=Ov(z,F,0);$u(t,d,B-257),$u(t,d+5,T-1),$u(t,d+10,M-4),d+=14;for(var O=0;O<M;++O)$u(t,d+3*O,z[Nq[O]]);d+=3*M;for(var X=[x,E],Q=0;Q<2;++Q)for(var R=X[Q],O=0;O<R.length;++O){var re=R[O]&31;$u(t,d,$[re]),d+=z[re],re>15&&($u(t,d,R[O]>>5&127),d+=R[O]>>12)}}else ee=wqe,ne=jh,K=xqe,oe=O2;for(var O=0;O<s;++O){var ce=r[O];if(ce>255){var re=ce>>18&31;zy(t,d,ee[re+257]),d+=ne[re+257],re>7&&($u(t,d,ce>>23&31),d+=eF[re]);var le=ce&31;zy(t,d,K[le]),d+=oe[le],le>3&&(zy(t,d,ce>>5&8191),d+=tF[le])}else zy(t,d,ee[ce]),d+=ne[ce]}return zy(t,d,ee[256]),d+ne[256]},Bqe=new ZO([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pre=new Jl(0),Cqe=function(e,t,n,r,i,a){var o=a.z||e.length,s=new Jl(r+o+5*(1+Math.ceil(o/7e3))+i),l=s.subarray(r,s.length-i),c=a.l,d=(a.r||0)&7;if(t){d&&(l[0]=a.r>>3);for(var A=Bqe[t-1],h=A>>13,m=A&8191,b=(1<<n)-1,g=a.p||new ys(32768),y=a.h||new ys(b+1),v=Math.ceil(n/3),x=2*v,B=function(Ye){return(e[Ye]^e[Ye+1]<<v^e[Ye+2]<<x)&b},C=new ZO(25e3),E=new ys(288),T=new ys(32),j=0,O=0,L=a.i||0,z=0,F=a.w||0,M=0;L+2<o;++L){var V=B(L),q=L&32767,W=y[V];if(g[q]=W,y[V]=q,F<=L){var ee=o-L;if((j>7e3||z>24576)&&(ee>423||!c)){d=Iq(e,l,0,C,E,T,O,z,M,L-M,d),z=j=O=0,M=L;for(var ne=0;ne<286;++ne)E[ne]=0;for(var ne=0;ne<30;++ne)T[ne]=0}var K=2,oe=0,$=m,X=q-W&32767;if(ee>2&&V==B(L-X))for(var Q=Math.min(h,ee)-1,R=Math.min(32767,L),re=Math.min(258,ee);X<=R&&--$&&q!=W;){if(e[L+K]==e[L+K-X]){for(var ce=0;ce<re&&e[L+ce]==e[L+ce-X];++ce);if(ce>K){if(K=ce,oe=X,ce>Q)break;for(var le=Math.min(X,ce-2),he=0,ne=0;ne<le;++ne){var ye=L-X+ne&32767,Ae=g[ye],be=ye-Ae&32767;be>he&&(he=be,W=ye)}}}q=W,W=g[q],X+=q-W&32767}if(oe){C[z++]=268435456|MP[K]<<18|Tq[oe];var Ee=MP[K]&31,ge=Tq[oe]&31;O+=eF[Ee]+tF[ge],++E[257+Ee],++T[ge],F=L+K,++j}else C[z++]=e[L],++E[e[L]]}}for(L=Math.max(L,F);L<o;++L)C[z++]=e[L],++E[e[L]];d=Iq(e,l,c,C,E,T,O,z,M,L-M,d),c||(a.r=d&7|l[d/8|0]<<3,d-=7,a.h=y,a.p=g,a.i=L,a.w=F)}else{for(var L=a.w||0;L<o+c;L+=65535){var Ue=L+65535;Ue>=o&&(l[d/8|0]=c,Ue=o),d=hre(l,d+1,e.subarray(L,Ue))}a.i=o}return Sqe(s,0,r+fre(d)+i)},mre=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},kqe=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new Jl(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return Cqe(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},gre=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Eqe=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=mre();i.p(t.dictionary),gre(e,2,i.d())}};function QP(e,t){t||(t={});var n=mre();n.p(e);var r=kqe(e,t,t.dictionary?6:2,4);return Eqe(r,t),gre(r,r.length-4,n.d()),r}var Nqe=typeof TextDecoder<"u"&&new TextDecoder,Tqe=0;try{Nqe.decode(pre,{stream:!0}),Tqe=1}catch{}function _qe(e){if(Array.isArray(e))return e}function Iqe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Pq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pqe(e,t){if(e){if(typeof e=="string")return Pq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pq(e,t):void 0}}function jqe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1436In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jq(e,t){return _qe(e)||Iqe(e,t)||Pqe(e,t)||jqe()}function Oq(e,t="utf8"){return new TextDecoder(t).decode(e)}const Oqe=new TextEncoder;function Fqe(e){return Oqe.encode(e)}const Lqe=1024*8,Dqe=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),oT={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class nF{constructor(t=Lqe,n={}){qt(this,"buffer");qt(this,"byteLength");qt(this,"byteOffset");qt(this,"length");qt(this,"offset");qt(this,"lastWrittenByte");qt(this,"littleEndian");qt(this,"_data");qt(this,"_mark");qt(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const i=n.offset?n.offset>>>0:0,a=t.byteLength-i;let o=i;(ArrayBuffer.isView(t)||t instanceof nF)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+i),t=t.buffer),r?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=t,this.length=a,this.byteLength=a,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,a),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,n){const r=oT[n].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+r);if(this.littleEndian===Dqe&&n!=="uint8"&&n!=="int8"){const s=new Uint8Array(this.buffer.slice(i,i+r));s.reverse();const l=new oT[n](s.buffer);return this.offset+=r,l.reverse(),l}const o=new oT[n](a);return this.offset+=r,o}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let n="";for(let r=0;r<t;r++)n+=this.readChar();return n}readUtf8(t=1){return Oq(this.readBytes(t))}decodeText(t=1,n="utf8"){return Oq(this.readBytes(t),n)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let n=0;n<t.length;n++)this._data.setUint8(this.offset++,t[n]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let n=0;n<t.length;n++)this.writeUint8(t.charCodeAt(n));return this}writeUtf8(t){return this.writeBytes(Fqe(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function $g(e){let t=e.length;for(;--t>=0;)e[t]=0}const Mqe=3,Uqe=258,yre=29,Rqe=256,Qqe=Rqe+1+yre,vre=30,Hqe=512,$qe=new Array((Qqe+2)*2);$g($qe);const qqe=new Array(vre*2);$g(qqe);const zqe=new Array(Hqe);$g(zqe);const Vqe=new Array(Uqe-Mqe+1);$g(Vqe);const Wqe=new Array(yre);$g(Wqe);const Kqe=new Array(vre);$g(Kqe);const Gqe=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0};var HP=Gqe;const Yqe=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},Xqe=new Uint32Array(Yqe()),Jqe=(e,t,n,r)=>{const i=Xqe,a=r+n;e^=-1;for(let o=r;o<a;o++)e=e>>>8^i[(e^t[o])&255];return e^-1};var Ec=Jqe,$P={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},bre={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ER
vendor: 11,008 bytes, line 1436
1436ROR:-5,Z_DEFLATED:8};const Zqe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var eze=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)Zqe(n,r)&&(e[r]=n[r])}}return e},tze=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,a=e.length;r<a;r++){let o=e[r];n.set(o,i),i+=o.length}return n},wre={assign:eze,flattenChunks:tze};let xre=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{xre=!1}const L0=new Uint8Array(256);for(let e=0;e<256;e++)L0[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;L0[254]=L0[254]=1;var nze=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t};const rze=(e,t)=>{if(t<65534&&e.subarray&&xre)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var ize=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const a=new Array(n*2);for(i=0,r=0;r<n;){let o=e[r++];if(o<128){a[i++]=o;continue}let s=L0[o];if(s>4){a[i++]=65533,r+=s-1;continue}for(o&=s===2?31:s===3?15:7;s>1&&r<n;)o=o<<6|e[r++]&63,s--;if(s>1){a[i++]=65533;continue}o<65536?a[i++]=o:(o-=65536,a[i++]=55296|o>>10&1023,a[i++]=56320|o&1023)}return rze(a,i)},aze=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+L0[e[n]]>t?n:t},qP={string2buf:nze,buf2string:ize,utf8border:aze};function oze(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var sze=oze;const cx=16209,lze=16191;var cze=function(t,n){let r,i,a,o,s,l,c,d,A,h,m,b,g,y,v,x,B,C,E,T,j,O,L,z;const F=t.state;r=t.next_in,L=t.input,i=r+(t.avail_in-5),a=t.next_out,z=t.output,o=a-(n-t.avail_out),s=a+(t.avail_out-257),l=F.dmax,c=F.wsize,d=F.whave,A=F.wnext,h=F.window,m=F.hold,b=F.bits,g=F.lencode,y=F.distcode,v=(1<<F.lenbits)-1,x=(1<<F.distbits)-1;e:do{b<15&&(m+=L[r++]<<b,b+=8,m+=L[r++]<<b,b+=8),B=g[m&v];t:for(;;){if(C=B>>>24,m>>>=C,b-=C,C=B>>>16&255,C===0)z[a++]=B&65535;else if(C&16){E=B&65535,C&=15,C&&(b<C&&(m+=L[r++]<<b,b+=8),E+=m&(1<<C)-1,m>>>=C,b-=C),b<15&&(m+=L[r++]<<b,b+=8,m+=L[r++]<<b,b+=8),B=y[m&x];n:for(;;){if(C=B>>>24,m>>>=C,b-=C,C=B>>>16&255,C&16){if(T=B&65535,C&=15,b<C&&(m+=L[r++]<<b,b+=8,b<C&&(m+=L[r++]<<b,b+=8)),T+=m&(1<<C)-1,T>l){t.msg="invalid distance too far back",F.mode=cx;break e}if(m>>>=C,b-=C,C=a-o,T>C){if(C=T-C,C>d&&F.sane){t.msg="invalid distance too far back",F.mode=cx;break e}if(j=0,O=h,A===0){if(j+=c-C,C<E){E-=C;do z[a++]=h[j++];while(--C);j=a-T,O=z}}else if(A<C){if(j+=c+A-C,C-=A,C<E){E-=C;do z[a++]=h[j++];while(--C);if(j=0,A<E){C=A,E-=C;do z[a++]=h[j++];while(--C);j=a-T,O=z}}}else if(j+=A-C,C<E){E-=C;do z[a++]=h[j++];while(--C);j=a-T,O=z}for(;E>2;)z[a++]=O[j++],z[a++]=O[j++],z[a++]=O[j++],E-=3;E&&(z[a++]=O[j++],E>1&&(z[a++]=O[j++]))}else{j=a-T;do z[a++]=z[j++],z[a++]=z[j++],z[a++]=z[j++],E-=3;while(E>2);E&&(z[a++]=z[j++],E>1&&(z[a++]=z[j++]))}}else if((C&64)===0){B=y[(B&65535)+(m&(1<<C)-1)];continue n}else{t.msg="invalid distance code",F.mode=cx;break e}break}}else if((C&64)===0){B=g[(B&65535)+(m&(1<<C)-1)];continue t}else if(C&32){F.mode=lze;break e}else{t.msg="invalid literal/length code",F.mode=cx;break e}break}}while(r<i&&a<s);E=b>>3,r-=E,b-=E<<3,m&=(1<<b)-1,t.next_in=r,t.next_out=a,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=a<s?257+(s-a):257-(a-s),F.hold=m,F.bits=b};const Kp=15,Fq=852,Lq=592,Dq=0,sT=1,Mq=2,uze=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),dze=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Aze=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),fze=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),hze=(e,t,n,r,i,a,o,s)=>{const l=s.bits;let c=0,d=0,A=0,h=0,m=0,b=0,g=0,y=0,v=0,x=0,B,C,E,T,j,O=null,L;const z=new Uint16Array(Kp+1),F=new Uint16Array(Kp+1);let M=null,V,q,W;for(c=0;c<=Kp;c++)z[c]=0;for(d=0;d<r;d++)z[t[n+d]]++;for(m=l,h=Kp;h>=1&&z[h]===0;h--);if(m>h&&(m=h),h===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,s.bits=1,0;for(A=1;A<h&&z[A]===0;A++);for(m<A&&(m=A),y=1,c=1;c<=Kp;c++)if(y<<=1,y-=z[c],y<0)return-1;if(y>0&&(e===Dq||h!==1))return-1;for(F[1]=0,c=1;c<Kp;c++)F[c+1]=F[c]+z[c];for(d=0;d<r;d++)t[n+d]!==0&&(o[F[t[n+d]]++]=d);if(e===Dq?(O=M=o,L=20):e===sT?(O=uze,M=dze,L=257):(O=Aze,M=fze,L=0),x=0,d=0,c=A,j=a,b=m,g=0,E=-1,v=1<<m,T=v-1,e===sT&&v>Fq||e===Mq&&v>Lq)return 1;for(;;){V=c-g,o[d]+1<L?(q=0,W=o[d]):o[d]>=L?(q=M[o[d]-L],W=O[o[d]-L]):(q=96,W=0),B=1<<c-g,C=1<<b,A=C;do C-=B,i[j+(x>>g)+C]=V<<24|q<<16|W|0;while(C!==0);for(B=1<<c-1;x&B;)B>>=1;if(B!==0?(x&=B-1,x+=B):x=0,d++,--z[c]===0){if(c===h)break;c=t[n+o[d]]}if(c>m&&(x&T)!==E){for(g===0&&(g=m),j+=A,b=c-g,y=1<<b;b+g<h&&(y-=z[b+g],!(y<=0));)b++,y<<=1;if(v+=1<<b,e===sT&&v>Fq||e===Mq&&v>Lq)return 1;E=x&T,i[E]=m<<24|b<<16|j-a|0}}return x!==0&&(i[j+x]=c-g<<24|64<<16|0),s.bits=m,0};var Fv=hze;const pze=0,Sre=1,Bre=2,{Z_FINISH:Uq,Z_BLOCK:mze,Z_TREES:ux,Z_OK:Oh,Z_STREAM_END:gze,Z_NEED_DICT:yze,Z_STREAM_ERROR:cl,Z_DATA_ERROR:Cre,Z_MEM_ERROR:kre,Z_BUF_ERROR:vze,Z_DEFLATED:Rq}=bre,_B=16180,Qq=16181,Hq=16182,$q=16183,qq=16184,zq=16185,Vq=16186,Wq=16187,Kq=16188,Gq=16189,F2=16190,qu=16191,lT=16192,Yq=16193,cT=16194,Xq=16195,Jq=16196,Zq=16197,ez=16198,dx=16199,Ax=16200,tz=16201,nz=16202,rz=16203,iz=16204,az=16205,uT=16206,oz=16207,sz=16208,Qr=16209,Ere=16210,Nre=16211,bze=852,wze=592,xze=15,Sze=xze,lz=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Bze(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Xh=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<_B||t.mode>Nre?1:0},Tre=e=>{if(Xh(e))return cl;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=_B,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(bze),t.distcode=t.distdyn=new Int32Array(wze),t.sane=1,t.back=-1,Oh},_re=e=>{if(Xh(e))return cl;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Tre(e)},Ire=(e,t)=>{let n;if(Xh(e))return cl;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?cl:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,_re(e))},Pre=(e,t)=>{if(!e)return cl;const n=new Bze;e.state=n,n.strm=e,n.window=null,n.mode=_B;const r=Ire(e,t);return r!==Oh&&(e.state=null),r},Cze=e=>Pre(e,Sze);let cz=!0,dT,AT;const kze=e=>{if(cz){dT=new Int32Array(512),AT=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Fv(Sre,e.lens,0,288,dT,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Fv(Bre,e.lens,0,32,AT,0,e.work,{bits:5}),cz=!1}e.lencode=dT,e.lenbits=9,e.distcode=AT,e.distbits=5},jre=(e,t,n,r)=>{let i;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Eze=(e,t)=>{let n,r,i,a,o,s,l,c,d,A,h,m,b,g,y=0,v,x,B,C,E,T,j,O;const L=new Uint8Array(4);let z,F;const M=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Xh(e)||!e.output||!e.input&&e.avail_in!==0)return cl;n=e.state,n.mode===qu&&(n.mode=lT),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,c=n.hold,d=n.bits,A=s,h=l,O=Oh;e:for(;;)switch(n.mode){case _B:if(n.wrap===0){n.mode=lT;break}for(;d<16;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}if(n.wrap&2&&c===35615){n.wbits===0&&(n.wbits=15),n.check=0,L[0]=c&255,L[1]=c>>>8&255,n.check=Ec(n.check,L,2,0),c=0,d=0,n.mode=Qq;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=Qr;break}if((c&15)!==Rq){e.msg="unknown compression method",n.mode=Qr;break}if(c>>>=4,d-=4,j=(c&15)+8,n.wbits===0&&(n.wbits=j),j>15||j>n.wbits){e.msg="invalid window size",n.mode=Qr;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=c&512?Gq:qu,c=0,d=0;break;case Qq:for(;d<16;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}if(n.flags=c,(n.flags&255)!==Rq){e.msg="unknown compression method",n.mode=Qr;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=Qr;break}n.head&&(n.head.text=c>>8&1),n.flags&512&&n.wrap&4&&(L[0]=c&255,L[1]=c>>>8&255,n.check=Ec(n.check,L,2,0)),c=0,d=0,n.mode=Hq;case Hq:for(;d<32;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}n.head&&(n.head.time=c),n.flags&512&&n.wrap&4&&(L[0]=c&255,L[1]=c>>>8&255,L[2]=c>>>16&255,L[3]=c>>>24&255,n.check=Ec(n.check,L,4,0)),c=0,d=0,n.mode=$q;case $q:for(;d<16;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}n.head&&(n.head.xflags=c&255,n.head.os=c>>8),n.flags&512&&n.wrap&4&&(L[0]=c&255,L[1]=c>>>8&255,n.check=Ec(n.check,L,2,0)),c=0,d=0,n.mode=qq;case qq:if(n.flags&1024){for(;d<16;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}n.length=c,n.head&&(n.head.extra_len=c),n.flags&512&&n.wrap&4&&(L[0]=c&255,L[1]=c>>>8&255,n.check=Ec(n.check,L,2,0)),c=0,d=0}else n.head&&(n.head.extra=null);n.mode=zq;case zq:if(n.flags&1024&&(m=n.length,m>s&&(m=s),m&&(n.head&&(j=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+m),j)),n.flags&512&&n.wrap&4&&(n.check=Ec(n.check,r,m,a)),s-=m,a+=m,n.length-=m),n.length))break e;n.length=0,n.mode=Vq;
vendor: 4,937 bytes, line 1436
1436case Vq:if(n.flags&2048){if(s===0)break e;m=0;do j=r[a+m++],n.head&&j&&n.length<65536&&(n.head.name+=String.fromCharCode(j));while(j&&m<s);if(n.flags&512&&n.wrap&4&&(n.check=Ec(n.check,r,m,a)),s-=m,a+=m,j)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Wq;case Wq:if(n.flags&4096){if(s===0)break e;m=0;do j=r[a+m++],n.head&&j&&n.length<65536&&(n.head.comment+=String.fromCharCode(j));while(j&&m<s);if(n.flags&512&&n.wrap&4&&(n.check=Ec(n.check,r,m,a)),s-=m,a+=m,j)break e}else n.head&&(n.head.comment=null);n.mode=Kq;case Kq:if(n.flags&512){for(;d<16;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}if(n.wrap&4&&c!==(n.check&65535)){e.msg="header crc mismatch",n.mode=Qr;break}c=0,d=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=qu;break;case Gq:for(;d<32;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}e.adler=n.check=lz(c),c=0,d=0,n.mode=F2;case F2:if(n.havedict===0)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=d,yze;e.adler=n.check=1,n.mode=qu;case qu:if(t===mze||t===ux)break e;case lT:if(n.last){c>>>=d&7,d-=d&7,n.mode=uT;break}for(;d<3;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}switch(n.last=c&1,c>>>=1,d-=1,c&3){case 0:n.mode=Yq;break;case 1:if(kze(n),n.mode=dx,t===ux){c>>>=2,d-=2;break e}break;case 2:n.mode=Jq;break;case 3:e.msg="invalid block type",n.mode=Qr}c>>>=2,d-=2;break;case Yq:for(c>>>=d&7,d-=d&7;d<32;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Qr;break}if(n.length=c&65535,c=0,d=0,n.mode=cT,t===ux)break e;case cT:n.mode=Xq;case Xq:if(m=n.length,m){if(m>s&&(m=s),m>l&&(m=l),m===0)break e;i.set(r.subarray(a,a+m),o),s-=m,a+=m,l-=m,o+=m,n.length-=m;break}n.mode=qu;break;case Jq:for(;d<14;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}if(n.nlen=(c&31)+257,c>>>=5,d-=5,n.ndist=(c&31)+1,c>>>=5,d-=5,n.ncode=(c&15)+4,c>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Qr;break}n.have=0,n.mode=Zq;case Zq:for(;n.have<n.ncode;){for(;d<3;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}n.lens[M[n.have++]]=c&7,c>>>=3,d-=3}for(;n.have<19;)n.lens[M[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,z={bits:n.lenbits},O=Fv(pze,n.lens,0,19,n.lencode,0,n.work,z),n.lenbits=z.bits,O){e.msg="invalid code lengths set",n.mode=Qr;break}n.have=0,n.mode=ez;case ez:for(;n.have<n.nlen+n.ndist;){for(;y=n.lencode[c&(1<<n.lenbits)-1],v=y>>>24,x=y>>>16&255,B=y&65535,!(v<=d);){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}if(B<16)c>>>=v,d-=v,n.lens[n.have++]=B;else{if(B===16){for(F=v+2;d<F;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}if(c>>>=v,d-=v,n.have===0){e.msg="invalid bit length repeat",n.mode=Qr;break}j=n.lens[n.have-1],m=3+(c&3),c>>>=2,d-=2}else if(B===17){for(F=v+3;d<F;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}c>>>=v,d-=v,j=0,m=3+(c&7),c>>>=3,d-=3}else{for(F=v+7;d<F;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}c>>>=v,d-=v,j=0,m=11+(c&127),c>>>=7,d-=7}if(n.have+m>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Qr;break}for(;m--;)n.lens[n.have++]=j}}if(n.mode===Qr)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=Qr;break}if(n.lenbits=9,z={bits:n.lenbits},O=Fv(Sre,n.lens,0,n.nlen,n.lencode,0,n.work,z),n.lenbits=z.bits,O){e.msg="invalid literal/lengths set",n.mode=Qr;break}if(n.distbits=6,n.distcode=n.distdyn,z={bits:n.distbits},O=Fv(Bre,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,z),n.distbits=z.bits,O){e.msg="invalid distances set",n.mode=Qr;break}if(n.mode=dx,t===ux)break e;case dx:n.mode=Ax;case Ax:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=d,cze(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,c=n.hold,d=n.bits,n.mode===qu&&(n.back=-1);break}for(n.back=0;y=n.lencode[c&(1<<n.lenbits)-1],v=y>>>24,x=y>>>16&255,B=y&65535,!(v<=d);){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}if(x&&(x&240)===0){for(C=v,E=x,T=B;y=n.lencode[T+((c&(1<<C+E)-1)>>C)],v=y>>>24,x=y>>>16&255,B=y&65535,!(C+v<=d);){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}c>>>=C,d-=C,n.back+=C}if(c>>>=v,d-=v,n.back+=v,n.length=B,x===0){n.mode=az;break}if(x&32){n.back=-1,n.mode=qu;break}if(x&64){e.msg="invalid literal/length code",n.mode=Qr;break}n.extra=x&15,n.mode=tz;case tz:if(n.extra){for(F=n.extra;d<F;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=nz;case nz:for(;y=n.distcode[c&(1<<n.distbits)-1],v=y>>>24,x=y>>>16&255,B=y&65535,!(v<=d);){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}if((x&240)===0){for(C=v,E=x,T=B;y=n.distcode[T+((c&(1<<C+E)-1)>>C)],v=y>>>24,x=y>>>16&255,B=y&65535,!(C+v<=d);){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}c>>>=C,d-=C,n.back+=C}if(c>>>=v,d-=v,n.back+=v,x&64){e.msg="invalid distance code",n.mode=Qr;break}n.offset=B,n.extra=x&15,n.mode=rz;case rz:if(n.extra){for(F=n.extra;d<F;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>
vendor: 4,168 bytes, line 1436
1436n.dmax){e.msg="invalid distance too far back",n.mode=Qr;break}n.mode=iz;case iz:if(l===0)break e;if(m=h-l,n.offset>m){if(m=n.offset-m,m>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Qr;break}m>n.wnext?(m-=n.wnext,b=n.wsize-m):b=n.wnext-m,m>n.length&&(m=n.length),g=n.window}else g=i,b=o-n.offset,m=n.length;m>l&&(m=l),l-=m,n.length-=m;do i[o++]=g[b++];while(--m);n.length===0&&(n.mode=Ax);break;case az:if(l===0)break e;i[o++]=n.length,l--,n.mode=Ax;break;case uT:if(n.wrap){for(;d<32;){if(s===0)break e;s--,c|=r[a++]<<d,d+=8}if(h-=l,e.total_out+=h,n.total+=h,n.wrap&4&&h&&(e.adler=n.check=n.flags?Ec(n.check,i,h,o-h):HP(n.check,i,h,o-h)),h=l,n.wrap&4&&(n.flags?c:lz(c))!==n.check){e.msg="incorrect data check",n.mode=Qr;break}c=0,d=0}n.mode=oz;case oz:if(n.wrap&&n.flags){for(;d<32;){if(s===0)break e;s--,c+=r[a++]<<d,d+=8}if(n.wrap&4&&c!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=Qr;break}c=0,d=0}n.mode=sz;case sz:O=gze;break e;case Qr:O=Cre;break e;case Ere:return kre;case Nre:default:return cl}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=d,(n.wsize||h!==e.avail_out&&n.mode<Qr&&(n.mode<uT||t!==Uq))&&jre(e,e.output,e.next_out,h-e.avail_out),A-=e.avail_in,h-=e.avail_out,e.total_in+=A,e.total_out+=h,n.total+=h,n.wrap&4&&h&&(e.adler=n.check=n.flags?Ec(n.check,i,h,e.next_out-h):HP(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===qu?128:0)+(n.mode===dx||n.mode===cT?256:0),(A===0&&h===0||t===Uq)&&O===Oh&&(O=vze),O},Nze=e=>{if(Xh(e))return cl;let t=e.state;return t.window&&(t.window=null),e.state=null,Oh},Tze=(e,t)=>{if(Xh(e))return cl;const n=e.state;return(n.wrap&2)===0?cl:(n.head=t,t.done=!1,Oh)},_ze=(e,t)=>{const n=t.length;let r,i,a;return Xh(e)||(r=e.state,r.wrap!==0&&r.mode!==F2)?cl:r.mode===F2&&(i=1,i=HP(i,t,n,0),i!==r.check)?Cre:(a=jre(e,t,n,n),a?(r.mode=Ere,kre):(r.havedict=1,Oh))};var Ize=_re,Pze=Ire,jze=Tre,Oze=Cze,Fze=Pre,Lze=Eze,Dze=Nze,Mze=Tze,Uze=_ze,Rze="pako inflate (from Nodeca project)",Vu={inflateReset:Ize,inflateReset2:Pze,inflateResetKeep:jze,inflateInit:Oze,inflateInit2:Fze,inflate:Lze,inflateEnd:Dze,inflateGetHeader:Mze,inflateSetDictionary:Uze,inflateInfo:Rze};function Qze(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Hze=Qze;const Ore=Object.prototype.toString,{Z_NO_FLUSH:$ze,Z_FINISH:qze,Z_OK:D0,Z_STREAM_END:fT,Z_NEED_DICT:hT,Z_STREAM_ERROR:zze,Z_DATA_ERROR:uz,Z_MEM_ERROR:Vze}=bre;function vb(e){this.options=wre.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new sze,this.strm.avail_out=0;let n=Vu.inflateInit2(this.strm,t.windowBits);if(n!==D0)throw new Error($P[n]);if(this.header=new Hze,Vu.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=qP.string2buf(t.dictionary):Ore.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Vu.inflateSetDictionary(this.strm,t.dictionary),n!==D0)))throw new Error($P[n])}vb.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?qze:$ze,Ore.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=Vu.inflate(n,o),a===hT&&i&&(a=Vu.inflateSetDictionary(n,i),a===D0?a=Vu.inflate(n,o):a===uz&&(a=hT));n.avail_in>0&&a===fT&&n.state.wrap>0&&e[n.next_in]!==0;)Vu.inflateReset(n),a=Vu.inflate(n,o);switch(a){case zze:case uz:case hT:case Vze:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===fT))if(this.options.to==="string"){let l=qP.utf8border(n.output,n.next_out),c=n.next_out-l,d=qP.buf2
vendor: 9,461 bytes, line 1436
1436string(n.output,l);n.next_out=c,n.avail_out=r-c,c&&n.output.set(n.output.subarray(l,l+c),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===D0&&s===0)){if(a===fT)return a=Vu.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};vb.prototype.onData=function(e){this.chunks.push(e)};vb.prototype.onEnd=function(e){e===D0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=wre.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Wze(e,t){const n=new vb(t);if(n.push(e),n.err)throw n.msg||$P[n.err];return n.result}var Kze=vb,Gze=Wze,Yze={Inflate:Kze,inflate:Gze};const{Inflate:Xze,inflate:Jze}=Yze;var dz=Xze,Zze=Jze;const Fre=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;Fre[e]=t}const Az=4294967295;function eVe(e,t,n){let r=e;for(let i=0;i<n;i++)r=Fre[(r^t[i])&255]^r>>>8;return r}function tVe(e,t){return(eVe(Az,e,t)^Az)>>>0}function fz(e,t,n){const r=e.readUint32(),i=tVe(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function Lre(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function Dre(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function Mre(e,t,n,r){let i=0;if(n.length===0)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function Ure(e,t,n,r,i){let a=0;if(n.length===0){for(;a<i;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+(t[a-i]>>1)&255}else{for(;a<i;a++)t[a]=e[a]+(n[a]>>1)&255;for(;a<r;a++)t[a]=e[a]+(t[a-i]+n[a]>>1)&255}}function Rre(e,t,n,r,i){let a=0;if(n.length===0){for(;a<i;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+t[a-i]&255}else{for(;a<i;a++)t[a]=e[a]+n[a]&255;for(;a<r;a++)t[a]=e[a]+nVe(t[a-i],n[a],n[a-i])&255}}function nVe(e,t,n){const r=e+t-n,i=Math.abs(r-e),a=Math.abs(r-t),o=Math.abs(r-n);return i<=a&&i<=o?e:a<=o?t:n}function rVe(e,t,n,r,i,a){switch(e){case 0:Lre(t,n,i);break;case 1:Dre(t,n,i,a);break;case 2:Mre(t,n,r,i);break;case 3:Ure(t,n,r,i,a);break;case 4:Rre(t,n,r,i,a);break;default:throw new Error(`Unsupported filter: ${e}`)}}const iVe=new Uint16Array([255]),aVe=new Uint8Array(iVe.buffer),oVe=aVe[0]===255;function sVe(e){const{data:t,width:n,height:r,channels:i,depth:a}=e,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(a/8)*i,l=new Uint8Array(r*n*s);let c=0;for(let d=0;d<7;d++){const A=o[d],h=Math.ceil((n-A.x)/A.xStep),m=Math.ceil((r-A.y)/A.yStep);if(h<=0||m<=0)continue;const b=h*s,g=new Uint8Array(b);for(let y=0;y<m;y++){const v=t[c++],x=t.subarray(c,c+b);c+=b;const B=new Uint8Array(b);rVe(v,x,B,g,b,s),g.set(B);for(let C=0;C<h;C++){const E=A.x+C*A.xStep,T=A.y+y*A.yStep;if(!(E>=n||T>=r))for(let j=0;j<s;j++)l[(T*n+E)*s+j]=B[C*s+j]}}}if(a===16){const d=new Uint16Array(l.buffer);if(oVe)for(let A=0;A<d.length;A++)d[A]=lVe(d[A]);return d}else return l}function lVe(e){return(e&255)<<8|e>>8&255}const cVe=new Uint16Array([255]),uVe=new Uint8Array(cVe.buffer),dVe=uVe[0]===255,AVe=new Uint8Array(0);function hz(e){const{data:t,width:n,height:r,channels:i,depth:a}=e,o=Math.ceil(a/8)*i,s=Math.ceil(a/8*i*n),l=new Uint8Array(r*s);let c=AVe,d=0,A,h;for(let m=0;m<r;m++){switch(A=t.subarray(d+1,d+1+s),h=l.subarray(m*s,(m+1)*s),t[d]){case 0:Lre(A,h,s);break;case 1:Dre(A,h,s,o);break;case 2:Mre(A,h,c,s);break;case 3:Ure(A,h,c,s,o);break;case 4:Rre(A,h,c,s,o);break;default:throw new Error(`Unsupported filter: ${t[d]}`)}c=h,d+=s+1}if(a===16){const m=new Uint16Array(l.buffer);if(dVe)for(let b=0;b<m.length;b++)m[b]=fVe(m[b]);return m}else return l}function fVe(e){return(e&255)<<8|e>>8&255}const qx=Uint8Array.of(137,80,78,71,13,10,26,10);function pz(e){if(!hVe(e.readBytes(qx.length)))throw new Error("wrong PNG signature")}function hVe(e){if(e.length<qx.length)return!1;for(let t=0;t<qx.length;t++)if(e[t]!==qx[t])return!1;return!0}const pVe="tEXt",mVe=0,Qre=new TextDecoder("latin1");function gVe(e){if(vVe(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const yVe=/^[\u0000-\u00FF]*$/;function vVe(e){if(!yVe.test(e))throw new Error("invalid latin1 text")}function bVe(e,t,n){const r=Hre(t);e[r]=wVe(t,n-r.length-1)}function Hre(e){for(e.mark();e.readByte()!==mVe;);const t=e.offset;e.reset();const n=Qre.decode(e.readBytes(t-e.offset-1));return e.skip(1),gVe(n),n}function wVe(e,t){return Qre.decode(e.readBytes(t))}const ls={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},pT={UNKNOWN:-1,DEFLATE:0},mz={UNKNOWN:-1,ADAPTIVE:0},mT={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},fx={NONE:0,BACKGROUND:1,PREVIOUS:2},gT={SOURCE:0,OVER:1};class xVe extends nF{constructor(n,r={}){super(n);qt(this,"_checkCrc");qt(this,"_inflator");qt(this,"_png");qt(this,"_apng");qt(this,"_end");qt(this,"_hasPalette");qt(this,"_palette");qt(this,"_hasTransparency");qt(this,"_transparency");qt(this,"_compressionMethod");qt(this,"_filterMethod");qt(this,"_interlaceMethod");qt(this,"_colorType");qt(this,"_isAnimated");qt(this,"_numberOfFrames");qt(this,"_numberOfPlays");qt(this,"_frames");qt(this,"_writingDataChunks");const{checkCrc:i=!1}=r;this._checkCrc=i,this._inflator=new dz,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=pT.UNKNOWN,this._filterMethod=mz.UNKNOWN,this._interlaceMethod=mT.UNKNOWN,this._colorType=ls.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(pz(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeChunk(n,r)}return this.decodeImage(),this._png}decodeApng(){for(pz(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(n,r)}return this.decodeApngImage(),this._apng}decodeChunk(n,r){const i=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case pVe:bVe(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?fz(this,n+4,r):this.skip(4)}decodeApngChunk(n,r){const i=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,r),this.offset=i+n;break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?fz(this,n+4,r):this.skip(4)}decodeIHDR(){const n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=SVe(this.readUint8());const r=this.readUint8();this._colorType=r;let i;switch(r){case ls.GREYSCALE:i=1;break;case ls.TRUECOLOUR:i=3;break;case ls.INDEXED_COLOUR:i=1;break;case ls.GREYSCALE_ALPHA:i=2;break;case ls.TRUECOLOUR_ALPHA:i=4;break;case ls.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==pT.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);const r=n/3;this._hasPalette=!0;const i=[];this._palette=i;for(let a=0;a<r;a++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;const r=n,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let r=n,i=this.offset+this.byteOffset;if(i+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case ls.GREYSCALE:case ls.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let r=0;r<n/2;r++)this._transparency[r]=this.readUint16();break}case ls.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alph
1436a values than there are palette colors (${n} vs ${this._palette.length})`);let r=0;for(;r<n;r++){const i=this.readByte();this._palette[r].push(i)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case ls.UNKNOWN:case ls.GREYSCALE_ALPHA:case ls.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){const r=Hre(this),i=this.readUint8();if(i!==pT.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const a=this.readBytes(n-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:Zze(a)}}decodepHYs(){const n=this.readUint32(),r=this.readUint32(),i=this.readByte();this._png.resolution={x:n,y:r,unit:i}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){const r={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},i=this._frames.at(n);if(i){if(i.data=hz({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)r.data=i.data;else{const a=this._apng.frames.at(n-1);this.disposeFrame(i,a,r),this.addFrameDataToCanvas(r,i)}this._apng.frames.push(r)}}return this._apng}disposeFrame(n,r,i){switch(n.disposeOp){case fx.NONE:break;case fx.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let o=0;o<this._png.width;o++){const s=(a*n.width+o)*this._png.channels;for(let l=0;l<this._png.channels;l++)i.data[s+l]=0}break;case fx.PREVIOUS:i.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,r){const i=1<<this._png.depth,a=(o,s)=>{const l=((o+r.yOffset)*this._png.width+r.xOffset+s)*this._png.channels,c=(o*r.width+s)*this._png.channels;return{index:l,frameIndex:c}};switch(r.blendOp){case gT.SOURCE:for(let o=0;o<r.height;o++)for(let s=0;s<r.width;s++){const{index:l,frameIndex:c}=a(o,s);for(let d=0;d<this._png.channels;d++)n.data[l+d]=r.data[c+d]}break;case gT.OVER:for(let o=0;o<r.height;o++)for(let s=0;s<r.width;s++){const{index:l,frameIndex:c}=a(o,s);for(let d=0;d<this._png.channels;d++){const A=r.data[c+this._png.channels-1]/i,h=d%(this._png.channels-1)===0?1:r.data[c+d],m=Math.floor(A*h+(1-A)*n.data[l+d]);n.data[l+d]+=m}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const n=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==mz.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===mT.NO_INTERLACE)this._png.data=hz({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===mT.ADAM7)this._png.data=sVe({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const n=this._inflator.result,r=this._frames.at(-1);r?r.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:fx.NONE,blendOp:gT.SOURCE,data:n}),this._inflator=new dz,this._writingDataChunks=!1}}function SVe(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var gz;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(gz||(gz={}));function BVe(e,t){return new xVe(e,t).decode()}var on=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function yT(){on.console&&typeof on.console.log=="function"&&on.console.log.apply(on.console,arguments)}var pr={log:yT,warn:function(e){on.console&&(typeof on.console.warn=="function"?on.console.warn.apply(on.console,arguments):yT.call(null,arguments))},error:function(e){on.console&&(typeof on.console.error=="function"?on.console.error.apply(on.console,arguments):yT(e))}};function vT(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){zf(r.response,t,n
vendor: 3,704 bytes, lines 1436-1441
1436)},r.onerror=function(){pr.error("could not download file")},r.send()}function yz(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function hx(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var zf=on.saveAs||((typeof window>"u"?"undefined":sr(window))!=="object"||window!==on?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=on.URL||on.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?yz(i.href)?vT(e,t,n):hx(i,i.target="_blank"):hx(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){hx(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(yz(e))vT(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){hx(r)})}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:sr(a)!=="object"&&(pr.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i})(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return vT(e,t,n);var i=e.type==="application/octet-stream",a=/constructor/i.test(on.HTMLElement)||on.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":sr(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var d=s.result;d=o?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=d:location=d,r=null},s.readAsDataURL(e)}else{var l=on.URL||on.webkitURL,c=l.createObjectURL(e);r?r.location=c:location.href=c,r=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/**
1437 * A class to parse color values
1438 * @author Stoyan Stefanov <[email protected]>
1439 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
1440 * @license Use it if you like it
1441 */function $re(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
14410",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,a=n[r].process,o=i.exec(e);o&&(t=a(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+s+l+c}}var zx=on.atob.bind(on),vz=on.btoa.bind(on);/**
1442 * @license
1443 * Joseph Myers does not specify a particular license for his work.
1444 *
1445 * Author: Joseph Myers
1446 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
1447 *
1448 * Modified by: Owen Leong
1449 */function bT(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n=Ha(n,r,i,a,t[0],7,-680876936),a=Ha(a,n,r,i,t[1],12,-389564586),i=Ha(i,a,n,r,t[2],17,606105819),r=Ha(r,i,a,n,t[3],22,-1044525330),n=Ha(n,r,i,a,t[4],7,-176418897),a=Ha(a,n,r,i,t[5],12,1200080426),i=Ha(i,a,n,r,t[6],17,-1473231341),r=Ha(r,i,a,n,t[7],22,-45705983),n=Ha(n,r,i,a,t[8],7,1770035416),a=Ha(a,n,r,i,t[9],12,-1958414417),i=Ha(i,a,n,r,t[10],17,-42063),r=Ha(r,i,a,n,t[11],22,-1990404162),n=Ha(n,r,i,a,t[12],7,1804603682),a=Ha(a,n,r,i,t[13],12,-40341101),i=Ha(i,a,n,r,t[14],17,-1502002290),n=$a(n,r=Ha(r,i,a,n,t[15],22,1236535329),i,a,t[1],5,-165796510),a=$a(a,n,r,i,t[6],9,-1069501632),i=$a(i,a,n,r,t[11],14,643717713),r=$a(r,i,a,n,t[0],20,-373897302),n=$a(n,r,i,a,t[5],5,-701558691),a=$a(a,n,r,i,t[10],9,38016083),i=$a(i,a,n,r,t[15],14,-660478335),r=$a(r,i,a,n,t[4],20,-405537848),n=$a(n,r,i,a,t[9],5,568446438),a=$a(a,n,r,i,t[14],9,-1019803690),i=$a(i,a,n,r,t[3],14,-187363961),r=$a(r,i,a,n,t[8],20,1163531501),n=$a(n,r,i,a,t[13],5,-1444681467),a=$a(a,n,r,i,t[2],9,-51403784),i=$a(i,a,n,r,t[7],14,1735328473),n=qa(n,r=$a(r,i,a,n,t[12],20,-1926607734),i,a,t[5],4,-378558),a=qa(a,n,r,i,t[8],11,-2022574463),i=qa(i,a,n,r,t[11],16,1839030562),r=qa(r,i,a,n,t[14],23,-35309556),n=qa(n,r,i,a,t[1],4,-1530992060),a=qa(a,n,r,i,t[4],11,1272893353),i=qa(i,a,n,r,t[7],16,-155497632),r=qa(r,i,a,n,t[10],23,-1094730640),n=qa(n,r,i,a,t[13],4,681279174),a=qa(a,n,r,i,t[0],11,-358537222),i=qa(i,a,n,r,t[3],16,-722521979),r=qa(r,i,a,n,t[6],23,76029189),n=qa(n,r,i,a,t[9],4,-640364487),a=qa(a,n,r,i,t[12],11,-421815835),i=qa(i,a,n,r,t[15],16,530742520),n=za(n,r=qa(r,i,a,n,t[2],23,-995338651),i,a,t[0],6,-198630844),a=za(a,n,r,i,t[7],10,1126891415),i=za(i,a,n,r,t[14],15,-1416354905),r=za(r,i,a,n,t[5],21,-57434055),n=za(n,r,i,a,t[12],6,1700485571),a=za(a,n,r,i,t[3],10,-1894986606),i=za(i,a,n,r,t[10],15,-1051523),r=za(r,i,a,n,t[1],21,-2054922799),n=za(n,r,i,a,t[8],6,1873313359),a=za(a,n,r,i,t[15],10,-30611744),i=za(i,a,n,r,t[6],15,-1560198380),r=za(r,i,a,n,t[13],21,1309151649),n=za(n,r,i,a,t[4],6,-145523070),a=za(a,n,r,i,t[11],10,-1120210379),i=za(i,a,n,r,t[2],15,718787259),r=za(r,i,a,n,t[9],21,-343485551),e[0]=kA(n,e[0]),e[1]=kA(r,e[1]),e[2]=kA(i,e[2]),e[3]=kA(a,e[3])}function IB(e,t,n,r,i,a){return t=kA(kA(t,e),kA(r,a)),kA(t<<i|t>>>32-i,n)}function Ha(e,t,n,r,i,a,o){return IB(t&n|~t&r,e,t,i,a,o)}function $a(e,t,n,r,i,a,o){return IB(t&r|n&~r,e,t,i,a,o)}function qa(e,t,n,r,i,a,o){return IB(t^n^r,e,t,i,a,o)}function za(e,t,n,r,i,a,o){return IB(n^(t|~r),e,t,i,a,o)}function qre(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)bT(r,CVe(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(bT(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,bT(r,i),r}function CVe(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var bz="0123456789abcdef".split("");function kVe(e){for(var t="",n=0;n<4;n++)t+=bz[e>>8*n+4&15]+bz[e>>8*n&15];return t}function EVe(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function zP(e){return qre(e).map(EVe).join("")}var NVe=(function(e){for(var t=0;t<e.length;t++)e[t]=kVe(e[t]);return e.join("")})(qre("hello"))!="5d41402abc4b2a76b9719d911017c592";function kA(e,t){if(NVe){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/**
1450 * @license
1451 * FPDF is released under a permissive license: there is no usage restriction.
1452 * You may embed it freely in your application (commercial or not), with or
1453 * without modifications.
1454 *
1455 * Reference: http://www.fpdf.org/en/script/script37.php
1456 */function VP(e,t){var n,r,i,a;if(e!==n){for(var o=(i=e,a=1+(256/e.length|0),new Array(a+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var d=s[l];
vendor: 5,759 bytes, lines 1456-1466
1456c=(c+d+o.charCodeAt(l))%256,s[l]=s[c],s[c]=d}n=e,r=s}else s=r;var A=t.length,h=0,m=0,b="";for(l=0;l<A;l++)m=(m+(d=s[h=(h+1)%256]))%256,s[h]=s[m],s[m]=d,o=s[(s[h]+s[m])%256],b+=String.fromCharCode(t.charCodeAt(l)^o);return b}/**
1457 * @license
1458 * Licensed under the MIT License.
1459 * http://opensource.org/licenses/mit-license
1460 * Author: Owen Leong (@owenl131)
1461 * Date: 15 Oct 2020
1462 * References:
1463 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
1464 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
1465 * http://www.fpdf.org/en/script/script37.php
1466 */var wz={print:4,modify:8,copy:16,"annot-forms":32};function tm(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(s){if(wz.perm!==void 0)throw new Error("Invalid permission: "+s);i+=wz[s]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var a=(t+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=zP(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=VP(this.encryptionKey,this.padding)}function nm(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);t+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):e[r]}return t}function xz(e){if(sr(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,r,i){if(i=i||!1,typeof n!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var a=Math.random().toString(35);return t[n][a]=[r,!!i],a},this.unsubscribe=function(n){for(var r in t)if(t[r][n])return delete t[r][n],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[n]){var o=t[n][a];try{o[0].apply(e,r)}catch(s){on.console&&pr.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function L2(e){if(!(this instanceof L2))return new L2(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function zre(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Kf(e,t,n,r,i){if(!(this instanceof Kf))return new Kf(e,t,n,r,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,zre.call(this,r,i)}function Am(e,t,n,r,i){if(!(this instanceof Am))return new Am(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,zre.call(this,r,i)}function Qt(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,l=16,c="S",d=null;sr(e=e||{})==="object"&&(n=e.orientation,r=e.unit||r,i=e.format||i,a=e.compress||e.compressPdf||a,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),o=e.filters||(a===!0?["FlateEncode"]:o),r=r||"mm",n=(""+(n||"P")).toLowerCase();var A=e.putOnlyUsedFonts||!1,h={},m={internal:{},__private__:{}};m.__private__.PubSub=xz;var b="1.3",g=m.__private__.getPdfVersion=function(){return b};m.__private__.setPdfVersion=function(I){b=I};var y={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};m.__private__.getPageFormats=function(){return y};var v=m.__private__.getPageFormat=function(I){return y[I]};i=i||"a4";var x="compat",B="advanced",C=x;function E(){this.saveGraphicsState(),ae(new Tt(At,0,0,-At,0,ko()*At).toString()+" cm"),this.setFontSize(this.getFontSize()/At),c="n",C=B}function T(){this.restoreGraphicsState(),c="S",C=x}var j=m.__private__.combineFontStyleAndFontWeight=function(I,Y){if(I=="bold"&&Y=="normal"||I=="bold"&&Y==400||I=="normal"&&Y=="italic"||I=="bold"&&Y=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Y&&(I=Y==400||Y==="normal"?I==="italic"?"italic":"normal":Y!=700&&Y!=="bold"||I!=="normal"?(Y==700?"bold":Y)+""+I:"bold"),I};m.advancedAPI=function(I){var Y=C===x;return Y&&E.call(this),typeof I!="function"||(I(this),Y&&T.call(this)),this},m.compatAPI=function(I){var Y=C===B;return Y&&T.call(this),typeof I!="function"||(I(this),Y&&E.call(this)),this},m.isAdvancedAPI=function(){return C===B};var O,L=function(I){if(C!==B)throw new Error(I+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},z=m.roundToPrecision=m.__private__.roundToPrecision=function(I,Y){var fe=t||Y;if(isNaN(I)||isNaN(fe))throw new Error("Invalid argument passed to 
1466jsPDF.roundToPrecision");return I.toFixed(fe).replace(/0+$/,"")};O=m.hpf=m.__private__.hpf=typeof l=="number"?function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.hpf");return z(I,l)}:l==="smart"?function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.hpf");return z(I,I>-1&&I<1?16:5)}:function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.hpf");return z(I,16)};var F=m.f2=m.__private__.f2=function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.f2");return z(I,2)},M=m.__private__.f3=function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.f3");return z(I,3)},V=m.scale=m.__private__.scale=function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.scale");return C===x?I*At:C===B?I:void 0},q=function(I){return V((function(Y){return C===x?ko()-Y:C===B?Y:void 0})(I))};m.__private__.setPrecision=m.setPrecision=function(I){typeof parseInt(I,10)=="number"&&(t=parseInt(I,10))};var W,ee="00000000000000000000000000000000",ne=m.__private__.getFileId=function(){return ee},K=m.__private__.setFileId=function(I){return ee=I!==void 0&&/^[a-fA-F0-9]{32}$/.test(I)?I.toUpperCase():ee.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(fi=new tm(d.userPermissions,d.userPassword,d.ownerPassword,ee)),ee};m.setFileId=function(I){return K(I),this},m.getFileId=function(){return ne()};var oe=m.__private__.convertDateToPDFDate=function(I){var Y=I.getTimezoneOffset(),fe=Y<0?"+":"-",we=Math.floor(Math.abs(Y/60)),Ne=Math.abs(Y%60),$e=[fe,re(we),"'",re(Ne),"'"].join("");return["D:",I.getFullYear(),re(I.getMonth()+1),re(I.getDate()),re(I.getHours()),re(I.getMinutes()),re(I.getSeconds()),$e].join("")},$=m.__private__.convertPDFDateToDate=function(I){var Y=parseInt(I.substr(2,4),10),fe=parseInt(I.substr(6,2),10)-1,we=parseInt(I.substr(8,2),10),Ne=parseInt(I.substr(10,2),10),$e=parseInt(I.substr(12,2),10),Xe=parseInt(I.substr(14,2),10);return new Date(Y,fe,we,Ne,$e,Xe,0)},X=m.__private__.setCreationDate=function(I){var Y;if(I===void 0&&(I=new Date),I instanceof Date)Y=oe(I);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(I))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Y=I}return W=Y},Q=m.__private__.getCreationDate=function(I){var Y=W;return I==="jsDate"&&(Y=$(W)),Y};m.setCreationDate=function(I){return X(I),this},m.getCreationDate=function(I){return Q(I)};var R,re=m.__private__.padd2=function(I){return("0"+parseInt(I)).slice(-2)},ce=m.__private__.padd2Hex=function(I){return("00"+(I=I.toString())).substr(I.length)},le=0,he=[],ye=[],Ae=0,be=[],Ee=[],ge=!1,Ue=ye;m.__private__.setCustomOutputDestination=function(I){ge=!0,Ue=I};var Ye=function(I){ge||(Ue=I)};m.__private__.resetCustomOutputDestination=function(){ge=!1,Ue=ye};var ae=m.__private__.out=function(I){return I=I.toString(),Ae+=I.length+1,Ue.push(I),Ue},Le=m.__private__.write=function(I){return ae(arguments.length===1?I.toString():Array.prototype.join.call(arguments," "))},st=m.__private__.getArrayBuffer=function(I){for(var Y=I.length,fe=new ArrayBuffer(Y),we=new Uint8Array(fe);Y--;)we[Y]=I.charCodeAt(Y);return fe},ut=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];m.__private__.getStandardFonts=function(){return ut};var He=e.fontSize||16;m.__private__.setFontSize=m.setFontSize=function(I){return He=C===B?I/At:I,this};var ht,it=m.__private__.getFontSize=m.getFontSize=function(){return C===x?He:He*At},pt=e.R2L||!1;m.__private__.setR2L=m.setR2L=function(I){return pt=I,this},m.__private__.getR2L=m.getR2L=function(){return pt};var Bt,gn=m.__private__.setZoomMode=function(I){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(I))ht=I;else if(isNaN(I)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(I)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+I+'" is not recognized.');ht=I}else ht=parseInt(I,10)};m.__private__.getZoomMode=function(){return ht};var zt,Ie=m.__private__.setPageMode=function(I){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(I)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+I+'" is not recognized.');Bt=I};m.__private__.getPageMode=function(){return Bt};var ze=m.__private__.setLayoutMode=function(I){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(I)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+I+'" is not recognized.');zt=I};m.__private__.getLayoutMode=function(){return zt},m.__private__.setDisplayMode=m.setDisplayMode=function(I,Y,fe){return gn(I),ze(Y),Ie(fe),this};var at={title:"",subject:"",author:"",keywords:"",creator:""};m.__private__.getDocumentProperty=function(I){if(Object.keys(at).indexOf(I)===-1)throw new Error("Invalid argument passed to 
1466jsPDF.getDocumentProperty");return at[I]},m.__private__.getDocumentProperties=function(){return at},m.__private__.setDocumentProperties=m.setProperties=m.setDocumentProperties=function(I){for(var Y in at)at.hasOwnProperty(Y)&&I[Y]&&(at[Y]=I[Y]);return this},m.__private__.setDocumentProperty=function(I,Y){if(Object.keys(at).indexOf(I)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return at[I]=Y};var Ze,At,ft,Ln,Gt,Yt={},Vt={},fn=[],wt={},yn={},Mt={},en={},En=null,rn=0,$t=[],Nn=new xz(m),zo=e.hotfixes||[],ve={},Ve={},vt=[],Tt=function I(Y,fe,we,Ne,$e,Xe){if(!(this instanceof I))return new I(Y,fe,we,Ne,$e,Xe);isNaN(Y)&&(Y=1),isNaN(fe)&&(fe=0),isNaN(we)&&(we=0),isNaN(Ne)&&(Ne=1),isNaN($e)&&($e=0),isNaN(Xe)&&(Xe=0),this._matrix=[Y,fe,we,Ne,$e,Xe]};Object.defineProperty(Tt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(I){this._matrix[0]=I}}),Object.defineProperty(Tt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(I){this._matrix[1]=I}}),Object.defineProperty(Tt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(I){this._matrix[2]=I}}),Object.defineProperty(Tt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(I){this._matrix[3]=I}}),Object.defineProperty(Tt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(I){this._matrix[4]=I}}),Object.defineProperty(Tt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(I){this._matrix[5]=I}}),Object.defineProperty(Tt.prototype,"a",{get:function(){return this._matrix[0]},set:function(I){this._matrix[0]=I}}),Object.defineProperty(Tt.prototype,"b",{get:function(){return this._matrix[1]},set:function(I){this._matrix[1]=I}}),Object.defineProperty(Tt.prototype,"c",{get:function(){return this._matrix[2]},set:function(I){this._matrix[2]=I}}),Object.defineProperty(Tt.prototype,"d",{get:function(){return this._matrix[3]},set:function(I){this._matrix[3]=I}}),Object.defineProperty(Tt.prototype,"e",{get:function(){return this._matrix[4]},set:function(I){this._matrix[4]=I}}),Object.defineProperty(Tt.prototype,"f",{get:function(){return this._matrix[5]},set:function(I){this._matrix[5]=I}}),Object.defineProperty(Tt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Tt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Tt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Tt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Tt.prototype.join=function(I){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(I)},Tt.prototype.multiply=function(I){var Y=I.sx*this.sx+I.shy*this.shx,fe=I.sx*this.shy+I.shy*this.sy,we=I.shx*this.sx+I.sy*this.shx,Ne=I.shx*this.shy+I.sy*this.sy,$e=I.tx*this.sx+I.ty*this.shx+this.tx,Xe=I.tx*this.shy+I.ty*this.sy+this.ty;return new Tt(Y,fe,we,Ne,$e,Xe)},Tt.prototype.decompose=function(){var I=this.sx,Y=this.shy,fe=this.shx,we=this.sy,Ne=this.tx,$e=this.ty,Xe=Math.sqrt(I*I+Y*Y),Et=(I/=Xe)*fe+(Y/=Xe)*we;fe-=I*Et,we-=Y*Et;var Lt=Math.sqrt(fe*fe+we*we);return Et/=Lt,I*(we/=Lt)<Y*(fe/=Lt)&&(I=-I,Y=-Y,Et=-Et,Xe=-Xe),{scale:new Tt(Xe,0,0,Lt,0,0),translate:new Tt(1,0,0,1,Ne,$e),rotate:new Tt(I,Y,-Y,I,0,0),skew:new Tt(1,0,Et,1,0,0)}},Tt.prototype.toString=function(I){return this.join(" ")},Tt.prototype.inversed=function(){var I=this.sx,Y=this.shy,fe=this.shx,we=this.sy,Ne=this.tx,$e=this.ty,Xe=1/(I*we-Y*fe),Et=we*Xe,Lt=-Y*Xe,nn=-fe*Xe,ln=I*Xe;return new Tt(Et,Lt,nn,ln,-Et*Ne-nn*$e,-Lt*Ne-ln*$e)},Tt.prototype.applyToPoint=function(I){var Y=I.x*this.sx+I.y*this.shx+this.tx,fe=I.x*this.shy+I.y*this.sy+this.ty;return new So(Y,fe)},Tt.prototype.applyToRectangle=function(I){var Y=this.applyToPoint(I),fe=this.applyToPoint(new So(I.x+I.w,I.y+I.h));return new pu(Y.x,Y.y,fe.x-Y.x,fe.y-Y.y)},Tt.prototype.clone=function(){var I=this.sx,Y=this.shy,fe=this.shx,we=this.sy,Ne=this.tx,$e=this.ty;return new Tt(I,Y,fe,we,Ne,$e)},m.Matrix=Tt;var jr=m.matrixMult=function(I,Y){return Y.multiply(I)},Or=new Tt(1,0,0,1,0,0);m.unitMatrix=m.identityMatrix=Or;var kr=function(I,Y){if(!yn[I]){var fe=(Y instanceof Kf?"Sh":"P")+(Object.keys(wt).length+1).toString(10);Y.id=fe,yn[I]=fe,wt[fe]=Y,Nn.publish("addPattern",Y)}};m.ShadingPattern=Kf,m.TilingPattern=Am,m.addShadingPattern=function(I,Y){return L("addShadingPattern()"),kr(I,Y),this},m.beginTilingPattern=function(I){L("beginTilingPattern()"),Bo(I.boundingBox[0],I.boundingBox[1],I.boundingBox[2]-I.boundingBox[0],I.boundingBox[3]-I.boundingBox[1],I.matrix
vendor: 20,179 bytes, lines 1466-1472
1466)},m.endTilingPattern=function(I,Y){L("endTilingPattern()"),Y.stream=Ee[R].join(`
1467`),kr(I,Y),Nn.publish("endTilingPattern",Y),vt.pop().restore()};var Ui,Hn=m.__private__.newObject=function(){var I=qr();return Zr(I,!0),I},qr=m.__private__.newObjectDeferred=function(){return le++,he[le]=function(){return Ae},le},Zr=function(I,Y){return Y=typeof Y=="boolean"&&Y,he[I]=Ae,Y&&ae(I+" 0 obj"),I},dl=m.__private__.newAdditionalObject=function(){var I={objId:qr(),content:""};return be.push(I),I},oc=qr(),Vo=qr(),ks=m.__private__.decodeColorString=function(I){var Y=I.split(" ");if(Y.length!==2||Y[1]!=="g"&&Y[1]!=="G")Y.length!==5||Y[4]!=="k"&&Y[4]!=="K"||(Y=[(1-Y[0])*(1-Y[3]),(1-Y[1])*(1-Y[3]),(1-Y[2])*(1-Y[3]),"r"]);else{var fe=parseFloat(Y[0]);Y=[fe,fe,fe,"r"]}for(var we="#",Ne=0;Ne<3;Ne++)we+=("0"+Math.floor(255*parseFloat(Y[Ne])).toString(16)).slice(-2);return we},Ri=m.__private__.encodeColorString=function(I){var Y;typeof I=="string"&&(I={ch1:I});var fe=I.ch1,we=I.ch2,Ne=I.ch3,$e=I.ch4,Xe=I.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof fe=="string"&&fe.charAt(0)!=="#"){var Et=new $re(fe);if(Et.ok)fe=Et.toHex();else if(!/^\d*\.?\d*$/.test(fe))throw new Error('Invalid color "'+fe+'" passed to jsPDF.encodeColorString.')}if(typeof fe=="string"&&/^#[0-9A-Fa-f]{3}$/.test(fe)&&(fe="#"+fe[1]+fe[1]+fe[2]+fe[2]+fe[3]+fe[3]),typeof fe=="string"&&/^#[0-9A-Fa-f]{6}$/.test(fe)){var Lt=parseInt(fe.substr(1),16);fe=Lt>>16&255,we=Lt>>8&255,Ne=255&Lt}if(we===void 0||$e===void 0&&fe===we&&we===Ne)Y=typeof fe=="string"?fe+" "+Xe[0]:I.precision===2?F(fe/255)+" "+Xe[0]:M(fe/255)+" "+Xe[0];else if($e===void 0||sr($e)==="object"){if($e&&!isNaN($e.a)&&$e.a===0)return["1.","1.","1.",Xe[1]].join(" ");Y=typeof fe=="string"?[fe,we,Ne,Xe[1]].join(" "):I.precision===2?[F(fe/255),F(we/255),F(Ne/255),Xe[1]].join(" "):[M(fe/255),M(we/255),M(Ne/255),Xe[1]].join(" ")}else Y=typeof fe=="string"?[fe,we,Ne,$e,Xe[2]].join(" "):I.precision===2?[F(fe),F(we),F(Ne),F($e),Xe[2]].join(" "):[M(fe),M(we),M(Ne),M($e),Xe[2]].join(" ");return Y},bo=m.__private__.getFilters=function(){return o},no=m.__private__.putStream=function(I){var Y=(I=I||{}).data||"",fe=I.filters||bo(),we=I.alreadyAppliedFilters||[],Ne=I.addLength1||!1,$e=Y.length,Xe=I.objectId,Et=function(hi){return hi};if(d!==null&&Xe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(Et=fi.encryptor(Xe,0));var Lt={};fe===!0&&(fe=["FlateEncode"]);var nn=I.additionalKeyValues||[],ln=(Lt=Qt.API.processDataByFilters!==void 0?Qt.API.processDataByFilters(Y,fe):{data:Y,reverseChain:[]}).reverseChain+(Array.isArray(we)?we.join(" "):we.toString());if(Lt.data.length!==0&&(nn.push({key:"Length",value:Lt.data.length}),Ne===!0&&nn.push({key:"Length1",value:$e})),ln.length!=0)if(ln.split("/").length-1==1)nn.push({key:"Filter",value:ln});else{nn.push({key:"Filter",value:"["+ln+"]"});for(var In=0;In<nn.length;In+=1)if(nn[In].key==="DecodeParms"){for(var Er=[],ni=0;ni<Lt.reverseChain.split("/").length-1;ni+=1)Er.push("null");Er.push(nn[In].value),nn[In].value="["+Er.join(" ")+"]"}}ae("<<");for(var lr=0;lr<nn.length;lr++)ae("/"+nn[lr].key+" "+nn[lr].value);ae(">>"),Lt.data.length!==0&&(ae("stream"),ae(Et(Lt.data)),ae("endstream"))},iu=m.__private__.putPage=function(I){var Y=I.number,fe=I.data,we=I.objId,Ne=I.contentsObjId;Zr(we,!0),ae("<</Type /Page"),ae("/Parent "+I.rootDictionaryObjId+" 0 R"),ae("/Resources "+I.resourceDictionaryObjId+" 0 R"),ae("/MediaBox ["+parseFloat(O(I.mediaBox.bottomLeftX))+" "+parseFloat(O(I.mediaBox.bottomLeftY))+" "+O(I.mediaBox.topRightX)+" "+O(I.mediaBox.topRightY)+"]"),I.cropBox!==null&&ae("/CropBox ["+O(I.cropBox.bottomLeftX)+" "+O(I.cropBox.bottomLeftY)+" "+O(I.cropBox.topRightX)+" "+O(I.cropBox.topRightY)+"]"),I.bleedBox!==null&&ae("/BleedBox ["+O(I.bleedBox.bottomLeftX)+" "+O(I.bleedBox.bottomLeftY)+" "+O(I.bleedBox.topRightX)+" "+O(I.bleedBox.topRightY)+"]"),I.trimBox!==null&&ae("/TrimBox ["+O(I.trimBox.bottomLeftX)+" "+O(I.trimBox.bottomLeftY)+" "+O(I.trimBox.topRightX)+" "+O(I.trimBox.topRightY)+"]"),I.artBox!==null&&ae("/ArtBox ["+O(I.artBox.bottomLeftX)+" "+O(I.artBox.bottomLeftY)+" "+O(I.artBox.topRightX)+" "+O(I.artBox.topRightY)+"]"),typeof I.userUnit=="number"&&I.userUnit!==1&&ae("/UserUnit "+I.userUnit),Nn.publish("putPage",{objId:we,pageContext:$t[Y],pageNumber:Y,page:fe}),ae("/Contents "+Ne+" 0 R"),ae(">>"),ae("endobj");var $e=fe.join(`
1468`);return C===B&&($e+=`
1469Q`),Zr(Ne,!0),no({data:$e,filters:bo(),objectId:Ne}),ae("endobj"),we},Wo=m.__private__.putPages=function(){var I,Y,fe=[];for(I=1;I<=rn;I++)$t[I].objId=qr(),$t[I].contentsObjId=qr();for(I=1;I<=rn;I++)fe.push(iu({number:I,data:Ee[I],objId:$t[I].objId,contentsObjId:$t[I].contentsObjId,mediaBox:$t[I].mediaBox,cropBox:$t[I].cropBox,bleedBox:$t[I].bleedBox,trimBox:$t[I].trimBox,artBox:$t[I].artBox,userUnit:$t[I].userUnit,rootDictionaryObjId:oc,resourceDictionaryObjId:Vo}));Zr(oc,!0),ae("<</Type /Pages");var we="/Kids [";for(Y=0;Y<rn;Y++)we+=fe[Y]+" 0 R ";ae(we+"]"),ae("/Count "+rn),ae(">>"),ae("endobj"),Nn.publish("postPutPages")},sc=function(I){Nn.publish("putFont",{font:I,out:ae,newObject:Hn,putStream:no}),I.isAlreadyPutted!==!0&&(I.objectNumber=Hn(),ae("<<"),ae("/Type /Font"),ae("/BaseFont /"+nm(I.postScriptName)),ae("/Subtype /Type1"),typeof I.encoding=="string"&&ae("/Encoding /"+I.encoding),ae("/FirstChar 32"),ae("/LastChar 255"),ae(">>"),ae("endobj"))},au=function(I){I.objectNumber=Hn();var Y=[];Y.push({key:"Type",value:"/XObject"}),Y.push({key:"Subtype",value:"/Form"}),Y.push({key:"BBox",value:"["+[O(I.x),O(I.y),O(I.x+I.width),O(I.y+I.height)].join(" ")+"]"}),Y.push({key:"Matrix",value:"["+I.matrix.toString()+"]"});var fe=I.pages[1].join(`
1470`);no({data:fe,additionalKeyValues:Y,objectId:I.objectNumber}),ae("endobj")},ou=function(I,Y){Y||(Y=21);var fe=Hn(),we=(function(Xe,Et){var Lt,nn=[],ln=1/(Et-1);for(Lt=0;Lt<1;Lt+=ln)nn.push(Lt);if(nn.push(1),Xe[0].offset!=0){var In={offset:0,color:Xe[0].color};Xe.unshift(In)}if(Xe[Xe.length-1].offset!=1){var Er={offset:1,color:Xe[Xe.length-1].color};Xe.push(Er)}for(var ni="",lr=0,hi=0;hi<nn.length;hi++){for(Lt=nn[hi];Lt>Xe[lr+1].offset;)lr++;var zr=Xe[lr].offset,Qi=(Lt-zr)/(Xe[lr+1].offset-zr),hl=Xe[lr].color,Yo=Xe[lr+1].color;ni+=ce(Math.round((1-Qi)*hl[0]+Qi*Yo[0]).toString(16))+ce(Math.round((1-Qi)*hl[1]+Qi*Yo[1]).toString(16))+ce(Math.round((1-Qi)*hl[2]+Qi*Yo[2]).toString(16))}return ni.trim()})(I.colors,Y),Ne=[];Ne.push({key:"FunctionType",value:"0"}),Ne.push({key:"Domain",value:"[0.0 1.0]"}),Ne.push({key:"Size",value:"["+Y+"]"}),Ne.push({key:"BitsPerSample",value:"8"}),Ne.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ne.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),no({data:we,additionalKeyValues:Ne,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:fe}),ae("endobj"),I.objectNumber=Hn(),ae("<< /ShadingType "+I.type),ae("/ColorSpace /DeviceRGB");var $e="/Coords ["+O(parseFloat(I.coords[0]))+" "+O(parseFloat(I.coords[1]))+" ";I.type===2?$e+=O(parseFloat(I.coords[2]))+" "+O(parseFloat(I.coords[3])):$e+=O(parseFloat(I.coords[2]))+" "+O(parseFloat(I.coords[3]))+" "+O(parseFloat(I.coords[4]))+" "+O(parseFloat(I.coords[5])),ae($e+="]"),I.matrix&&ae("/Matrix ["+I.matrix.toString()+"]"),ae("/Function "+fe+" 0 R"),ae("/Extend [true true]"),ae(">>"),ae("endobj")},md=function(I,Y){var fe=qr(),we=Hn();Y.push({resourcesOid:fe,objectOid:we}),I.objectNumber=we;var Ne=[];Ne.push({key:"Type",value:"/Pattern"}),Ne.push({key:"PatternType",value:"1"}),Ne.push({key:"PaintType",value:"1"}),Ne.push({key:"TilingType",value:"1"}),Ne.push({key:"BBox",value:"["+I.boundingBox.map(O).join(" ")+"]"}),Ne.push({key:"XStep",value:O(I.xStep)}),Ne.push({key:"YStep",value:O(I.yStep)}),Ne.push({key:"Resources",value:fe+" 0 R"}),I.matrix&&Ne.push({key:"Matrix",value:"["+I.matrix.toString()+"]"}),no({data:I.stream,additionalKeyValues:Ne,objectId:I.objectNumber}),ae("endobj")},Wg=function(I){for(var Y in I.objectNumber=Hn(),ae("<<"),I)switch(Y){case"opacity":ae("/ca "+F(I[Y]));break;case"stroke-opacity":ae("/CA "+F(I[Y]))}ae(">>"),ae("endobj")},fr=function(I){Zr(I.resourcesOid,!0),ae("<<"),ae("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var Y in ae("/Font <<"),Yt)Yt.hasOwnProperty(Y)&&(A===!1||A===!0&&h.hasOwnProperty(Y))&&ae("/"+Y+" "+Yt[Y].objectNumber+" 0 R");ae(">>")})(),(function(){if(Object.keys(wt).length>0){for(var Y in ae("/Shading <<"),wt)wt.hasOwnProperty(Y)&&wt[Y]instanceof Kf&&wt[Y].objectNumber>=0&&ae("/"+Y+" "+wt[Y].objectNumber+" 0 R");Nn.publish("putShadingPatternDict"),ae(">>")}})(),(function(Y){if(Object.keys(wt).length>0){for(var fe in ae("/Pattern <<"),wt)wt.hasOwnProperty(fe)&&wt[fe]instanceof m.TilingPattern&&wt[fe].objectNumber>=0&&wt[fe].objectNumber<Y&&ae("/"+fe+" "+wt[fe].objectNumber+" 0 R");Nn.publish("putTilingPatternDict"),ae(">>")}})(I.objectOid),(function(){if(Object.keys(Mt).length>0){var Y;for(Y in ae("/ExtGState <<"),Mt)Mt.hasOwnProperty(Y)&&Mt[Y].objectNumber>=0&&ae("/"+Y+" "+Mt[Y].objectNumber+" 0 R");Nn.publish("putGStateDict"),ae(">>")}})(),(function(){for(var Y in ae("/XObject <<"),ve)ve.hasOwnProperty(Y)&&ve[Y].objectNumber>=0&&ae("/"+Y+" "+ve[Y].objectNumber+" 0 R");Nn.publish("putXobjectDict"),ae(">>")})(),ae(">>"),ae("endobj")},Zh=function(I){Vt[I.fontName]=Vt[I.fontName]||{},Vt[I.fontName][I.fontStyle]=I.id},gd=function(I,Y,fe,we,Ne){var $e={id:"F"+(Object.keys(Yt).length+1).toString(10),postScriptName:I,fontName:Y,fontStyle:fe,encoding:we,isStandardFont:Ne||!1,metadata:{}};return Nn.publish("addFont",{font:$e,instance:this}),Yt[$e.id]=$e,Zh($e),$e.id},ro=m.__private__.pdfEscape=m.pdfEscape=function(I,Y){return(function(fe,we){var Ne,$e,Xe,Et,Lt,nn,ln,In,Er;if(Xe=(we=we||{}).sourceEncoding||"Unicode",Lt=we.outputEncoding,(we.autoencode||Lt)&&Yt[Ze].metadata&&Yt[Ze].metadata[Xe]&&Yt[Ze].metadata[Xe].encoding&&(Et=Yt[Ze].metadata[Xe].encoding,!Lt&&Yt[Ze].encoding&&(Lt=Yt[Ze].encoding),!Lt&&Et.codePages&&(Lt=Et.codePages[0]),typeof Lt=="string"&&(Lt=Et[Lt]),Lt)){for(ln=!1,nn=[],Ne=0,$e=fe.length;Ne<$e;Ne++)(In=Lt[fe.charCodeAt(Ne)])?nn.push(String.fromCharCode(In)):nn.push(fe[Ne]),nn[Ne].charCodeAt(0)>>8&&(ln=!0);fe=nn.join("")}for(Ne=fe.length;ln===void 0&&Ne!==0;)fe.charCodeAt(Ne-1)>>8&&(ln=!0),Ne--;if(!ln)return fe;for(nn=we.noBOM?[]:[254,255],Ne=0,$e=fe.length;Ne<$e;Ne++){if((Er=(In=fe.charCodeAt(Ne))>>8)>>8)throw new Error("Character at position "+Ne+" of string '"+fe+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");nn.push(Er),nn.push(In-(Er<<8))}return String.fromCharCode.apply(void 0,nn)})(I,Y).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},lc=m.__private__.beginPage=function(I){Ee[++rn]=[],$t[rn]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(I[0]),topRightY:Number(I[1])}},su(rn),Ye(Ee[R])},ep=function(I,Y){var fe,we,Ne;switch(n=Y||n,typeof I=="string"&&(fe=v(I.toLowerCase()),Array.isArray(fe)&&(we=fe[0],Ne=fe[1])),Array.isArray(I)&&(we=I[0]*At,Ne=I[1]*At),isNaN(we)&&(we=i[0],Ne=i[1]),(we>14400||Ne>14400)&&(pr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),we=Math.min(14400,we),Ne=Math.min(14400,Ne)),i=[we,Ne],n.substr(0,1)){case"l":Ne>we&&(i=[Ne,we]);break;case"p":we>Ne&&(i=[Ne,we])}lc(i),Xt(xo),ae(fu),lf!==0&&ae(lf+" J"),cf!==0&&ae(cf+" j"),Nn.publish("addPage",{pageNumber:rn})},yd=function(I){I>0&&I<=rn&&(Ee.splice(I,1),$t.splice(I,1),rn--,R>rn&&(R=rn),this.setPage(R))},su=function(I){I>0&&I<=rn&&(R=I)},io=m.__private__.getNumberOfPages=m.getNumberOfPages=function(){return Ee.length-1},tp=function(I,Y,fe){var we,Ne=void 0;return fe=fe||{},I=I!==void 0?I:Yt[Ze].fontName,Y=Y!==void 0?Y:Yt[Ze].fontStyle,we=I.toLowerCase(),Vt[we]!==void 0&&Vt[we][Y]!==void 0?Ne=Vt[we][Y]:Vt[I]!==void 0&&Vt[I][Y]!==void 0?Ne=Vt[I][Y]:fe.disableWarning===!1&&pr.warn("Unable to look up font label for font '"+I+"', '"+Y+"'. Refer to getFontList() for available fonts."),Ne||fe.noFallback||(Ne=Vt.times[Y])==null&&(Ne=Vt.times.normal),Ne},ei=m.__private__.putInfo=function(){var I=Hn(),Y=function(we){return we};for(var fe in d!==null&&(Y=fi.encryptor(I,0)),ae("<<"),ae("/Producer ("+ro(Y("jsPDF "+Qt.version))+")"),at)at.hasOwnProperty(fe)&&at[fe]&&ae("/"+fe.substr(0,1).toUpperCase()+fe.substr(1)+" ("+ro(Y(at[fe]))+")");ae("/CreationDate ("+ro(Y(W))+")"),ae(">>"),ae("endobj")},vd=m.__private__.putCatalog=function(I){var Y=(I=I||{}).rootDictionaryObjId||oc;switch(Hn(),ae("<<"),ae("/Type /Catalog"),ae("/Pages "+Y+" 0 R"),ht||(ht="fullwidth"),ht){case"fullwidth":ae("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ae("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ae("/OpenAction [3 0 R /Fit]");break;case"original":ae("/OpenAction [3 0 R /XYZ null null 1]");break;default:var fe=""+ht;fe.substr(fe.length-1)==="%"&&(ht=parseInt(ht)/100),typeof ht=="number"&&ae("/OpenAction [3 0 R /XYZ null null "+F(ht)+"]")}switch(zt||(zt="continuous"),zt){case"continuous":ae("/PageLayout /OneColumn");break;case"single":ae("/PageLayout /SinglePage");break;case"two":case"twoleft":ae("/PageLayout /TwoColumnLeft");break;case"tworight":ae("/PageLayout /TwoColumnRight")}Bt&&ae("/PageMode /"+Bt),Nn.publish("putCatalog"),ae(">>"),ae("endobj")},Kg=m.__private__.putTrailer=function(){ae("trailer"),ae("<<"),ae("/Size "+(le+1)),ae("/Root "+le+" 0 R"),ae("/Info "+(le-1)+" 0 R"),d!==null&&ae("/Encrypt "+fi.oid+" 0 R"),ae("/ID [ <"+ee+"> <"+ee+"> ]"),ae(">>")},ti=m.__private__.putHeader=function(){ae("%PDF-"+b),ae("%ºß¬à")},lu=m.__private__.putXRef=function(){var I="0000000000";ae("xref"),ae("0 "+(le+1)),ae("0000000000 65535 f ");for(var Y=1;Y<=le;Y++)typeof he[Y]=="function"?ae((I+he[Y]()).slice(-10)+" 00000 n "):he[Y]!==void 0?ae((I+he[Y]).slice(-10)+" 00000 n "):ae("0000000000 00000 n ")},ao=m.__private__.buildDocument=function(){var I;le=0,Ae=0,ye=[],he=[],be=[],oc=qr(),Vo=qr(),Ye(ye),Nn.publish("buildDocument"),ti(),Wo(),(function(){Nn.publish("putAdditionalObjects");for(var fe=0;fe<be.length;fe++){var we=be[fe];Zr(we.objId,!0),ae(we.content),ae("endobj")}Nn.publish("postPutAdditionalObjects")})(),I=[],(function(){for(var fe in Yt)Yt.hasOwnProperty(fe)&&(A===!1||A===!0&&h.hasOwnProperty(fe))&&sc(Yt[fe])})(),(function(){var fe;for(fe in Mt)Mt.hasOwnProperty(fe)&&Wg(Mt[fe])})(),(function(){for(var fe in ve)ve.hasOwnProperty(fe)&&au(ve[fe])})(),(function(fe){var we;for(we in wt)wt.hasOwnProperty(we)&&(wt[we]instanceof Kf?ou(wt[we]):wt[we]instanceof Am&&md(wt[we],fe))})(I),Nn.publish("putResources"),I.forEach(fr),fr({resourcesOid:Vo,objectOid:Number.MAX_SAFE_INTEGER}),Nn.publish("postPutResources"),d!==null&&(fi.oid=Hn(),ae("<<"),ae("/Filter /Standard"),ae("/V "+fi.v),ae("/R "+fi.r),ae("/U <"+fi.toHexString(fi.U)+">"),ae("/O <"+fi.toHexString(fi.O)+">"),ae("/P "+fi.P),ae(">>"),ae("endobj")),ei(),vd();var Y=Ae;return lu(),Kg(),ae("startxref"),ae(""+Y),ae("%%EOF"),Ye(Ee[R]),ye.join(`
1471`)},Es=m.__private__.getBlob=function(I){return new Blob([st(I)],{type:"application/pdf"})},cu=m.output=m.__private__.output=(Ui=function(I,Y){switch(typeof(Y=Y||{})=="string"?Y={filename:Y}:Y.filename=Y.filename||"generated.pdf",I){case void 0:return ao();case"save":m.save(Y.filename);break;case"arraybuffer":return st(ao());case"blob":return Es(ao());case"bloburi":case"bloburl":if(on.URL!==void 0&&typeof on.URL.createObjectURL=="function")return on.URL&&on.URL.createObjectURL(Es(ao()))||void 0;pr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var fe="",we=ao();try{fe=vz(we)}catch{fe=vz(unescape(encodeURIComponent(we)))}return"data:application/pdf;filename="+Y.filename+";base64,"+fe;case"pdfobjectnewwindow":if(Object.prototype.toString.call(on)==="[object Window]"){var Ne="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",$e=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Y.pdfObjectUrl&&(Ne=Y.pdfObjectUrl,$e="");var Xe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+Ne+'"'+$e+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Y)+");<\/script></body></html>",Et=on.open();return Et!==null&&Et.document.write(Xe),Et}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(on)==="[object Window]"){var Lt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(Y.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Y.filename+'" width="500px" height="400px" /></body></html>',nn=on.open();if(nn!==null){nn.document.write(Lt);var ln=this;nn.document.documentElement.querySelector("#pdfViewer").onload=function(){nn.document.title=Y.filename,nn.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ln.output("bloburl"))}}return nn}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(on)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var In='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",Y)+'"></iframe></body></html>',Er=on.open();if(Er!==null&&(Er.document.write(In),Er.document.title=Y.filename),Er||typeof safari>"u")return Er;break;case"datauri":case"dataurl":return on.document.location.href=this.output("datauristring",Y);default:return null}},Ui.foo=function(){try{return Ui.apply(this,arguments)}catch(fe){var I=fe.stack||"";~I.indexOf(" at ")&&(I=I.split(" at ")[1]);var Y="Error in function "+I.split(`
1472`)[0].split("<")[0]+": "+fe.message;if(!on.console)throw new Error(Y);on.console.error(Y,fe),on.alert&&alert(Y)}},Ui.foo.bar=Ui,Ui.foo),wo=function(I){return Array.isArray(zo)===!0&&zo.indexOf(I)>-1};switch(r){case"pt":At=1;break;case"mm":At=72/25.4;break;case"cm":At=72/2.54;break;case"in":At=72;break;case"px":At=wo("px_scaling")==1?.75:96/72;break;case"pc":case"em":At=12;break;case"ex":At=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);At=r}var fi=null;X(),K();var Ko=m.__private__.getPageInfo=m.getPageInfo=function(I){if(isNaN(I)||I%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:$t[I].objId,pageNumber:I,pageContext:$t[I]}},rf=m.__private__.getPageInfoByObjId=function(I){if(isNaN(I)||I%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Y in $t)if($t[Y].objId===I)break;return Ko(Y)},af=m.__private__.getCurrentPageInfo=m.getCurrentPageInfo=function(){return{objId:$t[R].objId,pageNumber:R,pageContext:$t[R]}};m.addPage=function(){return ep.apply(this,arguments),this},m.setPage=function(){return su.apply(this,arguments),Ye.call(this,Ee[R]),this},m.insertPage=function(I){return this.addPage(),this.movePage(R,I),this},m.movePage=function(I,Y){var fe,we;if(I>Y){fe=Ee[I],we=$t[I];for(var Ne=I;Ne>Y;Ne--)Ee[Ne]=Ee[Ne-1],$t[Ne]=$t[Ne-1];Ee[Y]=fe,$t[Y]=we,this.setPage(Y)}else if(I<Y){fe=Ee[I],we=$t[I];for(var $e=I;$e<Y;$e++)Ee[$e]=Ee[$e+1],$t[$e]=$t[$e+1];Ee[Y]=fe,$t[Y]=we,this.setPage(Y)}return this},m.deletePage=function(){return yd.apply(this,arguments),this},m.__private__.text=m.text=function(I,Y,fe,we,Ne){var $e,Xe,Et,Lt,nn,ln,In,Er,ni,lr=(we=we||{}).scope||this;if(typeof I=="number"&&typeof Y=="number"&&(typeof fe=="string"||Array.isArray(fe))){var hi=fe;fe=Y,Y=I,I=hi}if(arguments[3]instanceof Tt==0?(Et=arguments[4],Lt=arguments[5],sr(In=arguments[3])==="object"&&In!==null||(typeof Et=="string"&&(Lt=Et,Et=null),typeof In=="string"&&(Lt=In,In=null),typeof In=="number"&&(Et=In,In=null),we={flags:In,angle:Et,align:Lt})):(L("The transform parameter of text() with a Matrix value"),ni=Ne),isNaN(Y)||isNaN(fe)||I==null)throw new Error("Invalid arguments passed to 
1472jsPDF.text");if(I.length===0)return lr;var zr,Qi="",hl=typeof we.lineHeightFactor=="number"?we.lineHeightFactor:_a,Yo=lr.internal.scaleFactor;function pl(Dn){return Dn=Dn.split("	").join(Array(we.TabLen||9).join(" ")),ro(Dn,In)}function yu(Dn){for(var Kn,Lr=Dn.concat(),ri=[],Zo=Lr.length;Zo--;)typeof(Kn=Lr.shift())=="string"?ri.push(Kn):Array.isArray(Dn)&&(Kn.length===1||Kn[1]===void 0&&Kn[2]===void 0)?ri.push(Kn[0]):ri.push([Kn[0],Kn[1],Kn[2]]);return ri}function Ed(Dn,Kn){var Lr;if(typeof Dn=="string")Lr=Kn(Dn)[0];else if(Array.isArray(Dn)){for(var ri,Zo,ff=Dn.concat(),Pd=[],bl=ff.length;bl--;)typeof(ri=ff.shift())=="string"?Pd.push(Kn(ri)[0]):Array.isArray(ri)&&typeof ri[0]=="string"&&(Zo=Kn(ri[0],ri[1],ri[2]),Pd.push([Zo[0],Zo[1],Zo[2]]));Lr=Pd}return Lr}var dc=!1,vu=!0;if(typeof I=="string")dc=!0;else if(Array.isArray(I)){var Ac=I.concat();Xe=[];for(var fc,Hi=Ac.length;Hi--;)(typeof(fc=Ac.shift())!="string"||Array.isArray(fc)&&typeof fc[0]!="string")&&(vu=!1);dc=vu}if(dc===!1)throw new Error('Type of text must be string or Array. "'+I+'" is not recognized.');typeof I=="string"&&(I=I.match(/[\r?\n]/)?I.split(/\r\n|\r|\n/g):[I]);var bu=He/lr.internal.scaleFactor,wu=bu*(hl-1);switch(we.baseline){case"bottom":fe-=wu;break;case"top":fe+=bu-wu;break;case"hanging":fe+=bu-2*wu;break;case"middle":fe+=bu/2-wu}if((ln=we.maxWidth||0)>0&&(typeof I=="string"?I=lr.splitTextToSize(I,ln):Object.prototype.toString.call(I)==="[object Array]"&&(I=I.reduce(function(Dn,Kn){return Dn.concat(lr.splitTextToSize(Kn,ln))},[]))),$e={text:I,x:Y,y:fe,options:we,mutex:{pdfEscape:ro,activeFontKey:Ze,fonts:Yt,activeFontSize:He}},Nn.publish("preProcessText",$e),I=$e.text,Et=(we=$e.options).angle,ni instanceof Tt==0&&Et&&typeof Et=="number"){Et*=Math.PI/180,we.rotationDirection===0&&(Et=-Et),C===B&&(Et=-Et);var df=Math.cos(Et),Af=Math.sin(Et);ni=new Tt(df,Af,-Af,df,0,0)}else Et&&Et instanceof Tt&&(ni=Et);C!==B||ni||(ni=Or),(nn=we.charSpace||Ia)!==void 0&&(Qi+=O(V(nn))+` Tc
1473`,this.setCharSpace(this.getCharSpace()||0)),(Er=we.horizontalScale)!==void 0&&(Qi+=O(100*Er)+` Tz
1474`),we.lang;var ha=-1,Xo=we.renderingMode!==void 0?we.renderingMode:we.stroke,Ps=lr.internal.getCurrentPageInfo().pageContext;switch(Xo){case 0:case!1:case"fill":ha=0;break;case 1:case!0:case"stroke":ha=1;break;case 2:case"fillThenStroke":ha=2;break;case 3:case"invisible":ha=3;break;case 4:case"fillAndAddForClipping":ha=4;break;case 5:case"strokeAndAddPathForClipping":ha=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":ha=6;break;case 7:case"addToPathForClipping":ha=7}var op=Ps.usedRenderingMode!==void 0?Ps.usedRenderingMode:-1;ha!==-1?Qi+=ha+` Tr
1475`:op!==-1&&(Qi+=`0 Tr
1476`),ha!==-1&&(Ps.usedRenderingMode=ha),Lt=we.align||"left";var so,hc=He*hl,Nd=lr.internal.pageSize.getWidth(),Td=Yt[Ze];nn=we.charSpace||Ia,ln=we.maxWidth||0,In=Object.assign({autoencode:!0,noBOM:!0},we.flags);var ml=[],Eo=function(Dn){return lr.getStringUnitWidth(Dn,{font:Td,charSpace:nn,fontSize:He,doKerning:!1})*He/Yo};if(Object.prototype.toString.call(I)==="[object Array]"){var lo;Xe=yu(I),Lt!=="left"&&(so=Xe.map(Eo));var co,pc=0;if(Lt==="right"){Y-=so[0],I=[],Hi=Xe.length;for(var js=0;js<Hi;js++)js===0?(co=oo(Y),lo=Al(fe)):(co=V(pc-so[js]),lo=-hc),I.push([Xe[js],co,lo]),pc=so[js]}else if(Lt==="center"){Y-=so[0]/2,I=[],Hi=Xe.length;for(var gl=0;gl<Hi;gl++)gl===0?(co=oo(Y),lo=Al(fe)):(co=V((pc-so[gl])/2),lo=-hc),I.push([Xe[gl],co,lo]),pc=so[gl]}else if(Lt==="left"){I=[],Hi=Xe.length;for(var yl=0;yl<Hi;yl++)I.push(Xe[yl])}else if(Lt==="justify"&&Td.encoding==="Identity-H"){I=[],Hi=Xe.length,ln=ln!==0?ln:Nd;for(var Os=0,Vr=0;Vr<Hi;Vr++)if(lo=Vr===0?Al(fe):-hc,co=Vr===0?oo(Y):Os,Vr<Hi-1){var xu=V((ln-so[Vr])/(Xe[Vr].split(" ").length-1)),Fs=Xe[Vr].split(" ");I.push([Fs[0]+" ",co,lo]),Os=0;for(var Jo=1;Jo<Fs.length;Jo++){var Su=(Eo(Fs[Jo-1]+" "+Fs[Jo])-Eo(Fs[Jo]))*Yo+xu;Jo==Fs.length-1?I.push([Fs[Jo],Su,0]):I.push([Fs[Jo]+" ",Su,0]),Os-=Su}}else I.push([Xe[Vr],co,lo]);I.push(["",Os,0])}else{if(Lt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(I=[],Hi=Xe.length,ln=ln!==0?ln:Nd,Vr=0;Vr<Hi;Vr++){lo=Vr===0?Al(fe):-hc,co=Vr===0?oo(Y):0;var Bu=Xe[Vr].split(" ").length-1,_d=Bu>0?(ln-so[Vr])/Bu:0;Vr<Hi-1?ml.push(O(V(_d))):ml.push(0),I.push([Xe[Vr],co,lo])}}}(typeof we.R2L=="boolean"?we.R2L:pt)===!0&&(I=Ed(I,function(Dn,Kn,Lr){return[Dn.split("").reverse().join(""),Kn,Lr]})),$e={text:I,x:Y,y:fe,options:we,mutex:{pdfEscape:ro,activeFontKey:Ze,fonts:Yt,activeFontSize:He}},Nn.publish("postProcessText",$e),I=$e.text,zr=$e.mutex.isHex||!1;var Id=Yt[Ze].encoding;Id!=="WinAnsiEncoding"&&Id!=="StandardEncoding"||(I=Ed(I,function(Dn,Kn,Lr){return[pl(Dn),Kn,Lr]})),Xe=yu(I),I=[];for(var vl,mc,gc,Cu=Array.isArray(Xe[0])?1:0,yc="",ku=function(Dn,Kn,Lr){var ri="";return Lr instanceof Tt?(Lr=typeof we.angle=="number"?jr(Lr,new Tt(1,0,0,1,Dn,Kn)):jr(new Tt(1,0,0,1,Dn,Kn),Lr),C===B&&(Lr=jr(new Tt(1,0,0,-1,0,0),Lr)),ri=Lr.join(" ")+` Tm
1477`):ri=O(Dn)+" "+O(Kn)+` Td
1478`,ri},Fr=0;Fr<Xe.length;Fr++){switch(yc="",Cu){case 1:gc=(zr?"<":"(")+Xe[Fr][0]+(zr?">":")"),vl=parseFloat(Xe[Fr][1]),mc=parseFloat(Xe[Fr][2]);break;case 0:gc=(zr?"<":"(")+Xe[Fr]+(zr?">":")"),vl=oo(Y),mc=Al(fe)}ml!==void 0&&ml[Fr]!==void 0&&(yc=ml[Fr]+` Tw
1479`),Fr===0?I.push(yc+ku(vl,mc,ni)+gc):Cu===0?I.push(yc+gc):Cu===1&&I.push(yc+ku(vl,mc,ni)+gc)}I=Cu===0?I.join(` Tj
1480T* `):I.join(` Tj
1481`),I+=` Tj
1482`;var Pa=`BT
1483/`;return Pa+=Ze+" "+He+` Tf
1484`,Pa+=O(He*hl)+` TL
1485`,Pa+=Go+`
1486`,Pa+=Qi,Pa+=I,ae(Pa+="ET"),h[Ze]=!0,lr};var uu=m.__private__.clip=m.clip=function(I){return ae(I==="evenodd"?"W*":"W"),this};m.clipEvenOdd=function(){return uu("evenodd")},m.__private__.discardPath=m.discardPath=function(){return ae("n"),this};var Ns=m.__private__.isValidStyle=function(I){var Y=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(I)!==-1&&(Y=!0),Y};m.__private__.setDefaultPathOperation=m.setDefaultPathOperation=function(I){return Ns(I)&&(c=I),this};var bd=m.__private__.getStyle=m.getStyle=function(I){var Y=c;
vendor: 4,131 bytes, line 1486
1486switch(I){case"D":case"S":Y="S";break;case"F":Y="f";break;case"FD":case"DF":Y="B";break;case"f":case"f*":case"B":case"B*":Y=I}return Y},On=m.close=function(){return ae("h"),this};m.stroke=function(){return ae("S"),this},m.fill=function(I){return du("f",I),this},m.fillEvenOdd=function(I){return du("f*",I),this},m.fillStroke=function(I){return du("B",I),this},m.fillStrokeEvenOdd=function(I){return du("B*",I),this};var du=function(I,Y){sr(Y)==="object"?np(Y,I):ae(I)},cc=function(I){I===null||C===B&&I===void 0||(I=bd(I),ae(I))};function of(I,Y,fe,we,Ne){var $e=new Am(Y||this.boundingBox,fe||this.xStep,we||this.yStep,this.gState,Ne||this.matrix);$e.stream=this.stream;var Xe=I+"$$"+this.cloneIndex+++"$$";return kr(Xe,$e),$e}var np=function(I,Y){var fe=yn[I.key],we=wt[fe];if(we instanceof Kf)ae("q"),ae(rp(Y)),we.gState&&m.setGState(we.gState),ae(I.matrix.toString()+" cm"),ae("/"+fe+" sh"),ae("Q");else if(we instanceof Am){var Ne=new Tt(1,0,0,-1,0,ko());I.matrix&&(Ne=Ne.multiply(I.matrix||Or),fe=of.call(we,I.key,I.boundingBox,I.xStep,I.yStep,Ne).id),ae("q"),ae("/Pattern cs"),ae("/"+fe+" scn"),we.gState&&m.setGState(we.gState),ae(Y),ae("Q")}},rp=function(I){switch(I){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},wd=m.moveTo=function(I,Y){return ae(O(V(I))+" "+O(q(Y))+" m"),this},xd=m.lineTo=function(I,Y){return ae(O(V(I))+" "+O(q(Y))+" l"),this},Ta=m.curveTo=function(I,Y,fe,we,Ne,$e){return ae([O(V(I)),O(q(Y)),O(V(fe)),O(q(we)),O(V(Ne)),O(q($e)),"c"].join(" ")),this};m.__private__.line=m.line=function(I,Y,fe,we,Ne){if(isNaN(I)||isNaN(Y)||isNaN(fe)||isNaN(we)||!Ns(Ne))throw new Error("Invalid arguments passed to jsPDF.line");return C===x?this.lines([[fe-I,we-Y]],I,Y,[1,1],Ne||"S"):this.lines([[fe-I,we-Y]],I,Y,[1,1]).stroke()},m.__private__.lines=m.lines=function(I,Y,fe,we,Ne,$e){var Xe,Et,Lt,nn,ln,In,Er,ni,lr,hi,zr,Qi;if(typeof I=="number"&&(Qi=fe,fe=Y,Y=I,I=Qi),we=we||[1,1],$e=$e||!1,isNaN(Y)||isNaN(fe)||!Array.isArray(I)||!Array.isArray(we)||!Ns(Ne)||typeof $e!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(wd(Y,fe),Xe=we[0],Et=we[1],nn=I.length,hi=Y,zr=fe,Lt=0;Lt<nn;Lt++)(ln=I[Lt]).length===2?(hi=ln[0]*Xe+hi,zr=ln[1]*Et+zr,xd(hi,zr)):(In=ln[0]*Xe+hi,Er=ln[1]*Et+zr,ni=ln[2]*Xe+hi,lr=ln[3]*Et+zr,hi=ln[4]*Xe+hi,zr=ln[5]*Et+zr,Ta(In,Er,ni,lr,hi,zr));return $e&&On(),cc(Ne),this},m.path=function(I){for(var Y=0;Y<I.length;Y++){var fe=I[Y],we=fe.c;switch(fe.op){case"m":wd(we[0],we[1]);break;case"l":xd(we[0],we[1]);break;case"c":Ta.apply(this,we);break;case"h":On()}}return this},m.__private__.rect=m.rect=function(I,Y,fe,we,Ne){if(isNaN(I)||isNaN(Y)||isNaN(fe)||isNaN(we)||!Ns(Ne))throw new Error("Invalid arguments passed to jsPDF.rect");return C===x&&(we=-we),ae([O(V(I)),O(q(Y)),O(V(fe)),O(V(we)),"re"].join(" ")),cc(Ne),this},m.__private__.triangle=m.triangle=function(I,Y,fe,we,Ne,$e,Xe){if(isNaN(I)||isNaN(Y)||isNaN(fe)||isNaN(we)||isNaN(Ne)||isNaN($e)||!Ns(Xe))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[fe-I,we-Y],[Ne-fe,$e-we],[I-Ne,Y-$e]],I,Y,[1,1],Xe,!0),this},m.__private__.roundedRect=m.roundedRect=function(I,Y,fe,we,Ne,$e,Xe){if(isNaN(I)||isNaN(Y)||isNaN(fe)||isNaN(we)||isNaN(Ne)||isNaN($e)||!Ns(Xe))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Et=4/3*(Math.SQRT2-1);return Ne=Math.min(Ne,.5*fe),$e=Math.min($e,.5*we),this.lines([[fe-2*Ne,0],[Ne*Et,0,Ne,$e-$e*Et,Ne,$e],[0,we-2*$e],[0,$e*Et,-Ne*Et,$e,-Ne,$e],[2*Ne-fe,0],[-Ne*Et,0,-Ne,-$e*Et,-Ne,-$e],[0,2*$e-we],[0,-$e*Et,Ne*Et,-$e,Ne,-$e]],I+Ne,Y,[1,1],Xe,!0),this},m.__private__.ellipse=m.ellipse=function(I,Y,fe,we,Ne){if(isNaN(I)||isNaN(Y)||isNaN(fe)||isNaN(we)||!Ns(Ne))throw new Error("Invalid arguments passed to jsPDF.ellipse");var $e=4/3*(Math.SQRT2-1)*fe,Xe=4/3*(Math.SQRT2-1)*we;return wd(I+fe,Y),Ta(I+fe,Y-Xe,I+$e,Y-we,I,Y-we),Ta(I-$e,Y-we,I-fe,Y-Xe,I-fe,Y),Ta(I-fe,Y+Xe,I-$e,Y+we,I,Y+we),Ta(I+$e,Y+we,I+fe,Y+Xe,I+fe,Y),cc(Ne),this},m.__private__.circle=m.circle=function(I,Y,fe,we){if(isNaN(I)||isNaN(Y)||isNaN(fe)||!Ns(we))throw new Error("Invalid arguments passed to 
1486jsPDF.circle");return this.ellipse(I,Y,fe,fe,we)},m.setFont=function(I,Y,fe){return fe&&(Y=j(Y,fe)),Ze=tp(I,Y,{disableWarning:!1}),this};var Ts=m.__private__.getFont=m.getFont=function(){return Yt[tp.apply(m,arguments)]};m.__private__.getFontList=m.getFontList=function(){var I,Y,fe={};for(I in Vt)if(Vt.hasOwnProperty(I))for(Y in fe[I]=[],Vt[I])Vt[I].hasOwnProperty(Y)&&fe[I].push(Y);return fe},m.addFont=function(I,Y,fe,we,Ne){var $e=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&$e.indexOf(arguments[3])!==-1?Ne=arguments[3]:arguments[3]&&$e.indexOf(arguments[3])==-1&&(fe=j(fe,we)),gd.call(this,I,Y,fe,Ne=Ne||"Identity-H")};var _a,xo=e.lineWidth||.200025,Au=m.__private__.getLineWidth=m.getLineWidth=function(){return xo},Xt=m.__private__.setLineWidth=m.setLineWidth=function(I){return xo=I,ae(O(V(I))+" w"),this};m.__private__.setLineDash=Qt.API.setLineDash=Qt.API.setLineDashPattern=function(I,Y){if(I=I||[],Y=Y||0,isNaN(Y)||!Array.isArray(I))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return I=I.map(function(fe){return O(V(fe))}).join(" "),Y=O(V(Y)),ae("["+I+"] "+Y+" d"),this};var _s=m.__private__.getLineHeight=m.getLineHeight=function(){return He*_a};m.__private__.getLineHeight=m.getLineHeight=function(){return He*_a};var Gg=m.__private__.setLineHeightFactor=m.setLineHeightFactor=function(I){return typeof(I=I||1.15)=="number"&&(_a=I),this},ip=m.__private__.getLineHeightFactor=m.getLineHeightFactor=function(){return _a};Gg(e.lineHeight);var oo=m.__private__.getHorizontalCoordinate=function(I){return V(I)},Al=m.__private__.getVerticalCoordinate=function(I){return C===B?I:$t[R].mediaBox.topRightY-$t[R].mediaBox.bottomLeftY-V(I)},ap=m.__private__.getHorizontalCoordinateString=m.getHorizontalCoordinateString=function(I){return O(oo(I))},Sd=m.__private__.getVerticalCoordinateString=m.getVerticalCoordinateString=function(I){return O(Al(I))},fu=e.strokeColor||"0 G";m.__private__.getStrokeColor=m.getDrawColor=function(){return ks(fu)},m.__private__.setStrokeColor=m.setDrawColor=function(I,Y,fe,we){return fu=Ri({ch1:I,ch2:Y,ch3:fe,ch4:we,pdfColorType:"draw",precision:2}),ae(fu),this};var sf=e.fillColor||"0 g";m.__private__.getFillColor=m.getFillColor=function(){return ks(sf)},m.__private__.setFillColor=m.setFillColor=function(I,Y,fe,we){return sf=Ri({ch1:I,ch2:Y,ch3:fe,ch4:we,pdfColorType:"fill",precision:2}),ae(sf),this};var Go=e.textColor||"0 g",hu=m.__private__.getTextColor=m.getTextColor=function(){return ks(Go)};m.__private__.setTextColor=m.setTextColor=function(I,Y,fe,we){return Go=Ri({ch1:I,ch2:Y,ch3:fe,ch4:we,pdfColorType:"text",precision:3}),this};var Ia=e.charSpace,Bd=m.__private__.getCharSpace=m.getCharSpace=function(){return parseFloat(Ia||0)};m.__private__.setCharSpace=m.setCharSpace=function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ia=I,this};var lf=0;m.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},m.__private__.setLineCap=m.setLineCap=function(I){var Y=m.CapJoinStyles[I];if(Y===void 0)throw new Error("Line cap style of '"+I+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return lf=Y,ae(Y+" J"),this};var cf=0;m.__private__.setLineJoin=m.setLineJoin=function(I){var Y=m.CapJoinStyles[I];if(Y===void 0)throw new Error("Line join style of '"+I+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return cf=Y,ae(Y+" j"),this},m.__private__.setLineMiterLimit=m.__private__.setMiterLimit=m.setLineMiterLimit=m.setMiterLimit=function(I){if(I=I||0,isNaN(I))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ae(O(V(I))+" M"),this},m.GState=L2,m.setGState=function(I){(I=typeof I=="string"?Mt[en[I]]:Cd(null,I)).equals(En)||(ae("/"+I.id+" gs"),En=I)};
vendor: 9,144 bytes, lines 1486-1488
1486var Cd=function(I,Y){if(!I||!en[I]){var fe=!1;for(var we in Mt)if(Mt.hasOwnProperty(we)&&Mt[we].equals(Y)){fe=!0;break}if(fe)Y=Mt[we];else{var Ne="GS"+(Object.keys(Mt).length+1).toString(10);Mt[Ne]=Y,Y.id=Ne}return I&&(en[I]=Y.id),Nn.publish("addGState",Y),Y}};m.addGState=function(I,Y){return Cd(I,Y),this},m.saveGraphicsState=function(){return ae("q"),fn.push({key:Ze,size:He,color:Go}),this},m.restoreGraphicsState=function(){ae("Q");var I=fn.pop();return Ze=I.key,He=I.size,Go=I.color,En=null,this},m.setCurrentTransformationMatrix=function(I){return ae(I.toString()+" cm"),this},m.comment=function(I){return ae("#"+I),this};var So=function(I,Y){var fe=I||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return fe},set:function($e){isNaN($e)||(fe=parseFloat($e))}});var we=Y||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return we},set:function($e){isNaN($e)||(we=parseFloat($e))}});var Ne="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ne},set:function($e){Ne=$e.toString()}}),this},pu=function(I,Y,fe,we){So.call(this,I,Y),this.type="rect";var Ne=fe||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ne},set:function(Xe){isNaN(Xe)||(Ne=parseFloat(Xe))}});var $e=we||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return $e},set:function(Xe){isNaN(Xe)||($e=parseFloat(Xe))}}),this},mu=function(){this.page=rn,this.currentPage=R,this.pages=Ee.slice(0),this.pagesContext=$t.slice(0),this.x=ft,this.y=Ln,this.matrix=Gt,this.width=uc(R),this.height=gu(R),this.outputDestination=Ue,this.id="",this.objectNumber=-1};mu.prototype.restore=function(){rn=this.page,R=this.currentPage,$t=this.pagesContext,Ee=this.pages,ft=this.x,Ln=this.y,Gt=this.matrix,uf(R,this.width),Co(R,this.height),Ue=this.outputDestination};var Bo=function(I,Y,fe,we,Ne){vt.push(new mu),rn=R=0,Ee=[],ft=I,Ln=Y,Gt=Ne,lc([fe,we])};for(var fl in m.beginFormObject=function(I,Y,fe,we,Ne){return Bo(I,Y,fe,we,Ne),this},m.endFormObject=function(I){return(function(Y){if(Ve[Y])vt.pop().restore();else{var fe=new mu,we="Xo"+(Object.keys(ve).length+1).toString(10);fe.id=we,Ve[Y]=we,ve[we]=fe,Nn.publish("addFormObject",fe),vt.pop().restore()}})(I),this},m.doFormObject=function(I,Y){var fe=ve[Ve[I]];return ae("q"),ae(Y.toString()+" cm"),ae("/"+fe.id+" Do"),ae("Q"),this},m.getFormObject=function(I){var Y=ve[Ve[I]];return{x:Y.x,y:Y.y,width:Y.width,height:Y.height,matrix:Y.matrix}},m.save=function(I,Y){return I=I||"generated.pdf",(Y=Y||{}).returnPromise=Y.returnPromise||!1,Y.returnPromise===!1?(zf(Es(ao()),I),typeof zf.unload=="function"&&on.setTimeout&&setTimeout(zf.unload,911),this):new Promise(function(fe,we){try{var Ne=zf(Es(ao()),I);typeof zf.unload=="function"&&on.setTimeout&&setTimeout(zf.unload,911),fe(Ne)}catch($e){we($e.message)}})},Qt.API)Qt.API.hasOwnProperty(fl)&&(fl==="events"&&Qt.API.events.length?(function(I,Y){var fe,we,Ne;for(Ne=Y.length-1;Ne!==-1;Ne--)fe=Y[Ne][0],we=Y[Ne][1],I.subscribe.apply(I,[fe].concat(typeof we=="function"?[we]:we))})(Nn,Qt.API.events):m[fl]=Qt.API[fl]);function uc(I){return $t[I].mediaBox.topRightX-$t[I].mediaBox.bottomLeftX}function uf(I,Y){$t[I].mediaBox.topRightX=Y+$t[I].mediaBox.bottomLeftX}function gu(I){return $t[I].mediaBox.topRightY-$t[I].mediaBox.bottomLeftY}function Co(I,Y){$t[I].mediaBox.topRightY=Y+$t[I].mediaBox.bottomLeftY}var Is=m.getPageWidth=function(I){return uc(I=I||R)/At},ea=m.setPageWidth=function(I,Y){uf(I,Y*At)},ko=m.getPageHeight=function(I){return gu(I=I||R)/At},kd=m.setPageHeight=function(I,Y){Co(I,Y*At)};return m.internal={pdfEscape:ro,getStyle:bd,getFont:Ts,getFontSize:it,getCharSpace:Bd,getTextColor:hu,getLineHeight:_s,getLineHeightFactor:ip,getLineWidth:Au,write:Le,getHorizontalCoordinate:oo,getVerticalCoordinate:Al,getCoordinateString:ap,getVerticalCoordinateString:Sd,collections:{},newObject:Hn,newAdditionalObject:dl,newObjectDeferred:qr,newObjectDeferredBegin:Zr,getFilters:bo,putStream:no,events:Nn,scaleFactor:At,pageSize:{getWidth:function(){return Is(R)},setWidth:function(I){ea(R,I)},getHeight:function(){return ko(R)},setHeight:function(I){kd(R,I)}},encryptionOptions:d,encryption:fi,getEncryptor:function(I){return d!==null?fi.encryptor(I,0):function(Y){return Y}},output:cu,getNumberOfPages:io,get pages(){return Ee},out:ae,f2:F,f3:M,getPageInfo:Ko,getPageInfoByObjId:rf,getCurrentPageInfo:af,getPDFVersion:g,Point:So,Rectangle:pu,Matrix:Tt,hasHotfix:wo},Object.defineProperty(m.internal.pageSize,"width",{get:function(){return Is(R)},set:function(I){ea(R,I)},enumerable:!0,configurable:!0}),Object.defineProperty(m.internal.pageSize,"height",{get:function(){return ko(R)},set:function(I){kd(R,I)},enumerable:!0,configurable:!0}),(function(I){for(var Y=0,fe=ut.length;Y<fe;Y++){var we=gd.call(this,I[Y][0],I[Y][1],I[Y][2],ut[Y][3],!0);A===!1&&(h[we]=!0);var Ne=I[Y][0].split("-");Zh({id:we,fontName:Ne[0],fontStyle:Ne[1]||""})}Nn.publish("addFonts",{fonts:Yt,dictionary:Vt})}).call(m,ut),Ze="F1",ep(i,n),Nn.publish("initialized"),m}tm.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},tm.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},tm.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},tm.prototype.processOwnerPassword=function(e,t){return VP(zP(t).substr(0,5),e)},tm.prototype.encryptor=function(e,t){var n=zP(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return VP(n,r)}},L2.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||sr(e)!==sr(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return r===0},Qt.API={events:[]},Qt.version="4.2.0";var ci=Qt.API,rF=1,Jh=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Gp=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Fh=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var n=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(n.length===1?"0"+n:n)})},pn=function(e){return e.toFixed(2)},nA=function(e){return e.toFixed(5)};ci.__acroform__={};var qo=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},Sz=function(e){return e*rF},Nc=function(e){var t=new Wre,n=Pt.internal.getHeight(e)||0,r=Pt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(pn(r)),Number(pn(n))],t},TVe=ci.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},_Ve=ci.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},IVe=ci.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},xi=ci.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return IVe(e,t-1)},Si=ci.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return TVe(e,t-1)},Bi=ci.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return _Ve(e,t-1)},PVe=ci.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],a=e[1],o=e[2],s=e[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(a+s)||0,l.upperRight_X=n(i+o)||0,l.upperRight_Y=r(a)||0,[Number(pn(l.lowerLeft_X)),Number(pn(l.lowerLeft_Y)),Number(pn(l.upperRight_X)),Number(pn(l.upperRight_Y))]},jVe=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=WP(e,n),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+pn(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var a=Nc(e);return a.scope=e.scope,a.stream=t.join(`
1487`),a}},WP=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(F){return F.split(`
1488`)}):i.map(function(F){return[F]});var a=n,o=Pt.internal.getHeight(e)||0;o=o<0?-o:o;var s=Pt.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(F,M,V){if(F+1<i.length){var q=M+" "+i[F+1][0];return px(q,e,V).width<=s-4}return!1};a++;e:for(;a>0;){t="",a--;var c,d,A=px("3",e,a).height,h=e.multiline?o-a:(o-A)/2,m=h+=2,b=0,g=0,y=0;if(a<=0){t=`(...) Tj
1489`,t+="% Width of Text: "+px(t,e,a=12).width+", FieldWidth:"+s+`
1490`;break}for(var v="",x=0,B=0;B<i.length;B++)if(i.hasOwnProperty(B)){var C=!1;if(i[B].length!==1&&y!==i[B].length-1){if((A+2)*(x+2)+2>o)continue e;v+=i[B][y],C=!0,g=B,B--}else{v=(v+=i[B][y]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var E=parseInt(B),T=l(E,v,a),j=B>=i.length-1;if(T&&!j){v+=" ",y=0;continue}if(T||j){if(j)g=E;else if(e.multiline&&(A+2)*(x+2)+2>o)continue e}else{if(!e.multiline||(A+2)*(x+2)+2>o)continue e;g=E}}for(var O="",L=b;L<=g;L++){var z=i[L];if(e.multiline){if(L===g){O+=z[y]+" ",y=(y+1)%z.length;continue}if(L===b){O+=z[z.length-1]+" ";continue}}O+=z[0]+" "}switch(O=O.substr(O.length-1)==" "?O.substr(0,O.length-1):O,d=px(O,e,a).width,e.textAlign){case"right":c=s-d-2;break;case"center":c=(s-d)/2;break;default:c=2}t+=pn(c)+" "+pn(m)+` Td
1491`,t+="("+Jh(O)+`) Tj
1492`,t+=-pn(c)+` 0 Td
1493`,m=-(a+2),d=0,b=C?g:g+1,x++,v=""}break}return r.text=t,r.fontSize=a,r},px=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},OVe={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},FVe=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===n.type&&r.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},LVe=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(ic.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(OVe)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");rF=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Kre,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];a.objId=void 0,a.hasAnnotation&&FVe(a,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(r,i){var a=!r;for(var o in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(o)){var s=r[o],l=[],c=s.Rect;if(s.Rect&&(s.Rect=PVe(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=Pt.createDefaultAppearanceStream(s),sr(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var d=jVe(s);l.push({key:"AP",value:"<</N "+d+">>"}),i.internal.acroformPlugin.xForms.push(d)}if(s.appearanceStreamContent){var A="";for(var h in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(h)){var m=s.appearanceStreamContent[h];if(A+="/"+h+" ",A+="<<",Object.keys(m).length>=1||Array.isArray(m)){for(var o in m)if(m.hasOwnProperty(o)){var b=m[o];typeof b=="function"&&(b=b.call(i,s)),A+="/"+o+" "+b+" ",i.internal.acroformPlugin.xForms.indexOf(b)>=0||i.internal.acroformPlugin.xForms.push(b)}}else typeof(b=m)=="function"&&(b=b.call(i,s)),A+="/"+o+" "+b,i.internal.acroformPlugin.xForms.indexOf(b)>=0||i.internal.acroformPlugin.xForms.push(b);A+=">>"}l.push({key:"AP",value:`<<
1494`+A+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:s.objId}),i.internal.out("endobj")}
vendor: 22,555 bytes, lines 1494-1505
1494a&&(function(g,y){for(var v in g)if(g.hasOwnProperty(v)){var x=v,B=g[v];y.internal.newObjectDeferredBegin(B.objId,!0),sr(B)==="object"&&typeof B.putStream=="function"&&B.putStream(),delete g[x]}})(i.internal.acroformPlugin.xForms,i)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},Vre=ci.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(o){return o};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(a!==0&&(i+=" "),sr(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":e[a].substr(0,1)==="/"?i+="/"+Fh(e[a].substr(1)):(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),i+="("+Jh(r(e[a].toString()))+")")}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},wT=function(e,t,n){var r=function(i){return i};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+Jh(r(e))+")"},Rc=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Rc.prototype.toString=function(){return this.objId+" 0 R"},Rc.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Rc.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:Vre(i,this.objId,this.scope)}):i instanceof Rc?(i.scope=this.scope,e.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:r,value:i}))}return e};var Wre=function(){Rc.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};qo(Wre,Rc);var Kre=function(){Rc.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var n=function(r){return r};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Jh(n(e))+")"}},set:function(n){e=n}})};qo(Kre,Rc);var ic=function e(){Rc.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');t=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!xi(t,3)},set:function(v){v?this.F=Si(t,3):this.F=Bi(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');n=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof D2)return;a="FieldObject"+e.FieldNum++}var v=function(x){return x};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+Jh(v(a))+")"},set:function(v){a=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(v){a=v}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(v){o=v}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(v){s=v}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(v){l=v}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/rF:c},set:function(v){c=v}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(v){d=v}});var A="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!A||this instanceof D2||this instanceof vh))return wT(A,this.objId,this.scope)},set:function(v){v=v.toString(),A=v}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ua==0?wT(h,this.objId,this.scope):h},set:function(v){v=v.toString(),h=this instanceof ua==0?v.substr(0,1)==="("?Gp(v.substr(1,v.length-2)):Gp(v):v}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ua==1?Gp(h.substr(1,h.length-1)):h},set:function(v){v=v.toString(),h=this instanceof ua==1?"/"+Fh(v):v}});var m=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(m)return m},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof ua==0?wT(m,this.objId,this.scope):m},set:function(v){v=v.toString(),m=this instanceof ua==0?v.substr(0,1)==="("?Gp(v.substr(1,v.length-2)):Gp(v):v}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ua==1?Gp(m.substr(1,m.length-1)):m},set:function(v){v=v.toString(),m=this instanceof ua==1?"/"+Fh(v):v}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var b,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(v){v=!!v,g=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(b)return b},set:function(v){b=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,1)},set:function(v){v?this.Ff=Si(this.Ff,1):this.Ff=Bi(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,2)},set:function(v){v?this.Ff=Si(this.Ff,2):this.Ff=Bi(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,3)},set:function(v){v?this.Ff=Si(this.Ff,3):this.Ff=Bi(this.Ff,3)}});var y=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(y!==null)return y},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');y=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(y){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:y=2;break;case"center":case 1:y=1;break;default:y=0}}})};qo(ic,Rc);var xm=function(){ic.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Vre(t,this.objId,this.scope)},set:function(n){var r,i;i=[],typeof(r=n)=="string"&&(i=(function(a,o,s){s||(s=1);for(var l,c=[];l=o.exec(a);)c.push(l[s]);return c})(r,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,r){for(r=r||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,18)},set:function(n){n?this.Ff=Si(this.Ff,18):this.Ff=Bi(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Si(this.Ff,19):this.Ff=Bi(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,20)},set:function(n){n?(this.Ff=Si(this.Ff,20),t.sort()):this.Ff=Bi(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,22)},set:function(n){n?this.Ff=Si(this.Ff,22):this.Ff=Bi(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,23)},set:function(n){n?this.Ff=Si(this.Ff,23):this.Ff=Bi(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,27)},set:function(n){n?this.Ff=Si(this.Ff,27):this.Ff=Bi(this.Ff,27)}}),this.hasAppearanceStream=!1};qo(xm,ic);var Sm=function(){xm.call(this),this.fontName="helvetica",this.combo=!1};qo(Sm,xm);var Bm=function(){Sm.call(this),this.combo=!0};qo(Bm,Sm);var Vx=function(){Bm.call(this),this.edit=!0};qo(Vx,Bm);var ua=function(){ic.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,15)},set:function(n){n?this.Ff=Si(this.Ff,15):this.Ff=Bi(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,16)},set:function(n){n?this.Ff=Si(this.Ff,16):this.Ff=Bi(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,17)},set:function(n){n?this.Ff=Si(this.Ff,17):this.Ff=Bi(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,26)},set:function(n){n?this.Ff=Si(this.Ff,26):this.Ff=Bi(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(a){return a};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,i=[];for(r in i.push("<<"),t)i.push("/"+r+" ("+Jh(n(t[r]))+")");return i.push(">>"),i.join(`
1495`)}},set:function(n){sr(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){var r=n==null?"":n.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),e="/"+Fh(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+Fh(n)}})};qo(ua,ic);var Wx=function(){ua.call(this),this.pushButton=!0};qo(Wx,ua);var Cm=function(){ua.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};qo(Cm,ua);var D2=function(){var e,t;ic.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,o=[];for(a in o.push("<<"),r)o.push("/"+a+" ("+Jh(i(r[a]))+")");return o.push(">>"),o.join(`
1496`)},set:function(i){sr(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){var a=i==null?"":i.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),n="/"+Fh(a)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(i){var a=i==null?"":i.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),n="/"+Fh(a)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Pt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};qo(D2,ic),Cm.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},Cm.prototype.createOption=function(e){var t=new D2;return t.Parent=this,t.optionName=e,this.Kids.push(t),DVe.call(this.scope,t),t};var Kx=function(){ua.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Pt.CheckBox.createAppearanceStream()};qo(Kx,ua);var vh=function(){ic.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,13)},set:function(t){t?this.Ff=Si(this.Ff,13):this.Ff=Bi(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,21)},set:function(t){t?this.Ff=Si(this.Ff,21):this.Ff=Bi(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,23)},set:function(t){t?this.Ff=Si(this.Ff,23):this.Ff=Bi(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,24)},set:function(t){t?this.Ff=Si(this.Ff,24):this.Ff=Bi(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,25)},set:function(t){t?this.Ff=Si(this.Ff,25):this.Ff=Bi(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,26)},set:function(t){t?this.Ff=Si(this.Ff,26):this.Ff=Bi(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};qo(vh,ic);var Gx=function(){vh.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,14)},set:function(e){e?this.Ff=Si(this.Ff,14):this.Ff=Bi(this.Ff,14)}}),this.password=!0};qo(Gx,vh);var Pt={CheckBox:{createAppearanceStream:function(){return{N:{On:Pt.CheckBox.YesNormal},D:{On:Pt.CheckBox.YesPushDown,Off:Pt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Nc(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=WP(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+pn(Pt.internal.getWidth(e))+" "+pn(Pt.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+pn(a.fontSize)+" Tf "+i),n.push("BT"),n.push(a.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(`
1497`),t},YesNormal:function(e){var t=Nc(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],a=Pt.internal.getHeight(e),o=Pt.internal.getWidth(e),s=WP(e,e.caption);return i.push("1 g"),i.push("0 0 "+pn(o)+" "+pn(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+pn(o-1)+" "+pn(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+pn(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
1498`),t},OffPushDown:function(e){var t=Nc(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+pn(Pt.internal.getWidth(e))+" "+pn(Pt.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
1499`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Pt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Pt.RadioButton.Circle.YesNormal,t.D[e]=Pt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Nc(e);t.scope=e.scope;var n=[],r=Pt.internal.getWidth(e)<=Pt.internal.getHeight(e)?Pt.internal.getWidth(e)/4:Pt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Pt.internal.Bezier_C,a=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+nA(Pt.internal.getWidth(e)/2)+" "+nA(Pt.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
1500`),t},YesPushDown:function(e){var t=Nc(e);t.scope=e.scope;var n=[],r=Pt.internal.getWidth(e)<=Pt.internal.getHeight(e)?Pt.internal.getWidth(e)/4:Pt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*Pt.internal.Bezier_C).toFixed(5)),o=Number((r*Pt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+nA(Pt.internal.getWidth(e)/2)+" "+nA(Pt.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+nA(Pt.internal.getWidth(e)/2)+" "+nA(Pt.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
1501`),t},OffPushDown:function(e){var t=Nc(e);t.scope=e.scope;var n=[],r=Pt.internal.getWidth(e)<=Pt.internal.getHeight(e)?Pt.internal.getWidth(e)/4:Pt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*Pt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+nA(Pt.internal.getWidth(e)/2)+" "+nA(Pt.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
1502`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Pt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Pt.RadioButton.Cross.YesNormal,t.D[e]=Pt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Nc(e);t.scope=e.scope;var n=[],r=Pt.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+pn(Pt.internal.getWidth(e)-2)+" "+pn(Pt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(pn(r.x1.x)+" "+pn(r.x1.y)+" m"),n.push(pn(r.x2.x)+" "+pn(r.x2.y)+" l"),n.push(pn(r.x4.x)+" "+pn(r.x4.y)+" m"),n.push(pn(r.x3.x)+" "+pn(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
1503`),t},YesPushDown:function(e){var t=Nc(e);t.scope=e.scope;var n=Pt.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+pn(Pt.internal.getWidth(e))+" "+pn(Pt.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+pn(Pt.internal.getWidth(e)-2)+" "+pn(Pt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(pn(n.x1.x)+" "+pn(n.x1.y)+" m"),r.push(pn(n.x2.x)+" "+pn(n.x2.y)+" l"),r.push(pn(n.x4.x)+" "+pn(n.x4.y)+" m"),r.push(pn(n.x3.x)+" "+pn(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
1504`),t},OffPushDown:function(e){var t=Nc(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+pn(Pt.internal.getWidth(e))+" "+pn(Pt.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
1505`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Pt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Pt.internal.getWidth(e),n=Pt.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},Pt.internal.getWidth=function(e){var t=0;return sr(e)==="object"&&(t=Sz(e.Rect[2])),t},Pt.internal.getHeight=function(e){var t=0;return sr(e)==="object"&&(t=Sz(e.Rect[3])),t};var DVe=ci.addField=function(e){if(LVe(this,e),!(e instanceof ic))throw new Error("Invalid argument passed to 
1505jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};ci.AcroFormChoiceField=xm,ci.AcroFormListBox=Sm,ci.AcroFormComboBox=Bm,ci.AcroFormEditBox=Vx,ci.AcroFormButton=ua,ci.AcroFormPushButton=Wx,ci.AcroFormRadioButton=Cm,ci.AcroFormCheckBox=Kx,ci.AcroFormTextField=vh,ci.AcroFormPasswordField=Gx,ci.AcroFormAppearance=Pt,ci.AcroForm={ChoiceField:xm,ListBox:Sm,ComboBox:Bm,EditBox:Vx,Button:ua,PushButton:Wx,RadioButton:Cm,CheckBox:Kx,TextField:vh,PasswordField:Gx,Appearance:Pt},Qt.AcroForm={ChoiceField:xm,ListBox:Sm,ComboBox:Bm,EditBox:Vx,Button:ua,PushButton:Wx,RadioButton:Cm,CheckBox:Kx,TextField:vh,PasswordField:Gx,Appearance:Pt};Qt.AcroForm;function Gre(e){return e.reduce(function(t,n,r){return t[n]=r,t},{})}(function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(F,M){var V,q,W,ee,ne,K=n;if((M=M||n)==="RGBA"||F.data!==void 0&&F.data instanceof Uint8ClampedArray&&"height"in F&&"width"in F)return"RGBA";if(T(F))for(ne in r)for(W=r[ne],V=0;V<W.length;V+=1){for(ee=!0,q=0;q<W[V].length;q+=1)if(W[V][q]!==void 0&&W[V][q]!==F[q]){ee=!1;break}if(ee===!0){K=ne;break}}else for(ne in r)for(W=r[ne],V=0;V<W.length;V+=1){for(ee=!0,q=0;q<W[V].length;q+=1)if(W[V][q]!==void 0&&W[V][q]!==F.charCodeAt(q)){ee=!1;break}if(ee===!0){K=ne;break}}return K===n&&M!==n&&(K=M),K},a=function F(M){for(var V=this.internal.write,q=this.internal.putStream,W=(0,this.internal.getFilters)();W.indexOf("FlateEncode")!==-1;)W.splice(W.indexOf("FlateEncode"),1);M.objectId=this.internal.newObject();var ee=[];if(ee.push({key:"Type",value:"/XObject"}),ee.push({key:"Subtype",value:"/Image"}),ee.push({key:"Width",value:M.width}),ee.push({key:"Height",value:M.height}),M.colorSpace===v.INDEXED?ee.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(M.palette.length/3-1)+" "+("sMask"in M&&M.sMask!==void 0?M.objectId+2:M.objectId+1)+" 0 R]"}):(ee.push({key:"ColorSpace",value:"/"+M.colorSpace}),M.colorSpace===v.DEVICE_CMYK&&ee.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ee.push({key:"BitsPerComponent",value:M.bitsPerComponent}),"decodeParameters"in M&&M.decodeParameters!==void 0&&ee.push({key:"DecodeParms",value:"<<"+M.decodeParameters+">>"}),"transparency"in M&&Array.isArray(M.transparency)&&M.transparency.length>0){for(var ne="",K=0,oe=M.transparency.length;K<oe;K++)ne+=M.transparency[K]+" "+M.transparency[K]+" ";ee.push({key:"Mask",value:"["+ne+"]"})}M.sMask!==void 0&&ee.push({key:"SMask",value:M.objectId+1+" 0 R"});var $=M.filter!==void 0?["/"+M.filter]:void 0;if(q({data:M.data,additionalKeyValues:ee,alreadyAppliedFilters:$,objectId:M.objectId}),V("endobj"),"sMask"in M&&M.sMask!==void 0){var X,Q=(X=M.sMaskBitsPerComponent)!==null&&X!==void 0?X:M.bitsPerComponent,R={width:M.width,height:M.height,colorSpace:"DeviceGray",bitsPerComponent:Q,data:M.sMask};"filter"in M&&(R.decodeParameters="/Predictor ".concat(M.predictor," /Colors 1 /BitsPerComponent ").concat(Q," /Columns ").concat(M.width),R.filter=M.filter),F.call(this,R)}
vendor: 32,164 bytes, lines 1505-1529
1505if(M.colorSpace===v.INDEXED){var re=this.internal.newObject();q({data:O(new Uint8Array(M.palette)),objectId:re}),V("endobj")}},o=function(){var F=this.internal.collections[t+"images"];for(var M in F)a.call(this,F[M])},s=function(){var F,M=this.internal.collections[t+"images"],V=this.internal.write;for(var q in M)V("/I"+(F=M[q]).index,F.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},c=function(){var F=this.internal.collections[t+"images"];return l.call(this),F},d=function(){return Object.keys(this.internal.collections[t+"images"]).length},A=function(F){return typeof e["process"+F.toUpperCase()]=="function"},h=function(F){return sr(F)==="object"&&F.nodeType===1},m=function(F,M){if(F.nodeName==="IMG"&&F.hasAttribute("src")){var V=""+F.getAttribute("src");if(V.indexOf("data:image/")===0)return zx(unescape(V).split("base64,").pop());var q=e.loadFile(V,!0);if(q!==void 0)return q}if(F.nodeName==="CANVAS"){if(F.width===0||F.height===0)throw new Error("Given canvas must have data. Canvas width: "+F.width+", height: "+F.height);var W;switch(M){case"PNG":W="image/png";break;case"WEBP":W="image/webp";break;default:W="image/jpeg"}return zx(F.toDataURL(W,1).split("base64,").pop())}},b=function(F){var M=this.internal.collections[t+"images"];if(M){for(var V in M)if(F===M[V].alias)return M[V]}},g=function(F,M,V){return F||M||(F=-96,M=-96),F<0&&(F=-1*V.width*72/F/this.internal.scaleFactor),M<0&&(M=-1*V.height*72/M/this.internal.scaleFactor),F===0&&(F=M*V.width/V.height),M===0&&(M=F*V.height/V.width),[F,M]},y=function(F,M,V,q,W,ee){var ne=g.call(this,V,q,W),K=this.internal.getCoordinateString,oe=this.internal.getVerticalCoordinateString,$=c.call(this);if(V=ne[0],q=ne[1],$[W.index]=W,ee){ee*=Math.PI/180;var X=Math.cos(ee),Q=Math.sin(ee),R=function(ce){return ce.toFixed(4)},re=[R(X),R(Q),R(-1*Q),R(X),0,0,"cm"]}this.internal.write("q"),ee?(this.internal.write([1,"0","0",1,K(F),oe(M+q),"cm"].join(" ")),this.internal.write(re.join(" ")),this.internal.write([K(V),"0","0",K(q),"0","0","cm"].join(" "))):this.internal.write([K(V),"0","0",K(q),K(F),oe(M+q),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+W.index+" Do"),this.internal.write("Q")},v=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var x=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},B=e.__addimage__.sHashCode=function(F){var M,V,q=0;if(typeof F=="string")for(V=F.length,M=0;M<V;M++)q=(q<<5)-q+F.charCodeAt(M),q|=0;else if(T(F))for(V=F.byteLength/2,M=0;M<V;M++)q=(q<<5)-q+F[M],q|=0;return q},C=e.__addimage__.validateStringAsBase64=function(F){(F=F||"").toString().trim();var M=!0;return F.length===0&&(M=!1),F.length%4!=0&&(M=!1),/^[A-Za-z0-9+/]+$/.test(F.substr(0,F.length-2))===!1&&(M=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(F.substr(-2))===!1&&(M=!1),M},E=e.__addimage__.extractImageFromDataUrl=function(F){if(F==null||!(F=F.trim()).startsWith("data:"))return null;var M=F.indexOf(",");return M<0?null:F.substring(0,M).trim().endsWith("base64")?F.substring(M+1):null};e.__addimage__.isArrayBuffer=function(F){return F instanceof ArrayBuffer};var T=e.__addimage__.isArrayBufferView=function(F){return F instanceof Int8Array||F instanceof Uint8Array||F instanceof Uint8ClampedArray||F instanceof Int16Array||F instanceof Uint16Array||F instanceof Int32Array||F instanceof Uint32Array||F instanceof Float32Array||F instanceof Float64Array},j=e.__addimage__.binaryStringToUint8Array=function(F){for(var M=F.length,V=new Uint8Array(M),q=0;q<M;q++)V[q]=F.charCodeAt(q);return V},O=e.__addimage__.arrayBufferToBinaryString=function(F){for(var M="",V=T(F)?F:new Uint8Array(F),q=0;q<V.length;q+=8192)M+=String.fromCharCode.apply(null,V.subarray(q,q+8192));return M};e.addImage=function(){var F,M,V,q,W,ee,ne,K,oe;if(typeof arguments[1]=="number"?(M=n,V=arguments[1],q=arguments[2],W=arguments[3],ee=arguments[4],ne=arguments[5],K=arguments[6],oe=arguments[7]):(M=arguments[1],V=arguments[2],q=arguments[3],W=arguments[4],ee=arguments[5],ne=arguments[6],K=arguments[7],oe=arguments[8]),sr(F=arguments[0])==="object"&&!h(F)&&"imageData"in F){var $=F;F=$.imageData,M=$.format||M||n,V=$.x||V||0,q=$.y||q||0,W=$.w||$.width||W,ee=$.h||$.height||ee,ne=$.alias||ne,K=$.compression||K,oe=$.rotation||$.angle||oe}var X=this.internal.getFilters();if(K===void 0&&X.indexOf("FlateEncode")!==-1&&(K="SLOW"),isNaN(V)||isNaN(q))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var Q=L.call(this,F,M,ne,K);return y.call(this,V,q,W,ee,Q,oe),this};var L=function(F,M,V,q){var W,ee,ne;if(typeof F=="string"&&i(F)===n){F=unescape(F);var K=z(F,!1);(K!==""||(K=e.loadFile(F,!0))!==void 0)&&(F=K)}if(h(F)&&(F=m(F,M)),M=i(F,M),!A(M))throw new Error("addImage does not support files of type '"+M+"', please ensure that a plugin for '"+M+"' support is added.");if(((ne=V)==null||ne.length===0)&&(V=(function(oe){return typeof oe=="string"||T(oe)?B(oe):T(oe.data)?B(oe.data):null})(F)),(W=b.call(this,V))||(F instanceof Uint8Array||M==="RGBA"||(ee=F,F=j(F)),W=this["process"+M.toUpperCase()](F,d.call(this),V,(function(oe){return oe&&typeof oe=="string"&&(oe=oe.toUpperCase()),oe in e.image_compression?oe:x.NONE})(q),ee)),!W)throw new Error("An unknown error occurred whilst processing the image.");return W},z=e.__addimage__.convertBase64ToBinaryString=function(F,M){M=typeof M!="boolean"||M;var V,q="";if(typeof F=="string"){var W;V=(W=E(F))!==null&&W!==void 0?W:F;try{q=zx(V)}catch(ee){if(M)throw C(V)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ee.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return q};e.getImageProperties=function(F){var M,V,q="";if(h(F)&&(F=m(F)),typeof F=="string"&&i(F)===n&&((q=z(F,!1))===""&&(q=e.loadFile(F)||""),F=q),V=i(F),!A(V))throw new Error("addImage does not support files of type '"+V+"', please ensure that a plugin for '"+V+"' support is added.");if(F instanceof Uint8Array||(F=j(F)),!(M=this["process"+V.toUpperCase()](F)))throw new Error("An unknown error occurred whilst processing the image");return M.fileType=V,M}})(Qt.API),(function(e){var t=function(n){if(n!==void 0&&n!="")return!0};Qt.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var r,i,a,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(n.objId),c=n.pageContext.annotations,d=!1,A=0;A<c.length&&!d;A++)switch((r=c[A]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var h=0;h<c.length;h++){r=c[h];var m=this.internal.pdfEscape,b=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var g=this.internal.newAdditionalObject(),y=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(g.objId),x=r.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+o(r.bounds.x)+" "+s(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y)+"] ")+"/Contents ("+m(v(r.contents))+")",a+=" /Popup "+y.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+m(v(x))+") >>",g.content=a;var B=g.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+o(r.bounds.x+30)+" "+s(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w+30)+" "+s(r.bounds.y)+"] ")+" /Parent "+B,r.open&&(a+=" /Open true"),a+=" >>",y.content=a,this.internal.write(g.objId,"0 R",y.objId,"0 R");break;case"freetext":i="/Rect ["+o(r.bounds.x)+" "+s(r.bounds.y)+" "+o(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y+r.bounds.h)+"] ";var C=r.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+m(b(r.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+C+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(r.options.name){var E=this.annotations._nameMap[r.options.name];r.options.pageNumber=E.page,r.options.top=E.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",a="",r.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+m(b(r.options.url))+") >>";else if(r.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,a+=" /FitV "+r.options.left+"]";break;default:var T=s(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),a+=" /XYZ "+r.options.left+" "+T+" "+r.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var r=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":r.pageContext.annotations.push(n)}},e.link=function(n,r,i,a,o){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(n),y:c(r),w:l(n+i),h:c(r+a)},options:o,type:"link"})},e.textWithLink=function(n,r,i,a){var o,s,l=this.getTextWidth(n),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var d=this.splitTextToSize(n,s).length;o=Math.ceil(c*d)}else s=l,o=c;return this.text(n,r,i,a),i+=.2*c,a.align==="center"&&(r-=l/2),a.align==="right"&&(r-=l),this.link(r,i-c,s,o,a),l},e.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}})(Qt.API),(function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(g){return t[g.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(g){return typeof g=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(g)},s=e.__arabicParser__.isArabicEndLetter=function(g){return o(g)&&a(g)&&t[g.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(g){return o(g)&&i.indexOf(g.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(g){return o(g)&&a(g)&&t[g.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(g){return o(g)&&a(g)&&t[g.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(g){return o(g)&&a(g)&&t[g.charCodeAt(0)].length>=3};var d=e.__arabicParser__.arabicLetterHasMedialForm=function(g){return o(g)&&a(g)&&t[g.charCodeAt(0)].length==4},A=e.__arabicParser__.resolveLigatures=function(g){var y=0,v=n,x="",B=0;for(y=0;y<g.length;y+=1)v[g.charCodeAt(y)]!==void 0?(B++,typeof(v=v[g.charCodeAt(y)])=="number"&&(x+=String.fromCharCode(v),v=n,B=0),y===g.length-1&&(v=n,x+=g.charAt(y-(B-1)),y-=B-1,B=0)):(v=n,x+=g.charAt(y-B),y-=B,B=0);return x};e.__arabicParser__.isArabicDiacritic=function(g){return g!==void 0&&r[g.charCodeAt(0)]!==void 0};var h=e.__arabicParser__.getCorrectForm=function(g,y,v){return o(g)?a(g)===!1?-1:!c(g)||!o(y)&&!o(v)||!o(v)&&s(y)||s(g)&&!o(y)||s(g)&&l(y)||s(g)&&s(y)?0:d(g)&&o(y)&&!s(y)&&o(v)&&c(v)?3:s(g)||!o(v)?1:2:-1},m=function(g){var y=0,v=0,x=0,B="",C="",E="",T=(g=g||"").split("\\s+"),j=[];for(y=0;y<T.length;y+=1){for(j.push(""),v=0;v<T[y].length;v+=1)B=T[y][v],C=T[y][v-1],E=T[y][v+1],o(B)?(x=h(B,C,E),j[y]+=x!==-1?String.fromCharCode(t[B.charCodeAt(0)][x]):B):j[y]+=B;j[y]=A(j[y])}return j.join(" ")},b=e.__arabicParser__.processArabic=e.processArabic=function(){var g,y=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(y)){var x=0;for(v=[],x=0;x<y.length;x+=1)Array.isArray(y[x])?v.push([m(y[x][0]),y[x][1],y[x][2]]):v.push([m(y[x])]);g=v}else g=m(y);return typeof arguments[0]=="string"?g:(arguments[0].text=g,arguments[0])};e.events.push(["preProcessText",b])})(Qt.API),Qt.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},(function(e){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(s){n=s}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,r){var i;if((n=n||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(Qt.API),(function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(g){l=g}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(g){c=g}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(g){d=g}});var A=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return A},set:function(g){A=g}});var h=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return h},set:function(g){h=g}});var m=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return m},set:function(g){m=g}});var b=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return b},set:function(g){b=g}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){r.call(this);var d=(c=c||{}).fontSize||this.getFontSize(),A=c.font||this.getFont(),h=c.scaleFactor||this.internal.scaleFactor,m=0,b=0,g=0,y=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var v=c.maxWidth;v>0?typeof l=="string"?l=this.splitTextToSize(l,v):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(B,C){return B.concat(y.splitTextToSize(C,v))},[])):l=Array.isArray(l)?l:[l];for(var x=0;x<l.length;x++)m<(g=this.getStringUnitWidth(l[x],{font:A})*d)&&(m=g);return m!==0&&(b=l.length),{w:m/=h,h:Math.max((b*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/h,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var l;l=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var c=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,A=this.internal.__cell__.margins||t,h=this.internal.__cell__.tableHeaderRow,m=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+A.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=A.top,m&&h&&(this.printHeaderRow(l.lineNumber,!0),l.y+=h[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,n===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-d,l.y+d,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+d,{align:"center",baseline:"top",maxWidth:l.width-d-d}):this.text(l.text,l.x+d,l.y+d,{align:"left",baseline:"top",maxWidth:l.width-d-d})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,d,A,h){if(r.call(this),!d)throw new Error("No data for PDF table.");var m,b,g,y,v=[],x=[],B=[],C={},E={},T=[],j=[],O=(h=h||{}).autoSize||!1,L=h.printHeaders!==!1,z=h.css&&h.css["font-size"]!==void 0?16*h.css["font-size"]:h.fontSize||12,F=h.margins||Object.assign({width:this.getPageWidth()},t),M=typeof h.padding=="number"?h.padding:3,V=h.headerBackgroundColor||"#c8c8c8",q=h.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=L,this.internal.__cell__.margins=F,this.internal.__cell__.table_font_size=z,this.internal.__cell__.padding=M,this.internal.__cell__.headerBackgroundColor=V,this.internal.__cell__.headerTextColor=q,this.setFontSize(z),A==null)x=v=Object.keys(d[0]),B=v.map(function(){return"left"});else if(Array.isArray(A)&&sr(A[0])==="object")for(v=A.map(function($){return $.name}),x=A.map(function($){return $.prompt||$.name||""}),B=A.map(function($){return $.align||"left"}),m=0;m<A.length;m+=1)E[A[m].name]=.7499990551181103*A[m].width;else Array.isArray(A)&&typeof A[0]=="string"&&(x=v=A,B=v.map(function(){return"left"}));if(O||Array.isArray(A)&&typeof A[0]=="string")for(m=0;m<v.length;m+=1){for(C[y=v[m]]=d.map(function($){return $[y]}),this.setFont(void 0,"bold"),T.push(this.getTextDimensions(x[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),b=C[y],this.setFont(void 0,"normal"),g=0;g<b.length;g+=1)T.push(this.getTextDimensions(b[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);E[y]=Math.max.apply(null,T)+M+M,T=[]}if(L){var W={};for(m=0;m<v.length;m+=1)W[v[m]]={},W[v[m]].text=x[m],W[v[m]].align=B[m];var ee=s.call(this,W,E);j=v.map(function($){return new a(l,c,E[$],ee,W[$].text,void 0,W[$].align)}),this.setTableHeaderRow(j),this.printHeaderRow(1,!1)}var ne=A.reduce(function($,X){return $[X.name]=X.align,$},{});for(m=0;m<d.length;m+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:m,data:d[m]},this);var K=s.call(this,d[m],E);for(g=0;g<v.length;g+=1){var oe=d[m][v[g]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:m,col:g,data:oe},this),o.call(this,new a(l,c,E[v[g]],K,oe,m+2,ne[v[g]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var s=function(l,c){var d=this.internal.__cell__.padding,A=this.internal.__cell__.table_font_size,h=this.internal.scaleFactor;return Object.keys(l).map(function(m){var b=l[m];return this.splitTextToSize(b.hasOwnProperty("text")?b.text:b,c[m]-d-d)},this).map(function(m){return this.getLineHeightFactor()*m.length*A/h+d+d},this).reduce(function(m,b){return Math.max(m,b)},0)};e.setTableHeaderRow=function(l){r.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var A=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(A[0],A[1],A[2],A[3],void 0,-1)}this.setFont(void 0,"bold");for(var h=[],m=0;m<this.internal.__cell__.tableHeaderRow.length;m+=1){d=this.internal.__cell__.tableHeaderRow[m].clone(),c&&(d.y=this.internal.__cell__.margins.top||0,h.push(d)),d.lineNumber=l;var b=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,d),this.setTextColor(b)}h.length>0&&this.setTableHeaderRow(h),this.setFont(void 0,"normal"),n=!1}})(Qt.API);var Yre={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Xre=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],KP=Gre(Xre),Jre=[100,200,300,400,500,600,700,800,900],MVe=Gre(Jre);function xT(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=(function(a){return Yre[a=a||"normal"]?a:"normal"})(e.style),r=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(e.weight),i=(function(a){return typeof KP[a=a||"normal"]=="number"?a:"normal"})(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(" ")}}}function Bz(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var UVe={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Cz={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function kz(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Ez(e){return e.trimLeft()}function RVe(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function QVe(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Yp,mx,Nz,Tz,_z,ST=["times"];function Iz(e,t,n,r,i){var a=4,o=jz;switch(i){case Qt.API.image_compression.FAST:a=1,o=Pz;break;case Qt.API.image_compression.MEDIUM:a=6,o=Oz;break;case Qt.API.image_compression.SLOW:a=9,o=Fz}e=(function(l,c,d,A){for(var h,m=l.length/c,b=new Uint8Array(l.length+m),g=[HVe,Pz,jz,Oz,Fz],y=0;y<m;y+=1){var v=y*c,x=l.subarray(v,v+c);if(A)b.set(A(x,d,h),v+y);else{for(var B=g.length,C=[],E=0;E<B;E+=1)C[E]=g[E](x,d,h);var T=qVe(C.concat());b.set(C[T],v+y)}h=x}return b})(e,t,Math.ceil(n*r/8),o);var s=QP(e,{level:a});return Qt.API.__addimage__.arrayBufferToBinaryString(s)}function HVe(e){var t=Array.apply([],e);return t.unshift(0),t}function Pz(e,t){var n=e.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var a=e[i-t]||0;r[i+1]=e[i]-a+256&255}return r}function jz(e,t,n){var r=e.length,i=[];i[0]=2;for(var a=0;a<r;a+=1){var o=n&&n[a]||0;i[a+1]=e[a]-o+256&255}return i}function Oz(e,t,n){var r=e.length,i=[];i[0]=3;for(var a=0;a<r;a+=1){var o=e[a-t]||0,s=n&&n[a]||0;i[a+1]=e[a]+256-(o+s>>>1)&255}return i}function Fz(e,t,n){var r=e.length,i=[];i[0]=4;for(var a=0;a<r;a+=1){var o=$Ve(e[a-t]||0,n&&n[a]||0,n&&n[a-t]||0);i[a+1]=e[a]-o+256&255}return i}function $Ve(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),i=Math.abs(e-n),a=Math.abs(e+t-n-n);return r<=i&&r<=a?e:i<=a?t:n}function qVe(e){var t=e.map(function(n){return n.reduce(function(r,i){return r+Math.abs(i)},0)});return t.indexOf(Math.min.apply(null,t))}function BT(e,t,n){var r=t*n,i=Math.floor(r/8),a=16-(r-8*i+n),o=(1<<n)-1;return Zre(e,i)>>a&o}function Lz(e,t,n,r){var i=n*r,a=Math.floor(i/8),o=16-(i-8*a+r),s=(1<<r)-1,l=(t&s)<<o;(function(c,d,A){if(d+1<c.byteLength)c.setUint16(d,A,!1);else{var h=A>>8&255;c.setUint8(d,h)}})(e,a,Zre(e,a)&~(s<<o)&65535|l)}function Zre(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function zVe(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],a=i>>7,o=1<<1+(7&i);e[t++],e[t++];var s=null,l=null;a&&(s=t,l=o,t+=3*o);var c=!0,d=[],A=0,h=null,m=0,b=null;for(this.width=n,this.height=r;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,b=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((F=e[t++])>=0))throw Error("Invalid block size");if(F===0)break;t+=F}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var g=e[t++];A=e[t++]|e[t++]<<8,h=e[t++],1&g||(h=null),m=g>>2&7,t++;break;case 254:for(;;){if(!((F=e[t++])>=0))throw Error("Invalid block size");if(F===0)break;t+=F}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var y=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,B=e[t++]|e[t++]<<8,C=e[t++],E=C>>6&1,T=1<<1+(7&C),j=s,O=l,L=!1;C>>7&&(L=!0,j=t,O=T,t+=3*T);var z=t;for(t++;;){var F;if(!((F=e[t++])>=0))throw Error("Invalid block size");if(F===0)break;t+=F}d.push({x:y,y:v,width:x,height:B,has_local_palette:L,palette_offset:j,palette_size:O,data_offset:z,data_length:t-z,transparent_index:h,interlaced:!!E,delay:A,disposal:m});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return b},this.frameInfo=function(M){if(M<0||M>=d.length)throw new Error("Frame index out of range.");return d[M]},this.decodeAndBlitFrameBGRA=function(M,V){var q=this.frameInfo(M),W=q.width*q.height;if(W>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ee=new Uint8Array(W);Dz(e,q.data_offset,ee,W);var ne=q.palette_offset,K=q.transparent_index;K===null&&(K=256);var oe=q.width,$=n-oe,X=oe,Q=4*(q.y*n+q.x),R=4*((q.y+q.height)*n+q.x),re=Q,ce=4*$;q.interlaced===!0&&(ce+=4*n*7);for(var le=8,he=0,ye=ee.length;he<ye;++he){var Ae=ee[he];if(X===0&&(X=oe,(re+=ce)>=R&&(ce=4*$+4*n*(le-1),re=Q+(oe+$)*(le<<1),le>>=1)),Ae===K)re+=4;else{var be=e[ne+3*Ae],Ee=e[ne+3*Ae+1],ge=e[ne+3*Ae+2];V[re++]=ge,V[re++]=Ee,V[re++]=be,V[re++]=255}--X}},this.decodeAndBlitFrameRGBA=function(M,V){var q=this.frameInfo(M),W=q.width*q.height;if(W>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ee=new Uint8Array(W);Dz(e,q.data_offset,ee,W);var ne=q.palette_offset,K=q.transparent_index;K===null&&(K=256);var oe=q.width,$=n-oe,X=oe,Q=4*(q.y*n+q.x),R=4*((q.y+q.height)*n+q.x),re=Q,ce=4*$;q.interlaced===!0&&(ce+=4*n*7);for(var le=8,he=0,ye=ee.length;he<ye;++he){var Ae=ee[he];if(X===0&&(X=oe,(re+=ce)>=R&&(ce=4*$+4*n*(le-1),re=Q+(oe+$)*(le<<1),le>>=1)),Ae===K)re+=4;else{var be=e[ne+3*Ae],Ee=e[ne+3*Ae+1],ge=e[ne+3*Ae+2];V[re++]=be,V[re++]=Ee,V[re++]=ge,V[re++]=255}--X}}}function Dz(e,t,n,r){for(var i=e[t++],a=1<<i,o=a+1,s=o+1,l=i+1,c=(1<<l)-1,d=0,A=0,h=0,m=e[t++],b=new Int32Array(4096),g=null;;){for(;d<16&&m!==0;)A|=e[t++]<<d,d+=8,m===1?m=e[t++]:--m;if(d<l)break;var y=A&c;if(A>>=l,d-=l,y!==a){if(y===o)break;for(var v=y<s?y:g,x=0,B=v;B>a;)B=b[B]>>8,++x;var C=B;if(h+x+(v!==y?1:0)>r)return void pr.log("Warning, gif stream longer than expected.");n[h++]=C;var E=h+=x;for(v!==y&&(n[h++]=C),B=v;x--;)B=b[B],n[--E]=255&B,B>>=8;g!==null&&s<4096&&(b[s++]=g<<8|C,s>=c+1&&l<12&&(++l,c=c<<1|1)),g=y}else s=o+1,c=(1<<(l=i+1))-1,g=null}return h!==r&&pr.log("Warning, gif stream shorter than expected."),n}/**
1506 * @license
1507  Copyright (c) 2008, Adobe Systems Incorporated
1508  All rights reserved.
1509
1510  Redistribution and use in source and binary forms, with or without 
1511  modification, are permitted provided that the following conditions are
1512  met:
1513
1514  * Redistributions of source code must retain the above copyright notice, 
1515    this list of conditions and the following disclaimer.
1516  
1517  * Redistributions in binary form must reproduce the above copyright
1518    notice, this list of conditions and the following disclaimer in the 
1519    documentation and/or other materials provided with the distribution.
1520  
1521  * Neither the name of Adobe Systems Incorporated nor the names of its 
1522    contributors may be used to endorse or promote products derived from 
1523    this software without specific prior written permission.
1524
1525  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
1526  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
1527  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1528  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
1529  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
1530  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
1531  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
1532  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
1533  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
1534  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
1535  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1536*/function CT(e){var t,n,r,i,a,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),d=new Array(64),A=new Array(65535),h=new Array(65535),m=new Array(64),b=new Array(64),g=[],y=0,v=7,x=new Array(64),B=new Array(64),C=new Array(64),E=new Array(256),T=new Array(2048),j=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],O=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],z=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],F=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],M=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],V=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],W=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ee(Q,R){for(var re=0,ce=0,le=new Array,he=1;he<=16;he++){for(var ye=1;ye<=Q[he];ye++)le[R[ce]]=[],le[R[ce]][0]=re,le[R[ce]][1]=he,ce++,re++;re*=2}return le}function ne(Q){for(var R=Q[0],re=Q[1]-1;re>=0;)R&1<<re&&(y|=1<<v),re--,--v<0&&(y==255?(K(255),K(0)):K(y),v=7,y=0)}function K(Q){g.push(Q)}function oe(Q){K(Q>>8&255),K(255&Q)}function $(Q,R,re,ce,le){for(var he,ye=le[0],Ae=le[240],be=(function(He,ht){var it,pt,Bt,gn,zt,Ie,ze,at,Ze,At,ft=0;for(Ze=0;Ze<8;++Ze){it=He[ft],pt=He[ft+1],Bt=He[ft+2],gn=He[ft+3],zt=He[ft+4],Ie=He[ft+5],ze=He[ft+6];var Ln=it+(at=He[ft+7]),Gt=it-at,Yt=pt+ze,Vt=pt-ze,fn=Bt+Ie,wt=Bt-Ie,yn=gn+zt,Mt=gn-zt,en=Ln+yn,En=Ln-yn,rn=Yt+fn,$t=Yt-fn;He[ft]=en+rn,He[ft+4]=en-rn;var Nn=.707106781*($t+En);He[ft+2]=En+Nn,He[ft+6]=En-Nn;var zo=.382683433*((en=Mt+wt)-($t=Vt+Gt)),ve=.5411961*en+zo,Ve=1.306562965*$t+zo,vt=.707106781*(rn=wt+Vt),Tt=Gt+vt,jr=Gt-vt;He[ft+5]=jr+ve,He[ft+3]=jr-ve,He[ft+1]=Tt+Ve,He[ft+7]=Tt-Ve,ft+=8}for(ft=0,Ze=0;Ze<8;++Ze){it=He[ft],pt=He[ft+8],Bt=He[ft+16],gn=He[ft+24],zt=He[ft+32],Ie=He[ft+40],ze=He[ft+48];var Or=it+(at=He[ft+56]),kr=it-at,Ui=pt+ze,Hn=pt-ze,qr=Bt+Ie,Zr=Bt-Ie,dl=gn+zt,oc=gn-zt,Vo=Or+dl,ks=Or-dl,Ri=Ui+qr,bo=Ui-qr;He[ft]=Vo+Ri,He[ft+32]=Vo-Ri;var no=.707106781*(bo+ks);He[ft+16]=ks+no,He[ft+48]=ks-no;var iu=.382683433*((Vo=oc+Zr)-(bo=Hn+kr)),Wo=.5411961*Vo+iu,sc=1.306562965*bo+iu,au=.707106781*(Ri=Zr+Hn),ou=kr+au,md=kr-au;He[ft+40]=md+Wo,He[ft+24]=md-Wo,He[ft+8]=ou+sc,He[ft+56]=ou-sc,ft++}for(Ze=0;Ze<64;++Ze)At=He[Ze]*ht[Ze],m[Ze]=At>0?At+.5|0:At-.5|0;return m})(Q,R),Ee=0;Ee<64;++Ee)b[j[Ee]]=be[Ee];var ge=b[0]-re;re=b[0],ge==0?ne(ce[0]):(ne(ce[h[he=32767+ge]]),ne(A[he]));for(var Ue=63;Ue>0&&b[Ue]==0;)Ue--;if(Ue==0)return ne(ye),re;for(var Ye,ae=1;ae<=Ue;){for(var Le=ae;b[ae]==0&&ae<=Ue;)++ae;var st=ae-Le;if(st>=16){Ye=st>>4;for(var ut=1;ut<=Ye;++ut)ne(Ae);st&=15}he=32767+b[ae],ne(le[(st<<4)+h[he]]),ne(A[he]),ae++}return Ue!=63&&ne(ye),re}function X(Q){Q=Math.min(Math.max(Q,1),100),a!=Q&&((function(R){for(var re=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],ce=0;ce<64;ce++){var le=o((re[ce]*R+50)/100);le=Math.min(Math.max(le,1),255),s[j[ce]]=le}for(var he=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ye=0;ye<64;ye++){var Ae=o((he[ye]*R+50)/100);Ae=Math.min(Math.max(Ae,1),255),l[j[ye]]=Ae}for(var be=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ee=0,ge=0;ge<8;ge++)for(var Ue=0;Ue<8;
vendor: 28,673 bytes, lines 1536-1542
1536Ue++)c[Ee]=1/(s[j[Ee]]*be[ge]*be[Ue]*8),d[Ee]=1/(l[j[Ee]]*be[ge]*be[Ue]*8),Ee++})(Q<50?Math.floor(5e3/Q):Math.floor(200-2*Q)),a=Q)}this.encode=function(Q,R){R&&X(R),g=new Array,y=0,v=7,oe(65496),oe(65504),oe(16),K(74),K(70),K(73),K(70),K(0),K(1),K(1),K(0),oe(1),oe(1),K(0),K(0),(function(){oe(65499),oe(132),K(0);for(var pt=0;pt<64;pt++)K(s[pt]);K(1);for(var Bt=0;Bt<64;Bt++)K(l[Bt])})(),(function(pt,Bt){oe(65472),oe(17),K(8),oe(Bt),oe(pt),K(3),K(1),K(17),K(0),K(2),K(17),K(1),K(3),K(17),K(1)})(Q.width,Q.height),(function(){oe(65476),oe(418),K(0);for(var pt=0;pt<16;pt++)K(O[pt+1]);for(var Bt=0;Bt<=11;Bt++)K(L[Bt]);K(16);for(var gn=0;gn<16;gn++)K(z[gn+1]);for(var zt=0;zt<=161;zt++)K(F[zt]);K(1);for(var Ie=0;Ie<16;Ie++)K(M[Ie+1]);for(var ze=0;ze<=11;ze++)K(V[ze]);K(17);for(var at=0;at<16;at++)K(q[at+1]);for(var Ze=0;Ze<=161;Ze++)K(W[Ze])})(),oe(65498),oe(12),K(3),K(1),K(0),K(2),K(17),K(3),K(17),K(0),K(63),K(0);var re=0,ce=0,le=0;y=0,v=7,this.encode.displayName="_encode_";for(var he,ye,Ae,be,Ee,ge,Ue,Ye,ae,Le=Q.data,st=Q.width,ut=Q.height,He=4*st,ht=0;ht<ut;){for(he=0;he<He;){for(Ee=He*ht+he,Ue=-1,Ye=0,ae=0;ae<64;ae++)ge=Ee+(Ye=ae>>3)*He+(Ue=4*(7&ae)),ht+Ye>=ut&&(ge-=He*(ht+1+Ye-ut)),he+Ue>=He&&(ge-=he+Ue-He+4),ye=Le[ge++],Ae=Le[ge++],be=Le[ge++],x[ae]=(T[ye]+T[Ae+256|0]+T[be+512|0]>>16)-128,B[ae]=(T[ye+768|0]+T[Ae+1024|0]+T[be+1280|0]>>16)-128,C[ae]=(T[ye+1280|0]+T[Ae+1536|0]+T[be+1792|0]>>16)-128;re=$(x,c,re,t,r),ce=$(B,d,ce,n,i),le=$(C,d,le,n,i),he+=32}ht+=8}if(v>=0){var it=[];it[1]=v+1,it[0]=(1<<v+1)-1,ne(it)}return oe(65497),new Uint8Array(g)},e=e||50,(function(){for(var Q=String.fromCharCode,R=0;R<256;R++)E[R]=Q(R)})(),t=ee(O,L),n=ee(M,V),r=ee(z,F),i=ee(q,W),(function(){for(var Q=1,R=2,re=1;re<=15;re++){for(var ce=Q;ce<R;ce++)h[32767+ce]=re,A[32767+ce]=[],A[32767+ce][1]=re,A[32767+ce][0]=ce;for(var le=-(R-1);le<=-Q;le++)h[32767+le]=re,A[32767+le]=[],A[32767+le][1]=re,A[32767+le][0]=R-1+le;Q<<=1,R<<=1}})(),(function(){for(var Q=0;Q<256;Q++)T[Q]=19595*Q,T[Q+256|0]=38470*Q,T[Q+512|0]=7471*Q+32768,T[Q+768|0]=-11059*Q,T[Q+1024|0]=-21709*Q,T[Q+1280|0]=32768*Q+8421375,T[Q+1536|0]=-27439*Q,T[Q+1792|0]=-5329*Q})(),X(e)}/**
1537 * @license
1538 * Copyright (c) 2017 Aras Abbasi
1539 *
1540 * Licensed under the MIT License.
1541 * http://opensource.org/licenses/mit-license
1542 */function Il(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Mz(e){function t(L){if(!L)throw Error("assert :P")}function n(L,z,F){for(var M=0;4>M;M++)if(L[z+M]!=F.charCodeAt(M))return!0;return!1}function r(L,z,F,M,V){for(var q=0;q<V;q++)L[z+q]=F[M+q]}function i(L,z,F,M){for(var V=0;V<M;V++)L[z+V]=F}function a(L){return new Int32Array(L)}function o(L,z){for(var F=[],M=0;M<L;M++)F.push(new z);return F}function s(L,z){var F=[];return(function M(V,q,W){for(var ee=W[q],ne=0;ne<ee&&(V.push(W.length>q+1?[]:new z),!(W.length<q+1));ne++)M(V[ne],q+1,W)})(F,0,L),F}var l=function(){var L=this;function z(S,N){for(var D=1<<N-1>>>0;S&D;)D>>>=1;return D?(S&D-1)+D:S}function F(S,N,D,H,G){t(!(H%D));do S[N+(H-=D)]=G;while(0<H)}function M(S,N,D,H,G){if(t(2328>=G),512>=G)var Z=a(512);else if((Z=a(G))==null)return 0;return(function(te,ie,se,ue,xe,Pe){var de,Be,Te=ie,Qe=1<<se,Oe=a(16),Me=a(16);for(t(xe!=0),t(ue!=null),t(te!=null),t(0<se),Be=0;Be<xe;++Be){if(15<ue[Be])return 0;++Oe[ue[Be]]}if(Oe[0]==xe)return 0;for(Me[1]=0,de=1;15>de;++de){if(Oe[de]>1<<de)return 0;Me[de+1]=Me[de]+Oe[de]}for(Be=0;Be<xe;++Be)de=ue[Be],0<ue[Be]&&(Pe[Me[de]++]=Be);if(Me[15]==1)return(ue=new V).g=0,ue.value=Pe[0],F(te,Te,1,Qe,ue),Qe;var Re,Ke=-1,Ge=Qe-1,Dt=0,xt=1,dn=1,Nt=1<<se;for(Be=0,de=1,xe=2;de<=se;++de,xe<<=1){if(xt+=dn<<=1,0>(dn-=Oe[de]))return 0;for(;0<Oe[de];--Oe[de])(ue=new V).g=de,ue.value=Pe[Be++],F(te,Te+Dt,xe,Nt,ue),Dt=z(Dt,de)}for(de=se+1,xe=2;15>=de;++de,xe<<=1){if(xt+=dn<<=1,0>(dn-=Oe[de]))return 0;for(;0<Oe[de];--Oe[de]){if(ue=new V,(Dt&Ge)!=Ke){for(Te+=Nt,Re=1<<(Ke=de)-se;15>Ke&&!(0>=(Re-=Oe[Ke]));)++Ke,Re<<=1;Qe+=Nt=1<<(Re=Ke-se),te[ie+(Ke=Dt&Ge)].g=Re+se,te[ie+Ke].value=Te-ie-Ke}ue.g=de-se,ue.value=Pe[Be++],F(te,Te+(Dt>>se),xe,Nt,ue),Dt=z(Dt,de)}}return xt!=2*Me[15]-1?0:Qe})(S,N,D,H,G,Z)}function V(){this.value=this.g=0}function q(){this.value=this.g=0}function W(){this.G=o(5,V),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Eo,q)}function ee(S,N,D,H){t(S!=null),t(N!=null),t(2147483648>H),S.Ca=254,S.I=0,S.b=-8,S.Ka=0,S.oa=N,S.pa=D,S.Jd=N,S.Yc=D+H,S.Zc=4<=H?D+H-4+1:D,ye(S)}function ne(S,N){for(var D=0;0<N--;)D|=be(S,128)<<N;return D}function K(S,N){var D=ne(S,N);return Ae(S)?-D:D}function oe(S,N,D,H){var G,Z=0;for(t(S!=null),t(N!=null),t(4294967288>H),S.Sb=H,S.Ra=0,S.u=0,S.h=0,4<H&&(H=4),G=0;G<H;++G)Z+=N[D+G]<<8*G;S.Ra=Z,S.bb=H,S.oa=N,S.pa=D}function $(S){for(;8<=S.u&&S.bb<S.Sb;)S.Ra>>>=8,S.Ra+=S.oa[S.pa+S.bb]<<pc-8>>>0,++S.bb,S.u-=8;ce(S)&&(S.h=1,S.u=0)}function X(S,N){if(t(0<=N),!S.h&&N<=co){var D=re(S)&lo[N];return S.u+=N,$(S),D}return S.h=1,S.u=0}function Q(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function R(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function re(S){return S.Ra>>>(S.u&pc-1)>>>0}function ce(S){return t(S.bb<=S.Sb),S.h||S.bb==S.Sb&&S.u>pc}function le(S,N){S.u=N,S.h=ce(S)}function he(S){S.u>=js&&(t(S.u>=js),$(S))}function ye(S){t(S!=null&&S.oa!=null),S.pa<S.Zc?(S.I=(S.oa[S.pa++]|S.I<<8)>>>0,S.b+=8):(t(S!=null&&S.oa!=null),S.pa<S.Yc?(S.b+=8,S.I=S.oa[S.pa++]|S.I<<8):S.Ka?S.b=0:(S.I<<=8,S.b+=8,S.Ka=1))}function Ae(S){return ne(S,1)}function be(S,N){var D=S.Ca;0>S.b&&ye(S);var H=S.b,G=D*N>>>8,Z=(S.I>>>H>G)+0;for(Z?(D-=G,S.I-=G+1<<H>>>0):D=G+1,H=D,G=0;256<=H;)G+=8,H>>=8;return H=7^G+gl[H],S.b-=H,S.Ca=(D<<H)-1,Z}function Ee(S,N,D){S[N+0]=D>>24&255,S[N+1]=D>>16&255,S[N+2]=D>>8&255,S[N+3]=255&D}function ge(S,N){return S[N+0]|S[N+1]<<8}function Ue(S,N){return ge(S,N)|S[N+2]<<16}function Ye(S,N){return ge(S,N)|ge(S,N+2)<<16}function ae(S,N){var D=1<<N;return t(S!=null),t(0<N),S.X=a(D),S.X==null?0:(S.Mb=32-N,S.Xa=N,1)}function Le(S,N){t(S!=null),t(N!=null),t(S.Xa==N.Xa),r(N.X,0,S.X,0,1<<N.Xa)}function st(){this.X=[],this.Xa=this.Mb=0}function ut(S,N,D,H){t(D!=null),t(H!=null);var G=D[0],Z=H[0];return G==0&&(G=(S*Z+N/2)/N),Z==0&&(Z=(N*G+S/2)/S),0>=G||0>=Z?0:(D[0]=G,H[0]=Z,1)}function He(S,N){return S+(1<<N)-1>>>N}function ht(S,N){return((4278255360&S)+(4278255360&N)>>>0&4278255360)+((16711935&S)+(16711935&N)>>>0&16711935)>>>0}function it(S,N){L[N]=function(D,H,G,Z,te,ie,se){var ue;for(ue=0;ue<te;++ue){var xe=L[S](ie[se+ue-1],G,Z+ue);ie[se+ue]=ht(D[H+ue],xe)}}}function pt(){this.ud=this.hd=this.jd=0}function Bt(S,N){return((4278124286&(S^N))>>>1)+(S&N)>>>0}function gn(S){return 0<=S&&256>S?S:0>S?0:255<S?255:void 0}function zt(S,N){return gn(S+(S-N+.5>>1))}function Ie(S,N,D){return Math.abs(N-D)-Math.abs(S-D)}function ze(S,N,D,H,G,Z,te){for(H=Z[te-1],D=0;D<G;++D)Z[te+D]=H=ht(S[N+D],H)}function at(S,N,D,H,G){var Z;for(Z=0;Z<D;++Z){var te=S[N+Z],ie=te>>8&255,se=16711935&(se=(se=16711935&te)+((ie<<16)+ie));H[G+Z]=(4278255360&te)+se>>>0}}function Ze(S,N){N.jd=255&S,N.hd=S>>8&255,N.ud=S>>16&255}function At(S,N,D,H,G,Z){var te;for(te=0;te<H;++te){var ie=N[D+te],se=ie>>>8,ue=ie,xe=255&(xe=(xe=ie>>>16)+((S.jd<<24>>24)*(se<<24>>24)>>>5));ue=255&(ue=(ue+=(S.hd<<24>>24)*(se<<24>>24)>>>5)+((S.ud<<24>>24)*(xe<<24>>24)>>>5)),G[Z+te]=(4278255360&ie)+(xe<<16)+ue}}function ft(S,N,D,H,G){L[N]=function(Z,te,ie,se,ue,xe,Pe,de,Be){for(se=Pe;se<de;++se)for(Pe=0;Pe<Be;++Pe)ue[xe++]=G(ie[H(Z[te++])])},L[S]=function(Z,te,ie,se,ue,xe,Pe){var de=8>>Z.b,Be=Z.Ea,Te=Z.K[0],Qe=Z.w;if(8>de)for(Z=(1<<Z.b)-1,Qe=(1<<de)-1;te<ie;++te){var Oe,Me=0;for(Oe=0;Oe<Be;++Oe)Oe&Z||(Me=H(se[ue++])),xe[Pe++]=G(Te[Me&Qe]),Me>>=de}else L["VP8LMapColor"+D](se,ue,Te,Qe,xe,Pe,te,ie,Be)}}function Ln(S,N,D,H,G){for(D=N+D;N<D;){var Z=S[N++];H[G++]=Z>>16&255,H[G++]=Z>>8&255,H[G++]=255&Z}}function Gt(S,N,D,H,G){for(D=N+D;N<D;){var Z=S[N++];H[G++]=Z>>16&255,H[G++]=Z>>8&255,H[G++]=255&Z,H[G++]=Z>>24&255}}function Yt(S,N,D,H,G){for(D=N+D;N<D;){var Z=(te=S[N++])>>16&240|te>>12&15,te=240&te|te>>28&15;H[G++]=Z,H[G++]=te}}function Vt(S,N,D,H,G){for(D=N+D;N<D;){var Z=(te=S[N++])>>16&248|te>>13&7,te=te>>5&224|te>>3&31;H[G++]=Z,H[G++]=te}}function fn(S,N,D,H,G){for(D=N+D;N<D;){var Z=S[N++];H[G++]=255&Z,H[G++]=Z>>8&255,H[G++]=Z>>16&255}}function wt(S,N,D,H,G,Z){if(Z==0)for(D=N+D;N<D;)Ee(H,((Z=S[N++])[0]>>24|Z[1]>>8&65280|Z[2]<<8&16711680|Z[3]<<24)>>>0),G+=32;else r(H,G,S,N,D)}function yn(S,N){L[N][0]=L[S+"0"],L[N][1]=L[S+"1"],L[N][2]=L[S+"2"],L[N][3]=L[S+"3"],L[N][4]=L[S+"4"],L[N][5]=L[S+"5"],L[N][6]=L[S+"6"],L[N][7]=L[S+"7"],L[N][8]=L[S+"8"],L[N][9]=L[S+"9"],L[N][10]=L[S+"10"],L[N][11]=L[S+"11"],L[N][12]=L[S+"12"],L[N][13]=L[S+"13"],L[N][14]=L[S+"0"],L[N][15]=L[S+"0"]}function Mt(S){return S==Fd||S==Tu||S==yf||S==vf}function en(){this.eb=[],this.size=this.A=this.fb=0}function En(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function rn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new en,this.f.kb=new En,this.sd=null}function $t(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Nn(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function zo(S){return alert("todo:WebPSamplerProcessPlane"),S.T}function ve(S,N){var D=S.T,H=N.ba.f.RGBA,G=H.eb,Z=H.fb+S.ka*H.A,te=Oa[N.ba.S],ie=S.y,se=S.O,ue=S.f,xe=S.N,Pe=S.ea,de=S.W,Be=N.cc,Te=N.dc,Qe=N.Mc,Oe=N.Nc,Me=S.ka,Re=S.ka+S.T,Ke=S.U,Ge=Ke+1>>1;for(Me==0?te(ie,se,null,null,ue,xe,Pe,de,ue,xe,Pe,de,G,Z,null,null,Ke):(te(N.ec,N.fc,ie,se,Be,Te,Qe,Oe,ue,xe,Pe,de,G,Z-H.A,G,Z,Ke),++D);Me+2<Re;Me+=2)Be=ue,Te=xe,Qe=Pe,Oe=de,xe+=S.Rc,de+=S.Rc,Z+=2*H.A,te(ie,(se+=2*S.fa)-S.fa,ie,se,Be,Te,Qe,Oe,ue,xe,Pe,de,G,Z-H.A,G,Z,Ke);return se+=S.fa,S.j+Re<S.o?(r(N.ec,N.fc,ie,se,Ke),r(N.cc,N.dc,ue,xe,Ge),r(N.Mc,N.Nc,Pe,de,Ge),D--):1&Re||te(ie,se,null,null,ue,xe,Pe,de,ue,xe,Pe,de,G,Z+H.A,null,null,Ke),D}function Ve(S,N,D){var H=S.F,G=[S.J];if(H!=null){var Z=S.U,te=N.ba.S,ie=te==gf||te==yf;N=N.ba.f.RGBA;var se=[0],ue=S.ka;se[0]=S.T,S.Kb&&(ue==0?--se[0]:(--ue,G[0]-=S.width),S.j+S.ka+S.T==S.o&&(se[0]=S.o-S.j-ue));var xe=N.eb;ue=N.fb+ue*N.A,S=pf(H,G[0],S.width,Z,se,xe,ue+(ie?0:3),N.A),t(D==se),S&&Mt(te)&&Nu(xe,ue,ie,Z,se,N.A)}return 0}function vt(S){var N=S.ma,D=N.ba.S,H=11>D,G=D==vc||D==mf||D==gf||D==rr||D==12||Mt(D);if(N.memory=null,N.Ib=null,N.Jb=null,N.Nd=null,!Nd(N.Oa,S,G?11:12))return 0;if(G&&Mt(D)&&yu(),S.da)alert("todo:use_scaling");else{if(H){if(N.Ib=zo,S.Kb){if(D=S.U+1>>1,N.memory=a(S.U+2*D),N.memory==null)return 0;N.ec=N.memory,N.fc=0,N.cc=N.ec,N.dc=N.fc+S.U,N.Mc=N.cc,N.Nc=N.dc+D,N.Ib=ve,yu()}}else alert("todo:EmitYUV");G&&(N.Jb=Ve,H&&Yo())}if(H&&!$i){for(S=0;256>S;++S)Fa[S]=89858*(S-128)+es>>wl,La[S]=-22014*(S-128)+es,Ud[S]=-45773*(S-128),ju[S]=113618*(S-128)+es>>wl;for(S=zn;S<Gn;++S)N=76283*(S-16)+es>>wl,fp[S-zn]=ei(N,255),Eb[S-zn]=ei(N+8>>4,15);$i=1}return 1}function Tt(S){var N=S.ma,D=S.U,H=S.T;return t(!(1&S.ka)),0>=D||0>=H?0:(D=N.Ib(S,N),N.Jb!=null&&N.Jb(S,N,D),N.Dc+=D,1)}function jr(S){S.ma.memory=null}function Or(S,N,D,H){return X(S,8)!=47?0:(N[0]=X(S,14)+1,D[0]=X(S,14)+1,H[0]=X(S,1),X(S,3)!=0?0:!S.h)}function kr(S,N){if(4>S)return S+1;var D=S-2>>1;return(2+(1&S)<<D)+X(N,D)+1}function Ui(S,N){return 120<N?N-120:1<=(D=((D=HB[N-1])>>4)*S+(8-(15&D)))?D:1;var D}function Hn(S,N,D){var H=re(D),G=S[N+=255&H].g-8;return 0<G&&(le(D,D.u+8),H=re(D),N+=S[N].value,N+=H&(1<<G)-1),le(D,D.u+S[N].g),S[N].value}function qr(S,N,D){return D.g+=S.g,D.value+=S.value<<N>>>0,t(8>=D.g),S.g}function Zr(S,N,D){var H=S.xc;return t((N=H==0?0:S.vc[S.md*(D>>H)+(N>>H)])<S.Wb),S.Ya[N]}function dl(S,N,D,H){var G=S.ab,Z=S.c*N,te=S.C;N=te+N;var ie=D,se=H;for(H=S.Ta,D=S.Ua;0<G--;){var ue=S.gc[G],xe=te,Pe=N,de=ie,Be=se,Te=(se=H,ie=D,ue.Ea);switch(t(xe<Pe),t(Pe<=ue.nc),ue.hc){case 2:Vr(de,Be,(Pe-xe)*Te,se,ie);break;case 0:var Qe=xe,Oe=Pe,Me=se,Re=ie,Ke=(Nt=ue).Ea;Qe==0&&(yl(de,Be,null,null,1,Me,Re),ze(de,Be+1,0,0,Ke-1,Me,Re+1),Be+=Ke,Re+=Ke,++Qe);for(var Ge=1<<Nt.b,Dt=Ge-1,xt=He(Ke,Nt.b),dn=Nt.K,Nt=Nt.w+(Qe>>Nt.b)*xt;Qe<Oe;){var Sn=dn,Dr=Nt,hn=1;for(Os(de,Be,Me,Re-Ke,1,Me,Re);hn<Ke;){var St=(hn&~Dt)+Ge;St>Ke&&(St=Ke),(0,Bu[Sn[Dr++]>>8&15])(de,Be+ +hn,Me,Re+hn-Ke,St-hn,Me,Re+hn),hn=St}Be+=Ke,Re+=Ke,++Qe&Dt||(Nt+=xt)}Pe!=ue.nc&&r(se,ie-Te,se,ie+(Pe-xe-1)*Te,Te);break;case 1:for(Te=de,Oe=Be,Ke=(de=ue.Ea)-(Re=de&~(Me=(Be=1<<ue.b)-1)),Qe=He(de,ue.b),Ge=ue.K,ue=ue.w+(xe>>ue.b)*Qe;xe<Pe;){for(Dt=Ge,xt=ue,dn=new pt,Nt=Oe+Re,Sn=Oe+de;Oe<Nt;)Ze(Dt[xt++],dn),_d(dn,Te,Oe,Be,se,ie),Oe+=Be,ie+=Be;Oe<Sn&&(Ze(Dt[xt++],dn),_d(dn,Te,Oe,Ke,se,ie),Oe+=Ke,ie+=Ke),++xe&Me||(ue+=Qe)}break;case 3:if(de==se&&Be==ie&&0<ue.b){for(Oe=se,de=Te=ie+(Pe-xe)*Te-(Re=(Pe-xe)*He(ue.Ea,ue.b)),Be=se,Me=ie,Qe=[],Re=(Ke=Re)-1;0<=Re;--Re)Qe[Re]=Be[Me+Re];for(Re=Ke-1;0<=Re;--Re)Oe[de+Re]=Qe[Re];xu(ue,xe,Pe,se,Te,se,ie)}else xu(ue,xe,Pe,de,Be,se,ie)}ie=H,se=D}se!=D&&r(H,D,ie,se,Z)}function oc(S,N){var D=S.V,H=S.Ba+S.c*S.C,G=N-S.C;if(t(N<=S.l.o),t(16>=G),0<G){var Z=S.l,te=S.Ta,ie=S.Ua,se=Z.width;if(dl(S,G,D,H),G=ie=[ie],t((D=S.C)<(H=N)),t(Z.v<Z.va),H>Z.o&&(H=Z.o),D<Z.j){var ue=Z.j-D;D=Z.j,G[0]+=ue*se}if(D>=H?D=0:(G[0]+=4*Z.v,Z.ka=D-Z.j,Z.U=Z.va-Z.v,Z.T=H-D,D=1),D){if(ie=ie[0],11>(D=S.ca).S){var xe=D.f.RGBA,Pe=(H=D.S,G=Z.U,Z=Z.T,ue=xe.eb,xe.A),de=Z;for(xe=xe.fb+S.Ma*xe.A;0<de--;){var Be=te,Te=ie,Qe=G,Oe=ue,Me=xe;switch(H){case cp:Id(Be,Te,Qe,Oe,Me);break;case vc:vl(Be,Te,Qe,Oe,Me);break;case Fd:vl(Be,Te,Qe,Oe,Me),Nu(Oe,Me,0,Qe,1,0);break;case xb:Cu(Be,Te,Qe,Oe,Me);break;case mf:wt(Be,Te,Qe,Oe,Me,1);break;case Tu:wt(Be,Te,Qe,Oe,Me,1),Nu(Oe,Me,0,Qe,1,0);break;case gf:wt(Be,Te,Qe,Oe,Me,0);break;case yf:wt(Be,Te,Qe,Oe,Me,0),Nu(Oe,Me,1,Qe,1,0);break;case rr:mc(Be,Te,Qe,Oe,Me);break;case vf:mc(Be,Te,Qe,Oe,Me),Xg(Oe,Me,Qe,1,0);break;case up:gc(Be,Te,Qe,Oe,Me);break;default:t(0)}ie+=se,xe+=Pe}S.Ma+=Z}else alert("todo:EmitRescaledRowsYUVA");t(S.Ma<=D.height)}}S.C=N,t(S.C<=S.i)}function Vo(S){var N;if(0<S.ua)return 0;for(N=0;N<S.Wb;++N){var D=S.Ya[N].G,H=S.Ya[N].H;if(0<D[1][H[1]+0].g||0<D[2][H[2]+0].g||0<D[3][H[3]+0].g)return 0}return 1}function ks(S,N,D,H,G,Z){if(S.Z!=0){var te=S.qd,ie=S.rd;for(t(ta[S.Z]!=null);N<D;++N)ta[S.Z](te,ie,H,G,H,G,Z),te=H,ie=G,G+=Z;S.qd=te,S.rd=ie}}function Ri(S,N){var D=S.l.ma,H=D.Z==0||D.Z==1?S.l.j:S.C;if(H=S.C<H?H:S.C,t(N<=S.l.o),N>H){var G=S.l.width,Z=D.ca,te=D.tb+G*H,ie=S.V,se=S.Ba+S.c*H,ue=S.gc;t(S.ab==1),t(ue[0].hc==3),Jo(ue[0],H,N,ie,se,Z,te),ks(D,H,N,Z,te,G)}S.C=S.Ma=N}function bo(S,N,D,H,G,Z,te){var ie=S.$/H,se=S.$%H,ue=S.m,xe=S.s,Pe=D+S.$,de=Pe;G=D+H*G;var Be=D+H*Z,Te=280+xe.ua,Qe=S.Pb?ie:16777216,Oe=0<xe.ua?xe.Wa:null,Me=xe.wc,Re=Pe<Be?Zr(xe,se,ie):null;t(S.C<Z),t(Be<=G);var Ke=!1;e:for(;;){for(;Ke||Pe<Be;){var Ge=0;if(ie>=Qe){var Dt=Pe-D;t((Qe=S).Pb),Qe.wd=Qe.m,Qe.xd=Dt,0<Qe.s.ua&&Le(Qe.s.Wa,Qe.s.vb),Qe=ie+Ap}if(se&Me||(Re=Zr(xe,se,ie)),t(Re!=null),Re.Qb&&(N[Pe]=Re.qb,Ke=!0),!Ke)if(he(ue),Re.jc){Ge=ue,Dt=N;var xt=Pe,dn=Re.pd[re(Ge)&Eo-1];t(Re.jc),256>dn.g?(le(Ge,Ge.u+dn.g),Dt[xt]=dn.value,Ge=0):(le(Ge,Ge.u+dn.g-256),t(256<=dn.value),Ge=dn.value),Ge==0&&(Ke=!0)}else Ge=Hn(Re.G[0],Re.H[0],ue);if(ue.h)break;if(Ke||256>Ge){if(!Ke)if(Re.nd)N[Pe]=(Re.qb|Ge<<8)>>>0;else{if(he(ue),Ke=Hn(Re.G[1],Re.H[1],ue),he(ue),Dt=Hn(Re.G[2],Re.H[2],ue),xt=Hn(Re.G[3],Re.H[3],ue),ue.h)break;N[Pe]=(xt<<24|Ke<<16|Ge<<8|Dt)>>>0}if(Ke=!1,++Pe,++se>=H&&(se=0,++ie,te!=null&&ie<=Z&&!(ie%16)&&te(S,ie),Oe!=null))for(;de<Pe;)Ge=N[de++],Oe.X[(506832829*Ge&4294967295)>>>Oe.Mb]=Ge}else if(280>Ge){if(Ge=kr(Ge-256,ue),Dt=Hn(Re.G[4],Re.H[4],ue),he(ue),Dt=Ui(H,Dt=kr(Dt,ue)),ue.h)break;if(Pe-D<Dt||G-Pe<Ge)break e;for(xt=0;xt<Ge;++xt)N[Pe+xt]=N[Pe+xt-Dt];for(Pe+=Ge,se+=Ge;se>=H;)se-=H,++ie,te!=null&&ie<=Z&&!(ie%16)&&te(S,ie);if(t(Pe<=G),se&Me&&(Re=Zr(xe,se,ie)),Oe!=null)for(;de<Pe;)Ge=N[de++],Oe.X[(506832829*Ge&4294967295)>>>Oe.Mb]=Ge}else{if(!(Ge<Te))break e;for(Ke=Ge-280,t(Oe!=null);de<Pe;)Ge=N[de++],Oe.X[(506832829*Ge&4294967295)>>>Oe.Mb]=Ge;Ge=Pe,t(!(Ke>>>(Dt=Oe).Xa)),N[Ge]=Dt.X[Ke],Ke=!0}Ke||t(ue.h==ce(ue))}if(S.Pb&&ue.h&&Pe<G)t(S.m.h),S.a=5,S.m=S.wd,S.$=S.xd,0<S.s.ua&&Le(S.s.vb,S.s.Wa);else{if(ue.h)break e;te!=null&&te(S,ie>Z?Z:ie),S.a=0,S.$=Pe-D}return 1}return S.a=3,0}function no(S){t(S!=null),S.vc=null,S.yc=null,S.Ya=null;var N=S.Wa;N!=null&&(N.X=null),S.vb=null,t(S!=null)}function iu(){var S=new nn;return S==null?null:(S.a=0,S.xb=Dd,yn("Predictor","VP8LPredictors"),yn("Predictor","VP8LPredictors_C"),yn("PredictorAdd","VP8LPredictorsAdd"),yn("PredictorAdd","VP8LPredictorsAdd_C"),Vr=at,_d=At,Id=Ln,vl=Gt,mc=Yt,gc=Vt,Cu=fn,L.VP8LMapColor32b=Fs,L.VP8LMapColor8b=Su,S)}function Wo(S,N,D,H,G){var Z=1,te=[S],ie=[N],se=H.m,ue=H.s,xe=null,Pe=0;e:for(;;){if(D)for(;Z&&X(se,1);){var de=te,Be=ie,Te=H,Qe=1,Oe=Te.m,Me=Te.gc[Te.ab],Re=X(Oe,2);if(Te.Oc&1<<Re)Z=0;else{switch(Te.Oc|=1<<Re,Me.hc=Re,Me.Ea=de[0],Me.nc=Be[0],Me.K=[null],++Te.ab,t(4>=Te.ab),Re){case 0:case 1:Me.b=X(Oe,3)+2,Qe=Wo(He(Me.Ea,Me.b),He(Me.nc,Me.b),0,Te,Me.K),Me.K=Me.K[0];break;case 3:var Ke,Ge=X(Oe,8)+1,Dt=16<Ge?0:4<Ge?1:2<Ge?2:3;if(de[0]=He(Me.Ea,Dt),Me.b=Dt,Ke=Qe=Wo(Ge,1,0,Te,Me.K)){var xt,dn=Ge,Nt=Me,Sn=1<<(8>>Nt.b),Dr=a(Sn);if(Dr==null)Ke=0;else{var hn=Nt.K[0],St=Nt.w;for(Dr[0]=Nt.K[0][0],xt=1;xt<1*dn;++xt)Dr[xt]=ht(hn[St+xt],Dr[xt-1]);for(;xt<4*Sn;++xt)Dr[xt]=0;Nt.K[0]=null,Nt.K[0]=Dr,Ke=1}}Qe=Ke;break;case 2:break;default:t(0)}Z=Qe}}if(te=te[0],ie=ie[0],Z&&X(se,1)&&!(Z=1<=(Pe=X(se,4))&&11>=Pe)){H.a=3;break e}var ct;if(ct=Z)t:{var Wr,tn,wn,cr=H,Ni=te,ii=ie,Nr=Pe,pi=D,Ti=cr.m,yr=cr.s,kn=[null],Mn=1,vr=0,Un=Bb[Nr];n:for(;;){if(pi&&X(Ti,1)){var Mr=X(Ti,3)+2,Ur=He(Ni,Mr),ir=He(ii,Mr),na=Ur*ir;if(!Wo(Ur,ir,0,cr,kn))break n;for(kn=kn[0],yr.xc=Mr,Wr=0;Wr<na;++Wr){var Yn=kn[Wr]>>8&65535;kn[Wr]=Yn,Yn>=Mn&&(Mn=Yn+1)}}if(Ti.h)break n;for(tn=0;5>tn;++tn){var ar=_u[tn];!tn&&0<Nr&&(ar+=1<<Nr),vr<ar&&(vr=ar)}var ai=o(Mn*Un,V),qi=Mn,Da=o(qi,W);if(Da==null)var Kr=null;else t(65536>=qi),Kr=Da;var Gr=a(vr);if(Kr==null||Gr==null||ai==null){cr.a=1;break n}var ra=ai;for(Wr=wn=0;Wr<Mn;++Wr){var or=Kr[Wr],ia=or.G,_o=or.H,ts=0,_i=1,Yr=0;for(tn=0;5>tn;++tn){ar=_u[tn],ia[tn]=ra,_o[tn]=wn,!tn&&0<Nr&&(ar+=1<<Nr);i:{var xc,Sl=ar,Rd=cr,Ms=Gr,Tb=ra,cy=wn,hr=0,ns=Rd.m,uy=X(ns,1);if(i(Ms,0,0,Sl),uy){var dy=X(ns,1)+1,hp=X(ns,1),pp=X(ns,hp==0?1:8);Ms[pp]=1,dy==2&&(Ms[pp=X(ns,8)]=1);var Us=1}else{var br=a(19),oi=X(ns,4)+4;if(19<oi){Rd.a=3;var Xr=0;break i}for(xc=0;xc<oi;++xc)br[QB[xc]]=X(ns,3);var Qd=void 0,Bl=void 0,Hd=Rd,WB=br,mi=Sl,mp=Ms,Bf=0,Rs=Hd.m,rs=8,uo=o(128,V);r:for(;M(uo,0,7,WB,19);){if(X(Rs,1)){var Cf=2+2*X(Rs,3);if((Qd=2+X(Rs,Cf))>mi)break r}else Qd=mi;for(Bl=0;Bl<mi&&Qd--;){he(Rs);var gp=uo[0+(127&re(Rs))];le(Rs,Rs.u+gp.g);var Sc=gp.value;if(16>Sc)mp[Bl++]=Sc,Sc!=0&&(rs=Sc);else{var _b=Sc==16,Ay=Sc-16,Ib=dp[Ay],fy=X(Rs,bf[Ay])+Ib;if(Bl+fy>mi)break r;for(var Pb=_b?rs:0;0<fy--;)mp[Bl++]=Pb}}Bf=1;break r}Bf||(Hd.a=3),Us=Bf}(Us=Us&&!ns.h)&&(hr=M(Tb,cy,8,Ms,Sl)),Us&&hr!=0?Xr=hr:(Rd.a=3,Xr=0)}if(Xr==0)break n;if(_i&&Sb[tn]==1&&(_i=ra[wn].g==0),ts+=ra[wn].g,wn+=Xr,3>=tn){var $d,yp=Gr[0];for($d=1;$d<ar;++$d)Gr[$d]>yp&&(yp=Gr[$d]);Yr+=yp}}if(or.nd=_i,or.Qb=0,_i&&(or.qb=(ia[3][_o[3]+0].value<<24|ia[1][_o[1]+0].value<<16|ia[2][_o[2]+0].value)>>>0,ts==0&&256>ia[0][_o[0]+0].value&&(or.Qb=1,or.qb+=ia[0][_o[0]+0].value<<8)),or.jc=!or.Qb&&6>Yr,or.jc){var kf,Ao=or;for(kf=0;kf<Eo;++kf){var Cl=kf,is=Ao.pd[Cl],Fu=Ao.G[0][Ao.H[0]+Cl];256<=Fu.value?(is.g=Fu.g+256,is.value=Fu.value):(is.g=0,is.value=0,Cl>>=qr(Fu,8,is),Cl>>=qr(Ao.G[1][Ao.H[1]+Cl],16,is),Cl>>=qr(Ao.G[2][Ao.H[2]+Cl],0,is),qr(Ao.G[3][Ao.H[3]+Cl],24,is))}}}yr.vc=kn,yr.Wb=Mn,yr.Ya=Kr,yr.yc=ai,ct=1;break t}ct=0}if(!(Z=ct)){H.a=3;break e}if(0<Pe){if(ue.ua=1<<Pe,!ae(ue.Wa,Pe)){H.a=1,Z=0;break e}}else ue.ua=0;var vp=H,bp=te,jb=ie,wp=vp.s,xp=wp.xc;if(vp.c=bp,vp.i=jb,wp.md=He(bp,xp),wp.wc=xp==0?-1:(1<<xp)-1,D){H.xb=Ds;break e}if((xe=a(te*ie))==null){H.a=1,Z=0;break e}Z=(Z=bo(H,xe,0,te,ie,ie,null))&&!se.h;break e}return Z?(G!=null?G[0]=xe:(t(xe==null),t(D)),H.$=0,D||no(ue)):no(ue),Z}function sc(S,N){var D=S.c*S.i,H=D+N+16*N;return t(S.c<=N),S.V=a(H),S.V==null?(S.Ta=null,S.Ua=0,S.a=1,0):(S.Ta=S.V,S.Ua=S.Ba+D+N,1)}function au(S,N){var D=S.C,H=N-D,G=S.V,Z=S.Ba+S.c*D;for(t(N<=S.l.o);0<H;){var te=16<H?16:H,ie=S.l.ma,se=S.l.width,ue=se*te,xe=ie.ca,Pe=ie.tb+se*D,de=S.Ta,Be=S.Ua;dl(S,te,G,Z),Jg(de,Be,xe,Pe,ue),ks(ie,D,D+te,xe,Pe,se),H-=te,G+=te*S.c,D+=te}t(D==N),S.C=S.Ma=N}function ou(){this.ub=this.yd=this.td=this.Rb=0}function md(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Wg(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function fr(){this.Yb=(function(){var S=[];return(function N(D,H,G){for(var Z=G[H],te=0;te<Z&&(D.push(G.length>H+1?[]:0),!(G.length<H+1));te++)N(D[te],H+1,G)})(S,0,[3,11]),S})()}function Zh(){this.jb=a(3),this.Wc=s([4,8],fr),this.Xc=s([4,17],fr)}function gd(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function ro(){this.ld=this.La=this.dd=this.tc=0}function lc(){this.Na=this.la=0}function ep(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function yd(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function su(){this.uc=this.M=this.Nb=0,this.wa=Array(new ro),this.Y=0,this.ya=Array(new yd),this.aa=0,this.l=new vd}function io(){this.y=a(16),this.f=a(8),this.ea=a(8)}function tp(){this.cb=this.a=0,this.sc="",this.m=new Q,this.Od=new ou,this.Kc=new md,this.ed=new gd,this.Qa=new Wg,this.Ic=this.$c=this.Aa=0,this.D=new su,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,Q),this.ia=0,this.pb=o(4,ep),this.Pa=new Zh,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new io),this.Hd=0,this.rb=Array(new lc),this.sb=0,this.wa=Array(new ro),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new yd),this.L=this.aa=0,this.gd=s([4,2],ro),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function ei(S,N){return 0>S?0:S>N?N:S}function vd(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Kg(){var S=new tp;return S!=null&&(S.a=0,S.sc="OK",S.cb=0,S.Xb=0,Iu||(Iu=Es)),S}function ti(S,N,D){return S.a==0&&(S.a=N,S.sc=D,S.cb=0),0}function lu(S,N,D){return 3<=D&&S[N+0]==157&&S[N+1]==1&&S[N+2]==42}function ao(S,N){if(S==null)return 0;if(S.a=0,S.sc="OK",N==null)return ti(S,2,"null VP8Io passed to VP8GetHeaders()");var D=N.data,H=N.w,G=N.ha;if(4>G)return ti(S,7,"Truncated header.");var Z=D[H+0]|D[H+1]<<8|D[H+2]<<16,te=S.Od;if(te.Rb=!(1&Z),te.td=Z>>1&7,te.yd=Z>>4&1,te.ub=Z>>5,3<te.td)return ti(S,3,"Incorrect keyframe parameters.");if(!te.yd)return ti(S,4,"Frame not displayable.");H+=3,G-=3;var ie=S.Kc;if(te.Rb){if(7>G)return ti(S,7,"cannot parse picture header");if(!lu(D,H,G))return ti(S,3,"Bad code word");ie.c=16383&(D[H+4]<<8|D[H+3]),ie.Td=D[H+4]>>6,ie.i=16383&(D[H+6]<<8|D[H+5]),ie.Ud=D[H+6]>>6,H+=7,G-=7,S.za=ie.c+15>>4,S.Ub=ie.i+15>>4,N.width=ie.c,N.height=ie.i,N.Da=0,N.j=0,N.v=0,N.va=N.width,N.o=N.height,N.da=0,N.ib=N.width,N.hb=N.height,N.U=N.width,N.T=N.height,i((Z=S.Pa).jb,0,255,Z.jb.length),t((Z=S.Qa)!=null),Z.Cb=0,Z.Bb=0,Z.Fb=1,i(Z.Zb,0,0,Z.Zb.length),i(Z.Lb,0,0,Z.Lb)}if(te.ub>G)return ti(S,7,"bad partition length");ee(Z=S.m,D,H,te.ub),H+=te.ub,G-=te.ub,te.Rb&&(ie.Ld=Ae(Z),ie.Kd=Ae(Z)),ie=S.Qa;var se,ue=S.Pa;if(t(Z!=null),t(ie!=null),ie.Cb=Ae(Z),ie.Cb){if(ie.Bb=Ae(Z),Ae(Z)){for(ie.Fb=Ae(Z),se=0;4>se;++se)ie.Zb[se]=Ae(Z)?K(Z,7):0;for(se=0;4>se;++se)ie.Lb[se]=Ae(Z)?K(Z,6):0}if(ie.Bb)for(se=0;3>se;++se)ue.jb[se]=Ae(Z)?ne(Z,8):255}else ie.Bb=0;if(Z.Ka)return ti(S,3,"cannot parse segment header");if((ie=S.ed).zd=Ae(Z),ie.Tb=ne(Z,6),ie.wb=ne(Z,3),ie.Pc=Ae(Z),ie.Pc&&Ae(Z)){for(ue=0;4>ue;++ue)Ae(Z)&&(ie.vd[ue]=K(Z,6));for(ue=0;4>ue;++ue)Ae(Z)&&(ie.od[ue]=K(Z,6))}if(S.L=ie.Tb==0?0:ie.zd?1:2,Z.Ka)return ti(S,3,"cannot parse filter header");var xe=G;if(G=se=H,H=se+xe,ie=xe,S.Xb=(1<<ne(S.m,2))-1,xe<3*(ue=S.Xb))D=7;else{for(se+=3*ue,ie-=3*ue,xe=0;xe<ue;++xe){var Pe=D[G+0]|D[G+1]<<8|D[G+2]<<16;Pe>ie&&(Pe=ie),ee(S.Jc[+xe],D,se,Pe),se+=Pe,ie-=Pe,G+=3}ee(S.Jc[+ue],D,se,ie),D=se<H?0:5}if(D!=0)return ti(S,D,"cannot parse partitions");for(D=ne(se=S.m,7),G=Ae(se)?K(se,4):0,H=Ae(se)?K(se,4):0,ie=Ae(se)?K(se,4):0,ue=Ae(se)?K(se,4):0,se=Ae(se)?K(se,4):0,xe=S.Qa,Pe=0;4>Pe;++Pe){if(xe.Cb){var de=xe.Zb[Pe];xe.Fb||(de+=D)}else{if(0<Pe){S.pb[Pe]=S.pb[0];continue}de=D}var Be=S.pb[Pe];Be.Sc[0]=Ld[ei(de+G,127)],Be.Sc[1]=wf[ei(de+0,127)],Be.Eb[0]=2*Ld[ei(de+H,127)],Be.Eb[1]=101581*wf[ei(de+ie,127)]>>16,8>Be.Eb[1]&&(Be.Eb[1]=8),Be.Qc[0]=Ld[ei(de+ue,117)],Be.Qc[1]=wf[ei(de+se,127)],Be.lc=de+se}if(!te.Rb)return ti(S,4,"Not a key frame.");for(Ae(Z),te=S.Pa,D=0;4>D;++D){for(G=0;8>G;++G)for(H=0;3>H;++H)for(ie=0;11>ie;++ie)ue=be(Z,qB[D][G][H][ie])?ne(Z,8):kb[D][G][H][ie],te.Wc[D][G].Yb[H][ie]=ue;for(G=0;17>G;++G)te.Xc[D][G]=te.Wc[D][oy[G]]}return S.kc=Ae(Z),S.kc&&(S.Bd=ne(Z,8)),S.cb=1}function Es(S,N,D,H,G,Z,te){var ie=N[G].Yb[D];for(D=0;16>G;++G){if(!be(S,ie[D+0]))return G;for(;!be(S,ie[D+1]);)if(ie=N[++G].Yb[0],D=0,G==16)return 16;var se=N[G+1].Yb;if(be(S,ie[D+2])){var ue=S,xe=0;if(be(ue,(de=ie)[(Pe=D)+3]))if(be(ue,de[Pe+6])){for(ie=0,Pe=2*(xe=be(ue,de[Pe+8]))+(de=be(ue,de[Pe+9+xe])),xe=0,de=iy[Pe];de[ie];++ie)xe+=xe+be(ue,de[ie]);xe+=3+(8<<Pe)}else be(ue,de[Pe+7])?(xe=7+2*be(ue,165),xe+=be(ue,145)):xe=5+be(ue,159);else xe=be(ue,de[Pe+4])?3+be(ue,de[Pe+5]):2;ie=se[2]}else xe=1,ie=se[1];se=te+ay[G],0>(ue=S).b&&ye(ue);var Pe,de=ue.b,Be=(Pe=ue.Ca>>1)-(ue.I>>de)>>31;--ue.b,ue.Ca+=Be,ue.Ca|=1,ue.I-=(Pe+1&Be)<<de,Z[se]=((xe^Be)-Be)*H[(0<G)+0]}return 16}function cu(S){var N=S.rb[S.sb-1];N.la=0,N.Na=0,i(S.zc,0,0,S.zc.length),S.ja=0}function wo(S,N,D,H,G){G=S[N+D+32*H]+(G>>3),S[N+D+32*H]=-256&G?0>G?0:255:G}function fi(S,N,D,H,G,Z){wo(S,N,0,D,H+G),wo(S,N,1,D,H+Z),wo(S,N,2,D,H-Z),wo(S,N,3,D,H-G)}function Ko(S){return(20091*S>>16)+S}function rf(S,N,D,H){var G,Z=0,te=a(16);for(G=0;4>G;++G){var ie=S[N+0]+S[N+8],se=S[N+0]-S[N+8],ue=(35468*S[N+4]>>16)-Ko(S[N+12]),xe=Ko(S[N+4])+(35468*S[N+12]>>16);te[Z+0]=ie+xe,te[Z+1]=se+ue,te[Z+2]=se-ue,te[Z+3]=ie-xe,Z+=4,N++}for(G=Z=0;4>G;++G)ie=(S=te[Z+0]+4)+te[Z+8],se=S-te[Z+8],ue=(35468*te[Z+4]>>16)-Ko(te[Z+12]),wo(D,H,0,0,ie+(xe=Ko(te[Z+4])+(35468*te[Z+12]>>16))),wo(D,H,1,0,se+ue),wo(D,H,2,0,se-ue),wo(D,H,3,0,ie-xe),Z++,H+=32}function af(S,N,D,H){var G=S[N+0]+4,Z=35468*S[N+4]>>16,te=Ko(S[N+4]),ie=35468*S[N+1]>>16;fi(D,H,0,G+te,S=Ko(S[N+1]),ie),fi(D,H,1,G+Z,S,ie),fi(D,H,2,G-Z,S,ie),fi(D,H,3,G-te,S,ie)}function uu(S,N,D,H,G){rf(S,N,D,H),G&&rf(S,N+16,D,H+4)}function Ns(S,N,D,H){ku(S,N+0,D,H,1),ku(S,N+32,D,H+128,1)}function bd(S,N,D,H){var G;for(S=S[N+0]+4,G=0;4>G;++G)for(N=0;4>N;++N)wo(D,H,N,G,S)}function On(S,N,D,H){S[N+0]&&Dn(S,N+0,D,H),S[N+16]&&Dn(S,N+16,D,H+4),S[N+32]&&Dn(S,N+32,D,H+128),S[N+48]&&Dn(S,N+48,D,H+128+4)}function du(S,N,D,H){var G,Z=a(16);for(G=0;4>G;++G){var te=S[N+0+G]+S[N+12+G],ie=S[N+4+G]+S[N+8+G],se=S[N+4+G]-S[N+8+G],ue=S[N+0+G]-S[N+12+G];Z[0+G]=te+ie,Z[8+G]=te-ie,Z[4+G]=ue+se,Z[12+G]=ue-se}for(G=0;4>G;++G)te=(S=Z[0+4*G]+3)+Z[3+4*G],ie=Z[1+4*G]+Z[2+4*G],se=Z[1+4*G]-Z[2+4*G],ue=S-Z[3+4*G],D[H+0]=te+ie>>3,D[H+16]=ue+se>>3,D[H+32]=te-ie>>3,D[H+48]=ue-se>>3,H+=64}function cc(S,N,D){var H,G=N-32,Z=pa,te=255-S[G-1];for(H=0;H<D;++H){var ie,se=Z,ue=te+S[N-1];for(ie=0;ie<D;++ie)S[N+ie]=se[ue+S[G+ie]];N+=32}}function of(S,N){cc(S,N,4)}function np(S,N){cc(S,N,8)}function rp(S,N){cc(S,N,16)}function wd(S,N){var D;for(D=0;16>D;++D)r(S,N+32*D,S,N-32,16)}function xd(S,N){var D;for(D=16;0<D;--D)i(S,N,S[N-1],16),N+=32}function Ta(S,N,D){var H;for(H=0;16>H;++H)i(N,D+32*H,S,16)}function Ts(S,N){var D,H=16;for(D=0;16>D;++D)H+=S[N-1+32*D]+S[N+D-32];Ta(H>>5,S,N)}function _a(S,N){var D,H=8;for(D=0;16>D;++D)H+=S[N-1+32*D];Ta(H>>4,S,N)}function xo(S,N){var D,H=8;for(D=0;16>D;++D)H+=S[N+D-32];Ta(H>>4,S,N)}function Au(S,N){Ta(128,S,N)}function Xt(S,N,D){return S+2*N+D+2>>2}function _s(S,N){var D,H=N-32;for(H=new Uint8Array([Xt(S[H-1],S[H+0],S[H+1]),Xt(S[H+0],S[H+1],S[H+2]),Xt(S[H+1],S[H+2],S[H+3]),Xt(S[H+2],S[H+3],S[H+4])]),D=0;4>D;++D)r(S,N+32*D,H,0,H.length)}function Gg(S,N){var D=S[N-1],H=S[N-1+32],G=S[N-1+64],Z=S[N-1+96];
vendor: 4,313 bytes, line 1542
1542Ee(S,N+0,16843009*Xt(S[N-1-32],D,H)),Ee(S,N+32,16843009*Xt(D,H,G)),Ee(S,N+64,16843009*Xt(H,G,Z)),Ee(S,N+96,16843009*Xt(G,Z,Z))}function ip(S,N){var D,H=4;for(D=0;4>D;++D)H+=S[N+D-32]+S[N-1+32*D];for(H>>=3,D=0;4>D;++D)i(S,N+32*D,H,4)}function oo(S,N){var D=S[N-1+0],H=S[N-1+32],G=S[N-1+64],Z=S[N-1-32],te=S[N+0-32],ie=S[N+1-32],se=S[N+2-32],ue=S[N+3-32];S[N+0+96]=Xt(H,G,S[N-1+96]),S[N+1+96]=S[N+0+64]=Xt(D,H,G),S[N+2+96]=S[N+1+64]=S[N+0+32]=Xt(Z,D,H),S[N+3+96]=S[N+2+64]=S[N+1+32]=S[N+0+0]=Xt(te,Z,D),S[N+3+64]=S[N+2+32]=S[N+1+0]=Xt(ie,te,Z),S[N+3+32]=S[N+2+0]=Xt(se,ie,te),S[N+3+0]=Xt(ue,se,ie)}function Al(S,N){var D=S[N+1-32],H=S[N+2-32],G=S[N+3-32],Z=S[N+4-32],te=S[N+5-32],ie=S[N+6-32],se=S[N+7-32];S[N+0+0]=Xt(S[N+0-32],D,H),S[N+1+0]=S[N+0+32]=Xt(D,H,G),S[N+2+0]=S[N+1+32]=S[N+0+64]=Xt(H,G,Z),S[N+3+0]=S[N+2+32]=S[N+1+64]=S[N+0+96]=Xt(G,Z,te),S[N+3+32]=S[N+2+64]=S[N+1+96]=Xt(Z,te,ie),S[N+3+64]=S[N+2+96]=Xt(te,ie,se),S[N+3+96]=Xt(ie,se,se)}function ap(S,N){var D=S[N-1+0],H=S[N-1+32],G=S[N-1+64],Z=S[N-1-32],te=S[N+0-32],ie=S[N+1-32],se=S[N+2-32],ue=S[N+3-32];S[N+0+0]=S[N+1+64]=Z+te+1>>1,S[N+1+0]=S[N+2+64]=te+ie+1>>1,S[N+2+0]=S[N+3+64]=ie+se+1>>1,S[N+3+0]=se+ue+1>>1,S[N+0+96]=Xt(G,H,D),S[N+0+64]=Xt(H,D,Z),S[N+0+32]=S[N+1+96]=Xt(D,Z,te),S[N+1+32]=S[N+2+96]=Xt(Z,te,ie),S[N+2+32]=S[N+3+96]=Xt(te,ie,se),S[N+3+32]=Xt(ie,se,ue)}function Sd(S,N){var D=S[N+0-32],H=S[N+1-32],G=S[N+2-32],Z=S[N+3-32],te=S[N+4-32],ie=S[N+5-32],se=S[N+6-32],ue=S[N+7-32];S[N+0+0]=D+H+1>>1,S[N+1+0]=S[N+0+64]=H+G+1>>1,S[N+2+0]=S[N+1+64]=G+Z+1>>1,S[N+3+0]=S[N+2+64]=Z+te+1>>1,S[N+0+32]=Xt(D,H,G),S[N+1+32]=S[N+0+96]=Xt(H,G,Z),S[N+2+32]=S[N+1+96]=Xt(G,Z,te),S[N+3+32]=S[N+2+96]=Xt(Z,te,ie),S[N+3+64]=Xt(te,ie,se),S[N+3+96]=Xt(ie,se,ue)}function fu(S,N){var D=S[N-1+0],H=S[N-1+32],G=S[N-1+64],Z=S[N-1+96];S[N+0+0]=D+H+1>>1,S[N+2+0]=S[N+0+32]=H+G+1>>1,S[N+2+32]=S[N+0+64]=G+Z+1>>1,S[N+1+0]=Xt(D,H,G),S[N+3+0]=S[N+1+32]=Xt(H,G,Z),S[N+3+32]=S[N+1+64]=Xt(G,Z,Z),S[N+3+64]=S[N+2+64]=S[N+0+96]=S[N+1+96]=S[N+2+96]=S[N+3+96]=Z}function sf(S,N){var D=S[N-1+0],H=S[N-1+32],G=S[N-1+64],Z=S[N-1+96],te=S[N-1-32],ie=S[N+0-32],se=S[N+1-32],ue=S[N+2-32];S[N+0+0]=S[N+2+32]=D+te+1>>1,S[N+0+32]=S[N+2+64]=H+D+1>>1,S[N+0+64]=S[N+2+96]=G+H+1>>1,S[N+0+96]=Z+G+1>>1,S[N+3+0]=Xt(ie,se,ue),S[N+2+0]=Xt(te,ie,se),S[N+1+0]=S[N+3+32]=Xt(D,te,ie),S[N+1+32]=S[N+3+64]=Xt(H,D,te),S[N+1+64]=S[N+3+96]=Xt(G,H,D),S[N+1+96]=Xt(Z,G,H)}function Go(S,N){var D;for(D=0;8>D;++D)r(S,N+32*D,S,N-32,8)}function hu(S,N){var D;for(D=0;8>D;++D)i(S,N,S[N-1],8),N+=32}function Ia(S,N,D){var H;for(H=0;8>H;++H)i(N,D+32*H,S,8)}function Bd(S,N){var D,H=8;for(D=0;8>D;++D)H+=S[N+D-32]+S[N-1+32*D];Ia(H>>4,S,N)}function lf(S,N){var D,H=4;for(D=0;8>D;++D)H+=S[N+D-32];Ia(H>>3,S,N)}function cf(S,N){var D,H=4;for(D=0;8>D;++D)H+=S[N-1+32*D];Ia(H>>3,S,N)}function Cd(S,N){Ia(128,S,N)}function So(S,N,D){var H=S[N-D],G=S[N+0],Z=3*(G-H)+Ls[1020+S[N-2*D]-S[N+D]],te=Od[112+(Z+4>>3)];S[N-D]=pa[255+H+Od[112+(Z+3>>3)]],S[N+0]=pa[255+G-te]}function pu(S,N,D,H){var G=S[N+0],Z=S[N+D];return No[255+S[N-2*D]-S[N-D]]>H||No[255+Z-G]>H}function mu(S,N,D,H){return 4*No[255+S[N-D]-S[N+0]]+No[255+S[N-2*D]-S[N+D]]<=H}function Bo(S,N,D,H,G){var Z=S[N-3*D],te=S[N-2*D],ie=S[N-D],se=S[N+0],ue=S[N+D],xe=S[N+2*D],Pe=S[N+3*D];return 4*No[255+ie-se]+No[255+te-ue]>H?0:No[255+S[N-4*D]-Z]<=G&&No[255+Z-te]<=G&&No[255+te-ie]<=G&&No[255+Pe-xe]<=G&&No[255+xe-ue]<=G&&No[255+ue-se]<=G}function fl(S,N,D,H){var G=2*H+1;for(H=0;16>H;++H)mu(S,N+H,D,G)&&So(S,N+H,D)}function uc(S,N,D,H){var G=2*H+1;for(H=0;16>H;++H)mu(S,N+H*D,1,G)&&So(S,N+H*D,1)}function uf(S,N,D,H){var G;for(G=3;0<G;--G)fl(S,N+=4*D,D,H)}function gu(S,N,D,H){var G;for(G=3;0<G;--G)uc(S,N+=4,D,H)}function Co(S,N,D,H,G,Z,te,ie){for(Z=2*Z+1;0<G--;){if(Bo(S,N,D,Z,te))if(pu(S,N,D,ie))So(S,N,D);else{var se=S,ue=N,xe=D,Pe=se[ue-2*xe],de=se[ue-xe],Be=se[ue+0],Te=se[ue+xe],Qe=se[ue+2*xe],Oe=27*(Re=Ls[1020+3*(Be-de)+Ls[1020+Pe-Te]])+63>>7,Me=18*Re+63>>7,Re=9*Re+63>>7;se[ue-3*xe]=pa[255+se[ue-3*xe]+Re],se[ue-2*xe]=pa[255+Pe+Me],se[ue-xe]=pa[255+de+Oe],se[ue+0]=pa[255+Be-Oe],se[ue+xe]=pa[255+Te-Me],se[ue+2*xe]=pa[255+Qe-Re]}N+=H}}function Is(S,N,D,H,G,Z,te,ie){for(Z=2*Z+1;0<G--;){if(Bo(S,N,D,Z,te))if(pu(S,N,D,ie))So(S,N,D);else{var se=S,ue=N,xe=D,Pe=se[ue-xe],de=se[ue+0],Be=se[ue+xe],Te=Od[112+(4+(Qe=3*(de-Pe))>>3)],Qe=Od[112+(Qe+3>>3)],Oe=Te+1>
vendor: 15,035 bytes, line 1542
1542>1;se[ue-2*xe]=pa[255+se[ue-2*xe]+Oe],se[ue-xe]=pa[255+Pe+Qe],se[ue+0]=pa[255+de-Te],se[ue+xe]=pa[255+Be-Oe]}N+=H}}function ea(S,N,D,H,G,Z){Co(S,N,D,1,16,H,G,Z)}function ko(S,N,D,H,G,Z){Co(S,N,1,D,16,H,G,Z)}function kd(S,N,D,H,G,Z){var te;for(te=3;0<te;--te)Is(S,N+=4*D,D,1,16,H,G,Z)}function I(S,N,D,H,G,Z){var te;for(te=3;0<te;--te)Is(S,N+=4,1,D,16,H,G,Z)}function Y(S,N,D,H,G,Z,te,ie){Co(S,N,G,1,8,Z,te,ie),Co(D,H,G,1,8,Z,te,ie)}function fe(S,N,D,H,G,Z,te,ie){Co(S,N,1,G,8,Z,te,ie),Co(D,H,1,G,8,Z,te,ie)}function we(S,N,D,H,G,Z,te,ie){Is(S,N+4*G,G,1,8,Z,te,ie),Is(D,H+4*G,G,1,8,Z,te,ie)}function Ne(S,N,D,H,G,Z,te,ie){Is(S,N+4,1,G,8,Z,te,ie),Is(D,H+4,1,G,8,Z,te,ie)}function $e(){this.ba=new rn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Nn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Xe(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Et(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Lt(){this.ua=0,this.Wa=new st,this.vb=new st,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new W,this.yc=new V}function nn(){this.xb=this.a=0,this.l=new vd,this.ca=new rn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new R,this.Pb=0,this.wd=new R,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Lt,this.ab=0,this.gc=o(4,Et),this.Oc=0}function ln(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new vd,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function In(S,N,D,H,G,Z,te){for(S=S==null?0:S[N+0],N=0;N<te;++N)G[Z+N]=S+D[H+N]&255,S=G[Z+N]}function Er(S,N,D,H,G,Z,te){var ie;if(S==null)In(null,null,D,H,G,Z,te);else for(ie=0;ie<te;++ie)G[Z+ie]=S[N+ie]+D[H+ie]&255}function ni(S,N,D,H,G,Z,te){if(S==null)In(null,null,D,H,G,Z,te);else{var ie,se=S[N+0],ue=se,xe=se;for(ie=0;ie<te;++ie)ue=xe+(se=S[N+ie])-ue,xe=D[H+ie]+(-256&ue?0>ue?0:255:ue)&255,ue=se,G[Z+ie]=xe}}function lr(S,N,D,H){var G=N.width,Z=N.o;if(t(S!=null&&N!=null),0>D||0>=H||D+H>Z)return null;if(!S.Cc){if(S.ga==null){var te;if(S.ga=new ln,(te=S.ga==null)||(te=N.width*N.o,t(S.Gb.length==0),S.Gb=a(te),S.Uc=0,S.Gb==null?te=0:(S.mb=S.Gb,S.nb=S.Uc,S.rc=null,te=1),te=!te),!te){te=S.ga;var ie=S.Fa,se=S.P,ue=S.qc,xe=S.mb,Pe=S.nb,de=se+1,Be=ue-1,Te=te.l;if(t(ie!=null&&xe!=null&&N!=null),ta[0]=null,ta[1]=In,ta[2]=Er,ta[3]=ni,te.ca=xe,te.tb=Pe,te.c=N.width,te.i=N.height,t(0<te.c&&0<te.i),1>=ue)N=0;else if(te.$a=3&ie[se+0],te.Z=ie[se+0]>>2&3,te.Lc=ie[se+0]>>4&3,se=ie[se+0]>>6&3,0>te.$a||1<te.$a||4<=te.Z||1<te.Lc||se)N=0;else if(Te.put=Tt,Te.ac=vt,Te.bc=jr,Te.ma=te,Te.width=N.width,Te.height=N.height,Te.Da=N.Da,Te.v=N.v,Te.va=N.va,Te.j=N.j,Te.o=N.o,te.$a)e:{t(te.$a==1),N=iu();t:for(;;){if(N==null){N=0;break e}if(t(te!=null),te.mc=N,N.c=te.c,N.i=te.i,N.l=te.l,N.l.ma=te,N.l.width=te.c,N.l.height=te.i,N.a=0,oe(N.m,ie,de,Be),!Wo(te.c,te.i,1,N,null)||(N.ab==1&&N.gc[0].hc==3&&Vo(N.s)?(te.ic=1,ie=N.c*N.i,N.Ta=null,N.Ua=0,N.V=a(ie),N.Ba=0,N.V==null?(N.a=1,N=0):N=1):(te.ic=0,N=sc(N,te.c)),!N))break t;N=1;break e}te.mc=null,N=0}else N=Be>=te.c*te.i;te=!N}if(te)return null;S.ga.Lc!=1?S.Ga=0:H=Z-D}t(S.ga!=null),t(D+H<=Z);e:{if(N=(ie=S.ga).c,Z=ie.l.o,ie.$a==0){if(de=S.rc,Be=S.Vc,Te=S.Fa,se=S.P+1+D*N,ue=S.mb,xe=S.nb+D*N,t(se<=S.P+S.qc),ie.Z!=0)for(t(ta[ie.Z]!=null),te=0;te<H;++te)ta[ie.Z](de,Be,Te,se,ue,xe,N),de=ue,Be=xe,xe+=N,se+=N;else for(te=0;te<H;++te)r(ue,xe,Te,se,N),de=ue,Be=xe,xe+=N,se+=N;S.rc=de,S.Vc=Be}else{if(t(ie.mc!=null),N=D+H,t((te=ie.mc)!=null),t(N<=te.i),te.C>=N)N=1;else if(ie.ic||Yo(),ie.ic){ie=te.V,de=te.Ba,Be=te.c;var Qe=te.i,Oe=(Te=1,se=te.$/Be,ue=te.$%Be,xe=te.m,Pe=te.s,te.$),Me=Be*Qe,Re=Be*N,Ke=Pe.wc,Ge=Oe<Re?Zr(Pe,ue,se):null;t(Oe<=Me),t(N<=Qe),t(Vo(Pe));t:for(;;){for(;!xe.h&&Oe<Re;){if(ue&Ke||(Ge=Zr(Pe,ue,se)),t(Ge!=null),he(xe),256>(Qe=Hn(Ge.G[0],Ge.H[0],xe)))ie[de+Oe]=Qe,++Oe,++ue>=Be&&(ue=0,++se<=N&&!(se%16)&&Ri(te,se));else{if(!(280>Qe)){Te=0;break t}Qe=kr(Qe-256,xe);var Dt,xt=Hn(Ge.G[4],Ge.H[4],xe);if(he(xe),!(Oe>=(xt=Ui(Be,xt=kr(xt,xe)))&&Me-Oe>=Qe)){Te=0;break t}for(Dt=0;Dt<Qe;++Dt)ie[de+Oe+Dt]=ie[de+Oe+Dt-xt];for(Oe+=Qe,ue+=Qe;ue>=Be;)ue-=Be,++se<=N&&!(se%16)&&Ri(te,se);Oe<Re&&ue&Ke&&(Ge=Zr(Pe,ue,se))}t(xe.h==ce(xe))}Ri(te,se>N?N:se);break t}!Te||xe.h&&Oe<Me?(Te=0,te.a=xe.h?5:3):te.$=Oe,N=Te}else N=bo(te,te.V,te.Ba,te.c,te.i,N,au);if(!N){H=0;break e}}D+H>=Z&&(S.Cc=1),H=1}if(!H)return null;if(S.Cc&&((H=S.ga)!=null&&(H.mc=null),S.ga=null,0<S.Ga))return alert("todo:WebPDequantizeLevels"),null}return S.nb+D*G}function hi(S,N,D,H,G,Z){for(;0<G--;){var te,ie=S,se=N+(D?1:0),ue=S,xe=N+(D?0:3);for(te=0;te<H;++te){var Pe=ue[xe+4*te];Pe!=255&&(Pe*=32897,ie[se+4*te+0]=ie[se+4*te+0]*Pe>>23,ie[se+4*te+1]=ie[se+4*te+1]*Pe>>23,ie[se+4*te+2]=ie[se+4*te+2]*Pe>>23)}N+=Z}}function zr(S,N,D,H,G){for(;0<H--;){var Z;for(Z=0;Z<D;++Z){var te=S[N+2*Z+0],ie=15&(ue=S[N+2*Z+1]),se=4369*ie,ue=(240&ue|ue>>4)*se>>16;S[N+2*Z+0]=(240&te|te>>4)*se>>16&240|(15&te|te<<4)*se>>16>>4&15,S[N+2*Z+1]=240&ue|ie}N+=G}}function Qi(S,N,D,H,G,Z,te,ie){var se,ue,xe=255;for(ue=0;ue<G;++ue){for(se=0;se<H;++se){var Pe=S[N+se];Z[te+4*se]=Pe,xe&=Pe}N+=D,te+=ie}return xe!=255}function hl(S,N,D,H,G){var Z;for(Z=0;Z<G;++Z)D[H+Z]=S[N+Z]>>8}function Yo(){Nu=hi,Xg=zr,pf=Qi,Jg=hl}function pl(S,N,D){L[S]=function(H,G,Z,te,ie,se,ue,xe,Pe,de,Be,Te,Qe,Oe,Me,Re,Ke){var Ge,Dt=Ke-1>>1,xt=ie[se+0]|ue[xe+0]<<16,dn=Pe[de+0]|Be[Te+0]<<16;t(H!=null);var Nt=3*xt+dn+131074>>2;for(N(H[G+0],255&Nt,Nt>>16,Qe,Oe),Z!=null&&(Nt=3*dn+xt+131074>>2,N(Z[te+0],255&Nt,Nt>>16,Me,Re)),Ge=1;Ge<=Dt;++Ge){var Sn=ie[se+Ge]|ue[xe+Ge]<<16,Dr=Pe[de+Ge]|Be[Te+Ge]<<16,hn=xt+Sn+dn+Dr+524296,St=hn+2*(Sn+dn)>>3;Nt=St+xt>>1,xt=(hn=hn+2*(xt+Dr)>>3)+Sn>>1,N(H[G+2*Ge-1],255&Nt,Nt>>16,Qe,Oe+(2*Ge-1)*D),N(H[G+2*Ge-0],255&xt,xt>>16,Qe,Oe+(2*Ge-0)*D),Z!=null&&(Nt=hn+dn>>1,xt=St+Dr>>1,N(Z[te+2*Ge-1],255&Nt,Nt>>16,Me,Re+(2*Ge-1)*D),N(Z[te+2*Ge+0],255&xt,xt>>16,Me,Re+(2*Ge+0)*D)),xt=Sn,dn=Dr}1&Ke||(Nt=3*xt+dn+131074>>2,N(H[G+Ke-1],255&Nt,Nt>>16,Qe,Oe+(Ke-1)*D),Z!=null&&(Nt=3*dn+xt+131074>>2,N(Z[te+Ke-1],255&Nt,Nt>>16,Me,Re+(Ke-1)*D)))}}function yu(){Oa[cp]=zB,Oa[vc]=bc,Oa[xb]=VB,Oa[mf]=Md,Oa[gf]=Pu,Oa[rr]=xf,Oa[up]=sy,Oa[Fd]=bc,Oa[Tu]=Md,Oa[yf]=Pu,Oa[vf]=xf}function Ed(S){return S&-16384?0>S?0:255:S>>wc}function dc(S,N){return Ed((19077*S>>8)+(26149*N>>8)-14234)}function vu(S,N,D){return Ed((19077*S>>8)-(6419*N>>8)-(13320*D>>8)+8708)}function Ac(S,N){return Ed((19077*S>>8)+(33050*N>>8)-17685)}function fc(S,N,D,H,G){H[G+0]=dc(S,D),H[G+1]=vu(S,N,D),H[G+2]=Ac(S,N)}function Hi(S,N,D,H,G){H[G+0]=Ac(S,N),H[G+1]=vu(S,N,D),H[G+2]=dc(S,D)}function bu(S,N,D,H,G){var Z=vu(S,N,D);N=Z<<3&224|Ac(S,N)>>3,H[G+0]=248&dc(S,D)|Z>>5,H[G+1]=N}function wu(S,N,D,H,G){var Z=240&Ac(S,N)|15;H[G+0]=240&dc(S,D)|vu(S,N,D)>>4,H[G+1]=Z}function df(S,N,D,H,G){H[G+0]=255,fc(S,N,D,H,G+1)}function Af(S,N,D,H,G){Hi(S,N,D,H,G),H[G+3]=255}function ha(S,N,D,H,G){fc(S,N,D,H,G),H[G+3]=255}function Xo(S,N,D){L[S]=function(H,G,Z,te,ie,se,ue,xe,Pe){for(var de=xe+(-2&Pe)*D;xe!=de;)N(H[G+0],Z[te+0],ie[se+0],ue,xe),N(H[G+1],Z[te+0],ie[se+0],ue,xe+D),G+=2,++te,++se,xe+=2*D;1&Pe&&N(H[G+0],Z[te+0],ie[se+0],ue,xe)}}function Ps(S,N,D){return D==0?S==0?N==0?6:5:N==0?4:0:D}function op(S,N,D,H,G){switch(S>>>30){case 3:ku(N,D,H,G,0);break;case 2:Fr(N,D,H,G);break;case 1:Dn(N,D,H,G)}}function so(S,N){var D,H,G=N.M,Z=N.Nb,te=S.oc,ie=S.pc+40,se=S.oc,ue=S.pc+584,xe=S.oc,Pe=S.pc+600;for(D=0;16>D;++D)te[ie+32*D-1]=129;for(D=0;8>D;++D)se[ue+32*D-1]=129,xe[Pe+32*D-1]=129;for(0<G?te[ie-1-32]=se[ue-1-32]=xe[Pe-1-32]=129:(i(te,ie-32-1,127,21),i(se,ue-32-1,127,9),i(xe,Pe-32-1,127,9)),H=0;H<S.za;++H){var de=N.ya[N.aa+H];if(0<H){for(D=-1;16>D;++D)r(te,ie+32*D-4,te,ie+32*D+12,4);for(D=-1;8>D;++D)r(se,ue+32*D-4,se,ue+32*D+4,4),r(xe,Pe+32*D-4,xe,Pe+32*D+4,4)}var Be=S.Gd,Te=S.Hd+H,Qe=de.ad,Oe=de.Hc;if(0<G&&(r(te,ie-32,Be[Te].y,0,16),r(se,ue-32,Be[Te].f,0,8),r(xe,Pe-32,Be[Te].ea,0,8)),de.Za){var Me=te,Re=ie-32+16;for(0<G&&(H>=S.za-1?i(Me,Re,Be[Te].y[15],4):r(Me,Re,Be[Te+1].y,0,4)),D=0;4>D;D++)Me[Re+128+D]=Me[Re+256+D]=Me[Re+384+D]=Me[Re+0+D];for(D=0;16>D;++D,Oe<<=2)Me=te,Re=ie+ly[D],To[de.Ob[D]](Me,Re),op(Oe,Qe,16*+D,Me,Re)}else if(Me=Ps(H,G,de.Ob[0]),ma[Me](te,ie),Oe!=0)for(D=0;16>D;++D,Oe<<=2)op(Oe,Qe,16*+D,te,ie+ly[D]);for(D=de.Gc,Me=Ps(H,G,de.Dd),ja[Me](se,ue),ja[Me](xe,Pe),Oe=Qe,Me=se,Re=ue,255&(de=0|D)&&(170&de?Pa(Oe,256,Me,Re):Kn(Oe,256,Me,Re)),de=xe,Oe=Pe,255&(D>>=8)&&(170&D?Pa(Qe,320,de,Oe):Kn(Qe,320,de,Oe)),G<S.Ub-1&&(r(Be[Te].y,0,te,ie+480,16),r(Be[Te].f,0,se,ue+224,8),r(Be[Te].ea,0,xe,Pe+224,8)),D=8*Z*S.B,Be=S.sa,Te=S.ta+16*H+16*Z*S.R,Qe=S.qa,de=S.ra+8*H+D,Oe=S.Ha,Me=S.Ia+8*H+D,D=0;16>D;++D)r(Be,Te+D*S.R,te,ie+32*D,16);for(D=0;8>D;++D)r(Qe,de+D*S.B,se,ue+32*D,8),r(Oe,Me+D*S.B,xe,Pe+32*D,8)}}function hc(S,N,D,H,G,Z,te,ie,se){var ue=[0],xe=[0],Pe=0,de=se!=null?se.kd:0,Be=se??new Xe;if(S==null||12>D)return 7;Be.data=S,Be.w=N,Be.ha=D,N=[N],D=[D],Be.gb=[Be.gb];e:{var Te=N,Qe=D,Oe=Be.gb;if(t(S!=null),t(Qe!=null),t(Oe!=null),Oe[0]=0,12<=Qe[0]&&!n(S,Te[0],"RIFF")){if(n(S,Te[0]+8,"WEBP")){Oe=3;break e}var Me=Ye(S,Te[0]+4);if(12>Me||4294967286<Me){Oe=3;break e}if(de&&Me>Qe[0]-8){Oe=7;break e}Oe[0]=Me,Te[0]+=12,Qe[0]-=12}Oe=0}if(Oe!=0)return Oe;for(Me=0<Be.gb[0],D=D[0];;){e:{var Re=S;Qe=N,Oe=D;var Ke=ue,Ge=xe,Dt=Te=[0];if((Nt=Pe=[Pe])[0]=0,8>Oe[0])Oe=7;else{if(!n(Re,Qe[0],"VP8X")){if(Ye(Re,Qe[0]+4)!=10){Oe=3;break e}if(18>Oe[0]){Oe=7;break e}var xt=Ye(Re,Qe[0]+8),dn=1+Ue(Re,Qe[0]+12);if(2147483648<=dn*(Re=1+Ue(Re,Qe[0]+15))){Oe=3;break e}Dt!=null&&(Dt[0]=xt),Ke!=null&&(Ke[0]=dn),Ge!=null&&(Ge[0]=Re),Qe[0]+=18,Oe[0]-=18,Nt[0]=1}Oe=0}}if(Pe=Pe[0],Te=Te[0],Oe!=0)return Oe;if(Qe=!!(2&Te),!Me&&Pe)return 3;if(Z!=null&&(Z[0]=!!(16&Te)),te!=null&&(te[0]=Qe),ie!=null&&(ie[0]=0),te=ue[0],Te=xe[0],Pe&&Qe&&se==null){Oe=0;break}if(4>D){Oe=7;break}if(Me&&Pe||!Me&&!Pe&&!n(S,N[0],"ALPH")){D=[D],Be.na=[Be.na],Be.P=[Be.P],Be.Sa=[Be.Sa];e:{xt=S,Oe=N,Me=D;var Nt=Be.gb;Ke=Be.na,Ge=Be.P,Dt=Be.Sa,dn=22,t(xt!=null),t(Me!=null),Re=Oe[0];var Sn=Me[0];for(t(Ke!=null),t(Dt!=null),Ke[0]=null,Ge[0]=null,Dt[0]=0;;){if(Oe[0]=Re,Me[0]=Sn,8>Sn){Oe=7;break e}var Dr=Ye(xt,Re+4);if(4294967286<Dr){Oe=3;break e}var hn=8+Dr+1&-2;if(dn+=hn,0<Nt&&dn>Nt){Oe=3;break e}if(!n(xt,Re,"VP8 ")||!n(xt,Re,"VP8L")){Oe=0;break e}if(Sn[0]<hn){Oe=7;break e}n(xt,Re,"ALPH")||(Ke[0]=xt,Ge[0]=Re+8,Dt[0]=Dr),Re+=hn,Sn-=hn}}if(D=D[0],Be.na=Be.na[0],Be.P=Be.P[0],Be.Sa=Be.Sa[0],Oe!=0)break}D=[D],Be.Ja=[Be.Ja],Be.xa=[Be.xa];e:if(Nt=S,Oe=N,Me=D,Ke=Be.gb[0],Ge=Be.Ja,Dt=Be.xa,xt=Oe[0],Re=!n(Nt,xt,"VP8 "),dn=!n(Nt,xt,"VP8L"),t(Nt!=null),t(Me!=null),t(Ge!=null),t(Dt!=null),8>Me[0])Oe=7;else{if(Re||dn){if(Nt=Ye(Nt,xt+4),12<=Ke&&Nt>Ke-12){Oe=3;break e}if(de&&Nt>Me[0]-8){Oe=7;break e}Ge[0]=Nt,Oe[0]+=8,Me[0]-=8,Dt[0]=dn}else Dt[0]=5<=Me[0]&&Nt[xt+0]==47&&!(Nt[xt+4]>>5),Ge[0]=Me[0];Oe=0}if(D=D[0],Be.Ja=Be.Ja[0],Be.xa=Be.xa[0],N=N[0],Oe!=0)break;if(4294967286<Be.Ja)return 3;if(ie==null||Qe||(ie[0]=Be.xa?2:1),te=[te],Te=[Te],Be.xa){if(5>D){Oe=7;break}ie=te,de=Te,Qe=Z,S==null||5>D?S=0:5<=D&&S[N+0]==47&&!(S[N+4]>>5)?(Me=[0],Nt=[0],Ke=[0],oe(Ge=new R,S,N,D),Or(Ge,Me,Nt,Ke)?(ie!=null&&(ie[0]=Me[0]),de!=null&&(de[0]=Nt[0]),Qe!=null&&(Qe[0]=Ke[0]),S=1):S=0):S=0}else{if(10>D){Oe=7;break}ie=Te,S==null||10>D||!lu(S,N+3,D-3)?S=0:(de=S[N+0]|S[N+1]<<8|S[N+2]<<16,Qe=16383&(S[N+7]<<8|S[N+6]),S=16383&(S[N+9]<<8|S[N+8]),1&de||3<(de>>1&7)||!(de>>4&1)||de>>5>=Be.Ja||!Qe||!S?S=0:(te&&(te[0]=Qe),ie&&(ie[0]=S),S=1))}if(!S||(te=te[0],Te=Te[0],Pe&&(ue[0]!=te||xe[0]!=Te)))return 3;se!=null&&(se[0]=Be,se.offset=N-se.w,t(4294967286>N-se.w),t(se.offset==se.ha-D));break}return Oe==0||Oe==7&&Pe&&se==null?(Z!=null&&(Z[0]|=Be.na!=null&&0<Be.na.length),H!=null&&(H[0]=te),G!=null&&(G[0]=Te),0):Oe}function Nd(S,N,D){var H=N.width,G=N.height,Z=0,te=0,ie=H,se=G;if(N.Da=S!=null&&0<S.Da,N.Da&&(ie=S.cd,se=S.bd,Z=S.v,te=S.j,11>D||(Z&=-2,te&=-2),0>Z||0>te||0>=ie||0>=se||Z+ie>H||te+se>G))return 0;if(N.v=Z,N.j=te,N.va=Z+ie,N.o=te+se,N.U=ie,N.T=se,N.da=S!=null&&0<S.da,N.da){if(!ut(ie,se,D=[S.ib],Z=[S.hb]))return 0;N.ib=D[0],N.hb=Z[0]}return N.ob=S!=null&&S.ob,N.Kb=S==null||!S.Sd,N.da&&(N.ob=N.ib<3*H/4&&N.hb<3*G/4,N.Kb=0),1}function Td(S){if(S==null)return 2;if(11>S.S){var N=S.f.RGBA;N.fb+=(S.height-1)*N.A,N.A=-N.A}else N=S.f.kb,S=S.height,N.O+=(S-1)*N.fa,N.fa=-N.fa,N.N+=(S-1>>1)*N.Ab,N.Ab=-N.Ab,N.W+=(S-1>>1)*N.Db,N.Db=-N.Db,N.F!=null&&(N.J+=(S-1)*N.lb,N.lb=-N.lb);return 0}function ml(S,N,D,H){if(H==null||0>=S||0>=N)return 2;if(D!=null){if(D.Da){var G=D.cd,Z=D.bd,te=-2&D.v,ie=-2&D.j;if(0>te||0>ie||0>=G||0>=Z||te+G>S||ie+Z>N)return 2;S=G,N=Z}if(D.da){if(!ut(S,N,G=[D.ib],Z=[D.hb]))return 2;S=G[0],N=Z[0]}}H.width=S,H.height=N;e:{var se=H.width,ue=H.height;if(S=H.S,0>=se||0>=ue||!(S>=cp&&13>S))S=2;else{if(0>=H.Rd&&H.sd==null){te=Z=G=N=0;var xe=(ie=se*Sf[S])*ue;if(11>S||(Z=(ue+1)/2*(N=(se+1)/2),S==12&&(te=(G=se)*ue)),(ue=a(xe+2*Z+te))==null){S=1;break e}H.sd=ue,11>S?((se=H.f.RGBA).eb=ue,se.fb=0,se.A=ie,se.size=xe):((se=H.f.kb).y=ue,se.O=0,se.fa=ie,se.Fd=xe,se.f=ue,se.N=0+xe,se.Ab=N,se.Cd=Z,se.ea=ue,se.W=0+xe+Z,se.Db=N,se.Ed=Z,S==12&&(se.F=ue,se.J=0+xe+2*Z),se.Tc=te,se.lb=G)}if(N=1,G=H.S,Z=H.width,te=H.height,G>=cp&&13>G)if(11>G)S=H.f.RGBA,N&=(ie=Math.abs(S.A))*(te-1)+Z<=S.size,N&=ie>=Z*Sf[G],N&=S.eb!=null;else{S=H.f.kb,ie=(Z+1)/2,xe=(te+1)/2,se=Math.abs(S.fa),ue=Math.abs(S.Ab);var Pe=Math.abs(S.Db),de=Math.abs(S.lb),Be=de*(te-1)+Z;N&=se*(te-1)+Z<=S.Fd,N&=ue*(xe-1)+ie<=S.Cd,N=(N&=Pe*(xe-1)+ie<=S.Ed)&se>=Z&ue>=ie&Pe>=ie,N&=S.y!=null,N&=S.f!=null,N&=S.ea!=null,G==12&&(N&=de>=Z,N&=Be<=S.Tc,N&=S.F!=null)}else N=0;S=N?0:2}}return S!=0||D!=null&&D.fd&&(S=Td(H)),S}var Eo=64,lo=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],co=24,pc=32,js=8,gl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];it("Predictor0","PredictorAdd0"),L.Predictor0=function(){return 4278190080},L.Predictor1=function(S){return S},L.Predictor2=function(S,N,D){return N[D+0]},L.Predictor3=function(S,N,D){return N[D+1]},L.Predictor4=function(S,N,D){return N[D-1]},L.Predictor5=function(S,N,D){return Bt(Bt(S,N[D+1]),N[D+0])},L.Predictor6=function(S,N,D){return Bt(S,N[D-1])},L.Predictor7=function(S,N,D){return Bt(S,N[D+0])},L.Predictor8=function(S,N,D){return Bt(N[D-1],N[D+0])},L.Predictor9=function(S,N,D){return Bt(N[D+0],N[D+1])},L.Predictor10=function(S,N,D){return Bt(Bt(S,N[D-1]),Bt(N[D+0],N[D+1]))},L.Predictor11=function(S,N,D){var H=N[D+0];return 0>=Ie(H>>24&255,S>>24&255,(N=N[D-1])>>24&255)+Ie(H>>16&255,S>>16&255,N>>16&255)+Ie(H>>8&255,S>>8&255,N>>8&255)+Ie(255&H,255&S,255&N)?H:S},L.Predictor12=function(S,N,D){var H=N[D+0];return(gn((S>
vendor: 6,071 bytes, line 1542
1542>24&255)+(H>>24&255)-((N=N[D-1])>>24&255))<<24|gn((S>>16&255)+(H>>16&255)-(N>>16&255))<<16|gn((S>>8&255)+(H>>8&255)-(N>>8&255))<<8|gn((255&S)+(255&H)-(255&N)))>>>0},L.Predictor13=function(S,N,D){var H=N[D-1];return(zt((S=Bt(S,N[D+0]))>>24&255,H>>24&255)<<24|zt(S>>16&255,H>>16&255)<<16|zt(S>>8&255,H>>8&255)<<8|zt(255&S,255&H))>>>0};var yl=L.PredictorAdd0;L.PredictorAdd1=ze,it("Predictor2","PredictorAdd2"),it("Predictor3","PredictorAdd3"),it("Predictor4","PredictorAdd4"),it("Predictor5","PredictorAdd5"),it("Predictor6","PredictorAdd6"),it("Predictor7","PredictorAdd7"),it("Predictor8","PredictorAdd8"),it("Predictor9","PredictorAdd9"),it("Predictor10","PredictorAdd10"),it("Predictor11","PredictorAdd11"),it("Predictor12","PredictorAdd12"),it("Predictor13","PredictorAdd13");var Os=L.PredictorAdd2;ft("ColorIndexInverseTransform","MapARGB","32b",function(S){return S>>8&255},function(S){return S}),ft("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(S){return S},function(S){return S>>8&255});var Vr,xu=L.ColorIndexInverseTransform,Fs=L.MapARGB,Jo=L.VP8LColorIndexInverseTransformAlpha,Su=L.MapAlpha,Bu=L.VP8LPredictorsAdd=[];Bu.length=16,(L.VP8LPredictors=[]).length=16,(L.VP8LPredictorsAdd_C=[]).length=16,(L.VP8LPredictors_C=[]).length=16;var _d,Id,vl,mc,gc,Cu,yc,ku,Fr,Pa,Dn,Kn,Lr,ri,Zo,ff,Pd,bl,sp,jd,lp,Yg,hf,Eu,Nu,Xg,pf,Jg,Zg=a(511),ey=a(2041),ty=a(225),ny=a(767),ry=0,Ls=ey,Od=ty,pa=ny,No=Zg,cp=0,vc=1,xb=2,mf=3,gf=4,rr=5,up=6,Fd=7,Tu=8,yf=9,vf=10,bf=[2,3,7],dp=[3,3,11],_u=[280,256,256,256,40],Sb=[0,1,1,1,0],QB=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],HB=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Bb=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Ap=8,Ld=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],wf=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Iu=null,iy=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ay=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Cb=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],kb=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
15425,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],$B=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,
15421,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],qB=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 24,010 bytes, lines 1542-1566
15425,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],oy=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ma=[],To=[],ja=[],Ds=1,Dd=2,ta=[],Oa=[];pl("UpsampleRgbLinePair",fc,3),pl("UpsampleBgrLinePair",Hi,3),pl("UpsampleRgbaLinePair",ha,4),pl("UpsampleBgraLinePair",Af,4),pl("UpsampleArgbLinePair",df,4),pl("UpsampleRgba4444LinePair",wu,2),pl("UpsampleRgb565LinePair",bu,2);var zB=L.UpsampleRgbLinePair,VB=L.UpsampleBgrLinePair,bc=L.UpsampleRgbaLinePair,Md=L.UpsampleBgraLinePair,Pu=L.UpsampleArgbLinePair,xf=L.UpsampleRgba4444LinePair,sy=L.UpsampleRgb565LinePair,wl=16,es=1<<wl-1,zn=-227,Gn=482,wc=6,$i=0,Fa=a(256),ju=a(256),Ud=a(256),La=a(256),fp=a(Gn-zn),Eb=a(Gn-zn);Xo("YuvToRgbRow",fc,3),Xo("YuvToBgrRow",Hi,3),Xo("YuvToRgbaRow",ha,4),Xo("YuvToBgraRow",Af,4),Xo("YuvToArgbRow",df,4),Xo("YuvToRgba4444Row",wu,2),Xo("YuvToRgb565Row",bu,2);var ly=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ou=[0,2,8],Nb=[8,7,6,4,4,2,2,2,1,1,1,1],xl=1;this.WebPDecodeRGBA=function(S,N,D,H,G){var Z=vc,te=new $e,ie=new rn;te.ba=ie,ie.S=Z,ie.width=[ie.width],ie.height=[ie.height];var se=ie.width,ue=ie.height,xe=new $t;if(xe==null||S==null)var Pe=2;else t(xe!=null),Pe=hc(S,N,D,xe.width,xe.height,xe.Pd,xe.Qd,xe.format,null);if(Pe!=0?se=0:(se!=null&&(se[0]=xe.width[0]),ue!=null&&(ue[0]=xe.height[0]),se=1),se){ie.width=ie.width[0],ie.height=ie.height[0],H!=null&&(H[0]=ie.width),G!=null&&(G[0]=ie.height);e:{if(H=new vd,(G=new Xe).data=S,G.w=N,G.ha=D,G.kd=1,N=[0],t(G!=null),((S=hc(G.data,G.w,G.ha,null,null,null,N,null,G))==0||S==7)&&N[0]&&(S=4),(N=S)==0){if(t(te!=null),H.data=G.data,H.w=G.w+G.offset,H.ha=G.ha-G.offset,H.put=Tt,H.ac=vt,H.bc=jr,H.ma=te,G.xa){if((S=iu())==null){te=1;break e}if((function(de,Be){var Te=[0],Qe=[0],Oe=[0];t:for(;;){if(de==null)return 0;if(Be==null)return de.a=2,0;if(de.l=Be,de.a=0,oe(de.m,Be.data,Be.w,Be.ha),!Or(de.m,Te,Qe,Oe)){de.a=3;break t}if(de.xb=Dd,Be.width=Te[0],Be.height=Qe[0],!Wo(Te[0],Qe[0],1,de,null))break t;return 1}return t(de.a!=0),0})(S,H)){if(H=(N=ml(H.width,H.height,te.Oa,te.ba))==0){t:{H=S;n:for(;;){if(H==null){H=0;break t}if(t(H.s.yc!=null),t(H.s.Ya!=null),t(0<H.s.Wb),t((D=H.l)!=null),t((G=D.ma)!=null),H.xb!=0){if(H.ca=G.ba,H.tb=G.tb,t(H.ca!=null),!Nd(G.Oa,D,mf)){H.a=2;break n}if(!sc(H,D.width)||D.da)break n;if((D.da||Mt(H.ca.S))&&Yo(),11>H.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),H.ca.f.kb.F!=null&&Yo()),H.Pb&&0<H.s.ua&&H.s.vb.X==null&&!ae(H.s.vb,H.s.Wa.Xa)){H.a=1;break n}H.xb=0}if(!bo(H,H.V,H.Ba,H.c,H.i,D.o,oc))break n;G.Dc=H.Ma,H=1;break t}t(H.a!=0),H=0}H=!H}H&&(N=S.a)}else N=S.a}else{if((S=new Kg)==null){te=1;break e}if(S.Fa=G.na,S.P=G.P,S.qc=G.Sa,ao(S,H)){if((N=ml(H.width,H.height,te.Oa,te.ba))==0){if(S.Aa=0,D=te.Oa,t((G=S)!=null),D!=null){if(0<(se=0>(se=D.Md)?0:100<se?255:255*se/100)){for(ue=xe=0;4>ue;++ue)12>(Pe=G.pb[ue]).lc&&(Pe.ia=se*Nb[0>Pe.lc?0:Pe.lc]>>3),xe|=Pe.ia;xe&&(alert("todo:VP8InitRandom"),G.ia=1)}G.Ga=D.Id,100<G.Ga?G.Ga=100:0>G.Ga&&(G.Ga=0)}(function(de,Be){if(de==null)return 0;if(Be==null)return ti(de,2,"NULL VP8Io parameter in VP8Decode().");if(!de.cb&&!ao(de,Be))return 0;if(t(de.cb),Be.ac==null||Be.ac(Be)){Be.ob&&(de.L=0);var Te=Ou[de.L];if(de.L==2?(de.yb=0,de.zb=0):(de.yb=Be.v-Te>>4,de.zb=Be.j-Te>>4,0>de.yb&&(de.yb=0),0>de.zb&&(de.zb=0)),de.Va=Be.o+15+Te>>4,de.Hb=Be.va+15+Te>>4,de.Hb>de.za&&(de.Hb=de.za),de.Va>de.Ub&&(de.Va=de.Ub),0<de.L){var Qe=de.ed;for(Te=0;4>Te;++Te){var Oe;if(de.Qa.Cb){var Me=de.Qa.Lb[Te];de.Qa.Fb||(Me+=Qe.Tb)}else Me=Qe.Tb;for(Oe=0;1>=Oe;++Oe){var Re=de.gd[Te][Oe],Ke=Me;if(Qe.Pc&&(Ke+=Qe.vd[0],Oe&&(Ke+=Qe.od[0])),0<(Ke=0>Ke?0:63<Ke?63:Ke)){var Ge=Ke;0<Qe.wb&&(Ge=4<Qe.wb?Ge>>2:Ge>>1)>9-Qe.wb&&(Ge=9-Qe.wb),1>Ge&&(Ge=1),Re.dd=Ge,Re.tc=2*Ke+Ge,Re.ld=40<=Ke?2:15<=Ke?1:0}else Re.tc=0;Re.La=Oe}}}Te=0}else ti(de,6,"Frame setup failed"),Te=de.a;if(Te=Te==0){if(Te){de.$c=0,0<de.Aa||(de.Ic=xl);t:{Te=de.Ic,Qe=4*(Ge=de.za);var Dt=32*Ge,xt=Ge+1,dn=0<de.L?Ge*(0<de.Aa?2:1):0,Nt=(de.Aa==2?2:1)*Ge;if((Re=Qe+832+(Oe=3*(16*Te+Ou[de.L])/2*Dt)+(Me=de.Fa!=null&&0<de.Fa.length?de.Kc.c*de.Kc.i:0))!=Re)Te=0;else{if(Re>de.Vb){if(de.Vb=0,de.Ec=a(Re),de.Fc=0,de.Ec==null){Te=ti(de,1,"no memory during frame initialization.");break t}de.Vb=Re}Re=de.Ec,Ke=de.Fc,de.Ac=Re,de.Bc=Ke,Ke+=Qe,de.Gd=o(Dt,io),de.Hd=0,de.rb=o(xt+1,lc),de.sb=1,de.wa=dn?o(dn,ro):null,de.Y=0,de.D.Nb=0,de.D.wa=de.wa,de.D.Y=de.Y,0<de.Aa&&(de.D.Y+=Ge),t(!0),de.oc=Re,de.pc=Ke,Ke+=832,de.ya=o(Nt,yd),de.aa=0,de.D.ya=de.ya,de.D.aa=de.aa,de.Aa==2&&(de.D.aa+=Ge),de.R=16*Ge,de.B=8*Ge,Ge=(Dt=Ou[de.L])*de.R,Dt=Dt/2*de.B,de.sa=Re,de.ta=Ke+Ge,de.qa=de.sa,de.ra=de.ta+16*Te*de.R+Dt,de.Ha=de.qa,de.Ia=de.ra+8*Te*de.B+Dt,de.$c=0,Ke+=Oe,de.mb=Me?Re:null,de.nb=Me?Ke:null,t(Ke+Me<=de.Fc+de.Vb),cu(de),i(de.Ac,de.Bc,0,Qe),Te=1}}if(Te){if(Be.ka=0,Be.y=de.sa,Be.O=de.ta,Be.f=de.qa,Be.N=de.ra,Be.ea=de.Ha,Be.Vd=de.Ia,Be.fa=de.R,Be.Rc=de.B,Be.F=null,Be.J=0,!ry){for(Te=-255;255>=Te;++Te)Zg[255+Te]=0>Te?-Te:Te;for(Te=-1020;1020>=Te;++Te)ey[1020+Te]=-128>Te?-128:127<Te?127:Te;for(Te=-112;112>=Te;++Te)ty[112+Te]=-16>Te?-16:15<Te?15:Te;for(Te=-255;510>=Te;++Te)ny[255+Te]=0>Te?0:255<Te?255:Te;ry=1}yc=du,ku=uu,Pa=Ns,Dn=bd,Kn=On,Fr=af,Lr=ea,ri=ko,Zo=Y,ff=fe,Pd=kd,bl=I,sp=we,jd=Ne,lp=fl,Yg=uc,hf=uf,Eu=gu,To[0]=ip,To[1]=of,To[2]=_s,To[3]=Gg,To[4]=oo,To[5]=ap,To[6]=Al,To[7]=Sd,To[8]=sf,To[9]=fu,ma[0]=Ts,ma[1]=rp,ma[2]=wd,ma[3]=xd,ma[4]=_a,ma[5]=xo,ma[6]=Au,ja[0]=Bd,ja[1]=np,ja[2]=Go,ja[3]=hu,ja[4]=cf,ja[5]=lf,ja[6]=Cd,Te=1}else Te=0}Te&&(Te=(function(Sn,Dr){for(Sn.M=0;Sn.M<Sn.Va;++Sn.M){var hn,St=Sn.Jc[Sn.M&Sn.Xb],ct=Sn.m,Wr=Sn;for(hn=0;hn<Wr.za;++hn){var tn=ct,wn=Wr,cr=wn.Ac,Ni=wn.Bc+4*hn,ii=wn.zc,Nr=wn.ya[wn.aa+hn];if(wn.Qa.Bb?Nr.$b=be(tn,wn.Pa.jb[0])?2+be(tn,wn.Pa.jb[2]):be(tn,wn.Pa.jb[1]):Nr.$b=0,wn.kc&&(Nr.Ad=be(tn,wn.Bd)),Nr.Za=!be(tn,145)+0,Nr.Za){var pi=Nr.Ob,Ti=0;for(wn=0;4>wn;++wn){var yr,kn=ii[0+wn];for(yr=0;4>yr;++yr){kn=$B[cr[Ni+yr]][kn];for(var Mn=Cb[be(tn,kn[0])];0<Mn;)Mn=Cb[2*Mn+be(tn,kn[Mn])];kn=-Mn,cr[Ni+yr]=kn}r(pi,Ti,cr,Ni,4),Ti+=4,ii[0+wn]=kn}}else kn=be(tn,156)?be(tn,128)?1:3:be(tn,163)?2:0,Nr.Ob[0]=kn,i(cr,Ni,kn,4),i(ii,0,kn,4);Nr.Dd=be(tn,142)?be(tn,114)?be(tn,183)?1:3:2:0}if(Wr.m.Ka)return ti(Sn,7,"Premature end-of-partition0 encountered.");for(;Sn.ja<Sn.za;++Sn.ja){if(Wr=St,tn=(ct=Sn).rb[ct.sb-1],cr=ct.rb[ct.sb+ct.ja],hn=ct.ya[ct.aa+ct.ja],Ni=ct.kc?hn.Ad:0)tn.la=cr.la=0,hn.Za||(tn.Na=cr.Na=0),hn.Hc=0,hn.Gc=0,hn.ia=0;else{var vr,Un;if(tn=cr,cr=Wr,Ni=ct.Pa.Xc,ii=ct.ya[ct.aa+ct.ja],Nr=ct.pb[ii.$b],wn=ii.ad,pi=0,Ti=ct.rb[ct.sb-1],kn=yr=0,i(wn,pi,0,384),ii.Za)var Mr=0,Ur=Ni[3];else{Mn=a(16);var ir=tn.Na+Ti.Na;if(ir=Iu(cr,Ni[1],ir,Nr.Eb,0,Mn,0),tn.Na=Ti.Na=(0<ir)+0,1<ir)yc(Mn,0,wn,pi);else{var na=Mn[0]+3>>3;for(Mn=0;256>Mn;Mn+=16)wn[pi+Mn]=na}Mr=1,Ur=Ni[0]}var Yn=15&tn.la,ar=15&Ti.la;for(Mn=0;4>Mn;++Mn){var ai=1&ar;for(na=Un=0;4>na;++na)Yn=Yn>>1|(ai=(ir=Iu(cr,Ur,ir=ai+(1&Yn),Nr.Sc,Mr,wn,pi))>Mr)<<7,Un=Un<<2|(3<ir?3:1<ir?2:wn[pi+0]!=0),pi+=16;Yn>>=4,ar=ar>>1|ai<<7,yr=(yr<<8|Un)>>>0}for(Ur=Yn,Mr=ar>>4,vr=0;4>vr;vr+=2){for(Un=0,Yn=tn.la>>4+vr,ar=Ti.la>>4+vr,Mn=0;2>Mn;++Mn){for(ai=1&ar,na=0;2>na;++na)ir=ai+(1&Yn),Yn=Yn>>1|(ai=0<(ir=Iu(cr,Ni[2],ir,Nr.Qc,0,wn,pi)))<<3,Un=Un<<2|(3<ir?3:1<ir?2:wn[pi+0]!=0),pi+=16;Yn>>=2,ar=ar>>1|ai<<5}kn|=Un<<4*vr,Ur|=Yn<<4<<vr,Mr|=(240&ar)<<vr}tn.la=Ur,Ti.la=Mr,ii.Hc=yr,ii.Gc=kn,ii.ia=43690&kn?0:Nr.ia,Ni=!(yr|kn)}if(0<ct.L&&(ct.wa[ct.Y+ct.ja]=ct.gd[hn.$b][hn.Za],ct.wa[ct.Y+ct.ja].La|=!Ni),Wr.Ka)return ti(Sn,7,"Premature end-of-file encountered.")}if(cu(Sn),ct=Dr,Wr=1,hn=(St=Sn).D,tn=0<St.L&&St.M>=St.zb&&St.M<=St.Va,St.Aa==0)t:{if(hn.M=St.M,hn.uc=tn,so(St,hn),Wr=1,hn=(Un=St.D).Nb,tn=(kn=Ou[St.L])*St.R,cr=kn/2*St.B,Mn=16*hn*St.R,na=8*hn*St.B,Ni=St.sa,ii=St.ta-tn+Mn,Nr=St.qa,wn=St.ra-cr+na,pi=St.Ha,Ti=St.Ia-cr+na,ar=(Yn=Un.M)==0,yr=Yn>=St.Va-1,St.Aa==2&&so(St,Un),Un.uc)for(ai=(ir=St).D.M,t(ir.D.uc),Un=ir.yb;Un<ir.Hb;++Un){Mr=Un,Ur=ai;var qi=(Da=(Yr=ir).D).Nb;vr=Yr.R;var Da=Da.wa[Da.Y+Mr],Kr=Yr.sa,Gr=Yr.ta+16*qi*vr+16*Mr,ra=Da.dd,or=Da.tc;if(or!=0)if(t(3<=or),Yr.L==1)0<Mr&&Yg(Kr,Gr,vr,or+4),Da.La&&Eu(Kr,Gr,vr,or),0<Ur&&lp(Kr,Gr,vr,or+4),Da.La&&hf(Kr,Gr,vr,or);else{var ia=Yr.B,_o=Yr.qa,ts=Yr.ra+8*qi*ia+8*Mr,_i=Yr.Ha,Yr=Yr.Ia+8*qi*ia+8*Mr;qi=Da.ld,0<Mr&&(ri(Kr,Gr,vr,or+4,ra,qi),ff(_o,ts,_i,Yr,ia,or+4,ra,qi)),Da.La&&(bl(Kr,Gr,vr,or,ra,qi),jd(_o,ts,_i,Yr,ia,or,ra,qi)),0<Ur&&(Lr(Kr,Gr,vr,or+4,ra,qi),Zo(_o,ts,_i,Yr,ia,or+4,ra,qi)),Da.La&&(Pd(Kr,Gr,vr,or,ra,qi),sp(_o,ts,_i,Yr,ia,or,ra,qi))}}if(St.ia&&alert("todo:DitherRow"),ct.put!=null){if(Un=16*Yn,Yn=16*(Yn+1),ar?(ct.y=St.sa,ct.O=St.ta+Mn,ct.f=St.qa,ct.N=St.ra+na,ct.ea=St.Ha,ct.W=St.Ia+na):(Un-=kn,ct.y=Ni,ct.O=ii,ct.f=Nr,ct.N=wn,ct.ea=pi,ct.W=Ti),yr||(Yn-=kn),Yn>ct.o&&(Yn=ct.o),ct.F=null,ct.J=null,St.Fa!=null&&0<St.Fa.length&&Un<Yn&&(ct.J=lr(St,ct,Un,Yn-Un),ct.F=St.mb,ct.F==null&&ct.F.length==0)){Wr=ti(St,3,"Could not decode alpha data.");break t}Un<ct.j&&(kn=ct.j-Un,Un=ct.j,t(!(1&kn)),ct.O+=St.R*kn,ct.N+=St.B*(kn>>1),ct.W+=St.B*(kn>>1),ct.F!=null&&(ct.J+=ct.width*kn)),Un<Yn&&(ct.O+=ct.v,ct.N+=ct.v>>1,ct.W+=ct.v>>1,ct.F!=null&&(ct.J+=ct.v),ct.ka=Un-ct.j,ct.U=ct.va-ct.v,ct.T=Yn-Un,Wr=ct.put(ct))}hn+1!=St.Ic||yr||(r(St.sa,St.ta-tn,Ni,ii+16*St.R,tn),r(St.qa,St.ra-cr,Nr,wn+8*St.B,cr),r(St.Ha,St.Ia-cr,pi,Ti+8*St.B,cr))}if(!Wr)return ti(Sn,6,"Output aborted.")}return 1})(de,Be)),Be.bc!=null&&Be.bc(Be),Te&=1}return Te?(de.cb=0,Te):0})(S,H)||(N=S.a)}}else N=S.a}N==0&&te.Oa!=null&&te.Oa.fd&&(N=Td(te.ba))}te=N}Z=te!=0?null:11>Z?ie.f.RGBA.eb:ie.f.kb.y}else Z=null;return Z};var Sf=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(L,z){for(var F="",M=0;M<4;M++)F+=String.fromCharCode(L[z++]);return F}function d(L,z){return L[z+0]|L[z+1]<<8}function A(L,z){return(L[z+0]|L[z+1]<<8|L[z+2]<<16)>>>0}function h(L,z){return(L[z+0]|L[z+1]<<8|L[z+2]<<16|L[z+3]<<24)>>>0}new l;var m=[0],b=[0],g=[],y=new l,v=e,x=(function(L,z){var F={},M=0,V=!1,q=0,W=0;if(F.frames=[],!(function(Q,R){for(var re=0;re<4;re++)if(Q[R+re]!="RIFF".charCodeAt(re))return!0;return!1})(L,z)){for(h(L,z+=4),z+=8;z<L.length;){var ee=c(L,z),ne=h(L,z+=4);z+=4;var K=ne+(1&ne);switch(ee){case"VP8 ":case"VP8L":F.frames[M]===void 0&&(F.frames[M]={}),(X=F.frames[M]).src_off=V?W:z-8,X.src_size=q+ne+8,M++,V&&(V=!1,q=0,W=0);break;case"VP8X":(X=F.header={}).feature_flags=L[z];var oe=z+4;X.canvas_width=1+A(L,oe),oe+=3,X.canvas_height=1+A(L,oe),oe+=3;break;case"ALPH":V=!0,q=K+8,W=z-8;break;case"ANIM":(X=F.header).bgcolor=h(L,z),oe=z+4,X.loop_count=d(L,oe),oe+=2;break;case"ANMF":var $,X;(X=F.frames[M]={}).offset_x=2*A(L,z),z+=3,X.offset_y=2*A(L,z),z+=3,X.width=1+A(L,z),z+=3,X.height=1+A(L,z),z+=3,X.duration=A(L,z),z+=3,$=L[z++],X.dispose=1&$,X.blend=$>>1&1}ee!="ANMF"&&(z+=K)}return F}})(v,0);x.response=v,x.rgbaoutput=!0,x.dataurl=!1;var B=x.header?x.header:null,C=x.frames?x.frames:null;if(B){B.loop_counter=B.loop_count,m=[B.canvas_height],b=[B.canvas_width];for(var E=0;E<C.length&&C[E].blend!=0;E++);}var T=C[0],j=y.WebPDecodeRGBA(v,T.src_off,T.src_size,b,m);T.rgba=j,T.imgwidth=b[0],T.imgheight=m[0];for(var O=0;O<b[0]*m[0]*4;O++)g[O]=j[O];return this.width=b,this.height=m,this.data=g,this}/** ====================================================================
1543 * @license
1544 * jsPDF XMP metadata plugin
1545 * Copyright (c) 2016 Jussi Utunen, [email protected]
1546 *
1547 * Permission is hereby granted, free of charge, to any person obtaining
1548 * a copy of this software and associated documentation files (the
1549 * "Software"), to deal in the Software without restriction, including
1550 * without limitation the rights to use, copy, modify, merge, publish,
1551 * distribute, sublicense, and/or sell copies of the Software, and to
1552 * permit persons to whom the Software is furnished to do so, subject to
1553 * the following conditions:
1554 *
1555 * The above copyright notice and this permission notice shall be
1556 * included in all copies or substantial portions of the Software.
1557 *
1558 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1559 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1560 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1561 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
1562 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1563 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
1564 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1565 * ====================================================================
1566 */function VVe(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function WVe(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,n,r,i,a,o,s,l,c,d=function(Q){return Q=Q||{},this.isStrokeTransparent=Q.isStrokeTransparent||!1,this.strokeOpacity=Q.strokeOpacity||1,this.strokeStyle=Q.strokeStyle||"#000000",this.fillStyle=Q.fillStyle||"#000000",this.isFillTransparent=Q.isFillTransparent||!1,this.fillOpacity=Q.fillOpacity||1,this.font=Q.font||"10px sans-serif",this.textBaseline=Q.textBaseline||"alphabetic",this.textAlign=Q.textAlign||"left",this.lineWidth=Q.lineWidth||1,this.lineJoin=Q.lineJoin||"miter",this.lineCap=Q.lineCap||"butt",this.path=Q.path||[],this.transform=Q.transform!==void 0?Q.transform.clone():new l,this.globalCompositeOperation=Q.globalCompositeOperation||"normal",this.globalAlpha=Q.globalAlpha||1,this.clip_path=Q.clip_path||[],this.currentPoint=Q.currentPoint||new o,this.miterLimit=Q.miterLimit||10,this.lastPoint=Q.lastPoint||new o,this.lineDashOffset=Q.lineDashOffset||0,this.lineDash=Q.lineDash||[],this.margin=Q.margin||[0,0,0,0],this.prevPageLastElemOffset=Q.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Q.ignoreClearRect!="boolean"||Q.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new A(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,c=new d}]);var A=function(Q){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var R=Q;Object.defineProperty(this,"pdf",{get:function(){return R}});var re=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return re},set:function(ae){re=!!ae}});var ce=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return ce},set:function(ae){ce=!!ae}});var le=0;Object.defineProperty(this,"posX",{get:function(){return le},set:function(ae){isNaN(ae)||(le=ae)}});var he=0;Object.defineProperty(this,"posY",{get:function(){return he},set:function(ae){isNaN(ae)||(he=ae)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(ae){var Le;typeof ae=="number"?Le=[ae,ae,ae,ae]:((Le=new Array(4))[0]=ae[0],Le[1]=ae.length>=2?ae[1]:Le[0],Le[2]=ae.length>=3?ae[2]:Le[0],Le[3]=ae.length>=4?ae[3]:Le[1]),c.margin=Le}});var ye=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ye},set:function(ae){ye=ae}});var Ae=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ae},set:function(ae){Ae=ae}});var be=[];Object.defineProperty(this,"pageBreaks",{get:function(){return be},set:function(ae){be=ae}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(ae){ae instanceof d&&(c=ae)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(ae){c.path=ae}});var Ee=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ee},set:function(ae){Ee=ae}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ae){var Le;Le=h(ae),this.ctx.fillStyle=Le.style,this.ctx.isFillTransparent=Le.a===0,this.ctx.fillOpacity=Le.a,this.pdf.setFillColor(Le.r,Le.g,Le.b,{a:Le.a}),this.pdf.setTextColor(Le.r,Le.g,Le.b,{a:Le.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ae){var Le=h(ae);this.ctx.strokeStyle=Le.style,this.ctx.isStrokeTransparent=Le.a===0,this.ctx.strokeOpacity=Le.a,Le.a===0?this.pdf.setDrawColor(255,255,255):(Le.a,this.pdf.setDrawColor(Le.r,Le.g,Le.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ae){["butt","round","square"].indexOf(ae)!==-1&&(this.ctx.lineCap=ae,this.pdf.setLineCap(ae))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ae){isNaN(ae)||(this.ctx.lineWidth=ae,this.pdf.setLineWidth(ae))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ae){["bevel","round","miter"].indexOf(ae)!==-1&&(this.ctx.lineJoin=ae,this.pdf.setLineJoin(ae))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ae){isNaN(ae)||(this.ctx.miterLimit=ae,this.pdf.setMiterLimit(ae))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ae){this.ctx.textBaseline=ae}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ae){["right","end","center","left","start"].indexOf(ae)!==-1&&(this.ctx.textAlign=ae)}});var ge=null,Ue=null,Ye=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ye},set:function(ae){ge=null,Ue=null,Ye=ae}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ae){var Le;if(this.ctx.font=ae,(Le=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(ae))!==null){var st=Le[1];Le[2];var ut=Le[3],He=Le[4];Le[5];var ht=Le[6],it=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(He)[2];He=Math.floor(it==="px"?parseFloat(He)*this.pdf.internal.scaleFactor:it==="em"?parseFloat(He)*this.pdf.getFontSize():parseFloat(He)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(He);var pt=(function(ft){var Ln,Gt,Yt=[],Vt=ft.trim();if(Vt==="")return ST;if(Vt in Cz)return[Cz[Vt]];for(;Vt!=="";){switch(Gt=null,Ln=(Vt=Ez(Vt)).charAt(0)){case'"':case"'":Gt=RVe(Vt.substring(1),Ln);break;default:Gt=QVe(Vt)}if(Gt===null||(Yt.push(Gt[0]),(Vt=Ez(Gt[1]))!==""&&Vt.charAt(0)!==","))return ST;Vt=Vt.replace(/^,/,"")}return Yt})(ht);if(this.fontFaces){var Bt=(function(ft,Ln){var Gt=ft.getFontList(),Yt=JSON.stringify(Gt);if(ge===null||Ue!==Yt){var Vt=(function(fn){var wt=[];return Object.keys(fn).forEach(function(yn){fn[yn].forEach(function(Mt){var en=null;switch(Mt){case"bold":en={family:yn,weight:"bold"};break;case"italic":en={family:yn,style:"italic"};break;case"bolditalic":en={family:yn,weight:"bold",style:"italic"};break;case"":case"normal":en={family:yn}}en!==null&&(en.ref={name:yn,style:Mt},wt.push(en))})}),wt})(Gt);ge=(function(fn){for(var wt={},yn=0;yn<fn.length;++yn){var Mt=xT(fn[yn]),en=Mt.family,En=Mt.stretch,rn=Mt.style,$t=Mt.weight;wt[en]=wt[en]||{},wt[en][En]=wt[en][En]||{},wt[en][En][rn]=wt[en][En][rn]||{},wt[en][En][rn][$t]=Mt}return wt})(Vt.concat(Ln)),Ue=Yt}return ge})(this.pdf,this.fontFaces),gn=pt.map(function(ft){return{family:ft,stretch:"normal",weight:ut,style:st}}),zt=(function(ft,Ln,Gt){for(var Yt=(Gt=Gt||{}).defaultFontFamily||"times",Vt=Object.assign({},UVe,Gt.genericFontFamilies||{}),fn=null,wt=null,yn=0;yn<Ln.length;++yn)if(Vt[(fn=xT(Ln[yn])).family]&&(fn.family=Vt[fn.family]),ft.hasOwnProperty(fn.family)){wt=ft[fn.family];break}if(!(wt=wt||ft[Yt]))throw new Error("Could not find a font-family for the rule '"+kz(fn)+"' and default family '"+Yt+"'.");if(wt=(function(Mt,en){if(en[Mt])return en[Mt];var En=KP[Mt],rn=En<=KP.normal?-1:1,$t=Bz(en,Xre,En,rn);if(!$t)throw new Error("Could not find a matching font-stretch value for "+Mt);return $t})(fn.stretch,wt),wt=(function(Mt,en){if(en[Mt])return en[Mt];for(var En=Yre[Mt],rn=0;rn<En.length;++rn)if(en[En[rn]])return en[En[rn]];throw new Error("Could not find a matching font-style for "+Mt)})(fn.style,wt),!(wt=(function(Mt,en){if(en[Mt])return en[Mt];if(Mt===400&&en[500])return en[500];if(Mt===500&&en[400])return en[400];var En=MVe[Mt],rn=Bz(en,Jre,En,Mt<400?-1:1);if(!rn)throw new Error("Could not find a matching font-weight for value "+Mt);return rn})(fn.weight,wt)))throw new Error("Failed to resolve a font for the rule '"+kz(fn)+"'.");return wt})(Bt,gn);this.pdf.setFont(zt.ref.name,zt.ref.style)}else{var Ie="";(ut==="bold"||parseInt(ut,10)>=700||st==="bold")&&(Ie="bold"),st==="italic"&&(Ie+="italic"),Ie.length===0&&(Ie="normal");for(var ze="",at={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Ze=0;Ze<pt.length;Ze++){if(this.pdf.internal.getFont(pt[Ze],Ie,{noFallback:!0,disableWarning:!0})!==void 0){ze=pt[Ze];break}if(Ie==="bolditalic"&&this.pdf.internal.getFont(pt[Ze],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ze=pt[Ze],Ie="bold";else if(this.pdf.internal.getFont(pt[Ze],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ze=pt[Ze],Ie="normal";break}}if(ze===""){for(var At=0;At<pt.length;At++)if(at[pt[At]]){ze=at[pt[At]];break}}ze=ze===""?"Times":ze,this.pdf.setFont(ze,Ie)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ae){this.ctx.globalCompositeOperation=ae}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ae){this.ctx.globalAlpha=ae}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ae){this.ctx.lineDashOffset=ae,X.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ae){this.ctx.lineDash=ae,X.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ae){this.ctx.ignoreClearRect=!!ae}})};A.prototype.setLineDash=function(Q){this.lineDash=Q},A.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},A.prototype.fill=function(){C.call(this,"fill",!1)},A.prototype.stroke=function(){C.call(this,"stroke",!1)},A.prototype.beginPath=function(){this.path=[{type:"begin"}]},A.prototype.moveTo=function(Q,R){if(isNaN(Q)||isNaN(R))throw pr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
1566jsPDF.context2d.moveTo");var re=this.ctx.transform.applyToPoint(new o(Q,R));this.path.push({type:"mt",x:re.x,y:re.y}),this.ctx.lastPoint=new o(Q,R)},A.prototype.closePath=function(){var Q=new o(0,0),R=0;for(R=this.path.length-1;R!==-1;R--)if(this.path[R].type==="begin"&&sr(this.path[R+1])==="object"&&typeof this.path[R+1].x=="number"){Q=new o(this.path[R+1].x,this.path[R+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(Q.x,Q.y)},A.prototype.lineTo=function(Q,R){if(isNaN(Q)||isNaN(R))throw pr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var re=this.ctx.transform.applyToPoint(new o(Q,R));this.path.push({type:"lt",x:re.x,y:re.y}),this.ctx.lastPoint=new o(re.x,re.y)},A.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),C.call(this,null,!0)},A.prototype.quadraticCurveTo=function(Q,R,re,ce){if(isNaN(re)||isNaN(ce)||isNaN(Q)||isNaN(R))throw pr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var le=this.ctx.transform.applyToPoint(new o(re,ce)),he=this.ctx.transform.applyToPoint(new o(Q,R));this.path.push({type:"qct",x1:he.x,y1:he.y,x:le.x,y:le.y}),this.ctx.lastPoint=new o(le.x,le.y)},A.prototype.bezierCurveTo=function(Q,R,re,ce,le,he){if(isNaN(le)||isNaN(he)||isNaN(Q)||isNaN(R)||isNaN(re)||isNaN(ce))throw pr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ye=this.ctx.transform.applyToPoint(new o(le,he)),Ae=this.ctx.transform.applyToPoint(new o(Q,R)),be=this.ctx.transform.applyToPoint(new o(re,ce));this.path.push({type:"bct",x1:Ae.x,y1:Ae.y,x2:be.x,y2:be.y,x:ye.x,y:ye.y}),this.ctx.lastPoint=new o(ye.x,ye.y)},A.prototype.arc=function(Q,R,re,ce,le,he){if(isNaN(Q)||isNaN(R)||isNaN(re)||isNaN(ce)||isNaN(le))throw pr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(he=!!he,!this.ctx.transform.isIdentity){var ye=this.ctx.transform.applyToPoint(new o(Q,R));Q=ye.x,R=ye.y;var Ae=this.ctx.transform.applyToPoint(new o(0,re)),be=this.ctx.transform.applyToPoint(new o(0,0));re=Math.sqrt(Math.pow(Ae.x-be.x,2)+Math.pow(Ae.y-be.y,2))}Math.abs(le-ce)>=2*Math.PI&&(ce=0,le=2*Math.PI),this.path.push({type:"arc",x:Q,y:R,radius:re,startAngle:ce,endAngle:le,counterclockwise:he})},A.prototype.arcTo=function(Q,R,re,ce,le){throw new Error("arcTo not implemented.")},A.prototype.rect=function(Q,R,re,ce){if(isNaN(Q)||isNaN(R)||isNaN(re)||isNaN(ce))throw pr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Q,R),this.lineTo(Q+re,R),this.lineTo(Q+re,R+ce),this.lineTo(Q,R+ce),this.lineTo(Q,R),this.lineTo(Q+re,R),this.lineTo(Q,R)},A.prototype.fillRect=function(Q,R,re,ce){if(isNaN(Q)||isNaN(R)||isNaN(re)||isNaN(ce))throw pr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!m.call(this)){var le={};this.lineCap!=="butt"&&(le.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(le.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Q,R,re,ce),this.fill(),le.hasOwnProperty("lineCap")&&(this.lineCap=le.lineCap),le.hasOwnProperty("lineJoin")&&(this.lineJoin=le.lineJoin)}},A.prototype.strokeRect=function(Q,R,re,ce){if(isNaN(Q)||isNaN(R)||isNaN(re)||isNaN(ce))throw pr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");b.call(this)||(this.beginPath(),this.rect(Q,R,re,ce),this.stroke())},A.prototype.clearRect=function(Q,R,re,ce){if(isNaN(Q)||isNaN(R)||isNaN(re)||isNaN(ce))throw pr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Q,R,re,ce))},A.prototype.save=function(Q){Q=typeof Q!="boolean"||Q;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,re=0;re<this.pdf.internal.getNumberOfPages();re++)this.pdf.setPage(re+1),this.pdf.internal.out("q");
vendor: 38,666 bytes, lines 1566-1572
1566if(this.pdf.setPage(R),Q){this.ctx.fontSize=this.pdf.internal.getFontSize();var ce=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=ce}},A.prototype.restore=function(Q){Q=typeof Q!="boolean"||Q;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,re=0;re<this.pdf.internal.getNumberOfPages();re++)this.pdf.setPage(re+1),this.pdf.internal.out("Q");this.pdf.setPage(R),Q&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},A.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var h=function(Q){var R,re,ce,le;if(Q.isCanvasGradient===!0&&(Q=Q.getColor()),!Q)return{r:0,g:0,b:0,a:0,style:Q};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Q))R=0,re=0,ce=0,le=0;else{var he=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Q);if(he!==null)R=parseInt(he[1]),re=parseInt(he[2]),ce=parseInt(he[3]),le=1;else if((he=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Q))!==null)R=parseInt(he[1]),re=parseInt(he[2]),ce=parseInt(he[3]),le=parseFloat(he[4]);else{if(le=1,typeof Q=="string"&&Q.charAt(0)!=="#"){var ye=new $re(Q);Q=ye.ok?ye.toHex():"#000000"}Q.length===4?(R=Q.substring(1,2),R+=R,re=Q.substring(2,3),re+=re,ce=Q.substring(3,4),ce+=ce):(R=Q.substring(1,3),re=Q.substring(3,5),ce=Q.substring(5,7)),R=parseInt(R,16),re=parseInt(re,16),ce=parseInt(ce,16)}}return{r:R,g:re,b:ce,a:le,style:Q}},m=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},b=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};A.prototype.fillText=function(Q,R,re,ce){if(isNaN(R)||isNaN(re)||typeof Q!="string")throw pr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(ce=isNaN(ce)?void 0:ce,!m.call(this)){var le=K(this.ctx.transform.rotation),he=this.ctx.transform.scaleX;M.call(this,{text:Q,x:R,y:re,scale:he,angle:le,align:this.textAlign,maxWidth:ce})}},A.prototype.strokeText=function(Q,R,re,ce){if(isNaN(R)||isNaN(re)||typeof Q!="string")throw pr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!b.call(this)){ce=isNaN(ce)?void 0:ce;var le=K(this.ctx.transform.rotation),he=this.ctx.transform.scaleX;M.call(this,{text:Q,x:R,y:re,scale:he,renderingMode:"stroke",angle:le,align:this.textAlign,maxWidth:ce})}},A.prototype.measureText=function(Q){if(typeof Q!="string")throw pr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var R=this.pdf,re=this.pdf.internal.scaleFactor,ce=R.internal.getFontSize(),le=R.getStringUnitWidth(Q)*ce/R.internal.scaleFactor;return new function(he){var ye=(he=he||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ye}}),this}({width:le*=Math.round(96*re/72*1e4)/1e4})},A.prototype.scale=function(Q,R){if(isNaN(Q)||isNaN(R))throw pr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var re=new l(Q,0,0,R,0,0);this.ctx.transform=this.ctx.transform.multiply(re)},A.prototype.rotate=function(Q){if(isNaN(Q))throw pr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var R=new l(Math.cos(Q),Math.sin(Q),-Math.sin(Q),Math.cos(Q),0,0);this.ctx.transform=this.ctx.transform.multiply(R)},A.prototype.translate=function(Q,R){if(isNaN(Q)||isNaN(R))throw pr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var re=new l(1,0,0,1,Q,R);this.ctx.transform=this.ctx.transform.multiply(re)},A.prototype.transform=function(Q,R,re,ce,le,he){if(isNaN(Q)||isNaN(R)||isNaN(re)||isNaN(ce)||isNaN(le)||isNaN(he))throw pr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ye=new l(Q,R,re,ce,le,he);this.ctx.transform=this.ctx.transform.multiply(ye)},A.prototype.setTransform=function(Q,R,re,ce,le,he){Q=isNaN(Q)?1:Q,R=isNaN(R)?0:R,re=isNaN(re)?0:re,ce=isNaN(ce)?1:ce,le=isNaN(le)?0:le,he=isNaN(he)?0:he,this.ctx.transform=new l(Q,R,re,ce,le,he)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};A.prototype.drawImage=function(Q,R,re,ce,le,he,ye,Ae,be){var Ee=this.pdf.getImageProperties(Q),ge=1,Ue=1,Ye=1,ae=1;ce!==void 0&&Ae!==void 0&&(Ye=Ae/ce,ae=be/le,ge=Ee.width/ce*Ae/ce,Ue=Ee.height/le*be/le),he===void 0&&(he=R,ye=re,R=0,re=0),ce!==void 0&&Ae===void 0&&(Ae=ce,be=le),ce===void 0&&Ae===void 0&&(Ae=Ee.width,be=Ee.height);var Le=this.ctx.transform.decompose(),st=K(Le.rotate.shx),ut=new l,He=(ut=(ut=(ut=ut.multiply(Le.translate)).multiply(Le.skew)).multiply(Le.scale)).applyToRectangle(new s(he-R*Ye,ye-re*ae,ce*ge,le*Ue));if(this.autoPaging){for(var ht,it=y.call(this,He),pt=[],Bt=0;Bt<it.length;Bt+=1)pt.indexOf(it[Bt])===-1&&pt.push(it[Bt]);B(pt);for(var gn=pt[0],zt=pt[pt.length-1],Ie=gn;Ie<zt+1;Ie++){this.pdf.setPage(Ie);var ze=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],at=Ie===1?this.posY+this.margin[0]:this.margin[0],Ze=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],At=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ft=Ie===1?0:Ze+(Ie-2)*At;if(this.ctx.clip_path.length!==0){var Ln=this.path;ht=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(ht,this.posX+this.margin[3],-ft+at+this.ctx.prevPageLastElemOffset),E.call(this,"fill",!0),this.path=Ln}var Gt=JSON.parse(JSON.stringify(He));Gt=x([Gt],this.posX+this.margin[3],-ft+at+this.ctx.prevPageLastElemOffset)[0];var Yt=(Ie>gn||Ie<zt)&&g.call(this);Yt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ze,At,null).clip().discardPath()),this.pdf.addImage(Q,"JPEG",Gt.x,Gt.y,Gt.w,Gt.h,null,null,st),Yt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(Q,"JPEG",He.x,He.y,He.w,He.h,null,null,st)};var y=function(Q,R,re){var ce=[];R=R||this.pdf.internal.pageSize.width,re=re||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var le=this.posY+this.ctx.prevPageLastElemOffset;switch(Q.type){default:case"mt":case"lt":ce.push(Math.floor((Q.y+le)/re)+1);break;case"arc":ce.push(Math.floor((Q.y+le-Q.radius)/re)+1),ce.push(Math.floor((Q.y+le+Q.radius)/re)+1);break;case"qct":var he=oe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Q.x1,Q.y1,Q.x,Q.y);ce.push(Math.floor((he.y+le)/re)+1),ce.push(Math.floor((he.y+he.h+le)/re)+1);break;case"bct":var ye=$(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);ce.push(Math.floor((ye.y+le)/re)+1),ce.push(Math.floor((ye.y+ye.h+le)/re)+1);break;case"rect":ce.push(Math.floor((Q.y+le)/re)+1),ce.push(Math.floor((Q.y+Q.h+le)/re)+1)}for(var Ae=0;Ae<ce.length;Ae+=1)for(;this.pdf.internal.getNumberOfPages()<ce[Ae];)v.call(this);return ce},v=function(){var Q=this.fillStyle,R=this.strokeStyle,re=this.font,ce=this.lineCap,le=this.lineWidth,he=this.lineJoin;this.pdf.addPage(),this.fillStyle=Q,this.strokeStyle=R,this.font=re,this.lineCap=ce,this.lineWidth=le,this.lineJoin=he},x=function(Q,R,re){for(var ce=0;ce<Q.length;ce++)switch(Q[ce].type){case"bct":Q[ce].x2+=R,Q[ce].y2+=re;case"qct":Q[ce].x1+=R,Q[ce].y1+=re;default:Q[ce].x+=R,Q[ce].y+=re}return Q},B=function(Q){return Q.sort(function(R,re){return R-re})},C=function(Q,R){var re=this.fillStyle,ce=this.strokeStyle,le=this.lineCap,he=this.lineWidth,ye=Math.abs(he*this.ctx.transform.scaleX),Ae=this.lineJoin;if(this.autoPaging){for(var be,Ee,ge=JSON.parse(JSON.stringify(this.path)),Ue=JSON.parse(JSON.stringify(this.path)),Ye=[],ae=0;ae<Ue.length;ae++)if(Ue[ae].x!==void 0)for(var Le=y.call(this,Ue[ae]),st=0;st<Le.length;st+=1)Ye.indexOf(Le[st])===-1&&Ye.push(Le[st]);for(var ut=0;ut<Ye.length;ut++)for(;this.pdf.internal.getNumberOfPages()<Ye[ut];)v.call(this);B(Ye);for(var He=Ye[0],ht=Ye[Ye.length-1],it=He;it<ht+1;it++){this.pdf.setPage(it),this.fillStyle=re,this.strokeStyle=ce,this.lineCap=le,this.lineWidth=ye,this.lineJoin=Ae;var pt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Bt=it===1?this.posY+this.margin[0]:this.margin[0],gn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],zt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ie=it===1?0:gn+(it-2)*zt;if(this.ctx.clip_path.length!==0){var ze=this.path;be=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(be,this.posX+this.margin[3],-Ie+Bt+this.ctx.prevPageLastElemOffset),E.call(this,Q,!0),this.path=ze}if(Ee=JSON.parse(JSON.stringify(ge)),this.path=x(Ee,this.posX+this.margin[3],-Ie+Bt+this.ctx.prevPageLastElemOffset),R===!1||it===0){var at=(it>He||it<ht)&&g.call(this);at&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],pt,zt,null).clip().discardPath()),E.call(this,Q,R),at&&this.pdf.restoreGraphicsState()}this.lineWidth=he}this.path=ge}else this.lineWidth=ye,E.call(this,Q,R),this.lineWidth=he},E=function(Q,R){if((Q!=="stroke"||R||!b.call(this))&&(Q==="stroke"||R||!m.call(this))){for(var re,ce,le=[],he=this.path,ye=0;ye<he.length;ye++){var Ae=he[ye];switch(Ae.type){case"begin":le.push({begin:!0});break;case"close":le.push({close:!0});break;case"mt":le.push({start:Ae,deltas:[],abs:[]});break;case"lt":var be=le.length;if(he[ye-1]&&!isNaN(he[ye-1].x)&&(re=[Ae.x-he[ye-1].x,Ae.y-he[ye-1].y],be>0)){for(;be>=0;be--)if(le[be-1].close!==!0&&le[be-1].begin!==!0){le[be-1].deltas.push(re),le[be-1].abs.push(Ae);break}}break;case"bct":re=[Ae.x1-he[ye-1].x,Ae.y1-he[ye-1].y,Ae.x2-he[ye-1].x,Ae.y2-he[ye-1].y,Ae.x-he[ye-1].x,Ae.y-he[ye-1].y],le[le.length-1].deltas.push(re);break;case"qct":var Ee=he[ye-1].x+2/3*(Ae.x1-he[ye-1].x),ge=he[ye-1].y+2/3*(Ae.y1-he[ye-1].y),Ue=Ae.x+2/3*(Ae.x1-Ae.x),Ye=Ae.y+2/3*(Ae.y1-Ae.y),ae=Ae.x,Le=Ae.y;re=[Ee-he[ye-1].x,ge-he[ye-1].y,Ue-he[ye-1].x,Ye-he[ye-1].y,ae-he[ye-1].x,Le-he[ye-1].y],le[le.length-1].deltas.push(re);break;case"arc":le.push({deltas:[],abs:[],arc:!0}),Array.isArray(le[le.length-1].abs)&&le[le.length-1].abs.push(Ae)}}ce=R?null:Q==="stroke"?"stroke":"fill";for(var st=!1,ut=0;ut<le.length;ut++)if(le[ut].arc)for(var He=le[ut].abs,ht=0;ht<He.length;ht++){var it=He[ht];it.type==="arc"?O.call(this,it.x,it.y,it.radius,it.startAngle,it.endAngle,it.counterclockwise,void 0,R,!st):V.call(this,it.x,it.y),st=!0}else if(le[ut].close===!0)this.pdf.internal.out("h"),st=!1;else if(le[ut].begin!==!0){var pt=le[ut].start.x,Bt=le[ut].start.y;q.call(this,le[ut].deltas,pt,Bt),st=!0}ce&&L.call(this,ce),R&&z.call(this)}},T=function(Q){var R=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,re=R*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Q-re;case"top":return Q+R-re;case"hanging":return Q+R-2*re;case"middle":return Q+R/2-re;default:return Q}},j=function(Q){return Q+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};A.prototype.createLinearGradient=function(){var Q=function(){};return Q.colorStops=[],Q.addColorStop=function(R,re){this.colorStops.push([R,re])},Q.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Q.isCanvasGradient=!0,Q},A.prototype.createPattern=function(){return this.createLinearGradient()},A.prototype.createRadialGradient=function(){return this.createLinearGradient()};var O=function(Q,R,re,ce,le,he,ye,Ae,be){for(var Ee=ee.call(this,re,ce,le,he),ge=0;ge<Ee.length;ge++){var Ue=Ee[ge];ge===0&&(be?F.call(this,Ue.x1+Q,Ue.y1+R):V.call(this,Ue.x1+Q,Ue.y1+R)),W.call(this,Q,R,Ue.x2,Ue.y2,Ue.x3,Ue.y3,Ue.x4,Ue.y4)}Ae?z.call(this):L.call(this,ye)},L=function(Q){switch(Q){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},z=function(){this.pdf.clip(),this.pdf.discardPath()},F=function(Q,R){this.pdf.internal.out(n(Q)+" "+r(R)+" m")},M=function(Q){var R;switch(Q.align){case"right":case"end":R="right";break;case"center":R="center";break;default:R="left"}var re,ce,le,he=this.pdf.getTextDimensions(Q.text),ye=T.call(this,Q.y),Ae=j.call(this,ye)-he.h,be=this.ctx.transform.applyToPoint(new o(Q.x,ye));if(this.autoPaging){var Ee=this.ctx.transform.decompose(),ge=new l;ge=(ge=(ge=ge.multiply(Ee.translate)).multiply(Ee.skew)).multiply(Ee.scale);for(var Ue=this.ctx.transform.applyToRectangle(new s(Q.x,ye,he.w,he.h)),Ye=ge.applyToRectangle(new s(Q.x,Ae,he.w,he.h)),ae=y.call(this,Ye),Le=[],st=0;st<ae.length;st+=1)Le.indexOf(ae[st])===-1&&Le.push(ae[st]);B(Le);for(var ut=Le[0],He=Le[Le.length-1],ht=ut;ht<He+1;ht++){this.pdf.setPage(ht);var it=ht===1?this.posY+this.margin[0]:this.margin[0],pt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Bt=this.pdf.internal.pageSize.height-this.margin[2],gn=Bt-this.margin[0],zt=this.pdf.internal.pageSize.width-this.margin[1],Ie=zt-this.margin[3],ze=ht===1?0:pt+(ht-2)*gn;if(this.ctx.clip_path.length!==0){var at=this.path;re=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(re,this.posX+this.margin[3],-1*ze+it),E.call(this,"fill",!0),this.path=at}var Ze=x([JSON.parse(JSON.stringify(Ye))],this.posX+this.margin[3],-ze+it+this.ctx.prevPageLastElemOffset)[0];Q.scale>=.01&&(ce=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ce*Q.scale),le=this.lineWidth,this.lineWidth=le*Q.scale);var At=this.autoPaging!=="text";if(At||Ze.y+Ze.h<=Bt){if(At||Ze.y>=it&&Ze.x<=zt){var ft=At?Q.text:this.pdf.splitTextToSize(Q.text,Q.maxWidth||zt-Ze.x)[0],Ln=x([JSON.parse(JSON.stringify(Ue))],this.posX+this.margin[3],-ze+it+this.ctx.prevPageLastElemOffset)[0],Gt=At&&(ht>ut||ht<He)&&g.call(this);Gt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ie,gn,null).clip().discardPath()),this.pdf.text(ft,Ln.x,Ln.y,{angle:Q.angle,align:R,renderingMode:Q.renderingMode}),Gt&&this.pdf.restoreGraphicsState()}}else Ze.y<Bt&&(this.ctx.prevPageLastElemOffset+=Bt-Ze.y);Q.scale>=.01&&(this.pdf.setFontSize(ce),this.lineWidth=le)}}else Q.scale>=.01&&(ce=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ce*Q.scale),le=this.lineWidth,this.lineWidth=le*Q.scale),this.pdf.text(Q.text,be.x+this.posX,be.y+this.posY,{angle:Q.angle,align:R,renderingMode:Q.renderingMode,maxWidth:Q.maxWidth}),Q.scale>=.01&&(this.pdf.setFontSize(ce),this.lineWidth=le)},V=function(Q,R,re,ce){re=re||0,ce=ce||0,this.pdf.internal.out(n(Q+re)+" "+r(R+ce)+" l")},q=function(Q,R,re){return this.pdf.lines(Q,R,re,null,null)},W=function(Q,R,re,ce,le,he,ye,Ae){this.pdf.internal.out([t(i(re+Q)),t(a(ce+R)),t(i(le+Q)),t(a(he+R)),t(i(ye+Q)),t(a(Ae+R)),"c"].join(" "))},ee=function(Q,R,re,ce){for(var le=2*Math.PI,he=Math.PI/2;R>re;)R-=le;var ye=Math.abs(re-R);ye<le&&ce&&(ye=le-ye);for(var Ae=[],be=ce?-1:1,Ee=R;ye>1e-5;){var ge=Ee+be*Math.min(ye,he);Ae.push(ne.call(this,Q,Ee,ge)),ye-=Math.abs(ge-Ee),Ee=ge}return Ae},ne=function(Q,R,re){var ce=(re-R)/2,le=Q*Math.cos(ce),he=Q*Math.sin(ce),ye=le,Ae=-he,be=ye*ye+Ae*Ae,Ee=be+ye*le+Ae*he,ge=4/3*(Math.sqrt(2*be*Ee)-Ee)/(ye*he-Ae*le),Ue=ye-ge*Ae,Ye=Ae+ge*ye,ae=Ue,Le=-Ye,st=ce+R,ut=Math.cos(st),He=Math.sin(st);return{x1:Q*Math.cos(R),y1:Q*Math.sin(R),x2:Ue*ut-Ye*He,y2:Ue*He+Ye*ut,x3:ae*ut-Le*He,y3:ae*He+Le*ut,x4:Q*Math.cos(re),y4:Q*Math.sin(re)}},K=function(Q){return 180*Q/Math.PI},oe=function(Q,R,re,ce,le,he){var ye=Q+.5*(re-Q),Ae=R+.5*(ce-R),be=le+.5*(re-le),Ee=he+.5*(ce-he),ge=Math.min(Q,le,ye,be),Ue=Math.max(Q,le,ye,be),Ye=Math.min(R,he,Ae,Ee),ae=Math.max(R,he,Ae,Ee);return new s(ge,Ye,Ue-ge,ae-Ye)},$=function(Q,R,re,ce,le,he,ye,Ae){var be,Ee,ge,Ue,Ye,ae,Le,st,ut,He,ht,it,pt,Bt,gn=re-Q,zt=ce-R,Ie=le-re,ze=he-ce,at=ye-le,Ze=Ae-he;for(Ee=0;Ee<41;Ee++)ut=(Le=(ge=Q+(be=Ee/40)*gn)+be*((Ye=re+be*Ie)-ge))+be*(Ye+be*(le+be*at-Ye)-Le),He=(st=(Ue=R+be*zt)+be*((ae=ce+be*ze)-Ue))+be*(ae+be*(he+be*Ze-ae)-st),Ee==0?(ht=ut,it=He,pt=ut,Bt=He):(ht=Math.min(ht,ut),it=Math.min(it,He),pt=Math.max(pt,ut),Bt=Math.max(Bt,He));return new s(Math.round(ht),Math.round(it),Math.round(pt-ht),Math.round(Bt-it))},X=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Q,R,re=(Q=this.ctx.lineDash,R=this.ctx.lineDashOffset,JSON.stringify({lineDash:Q,lineDashOffset:R}));this.prevLineDash!==re&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=re)}}})(Qt.API),(function(e){var t=function(o){var s,l,c,d,A,h,m,b,g,y;for(l=[],c=0,d=(o+=s="\0\0\0\0".slice(o.length%4||4)).length;d>c;c+=4)(A=(o.charCodeAt(c)<<24)+(o.charCodeAt(c+1)<<16)+(o.charCodeAt(c+2)<<8)+o.charCodeAt(c+3))!==0?(h=(A=((A=((A=((A=(A-(y=A%85))/85)-(g=A%85))/85)-(b=A%85))/85)-(m=A%85))/85)%85,l.push(h+33,m+33,b+33,g+33,y+33)):l.push(122);return(function(v,x){for(var B=x;B>0;B--)v.pop()})(l,s.length),String.fromCharCode.apply(String,l)+"~>"},n=function(o){var s,l,c,d,A,h=String,m="length",b=255,g="charCodeAt",y="slice",v="replace";for(o[y](-2),o=o[y](0,-2)[v](/\s/g,"")[v]("z","!!!!!"),c=[],d=0,A=(o+=s="uuuuu"[y](o[m]%5||5))[m];A>d;d+=5)l=52200625*(o[g](d)-33)+614125*(o[g](d+1)-33)+7225*(o[g](d+2)-33)+85*(o[g](d+3)-33)+(o[g](d+4)-33),c.push(b&l>>24,b&l>>16,b&l>>8,b&l);return(function(x,B){for(var C=B;C>0;C--)x.pop()})(c,s[m]),h.fromCharCode.apply(h,c)},r=function(o){return o.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(o){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),s.test(o)===!1)return"";for(var l="",c=0;c<o.length;c+=2)l+=String.fromCharCode("0x"+(o[c]+o[c+1]));return l},a=function(o){for(var s=new Uint8Array(o.length),l=o.length;l--;)s[l]=o.charCodeAt(l);return(s=QP(s)).reduce(function(c,d){return c+String.fromCharCode(d)},"")};e.processDataByFilters=function(o,s){var l=0,c=o||"",d=[];for(typeof(s=s||[])=="string"&&(s=[s]),l=0;l<s.length;l+=1)switch(s[l]){case"ASCII85Decode":case"/ASCII85Decode":c=n(c),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=i(c),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=r(c),d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=a(c),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[l]+'" is not implemented')}return{data:c,reverseChain:d.reverse().join(" ")}}})(Qt.API),(function(e){e.loadFile=function(t,n,r){return(function(i,a,o){a=a!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=(function(l,c,d){var A=new XMLHttpRequest,h=0,m=function(b){var g=b.length,y=[],v=String.fromCharCode;for(h=0;h<g;h+=1)y.push(v(255&b.charCodeAt(h)));return y.join("")};if(A.open("GET",l,!c),A.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(A.onload=function(){A.status===200?d(m(this.responseText)):d(void 0)}),A.send(null),c&&A.status===200)return m(A.responseText)})(i,a,o)}catch{}return s})(t,n,r)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile})(Qt.API),(function(e){function t(){return(on.html2canvas?Promise.resolve(on.html2canvas):iT(()=>Promise.resolve().then(()=>mqe),void 0)).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function n(){return(on.DOMPurify?Promise.resolve(on.DOMPurify):iT(()=>import("./purify.es-B9ZVCkUG.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var l=sr(s);return l==="undefined"?"undefined":l==="string"||s instanceof String?"string":l==="number"||s instanceof Number?"number":l==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":l==="object"?"object":"unknown"},i=function(s,l){var c=document.createElement(s);for(var d in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[d]=l.style[d];return c},a=function s(l,c){for(var d=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),A=l.firstChild;A;A=A.nextSibling)c!==!0&&A.nodeType===1&&A.nodeName==="SCRIPT"||d.appendChild(s(A,c));return l.nodeType===1&&(l.nodeName==="CANVAS"?(d.width=l.width,d.height=l.height,d.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(d.value=l.value),d.addEventListener("load",function(){d.scrollTop=l.scrollTop,d.scrollLeft=l.scrollLeft},!0)),d},o=function s(l){var c=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),d=s.convert(Promise.resolve(),c);return(d=d.setProgress(1,s,1,[s])).set(l)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(s,l){return s.__proto__=l||o.prototype,s},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(s,l){return this.then(function(){switch(l=l||(function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(s),l){case"string":return this.then(n).then(function(c){return this.set({src:i("div",{innerHTML:s,dompurify:c})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},o.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(l){var c=this.opt.jsPDF,d=this.opt.fontFaces,A=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,h=Object.assign({async:!0,allowTaint:!0,scale:A,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete h.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=d,d)for(var m=0;m<d.length;++m){var b=d[m],g=b.src.find(function(y){return y.format==="truetype"});g&&c.addFont(g.url,b.ref.name,b.ref.style)}return h.windowHeight=h.windowHeight||0,h.windowHeight=h.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):h.windowHeight,c.context2d.save(!0),l(this.prop.container,h)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(s,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(s,l):this.outputPdf(s,l)},o.prototype.outputPdf=function(s,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,l)})},o.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},o.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(s){if(r(s)!=="object")return this;var l=Object.keys(s||{}).map(function(c){if(c in o.template.prop)return function(){this.prop[c]=s[c]};switch(c){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[c]=s[c]}}},this);return this.then(function(){return this.thenList(l)})},o.prototype.get=function(s,l){return this.then(function(){var c=s in o.template.prop?this.prop[s]:this.opt[s];return l?l(c):c})},o.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},o.prototype.setPageSize=function(s){function l(c,d){return Math.floor(c*d/72*96)}return this.then(function(){(s=s||Qt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:l(s.inner.width,s.k),height:l(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},o.prototype.setProgress=function(s,l,c,d){return s!=null&&(this.progress.val=s),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(s,l,c,d){return this.setProgress(s?this.progress.val+s:null,l||null,c?this.progress.n+c:null,d?this.progress.stack.concat(d):null)},o.prototype.then=function(s,l){var c=this;return this.thenCore(s,l,function(d,A){return c.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(h){return c.updateProgress(null,d),h}).then(d,A).then(function(h){return c.updateProgress(1),h})})},o.prototype.thenCore=function(s,l,c){c=c||Promise.prototype.then;var d=this;s&&(s=s.bind(d)),l&&(l=l.bind(d));var A=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?d:o.convert(Object.assign({},d),Promise.prototype),h=c.call(A,s,l);return o.convert(h,d.__proto__)},o.prototype.thenExternal=function(s,l){return Promise.prototype.then.call(this,s,l)},o.prototype.thenList=function(s){var l=this;return s.forEach(function(c){l=l.thenCore(c)}),l},o.prototype.catch=function(s){s&&(s=s.bind(this));var l=Promise.prototype.catch.call(this,s);return o.convert(l,this)},o.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},o.prototype.error=function(s){return this.then(function(){throw new Error(s)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Qt.getPageSize=function(s,l,c){if(sr(s)==="object"){var d=s;s=d.orientation,l=d.unit||l,c=d.format||c}l=l||"mm",c=c||"a4",s=(""+(s||"P")).toLowerCase();var A,h=(""+c).toLowerCase(),m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(l){case"pt":A=1;break;case"mm":A=72/25.4;break;case"cm":A=72/2.54;break;case"in":A=72;break;case"px":A=.75;break;case"pc":case"em":A=12;break;case"ex":A=6;break;default:throw"Invalid unit: "+l}var b,g=0,y=0;if(m.hasOwnProperty(h))g=m[h][1]/A,y=m[h][0]/A;else try{g=c[1],y=c[0]}catch{throw new Error("Invalid format: "+c)}if(s==="p"||s==="portrait")s="p",y>g&&(b=y,y=g,g=b);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",g>y&&(b=y,y=g,g=b)}return{width:y,height:g,unit:l,k:A,orientation:s}},e.html=function(s,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(xT):null;var c=new o(l);return l.worker?c:c.from(s).doCallback()}})(Qt.API),Qt.API.addJS=function(e){var t,n,r=(function(i){for(var a="",o=0;o<i.length;o++){var s=i[o];if(s==="("||s===")"){for(var l=0,c=o-1;c>=0&&i[c]==="\\";c--)l++;a+=l%2==0?"\\"+s:s}else a+=s}return a})(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&n!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},(function(e){var t;e.events.push(["postPutResources",function(){var n=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=n.outline.render().split(/\r\n/),a=0;a<i.length;a++){var o=i[a],s=r.exec(o);if(s!=null){var l=s[1];n.internal.newObjectDeferredBegin(l,!1)}n.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,d=[];for(a=0;a<c;a++){var A=n.internal.newObject();d.push(A);var h=n.internal.getPageInfo(a+1);n.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var m=n.internal.newObject();for(n.internal.write("<< /Names [ "),a=0;a<d.length;a++)n.internal.write("(page_"+(a+1)+")"+d[a]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+m+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,i,a){var o={title:i,options:a,children:[]};return r==null&&(r=this.root),r.children.push(o),o},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<r.children.length;a++){var o=r.children[a];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(r)),a>0&&this.line("/Prev "+this.makeRef(r.children[a-1])),a<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[a+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var l=n.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<r.children.length;c++)this.renderItems(r.children[c])},n.outline.line=function(r){this.ctx.val+=r+`\r
1567`},n.outline.makeRef=function(r){return r.id+" 0 R"},n.outline.makeString=function(r){return"("+n.internal.pdfEscape(r)+")"},n.outline.objStart=function(r){this.ctx.val+=`\r
1568`+r.id+` 0 obj\r
1569<<\r
1570`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
1571endobj\r
1572`},n.outline.count_r=function(r,i){for(var a=0;a<i.children.length;a++)r.count++,this.count_r(r,i.children[a]);return r.count}}])})(Qt.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,a,o,s){var l,c=this.decode.DCT_DECODE,d=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=o||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,l=(function(A){for(var h,m=256*A.charCodeAt(4)+A.charCodeAt(5),b=A.length,g={width:0,height:0,numcomponents:1},y=4;y<b;y+=2){if(y+=m,t.indexOf(A.charCodeAt(y+1))!==-1){h=256*A.charCodeAt(y+5)+A.charCodeAt(y+6),g={width:256*A.charCodeAt(y+7)+A.charCodeAt(y+8),height:h,numcomponents:A.charCodeAt(y+9)};break}m=256*A.charCodeAt(y+2)+A.charCodeAt(y+3)}return g})(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),l.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}d={data:n,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:r,alias:i}}return d}})(Qt.API),Qt.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,a=BVe(e,{checkCrc:!0}),o=a.width,s=a.height,l=a.channels,c=a.palette,d=a.depth;i=c&&l===1?(function(O){for(var L=O.width,z=O.height,F=O.data,M=O.palette,V=O.depth,q=!1,W=[],ee=[],ne=void 0,K=!1,oe=0,$=0;$<M.length;$++){var X=jq(M[$],4),Q=X[0],R=X[1],re=X[2],ce=X[3];W.push(Q,R,re),ce!=null&&(ce===0?(oe++,ee.length<1&&ee.push($)):ce<255&&(K=!0))}if(K||oe>1){q=!0,ee=void 0;var le=L*z;ne=new Uint8Array(le);for(var he=new DataView(F.buffer),ye=0;ye<le;ye++){var Ae=BT(he,ye,V),be=jq(M[Ae],4)[3];ne[ye]=be}}else oe===0&&(ee=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:q?8:void 0,colorBytes:F,alphaBytes:ne,needSMask:q,palette:W,mask:ee}})(a):l===2||l===4?(function(O){for(var L=O.data,z=O.width,F=O.height,M=O.channels,V=O.depth,q=M===2?"DeviceGray":"DeviceRGB",W=M-1,ee=z*F,ne=W,K=ee*ne,oe=1*ee,$=Math.ceil(K*V/8),X=Math.ceil(oe*V/8),Q=new Uint8Array($),R=new Uint8Array(X),re=new DataView(L.buffer),ce=new DataView(Q.buffer),le=new DataView(R.buffer),he=!1,ye=0;ye<ee;ye++){for(var Ae=ye*M,be=0;be<ne;be++)Lz(ce,BT(re,Ae+be,V),ye*ne+be,V);var Ee=BT(re,Ae+ne,V);Ee<(1<<V)-1&&(he=!0),Lz(le,Ee,1*ye,V)}return{colorSpace:q,colorsPerPixel:W,sMaskBitsPerComponent:he?V:void 0,colorBytes:Q,alphaBytes:R,needSMask:he}})(a):(function(O){var L=O.data,z=O.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:z,colorsPerPixel:z==="DeviceGray"?1:3,colorBytes:L instanceof Uint16Array?(function(F){for(var M=F.length,V=new Uint8Array(2*M),q=new DataView(V.buffer,V.byteOffset,V.byteLength),W=0;W<M;W++)q.setUint16(2*W,F[W],!1);return V})(L):L,needSMask:!1}})(a);var A,h,m,b=i,g=b.colorSpace,y=b.colorsPerPixel,v=b.sMaskBitsPerComponent,x=b.colorBytes,B=b.alphaBytes,C=b.needSMask,E=b.palette,T=b.mask,j=null;return r!==Qt.API.image_compression.NONE&&typeof QP=="function"?(j=(function(O){var L;switch(O){case Qt.API.image_compression.FAST:L=11;break;case Qt.API.image_compression.MEDIUM:L=13;break;case Qt.API.image_compression.SLOW:L=14;break;default:L=12}return L})(r),A=this.decode.FLATE_DECODE,h="/Predictor ".concat(j," /Colors ").concat(y," /BitsPerComponent ").
vendor: 2,659 bytes, line 1572
1572concat(d," /Columns ").concat(o),e=Iz(x,Math.ceil(o*y*d/8),y,d,r),C&&(m=Iz(B,Math.ceil(o*v/8),1,v,r))):(A=void 0,h=void 0,e=x,C&&(m=B)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(m&&this.__addimage__.isArrayBuffer(m)||this.__addimage__.isArrayBufferView(m))&&(m=this.__addimage__.arrayBufferToBinaryString(m)),{alias:n,data:e,index:t,filter:A,decodeParameters:h,transparency:T,palette:E,sMask:m,predictor:j,width:o,height:s,bitsPerComponent:d,sMaskBitsPerComponent:v,colorSpace:g}}},(function(e){e.processGIF89A=function(t,n,r,i){var a=new zVe(t),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},d=new CT(100).encode(c,100);return e.processJPEG.call(this,d,n,r,i)},e.processGIF87A=e.processGIF89A})(Qt.API),Il.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Il.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(n){pr.log("bit decode error:"+n)}},Il.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>7-s&1];
vendor: 4,671 bytes, line 1572
1572this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}n!==0&&(this.pos+=4-n)}},Il.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=a>>4,l=15&a,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},Il.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},Il.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,l=(a>>10&t)/t*255|0,c=a>>15?255:0,d=r*this.width*4+4*i;this.data[d]=l,this.data[d+1]=s,this.data[d+2]=o,this.data[d+3]=c}this.pos+=e}},Il.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&n)/n*255|0,c=(o>>11)/t*255|0,d=i*this.width*4+4*a;this.data[d]=c,this.data[d+1]=l,this.data[d+2]=s,this.data[d+3]=255}this.pos+=e}},Il.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},Il.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},Il.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,n,r,i){var a=new Il(t,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new CT(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}})(Qt.API),Mz.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,n,r,i){var a=new Mz(t),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new CT(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}})(Qt.API),Qt.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,c=0;c<i;c+=4){var d=r[c],A=r[c+1],h=r[c+2],m=r[c+3];a[s++]=d,a[s++]=A,a[s++]=h,o[l++]=m}var b=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:b,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Qt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canad
1572a)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Yp=Qt.API,mx=Yp.getCharWidthsArray=function(e,t){var n,r,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,d=c.fof?c.fof:1,A=t.doKerning!==!1,h=0,m=e.length,b=0,g=s[0]||l,y=[];for(n=0;n<m;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?y.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+o*(1e3/a)||0)/1e3):(h=A&&sr(c[r])==="object"&&!isNaN(parseInt(c[r][b],10))?c[r][b]/d:0,y.push((s[r]||g)/l+h)),b=r;return y},Nz=Yp.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Yp.processArabic&&(e=Yp.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:mx.apply(this,arguments).reduce(function(a,o){return a+o},0)},Tz=function(e,t,n,r){for(var i=[],a=0,o=e.length,s=0;
vendor: 3,315 bytes, lines 1572-1574
1572a!==o&&s+t[a]<n;)s+=t[a],a++;i.push(e.slice(0,a));var l=a;for(s=0;a!==o;)s+t[a]>r&&(i.push(e.slice(l,a)),s=0,l=a),s+=t[a],a++;return l!==a&&i.push(e.slice(l,a)),i},_z=function(e,t,n){n||(n={});var r,i,a,o,s,l,c,d=[],A=[d],h=n.textIndent||0,m=0,b=0,g=e.split(" "),y=mx.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?g[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),x=[];g.map(function(C){(C=C.split(/\s*\n/)).length>1?x=x.concat(C.map(function(E,T){return(T&&E.length?`
1573`:"")+E})):x.push(C[0])}),g=x,l=Nz.apply(this,[v,n])}for(a=0,o=g.length;a<o;a++){var B=0;if(r=g[a],l&&r[0]==`
1574`&&(r=r.substr(1),B=1),h+m+(b=(i=mx.apply(this,[r,n])).reduce(function(C,E){return C+E},0))>t||B){if(b>t){for(s=Tz.apply(this,[r,i,t-(h+m),t]),d.push(s.shift()),d=[s.pop()];s.length;)A.push([s.shift()]);b=i.slice(r.length-(d[0]?d[0].length:0)).reduce(function(C,E){return C+E},0)}else d=[r];A.push(d),h=b+l,m=y}else d.push(r),h+=m+b,m=y}return c=l?function(C,E){return(E?v:"")+C.join(" ")}:function(C){return C.join(" ")},A.map(c)},Yp.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=(function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var A=this.internal.getFont(d.fontName,d.fontStyle),h="Unicode";return A.metadata[h]?{widths:A.metadata[h].widths||{0:1},kerning:A.metadata[h].kerning||{}}:{font:A.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(_z.apply(this,[r[s],o,a]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[n[a]]=t[a],i[t[a]]=n[a];var o=function(h){return"0x"+parseInt(h,10).toString(16)},s=e.__fontmetrics__.compress=function(h){var m,b,g,y,v=["{"];for(var x in h){if(m=h[x],isNaN(parseInt(x,10))?b="'"+x+"'":(x=parseInt(x,10),b=(b=o(x).slice(2)).slice(0,-1)+i[b.slice(-1)]),typeof m=="number")m<0?(g=o(m).slice(3),y="-"):(g=o(m).slice(2),y=""),g=y+g.slice(0,-1)+i[g.slice(-1)];else{if(sr(m)!=="object")throw new Error("Don't know what to do with value type "+sr(m)+".");g=s(m)}v.push(b+g)}return v.push("}"),v.join("")},l=e.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var m,b,g,y,v={},x=1,B=v,C=[],E="",T="",j=h.length-1,O=1;O<j;O+=1)(y=h[O])=="'"?m?(g=m.join(""),m=void 0):m=[]:m?m.push(y):y=="{"?(C.push([B,g]),B={},g=void 0):y=="}"?((b=C.pop())[0][b[1]]=B,g=void 0,B=b[0]):y=="-"?x=-1:g===void 0?r.hasOwnProperty(y)?(E+=r[y],g=parseInt(E,16)*x,x=1,E=""):E+=y:r.hasOwnProperty(y)?(T+=r[y],B[g]=parseInt(T,16)*x,x=1,g=void 0,T=""):T+=y;return v},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},A
vendor: 14,727 bytes, line 1574
1574={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(
vendor: 40,832 bytes, lines 1574-1602
1574h){var m=h.font,b=A.Unicode[m.postScriptName];b&&(m.metadata.Unicode={},m.metadata.Unicode.widths=b.widths,m.metadata.Unicode.kerning=b.kerning);var g=d.Unicode[m.postScriptName];g&&(m.metadata.Unicode.encoding=g,m.encoding=g.codePages[0])}])})(Qt.API),(function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(zx(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])})(Qt),Qt.API.addSvgAsImage=function(e,t,n,r,i,a,o,s){if(isNaN(t)||isNaN(n))throw pr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw pr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},A=this;return(on.canvg?Promise.resolve(on.canvg):iT(()=>import("./index.es-C3G6K6fq.js"),[])).catch(function(h){return Promise.reject(new Error("Could not load canvg: "+h))}).then(function(h){return h.default?h.default:h}).then(function(h){return h.fromString(c,e,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(h){return h.render(d)}).then(function(){A.addImage(l.toDataURL("image/jpeg",1),t,n,r,i,o,s)})},Qt.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},Qt.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,d=0,A=0;function h(b,g){var y,v=!1;for(y=0;y<b.length;y+=1)b[y]===g&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var m=s.length;for(A=0;A<m;A+=1)n[s[A]].value=n[s[A]].defaultValue,n[s[A]].explicitSet=!1}if(sr(e)==="object"){for(i in e)if(a=e[i],h(s,i)&&a!==void 0){if(n[i].type==="boolean"&&typeof a=="boolean")n[i].value=a;else if(n[i].type==="name"&&h(n[i].valueSet,a))n[i].value=a;else if(n[i].type==="integer"&&Number.isInteger(a))n[i].value=a;else if(n[i].type==="array"){for(c=0;c<a.length;c+=1)if(r=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(d=0;d<a[c].length;d+=1)typeof a[c][d]!="number"&&(r=!1);r===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var b,g=[];for(b in n)n[b].explicitSet===!0&&(n[b].type==="name"?g.push("/"+b+" /"+n[b].value):g.push("/"+b+" "+n[b].value));g.length!==0&&this.internal.write(`/ViewerPreferences
1575<<
1576`+g.join(`
1577`)+`
1578>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Qt.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",WVe),this.internal.events.subscribe("postPutResources",VVe)),this},(function(e){var t=e.API,n=t.pdfEscape16=function(a,o){for(var s,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],d=[""],A=0,h=a.length;A<h;++A){if(s=o.metadata.characterToGlyph(a.charCodeAt(A)),o.metadata.glyIdsUsed.push(s),o.metadata.toUnicode[s]=a.charCodeAt(A),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(o.metadata.widthOfGlyph(s),10)])),s=="0")return d.join("");s=s.toString(16),d.push(c[4-s.length],s)}return d.join("")},r=function(a){var o,s,l,c,d,A,h;for(d=`/CIDInit /ProcSet findresource begin
157912 dict begin
1580begincmap
1581/CIDSystemInfo <<
1582  /Registry (Adobe)
1583  /Ordering (UCS)
1584  /Supplement 0
1585>> def
1586/CMapName /Adobe-Identity-UCS def
1587/CMapType 2 def
15881 begincodespacerange
1589<0000><ffff>
1590endcodespacerange`,l=[],A=0,h=(s=Object.keys(a).sort(function(m,b){return m-b})).length;A<h;A++)o=s[A],l.length>=100&&(d+=`
1591`+l.length+` beginbfchar
1592`+l.join(`
1593`)+`
1594endbfchar`,l=[]),a[o]!==void 0&&a[o]!==null&&typeof a[o].toString=="function"&&(c=("0000"+a[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(d+=`
1595`+l.length+` beginbfchar
1596`+l.join(`
1597`)+`
1598endbfchar
1599`),d+`endcmap
1600CMapName currentdict /CMap defineresource pop
1601end
1602end`};t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,c=o.newObject,d=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var A=s.metadata.Unicode.widths,h=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),m="",b=0;b<h.length;b++)m+=String.fromCharCode(h[b]);var g=c();d({data:m,addLength1:!0,objectId:g}),l("endobj");var y=c();d({data:r(s.metadata.toUnicode),addLength1:!0,objectId:y}),l("endobj");var v=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+nm(s.fontName)),l("/FontFile2 "+g+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/Flags "+s.metadata.flags),l("/StemV "+s.metadata.stemV),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l(">>"),l("endobj");var x=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+nm(s.fontName)),l("/FontDescriptor "+v+" 0 R"),l("/W "+e.API.PDFObject.convert(A)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+s.encoding+")"),l(">>"),l(">>"),l("endobj"),s.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+y+" 0 R"),l("/BaseFont /"+nm(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+x+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]),t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,c=o.newObject,d=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var A=s.metadata.rawData,h="",m=0;m<A.length;m++)h+=String.fromCharCode(A[m]);var b=c();d({data:h,addLength1:!0,objectId:b}),l("endobj");var g=c();d({data:r(s.metadata.toUnicode),addLength1:!0,objectId:g}),l("endobj");var y=c();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+b+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+nm(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=c();for(var v=0;v<s.metadata.hmtx.widths.length;v++)s.metadata.hmtx.widths[v]=parseInt(s.metadata.hmtx.widths[v]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+g+" 0 R/BaseFont/"+nm(s.fontName)+"/FontDescriptor "+y+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]);var i=function(a){var o,s=a.text||"",l=a.x,c=a.y,d=a.options||{},A=a.mutex||{},h=A.pdfEscape,m=A.activeFontKey,b=A.fonts,g=m,y="",v=0,x="",B=b[g].encoding;if(b[g].encoding!=="Identity-H")return{text:s,x:l,y:c,options:d,mutex:A};for(x=s,g=m,Array.isArray(s)&&(x=s[0]),v=0;v<x.length;v+=1)b[g].metadata.hasOwnProperty("cmap")&&(o=b[g].metadata.cmap.unicode.codeMap[x[v].charCodeAt(0)]),o||x[v].charCodeAt(0)<256&&b[g].metadata.hasOwnProperty("Unicode")?y+=x[v]:y+="";var C="";return parseInt(g.slice(1))<14||B==="WinAnsiEncoding"?C=h(y,g).split("").map(function(E){return E.charCodeAt(0).toString(16)}).join(""):B==="Identity-H"&&(C=n(y,b[g])),A.isHex=!0,{text:C,x:l,y:c,options:d,mutex:A}};t.events.push(["postProcessText",function(a){var o=a.text||"",s=[],l={text:o,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(o)){var c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?s.push([i(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):s.push(i(Object.assign({},l,{text:o[c]})).text);a.text=s}else a.text=i(Object.assign({},l,{text:o})).text}])})(Qt),(function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,r){return t.call(this),this.internal.vFS[n]=r,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}})(Qt.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var i,a,o,s,l,c,d,A=t,h=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],m=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],b={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},g={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},y=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),x=!1,B=0;this.__bidiEngine__={};var C=function(F){var M=F.charCodeAt(),V=M>>8,q=g[V];return q!==void 0?A[256*q+(255&M)]:V===252||V===253?"AL":v.test(V)?"L":V===8?"R":"N"},E=function(F){for(var M,V=0;V<F.length;V++){if((M=C(F.charAt(V)))==="L")return!1;if(M==="R")return!0}return!1},T=function(F,M,V,q){var W,ee,ne,K,oe=M[q];switch(oe){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":x=!1;break;case"N":case"AN":break;case"EN":x&&(oe="AN");break;case"AL":x=!0,oe="R";break;case"WS":case"BN":oe="N";break;case"CS":q<1||q+1>=M.length||(W=V[q-1])!=="EN"&&W!=="AN"||(ee=M[q+1])!=="EN"&&ee!=="AN"?oe="N":x&&(ee="AN"),oe=ee===W?ee:"N";break;case"ES":oe=(W=q>0?V[q-1]:"B")==="EN"&&q+1<M.length&&M[q+1]==="EN"?"EN":"N";break;case"ET":if(q>0&&V[q-1]==="EN"){oe="EN";break}if(x){oe="N";break}for(ne=q+1,K=M.length;ne<K&&M[ne]==="ET";)ne++;oe=ne<K&&M[ne]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(K=M.length,ne=q+1;ne<K&&M[ne]==="NSM";)ne++;if(ne<K){var $=F[q],X=$>=1425&&$<=2303||$===64286;if(W=M[ne],X&&(W==="R"||W==="AL")){oe="R";break}}}oe=q<1||(W=M[q-1])==="B"?"N":V[q-1];break;case"B":x=!1,i=!0,oe=B;break;case"S":a=!0,oe="N"}return oe},j=function(F,M,V){var q=F.split("");return V&&O(q,V,{hiLevel:B}),q.reverse(),M&&M.reverse(),q.join("")},O=function(F,M,V){var q,W,ee,ne,K,oe=-1,$=F.length,X=0,Q=[],R=B?m:h,re=[];for(x=!1,i=!1,a=!1,W=0;W<$;W++)re[W]=C(F[W]);for(ee=0;ee<$;ee++){if(K=X,Q[ee]=T(F,re,Q,ee),q=240&(X=R[K][b[Q[ee]]]),X&=15,M[ee]=ne=R[X][5],q>0)if(q===16){for(W=oe;W<ee;W++)M[W]=1;oe=-1}else oe=-1;if(R[X][6])oe===-1&&(oe=ee);else if(oe>-1){for(W=oe;W<ee;W++)M[W]=ne;oe=-1}re[ee]==="B"&&(M[ee]=0),V.hiLevel|=ne}a&&(function(ce,le,he){for(var ye=0;ye<he;ye++)if(ce[ye]==="S"){le[ye]=B;for(var Ae=ye-1;Ae>=0&&ce[Ae]==="WS";Ae--)le[Ae]=B}})(re,M,$)},L=function(F,M,V,q,W){if(!(W.hiLevel<F)){if(F===1&&B===1&&!i)return M.reverse(),void(V&&V.reverse());for(var ee,ne,K,oe,$=M.length,X=0;X<$;){if(q[X]>=F){for(K=X+1;K<$&&q[K]>=F;)K++;for(oe=X,ne=K-1;oe<ne;oe++,ne--)ee=M[oe],M[oe]=M[ne],M[ne]=ee,V&&(ee=V[oe],V[oe]=V[ne],V[ne]=ee);X=K}X++}}},z=function(F,M,V){var q=F.split(""),W={hiLevel:B};return V||(V=[]),O(q,V,W),(function(ee,ne,K){if(K.hiLevel!==0&&d)for(var oe,$=0;$<ee.length;$++)ne[$]===1&&(oe=y.indexOf(ee[$]))>=0&&(ee[$]=y[oe+1])})(q,V,W),L(2,q,M,V,W),L(1,q,M,V,W),q.join("")};return this.__bidiEngine__.doBidiReorder=function(F,M,V){if((function(W,ee){if(ee)for(var ne=0;ne<W.length;ne++)ee[ne]=ne;s===void 0&&(s=E(W)),c===void 0&&(c=E(W))})(F,M),o||!l||c)if(o&&l&&s^c)B=s?1:0,F=j(F,M,V);else if(!o&&l&&c)B=s?1:0,F=z(F,M,V),F=j(F,M);else if(!o||s||l||c){if(o&&!l&&s^c)F=j(F,M),s?(B=0,F=z(F,M,V)):(B=1,F=z(F,M,V),F=j(F,M));else if(o&&s&&!l&&c)B=1,F=z(F,M,V),F=j(F,M);else if(!o&&!l&&s^c){var q=d;s?(B=1,F=z(F,M,V),B=0,d=!1,F=z(F,M,V),d=q):(B=0,F=z(F,M,V),F=j(F,M),B=1,d=!1,F=z(F,M,V),d=q,F=j(F,M))}}else B=0,F=z(F,M,V);else B=s?1:0,F=z(F,M,V);return F},this.__bidiEngine__.setOptions=function(F){F&&(o=F.isInputVisual,l=F.isOutputVisual,s=F.isInputRtl,c=F.isOutputRtl,d=F.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var i=r.text;r.x,r.y;var a=r.options||{};r.mutex,a.lang;var o=[];if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,n.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var s=0;for(o=[],s=0;s<i.length;s+=1)Object.prototype.toString.call(i[s])==="[object Array]"?o.push([n.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):o.push([n.doBidiReorder(i[s])]);r.text=o}else r.text=n.doBidiReorder(i);n.setOptions({isInputVisual:!0})}])})(Qt),Qt.API.TTFFont=(function(){function e(t){var n;if(this.rawData=t,n=this.contents=new HA(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new lWe(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new KVe(this.contents),this.head=new YVe(this),this.name=new tWe(this),this.cmap=new eie(this),this.toUnicode={},this.hhea=new XVe(this),this.maxp=new nWe(this),this.hmtx=new rWe(this),this.post=new ZVe(this),this.os2=new JVe(this),this.loca=new sWe(this),this.glyf=new iWe(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,n,r,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,s,l,c;for(c=[],o=0,s=(l=this.bbox).length;o<s;o++)t=l[o],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(n=i>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,r){var i,a,o,s;for(o=0,a=0,s=(t=""+t).length;0<=s?a<s:a>s;a=0<=s?++a:--a)i=t.charCodeAt(a),o+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/n)||0;return o*(n/1e3)},e.prototype.lineHeight=function(t,n){var r;return n==null&&(n=!1),r=n?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},e})();var ac,HA=(function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var n,r;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r[n]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(t){var n,r,i;for(i=[],n=0,r=t.length;0<=r?n<r:n>r;n=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(n)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,r,i,a,o,s,l;return t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^n)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^a)+65536*(255^o)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*n+1099511627776*r+4294967296*i+16777216*a+65536*o+256*s+l},e.prototype.writeLongLong=function(t){var n,r;return n=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,r;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n.push(this.readByte());return n},e.prototype.write=function(t){var n,r,i,a;for(a=[],r=0,i=t.length;r<i;r++)n=t[r],a.push(this.writeByte(n));return a},e})(),KVe=(function(){var e;function t(n){var r,i,a;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)r={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(n){var r,i,a,o,s,l,c,d,A,h,m,b,g;for(g in m=Object.keys(n).length,l=Math.log(2),A=16*Math.floor(Math.log(m)/l),o=Math.floor(A/l),d=16*m-A,(i=new HA).writeInt(this.scalarType),i.writeShort(m),i.writeShort(A),i.writeShort(o),i.writeShort(d),a=16*m,c=i.pos+a,s=null,b=[],n)for(h=n[g],i.writeString(g),i.writeInt(e(h)),i.writeInt(c),i.writeInt(h.length),b=b.concat(h),g==="head"&&(s=c),c+=h.length;c%4;)b.push(0),c++;return i.write(b),r=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(r),i.data},e=function(n){var r,i,a,o;for(n=tie.call(n);n.length%4;)n.push(0);for(a=new HA(n),i=0,r=0,o=n.length;r<o;r=r+=4)i+=a.readUInt32();return 4294967295&i},t})(),GVe={}.hasOwnProperty,ru=function(e,t){for(var n in t)GVe.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};ac=(function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e})();var YVe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return ru(e,ac),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var n;return(n=new HA).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},e})(),Uz=(function(){function e(t,n){var r,i,a,o,s,l,c,d,A,h,m,b,g,y,v,x,B;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),A=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(m=t.readUInt16(),h=m/2,t.pos+=6,a=(function(){var C,E;for(E=[],l=C=0;0<=h?C<h:C>h;l=0<=h?++C:--C)E.push(t.readUInt16());return E})(),t.pos+=2,g=(function(){var C,E;for(E=[],l=C=0;0<=h?C<h:C>h;l=0<=h?++C:--C)E.push(t.readUInt16());return E})(),c=(function(){var C,E;for(E=[],l=C=0;0<=h?C<h:C>h;l=0<=h?++C:--C)E.push(t.readUInt16());return E})(),d=(function(){var C,E;for(E=[],l=C=0;0<=h?C<h:C>h;l=0<=h?++C:--C)E.push(t.readUInt16());return E})(),i=(this.length-t.pos+this.offset)/2,s=(function(){var C,E;for(E=[],l=C=0;0<=i?C<i:C>i;l=0<=i?++C:--C)E.push(t.readUInt16());return E})(),l=v=0,B=a.length;v<B;l=++v)for(y=a[l],r=x=b=g[l];b<=y?x<=y:x>=y;r=b<=y?++x:--x)d[l]===0?o=r+c[l]:(o=s[d[l]/2+(r-b)-(h-l)]||0)!==0&&(o+=c[l]),this.codeMap[r]=65535&o}t.pos=A}return e.encode=function(t,n){var r,i,a,o,s,l,c,d,A,h,m,b,g,y,v,x,B,C,E,T,j,O,L,z,F,M,V,q,W,ee,ne,K,oe,$,X,Q,R,re,ce,le,he,ye,Ae,be,Ee,ge;switch(q=new HA,o=Object.keys(t).sort(function(Ue,Ye){return Ue-Ye}),n){case"macroman":for(g=0,y=(function(){var Ue=[];for(b=0;b<256;++b)Ue.push(0);return Ue})(),x={0:0},a={},W=0,oe=o.length;W<oe;W++)x[Ae=t[i=o[W]]]==null&&(x[Ae]=++g),a[i]={old:t[i],new:x[t[i]]},y[i]=x[t[i]];return q.writeUInt16(1),q.writeUInt16(0),q.writeUInt32(12),q.writeUInt16(0),q.writeUInt16(262),q.writeUInt16(0),q.write(y),{charMap:a,subtable:q.data,maxGlyphID:g+1};case"unicode":for(M=[],A=[],B=0,x={},r={},v=c=null,ee=0,$=o.length;ee<$;ee++)x[E=t[i=o[ee]]]==null&&(x[E]=++B),r[i]={old:E,new:x[E]},s=x[E]-i,v!=null&&s===c||(v&&A.push(v),M.push(i),c=s),v=i;for(v&&A.push(v),A.push(65535),M.push(65535),z=2*(L=M.length),O=2*Math.pow(Math.log(L)/Math.LN2,2),h=Math.log(O/2)/Math.LN2,j=2*L-O,l=[],T=[],m=[],b=ne=0,X=M.length;ne<X;b=++ne){if(F=M[b],d=A[b],F===65535){l.push(0),T.push(0);break}if(F-(V=r[F].new)>=32768)for(l.push(0),T.push(2*(m.length+L-b)),i=K=F;F<=d?K<=d:K>=d;i=F<=d?++K:--K)m.push(r[i].new);else l.push(V-F),T.push(0)}for(q.writeUInt16(3),q.writeUInt16(1),q.writeUInt32(12),q.writeUInt16(4),q.writeUInt16(16+8*L+2*m.length),q.writeUInt16(0),q.writeUInt16(z),q.writeUInt16(O),q.writeUInt16(h),q.writeUInt16(j),he=0,Q=A.length;he<Q;he++)i=A[he],q.writeUInt16(i);for(q.writeUInt16(0),ye=0,R=M.length;ye<R;ye++)i=M[ye],q.writeUInt16(i);for(be=0,re=l.length;be<re;be++)s=l[be],q.writeUInt16(s);for(Ee=0,ce=T.length;Ee<ce;Ee++)C=T[Ee],q.writeUInt16(C);for(ge=0,le=m.length;ge<le;ge++)g=m[ge],q.writeUInt16(g);return{charMap:r,subtable:q.data,maxGlyphID:B+1}}},e})(),eie=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return ru(e,ac),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,r,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=i?r<i:r>i;r=0<=i?++r:--r)n=new Uz(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var r,i;return n==null&&(n="macroman"),r=Uz.encode(t,n),(i=new HA).writeUInt16(0),i.writeUInt16(1),r.table=i.data.concat(r.subtable),r},e})(),XVe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return ru(e,ac),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e})(),JVe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return ru(e,ac),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=(function(){var n,r;for(r=[],n=0;n<10;++n)r.push(t.readByte());return r})(),this.charRange=(function(){var n,r;for(r=[],n=0;n<4;++n)r.push(t.readInt());return r})(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=(function(){var n,r;for(r=[],n=0;n<2;n=++n)r.push(t.readInt());return r})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e})(),ZVe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return ru(e,ac),e.prototype.tag="post",e.prototype.parse=function(t){var n,r,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(r=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)n=t.readByte(),i.push(this.names.push(t.readString(n)));return i;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var o,s,l;for(l=[],a=o=0,s=this.file.maxp.numGlyphs;0<=s?o<s:o>s;a=0<=s?++o:--o)l.push(t.readUInt32());return l}).call(this)}},e})(),eWe=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},tWe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return ru(e,ac),e.prototype.tag="name",e.prototype.parse=function(t){var n,r,i,a,o,s,l,c,d,A,h;for(t.pos=this.offset,t.readShort(),n=t.readShort(),s=t.readShort(),r=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+s+t.readShort()});for(l={},a=d=0,A=r.length;d<A;a=++d)i=r[a],t.pos=i.offset,c=t.readString(i.length),o=new eWe(c,i),l[h=i.nameID]==null&&(l[h]=[]),l[i.nameID].push(o);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfam
1602ily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e})(),nWe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return ru(e,ac),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e})(),rWe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return ru(e,ac),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,r,i,a,o,s,l;for(t.pos=this.offset,this.metrics=[],n=0,s=this.file.hhea.numberOfMetrics;0<=s?n<s:n>s;n=0<=s?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var c,d;for(d=[],n=c=0;0<=i?c<i:c>i;n=0<=i?++c:--c)d.push(t.readInt16());return d})(),this.widths=(function(){var c,d,A,h;for(h=[],c=0,d=(A=this.metrics).length;c<d;c++)a=A[c],h.push(a.advance);return h}).call(this),r=this.widths[this.widths.length-1],l=[],n=o=0;0<=i?o<i:o>i;n=0<=i?++o:--o)l.push(this.widths.push(r));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e})(),tie=[].slice,iWe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return ru(e,ac),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,r,i,a,o,s,l,c,d,A;return t in this.cache?this.cache[t]:(a=this.file.loca,n=this.file.contents,r=a.indexOf(t),(i=a.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+r,o=(s=new HA(n.read(i))).readShort(),c=s.readShort(),A=s.readShort(),l=s.readShort(),d=s.readShort(),this.cache[t]=o===-1?new oWe(s,c,A,l,d):new aWe(s,o,c,A,l,d),this.cache[t]))},e.prototype.encode=function(t,n,r){var i,a,o,s,l;for(o=[],a=[],s=0,l=n.length;s<l;s++)i=t[n[s]],a.push(o.length),i&&(o=o.concat(i.encode(r)));return a.push(o.length),{table:o,offsets:a}},e})(),aWe=(function(){function e(t,n,r,i,a,o){this.raw=t,this.numberOfContours=n,this.xMin=r,this.yMin=i,this.xMax=a,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),oWe=(function(){function e(t,n,r,i,a){var o,s;for(this.raw=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return e.prototype.encode=function(){var t,n,r;for(n=new HA(tie.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)n.pos=this.glyphOffsets[t];return n.data},e})(),sWe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return ru(e,ac),e.prototype.tag="loca",e.prototype.parse=function(t){var n,r;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var i,a;for(a=[],r=0,i=this.length;r<i;r+=2)a.push(2*t.readUInt16());return a}).call(this):(function(){var i,a;for(a=[],r=0,i=this.length;r<i;r+=4)a.push(t.readUInt32());return a}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]}
1602,e.prototype.encode=function(t,n){for(var r=new Uint32Array(this.offsets.length),i=0,a=0,o=0;o<r.length;++o)if(r[o]=i,a<n.length&&n[a]==o){++a,r[o]=i;var s=this.offsets[o],l=this.offsets[o+1]-s;l>0&&(i+=l)}for(var c=new Array(4*r.length),d=0;d<r.length;++d)c[4*d+3]=255&r[d],c[4*d+2]=(65280&r[d])>>8,c[4*d+1]=(16711680&r[d])>>16,c[4*d]=(4278190080&r[d])>>24;return c},e})(),lWe=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,r,i,a;for(n in i=this.font.cmap.tables[0].codeMap,t={},a=this.subset)r=a[n],t[n]=i[r];return t},e.prototype.glyphsFor=function(t){var n,r,i,a,o,s,l;for(i={},o=0,s=t.length;o<s;o++)i[a=t[o]]=this.font.glyf.glyphFor(a);for(a in n=[],i)(r=i[a])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(a in l=this.glyphsFor(n))r=l[a],i[a]=r;return i},e.prototype.encode=function(t,n){var r,i,a,o,s,l,c,d,A,h,m,b,g,y,v;for(i in r=eie.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),m={0:0},v=r.charMap)m[(l=v[i]).old]=l.new;for(b in h=r.maxGlyphID,o)b in m||(m[b]=h++);return d=(function(x){var B,C;for(B in C={},x)C[x[B]]=B;return C})(m),A=Object.keys(d).sort(function(x,B){return x-B}),g=(function(){var x,B,C;for(C=[],x=0,B=A.length;x<B;x++)s=A[x],C.push(d[s]);return C})(),a=this.font.glyf.encode(o,g,m),c=this.font.loca.encode(a.offsets,g),y={cmap:this.font.cmap.raw(),glyf:a.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(y["OS/2"]=this.font.os2.raw()),this.font.directory.encode(y)},e})();Qt.API.PDFObject=(function(){var e;function t(){}return e=function(n,r){return(Array(r+1).join("0")+n).slice(-r)},t.convert=function(n){var r,i,a,o;if(Array.isArray(n))return"["+(function(){var s,l,c;for(c=[],s=0,l=n.length;s<l;s++)r=n[s],c.push(t.convert(r));return c})().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n!=null&&n.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(i in a=["<<"],n)o=n[i],a.push("/"+i+" "+t.convert(o));return a.push(">>"),a.join(`
1603`)}return""+n},t})();async function nie(e){return ure(e,{useCORS:!0,scale:2,backgroundColor:"#ffffff"})}async function rie(e,t){const n=await nie(e),r=document.createElement("a");r.download=`${t}.png`,r.href=n.toDataURL("image/png"),r.click()}async function iie(e,t){const n=await nie(e),r=new Qt({orientation:n.width>=n.height?"landscape":"portrait",unit:"pt",format:[n.width/2,n.height/2]});r.addImage(n.toDataURL("image/png"),"PNG",0,0,n.width/2,n.height/2),r.save(`${t}.pdf`)}function cWe({module:e,kid:t=!1}){const[n,r]=_.useState(!1),[i,a]=_.useState(null),o=_.useRef(null),s=async l=>{if(!o.current)return;a(l);const d=`cyber-savvy-sa-${(e.section||e.title).toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}`;l==="pdf"?await iie(o.current,d):await rie(o.current,d),a(null)};return u.jsxs("div",{className:"mt-7",children:[u.jsx("p",{className:`text-xs font-bold uppercase tracking-widest mb-3 ${t?"text-yellow-600":"text-sky"}`,children:"Takeaway note"}),u.jsxs("button",{onClick:()=>
1603r(!0),className:`w-full text-left flex items-center gap-4 rounded-2xl p-5 transition-colors ${t?"bg-yellow-50 border-2 border-slate-200 hover:border-yellow-400":"bg-white/5 border border-white/10 hover:border-azure/60"}`,children:[u.jsx("span",{className:`w-12 h-12 rounded-full flex items-center justify-center flex-shrink-0 ${t?"bg-yellow-400":"bg-azure"}`,children:u.jsx(Zoe,{className:`w-5 h-5 ${t?"text-slate-900":"text-white"}`})}),u.jsxs("span",{className:"min-w-0",children:[u.jsx("span",{className:`block font-heading font-bold text-sm ${t?"text-slate-900":"text-white"}`,children:t?"Poster for the fridge":"One-page summary of this section"}),u.jsx("span",{className:`block text-xs mt-1 ${t?"text-slate-500":"text-white/40"}`,children:"A PDF you can save or print — the facts, the habits and the action"})]})]}),n&&u.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/80 overflow-y-auto p-4",children:u.jsxs("div",{className:"max-w-[860px] mx-auto my-6",children:[u.jsxs("div",{className:"flex justify-end gap-3 mb-4",children:[u.jsxs("button",{onClick:()=>s("pdf"),disabled:!!i,className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-azure text-white font-bold text-sm hover:bg-sky disabled:opacity-60",children:[i==="pdf"?u.jsx(rd,{className:"w-4 h-4 animate-spin"}):u.jsx(Fm,{className:"w-4 h-4"}),i==="pdf"?"Preparing…":"Download PDF"]}),u.jsxs("button",{onClick:()=>s("png"),disabled:!!i,className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-white/10 text-white font-bold text-sm hover:bg-white/20 disabled:opacity-60",children:[i==="png"?u.jsx(rd,{className:"w-4 h-4 animate-spin"}):u.jsx(Fm,{className:"w-4 h-4"}),"PNG"]}),u.jsxs("button",{onClick:()=>r(!1),className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-white text-slate-700 font-bold text-sm",children:[u.jsx(dd,{className:"w-4 h-4"})," Close"]})]}),u.jsx("div",{className:"rounded-2xl overflow-hidden shadow-2xl mx-auto",style:{width:820,maxWidth:"100%"},children:u.jsx(z8e,{module:e,kid:t,innerRef:o})})]})})]})}function uWe({step:e,kid:t,module:n,onDone:r}){var s,l;_.useEffect(()=>{r(!0,{scored:!1})},[]);const i=t?"text-slate-900":"text-white",a=t?"text-slate-700":"text-white/70",o=t?"bg-sky-50":"bg-white/5";return u.jsxs(_e.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},children:[u.jsxs("span",{className:`inline-flex items-center gap-2 text-xs font-bold uppercase tracking-widest ${t?"text-yellow-600":"text-sky"}`,children:[u.jsx(K0,{className:"w-3.5 h-3.5"})," ",e.eyebrow||"Overview"]}),u.jsx("h3",{className:`text-xl md:text-2xl font-heading font-extrabold mt-3 leading-snug ${i}`,children:e.title}),u.jsx("div",{className:"space-y-4 mt-5",children:e.body.map((c,d)=>u.jsx("p",{className:`text-sm md:text-[15px] leading-relaxed ${a}`,children:c},d))}),((s=e.facts)==null?void 0:s.length)>0&&u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 mt-7",children:e.facts.map((c,d)=>u.jsxs("div",{className:`rounded-2xl p-4 ${o}`,children:[u.jsx("p",{className:`text-2xl font-heading font-extrabold ${t?"text-slate-900":"text-white"}`,children:c.stat}),u.jsx("p",{className:`text-xs mt-1.5 leading-relaxed ${t?"text-slate-600":"text-white/50"}`,children:c.label})]},d))}),((l=e.takeaways)==null?void 0:l.length)>0&&u.jsxs("div",{className:`rounded-2xl p-5 mt-6 ${o}`,children:[u.jsxs("p",{className:`text-xs font-bold uppercase tracking-widest mb-3 flex items-center gap-1.5 ${t?"text-yellow-700":"text-sky"}`,children:[u.jsx(Rl,{className:"w-3.5 h-3.5"})," What this means for you"]}),u.jsx("ul",{className:"space-y-2",children:e.takeaways.map((c,d)=>u.jsxs("li",{className:`text-sm leading-relaxed flex gap-2.5 ${a}`,children:[u.jsx("span",{className:t?"text-yellow-500":"text-sky",children:"—"})," ",c]},d))})]}),u.jsx(q8e,{video:e.video,kid:t}),n&&u.jsx(cWe,{module:n,kid:t})]})}function PB({image:e,kid:t}){return e!=null&&e.url?u.jsxs("figure",{className:`mt-5 rounded-2xl overflow-hidden border ${t?"border-slate-200 bg-slate-50":"border-white/10 bg-white/5"}`,children:[u.jsx("img",{src:e.url,alt:e.caption||"",className:"w-full h-48 md:h-64 object-cover"}),e.caption&&u.jsx("figcaption",{className:`px-4 py-3 text-xs leading-relaxed ${t?"text-slate-600":"text-white/50"}`,children:e.caption})]}):null}function dWe({step:e,kid:t,onDone:n}){const[r,i]=_.useState(null),a=t?"text-slate-900":"text-white",o=s=>{r===null&&(i(s),n(s===e.answer))};return u.jsxs(_e.div,{initial:{opacity:0,y:14}
1603,animate:{opacity:1,y:0},children:[u.jsxs("span",{className:`inline-flex items-center gap-2 text-xs font-bold uppercase tracking-widest ${t?"text-yellow-600":"text-sky"}`,children:[u.jsx(Foe,{className:"w-3.5 h-3.5"})," Choose one"]}),u.jsx("h3",{className:`text-lg md:text-xl font-heading font-bold leading-snug mt-3 ${a}`,children:e.prompt}),u.jsx(PB,{image:e.image,kid:t}),u.jsx("div",{className:"space-y-3 mt-6",children:e.options.map((s,l)=>{const c=l===e.answer,d=r===l,A=r!==null,h=A?c?"bg-emerald-500/15 border-emerald-500":d?"bg-red-500/15 border-red-500":t?"bg-slate-50 border-slate-200 opacity-60":"bg-white/5 border-white/10 opacity-50":t?"bg-slate-50 border-slate-200 hover:border-yellow-400":"bg-white/5 border-white/10 hover:border-azure";return u.jsxs("button",{onClick:()=>o(l),disabled:A,className:`w-full text-left rounded-2xl border-2 p-4 transition-colors flex items-start gap-3 ${h}`,children:[A&&c&&u.jsx(bg,{className:"w-5 h-5 text-emerald-500 flex-shrink-0 mt-0.5"}),A&&d&&!c&&u.jsx(dd,{className:"w-5 h-5 text-red-500 flex-shrink-0 mt-0.5"}),u.jsx("span",{className:`text-sm font-medium ${a}`,children:s})]},l)})}),r!==null&&u.jsx(_e.div,{initial:{opacity:0}
1603,animate:{opacity:1},className:`rounded-2xl p-4 mt-6 ${t?"bg-yellow-50":"bg-white/5"}`,children:u.jsx("p",{className:`text-sm leading-relaxed ${t?"text-slate-700":"text-white/75"}`,children:e.why})})]})}function mo(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var AWe=typeof Symbol=="function"&&Symbol.observable||"@@observable",Rz=AWe,Qz=()=>Math.random().toString(36).substring(7).split("").join("."),fWe={INIT:`@@redux/INIT${Qz()}`,REPLACE:`@@redux/REPLACE${Qz()}`},Hz=fWe;function hWe(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function aie(e,t,n){if(typeof e!="function")throw new Error(mo(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(mo(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(mo(1));return n(aie)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,l=!1;function c(){o===a&&(o=new Map,a.forEach((y,v)=>{o.set(v,y)}))}function d(){if(l)throw new Error(mo(3));return i}function A(y){if(typeof y!="function")throw new Error(mo(4));if(l)throw new Error(mo(5));let v=!0;c();const x=s++;return o.set(x,y),function(){if(v){if(l)throw new Error(mo(6));v=!1,c(),o.delete(x),a=null}}}function h(y){if(!hWe(y))throw new Error(mo(7));if(typeof y.type>"u")throw new Error(mo(8));if(typeof y.type!="string")throw new Error(mo(17));if(l)throw new Error(mo(9));try{l=!0,i=r(i,y)}finally{l=!1}return(a=o).forEach(x=>{x()}),y}function m(y){if(typeof y!="function")throw new Error(mo(10));r=y,h({type:Hz.REPLACE})}function b(){const y=A;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(mo(11));function x(){const C=v;C.next&&C.next(d())}return x(),{unsubscribe:y(x)}},[Rz](){return this}}}return h({type:Hz.INIT}),{dispatch:h,subscribe:A,getState:d,replaceReducer:m,[Rz]:b}}function $z(e,t){return function(...n){return t(e.apply(this,n))}}function qz(e,t){if(typeof e=="function")return $z(e,t);if(typeof e!="object"||e===null)throw new Error(mo(16));const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=$z(i,t))}return n}function oie(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function pWe(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(mo(15))};const o={getState:i.getState,dispatch:(l,...c)=>a(l,...c)},s=e.map(l=>l(o));return a=oie(...s)(i.dispatch),{...i,dispatch:a}}}var kT={exports:{}},ET={};/**
1604 * @license React
1605 * use-sync-external-store-with-selector.production.js
1606 *
1607 * Copyright (c) Meta Platforms, Inc. and affiliates.
1608 *
1609 * This source code is licensed under the MIT license found in the
1610 * LICENSE file in the root directory of this source tree.
1611 */var zz;function mWe(){if(zz)return ET;zz=1;var e=V2();function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,s=e.useDebugValue;return ET.useSyncExternalStoreWithSelector=function(l,c,d,A,h){var m=i(null);if(m.current===null){var b={hasValue:!1,value:null};m.current=b}else b=m.current;m=o(function(){function y(E){if(!v){if(v=!0,x=E,E=A(E),h!==void 0&&b.hasValue){var T=b.value;if(h(T,E))return B=T}return B=E}if(T=B,n(x,E))return T;var j=A(E);return h!==void 0&&h(T,j)?(x=E,T):(x=E,B=j)}var v=!1,x,B,C=d===void 0?null:d;return[function(){return y(c())},C===null?void 0:function(){return y(C())}]},[c,d,A,h]);var g=r(l,m[0],m[1]);return a(function(){b.hasValue=!0,b.value=g},[g]),s(g),g},ET}var Vz;function gWe(){return Vz||(Vz=1,kT.exports=mWe()),kT.exports}gWe();var yWe=_.version.startsWith("19"),vWe=Symbol.for(yWe?"react.transitional.element":"react.element"),bWe=Symbol.for("react.portal"),wWe=Symbol.for("react.fragment"),xWe=Symbol.for("react.strict_mode"),SWe=Symbol.for("react.profiler"),BWe=Symbol.for("react.consumer"),CWe=Symbol.for("react.context"),sie=Symbol.for("react.forward_ref"),kWe=Symbol.for("react.suspense"),EWe=Symbol.for("react.suspense_list"),iF=Symbol.for("react.memo"),NWe=Symbol.for("react.lazy"),TWe=sie,_We=iF;function IWe(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case vWe:switch(e=e.type,e){case wWe:case SWe:case xWe:case kWe:case EWe:return e;default:switch(e=e&&e.$$typeof,e){case CWe:case sie:case NWe:case iF:return e;case BWe:return e;default:return t}}case bWe:return t}}}function PWe(e){return IWe(e)===iF}function jWe(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,l,c,d,A,h;function m(x,B){return l=x,c=B,d=e(l,c),A=t(r,c),h=n(d,A,c),s=!0,h}
vendor: 4,589 bytes, line 1611
1611function b(){return d=e(l,c),t.dependsOnOwnProps&&(A=t(r,c)),h=n(d,A,c),h}function g(){return e.dependsOnOwnProps&&(d=e(l,c)),t.dependsOnOwnProps&&(A=t(r,c)),h=n(d,A,c),h}function y(){const x=e(l,c),B=!o(x,d);return d=x,B&&(h=n(d,A,c)),h}function v(x,B){const C=!a(B,c),E=!i(x,l,B,c);return l=x,c=B,C&&E?b():C?g():E?y():h}return function(B,C){return s?v(B,C):m(B,C)}}function OWe(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const a=t(e,i),o=n(e,i),s=r(e,i);return jWe(a,o,s,e,i)}function FWe(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...a)=>t(i(...a)))}return n}function GP(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Wz(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function lie(e,t){return function(r,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=Wz(e);let c=a(s,l);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=Wz(c),c=a(s,l)),c},a}}function aF(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function LWe(e){return e&&typeof e=="object"?GP(t=>FWe(e,t)):e?typeof e=="function"?lie(e):aF(e,"mapDispatchToProps"):GP(t=>({dispatch:t}))}function DWe(e){return e?typeof e=="function"?lie(e):aF(e,"mapStateToProps"):GP(()=>({}))}function MWe(e,t,n){return{...n,...e,...t}}function UWe(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let a=!1,o;return function(l,c,d){const A=e(l,c,d);return a?i(A,o)||(o=A):(a=!0,o=A),o}}}function RWe(e){return e?typeof e=="function"?UWe(e):aF(e,"mergeProps"):()=>MWe}function QWe(e){e()}function HWe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){QWe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Kz={notify(){},get:()=>[]};function cie(e,t){let n,r=Kz,i=0,a=!1;function o(g){d();const y=r.subscribe(g);let v=!1;return()=>{v||(v=!0,y(),A())}}function s(){r.notify()}function l(){b.onStateChange&&b.onStateChange()}function c(){return a}function d(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=HWe())}function A(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Kz)}function h(){a||(a=!0,d())}function m(){a&&(a=!1,A())}const b={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:h,tryUnsubscribe:m,getListeners:()=>r};return b}var $We=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qWe=$We(),zWe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",VWe=zWe(),WWe=()=>qWe||VWe?_.useLayoutEffect:_.useEffect,M2=WWe();function Gz(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function NT(e,t){if(Gz(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Gz(e[n[i]],t[n[i]]))return!1;return!0}var KWe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},GWe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},YWe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uie={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},XWe={[TWe]:YWe,[_We]:uie};function Yz(e){return PWe(e)?uie:XWe[e.$$typeof]||KWe}var JWe=Object.defineProperty,ZWe=Object.getOwnPropertyNames,Xz=Object.getOwnPropertySymbols,eKe=Object.getOwnPropertyDescriptor,tKe=Object.getPrototypeOf,Jz=Object.prototype;function YP(e,t){if(typeof t!="string"){if(Jz){const a=tKe(t);a&&a!==Jz&&YP(e,a)}let n=ZWe(t);Xz&&(n=n.concat(Xz(t)));const r=Yz(e),i=Yz(t);for(let a=0;a<n.length;++a){const o=n[a];if(!GWe[o]&&!(i&&i[o])&&!(r&&r[o])){const s=eKe(t,o);try{JWe(e,o,s)}catch{}}}}return e}var TT=Symbol.for("react-redux-context"),_T=typeof globalThis<"u"?globalThis:{};function nKe(){if(!_.createContext)return{};const e=_T[TT]??(_T[TT]=new Map);let t=e.get(_.createContext);return t||(t=_.createContext(null),e.set(_.createContext,t)),t}
1611var die=nKe(),rKe=[null,null];function iKe(e,t,n){M2(()=>e(...t),n)}function aKe(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function oKe(e,t,n,r,i,a,o,s,l,c,d){if(!e)return()=>{};let A=!1,h=null;const m=()=>{if(A||!s.current)return;const g=t.getState();let y,v;try{y=r(g,i.current)}catch(x){v=x,h=x}v||(h=null),y===a.current?o.current||c():(a.current=y,l.current=y,o.current=!0,d())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(A=!0,n.tryUnsubscribe(),n.onStateChange=null,h)throw h}}function sKe(e,t){return e===t}function lKe(e,t,n,{pure:r,areStatesEqual:i=sKe,areOwnPropsEqual:a=NT,areStatePropsEqual:o=NT,areMergedPropsEqual:s=NT,forwardRef:l=!1,context:c=die}={}){const d=c,A=DWe(e),h=LWe(t),m=RWe(n),b=!!e;return y=>{const v=y.displayName||y.name||"Component",x=`Connect(${v})`,B={shouldHandleStateChanges:b,displayName:x,wrappedComponentName:v,WrappedComponent:y,initMapStateToProps:A,initMapDispatchToProps:h,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function C(j){const[O,L,z]=_.useMemo(()=>{const{reactReduxForwardedRef:ge,...Ue}=j;return[j.context,ge,Ue]},[j]),F=_.useMemo(()=>{let ge=d;return O!=null&&O.Consumer,ge},[O,d]),M=_.useContext(F),V=!!j.store&&!!j.store.getState&&!!j.store.dispatch,q=!!M&&!!M.store,W=V?j.store:M.store,ee=q?M.getServerState:W.getState,ne=_.useMemo(()=>OWe(W.dispatch,B),[W]),[K,oe]=_.useMemo(()=>{if(!b)return rKe;const ge=cie(W,V?void 0:M.subscription),Ue=ge.notifyNestedSubs.bind(ge);return[ge,Ue]},[W,V,M]),$=_.useMemo(()=>V?M:{...M,subscription:K},[V,M,K]),X=_.useRef(void 0),Q=_.useRef(z),R=_.useRef(void 0),re=_.useRef(!1),ce=_.useRef(!1),le=_.useRef(void 0);M2(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const he=_.useMemo(()=>()=>R.current&&z===Q.current?R.current:ne(W.getState(),z),[W,z]),ye=_.useMemo(()=>Ue=>K?oKe(b,W,K,ne,Q,X,re,ce,R,oe,Ue):()=>{},[K]);iKe(aKe,[Q,X,re,z,R,oe]);let Ae;
1611try{Ae=_.useSyncExternalStore(ye,he,ee?()=>ne(ee(),z):he)}catch(ge){throw le.current&&(ge.message+=`
1612The error may be correlated with this previous error:
1613${le.current.stack}
1614
1615`),ge}M2(()=>{le.current=void 0,R.current=void 0,X.current=Ae});const be=_.useMemo(()=>_.createElement(y,{...Ae,ref:L}),[L,y,Ae]);return _.useMemo(()=>b?_.createElement(F.Provider,{value:$},be):be,[F,be,$])}const T=_.memo(C);if(T.WrappedComponent=y,T.displayName=C.displayName=x,l){const O=_.forwardRef(function(z,F){return _.createElement(T,{...z,reactReduxForwardedRef:F})});return O.displayName=x,O.WrappedComponent=y,YP(O,y)}return YP(T,y)}}var Aie=lKe;function cKe(e){const{children:t,context:n,serverState:r,store:i}=e,a=_.useMemo(()=>{const l=cie(i);return{store:i,subscription:l,getServerState:r?()=>r:void 0}},[i,r]),o=_.useMemo(()=>i.getState(),[i]);M2(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const s=n||die;return _.createElement(s.Provider,{value:a},t)}var uKe=cKe;function dKe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function fie(e,t){var n=_.useState(function(){return{inputs:t,result:e()}})[0],r=_.useRef(!0),i=_.useRef(n),a=r.current||!!(t&&i.current.inputs&&dKe(t,i.current.inputs)),o=a?i.current:{inputs:t,result:e()};return _.useEffect(function(){r.current=!1,i.current=o},[o]),o.result}function AKe(e,t){return fie(function(){return e},t)}var Qn=fie,Ht=AKe,Kl=function(t){var n=t.top,r=t.right,i=t.bottom,a=t.left,o=r-a,s=i-n,l={top:n,right:r,bottom:i,left:a,width:o,height:s,x:a,y:n,center:{x:(r+a)/2,y:(i+n)/2}};return l},oF=function(t,n){return{top:t.top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right}}
1615,Zz=function(t,n){return{top:t.top+n.top,left:t.left+n.left,bottom:t.bottom-n.bottom,right:t.right-n.right}},fKe=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},IT={top:0,right:0,bottom:0,left:0},sF=function(t){var n=t.borderBox,r=t.margin,i=r===void 0?IT:r,a=t.border,o=a===void 0?IT:a,s=t.padding,l=s===void 0?IT:s,c=Kl(oF(n,i)),d=Kl(Zz(n,o)),A=Kl(Zz(d,l));return{marginBox:c,borderBox:Kl(n),paddingBox:d,contentBox:A,margin:i,border:o,padding:l}},Ws=function(t){var n=t.slice(0,-2),r=t.slice(-2);if(r!=="px")return 0;var i=Number(n);return isNaN(i)&&RA(),i},hKe=function(){return{x:window.pageXOffset,y:window.pageYOffset}},U2=function(t,n){var r=t.borderBox,i=t.border,a=t.margin,o=t.padding,s=fKe(r,n);return sF({borderBox:s,border:i,margin:a,padding:o})},R2=function(t,n){return n===void 0&&(n=hKe()),U2(t,n)},hie=function(t,n){var r={top:Ws(n.marginTop),right:Ws(n.marginRight),bottom:Ws(n.marginBottom),left:Ws(n.marginLeft)},i={top:Ws(n.paddingTop),right:Ws(n.paddingRight),bottom:Ws(n.paddingBottom),left:Ws(n.paddingLeft)},a={top:Ws(n.borderTopWidth),right:Ws(n.borderRightWidth),bottom:Ws(n.borderBottomWidth),left:Ws(n.borderLeftWidth)};return sF({borderBox:t,margin:r,padding:i,border:a})},pie=function(t){var n=t.getBoundingClientRect(),r=window.getComputedStyle(t);return hie(n,r)},eV=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function pKe(e,t){return!!(e===t||eV(e)&&eV(t))}function mKe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!pKe(e[n],t[n]))return!1;return!0}function da(e,t){t===void 0&&(t=mKe);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}var M0=function(t){var n=[],r=null,i=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n=s,!r&&(r=requestAnimationFrame(function(){r=null,t.apply(void 0,n)}))};return i.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},i};function mie(e,t){}mie.bind(null,"warn");mie.bind(null,"error");function jA(){}function gKe(e,t){return{...e,...t}}function il(e,t,n){const r=t.map(i=>{const a=gKe(n,i.options);return e.addEventListener(i.eventName,i.fn,a),function(){e.removeEventListener(i.eventName,i.fn,a)}});return function(){r.forEach(a=>{a()})}}const yKe="Invariant failed";class Q2 extends Error{}Q2.prototype.toString=function(){return this.message};function lt(e,t){throw new Q2(yKe)}class vKe extends me.Component{constructor(...t){super(...t),this.callbacks=null,this.unbind=jA,this.onWindowError=n=>{const r=this.getCallbacks();r.isDragging()&&r.tryAbort(),n.error instanceof Q2&&n.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=n=>{this.callbacks=n}}componentDidMount(){this.unbind=il(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof Q2){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const bKe=`
1616  Press space bar to start a drag.
1617  When dragging you can use the arrow keys to move the item around and escape to cancel.
1618  Some screen readers may require you to be in focus mode or to use your pass through key
1619`,H2=e=>e+1,wKe=e=>`
1620  You have lifted an item in position ${H2(e.source.index)}
1621`,gie=(e,t)=>{const n=e.droppableId===t.droppableId,r=H2(e.index),i=H2(t.index);return n?`
1622      You have moved the item from position ${r}
1623      to position ${i}
1624    `:`
1625    You have moved the item from position ${r}
1626    in list ${e.droppableId}
1627    to list ${t.droppableId}
1628    in position ${i}
1629  `},yie=(e,t,n)=>t.droppableId===n.droppableId?`
1630      The item ${e}
1631      has been combined with ${n.draggableId}`:`
1632      The item ${e}
1633      in list ${t.droppableId}
1634      has been combined with ${n.draggableId}
1635      in list ${n.droppableId}
1636    `,xKe=e=>{const t=e.destination;if(t)return gie(e.source,t);
1636const n=e.combine;return n?yie(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},tV=e=>`
1637  The item has returned to its starting position
1638  of ${H2(e.index)}
1639`,SKe=e=>{if(e.reason==="CANCEL")return`
1640      Movement cancelled.
1641      ${tV(e.source)}
1642    `;const t=e.destination,n=e.combine;return t?`
1643      You have dropped the item.
1644      ${gie(e.source,t)}
1645    `:n?`
1646      You have dropped the item.
1647      ${yie(e.draggableId,e.source,n)}
1648    `:`
1649    The item has been dropped while not over a drop area.
1650    ${tV(e.source)}
1651  `},Yx={dragHandleUsageInstructions:bKe,onDragStart:wKe,onDragUpdate:xKe,onDragEnd:SKe},Aa={x:0,y:0},Na=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),vs=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),OA=(e,t)=>e.x===t.x&&e.y===t.y,qg=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Lh=(e,t,n=0)=>e==="x"?{x:t,y:n}:{x:n,y:t},U0=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),nV=(e,t)=>Math.min(...t.map(n=>U0(e,n))),vie=e=>t=>({x:e(t.x),y:e(t.y)});var BKe=(e,t)=>{const n=Kl({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const bb=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),rV=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],CKe={top:0,right:0,bottom:0,left:0},kKe=(e,t)=>t?bb(e,t.scroll.diff.displacement):e,EKe=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,NKe=(e,t)=>t&&t.shouldClipSubject?BKe(t.pageMarginBox,e):Kl(e);var gg=({page:e,withPlaceholder:t,axis:n,frame:r})=>{const i=kKe(e.marginBox,r),a=EKe(i,n,t),o=NKe(a,r);return{page:e,withPlaceholder:t,active:o}},lF=(e,t)=>{e.frame||lt();const n=e.frame,r=vs(t,n.scroll.initial),i=qg(r),a={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}},o=gg({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return{...e,frame:a,subject:o}};const bie=da(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),wie=da(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),jB=da(e=>Object.values(e)),TKe=da(e=>Object.values(e));var zg=da((e,t)=>TKe(t).filter(r=>e===r.descriptor.droppableId).sort((r,i)=>r.descriptor.index-i.descriptor.index));function cF(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function OB(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var FB=da((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),_Ke=({isMovingForward:e,draggable:t,destination:n,insideDestination:r,previousImpact:i})=>{if(!n.isCombineEnabled||!cF(i))return null;function o(m){const b={type:"COMBINE",combine:{draggableId:m,droppableId:n.descriptor.id}};return{...i,at:b}}const s=i.displaced.all,l=s.length?s[0]:null;if(e)return l?o(l):null;const c=FB(t,r);if(!l){if(!c.length)return null;const m=c[c.length-1];return o(m.descriptor.id)}const d=c.findIndex(m=>m.descriptor.id===l);d===-1&&lt();const A=d-1;if(A<0)return null;const h=c[A];return o(h.descriptor.id)},Vg=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const xie={point:Aa,value:0},R0={invisible:{},visible:{},all:[]},IKe={displaced:R0,displacedBy:xie,at:null};var ol=(e,t)=>n=>e<=n&&n<=t,Sie=e=>{const t=ol(e.top,e.bottom),n=ol(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const a=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(a&&o)return!0;const l=r.top<e.top&&r.bottom>e.bottom,c=r.left<e.left&&r.right>e.right;return l&&c?!0:l&&o||c&&a}},PKe=e=>{const t=ol(e.top,e.bottom),n=ol(e.left,e.right);return r=>t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right)};const uF={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Bie={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var jKe=e=>t=>{const n=ol(t.top,t.bottom),r=ol(t.left,t.right);return i=>e===uF?n(i.top)&&n(i.bottom):r(i.left)&&r(i.right)};const OKe=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Aa;return bb(e,n)},FKe=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,LKe=(e,t,n)=>n(t)(e),dF=({target:e,destination:t,viewport:n,withDroppableDisplacement:r,isVisibleThroughFrameFn:i})=>{const a=r?OKe(e,t):e;return FKe(a,t,i)&&LKe(a,n,i)},DKe=e=>dF({...e,isVisibleThroughFrameFn:Sie}),Cie=e=>dF({...e,isVisibleThroughFrameFn:PKe}),MKe=e=>dF({...e,isVisibleThroughFrameFn:jKe(e.destination.axis)}),UKe=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;
1651const{invisible:r,visible:i}=t;if(r[e])return!1;const a=i[e];return a?a.shouldAnimate:!0};function RKe(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Kl(oF(n,r))}function Q0({afterDragging:e,destination:t,displacedBy:n,viewport:r,forceShouldAnimate:i,last:a}){return e.reduce(function(s,l){const c=RKe(l,n),d=l.descriptor.id;if(s.all.push(d),!DKe({target:c,destination:t,viewport:r,withDroppableDisplacement:!0}))return s.invisible[l.descriptor.id]=!0,s;const h=UKe(d,a,i),m={draggableId:d,shouldAnimate:h};return s.visible[d]=m,s},{all:[],visible:{},invisible:{}})}function QKe(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function iV({insideDestination:e,inHomeList:t,displacedBy:n,destination:r}){const i=QKe(e,{inHomeList:t});return{displaced:R0,displacedBy:n,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:i}}}}function $2({draggable:e,insideDestination:t,destination:n,viewport:r,displacedBy:i,last:a,index:o,forceShouldAnimate:s}){const l=Vg(e,n);if(o==null)return iV({insideDestination:t,inHomeList:l,displacedBy:i,destination:n});const c=t.find(b=>b.descriptor.index===o);if(!c)return iV({insideDestination:t,inHomeList:l,displacedBy:i,destination:n});const d=FB(e,t),A=t.indexOf(c),h=d.slice(A);return{displaced:Q0({afterDragging:h,destination:n,displacedBy:i,last:a,viewport:r.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:o}}}}function $A(e,t){return!!t.effected[e]}var HKe=({isMovingForward:e,destination:t,draggables:n,combine:r,afterCritical:i})=>{if(!t.isCombineEnabled)return null;const a=r.draggableId,s=n[a].descriptor.index;return $A(a,i)?e?s:s-1:e?s+1:s},$Ke=({isMovingForward:e,isInHomeList:t,insideDestination:n,location:r})=>{if(!n.length)return null;const i=r.index,a=e?i+1:i-1,o=n[0].descriptor.index,s=n[n.length-1].descriptor.index,l=t?s:s+1;return a<o||a>l?null:a},qKe=({isMovingForward:e,isInHomeList:t,draggable:n,draggables:r,destination:i,insideDestination:a,previousImpact:o,viewport:s,afterCritical:l})=>{const c=o.at;if(c||lt(),c.type==="REORDER"){const A=$Ke({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:a});return A==null?null:$2({draggable:n,insideDestination:a,destination:i,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:A})}const d=HKe({isMovingForward:e,destination:i,displaced:o.displaced,draggables:r,combine:c.combine,afterCritical:l});return d==null?null:$2({draggable:n,insideDestination:a,destination:i,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:d})},zKe=({displaced:e,afterCritical:t,combineWith:n,displacedBy:r})=>{const i=!!(e.visible[n]||e.invisible[n]);return $A(n,t)?i?Aa:qg(r.point):i?r.point:Aa},VKe=({afterCritical:e,impact:t,draggables:n})=>{const r=OB(t);r||lt();const i=r.draggableId,a=n[i].page.borderBox.center,o=zKe({displaced:t.displaced,afterCritical:e,combineWith:i,displacedBy:t.displacedBy});return Na(a,o)};const kie=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,WKe=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,AF=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,aV=({axis:e,moveRelativeTo:t,isMoving:n})=>Lh(e.line,t.marginBox[e.end]+kie(e,n),AF(e,t.marginBox,n)),oV=({axis:e,moveRelativeTo:t,isMoving:n})=>Lh(e.line,t.marginBox[e.start]-WKe(e,n),AF(e,t.marginBox,n)),KKe=({axis:e,moveInto:t,isMoving:n})=>Lh(e.line,t.contentBox[e.start]+kie(e,n),AF(e,t.contentBox,n));var GKe=({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i})=>{const a=zg(r.descriptor.id,n),o=t.page,s=r.axis;if(!a.length)return KKe({axis:s,moveInto:r.page,isMoving:o});const{displaced:l,displacedBy:c}=e,d=l.all[0];if(d){const h=n[d];if($A(d,i))return oV({axis:s,moveRelativeTo:h.page,isMoving:o});const m=U2(h.page,c.point);return oV({axis:s,moveRelativeTo:m,isMoving:o})}const A=a[a.length-1];if(A.descriptor.id===t.descriptor.id)return o.borderBox.center;if($A(A.descriptor.id,i)){const h=U2(A.page,qg(i.displacedBy.point));return aV({axis:s,moveRelativeTo:h,isMoving:o})}return aV({axis:s,moveRelativeTo:A.page,isMoving:o})},XP=(e,t)=>
1651{const n=e.frame;return n?Na(t,n.scroll.diff.displacement):t};const YKe=({impact:e,draggable:t,droppable:n,draggables:r,afterCritical:i})=>{const a=t.page.borderBox.center,o=e.at;return!n||!o?a:o.type==="REORDER"?GKe({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i}):VKe({impact:e,draggables:r,afterCritical:i})};var LB=e=>{const t=YKe(e),n=e.droppable;return n?XP(n,t):t},Eie=(e,t)=>{const n=vs(t,e.scroll.initial),r=qg(n);return{frame:Kl({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function sV(e,t){return e.map(n=>t[n])}function XKe(e,t){for(let n=0;n<t.length;n++){const r=t[n].visible[e];if(r)return r}return null}var JKe=({impact:e,viewport:t,destination:n,draggables:r,maxScrollChange:i})=>{const a=Eie(t,Na(t.scroll.current,i)),o=n.frame?lF(n,Na(n.frame.scroll.current,i)):n,s=e.displaced,l=Q0({afterDragging:sV(s.all,r),destination:n,displacedBy:e.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),c=Q0({afterDragging:sV(s.all,r),destination:o,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),d={},A={},h=[s,l,c];return s.all.forEach(b=>{const g=XKe(b,h);if(g){A[b]=g;return}d[b]=!0}),{...e,displaced:{all:s.all,invisible:d,visible:A}}},ZKe=(e,t)=>Na(e.scroll.diff.displacement,t),fF=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{const r=ZKe(n,e),i=vs(r,t.page.borderBox.center);return Na(t.client.borderBox.center,i)},Nie=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:r,withDroppableDisplacement:i,onlyOnMainAxis:a=!1})=>{const o=vs(n,e.page.borderBox.center),l={target:bb(e.page.borderBox,o),destination:t,withDroppableDisplacement:i,viewport:r};return a?MKe(l):Cie(l)},eGe=({isMovingForward:e,draggable:t,destination:n,draggables:r,previousImpact:i,viewport:a,previousPageBorderBoxCenter:o,previousClientSelection:s,afterCritical:l})=>{if(!n.isEnabled)return null;const c=zg(n.descriptor.id,r),d=Vg(t,n),A=_Ke({isMovingForward:e,draggable:t,destination:n,insideDestination:c,previousImpact:i})||qKe({isMovingForward:e,isInHomeList:d,draggable:t,draggables:r,destination:n,insideDestination:c,previousImpact:i,viewport:a,afterCritical:l});if(!A)return null;const h=LB({impact:A,draggable:t,droppable:n,draggables:r,afterCritical:l});if(Nie({draggable:t,destination:n,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:fF({pageBorderBoxCenter:h,draggable:t,viewport:a}),impact:A,scrollJumpRequest:null};const b=vs(h,o),g=JKe({impact:A,viewport:a,destination:n,draggables:r,maxScrollChange:b});return{clientSelection:s,impact:g,scrollJumpRequest:b}};const po=e=>{const t=e.subject.active;return t||lt(),t};var tGe=({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:r,viewport:i})=>{const a=n.subject.active;if(!a)return null;const o=n.axis,s=ol(a[o.start],a[o.end]),l=jB(r).filter(d=>d!==n).filter(d=>d.isEnabled).filter(d=>!!d.subject.active).filter(d=>Sie(i.frame)(po(d))).filter(d=>{const A=po(d);return e?a[o.crossAxisEnd]<A[o.crossAxisEnd]:A[o.crossAxisStart]<a[o.crossAxisStart]}).filter(d=>{const A=po(d),h=ol(A[o.start],A[o.end]);return s(A[o.start])||s(A[o.end])||h(a[o.start])||h(a[o.end])}).sort((d,A)=>{const h=po(d)[o.crossAxisStart],m=po(A)[o.crossAxisStart];return e?h-m:m-h}).filter((d,A,h)=>po(d)[o.crossAxisStart]===po(h[0])[o.crossAxisStart]);if(!l.length)return null;if(l.length===1)return l[0];const c=l.filter(d=>ol(po(d)[o.start],po(d)[o.end])(t[o.line]));return c.length===1?c[0]:c.length>1?c.sort((d,A)=>po(d)[o.start]-po(A)[o.start])[0]:l.sort((d,A)=>{const h=nV(t,rV(po(d))),m=nV(t,rV(po(A)));return h!==m?h-m:po(d)[o.start]-po(A)[o.start]})[0]};const lV=(e,t)=>{const n=e.page.borderBox.center;return $A(e.descriptor.id,t)?vs(n,t.displacedBy.point):n},nGe=(e,t)=>{const n=e.page.borderBox;return $A(e.descriptor.id,t)?bb(n,qg(t.displacedBy.point)):n};var rGe=({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:r,afterCritical:i})=>r.filter(o=>Cie({target:nGe(o,i),destination:n,viewport:t.frame,withDroppableDisplacement:!0})).sort((o,s)=>{const l=U0(e,XP(n,lV(o,i))),c=U0(e,XP(n,lV(s,i)));return l<c?-1:c<l?1:o.descriptor.index-s.descriptor.index})[0]||null,wb=da(function(t,n){const r=n[t.line];return{value:r,point:Lh(t.line,r)}});
1651const iGe=(e,t,n)=>{const r=e.axis;if(e.descriptor.mode==="virtual")return Lh(r.line,t[r.line]);const i=e.subject.page.contentBox[r.size],l=zg(e.descriptor.id,n).reduce((c,d)=>c+d.client.marginBox[r.size],0)+t[r.line]-i;return l<=0?null:Lh(r.line,l)},Tie=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),_ie=(e,t,n)=>{const r=e.frame;Vg(t,e)&&lt(),e.subject.withPlaceholder&&lt();const i=wb(e.axis,t.displaceBy).point,a=iGe(e,i,n),o={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const d=gg({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:d}}const s=a?Na(r.scroll.max,a):r.scroll.max,l=Tie(r,s),c=gg({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:l});return{...e,subject:c,frame:l}},aGe=e=>{const t=e.subject.withPlaceholder;t||lt();const n=e.frame;if(!n){const o=gg({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:o}}const r=t.oldFrameMaxScroll;r||lt();const i=Tie(n,r),a=gg({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return{...e,subject:a,frame:i}};var oGe=({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:n,draggable:r,draggables:i,destination:a,viewport:o,afterCritical:s})=>{if(!t){if(n.length)return null;const A={displaced:R0,displacedBy:xie,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},h=LB({impact:A,draggable:r,droppable:a,draggables:i,afterCritical:s}),m=Vg(r,a)?a:_ie(a,r,i);return Nie({draggable:r,destination:m,newPageBorderBoxCenter:h,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?A:null}const l=e[a.axis.line]<=t.page.borderBox.center[a.axis.line],c=(()=>{const A=t.descriptor.index;return t.descriptor.id===r.descriptor.id||l?A:A+1})(),d=wb(a.axis,r.displaceBy);return $2({draggable:r,insideDestination:n,destination:a,viewport:o,displacedBy:d,last:R0,index:c})},sGe=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:r,draggables:i,droppables:a,viewport:o,afterCritical:s})=>{const l=tGe({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:a,viewport:o});if(!l)return null;const c=zg(l.descriptor.id,i),d=rGe({pageBorderBoxCenter:t,viewport:o,destination:l,insideDestination:c,afterCritical:s}),A=oGe({previousPageBorderBoxCenter:t,destination:l,draggable:n,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:o,afterCritical:s});if(!A)return null;const h=LB({impact:A,draggable:n,droppable:l,draggables:i,afterCritical:s});return{clientSelection:fF({pageBorderBoxCenter:h,draggable:n,viewport:o}),impact:A,scrollJumpRequest:null}},Ss=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const lGe=(e,t)=>{const n=Ss(e);return n?t[n]:null};var cGe=({state:e,type:t})=>{const n=lGe(e.impact,e.dimensions.droppables),r=!!n,i=e.dimensions.droppables[e.critical.droppable.id],a=n||i,o=a.axis.direction,s=o==="vertical"&&(t==="MOVE_UP"||t==="MOVE_DOWN")||o==="horizontal"&&(t==="MOVE_LEFT"||t==="MOVE_RIGHT");if(s&&!r)return null;const l=t==="MOVE_DOWN"||t==="MOVE_RIGHT",c=e.dimensions.draggables[e.critical.draggable.id],d=e.current.page.borderBoxCenter,{draggables:A,droppables:h}=e.dimensions;return s?eGe({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:c,destination:a,draggables:A,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):sGe({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:c,isOver:a,draggables:A,droppables:h,viewport:e.viewport,afterCritical:e.afterCritical})};function Vf(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function Iie(e){const t=ol(e.top,e.bottom),n=ol(e.left,e.right);return function(i){return t(i.y)&&n(i.x)}}function uGe(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function dGe({pageBorderBox:e,draggable:t,candidates:n}){const r=t.page.borderBox.center,i=n.map(a=>{const o=a.axis,s=Lh(a.axis.line,e.center[o.line],a.page.borderBox.center[o.crossAxisLine]);return{id:a.descriptor.id,distance:U0(r,s)}}).sort((a,o)=>o.distance-a.distance);return i[0]?i[0].id:null}function AGe({pageBorderBox:e,draggable:t,droppables:n}){const r=jB(n).filter(i=>{if(!i.isEnabled)return!1;const a=i.subject.active;if(!a||!uGe(e,a))return!1;if(Iie(a)(e.center))return!0;const o=i.axis,s=a.center[o.crossAxisLine],l=e[o.crossAxisStart],c=e[o.crossAxisEnd],d=ol(a[o.crossAxisStart],a[o.crossAxisEnd]),A=d(l),h=d(c);return!A&&!h?!0:A?l<s:c>s});return r.length?r.length===1?r[0].descriptor.id:dGe({pageBorderBox:e,draggable:t,candidates:r}):null}const Pie=(e,t)=>Kl(bb(e,t));var fGe=(e,t)=>
1651{const n=e.frame;return n?Pie(t,n.scroll.diff.value):t};function jie({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}function hGe({draggable:e,closest:t,inHomeList:n}){return t?n&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var pGe=({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:n,insideDestination:r,last:i,viewport:a,afterCritical:o})=>{const s=n.axis,l=wb(n.axis,t.displaceBy),c=l.value,d=e[s.start],A=e[s.end],m=FB(t,r).find(g=>{const y=g.descriptor.id,v=g.page.borderBox.center[s.line],x=$A(y,o),B=jie({displaced:i,id:y});return x?B?A<=v:d<v-c:B?A<=v+c:d<v})||null,b=hGe({draggable:t,closest:m,inHomeList:Vg(t,n)});return $2({draggable:t,insideDestination:r,destination:n,viewport:a,last:i,displacedBy:l,index:b})};const mGe=4;var gGe=({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:r,insideDestination:i,afterCritical:a})=>{if(!r.isCombineEnabled)return null;const o=r.axis,s=wb(r.axis,e.displaceBy),l=s.value,c=t[o.start],d=t[o.end],h=FB(e,i).find(b=>{const g=b.descriptor.id,y=b.page.borderBox,x=y[o.size]/mGe,B=$A(g,a),C=jie({displaced:n.displaced,id:g});return B?C?d>y[o.start]+x&&d<y[o.end]-x:c>y[o.start]-l+x&&c<y[o.end]-l-x:C?d>y[o.start]+l+x&&d<y[o.end]+l-x:c>y[o.start]+x&&c<y[o.end]-x});return h?{displacedBy:s,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:h.descriptor.id,droppableId:r.descriptor.id}}}:null},Oie=({pageOffset:e,draggable:t,draggables:n,droppables:r,previousImpact:i,viewport:a,afterCritical:o})=>{const s=Pie(t.page.borderBox,e),l=AGe({pageBorderBox:s,draggable:t,droppables:r});if(!l)return IKe;const c=r[l],d=zg(c.descriptor.id,n),A=fGe(c,s);return gGe({pageBorderBoxWithDroppableScroll:A,draggable:t,previousImpact:i,destination:c,insideDestination:d,afterCritical:o})||pGe({pageBorderBoxWithDroppableScroll:A,draggable:t,destination:c,insideDestination:d,last:i.displaced,viewport:a,afterCritical:o})},hF=(e,t)=>({...e,[t.descriptor.id]:t});const yGe=({previousImpact:e,impact:t,droppables:n})=>{const r=Ss(e),i=Ss(t);if(!r||r===i)return n;const a=n[r];if(!a.subject.withPlaceholder)return n;const o=aGe(a);return hF(n,o)};var vGe=({draggable:e,draggables:t,droppables:n,previousImpact:r,impact:i})=>{const a=yGe({previousImpact:r,impact:i,droppables:n}),o=Ss(i);if(!o)return a;const s=n[o];if(Vg(e,s)||s.subject.withPlaceholder)return a;const l=_ie(s,e,t);return hF(a,l)},Lv=({state:e,clientSelection:t,dimensions:n,viewport:r,impact:i,scrollJumpRequest:a})=>{const o=r||e.viewport,s=n||e.dimensions,l=t||e.current.client.selection,c=vs(l,e.initial.client.selection),d={offset:c,selection:l,borderBoxCenter:Na(e.initial.client.borderBoxCenter,c)},A={selection:Na(d.selection,o.scroll.current),borderBoxCenter:Na(d.borderBoxCenter,o.scroll.current),offset:Na(d.offset,o.scroll.diff.value)},h={client:d,page:A};if(e.phase==="COLLECTING")return{...e,dimensions:s,viewport:o,current:h};const m=s.draggables[e.critical.draggable.id],b=i||Oie({pageOffset:A.offset,draggable:m,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:o,afterCritical:e.afterCritical}),g=vGe({draggable:m,impact:b,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:h,dimensions:{draggables:s.draggables,droppables:g},impact:b,viewport:o,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function bGe(e,t){return e.map(n=>t[n])}var Fie=({impact:e,viewport:t,draggables:n,destination:r,forceShouldAnimate:i})=>{const a=e.displaced,o=bGe(a.all,n),s=Q0({afterDragging:o,destination:r,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:i,last:a});return{...e,displaced:s}},Lie=({impact:e,draggable:t,droppable:n,draggables:r,viewport:i,afterCritical:a})=>{const o=LB({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:a});return fF({pageBorderBoxCenter:o,draggable:t,viewport:i})},Die=({state:e,dimensions:t,viewport:n})=>{e.movementMode!=="SNAP"&&lt();const r=e.impact,i=n||e.viewport,a=t||e.dimensions,{draggables:o,droppables:s}=a,l=o[e.critical.draggable.id],c=Ss(r);c||lt();const d=s[c],A=Fie({impact:r,viewport:i,destination:d,draggables:o}),h=Lie({impact:A,draggable:l,droppable:d,draggables:o,viewport:i,afterCritical:e.afterCritical});return Lv({impact:A,clientSelection:h,state:e,dimensions:a,viewport:i})},wGe=e=>({index:e.index,droppableId:e.droppableId}),Mie=({draggable:e,home:t,draggables:n,viewport:r})=>{const i=wb(t.axis,e.displaceBy),a=zg(t.descriptor.id,n),o=a.indexOf(e);o===-1&&lt();const s=a.slice(o+1),l=s.reduce((h,m)=>(h[m.descriptor.id]=!0,h),{}),c={inVirtualList:t.descriptor.mode==="virtual",displacedBy:i,effected:l};return{impact:{displaced:Q0({afterDragging:s,destination:t,displacedBy:i,last:null,viewport:r.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:wGe(e.descriptor)}},afterCritical:c}},xGe=(e,t)=>
1651({draggables:e.draggables,droppables:hF(e.droppables,t)}),SGe=({draggable:e,offset:t,initialWindowScroll:n})=>{const r=U2(e.client,t),i=R2(r,n);return{...e,placeholder:{...e.placeholder,client:r},client:r,page:i}},BGe=e=>{const t=e.frame;return t||lt(),t},CGe=({additions:e,updatedDroppables:t,viewport:n})=>{const r=n.scroll.diff.value;return e.map(i=>{const a=i.descriptor.droppableId,o=t[a],l=BGe(o).scroll.diff.value,c=Na(r,l);return SGe({draggable:i,offset:c,initialWindowScroll:n.scroll.initial})})},kGe=({state:e,published:t})=>{const n=t.modified.map(v=>{const x=e.dimensions.droppables[v.droppableId];return lF(x,v.scroll)}),r={...e.dimensions.droppables,...bie(n)},i=wie(CGe({additions:t.additions,updatedDroppables:r,viewport:e.viewport})),a={...e.dimensions.draggables,...i};t.removals.forEach(v=>{delete a[v]});const o={droppables:r,draggables:a},s=Ss(e.impact),l=s?o.droppables[s]:null,c=o.draggables[e.critical.draggable.id],d=o.droppables[e.critical.droppable.id],{impact:A,afterCritical:h}=Mie({draggable:c,home:d,draggables:a,viewport:e.viewport}),m=l&&l.isCombineEnabled?e.impact:A,b=Oie({pageOffset:e.current.page.offset,draggable:o.draggables[e.critical.draggable.id],draggables:o.draggables,droppables:o.droppables,previousImpact:m,viewport:e.viewport,afterCritical:h}),g={...e,phase:"DRAGGING",impact:b,onLiftImpact:A,dimensions:o,afterCritical:h,forceShouldAnimate:!1};return e.phase==="COLLECTING"?g:{...g,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}};const JP=e=>e.movementMode==="SNAP",PT=(e,t,n)=>{const r=xGe(e.dimensions,t);return!JP(e)||n?Lv({state:e,dimensions:r}):Die({state:e,dimensions:r})};function jT(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const cV={phase:"IDLE",completed:null,shouldFlush:!1};var EGe=(e=cV,t)=>{if(t.type==="FLUSH")return{...cV,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&lt();const{critical:n,clientSelection:r,viewport:i,dimensions:a,movementMode:o}=t.payload,s=a.draggables[n.draggable.id],l=a.droppables[n.droppable.id],c={selection:r,borderBoxCenter:s.client.borderBox.center,offset:Aa},d={client:c,page:{selection:Na(c.selection,i.scroll.initial),borderBoxCenter:Na(c.selection,i.scroll.initial),offset:Na(c.selection,i.scroll.diff.value)}},A=jB(a.droppables).every(g=>!g.isFixedOnPage),{impact:h,afterCritical:m}=Mie({draggable:s,home:l,draggables:a.draggables,viewport:i});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:o,dimensions:a,initial:d,current:d,isWindowScrollAllowed:A,impact:h,afterCritical:m,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&lt(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||lt(),kGe({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Vf(e)||lt();const{client:n}=t.payload;return OA(n,e.current.client.selection)?e:Lv({state:e,clientSelection:n,impact:JP(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return jT(e);Vf(e)||lt();const{id:n,newScroll:r}=t.payload,i=e.dimensions.droppables[n];if(!i)return e;const a=lF(i,r);return PT(e,a,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Vf(e)||lt();const{id:n,isEnabled:r}=t.payload,i=e.dimensions.droppables[n];i||lt(),i.isEnabled===r&&lt();const a={...i,isEnabled:r};return PT(e,a,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Vf(e)||lt();const{id:n,isCombineEnabled:r}=t.payload,i=e.dimensions.droppables[n];i||lt(),i.isCombineEnabled===r&&lt();const a={...i,isCombineEnabled:r};return PT(e,a,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Vf(e)||lt(),e.isWindowScrollAllowed||lt();const n=t.payload.newScroll;if(OA(e.viewport.scroll.current,n))return jT(e);const r=Eie(e.viewport,n);return JP(e)?Die({state:e,viewport:r}):Lv({state:e,viewport:r})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Vf(e))return e;const n=t.payload.maxScroll;if(OA(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&lt();const n=cGe({state:e,type:t.type});return n?Lv({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&lt(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:r,newHomeClientOffset:i}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||lt(),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:i,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};function tr(e,t){return e instanceof Object&&"type"in e&&e.type===t}const NGe=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),TGe=e=>({type:"LIFT",payload:e}),_Ge=e=>({type:"INITIAL_PUBLISH",payload:e}),IGe=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),PGe=()=>({type:"COLLECTION_STARTING",payload:null}),jGe=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),OGe=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),FGe=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Uie=e=>({type:"MOVE",payload:e}),LGe=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),DGe=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),MGe=()=>({type:"MOVE_UP",payload:null}),UGe=()=>({type:"MOVE_DOWN",payload:null}),RGe=()=>({type:"MOVE_RIGHT",payload:null}),QGe=()=>({type:"MOVE_LEFT",payload:null}),pF=()=>({type:"FLUSH",payload:null}),HGe=e=>({type:"DROP_ANIMATE",payload:e}),mF=e=>({type:"DROP_COMPLETE",payload:e}),Rie=e=>({type:"DROP",payload:e}),$Ge=e=>({type:"DROP_PENDING",payload:e}),Qie=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var qGe=e=>({getState:t,dispatch:n})=>r=>i=>{if(!tr(i,"LIFT")){r(i);return}const{id:a,clientSelection:o,movementMode:s}=i.payload,l=t();l.phase==="DROP_ANIMATING"&&n(mF({completed:l.completed})),t().phase!=="IDLE"&&lt(),n(pF()),n(NGe({draggableId:a,movementMode:s}));const d={draggableId:a,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:A,dimensions:h,viewport:m}=e.startPublishing(d);n(_Ge({critical:A,dimensions:h,clientSelection:o,movementMode:s,viewport:m}))},zGe=e=>()=>t=>n=>{tr(n,"INITIAL_PUBLISH")&&e.dragging(),tr(n,"DROP_ANIMATE")&&e.dropping(n.payload.completed.result.reason),(tr(n,"FLUSH")||tr(n,"DROP_COMPLETE"))&&e.resting(),t(n)};const gF={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},H0={opacity:{drop:0,combining:.7},scale:{drop:.75}},Hie={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Mf=`${Hie.outOfTheWay}s ${gF.outOfTheWay}`,Dv={fluid:`opacity ${Mf}`,snap:`transform ${Mf}, opacity ${Mf}`,drop:e=>{const t=`${e}s ${gF.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${Mf}`,placeholder:`height ${Mf}, width ${Mf}, margin ${Mf}`},uV=e=>OA(e,Aa)?void 0:`translate(${e.x}px, ${e.y}px)`,ZP={moveTo:uV,drop:(e,t)=>{const n=uV(e);if(n)return t?`${n} scale(${H0.scale.drop})`:n}},{minDropTime:e3,maxDropTime:$ie}=Hie,VGe=$ie-e3,dV=1500,WGe=.6;var KGe=({current:e,destination:t,reason:n})=>{const r=U0(e,t);if(r<=0)return e3;if(r>=dV)return $ie;const i=r/dV,a=e3+VGe*i,o=n==="CANCEL"?a*WGe:a;return Number(o.toFixed(2))},GGe=({impact:e,draggable:t,dimensions:n,viewport:r,afterCritical:i})=>{const{draggables:a,droppables:o}=n,s=Ss(e),l=s?o[s]:null,c=o[t.descriptor.droppableId],d=Lie({impact:e,draggable:t,draggables:a,afterCritical:i,droppable:l||c,viewport:r});return vs(d,t.client.borderBox.center)},YGe=({draggables:e,reason:t,lastImpact:n,home:r,viewport:i,onLiftImpact:a})=>!n.at||t!=="DROP"?{impact:Fie({draggables:e,impact:a,destination:r,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:n.at.type==="REORDER"?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:R0},didDropInsideDroppable:!0};const XGe=({getState:e,dispatch:t})=>n=>r=>{if(!tr(r,"DROP")){n(r);return}const i=e(),a=r.payload.reason;if(i.phase==="COLLECTING"){t($Ge({reason:a}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&lt(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||lt();
1651const s=i.critical,l=i.dimensions,c=l.draggables[i.critical.draggable.id],{impact:d,didDropInsideDroppable:A}=YGe({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),h=A?cF(d):null,m=A?OB(d):null,b={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:b,reason:a,mode:i.movementMode,destination:h,combine:m},y=GGe({impact:d,draggable:c,dimensions:l,viewport:i.viewport,afterCritical:i.afterCritical}),v={critical:i.critical,afterCritical:i.afterCritical,result:g,impact:d};if(!(!OA(i.current.client.offset,y)||!!g.combine)){t(mF({completed:v}));return}const B=KGe({current:i.current.client.offset,destination:y,reason:a});t(HGe({newHomeClientOffset:y,dropDuration:B,completed:v}))};var qie=()=>({x:window.pageXOffset,y:window.pageYOffset});function JGe(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function ZGe({onWindowScroll:e}){function t(){e(qie())}const n=M0(t),r=JGe(n);let i=jA;function a(){return i!==jA}function o(){a()&&lt(),i=il(window,[r])}function s(){a()||lt(),n.cancel(),i(),i=jA}return{start:o,stop:s,isActive:a}}const eYe=e=>tr(e,"DROP_COMPLETE")||tr(e,"DROP_ANIMATE")||tr(e,"FLUSH"),tYe=e=>{const t=ZGe({onWindowScroll:n=>{e.dispatch(LGe({newScroll:n}))}});return n=>r=>{!t.isActive()&&tr(r,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&eYe(r)&&t.stop(),n(r)}};var nYe=e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),i=a=>{t||n||(t=!0,e(a),clearTimeout(r))};return i.wasCalled=()=>t,i},rYe=()=>{const e=[],t=i=>{const a=e.findIndex(s=>s.timerId===i);a===-1&&lt();const[o]=e.splice(a,1);o.callback()};return{add:i=>{const a=setTimeout(()=>t(a)),o={timerId:a,callback:i};e.push(o)},flush:()=>
1651{if(!e.length)return;const i=[...e];e.length=0,i.forEach(a=>{clearTimeout(a.timerId),a.callback()})}}};const iYe=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,aYe=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,oYe=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},Wy=(e,t)=>{t()},gx=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function OT(e,t,n,r){if(!e){n(r(t));return}const i=nYe(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}var sYe=(e,t)=>{const n=rYe();let r=null;const i=(A,h)=>{r&&lt(),Wy("onBeforeCapture",()=>{const m=e().onBeforeCapture;m&&m({draggableId:A,mode:h})})},a=(A,h)=>{r&&lt(),Wy("onBeforeDragStart",()=>{const m=e().onBeforeDragStart;m&&m(gx(A,h))})},o=(A,h)=>{r&&lt();const m=gx(A,h);r={mode:h,lastCritical:A,lastLocation:m.source,lastCombine:null},n.add(()=>{Wy("onDragStart",()=>OT(e().onDragStart,m,t,Yx.onDragStart))})},s=(A,h)=>{const m=cF(h),b=OB(h);r||lt();const g=!oYe(A,r.lastCritical);g&&(r.lastCritical=A);const y=!iYe(r.lastLocation,m);y&&(r.lastLocation=m);const v=!aYe(r.lastCombine,b);if(v&&(r.lastCombine=b),!g&&!y&&!v)return;const x={...gx(A,r.mode),combine:b,destination:m};n.add(()=>{Wy("onDragUpdate",()=>OT(e().onDragUpdate,x,t,Yx.onDragUpdate))})},l=()=>{r||lt(),n.flush()},c=A=>{r||lt(),r=null,Wy("onDragEnd",()=>OT(e().onDragEnd,A,t,Yx.onDragEnd))};return{beforeCapture:i,beforeStart:a,start:o,update:s,flush:l,drop:c,abort:()=>{if(!r)return;const A={...gx(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};c(A)}}},lYe=(e,t)=>{const n=sYe(e,t);return r=>i=>a=>{if(tr(a,"BEFORE_INITIAL_CAPTURE")){n.beforeCapture(a.payload.draggableId,a.payload.movementMode);return}if(tr(a,"INITIAL_PUBLISH")){const s=a.payload.critical;n.beforeStart(s,a.payload.movementMode),i(a),n.start(s,a.payload.movementMode);return}if(tr(a,"DROP_COMPLETE")){const s=a.payload.completed.result;n.flush(),i(a),n.drop(s);return}if(i(a),tr(a,"FLUSH")){n.abort();return}const o=r.getState();o.phase==="DRAGGING"&&n.update(o.critical,o.impact)}};const cYe=e=>t=>n=>{if(!tr(n,"DROP_ANIMATION_FINISHED")){t(n);return}const r=e.getState();r.phase!=="DROP_ANIMATING"&&lt(),e.dispatch(mF({completed:r.completed}))},uYe=e=>{let t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return i=>a=>{if((tr(a,"FLUSH")||tr(a,"DROP_COMPLETE")||tr(a,"DROP_ANIMATION_FINISHED"))&&r(),i(a),!tr(a,"DROP_ANIMATE"))return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(Qie())}};n=requestAnimationFrame(()=>{n=null,t=il(window,[o])})}};var dYe=e=>()=>t=>n=>{(tr(n,"DROP_COMPLETE")||tr(n,"FLUSH")||tr(n,"DROP_ANIMATE"))&&e.stopPublishing(),t(n)},AYe=e=>{let t=!1;return()=>n=>r=>{if(tr(r,"INITIAL_PUBLISH")){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(tr(r,"FLUSH")){t=!1,e.tryRestoreFocusRecorded();return}if(tr(r,"DROP_COMPLETE")){t=!1;const i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const fYe=e=>tr(e,"DROP_COMPLETE")||tr(e,"DROP_ANIMATE")||tr(e,"FLUSH");var hYe=e=>t=>n=>r=>{if(fYe(r)){e.stop(),n(r);return}if(tr(r,"INITIAL_PUBLISH")){n(r);const i=t.getState();i.phase!=="DRAGGING"&&lt(),e.start(i);return}n(r),e.scroll(t.getState())};const pYe=e=>t=>n=>{if(t(n),!tr(n,"PUBLISH_WHILE_DRAGGING"))return;const r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(Rie({reason:r.reason})))},mYe=oie;var gYe=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:r,announce:i,autoScroller:a})=>aie(EGe,mYe(pWe(zGe(n),dYe(e),qGe(e),XGe,cYe,uYe,pYe,hYe(a),tYe,AYe(t),lYe(r,i))));const FT=()=>({additions:{},removals:{},modified:{}});function yYe({registry:e,callbacks:t}
1651){let n=FT(),r=null;const i=()=>{r||(t.collectionStarting(),r=requestAnimationFrame(()=>{r=null;const{additions:l,removals:c,modified:d}=n,A=Object.keys(l).map(b=>e.draggable.getById(b).getDimension(Aa)).sort((b,g)=>b.descriptor.index-g.descriptor.index),h=Object.keys(d).map(b=>{const y=e.droppable.getById(b).callbacks.getScrollWhileDragging();return{droppableId:b,scroll:y}}),m={additions:A,removals:Object.keys(c),modified:h};n=FT(),t.publish(m)}))};return{add:l=>{const c=l.descriptor.id;n.additions[c]=l,n.modified[l.descriptor.droppableId]=!0,n.removals[c]&&delete n.removals[c],i()},remove:l=>{const c=l.descriptor;n.removals[c.id]=!0,n.modified[c.droppableId]=!0,n.additions[c.id]&&delete n.additions[c.id],i()},stop:()=>{r&&(cancelAnimationFrame(r),r=null,n=FT())}}}var zie=({scrollHeight:e,scrollWidth:t,height:n,width:r})=>{const i=vs({x:t,y:e},{x:r,y:n});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Vie=()=>{const e=document.documentElement;return e||lt(),e},Wie=()=>{const e=Vie();return zie({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},vYe=()=>{const e=qie(),t=Wie(),n=e.y,r=e.x,i=Vie(),a=i.clientWidth,o=i.clientHeight,s=r+a,l=n+o;return{frame:Kl({top:n,left:r,right:s,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:Aa,displacement:Aa}}}},bYe=({critical:e,scrollOptions:t,registry:n})=>{const r=vYe(),i=r.scroll.current,a=e.droppable,o=n.droppable.getAllByType(a.type).map(d=>d.callbacks.getDimensionAndWatchScroll(i,t)),s=n.draggable.getAllByType(e.draggable.type).map(d=>d.getDimension(i));return{dimensions:{draggables:wie(s),droppables:bie(o)},critical:e,viewport:r}};function AV(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var wYe=(e,t)=>{let n=null;const r=yYe({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=(h,m)=>{e.droppable.exists(h)||lt(),n&&t.updateDroppableIsEnabled({id:h,isEnabled:m})},a=(h,m)=>{n&&(e.droppable.exists(h)||lt(),t.updateDroppableIsCombineEnabled({id:h,isCombineEnabled:m}))},o=(h,m)=>{n&&(e.droppable.exists(h)||lt(),t.updateDroppableScroll({id:h,newScroll:m}))},s=(h,m)=>{n&&e.droppable.getById(h).callbacks.scroll(m)},l=()=>{if(!n)return;r.stop();const h=n.critical.droppable;e.droppable.getAllByType(h.type).forEach(m=>m.callbacks.dragStopped()),n.unsubscribe(),n=null},c=h=>{n||lt();const m=n.critical.draggable;h.type==="ADDITION"&&AV(e,m,h.value)&&r.add(h.value),h.type==="REMOVAL"&&AV(e,m,h.value)&&r.remove(h.value)};return{updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:a,scrollDroppable:s,updateDroppableScroll:o,startPublishing:h=>{n&&lt();const m=e.draggable.getById(h.draggableId),b=e.droppable.getById(m.descriptor.droppableId),g={draggable:m.descriptor,droppable:b.descriptor},y=e.subscribe(c);return n={critical:g,unsubscribe:y},bYe({critical:g,registry:e,scrollOptions:h.scrollOptions})},stopPublishing:l}},Kie=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",xYe=e=>{window.scrollBy(e.x,e.y)};const SYe=da(e=>jB(e).filter(t=>!(!t.isEnabled||!t.frame))),BYe=(e,t)=>SYe(t).find(r=>(r.frame||lt(),Iie(r.frame.pageMarginBox)(e)))||null;var CYe=({center:e,destination:t,droppables:n})=>{if(t){const i=n[t];return i.frame?i:null}return BYe(e,n)};const $0={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var kYe=(e,t,n=()=>$0)=>{const r=n(),i=e[t.size]*r.startFromPercentage,a=e[t.size]*r.maxScrollAtPercentage;return{startScrollingFrom:i,maxScrollValueAt:a}},Gie=({startOfRange:e,endOfRange:t,current:n})=>{const r=t-e;return r===0?0:(n-e)/r},yF=1,EYe=(e,t,n=()=>$0)=>{const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return yF;const a=1-Gie({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(a);return Math.ceil(o)}
1651,NYe=(e,t,n)=>{const r=n(),i=r.durationDampening.accelerateAt,a=r.durationDampening.stopDampeningAt,o=t,s=a,c=Date.now()-o;if(c>=a)return e;if(c<i)return yF;const d=Gie({startOfRange:i,endOfRange:s,current:c}),A=e*r.ease(d);return Math.ceil(A)},fV=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{const a=EYe(e,t,i);return a===0?0:r?Math.max(NYe(a,n,i),yF):a},hV=({container:e,distanceToEdges:t,dragStartTime:n,axis:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const o=kYe(e,r,a);return t[r.end]<t[r.start]?fV({distanceToEdge:t[r.end],thresholds:o,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a}):-1*fV({distanceToEdge:t[r.start],thresholds:o,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a})},TYe=({container:e,subject:t,proposedScroll:n})=>{const r=t.height>e.height,i=t.width>e.width;return!i&&!r?n:i&&r?null:{x:i?0:n.x,y:r?0:n.y}};const _Ye=vie(e=>e===0?0:e);var Yie=({dragStartTime:e,container:t,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const o={top:r.y-t.top,right:t.right-r.x,bottom:t.bottom-r.y,left:r.x-t.left},s=hV({container:t,distanceToEdges:o,dragStartTime:e,axis:uF,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),l=hV({container:t,distanceToEdges:o,dragStartTime:e,axis:Bie,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),c=_Ye({x:l,y:s});if(OA(c,Aa))return null;const d=TYe({container:t,subject:n,proposedScroll:c});return d?OA(d,Aa)?null:d:null};const IYe=vie(e=>e===0?0:e>0?1:-1),vF=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return({current:t,max:n,change:r})=>{const i=Na(t,r),a={x:e(i.x,n.x),y:e(i.y,n.y)};return OA(a,Aa)?null:a}})(),Xie=({max:e,current:t,change:n})=>{const r={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},i=IYe(n),a=vF({max:r,current:t,change:i});return!a||i.x!==0&&a.x===0||i.y!==0&&a.y===0},bF=(e,t)=>Xie({current:e.scroll.current,max:e.scroll.max,change:t}),PYe=(e,t)=>{if(!bF(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return vF({current:r,max:n,change:t})},wF=(e,t)=>{const n=e.frame;return n?Xie({current:n.scroll.current,max:n.scroll.max,change:t}):!1},jYe=(e,t)=>{const n=e.frame;return!n||!wF(e,t)?null:vF({current:n.scroll.current,max:n.scroll.max,change:t})};var OYe=({viewport:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const o=Yie({dragStartTime:r,container:e.frame,subject:t,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return o&&bF(e,o)?o:null},FYe=({droppable:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const o=e.frame;if(!o)return null;const s=Yie({dragStartTime:r,container:o.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return s&&wF(e,s)?s:null},pV=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:r,scrollDroppable:i,getAutoScrollerOptions:a})=>{const o=e.current.page.borderBoxCenter,l=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const A=e.viewport,h=OYe({dragStartTime:t,viewport:A,subject:l,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});if(h){r(h);return}}const c=CYe({center:o,destination:Ss(e.impact),droppables:e.dimensions.droppables});if(!c)return;const d=FYe({dragStartTime:t,droppable:c,subject:l,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});d&&i(c.descriptor.id,d)},LYe=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=()=>$0})=>{const r=M0(e),i=M0(t);let a=null;const o=c=>{a||lt();const{shouldUseTimeDampening:d,dragStartTime:A}=a;pV({state:c,scrollWindow:r,scrollDroppable:i,dragStartTime:A,shouldUseTimeDampening:d,getAutoScrollerOptions:n})};return{start:c=>{a&&lt();const d=Date.now();let A=!1;const h=()=>{A=!0};pV({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:h,scrollDroppable:h,getAutoScrollerOptions:n}),a={dragStartTime:d,shouldUseTimeDampening:A},A&&o(c)},stop:()=>{a&&(r.cancel(),i.cancel(),a=null)},scroll:o}},DYe=({move:e,scrollDroppable:t,scrollWindow:n})=>{const r=(s,l)=>{const c=Na(s.current.client.selection,l);e({client:c})},i=(s,l)=>{if(!wF(s,l))return l;const c=jYe(s,l);if(!c)return t(s.descriptor.id,l),null;const d=vs(l,c);return t(s.descriptor.id,d),vs(l,d)},a=(s,l,c)=>{if(!s||!bF(l,c))return c;const d=PYe(l,c);if(!d)return n(c),null;const A=vs(c,d);return n(A),vs(c,A)};return s=>{const l=s.scrollJumpRequest;if(!l)return;const c=Ss(s.impact);c||lt();const d=i(s.dimensions.droppables[c],l);if(!d)return;const A=s.viewport,h=a(s.isWindowScrollAllowed,A,d);h&&r(s,h)}},MYe=({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:r})=>{const i=LYe({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:r}),a=DYe({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:l=>{if(!(r().disabled||l.phase!=="DRAGGING")){if(l.movementMode==="FLUID"){i.scroll(l);return}l.scrollJumpRequest&&a(l)}},start:i.start,stop:i.stop}};const yg="data-rfd",vg=(()=>{const e=`${yg}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),t3=(()=>{const e=`${yg}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),UYe=(()=>{const e=`${yg}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),mV={contextId:`${yg}-scroll-container-context-id`},RYe=e=>t=>`[${t}="${e}"]`,Ky=(e,t)=>e.map(n=>{const r=n.styles[t];return r?`${n.selector} { ${r} }`:""}).join(" "),QYe="pointer-events: none;";var HYe=e=>{const t=RYe(e),n=(()=>{const s=`
1652      cursor: -webkit-grab;
1653      cursor: grab;
1654    `;return{selector:t(vg.contextId),styles:{always:`
1655          -webkit-touch-callout: none;
1656          -webkit-tap-highlight-color: rgba(0,0,0,0);
1657          touch-action: manipulation;
1658        `,resting:s,dragging:QYe,dropAnimating:s}}})(),r=(()=>{const s=`
1659      transition: ${Dv.outOfTheWay};
1660    `;return{selector:t(t3.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}})(),i={selector:t(UYe.contextId),styles:{always:"overflow-anchor: n
1660one;"}},o=[r,n,i,{selector:"body",styles:{dragging:`
1661        cursor: grabbing;
1662        cursor: -webkit-grabbing;
1663        user-select: none;
1664        -webkit-user-select: none;
1665        -moz-user-select: none;
1666        -ms-user-select: none;
1667        overflow-anchor: none;
1668      `}}];return{always:Ky(o,"always"),resting:Ky(o,"resting"),dragging:Ky(o,"dragging"),dropAnimating:Ky(o,"dropAnimating"),userCancel:Ky(o,"userCancel")}};const Bs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?_.useLayoutEffect:_.useEffect,LT=()=>{const e=document.querySelector("head");return e||lt(),e},gV=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function $Ye(e,t){const n=Qn(()=>HYe(e),[e]),r=_.useRef(null),i=_.useRef(null),a=Ht(da(A=>{const h=i.current;h||lt(),h.textContent=A}),[]),o=Ht(A=>{const h=r.current;h||lt(),h.textContent=A},[]);Bs(()=>{!r.current&&!i.current||lt();const A=gV(t),h=gV(t);return r.current=A,i.current=h,A.setAttribute(`${yg}-always`,e),h.setAttribute(`${yg}-dynamic`,e),LT().appendChild(A),LT().appendChild(h),o(n.always),a(n.resting),()=>{const m=b=>{const g=b.current;g||lt(),LT().removeChild(g),b.current=null};m(r),m(i)}},[t,o,a,n.always,n.resting,e]);const s=Ht(()=>a(n.dragging),[a,n.dragging]),l=Ht(A=>{if(A==="DROP"){a(n.dropAnimating);return}a(n.userCancel)},[a,n.dropAnimating,n.userCancel]),c=Ht(()=>{i.current&&a(n.resting)},[a,n.resting]);return Qn(()=>({dragging:s,dropping:l,resting:c}),[s,l,c])}function Jie(e,t){return Array.from(e.querySelectorAll(t))}var Zie=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function DB(e){return e instanceof Zie(e).HTMLElement}function qYe(e,t){const n=`[${vg.contextId}="${e}"]`,r=Jie(document,n);if(!r.length)return null;const i=r.find(a=>a.getAttribute(vg.draggableId)===t);return!i||!DB(i)?null:i}function zYe(e){const t=_.useRef({}),n=_.useRef(null),r=_.useRef(null),i=_.useRef(!1),a=Ht(function(h,m){const b={id:h,focus:m};return t.current[h]=b,function(){const y=t.current;y[h]!==b&&delete y[h]}},[]),o=Ht(function(h){const m=qYe(e,h);m&&m!==document.activeElement&&m.focus()},[e]),s=Ht(function(h,m){n.current===h&&(n.current=m)},[]),l=Ht(function(){r.current||i.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const h=n.current;h&&o(h)}))},[o]),c=Ht(function(h){n.current=null;const m=document.activeElement;m&&m.getAttribute(vg.draggableId)===h&&(n.current=h)},[]);return Bs(()=>(i.current=!0,function(){i.current=!1;const h=r.current;h&&cancelAnimationFrame(h)}),[]),Qn(()=>({register:a,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}),[a,c,l,s])}function VYe(){const e={draggables:{},droppables:{}},t=[];function n(A){return t.push(A),function(){const m=t.indexOf(A);m!==-1&&t.splice(m,1)}}function r(A){t.length&&t.forEach(h=>h(A))}function i(A){return e.draggables[A]||null}function a(A){const h=i(A);return h||lt(),h}const o={register:A=>{e.draggables[A.descriptor.id]=A,r({type:"ADDITION",value:A})},update:(A,h)=>{const m=e.draggables[h.descriptor.id];m&&m.uniqueId===A.uniqueId&&(delete e.draggables[h.descriptor.id],e.draggables[A.descriptor.id]=A)},unregister:A=>{const h=A.descriptor.id,m=i(h);m&&A.uniqueId===m.uniqueId&&(delete e.draggables[h],e.droppables[A.descriptor.droppableId]&&r({type:"REMOVAL",value:A}))},getById:a,findById:i,exists:A=>!!i(A),getAllByType:A=>Object.values(e.draggables).filter(h=>h.descriptor.type===A)};function s(A){return e.droppables[A]||null}function l(A){const h=s(A);return h||lt(),h}const c={register:A=>{e.droppables[A.descriptor.id]=A},unregister:A=>{const h=s(A.descriptor.id);h&&A.uniqueId===h.uniqueId&&delete e.droppables[A.descriptor.id]},getById:l,findById:s,exists:A=>!!s(A),getAllByType:A=>Object.values(e.droppables).filter(h=>h.descriptor.type===A)};function d(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:c,subscribe:n,clean:d}}function WYe(){const e=Qn(VYe,[]);return _.useEffect(()=>function(){e.clean()},[e]),e}var xF=me.createContext(null),q2=()=>{const e=document.body;return e||lt(),e};const KYe={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},GYe=e=>`rfd-announcement-${e}`;function YYe(e){const t=Qn(()=>GYe(e),[e]),n=_.useRef(null);return _.useEffect(function(){const a=document.createElement("div");return n.current=a,a.id=t,a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),n2(a.style,KYe),q2().appendChild(a),function(){setTimeout(function(){const l=q2();l.contains(a)&&l.removeChild(a),a===n.current&&(n.current=null)})}},[t]),Ht(i=>{const a=n.current;if(a){a.textContent=i;return}},[])}const XYe={separator:"::"};function SF(e,t=XYe){const n=me.useId();return Qn(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}function JYe({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}function ZYe({contextId:e,text:t}){const n=SF("hidden-text",{separator:"-"}),r=Qn(()=>JYe({contextId:e,uniqueId:n}),[n,e]);return _.useEffect(function(){const a=document.createElement("div");return a.id=r,a.textContent=t,a.style.display="none",q2().appendChild(a),function(){const s=q2();s.contains(a)&&s.removeChild(a)}},[r,t]),r}var MB=me.createContext(null);function eae(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),t}function eXe(){let e=null;function t(){return!!e}function n(o){return o===e}function r(o){e&&lt();const s={abandon:o};return e=s,s}function i(){e||lt(),e=null}function a(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:n,claim:r,release:i,tryAbandon:a}}function q0(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const tXe=9,nXe=13,BF=27,tae=32,rXe=33,iXe=34,aXe=35,oXe=36,sXe=37,lXe=38,cXe=39,uXe=40,dXe={[nXe]:!0,[tXe]:!0};var nae=e=>{dXe[e.keyCode]&&e.preventDefault()};const UB=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(r=>`on${r}`in document)||e})(),rae=0,yV=5;function AXe(e,t){return Math.abs(t.x-e.x)>=yV||Math.abs(t.y-e.y)>=yV}const vV={type:"IDLE"};function fXe({cancel:e,completed:t,getPhase:n,setPhase:r}){return[{eventName:"mousemove",fn:i=>{const{button:a,clientX:o,clientY:s}=i;if(a!==rae)return;const l={x:o,y:s},c=n();if(c.type==="DRAGGING"){i.preventDefault(),c.actions.move(l);return}c.type!=="PENDING"&&lt();const d=c.point;if(!AXe(d,l))return;i.preventDefault();const A=c.actions.fluidLift(l);r({type:"DRAGGING",actions:A})}},{eventName:"mouseup",fn:i=>{const a=n();if(a.type!=="DRAGGING"){e();return}i.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:i=>{n().type==="DRAGGING"&&i.preventDefault(),e()}},{eventName:"keydown",fn:i=>{if(n().type==="PENDING"){e();return}if(i.keyCode===BF){i.preventDefault(),e();return}nae(i)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{n().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:i=>{const a=n();if(a.type==="IDLE"&&lt(),a.actions.shouldRespectForcePress()){e();return}i.preventDefault()}},{eventName:UB,fn:e}]}function hXe(e){const t=_.useRef(vV),n=_.useRef(jA),r=Qn(()=>({eventName:"mousedown",fn:function(A){if(A.defaultPrevented||A.button!==rae||A.ctrlKey||A.metaKey||A.shiftKey||A.altKey)return;const h=e.findClosestDraggableId(A);if(!h)return;const m=e.tryGetLock(h,o,{sourceEvent:A});if(!m)return;A.preventDefault();const b={x:A.clientX,y:A.clientY};n.current(),c(m,b)}}),[e]),i=Qn(()=>({eventName:"webkitmouseforcewillbegin",fn:d=>
1668{if(d.defaultPrevented)return;const A=e.findClosestDraggableId(d);if(!A)return;const h=e.findOptionsForDraggable(A);h&&(h.shouldRespectForcePress||e.canGetLock(A)&&d.preventDefault())}}),[e]),a=Ht(function(){const A={passive:!1,capture:!0};n.current=il(window,[i,r],A)},[i,r]),o=Ht(()=>{t.current.type!=="IDLE"&&(t.current=vV,n.current(),a())},[a]),s=Ht(()=>{const d=t.current;o(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[o]),l=Ht(function(){const A={capture:!0,passive:!1},h=fXe({cancel:s,completed:o,getPhase:()=>t.current,setPhase:m=>{t.current=m}});n.current=il(window,h,A)},[s,o]),c=Ht(function(A,h){t.current.type!=="IDLE"&&lt(),t.current={type:"PENDING",point:h,actions:A},l()},[l]);Bs(function(){return a(),function(){n.current()}},[a])}function pXe(){}const mXe={[iXe]:!0,[rXe]:!0,[oXe]:!0,[aXe]:!0};function gXe(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:i=>{if(i.keyCode===BF){i.preventDefault(),n();return}if(i.keyCode===tae){i.preventDefault(),r();return}if(i.keyCode===uXe){i.preventDefault(),e.moveDown();return}if(i.keyCode===lXe){i.preventDefault(),e.moveUp();return}if(i.keyCode===cXe){i.preventDefault(),e.moveRight();return}if(i.keyCode===sXe){i.preventDefault(),e.moveLeft();return}if(mXe[i.keyCode]){i.preventDefault();return}nae(i)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:UB,fn:n}]}function yXe(e){const t=_.useRef(pXe),n=Qn(()=>({eventName:"keydown",fn:function(a){if(a.defaultPrevented||a.keyCode!==tae)return;const o=e.findClosestDraggableId(a);if(!o)return;const s=e.tryGetLock(o,d,{sourceEvent:a});if(!s)return;a.preventDefault();let l=!0;const c=s.snapLift();t.current();function d(){l||lt(),l=!1,t.current(),r()}t.current=il(window,gXe(c,d),{capture:!0,passive:!1})}}),[e]),r=Ht(function(){const a={passive:!1,capture:!0};t.current=il(window,[n],a)},[n]);Bs(function(){return r(),function(){t.current()}},[r])}const DT={type:"IDLE"},vXe=120,bXe=.15;function wXe({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:n=>{n.preventDefault()}},{eventName:"keydown",fn:n=>{if(t().type!=="DRAGGING"){e();return}n.keyCode===BF&&n.preventDefault(),e()}},{eventName:UB,fn:e}]}function xXe({cancel:e,completed:t,getPhase:n}){return[{eventName:"touchmove",options:{capture:!1},fn:r=>{const i=n();if(i.type!=="DRAGGING"){e();return}i.hasMoved=!0;const{clientX:a,clientY:o}=r.touches[0],s={x:a,y:o};r.preventDefault(),i.actions.move(s)}},{eventName:"touchend",fn:r=>{const i=n();if(i.type!=="DRAGGING"){e();return}r.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:r=>{if(n().type!=="DRAGGING"){e();return}r.preventDefault(),e()}},{eventName:"touchforcechange",fn:r=>{const i=n();i.type==="IDLE"&&lt();const a=r.touches[0];if(!a||!(a.force>=bXe))return;const s=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){s&&e();return}if(s){if(i.hasMoved){r.preventDefault();return}e();return}r.preventDefault()}},{eventName:UB,fn:e}]}function SXe(e){const t=_.useRef(DT),n=_.useRef(jA),r=Ht(function(){return t.current},[]),i=Ht(function(m){t.current=m},[]),a=Qn(()=>({eventName:"touchstart",fn:function(m){if(m.defaultPrevented)return;const b=e.findClosestDraggableId(m);if(!b)return;const g=e.tryGetLock(b,s,{sourceEvent:m});if(!g)return;const y=m.touches[0],{clientX:v,clientY:x}=y,B={x:v,y:x};n.current(),A(g,B)}}),[e]),o=Ht(function(){const m={capture:!0,passive:!1};n.current=il(window,[a],m)},[a]),s=Ht(()=>{const h=t.current;h.type!=="IDLE"&&(h.type==="PENDING"&&clearTimeout(h.longPressTimerId),i(DT),n.current(),o())},[o,i]),l=Ht(()=>{const h=t.current;s(),h.type==="DRAGGING"&&h.actions.cancel({shouldBlockNextClick:!0}),h.type==="PENDING"&&h.actions.abort()},[s]),c=Ht(function(){const m={capture:!0,passive:!1},b={cancel:l,completed:s,getPhase:r},g=il(window,xXe(b),m),y=il(window,wXe(b),m);n.current=function(){g(),y()}},[l,r,s]),d=Ht(function(){const m=r();m.type!=="PENDING"&&lt();const b=m.actions.fluidLift(m.point);i({type:"DRAGGING",actions:b,hasMoved:!1})},[r,i]),A=Ht(function(m,b){r().type!=="IDLE"&&lt();const g=setTimeout(d,vXe);i({type:"PENDING",point:b,actions:m,longPressTimerId:g}),c()},[c,r,i,d]);Bs(function(){return o(),function(){n.current();const b=r();b.type==="PENDING"&&(clearTimeout(b.longPressTimerId),i(DT))}},[r,o,i]),Bs(function(){return il(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const BXe=["input","button","textarea","select","option","optgroup","video","audio"];function iae(e,t){if(t==null)return!1;if(BXe.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:iae(e,t.parentElement)}function CXe(e,t){const n=t.target;return DB(n)?iae(e,n):!1}var kXe=e=>Kl(e.getBoundingClientRect()).center;function EXe(e){return e instanceof Zie(e).Element}const NXe=(()=>{const e="matches";return typeof document>
1668"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(r=>r in Element.prototype)||e})();function aae(e,t){return e==null?null:e[NXe](t)?e:aae(e.parentElement,t)}function TXe(e,t){return e.closest?e.closest(t):aae(e,t)}function _Xe(e){return`[${vg.contextId}="${e}"]`}function IXe(e,t){const n=t.target;if(!EXe(n))return null;const r=_Xe(e),i=TXe(n,r);return!i||!DB(i)?null:i}function PXe(e,t){const n=IXe(e,t);return n?n.getAttribute(vg.draggableId):null}function jXe(e,t){const n=`[${t3.contextId}="${e}"]`,i=Jie(document,n).find(a=>a.getAttribute(t3.id)===t);return!i||!DB(i)?null:i}function OXe(e){e.preventDefault()}function yx({expected:e,phase:t,isLockActive:n,shouldWarn:r}){return!(!n()||e!==t)}function oae({lockAPI:e,store:t,registry:n,draggableId:r}){if(e.isClaimed())return!1;const i=n.draggable.findById(r);return!(!i||!i.options.isEnabled||!Kie(t.getState(),r))}function FXe({lockAPI:e,contextId:t,store:n,registry:r,draggableId:i,forceSensorStop:a,sourceEvent:o}){if(!oae({lockAPI:e,store:n,registry:r,draggableId:i}))return null;const l=r.draggable.getById(i),c=jXe(t,l.descriptor.id);if(!c||o&&!l.options.canDragInteractiveElements&&CXe(c,o))return null;const d=e.claim(a||jA);let A="PRE_DRAG";function h(){return l.options.shouldRespectForcePress}function m(){return e.isActive(d)}function b(E,T){yx({expected:E,phase:A,isLockActive:m,shouldWarn:!0})&&n.dispatch(T())}const g=b.bind(null,"DRAGGING");function y(E){function T(){e.release(),A="COMPLETED"}A!=="PRE_DRAG"&&(T(),lt()),n.dispatch(TGe(E.liftActionArgs)),A="DRAGGING";function j(O,L={shouldBlockNextClick:!1}){if(E.cleanup(),L.shouldBlockNextClick){const z=il(window,[{eventName:"click",fn:OXe,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(z)}T(),n.dispatch(Rie({reason:O}))}return{isActive:()=>yx({expected:"DRAGGING",phase:A,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:h,drop:O=>j("DROP",O),cancel:O=>j("CANCEL",O),...E.actions}}function v(E){const T=M0(O=>{g(()=>Uie({client:O}))});return{...y({liftActionArgs:{id:i,clientSelection:E,movementMode:"FLUID"},cleanup:()=>T.cancel(),actions:{move:T}}),move:T}}function x(){const E={moveUp:()=>g(MGe),moveRight:()=>g(RGe),moveDown:()=>g(UGe),moveLeft:()=>g(QGe)};return y({liftActionArgs:{id:i,clientSelection:kXe(c),movementMode:"SNAP"},cleanup:jA,actions:E})}function B(){yx({expected:"PRE_DRAG",phase:A,isLockActive:m,shouldWarn:!0})&&e.release()}return{isActive:()=>yx({expected:"PRE_DRAG",phase:A,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:v,snapLift:x,abort:B}}const LXe=[hXe,yXe,SXe];function DXe({contextId:e,store:t,registry:n,customSensors:r,enableDefaultSensors:i}){const a=[...i?LXe:[],...r||[]],o=_.useState(()=>eXe())[0],s=Ht(function(y,v){q0(y)&&!q0(v)&&o.tryAbandon()},[o]);Bs(function(){let y=t.getState();return t.subscribe(()=>{const x=t.getState();s(y,x),y=x})},[o,t,s]),Bs(()=>o.tryAbandon,[o.tryAbandon]);const l=Ht(g=>oae({lockAPI:o,registry:n,store:t,draggableId:g}),[o,n,t]),c=Ht((g,y,v)=>FXe({lockAPI:o,registry:n,contextId:e,store:t,draggableId:g,forceSensorStop:y||null,sourceEvent:v&&v.sourceEvent?v.sourceEvent:null}),[e,o,n,t]),d=Ht(g=>PXe(e,g),[e]),A=Ht(g=>{const y=n.draggable.findById(g);return y?y.options:null},[n.draggable]),h=Ht(function(){o.isClaimed()&&(o.tryAbandon(),t.getState().phase!=="IDLE"&&t.dispatch(pF()))},[o,t]),m=Ht(()=>o.isClaimed(),[o]),b=Qn(()=>({canGetLock:l,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:A,tryReleaseLock:h,isLockClaimed:m}),[l,c,d,A,h,m]);for(let g=0;g<a.length;g++)a[g](b)}const MXe=e=>({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};Qh.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),UXe=e=>({...$0,...e.autoScrollerOptions,durationDampening:{...$0.durationDampening,...e.autoScrollerOptions}});function Gy(e){return e.current||lt(),e.current}function RXe(e){const{contextId:t,setCallbacks:n,sensors:r,nonce:i,dragHandleUsageInstructions:a}=e,o=_.useRef(null),s=eae(e),l=Ht(()=>MXe(s.current),[s]),c=Ht(()=>UXe(s.current),[s]),d=YYe(t),A=ZYe({contextId:t,text:a}),h=$Ye(t,i),m=Ht(z=>{Gy(o).dispatch(z)},[]),b=Qn(()=>qz({publishWhileDragging:IGe,updateDroppableScroll:jGe,updateDroppableIsEnabled:OGe,updateDroppableIsCombine
1668Enabled:FGe,collectionStarting:PGe},m),[m]),g=WYe(),y=Qn(()=>wYe(g,b),[g,b]),v=Qn(()=>MYe({scrollWindow:xYe,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:c,...qz({move:Uie},m)}),[y.scrollDroppable,m,c]),x=zYe(t),B=Qn(()=>gYe({announce:d,autoScroller:v,dimensionMarshal:y,focusMarshal:x,getResponders:l,styleMarshal:h}),[d,v,y,x,l,h]);o.current=B;const C=Ht(()=>{const z=Gy(o);z.getState().phase!=="IDLE"&&z.dispatch(pF())},[]),E=Ht(()=>{const z=Gy(o).getState();return z.phase==="DROP_ANIMATING"?!0:z.phase==="IDLE"?!1:z.isDragging},[]),T=Qn(()=>({isDragging:E,tryAbort:C}),[E,C]);n(T);const j=Ht(z=>Kie(Gy(o).getState(),z),[]),O=Ht(()=>Vf(Gy(o).getState()),[]),L=Qn(()=>({marshal:y,focus:x,contextId:t,canLift:j,isMovementAllowed:O,dragHandleUsageInstructionsId:A,registry:g}),[t,y,A,x,j,O,g]);return DXe({contextId:t,store:B,registry:g,customSensors:r||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),_.useEffect(()=>C,[C]),me.createElement(MB.Provider,{value:L},me.createElement(uKe,{context:xF,store:B},e.children))}function QXe(){return me.useId()}function HXe(e){const t=QXe(),n=e.dragHandleUsageInstructions||Yx.dragHandleUsageInstructions;return me.createElement(vKe,null,r=>me.createElement(RXe,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const bV={dragging:5e3,dropAnimating:4500},$Xe=(e,t)=>t?Dv.drop(t.duration):e?Dv.snap:Dv.fluid,qXe=(e,t)=>{if(e)return t?H0.opacity.drop:H0.opacity.combining},zXe=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function VXe(e){const n=e.dimension.client,{offset:r,combineWith:i,dropping:a}=e,o=!!i,s=zXe(e),l=!!a,c=l?ZP.drop(r,o):ZP.moveTo(r);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:$Xe(s,a),transform:c,opacity:qXe(o,l),zIndex:l?bV.dropAnimating:bV.dragging,pointerEvents:"none"}}function WXe(e){return{transform:ZP.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function KXe(e){return e.type==="DRAGGING"?VXe(e):WXe(e)}function GXe(e,t,n=Aa){const r=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=hie(i,r),o=R2(a,n),s={client:a,tagName:t.tagName.toLowerCase(),display:r.display},l={x:a.marginBox.width,y:a.marginBox.height};return{descriptor:e,placeholder:s,displaceBy:l,client:a,page:o}}function YXe(e){const t=SF("draggable"),{descriptor:n,registry:r,getDraggableRef:i,canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:s}=e,l=Qn(()=>({canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:s}),[a,s,o]),c=Ht(m=>{const b=i();return b||lt(),GXe(n,b,m)},[n,i]),d=Qn(()=>({uniqueId:t,descriptor:n,options:l,getDimension:c}),[n,c,l,t]),A=_.useRef(d),h=_.useRef(!0);Bs(()=>(r.draggable.register(A.current),()=>r.draggable.unregister(A.current)),[r.draggable]),Bs(()=>{if(h.current){h.current=!1;return}const m=A.current;A.current=d,r.draggable.update(d,m)},[d,r.draggable])}var CF=me.createContext(null);function z2(e){const t=_.useContext(e);return t||lt(),t}function XXe(e){e.preventDefault()}const JXe=e=>{const t=_.useRef(null),n=Ht((T=null)=>{t.current=T},[]),r=Ht(()=>t.current,[]),{contextId:i,dragHandleUsageInstructionsId:a,registry:o}=z2(MB),{type:s,droppableId:l}=z2(CF),c=Qn(()=>({id:e.draggableId,index:e.index,type:s,droppableId:l}),[e.draggableId,e.index,s,l]),{children:d,draggableId:A,isEnabled:h,shouldRespectForcePress:m,canDragInteractiveElements:b,isClone:g,mapped:y,dropAnimationFinished:v}=e;if(!g){const T=Qn(()=>({descriptor:c,registry:o,getDraggableRef:r,canDragInteractiveElements:b,shouldRespectForcePress:m,isEnabled:h}),[c,o,r,b,m,h]);YXe(T)}const x=Qn(()=>h?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":A,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:XXe}:null,[i,a,A,h]),B=Ht(T=>{y.type==="DRAGGING"&&y.dropping&&T.propertyName==="transform"&&Qh.flushSync(v)},[v,y]),C=Qn(()=>
1668{const T=KXe(y),j=y.type==="DRAGGING"&&y.dropping?B:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":A,style:T,onTransitionEnd:j},dragHandleProps:x}},[i,x,A,y,B,n]),E=Qn(()=>({draggableId:c.id,type:c.type,source:{index:c.index,droppableId:c.droppableId}}),[c.droppableId,c.id,c.index,c.type]);return me.createElement(me.Fragment,null,d(C,y.snapshot,E))};var sae=(e,t)=>e===t,lae=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const ZXe=e=>e.combine?e.combine.draggableId:null,eJe=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function tJe(){const e=da((i,a)=>({x:i,y:a})),t=da((i,a,o=null,s=null,l=null)=>({isDragging:!0,isClone:a,isDropAnimating:!!l,dropAnimation:l,mode:i,draggingOver:o,combineWith:s,combineTargetFor:null})),n=da((i,a,o,s,l=null,c=null,d=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:c,mode:a,offset:i,dimension:o,forceShouldAnimate:d,snapshot:t(a,s,l,c,null)}}));return(i,a)=>{if(q0(i)){if(i.critical.draggable.id!==a.draggableId)return null;const o=i.current.client.offset,s=i.dimensions.draggables[a.draggableId],l=Ss(i.impact),c=eJe(i.impact),d=i.forceShouldAnimate;return n(e(o.x,o.y),i.movementMode,s,a.isClone,l,c,d)}if(i.phase==="DROP_ANIMATING"){const o=i.completed;if(o.result.draggableId!==a.draggableId)return null;const s=a.isClone,l=i.dimensions.draggables[a.draggableId],c=o.result,d=c.mode,A=lae(c),h=ZXe(c),b={duration:i.dropDuration,curve:gF.drop,moveTo:i.newHomeClientOffset,opacity:h?H0.opacity.drop:null,scale:h?H0.scale.drop:null};return{mapped:{type:"DRAGGING",offset:i.newHomeClientOffset,dimension:l,dropping:b,draggingOver:A,combineWith:h,mode:d,forceShouldAnimate:null,snapshot:t(d,s,A,h,b)}}}return null}}function cae(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const nJe={mapped:{type:"SECONDARY",offset:Aa,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:cae(null)}};function rJe(){const e=da((o,s)=>({x:o,y:s})),t=da(cae),n=da((o,s=null,l)=>({mapped:{type:"SECONDARY",offset:o,combineTargetFor:s,shouldAnimateDisplacement:l,snapshot:t(s)}})),r=o=>o?n(Aa,o,!0):null,i=(o,s,l,c)=>{const d=l.displaced.visible[o],A=!!(c.inVirtualList&&c.effected[o]),h=OB(l),m=h&&h.draggableId===o?s:null;if(!d){if(!A)return r(m);if(l.displaced.invisible[o])return null;const y=qg(c.displacedBy.point),v=e(y.x,y.y);return n(v,m,!0)}if(A)return r(m);const b=l.displacedBy.point,g=e(b.x,b.y);return n(g,m,d.shouldAnimate)};return(o,s)=>{if(q0(o))return o.critical.draggable.id===s.draggableId?null:i(s.draggableId,o.critical.draggable.id,o.impact,o.afterCritical);if(o.phase==="DROP_ANIMATING"){const l=o.completed;return l.result.draggableId===s.draggableId?null:i(s.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const iJe=()=>{const e=tJe(),t=rJe();return(r,i)=>e(r,i)||t(r,i)||nJe},aJe={dropAnimationFinished:Qie},oJe=Aie(iJe,aJe,null,{context:xF,areStatePropsEqual:sae})(JXe);function uae(e){return z2(CF).isUsingCloneFor===e.draggableId&&!e.isClone?null:me.createElement(oJe,e)}function sJe(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return me.createElement(uae,n2({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const dae=e=>t=>e===t,lJe=dae("scroll"),cJe=dae("auto"),wV=(e,t)=>t(e.overflowX)||t(e.overflowY),uJe=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return wV(n,lJe)||wV(n,cJe)},dJe=()=>!1,Aae=e=>e==null?null:e===document.body?dJe()?e:null:e===document.documentElement?null:uJe(e)?e:Aae(e.parentElement);var n3=e=>({x:e.scrollLeft,y:e.scrollTop});const fae=e=>e?window.getComputedStyle(e).position==="fixed"?!0:fae(e.parentElement):!1;var AJe=e=>{const t=Aae(e),n=fae(e);return{closestScrollable:t,isFixedOnPage:n}},fJe=({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:r,direction:i,client:a,page:o,closest:s})=>{const l=(()=>
1668{if(!s)return null;const{scrollSize:h,client:m}=s,b=zie({scrollHeight:h.scrollHeight,scrollWidth:h.scrollWidth,height:m.paddingBox.height,width:m.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:m,scrollSize:h,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:b,diff:{value:Aa,displacement:Aa}}}})(),c=i==="vertical"?uF:Bie,d=gg({page:o,withPlaceholder:null,axis:c,frame:l});return{descriptor:e,isCombineEnabled:n,isFixedOnPage:r,axis:c,isEnabled:t,client:a,page:o,frame:l,subject:d}};const hJe=(e,t)=>{const n=pie(e);if(!t||e!==t)return n;const r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,a=r+t.scrollHeight,o=i+t.scrollWidth,l=oF({top:r,right:o,bottom:a,left:i},n.border);return sF({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})};var pJe=({ref:e,descriptor:t,env:n,windowScroll:r,direction:i,isDropDisabled:a,isCombineEnabled:o,shouldClipSubject:s})=>{const l=n.closestScrollable,c=hJe(e,l),d=R2(c,r),A=(()=>{if(!l)return null;const m=pie(l),b={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:m,page:R2(m,r),scroll:n3(l),scrollSize:b,shouldClipSubject:s}})();
1668return fJe({descriptor:t,isEnabled:!a,isCombineEnabled:o,isFixedOnPage:n.isFixedOnPage,direction:i,client:c,page:d,closest:A})};const mJe={passive:!1},gJe={passive:!0};var xV=e=>e.shouldPublishImmediately?mJe:gJe;const vx=e=>e&&e.env.closestScrollable||null;function yJe(e){const t=_.useRef(null),n=z2(MB),r=SF("droppable"),{registry:i,marshal:a}=n,o=eae(e),s=Qn(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=_.useRef(s),c=Qn(()=>da((C,E)=>{t.current||lt();const T={x:C,y:E};a.updateDroppableScroll(s.id,T)}),[s.id,a]),d=Ht(()=>{const C=t.current;return!C||!C.env.closestScrollable?Aa:n3(C.env.closestScrollable)},[]),A=Ht(()=>{const C=d();c(C.x,C.y)},[d,c]),h=Qn(()=>M0(A),[A]),m=Ht(()=>{const C=t.current,E=vx(C);if(C&&E||lt(),C.scrollOptions.shouldPublishImmediately){A();return}h()},[h,A]),b=Ht((C,E)=>{t.current&&lt();const T=o.current,j=T.getDroppableRef();j||lt();const O=AJe(j),L={ref:j,descriptor:s,env:O,scrollOptions:E};t.current=L;const z=pJe({ref:j,descriptor:s,env:O,windowScroll:C,direction:T.direction,isDropDisabled:T.isDropDisabled,isCombineEnabled:T.isCombineEnabled,shouldClipSubject:!T.ignoreContainerClipping}),F=O.closestScrollable;return F&&(F.setAttribute(mV.contextId,n.contextId),F.addEventListener("scroll",m,xV(L.scrollOptions))),z},[n.contextId,s,m,o]),g=Ht(()=>{const C=t.current,E=vx(C);return C&&E||lt(),n3(E)},[]),y=Ht(()=>{const C=t.current;C||lt();const E=vx(C);t.current=null,E&&(h.cancel(),E.removeAttribute(mV.contextId),E.removeEventListener("scroll",m,xV(C.scrollOptions)))},[m,h]),v=Ht(C=>{const E=t.current;E||lt();const T=vx(E);T||lt(),T.scrollTop+=C.y,T.scrollLeft+=C.x},[]),x=Qn(()=>({getDimensionAndWatchScroll:b,getScrollWhileDragging:g,dragStopped:y,scroll:v}),[y,b,g,v]),B=Qn(()=>({uniqueId:r,descriptor:s,callbacks:x}),[x,s,r]);Bs(()=>(l.current=B.descriptor,i.droppable.register(B),()=>{t.current&&y(),i.droppable.unregister(B)}),[x,s,y,B,a,i.droppable]),Bs(()=>{t.current&&a.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Bs(()=>{t.current&&a.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function MT(){}const SV={width:0,height:0,margin:CKe},vJe=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||n==="close"?SV:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},bJe=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{const r=vJe({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:n!=="none"?Dv.placeholder:null}},wJe=e=>{const t=_.useRef(null),n=Ht(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:i,onClose:a,contextId:o}=e,[s,l]=_.useState(e.animate==="open");_.useEffect(()=>s?r!=="open"?(n(),l(!1),MT):t.current?MT:(t.current=setTimeout(()=>{t.current=null,l(!1)}),n):MT,[r,s,n]);const c=Ht(A=>{A.propertyName==="height"&&(i(),r==="close"&&a())},[r,a,i]),d=bJe({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return me.createElement(e.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":o,onTransitionEnd:c,ref:e.innerRef})};var xJe=me.memo(wJe);class SJe extends me.PureComponent{constructor(...t){super(...t),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const BJe=e=>{const t=_.useContext(MB);t||lt();const{contextId:n,isMovementAllowed:r}=t,i=_.useRef(null),a=_.useRef(null),{children:o,droppableId:s,type:l,mode:c,direction:d,ignoreContainerClipping:A,isDropDisabled:h,isCombine
1668Enabled:m,snapshot:b,useClone:g,updateViewportMaxScroll:y,getContainerForClone:v}=e,x=Ht(()=>i.current,[]),B=Ht((F=null)=>{i.current=F},[]);Ht(()=>a.current,[]);const C=Ht((F=null)=>{a.current=F},[]),E=Ht(()=>{r()&&y({maxScroll:Wie()})},[r,y]);yJe({droppableId:s,type:l,mode:c,direction:d,isDropDisabled:h,isCombineEnabled:m,ignoreContainerClipping:A,getDroppableRef:x});const T=Qn(()=>me.createElement(SJe,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:F,data:M,animate:V})=>me.createElement(xJe,{placeholder:M,onClose:F,innerRef:C,animate:V,contextId:n,onTransitionEnd:E})),[n,E,e.placeholder,e.shouldAnimatePlaceholder,C]),j=Qn(()=>({innerRef:B,placeholder:T,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":n}}),[n,s,T,B]),O=g?g.dragging.draggableId:null,L=Qn(()=>({droppableId:s,type:l,isUsingCloneFor:O}),[s,O,l]);function z(){if(!g)return null;const{dragging:F,render:M}=g,V=me.createElement(uae,{draggableId:F.draggableId,index:F.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(q,W)=>M(q,W,F));return PW.createPortal(V,v())}return me.createElement(CF.Provider,{value:L},o(j,b),z())};function CJe(){return document.body||lt(),document.body}const BV={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:CJe},hae=e=>{let t={...e},n;for(n in BV)e[n]===void 0&&(t={...t,[n]:BV[n]});return t},UT=(e,t)=>e===t.droppable.type,CV=(e,t)=>t.draggables[e.draggable.id],kJe=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=da(a=>({draggableId:a.id,type:a.type,source:{index:a.index,droppableId:a.droppableId}})),r=da((a,o,s,l,c,d)=>{const A=c.descriptor.id;if(c.descriptor.droppableId===a){const b=d?{render:d,dragging:n(c.descriptor)}:null,g={isDraggingOver:s,draggingOverWith:s?A:null,draggingFromThisWith:A,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:b}}if(!o)return t;if(!l)return e;const m={isDraggingOver:s,draggingOverWith:A,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:m,useClone:null}});return(a,o)=>{const s=hae(o),l=s.droppableId,c=s.type,d=!s.isDropDisabled,A=s.renderClone;if(q0(a)){const h=a.critical;if(!UT(c,h))return t;const m=CV(h,a.dimensions),b=Ss(a.impact)===l;return r(l,d,b,b,m,A)}if(a.phase==="DROP_ANIMATING"){const h=a.completed;if(!UT(c,h.critical))return t;const m=CV(h.critical,a.dimensions);return r(l,d,lae(h.result)===l,Ss(h.impact)===l,m,A)}if(a.phase==="IDLE"&&a.completed&&!a.shouldFlush){const h=a.completed;if(!UT(c,h.critical))return t;const m=Ss(h.impact)===l,b=!!(h.impact.at&&h.impact.at.type==="COMBINE"),g=h.critical.droppable.id===l;return m?b?e:t:g?e:t}return t}},EJe={updateViewportMaxScroll:DGe},NJe=Aie(kJe,EJe,(e,t,n)=>({...hae(n),...e,...t}),{context:xF,areStatePropsEqual:sae})(BJe);var TJe=NJe;function _Je({step:e,kid:t,onDone:n}){const[r,i]=_.useState(e.items.map(x=>x.id)),[a,o]=_.useState([]),[s,l]=_.useState([]),[c,d]=_.useState(!1),A=Object.fromEntries(e.items.map(x=>[x.id,x])),h=t?"text-slate-900":"text-white",m={pool:[r,i],left:[a,o],right:[s,l]},b=x=>{if(c||!x.destination)return;const B=x.source.droppableId,C=x.destination.droppableId,E=x.draggableId,[T,j]=m[B],[O,L]=m[C];if(B===C){const F=[...T];F.splice(x.source.index,1),F.splice(x.destination.index,0,E),j(F);return}j(T.filter(F=>F!==E));const z=[...O];z.splice(x.destination.index,0,E),L(z)},g=()=>{const x=r.length===0&&a.every(B=>A[B].bucket==="left")&&s.every(B=>A[B].bucket==="right");d(!0),n(x)},y=({id:x,index:B})=>{const C=A[x],E=!r.includes(x),T=c&&E&&(a.includes(x)&&C.bucket!=="left"||s.includes(x)&&C.bucket!=="right");return u.jsx(sJe,{draggableId:x,index:B,isDragDisabled:c,children:(j,O)=>u.jsx("div",{ref:j.innerRef,...j.draggableProps,...j.dragHandleProps,className:`rounded-xl border-2 px-3.5 py-3 text-sm font-medium mb-2 select-none ${h} ${T?"border-red-500 bg-red-500/10":c&&E?"border-emerald-500 bg-emerald-500/10":t?"border-slate-200 bg-white":"border-white/15 bg-white/10"} ${O.isDragging?"shadow-2xl":""}`,children:C.label})})},v=({id:x,label:B,items:C})=>u.jsx(TJe,{droppableId:x,children:(E,T)=>u.jsxs("div",{ref:E.innerRef,...E.droppableProps,className:`rounded-2xl border-2 border-dashed p-4 min-h-[140px] transition-colors ${T.isDraggingOver?t?"border-yellow-400 bg-yellow-50":"border-azure bg-azure/10":t?"border-slate-300 bg-slate-50":"border-white/15 bg-white/5"}`,children:[u.jsx("p",{className:`text-xs font-bold uppercase tracking-widest mb-3 ${t?"text-slate-500":"text-white/45"}`,children:B}),C.map((j,O)=>u.jsx(y,{id:j,index:O},j)),E.placeholder]})});return u.jsxs(_e.div,{initial:{opacity:0,y:14}
1668,animate:{opacity:1,y:0},children:[u.jsxs("span",{className:`inline-flex items-center gap-2 text-xs font-bold uppercase tracking-widest ${t?"text-yellow-600":"text-sky"}`,children:[u.jsx(Dse,{className:"w-3.5 h-3.5"})," Drag into the right box"]}),u.jsx("h3",{className:`text-lg md:text-xl font-heading font-bold leading-snug mt-3 ${h}`,children:e.prompt}),u.jsx(PB,{image:e.image,kid:t}),u.jsxs(HXe,{onDragEnd:b,children:[u.jsx("div",{className:"mt-6",children:u.jsx(v,{id:"pool",label:"Drag these",items:r})}),u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mt-4",children:[u.jsx(v,{id:"left",label:e.leftLabel,items:a}),u.jsx(v,{id:"right",label:e.rightLabel,items:s})]})]}),c?u.jsx(_e.div,{initial:{opacity:0},animate:{opacity:1},className:`rounded-2xl p-5 mt-6 ${t?"bg-yellow-50":"bg-white/5"}`,children:u.jsx("p",{className:`text-sm leading-relaxed ${t?"text-slate-700":"text-white/75"}`,children:e.why})}):u.jsxs("button",{onClick:g,disabled:r.length>0,className:`mt-6 inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-bold text-sm disabled:opacity-40 ${t?"bg-yellow-400 text-slate-900":"bg-azure text-white"}`,children:[u.jsx(bg,{className:"w-4 h-4"})," ",r.length>0?`${r.length} left to sort`:"Check my sorting"]})]})}function IJe({step:e,kid:t,onDone:n}){const[r,i]=_.useState([]),[a,o]=_.useState(!1),s=t?"text-slate-900":"text-white",l=e.items.filter(A=>A.bad).map(A=>A.id),c=A=>{a||i(h=>h.includes(A)?h.filter(m=>m!==A):[...h,A])},d=()=>{const A=l.every(h=>r.includes(h))&&r.every(h=>l.includes(h));o(!0),n(A)};return u.jsxs(_e.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},children:[u.jsxs("span",{className:`inline-flex items-center gap-2 text-xs font-bold uppercase tracking-widest ${t?"text-yellow-600":"text-sky"}`,children:[u.jsx(gle,{className:"w-3.5 h-3.5"})," Eliminate the risky ones"]}),u.jsx("h3",{className:`text-lg md:text-xl font-heading font-bold leading-snug mt-3 ${s}`,children:e.prompt}),u.jsx("p",{className:`text-sm mt-2 ${t?"text-slate-600":"text-white/50"}`,children:"Tap everything that should go. Leave the safe ones alone."}),u.jsx(PB,{image:e.image,kid:t}),u.jsx("div",{className:"space-y-3 mt-6",children:e.items.map(A=>{const h=r.includes(A.id),m=a&&(A.bad&&!h||!A.bad&&h),b=a&&(A.bad&&h||!A.bad&&!h);return u.jsx("button",{onClick:()=>c(A.id),disabled:a,className:`w-full text-left rounded-2xl border-2 p-4 flex items-start gap-3 transition-all ${m?"border-red-500 bg-red-500/10":b?"border-emerald-500 bg-emerald-500/10":h?t?"border-slate-400 bg-slate-100":"border-white/30 bg-white/10":t?"border-slate-200 bg-slate-50 hover:border-yellow-400":"border-white/10 bg-white/5 hover:border-azure"}`,children:u.jsx("span",{className:`text-sm font-medium ${s} ${h?"line-through opacity-50":""}`,children:A.label})},A.id)})}),a?u.jsx(_e.div,{initial:{opacity:0}
1668,animate:{opacity:1},className:`rounded-2xl p-5 mt-6 space-y-2.5 ${t?"bg-yellow-50":"bg-white/5"}`,children:e.items.filter(A=>A.bad).map(A=>u.jsxs("p",{className:`text-sm leading-relaxed ${t?"text-slate-700":"text-white/75"}`,children:[u.jsxs("span",{className:"font-bold",children:[A.label,": "]}),A.why]},A.id))}):u.jsxs("button",{onClick:d,className:`mt-6 inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-bold text-sm ${t?"bg-yellow-400 text-slate-900":"bg-azure text-white"}`,children:[u.jsx(bg,{className:"w-4 h-4"})," Check my answer"]})]})}function PJe({step:e,kid:t,onDone:n}){const[r,i]=_.useState(null),a=t?"text-slate-900":"text-white",o=r!==null&&r===e.fakeIndex,s=[e.imageA,e.imageB],l=c=>{r===null&&(i(c),n(c===e.fakeIndex))};return u.jsxs(_e.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},children:[u.jsxs("span",{className:`inline-flex items-center gap-2 text-xs font-bold uppercase tracking-widest ${t?"text-yellow-600":"text-sky"}`,children:[u.jsx(tle,{className:"w-3.5 h-3.5"})," Real or AI"]}),u.jsx("h3",{className:`text-lg md:text-xl font-heading font-bold leading-snug mt-3 ${a}`,children:e.prompt}),u.jsx("p",{className:`text-sm mt-2 ${t?"text-slate-600":"text-white/50"}`,children:"One of these two people is a real photograph. The other was generated by AI from that photograph. Tap the one you think is fake."}),u.jsx("div",{className:"grid grid-cols-2 gap-4 mt-6",children:s.map((c,d)=>{const A=r!==null,h=d===e.fakeIndex;return u.jsxs("button",{onClick:()=>l(d),disabled:A,className:`relative rounded-2xl overflow-hidden border-2 transition-colors ${A?h?"border-red-500":"border-emerald-500":t?"border-slate-200 hover:border-yellow-400":"border-white/15 hover:border-azure"}`,children:[u.jsx("img",{src:c,alt:"",className:"w-full aspect-[3/4] object-cover"}),u.jsx("span",{className:`absolute top-2 left-2 px-2.5 py-1 rounded-full text-xs font-bold ${t?"bg-white text-slate-700":"bg-black/60 text-white"}`,children:d===0?"A":"B"}),A&&u.jsx("span",{className:`absolute bottom-0 left-0 right-0 py-2 text-xs font-bold text-white flex items-center justify-center gap-1.5 ${h?"bg-red-500":"bg-emerald-500"}`,children:h?u.jsxs(u.Fragment,{children:[u.jsx(dd,{className:"w-3.5 h-3.5"})," AI generated"]}):u.jsxs(u.Fragment,{children:[u.jsx(bg,{className:"w-3.5 h-3.5"})," Real photograph"]})})]},d)})}),r!==null&&u.jsxs(_e.div,{initial:{opacity:0}
1668,animate:{opacity:1},className:"mt-6 space-y-4",children:[u.jsxs("div",{className:`rounded-2xl p-5 ${o?"bg-emerald-500/10":"bg-red-500/10"}`,children:[u.jsx("p",{className:`text-sm font-bold ${a}`,children:o?"Correct — that one was synthetic.":"That was the real photograph."}),u.jsx("p",{className:`text-sm mt-1.5 leading-relaxed ${t?"text-slate-700":"text-white/70"}`,children:e.why})]}),u.jsxs("div",{className:`rounded-2xl p-5 ${t?"bg-yellow-50":"bg-white/5"}`,children:[u.jsxs("p",{className:`text-xs font-bold uppercase tracking-widest mb-3 flex items-center gap-1.5 ${t?"text-yellow-700":"text-sky"}`,children:[u.jsx(bh,{className:"w-3.5 h-3.5"})," The tells in the fake"]}),u.jsx("ul",{className:"space-y-2",children:e.tells.map((c,d)=>u.jsxs("li",{className:`text-sm leading-relaxed flex gap-2.5 ${t?"text-slate-700":"text-white/70"}`,children:[u.jsx("span",{className:t?"text-yellow-500":"text-sky",children:"—"})," ",c]},d))})]})]})]})}const jJe={type:"object",properties:{verdict:{type:"string",enum:["strong","partial","missing"]},feedback:{type:"string"},strengths:{type:"array",items:{type:"string"}},improve:{type:"array",items:{type:"string"}}},required:["verdict","feedback"]};function OJe({step:e,kid:t,onDone:n}){var h,m;const[r,i]=_.useState(""),[a,o]=_.useState(null),[s,l]=_.useState(!1),c=t?"text-slate-900":"text-white",d=async()=>{if(r.trim().length<15)return;l(!0);const b=`You are marking a short written answer in a free South African cyber-awareness course. Be encouraging, plain-spoken, and never condescending. ${t?"The learner is a child between 8 and 12, so keep the language very simple, warm and short.":"The learner is an adult member of the public or a small business owner."}
1669
1670Question asked: "${e.prompt}"
1671
1672What a good answer must contain: ${e.guide}
1673
1674The learner's answer: "${r.trim()}"
1675
1676Return a verdict of 'strong' if the answer covers the key points, 'partial' if it is on the right track but incomplete, and 'missing' if it misses the point. Give feedback of two or three sentences addressed directly to the learner, then list what they got right and what to add. Never invent facts about South African law.`,g=await mr.integrations.Core.InvokeLLM({prompt:b,response_json_schema:jJe});o(g),l(!1),n(g.verdict!=="missing")},A={strong:"bg-emerald-500/15 text-emerald-500",partial:"bg-amber-500/15 text-amber-500",missing:"bg-red-500/15 text-red-500"};return u.jsxs(_e.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},children:[u.jsxs("span",{className:`inline-flex items-center gap-2 text-xs font-bold uppercase tracking-widest ${t?"text-yellow-600":"text-sky"}`,children:[u.jsx($se,{className:"w-3.5 h-3.5"})," Write your answer"]}),u.jsx("h3",{className:`text-lg md:text-xl font-heading font-bold leading-snug mt-3 ${c}`,children:e.prompt}),e.hint&&u.jsx("p",{className:`text-sm mt-2 ${t?"text-slate-600":"text-white/50"}`,children:e.hint}),u.jsx(PB,{image:e.image,kid:t}),u.jsx("textarea",{value:r,onChange:b=>i(b.target.value),disabled:!!a,rows:5,placeholder:t?"Type your answer here…":"A few sentences in your own words is enough.",className:`mt-5 w-full rounded-2xl px-4 py-3.5 text-sm outline-none resize-none ${t?"bg-white border-2 border-slate-200 text-slate-900 placeholder:text-slate-400 focus:border-yellow-400":"bg-white/5 border border-white/15 text-white placeholder:text-white/30 focus:border-azure"}`}),a?u.jsxs(_e.div,{initial:{opacity:0}
1676,animate:{opacity:1},className:`rounded-2xl p-5 mt-5 ${t?"bg-yellow-50":"bg-white/5"}`,children:[u.jsx("span",{className:`inline-block px-3 py-1 rounded-full text-xs font-bold ${A[a.verdict]}`,children:a.verdict==="strong"?"Strong answer":a.verdict==="partial"?"On the right track":"Have another look"}),u.jsx("p",{className:`text-sm mt-3 leading-relaxed ${t?"text-slate-700":"text-white/75"}`,children:a.feedback}),((h=a.strengths)==null?void 0:h.length)>0&&u.jsxs("div",{className:"mt-4",children:[u.jsx("p",{className:`text-xs font-bold uppercase tracking-widest ${t?"text-slate-500":"text-white/40"}`,children:"You got right"}),u.jsx("ul",{className:"mt-2 space-y-1.5",children:a.strengths.map((b,g)=>u.jsxs("li",{className:`text-sm ${t?"text-slate-700":"text-white/70"}`,children:["— ",b]},g))})]}),((m=a.improve)==null?void 0:m.length)>0&&u.jsxs("div",{className:"mt-4",children:[u.jsx("p",{className:`text-xs font-bold uppercase tracking-widest ${t?"text-slate-500":"text-white/40"}`,children:"Worth adding"}),u.jsx("ul",{className:"mt-2 space-y-1.5",children:a.improve.map((b,g)=>u.jsxs("li",{className:`text-sm ${t?"text-slate-700":"text-white/70"}`,children:["— ",b]},g))})]})]}):u.jsxs("button",{onClick:d,disabled:s||r.trim().length<15,className:`mt-4 inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-bold text-sm disabled:opacity-40 ${t?"bg-yellow-400 text-slate-900":"bg-azure text-white"}`,children:[s?u.jsx(rd,{className:"w-4 h-4 animate-spin"}):u.jsx(Zx,{className:"w-4 h-4"}),s?"Reading your answer…":"Get my feedback"]})]})}function FJe({type:e}){return e==="lock"?u.jsxs("g",{children:[u.jsx("path",{d:"M8 13 V9 a6 6 0 0 1 12 0 V13",stroke:"#475569",strokeWidth:"3.5",fill:"none"}),u.jsx("rect",{x:"3",y:"13",width:"22",height:"16",rx:"4",fill:"#FACC15",stroke:"#CA8A04",strokeWidth:"1.5"}),u.jsx("circle",{cx:"14",cy:"19.5",r:"2.5",fill:"#78350F"}),u.jsx("rect",{x:"13",y:"20",width:"2",height:"5",rx:"1",fill:"#78350F"})]}):e==="shield"?u.jsxs("g",{children:[u.jsx("path",{d:"M14 1 L27 5 V13 C27 21 21 26.5 14 30 C7 26.5 1 21 1 13 V5 Z",fill:"#3B82F6",stroke:"#1D4ED8",strokeWidth:"1.5"}),u.jsx("path",{d:"M8 15 L12.5 19.5 L20 11",stroke:"#FFFFFF",strokeWidth:"3",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]}):e==="key"?u.jsxs("g",{children:[u.jsx("rect",{x:"12",y:"8.5",width:"16",height:"4",rx:"2",fill:"#F59E0B"}),u.jsx("rect",{x:"23",y:"11",width:"3",height:"6",rx:"1",fill:"#F59E0B"}),u.jsx("rect",{x:"18",y:"11",width:"3",height:"4.5",rx:"1",fill:"#F59E0B"}),u.jsx("circle",{cx:"8",cy:"10.5",r:"7",fill:"#F59E0B",stroke:"#B45309",strokeWidth:"1.5"}),u.jsx("circle",{cx:"8",cy:"10.5",r:"2.5",fill:"#FFFFFF"})]}):u.jsxs("g",{children:[u.jsx("line",{x1:"18",y1:"18",x2:"27",y2:"28",stroke:"#78350F",strokeWidth:"4.5",strokeLinecap:"round"}),u.jsx("circle",{cx:"11",cy:"11",r:"9",fill:"#BAE6FD",fillOpacity:"0.85",stroke:"#0F172A",strokeWidth:"3"}),u.jsx("path",{d:"M6 8 Q8 5 11 5",stroke:"#FFFFFF",strokeWidth:"2",fill:"none",strokeLinecap:"round"})]})}const LJe={idle:{y:[0,-4,0],transition:{duration:2.2,repeat:1/0,ease:"easeInOut"}},happy:{y:[0,-16,0,-9,0],rotate:[0,-6,6,-3,0],transition:{duration:1.1,repeat:1/0,repeatDelay:1.2}},oops:{x:[0,-6,6,-4,4,0],rotate:[0,-4,4,0],transition:{duration:.6}}};function DJe({buddy:e,mood:t="idle"}){const{colour:n,shade:r,prop:i}=e;return u.jsxs(_e.svg,{viewBox:"0 0 130 135",className:"w-full h-full overflow-visible",animate:LJe[t],"aria-hidden":"true",children:[u.jsx("ellipse",{cx:"60",cy:"130",rx:"30",ry:"4",fill:"#0F172A",opacity:"0.12"}),u.jsx("line",{x1:"60",y1:"40",x2:"60",y2:"22",stroke:r,strokeWidth:"4",strokeLinecap:"round"}),u.jsx(_e.circle,{cx:"60",cy:"17",r:"6",fill:"#FACC15",animate:{opacity:[1,.3,1]},transition:{duration:1.2,repeat:1/0}}),u.jsx("ellipse",{cx:"45",cy:"121",rx:"11",ry:"6",fill:r}),u.jsx("ellipse",{cx:"75",cy:"121",rx:"11",ry:"6",fill:r}),u.jsx(_e.path,{d:"M30 82 Q14 72 16 56",stroke:n,strokeWidth:"9",strokeLinecap:"round",fill:"none",style:{transformOrigin:"30px 82px"},animate:{rotate:t==="oops"?0:[0,-18,6,-18,0]},transition:{duration:1.4,repeat:1/0,repeatDelay:t==="happy"?0:1.5}}
1676),u.jsx("rect",{x:"24",y:"38",width:"72",height:"84",rx:"32",fill:n}),u.jsx("rect",{x:"32",y:"54",width:"56",height:"40",rx:"18",fill:"#FFFFFF"}),t==="happy"?u.jsxs("g",{stroke:"#0F172A",strokeWidth:"3",fill:"none",strokeLinecap:"round",children:[u.jsx("path",{d:"M43 73 Q48 66 53 73"}),u.jsx("path",{d:"M67 73 Q72 66 77 73"})]}):u.jsxs(_e.g,{style:{transformOrigin:"60px 71px"},animate:{scaleY:[1,1,.1,1]},transition:{duration:3.5,times:[0,.9,.95,1],repeat:1/0},children:[u.jsx("circle",{cx:"48",cy:"71",r:"5",fill:"#0F172A"}),u.jsx("circle",{cx:"72",cy:"71",r:"5",fill:"#0F172A"}),u.jsx("circle",{cx:"49.5",cy:"69.5",r:"1.6",fill:"#FFFFFF"}),u.jsx("circle",{cx:"73.5",cy:"69.5",r:"1.6",fill:"#FFFFFF"})]}),u.jsx("circle",{cx:"40",cy:"83",r:"4",fill:"#FDA4AF",opacity:"0.8"}),u.jsx("circle",{cx:"80",cy:"83",r:"4",fill:"#FDA4AF",opacity:"0.8"}),t==="happy"&&u.jsx("path",{d:"M50 81 Q60 94 70 81 Z",fill:"#0F172A"}),t==="idle"&&u.jsx("path",{d:"M52 83 Q60 89 68 83",stroke:"#0F172A",strokeWidth:"3",fill:"none",strokeLinecap:"round"}),t==="oops"&&u.jsx("ellipse",{cx:"60",cy:"85",rx:"3.5",ry:"4",fill:"#0F172A"}),u.jsx(_e.circle,{cx:"60",cy:"107",r:"4",fill:"#FACC15",animate:{scale:[1,1.3,1]},transition:{duration:1.6,repeat:1/0}}),u.jsx("path",{d:"M94 84 Q106 88 104 98",stroke:n,strokeWidth:"9",strokeLinecap:"round",fill:"none"}),u.jsx(_e.g,{style:{transformOrigin:"104px 98px"},animate:{rotate:[0,10,0,-6,0]},transition:{duration:2,repeat:1/0},children:u.jsx("g",{transform:"translate(96 84)",children:u.jsx(FJe,{type:i})})})]},t)}const MJe=[{Icon:Mh,cls:"-top-1 -left-3 text-sky-500",delay:0},{Icon:Mo,cls:"top-3 -right-4 text-emerald-500",delay:.6},{Icon:KV,cls:"bottom-8 -left-5 text-amber-500",delay:1.2},{Icon:J2,cls:"bottom-3 -right-3 text-violet-500",delay:1.8}],UJe=[0,60,120,180,240,300];function RJe({mood:e}){return u.jsxs("div",{className:"absolute inset-0 pointer-events-none","aria-hidden":"true",children:[MJe.map(({Icon:t,cls:n,delay:r},i)=>u.jsx(_e.div,{className:`absolute ${n}`,animate:{y:[0,-8,0],rotate:[0,12,-8,0],opacity:[.55,1,.55]},transition:{duration:3,delay:r,repeat:1/0,ease:"easeInOut"},children:u.jsx(t,{className:"w-4 h-4"})},i)),e==="happy"&&UJe.map(t=>u.jsx(_e.div,{className:"absolute left-1/2 top-1/2 text-yellow-400",initial:{x:0,y:0,opacity:0,scale:.4},animate:{x:Math.cos(t*Math.PI/180)*60,y:Math.sin(t*Math.PI/180)*60,opacity:[0,1,0],scale:[.4,1.2,.8]},transition:{duration:1,repeat:1/0,repeatDelay:1.3},children:u.jsx(HT,{className:"w-4 h-4 fill-yellow-400"})},t))]})}function kV({buddy:e,text:t,mood:n}){return u.jsxs("div",{className:"flex items-end gap-4 mb-6 text-left",children:[u.jsxs(_e.div,{initial:{scale:0,rotate:-20},animate:{scale:1,rotate:0},transition:{type:"spring",stiffness:260,damping:14},className:"relative w-24 h-24 sm:w-28 sm:h-28 shrink-0",children:[u.jsx(RJe,{mood:n}),u.jsx(DJe,{buddy:e,mood:n})]}),u.jsxs("div",{className:"relative flex-1 min-w-0 mb-5",children:[u.jsx(sl,{mode:"wait",children:u.jsxs(_e.div,{initial:{opacity:0,scale:.85,y:8},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9},transition:{type:"spring",stiffness:320,damping:20},className:"rounded-3xl bg-yellow-50 border-2 border-yellow-300 px-4 py-3 origin-bottom-left",children:[u.jsx("p",{className:"text-[11px] font-extrabold uppercase tracking-widest text-yellow-700",children:e.name}),u.jsx("p",{className:"text-sm font-semibold text-slate-800 mt-0.5 leading-snug",children:t})]},t)}),u.jsx("div",{className:"absolute -left-1.5 bottom-5 w-3.5 h-3.5 bg-yellow-50 border-l-2 border-b-2 border-yellow-300 rotate-45"})]})]})}const EV={"kid-w1":{name:"Lulu the Lock Bot",colour:"#38BDF8",shade:"#0284C7",prop:"lock",intro:"Hi, I am Lulu! I guard the secrets that stay inside your house, so let us find out together what to keep private."},"kid-w2":{name:"Captain Block",colour:"#FB7185",shade:"#E11D48",prop:"shield",intro:"Hello, I am Captain Block! My shield stops tricky strangers, and today you are going to learn how to spot them with me."},"kid-w3":{name:"Kiki the Key Keeper",colour:"#34D399",shade:"#059669",prop:"key",intro:"Hey there, I am Kiki! I make super long and super silly password keys, so let us build one together."},"kid-w4":{name:"Detective Dot",colour:"#A78BFA",shade:"#7C3AED",prop:"magnifier",intro:"Hi, I am Detective Dot! My magnifying glass helps me pause and check, so let us look very closely together."}},QJe={lesson:"Read this with your grown-up, and watch the video too.",sort:"Drag and drop time! Put each card in the right box and I will cheer you on.",quiz:"Have a little think, then pick the answer you believe is right.",eliminate:"Tap every tricky one you can find, I know y
1676ou can do it!",spot:"Detective time! Look really closely at both pictures.",written:"Tell me in your own words, a sentence or two is perfect."},NV=["Yes! You are a cyber superstar!","Brilliant thinking, well done you!","High five! That was super smart.","Wow, you really know your stuff!"];function HJe(e){return EV[e.id]||EV["kid-w1"]}function $Je(e,t,n,r){return r==="oops"?"Oops, that is okay! Read why below, then keep going, because everybody learns this way.":r==="happy"?NV[n%NV.length]:n===0?e.intro:QJe[t.type]}function qJe(e,t){return t?`You did it! ${e.name} is so proud of you, and you have earned your badge.`:"Nearly there! Let us try again together, you are getting better every time."}const zJe={lesson:uWe,quiz:dWe,sort:_Je,eliminate:IJe,spot:PJe,written:OJe};function kF({module:e,kid:t=!1,onComplete:n,onExit:r}){const[i,a]=_.useState(0),[o,s]=_.useState(!1),[l,c]=_.useState(0),[d,A]=_.useState(!1),[h]=_.useState(Date.now()),[m,b]=_.useState("idle"),g=t?HJe(e):null,y=e.steps,v=y[i],x=ane(e).length,B=P8e(e),C=zJe[v.type],E=t?"bg-white border-slate-200":"bg-white/5 border-white/10",T=t?"text-slate-900":"text-white",j=t?"text-slate-600":"text-white/60",O=(F,M={})=>{s(!0),M.scored!==!1&&F&&c(V=>V+1),M.scored!==!1&&b(F?"happy":"oops")},L=()=>{i+1<y.length?(a(i+1),s(!1),b("idle")):(A(!0),n({score:l,total:x,passed:l>=B,seconds:Math.round((Date.now()-h)/1e3)}))},z=()=>{a(0),s(!1),c(0),A(!1),b("idle")};if(d){const F=l>=B;return u.jsxs(_e.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`rounded-3xl border p-8 text-center ${E}`,children:[t?u.jsx(kV,{buddy:g,mood:F?"happy":"oops",text:qJe(g,F)}):u.jsx("div",{className:`w-16 h-16 rounded-full mx-auto flex items-center justify-center ${F?"bg-azure":"bg-slate-400"}`,children:u.jsx(wle,{className:"w-8 h-8 text-white"})}),u.jsx("h3",{className:`text-2xl font-heading font-extrabold mt-5 ${T}`,children:F?t?"You did it!":`${e.section||"Section"} complete`:t?"Nearly there!":"Not quite yet"}),u.jsxs("p",{className:`mt-2 text-sm ${j}`,children:["You got ",l," of ",x," exercises right. ",F?"":`You need ${B} to pass — go again, nothing is held against you.`]}),u.jsxs("div",{className:`mt-6 rounded-2xl p-5 text-left ${t?"bg-yellow-50":"bg-white/5"}`,children:[u.jsx("p",{className:`text-xs font-bold uppercase tracking-widest mb-2 ${t?"text-yellow-700":"text-sky"}`,children:"Do this today"}),u.jsx("p",{className:`text-sm leading-relaxed ${T}`,children:e.action})]}),u.jsxs("div",{className:"flex gap-3 justify-center mt-6 flex-wrap",children:[!F&&u.jsx("button",{onClick:z,className:`px-6 py-3 rounded-full font-bold text-sm ${t?"bg-slate-900 text-white":"bg-white/10 text-white border border-white/20"}`,children:"Try again"}),u.jsx("button",{onClick:r,className:`px-6 py-3 rounded-full font-bold text-sm ${t?"bg-yellow-400 text-slate-900":"bg-azure text-white"}`,children:"Back to my dashboard"})]})]})}return u.jsxs("div",{className:`rounded-3xl border p-6 md:p-8 ${E}`,children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("span",{className:`text-xs font-bold uppercase tracking-widest ${t?"text-yellow-600":"text-sky"}`,children:[e.section||e.title," · Step ",i+1," of ",y.length]}),u.jsx("button",{onClick:r,className:`text-xs font-semibold ${j}`,children:"Exit"})]}),u.jsx("div",{className:`h-1.5 rounded-full mb-7 ${t?"bg-slate-200":"bg-white/10"}`,children:u.jsx(_e.div,{className:`h-1.5 rounded-full ${t?"bg-yellow-400":"bg-azure"}`,animate:{width:`${(i+(o?1:0))/y.length*100}%`}})}),t&&u.jsx(kV,{buddy:g,mood:m,text:$Je(g,v,i,m)}),u.jsx(C,{step:v,kid:t,module:e,onDone:O},i),o&&u.jsxs(_e.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},onClick:L,className:`mt-7 inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-bold text-sm ${t?"bg-yellow-400 text-slate-900":"bg-azure text-white"}`,children:[i+1<y.length?"Continue":"See my result"," ",u.jsx(qA,{className:"w-4 h-4"})]})]})}const VJe="#0EA5E9",RB=({children:e})=>u.jsx("svg",{viewBox:"0 0 64 64",fill:"none",stroke:VJe,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-full h-full",children:e}),WJe=()=>u.jsxs(RB,{children:[u.jsx("path",{d:"M32 8 54 16v18c0 13-9 20-22 24C19 54 10 47 10 34V16L32 8Z"}),u.jsx("path",{d:"M22 32l7 8 14-15"})]}),KJe=()=>u.jsxs(RB,{children:[u.jsx("rect",{x:"14",y:"28",width:"36",height:"26",rx:"6"}),u.jsx("path",{d:"M22 28v-7a10 10 0 0 1 20 0v7"}),u.jsx("circle",{cx:"32",cy:"41",r:"3.5"})]}),GJe=()=>u.jsxs(RB,{children:[u.jsx("rect",{x:"14",y:"22",width:"36",height:"28",rx:"8"}),u.jsx("circle",{cx:"25",cy:"34",r:"3"}),u.jsx("circle",{cx:"39",cy:"34",r:"3"}),u.jsx("path",{d:"M26 43h12M32 22v-8M32 14l-4-4M32 14l4-4M10 32v8M54 32v8"})]}),YJe=()=>u.jsxs(RB,{children:[u.jsx("path",{d:"M10 26a32 32 0 0 1 44 0"}),u.jsx("path",{d:"M18 36a21 21 0 0 1 28 0"}),u.jsx("path",{d:"M26 45a10 10 0 0 1 12 0"}),u.jsx("circle",{cx:"32",cy:"52",r:"2.5"})]});function XJe(){return u.jsxs("div",{className:"absolute inset-0 pointer-events-none",style:{opacity:.5},children:[u.jsx("div",{className:"absolute top-6 left-7 w-10 h-10 md:w-12 md:h-12",children:u.jsx(WJe,{})}),u.jsx("div",{className:"absolute top-6 right-7 w-10 h-10 md:w-12 md:h-12",children:u.jsx(KJe,{})}),u.jsx("div",{className:"absolute bottom-6 left-7 w-10 h-10 md:w-12 md:h-12",children:u.jsx(YJe,{})}),u.jsx("div",{className:"absolute bottom-6 right-7 w-10 h-10 md:w-12 md:h-12",children:u.jsx(GJe,{})})]})}function EF({displayName:e,badgeCount:t,sectionCount:n,kid:r=!1,onClose:i}){const a=new Date().toLocaleDateString("en-ZA",{day:"numeric",month:"long",year:"numeric"}),o=_.useRef(null),[s,l]=_.useState(null),c=async d=>{if(!o.current)return;l(d);const A=`cyber-savvy-sa-certificate-${e.toLowerCase().replace(/\s+/g,"-")}`;d==="pdf"?await iie(o.current,A):await rie(o.current,A),l(null)};return u.jsxs("div",{className:"fixed inset-0 z-50 bg-slate-900/80 overflow-y-auto p-4 print:static print:bg-white print:p-0",children:[u.jsx("style",{children:`@media print {
1677        body * { visibility: hidden !important; }
1678        #cyber-cert, #cyber-cert * { visibility: visible !important; }
1679        #cyber-cert { position: absolute; inset: 0; margin: 0; box-shadow: none; border-radius: 0; }
1680        @page { size: A4 landscape; margin: 10mm; }
1681      }`}),u.jsxs("div",{className:"max-w-4xl mx-auto my-6 print:my-0",children:[u.jsxs("div",{className:"flex justify-end gap-3 mb-4 print:hidden",children:[u.jsxs("button",{onClick:()=>c("pdf"),disabled:!!s,className:`inline-flex items-center gap-2 px-6 py-3 rounded-full font-bold text-sm disabled:opacity-60 ${r?"bg-yellow-400 text-slate-900 hover:bg-yellow-300":"bg-azure text-white hover:bg-sky"}`,children:[s==="pdf"?u.jsx(rd,{className:"w-4 h-4 animate-spin"}):u.jsx(Fm,{className:"w-4 h-4"}),s==="pdf"?"Preparing…":"Download PDF"]}),u.jsxs("button",{onClick:()=>c("png"),disabled:!!s,className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-white text-slate-700 font-bold text-sm disabled:opacity-60",children:[s==="png"?u.jsx(rd,{className:"w-4 h-4 animate-spin"}):u.jsx(Fm,{className:"w-4 h-4"}),"PNG"]}),u.jsxs("button",{onClick:()=>window.print(),className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-white text-slate-700 font-bold text-sm",children:[u.jsx(tW,{className:"w-4 h-4"})," Print"]}),u.jsxs("button",{onClick:i,className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-white text-slate-700 font-bold text-sm",children:[u.jsx(dd,{className:"w-4 h-4"})," Close"]})]}),u.jsxs("div",{id:"cyber-cert",ref:o,className:"relative bg-white rounded-3xl shadow-2xl overflow-hidden aspect-[1.414/1]",children:[u.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{opacity:.6,backgroundImage:`radial-gradient(circle at 18% 22%, rgba(0,155,223,0.14) 0%, transparent 42%),
1682                radial-gradient(circle at 84% 78%, rgba(32,188,237,0.12) 0%, transparent 45%),
1683                radial-gradient(rgba(0,155,223,0.18) 1px, transparent 1.4px)`,backgroundSize:"100% 100%, 100% 100%, 22px 22px"}}),u.jsx("div",{className:"absolute inset-3 md:inset-4 rounded-xl pointer-events-none",style:{border:"0.5px solid rgba(0,155,223,0.16)"}}),u.jsx(XJe,{}),u.jsxs("div",{className:"relative h-full flex flex-col items-center justify-center text-center px-16 py-10",children:[u.jsx("img",{src:_A.sourceworxLogo,alt:"Sourceworx",className:"w-36 mb-5",crossOrigin:"anonymous"}),u.jsx("p",{className:"text-xs md:text-sm font-bold uppercase tracking-[0.3em] text-sky-600",children:"Cyber Savvy SA"}),u.jsx("h1",{className:"text-2xl md:text-4xl font-heading font-extrabold text-slate-900 mt-3",children:r?"I am Cyber Safe!":"Certificate of Completion"}),u.jsx("p",{className:"text-xs md:text-sm text-slate-500 mt-4",children:r?"This certificate is proudly awarded to":"Awarded to"}),u.jsx("p",{className:"text-3xl md:text-5xl font-heading font-extrabold text-sky-700 mt-2 break-words max-w-full",children:e}),u.jsx("p",{className:"text-xs md:text-sm text-slate-600 mt-5 max-w-lg leading-relaxed",children:r?"for finishing every section of Cyber Savvy SA — for keeping private things private, telling a grown-up, making strong silly passwords, and always pausing to check if it is real.":`for completing all ${n} sections of the Cyber Savvy SA awareness programme, covering scam recognition, account security, payment verification, synthetic media, artificial intelligence, privacy under POPIA, and device hardening.`}),u.jsxs("div",{className:"flex items-center gap-6 mt-6",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-lg md:text-2xl font-heading font-extrabold text-slate-900",children:t}),u.jsx("p",{className:"text-[10px] md:text-xs text-slate-500 uppercase tracking-widest",children:"Badges"})]}),u.jsx("div",{className:"w-px h-8 bg-slate-200"}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs md:text-sm font-bold text-slate-900",children:a}),u.jsx("p",{className:"text-[10px] md:text-xs text-slate-500 uppercase tracking-widest",children:"Awarded"})]})]}),u.jsx("p",{className:"text-[10px] md:text-xs text-slate-400 mt-6",children:"Awarded by Sourceworx · Cyber Savvy SA awareness programme"})]})]})]})]})}function JJe(){const{modules:e,participant:t,attempts:n,badges:r,activeModule:i,setActiveModule:a,loading:o,onEnrolled:s,completeModule:l,signOut:c,allComplete:d}=QO("adult"),[A,h]=_.useState(!1);return u.jsxs("div",{className:"min-h-screen bg-[#0A0F1A]",children:[u.jsxs("div",{className:"relative h-52 overflow-hidden",children:[u.jsx("img",{src:_A.adultHero,alt:"",className:"w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#0A0F1A] via-[#0A0F1A]/70 to-[#0A0F1A]/40"}),u.jsx("div",{className:"absolute inset-0 flex items-end",children:u.jsxs("div",{className:"max-w-4xl mx-auto w-full px-6 lg:px-8 pb-6 flex items-end justify-between gap-4",children:[u.jsxs("div",{children:[u.jsxs(Ft,{to:"/cyber-savvy",className:"inline-flex items-center gap-1.5 text-xs font-semibold text-white/60 hover:text-white",children:[u.jsx(Dh,{className:"w-3.5 h-3.5"})," Cyber Savvy SA"]}),u.jsxs("h1",{className:"text-2xl md:text-3xl font-heading font-extrabold text-white mt-2 flex items-center gap-2",children:[u.jsx(Mo,{className:"w-6 h-6 text-sky"})," Adult path"]})]}),t&&u.jsx("button",{onClick:c,className:"text-xs font-semibold text-white/50 hover:text-white",children:"Sign out"})]})})]}),u.jsx("div",{className:"max-w-4xl mx-auto px-6 lg:px-8 py-10",children:o?u.jsx("p",{className:"text-white/40 text-sm",children:"Loading your progress…"}):t?i?u.jsx(kF,{module:i,onComplete:m=>l(i,m),onExit:()=>a(null)}):u.jsx(zO,{modules:e,attempts:n,badges:r,displayName:t.display_name,onOpen:a,onCertificate:d?()=>h(!0):void 0}):u.jsxs(u.Fragment,{children:[u.jsx($8e,{onEnrolled:s}),u.jsx(qO,{pathKey:"adult",onEnrolled:s})]})}),A&&t&&u.jsx(EF,{displayName:t.display_name,badgeCount:r.length,sectionCount:e.length,onClose:()=>h(!1)})]})}function ZJe({onEnrolled:e}){const[t,n]=_.useState(""),[r,i]=_.useState(""),[a,o]=_.useState(""),[s,l]=_.useState({}),[c,d]=_.useState(!1),[A,h]=_.useState(""),m=(g,y)=>l(v=>({...v,[g]:y})),b=async g=>{if(g.preventDefault(),h(""),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))return h("Please enter a valid email address.");
1683if(!r.trim())return h("Please enter the name you want on your certificate.");if(s.guardian_copy&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a))return h("Please enter your parent or guardian's email address, or switch that choice off.");d(!0);try{const y=await Q8e({email:t.trim(),displayName:r.trim(),guardianEmail:s.guardian_copy?a.trim():"",consents:s,tiers:AP});e(y)}catch(y){h(y.message||"Something went wrong. Please try again."),d(!1)}};return u.jsxs(_e.form,{onSubmit:b,initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"rounded-3xl border border-white/10 bg-white/5 p-6 md:p-8 backdrop-blur",children:[u.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-sky",children:"Register · Teens, 13 to 17"}),u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-white mt-3",children:"Five sections. Real situations. No lectures."}),u.jsx("p",{className:"text-sm text-white/55 mt-2 leading-relaxed",children:"Group chats, cyberbullying, scams built for your age group, AI fakes and locking down your accounts. We ask for two things only, and you choose everything else."}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-7",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-bold text-white/70 uppercase tracking-widest",children:"Your email address"}),u.jsx("input",{type:"email",value:t,onChange:g=>n(g.target.value),className:"mt-2 w-full rounded-xl bg-white/5 border border-white/15 px-4 py-3 text-white text-sm placeholder:text-white/30 focus:border-azure outline-none",placeholder:"[email protected]"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-bold text-white/70 uppercase tracking-widest",children:"Name for your certificate"}),u.jsx("input",{value:r,onChange:g=>i(g.target.value),className:"mt-2 w-full rounded-xl bg-white/5 border border-white/15 px-4 py-3 text-white text-sm placeholder:text-white/30 focus:border-azure outline-none",placeholder:"Lerato Dube"})]})]}),u.jsxs("div",{className:"mt-8",children:[u.jsx("p",{className:"text-xs font-bold text-white/70 uppercase tracking-widest mb-4",children:"Your choices"}),u.jsx(HO,{tiers:AP,values:s,onChange:m})]}),s.guardian_copy&&u.jsxs("div",{className:"mt-5",children:[u.jsx("label",{className:"text-xs font-bold text-white/70 uppercase tracking-widest",children:"Parent or guardian email"}),u.jsx("input",{type:"email",value:a,onChange:g=>o(g.target.value),className:"mt-2 w-full md:w-1/2 rounded-xl bg-white/5 border border-white/15 px-4 py-3 text-white text-sm placeholder:text-white/30 focus:border-azure outline-none",placeholder:"[email protected]"})]}),A&&u.jsx("p",{className:"text-sm text-red-400 mt-5",children:A}),u.jsxs("button",{type:"submit",disabled:c,className:"mt-7 w-full md:w-auto inline-flex items-center justify-center gap-2 px-8 py-4 rounded-full bg-azure text-white font-bold text-sm hover:bg-sky transition-colors disabled:opacity-60",children:[c?u.jsx(rd,{className:"w-4 h-4 animate-spin"}):u.jsx(Mo,{className:"w-4 h-4"}),c?"Setting up your path":"Start the first section"," ",!c&&u.jsx(qA,{className:"w-4 h-4"})]}),u.jsx("p",{className:"text-xs text-white/40 mt-4 leading-relaxed",children:"Your answers are stored under POPIA as the responsible party, Sourceworx. Your individual answers are never shown to your school or to a parent. All programme data is deleted on 31 January 2027, and you can withdraw any choice above at any time."})]})}function eZe(){const{modules:e,participant:t,attempts:n,badges:r,activeModule:i,setActiveModule:a,loading:o,onEnrolled:s,completeModule:l,signOut:c,allComplete:d}=QO("teen"),[A,h]=_.useState(!1);return u.jsxs("div",{className:"min-h-screen bg-[#0A0F1A]",children:[u.jsxs("div",{className:"relative h-52 overflow-hidden",children:[u.jsx("img",{src:_A.teenHero,alt:"",className:"w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#0A0F1A] via-[#0A0F1A]/70 to-[#0A0F1A]/40"}),u.jsx("div",{className:"absolute inset-0 flex items-end",children:u.jsxs("div",{className:"max-w-4xl mx-auto w-full px-6 lg:px-8 pb-6 flex items-end justify-between gap-4",children:[u.jsxs("div",{children:[u.jsxs(Ft,{to:"/cyber-savvy",className:"inline-flex items-center gap-1.5 text-xs font-semibold text-white/60 hover:text-white",children:[u.jsx(Dh,{className:"w-3.5 h-3.5"})," Cyber Savvy SA"]}),u.jsxs("h1",{className:"text-2xl md:text-3xl font-heading font-extrabold text-white mt-2 flex items-center gap-2",children:[u.jsx(Mo,{className:"w-6 h-6 text-sky"})," Teen path"]}),u.jsx("p",{className:"text-xs text-white/50 mt-1",children:"Ages 13 to 17 · five sections"})]}),t&&u.jsx("button",{onClick:c,className:"text-xs font-semibold text-white/50 hover:text-white",children:"Sign out"})]})})]}),u.jsx("div",{className:"max-w-4xl mx-auto px-6 lg:px-8 py-10",children:o?u.jsx("p",{className:"text-white/40 text-sm",children:"Loading your progress…"}):t?i?u.jsx(kF,{module:i,onComplete:m=>l(i,m),onExit:()=>a(null)}):u.jsx(zO,{modules:e,attempts:n,badges:r,displayName:t.display_name,onOpen:a,onCertificate:d?()=>h(!0):void 0}):u.jsxs(u.Fragment,{children:[u.jsx(ZJe,{onEnrolled:s}),u.jsx(qO,{pathKey:"teen",onEnrolled:s})]})}),A&&t&&u.jsx(EF,{displayName:t.display_name,badgeCount:r.length,sectionCount:e.length,onClose:()=>h(!1)})]})}const tZe=["8–9","10–11","12"];function nZe({onEnrolled:e}){const[t,n]=_.useState(1),[r,i]=_.useState(""),[a,o]=_.useState(""),[s,l]=_.useState(!1),[c,d]=_.useState({}),[A,h]=_.useState(""),[m,b]=_.useState(""),[g,y]=_.useState(!1),[v,x]=_.useState(""),B=(j,O)=>d(L=>({...L,[j]:O})),C="mt-2 w-full rounded-2xl bg-white border-2 border-slate-200 px-4 py-3 text-slate-900 text-sm placeholder:text-slate-400 focus:border-yellow-400 outline-none",E=j=>{if(j.preventDefault(),x(""),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r))return x("Please enter a valid email address.");
1683if(!a.trim())return x("Please enter your first name.");if(!s)return x("Please confirm you are the parent or legal guardian.");n(2)},T=async j=>{if(j.preventDefault(),x(""),!A.trim())return x("Please add a first name or nickname for your child.");if(!m)return x("Please choose an age band.");y(!0);try{const O=await H8e({guardianEmail:r.trim(),guardianName:a.trim(),childName:A.trim(),ageBand:m,consents:c,tiers:hP});e(O)}catch(O){x(O.message||"Something went wrong. Please try again."),y(!1)}};return u.jsxs(_e.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"rounded-3xl bg-white border-2 border-slate-200 p-6 md:p-8 shadow-xl shadow-sky-100",children:[u.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-yellow-600",children:t===1?"Step 1 of 2 · Parent or guardian":"Step 2 of 2 · Your child"}),t===1?u.jsxs("form",{onSubmit:E,children:[u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-slate-900 mt-3",children:"The grown-up goes first."}),u.jsx("p",{className:"text-sm text-slate-600 mt-2 leading-relaxed",children:"Children cannot sign themselves up. You register, you decide what we may do, and then you create your child's profile."}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-7",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-widest",children:"Your email"}),u.jsx("input",{type:"email",value:r,onChange:j=>i(j.target.value),className:C,placeholder:"[email protected]"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-widest",children:"Your first name"}),u.jsx("input",{value:a,onChange:j=>o(j.target.value),className:C,placeholder:"Naledi"})]})]}),u.jsxs("div",{className:"mt-8",children:[u.jsx("p",{className:"text-xs font-bold text-slate-500 uppercase tracking-widest mb-4",children:"Your choices"}),u.jsx(HO,{tiers:hP,values:c,onChange:B,kid:!0})]}),u.jsxs("label",{className:"flex items-start gap-3 mt-6 rounded-2xl bg-sky-50 p-4 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:s,onChange:j=>l(j.target.checked),className:"mt-1 w-4 h-4 accent-yellow-500"}),u.jsx("span",{className:"text-sm text-slate-700 leading-relaxed",children:"I confirm that I am the parent or legal guardian of the child I am registering, and that I consent to this training on their behalf."})]}),v&&u.jsx("p",{className:"text-sm text-red-600 mt-5",children:v}),u.jsxs("button",{type:"submit",className:"mt-7 inline-flex items-center gap-2 px-8 py-4 rounded-full bg-slate-900 text-white font-bold text-sm hover:bg-slate-800 transition-colors",children:["Continue to my child's profile ",u.jsx(qA,{className:"w-4 h-4"})]})]}):u.jsxs("form",{onSubmit:T,children:[u.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-extrabold text-slate-900 mt-3",children:"Who is learning with you?"}),u.jsx("p",{className:"text-sm text-slate-600 mt-2 leading-relaxed",children:"A first name or nickname is enough. No surname, no school, no photo — ever."}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-7",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-widest",children:"First name or nickname"}),u.jsx("input",{value:A,onChange:j=>h(j.target.value),className:C,placeholder:"Lesedi"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-widest",children:"Age band"}),u.jsx("div",{className:"flex gap-2 mt-2",children:tZe.map(j=>u.jsx("button",{type:"button",onClick:()=>b(j),className:`flex-1 py-3 rounded-2xl text-sm font-bold border-2 transition-colors ${m===j?"bg-yellow-400 border-yellow-400 text-slate-900":"bg-white border-slate-200 text-slate-600"}`,children:j},j))})]})]}),v&&u.jsx("p",{className:"text-sm text-red-600 mt-5",children:v}),u.jsxs("div",{className:"flex gap-3 mt-7 flex-wrap",children:[u.jsx("button",{type:"button",onClick:()=>n(1),className:"px-6 py-4 rounded-full bg-slate-100 text-slate-700 font-bold text-sm",children:"Back"}),u.jsxs("button",{type:"submit",disabled:g,className:"inline-flex items-center gap-2 px-8 py-4 rounded-full bg-yellow-400 text-slate-900 font-bold text-sm hover:bg-yellow-300 transition-colors disabled:opacity-60",children:[g?u.jsx(rd,{className:"w-4 h-4 animate-spin"}):u.jsx(s3,{className:"w-4 h-4"}),g?"Getting ready":"Start Week 1 together"]})]}),u.jsx("p",{className:"text-xs text-slate-400 mt-4 leading-relaxed",children:"We will email you to confirm your address. Sourceworx is the responsible party under POPIA and all programme data is deleted on 31 January 2027."})]})]})}const rZe=[{cls:"top-[10%] w-16 h-16",dur:55,delay:0},{cls:"top-[42%] w-24 h-24",dur:75,delay:12},{cls:"top-[72%] w-12 h-12",dur:65,delay:28}];function iZe(){return u.jsxs(u.Fragment,{children:[rZe.map((e,t)=>u.jsx(_e.div,{className:`absolute left-0 ${e.cls} text-sky-200`,initial:{x:"-20vw"},animate:{x:"110vw"},transition:{duration:e.dur,delay:e.delay,repeat:1/0,ease:"linear"},children:u.jsx(a3,{className:"w-full h-full fill-white",strokeWidth:1.5})},t)),u.jsx(_e.div,{className:"absolute left-0 top-[28%] text-sky-500",initial:{x:"-10vw"},animate:{x:["-10vw","30vw","60vw","110vw"],y:[0,-70,30,-40],rotate:[0,-15,20,0]},transition:{duration:16,repeat:1/0,repeatDelay:6,ease:"easeInOut"},children:u.jsx(aW,{className:"w-8 h-8"})}),u.jsx(_e.div,{className:"absolute left-[85%] bottom-0 text-rose-400",initial:{y:"10vh"},animate:{y:["10vh","-120vh"],x:[0,-12,10,-6,0]},transition:{duration:9,repeat:1/0,repeatDelay:14,ease:"easeIn",delay:4},children:u.jsx(Zse,{className:"w-9 h-9 -rotate-45 fill-rose-100"})})]})}const aZe=[{Icon:Mh,cls:"left-[6%] text-sky-500",dur:22,delay:0},{Icon:Mo,cls:"left-[28%] text-emerald-500",dur:26,delay:7},{Icon:s3,cls:"left-[52%] text-rose-400",dur:20,delay:3},{Icon:KV,cls:"left-[74%] text-amber-500",dur:24,delay:11},{Icon:J2,cls:"left-[92%] text-violet-500",dur:21,delay:16}],oZe=[{Icon:HT,cls:"top-[18%] left-[70%] text-yellow-400",delay:0},{Icon:Zx,cls:"top-[55%] left-[12%] text-yellow-400",delay:1.2},{Icon:HT,cls:"top-[85%] left-[45%] text-sky-400",delay:2.1},{Icon:Zx,cls:"top-[35%] left-[90%] text-rose-300",delay:.7}];function sZe(){return u.jsxs(u.Fragment,{children:[aZe.map(({Icon:e,cls:t,dur:n,delay:r},i)=>u.jsx(_e.div,{className:`absolute bottom-0 ${t}`,initial:{y:"15vh"},animate:{y:["15vh","-115vh"],x:[0,18,-14,12,0]},transition:{duration:n,delay:r,repeat:1/0,ease:"linear"},children:u.jsx("div",{className:"w-10 h-10 rounded-full bg-white/75 border-2 border-sky-100 shadow-sm flex items-center justify-center",children:u.jsx(e,{className:"w-5 h-5"})})},i)),oZe.map(({Icon:e,cls:t,delay:n},r)=>u.jsx(_e.div,{className:`absolute ${t}`,animate:{scale:[0,1.2,0],rotate:[0,90,180],opacity:[0,1,0]},transition:{duration:2.6,delay:n,repeat:1/0,repeatDelay:1.5},children:u.jsx(e,{className:"w-5 h-5 fill-current"})},r))]})}function lZe(){return u.jsxs("div",{className:"fixed inset-0 pointer-events-none overflow-hidden z-0","aria-hidden":"true",children:[u.jsx("div",{className:"absolute inset-0 kids-motif"}),u.jsx(iZe,{}),u.jsx(sZe,{})]})}function cZe(){const{modules:e,participant:t,attempts:n,badges:r,activeModule:i,setActiveModule:a,loading:o,onEnrolled:s,completeModule:l,signOut:c,allComplete:d}=QO("kid"),[A,h]=_.useState(!1);return u.jsxs("div",{className:"relative min-h-screen bg-gradient-to-b from-sky-100 via-yellow-50 to-white",children:[u.jsx(lZe,{}),u.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-6 lg:px-8 pt-8",children:[u.jsxs("div",{className:"flex items-center justify-between gap-4",children:[u.jsxs(Ft,{to:"/cyber-savvy",className:"inline-flex items-center gap-1.5 text-xs font-bold text-slate-700 bg-white/95 rounded-full px-3 py-1.5 shadow-sm hover:text-slate-900",children:[u.jsx(Dh,{className:"w-3.5 h-3.5"})," Cyber Savvy SA"]}),t&&u.jsx("button",{onClick:c,className:"text-xs font-semibold text-slate-400 hover:text-slate-700",children:"Sign out"})]}),u.jsxs("div",{className:"flex items-center gap-4 mt-6 mb-8 bg-white/95 rounded-3xl p-4 shadow-sm border border-slate-100",children:[u.jsx("img",{src:_A.kidBadge,alt:"",className:"w-16 h-16 rounded-2xl object-cover shadow-lg"}),u.jsxs("div",{children:[u.jsxs("h1",{className:"text-2xl md:text-3xl font-heading font-extrabold text-slate-900 flex items-center gap-2",children:["Kids path ",u.jsx(Zx,{className:"w-5 h-5 text-yellow-500"})]}),u.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Ages 8 to 12, always with a grown-up."})]})]})]}),u.jsx("div",{className:"relative z-10 max-w-4xl mx-auto px-6 lg:px-8 pb-14",children:o?u.jsx("p",{className:"text-slate-500 text-sm",children:"Loading…"}):t?i?u.jsx(kF,{module:i,kid:!0,onComplete:m=>l(i,m),onExit:()=>a(null)}):u.jsx(zO,{modules:e,attempts:n,badges:r,displayName:t.display_name,kid:!0,onOpen:a,onCertificate:d?()=>h(!0):void 0}):u.jsxs(u.Fragment,{children:[u.jsx(nZe,{onEnrolled:s}),u.jsx(qO,{pathKey:"kid",onEnrolled:s})]})}),A&&t&&u.jsx(EF,{displayName:t.display_name,badgeCount:r.length,sectionCount:e.length,kid:!0,onClose:()=>h(!1)})]})}const uZe=[{label:"1 · Charcoal suit, open collar",url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/9f1d9ee16_generated_1bf544ec.png"}
1683,{label:"2 · Navy suit, burgundy tie",url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/193eec2cc_generated_354092f5.png"},{label:"3 · Black suit, open collar",url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/f3ea6f9ae_generated_51e6f1bb.png"},{label:"4 · Mid-blue suit, silver-grey tie",url:"https://media.base44.com/images/public/69e5fadb62865073c43a0307/f02653343_generated_a3d818bf.png"}];function dZe(){return u.jsx("div",{className:"min-h-screen bg-slate-50 py-10 px-6",children:u.jsxs("div",{className:"max-w-5xl mx-auto",children:[u.jsxs(Ft,{to:"/cyber-savvy",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-azure mb-6",children:[u.jsx(Dh,{className:"w-4 h-4"})," Back to landing"]}),u.jsx("h1",{className:"text-2xl font-bold text-slate-900 mb-2",children:"Doctor Ngobeni — 4K suit options"}),u.jsx("p",{className:"text-sm text-slate-500 mb-8",children:"Pick a number and I will swap it into the quote card."}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:uZe.map(e=>u.jsxs("div",{className:"rounded-2xl bg-white shadow-sm p-3",children:[u.jsx("div",{className:"rounded-2xl overflow-hidden ring-[3px] ring-[#8bb9ff] shadow-[0_0_18px_4px_rgba(139,185,255,0.7)]",children:u.jsx("img",{src:e.url,alt:e.label,className:"w-full aspect-[3/4] object-cover"})}),u.jsx("p",{className:"px-4 py-3 text-sm font-semibold text-slate-700",children:e.label})]},e.label))})]})})}const AZe=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r}=lpe();if(t||e)return u.jsx(S8e,{});if(n){if(n.type==="user_not_registered")return u.jsx(cpe,{});if(n.type==="auth_required")return r(),null}return u.jsxs(Gue,{children:[u.jsxs(Fn,{element:u.jsx(Kve,{}),children:[u.jsx(Fn,{path:"/",element:u.jsx(d0e,{})}),u.jsx(Fn,{path:"/about",element:u.jsx(x0e,{})}),u.jsx(Fn,{path:"/services",element:u.jsx(k0e,{})}),u.jsx(Fn,{path:"/services/it-managed",element:u.jsx(K1e,{})}),u.jsx(Fn,{path:"/services/network",element:u.jsx(Y1e,{})}),u.jsx(Fn,{path:"/services/cybersecurity",element:u.jsx(J1e,{})}),u.jsx(Fn,{path:"/services/software-development",element:u.jsx(e2e,{})}),u.jsx(Fn,{path:"/industries/financial-services",element:u.jsx(L1e,{})}),u.jsx(Fn,{path:"/industries/government",element:u.jsx(M1e,{})}),u.jsx(Fn,{path:"/industries/higher-education",element:u.jsx(R1e,{})}),u.jsx(Fn,{path:"/industries/mining",element:u.jsx(H1e,{})}),u.jsx(Fn,{path:"/industries/special-projects",element:u.jsx(q1e,{})}),u.jsx(Fn,{path:"/diagnostics",element:u.jsx(j1e,{})}),u.jsx(Fn,{path:"/contact",element:u.jsx(y1e,{})}),u.jsx(Fn,{path:"/privacy",element:u.jsx(v1e,{})}),u.jsx(Fn,{path:"/insights",element:u.jsx(o2e,{})}),u.jsx(Fn,{path:"/insights/case-studies",element:u.jsx(_Ce,{})}),u.jsx(Fn,{path:"/insights/case-studies/:id",element:u.jsx(ICe,{})}),u.jsx(Fn,{path:"/insights/:id",element:u.jsx(ECe,{})}),u.jsx(Fn,{path:"/media",element:u.jsx(VRe,{})}),u.jsx(Fn,{path:"/sitemap",element:u.jsx(FCe,{})}),u.jsx(Fn,{path:"/analytics",element:u.jsx(HRe,{})}),u.jsx(Fn,{path:"/campaign/network-managed-services",element:u.jsx(i8e,{})}),u.jsx(Fn,{path:"/campaign/cybersecurity",element:u.jsx(u8e,{})}),u.jsx(Fn,{path:"/campaign/it-managed-services",element:u.jsx(m8e,{})}),u.jsx(Fn,{path:"/campaign/software-development",element:u.jsx(x8e,{})})]}),u.jsx(Fn,{path:"/cyber-savvy",element:u.jsx(U8e,{})}),u.jsx(Fn,{path:"/cyber-savvy/adults",element:u.jsx(JJe,{})}),u.jsx(Fn,{path:"/cyber-savvy/teens",element:u.jsx(eZe,{})}),u.jsx(Fn,{path:"/cyber-savvy/kids",element:u.jsx(cZe,{})}),u.jsx(Fn,{path:"/cyber-savvy/portraits",element:u.jsx(dZe,{})}),u.jsx(Fn,{path:"*",element:u.jsx(PCe,{})})]})};function fZe(){return u.jsx(spe,{children:u.jsxs(Jce,{client:Zce,children:[u.jsx(nde,{children:u.jsx(AZe,{})}),u.jsx(Sce,{})]})})}ioe.createRoot(document.getElementById("root")).render(u.jsx(fZe,{}));export{sr as _,rw as c,nr as g};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.