PageSourceSearch

https://flipfactor.ai/assets/index-CvUI0CSQ.js

js flipfactor.ai collected 2026-10-05 12:25:27 UTC 2,037,281 bytes, 684 lines download raw bytes

vendor: 6,351 bytes, lines 1-9
1var YG=Object.defineProperty;var $T=e=>{throw TypeError(e)};var qG=(e,t,r)=>t in e?YG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _r=(e,t,r)=>qG(e,typeof t!="symbol"?t+"":t,r),CB=(e,t,r)=>t.has(e)||$T("Cannot "+r);var Te=(e,t,r)=>(CB(e,t,"read from private field"),r?r.call(e):t.get(e)),hr=(e,t,r)=>t.has(e)?$T("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zt=(e,t,r,n)=>(CB(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ei=(e,t,r)=>(CB(e,t,"access private method"),r);var Hv=(e,t,r,n)=>({set _(i){zt(e,t,i,r)},get _(){return Te(e,t,n)}});function XG(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[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"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Kv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s6={exports:{}},tx={},l6={exports:{}},rr={};/**
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 Py=Symbol.for("react.element"),JG=Symbol.for("react.portal"),ZG=Symbol.for("react.fragment"),eY=Symbol.for("react.strict_mode"),tY=Symbol.for("react.profiler"),rY=Symbol.for("react.provider"),nY=Symbol.for("react.context"),iY=Symbol.for("react.forward_ref"),oY=Symbol.for("react.suspense"),aY=Symbol.for("react.memo"),sY=Symbol.for("react.lazy"),HT=Symbol.iterator;function lY(e){return e===null||typeof e!="object"?null:(e=HT&&e[HT]||e["@@iterator"],typeof e=="function"?e:null)}var A6={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},c6=Object.assign,u6={};function Rf(e,t,r){this.props=e,this.context=t,this.refs=u6,this.updater=r||A6}Rf.prototype.isReactComponent={};Rf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Rf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function d6(){}d6.prototype=Rf.prototype;function DI(e,t,r){this.props=e,this.context=t,this.refs=u6,this.updater=r||A6}var QI=DI.prototype=new d6;QI.constructor=DI;c6(QI,Rf.prototype);QI.isPureReactComponent=!0;var KT=Array.isArray,h6=Object.prototype.hasOwnProperty,MI={current:null},f6={key:!0,ref:!0,__self:!0,__source:!0};function p6(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)h6.call(t,n)&&!f6.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),A=0;A<s;A++)l[A]=arguments[A+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:Py,type:e,key:o,ref:a,props:i,_owner:MI.current}}function AY(e,t){return{$$typeof:Py,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function $I(e){return typeof e=="object"&&e!==null&&e.$$typeof===Py}function cY(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var VT=/\/+/g;function IB(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cY(""+e.key):t.toString(36)}function Ew(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Py:case JG:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+IB(a,0):n,KT(i)?(r="",e!=null&&(r=e.replace(VT,"$&/")+"/"),Ew(i,t,r,"",function(A){return A})):i!=null&&($I(i)&&(i=AY(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(VT,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",KT(e))for(var s=0;s<e.length;s++){o=e[s];var l=n+IB(o,s);a+=Ew(o,t,r,l,i)}else if(l=lY(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=n+IB(o,s++),a+=Ew(o,t,r,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Vv(e,t,r){if(e==null)return e;var n=[],i=0;return Ew(e,n,"","",function(o){return t.call(r,o,i++)}),n}function uY(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Zi={current:null},_w={transition:null},dY={ReactCurrentDispatcher:Zi,ReactCurrentBatchConfig:_w,ReactCurrentOwner:MI};function g6(){throw Error("act(...) is not supported in production builds of React.")}rr.Children={map:Vv,forEach:function(e,t,r){Vv(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Vv(e,function(){t++}),t},toArray:function(e){return Vv(e,function(t){return t})||[]},only:function(e){if(!$I(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};rr.Component=Rf;rr.Fragment=ZG;rr.Profiler=tY;
vendor: 4,875 bytes, lines 9-25
9rr.PureComponent=DI;rr.StrictMode=eY;rr.Suspense=oY;rr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dY;rr.act=g6;rr.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=c6({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=MI.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)h6.call(t,l)&&!f6.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var A=0;A<l;A++)s[A]=arguments[A+2];n.children=s}return{$$typeof:Py,type:e.type,key:i,ref:o,props:n,_owner:a}};rr.createContext=function(e){return e={$$typeof:nY,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:rY,_context:e},e.Consumer=e};rr.createElement=p6;rr.createFactory=function(e){var t=p6.bind(null,e);return t.type=e,t};rr.createRef=function(){return{current:null}};rr.forwardRef=function(e){return{$$typeof:iY,render:e}};rr.isValidElement=$I;rr.lazy=function(e){return{$$typeof:sY,_payload:{_status:-1,_result:e},_init:uY}};rr.memo=function(e,t){return{$$typeof:aY,type:e,compare:t===void 0?null:t}};rr.startTransition=function(e){var t=_w.transition;_w.transition={};try{e()}finally{_w.transition=t}};rr.unstable_act=g6;rr.useCallback=function(e,t){return Zi.current.useCallback(e,t)};rr.useContext=function(e){return Zi.current.useContext(e)};rr.useDebugValue=function(){};rr.useDeferredValue=function(e){return Zi.current.useDeferredValue(e)};rr.useEffect=function(e,t){return Zi.current.useEffect(e,t)};rr.useId=function(){return Zi.current.useId()};rr.useImperativeHandle=function(e,t,r){return Zi.current.useImperativeHandle(e,t,r)};rr.useInsertionEffect=function(e,t){return Zi.current.useInsertionEffect(e,t)};rr.useLayoutEffect=function(e,t){return Zi.current.useLayoutEffect(e,t)};rr.useMemo=function(e,t){return Zi.current.useMemo(e,t)};rr.useReducer=function(e,t,r){return Zi.current.useReducer(e,t,r)};rr.useRef=function(e){return Zi.current.useRef(e)};rr.useState=function(e){return Zi.current.useState(e)};rr.useSyncExternalStore=function(e,t,r){return Zi.current.useSyncExternalStore(e,t,r)};rr.useTransition=function(){return Zi.current.useTransition()};rr.version="18.3.1";l6.exports=rr;var S=l6.exports;const oe=xr(S),HI=XG({__proto__:null,default:oe},[S]);/**
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 hY=S,fY=Symbol.for("react.element"),pY=Symbol.for("react.fragment"),gY=Object.prototype.hasOwnProperty,mY=hY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yY={key:!0,ref:!0,__self:!0,__source:!0};function m6(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)gY.call(t,n)&&!yY.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:fY,type:e,key:o,ref:a,props:i,_owner:mY.current}}tx.Fragment=pY;tx.jsx=m6;tx.jsxs=m6;s6.exports=tx;var c=s6.exports,y6={exports:{}},$o={},v6={exports:{}},w6={};/**
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 */(function(e){function t(Q,H){var q=Q.length;Q.push(H);e:for(;0<q;){var re=q-1>>>1,P=Q[re];if(0<i(P,H))Q[re]=H,Q[q]=P,q=re;else break e}}function r(Q){return Q.length===0?null:Q[0]}function n(Q){if(Q.length===0)return null;var H=Q[0],q=Q.pop();if(q!==H){Q[0]=q;e:for(var re=0,P=Q.length,D=P>>>1;re<D;){var X=2*(re+1)-1,Z=Q[X],ae=X+1,se=Q[ae];if(0>i(Z,q))ae<P&&0>i(se,Z)?(Q[re]=se,Q[ae]=q,re=ae):(Q[re]=Z,Q[X]=q,re=X);else if(ae<P&&0>i(se,q))Q[re]=se,Q[ae]=q,re=ae;else break e}}return H}function i(Q,H){var q=Q.sortIndex-H.sortIndex;return q!==0?q:Q.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],A=[],u=1,d=null,h=3,f=!1,g=!1,p=!1,v=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,w=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(Q){for(var H=r(A);H!==null;){if(H.callback===null)n(A);else if(H.startTime<=Q)n(A),H.sortIndex=H.expirationTime,t(l,H);else break;
vendor: 9,407 bytes, lines 25-34
25H=r(A)}}function E(Q){if(p=!1,b(Q),!g)if(r(l)!==null)g=!0,K(B);else{var H=r(A);H!==null&&V(E,H.startTime-Q)}}function B(Q,H){g=!1,p&&(p=!1,m(O),O=-1),f=!0;var q=h;try{for(b(H),d=r(l);d!==null&&(!(d.expirationTime>H)||Q&&!I());){var re=d.callback;if(typeof re=="function"){d.callback=null,h=d.priorityLevel;var P=re(d.expirationTime<=H);H=e.unstable_now(),typeof P=="function"?d.callback=P:d===r(l)&&n(l),b(H)}else n(l);d=r(l)}if(d!==null)var D=!0;else{var X=r(A);X!==null&&V(E,X.startTime-H),D=!1}return D}finally{d=null,h=q,f=!1}}var _=!1,F=null,O=-1,k=5,j=-1;function I(){return!(e.unstable_now()-j<k)}function T(){if(F!==null){var Q=e.unstable_now();j=Q;var H=!0;try{H=F(!0,Q)}finally{H?U():(_=!1,F=null)}}else _=!1}var U;if(typeof w=="function")U=function(){w(T)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,G=R.port2;R.port1.onmessage=T,U=function(){G.postMessage(null)}}else U=function(){v(T,0)};function K(Q){F=Q,_||(_=!0,U())}function V(Q,H){O=v(function(){Q(e.unstable_now())},H)}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(Q){Q.callback=null},e.unstable_continueExecution=function(){g||f||(g=!0,K(B))},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(Q){switch(h){case 1:case 2:case 3:var H=3;break;default:H=h}var q=h;h=H;try{return Q()}finally{h=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Q,H){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var q=h;h=Q;try{return H()}finally{h=q}},e.unstable_scheduleCallback=function(Q,H,q){var re=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?re+q:re):q=re,Q){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=q+P,Q={id:u++,callback:H,priorityLevel:Q,startTime:q,expirationTime:P,sortIndex:-1},q>re?(Q.sortIndex=q,t(A,Q),r(l)===null&&Q===r(A)&&(p?(m(O),O=-1):p=!0,V(E,q-re))):(Q.sortIndex=P,t(l,Q),g||f||(g=!0,K(B))),Q},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(Q){var H=h;return function(){var q=h;h=H;try{return Q.apply(this,arguments)}finally{h=q}}}})(w6);v6.exports=w6;var vY=v6.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 wY=S,Do=vY;function $e(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b6=new Set,lm={};function $u(e,t){Jh(e,t),Jh(e+"Capture",t)}function Jh(e,t){for(lm[e]=t,e=0;e<t.length;e++)b6.add(t[e])}var El=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nS=Object.prototype.hasOwnProperty,bY=/^[: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]*$/,zT={},WT={};function xY(e){return nS.call(WT,e)?!0:nS.call(zT,e)?!1:bY.test(e)?WT[e]=!0:(zT[e]=!0,!1)}function BY(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function EY(e,t,r,n){if(t===null||typeof t>"u"||BY(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function eo(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var vi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vi[e]=new eo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vi[t]=new eo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vi[e]=new eo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vi[e]=new eo(e,2,!1,e,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(e){vi[e]=new eo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vi[e]=new eo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vi[e]=new eo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vi[e]=new eo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vi[e]=new eo(e,5,!1,e.toLowerCase(),null,!1,!1)});var KI=/[\-:]([a-z])/g;function VI(e){return e[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(e){var t=e.replace(KI,VI);vi[t]=new eo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(KI,VI);vi[t]=new eo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(KI,VI);vi[t]=new eo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vi[e]=new eo(e,1,!1,e.toLowerCase(),null,!1,!1)});vi.xlinkHref=new eo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vi[e]=new eo(e,1,!1,e.toLowerCase(),null,!0,!0)});function zI(e,t,r,n){var i=vi.hasOwnProperty(t)?vi[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(EY(t,r,i,n)&&(r=null),n||i===null?xY(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Ul=wY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zv=Symbol.for("react.element"),nh=Symbol.for("react.portal"),ih=Symbol.for("react.fragment"),WI=Symbol.for("react.strict_mode"),iS=Symbol.for("react.profiler"),x6=Symbol.for("react.provider"),B6=Symbol.for("react.context"),GI=Symbol.for("react.forward_ref"),oS=Symbol.for("react.suspense"),aS=Symbol.for("react.suspense_list"),YI=Symbol.for("react.memo"),gA=Symbol.for("react.lazy"),E6=Symbol.for("react.offscreen"),GT=Symbol.iterator;function jp(e){return e===null||typeof e!="object"?null:(e=GT&&e[GT]||e["@@iterator"],typeof e=="function"?e:null)}var fn=Object.assign,kB;function dg(e){if(kB===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);kB=t&&t[1]||""}return`
34`+kB+e}var FB=!1;function NB(e,t){if(!e||FB)return"";FB=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(A){var n=A}Reflect.construct(e,[],t)}else{try{t.call()}catch(A){n=A}e.call(t.prototype)}else{try{throw Error()}catch(A){n=A}e()}}
vendor: 5,610 bytes, lines 34-37
34catch(A){if(A&&n&&typeof A.stack=="string"){for(var i=A.stack.split(`
35`),o=n.stack.split(`
36`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
37`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{FB=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?dg(e):""}function _Y(e){switch(e.tag){case 5:return dg(e.type);case 16:return dg("Lazy");case 13:return dg("Suspense");case 19:return dg("SuspenseList");case 0:case 2:case 15:return e=NB(e.type,!1),e;case 11:return e=NB(e.type.render,!1),e;case 1:return e=NB(e.type,!0),e;default:return""}}function sS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ih:return"Fragment";case nh:return"Portal";case iS:return"Profiler";case WI:return"StrictMode";case oS:return"Suspense";case aS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case B6:return(e.displayName||"Context")+".Consumer";case x6:return(e._context.displayName||"Context")+".Provider";case GI:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case YI:return t=e.displayName||null,t!==null?t:sS(e.type)||"Memo";case gA:t=e._payload,e=e._init;try{return sS(e(t))}catch{}}return null}function SY(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sS(t);case 8:return t===WI?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function nc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _6(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function CY(e){var t=_6(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wv(e){e._valueTracker||(e._valueTracker=CY(e))}function S6(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=_6(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function s1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function lS(e,t){var r=t.checked;return fn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function YT(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=nc(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function C6(e,t){t=t.checked,t!=null&&zI(e,"checked",t,!1)}function AS(e,t){C6(e,t);var r=nc(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?cS(e,t.type,r):t.hasOwnProperty("defaultValue")&&cS(e,t.type,nc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qT(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function cS(e,t,r){(t!=="number"||s1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var hg=Array.isArray;function Bh(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+nc(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function uS(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error($e(91));return fn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function XT(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error($e(92));if(hg(r)){if(1<r.length)throw Error($e(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:nc(r)}
vendor: 8,496 bytes, line 37
37}function I6(e,t){var r=nc(t.value),n=nc(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function JT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function k6(e){switch(e){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 dS(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?k6(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gv,F6=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Gv=Gv||document.createElement("div"),Gv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Am(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Tg={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},IY=["Webkit","ms","Moz","O"];Object.keys(Tg).forEach(function(e){IY.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tg[t]=Tg[e]})});function N6(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Tg.hasOwnProperty(e)&&Tg[e]?(""+t).trim():t+"px"}function T6(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=N6(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var kY=fn({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 hS(e,t){if(t){if(kY[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($e(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($e(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($e(61))}if(t.style!=null&&typeof t.style!="object")throw Error($e(62))}}function fS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 pS=null;function qI(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gS=null,Eh=null,_h=null;function ZT(e){if(e=Ry(e)){if(typeof gS!="function")throw Error($e(280));var t=e.stateNode;t&&(t=ax(t),gS(e.stateNode,e.type,t))}}function O6(e){Eh?_h?_h.push(e):_h=[e]:Eh=e}function j6(){if(Eh){var e=Eh,t=_h;if(_h=Eh=null,ZT(e),t)for(e=0;e<t.length;e++)ZT(t[e])}}function P6(e,t){return e(t)}function L6(){}var TB=!1;function U6(e,t,r){if(TB)return e(t,r);TB=!0;try{return P6(e,t,r)}finally{TB=!1,(Eh!==null||_h!==null)&&(L6(),j6())}}function cm(e,t){var r=e.stateNode;if(r===null)return null;var n=ax(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error($e(231,t,typeof r));return r}var mS=!1;if(El)try{var Pp={};Object.defineProperty(Pp,"passive",{get:function(){mS=!0}}),window.addEventListener("test",Pp,Pp),window.removeEventListener("test",Pp,Pp)}catch{mS=!1}function FY(e,t,r,n,i,o,a,s,l){var A=Array.prototype.slice.call(arguments,3);try{t.apply(r,A)}catch(u){this.onError(u)}}var Og=!1,l1=null,A1=!1,yS=null,NY={onError:function(e){Og=!0,l1=e}};function TY(e,t,r,n,i,o,a,s,l){Og=!1,l1=null,FY.apply(NY,arguments)}function OY(e,t,r,n,i,o,a,s,l){if(TY.apply(this,arguments),Og){if(Og){var A=l1;Og=!1,l1=null}else throw Error($e(198));A1||(A1=!0,yS=A)}}function Hu(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function R6(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function e4(e){if(Hu(e)!==e)throw Error($e(188))}function jY(e){var t=e.alternate;if(!t){if(t=Hu(e),t===null)throw Error($e(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return e4(i),e;if(o===n)return e4(i),t;o=o.sibling}throw Error($e(188))}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a)throw Error($e(189))}}if(r.alternate!==n)throw Error($e(190))}if(r.tag!==3)throw Error($e(188));return r.stateNode.current===r?e:t}function D6(e){return e=jY(e),e!==null?Q6(e):null}function Q6(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Q6(e);if(t!==null)return t;e=e.sibling}return null}var M6=Do.unstable_scheduleCallback,t4=Do.unstable_cancelCallback,PY=Do.unstable_shouldYield,LY=Do.unstable_requestPaint,kn=Do.unstable_now,UY=Do.unstable_getCurrentPriorityLevel,XI=Do.unstable_ImmediatePriority,$6=Do.unstable_UserBlockingPriority,c1=Do.unstable_NormalPriority,RY=Do.unstable_LowPriority,H6=Do.unstable_IdlePriority,rx=null,xs=null;function DY(e){if(xs&&typeof xs.onCommitFiberRoot=="function")try{xs.onCommitFiberRoot(rx,e,void 0,(e.current.flags&128)===128)}catch{}}var Ra=Math.clz32?Math.clz32:$Y,QY=Math.log,MY=Math.LN2;function $Y(e){return e>>>=0,e===0?32:31-(QY(e)/MY|0)|0}var Yv=64,qv=4194304;function fg(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function u1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~i;s!==0?n=fg(s):(o&=a,o!==0&&(n=fg(o)))}else a=r&~i,a!==0?n=fg(a):o!==0&&(n=fg(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Ra(t),i=1<<r,n|=e[r],t&=~i;return n}function HY(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 KY(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Ra(o),s=1<<a,l=i[a];l===-1?(!(s&r)||s&n)&&(i[a]=HY(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function vS(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function K6(){var e=Yv;return Yv<<=1,!(Yv&4194240)&&(Yv=64),e}function OB(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function Ly(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ra(t),e[t]=r}function VY(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Ra(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function JI(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Ra(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Cr=0;function V6(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var z6,ZI,W6,G6,Y6,wS=!1,Xv=[],DA=null,QA=null,MA=null,um=new Map,dm=new Map,wA=[],zY="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 r4(e,t){switch(e){case"focusin":case"focusout":DA=null;break;case"dragenter":case"dragleave":QA=null;break;case"mouseover":case"mouseout":MA=null;break;case"pointerover":case"pointerout":um.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dm.delete(t.pointerId)}}function Lp(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Ry(t),t!==null&&ZI(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function WY(e,t,r,n,i){switch(t){case"focusin":return DA=Lp(DA,e,t,r,n,i),!0;case"dragenter":return QA=Lp(QA,e,t,r,n,i),!0;case"mouseover":return MA=Lp(MA,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return um.set(o,Lp(um.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,dm.set(o,Lp(dm.get(o)||null,e,t,r,n,i)),!0}return!1}function q6(e){var t=ou(e.target);if(t!==null){var r=Hu(t);if(r!==null){if(t=r.tag,t===13){if(t=R6(r),t!==null){e.blockedOn=t,Y6(e.priority,function(){W6(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Sw(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=bS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);pS=n,r.target.dispatchEvent(n),pS=null}else return t=Ry(r),t!==null&&ZI(t),e.blockedOn=r,!1;t.shift()}return!0}function n4(e,t,r){Sw(e)&&r.delete(t)}function GY(){wS=!1,DA!==null&&Sw(DA)&&(DA=null),QA!==null&&Sw(QA)&&(QA=null),MA!==null&&Sw(MA)&&(MA=null),um.forEach(n4),dm.forEach(n4)}function Up(e,t){e.blockedOn===t&&(e.blockedOn=null,wS||(wS=!0,Do.unstable_scheduleCallback(Do.unstable_NormalPriority,GY)))}function hm(e){function t(i){return Up(i,e)}if(0<Xv.length){Up(Xv[0],e);for(var r=1;r<Xv.length;r++){var n=Xv[r];n.blockedOn===e&&(n.blockedOn=null)}}for(DA!==null&&Up(DA,e),QA!==null&&Up(QA,e),MA!==null&&Up(MA,e),um.forEach(t),dm.forEach(t),r=0;r<wA.length;r++)n=wA[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<wA.length&&(r=wA[0],r.blockedOn===null);)q6(r),r.blockedOn===null&&wA.shift()}var Sh=Ul.ReactCurrentBatchConfig,d1=!0;function YY(e,t,r,n){var i=Cr,o=Sh.transition;Sh.transition=null;try{Cr=1,ek(e,t,r,n)}finally{Cr=i,Sh.transition=o}}function qY(e,t,r,n){var i=Cr,o=Sh.transition;Sh.transition=null;try{Cr=4,ek(e,t,r,n)}finally{Cr=i,Sh.transition=o}}function ek(e,t,r,n){if(d1){var i=bS(e,t,r,n);if(i===null)HB(e,t,n,h1,r),r4(e,n);else if(WY(i,e,t,r,n))n.stopPropagation();else if(r4(e,n),t&4&&-1<zY.indexOf(e)){for(;i!==null;){var o=Ry(i);if(o!==null&&z6(o),o=bS(e,t,r,n),o===null&&HB(e,t,n,h1,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else HB(e,t,n,null,r)}}var h1=null;function bS(e,t,r,n){if(h1=null,e=qI(n),e=ou(e),e!==null)if(t=Hu(e),t===null)e=null;else if(r=t.tag,r===13){if(e=R6(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return h1=e,null}
vendor: 10,401 bytes, line 37
37function X6(e){switch(e){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(UY()){case XI:return 1;case $6:return 4;case c1:case RY:return 16;case H6:return 536870912;default:return 16}default:return 16}}var NA=null,tk=null,Cw=null;function J6(){if(Cw)return Cw;var e,t=tk,r=t.length,n,i="value"in NA?NA.value:NA.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return Cw=i.slice(e,1<n?1-n:void 0)}function Iw(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Jv(){return!0}function i4(){return!1}function Ho(e){function t(r,n,i,o,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Jv:i4,this.isPropagationStopped=i4,this}return fn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Jv)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Jv)},persist:function(){},isPersistent:Jv}),t}var Df={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rk=Ho(Df),Uy=fn({},Df,{view:0,detail:0}),XY=Ho(Uy),jB,PB,Rp,nx=fn({},Uy,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nk,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Rp&&(Rp&&e.type==="mousemove"?(jB=e.screenX-Rp.screenX,PB=e.screenY-Rp.screenY):PB=jB=0,Rp=e),jB)},movementY:function(e){return"movementY"in e?e.movementY:PB}}),o4=Ho(nx),JY=fn({},nx,{dataTransfer:0}),ZY=Ho(JY),eq=fn({},Uy,{relatedTarget:0}),LB=Ho(eq),tq=fn({},Df,{animationName:0,elapsedTime:0,pseudoElement:0}),rq=Ho(tq),nq=fn({},Df,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iq=Ho(nq),oq=fn({},Df,{data:0}),a4=Ho(oq),aq={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sq={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"},lq={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Aq(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lq[e])?!!t[e]:!1}function nk(){return Aq}var cq=fn({},Uy,{key:function(e){if(e.key){var t=aq[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Iw(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sq[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nk,charCode:function(e){return e.type==="keypress"?Iw(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Iw(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uq=Ho(cq),dq=fn({},nx,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),s4=Ho(dq),hq=fn({},Uy,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nk}),fq=Ho(hq),pq=fn({},Df,{propertyName:0,elapsedTime:0,pseudoElement:0}),gq=Ho(pq),mq=fn({},nx,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),yq=Ho(mq),vq=[9,13,27,32],ik=El&&"CompositionEvent"in window,jg=null;El&&"documentMode"in document&&(jg=document.documentMode);var wq=El&&"TextEvent"in window&&!jg,Z6=El&&(!ik||jg&&8<jg&&11>=jg),l4=" ",A4=!1;function eQ(e,t){switch(e){case"keyup":return vq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tQ(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oh=!1;function bq(e,t){switch(e){case"compositionend":return tQ(t);case"keypress":return t.which!==32?null:(A4=!0,l4);case"textInput":return e=t.data,e===l4&&A4?null:e;default:return null}}function xq(e,t){if(oh)return e==="compositionend"||!ik&&eQ(e,t)?(e=J6(),Cw=tk=NA=null,oh=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Z6&&t.locale!=="ko"?null:t.data;default:return null}}var Bq={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 c4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bq[e.type]:t==="textarea"}function rQ(e,t,r,n){O6(n),t=f1(t,"onChange"),0<t.length&&(r=new rk("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Pg=null,fm=null;function Eq(e){hQ(e,0)}function ix(e){var t=lh(e);if(S6(t))return e}function _q(e,t){if(e==="change")return t}var nQ=!1;if(El){var UB;if(El){var RB="oninput"in document;if(!RB){var u4=document.createElement("div");u4.setAttribute("oninput","return;"),RB=typeof u4.oninput=="function"}UB=RB}else UB=!1;nQ=UB&&(!document.documentMode||9<document.documentMode)}function d4(){Pg&&(Pg.detachEvent("onpropertychange",iQ),fm=Pg=null)}function iQ(e){if(e.propertyName==="value"&&ix(fm)){var t=[];rQ(t,fm,e,qI(e)),U6(Eq,t)}}function Sq(e,t,r){e==="focusin"?(d4(),Pg=t,fm=r,Pg.attachEvent("onpropertychange",iQ)):e==="focusout"&&d4()}function Cq(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ix(fm)}function Iq(e,t){if(e==="click")return ix(t)}function kq(e,t){if(e==="input"||e==="change")return ix(t)}function Fq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ma=typeof Object.is=="function"?Object.is:Fq;function pm(e,t){if(Ma(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!nS.call(t,i)||!Ma(e[i],t[i]))return!1}return!0}function h4(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function f4(e,t){var r=h4(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=h4(r)}}function oQ(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oQ(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function aQ(){for(var e=window,t=s1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=s1(e.document)}return t}function ok(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Nq(e){var t=aQ(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&oQ(r.ownerDocument.documentElement,r)){if(n!==null&&ok(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=f4(r,o);var a=f4(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Tq=El&&"documentMode"in document&&11>=document.documentMode,ah=null,xS=null,Lg=null,BS=!1;function p4(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;BS||ah==null||ah!==s1(n)||(n=ah,"selectionStart"in n&&ok(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),Lg&&pm(Lg,n)||(Lg=n,n=f1(xS,"onSelect"),0<n.length&&(t=new rk("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=ah)))}function Zv(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var sh={animationend:Zv("Animation","AnimationEnd"),animationiteration:Zv("Animation","AnimationIteration"),animationstart:Zv("Animation","AnimationStart"),transitionend:Zv("Transition","TransitionEnd")},DB={},sQ={};El&&(sQ=document.createElement("div").style,"AnimationEvent"in window||(delete sh.animationend.animation,delete sh.animationiteration.animation,delete sh.animationstart.animation),"TransitionEvent"in window||delete sh.transitionend.transition);function ox(e){if(DB[e])return DB[e];if(!sh[e])return e;var t=sh[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in sQ)return DB[e]=t[r];return e}var lQ=ox("animationend"),AQ=ox("animationiteration"),cQ=ox("animationstart"),uQ=ox("transitionend"),dQ=new Map,g4="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 cc(e,t){dQ.set(e,t),$u(t,[e])}for(var QB=0;QB<g4.length;QB++){var MB=g4[QB],Oq=MB.toLowerCase(),jq=MB[0].toUpperCase()+MB.slice(1);cc(Oq,"on"+jq)}cc(lQ,"onAnimationEnd");cc(AQ,"onAnimationIteration");cc(cQ,"onAnimationStart");cc("dblclick","onDoubleClick");cc("focusin","onFocus");cc("focusout","onBlur");cc(uQ,"onTransitionEnd");Jh("onMouseEnter",["mouseout","mouseover"]);Jh("onMouseLeave",["mouseout","mouseover"]);Jh("onPointerEnter",["pointerout","pointerover"]);Jh("onPointerLeave",["pointerout","pointerover"]);$u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$u("onBeforeInput",["compositionend","keypress","textInput","paste"]);$u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pg="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(" "),Pq=new Set("cancel close invalid load scroll toggle".split(" ").concat(pg));function m4(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,OY(n,t,void 0,e),e.currentTarget=null}function hQ(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,A=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;m4(i,s,A),o=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,A=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;m4(i,s,A),o=l}}}if(A1)throw e=yS,A1=!1,yS=null,e}function qr(e,t){var r=t[IS];r===void 0&&(r=t[IS]=new Set);var n=e+"__bubble";r.has(n)||(fQ(t,e,2,!1),r.add(n))}function $B(e,t,r){var n=0;t&&(n|=4),fQ(r,e,n,t)}var e0="_reactListening"+Math.random().toString(36).slice(2);function gm(e){if(!e[e0]){e[e0]=!0,b6.forEach(function(r){r!=="selectionchange"&&(Pq.has(r)||$B(r,!1,e),$B(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[e0]||(t[e0]=!0,$B("selectionchange",!1,t))}}function fQ(e,t,r,n){switch(X6(t)){case 1:var i=YY;break;case 4:i=qY;break;default:i=ek}r=i.bind(null,t,r,e),i=void 0,!mS||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function HB(e,t,r,n,i){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;
vendor: 5,573 bytes, lines 37-38
37if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=ou(s),a===null)return;if(l=a.tag,l===5||l===6){n=o=a;continue e}s=s.parentNode}}n=n.return}U6(function(){var A=o,u=qI(r),d=[];e:{var h=dQ.get(e);if(h!==void 0){var f=rk,g=e;switch(e){case"keypress":if(Iw(r)===0)break e;case"keydown":case"keyup":f=uq;break;case"focusin":g="focus",f=LB;break;case"focusout":g="blur",f=LB;break;case"beforeblur":case"afterblur":f=LB;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=o4;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=ZY;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=fq;break;case lQ:case AQ:case cQ:f=rq;break;case uQ:f=gq;break;case"scroll":f=XY;break;case"wheel":f=yq;break;case"copy":case"cut":case"paste":f=iq;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=s4}var p=(t&4)!==0,v=!p&&e==="scroll",m=p?h!==null?h+"Capture":null:h;p=[];for(var w=A,b;w!==null;){b=w;var E=b.stateNode;if(b.tag===5&&E!==null&&(b=E,m!==null&&(E=cm(w,m),E!=null&&p.push(mm(w,E,b)))),v)break;w=w.return}0<p.length&&(h=new f(h,g,null,r,u),d.push({event:h,listeners:p}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&r!==pS&&(g=r.relatedTarget||r.fromElement)&&(ou(g)||g[_l]))break e;if((f||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,f?(g=r.relatedTarget||r.toElement,f=A,g=g?ou(g):null,g!==null&&(v=Hu(g),g!==v||g.tag!==5&&g.tag!==6)&&(g=null)):(f=null,g=A),f!==g)){if(p=o4,E="onMouseLeave",m="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(p=s4,E="onPointerLeave",m="onPointerEnter",w="pointer"),v=f==null?h:lh(f),b=g==null?h:lh(g),h=new p(E,w+"leave",f,r,u),h.target=v,h.relatedTarget=b,E=null,ou(u)===A&&(p=new p(m,w+"enter",g,r,u),p.target=b,p.relatedTarget=v,E=p),v=E,f&&g)t:{for(p=f,m=g,w=0,b=p;b;b=Ed(b))w++;for(b=0,E=m;E;E=Ed(E))b++;for(;0<w-b;)p=Ed(p),w--;for(;0<b-w;)m=Ed(m),b--;for(;w--;){if(p===m||m!==null&&p===m.alternate)break t;p=Ed(p),m=Ed(m)}p=null}else p=null;f!==null&&y4(d,h,f,p,!1),g!==null&&v!==null&&y4(d,v,g,p,!0)}}e:{if(h=A?lh(A):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var B=_q;else if(c4(h))if(nQ)B=kq;else{B=Cq;var _=Sq}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(B=Iq);if(B&&(B=B(e,A))){rQ(d,B,r,u);break e}_&&_(e,h,A),e==="focusout"&&(_=h._wrapperState)&&_.controlled&&h.type==="number"&&cS(h,"number",h.value)}switch(_=A?lh(A):window,e){case"focusin":(c4(_)||_.contentEditable==="true")&&(ah=_,xS=A,Lg=null);break;case"focusout":Lg=xS=ah=null;break;case"mousedown":BS=!0;break;case"contextmenu":case"mouseup":case"dragend":BS=!1,p4(d,r,u);break;case"selectionchange":if(Tq)break;case"keydown":case"keyup":p4(d,r,u)}var F;if(ik)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else oh?eQ(e,r)&&(O="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(O="onCompositionStart");O&&(Z6&&r.locale!=="ko"&&(oh||O!=="onCompositionStart"?O==="onCompositionEnd"&&oh&&(F=J6()):(NA=u,tk="value"in NA?NA.value:NA.textContent,oh=!0)),_=f1(A,O),0<_.length&&(O=new a4(O,e,null,r,u),d.push({event:O,listeners:_}),F?O.data=F:(F=tQ(r),F!==null&&(O.data=F)))),(F=wq?bq(e,r):xq(e,r))&&(A=f1(A,"onBeforeInput"),0<A.length&&(u=new a4("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:A}),u.data=F))}hQ(d,t)})}function mm(e,t,r){return{instance:e,listener:t,currentTarget:r}}function f1(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=cm(e,r),o!=null&&n.unshift(mm(e,o,i)),o=cm(e,t),o!=null&&n.push(mm(e,o,i))),e=e.return}return n}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function y4(e,t,r,n,i){for(var o=t._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,A=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&A!==null&&(s=A,i?(l=cm(r,o),l!=null&&a.unshift(mm(r,l,s))):i||(l=cm(r,o),l!=null&&a.push(mm(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var Lq=/\r\n?/g,Uq=/\u0000|\uFFFD/g;function v4(e){return(typeof e=="string"?e:""+e).replace(Lq,`
38`).replace(Uq,"")}function t0(e,t,r){if(t=v4(t),v4(e)!==t&&r)throw Error($e(425))}function p1(){}var ES=null,_S=null;function SS(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var CS=typeof setTimeout=="function"?setTimeout:void 0,Rq=typeof clearTimeout=="function"?clearTimeout:void 0,w4=typeof Promise=="function"?Promise:void 0,Dq=typeof queueMicrotask=="function"?queueMicrotask:typeof w4<"u"?function(e){return w4.resolve(null).then(e).catch(Qq)}:CS;function Qq(e){setTimeout(function(){throw e})}function KB(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),hm(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}
vendor: 4,666 bytes, line 38
38while(r);hm(t)}function $A(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function b4(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Qf=Math.random().toString(36).slice(2),ps="__reactFiber$"+Qf,ym="__reactProps$"+Qf,_l="__reactContainer$"+Qf,IS="__reactEvents$"+Qf,Mq="__reactListeners$"+Qf,$q="__reactHandles$"+Qf;function ou(e){var t=e[ps];if(t)return t;for(var r=e.parentNode;r;){if(t=r[_l]||r[ps]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=b4(e);e!==null;){if(r=e[ps])return r;e=b4(e)}return t}e=r,r=e.parentNode}return null}function Ry(e){return e=e[ps]||e[_l],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lh(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error($e(33))}function ax(e){return e[ym]||null}var kS=[],Ah=-1;function uc(e){return{current:e}}function tn(e){0>Ah||(e.current=kS[Ah],kS[Ah]=null,Ah--)}function zr(e,t){Ah++,kS[Ah]=e.current,e.current=t}var ic={},Li=uc(ic),ho=uc(!1),Fu=ic;function Zh(e,t){var r=e.type.contextTypes;if(!r)return ic;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function fo(e){return e=e.childContextTypes,e!=null}function g1(){tn(ho),tn(Li)}function x4(e,t,r){if(Li.current!==ic)throw Error($e(168));zr(Li,t),zr(ho,r)}function pQ(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error($e(108,SY(e)||"Unknown",i));return fn({},r,n)}function m1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ic,Fu=Li.current,zr(Li,e),zr(ho,ho.current),!0}function B4(e,t,r){var n=e.stateNode;if(!n)throw Error($e(169));r?(e=pQ(e,t,Fu),n.__reactInternalMemoizedMergedChildContext=e,tn(ho),tn(Li),zr(Li,e)):tn(ho),zr(ho,r)}var Al=null,sx=!1,VB=!1;function gQ(e){Al===null?Al=[e]:Al.push(e)}function Hq(e){sx=!0,gQ(e)}function dc(){if(!VB&&Al!==null){VB=!0;var e=0,t=Cr;try{var r=Al;for(Cr=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Al=null,sx=!1}catch(i){throw Al!==null&&(Al=Al.slice(e+1)),M6(XI,dc),i}finally{Cr=t,VB=!1}}return null}var ch=[],uh=0,y1=null,v1=0,ta=[],ra=0,Nu=null,fl=1,pl="";function Wc(e,t){ch[uh++]=v1,ch[uh++]=y1,y1=e,v1=t}function mQ(e,t,r){ta[ra++]=fl,ta[ra++]=pl,ta[ra++]=Nu,Nu=e;var n=fl;e=pl;var i=32-Ra(n)-1;n&=~(1<<i),r+=1;var o=32-Ra(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,fl=1<<32-Ra(t)+i|r<<i|n,pl=o+e}else fl=1<<o|r<<i|n,pl=e}function ak(e){e.return!==null&&(Wc(e,1),mQ(e,1,0))}function sk(e){for(;e===y1;)y1=ch[--uh],ch[uh]=null,v1=ch[--uh],ch[uh]=null;for(;e===Nu;)Nu=ta[--ra],ta[ra]=null,pl=ta[--ra],ta[ra]=null,fl=ta[--ra],ta[ra]=null}var Uo=null,jo=null,an=!1,La=null;function yQ(e,t){var r=aa(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function E4(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Uo=e,jo=$A(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Uo=e,jo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Nu!==null?{id:fl,overflow:pl}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=aa(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Uo=e,jo=null,!0):!1;default:return!1}}function FS(e){return(e.mode&1)!==0&&(e.flags&128)===0}function NS(e){if(an){var t=jo;if(t){var r=t;if(!E4(e,t)){if(FS(e))throw Error($e(418));t=$A(r.nextSibling);var n=Uo;t&&E4(e,t)?yQ(n,r):(e.flags=e.flags&-4097|2,an=!1,Uo=e)}}else{if(FS(e))throw Error($e(418));e.flags=e.flags&-4097|2,an=!1,Uo=e}}}function _4(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Uo=e}function r0(e){if(e!==Uo)return!1;if(!an)return _4(e),an=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!SS(e.type,e.memoizedProps)),t&&(t=jo)){if(FS(e))throw vQ(),Error($e(418));for(;t;)yQ(e,t),t=$A(t.nextSibling)}if(_4(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error($e(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){jo=$A(e.nextSibling);break e}t--}
vendor: 6,382 bytes, line 38
38else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}jo=null}}else jo=Uo?$A(e.stateNode.nextSibling):null;return!0}function vQ(){for(var e=jo;e;)e=$A(e.nextSibling)}function ef(){jo=Uo=null,an=!1}function lk(e){La===null?La=[e]:La.push(e)}var Kq=Ul.ReactCurrentBatchConfig;function Dp(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error($e(309));var n=r.stateNode}if(!n)throw Error($e(147,e));var i=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error($e(284));if(!r._owner)throw Error($e(290,e))}return e}function n0(e,t){throw e=Object.prototype.toString.call(t),Error($e(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function S4(e){var t=e._init;return t(e._payload)}function wQ(e){function t(m,w){if(e){var b=m.deletions;b===null?(m.deletions=[w],m.flags|=16):b.push(w)}}function r(m,w){if(!e)return null;for(;w!==null;)t(m,w),w=w.sibling;return null}function n(m,w){for(m=new Map;w!==null;)w.key!==null?m.set(w.key,w):m.set(w.index,w),w=w.sibling;return m}function i(m,w){return m=zA(m,w),m.index=0,m.sibling=null,m}function o(m,w,b){return m.index=b,e?(b=m.alternate,b!==null?(b=b.index,b<w?(m.flags|=2,w):b):(m.flags|=2,w)):(m.flags|=1048576,w)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,w,b,E){return w===null||w.tag!==6?(w=JB(b,m.mode,E),w.return=m,w):(w=i(w,b),w.return=m,w)}function l(m,w,b,E){var B=b.type;return B===ih?u(m,w,b.props.children,E,b.key):w!==null&&(w.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===gA&&S4(B)===w.type)?(E=i(w,b.props),E.ref=Dp(m,w,b),E.return=m,E):(E=Pw(b.type,b.key,b.props,null,m.mode,E),E.ref=Dp(m,w,b),E.return=m,E)}function A(m,w,b,E){return w===null||w.tag!==4||w.stateNode.containerInfo!==b.containerInfo||w.stateNode.implementation!==b.implementation?(w=ZB(b,m.mode,E),w.return=m,w):(w=i(w,b.children||[]),w.return=m,w)}function u(m,w,b,E,B){return w===null||w.tag!==7?(w=Eu(b,m.mode,E,B),w.return=m,w):(w=i(w,b),w.return=m,w)}function d(m,w,b){if(typeof w=="string"&&w!==""||typeof w=="number")return w=JB(""+w,m.mode,b),w.return=m,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case zv:return b=Pw(w.type,w.key,w.props,null,m.mode,b),b.ref=Dp(m,null,w),b.return=m,b;case nh:return w=ZB(w,m.mode,b),w.return=m,w;case gA:var E=w._init;return d(m,E(w._payload),b)}if(hg(w)||jp(w))return w=Eu(w,m.mode,b,null),w.return=m,w;n0(m,w)}return null}function h(m,w,b,E){var B=w!==null?w.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return B!==null?null:s(m,w,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case zv:return b.key===B?l(m,w,b,E):null;case nh:return b.key===B?A(m,w,b,E):null;case gA:return B=b._init,h(m,w,B(b._payload),E)}if(hg(b)||jp(b))return B!==null?null:u(m,w,b,E,null);n0(m,b)}return null}function f(m,w,b,E,B){if(typeof E=="string"&&E!==""||typeof E=="number")return m=m.get(b)||null,s(w,m,""+E,B);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case zv:return m=m.get(E.key===null?b:E.key)||null,l(w,m,E,B);case nh:return m=m.get(E.key===null?b:E.key)||null,A(w,m,E,B);case gA:var _=E._init;return f(m,w,b,_(E._payload),B)}if(hg(E)||jp(E))return m=m.get(b)||null,u(w,m,E,B,null);n0(w,E)}return null}function g(m,w,b,E){for(var B=null,_=null,F=w,O=w=0,k=null;F!==null&&O<b.length;O++){F.index>O?(k=F,F=null):k=F.sibling;var j=h(m,F,b[O],E);if(j===null){F===null&&(F=k);break}e&&F&&j.alternate===null&&t(m,F),w=o(j,w,O),_===null?B=j:_.sibling=j,_=j,F=k}if(O===b.length)return r(m,F),an&&Wc(m,O),B;if(F===null){for(;O<b.length;O++)F=d(m,b[O],E),F!==null&&(w=o(F,w,O),_===null?B=F:_.sibling=F,_=F);return an&&Wc(m,O),B}for(F=n(m,F);O<b.length;O++)k=f(F,m,O,b[O],E),k!==null&&(e&&k.alternate!==null&&F.delete(k.key===null?O:k.key),w=o(k,w,O),_===null?B=k:_.sibling=k,_=k);return e&&F.forEach(function(I){return t(m,I)}),an&&Wc(m,O),B}function p(m,w,b,E){var B=jp(b);if(typeof B!="function")throw Error($e(150));if(b=B.call(b),b==null)throw Error($e(151));for(var _=B=null,F=w,O=w=0,k=null,j=b.next();F!==null&&!j.done;O++,j=b.next()){F.index>O?(k=F,F=null):k=F.sibling;var I=h(m,F,j.value,E);if(I===null){F===null&&(F=k);break}e&&F&&I.alternate===null&&t(m,F),w=o(I,w,O),_===null?B=I:_.sibling=I,_=I,F=k}if(j.done)return r(m,F),an&&Wc(m,O),B;if(F===null){for(;!j.done;O++,j=b.next())j=d(m,j.value,E),j!==null&&(w=o(j,w,O),_===null?B=j:_.sibling=j,_=j);return an&&Wc(m,O),B}for(F=n(m,F);!j.done;O++,j=b.next())j=f(F,m,O,j.value,E),j!==null&&(e&&j.alternate!==null&&F.delete(j.key===null?O:j.key),w=o(j,w,O),_===null?B=j:_.sibling=j,_=j);return e&&F.forEach(function(T){return t(m,T)}),an&&Wc(m,O),B}function v(m,w,b,E){if(typeof b=="object"&&b!==null&&b.type===ih&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case zv:e:{for(var B=b.key,_=w;_!==null;){if(_.key===B){if(B=b.type,B===ih){if(_.tag===7){r(m,_.sibling),w=i(_,b.props.children),w.return=m,m=w;break e}}else if(_.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===gA&&S4(B)===_.type){r(m,_.sibling),w=i(_,b.props),w.ref=Dp(m,_,b),w.return=m,m=w;break e}r(m,_);break}else t(m,_);_=_.sibling}b.type===ih?(w=Eu(b.props.children,m.mode,E,b.key),w.return=m,m=w):(E=Pw(b.type,b.key,b.props,null,m.mode,E),E.ref=Dp(m,w,b),E.return=m,m=E)}return a(m);case nh:e:{for(_=b.key;w!==null;){if(w.key===_)if(w.tag===4&&w.stateNode.containerInfo===b.containerInfo&&w.stateNode.implementation===b.implementation){r(m,w.sibling),w=i(w,b.children||[]),w.return=m,m=w;break e}else{r(m,w);break}else t(m,w);w=w.sibling}w=ZB(b,m.mode,E),w.return=m,m=w}return a(m);case gA:return _=b._init,v(m,w,_(b._payload),E)}if(hg(b))return g(m,w,b,E);if(jp(b))return p(m,w,b,E);n0(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,w!==null&&w.tag===6?(r(m,w.sibling),w=i(w,b),w.return=m,m=w):(r(m,w),w=JB(b,m.mode,E),w.return=m,m=w),a(m)):r(m,w)}return v}var tf=wQ(!0),bQ=wQ(!1),w1=uc(null),b1=null,dh=null,Ak=null;function ck(){Ak=dh=b1=null}function uk(e){var t=w1.current;tn(w1),e._currentValue=t}function TS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}
vendor: 2,627 bytes, line 38
38function Ch(e,t){b1=e,Ak=dh=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lo=!0),e.firstContext=null)}function ha(e){var t=e._currentValue;if(Ak!==e)if(e={context:e,memoizedValue:t,next:null},dh===null){if(b1===null)throw Error($e(308));dh=e,b1.dependencies={lanes:0,firstContext:e}}else dh=dh.next=e;return t}var au=null;function dk(e){au===null?au=[e]:au.push(e)}function xQ(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,dk(t)):(r.next=i.next,i.next=r),t.interleaved=r,Sl(e,n)}function Sl(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var mA=!1;function hk(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function BQ(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function yl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function HA(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ur&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Sl(e,r)}return i=n.interleaved,i===null?(t.next=t,dk(n)):(t.next=i.next,i.next=t),n.interleaved=t,Sl(e,r)}function kw(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,JI(e,r)}}function C4(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function x1(e,t,r,n){var i=e.updateQueue;mA=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,A=l.next;l.next=null,a===null?o=A:a.next=A,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=A:s.next=A,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,u=A=l=null,s=o;do{var h=s.lane,f=s.eventTime;if((n&h)===h){u!==null&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,p=s;
vendor: 4,181 bytes, line 38
38switch(h=t,f=r,p.tag){case 1:if(g=p.payload,typeof g=="function"){d=g.call(f,d,h);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=p.payload,h=typeof g=="function"?g.call(f,d,h):g,h==null)break e;d=fn({},d,h);break e;case 2:mA=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(A=u=f,l=d):u=u.next=f,a|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=A,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ou|=a,e.lanes=a,e.memoizedState=d}}function I4(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error($e(191,i));i.call(n)}}}var Dy={},Bs=uc(Dy),vm=uc(Dy),wm=uc(Dy);function su(e){if(e===Dy)throw Error($e(174));return e}function fk(e,t){switch(zr(wm,t),zr(vm,e),zr(Bs,Dy),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dS(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dS(t,e)}tn(Bs),zr(Bs,t)}function rf(){tn(Bs),tn(vm),tn(wm)}function EQ(e){su(wm.current);var t=su(Bs.current),r=dS(t,e.type);t!==r&&(zr(vm,e),zr(Bs,r))}function pk(e){vm.current===e&&(tn(Bs),tn(vm))}var dn=uc(0);function B1(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zB=[];function gk(){for(var e=0;e<zB.length;e++)zB[e]._workInProgressVersionPrimary=null;zB.length=0}var Fw=Ul.ReactCurrentDispatcher,WB=Ul.ReactCurrentBatchConfig,Tu=0,hn=null,Wn=null,ti=null,E1=!1,Ug=!1,bm=0,Vq=0;function _i(){throw Error($e(321))}function mk(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ma(e[r],t[r]))return!1;return!0}function yk(e,t,r,n,i,o){if(Tu=o,hn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fw.current=e===null||e.memoizedState===null?Yq:qq,e=r(n,i),Ug){o=0;do{if(Ug=!1,bm=0,25<=o)throw Error($e(301));o+=1,ti=Wn=null,t.updateQueue=null,Fw.current=Xq,e=r(n,i)}while(Ug)}if(Fw.current=_1,t=Wn!==null&&Wn.next!==null,Tu=0,ti=Wn=hn=null,E1=!1,t)throw Error($e(300));return e}function vk(){var e=bm!==0;return bm=0,e}function ls(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ti===null?hn.memoizedState=ti=e:ti=ti.next=e,ti}function fa(){if(Wn===null){var e=hn.alternate;e=e!==null?e.memoizedState:null}else e=Wn.next;var t=ti===null?hn.memoizedState:ti.next;if(t!==null)ti=t,Wn=e;else{if(e===null)throw Error($e(310));Wn=e,e={memoizedState:Wn.memoizedState,baseState:Wn.baseState,baseQueue:Wn.baseQueue,queue:Wn.queue,next:null},ti===null?hn.memoizedState=ti=e:ti=ti.next=e}return ti}function xm(e,t){return typeof t=="function"?t(e):t}function GB(e){var t=fa(),r=t.queue;if(r===null)throw Error($e(311));r.lastRenderedReducer=e;var n=Wn,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var s=a=null,l=null,A=o;do{var u=A.lane;if((Tu&u)===u)l!==null&&(l=l.next={lane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),n=A.hasEagerState?A.eagerState:e(n,A.action);else{var d={lane:u,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};l===null?(s=l=d,a=n):l=l.next=d,hn.lanes|=u,Ou|=u}A=A.next}while(A!==null&&A!==o);l===null?a=n:l.next=s,Ma(n,t.memoizedState)||(lo=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,hn.lanes|=o,Ou|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);
vendor: 4,902 bytes, line 38
38return[t.memoizedState,r.dispatch]}function YB(e){var t=fa(),r=t.queue;if(r===null)throw Error($e(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Ma(o,t.memoizedState)||(lo=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function _Q(){}function SQ(e,t){var r=hn,n=fa(),i=t(),o=!Ma(n.memoizedState,i);if(o&&(n.memoizedState=i,lo=!0),n=n.queue,wk(kQ.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||ti!==null&&ti.memoizedState.tag&1){if(r.flags|=2048,Bm(9,IQ.bind(null,r,n,i,t),void 0,null),ni===null)throw Error($e(349));Tu&30||CQ(r,t,i)}return i}function CQ(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=hn.updateQueue,t===null?(t={lastEffect:null,stores:null},hn.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function IQ(e,t,r,n){t.value=r,t.getSnapshot=n,FQ(t)&&NQ(e)}function kQ(e,t,r){return r(function(){FQ(t)&&NQ(e)})}function FQ(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ma(e,r)}catch{return!0}}function NQ(e){var t=Sl(e,1);t!==null&&Da(t,e,1,-1)}function k4(e){var t=ls();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xm,lastRenderedState:e},t.queue=e,e=e.dispatch=Gq.bind(null,hn,e),[t.memoizedState,e]}function Bm(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=hn.updateQueue,t===null?(t={lastEffect:null,stores:null},hn.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function TQ(){return fa().memoizedState}function Nw(e,t,r,n){var i=ls();hn.flags|=e,i.memoizedState=Bm(1|t,r,void 0,n===void 0?null:n)}function lx(e,t,r,n){var i=fa();n=n===void 0?null:n;var o=void 0;if(Wn!==null){var a=Wn.memoizedState;if(o=a.destroy,n!==null&&mk(n,a.deps)){i.memoizedState=Bm(t,r,o,n);return}}hn.flags|=e,i.memoizedState=Bm(1|t,r,o,n)}function F4(e,t){return Nw(8390656,8,e,t)}function wk(e,t){return lx(2048,8,e,t)}function OQ(e,t){return lx(4,2,e,t)}function jQ(e,t){return lx(4,4,e,t)}function PQ(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function LQ(e,t,r){return r=r!=null?r.concat([e]):null,lx(4,4,PQ.bind(null,t,e),r)}function bk(){}function UQ(e,t){var r=fa();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&mk(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function RQ(e,t){var r=fa();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&mk(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function DQ(e,t,r){return Tu&21?(Ma(r,t)||(r=K6(),hn.lanes|=r,Ou|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,lo=!0),e.memoizedState=r)}function zq(e,t){var r=Cr;Cr=r!==0&&4>r?r:4,e(!0);var n=WB.transition;WB.transition={};try{e(!1),t()}finally{Cr=r,WB.transition=n}}function QQ(){return fa().memoizedState}function Wq(e,t,r){var n=VA(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},MQ(e))$Q(t,r);else if(r=xQ(e,t,r,n),r!==null){var i=Ji();Da(r,e,n,i),HQ(r,t,n)}}function Gq(e,t,r){var n=VA(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(MQ(e))$Q(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,Ma(s,a)){var l=t.interleaved;l===null?(i.next=i,dk(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=xQ(e,t,i,n),r!==null&&(i=Ji(),Da(r,e,n,i),HQ(r,t,n))}}function MQ(e){var t=e.alternate;return e===hn||t!==null&&t===hn}function $Q(e,t){Ug=E1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function HQ(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,JI(e,r)}}var _1={readContext:ha,useCallback:_i,useContext:_i,useEffect:_i,useImperativeHandle:_i,useInsertionEffect:_i,useLayoutEffect:_i,useMemo:_i,useReducer:_i,useRef:_i,useState:_i,useDebugValue:_i,useDeferredValue:_i,useTransition:_i,useMutableSource:_i,useSyncExternalStore:_i,useId:_i,unstable_isNewReconciler:!1},Yq={readContext:ha,useCallback:function(e,t){return ls().memoizedState=[e,t===void 0?null:t],e},useContext:ha,useEffect:F4,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Nw(4194308,4,PQ.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Nw(4194308,4,e,t)},useInsertionEffect:function(e,t){return Nw(4,2,e,t)},useMemo:function(e,t){var r=ls();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ls();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Wq.bind(null,hn,e),[n.memoizedState,e]}
vendor: 7,433 bytes, lines 38-40
38,useRef:function(e){var t=ls();return e={current:e},t.memoizedState=e},useState:k4,useDebugValue:bk,useDeferredValue:function(e){return ls().memoizedState=e},useTransition:function(){var e=k4(!1),t=e[0];return e=zq.bind(null,e[1]),ls().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=hn,i=ls();if(an){if(r===void 0)throw Error($e(407));r=r()}else{if(r=t(),ni===null)throw Error($e(349));Tu&30||CQ(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,F4(kQ.bind(null,n,o,e),[e]),n.flags|=2048,Bm(9,IQ.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=ls(),t=ni.identifierPrefix;if(an){var r=pl,n=fl;r=(n&~(1<<32-Ra(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=bm++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Vq++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qq={readContext:ha,useCallback:UQ,useContext:ha,useEffect:wk,useImperativeHandle:LQ,useInsertionEffect:OQ,useLayoutEffect:jQ,useMemo:RQ,useReducer:GB,useRef:TQ,useState:function(){return GB(xm)},useDebugValue:bk,useDeferredValue:function(e){var t=fa();return DQ(t,Wn.memoizedState,e)},useTransition:function(){var e=GB(xm)[0],t=fa().memoizedState;return[e,t]},useMutableSource:_Q,useSyncExternalStore:SQ,useId:QQ,unstable_isNewReconciler:!1},Xq={readContext:ha,useCallback:UQ,useContext:ha,useEffect:wk,useImperativeHandle:LQ,useInsertionEffect:OQ,useLayoutEffect:jQ,useMemo:RQ,useReducer:YB,useRef:TQ,useState:function(){return YB(xm)},useDebugValue:bk,useDeferredValue:function(e){var t=fa();return Wn===null?t.memoizedState=e:DQ(t,Wn.memoizedState,e)},useTransition:function(){var e=YB(xm)[0],t=fa().memoizedState;return[e,t]},useMutableSource:_Q,useSyncExternalStore:SQ,useId:QQ,unstable_isNewReconciler:!1};function Fa(e,t){if(e&&e.defaultProps){t=fn({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function OS(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:fn({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ax={isMounted:function(e){return(e=e._reactInternals)?Hu(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ji(),i=VA(e),o=yl(n,i);o.payload=t,r!=null&&(o.callback=r),t=HA(e,o,i),t!==null&&(Da(t,e,i,n),kw(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ji(),i=VA(e),o=yl(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=HA(e,o,i),t!==null&&(Da(t,e,i,n),kw(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ji(),n=VA(e),i=yl(r,n);i.tag=2,t!=null&&(i.callback=t),t=HA(e,i,n),t!==null&&(Da(t,e,n,r),kw(t,e,n))}};function N4(e,t,r,n,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,a):t.prototype&&t.prototype.isPureReactComponent?!pm(r,n)||!pm(i,o):!0}function KQ(e,t,r){var n=!1,i=ic,o=t.contextType;return typeof o=="object"&&o!==null?o=ha(o):(i=fo(t)?Fu:Li.current,n=t.contextTypes,o=(n=n!=null)?Zh(e,i):ic),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ax,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function T4(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Ax.enqueueReplaceState(t,t.state,null)}function jS(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},hk(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ha(o):(o=fo(t)?Fu:Li.current,i.context=Zh(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(OS(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ax.enqueueReplaceState(i,i.state,null),x1(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function nf(e,t){try{var r="",n=t;do r+=_Y(n),n=n.return;while(n);var i=r}catch(o){i=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function qB(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function PS(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Jq=typeof WeakMap=="function"?WeakMap:Map;function VQ(e,t,r){r=yl(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){C1||(C1=!0,VS=n),PS(e,t)},r}function zQ(e,t,r){r=yl(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){PS(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){PS(e,t),typeof n!="function"&&(KA===null?KA=new Set([this]):KA.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function O4(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Jq;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=dX.bind(null,e,t,r),t.then(e,e))}function j4(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function P4(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=yl(-1,1),t.tag=2,HA(r,t,1))),r.lanes|=1),e)}var Zq=Ul.ReactCurrentOwner,lo=!1;function Vi(e,t,r,n){t.child=e===null?bQ(t,null,r,n):tf(t,e.child,r,n)}function L4(e,t,r,n,i){r=r.render;var o=t.ref;return Ch(t,i),n=yk(e,t,r,n,o,i),r=vk(),e!==null&&!lo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Cl(e,t,i)):(an&&r&&ak(t),t.flags|=1,Vi(e,t,n,i),t.child)}function U4(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!kk(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,WQ(e,t,o,n,i)):(e=Pw(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(r=r.compare,r=r!==null?r:pm,r(a,n)&&e.ref===t.ref)return Cl(e,t,i)}return t.flags|=1,e=zA(o,n),e.ref=t.ref,e.return=t,t.child=e}function WQ(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(pm(o,n)&&e.ref===t.ref)if(lo=!1,t.pendingProps=n=o,(e.lanes&i)!==0)e.flags&131072&&(lo=!0);else return t.lanes=e.lanes,Cl(e,t,i)}return LS(e,t,r,n,i)}function GQ(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},zr(fh,Fo),Fo|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,zr(fh,Fo),Fo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,zr(fh,Fo),Fo|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,zr(fh,Fo),Fo|=n;return Vi(e,t,i,r),t.child}function YQ(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 8,276 bytes, line 40
40function LS(e,t,r,n,i){var o=fo(r)?Fu:Li.current;return o=Zh(t,o),Ch(t,i),r=yk(e,t,r,n,o,i),n=vk(),e!==null&&!lo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Cl(e,t,i)):(an&&n&&ak(t),t.flags|=1,Vi(e,t,r,i),t.child)}function R4(e,t,r,n,i){if(fo(r)){var o=!0;m1(t)}else o=!1;if(Ch(t,i),t.stateNode===null)Tw(e,t),KQ(t,r,n),jS(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,A=r.contextType;typeof A=="object"&&A!==null?A=ha(A):(A=fo(r)?Fu:Li.current,A=Zh(t,A));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==A)&&T4(t,a,n,A),mA=!1;var h=t.memoizedState;a.state=h,x1(t,n,a,i),l=t.memoizedState,s!==n||h!==l||ho.current||mA?(typeof u=="function"&&(OS(t,r,u,n),l=t.memoizedState),(s=mA||N4(t,r,s,n,h,l,A))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=A,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,BQ(e,t),s=t.memoizedProps,A=t.type===t.elementType?s:Fa(t.type,s),a.props=A,d=t.pendingProps,h=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=ha(l):(l=fo(r)?Fu:Li.current,l=Zh(t,l));var f=r.getDerivedStateFromProps;(u=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||h!==l)&&T4(t,a,n,l),mA=!1,h=t.memoizedState,a.state=h,x1(t,n,a,i);var g=t.memoizedState;s!==d||h!==g||ho.current||mA?(typeof f=="function"&&(OS(t,r,f,n),g=t.memoizedState),(A=mA||N4(t,r,A,n,h,g,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,g,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,g,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),a.props=n,a.state=g,a.context=l,n=A):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return US(e,t,r,n,o,i)}function US(e,t,r,n,i,o){YQ(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&B4(t,r,!1),Cl(e,t,o);n=t.stateNode,Zq.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=tf(t,e.child,null,o),t.child=tf(t,null,s,o)):Vi(e,t,s,o),t.memoizedState=n.state,i&&B4(t,r,!0),t.child}function qQ(e){var t=e.stateNode;t.pendingContext?x4(e,t.pendingContext,t.pendingContext!==t.context):t.context&&x4(e,t.context,!1),fk(e,t.containerInfo)}function D4(e,t,r,n,i){return ef(),lk(i),t.flags|=256,Vi(e,t,r,n),t.child}var RS={dehydrated:null,treeContext:null,retryLane:0};function DS(e){return{baseLanes:e,cachePool:null,transitions:null}}function XQ(e,t,r){var n=t.pendingProps,i=dn.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),zr(dn,i&1),e===null)return NS(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=n.children,e=n.fallback,o?(n=t.mode,o=t.child,a={mode:"hidden",children:a},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=dx(a,n,0,null),e=Eu(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=DS(r),t.memoizedState=RS,e):xk(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return eX(e,t,a,n,s,i,r);if(o){o=n.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(a&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=zA(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=zA(s,o):(o=Eu(o,a,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,a=e.child.memoizedState,a=a===null?DS(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~r,t.memoizedState=RS,n}return o=e.child,e=o.sibling,n=zA(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function xk(e,t){return t=dx({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function i0(e,t,r,n){return n!==null&&lk(n),tf(t,e.child,null,r),e=xk(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function eX(e,t,r,n,i,o,a){if(r)return t.flags&256?(t.flags&=-257,n=qB(Error($e(422))),i0(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=dx({mode:"visible",children:n.children},i,0,null),o=Eu(o,i,a,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&tf(t,e.child,null,a),t.child.memoizedState=DS(a),t.memoizedState=RS,o);if(!(t.mode&1))return i0(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error($e(419)),n=qB(o,n,void 0),i0(e,t,a,n)}if(s=(a&e.childLanes)!==0,lo||s){if(n=ni,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Sl(e,i),Da(n,e,i,-1))}return Ik(),n=qB(Error($e(421))),i0(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=hX.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,jo=$A(i.nextSibling),Uo=t,an=!0,La=null,e!==null&&(ta[ra++]=fl,ta[ra++]=pl,ta[ra++]=Nu,fl=e.id,pl=e.overflow,Nu=t),t=xk(t,n.children),t.flags|=4096,t)}function Q4(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),TS(e.return,t,r)}function XB(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function JQ(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Vi(e,t,n.children,r),n=dn.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Q4(e,r,t);else if(e.tag===19)Q4(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(zr(dn,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&B1(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),XB(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&B1(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}XB(t,!0,r,null,o);break;case"together":XB(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Tw(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Cl(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ou|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($e(153));if(t.child!==null){for(e=t.child,r=zA(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;
vendor: 5,358 bytes, line 40
40)e=e.sibling,r=r.sibling=zA(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function tX(e,t,r){switch(t.tag){case 3:qQ(t),ef();break;case 5:EQ(t);break;case 1:fo(t.type)&&m1(t);break;case 4:fk(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;zr(w1,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(zr(dn,dn.current&1),t.flags|=128,null):r&t.child.childLanes?XQ(e,t,r):(zr(dn,dn.current&1),e=Cl(e,t,r),e!==null?e.sibling:null);zr(dn,dn.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return JQ(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),zr(dn,dn.current),n)break;return null;case 22:case 23:return t.lanes=0,GQ(e,t,r)}return Cl(e,t,r)}var ZQ,QS,eM,tM;ZQ=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};QS=function(){};eM=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,su(Bs.current);var o=null;switch(r){case"input":i=lS(e,i),n=lS(e,n),o=[];break;case"select":i=fn({},i,{value:void 0}),n=fn({},n,{value:void 0}),o=[];break;case"textarea":i=uS(e,i),n=uS(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=p1)}hS(r,n);var a;r=null;for(A in i)if(!n.hasOwnProperty(A)&&i.hasOwnProperty(A)&&i[A]!=null)if(A==="style"){var s=i[A];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else A!=="dangerouslySetInnerHTML"&&A!=="children"&&A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(lm.hasOwnProperty(A)?o||(o=[]):(o=o||[]).push(A,null));for(A in n){var l=n[A];if(s=i!=null?i[A]:void 0,n.hasOwnProperty(A)&&l!==s&&(l!=null||s!=null))if(A==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(o||(o=[]),o.push(A,r)),r=l;else A==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(A,l)):A==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(A,""+l):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&(lm.hasOwnProperty(A)?(l!=null&&A==="onScroll"&&qr("scroll",e),o||s===l||(o=[])):(o=o||[]).push(A,l))}r&&(o=o||[]).push("style",r);var A=o;(t.updateQueue=A)&&(t.flags|=4)}};tM=function(e,t,r,n){r!==n&&(t.flags|=4)};function Qp(e,t){if(!an)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Si(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function rX(e,t,r){var n=t.pendingProps;switch(sk(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Si(t),null;case 1:return fo(t.type)&&g1(),Si(t),null;case 3:return n=t.stateNode,rf(),tn(ho),tn(Li),gk(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(r0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,La!==null&&(GS(La),La=null))),QS(e,t),Si(t),null;case 5:pk(t);var i=su(wm.current);if(r=t.type,e!==null&&t.stateNode!=null)eM(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error($e(166));return Si(t),null}if(e=su(Bs.current),r0(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[ps]=t,n[ym]=o,e=(t.mode&1)!==0,r){case"dialog":qr("cancel",n),qr("close",n);break;case"iframe":case"object":case"embed":qr("load",n);break;case"video":case"audio":for(i=0;i<pg.length;i++)qr(pg[i],n);break;case"source":qr("error",n);break;case"img":case"image":case"link":qr("error",n),qr("load",n);break;case"details":qr("toggle",n);break;case"input":YT(n,o),qr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},qr("invalid",n);break;case"textarea":XT(n,o),qr("invalid",n)}hS(r,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?n.textContent!==s&&(o.suppressHydrationWarning!==!0&&t0(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&t0(n.textContent,s,e),i=["children",""+s]):lm.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&qr("scroll",n)}switch(r){case"input":Wv(n),qT(n,o,!0);break;case"textarea":Wv(n),JT(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=p1)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=k6(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[ps]=t,e[ym]=n,ZQ(e,t,!1,!1),t.stateNode=e;e:{switch(a=fS(r,n),r){case"dialog":qr("cancel",e),qr("close",e),i=n;break;case"iframe":case"object":case"embed":qr("load",e),i=n;break;case"video":case"audio":for(i=0;i<pg.length;i++)qr(pg[i],e);i=n;break;case"source":qr("error",e),i=n;break;case"img":case"image":case"link":qr("error",e),qr("load",e),i=n;break;case"details":qr("toggle",e),i=n;break;case"input":YT(e,n),i=lS(e,n),qr("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=fn({},n,{value:void 0}),qr("invalid",e);break;case"textarea":XT(e,n),i=uS(e,n),qr("invalid",e);break;default:i=n}hS(r,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?T6(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&F6(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Am(e,l):typeof l=="number"&&Am(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(lm.hasOwnProperty(o)?l!=null&&o==="onScroll"&&qr("scroll",e):l!=null&&zI(e,o,l,a))}switch(r){case"input":Wv(e),qT(e,n,!1);break;case"textarea":Wv(e),JT(e);break;case"option":n.value!=null&&e.setAttribute("value",""+nc(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Bh(e,!!n.multiple,o,!1):n.defaultValue!=null&&Bh(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=p1)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Si(t),null;case 6:if(e&&t.stateNode!=null)tM(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error($e(166));if(r=su(wm.current),su(Bs.current),r0(t)){if(n=t.stateNode,r=t.memoizedProps,n[ps]=t,(o=n.nodeValue!==r)&&(e=Uo,e!==null))switch(e.tag){case 3:t0(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&t0(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[ps]=t,t.stateNode=n}return Si(t),null;case 13:if(tn(dn),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(an&&jo!==null&&t.mode&1&&!(t.flags&128))vQ(),ef(),t.flags|=98560,o=!1;else if(o=r0(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error($e(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error($e(317));o[ps]=t}else ef(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Si(t),o=!1}else La!==null&&(GS(La),La=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||dn.current&1?Yn===0&&(Yn=3):Ik())),t.updateQueue!==null&&(t.flags|=4),Si(t),null);case 4:return rf(),QS(e,t),e===null&&gm(t.stateNode.containerInfo),Si(t),null;case 10:return uk(t.type._context),Si(t),null;case 17:return fo(t.type)&&g1(),Si(t),null;case 19:if(tn(dn),o=t.memoizedState,o===null)return Si(t),null;if(n=(t.flags&128)!==0,a=o.rendering,a===null)if(n)Qp(o,!1);else{if(Yn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=B1(e),a!==null){for(t.flags|=128,Qp(o,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return zr(dn,dn.current&1|2),t.child}e=e.sibling}o.tail!==null&&kn()>of&&(t.flags|=128,n=!0,Qp(o,!1),t.lanes=4194304)}else{if(!n)if(e=B1(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Qp(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!an)return Si(t),null}else 2*kn()-o.renderingStartTime>of&&r!==1073741824&&(t.flags|=128,n=!0,Qp(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(r=o.last,r!==null?r.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=kn(),t.sibling=null,r=dn.current,zr(dn,n?r&1|2:r&1),t):(Si(t),null);case 22:case 23:return Ck(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Fo&1073741824&&(Si(t),t.subtreeFlags&6&&(t.flags|=8192)):Si(t),null;case 24:return null;case 25:return null}throw Error($e(156,t.tag))}function nX(e,t){switch(sk(t),t.tag){case 1:return fo(t.type)&&g1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 25,541 bytes, line 40
40case 3:return rf(),tn(ho),tn(Li),gk(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pk(t),null;case 13:if(tn(dn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($e(340));ef()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return tn(dn),null;case 4:return rf(),null;case 10:return uk(t.type._context),null;case 22:case 23:return Ck(),null;case 24:return null;default:return null}}var o0=!1,Pi=!1,iX=typeof WeakSet=="function"?WeakSet:Set,lt=null;function hh(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){bn(e,t,n)}else r.current=null}function MS(e,t,r){try{r()}catch(n){bn(e,t,n)}}var M4=!1;function oX(e,t){if(ES=d1,e=aQ(),ok(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,A=0,u=0,d=e,h=null;t:for(;;){for(var f;d!==r||i!==0&&d.nodeType!==3||(s=a+i),d!==o||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===e)break t;if(h===r&&++A===i&&(s=a),h===o&&++u===n&&(l=a),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(_S={focusedElem:e,selectionRange:r},d1=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){t=lt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,v=g.memoizedState,m=t.stateNode,w=m.getSnapshotBeforeUpdate(t.elementType===t.type?p:Fa(t.type,p),v);m.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($e(163))}}catch(E){bn(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}return g=M4,M4=!1,g}function Rg(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&MS(t,r,o)}i=i.next}while(i!==n)}}function cx(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function $S(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function rM(e){var t=e.alternate;t!==null&&(e.alternate=null,rM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ps],delete t[ym],delete t[IS],delete t[Mq],delete t[$q])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function nM(e){return e.tag===5||e.tag===3||e.tag===4}function $4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nM(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function HS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=p1));else if(n!==4&&(e=e.child,e!==null))for(HS(e,t,r),e=e.sibling;e!==null;)HS(e,t,r),e=e.sibling}function KS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(KS(e,t,r),e=e.sibling;e!==null;)KS(e,t,r),e=e.sibling}var di=null,Pa=!1;function aA(e,t,r){for(r=r.child;r!==null;)iM(e,t,r),r=r.sibling}function iM(e,t,r){if(xs&&typeof xs.onCommitFiberUnmount=="function")try{xs.onCommitFiberUnmount(rx,r)}catch{}switch(r.tag){case 5:Pi||hh(r,t);case 6:var n=di,i=Pa;di=null,aA(e,t,r),di=n,Pa=i,di!==null&&(Pa?(e=di,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):di.removeChild(r.stateNode));break;case 18:di!==null&&(Pa?(e=di,r=r.stateNode,e.nodeType===8?KB(e.parentNode,r):e.nodeType===1&&KB(e,r),hm(e)):KB(di,r.stateNode));break;case 4:n=di,i=Pa,di=r.stateNode.containerInfo,Pa=!0,aA(e,t,r),di=n,Pa=i;break;case 0:case 11:case 14:case 15:if(!Pi&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&MS(r,t,a),i=i.next}while(i!==n)}aA(e,t,r);break;case 1:if(!Pi&&(hh(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){bn(r,t,s)}aA(e,t,r);break;case 21:aA(e,t,r);break;case 22:r.mode&1?(Pi=(n=Pi)||r.memoizedState!==null,aA(e,t,r),Pi=n):aA(e,t,r);break;default:aA(e,t,r)}}function H4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new iX),t.forEach(function(n){var i=fX.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ba(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:di=s.stateNode,Pa=!1;break e;case 3:di=s.stateNode.containerInfo,Pa=!0;break e;case 4:di=s.stateNode.containerInfo,Pa=!0;break e}s=s.return}if(di===null)throw Error($e(160));iM(o,a,i),di=null,Pa=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(A){bn(i,t,A)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)oM(t,e),t=t.sibling}function oM(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ba(t,e),ns(e),n&4){try{Rg(3,e,e.return),cx(3,e)}catch(p){bn(e,e.return,p)}try{Rg(5,e,e.return)}catch(p){bn(e,e.return,p)}}break;case 1:Ba(t,e),ns(e),n&512&&r!==null&&hh(r,r.return);break;case 5:if(Ba(t,e),ns(e),n&512&&r!==null&&hh(r,r.return),e.flags&32){var i=e.stateNode;try{Am(i,"")}catch(p){bn(e,e.return,p)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=r!==null?r.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&C6(i,o),fS(s,a);var A=fS(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];u==="style"?T6(i,d):u==="dangerouslySetInnerHTML"?F6(i,d):u==="children"?Am(i,d):zI(i,u,d,A)}switch(s){case"input":AS(i,o);break;case"textarea":I6(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?Bh(i,!!o.multiple,f,!1):h!==!!o.multiple&&(o.defaultValue!=null?Bh(i,!!o.multiple,o.defaultValue,!0):Bh(i,!!o.multiple,o.multiple?[]:"",!1))}i[ym]=o}catch(p){bn(e,e.return,p)}}break;case 6:if(Ba(t,e),ns(e),n&4){if(e.stateNode===null)throw Error($e(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(p){bn(e,e.return,p)}}break;case 3:if(Ba(t,e),ns(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{hm(t.containerInfo)}catch(p){bn(e,e.return,p)}break;case 4:Ba(t,e),ns(e);break;case 13:Ba(t,e),ns(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(_k=kn())),n&4&&H4(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(Pi=(A=Pi)||u,Ba(t,e),Pi=A):Ba(t,e),ns(e),n&8192){if(A=e.memoizedState!==null,(e.stateNode.isHidden=A)&&!u&&e.mode&1)for(lt=e,u=e.child;u!==null;){for(d=lt=u;lt!==null;){switch(h=lt,f=h.child,h.tag){case 0:case 11:case 14:case 15:Rg(4,h,h.return);break;case 1:hh(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(p){bn(n,r,p)}}break;case 5:hh(h,h.return);break;case 22:if(h.memoizedState!==null){V4(d);continue}}f!==null?(f.return=h,lt=f):V4(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,A?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=N6("display",a))}catch(p){bn(e,e.return,p)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=A?"":d.memoizedProps}catch(p){bn(e,e.return,p)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ba(t,e),ns(e),n&4&&H4(e);break;case 21:break;default:Ba(t,e),ns(e)}}function ns(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(nM(r)){var n=r;break e}r=r.return}throw Error($e(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Am(i,""),n.flags&=-33);var o=$4(e);KS(e,o,i);break;case 3:case 4:var a=n.stateNode.containerInfo,s=$4(e);HS(e,s,a);break;default:throw Error($e(161))}}catch(l){bn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function aX(e,t,r){lt=e,aM(e)}function aM(e,t,r){for(var n=(e.mode&1)!==0;lt!==null;){var i=lt,o=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||o0;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Pi;s=o0;var A=Pi;if(o0=a,(Pi=l)&&!A)for(lt=i;lt!==null;)a=lt,l=a.child,a.tag===22&&a.memoizedState!==null?z4(i):l!==null?(l.return=a,lt=l):z4(i);for(;o!==null;)lt=o,aM(o),o=o.sibling;lt=i,o0=s,Pi=A}K4(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,lt=o):K4(e)}}function K4(e){for(;lt!==null;){var t=lt;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pi||cx(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Pi)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Fa(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&I4(t,o,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}I4(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var A=t.alternate;if(A!==null){var u=A.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&hm(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error($e(163))}Pi||t.flags&512&&$S(t)}catch(h){bn(t,t.return,h)}}if(t===e){lt=null;break}if(r=t.sibling,r!==null){r.return=t.return,lt=r;break}lt=t.return}}function V4(e){for(;lt!==null;){var t=lt;if(t===e){lt=null;break}var r=t.sibling;if(r!==null){r.return=t.return,lt=r;break}lt=t.return}}function z4(e){for(;lt!==null;){var t=lt;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{cx(4,t)}catch(l){bn(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){bn(t,i,l)}}var o=t.return;try{$S(t)}catch(l){bn(t,o,l)}break;case 5:var a=t.return;try{$S(t)}catch(l){bn(t,a,l)}}}catch(l){bn(t,t.return,l)}if(t===e){lt=null;break}var s=t.sibling;if(s!==null){s.return=t.return,lt=s;break}lt=t.return}}var sX=Math.ceil,S1=Ul.ReactCurrentDispatcher,Bk=Ul.ReactCurrentOwner,da=Ul.ReactCurrentBatchConfig,ur=0,ni=null,Dn=null,yi=0,Fo=0,fh=uc(0),Yn=0,Em=null,Ou=0,ux=0,Ek=0,Dg=null,so=null,_k=0,of=1/0,il=null,C1=!1,VS=null,KA=null,a0=!1,TA=null,I1=0,Qg=0,zS=null,Ow=-1,jw=0;function Ji(){return ur&6?kn():Ow!==-1?Ow:Ow=kn()}function VA(e){return e.mode&1?ur&2&&yi!==0?yi&-yi:Kq.transition!==null?(jw===0&&(jw=K6()),jw):(e=Cr,e!==0||(e=window.event,e=e===void 0?16:X6(e.type)),e):1}function Da(e,t,r,n){if(50<Qg)throw Qg=0,zS=null,Error($e(185));Ly(e,r,n),(!(ur&2)||e!==ni)&&(e===ni&&(!(ur&2)&&(ux|=r),Yn===4&&bA(e,yi)),po(e,n),r===1&&ur===0&&!(t.mode&1)&&(of=kn()+500,sx&&dc()))}function po(e,t){var r=e.callbackNode;KY(e,t);var n=u1(e,e===ni?yi:0);if(n===0)r!==null&&t4(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&t4(r),t===1)e.tag===0?Hq(W4.bind(null,e)):gQ(W4.bind(null,e)),Dq(function(){!(ur&6)&&dc()}),r=null;else{switch(V6(n)){case 1:r=XI;break;case 4:r=$6;break;case 16:r=c1;break;case 536870912:r=H6;break;default:r=c1}r=fM(r,sM.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function sM(e,t){if(Ow=-1,jw=0,ur&6)throw Error($e(327));var r=e.callbackNode;if(Ih()&&e.callbackNode!==r)return null;var n=u1(e,e===ni?yi:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=k1(e,n);else{t=n;var i=ur;ur|=2;var o=AM();(ni!==e||yi!==t)&&(il=null,of=kn()+500,Bu(e,t));do try{cX();break}catch(s){lM(e,s)}while(!0);ck(),S1.current=o,ur=i,Dn!==null?t=0:(ni=null,yi=0,t=Yn)}if(t!==0){if(t===2&&(i=vS(e),i!==0&&(n=i,t=WS(e,i))),t===1)throw r=Em,Bu(e,0),bA(e,n),po(e,kn()),r;if(t===6)bA(e,n);else{if(i=e.current.alternate,!(n&30)&&!lX(i)&&(t=k1(e,n),t===2&&(o=vS(e),o!==0&&(n=o,t=WS(e,o))),t===1))throw r=Em,Bu(e,0),bA(e,n),po(e,kn()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error($e(345));case 2:Gc(e,so,il);break;case 3:if(bA(e,n),(n&130023424)===n&&(t=_k+500-kn(),10<t)){if(u1(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Ji(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=CS(Gc.bind(null,e,so,il),t);break}Gc(e,so,il);break;case 4:if(bA(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var a=31-Ra(n);o=1<<a,a=t[a],a>i&&(i=a),n&=~o}if(n=i,n=kn()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*sX(n/1960))-n,10<n){e.timeoutHandle=CS(Gc.bind(null,e,so,il),n);break}Gc(e,so,il);break;case 5:Gc(e,so,il);break;default:throw Error($e(329))}}}return po(e,kn()),e.callbackNode===r?sM.bind(null,e):null}function WS(e,t){var r=Dg;return e.current.memoizedState.isDehydrated&&(Bu(e,t).flags|=256),e=k1(e,t),e!==2&&(t=so,so=r,t!==null&&GS(t)),e}function GS(e){so===null?so=e:so.push.apply(so,e)}function lX(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!Ma(o(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bA(e,t){for(t&=~Ek,t&=~ux,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ra(t),n=1<<r;e[r]=-1,t&=~n}}function W4(e){if(ur&6)throw Error($e(327));Ih();var t=u1(e,0);if(!(t&1))return po(e,kn()),null;var r=k1(e,t);if(e.tag!==0&&r===2){var n=vS(e);n!==0&&(t=n,r=WS(e,n))}if(r===1)throw r=Em,Bu(e,0),bA(e,t),po(e,kn()),r;if(r===6)throw Error($e(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gc(e,so,il),po(e,kn()),null}function Sk(e,t){var r=ur;ur|=1;try{return e(t)}finally{ur=r,ur===0&&(of=kn()+500,sx&&dc())}}function ju(e){TA!==null&&TA.tag===0&&!(ur&6)&&Ih();var t=ur;ur|=1;var r=da.transition,n=Cr;try{if(da.transition=null,Cr=1,e)return e()}finally{Cr=n,da.transition=r,ur=t,!(ur&6)&&dc()}}function Ck(){Fo=fh.current,tn(fh)}function Bu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Rq(r)),Dn!==null)for(r=Dn.return;r!==null;){var n=r;switch(sk(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&g1();break;case 3:rf(),tn(ho),tn(Li),gk();break;case 5:pk(n);break;case 4:rf();break;case 13:tn(dn);break;case 19:tn(dn);break;case 10:uk(n.type._context);break;case 22:case 23:Ck()}r=r.return}if(ni=e,Dn=e=zA(e.current,null),yi=Fo=t,Yn=0,Em=null,Ek=ux=Ou=0,so=Dg=null,au!==null){for(t=0;t<au.length;t++)if(r=au[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var a=o.next;o.next=i,n.next=a}r.pending=n}au=null}return e}function lM(e,t){do{var r=Dn;try{if(ck(),Fw.current=_1,E1){for(var n=hn.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}E1=!1}if(Tu=0,ti=Wn=hn=null,Ug=!1,bm=0,Bk.current=null,r===null||r.return===null){Yn=1,Em=t,Dn=null;break}e:{var o=e,a=r.return,s=r,l=t;if(t=yi,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var A=l,u=s,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=j4(a);if(f!==null){f.flags&=-257,P4(f,a,s,o,t),f.mode&1&&O4(o,A,t),t=f,l=A;var g=t.updateQueue;if(g===null){var p=new Set;p.add(l),t.updateQueue=p}else g.add(l);break e}else{if(!(t&1)){O4(o,A,t),Ik();break e}l=Error($e(426))}}else if(an&&s.mode&1){var v=j4(a);if(v!==null){!(v.flags&65536)&&(v.flags|=256),P4(v,a,s,o,t),lk(nf(l,s));break e}}o=l=nf(l,s),Yn!==4&&(Yn=2),Dg===null?Dg=[o]:Dg.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=VQ(o,l,t);C4(o,m);break e;case 1:s=l;var w=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof w.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(KA===null||!KA.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=zQ(o,s,t);C4(o,E);break e}}o=o.return}while(o!==null)}uM(r)}catch(B){t=B,Dn===r&&r!==null&&(Dn=r=r.return);continue}break}while(!0)}function AM(){var e=S1.current;return S1.current=_1,e===null?_1:e}function Ik(){(Yn===0||Yn===3||Yn===2)&&(Yn=4),ni===null||!(Ou&268435455)&&!(ux&268435455)||bA(ni,yi)}function k1(e,t){var r=ur;ur|=2;var n=AM();(ni!==e||yi!==t)&&(il=null,Bu(e,t));do try{AX();break}catch(i){lM(e,i)}while(!0);if(ck(),ur=r,S1.current=n,Dn!==null)throw Error($e(261));return ni=null,yi=0,Yn}function AX(){for(;Dn!==null;)cM(Dn)}function cX(){for(;Dn!==null&&!PY();)cM(Dn)}function cM(e){var t=hM(e.alternate,e,Fo);e.memoizedProps=e.pendingProps,t===null?uM(e):Dn=t,Bk.current=null}function uM(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=nX(r,t),r!==null){r.flags&=32767,Dn=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Yn=6,Dn=null;return}}else if(r=rX(r,t,Fo),r!==null){Dn=r;return}if(t=t.sibling,t!==null){Dn=t;return}Dn=t=e}while(t!==null);Yn===0&&(Yn=5)}function Gc(e,t,r){var n=Cr,i=da.transition;try{da.transition=null,Cr=1,uX(e,t,r,n)}finally{da.transition=i,Cr=n}return null}function uX(e,t,r,n){do Ih();while(TA!==null);if(ur&6)throw Error($e(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error($e(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(VY(e,o),e===ni&&(Dn=ni=null,yi=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||a0||(a0=!0,fM(c1,function(){return Ih(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=da.transition,da.transition=null;var a=Cr;Cr=1;var s=ur;ur|=4,Bk.current=null,oX(e,r),oM(r,e),Nq(_S),d1=!!ES,_S=ES=null,e.current=r,aX(r),LY(),ur=s,Cr=a,da.transition=o}else e.current=r;if(a0&&(a0=!1,TA=e,I1=i),o=e.pendingLanes,o===0&&(KA=null),DY(r.stateNode),po(e,kn()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(C1)throw C1=!1,e=VS,VS=null,e;return I1&1&&e.tag!==0&&Ih(),o=e.pendingLanes,o&1?e===zS?Qg++:(Qg=0,zS=e):Qg=0,dc(),null}function Ih(){if(TA!==null){var e=V6(I1),t=da.transition,r=Cr;try{if(da.transition=null,Cr=16>e?16:e,TA===null)var n=!1;else{if(e=TA,TA=null,I1=0,ur&6)throw Error($e(331));var i=ur;for(ur|=4,lt=e.current;lt!==null;){var o=lt,a=o.child;if(lt.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var A=s[l];for(lt=A;lt!==null;){var u=lt;switch(u.tag){case 0:case 11:case 15:Rg(8,u,o)}var d=u.child;if(d!==null)d.return=u,lt=d;else for(;lt!==null;){u=lt;var h=u.sibling,f=u.return;if(rM(u),u===A){lt=null;break}if(h!==null){h.return=f,lt=h;break}lt=f}}}var g=o.alternate;if(g!==null){var p=g.child;if(p!==null){g.child=null;do{var v=p.sibling;p.sibling=null,p=v}while(p!==null)}}lt=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,lt=a;else e:for(;lt!==null;){if(o=lt,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Rg(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,lt=m;break e}lt=o.return}}var w=e.current;for(lt=w;lt!==null;){a=lt;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,lt=b;else e:for(a=w;lt!==null;){if(s=lt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:cx(9,s)}}catch(B){bn(s,s.return,B)}if(s===a){lt=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,lt=E;break e}lt=s.return}}if(ur=i,dc(),xs&&typeof xs.onPostCommitFiberRoot=="function")try{xs.onPostCommitFiberRoot(rx,e)}catch{}n=!0}return n}finally{Cr=r,da.transition=t}}return!1}function G4(e,t,r){t=nf(r,t),t=VQ(e,t,1),e=HA(e,t,1),t=Ji(),e!==null&&(Ly(e,1,t),po(e,t))}function bn(e,t,r){if(e.tag===3)G4(e,e,r);else for(;t!==null;){if(t.tag===3){G4(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(KA===null||!KA.has(n))){e=nf(r,e),e=zQ(t,e,1),t=HA(t,e,1),e=Ji(),t!==null&&(Ly(t,1,e),po(t,e));break}}t=t.return}}function dX(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ji(),e.pingedLanes|=e.suspendedLanes&r,ni===e&&(yi&r)===r&&(Yn===4||Yn===3&&(yi&130023424)===yi&&500>kn()-_k?Bu(e,0):Ek|=r),po(e,t)}function dM(e,t){t===0&&(e.mode&1?(t=qv,qv<<=1,!(qv&130023424)&&(qv=4194304)):t=1);var r=Ji();e=Sl(e,t),e!==null&&(Ly(e,t,r),po(e,r))}function hX(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),dM(e,r)}function fX(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error($e(314))}n!==null&&n.delete(t),dM(e,r)}var hM;hM=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ho.current)lo=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return lo=!1,tX(e,t,r);lo=!!(e.flags&131072)}else lo=!1,an&&t.flags&1048576&&mQ(t,v1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Tw(e,t),e=t.pendingProps;var i=Zh(t,Li.current);Ch(t,r),i=yk(null,t,n,e,i,r);var o=vk();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,fo(n)?(o=!0,m1(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,hk(t),i.updater=Ax,t.stateNode=i,i._reactInternals=t,jS(t,n,e,r),t=US(null,t,n,!0,o,r)):(t.tag=0,an&&o&&ak(t),Vi(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Tw(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=gX(n),e=Fa(n,e),i){case 0:t=LS(null,t,n,e,r);break e;case 1:t=R4(null,t,n,e,r);break e;case 11:t=L4(null,t,n,e,r);break e;case 14:t=U4(null,t,n,Fa(n.type,e),r);break e}throw Error($e(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fa(n,i),LS(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fa(n,i),R4(e,t,n,i,r);case 3:e:{if(qQ(t),e===null)throw Error($e(387));n=t.pendingProps,o=t.memoizedState,i=o.element,BQ(e,t),x1(t,n,null,r);var a=t.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=nf(Error($e(423)),t),t=D4(e,t,n,r,i);break e}else if(n!==i){i=nf(Error($e(424)),t),t=D4(e,t,n,r,i);break e}else for(jo=$A(t.stateNode.containerInfo.firstChild),Uo=t,an=!0,La=null,r=bQ(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ef(),n===i){t=Cl(e,t,r);break e}Vi(e,t,n,r)}t=t.child}return t;case 5:return EQ(t),e===null&&NS(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,SS(n,i)?a=null:o!==null&&SS(n,o)&&(t.flags|=32),YQ(e,t),Vi(e,t,a,r),t.child;case 6:return e===null&&NS(t),null;case 13:return XQ(e,t,r);case 4:return fk(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=tf(t,null,n,r):Vi(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fa(n,i),L4(e,t,n,i,r);case 7:return Vi(e,t,t.pendingProps,r),t.child;case 8:return Vi(e,t,t.pendingProps.children,r),t.child;case 12:return Vi(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,zr(w1,n._currentValue),n._currentValue=a,o!==null)if(Ma(o.value,a)){if(o.children===i.children&&!ho.current){t=Cl(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=yl(-1,r&-r),l.tag=2;var A=o.updateQueue;if(A!==null){A=A.shared;var u=A.pending;u===null?l.next=l:(l.next=u.next,u.next=l),A.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),TS(o.return,r,t),s.lanes|=r;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error($e(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),TS(a,r,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Vi(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ch(t,r),i=ha(i),n=n(i),t.flags|=1,Vi(e,t,n,r),t.child;
vendor: 4,096 bytes, line 40
40case 14:return n=t.type,i=Fa(n,t.pendingProps),i=Fa(n.type,i),U4(e,t,n,i,r);case 15:return WQ(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fa(n,i),Tw(e,t),t.tag=1,fo(n)?(e=!0,m1(t)):e=!1,Ch(t,r),KQ(t,n,i),jS(t,n,i,r),US(null,t,n,!0,e,r);case 19:return JQ(e,t,r);case 22:return GQ(e,t,r)}throw Error($e(156,t.tag))};function fM(e,t){return M6(e,t)}function pX(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function aa(e,t,r,n){return new pX(e,t,r,n)}function kk(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gX(e){if(typeof e=="function")return kk(e)?1:0;if(e!=null){if(e=e.$$typeof,e===GI)return 11;if(e===YI)return 14}return 2}function zA(e,t){var r=e.alternate;return r===null?(r=aa(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Pw(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")kk(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ih:return Eu(r.children,i,o,t);case WI:a=8,i|=8;break;case iS:return e=aa(12,r,t,i|2),e.elementType=iS,e.lanes=o,e;case oS:return e=aa(13,r,t,i),e.elementType=oS,e.lanes=o,e;case aS:return e=aa(19,r,t,i),e.elementType=aS,e.lanes=o,e;case E6:return dx(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x6:a=10;break e;case B6:a=9;break e;case GI:a=11;break e;case YI:a=14;break e;case gA:a=16,n=null;break e}throw Error($e(130,e==null?e:typeof e,""))}return t=aa(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Eu(e,t,r,n){return e=aa(7,e,n,t),e.lanes=r,e}function dx(e,t,r,n){return e=aa(22,e,n,t),e.elementType=E6,e.lanes=r,e.stateNode={isHidden:!1},e}function JB(e,t,r){return e=aa(6,e,null,t),e.lanes=r,e}function ZB(e,t,r){return t=aa(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mX(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OB(0),this.expirationTimes=OB(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OB(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fk(e,t,r,n,i,o,a,s,l){return e=new mX(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=aa(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},hk(o),e}function yX(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:nh,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function pM(e){if(!e)return ic;e=e._reactInternals;e:{if(Hu(e)!==e||e.tag!==1)throw Error($e(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(fo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error($e(171))}if(e.tag===1){var r=e.type;if(fo(r))return pQ(e,r,t)}return t}function gM(e,t,r,n,i,o,a,s,l){return e=Fk(r,n,!0,e,i,o,a,s,l),e.context=pM(null),r=e.current,n=Ji(),i=VA(r),o=yl(n,i),o.callback=t??null,HA(r,o,i),e.current.lanes=i,Ly(e,i,n),po(e,n
vendor: 4,124 bytes, line 40
40),e}function hx(e,t,r,n){var i=t.current,o=Ji(),a=VA(i);return r=pM(r),t.context===null?t.context=r:t.pendingContext=r,t=yl(o,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=HA(i,t,a),e!==null&&(Da(e,i,a,o),kw(e,i,a)),a}function F1(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Y4(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Nk(e,t){Y4(e,t),(e=e.alternate)&&Y4(e,t)}function vX(){return null}var mM=typeof reportError=="function"?reportError:function(e){console.error(e)};function Tk(e){this._internalRoot=e}fx.prototype.render=Tk.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error($e(409));hx(e,t,null,null)};fx.prototype.unmount=Tk.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ju(function(){hx(null,e,null,null)}),t[_l]=null}};function fx(e){this._internalRoot=e}fx.prototype.unstable_scheduleHydration=function(e){if(e){var t=G6();e={blockedOn:null,target:e,priority:t};for(var r=0;r<wA.length&&t!==0&&t<wA[r].priority;r++);wA.splice(r,0,e),r===0&&q6(e)}};function Ok(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function px(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function q4(){}function wX(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var A=F1(a);o.call(A)}}var a=gM(t,n,e,0,null,!1,!1,"",q4);return e._reactRootContainer=a,e[_l]=a.current,gm(e.nodeType===8?e.parentNode:e),ju(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var A=F1(l);s.call(A)}}var l=Fk(e,0,!1,null,null,!1,!1,"",q4);return e._reactRootContainer=l,e[_l]=l.current,gm(e.nodeType===8?e.parentNode:e),ju(function(){hx(t,l,r,n)}),l}function gx(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=F1(a);s.call(l)}}hx(t,a,e,i)}else a=wX(r,t,e,i,n);return F1(a)}z6=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=fg(t.pendingLanes);r!==0&&(JI(t,r|1),po(t,kn()),!(ur&6)&&(of=kn()+500,dc()))}break;case 13:ju(function(){var n=Sl(e,1);if(n!==null){var i=Ji();Da(n,e,1,i)}}),Nk(e,1)}};ZI=function(e){if(e.tag===13){var t=Sl(e,134217728);if(t!==null){var r=Ji();Da(t,e,134217728,r)}Nk(e,134217728)}};W6=function(e){if(e.tag===13){var t=VA(e),r=Sl(e,t);if(r!==null){var n=Ji();Da(r,e,t,n)}Nk(e,t)}};G6=function(){return Cr};Y6=function(e,t){var r=Cr;try{return Cr=e,t()}finally{Cr=r}};gS=function(e,t,r){switch(t){case"input":if(AS(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=ax(n);if(!i)throw Error($e(90));S6(n),AS(n,i)}}}break;case"textarea":I6(e,r);break;case"select":t=r.value,t!=null&&Bh(e,!!r.multiple,t,!1)}};P6=Sk;L6=ju;var bX={usingClientEntryPoint:!1,Events:[Ry,lh,ax,O6,j6,Sk]},Mp={findFiberByHostInstance:ou,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},xX={bundleType:Mp.bundleType,version:Mp.version,rendererPackageName:Mp.rendererPackageName,rendererConfig:Mp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ul.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=D6(e),e===null?null:e.stateNode},findFiberByHostInstance:Mp.findFiberByHostInstance||vX,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 s0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!s0.isDisabled&&s0.supportsFiber)try{rx=s0.inject(xX),xs=s0}catch{}}
40$o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bX;$o.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ok(t))throw Error($e(200));return yX(e,t,null,r)};$o.createRoot=function(e,t){if(!Ok(e))throw Error($e(299));var r=!1,n="",i=mM;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Fk(e,1,!1,null,null,r,!1,n,i),e[_l]=t.current,gm(e.nodeType===8?e.parentNode:e),new Tk(t)};$o.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error($e(188)):(e=Object.keys(e).join(","),Error($e(268,e)));return e=D6(t),e=e===null?null:e.stateNode,e};$o.flushSync=function(e){return ju(e)};$o.hydrate=function(e,t,r){if(!px(t))throw Error($e(200));return gx(null,e,t,!0,r)};$o.hydrateRoot=function(e,t,r){if(!Ok(e))throw Error($e(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",a=mM;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=gM(t,null,e,1,r??null,i,!1,o,a),e[_l]=t.current,gm(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new fx(t)};$o.render=function(e,t,r){if(!px(t))throw Error($e(200));return gx(null,e,t,!1,r)};$o.unmountComponentAtNode=function(e){if(!px(e))throw Error($e(40));return e._reactRootContainer?(ju(function(){gx(null,null,e,!1,function(){e._reactRootContainer=null,e[_l]=null})}),!0):!1};$o.unstable_batchedUpdates=Sk;$o.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!px(r))throw Error($e(200));if(e==null||e._reactInternals===void 0)throw Error($e(38));return gx(e,t,r,!1,n)};$o.version="18.3.1-next-f1338f8080-20240426";function yM(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yM)}catch(e){console.error(e)}}yM(),y6.exports=$o;var Qy=y6.exports;const vM=xr(Qy);var wM,X4=Qy;wM=X4.createRoot,X4.hydrateRoot;const BX=1,EX=1e6;let eE=0;function _X(){return eE=(eE+1)%Number.MAX_SAFE_INTEGER,eE.toString()}const tE=new Map,J4=e=>{if(tE.has(e))return;const t=setTimeout(()=>{tE.delete(e),Mg({type:"REMOVE_TOAST",toastId:e})},EX);tE.set(e,t)},SX=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,BX)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?J4(r):e.toasts.forEach(n=>{J4(n.id)}),{...e,toasts:e.toasts.map(n=>
vendor: 13,913 bytes, line 40
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Lw=[];let Uw={toasts:[]};function Mg(e){Uw=SX(Uw,e),Lw.forEach(t=>{t(Uw)})}function CX({...e}){const t=_X(),r=i=>Mg({type:"UPDATE_TOAST",toast:{...i,id:t}}),n=()=>Mg({type:"DISMISS_TOAST",toastId:t});return Mg({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||n()}}}),{id:t,dismiss:n,update:r}}function hc(){const[e,t]=S.useState(Uw);return S.useEffect(()=>(Lw.push(t),()=>{const r=Lw.indexOf(t);r>-1&&Lw.splice(r,1)}),[e]),{...e,toast:CX,dismiss:r=>Mg({type:"DISMISS_TOAST",toastId:r})}}function cr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Z4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bM(...e){return t=>{let r=!1;const n=e.map(i=>{const o=Z4(i,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let i=0;i<n.length;i++){const o=n[i];typeof o=="function"?o():Z4(e[i],null)}}}}function pn(...e){return S.useCallback(bM(...e),e)}function IX(e,t){const r=S.createContext(t),n=o=>{const{children:a,...s}=o,l=S.useMemo(()=>s,Object.values(s));return c.jsx(r.Provider,{value:l,children:a})};n.displayName=e+"Provider";function i(o){const a=S.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[n,i]}function Rl(e,t=[]){let r=[];function n(o,a){const s=S.createContext(a),l=r.length;r=[...r,a];const A=d=>{var m;const{scope:h,children:f,...g}=d,p=((m=h==null?void 0:h[e])==null?void 0:m[l])||s,v=S.useMemo(()=>g,Object.values(g));return c.jsx(p.Provider,{value:v,children:f})};A.displayName=o+"Provider";function u(d,h){var p;const f=((p=h==null?void 0:h[e])==null?void 0:p[l])||s,g=S.useContext(f);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[A,u]}const i=()=>{const o=r.map(a=>S.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,kX(i,...t)]}function kX(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=n.reduce((s,{useScope:l,scopeName:A})=>{const d=l(o)[`__scope${A}`];return{...s,...d}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function af(e){const t=NX(e),r=S.forwardRef((n,i)=>{const{children:o,...a}=n,s=S.Children.toArray(o),l=s.find(TX);if(l){const A=l.props.children,u=s.map(d=>d===l?S.Children.count(A)>1?S.Children.only(null):S.isValidElement(A)?A.props.children:null:d);return c.jsx(t,{...a,ref:i,children:S.isValidElement(A)?S.cloneElement(A,void 0,u):null})}return c.jsx(t,{...a,ref:i,children:o})});return r.displayName=`${e}.Slot`,r}var FX=af("Slot");function NX(e){const t=S.forwardRef((r,n)=>{const{children:i,...o}=r;if(S.isValidElement(i)){const a=jX(i),s=OX(o,i.props);return i.type!==S.Fragment&&(s.ref=n?bM(n,a):a),S.cloneElement(i,s)}return S.Children.count(i)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xM=Symbol("radix.slottable");function BM(e){const t=({children:r})=>c.jsx(c.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=xM,t}function TX(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xM}function OX(e,t){const r={...t};for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...s)=>{const l=o(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...o}:n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function jX(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function PX(e){const t=e+"CollectionProvider",[r,n]=Rl(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:v,children:m}=p,w=oe.useRef(null),b=oe.useRef(new Map).current;return c.jsx(i,{scope:v,itemMap:b,collectionRef:w,children:m})};a.displayName=t;const s=e+"CollectionSlot",l=af(s),A=oe.forwardRef((p,v)=>{const{scope:m,children:w}=p,b=o(s,m),E=pn(v,b.collectionRef);return c.jsx(l,{ref:E,children:w})});A.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=af(u),f=oe.forwardRef((p,v)=>{const{scope:m,children:w,...b}=p,E=oe.useRef(null),B=pn(v,E),_=o(u,m);return oe.useEffect(()=>(_.itemMap.set(E,{ref:E,...b}),()=>void _.itemMap.delete(E))),c.jsx(h,{[d]:"",ref:B,children:w})});f.displayName=u;function g(p){const v=o(e+"CollectionConsumer",p);return oe.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const b=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((_,F)=>b.indexOf(_.ref.current)-b.indexOf(F.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:A,ItemSlot:f},g,n]}var LX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Or=LX.reduce((e,t)=>{const r=af(`Primitive.${t}`),n=S.forwardRef((i,o)=>{const{asChild:a,...s}=i,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function EM(e,t){e&&Qy.flushSync(()=>e.dispatchEvent(t))}function Ns(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function UX(e,t=globalThis==null?void 0:globalThis.document){const r=Ns(e);S.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var RX="DismissableLayer",YS="dismissableLayer.update",DX="dismissableLayer.pointerDownOutside",QX="dismissableLayer.focusOutside",eO,_M=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),My=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...l}=e,A=S.useContext(_M),[u,d]=S.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=S.useState({}),g=pn(t,F=>d(F)),p=Array.from(A.layers),[v]=[...A.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(v),w=u?p.indexOf(u):-1,b=A.layersWithOutsidePointerEventsDisabled.size>0,E=w>=m,B=$X(F=>{const O=F.target,k=[...A.branches].some(j=>j.contains(O));!E||k||(i==null||i(F),a==null||a(F),F.defaultPrevented||s==null||s())},h),_=HX(F=>{const O=F.target;[...A.branches].some(j=>j.contains(O))||(o==null||o(F),a==null||a(F),F.defaultPrevented||s==null||s())},h);return UX(F=>{w===A.layers.size-1&&(n==null||n(F),!F.defaultPrevented&&s&&(F.preventDefault(),s()))},h),S.useEffect(()=>{if(u)return r&&(A.layersWithOutsidePointerEventsDisabled.size===0&&(eO=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),A.layersWithOutsidePointerEventsDisabled.add(u)),A.layers.add(u),tO(),()=>{r&&A.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=eO)}},[u,h,r,A]),S.useEffect(()=>()=>{u&&(A.layers.delete(u),A.layersWithOutsidePointerEventsDisabled.delete(u),tO())},[u,A]),S.useEffect(()=>{const F=()=>f({});return document.addEventListener(YS,F),()=>document.removeEventListener(YS,F)},[]),c.jsx(Or.div,{...l,ref:g,style:{pointerEvents:b?E?"auto":"none":void 0,...e.style},onFocusCapture:cr(e.onFocusCapture,_.onFocusCapture),onBlurCapture:cr(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:cr(e.onPointerDownCapture,B.onPointerDownCapture)})});My.displayName=RX;var MX="DismissableLayerBranch",SM=S.forwardRef((e,t)=>{const r=S.useContext(_M),n=S.useRef(null),i=pn(t,n);return S.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),c.jsx(Or.div,{...e,ref:i})});SM.displayName=MX;function $X(e,t=globalThis==null?void 0:globalThis.document){const r=Ns(e),n=S.useRef(!1),i=S.useRef(()=>{});return S.useEffect(()=>{const o=s=>{if(s.target&&!n.current){let l=function(){CM(DX,r,A,{discrete:!0})};const A={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);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function HX(e,t=globalThis==null?void 0:globalThis.document){const r=Ns(e),n=S.useRef(!1);return S.useEffect(()=>{const i=o=>{o.target&&!n.current&&CM(QX,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function tO(){const e=new CustomEvent(YS);document.dispatchEvent(e)}function CM(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?EM(i,o):i.dispatchEvent(o)}var KX=My,VX=SM,Il=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},zX="Portal",mx=S.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[i,o]=S.useState(!1);Il(()=>o(!0),[]);const a=r||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?vM.createPortal(c.jsx(Or.div,{...n,ref:t}),a):null});mx.displayName=zX;function WX(e,t){return S.useReducer((r,n)=>t[r][n]??r,e)}var Dl=e=>{const{present:t,children:r}=e,n=GX(t),i=typeof r=="function"?r({present:n.isPresent}):S.Children.only(r),o=pn(n.ref,YX(i));return typeof r=="function"||n.isPresent?S.cloneElement(i,{ref:o}):null};Dl.displayName="Presence";function GX(e){const[t,r]=S.useState(),n=S.useRef(null),i=S.useRef(e),o=S.useRef("none"),a=e?"mounted":"unmounted",[s,l]=WX(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const A=l0(n.current);o.current=s==="mounted"?A:"none"},[s]),Il(()=>{const A=n.current,u=i.current;if(u!==e){const h=o.current,f=l0(A);e?l("MOUNT"):f==="none"||(A==null?void 0:A.display)==="none"?l("UNMOUNT"):l(u&&h!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Il(()=>{if(t){let A;const u=t.ownerDocument.defaultView??window,d=f=>{const p=l0(n.current).includes(f.animationName);if(f.target===t&&p&&(l("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",A=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=f=>{f.target===t&&(o.current=l0(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(A),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(A=>{n.current=A?getComputedStyle(A):null,r(A)},[])}}function l0(e){return(e==null?void 0:e.animationName)||"none"}function YX(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var qX=HI[" useInsertionEffect ".trim().toString()]||Il;function Mf({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,o,a]=XX({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i;{const u=S.useRef(e!==void 0);S.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${n} is changing from ${d?"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.`),u.current=s},[s,n])}const A=S.useCallback(u=>{var d;if(s){const h=JX(u)?u(e):u;h!==e&&((d=a.current)==null||d.call(a,h))}else o(u)},[s,e,o,a]);return[l,A]}function XX({defaultProp:e,onChange:t}){const[r,n]=S.useState(e),i=S.useRef(r),o=S.useRef(t);return qX(()=>{o.current=t},[t]),S.useEffect(()=>{var a;i.current!==r&&((a=o.current)==null||a.call(o,r),i.current=r)},[r,i]),[r,n,o]}function JX(e){return typeof e=="function"}var ZX=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"}),eJ="VisuallyHidden",yx=S.forwardRef((e,t)=>c.jsx(Or.span,{...e,ref:t,style:{...ZX,...e.style}}));yx.displayName=eJ;var tJ=yx,jk="ToastProvider",[Pk,rJ,nJ]=PX("Toast"),[IM,dQe]=Rl("Toast",[nJ]),[iJ,vx]=IM(jk),kM=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:a}=e,[s,l]=S.useState(null),[A,u]=S.useState(0),d=S.useRef(!1),h=S.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${jk}\`. Expected non-empty \`string\`.`),c.jsx(Pk.Provider,{scope:t,children:c.jsx(iJ,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:A,viewport:s,onViewportChange:l,onToastAdd:S.useCallback(()=>u(f=>f+1),[]),onToastRemove:S.useCallback(()=>u(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:a})})};kM.displayName=jk;var FM="ToastViewport",oJ=["F8"],qS="toast.viewportPause",XS="toast.viewportResume",NM=S.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=oJ,label:i="Notifications ({hotkey})",...o}=e,a=vx(FM,r),s=rJ(r),l=S.useRef(null),A=S.useRef(null),u=S.useRef(null),d=S.useRef(null),h=pn(t,d,a.onViewportChange),f=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=a.toastCount>0;S.useEffect(()=>{const v=m=>{var b;n.length!==0&&n.every(E=>m[E]||m.code===E)&&((b=d.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[n]),S.useEffect(()=>{const v=l.current,m=d.current;if(g&&v&&m){const w=()=>{if(!a.isClosePausedRef.current){const _=new CustomEvent(qS);m.dispatchEvent(_),a.isClosePausedRef.current=!0}},b=()=>{if(a.isClosePausedRef.current){const _=new CustomEvent(XS);m.dispatchEvent(_),a.isClosePausedRef.current=!1}},E=_=>{!v.contains(_.relatedTarget)&&b()},B=()=>{v.contains(document.activeElement)||b()};return v.addEventListener("focusin",w),v.addEventListener("focusout",E),v.addEventListener("pointermove",w),v.addEventListener("pointerleave",B),window.addEventListener("blur",w),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",w),v.removeEventListener("focusout",E),v.removeEventListener("pointermove",w),v.removeEventListener("pointerleave",B),window.removeEventListener("blur",w),window.removeEventListener("focus",b)}}},[g,a.isClosePausedRef]);const p=S.useCallback(({tabbingDirection:v})=>{const w=s().map(b=>{const E=b.ref.current,B=[E,...yJ(E)];return v==="forwards"?B:B.reverse()});return(v==="forwards"?w.reverse():w).flat()},[s]);return S.useEffect(()=>{const v=d.current;if(v){const m=w=>{var B,_,F;const b=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!b){const O=document.activeElement,k=w.shiftKey;if(w.target===v&&k){(B=A.current)==null||B.focus();return}const T=p({tabbingDirection:k?"backwards":"forwards"}),U=T.findIndex(R=>R===O);rE(T.slice(U+1))?w.preventDefault():k?(_=A.current)==null||_.focus():(F=u.current)==null||F.focus()}};return v.addEventListener("keydown",m),()=>v.removeEventListener("keydown",m)}},[s,p]),c.jsxs(VX,{ref:l,role:"region","aria-label":i.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&c.jsx(JS,{ref:A,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"forwards"});rE(v)}}),c.jsx(Pk.Slot,{scope:r,children:c.jsx(Or.ol,{tabIndex:-1,...o,ref:h})}),g&&c.jsx(JS,{ref:u,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"backwards"});rE(v)}})]})});NM.displayName=FM;var TM="ToastFocusProxy",JS=S.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,o=vx(TM,r);return c.jsx(yx,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:a=>{var A;const s=a.relatedTarget;!((A=o.viewport)!=null&&A.contains(s))&&n()}})});JS.displayName=TM;var $y="Toast",aJ="toast.swipeStart",sJ="toast.swipeMove",lJ="toast.swipeCancel",AJ="toast.swipeEnd",OM=S.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:o,...a}=e,[s,l]=Mf({prop:n,defaultProp:i??!0,onChange:o,caller:$y});return c.jsx(Dl,{present:r||s,children:c.jsx(dJ,{open:s,...a,ref:t,onClose:()=>l(!1),onPause:Ns(e.onPause),onResume:Ns(e.onResume),onSwipeStart:cr(e.onSwipeStart,A=>{A.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:cr(e.onSwipeMove,A=>{const{x:u,y:d}=A.detail.delta;A.currentTarget.setAttribute("data-swipe","move"),A.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),A.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:cr(e.onSwipeCancel,A=>{A.currentTarget.setAttribute("data-swipe","cancel"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),A.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:cr(e.onSwipeEnd,A=>{const{x:u,y:d}=A.detail.delta;A.currentTarget.setAttribute("data-swipe","end"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),A.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),A.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});OM.displayName=$y;var[cJ,uJ]=IM($y,{onClose(){}}),dJ=S.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:i,open:o,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:A,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,...g}=e,p=vx($y,r),[v,m]=S.useState(null),w=pn(t,R=>m(R)),b=S.useRef(null),E=S.useRef(null),B=i||p.duration,_=S.useRef(0),F=S.useRef(B),O=S.useRef(0),{onToastAdd:k,onToastRemove:j}=p,I=Ns(()=>{var G;(v==null?void 0:v.contains(document.activeElement))&&((G=p.viewport)==null||G.focus()),a()}),T=S.useCallback(R=>{!R||R===1/0||(window.clearTimeout(O.current),_.current=new Date().getTime(),O.current=window.setTimeout(I,R))},[I]);S.useEffect(()=>{const R=p.viewport;if(R){const G=()=>{T(F.current),A==null||A()},K=()=>{const V=new Date().getTime()-_.current;F.current=F.current-V,window.clearTimeout(O.current),l==null||l()};return R.addEventListener(qS,K),R.addEventListener(XS,G),()=>{R.removeEventListener(qS,K),R.removeEventListener(XS,G)}}},[p.viewport,B,l,A,T]),S.useEffect(()=>{o&&!p.isClosePausedRef.current&&T(B)},[o,B,p.isClosePausedRef,T]),S.useEffect(()=>(k(),()=>j()),[k,j]);const U=S.useMemo(()=>v?QM(v):null,[v]);return p.viewport?c.jsxs(c.Fragment,{children:[U&&c.jsx(hJ,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:U}),c.jsx(cJ,{scope:r,onClose:I,children:Qy.createPortal(c.jsx(Pk.ItemSlot,{scope:r,children:c.jsx(KX,{asChild:!0,onEscapeKeyDown:cr(s,()=>{p.isFocusedToastEscapeKeyDownRef.current||I(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(Or.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":p.swipeDirection,...g,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:cr(e.onKeyDown,R=>{R.key==="Escape"&&(s==null||s(R.nativeEvent),R.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:cr(e.onPointerDown,R=>{R.button===0&&(b.current={x:R.clientX,y:R.clientY})}),onPointerMove:cr(e.onPointerMove,R=>{if(!b.current)return;const G=R.clientX-b.current.x,K=R.clientY-b.current.y,V=!!E.current,Q=["left","right"].includes(p.swipeDirection),H=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,q=Q?H(0,G):0,re=Q?0:H(0,K),P=R.pointerType==="touch"?10:2,D={x:q,y:re},X={originalEvent:R,delta:D};V?(E.current=D,A0(sJ,d,X,{discrete:!1})):rO(D,p.swipeDirection,P)?(E.current=D,A0(aJ,u,X,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(G)>P||Math.abs(K)>P)&&(b.current=null)}),onPointerUp:cr(e.onPointerUp,R=>{const G=E.current,K=R.target;if(K.hasPointerCapture(R.pointerId)&&K.releasePointerCapture(R.pointerId),E.current=null,b.current=null,G){const V=R.currentTarget,Q={originalEvent:R,delta:G};rO(G,p.swipeDirection,p.swipeThreshold)?A0(AJ,f,Q,{discrete:!0}):A0(lJ,h,Q,{discrete:!0}),V.addEventListener("click",H=>H.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),hJ=e=>{const{__scopeToast:t,children:r,...n}=e,i=vx($y,t),[o,a]=S.useState(!1),[s,l]=S.useState(!1);return gJ(()=>a(!0)),S.useEffect(()=>{const A=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(A)},[]),s?null:c.jsx(mx,{asChild:!0,children:c.jsx(yx,{...n,children:o&&c.jsxs(c.Fragment,{children:[i.label," ",r]})})})},fJ="ToastTitle",jM=S.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return c.jsx(Or.div,{...n,ref:t})});jM.displayName=fJ;var pJ="ToastDescription",PM=S.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return c.jsx(Or.div,{...n,ref:t})});PM.displayName=pJ;var LM="ToastAction",UM=S.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?c.jsx(DM,{altText:r,asChild:!0,children:c.jsx(Lk,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${LM}\`. Expected non-empty \`string\`.`),null)});UM.displayName=LM;var RM="ToastClose",Lk=S.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=uJ(RM,r);return c.jsx(DM,{asChild:!0,children:c.jsx(Or.button,{type:"button",...n,ref:t,onClick:cr(e.onClick,i.onClose)})})});Lk.displayName=RM;var DM=S.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return c.jsx(Or.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...i,ref:t})});function QM(e){const t=[];
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),mJ(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...QM(n))}}),t}function A0(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?EM(i,o):i.dispatchEvent(o)}var rO=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),o=n>i;return t==="left"||t==="right"?o&&n>r:!o&&i>r};function gJ(e=()=>{}){const t=Ns(e);Il(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function mJ(e){return e.nodeType===e.ELEMENT_NODE}function yJ(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function rE(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var vJ=kM,MM=NM,$M=OM,HM=jM,KM=PM,VM=UM,zM=Lk;function WM(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=WM(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function er(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=WM(e))&&(n&&(n+=" "),n+=t);return n}const nO=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,iO=er,Uk=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return iO(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(A=>{const u=r==null?void 0:r[A],d=o==null?void 0:o[A];if(u===null)return null;
vendor: 4,356 bytes, lines 40-99
40const h=nO(u)||nO(d);return i[A][h]}),s=r&&Object.entries(r).reduce((A,u)=>{let[d,h]=u;return h===void 0||(A[d]=h),A},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((A,u)=>{let{class:d,className:h,...f}=u;return Object.entries(f).every(g=>{let[p,v]=g;return Array.isArray(v)?v.includes({...o,...s}[p]):{...o,...s}[p]===v})?[...A,d,h]:A},[]);return iO(e,a,l,r==null?void 0:r.class,r==null?void 0:r.className)};/**
41 * @license lucide-react v0.462.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 wJ=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),GM=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
46 * @license lucide-react v0.462.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 bJ={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.462.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 xJ=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:o,iconNode:a,...s},l)=>S.createElement("svg",{ref:l,...bJ,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:GM("lucide",i),...s},[...a.map(([A,u])=>S.createElement(A,u)),...Array.isArray(o)?o:[o]]));/**
56 * @license lucide-react v0.462.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 ln=(e,t)=>{const r=S.forwardRef(({className:n,...i},o)=>S.createElement(xJ,{ref:o,iconNode:t,className:GM(`lucide-${wJ(e)}`,n),...i}));return r.displayName=`${e}`,r};/**
61 * @license lucide-react v0.462.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 YM=ln("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
66 * @license lucide-react v0.462.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 N1=ln("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
71 * @license lucide-react v0.462.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 BJ=ln("Building2",[["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"}]]);/**
76 * @license lucide-react v0.462.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 qM=ln("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
81 * @license lucide-react v0.462.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 EJ=ln("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
86 * @license lucide-react v0.462.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 Rw=ln("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
91 * @license lucide-react v0.462.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 _J=ln("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
96 * @license lucide-react v0.462.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 Es=ln("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
101 * @license lucide-react v0.462.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 SJ=ln("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]);/**
106 * @license lucide-react v0.462.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 CJ=ln("Download",[["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"}]]);/**
111 * @license lucide-react v0.462.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 XM=ln("ExternalLink",[["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"}]]);/**
116 * @license lucide-react v0.462.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 IJ=ln("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
121 * @license lucide-react v0.462.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 kJ=ln("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
126 * @license lucide-react v0.462.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 JM=ln("LockOpen",[["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"}]]);/**
131 * @license lucide-react v0.462.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 Rk=ln("Lock",[["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"}]]);/**
136 * @license lucide-react v0.462.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 FJ=ln("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
141 * @license lucide-react v0.462.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 Dk=ln("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
146 * @license lucide-react v0.462.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 ZM=ln("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
151 * @license lucide-react v0.462.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 e8=ln("Trash2",[["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"}]]);/**
156 * @license lucide-react v0.462.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 t8=ln("TriangleAlert",[["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"}]]);/**
161 * @license lucide-react v0.462.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 NJ=ln("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
166 * @license lucide-react v0.462.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 TJ=ln("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
171 * @license lucide-react v0.462.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 $g=ln("Users",[["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"}]]);/**
176 * @license lucide-react v0.462.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 r8=ln("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 12,264 bytes, line 180
180],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Qk="-",OJ=e=>{const t=PJ(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const s=a.split(Qk);return s[0]===""&&s.length!==1&&s.shift(),n8(s,t)||jJ(a)},getConflictingClassGroupIds:(a,s)=>{const l=r[a]||[];return s&&n[a]?[...l,...n[a]]:l}}},n8=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?n8(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Qk);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},oO=/^\[(.+)\]$/,jJ=e=>{if(oO.test(e)){const t=oO.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},PJ=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return UJ(Object.entries(e.classGroups),r).forEach(([o,a])=>{ZS(a,n,o,t)}),n},ZS=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:aO(t,i);o.classGroupId=r;return}if(typeof i=="function"){if(LJ(i)){ZS(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([o,a])=>{ZS(a,aO(t,o),r,n)})})},aO=(e,t)=>{let r=e;return t.split(Qk).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},LJ=e=>e.isThemeGetter,UJ=(e,t)=>t?e.map(([r,n])=>{const i=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[t+a,s])):o);return[r,i]}):e,RJ=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(o,a)=>{r.set(o,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let a=r.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return i(o,a),a},set(o,a){r.has(o)?r.set(o,a):i(o,a)}}},i8="!",DJ=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],o=t.length,a=s=>{const l=[];let A=0,u=0,d;for(let v=0;v<s.length;v++){let m=s[v];if(A===0){if(m===i&&(n||s.slice(v,v+o)===t)){l.push(s.slice(u,v)),u=v+o;continue}if(m==="/"){d=v;continue}}m==="["?A++:m==="]"&&A--}const h=l.length===0?s:s.substring(u),f=h.startsWith(i8),g=f?h.substring(1):h,p=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:p}};return r?s=>r({className:s,parseClassName:a}):a},QJ=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},MJ=e=>({cache:RJ(e.cacheSize),parseClassName:DJ(e),...OJ(e)}),$J=/\s+/,HJ=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split($J);let s="";for(let l=a.length-1;l>=0;l-=1){const A=a[l],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=r(A);let g=!!f,p=n(g?h.substring(0,f):h);if(!p){if(!g){s=A+(s.length>0?" "+s:s);continue}if(p=n(h),!p){s=A+(s.length>0?" "+s:s);continue}g=!1}const v=QJ(u).join(":"),m=d?v+i8:v,w=m+p;if(o.includes(w))continue;o.push(w);const b=i(p,g);for(let E=0;E<b.length;++E){const B=b[E];o.push(m+B)}s=A+(s.length>0?" "+s:s)}return s};function KJ(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=o8(t))&&(n&&(n+=" "),n+=r);return n}const o8=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=o8(e[n]))&&(r&&(r+=" "),r+=t);return r};function VJ(e,...t){let r,n,i,o=a;function a(l){const A=t.reduce((u,d)=>d(u),e());return r=MJ(A),n=r.cache.get,i=r.cache.set,o=s,s(l)}function s(l){const A=n(l);if(A)return A;const u=HJ(l,r);return i(l,u),u}return function(){return o(KJ.apply(null,arguments))}}const Yr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},a8=/^\[(?:([a-z-]+):)?(.+)\]$/i,zJ=/^\d+\/\d+$/,WJ=new Set(["px","full","screen"]),GJ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,YJ=/\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$/,qJ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,XJ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,JJ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qs=e=>kh(e)||WJ.has(e)||zJ.test(e),sA=e=>$f(e,"length",aZ),kh=e=>!!e&&!Number.isNaN(Number(e)),nE=e=>$f(e,"number",kh),$p=e=>!!e&&Number.isInteger(Number(e)),ZJ=e=>e.endsWith("%")&&kh(e.slice(0,-1)),qt=e=>a8.test(e),lA=e=>GJ.test(e),eZ=new Set(["length","size","percentage"]),tZ=e=>$f(e,eZ,s8),rZ=e=>$f(e,"position",s8),nZ=new Set(["image","url"]),iZ=e=>$f(e,nZ,lZ),oZ=e=>$f(e,"",sZ),Hp=()=>!0,$f=(e,t,r)=>{const n=a8.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},aZ=e=>YJ.test(e)&&!qJ.test(e),s8=()=>!1,sZ=e=>XJ.test(e),lZ=e=>JJ.test(e),AZ=()=>{const e=Yr("colors"),t=Yr("spacing"),r=Yr("blur"),n=Yr("brightness"),i=Yr("borderColor"),o=Yr("borderRadius"),a=Yr("borderSpacing"),s=Yr("borderWidth"),l=Yr("contrast"),A=Yr("grayscale"),u=Yr("hueRotate"),d=Yr("invert"),h=Yr("gap"),f=Yr("gradientColorStops"),g=Yr("gradientColorStopPositions"),p=Yr("inset"),v=Yr("margin"),m=Yr("opacity"),w=Yr("padding"),b=Yr("saturate"),E=Yr("scale"),B=Yr("sepia"),_=Yr("skew"),F=Yr("space"),O=Yr("translate"),k=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",qt,t],T=()=>[qt,t],U=()=>["",qs,sA],R=()=>["auto",kh,qt],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",qt],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>[kh,qt];return{cacheSize:500,separator:":",theme:{colors:[Hp],spacing:[qs,sA],blur:["none","",lA,qt],brightness:re(),borderColor:[e],borderRadius:["none","","full",lA,qt],borderSpacing:T(),borderWidth:U(),contrast:re(),grayscale:H(),hueRotate:re(),invert:H(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[ZJ,sA],inset:I(),margin:I(),opacity:re(),padding:T(),saturate:re(),scale:re(),sepia:H(),skew:re(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",qt]}],container:["container"],columns:[{columns:[lA]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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"],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:[...G(),qt]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$p,qt]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",qt]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",$p,qt]}],"grid-cols":[{"grid-cols":[Hp]}],"col-start-end":[{col:["auto",{span:["full",$p,qt]},qt]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[Hp]}],"row-start-end":[{row:["auto",{span:[$p,qt]},qt]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",qt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",qt]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",qt,t]}],"min-w":[{"min-w":[qt,t,"min","max","fit"]}],"max-w":[{"max-w":[qt,t,"none","full","min","max","fit","prose",{screen:[lA]},lA]}],h:[{h:[qt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[qt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[qt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[qt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",lA,sA]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nE]}],"font-family":[{font:[Hp]}],"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:["tighter","tight","normal","wide","wider","widest",qt]}],"line-clamp":[{"line-clamp":["none",kh,nE]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",qs,qt]}],"list-image":[{"list-image":["none",qt]}],"list-style-type":[{list:["none","disc","decimal",qt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",qs,sA]}],"underline-offset":[{"underline-offset":["auto",qs,qt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",qt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",qt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),rZ]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tZ]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},iZ]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}
vendor: 5,182 bytes, line 180
180],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:K()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[qs,qt]}],"outline-w":[{outline:[qs,sA]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[qs,sA]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",lA,oZ]}],"shadow-color":[{shadow:[Hp]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",lA,qt]}],grayscale:[{grayscale:[A]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",qt]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",qt]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",qt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[$p,qt]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",qt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",qt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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"]}
vendor: 4,647 bytes, line 180
180],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",qt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[qs,sA,nE]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},cZ=VJ(AZ);function Jt(...e){return cZ(er(e))}const uZ=vJ,l8=S.forwardRef(({className:e,...t},r)=>c.jsx(MM,{ref:r,className:Jt("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),...t}));l8.displayName=MM.displayName;const dZ=Uk("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"}}),A8=S.forwardRef(({className:e,variant:t,...r},n)=>c.jsx($M,{ref:n,className:Jt(dZ({variant:t}),e),...r}));A8.displayName=$M.displayName;const hZ=S.forwardRef(({className:e,...t},r)=>c.jsx(VM,{ref:r,className:Jt("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));hZ.displayName=VM.displayName;const c8=S.forwardRef(({className:e,...t},r)=>c.jsx(zM,{ref:r,className:Jt("absolute right-2 top-2 rounded-md p-1 text-foreground
180/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(r8,{className:"h-4 w-4"})}));c8.displayName=zM.displayName;const u8=S.forwardRef(({className:e,...t},r)=>c.jsx(HM,{ref:r,className:Jt("text-sm font-semibold",e),...t}));u8.displayName=HM.displayName;const d8=S.forwardRef(({className:e,...t},r)=>c.jsx(KM,{ref:r,className:Jt("text-sm opacity-90",e),...t}));d8.displayName=KM.displayName;function fZ(){const{toasts:e}=hc();return c.jsxs(uZ,{children:[e.map(function({id:t,title:r,description:n,action:i,...o}){return c.jsxs(A8,{...o,children:[c.jsxs("div",{className:"grid gap-1",children:[r&&c.jsx(u8,{children:r}),n&&c.jsx(d8,{children:n})]}),i,c.jsx(c8,{})]},t)}),c.jsx(l8,{})]})}var sO=["light","dark"],pZ="(prefers-color-scheme: dark)",gZ=S.createContext(void 0),mZ={setTheme:e=>{},themes:[]},yZ=()=>{var e;return(e=S.useContext(gZ))!=null?e:mZ};S.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:o,value:a,attrs:s,nonce:l})=>{let A=o==="system",u=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,d=i?sO.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(g,p=!1,v=!0)=>{let m=a?a[g]:g,w=p?g+"|| ''":`'${m}'`,b="";return i&&v&&!p&&sO.includes(g)&&(b+=`d.style.colorScheme = '${g}';`),r==="class"?p||m?b+=`c.add(${w})`:b+="null":m&&(b+=`d[s](n,${w})`),b},f=e?`!function(){${u}${h(e)}}()`:n?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${A})){var t='${pZ}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${h(a?"x[e]":"e",!0)}}${A?"":"else{"+h(o,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${h(a?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${d}}catch(t){}}();`;return S.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var vZ=e=>{switch(e){case"success":return xZ;case"info":return EZ;case"warning":return BZ;case"error":return _Z;default:return null}},wZ=Array(12).fill(0),bZ=({visible:e,className:t})=>oe.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},oe.createElement("div",{className:"sonner-spinner"},wZ.map((r,n)=>oe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),xZ=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),BZ=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),EZ=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),_Z=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),SZ=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},oe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),oe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),CZ=()=>{let[e,t]=oe.useState(document.hidden);return oe.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},eC=1,IZ=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>
180{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;let{message:n,...i}=t,o=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:eC++,a=this.toasts.find(l=>l.id===o),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...t,id:o,title:n}),{...l,...t,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...i,dismissible:s,id:o}),o},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:t,dismiss:!0})),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let i=t instanceof Promise?t:t(),o=n!==void 0,a,s=i.then(async A=>{if(a=["resolve",A],oe.isValidElement(A))o=!1,this.create({id:n,type:"default",message:A});else if(FZ(A)&&!A.ok){o=!1;let u=typeof r.error=="function"?await r.error(`HTTP error! status: ${A.status}`):r.error,d=typeof r.description=="function"?await r.description(`HTTP error! status: ${A.status}`):r.description;this.create({id:n,type:"error",message:u,description:d})}else if(r.success!==void 0){o=!1;let u=typeof r.success=="function"?await r.success(A):r.success,d=typeof r.description=="function"?await r.description(A):r.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async A=>{if(a=["reject",A],r.error!==void 0){o=!1;let u=typeof r.error=="function"?await r.error(A):r.error,d=typeof r.description=="function"?await r.description(A):r.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var A;o&&(this.dismiss(n),n=void 0),(A=r.finally)==null||A.call(r)}),l=()=>new Promise((A,u)=>s.then(()=>a[0]==="reject"?u(a[1]):A(a[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(t,r)=>{let n=(r==null?void 0:r.id)||eC++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},oo=new IZ,kZ=(e,t)=>{let r=(t==null?void 0:t.id)||eC++;return oo.addToast({title:e,...t,id:r}),r},FZ=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",NZ=kZ,TZ=()=>oo.toasts,OZ=()=>oo.getActiveToasts();Object.assign(NZ,{success:oo.success,info:oo.info,warning:oo.warning,error:oo.error,custom:oo.custom,message:oo.message,promise:oo.promise,dismiss:oo.dismiss,loading:oo.loading},{getHistory:TZ,getToasts:OZ});function jZ(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}jZ(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
180left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
180:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
180--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
181`);function c0(e){return e.label!==void 0}var PZ=3,LZ="32px",UZ="16px",lO=4e3,RZ=356,DZ=14,QZ=20,MZ=200;function Ea(...e){return e.filter(Boolean).join(" ")}function $Z(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var HZ=e=>{var t,r,n,i,o,a,s,l,A,u,d;let{invert:h,toast:f,unstyled:g,interacting:p,setHeights:v,visibleToasts:m,heights:w,index:b,toasts:E,expanded:B,removeToast:_,defaultRichColors:F,closeButton:O,style:k,cancelButtonStyle:j,actionButtonStyle:I,className:T="",descriptionClassName:U="",duration:R,position:G,gap:K,loadingIcon:V,expandByDefault:Q,classNames:H,icons:q,closeButtonAriaLabel:re="Close toast",pauseWhenPageIsHidden:P}=e,[D,X]=oe.useState(null),[Z,ae]=oe.useState(null),[se,pe]=oe.useState(!1),[le,he]=oe.useState(!1),[Ae,ue]=oe.useState(!1),[_e,ve]=oe.useState(!1),[z,Se]=oe.useState(!1),[Me,De]=oe.useState(0),[xe,ze]=oe.useState(0),me=oe.useRef(f.duration||R||lO),Le=oe.useRef(null),Ue=oe.useRef(null),Bt=b===0,Et=b+1<=m,Ge=f.type,Je=f.dismissible!==!1,dt=f.className||"",Ye=f.de
181scriptionClassName||"",vt=oe.useMemo(()=>w.findIndex(Ze=>Ze.toastId===f.id)||0,[w,f.id]),tt=oe.useMemo(()=>{var Ze;return(Ze=f.closeButton)!=null?Ze:O},[f.closeButton,O]),dr=oe.useMemo(()=>f.duration||R||lO,[f.duration,R]),Pt=oe.useRef(0),Ft=oe.useRef(0),Be=oe.useRef(0),rt=oe.useRef(null),[Ve,et]=G.split("-"),Qe=oe.useMemo(()=>w.reduce((Ze,Ee,Ke)=>Ke>=vt?Ze:Ze+Ee.height,0),[w,vt]),He=CZ(),st=f.invert||h,_t=Ge==="loading";Ft.current=oe.useMemo(()=>vt*K+Qe,[vt,Qe]),oe.useEffect(()=>{me.current=dr},[dr]),oe.useEffect(()=>{pe(!0)},[]),oe.useEffect(()=>{let Ze=Ue.current;if(Ze){let Ee=Ze.getBoundingClientRect().height;return ze(Ee),v(Ke=>[{toastId:f.id,height:Ee,position:f.position},...Ke]),()=>v(Ke=>Ke.filter(ht=>ht.toastId!==f.id))}},[v,f.id]),oe.useLayoutEffect(()=>{if(!se)return;let Ze=Ue.current,Ee=Ze.style.height;Ze.style.height="auto";let Ke=Ze.getBoundingClientRect().height;Ze.style.height=Ee,ze(Ke),v(ht=>ht.find(Pe=>Pe.toastId===f.id)?ht.map(Pe=>Pe.toastId===f.id?{...Pe,height:Ke}:Pe):[{toastId:f.id,height:Ke,position:f.position},...ht])},[se,f.title,f.description,v,f.id]);let We=oe.useCallback(()=>{he(!0),De(Ft.current),v(Ze=>Ze.filter(Ee=>Ee.toastId!==f.id)),setTimeout(()=>{_(f)},MZ)},[f,_,v,Ft]);oe.useEffect(()=>{if(f.promise&&Ge==="loading"||f.duration===1/0||f.type==="loading")return;let Ze;return B||p||P&&He?(()=>{if(Be.current<Pt.current){let Ee=new Date().getTime()-Pt.current;me.current=me.current-Ee}Be.current=new Date().getTime()})():me.current!==1/0&&(Pt.current=new Date().getTime(),Ze=setTimeout(()=>{var Ee;(Ee=f.onAutoClose)==null||Ee.call(f,f),We()},me.current)),()=>clearTimeout(Ze)},[B,p,f,Ge,P,He,We]),oe.useEffect(()=>{f.delete&&We()},[We,f.delete]);function Xt(){var Ze,Ee,Ke;return q!=null&&q.loading?oe.createElement("div",{className:Ea(H==null?void 0:H.loader,(Ze=f==null?void 0:f.classNames)==null?void 0:Ze.loader,"sonner-loader"),"data-visible":Ge==="loading"},q.loading):V?oe.createElement("div",{className:Ea(H==null?void 0:H.loader,(Ee=f==null?void 0:f.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":Ge==="loading"},V):oe.createElement(bZ,{className:Ea(H==null?void 0:H.loader,(Ke=f==null?void 0:f.classNames)==null?void 0:Ke.loader),visible:Ge==="loading"})}return oe.createElement("li",{tabIndex:0,ref:Ue,className:Ea(T,dt,H==null?void 0:H.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,H==null?void 0:H.default,H==null?void 0:H[Ge],(r=f==null?void 0:f.classNames)==null?void 0:r[Ge]),"data-sonner-toast":"","data-rich-colors":(n=f.richColors)!=null?n:F,"data-styled":!(f.jsx||f.unstyled||g),"data-mounted":se,"data-promise":!!f.promise,"data-swiped":z,"data-removed":le,"data-visible":Et,"data-y-position":Ve,"data-x-position":et,"data-index":b,"data-front":Bt,"data-swiping":Ae,"data-dismissible":Je,"data-type":Ge,"data-invert":st,"data-swipe-out":_e,"data-swipe-direction":Z,"data-expanded":!!(B||Q&&se),style:{"--index":b,"--toasts-before":b,"--z-index":E.length-b,"--offset":`${le?Me:Ft.current}px`,"--initial-height":Q?"auto":`${xe}px`,...k,...f.style},onDragEnd:()=>{ue(!1),X(null),rt.current=null},onPointerDown:Ze=>{_t||!Je||(Le.current=new Date,De(Ft.current),Ze.target.setPointerCapture(Ze.pointerId),Ze.target.tagName!=="BUTTON"&&(ue(!0),rt.current={x:Ze.clientX,y:Ze.clientY}))},onPointerUp:()=>{var Ze,Ee,Ke,ht;if(_e||!Je)return;rt.current=null;let Pe=Number(((Ze=Ue.current)==null?void 0:Ze.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ct=Number(((Ee=Ue.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),qe=new Date().getTime()-((Ke=Le.current)==null?void 0:Ke.getTime()),wt=D==="x"?Pe:ct,St=Math.abs(wt)/qe;if(Math.abs(wt)>=QZ||St>.11){De(Ft.current),(ht=f.onDismiss)==null||ht.call(f,f),ae(D==="x"?Pe>0?"right":"left":ct>0?"down":"up"),We(),ve(!0),Se(!1);return}ue(!1),X(null)},onPointerMove:Ze=>{var Ee,Ke,ht,Pe;if(!rt.current||!Je||((Ee=window.getSelection())==null?void 0:Ee.toString().length)>0)return;let ct=Ze.clientY-rt.current.y,qe=Ze.clientX-rt.current.x,wt=(Ke=e.swipeDirections)!=null?Ke:$Z(G);!D&&(Math.abs(qe)>1||Math.abs(ct)>1)&&X(Math.abs(qe)>Math.abs(ct)?"x":"y");let St={x:0,y:0};D==="y"?(wt.includes("top")||wt.includes("bottom"))&&(wt.includes("top")&&ct<0||wt.includes("bottom")&&ct>0)&&(St.y=ct):D==="x"&&(wt.includes("left")||wt.includes("right"))&&(wt.includes("left")&&qe<0||wt.includes("right")&&qe>0)&&(St.x=qe),(Math.abs(St.x)>0||Math.abs(St.y)>0)&&Se(!0),(ht=Ue.current)==null||ht.style.setProperty("--swipe-amount-x",`${St.x}px`),(Pe=Ue.current)==null||Pe.style.setProperty("--swipe-amount-y",`${St.y}px`)}},tt&&!f.jsx?oe.createElement("button",{"aria-label":re,"data-disabled":_t,"data-close-button":!0,onClick:_t||!Je?()=>{}:()=>{var Ze;We(),(Ze=f.onDismiss)==null||Ze.call(f,f)},className:Ea(H==null?void 0:H.closeButton,(i=f==null?void 0:f.classNames)==null?void 0:i.closeButton)},(o=q==null?void 0:q.close)!=null?o:SZ):null,f.jsx||S.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:oe.createElement(oe.Fragment,null,Ge||f.icon||f.promise?oe.createElement("div",{"data-icon":"",className:Ea(H==null?void 0:H.icon,(a=f==null?void 0:f.classNames)==null?void 0:a.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Xt():null,f.type!=="loading"?f.icon||(q==null?void 0:q[Ge])||vZ(Ge):null):null,oe.createElement("div",{"data-content":"",className:Ea(H==null?void 0:H.content,(s=f==null?void 0:f.classNames)==null?void 0:s.content)},oe.createElement("div",{"data-title":"",className:Ea(H==null?void 0:H.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?oe.createElement("div",{"data-description":"",className:Ea(U,Ye,H==null?void 0:H.description,(A=f==null?void 0:f.classNames)==null?void 0:A.description)},typeof f.description=="function"?f.description():f.description):null),S.isValidElement(f.cancel)?f.cancel:f.cancel&&c0(f.cancel)?oe.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||j,onClick:Ze=>{var Ee,Ke;c0(f.cancel)&&Je&&((Ke=(Ee=f.cancel).onClick)==null||Ke.call(Ee,Ze),We())},className:Ea(H==null?void 0:H.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,S.isValidElement(f.action)?f.action:f.action&&c0(f.action)?oe.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||I,onClick:Ze=>{var Ee,Ke;c0(f.action)&&((Ke=(Ee=f.action).onClick)==null||Ke.call(Ee,Ze),!Ze.defaultPrevented&&We())},className:Ea(H==null?void 0:H.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function AO(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function KZ(e,t){let r={};return[e,t].forEach((n,i)=>{let o=i===1,a=o?"--mobile-offset":"--offset",s=o?UZ:LZ;function l(A){["top","right","bottom","left"].forEach(u=>{r[`${a}-${u}`]=typeof A=="number"?`${A}px`:A})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(A=>{n[A]===void 0?r[`${a}-${A}`]=s:r[`${a}-${A}`]=typeof n[A]=="number"?`${n[A]}px`:n[A]}):l(s)}),r}var VZ=S.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:a,className:s,offset:l,mobileOffset:A,theme:u="light",richColors:d,duration:h,style:f,visibleToasts:g=PZ,toastOptions:p,dir:v=AO(),gap:m=DZ,loadingIcon:w,icons:b,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:B}=e,[_,F]=oe.useState([]),O=oe.useMemo(()=>Array.from(new Set([n].concat(_.filter(P=>P.position).map(P=>P.position)))),[_,n]),[k,j]=oe.useState([]),[I,T]=oe.useState(!1),[U,R]=oe.useState(!1),[G,K]=oe.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
181k":"light"),V=oe.useRef(null),Q=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=oe.useRef(null),q=oe.useRef(!1),re=oe.useCallback(P=>{F(D=>{var X;return(X=D.find(Z=>Z.id===P.id))!=null&&X.delete||oo.dismiss(P.id),D.filter(({id:Z})=>Z!==P.id)})},[]);return oe.useEffect(()=>oo.subscribe(P=>{if(P.dismiss){F(D=>D.map(X=>X.id===P.id?{...X,delete:!0}:X));return}setTimeout(()=>{vM.flushSync(()=>{F(D=>{let X=D.findIndex(Z=>Z.id===P.id);return X!==-1?[...D.slice(0,X),{...D[X],...P},...D.slice(X+1)]:[P,...D]})})})}),[]),oe.useEffect(()=>{if(u!=="system"){K(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;let P=window.matchMedia("(prefers-color-scheme: dark)");try{P.addEventListener("change",({matches:D})=>{K(D?"dark":"light")})}catch{P.addListener(({matches:X})=>{try{K(X?"dark":"light")}catch(Z){console.error(Z)}})}},[u]),oe.useEffect(()=>{_.length<=1&&T(!1)},[_]),oe.useEffect(()=>{let P=D=>{var X,Z;i.every(ae=>D[ae]||D.code===ae)&&(T(!0),(X=V.current)==null||X.focus()),D.code==="Escape"&&(document.activeElement===V.current||(Z=V.current)!=null&&Z.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[i]),oe.useEffect(()=>{if(V.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,q.current=!1)}},[V.current]),oe.createElement("section",{ref:t,"aria-label":`${E} ${Q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},O.map((P,D)=>{var X;let[Z,ae]=P.split("-");return _.length?oe.createElement("ol",{key:P,dir:v==="auto"?AO():v,tabIndex:-1,ref:V,className:s,"data-sonner-toaster":!0,"data-theme":G,"data-y-position":Z,"data-lifted":I&&_.length>1&&!o,"data-x-position":ae,style:{"--front-toast-height":`${((X=k[0])==null?void 0:X.height)||0}px`,"--width":`${RZ}px`,"--gap":`${m}px`,...f,...KZ(l,A)},onBlur:se=>{q.current&&!se.currentTarget.contains(se.relatedTarget)&&(q.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:se=>{se.target instanceof HTMLElement&&se.target.dataset.dismissible==="false"||q.current||(q.current=!0,H.current=se.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{U||T(!1)},onDragEnd:()=>T(!1),onPointerDown:se=>{se.target instanceof HTMLElement&&se.target.dataset.dismissible==="false"||R(!0)},onPointerUp:()=>R(!1)},_.filter(se=>!se.position&&D===0||se.position===P).map((se,pe)=>{var le,he;return oe.createElement(HZ,{key:se.id,icons:b,index:pe,toast:se,defaultRichColors:d,duration:(le=p==null?void 0:p.duration)!=null?le:h,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:r,visibleToasts:g,closeButton:(he=p==null?void 0:p.closeButton)!=null?he:a,interacting:U,position:P,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:re,toasts:_.filter(Ae=>Ae.position==se.position),heights:k.filter(Ae=>Ae.position==se.position),setHeights:j,expandByDefault:o,gap:m,loadingIcon:w,expanded:I,pauseWhenPageIsHidden:B,swipeDirections:e.swipeDirections})})):null}))});const zZ=({...e})=>{const{theme:t="system"}=yZ();return c.jsx(VZ,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var WZ=HI[" useId ".trim().toString()]||(()=>{}),GZ=0;function Hg(e){const[t,r]=S.useState(WZ());return Il(()=>{r(n=>n??String(GZ++))},[e]),t?`radix-${t}`:""}const YZ=["top","right","bottom","left"],oc=Math.min,No=Math.max,T1=Math.round,u0=Math.floor,_s=e=>({x:e,y:e}
vendor: 11,959 bytes, line 181
181),qZ={left:"right",right:"left",bottom:"top",top:"bottom"},XZ={start:"end",end:"start"};function tC(e,t,r){return No(e,oc(t,r))}function kl(e,t){return typeof e=="function"?e(t):e}function Fl(e){return e.split("-")[0]}function Hf(e){return e.split("-")[1]}function Mk(e){return e==="x"?"y":"x"}function $k(e){return e==="y"?"height":"width"}const JZ=new Set(["top","bottom"]);function vs(e){return JZ.has(Fl(e))?"y":"x"}function Hk(e){return Mk(vs(e))}function ZZ(e,t,r){r===void 0&&(r=!1);const n=Hf(e),i=Hk(e),o=$k(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=O1(a)),[a,O1(a)]}function eee(e){const t=O1(e);return[rC(e),t,rC(t)]}function rC(e){return e.replace(/start|end/g,t=>XZ[t])}const cO=["left","right"],uO=["right","left"],tee=["top","bottom"],ree=["bottom","top"];function nee(e,t,r){switch(e){case"top":case"bottom":return r?t?uO:cO:t?cO:uO;case"left":case"right":return t?tee:ree;default:return[]}}function iee(e,t,r,n){const i=Hf(e);let o=nee(Fl(e),r==="start",n);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(rC)))),o}function O1(e){return e.replace(/left|right|bottom|top/g,t=>qZ[t])}function oee(e){return{top:0,right:0,bottom:0,left:0,...e}}function h8(e){return typeof e!="number"?oee(e):{top:e,right:e,bottom:e,left:e}}function j1(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function dO(e,t,r){let{reference:n,floating:i}=e;const o=vs(t),a=Hk(t),s=$k(a),l=Fl(t),A=o==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,h=n[s]/2-i[s]/2;let f;switch(l){case"top":f={x:u,y:n.y-i.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-i.width,y:d};break;default:f={x:n.x,y:n.y}}switch(Hf(t)){case"start":f[a]-=h*(r&&A?-1:1);break;case"end":f[a]+=h*(r&&A?-1:1);break}return f}const aee=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let A=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=dO(A,n,l),h=n,f={},g=0;for(let p=0;p<s.length;p++){const{name:v,fn:m}=s[p],{x:w,y:b,data:E,reset:B}=await m({x:u,y:d,initialPlacement:n,placement:h,strategy:i,middlewareData:f,rects:A,platform:a,elements:{reference:e,floating:t}});u=w??u,d=b??d,f={...f,[v]:{...f[v],...E}},B&&g<=50&&(g++,typeof B=="object"&&(B.placement&&(h=B.placement),B.rects&&(A=B.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):B.rects),{x:u,y:d}=dO(A,h,l)),p=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:f}};async function _m(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:A="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=kl(t,e),g=h8(f),v=s[h?d==="floating"?"reference":"floating":d],m=j1(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(v)))==null||r?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:A,rootBoundary:u,strategy:l})),w=d==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),E=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},B=j1(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:b,strategy:l}):w);return{top:(m.top-B.top+g.top)/E.y,bottom:(B.bottom-m.bottom+g.bottom)/E.y,left:(m.left-B.left+g.left)/E.x,right:(B.right-m.right+g.right)/E.x}}const see=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:A,padding:u=0}=kl(e,t)||{};if(A==null)return{};const d=h8(u),h={x:r,y:n},f=Hk(i),g=$k(f),p=await a.getDimensions(A),v=f==="y",m=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",E=o.reference[g]+o.reference[f]-h[f]-o.floating[g],B=h[f]-o.reference[f],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(A));let F=_?_[b]:0;(!F||!await(a.isElement==null?void 0:a.isElement(_)))&&(F=s.floating[b]||o.floating[g]);const O=E/2-B/2,k=F/2-p[g]/2-1,j=oc(d[m],k),I=oc(d[w],k),T=j,U=F-p[g]-I,R=F/2-p[g]/2+O,G=tC(T,R,U),K=!l.arrow&&Hf(i)!=null&&R!==G&&o.reference[g]/2-(R<T?j:I)-p[g]/2<0,V=K?R<T?R-T:R-U:0;return{[f]:h[f]+V,data:{[f]:G,centerOffset:R-G-V,...K&&{alignmentOffset:V}},reset:K}}}),lee=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:A}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=kl(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const m=Fl(i),w=vs(s),b=Fl(s)===s,E=await(l.isRTL==null?void 0:l.isRTL(A.floating)),B=h||(b||!p?[O1(s)]:eee(s)),_=g!=="none";!h&&_&&B.push(...iee(s,p,g,E));const F=[s,...B],O=await _m(t,v),k=[];let j=((n=o.flip)==null?void 0:n.overflows)||[];if(u&&k.push(O[m]),d){const R=ZZ(i,a,E);k.push(O[R[0]],O[R[1]])}if(j=[...j,{placement:i,overflows:k}],!k.every(R=>R<=0)){var I,T;const R=(((I=o.flip)==null?void 0:I.index)||0)+1,G=F[R];if(G&&(!(d==="alignment"?w!==vs(G):!1)||j.every(Q=>Q.overflows[0]>0&&vs(Q.placement)===w)))return{data:{index:R,overflows:j},reset:{placement:G}};let K=(T=j.filter(V=>V.overflows[0]<=0).sort((V,Q)=>V.overflows[1]-Q.overflows[1])[0])==null?void 0:T.placement;if(!K)switch(f){case"bestFit":{var U;const V=(U=j.filter(Q=>{if(_){const H=vs(Q.placement);return H===w||H==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(H=>H>0).reduce((H,q)=>H+q,0)]).sort((Q,H)=>Q[1]-H[1])[0])==null?void 0:U[0];V&&(K=V);break}case"initialPlacement":K=s;break}if(i!==K)return{reset:{placement:K}}}return{}}}};function hO(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fO(e){return YZ.some(t=>e[t]>=0)}const Aee=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=kl(e,t);switch(n){case"referenceHidden":{const o=await _m(t,{...i,elementContext:"reference"}),a=hO(o,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:fO(a)}}}case"escaped":{const o=await _m(t,{...i,altBoundary:!0}),a=hO(o,r.floating);return{data:{escapedOffsets:a,escaped:fO(a)}}}default:return{}}}}},f8=new Set(["left","top"]);async function cee(e,t){const{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=Fl(r),s=Hf(r),l=vs(r)==="y",A=f8.has(a)?-1:1,u=o&&l?-1:1,d=kl(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*u,y:h*A}:{x:h*A,y:f*u}}const uee=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await cee(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},dee=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:v=>{let{x:m,y:w}=v;return{x:m,y:w}}},...l}=kl(e,t),A={x:r,y:n},u=await _m(t,l),d=vs(Fl(i)),h=Mk(d);let f=A[h],g=A[d];if(o){const v=h==="y"?"top":"left",m=h==="y"?"bottom":"right",w=f+u[v],b=f-u[m];f=tC(w,f,b)}if(a){const v=d==="y"?"top":"left",m=d==="y"?"bottom":"right",w=g+u[v],b=g-u[m];g=tC(w,g,b)}const p=s.fn({...t,[h]:f,[d]:g});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[h]:o,[d]:a}}}}}},hee=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:A=!0}=kl(e,t),u={x:r,y:n},d=vs(i),h=Mk(d);let f=u[h],g=u[d];const p=kl(s,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const b=h==="y"?"height":"width",E=o.reference[h]-o.floating[b]+v.mainAxis,B=o.reference[h]+o.reference[b]-v.mainAxis;f<E?f=E:f>B&&(f=B)}if(A){var m,w;const b=h==="y"?"width":"height",E=f8.has(Fl(i)),B=o.reference[d]-o.floating[b]+(E&&((m=a.offset)==null?void 0:m[d])||0)+(E?0:v.crossAxis),_=o.reference[d]+o.reference[b]+(E?0:((w=a.offset)==null?void 0:w[d])||0)-(E?v.crossAxis:0);g<B?g=B:g>_&&(g=_)}return{[h]:f,[d]:g}}}},fee=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...A}=kl(e,t),u=await _m(t,A),d=Fl(i),h=Hf(i),f=vs(i)==="y",{width:g,height:p}=o.floating;let v,m;d==="top"||d==="bottom"?(v=d,m=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(m=d,v=h==="end"?"top":"bottom");const w=p-u.top-u.bottom,b=g-u.left-u.right,E=oc(p-u[v],w),B=oc(g-u[m],b),_=!t.middlewareData.shift;let F=E,O=B;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(O=b),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(F=w),_&&!h){const j=No(u.left,0),I=No(u.right,0),T=No(u.top,0),U=No(u.bottom,0);f?O=g-2*(j!==0||I!==0?j+I:No(u.left,u.right)):F=p-2*(T!==0||U!==0?T+U:No(u.top,u.bottom))}await l({...t,availableWidth:O,availableHeight:F});const k=await a.getDimensions(s.floating);return g!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function wx(){return typeof window<"u"}function Kf(e){return p8(e)?(e.nodeName||"").toLowerCase():"#document"}function Ro(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function js(e){var t;return(t=(p8(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function p8(e){return wx()?e instanceof Node||e instanceof Ro(e).Node:!1}function $a(e){return wx()?e instanceof Element||e instanceof Ro(e).Element:!1}function Ts(e){return wx()?e instanceof HTMLElement||e instanceof Ro(e).HTMLElement:!1}function pO(e){return!wx()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ro(e).ShadowRoot}const pee=new Set(["inline","contents"]);function Hy(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=Ha(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!pee.has(i)}const gee=new Set(["table","td","th"]);function mee(e){return gee.has(Kf(e))}const yee=[":popover-open",":modal"];function bx(e){return yee.some(t=>{try{return e.matches(t)}catch{return!1}})}const vee=["transform","translate","scale","rotate","perspective"],wee=["transform","translate","scale","rotate","perspective","filter"],bee=["paint","layout","strict","content"];function Kk(e){const t=Vk(),r=$a(e)?Ha(e):e;return vee.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||wee.some(n=>(r.willChange||"").includes(n))||bee.some(n=>(r.contain||"").includes(n))}function xee(e){let t=ac(e);for(;Ts(t)&&!sf(t);){if(Kk(t))return t;if(bx(t))return null;t=ac(t)}return null}function Vk(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Bee=new Set(["html","body","#document"]);function sf(e){return Bee.has(Kf(e))}function Ha(e){return Ro(e).getComputedStyle(e)}function xx(e){return $a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ac(e){if(Kf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pO(e)&&e.host||js(e);return pO(t)?t.host:t}function g8(e){const t=ac(e);return sf(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ts(t)&&Hy(t)?t:g8(t)}function Sm(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=g8(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=Ro(i);if(o){const s=nC(a);
vendor: 6,634 bytes, line 181
181return t.concat(a,a.visualViewport||[],Hy(i)?i:[],s&&r?Sm(s):[])}return t.concat(i,Sm(i,[],r))}function nC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function m8(e){const t=Ha(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Ts(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=T1(r)!==o||T1(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function zk(e){return $a(e)?e:e.contextElement}function Fh(e){const t=zk(e);if(!Ts(t))return _s(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=m8(t);let a=(o?T1(r.width):r.width)/n,s=(o?T1(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Eee=_s(0);function y8(e){const t=Ro(e);return!Vk()||!t.visualViewport?Eee:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _ee(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ro(e)?!1:t}function Pu(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=zk(e);let a=_s(1);t&&(n?$a(n)&&(a=Fh(n)):a=Fh(e));const s=_ee(o,r,n)?y8(o):_s(0);let l=(i.left+s.x)/a.x,A=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const h=Ro(o),f=n&&$a(n)?Ro(n):n;let g=h,p=nC(g);for(;p&&n&&f!==g;){const v=Fh(p),m=p.getBoundingClientRect(),w=Ha(p),b=m.left+(p.clientLeft+parseFloat(w.paddingLeft))*v.x,E=m.top+(p.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,A*=v.y,u*=v.x,d*=v.y,l+=b,A+=E,g=Ro(p),p=nC(g)}}return j1({width:u,height:d,x:l,y:A})}function Wk(e,t){const r=xx(e).scrollLeft;return t?t.left+r:Pu(js(e)).left+r}function v8(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:Wk(e,n)),o=n.top+t.scrollTop;return{x:i,y:o}}function See(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o=i==="fixed",a=js(n),s=t?bx(t.floating):!1;if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},A=_s(1);const u=_s(0),d=Ts(n);if((d||!d&&!o)&&((Kf(n)!=="body"||Hy(a))&&(l=xx(n)),Ts(n))){const f=Pu(n);A=Fh(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}const h=a&&!d&&!o?v8(a,l,!0):_s(0);return{width:r.width*A.x,height:r.height*A.y,x:r.x*A.x-l.scrollLeft*A.x+u.x+h.x,y:r.y*A.y-l.scrollTop*A.y+u.y+h.y}}function Cee(e){return Array.from(e.getClientRects())}function Iee(e){const t=js(e),r=xx(e),n=e.ownerDocument.body,i=No(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=No(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Wk(e);const s=-r.scrollTop;return Ha(n).direction==="rtl"&&(a+=No(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}function kee(e,t){const r=Ro(e),n=js(e),i=r.visualViewport;let o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const A=Vk();(!A||A&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}const Fee=new Set(["absolute","fixed"]);function Nee(e,t){const r=Pu(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Ts(e)?Fh(e):_s(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,A=n*o.y;return{width:a,height:s,x:l,y:A}}function gO(e,t,r){let n;if(t==="viewport")n=kee(e,r);else if(t==="document")n=Iee(js(e));else if($a(t))n=Nee(t,r);else{const i=y8(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return j1(n)}function w8(e,t){const r=ac(e);return r===t||!$a(r)||sf(r)?!1:Ha(r).position==="fixed"||w8(r,t)}function Tee(e,t){const r=t.get(e);if(r)return r;let n=Sm(e,[],!1).filter(s=>$a(s)&&Kf(s)!=="body"),i=null;const o=Ha(e).position==="fixed";let a=o?ac(e):e;for(;$a(a)&&!sf(a);){const s=Ha(a),l=Kk(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&Fee.has(i.position)||Hy(a)&&!l&&w8(e,a))?n=n.filter(u=>u!==a):i=s,a=ac(a)}return t.set(e,n),n}function Oee(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const a=[...r==="clippingAncestors"?bx(t)?[]:Tee(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((A,u)=>{const d=gO(t,u,i);return A.top=No(d.top,A.top),A.right=oc(d.right,A.right),A.bottom=oc(d.bottom,A.bottom),A.left=No(d.left,A.left),A},gO(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function jee(e){const{width:t,height:r}=m8(e);return{width:t,height:r}}function Pee(e,t,r){const n=Ts(t),i=js(t),o=r==="fixed",a=Pu(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=_s(0);function A(){l.x=Wk(i)}if(n||!n&&!o)if((Kf(t)!=="body"||Hy(i))&&(s=xx(t)),n){const f=Pu(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&A();o&&!n&&i&&A();const u=i&&!n&&!o?v8(i,s):_s(0),d=a.left+s.scrollLeft-l.x-u.x,h=a.top+s.scrollTop-l.y-u.y;return{x:d,y:h,width:a.width,height:a.height}}function iE(e){return Ha(e).position==="static"}function mO(e,t){if(!Ts(e)||Ha(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return js(e)===r&&(r=r.ownerDocument.body),r}function b8(e,t){const r=Ro(e);if(bx(e))return r;if(!Ts(e)){let i=ac(e);for(;i&&!sf(i);){if($a(i)&&!iE(i))return i;i=ac(i)}return r}let n=mO(e,t);for(;n&&mee(n)&&iE(n);)n=mO(n,t);return n&&sf(n)&&iE(n)&&!Kk(n)?r:n||xee(e)||r}const Lee=async function(e){const t=this.getOffsetParent||b8,r=this.getDimensions,n=await r(e.floating);return{reference:Pee(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Uee(e){return Ha(e).direction==="rtl"}const Ree={convertOffsetParentRelativeRectToViewportRelativeRect:See,getDocumentElement:js,getClippingRect:Oee,getOffsetParent:b8,getElementRects:Lee,getClientRects:Cee,getDimensions:jee,getScale:Fh,isElement:$a,isRTL:Uee};function x8(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Dee(e,t){let r=null,n;const i=js(e);function o(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const A=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=A;if(s||t(),!h||!f)return;const g=u0(d),p=u0(i.clientWidth-(u+h)),v=u0(i.clientHeight-(d+f)),m=u0(u),b={rootMargin:-g+"px "+-p+"px "+-v+"px "+-m+"px",threshold:No(0,oc(1,l))||1};let E=!0;function B(_){const F=_[0].intersectionRatio;if(F!==l){if(!E)return a();F?a(!1,F):n=setTimeout(()=>{a(!1,1e-7)},1e3)}F===1&&!x8(A,e.getBoundingClientRect())&&a(),E=!1}try{r=new IntersectionObserver(B,{...b,root:i.ownerDocument})}catch{r=new IntersectionObserver(B,b)}r.observe(e)}return a(!0),o}function Qee(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,A=zk(e),u=i||o?[...A?Sm(A):[],...Sm(t)]:[];u.forEach(m=>{i&&m.addEventListener("scroll",r,{passive:!0}),o&&m.addEventListener("resize",r)});
vendor: 8,766 bytes, line 181
181const d=A&&s?Dee(A,r):null;let h=-1,f=null;a&&(f=new ResizeObserver(m=>{let[w]=m;w&&w.target===A&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),r()}),A&&!l&&f.observe(A),f.observe(t));let g,p=l?Pu(e):null;l&&v();function v(){const m=Pu(e);p&&!x8(p,m)&&r(),p=m,g=requestAnimationFrame(v)}return r(),()=>{var m;u.forEach(w=>{i&&w.removeEventListener("scroll",r),o&&w.removeEventListener("resize",r)}),d==null||d(),(m=f)==null||m.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const Mee=uee,$ee=dee,Hee=lee,Kee=fee,Vee=Aee,yO=see,zee=hee,Wee=(e,t,r)=>{const n=new Map,i={platform:Ree,...r},o={...i.platform,_c:n};return aee(e,t,{...i,platform:o})};var Gee=typeof document<"u",Yee=function(){},Dw=Gee?S.useLayoutEffect:Yee;function P1(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 r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!P1(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&e.$$typeof)&&!P1(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function B8(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vO(e,t){const r=B8(e);return Math.round(t*r)/r}function oE(e){const t=S.useRef(e);return Dw(()=>{t.current=e}),t}function qee(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:A}=e,[u,d]=S.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=S.useState(n);P1(h,n)||f(n);const[g,p]=S.useState(null),[v,m]=S.useState(null),w=S.useCallback(Q=>{Q!==_.current&&(_.current=Q,p(Q))},[]),b=S.useCallback(Q=>{Q!==F.current&&(F.current=Q,m(Q))},[]),E=o||g,B=a||v,_=S.useRef(null),F=S.useRef(null),O=S.useRef(u),k=l!=null,j=oE(l),I=oE(i),T=oE(A),U=S.useCallback(()=>{if(!_.current||!F.current)return;const Q={placement:t,strategy:r,middleware:h};I.current&&(Q.platform=I.current),Wee(_.current,F.current,Q).then(H=>{const q={...H,isPositioned:T.current!==!1};R.current&&!P1(O.current,q)&&(O.current=q,Qy.flushSync(()=>{d(q)}))})},[h,t,r,I,T]);Dw(()=>{A===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(Q=>({...Q,isPositioned:!1})))},[A]);const R=S.useRef(!1);Dw(()=>(R.current=!0,()=>{R.current=!1}),[]),Dw(()=>{if(E&&(_.current=E),B&&(F.current=B),E&&B){if(j.current)return j.current(E,B,U);U()}},[E,B,U,j,k]);const G=S.useMemo(()=>({reference:_,floating:F,setReference:w,setFloating:b}),[w,b]),K=S.useMemo(()=>({reference:E,floating:B}),[E,B]),V=S.useMemo(()=>{const Q={position:r,left:0,top:0};if(!K.floating)return Q;const H=vO(K.floating,u.x),q=vO(K.floating,u.y);return s?{...Q,transform:"translate("+H+"px, "+q+"px)",...B8(K.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:H,top:q}},[r,s,K.floating,u.x,u.y]);return S.useMemo(()=>({...u,update:U,refs:G,elements:K,floatingStyles:V}),[u,U,G,K,V])}const Xee=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?yO({element:n.current,padding:i}).fn(r):{}:n?yO({element:n,padding:i}).fn(r):{}}}},Jee=(e,t)=>({...Mee(e),options:[e,t]}),Zee=(e,t)=>({...$ee(e),options:[e,t]}),ete=(e,t)=>({...zee(e),options:[e,t]}),tte=(e,t)=>({...Hee(e),options:[e,t]}),rte=(e,t)=>({...Kee(e),options:[e,t]}),nte=(e,t)=>({...Vee(e),options:[e,t]}),ite=(e,t)=>({...Xee(e),options:[e,t]});var ote="Arrow",E8=S.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...o}=e;return c.jsx(Or.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});E8.displayName=ote;var ate=E8;function Gk(e){const[t,r]=S.useState(void 0);return Il(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,A=Array.isArray(l)?l[0]:l;a=A.inlineSize,s=A.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Yk="Popper",[_8,Bx]=Rl(Yk),[ste,S8]=_8(Yk),C8=e=>{const{__scopePopper:t,children:r}=e,[n,i]=S.useState(null);return c.jsx(ste,{scope:t,anchor:n,onAnchorChange:i,children:r})};C8.displayName=Yk;var I8="PopperAnchor",k8=S.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,o=S8(I8,r),a=S.useRef(null),s=pn(t,a);return S.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:c.jsx(Or.div,{...i,ref:s})});k8.displayName=I8;var qk="PopperContent",[lte,Ate]=_8(qk),F8=S.forwardRef((e,t)=>{var se,pe,le,he,Ae,ue;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:A=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:g,...p}=e,v=S8(qk,r),[m,w]=S.useState(null),b=pn(t,_e=>w(_e)),[E,B]=S.useState(null),_=Gk(E),F=(_==null?void 0:_.width)??0,O=(_==null?void 0:_.height)??0,k=n+(o!=="center"?"-"+o:""),j=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(A)?A:[A],T=I.length>0,U={padding:j,boundary:I.filter(ute),altBoundary:T},{refs:R,floatingStyles:G,placement:K,isPositioned:V,middlewareData:Q}=qee({strategy:"fixed",placement:k,whileElementsMounted:(..._e)=>Qee(..._e,{animationFrame:f==="always"}),elements:{reference:v.anchor},middleware:[Jee({mainAxis:i+O,alignmentAxis:a}),l&&Zee({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?ete():void 0,...U}),l&&tte({...U}),rte({...U,apply:({elements:_e,rects:ve,availableWidth:z,availableHeight:Se})=>{const{width:Me,height:De}=ve.reference,xe=_e.floating.style;xe.setProperty("--radix-popper-available-width",`${z}px`),xe.setProperty("--radix-popper-available-height",`${Se}px`),xe.setProperty("--radix-popper-anchor-width",`${Me}px`),xe.setProperty("--radix-popper-anchor-height",`${De}px`)}}),E&&ite({element:E,padding:s}),dte({arrowWidth:F,arrowHeight:O}),h&&nte({strategy:"referenceHidden",...U})]}),[H,q]=O8(K),re=Ns(g);Il(()=>{V&&(re==null||re())},[V,re]);const P=(se=Q.arrow)==null?void 0:se.x,D=(pe=Q.arrow)==null?void 0:pe.y,X=((le=Q.arrow)==null?void 0:le.centerOffset)!==0,[Z,ae]=S.useState();return Il(()=>{m&&ae(window.getComputedStyle(m).zIndex)},[m]),c.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:V?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[(he=Q.transformOrigin)==null?void 0:he.x,(Ae=Q.transformOrigin)==null?void 0:Ae.y].join(" "),...((ue=Q.hide)==null?void 0:ue.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(lte,{scope:r,placedSide:H,onArrowChange:B,arrowX:P,arrowY:D,shouldHideArrow:X,children:c.jsx(Or.div,{"data-side":H,"data-align":q,...p,ref:b,style:{...p.style,animation:V?void 0:"none"}})})})});F8.displayName=qk;var N8="PopperArrow",cte={top:"bottom",right:"left",bottom:"top",left:"right"},T8=S.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,o=Ate(N8,n),a=cte[o.placedSide];return c.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:c.jsx(ate,{...i,ref:r,style:{...i.style,display:"block"}})})});T8.displayName=N8;function ute(e){return e!==null}var dte=e=>({name:"transformOrigin",options:e,fn(t){var v,m,w;const{placement:r,rects:n,middlewareData:i}=t,a=((v=i.arrow)==null?void 0:v.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[A,u]=O8(r),d={start:"0%",center:"50%",end:"100%"}[u],h=(((m=i.arrow)==null?void 0:m.x)??0)+s/2,f=(((w=i.arrow)==null?void 0:w.y)??0)+l/2;let g="",p="";return A==="bottom"?(g=a?d:`${h}px`,p=`${-l}px`):A==="top"?(g=a?d:`${h}px`,p=`${n.floating.height+l}px`):A==="right"?(g=`${-l}px`,p=a?d:`${f}px`):A==="left"&&(g=`${n.floating.width+l}px`,p=a?d:`${f}px`),{data:{x:g,y:p}}}});function O8(e){const[t,r="center"]=e.split("-");return[t,r]}var j8=C8,Xk=k8,P8=F8,L8=T8,[Ex,fQe]=Rl("Tooltip",[Bx]),_x=Bx(),U8="TooltipProvider",hte=700,iC="tooltip.open",[fte,Jk]=Ex(U8),R8=e=>
vendor: 4,254 bytes, line 181
181{const{__scopeTooltip:t,delayDuration:r=hte,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:o}=e,a=S.useRef(!0),s=S.useRef(!1),l=S.useRef(0);return S.useEffect(()=>{const A=l.current;return()=>window.clearTimeout(A)},[]),c.jsx(fte,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:S.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:S.useCallback(A=>{s.current=A},[]),disableHoverableContent:i,children:o})};R8.displayName=U8;var Cm="Tooltip",[pte,Sx]=Ex(Cm),D8=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:i,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=Jk(Cm,e.__scopeTooltip),A=_x(t),[u,d]=S.useState(null),h=Hg(),f=S.useRef(0),g=a??l.disableHoverableContent,p=s??l.delayDuration,v=S.useRef(!1),[m,w]=Mf({prop:n,defaultProp:i??!1,onChange:F=>{F?(l.onOpen(),document.dispatchEvent(new CustomEvent(iC))):l.onClose(),o==null||o(F)},caller:Cm}),b=S.useMemo(()=>m?v.current?"delayed-open":"instant-open":"closed",[m]),E=S.useCallback(()=>{window.clearTimeout(f.current),f.current=0,v.current=!1,w(!0)},[w]),B=S.useCallback(()=>{window.clearTimeout(f.current),f.current=0,w(!1)},[w]),_=S.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{v.current=!0,w(!0),f.current=0},p)},[p,w]);return S.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(j8,{...A,children:c.jsx(pte,{scope:t,contentId:h,open:m,stateAttribute:b,trigger:u,onTriggerChange:d,onTriggerEnter:S.useCallback(()=>{l.isOpenDelayedRef.current?_():E()},[l.isOpenDelayedRef,_,E]),onTriggerLeave:S.useCallback(()=>{g?B():(window.clearTimeout(f.current),f.current=0)},[B,g]),onOpen:E,onClose:B,disableHoverableContent:g,children:r})})};D8.displayName=Cm;var oC="TooltipTrigger",Q8=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=Sx(oC,r),o=Jk(oC,r),a=_x(r),s=S.useRef(null),l=pn(t,s,i.onTriggerChange),A=S.useRef(!1),u=S.useRef(!1),d=S.useCallback(()=>A.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),c.jsx(Xk,{asChild:!0,...a,children:c.jsx(Or.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:l,onPointerMove:cr(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:cr(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:cr(e.onPointerDown,()=>{i.open&&i.onClose(),A.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:cr(e.onFocus,()=>{A.current||i.onOpen()}),onBlur:cr(e.onBlur,i.onClose),onClick:cr(e.onClick,i.onClose)})})});Q8.displayName=oC;var gte="TooltipPortal",[pQe,mte]=Ex(gte,{forceMount:void 0}),lf="TooltipContent",M8=S.forwardRef((e,t)=>{const r=mte(lf,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,a=Sx(lf,e.__scopeTooltip);return c.jsx(Dl,{present:n||a.open,children:a.disableHoverableContent?c.jsx($8,{side:i,...o,ref:t}):c.jsx(yte,{side:i,...o,ref:t})})}),yte=S.forwardRef((e,t)=>{const r=Sx(lf,e.__scopeTooltip),n=Jk(lf,e.__scopeTooltip),i=S.useRef(null),o=pn(t,i),[a,s]=S.useState(null),{trigger:l,onClose:A}=r,u=i.current,{onPointerInTransitChange:d}=n,h=S.useCallback(()=>{s(null),d(!1)},[d]),f=S.useCallback((g,p)=>{const v=g.currentTarget,m={x:g.clientX,y:g.clientY},w=Bte(m,v.getBoundingClientRect()),b=Ete(m,w),E=_te(p.getBoundingClientRect()),B=Cte([...b,...E]);s(B),d(!0)},[d]);return S.useEffect(()=>()=>h(),[h]),S.useEffect(()=>{if(l&&u){const g=v=>f(v,u),p=v=>f(v,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",p)}}},[l,u,f,h]),S.useEffect(()=>{if(a){const g=p=>{const v=p.target,m={x:p.clientX,y:p.clientY},w=(l==null?void 0:l.contains(v))||(u==null?void 0:u.contains(v)),b=!Ste(m,a);w?h():b&&(h(),A())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,a,A,h]),c.jsx($8,{...e,ref:o})}),[vte,wte]=Ex(Cm,{isInside:!1}),bte=BM("TooltipContent"),$8=S.forwardRef((e,t)=>
181{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=Sx(lf,r),A=_x(r),{onClose:u}=l;return S.useEffect(()=>(document.addEventListener(iC,u),()=>document.removeEventListener(iC,u)),[u]),S.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),c.jsx(My,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:c.jsxs(P8,{"data-state":l.stateAttribute,...A,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(bte,{children:n}),c.jsx(vte,{scope:r,isInside:!0,children:c.jsx(tJ,{id:l.contentId,role:"tooltip",children:i||n})})]})})});M8.displayName=lf;var H8="TooltipArrow",xte=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=_x(r);return wte(H8,r).isInside?null:c.jsx(L8,{...i,...n,ref:t})});xte.displayName=H8;function Bte(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Ete(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function _te(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function Ste(e,t){const{x:r,y:n}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const s=t[o],l=t[a],A=s.x,u=s.y,d=l.x,h=l.y;u>n!=h>n&&r<(d-A)*(n-u)/(h-u)+A&&(i=!i)}return i}function Cte(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ite(t)}function Ite(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const o=r[r.length-1],a=r[r.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var kte=R8,Fte=D8,Nte=Q8,K8=M8;const Ky=kte,Zk=Fte,eF=Nte,Cx=S.forwardRef(({className:e,sideOffset:t=4,...r},n)=>c.jsx(K8,{ref:n,sideOffset:t,className:Jt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Cx.displayName=K8.displayName;var Ix=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(){}},kx=typeof window>"u"||"Deno"in globalThis;function Na(){}function Tte(e,t){return typeof e=="function"?e(t):e}function Ote(e){return typeof e=="number"&&e>=0&&e!==1/0}function jte(e,t){return Math.max(e+(t||0)-Date.now(),0)}function aC(e,t){return typeof e=="function"?e(t):e}function Pte(e,t){return typeof e=="function"?e(t):e}function wO(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==tF(a,t.options))return!1}else if(!km(t.queryKey,a))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||o&&!o(t))}function bO(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Im(t.options.mutationKey)!==Im(o))return!1}else if(!km(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function tF(e,t){return((t==null?void 0:t.queryKeyHashFn)||Im)(e)}function Im(e){return JSON.stringify(e,(t,r)=>sC(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function km(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>km(e[r],t[r])):!1}function V8(e,t){if(e===t)return e;const r=xO(e)&&xO(t);if(r||sC(e)&&sC(t)){const n=r?e:Object.keys(e),i=n.length,o=r?t:Object.keys(t),a=o.length,s=r?[]:{},l=new Set(n);let A=0;for(let u=0;u<a;u++){const d=r?u:o[u];(!r&&l.has(d)||r)&&e[d]===void 0&&t[d]===void 0?(s[d]=void 0,A++):(s[d]=V8(e[d],t[d]),s[d]===e[d]&&e[d]!==void 0&&A++)}return i===a&&A===i?e:s}return t}function xO(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sC(e){if(!BO(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!BO(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function BO(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lte(e){return new Promise(t=>{setTimeout(t,e)})}function Ute(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?V8(e,t):t}function Rte(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Dte(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var rF=Symbol();function z8(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===rF?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var mu,SA,Kh,ZD,Qte=(ZD=class extends Ix{constructor(){super();hr(this,mu);hr(this,SA);hr(this,Kh);zt(this,Kh,t=>{if(!kx&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){Te(this,SA)||this.setEventListener(Te(this,Kh))}onUnsubscribe(){var t;this.hasListeners()||((t=Te(this,SA))==null||t.call(this),zt(this,SA,void 0))}setEventListener(t){var r;zt(this,Kh,t),(r=Te(this,SA))==null||r.call(this),zt(this,SA,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Te(this,mu)!==t&&(zt(this,mu,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,959 bytes, line 181
181this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof Te(this,mu)=="boolean"?Te(this,mu):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},mu=new WeakMap,SA=new WeakMap,Kh=new WeakMap,ZD),W8=new Qte,Vh,CA,zh,e6,Mte=(e6=class extends Ix{constructor(){super();hr(this,Vh,!0);hr(this,CA);hr(this,zh);zt(this,zh,t=>{if(!kx&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){Te(this,CA)||this.setEventListener(Te(this,zh))}onUnsubscribe(){var t;this.hasListeners()||((t=Te(this,CA))==null||t.call(this),zt(this,CA,void 0))}setEventListener(t){var r;zt(this,zh,t),(r=Te(this,CA))==null||r.call(this),zt(this,CA,t(this.setOnline.bind(this)))}setOnline(t){Te(this,Vh)!==t&&(zt(this,Vh,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Te(this,Vh)}},Vh=new WeakMap,CA=new WeakMap,zh=new WeakMap,e6),L1=new Mte;function $te(){let e,t;const r=new Promise((i,o)=>{e=i,t=o});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}function Hte(e){return Math.min(1e3*2**e,3e4)}function G8(e){return(e??"online")==="online"?L1.isOnline():!0}var Y8=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function aE(e){return e instanceof Y8}function q8(e){let t=!1,r=0,n=!1,i;const o=$te(),a=p=>{var v;n||(h(new Y8(p)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},A=()=>W8.isFocused()&&(e.networkMode==="always"||L1.isOnline())&&e.canRun(),u=()=>G8(e.networkMode)&&e.canRun(),d=p=>{var v;n||(n=!0,(v=e.onSuccess)==null||v.call(e,p),i==null||i(),o.resolve(p))},h=p=>{var v;n||(n=!0,(v=e.onError)==null||v.call(e,p),i==null||i(),o.reject(p))},f=()=>new Promise(p=>{var v;i=m=>{(n||A())&&p(m)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;i=void 0,n||(p=e.onContinue)==null||p.call(e)}),g=()=>{if(n)return;let p;const v=r===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(m){p=Promise.reject(m)}Promise.resolve(p).then(d).catch(m=>{var _;if(n)return;const w=e.retry??(kx?0:3),b=e.retryDelay??Hte,E=typeof b=="function"?b(r,m):b,B=w===!0||typeof w=="number"&&r<w||typeof w=="function"&&w(r,m);if(t||!B){h(m);return}r++,(_=e.onFail)==null||_.call(e,r,m),Lte(E).then(()=>A()?void 0:f()).then(()=>{t?h(m):g()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?g():f().then(g),o)}}var Kte=e=>setTimeout(e,0);function Vte(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=Kte;const o=s=>{t?e.push(s):i(()=>{r(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var zi=Vte(),yu,t6,X8=(t6=class{constructor(){hr(this,yu)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ote(this.gcTime)&&zt(this,yu,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(kx?1/0:5*60*1e3))}clearGcTimeout(){Te(this,yu)&&(clearTimeout(Te(this,yu)),zt(this,yu,void 0))}},yu=new WeakMap,t6),Wh,vu,Zo,wu,Ti,Oy,bu,Oa,rl,r6,zte=(r6=class extends X8{constructor(t){super();hr(this,Oa);hr(this,Wh);hr(this,vu);hr(this,Zo);hr(this,wu);hr(this,Ti);hr(this,Oy);hr(this,bu);zt(this,bu,!1),zt(this,Oy,t.defaultOptions),this.setOptions(t.options),this.observers=[],zt(this,wu,t.client),zt(this,Zo,Te(this,wu).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,zt(this,Wh,Gte(this.options)),this.state=t.state??Te(this,Wh),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Te(this,Ti))==null?void 0:t.promise}setOptions(t){this.options={...Te(this,Oy),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Te(this,Zo).remove(this)}setData(t,r){const n=Ute(this.state.data,t,this.options);return Ei(this,Oa,rl).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Ei(this,Oa,rl).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=Te(this,Ti))==null?void 0:n.promise;return(i=Te(this,Ti))==null||i.cancel(t),r?r.then(Na).catch(Na):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Te(this,Wh))}isActive(){return this.observers.some(t=>Pte(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rF||this.state.dataUpdateCount+this.state.errorUpdate
181Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>aC(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:!jte(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=Te(this,Ti))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=Te(this,Ti))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Te(this,Zo).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(Te(this,Ti)&&(Te(this,bu)?Te(this,Ti).cancel({revert:!0}):Te(this,Ti).cancelRetry()),this.scheduleGc()),Te(this,Zo).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ei(this,Oa,rl).call(this,{type:"invalidate"})}fetch(t,r){var A,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(Te(this,Ti))return Te(this,Ti).continueRetry(),Te(this,Ti).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(zt(this,bu,!0),n.signal)})},o=()=>{const h=z8(this.options,r),g=(()=>{const p={client:Te(this,wu),queryKey:this.queryKey,meta:this.meta};return i(p),p})();return zt(this,bu,!1),this.options.persister?this.options.persister(h,g,this):h(g)},s=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:Te(this,wu),state:this.state,fetchFn:o};return i(h),h})();(A=this.options.behavior)==null||A.onFetch(s,this),zt(this,vu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&Ei(this,Oa,rl).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,g,p,v;aE(h)&&h.silent||Ei(this,Oa,rl).call(this,{type:"error",error:h}),aE(h)||((g=(f=Te(this,Zo).config).onError)==null||g.call(f,h,this),(v=(p=Te(this,Zo).config).onSettled)==null||v.call(p,this.state.data,h,this)),this.scheduleGc()};return zt(this,Ti,q8({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var f,g,p,v;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(m){l(m);return}(g=(f=Te(this,Zo).config).onSuccess)==null||g.call(f,h,this),(v=(p=Te(this,Zo).config).onSettled)==null||v.call(p,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{Ei(this,Oa,rl).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{Ei(this,Oa,rl).call(this,{type:"pause"})},onContinue:()=>{Ei(this,Oa,rl).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),Te(this,Ti).start()}},Wh=new WeakMap,vu=new WeakMap,Zo=new WeakMap,wu=new WeakMap,Ti=new WeakMap,Oy=new WeakMap,bu=new WeakMap,Oa=new WeakSet,rl=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Wte(n.data,this.options),fetchMeta:t.meta??null};case"success":return zt(this,vu,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return aE(i)&&i.revert&&Te(this,vu)?{...Te(this,vu),fetchStatus:"idle"}
vendor: 4,539 bytes, line 181
181:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),zi.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),Te(this,Zo).notify({query:this,type:"updated",action:t})})},r6);function Wte(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:G8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Gte(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var cs,n6,Yte=(n6=class extends Ix{constructor(t={}){super();hr(this,cs);this.config=t,zt(this,cs,new Map)}build(t,r,n){const i=r.queryKey,o=r.queryHash??tF(i,r);let a=this.get(o);return a||(a=new zte({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){Te(this,cs).has(t.queryHash)||(Te(this,cs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=Te(this,cs).get(t.queryHash);r&&(t.destroy(),r===t&&Te(this,cs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){zi.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Te(this,cs).get(t)}getAll(){return[...Te(this,cs).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>wO(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>wO(t,n)):r}notify(t){zi.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){zi.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){zi.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},cs=new WeakMap,n6),us,$i,xu,ds,dA,i6,qte=(i6=class extends X8{constructor(t){super();hr(this,ds);hr(this,us);hr(this,$i);hr(this,xu);this.mutationId=t.mutationId,zt(this,$i,t.mutationCache),zt(this,us,[]),this.state=t.state||Xte(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Te(this,us).includes(t)||(Te(this,us).push(t),this.clearGcTimeout(),Te(this,$i).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){zt(this,us,Te(this,us).filter(r=>r!==t)),this.scheduleGc(),Te(this,$i).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Te(this,us).length||(this.state.status==="pending"?this.scheduleGc():Te(this,$i).remove(this))}continue(){var t;return((t=Te(this,xu))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,s,l,A,u,d,h,f,g,p,v,m,w,b,E,B,_,F,O;const r=()=>{Ei(this,ds,dA).call(this,{type:"continue"})};zt(this,xu,q8({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,j)=>{Ei(this,ds,dA).call(this,{type:"failed",failureCount:k,error:j})},onPause:()=>{Ei(this,ds,dA).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Te(this,$i).canRun(this)}));const n=this.state.status==="pending",i=!Te(this,xu).canStart();try{if(n)r();else{Ei(this,ds,dA).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(o=Te(this,$i).config).onMutate)==null?void 0:a.call(o,t,this));const j=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));j!==this.state.context&&Ei(this,ds,dA).call(this,{type:"pending",context:j,variables:t,isPaused:i})}const k=await Te(this,xu).start();return await((u=(A=Te(this,$i).config).onSuccess)==null?void 0:u.call(A,k,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,k,t,this.state.context)),await((g=(f=Te(this,$i).config).onSettled)==null?void 0:g.call(f,k,null,this.state.variables,this.state.context,this)),await((v=(p=this.options).onSettled)==null?void 0:v.call(p,k,null,t,this.state.context)),Ei(this,ds,dA).call(this,{type:"success",data:k}),k}catch(k){try{throw await((w=(m=Te(this,$i).config).onError)==null?void 0:w.call(m,k,t,this.state.context,this)),await((E=(b=this.options).onError)==null?void 0:E.
181call(b,k,t,this.state.context)),await((_=(B=Te(this,$i).config).onSettled)==null?void 0:_.call(B,void 0,k,this.state.variables,this.state.context,this)),await((O=(F=this.options).onSettled)==null?void 0:O.call(F,void 0,k,t,this.state.context)),k}finally{Ei(this,ds,dA).call(this,{type:"error",error:k})}}finally{Te(this,$i).runNext(this)}}},us=new WeakMap,$i=new WeakMap,xu=new WeakMap,ds=new WeakSet,dA=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),zi.batch(()=>{Te(this,us).forEach(n=>{n.onMutationUpdate(t)}),Te(this,$i).notify({mutation:this,type:"updated",action:t})})},i6);function Xte(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var dl,ja,jy,o6,Jte=(o6=class extends Ix{constructor(t={}){super();hr(this,dl);hr(this,ja);hr(this,jy);this.config=t,zt(this,dl,new Set),zt(this,ja,new Map),zt(this,jy,0)}build(t,r,n){const i=new qte({mutationCache:this,mutationId:++Hv(this,jy)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){Te(this,dl).add(t);const r=d0(t);if(typeof r=="string"){const n=Te(this,ja).get(r);n?n.push(t):Te(this,ja).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Te(this,dl).delete(t)){const r=d0(t);if(typeof r=="string"){const n=Te(this,ja).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&Te(this,ja).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=d0(t);if(typeof r=="string"){const n=Te(this,ja).get(r),i=n==null?void 0:n.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=d0(t);if(typeof r=="string"){const i=(n=Te(this,ja).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){zi.batch(()=>{Te(this,dl).forEach(t=>{this.notify({type:"removed",mutation:t})}),Te(this,dl).clear(),Te(this,ja).clear()})}getAll(){return Array.from(Te(this,dl))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>bO(r,n))}findAll(t={}){return this.getAll().filter(r=>bO(t,r))}notify(t){zi.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 6,941 bytes, lines 181-190
181r.state.isPaused);return zi.batch(()=>Promise.all(t.map(r=>r.continue().catch(Na))))}},dl=new WeakMap,ja=new WeakMap,jy=new WeakMap,o6);function d0(e){var t;return(t=e.options.scope)==null?void 0:t.id}function EO(e){return{onFetch:(t,r)=>{var u,d,h,f,g;const n=t.options,i=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,o=((f=t.state.data)==null?void 0:f.pages)||[],a=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const A=async()=>{let p=!1;const v=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},m=z8(t.options,t.fetchOptions),w=async(b,E,B)=>{if(p)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const F=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:E,direction:B?"backward":"forward",meta:t.options.meta};return v(I),I})(),O=await m(F),{maxPages:k}=t.options,j=B?Dte:Rte;return{pages:j(b.pages,O,k),pageParams:j(b.pageParams,E,k)}};if(i&&o.length){const b=i==="backward",E=b?Zte:_O,B={pages:o,pageParams:a},_=E(n,B);s=await w(B,_,b)}else{const b=e??o.length;do{const E=l===0?a[0]??n.initialPageParam:_O(n,s);if(l>0&&E==null)break;s=await w(s,E),l++}while(l<b)}return s};t.options.persister?t.fetchFn=()=>{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,A,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=A}}}function _O(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Zte(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var yn,IA,kA,Gh,Yh,FA,qh,Xh,a6,ere=(a6=class{constructor(e={}){hr(this,yn);hr(this,IA);hr(this,kA);hr(this,Gh);hr(this,Yh);hr(this,FA);hr(this,qh);hr(this,Xh);zt(this,yn,e.queryCache||new Yte),zt(this,IA,e.mutationCache||new Jte),zt(this,kA,e.defaultOptions||{}),zt(this,Gh,new Map),zt(this,Yh,new Map),zt(this,FA,0)}mount(){Hv(this,FA)._++,Te(this,FA)===1&&(zt(this,qh,W8.subscribe(async e=>{e&&(await this.resumePausedMutations(),Te(this,yn).onFocus())})),zt(this,Xh,L1.subscribe(async e=>{e&&(await this.resumePausedMutations(),Te(this,yn).onOnline())})))}unmount(){var e,t;Hv(this,FA)._--,Te(this,FA)===0&&((e=Te(this,qh))==null||e.call(this),zt(this,qh,void 0),(t=Te(this,Xh))==null||t.call(this),zt(this,Xh,void 0))}isFetching(e){return Te(this,yn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Te(this,IA).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Te(this,yn).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=Te(this,yn).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(aC(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return Te(this,yn).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=Te(this,yn).get(n.queryHash),o=i==null?void 0:i.state.data,a=Tte(t,o);if(a!==void 0)return Te(this,yn).build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return zi.batch(()=>Te(this,yn).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Te(this,yn).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=Te(this,yn);zi.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=Te(this,yn);return zi.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=zi.batch(()=>Te(this,yn).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Na).catch(Na)}invalidateQueries(e,t={}){return zi.batch(()=>(Te(this,yn).findAll(e).forEach(r=>{r.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 r={...t,cancelRefetch:t.cancelRefetch??!0},n=zi.batch(()=>Te(this,yn).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,r);return r.throwOnError||(o=o.catch(Na)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Na)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=Te(this,yn).build(this,t);return r.isStaleByTime(aC(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Na).catch(Na)}fetchInfiniteQuery(e){return e.behavior=EO(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Na).catch(Na)}ensureInfiniteQueryData(e){return e.behavior=EO(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return L1.isOnline()?Te(this,IA).resumePausedMutations():Promise.resolve()}getQueryCache(){return Te(this,yn)}getMutationCache(){return Te(this,IA)}getDefaultOptions(){return Te(this,kA)}setDefaultOptions(e){zt(this,kA,e)}setQueryDefaults(e,t){Te(this,Gh).set(Im(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Te(this,Gh).values()],r={};return t.forEach(n=>{km(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){Te(this,Yh).set(Im(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Te(this,Yh).values()],r={};return t.forEach(n=>{km(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Te(this,kA).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=tF(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===rF&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Te(this,kA).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Te(this,yn).clear(),Te(this,IA).clear()}},yn=new WeakMap,IA=new WeakMap,kA=new WeakMap,Gh=new WeakMap,Yh=new WeakMap,FA=new WeakMap,qh=new WeakMap,Xh=new WeakMap,a6),tre=S.createContext(void 0),rre=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(tre.Provider,{value:e,children:t}));/**
182 * @remix-run/router v1.23.0
183 *
184 * Copyright (c) Remix Software Inc.
185 *
186 * This source code is licensed under the MIT license found in the
187 * LICENSE.md file in the root directory of this source tree.
188 *
189 * @license MIT
190 */function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 4,139 bytes, line 190
190for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fm.apply(this,arguments)}var OA;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(OA||(OA={}));const SO="popstate";function nre(e){e===void 0&&(e={});function t(n,i){let{pathname:o,search:a,hash:s}=n.location;return lC("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:U1(i)}return ore(t,r,null,e)}function Qn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function J8(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ire(){return Math.random().toString(36).substr(2,8)}function CO(e,t){return{usr:e.state,key:e.key,idx:t}}function lC(e,t,r,n){return r===void 0&&(r=null),Fm({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Vf(t):t,{state:r,key:t&&t.key||n||ire()})}function U1(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Vf(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function ore(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=OA.Pop,l=null,A=u();A==null&&(A=0,a.replaceState(Fm({},a.state,{idx:A}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=OA.Pop;let v=u(),m=v==null?null:v-A;A=v,l&&l({action:s,location:p.location,delta:m})}function h(v,m){s=OA.Push;let w=lC(p.location,v,m);A=u()+1;let b=CO(w,A),E=p.createHref(w);try{a.pushState(b,"",E)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;i.location.assign(E)}o&&l&&l({action:s,location:p.location,delta:1})}function f(v,m){s=OA.Replace;let w=lC(p.location,v,m);A=u();let b=CO(w,A),E=p.createHref(w);a.replaceState(b,"",E),o&&l&&l({action:s,location:p.location,delta:0})}function g(v){let m=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof v=="string"?v:U1(v);return w=w.replace(/ $/,"%20"),Qn(m,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,m)}let p={get action(){return s},get location(){return e(i,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(SO,d),l=v,()=>{i.removeEventListener(SO,d),l=null}},createHref(v){return t(i,v)},createURL:g,encodeLocation(v){let m=g(v);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:f,go(v){return a.go(v)}};return p}var IO;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(IO||(IO={}));function are(e,t,r){return r===void 0&&(r="/"),sre(e,t,r,!1)}function sre(e,t,r,n){let i=typeof t=="string"?Vf(t):t,o=nF(i.pathname||"/",r);if(o==null)return null;let a=Z8(e);lre(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let A=vre(o);s=mre(a[l],A,n)}return s}function Z8(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Qn(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let A=WA([n,l.relativePath]),u=r.concat(l);o.children&&o.children.length>0&&(Qn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+A+'".')),Z8(o.children,t,u,A)),!(o.path==null&&!o.index)&&t.push({path:A,score:pre(A,o.index),routesMeta:u})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of e$(o.path))i(o,a,l)}),t}function e$(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=e$(n.join("/")),s=[];return s.push(...a.map(l=>
vendor: 14,918 bytes, lines 190-208
190l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function lre(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:gre(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Are=/^:[\w-]+$/,cre=3,ure=2,dre=1,hre=10,fre=-2,kO=e=>e==="*";function pre(e,t){let r=e.split("/"),n=r.length;return r.some(kO)&&(n+=fre),t&&(n+=ure),r.filter(i=>!kO(i)).reduce((i,o)=>i+(Are.test(o)?cre:o===""?dre:hre),n)}function gre(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function mre(e,t,r){let{routesMeta:n}=e,i={},o="/",a=[];for(let s=0;s<n.length;++s){let l=n[s],A=s===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=FO({path:l.relativePath,caseSensitive:l.caseSensitive,end:A},u),h=l.route;if(!d&&A&&r&&!n[n.length-1].route.index&&(d=FO({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(i,d.params),a.push({params:i,pathname:WA([o,d.pathname]),pathnameBase:Bre(WA([o,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(o=WA([o,d.pathnameBase]))}return a}function FO(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=yre(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((A,u,d)=>{let{paramName:h,isOptional:f}=u;if(h==="*"){let p=s[d]||"";a=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}const g=s[d];return f&&!g?A[h]=void 0:A[h]=(g||"").replace(/%2F/g,"/"),A},{}),pathname:o,pathnameBase:a,pattern:e}}function yre(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),J8(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function vre(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return J8(!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 nF(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function wre(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Vf(e):e;return{pathname:r?r.startsWith("/")?r:bre(r,t):t,search:Ere(n),hash:_re(i)}}function bre(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function sE(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function xre(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function t$(e,t){let r=xre(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function r$(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Vf(e):(i=Fm({},e),Qn(!i.pathname||!i.pathname.includes("?"),sE("?","pathname","search",i)),Qn(!i.pathname||!i.pathname.includes("#"),sE("#","pathname","hash",i)),Qn(!i.search||!i.search.includes("#"),sE("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let d=t.length-1;if(!n&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}s=d>=0?t[d]:"/"}let l=wre(i,s),A=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(A||u)&&(l.pathname+="/"),l}const WA=e=>e.join("/").replace(/\/\/+/g,"/"),Bre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ere=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_re=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Sre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const n$=["post","put","patch","delete"];new Set(n$);const Cre=["get",...n$];new Set(Cre);/**
191 * React Router v6.30.1
192 *
193 * Copyright (c) Remix Software Inc.
194 *
195 * This source code is licensed under the MIT license found in the
196 * LICENSE.md file in the root directory of this source tree.
197 *
198 * @license MIT
199 */function Nm(){return Nm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nm.apply(this,arguments)}const iF=S.createContext(null),Ire=S.createContext(null),Ku=S.createContext(null),Fx=S.createContext(null),fc=S.createContext({outlet:null,matches:[],isDataRoute:!1}),i$=S.createContext(null);function kre(e,t){let{relative:r}=t===void 0?{}:t;Vy()||Qn(!1);let{basename:n,navigator:i}=S.useContext(Ku),{hash:o,pathname:a,search:s}=a$(e,{relative:r}),l=a;return n!=="/"&&(l=a==="/"?n:WA([n,a])),i.createHref({pathname:l,search:s,hash:o})}function Vy(){return S.useContext(Fx)!=null}function pc(){return Vy()||Qn(!1),S.useContext(Fx).location}function o$(e){S.useContext(Ku).static||S.useLayoutEffect(e)}function gc(){let{isDataRoute:e}=S.useContext(fc);return e?$re():Fre()}function Fre(){Vy()||Qn(!1);let e=S.useContext(iF),{basename:t,future:r,navigator:n}=S.useContext(Ku),{matches:i}=S.useContext(fc),{pathname:o}=pc(),a=JSON.stringify(t$(i,r.v7_relativeSplatPath)),s=S.useRef(!1);return o$(()=>{s.current=!0}),S.useCallback(function(A,u){if(u===void 0&&(u={}),!s.current)return;if(typeof A=="number"){n.go(A);return}let d=r$(A,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:WA([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,a,o,e])}function Nx(){let{matches:e}=S.useContext(fc),t=e[e.length-1];return t?t.params:{}}function a$(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=S.useContext(Ku),{matches:i}=S.useContext(fc),{pathname:o}=pc(),a=JSON.stringify(t$(i,n.v7_relativeSplatPath));return S.useMemo(()=>r$(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function Nre(e,t){return Tre(e,t)}function Tre(e,t,r,n){Vy()||Qn(!1);let{navigator:i}=S.useContext(Ku),{matches:o}=S.useContext(fc),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let A=pc(),u;if(t){var d;let v=typeof t=="string"?Vf(t):t;l==="/"||(d=v.pathname)!=null&&d.startsWith(l)||Qn(!1),u=v}else u=A;let h=u.pathname||"/",f=h;if(l!=="/"){let v=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let g=are(e,{pathname:f}),p=Ure(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:WA([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:WA([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,r,n);return t&&p?S.createElement(Fx.Provider,{value:{location:Nm({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:OA.Pop}},p):p}function Ore(){let e=Mre(),t=Sre(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:i},r):null,null)}const jre=S.createElement(Ore,null);class Pre extends S.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?S.createElement(fc.Provider,{value:this.props.routeContext},S.createElement(i$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Lre(e){let{routeContext:t,match:r,children:n}=e,i=S.useContext(iF);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(fc.Provider,{value:t},n)}function Ure(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||Qn(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,A=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<a.length;u++){let d=a[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(A=u),d.route.id){let{loaderData:h,errors:f}=r,g=d.route.loader&&h[d.route.id]===void 0&&(!f||f[d.route.id]===void 0);if(d.route.lazy||g){l=!0,A>=0?a=a.slice(0,A+1):a=[a[0]];break}}}return a.reduceRight((u,d,h)=>{let f,g=!1,p=null,v=null;r&&(f=s&&d.route.id?s[d.route.id]:void 0,p=d.route.errorElement||jre,l&&(A<0&&h===0?(g=!0,v=null):A===h&&(g=!0,v=d.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,h+1)),w=()=>{let b;return f?b=p:g?b=v:d.route.Component?b=S.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=u,S.createElement(Lre,{match:d,routeContext:{outlet:u,matches:m,isDataRoute:r!=null},children:b})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?S.createElement(Pre,{location:r.location,revalidation:r.revalidation,component:p,error:f,children:w(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):w()},null)}var s$=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(s$||{}),R1=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}(R1||{});function Rre(e){let t=S.useContext(iF);return t||Qn(!1),t}function Dre(e){let t=S.useContext(Ire);return t||Qn(!1),t}function Qre(e){let t=S.useContext(fc);return t||Qn(!1),t}function l$(e){let t=Qre(),r=t.matches[t.matches.length-1];return r.route.id||Qn(!1),r.route.id}function Mre(){var e;let t=S.useContext(i$),r=Dre(R1.UseRouteError),n=l$(R1.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function $re(){let{router:e}=Rre(s$.UseNavigateStable),t=l$(R1.UseNavigateStable),r=S.useRef(!1);return o$(()=>{r.current=!0}),S.useCallback(function(i,o){o===void 0&&(o={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Nm({fromRouteId:t},o)))},[e,t])}function Hre(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ni(e){Qn(!1)}function Kre(e){let{basename:t="/",children:r=null,location:n,navigationType:i=OA.Pop,navigator:o,static:a=!1,future:s}=e;Vy()&&Qn(!1);let l=t.replace(/^\/*/,"/"),A=S.useMemo(()=>({basename:l,navigator:o,static:a,future:Nm({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof n=="string"&&(n=Vf(n));let{pathname:u="/",search:d="",hash:h="",state:f=null,key:g="default"}=n,p=S.useMemo(()=>{let v=nF(u,l);return v==null?null:{location:{pathname:v,search:d,hash:h,state:f,key:g},navigationType:i}},[l,u,d,h,f,g,i]);return p==null?null:S.createElement(Ku.Provider,{value:A},S.createElement(Fx.Provider,{children:r,value:p}))}function Vre(e){let{children:t,location:r}=e;return Nre(AC(t),r)}new Promise(()=>{});function AC(e,t){t===void 0&&(t=[]);let r=[];return S.Children.forEach(e,(n,i)=>{if(!S.isValidElement(n))return;let o=[...t,i];if(n.type===S.Fragment){r.push.apply(r,AC(n.props.children,o));return}n.type!==Ni&&Qn(!1),!n.props.index||!n.props.children||Qn(!1);let a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=AC(n.props.children,o)),r.push(a)}),r}/**
200 * React Router DOM v6.30.1
201 *
202 * Copyright (c) Remix Software Inc.
203 *
204 * This source code is licensed under the MIT license found in the
205 * LICENSE.md file in the root directory of this source tree.
206 *
207 * @license MIT
208 */function cC(){return cC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cC.apply(this,arguments)}function zre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Wre(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Gre(e,t){return e.button===0&&(!t||t==="_self")&&!Wre(e)}const Yre=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],qre="6";try{window.__reactRouterVersion=qre}catch{}const Xre="startTransition",NO=HI[Xre];function Jre(e){let{basename:t,children:r,future:n,window:i}=e,o=S.useRef();o.current==null&&(o.current=nre({window:i,v5Compat:!0}));let a=o.current,[s,l]=S.useState({action:a.action,location:a.location}),{v7_startTransition:A}=n||{},u=S.useCallback(d=>{A&&NO?NO(()=>l(d)):l(d)},[l,A]);return S.useLayoutEffect(()=>a.listen(u),[a,u]),S.useEffect(()=>Hre(n),[n]),S.createElement(Kre,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a,future:n})}const Zre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ene=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lu=S.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:A,preventScrollReset:u,viewTransition:d}
208=t,h=zre(t,Yre),{basename:f}=S.useContext(Ku),g,p=!1;if(typeof A=="string"&&ene.test(A)&&(g=A,Zre))try{let b=new URL(window.location.href),E=A.startsWith("//")?new URL(b.protocol+A):new URL(A),B=nF(E.pathname,f);E.origin===b.origin&&B!=null?A=B+E.search+E.hash:p=!0}catch{}let v=kre(A,{relative:i}),m=tne(A,{replace:a,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:d});function w(b){n&&n(b),b.defaultPrevented||m(b)}return S.createElement("a",cC({},h,{href:g||v,onClick:p||o?n:w,ref:r,target:l}))});var TO;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(TO||(TO={}));var OO;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(OO||(OO={}));function tne(e,t){let{target:r,replace:n,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=gc(),A=pc(),u=a$(e,{relative:a});return S.useCallback(d=>{if(Gre(d,r)){d.preventDefault();let h=n!==void 0?n:U1(A)===U1(u);l(e,{replace:h,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[A,l,u,n,i,r,e,o,a,s])}const Bn="/assets/flipwork-logo-CYmYHMtA.png",rne="1ddz-kxWUSkQbutS_eyu-DOGg6r2b2ABIHA8FgBg0FBI",lE={leader:"Leader_Staging",individual:"Individual_Staging",solo:"SOLO_Individual_Staging"};async function AE(e){var l;const t=`https://docs.google.com/spreadsheets/d/${rne}/gviz/tq?tqx=out:json&sheet=${encodeURIComponent(e)}`,i=(await(await fetch(t)).text()).match(/google\.visualization\.Query\.setResponse\(([\s\S]*)\);?/);if(!i||!i[1])throw new Error(`Failed to parse response for tab: ${e}`);const o=JSON.parse(i[1]),a=o.table.cols.map(A=>A.label),s=[];for(const A of o.table.rows){const u={};for(let d=0;d<a.length;d++){const h=(l=A.c)==null?void 0:l[d];u[a[d]]=(h==null?void 0:h.v)!=null?String(h.v):""}s.push(u)}return s}function cE(e){return e.filter(t=>t.Email_Entry&&t.Email_Entry!=="xxxxx"&&t.Email_Entry.includes("@"))}function uC(e){return e.toString().toLowerCase().trim()}function uE(e,t){const r=uC(t);return e.some(n=>uC(n.Email_Entry)===r)}async function A$(e){const t=uC(e);if(!t||!t.includes("@"))return{route:null,error:"Please enter a valid work email address."};try{const r=cE(await AE(lE.leader));if(uE(r,t))return{route:"leader",sourceTab:"Leader_Staging"};const n=cE(await AE(lE.individual));if(uE(n,t))return{route:"individual",sourceTab:"Individual_Staging"};const i=cE(await AE(lE.solo));return uE(i,t)?{route:"individual",sourceTab:"SOLO_Individual_Staging"}:{route:null,error:"We couldn't find results for that email. Please check your entry or contact [email protected]"}}catch(r){return console.error("Sheet lookup error:",r),{route:null,error:"Something went wrong. Please try again."}}}var gs=function(){return gs=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},gs.apply(this,arguments)};function zf(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function nne(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{A(n.next(u))}catch(d){a(d)}}function l(u){try{A(n.throw(u))}catch(d){a(d)}}function A(u){u.done?o(u.value):i(u.value).then(s,l)}A((n=n.apply(e,t||[])).next())})}function ine(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}const one=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class oF extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class ane extends oF{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class jO extends oF{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class PO extends oF{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var dC;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(dC||(dC={}));class sne{constructor(t,{headers:r={},customFetch:n,region:i=dC.Any}={}){this.url=t,this.headers=r,this.region=i,this.fetch=one(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return nne(this,arguments,void 0,function*(r,n={}){var i;let o,a;try{const{headers:s,method:l,body:A,signal:u,timeout:d}=n;let h={},{region:f}=n;f||(f=this.region);const g=new URL(`${this.url}/${r}`);f&&f!=="any"&&(h["x-region"]=f,g.searchParams.set("forceFunctionRegion",f));let p;A&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)?typeof Blob<"u"&&A instanceof Blob||A instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",p=A):typeof A=="string"?(h["Content-Type"]="text/plain",p=A):typeof FormData<"u"&&A instanceof FormData?p=A:(h["Content-Type"]="application/json",p=JSON.stringify(A)):A&&typeof A!="string"&&!(typeof Blob<"u"&&A instanceof Blob)&&!(A instanceof ArrayBuffer)&&!(typeof FormData<"u"&&A instanceof FormData)?p=JSON.stringify(A):p=A;let v=u;d&&(a=new AbortController,o=setTimeout(()=>a.abort(),d),u?(v=a.signal,u.addEventListener("abort",()=>a.abort())):v=a.signal);const m=yield this.fetch(g.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),s),body:p,signal:v}).catch(B=>{throw new ane(B)}),w=m.headers.get("x-relay-error");
208if(w&&w==="true")throw new jO(m);if(!m.ok)throw new PO(m);let b=((i=m.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),E;return b==="application/json"?E=yield m.json():b==="application/octet-stream"||b==="application/pdf"?E=yield m.blob():b==="text/event-stream"?E=m:b==="multipart/form-data"?E=yield m.formData():E=yield m.text(),{data:E,error:null,response:m}}catch(s){return{data:null,error:s,response:s instanceof PO||s instanceof jO?s.context:void 0}}finally{o&&clearTimeout(o)}})}}var lne=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},Ane=class{constructor(e){var t,r,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(n=e.urlLengthLimit)!==null&&n!==void 0?n:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var r=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let i=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async o=>{let a=null,s=null,l=null,A=o.status,u=o.statusText;if(o.ok){var d,h;if(r.method!=="HEAD"){var f;const v=await o.text();v===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((f=r.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?s=v:s=JSON.parse(v))}const g=(d=r.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),p=(h=o.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");g&&p&&p.length>1&&(l=parseInt(p[1])),r.isMaybeSingle&&Array.isArray(s)&&(s.length>1?(a={code:"PGRST116",details:`Results contain ${s.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},s=null,l=null,A=406,u="Not Acceptable"):s.length===1?s=s[0]:s=null)}else{const g=await o.text();try{a=JSON.parse(g),Array.isArray(a)&&o.status===404&&(s=[],a=null,A=200,u="OK")}catch{o.status===404&&g===""?(A=204,u="No Content"):a={message:g}}if(a&&r.shouldThrowOnError)throw new lne(a)}return{error:a,data:s,count:l,status:A,statusText:u}});return this.shouldThrowOnError||(i=i.catch(o=>{var a;let s="",l="",A="";const u=o==null?void 0:o.cause;if(u){var d,h,f,g;const m=(d=u==null?void 0:u.message)!==null&&d!==void 0?d:"",w=(h=u==null?void 0:u.code)!==null&&h!==void 0?h:"";s=`${(f=o==null?void 0:o.name)!==null&&f!==void 0?f:"FetchError"}: ${o==null?void 0:o.message}`,s+=`
209
210Caused by: ${(g=u==null?void 0:u.name)!==null&&g!==void 0?g:"Error"}: ${m}`,w&&(s+=` (${w})`),u!=null&&u.stack&&(s+=`
211${u.stack}`)}else{var p;s=(p=o==null?void 0:o.stack)!==null&&p!==void 0?p:""}const v=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(A="",l="Request was aborted (timeout or manual cancellation)",v>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${v} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((u==null?void 0:u.name)==="HeadersOverflowError"||(u==null?void 0:u.code)==="UND_ERR_HEADERS_OVERFLOW")&&(A="",l="HTTP headers exceeded server limits (typically 16KB)",v>this.urlLengthLimit&&(l+=`. Your request URL is ${v} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(a=o==null?void 0:o.name)!==null&&a!==void 0?a:"FetchError"}: ${o==null?void 0:o.message}`,details:s,hint:l,code:A},data:null,count:null,status:0,statusText:""}}
211)),i.then(e,t)}returns(){return this}overrideTypes(){return this}},cne=class extends Ane{select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:i=n}={}){const o=i?`${i}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const i=typeof n>"u"?"offset":`${n}.offset`,o=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(o,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:i=!1,format:o="text"}={}){var a;const s=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${l}"; options=${s};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const LO=new RegExp("[,()]");var Gd=class extends cne{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&LO.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&LO.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let i="";n==="plain"?i="pl":n==="phrase"?i="ph":n==="websearch"&&(i="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${i}fts${o}.${t}`),this}match(e){return Object.entries(e).filter(([t,r])=>
211r!==void 0).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},une=class{constructor(e,{headers:t={},schema:r,fetch:n,urlLengthLimit:i=8e3}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n,this.urlLengthLimit=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=t??{},i=r?"HEAD":"GET";let o=!1;const a=(e??"*").split("").map(A=>/\s/.test(A)&&!o?"":(A==='"'&&(o=!o),A)).join(""),{url:s,headers:l}=this.cloneRequestState();return s.searchParams.set("select",a),n&&l.append("Prefer",`count=${n}`),new Gd({method:i,url:s,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const i="POST",{url:o,headers:a}=this.cloneRequestState();if(t&&a.append("Prefer",`count=${t}`),r||a.append("Prefer","missing=default"),Array.isArray(e)){const s=e.reduce((l,A)=>l.concat(Object.keys(A)),[]);if(s.length>0){const l=[...new Set(s)].map(A=>`"${A}"`);o.searchParams.set("columns",l.join(","))}}return new Gd({method:i,url:o,headers:a,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:i=!0}={}){var o;const a="POST",{url:s,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&s.searchParams.set("on_conflict",t),n&&l.append("Prefer",`count=${n}`),i||l.append("Prefer","missing=default"),Array.isArray(e)){const A=e.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(A.length>0){const u=[...new Set(A)].map(d=>`"${d}"`);s.searchParams.set("columns",u.join(","))}}return new Gd({method:a,url:s,headers:l,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var r;const n="PATCH",{url:i,headers:o}=this.cloneRequestState();return t&&o.append("Prefer",`count=${t}`),new Gd({method:n,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const r="DELETE",{url:n,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new Gd({method:r,url:n,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function Tm(e){"@babel/helpers - typeof";return Tm=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},Tm(e)}function dne(e,t){if(Tm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hne(e){var t=dne(e,"string");return Tm(t)=="symbol"?t:t+""}function fne(e,t,r){return(t=hne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(r),!0).forEach(function(n){fne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var pne=class c${constructor(t,{headers:r={},schema:n,fetch:i,timeout:o,urlLengthLimit:a=8e3}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.urlLengthLimit=a;const s=i??globalThis.fetch;o!==void 0&&o>0?this.fetch=(l,A)=>{const u=new AbortController,d=setTimeout(()=>u.abort(),o),h=A==null?void 0:A.signal;if(h){if(h.aborted)return clearTimeout(d),s(l,A);const f=()=>{clearTimeout(d),u.abort()};return h.addEventListener("abort",f,{once:!0}),s(l,h0(h0({},A),{},{signal:u.signal})).finally(()=>{clearTimeout(d),h.removeEventListener("abort",f)})}return s(l,h0(h0({},A),{},{signal:u.signal})).finally(()=>clearTimeout(d))}:this.fetch=s}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new une(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new c$(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,r={},{head:n=!1,get:i=!1,count:o}={}){var a;let s;const l=new URL(`${this.url}/rpc/${t}`);let A;const u=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(u)),d=n&&Object.values(r).some(u);d?(s="POST",A=r):n||i?(s=n?"HEAD":"GET",Object.entries(r).filter(([f,g])=>g!==void 0).map(([f,g])=>[f,Array.isArray(g)?`{${g.join(",")}}`:`${g}
211`]).forEach(([f,g])=>{l.searchParams.append(f,g)})):(s="POST",A=r);const h=new Headers(this.headers);return d?h.set("Prefer",o?`count=${o},return=minimal`:"return=minimal"):o&&h.set("Prefer",`count=${o}`),new Gd({method:s,url:l,headers:h,schema:this.schemaName,body:A,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit})}};class gne{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const r=globalThis.process;if(r){const n=r.versions;if(n&&n.node){const i=n.node,o=parseInt(i.replace(/^v/,"").split(".")[0]);return o>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${o} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${o} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
212import ws from "ws"
213new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=`
214
215Suggested solution: ${t.workaround}`),new Error(r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const mne="2.101.1",yne=`realtime-js/${mne}`,vne="1.0.0",u$="2.0.0",wne=u$,bne=1e4,xne=100,xA={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},d$={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},hC={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class Bne{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},a=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,a)}_encodeUserBroadcastPush(t,r,n){var i,o;const a=t.topic,s=(i=t.ref)!==null&&i!==void 0?i:"",l=(o=t.join_ref)!==null&&o!==void 0?o:"",A=t.payload.event,u=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(u).length===0?"":JSON.stringify(u);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(s.length>255)throw new Error(`ref length ${s.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`topic length ${a.length} exceeds maximum of 255`);if(A.length>255)throw new Error(`userEvent length ${A.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+s.length+a.length+A.length+d.length,f=new ArrayBuffer(this.HEADER_LENGTH+h);let g=new DataView(f),p=0;g.setUint8(p++,this.KINDS.userBroadcastPush),g.setUint8(p++,l.length),g.setUint8(p++,s.length),g.setUint8(p++,a.length),g.setUint8(p++,A.length),g.setUint8(p++,d.length),g.setUint8(p++,r),Array.from(l,m=>g.setUint8(p++,m.charCodeAt(0))),Array.from(s,m=>g.setUint8(p++,m.charCodeAt(0))),Array.from(a,m=>g.setUint8(p++,m.charCodeAt(0))),Array.from(A,m=>g.setUint8(p++,m.charCodeAt(0))),Array.from(d,m=>g.setUint8(p++,m.charCodeAt(0)));var v=new Uint8Array(f.byteLength+n.byteLength);return v.set(new Uint8Array(f),0),v.set(new Uint8Array(n),f.byteLength),v.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[i,o,a,s,l]=n;return r({join_ref:i,ref:o,topic:a,event:s,payload:l})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),i=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,i)}}_decodeUserBroadcast(t,r,n){const i=r.getUint8(1),o=r.getUint8(2),a=r.getUint8(3),s=r.getUint8(4);let l=this.HEADER_LENGTH+4;const A=n.decode(t.slice(l,l+i));l=l+i;
215const u=n.decode(t.slice(l,l+o));l=l+o;const d=n.decode(t.slice(l,l+a));l=l+a;const h=t.slice(l,t.byteLength),f=s===this.JSON_ENCODING?JSON.parse(n.decode(h)):h,g={type:this.BROADCAST_EVENT,event:u,payload:f};return a>0&&(g.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:A,event:this.BROADCAST_EVENT,payload:g}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}var Mr;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Mr||(Mr={}));const RO=(e,t,r={})=>{var n;const i=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((o,a)=>(o[a]=Ene(a,e,t,i),o),{}):{}},Ene=(e,t,r,n)=>{const i=t.find(s=>s.name===e),o=i==null?void 0:i.type,a=r[e];return o&&!n.includes(o)?h$(o,a):fC(a)},h$=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return Ine(t,r)}switch(e){case Mr.bool:return _ne(t);case Mr.float4:case Mr.float8:case Mr.int2:case Mr.int4:case Mr.int8:case Mr.numeric:case Mr.oid:return Sne(t);case Mr.json:case Mr.jsonb:return Cne(t);case Mr.timestamp:return kne(t);case Mr.abstime:case Mr.date:case Mr.daterange:case Mr.int4range:case Mr.int8range:case Mr.money:case Mr.reltime:case Mr.text:case Mr.time:case Mr.timestamptz:case Mr.timetz:case Mr.tsrange:case Mr.tstzrange:return fC(t);default:return fC(t)}},fC=e=>e,_ne=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},Sne=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},Cne=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},Ine=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let o;const a=e.slice(1,r);try{o=JSON.parse("["+a+"]")}catch{o=a?a.split(","):[]}return o.map(s=>h$(t,s))}return e},kne=e=>typeof e=="string"?e.replace(" ","T"):e,f$=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Kg=e=>typeof e=="function"?e:function(){return e},Fne=typeof self<"u"?self:null,Yd=typeof window<"u"?window:null,As=Fne||Yd||globalThis,Nne="2.0.0",Tne=1e4,One=1e3,hs={connecting:0,open:1,closing:2,closed:3},io={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ol={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},pC={longpoll:"longpoll",websocket:"websocket"},jne={complete:4},gC="base64url.bearer.phx.",f0=class{constructor(e,t,r,n){this.channel=e,this.event=t,this.payload=r||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},p$=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},Pne=class{constructor(e,t,r){this.state=io.closed,this.topic=e,this.params=Kg(t||{}),this.socket=r,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new f0(this,ol.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new p$(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=io.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(n=>n.send()),this.pushBuffer=[]}),this.joinPush.receive("error",n=>{this.state=io.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=io.closed,this.socket.remove(this)}),this.onError(n=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.isJoining()&&this.joinPush.reset(),this.state=io.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new f0(this,ol.leave,Kg({}),this.timeout).send(),this.state=io.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ol.reply,(n,i)=>{this.trigger(this.replyEventName(i),n)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}
vendor: 5,265 bytes, line 215
215teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=io.closed,this.bindings=[]}onClose(e){this.on(ol.close,e)}onError(e){return this.on(ol.error,t=>e(t))}on(e,t){let r=this.bindingRef++;return this.bindings.push({event:e,ref:r,callback:t}),r}off(e,t){this.bindings=this.bindings.filter(r=>!(r.event===e&&(typeof t>"u"||t===r.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,r=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let n=new f0(this,e,function(){return t},r);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=io.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ol.close,"leave")},r=new f0(this,ol.leave,Kg({}),e);return r.receive("ok",()=>t()).receive("timeout",()=>t()),r.send(),this.canPush()||r.trigger("ok",{}),r}onMessage(e,t,r){return t}filterBindings(e,t,r){return!0}isMember(e,t,r,n){return this.topic!==e?!1:n&&n!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:r,joinRef:n}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=io.joining,this.joinPush.resend(e))}trigger(e,t,r,n){let i=this.onMessage(e,t,r,n);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(a=>a.event===e&&this.filterBindings(a,t,r));for(let a=0;a<o.length;a++)o[a].callback(i,r,n||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===io.closed}isErrored(){return this.state===io.errored}isJoined(){return this.state===io.joined}isJoining(){return this.state===io.joining}isLeaving(){return this.state===io.leaving}},D1=class{static request(e,t,r,n,i,o,a){if(As.XDomainRequest){let s=new As.XDomainRequest;return this.xdomainRequest(s,e,t,n,i,o,a)}else if(As.XMLHttpRequest){let s=new As.XMLHttpRequest;return this.xhrRequest(s,e,t,r,n,i,o,a)}else{if(As.fetch&&As.AbortController)return this.fetchRequest(e,t,r,n,i,o,a);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,r,n,i,o,a){let s={method:e,headers:r,body:n},l=null;return i&&(l=new AbortController,setTimeout(()=>l.abort(),i),s.signal=l.signal),As.fetch(t,s).then(A=>A.text()).then(A=>this.parseJSON(A)).then(A=>a&&a(A)).catch(A=>{A.name==="AbortError"&&o?o():a&&a(null)}),l}static xdomainRequest(e,t,r,n,i,o,a){return e.timeout=i,e.open(t,r),e.onload=()=>{let s=this.parseJSON(e.responseText);a&&a(s)},o&&(e.ontimeout=o),e.onprogress=()=>{},e.send(n),e}static xhrRequest(e,t,r,n,i,o,a,s){e.open(t,r,!0),e.timeout=o;for(let[l,A]of Object.entries(n))e.setRequestHeader(l,A);return e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{if(e.readyState===jne.complete&&s){let l=this.parseJSON(e.responseText);s(l)}},a&&(e.ontimeout=a),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let r=[];for(var n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let i=t?`${t}[${n}]`:n,o=e[n];typeof o=="object"?r.push(this.serialize(o,i)):r.push(encodeURIComponent(i)+"="+encodeURIComponent(o))}return r.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let r=e.match(/\?/)?"&":"?";return`${e}${r}${this.serialize(t)}`}},Lne=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)},_d=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(gC)&&(this.authToken=atob(t[1].slice(gC.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=hs.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+pC.websocket),"$1/"+pC.longpoll)}endpointURL(){return D1.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,r){this.close(e,t,r),this.readyState=hs.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===hs.open||this.readyState===hs.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:r,token:n,messages:i}=t;if(r===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=n}else r=0;switch(r){case 200:i.forEach(o=>{setTimeout(()=>this.onmessage({data:o}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=hs.open,this.onopen({}),this.poll();break;
215case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${r}`)}})}send(e){typeof e!="string"&&(e=Lne(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(`
216`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,r){for(let i of this.reqs)i.abort();this.readyState=hs.closed;let n=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:r});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",n)):this.onclose(n)}ajax(e,t,r,n,i){let o,a=()=>{this.reqs.delete(o),n()};o=D1.request(e,this.endpointURL(),t,r,this.timeout,a,s=>{this.reqs.delete(o),this.isActive()&&i(s)}),this.reqs.add(o)}},Une=class gg{constructor(t,r={}){let n=r.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,i=>{let{onJoin:o,onLeave:a,onSync:s}=this.caller;this.joinRef=this.channel.joinRef(),this.state=gg.syncState(this.state,i,o,a),this.pendingDiffs.forEach(l=>{this.state=gg.syncDiff(this.state,l,o,a)}),this.pendingDiffs=[],s()}),this.channel.on(n.diff,i=>{let{onJoin:o,onLeave:a,onSync:s}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=gg.syncDiff(this.state,i,o,a),s())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return gg.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,r,n,i){let o=this.clone(t),a={},s={};return this.map(o,(l,A)=>{r[l]||(s[l]=A)}),this.map(r,(l,A)=>{let u=o[l];if(u){let d=A.metas.map(p=>p.phx_ref),h=u.metas.map(p=>p.phx_ref),f=A.metas.filter(p=>h.indexOf(p.phx_ref)<0),g=u.metas.filter(p=>d.indexOf(p.phx_ref)<0);f.length>0&&(a[l]=A,a[l].metas=f),g.length>0&&(s[l]=this.clone(u),s[l].metas=g)}else a[l]=A}),this.syncDiff(o,{joins:a,leaves:s},n,i)}static syncDiff(t,r,n,i){let{joins:o,leaves:a}=this.clone(r);return n||(n=function(){}),i||(i=function(){}),this.map(o,(s,l)=>{let A=t[s];if(t[s]=this.clone(l),A){let u=t[s].metas.map(h=>h.phx_ref),d=A.metas.filter(h=>u.indexOf(h.phx_ref)<0);t[s].metas.unshift(...d)}n(s,A,l)}),this.map(a,(s,l)=>{let A=t[s];if(!A)return;let u=l.metas.map(d=>d.phx_ref);A.metas=A.metas.filter(d=>u.indexOf(d.phx_ref)<0),i(s,A,l),A.metas.length===0&&delete t[s]}),t}static list(t,r){return r||(r=function(n,i){return i}),this.map(t,(n,i)=>r(n,i))}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static clone(t){return JSON.parse(JSON.stringify(t))}},p0={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(r))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[r,n,i,o,a]=JSON.parse(e);return t({join_ref:r,ref:n,topic:i,event:o,payload:a})}},binaryEncode(e){let{join_ref:t,ref:r,event:n,topic:i,payload:o}=e,a=this.META_LENGTH+t.length+r.length+i.length+n.length,s=new ArrayBuffer(this.HEADER_LENGTH+a),l=new DataView(s),A=0;l.setUint8(A++,this.KINDS.push),l.setUint8(A++,t.length),l.setUint8(A++,r.length),l.setUint8(A++,i.length),l.setUint8(A++,n.length),Array.from(t,d=>l.setUint8(A++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(A++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(A++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(A++,d.charCodeAt(0)));var u=new Uint8Array(s.byteLength+o.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(o),s.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),r=t.getUint8(0),n=new TextDecoder;
vendor: 8,599 bytes, line 216
216switch(r){case this.KINDS.push:return this.decodePush(e,t,n);case this.KINDS.reply:return this.decodeReply(e,t,n);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,n)}},decodePush(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,s=r.decode(e.slice(a,a+n));a=a+n;let l=r.decode(e.slice(a,a+i));a=a+i;let A=r.decode(e.slice(a,a+o));a=a+o;let u=e.slice(a,e.byteLength);return{join_ref:s,ref:null,topic:l,event:A,payload:u}},decodeReply(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),a=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=r.decode(e.slice(s,s+n));s=s+n;let A=r.decode(e.slice(s,s+i));s=s+i;let u=r.decode(e.slice(s,s+o));s=s+o;let d=r.decode(e.slice(s,s+a));s=s+a;let h=e.slice(s,e.byteLength),f={status:d,response:h};return{join_ref:l,ref:A,topic:u,event:ol.reply,payload:f}},decodeBroadcast(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),o=this.HEADER_LENGTH+2,a=r.decode(e.slice(o,o+n));o=o+n;let s=r.decode(e.slice(o,o+i));o=o+i;let l=e.slice(o,e.byteLength);return{join_ref:null,ref:null,topic:a,event:s,payload:l}}},Rne=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||Tne,this.transport=t.transport||As.WebSocket||_d,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||As&&As.sessionStorage,this.establishedConnections=0,this.defaultEncoder=p0.encode.bind(p0),this.defaultDecoder=p0.decode.bind(p0),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==_d?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;Yd&&Yd.addEventListener&&(Yd.addEventListener("pagehide",n=>{this.conn&&(this.disconnect(),r=this.connectClock)}),Yd.addEventListener("pageshow",n=>{r===this.connectClock&&(r=null,this.connect())}),Yd.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=n=>t.rejoinAfterMs?t.rejoinAfterMs(n):[1e3,2e3,5e3][n-1]||1e4,this.reconnectAfterMs=n=>t.reconnectAfterMs?t.reconnectAfterMs(n):[10,50,100,150,200,250,500,1e3,2e3][n-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(n,i,o)=>{console.log(`${n}: ${i}`,o)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Kg(t.params||{}),this.endPoint=`${e}/${pC.websocket}`,this.vsn=t.vsn||Nne,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new p$(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return _d}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=D1.appendParams(D1.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,r){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,r)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Kg(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==_d?this.connectWithFallback(_d,this.longPollFallbackMs):this.transportConnect())}log(e,t,r){this.logger&&this.logger(e,t,r)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let n=this.onMessage(i=>{i.ref===t&&(this.off([n]),e(Date.now()-r))});return!0}transportName(e){switch(e){case _d:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${gC}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let r=!1,n=!0,i,o,a=this.transportName(e),s=l=>{this.log("transport",`falling back to ${a}...`,l),this.off([i,o]),n=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${a}`))return s("memorized");this.fallbackTimer=setTimeout(s,t),o=this.onError(l=>{this.log("transport","error",l),n&&!r&&(clearTimeout(this.fallbackTimer),s(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(r=!0,!n){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(s,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),One,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,r){if(!this.conn)return e&&e();const n=this.conn;this.waitForBufferDone(n,()=>{t?n.close(t,r||""):n.close(),this.waitForSocketClosed(n,()=>{this.conn===n&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,r=1){if(r===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,r+1)},150*r)}waitForSocketClosed(e,t,r=1){if(r===5||e.readyState===hs.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,r+1)},150*r)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,r=this.establishedConnections;this.triggerStateCallbacks("error",e,t,r),(t===this.transport||r>0)&&this.triggerChanError()}
216triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(ol.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case hs.connecting:return"connecting";case hs.open:return"open";case hs.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([r])=>e.indexOf(r)===-1)}channel(e,t={}){let r=new Pne(e,t,this);return this.channels.push(r),r}push(e){if(this.hasLogger()){let{topic:t,event:r,payload:n,ref:i,join_ref:o}=e;this.log("push",`${t} ${r} (${o}, ${i})`,n)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:r,event:n,payload:i,ref:o,join_ref:a}=t;if(o&&o===this.pendingHeartbeatRef){const s=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(i.status==="ok"?"ok":"error",s)}catch(l){this.log("error","error in heartbeat callback",l)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${i.status||""} ${r} ${n} ${o&&"("+o+")"||""}`.trim(),i);for(let s=0;s<this.channels.length;s++){const l=this.channels[s];l.isMember(r,n,i,a)&&l.trigger(n,i,o,a)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([r,n])=>{try{n(...t)}catch(i){this.log("error",`error in ${e} callback`,i)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}leaveOpenTopic(e){let t=this.channels.find(r=>r.topic===e&&(r.isJoined()||r.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Vg{constructor(t,r){const n=Qne(r);this.presence=new Une(t.getChannel(),n),this.presence.onJoin((i,o,a)=>{const s=Vg.onJoinPayload(i,o,a);t.getChannel().trigger("presence",s)}),this.presence.onLeave((i,o,a)=>{const s=Vg.onLeavePayload(i,o,a);t.getChannel().trigger("presence",s)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Vg.transformState(this.presence.state)}static transformState(t){return t=Dne(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const i=t[n];return r[n]=Qw(i),r},{})}static onJoinPayload(t,r,n){const i=DO(r),o=Qw(n);return{event:"join",key:t,currentPresences:i,newPresences:o}}static onLeavePayload(t,r,n){const i=DO(r),o=Qw(n);return{event:"leave",key:t,currentPresences:i,leftPresences:o}}}function Qw(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function Dne(e){return JSON.parse(JSON.stringify(e))}function Qne(e){return(e==null?void 0:e.events)&&{events:e.events}}function DO(e){return e!=null&&e.metas?Qw(e):[]}var QO;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(QO||(QO={}));class Mne{get state(){return this.presenceAdapter.state}constructor(t,r){this.channel=t,this.presenceAdapter=new Vg(this.channel.channelAdapter,r)}}class $ne{constructor(t,r,n){const i=Hne(n);this.channel=t.getSocket().channel(r,i),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,r){return this.channel.on(t,r)}off(t,r){this.channel.off(t,r)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,r,n){let i;try{i=this.channel.push(t,r,n)}catch{throw`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`}if(this.channel.pushBuffer.length>xne){const o=this.channel.pushBuffer.shift();o.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${o.event}`,o.payload())}return i}updateJoinPayload(t){const r=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},r),t)}canPush(){return this.socket.isConnected()&&this.state===xA.joined}isJoined(){return this.state===xA.joined}isJoining(){return this.state===xA.joining}isClosed(){return this.state===xA.closed}isLeaving(){return this.state===xA.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function Hne(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var MO;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(MO||(MO={}));var ph;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(ph||(ph={}));var al;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(al||(al={}));class zg{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,r={config:{}},n){var i,o;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.channelAdapter=new $ne(this.socket.socketAdapter,t,this.params),this.presence=new Mne(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=f$(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((o=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||o===void 0)&&o.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,i,o;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:a,presence:s,private:l}}=this.params,A=(i=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(f=>f.filter))!==null&&i!==void 0?i:[],u=!!this.bindings[ph.PRESENCE]&&this.bindings[ph.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,d={},h={broadcast:a,presence:Object.assign(Object.assign({},s),{enabled:u}),postgres_changes:A,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>{t==null||t(al.CHANNEL_ERROR,f)}),this._onClose(()=>t==null?void 0:t(al.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this._updateFilterMessage(),this.channelAdapter.subscribe(r).receive("ok",async({postgres_changes:f})=>{if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(al.SUBSCRIBED);return}this._updatePostgresBindings(f,t)}).receive("error",f=>{this.state=xA.errored,t==null||t(al.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(al.TIMED_OUT)})}return this}_updatePostgresBindings(t,r){var n;const i=this.bindings.postgres_changes,o=(n=i==null?void 0:i.length)!==null&&n!==void 0?n:0,a=[];for(let s=0;s<o;s++){const l=i[s],{filter:{event:A,schema:u,table:d,filter:h}}=l,f=t&&t[s];if(f&&f.event===A&&zg.isFilterValueEqual(f.schema,u)&&zg.isFilterValueEqual(f.table,d)&&zg.isFilterValueEqual(f.filter,h))a.push(Object.assign(Object.assign({},l),{id:f.id}));else{this.unsubscribe(),this.state=xA.errored,r==null||r(al.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=a,this.state!=xA.errored&&r&&r(al.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){const i=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),o=t===ph.PRESENCE||t===ph.POSTGRES_CHANGES;if(i&&o)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,r,n)}async httpSend(t,r,n={}){var i;if(r==null)return Promise.reject("Payload is required for httpSend()");const o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const a={method:"POST",headers:o,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},s=await this._fetchWithTimeout(this.broadcastEndpointURL,a,(i=n.timeout)!==null&&i!==void 0?i:this.timeout);if(s.status===202)return{success:!0};let l=s.statusText;
216try{const A=await s.json();l=A.error||A.message||l}catch{}return Promise.reject(new Error(l))}async send(t,r={}){var n,i;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:o,payload:a}=t,s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:a,private:this.private}]})};try{const A=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((i=A.body)===null||i===void 0?void 0:i.cancel()),A.ok?"ok":"error"}catch(A){return A.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var a,s,l;const A=this.channelAdapter.push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(s=(a=this.params)===null||a===void 0?void 0:a.config)===null||s===void 0?void 0:s.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),A.receive("ok",()=>o("ok")),A.receive("error",()=>o("error")),A.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(r=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>r("ok")).receive("timeout",()=>r("timed out")).receive("error",()=>r("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,r,n){const i=new AbortController,o=setTimeout(()=>i.abort(),n),a=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:i.signal}));return clearTimeout(o),a}_on(t,r,n){const i=t.toLocaleLowerCase(),o=this.channelAdapter.on(t,n),a={type:i,filter:r,callback:n,ref:o};return this.bindings[i]?this.bindings[i].push(a):this.bindings[i]=[a],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,r,n)=>{var i,o,a,s,l,A,u;const d=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(d,n))return!1;const h=(i=this.bindings[d])===null||i===void 0?void 0:i.find(f=>f.ref===t.ref);if(!h)return!0;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in h){const f=h.id,g=(o=h.filter)===null||o===void 0?void 0:o.event;return f&&((a=r.ids)===null||a===void 0?void 0:a.includes(f))&&(g==="*"||(g==null?void 0:g.toLocaleLowerCase())===((s=r.data)===null||s===void 0?void 0:s.type.toLocaleLowerCase()))}else{const f=(A=(l=h==null?void 0:h.filter)===null||l===void 0?void 0:l.event)===null||A===void 0?void 0:A.toLocaleLowerCase();return f==="*"||f===((u=r==null?void 0:r.event)===null||u===void 0?void 0:u.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===d})}_notThisChannelEvent(t,r){const{close:n,error:i,leave:o,join:a}=d$;return r&&[n,i,o,a].includes(t)&&r!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,r,n)=>{if(typeof r=="object"&&"ids"in r){const i=r.data,{schema:o,table:a,commit_timestamp:s,type:l,errors:A}=i;return Object.assign(Object.assign({},{schema:o,table:a,commit_timestamp:s,eventType:l,new:{},old:{},errors:A}),this._getPayloadRecords(i))}return r})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const r in t.bindings)for(const n of t.bindings[r])this._on(n.type,n.filter,n.callback)}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=RO(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=RO(t.columns,t.old_record)),r}}class Kne{constructor(t,r){this.socket=new Rne(t,r)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,r,n,i=1e4){return new Promise(o=>{setTimeout(()=>
216o("timeout"),i),this.socket.disconnect(()=>{t(),o("ok")},r,n)})}push(t){this.socket.push(t)}log(t,r,n){this.socket.log(t,r,n)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==hC.connecting}isDisconnecting(){return this.socket.connectionState()==hC.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Vne={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},zne=[1e3,2e3,5e3,1e4],Wne=1e4,Gne=`
217  addEventListener("message", (e) => {
218    if (e.data.event === "start") {
219      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
220    }
221  });`;class Yne{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,r){var n;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={},this.ref=0,this.serializer=new Bne,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._resolveFetch=o=>o?(...a)=>o(...a):(...a)=>fetch(...a),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey;const i=this._initializeOptions(r);this.socketAdapter=new Kne(t,i),this.httpEndpoint=f$(t),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const r=t.message;throw r.includes("Node.js")?new Error(`${r}
222
223To use Realtime in Node.js, you need to provide a WebSocket implementation:
224
225Option 1: Use Node.js 22+ which has native WebSocket support
226Option 2: Install and provide the "ws" package:
227
228  npm install ws
229
230  import ws from "ws"
231  const client = new RealtimeClient(url, {
232    ...options,
233    transport: ws
234  })`):new Error(`WebSocket not available: ${r}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,r){return this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,r)}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return r==="ok"&&t.teardown(),this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=this.channels.map(async n=>{const i=await n.unsubscribe();return n.teardown(),i}),r=await Promise.all(t);return this.disconnect(),r}log(t,r,n){this.socketAdapter.log(t,r,n)}connectionState(){return this.socketAdapter.connectionState()||hC.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,r={config:{}}){const n=`realtime:${t}`,i=this.getChannels().find(o=>o.topic===n);if(i)return i;{const o=new zg(`realtime:${t}`,r,this);return this.channels.push(o),o}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}async _performAuth(t=null){let r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEac
234h(i=>{const o={access_token:r,version:yne};r&&i.updateJoinPayload(o),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(d$.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(r=>{this.log("error","error waiting for auth on connect",r)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(r,n)=>{r=="sent"&&this._setAuthSafely(),t&&t(r,n)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([Gne],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_initializeOptions(t){var r,n,i,o,a,s,l,A,u;this.worker=(r=t==null?void 0:t.worker)!==null&&r!==void 0?r:!1,this.accessToken=(n=t==null?void 0:t.accessToken)!==null&&n!==void 0?n:null;const d={};d.timeout=(i=t==null?void 0:t.timeout)!==null&&i!==void 0?i:bne,d.heartbeatIntervalMs=(o=t==null?void 0:t.heartbeatIntervalMs)!==null&&o!==void 0?o:Vne.HEARTBEAT_INTERVAL,d.transport=(a=t==null?void 0:t.transport)!==null&&a!==void 0?a:gne.getWebSocketConstructor(),d.params=t==null?void 0:t.params,d.logger=t==null?void 0:t.logger,d.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),d.reconnectAfterMs=(s=t==null?void 0:t.reconnectAfterMs)!==null&&s!==void 0?s:p=>zne[p-1]||Wne;let h,f;const g=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:wne;switch(g){case vne:h=(p,v)=>v(JSON.stringify(p)),f=(p,v)=>v(JSON.parse(p));break;case u$:h=this.serializer.encode.bind(this.serializer),f=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${d.vsn}`)}if(d.vsn=g,d.encode=(A=t==null?void 0:t.encode)!==null&&A!==void 0?A:h,d.decode=(u=t==null?void 0:t.decode)!==null&&u!==void 0?u:f,d.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,d.params=Object.assign(Object.assign({},d.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,d.autoSendHeartbeat=!this.worker}return d}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}var Om=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function qne(e,t,r){const n=new URL(t,e);if(r)for(const[i,o]of Object.entries(r))o!==void 0&&n.searchParams.set(i,o);return n.toString()}async function Xne(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function Jne(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:i,body:o,headers:a}){const s=qne(e.baseUrl,n,i),l=await Xne(e.auth),A=await t(s,{method:r,headers:{...o?{"Content-Type":"application/json"}:{},...l,...a},body:o?JSON.stringify(o):void 0}),u=await A.text(),d=(A.headers.get("content-type")||"").includes("application/json"),h=d&&u?JSON.parse(u):u;if(!A.ok){const f=d?h:void 0,g=f==null?void 0:f.error;throw new Om((g==null?void 0:g.message)??`Request failed with status ${A.status}`,{status:A.status,icebergType:g==null?void 0:g.type,icebergCode:g==null?void 0:g.code,details:f})}return{status:A.status,headers:A.headers,data:h}}}}function g0(e){return e.join("�")}var Zne=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:g0(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${g0(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${g0(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${g0(e.namespace)}`}),!0}catch(t){if(t instanceof Om&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof Om&&r.status===409)return;throw r}}};function Sd(e){return e.join("�")}var eie=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Sd(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Sd(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Sd(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Sd(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Sd(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Sd(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof Om&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof Om&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},tie=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=Jne({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new Zne(this.client,t),this.tableOps=new eie(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
234async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Tx=class extends Error{constructor(e,t="storage",r,n){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}};function Ox(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var mC=class extends Tx{constructor(e,t,r,n="storage"){super(e,n,t,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},g$=class extends Tx{constructor(e,t,r="storage"){super(e,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const rie=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),nie=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)},yC=e=>{if(Array.isArray(e))return e.map(r=>yC(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const i=r.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[i]=yC(n)}),t},iie=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);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 oie(e,t){if(jm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aie(e){var t=oie(e,"string");return jm(t)=="symbol"?t:t+""}function sie(e,t,r){return(t=aie(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(r),!0).forEach(function(n){sie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$O(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const HO=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},lie=async(e,t,r,n)=>{if(e!==null&&typeof e=="object"&&typeof e.json=="function"){const i=e;let o=parseInt(i.status,10);Number.isFinite(o)||(o=500),i.json().then(a=>{const s=(a==null?void 0:a.statusCode)||(a==null?void 0:a.code)||o+"";t(new mC(HO(a),o,s,n))}).catch(()=>{const a=o+"";t(new mC(i.statusText||`HTTP ${o} error`,o,a,n))})}else t(new g$(HO(e),e,n))},Aie=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!n?jt(jt({},i),r):(nie(n)?(i.headers=jt({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(n)):i.body=n,t!=null&&t.duplex&&(i.duplex=t.duplex),jt(jt({},i),r))};async function Kp(e,t,r,n,i,o,a){return new Promise((s,l)=>{e(r,Aie(t,n,i,o)).then(A=>{if(!A.ok)throw A;if(n!=null&&n.noResolveJson)return A;if(a==="vectors"){const u=A.headers.get("content-type");if(A.headers.get("content-length")==="0"||A.status===204)return{};if(!u||!u.includes("application/json"))return{}}return A.json()}).then(A=>s(A)).catch(A=>lie(A,l,n,a))})}function m$(e="storage"){return{get:async(t,r,n,i)=>Kp(t,"GET",r,n,i,void 0,e),post:async(t,r,n,i,o)=>Kp(t,"POST",r,i,o,n,e),put:async(t,r,n,i,o)=>Kp(t,"PUT",r,i,o,n,e),head:async(t,r,n,i)=>Kp(t,"HEAD",r,jt(jt({},n),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,r,n,i,o)=>Kp(t,"DELETE",r,i,o,n,e)}}const cie=m$("storage"),{get:Pm,post:Ta,put:vC,head:uie,remove:aF}=cie,To=m$("vectors");var Wf=class{constructor(e,t={},r,n="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=rie(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=jt(jt({},this.headers),{},{[e]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Ox(r))return{data:null,error:r};throw r}}},die=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Ox(t))return{data:null,error:t};throw t}}};let y$;y$=Symbol.toStringTag;var hie=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[y$]="BlobDownloadBuilder",this.promise=null}asStream(){return new die(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Ox(t))return{data:null,error:t};throw t}}};const fie={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},KO={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var pie=class extends Wf{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var i=this;return i.handleOperation(async()=>{let o;const a=jt(jt({},KO),n);let s=jt(jt({},i.headers),e==="POST"&&{"x-upsert":String(a.upsert)});const l=a.metadata;typeof Blob<"u"&&r instanceof Blob?(o=new FormData,o.append("cacheControl",a.cacheControl),l&&o.append("metadata",i.encodeMetadata(l)),o.append("",r)):typeof FormData<"u"&&r instanceof FormData?(o=r,o.has("cacheControl")||o.append("cacheControl",a.cacheControl),l&&!o.has("metadata")&&o.append("metadata",i.encodeMetadata(l))):(o=r,s["cache-control"]=`max-age=${a.cacheControl}`,s["content-type"]=a.contentType,l&&(s["x-metadata"]=i.toBase64(i.encodeMetadata(l))),(typeof ReadableStream<"u"&&o instanceof ReadableStream||o&&typeof o=="object"&&"pipe"in o&&typeof o.pipe=="function")&&!a.duplex&&(a.duplex="half")),n!=null&&n.headers&&(s=jt(jt({},s),n.headers));const A=i._removeEmptyFolders(t),u=i._getFinalPath(A),d=await(e=="PUT"?vC:Ta)(i.fetch,`${i.url}/object/${u}`,o,jt({headers:s},a!=null&&a.duplex?{duplex:a.duplex}:{}));return{path:A,id:d.Id,fullPath:d.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var i=this;const o=i._removeEmptyFolders(e),a=i._getFinalPath(o),s=new URL(i.url+`/object/upload/sign/${a}`);return s.searchParams.set("token",t),i.handleOperation(async()=>{let l;const A=jt(jt({},KO),n),u=jt(jt({},i.headers),{"x-upsert":String(A.upsert)});return typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",A.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",A.cacheControl)):(l=r,u["cache-control"]=`max-age=${A.cacheControl}`,u["content-type"]=A.contentType),{path:o,fullPath:(await vC(i.fetch,s.toString(),l,{headers:u})).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const i=jt({},r.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const o=await Ta(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:i}),a=new URL(r.url+o.url),s=a.searchParams.get("token");if(!s)throw new Tx("No token returned by API");return{signedUrl:a.toString(),path:e,token:s}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await Ta(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
234stinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await Ta(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let i=n._getFinalPath(e);const o=typeof(r==null?void 0:r.transform)=="object"&&r.transform!==null&&Object.keys(r.transform).length>0;let a=await Ta(n.fetch,`${n.url}/object/sign/${i}`,jt({expiresIn:t},o?{transform:r.transform}:{}),{headers:n.headers});const s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"",l=o&&a.signedURL.includes("/object/sign/")?a.signedURL.replace("/object/sign/","/render/image/sign/"):a.signedURL;return{signedUrl:encodeURI(`${n.url}${l}${s}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const i=await Ta(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i.map(a=>jt(jt({},a),{},{signedUrl:a.signedURL?encodeURI(`${n.url}${a.signedURL}${o}`):null}))})}download(e,t,r){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),o=i?`?${i}`:"",a=this._getFinalPath(e),s=()=>Pm(this.fetch,`${this.url}/${n}/${a}${o}`,{headers:this.headers,noResolveJson:!0},r);return new hie(s,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>yC(await Pm(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await uie(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(Ox(i)){var n;const o=i instanceof mC?i.status:i instanceof g$?(n=i.originalError)===null||n===void 0?void 0:n.status:void 0;if(o!==void 0&&[400,404].includes(o))return{data:!1,error:i}}throw i}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=[],i=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&n.push(i);const o=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",a=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});a!==""&&n.push(a);let s=n.join("&");return s!==""&&(s=`?${s}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${r}${s}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await aF(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const i=jt(jt(jt({},fie),t),{},{prefix:e||""});return await Ta(n.fetch,`${n.url}/object/list/${n.bucketId}`,i,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=jt({},e);return await Ta(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const gie="2.101.1",zy={"X-Client-Info":`storage-js/${gie}`};var mie=class extends Wf{constructor(e,t={},r,n){const i=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const o=i.href.replace(/\/$/,""),a=jt(jt({},zy),t);super(o,a,r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await Pm(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>
234await Pm(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await Ta(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await vC(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Ta(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await aF(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},yie=class extends Wf{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=jt(jt({},zy),t);super(n,i,r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Ta(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),i=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await Pm(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await aF(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!iie(e))throw new Tx("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new tie({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(i,o){const a=i[o];return typeof a!="function"?a:async(...s)=>{try{return{data:await a.apply(i,s),error:null}}catch(l){if(n)throw l;return{data:null,error:l}}}}})}},vie=class extends Wf{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=jt(jt({},zy),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await To.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await To.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await To.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await To.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},wie=class extends Wf{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=jt(jt({},zy),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await To.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await To.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await To.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await To.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>
234500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await To.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},bie=class extends Wf{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=jt(jt({},zy),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await To.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await To.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await To.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await To.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},xie=class extends bie{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new Bie(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},Bie=class extends vie{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,jt(jt({},e),{},{vectorBucketName:r.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,jt(jt({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new Eie(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},Eie=class extends wie{constructor(e,t,r,n,i){super(e,t,i),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,jt(jt({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,jt(jt({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,jt(jt({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,jt(jt({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,jt(jt({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},_ie=class extends mie{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new pie(this.url,this.headers,e,this.fetch)}get vectors(){return new xie(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new yie(this.url+"/iceberg",this.headers,this.fetch)}};const v$="2.101.1",qd=30*1e3,wC=3,dE=wC*qd,Sie="http://localhost:9999",Cie="supabase.auth.token",Iie={"X-Client-Info":`gotrue-js/${v$}`},bC="X-Supabase-Api-Version",w$={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},kie=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Fie=10*60*1e3;class Lm extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function pt(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Nie extends Lm{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function Tie(e){return pt(e)&&e.name==="AuthApiError"}class eu extends Lm{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class Ql extends Lm{constructor(t,r,n,i){super(t,n,i),this.name=r,this.status=n}}class So extends Ql{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function hE(e){return pt(e)&&e.name==="AuthSessionMissingError"}class Cd extends Ql{constructor(){super("Auth session or user missing","AuthInvalidToken
234ResponseError",500,void 0)}}class m0 extends Ql{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class y0 extends Ql{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function Oie(e){return pt(e)&&e.name==="AuthImplicitGrantRedirectError"}class VO extends Ql{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class jie extends Ql{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class xC extends Ql{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function fE(e){return pt(e)&&e.name==="AuthRetryableFetchError"}class zO extends Ql{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class BC extends Ql{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Q1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),WO=` 	
235\r=`.split(""),Pie=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<WO.length;t+=1)e[WO[t].charCodeAt(0)]=-2;for(let t=0;t<Q1.length;t+=1)e[Q1[t].charCodeAt(0)]=t;return e})();function GO(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(Q1[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(Q1[n]),t.queuedBits-=6}}function b$(e,t,r){const n=Pie[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function YO(e){const t=[],r=a=>{t.push(String.fromCodePoint(a))},n={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},o=a=>{Rie(a,n,r)};for(let a=0;a<e.length;a+=1)b$(e.charCodeAt(a),i,o);return t.join("")}function Lie(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Uie(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const i=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|i)+65536,r+=1}Lie(n,t)}}function Rie(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function Nh(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)b$(e.charCodeAt(i),r,n);return new Uint8Array(t)}function Die(e){const t=[];return Uie(e,r=>t.push(r)),new Uint8Array(t)}function Au(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};return e.forEach(i=>GO(i,r,n)),GO(null,r,n),t.join("")}function Qie(e){return Math.round(Date.now()/1e3)+e}function Mie(){return Symbol("auth-callback")}const ci=()=>typeof window<"u"&&typeof document<"u",Dc={tested:!1,writable:!1},x$=()=>{if(!ci())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Dc.tested)return Dc.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Dc.tested=!0,Dc.writable=!0}catch{Dc.tested=!0,Dc.writable=!1}return Dc.writable};function $ie(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
235h((i,o)=>{t[o]=i})}catch{}return r.searchParams.forEach((n,i)=>{t[i]=n}),t}const B$=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Hie=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Xd=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},Qc=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Ai=async(e,t)=>{await e.removeItem(t)};class jx{constructor(){this.promise=new jx.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}jx.promiseConstructor=Promise;function v0(e){const t=e.split(".");if(t.length!==3)throw new BC("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!kie.test(t[n]))throw new BC("JWT not in base64url format");return{header:JSON.parse(YO(t[0])),payload:JSON.parse(YO(t[1])),signature:Nh(t[2]),raw:{header:t[0],payload:t[1]}}}async function Kie(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Vie(e,t){return new Promise((n,i)=>{(async()=>{for(let o=0;o<1/0;o++)try{const a=await e(o);if(!t(o,null,a)){n(a);return}}catch(a){if(!t(o,a)){i(a);return}}})()})}function zie(e){return("0"+e.toString(16)).substr(-2)}function Wie(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let i="";for(let o=0;o<56;o++)i+=r.charAt(Math.floor(Math.random()*n));return i}return crypto.getRandomValues(t),Array.from(t,zie).join("")}async function Gie(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),i=new Uint8Array(n);return Array.from(i).map(o=>String.fromCharCode(o)).join("")}async function Yie(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await Gie(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Id(e,t,r=!1){const n=Wie();let i=n;r&&(i+="/PASSWORD_RECOVERY"),await Xd(e,`${t}-code-verifier`,i);const o=await Yie(n);return[o,n===o?"plain":"s256"]}const qie=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Xie(e){const t=e.headers.get(bC);if(!t||!t.match(qie))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Jie(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function Zie(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const eoe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function kd(e){if(!eoe.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function pE(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function toe(e,t){return new Proxy(e,{get:(r,n,i)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const o=n.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,i)}return!t.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,n,i)}})}function qO(e){return JSON.parse(JSON.stringify(e))}const Yc=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),roe=[502,503,504];async function XO(e){var t;if(!Hie(e))throw new xC(Yc(e),0);if(roe.includes(e.status))throw new xC(Yc(e),e.status);let r;try{r=await e.json()}catch(o){throw new eu(Yc(o),o)}let n;const i=Xie(e);if(i&&i.getTime()>=w$["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new zO(Yc(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new So}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((o,a)=>
235o&&typeof a=="string",!0))throw new zO(Yc(r),e.status,r.weak_password.reasons);throw new Nie(Yc(r),e.status||500,n)}const noe=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(n),Object.assign(Object.assign({},i),r))};async function Nt(e,t,r,n){var i;const o=Object.assign({},n==null?void 0:n.headers);o[bC]||(o[bC]=w$["2024-01-01"].name),n!=null&&n.jwt&&(o.Authorization=`Bearer ${n.jwt}`);const a=(i=n==null?void 0:n.query)!==null&&i!==void 0?i:{};n!=null&&n.redirectTo&&(a.redirect_to=n.redirectTo);const s=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",l=await ioe(e,t,r+s,{headers:o,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function ioe(e,t,r,n,i,o){const a=noe(t,n,i,o);let s;try{s=await e(r,Object.assign({},a))}catch(l){throw console.error(l),new xC(Yc(l),0)}if(s.ok||await XO(s),n!=null&&n.noResolveJson)return s;try{return await s.json()}catch(l){await XO(l)}}function Ia(e){var t;let r=null;soe(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=Qie(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function JO(e){const t=Ia(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function BA(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function ooe(e){return{data:e,error:null}}function aoe(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:o}=e,a=zf(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),s={action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:o},l=Object.assign({},a);return{data:{properties:s,user:l},error:null}}function ZO(e){return e}function soe(e){return e.access_token&&e.refresh_token&&e.expires_in}const gE=["global","local","others"];class loe{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=B$(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)}}async signOut(t,r=gE[0]){if(gE.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${gE.join(", ")}`);try{return await Nt(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(pt(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await Nt(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:BA})}catch(n){if(pt(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=zf(t,["options"]),i=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(i.new_email=n==null?void 0:n.newEmail,delete i.newEmail),await Nt(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:aoe,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(pt(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await Nt(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:BA})}catch(r){if(pt(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,i,o,a,s,l;try{const A={nextPage:null,lastPage:0,total:0},u=await Nt(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:""},xform:ZO});if(u.error)throw u.error;const d=await u.json(),h=(a=u.headers.get("x-total-count"))!==null&&a!==void 0?a:0,f=(l=(s=u.headers.get("link"))===null||s===void 0?void 0:s.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(g=>{const p=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(g.split(";")[1].split("=")[1]);A[`${v}Page`]=p}),A.total=parseInt(h)),{data:Object.assign(Object.assign({},d),A),error:null}}catch(A){if(pt(A))return{data:{users:[]},error:A};throw A}}async getUserById(t){kd(t);try{return await Nt(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:BA})}catch(r){if(pt(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){kd(t);try{return await Nt(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:BA})}catch(n){if(pt(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){kd(t);
235try{return await Nt(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:BA})}catch(n){if(pt(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){kd(t.userId);try{const{data:r,error:n}=await Nt(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:r,error:n}}catch(r){if(pt(r))return{data:null,error:r};throw r}}async _deleteFactor(t){kd(t.userId),kd(t.id);try{return{data:await Nt(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(pt(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,i,o,a,s,l;try{const A={nextPage:null,lastPage:0,total:0},u=await Nt(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:""},xform:ZO});if(u.error)throw u.error;const d=await u.json(),h=(a=u.headers.get("x-total-count"))!==null&&a!==void 0?a:0,f=(l=(s=u.headers.get("link"))===null||s===void 0?void 0:s.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(g=>{const p=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(g.split(";")[1].split("=")[1]);A[`${v}Page`]=p}),A.total=parseInt(h)),{data:Object.assign(Object.assign({},d),A),error:null}}catch(A){if(pt(A))return{data:{clients:[]},error:A};throw A}}async _createOAuthClient(t){try{return await Nt(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(pt(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await Nt(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(pt(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await Nt(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(pt(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await Nt(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(pt(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await Nt(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(pt(r))return{data:null,error:r};throw r}}async _listCustomProviders(t){try{const r={};return t!=null&&t.type&&(r.type=t.type),await Nt(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:r,xform:n=>{var i;return{data:{providers:(i=n==null?void 0:n.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(r){if(pt(r))return{data:{providers:[]},error:r};throw r}}async _createCustomProvider(t){try{return await Nt(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(pt(r))return{data:null,error:r};throw r}}async _getCustomProvider(t){try{return await Nt(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(pt(r))return{data:null,error:r};throw r}}async _updateCustomProvider(t,r){try{return await Nt(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(pt(n))return{data:null,error:n};throw n}}async _deleteCustomProvider(t){try{return await Nt(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(pt(r))return{data:null,error:r};throw r}}}function ej(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const is={debug:!!(globalThis&&x$()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
235class E$ extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class tj extends E${}async function Aoe(e,t,r){is.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;let i;t>0&&(i=setTimeout(()=>{n.abort(),is.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async o=>{if(o){clearTimeout(i),is.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,o.name);try{return await r()}finally{is.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,o.name)}}else{if(t===0)throw is.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new tj(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(is.debug)try{const a=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(a,null,"  "))}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(i),await r()}})}catch(o){if(t>0&&clearTimeout(i),(o==null?void 0:o.name)==="AbortError"&&t>0){if(n.signal.aborted)return is.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async a=>{if(a){is.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,a.name);try{return await r()}finally{is.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,a.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await r()}));throw is.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new tj(`Lock "${e}" was released because another request stole it`)}throw o}}function coe(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function _$(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function uoe(e){return parseInt(e,16)}function doe(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function hoe(e){var t;const{chainId:r,domain:n,expirationTime:i,issuedAt:o=new Date,nonce:a,notBefore:s,requestId:l,resources:A,scheme:u,uri:d,version:h}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(a&&a.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
236`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=_$(e.address),g=u?`${u}://${n}`:n,p=e.statement?`${e.statement}
237`:"",v=`${g} wants you to sign in with your Ethereum account:
238${f}
239
240${p}`;let m=`URI: ${d}
241Version: ${h}
242Chain ID: ${r}${a?`
243Nonce: ${a}`:""}
244Issued At: ${o.toISOString()}`;if(i&&(m+=`
245Expiration Time: ${i.toISOString()}`),s&&(m+=`
246Not Before: ${s.toISOString()}`),l&&(m+=`
247Request ID: ${l}`),A){let w=`
248Resources:`;for(const b of A){if(!b||typeof b!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${b}`);w+=`
249- ${b}`}m+=w}return`${v}
250${m}`}
250class Un extends Error{constructor({message:t,code:r,cause:n,name:i}){var o;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(o=i??(n instanceof Error?n.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.code=r}}class M1 extends Un{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function foe({error:e,options:t}){var r,n,i;const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Un({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=o.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Un({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=o.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Un({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=o.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Un({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Un({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Un({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return o.pubKeyCredParams.filter(s=>s.type==="public-key").length===0?new Un({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Un({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const a=window.location.hostname;if(S$(a)){if(o.rp.id!==a)return new Un({message:`The RP ID "${o.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Un({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new Un({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Un({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Un({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function poe({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Un({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Un({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(S$(n)){if(r.rpId!==n)return new Un({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Un({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Un({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Un({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class goe{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const moe=new goe;function yoe(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,i=zf(e,["challenge","user","excludeCredentials"]),o=Nh(t).buffer,a=Object.assign(Object.assign({},r),{id:Nh(r.id).buffer}),s=Object.assign(Object.assign({},i),{challenge:o,user:a});if(n&&n.length>0){s.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const A=n[l];s.excludeCredentials[l]=Object.assign(Object.assign({},A),{id:Nh(A.id).buffer,type:A.type||"public-key",transports:A.transports})}}return s}function voe(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=zf(e,["challenge","allowCredentials"]),i=Nh(t).buffer,o=Object.assign(Object.assign({}
250,n),{challenge:i});if(r&&r.length>0){o.allowCredentials=new Array(r.length);for(let a=0;a<r.length;a++){const s=r[a];o.allowCredentials[a]=Object.assign(Object.assign({},s),{id:Nh(s.id).buffer,type:s.type||"public-key",transports:s.transports})}}return o}function woe(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:Au(new Uint8Array(e.response.attestationObject)),clientDataJSON:Au(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function boe(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Au(new Uint8Array(i.authenticatorData)),clientDataJSON:Au(new Uint8Array(i.clientDataJSON)),signature:Au(new Uint8Array(i.signature)),userHandle:i.userHandle?Au(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function S$(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function rj(){var e,t;return!!(ci()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function xoe(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new M1("Browser returned unexpected credential type",t)}:{data:null,error:new M1("Empty credential response",t)}}catch(t){return{data:null,error:foe({error:t,options:e})}}}async function Boe(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new M1("Browser returned unexpected credential type",t)}:{data:null,error:new M1("Empty credential response",t)}}catch(t){return{data:null,error:poe({error:t,options:e})}}}const Eoe={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},_oe={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function $1(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),r=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),n={};for(const i of e)if(i)for(const o in i){const a=i[o];if(a!==void 0)if(Array.isArray(a))n[o]=a;else if(r(a))n[o]=a;else if(t(a)){const s=n[o];t(s)?n[o]=$1(s,a):n[o]=$1(a)}else n[o]=a}return n}function Soe(e,t){return $1(Eoe,e,t||{})}function Coe(e,t){return $1(_oe,e,t||{})}class Ioe{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:i},o){var a;try{const{data:s,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!s)return{data:null,error:l};const A=i??moe.createNewAbortSignal();if(s.webauthn.type==="create"){const{user:u}=s.webauthn.credential_options.publicKey;if(!u.name){const d=n;if(d)u.name=`${u.id}:${d}`;else{const f=(await this.client.getUser()).data.user,g=((a=f==null?void 0:f.user_metadata)===null||a===void 0?void 0:a.name)||(f==null?void 0:f.email)||(f==null?void 0:f.id)||"User";u.name=`${u.id}:${g}`}}u.displayName||(u.displayName=u.name)}switch(s.webauthn.type){case"create":{const u=Soe(s.webauthn.credential_options.publicKey,o==null?void 0:o.create),{data:d,error:h}=await xoe({publicKey:u,signal:A});return d?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const u=Coe(s.webauthn.credential_options.publicKey,o==null?void 0:o.request),{data:d,error:h}=await Boe(Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:u,signal:A}));return d?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(s){return pt(s)?{data:null,error:s}:{data:null,error:new eu("Unexpected error in challenge",s)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},o){if(!r)return{data:null,error:new Lm("rpId is required for WebAuthn authentication")};try{if(!rj())return{data:null,error:new eu("Browser does not support WebAuthn",null)};const{data:a,error:s}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:i},{request:o});if(!a)return{data:null,error:s};const{webauthn:l}=a;return this._verify({factorId:t,challengeId:a.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(a){return pt(a)?{data:null,error:a}:{data:null,error:new eu("Unexpected error in authenticate",a)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},o){if(!r)return{data:null,error:new Lm("rpId is required for WebAuthn registration")};try{if(!rj())return{data:null,error:new eu("Browser does not support WebAuthn",null)};const{data:a,error:s}=await this._enroll({friendlyName:t});if(!a)return await this.client.mfa.listFactors().then(u=>{var d;return(d=u.data)===null||d===void 0?void 0:d.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:s};const{data:l,error:A}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:i},{create:o});return l?this._verify({factorId:a.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:A}}catch(a){return pt(a)?{data:null,error:a}:{data:null,error:new eu("Unexpected error in register",a)}}}}coe();const koe={url:Sie,storageKey:Cie,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Iie,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function nj(e,t,r){return await r()}const Fd={};class Um{get jwks(){var t,r;return(r=(t=Fd[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){Fd[this.storageKey]=Object.assign(Object.assign({},Fd[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=Fd[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Fd[this.storageKey]=Object.assign(Object.assign({},Fd[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const o=Object.assign(Object.assign({},koe),t);if(this.storageKey=o.storageKey,this.instanceID=(r=Um.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,Um.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&ci()){const a=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.admin=new loe({url:o.url,headers:o.headers,fetch:o.fetch}
250),this.url=o.url,this.headers=o.headers,this.fetch=B$(o.fetch),this.lock=o.lock||nj,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,this.lockAcquireTimeout=o.lockAcquireTimeout,o.lock?this.lock=o.lock:this.persistSession&&ci()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=Aoe:this.lock=nj,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new Ioe(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:x$()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=ej(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=ej(this.memoryStorage)),ci()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a);try{await this._notifyAllSubscribers(a.data.event,a.data.session,!1)}catch(s){this._debug("#broadcastChannel","error",s)}})}o.skipAutoInitialize||this.initialize().catch(a=>{this._debug("#initialize()","error",a)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${v$}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(ci()&&(r=$ie(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),ci()&&this.detectSessionInUrl&&n!=="none"){const{data:i,error:o}=await this._getSessionFromURL(r,n);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),Oie(o)){const l=(t=o.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:o}}return{error:o}}const{session:a,redirectType:s}=i;return this._debug("#_initialize()","detected session in URL",a,"redirect type",s),await this._saveSession(a),setTimeout(async()=>{s==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return pt(r)?this._returnResult({error:r}):this._returnResult({error:new eu("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,i;try{const o=await Nt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Ia}),{data:a,error:s}=o;if(s||!a)return this._returnResult({data:{user:null,session:null},error:s});const l=a.session,A=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:A,session:l},error:null})}catch(o){if(pt(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signUp(t){var r,n,i;try{let o;if("email"in t){const{email:u,password:d,options:h}=t;let f=null,g=null;this.flowType==="pkce"&&([f,g]=await Id(this.storage,this.storageKey)),o=await Nt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:u,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:g},xform:Ia})}else if("phone"in t){const{phone:u,password:d,options:h}=t;o=await Nt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(i=h==null?void 0:h.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Ia})}else throw new m0("You must provide either an email or phone number and a password");const{data:a,error:s}=o;if(s||!a)return await Ai(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:s});const l=a.session,A=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:A,session:l},error:null})}catch(o){if(await Ai(this.storage,`${this.storageKey}-code-verifier`),pt(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithPassword(t){try{let r;if("email"in t){const{email:o,password:a,options:s}=t;r=await Nt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:a,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:JO})}else if("phone"in t){const{phone:o,password:a,options:s}=t;r=await Nt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:a,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:JO})}else throw new m0("You must provide either an email or phone number and a password");const{data:n,error:i}=r;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!n||!n.session||!n.user){const o=new Cd;return this._returnResult({data:{user:null,session:null},error:o})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:i})}catch(r){if(pt(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,i,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(o=t.o
250ptions)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,i,o,a,s,l,A,u,d,h;let f,g;if("message"in t)f=t.message,g=t.signature;else{const{chain:p,wallet:v,statement:m,options:w}=t;let b;if(ci())if(typeof v=="object")b=v;else{const k=window;if("ethereum"in k&&typeof k.ethereum=="object"&&"request"in k.ethereum&&typeof k.ethereum.request=="function")b=k.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=v}const E=new URL((r=w==null?void 0:w.url)!==null&&r!==void 0?r:window.location.href),B=await b.request({method:"eth_requestAccounts"}).then(k=>k).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!B||B.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const _=_$(B[0]);let F=(n=w==null?void 0:w.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!F){const k=await b.request({method:"eth_chainId"});F=uoe(k)}const O={domain:E.host,address:_,statement:m,uri:E.href,version:"1",chainId:F,nonce:(i=w==null?void 0:w.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(a=(o=w==null?void 0:w.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&a!==void 0?a:new Date,expirationTime:(s=w==null?void 0:w.signInWithEthereum)===null||s===void 0?void 0:s.expirationTime,notBefore:(l=w==null?void 0:w.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(A=w==null?void 0:w.signInWithEthereum)===null||A===void 0?void 0:A.requestId,resources:(u=w==null?void 0:w.signInWithEthereum)===null||u===void 0?void 0:u.resources};f=hoe(O),g=await b.request({method:"personal_sign",params:[doe(f),_]})}try{const{data:p,error:v}=await Nt(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:g},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Ia});if(v)throw v;if(!p||!p.session||!p.user){const m=new Cd;return this._returnResult({data:{user:null,session:null},error:m})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:Object.assign({},p),error:v})}catch(p){if(pt(p))return this._returnResult({data:{user:null,session:null},error:p});throw p}}async signInWithSolana(t){var r,n,i,o,a,s,l,A,u,d,h,f;let g,p;if("message"in t)g=t.message,p=t.signature;else{const{chain:v,wallet:m,statement:w,options:b}=t;let E;if(ci())if(typeof m=="object")E=m;else{const _=window;if("solana"in _&&typeof _.solana=="object"&&("signIn"in _.solana&&typeof _.solana.signIn=="function"||"signMessage"in _.solana&&typeof _.solana.signMessage=="function"))E=_.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof m!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");E=m}const B=new URL((r=b==null?void 0:b.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in E&&E.signIn){const _=await E.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:B.host,uri:B.href}),w?{statement:w}:null));let F;if(Array.isArray(_)&&_[0]&&typeof _[0]=="object")F=_[0];else if(_&&typeof _=="object"&&"signedMessage"in _&&"signature"in _)F=_;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in F&&"signature"in F&&(typeof F.signedMessage=="string"||F.signedMessage instanceof Uint8Array)&&F.signature instanceof Uint8Array)g=typeof F.signedMessage=="string"?F.signedMessage:new TextDecoder().decode(F.signedMessage),p=F.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in E)||typeof E.signMessage!="function"||!("publicKey"in E)||typeof E!="object"||!E.publicKey||!("toBase58"in E.publicKey)||typeof E.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");g=[`${B.host} wants you to sign in with your Solana account:`,E.publicKey.toBase58(),...w?["",w,""]:[""],"Version: 1",`URI: ${B.href}`,`Issued At: ${(i=(n=b==null?void 0:b.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((a=b==null?void 0:b.signInWithSolana)===null||a===void 0)&&a.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((s=b==null?void 0:b.signInWithSolana)===null||s===void 0)&&s.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((l=b==null?void 0:b.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((A=b==null?void 0:b.signInWithSolana)===null||A===void 0)&&A.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((d=(u=b==null?void 0:b.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...b.signInWithSolana.resources.map(F=>`- ${F}`)]:[]].join(`
251`);const _=await E.signMessage(new TextEncoder().encode(g),"utf8");if(!_||!(_ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=_}}try{const{data:v,error:m}=await Nt(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:g,signature:Au(p)}
251,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Ia});if(m)throw m;if(!v||!v.session||!v.user){const w=new Cd;return this._returnResult({data:{user:null,session:null},error:w})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:m})}catch(v){if(pt(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async _exchangeCodeForSession(t){const r=await Qc(this.storage,`${this.storageKey}-code-verifier`),[n,i]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new jie;const{data:o,error:a}=await Nt(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Ia});if(await Ai(this.storage,`${this.storageKey}-code-verifier`),a)throw a;if(!o||!o.session||!o.user){const s=new Cd;return this._returnResult({data:{user:null,session:null,redirectType:null},error:s})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),this._returnResult({data:Object.assign(Object.assign({},o),{redirectType:i??null}),error:a})}catch(o){if(await Ai(this.storage,`${this.storageKey}-code-verifier`),pt(o))return this._returnResult({data:{user:null,session:null,redirectType:null},error:o});throw o}}async signInWithIdToken(t){try{const{options:r,provider:n,token:i,access_token:o,nonce:a}=t,s=await Nt(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:i,access_token:o,nonce:a,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Ia}),{data:l,error:A}=s;if(A)return this._returnResult({data:{user:null,session:null},error:A});if(!l||!l.session||!l.user){const u=new Cd;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:A})}catch(r){if(pt(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,i,o,a;try{if("email"in t){const{email:s,options:l}=t;let A=null,u=null;this.flowType==="pkce"&&([A,u]=await Id(this.storage,this.storageKey));const{error:d}=await Nt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:s,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:A,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:s,options:l}=t,{data:A,error:u}=await Nt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:s,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(a=l==null?void 0:l.channel)!==null&&a!==void 0?a:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:A==null?void 0:A.message_id},error:u})}throw new m0("You must provide either an email or phone number.")}catch(s){if(await Ai(this.storage,`${this.storageKey}-code-verifier`),pt(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async verifyOtp(t){var r,n;try{let i,o;"options"in t&&(i=(r=t.options)===null||r===void 0?void 0:r.redirectTo,o=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:a,error:s}=await Nt(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:i,xform:Ia});if(s)throw s;if(!a)throw new Error("An error occurred on token verification.");const l=a.session,A=a.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:A,session:l},error:null})}catch(i){if(pt(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var r,n,i,o,a;try{let s=null,l=null;this.flowType==="pkce"&&([s,l]=await Id(this.storage,this.storageKey));const A=await Nt(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:l}),headers:this.headers,xform:ooe});return!((o=A.data)===null||o===void 0)&&o.url&&ci()&&!(!((a=t.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(A.data.url),this._returnResult(A)}catch(s){if(await Ai(this.storage,`${this.storageKey}-code-verifier`),pt(s))return this._returnResult({data:null,error:s});throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new So;const{error:i}=await Nt(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(pt(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:i,options:o}=t,{error:a}=await Nt(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:i,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:a})}else if("phone"in t){const{phone:n,type:i,options:o}=t,{data:a,error:s}=await Nt(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:i,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:a==null?void 0:a.message_id},error:s})}throw new m0("You must provide either an email or phone number and a type")}catch(r){if(pt(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await Qc(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
251id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<dE:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const a=await Qc(this.userStorage,this.storageKey+"-user");a!=null&&a.user?t.user=a.user:t.user=pE()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const a={value:this.suppressGetSessionWarning};t.user=toe(t.user,a),a.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{session:null},error:o}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await Nt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:BA}):await this._useSession(async r=>{var n,i,o;const{data:a,error:s}=r;if(s)throw s;return!(!((n=a.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new So}:await Nt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(i=a.session)===null||i===void 0?void 0:i.access_token)!==null&&o!==void 0?o:void 0,xform:BA})})}catch(r){if(pt(r))return hE(r)&&(await this._removeSession(),await Ai(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:i,error:o}=n;if(o)throw o;if(!i.session)throw new So;const a=i.session;let s=null,l=null;this.flowType==="pkce"&&t.email!=null&&([s,l]=await Id(this.storage,this.storageKey));const{data:A,error:u}=await Nt(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:s,code_challenge_method:l}),jwt:a.access_token,xform:BA});if(u)throw u;return a.user=A.user,await this._saveSession(a),await this._notifyAllSubscribers("USER_UPDATED",a),this._returnResult({data:{user:a.user},error:null})})}catch(n){if(await Ai(this.storage,`${this.storageKey}-code-verifier`),pt(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new So;const r=Date.now()/1e3;let n=r,i=!0,o=null;const{payload:a}=v0(t.access_token);if(a.exp&&(n=a.exp,i=n<=r),i){const{data:s,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!s)return{data:{user:null,session:null},error:null};o=s}else{const{data:s,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});o={access_token:t.access_token,refresh_token:t.refresh_token,user:s.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return this._returnResult({data:{user:o.user,session:o},error:null})}catch(r){if(pt(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:a,error:s}=r;if(s)throw s;t=(n=a.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new So;const{data:i,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{user:null,session:null},error:o}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(pt(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){try{if(!ci())throw new y0("No browser detected.");
251if(t.error||t.error_description||t.error_code)throw new y0(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new VO("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new y0("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new VO("No code detected.");const{data:w,error:b}=await this._exchangeCodeForSession(t.code);if(b)throw b;const E=new URL(window.location.href);return E.searchParams.delete("code"),window.history.replaceState(window.history.state,"",E.toString()),{data:{session:w.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:i,access_token:o,refresh_token:a,expires_in:s,expires_at:l,token_type:A}=t;if(!o||!s||!a||!A)throw new y0("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(s);let h=u+d;l&&(h=parseInt(l));const f=h-u;f*1e3<=qd&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${d}s`);const g=h-d;u-g>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",g,h,u):u-g<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",g,h,u);const{data:p,error:v}=await this._getUser(o);if(v)throw v;const m={provider_token:n,provider_refresh_token:i,access_token:o,expires_in:d,expires_at:h,refresh_token:a,token_type:A,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:m,redirectType:t.type},error:null})}catch(n){if(pt(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await Qc(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:i,error:o}=r;if(o&&!hE(o))return this._returnResult({error:o});const a=(n=i.session)===null||n===void 0?void 0:n.access_token;if(a){const{error:s}=await this.admin.signOut(a,t);if(s&&!(Tie(s)&&(s.status===404||s.status===401||s.status===403)||hE(s)))return this._returnResult({error:s})}return t!=="others"&&(await this._removeSession(),await Ai(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=Mie(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,i;try{const{data:{session:o},error:a}=r;if(a)throw a;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",o),console.error(o)}})}async resetPasswordForEmail(t,r={}){let n=null,i=null;this.flowType==="pkce"&&([n,i]=await Id(this.storage,this.storageKey,!0));try{return await Nt(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:i,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(o){if(await Ai(this.storage,`${this.storageKey}-code-verifier`),pt(o))return this._returnResult({data:null,error:o});throw o}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(pt(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:i}=await this._useSession(async o=>{var a,s,l,A,u;const{data:d,error:h}=o;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(a=t.options)===null||a===void 0?void 0:a.redirectTo,scopes:(s=t.options)===null||s===void 0?void 0:s.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await Nt(this.fetch,"GET",f,{headers:this.headers,jwt:(u=(A=
251d.session)===null||A===void 0?void 0:A.access_token)!==null&&u!==void 0?u:void 0})});if(i)throw i;return ci()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(pt(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:i,data:{session:o}}=r;if(i)throw i;const{options:a,provider:s,token:l,access_token:A,nonce:u}=t,d=await Nt(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=o==null?void 0:o.access_token)!==null&&n!==void 0?n:void 0,body:{provider:s,id_token:l,access_token:A,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Ia}),{data:h,error:f}=d;return f?this._returnResult({data:{user:null,session:null},error:f}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new Cd}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:f}))}catch(i){if(await Ai(this.storage,`${this.storageKey}-code-verifier`),pt(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,i;const{data:o,error:a}=r;if(a)throw a;return await Nt(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(n=o.session)===null||n===void 0?void 0:n.access_token)!==null&&i!==void 0?i:void 0})})}catch(r){if(pt(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await Vie(async i=>(i>0&&await Kie(200*Math.pow(2,i-1)),this._debug(r,"refreshing attempt",i),await Nt(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Ia})),(i,o)=>{const a=200*Math.pow(2,i);return o&&fE(o)&&Date.now()+a-n<qd})}catch(n){if(this._debug(r,"error",n),pt(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),ci()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const i=await Qc(this.storage,this.storageKey);if(i&&this.userStorage){let a=await Qc(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!a&&(a={user:i.user},await Xd(this.userStorage,this.storageKey+"-user",a)),i.user=(t=a==null?void 0:a.user)!==null&&t!==void 0?t:pE()}else if(i&&!i.user&&!i.user){const a=await Qc(this.storage,this.storageKey+"-user");a&&(a!=null&&a.user)?(i.user=a.user,await Ai(this.storage,this.storageKey+"-user"),await Xd(this.storage,this.storageKey,i)):i.user=pE()}if(this._debug(n,"session from storage",i),!this._isValidSession(i)){this._debug(n,"session is not valid"),i!==null&&await this._removeSession();return}const o=((r=i.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<dE;if(this._debug(n,`session has${o?"":" not"} expired with margin of ${dE}s`),o){if(this.autoRefreshToken&&i.refresh_token){const{error:a}=await this._callRefreshToken(i.refresh_token);a&&(console.error(a),fE(a)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",a),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:a,error:s}=await this._getUser(i.access_token);!s&&(a!=null&&a.user)?(i.user=a.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(n,"error getting user data, skipping SIGNED_IN notification",a)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(n,"error",i),console.error(i);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new So;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new jx;const{data:o,error:a}=await this._refreshAccessToken(t);if(a)throw a;if(!o.session)throw new So;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const s={data:o.session,error:null};return this.refreshingDeferred.resolve(s),s}catch(o){if(this._debug(i,"error",o),pt(o)){const a={data:null,error:o};return fE(o)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(a),a}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(o),o}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,r,n=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const o=[],a=Array.from(this.stateChangeEmitters.values()).map(async s=>{try{await s.callback(t,r)}catch(l){o.push(l)}});if(await Promise.all(a),o.length>0){for(let s=0;s<o.length;s+=1)console.error(o[s]);throw o[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ai(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Xd(this.userStorage,this.storageKey+"-user",{user:r.user});const i=Object.assign({},r);delete i.user;const o=qO(i);await Xd(this.storage,this.storageKey,o)}else{const i=qO(r);await Xd(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ai(this.storage,this.storageKey),await Ai(this.storage,this.storageKey+"-code-verifier"),await Ai(this.storage,this.storageKey+"-user"),this.userStorage&&await Ai(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&ci()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
251catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),qd);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((n.expires_at*1e3-t)/qd);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${qd}ms, refresh threshold is ${wC} ticks`),i<=wC&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof E$)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!ci()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const i=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&i.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&i.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[o,a]=await Id(this.storage,this.storageKey),s=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(a)}`});i.push(s.toString())}if(n!=null&&n.queryParams){const o=new URLSearchParams(n.queryParams);i.push(o.toString())}return n!=null&&n.skipBrowserRedirect&&i.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:i,error:o}=r;return o?this._returnResult({data:null,error:o}):await Nt(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(pt(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,i;const{data:o,error:a}=r;if(a)return this._returnResult({data:null,error:a});const s=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:A}=await Nt(this.fetch,"POST",`${this.url}/factors`,{body:s,headers:this.headers,jwt:(n=o==null?void 0:o.session)===null||n===void 0?void 0:n.access_token});return A?this._returnResult({data:null,error:A}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(pt(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?woe(t.webauthn.credential_response):boe(t.webauthn.credential_response)})}:{code:t.code}),{data:s,error:l}=await Nt(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:a,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+s.expires_in},s)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",s),this._returnResult({data:s,error:l}))})}catch(r){if(pt(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const a=await Nt(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});if(a.error)return a;const{data:s}=a;if(s.type!=="webauthn")return{data:s,error:null};switch(s.webauthn.type){case"create":return{data:Object.assign(Object.assign({},s),{webauthn:Object.assign(Object.assign({},s.webauthn),{credential_options:Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:yoe(s.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},s),{webauthn:Object.assign(Object.assign({},s.webauthn),{credential_options:Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:voe(s.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(pt(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const i={all:[],phone:[],totp:[],webauthn:[]};for(const o of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])i.all.push(o),o.status==="verified"&&i[o.factor_type].push(o);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var r,n,i,o;if(t)try{const{payload:f}=v0(t);let g=null;f.aal&&(g=f.aal);let p=g;const{data:{user:v},error:m}=await this.getUser(t);if(m)return this._returnResult({data:null,error:m});((n=(r=v==null?void 0:v.factors)===null||r===void 0?void 0:r.filter(E=>E.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(p="aal2");const b=f.amr||[];return{data:{currentLevel:g,nextLevel:p,currentAuthenticationMethods:b},error:null}}catch(f){if(pt(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:a},error:s}
251=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=v0(a.access_token);let A=null;l.aal&&(A=l.aal);let u=A;((o=(i=a.user.factors)===null||i===void 0?void 0:i.filter(f=>f.status==="verified"))!==null&&o!==void 0?o:[]).length>0&&(u="aal2");const h=l.amr||[];return{data:{currentLevel:A,nextLevel:u,currentAuthenticationMethods:h},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?await Nt(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new So})})}catch(r){if(pt(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!i)return this._returnResult({data:null,error:new So});const a=await Nt(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:s=>({data:s,error:null})});return a.data&&a.data.redirect_url&&ci()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(n){if(pt(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!i)return this._returnResult({data:null,error:new So});const a=await Nt(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:s=>({data:s,error:null})});return a.data&&a.data.redirect_url&&ci()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(n){if(pt(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await Nt(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new So})})}catch(t){if(pt(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?(await Nt(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new So})})}catch(r){if(pt(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(s=>s.kid===t);if(n)return n;const i=Date.now();if(n=this.jwks.keys.find(s=>s.kid===t),n&&this.jwks_cached_at+Fie>i)return n;const{data:o,error:a}=await Nt(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=i,n=o.keys.find(s=>s.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:f,error:g}
251=await this.getSession();if(g||!f.session)return this._returnResult({data:null,error:g});n=f.session.access_token}const{header:i,payload:o,signature:a,raw:{header:s,payload:l}}=v0(n);r!=null&&r.allowExpired||Jie(o.exp);const A=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!A){const{error:f}=await this.getUser(n);if(f)throw f;return{data:{claims:o,header:i,signature:a},error:null}}const u=Zie(i.alg),d=await crypto.subtle.importKey("jwk",A,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,a,Die(`${s}.${l}`)))throw new BC("Invalid JWT signature");return{data:{claims:o,header:i,signature:a},error:null}}catch(n){if(pt(n))return this._returnResult({data:null,error:n});throw n}}}Um.nextInstanceID={};const Foe=Um,Noe="2.101.1";let mg="";typeof Deno<"u"?mg="deno":typeof document<"u"?mg="web":typeof navigator<"u"&&navigator.product==="ReactNative"?mg="react-native":mg="node";const Toe={"X-Client-Info":`supabase-js-${mg}/${Noe}`},Ooe={headers:Toe},joe={schema:"public"},Poe={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Loe={};function Rm(e){"@babel/helpers - typeof";return Rm=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},Rm(e)}function Uoe(e,t){if(Rm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Roe(e){var t=Uoe(e,"string");return Rm(t)=="symbol"?t:t+""}function Doe(e,t,r){return(t=Roe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ij(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ij(Object(r),!0).forEach(function(n){Doe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ij(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const Qoe=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Moe=()=>Headers,$oe=(e,t,r)=>{const n=Qoe(r),i=Moe();return async(o,a)=>{var s;const l=(s=await t())!==null&&s!==void 0?s:e;let A=new i(a==null?void 0:a.headers);return A.has("apikey")||A.set("apikey",e),A.has("Authorization")||A.set("Authorization",`Bearer ${l}`),n(o,wn(wn({},a),{},{headers:A}))}};function Hoe(e){return e.endsWith("/")?e:e+"/"}function Koe(e,t){var r,n;const{db:i,auth:o,realtime:a,global:s}=e,{db:l,auth:A,realtime:u,global:d}=t,h={db:wn(wn({},l),i),auth:wn(wn({},A),o),realtime:wn(wn({},u),a),storage:{},global:wn(wn(wn({},d),s),{},{headers:wn(wn({},(r=d==null?void 0:d.headers)!==null&&r!==void 0?r:{}),(n=s==null?void 0:s.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function Voe(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(Hoe(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var zoe=class extends Foe{constructor(e){super(e)}},Woe=class{constructor(e,t,r){var n,i;this.supabaseUrl=e,this.supabaseKey=t;const o=Voe(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",o),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",o),this.storageUrl=new URL("storage/v1",o),this.functionsUrl=new URL("functions/v1",o);const a=`sb-${o.hostname.split(".")[0]}-auth-token`,s={db:joe,realtime:Loe,auth:wn(wn({},Poe),{},{storageKey:a}),global:Ooe},l=Koe(r??{},s);if(this.storageKey=(n=l.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(u,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var A;this.auth=this._initSupabaseAuthClient((A=l.auth)!==null&&A!==void 0?A:{},this.headers,l.global.fetch)}this.fetch=$oe(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(wn({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new pne(new URL("rest/v1",o).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new _ie(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new sne(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}
251channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,storageKey:o,flowType:a,lock:s,debug:l,throwOnError:A},u,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new zoe({url:this.authUrl.href,headers:wn(wn({},h),u),storageKey:o,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,flowType:a,lock:s,debug:l,throwOnError:A,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new Yne(this.realtimeUrl.href,wn(wn({},e),{},{params:wn(wn({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const Goe=(e,t,r)=>new Woe(e,t,r);function Yoe(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}Yoe()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function qoe(){var v,m;if(typeof window>"u")return;const e=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(w=>e===w||e.endsWith("."+w)),n="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",i=r?((v=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+n+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:v[1])??((m=e.match(new RegExp("^("+n+")(?=[.-])","i")))==null?void 0:m[1]):void 0,o=window.parent&&window.parent!==window;if(!i||!o)return localStorage;const a=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),s=a?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),A=l&&s.test(l)?[l]:a?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",d=2e3,h=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),f=(w,b,E)=>new Promise(B=>{const _=h();let F=!1,O;const k=T=>{F||(F=!0,clearTimeout(O),window.removeEventListener("message",j),B(T))},j=T=>{if(A.indexOf(T.origin)<0)return;const U=T.data;U&&U.type===u&&U.requestId===_&&k(U)};window.addEventListener("message",j);const I={type:w,requestId:_,projectId:i,key:b};E!==void 0&&(I.value=E);for(const T of A)window.parent.postMessage(I,T);O=setTimeout(()=>k(null),d)});let g=!0;const p=250;return{getItem:async w=>{let b=await f("lovable-preview-auth:get",w);return!b&&g&&(await new Promise(E=>setTimeout(E,p)),b=await f("lovable-preview-auth:get",w)),g=!1,b&&b.ok&&typeof b.value=="string"?b.value===""?(localStorage.removeItem(w),null):b.value:localStorage.getItem(w)},setItem:(w,b)=>(localStorage.setItem(w,b),f("lovable-preview-auth:set",w,b).then(()=>{})),removeItem:w=>(localStorage.removeItem(w),f("lovable-preview-auth:remove",w).then(()=>{}))}}const Xoe="https://tsaefmoxxdvjdtxauisr.supabase.co",Joe="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRzYWVmbW94eGR2amR0eGF1aXNyIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzI5MTY3NTksImV4cCI6MjA4ODQ5Mjc1OX0.fDmMdKd2uFELNLKKpZ6LTd4XMP5Ucp9x479Gt176Qe8",Tt=Goe(Xoe,Joe,{auth:{storage:qoe(),persistSession:!0,autoRefreshToken:!0}});var Zoe=Object.defineProperty,eae=Object.defineProperties,tae=Object.getOwnPropertyDescriptors,H1=Object.getOwnPropertySymbols,C$=Object.prototype.hasOwnProperty,I$=Object.prototype.propertyIsEnumerable,oj=(e,t,r)=>t in e?Zoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rae=(e,t)=>{for(var r in t||(t={}))C$.call(t,r)&&oj(e,r,t[r]);if(H1)for(var r of H1(t))I$.call(t,r)&&oj(e,r,t[r]);return e},nae=(e,t)=>eae(e,tae(t)),iae=(e,t)=>{var r={};for(var n in e)C$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&H1)for(var n of H1(e))t.indexOf(n)<0&&I$.call(e,n)&&(r[n]=e[n]);return r};function oae(e){let t=setTimeout(e,0),r=setTimeout(e,10),n=setTimeout(e,50);return[t,r,n]}function aae(e){let t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}var sae=18,k$=40,lae=`${k$}px`,Aae=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function cae({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:n}){let[i,o]=S.useState(!1),[a,s]=S.useState(!1),[l,A]=S.useState(!1),u=S.useMemo(()=>r==="none"?!1:(r==="increase-width"||r==="experimental-no-flickering")&&i&&a,[i,a,r]),d=S.useCallback(()=>{let h=e.current,f=t.current;if(!h||!f||l||r==="none")return;let g=h,p=g.getBoundingClientRect().left+g.offsetWidth,v=g.getBoundingClientRect().top+g.offsetHeight/2,m=p-sae,w=v;document.querySelectorAll(Aae).length===0&&document.elementFromPoint(m,w)===h||(o(!0),A(!0))},[e,t,l,r]);return S.useEffect(()=>{let h=e.current;if(!h||r==="none")return;function f(){let p=window.innerWidth-h.getBoundingClientRect().right;s(p>=k$)}f();let g=setInterval(f,1e3);return()=>{clearInterval(g)}},[e,r]),S.useEffect(()=>{let h=n||document.activeElement===t.current;if(r==="none"||!h)return;let f=setTimeout(d,0),g=setTimeout(d,2e3),p=setTimeout(d,5e3),v=setTimeout(()=>{A(!0)},6e3);return()=>{clearTimeout(f),clearTimeout(g),clearTimeout(p),clearTimeout(v)}},[t,n,r,d]),{hasPWMBadge:i,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:lae}}var F$=S.createContext({}),N$=S.forwardRef((e,t)=>
251{var r=e,{value:n,onChange:i,maxLength:o,textAlign:a="left",pattern:s,placeholder:l,inputMode:A="numeric",onComplete:u,pushPasswordManagerStrategy:d="increase-width",pasteTransformer:h,containerClassName:f,noScriptCSSFallback:g=uae,render:p,children:v}=r,m=iae(r,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,b,E,B,_;let[F,O]=S.useState(typeof m.defaultValue=="string"?m.defaultValue:""),k=n??F,j=aae(k),I=S.useCallback(ve=>{i==null||i(ve),O(ve)},[i]),T=S.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),U=S.useRef(null),R=S.useRef(null),G=S.useRef({value:k,onChange:I,isIOS:typeof window<"u"&&((b=(w=window==null?void 0:window.CSS)==null?void 0:w.supports)==null?void 0:b.call(w,"-webkit-touch-callout","none"))}),K=S.useRef({prev:[(E=U.current)==null?void 0:E.selectionStart,(B=U.current)==null?void 0:B.selectionEnd,(_=U.current)==null?void 0:_.selectionDirection]});S.useImperativeHandle(t,()=>U.current,[]),S.useEffect(()=>{let ve=U.current,z=R.current;if(!ve||!z)return;G.current.value!==ve.value&&G.current.onChange(ve.value),K.current.prev=[ve.selectionStart,ve.selectionEnd,ve.selectionDirection];function Se(){if(document.activeElement!==ve){P(null),X(null);return}let xe=ve.selectionStart,ze=ve.selectionEnd,me=ve.selectionDirection,Le=ve.maxLength,Ue=ve.value,Bt=K.current.prev,Et=-1,Ge=-1,Je;if(Ue.length!==0&&xe!==null&&ze!==null){let tt=xe===ze,dr=xe===Ue.length&&Ue.length<Le;if(tt&&!dr){let Pt=xe;if(Pt===0)Et=0,Ge=1,Je="forward";else if(Pt===Le)Et=Pt-1,Ge=Pt,Je="backward";else if(Le>1&&Ue.length>1){let Ft=0;if(Bt[0]!==null&&Bt[1]!==null){Je=Pt<Bt[1]?"backward":"forward";let Be=Bt[0]===Bt[1]&&Bt[0]<Le;Je==="backward"&&!Be&&(Ft=-1)}Et=Ft+Pt,Ge=Ft+Pt+1}}Et!==-1&&Ge!==-1&&Et!==Ge&&U.current.setSelectionRange(Et,Ge,Je)}let dt=Et!==-1?Et:xe,Ye=Ge!==-1?Ge:ze,vt=Je??me;P(dt),X(Ye),K.current.prev=[dt,Ye,vt]}if(document.addEventListener("selectionchange",Se,{capture:!0}),Se(),document.activeElement===ve&&q(!0),!document.getElementById("input-otp-style")){let xe=document.createElement("style");if(xe.id="input-otp-style",document.head.appendChild(xe),xe.sheet){let ze="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Vp(xe.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Vp(xe.sheet,`[data-input-otp]:autofill { ${ze} }`),Vp(xe.sheet,`[data-input-otp]:-webkit-autofill { ${ze} }`),Vp(xe.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Vp(xe.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Me=()=>{z&&z.style.setProperty("--root-height",`${ve.clientHeight}px`)};Me();let De=new ResizeObserver(Me);return De.observe(ve),()=>{document.removeEventListener("selectionchange",Se,{capture:!0}),De.disconnect()}},[]);let[V,Q]=S.useState(!1),[H,q]=S.useState(!1),[re,P]=S.useState(null),[D,X]=S.useState(null);S.useEffect(()=>{oae(()=>{var ve,z,Se,Me;(ve=U.current)==null||ve.dispatchEvent(new Event("input"));let De=(z=U.current)==null?void 0:z.selectionStart,xe=(Se=U.current)==null?void 0:Se.selectionEnd,ze=(Me=U.current)==null?void 0:Me.selectionDirection;De!==null&&xe!==null&&(P(De),X(xe),K.current.prev=[De,xe,ze])})},[k,H]),S.useEffect(()=>{j!==void 0&&k!==j&&j.length<o&&k.length===o&&(u==null||u(k))},[o,u,j,k]);let Z=cae({containerRef:R,inputRef:U,pushPasswordManagerStrategy:d,isFocused:H}),ae=S.useCallback(ve=>{let z=ve.currentTarget.value.slice(0,o);if(z.length>0&&T&&!T.test(z)){ve.preventDefault();return}typeof j=="string"&&z.length<j.length&&document.dispatchEvent(new Event("selectionchange")),I(z)},[o,I,j,T]),se=S.useCallback(()=>{var ve;if(U.current){let z=Math.min(U.current.value.length,o-1),Se=U.current.value.length;(ve=U.current)==null||ve.setSelectionRange(z,Se),P(z),X(Se)}q(!0)},[o]),pe=S.useCallback(ve=>{var z,Se;let Me=U.current;if(!h&&(!G.current.isIOS||!ve.clipboardData||!Me))return;let De=ve.clipboardData.getData("text/plain"),xe=h?h(De):De;ve.preventDefault();let ze=(z=U.current)==null?void 0:z.selectionStart,me=(Se=U.current)==null?void 0:Se.selectionEnd,Le=(ze!==me?k.slice(0,ze)+xe+k.slice(me):k.slice(0,ze)+xe+k.slice(ze)).slice(0,o);if(Le.length>0&&T&&!T.test(Le))return;Me.value=Le,I(Le);let Ue=Math.min(Le.length,o-1),Bt=Le.length;Me.setSelectionRange(Ue,Bt),P(Ue),X(Bt)},[o,I,T,k]),le=S.useMemo(()=>
251({position:"relative",cursor:m.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[m.disabled]),he=S.useMemo(()=>({position:"absolute",inset:0,width:Z.willPushPWMBadge?`calc(100% + ${Z.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Z.willPushPWMBadge?`inset(0 ${Z.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:a,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Z.PWM_BADGE_SPACE_WIDTH,Z.willPushPWMBadge,a]),Ae=S.useMemo(()=>S.createElement("input",nae(rae({autoComplete:m.autoComplete||"one-time-code"},m),{"data-input-otp":!0,"data-input-otp-placeholder-shown":k.length===0||void 0,"data-input-otp-mss":re,"data-input-otp-mse":D,inputMode:A,pattern:T==null?void 0:T.source,"aria-placeholder":l,style:he,maxLength:o,value:k,ref:U,onPaste:ve=>{var z;pe(ve),(z=m.onPaste)==null||z.call(m,ve)},onChange:ae,onMouseOver:ve=>{var z;Q(!0),(z=m.onMouseOver)==null||z.call(m,ve)},onMouseLeave:ve=>{var z;Q(!1),(z=m.onMouseLeave)==null||z.call(m,ve)},onFocus:ve=>{var z;se(),(z=m.onFocus)==null||z.call(m,ve)},onBlur:ve=>{var z;q(!1),(z=m.onBlur)==null||z.call(m,ve)}})),[ae,se,pe,A,he,o,D,re,m,T==null?void 0:T.source,k]),ue=S.useMemo(()=>({slots:Array.from({length:o}).map((ve,z)=>{var Se;let Me=H&&re!==null&&D!==null&&(re===D&&z===re||z>=re&&z<D),De=k[z]!==void 0?k[z]:null,xe=k[0]!==void 0?null:(Se=l==null?void 0:l[z])!=null?Se:null;return{char:De,placeholderChar:xe,isActive:Me,hasFakeCaret:Me&&De===null}}),isFocused:H,isHovering:!m.disabled&&V}),[H,V,o,D,re,m.disabled,k]),_e=S.useMemo(()=>p?p(ue):S.createElement(F$.Provider,{value:ue},v),[v,ue,p]);return S.createElement(S.Fragment,null,g!==null&&S.createElement("noscript",null,S.createElement("style",null,g)),S.createElement("div",{ref:R,"data-input-otp-container":!0,style:le,className:f},_e,S.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},Ae)))});N$.displayName="Input";function Vp(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var uae=`
252[data-input-otp] {
253  --nojs-bg: white !important;
254  --nojs-fg: black !important;
255
256  background-color: var(--nojs-bg) !important;
257  color: var(--nojs-fg) !important;
258  caret-color: var(--nojs-fg) !important;
259  letter-spacing: .25em !important;
260  text-align: center !important;
261  border: 1px solid var(--nojs-fg) !important;
262  border-radius: 4px !important;
263  width: 100% !important;
264}
265@media (prefers-color-scheme: dark) {
266  [data-input-otp] {
267    --nojs-bg: black !important;
268    --nojs-fg: white !important;
269  }
270}`;const T$=S.forwardRef(({className:e,containerClassName:t,...r},n)=>c.jsx(N$,{ref:n,containerClassName:Jt("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:Jt("disabled:cursor-not-allowed",e),...r}));T$.displayName="InputOTP";const O$=S.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:Jt("flex items-center",e),...t}));O$.displayName="InputOTPGroup";const nl=S.forwardRef(({index:e,className:t,...r},n)=>{const i=S.useContext(F$),{char:o,hasFakeCaret:a,isActive:s}=i.slots[e];return c.jsxs("div",{ref:n,className:Jt("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",s&&"z-10 ring-2 ring-ring ring-offset-background",t),...r,children:[o,a&&c.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:c.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})});nl.displayName="InputOTPSlot";const dae=S.forwardRef(({...e},t)=>c.jsx("div",{ref:t,role:"separator",...e,children:c.jsx(SJ,{})}));dae.displayName="InputOTPSeparator";const hae="https://flipfactor.ai/results",fae=()=>{const[e,t]=S.useState("loading"),[r,n]=S.useState(""),[i,o]=S.useState(""),[a,s]=S.useState(""),[l,A]=S.useState(!1),[u,d]=S.useState(""),[h,f]=S.useState(!1),[g,p]=S.useState(""),[v,m]=S.useState(!1),[w,b]=S.useState(!1),[E,B]=S.useState(""),[_,F]=S.useState(""),[O,k]=S.useState(!1),j=gc();S.useEffect(()=>{const V=async()=>{var q;const{data:{session:H}}=await Tt.auth.getSession();if((q=H==null?void 0:H.user)!=null&&q.email)n(H.user.email),t("authenticated");else{const P=new URLSearchParams(window.location.search).get("email");P&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P)?(o(P.toLowerCase().trim()),t("otp-verify")):t("email-form")}},{data:{subscription:Q}}=Tt.auth.onAuthStateChange((H,q)=>{var re;(re=q==null?void 0:q.user)!=null&&re.email&&(n(q.user.email),t("authenticated"))});return V(),()=>Q.unsubscribe()},[]),S.useEffect(()=>{e==="authenticated"&&r&&(B(r),G(r))},[e,r]);const I=async V=>{const Q=V||i;if(Q){A(!0),d(""),b(!0);try{const{error:H}=await Tt.auth.signInWithOtp({email:Q.toLowerCase().trim(),options:{shouldCreateUser:!0}});H?d(H.message):(o(Q.toLowerCase().trim()),t("otp-verify"))}catch{d("Something went wrong. Please try again.")}finally{A(!1)}}},T=async()=>
270{if(i){A(!0),d("");try{const{error:V}=await Tt.auth.signInWithOtp({email:i.toLowerCase().trim(),options:{emailRedirectTo:hae}});V?d(V.message):t("check-email")}catch{d("Something went wrong. Please try again.")}finally{A(!1)}}},U=async()=>{v||(m(!0),await I(i),setTimeout(()=>m(!1),3e4))},R=async()=>{var V,Q;if(!(!i||!a||a.length!==8)){f(!0),p("");try{const{error:H}=await Tt.auth.verifyOtp({email:i.toLowerCase().trim(),token:a,type:"email"});if(H){let q=!1;try{const{data:re,error:P}=await Tt.functions.invoke("verify-admin-otp",{body:{email:i.toLowerCase().trim(),code:a}});if(!P&&(re!=null&&re.token_hash)){const{error:D}=await Tt.auth.verifyOtp({token_hash:re.token_hash,type:"magiclink"});if(!D){q=!0,p("");const{data:{session:X}}=await Tt.auth.getSession();(V=X==null?void 0:X.user)!=null&&V.email&&(n(X.user.email),t("authenticated"))}}}catch{}q||p(H.message)}else{p("");const{data:{session:q}}=await Tt.auth.getSession();(Q=q==null?void 0:q.user)!=null&&Q.email&&(n(q.user.email),t("authenticated"))}}catch{p("Something went wrong. Please try again.")}finally{f(!1)}}},G=S.useCallback(async V=>{F(""),k(!0);try{const Q=await A$(V);Q.route==="leader"?j("/leader-dashboard",{state:{email:V.toLowerCase().trim(),sourceTab:Q.sourceTab}}):Q.route==="individual"?j("/individual-dashboard",{state:{email:V.toLowerCase().trim(),sourceTab:Q.sourceTab}}):F(Q.error||"We couldn't find results for that email. Please check your entry or contact [email protected]")}catch{F("Something went wrong. Please try again.")}finally{k(!1)}},[j]),K=async()=>{await Tt.auth.signOut(),t("email-form"),n(""),B(""),F(""),s(""),p("")};return e==="loading"?c.jsx("div",{className:"flex min-h-screen flex-col items-center justify-center bg-background px-4",children:c.jsxs("div",{className:"flex w-full max-w-md flex-col items-center",children:[c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"mb-12 w-auto",style:{height:"120px"}}),c.jsx("p",{className:"text-muted-foreground",children:"Loading…"})]})}):e==="email-form"?c.jsx("div",{className:"flex min-h-screen flex-col items-center justify-center bg-background px-4",children:c.jsxs("div",{className:"flex w-full max-w-md flex-col items-center",children:[c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"mb-12 w-auto",style:{height:"120px"}}),c.jsx("h1",{className:"mb-2 text-center text-4xl font-bold tracking-tight text-foreground md:text-5xl",children:"FlipFactor™"}),c.jsx("p",{className:"mb-10 text-center text-lg text-muted-foreground",children:"AI Readiness Diagnostic Results"}),c.jsxs("form",{onSubmit:V=>{V.preventDefault(),I()},className:"w-full space-y-4",children:[c.jsx("input",{type:"email",value:i,onChange:V=>o(V.target.value),placeholder:"Enter the email you used to take the diagnostic",required:!0,className:"flex h-12 w-full rounded-md border border-input bg-background px-4 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Make sure you are using the same email address you used to take the FlipFactor™ diagnostic. Your results are tied to that email."}),c.jsx("button",{type:"submit",disabled:l,className:"h-12 w-full rounded-md bg-primary font-semibold text-primary-foreground transition-opacity hover:opacity-90 disabled:opacity-50",children:l?"Sending code…":"Send My Code"})]}),u&&c.jsx("p",{className:"mt-4 text-center text-sm text-destructive",children:u}),w&&!l&&c.jsxs("div",{className:"mt-4 text-center text-xs text-muted-foreground leading-relaxed",children:[c.jsx("span",{className:"font-medium text-foreground",children:"Didn't receive the code?"})," ","Check your spam folder first. If you're on a corporate network, your IT team may need to whitelist [email protected]. Need help? Email us at"," ",c.jsx("a",{href:"mailto:[email protected]",className:"underline hover:text-foreground",children:"[email protected]"})," ","and we'll send you a direct access link."]}),c.jsxs("p",{className:"mt-8 text-center text-xs text-muted-foreground",children:["We'll send an 8-digit verification code to your email. No links to click.",c.jsx("br",{}),"Powered by FlipWork · flipwork.ai"]})]})}):e==="otp-verify"?c.jsx("div",{className:"flex min-h-screen flex-col items-center justify-center bg-background px-4",children:c.jsxs("div",{className:"flex w-full max-w-md flex-col items-center",children:[c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"mb-12 w-auto",style:{height:"120px"}}),c.jsx("h2",{className:"mb-2 text-center text-2xl font-bold tracking-tight text-foreground",children:"Check Your Email"}),c.jsxs("p",{className:"mb-6 text-center text-sm text-muted-foreground",children:["We sent an 8-digit code to"," ",c.jsx("span",{className:"font-semibold text-foreground",children:i}),"."," ","Enter it below to view your FlipFactor™ results. The code expires in 60 minutes."]}),c.jsxs("div",{className:"w-full flex flex-col items-center space-y-6",children:[c.jsx(T$,{maxLength:8,value:a,onChange:V=>s(V),disabled:h,children:c.jsxs(O$,{children:[c.jsx(nl,{index:0}),c.jsx(nl,{index:1}),c.jsx(nl,{index:2}),c.jsx(nl,{index:3}),c.jsx(nl,{index:4}),c.jsx(nl,{index:5}),c.jsx(nl,{index:6}),c.jsx(nl,{index:7})]})}),c.jsx("button",{onClick:R,disabled:h||a.length!==8,className:"h-12 w-full rounded-md font-semibold text-white transition-opacity hover:opacity-90 disabled:opacity-50",style:{backgroundColor:"#FFC100"},children:h?"Verifying…":"Verify and View Results"}),g&&c.jsx("p",{className:"text-center text-sm text-destructive",children:g}),c.jsxs("div",{className:"flex flex-col items-center gap-3",children:[c.jsx("button",{onClick:U,disabled:v,className:"text-sm text-muted-foreground underline underline-offset-4 hover:text-foreground disabled:opacity-50 disabled:no-underline",children:v?"New code sent. Only the newest code works.":"Didn't receive it? Corporate email filters can take several minutes. Resend (this replaces your old code)."}),c.jsx("button",{onClick:T,disabled:l,className:"text-sm text-muted-foreground underline underline-offset-4 hover:text-foreground disabled:opacity-50",children:"Send me a link instead."})]}),c.jsx("p",{className:"text-center text-xs text-muted-foreground",children:"Make sure you are using the same email address you used to take the FlipFactor™ diagnostic. Your results are tied to that email."})]}),c.jsx("p",{className:"mt-8 text-center text-xs text-muted-foreground",children:"Powered by FlipWork · flipwork.ai"})]})}):e==="check-email"?c.jsx("div",{className:"flex min-h-screen flex-col items-center justify-center bg-background px-4",children:c.jsxs("div",{className:"flex w-full max-w-md flex-col items-center",children:[c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"mb-12 w-auto",style:{height:"120px"}}),c.jsx("div",{className:"mb-3 flex h-16 w-16 items-center justify-center rounded-full",style:{backgroundColor:"#FFC100"},children:c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"#1A1918",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}),c.jsx("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]})}),c.jsx("h2",{className:"mb-2 text-center text-2xl font-bold tracking-tight text-foreground",children:"Check Your Email"}),c.jsx("p",{className:"mb-1 text-center text-sm text-muted-foreground",children:"We sent a secure login link to"}),c.jsx("p",{className:"mb-4 text-center text-sm font-semibold text-foreground",children:i}),c.jsxs("p",{className:"mb-8 text-center text-sm text-muted-foreground",children:["Click the link to view your FlipFactor™ results.",c.jsx("br",{}),"The link expires in 60 minutes."]}),c.jsx("button",{onClick:U,disabled:v,className:"text-sm text-muted-foreground underline underline-offset-4 hover:text-foreground disabled:opacity-50 disabled:no-underline",children:v?"Link sent — check your inbox":"Didn't receive it? Resend the link"}),c.jsx("p",{className:"mt-4 text-center text-xs text-muted-foreground",children:"Make sure you are using the same email address you used to take the FlipFactor™ diagnostic. Your results are tied to that email."}),c.jsx("p",{className:"mt-8 text-center text-xs text-muted-foreground",children:"Powered by FlipWork · flipwork.ai"})]})}):c.jsx("div",{className:"flex min-h-screen flex-col items-center justify-center bg-background px-4",children:c.jsxs("div",{className:"flex w-full max-w-md flex-col items-center",children:[c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"mb-12 w-auto",style:{height:"120px"}}),c.jsx("h1",{className:"mb-2 text-center text-4xl font-bold tracking-tight text-foreground md:text-5xl",children:"FlipFactor™"}),c.jsx("p",{className:"mb-10 text-center text-lg text-muted-foreground",children:"AI Readiness Diagnostic Results"}),O&&c.jsx("p",{className:"text-center text-sm text-muted-foreground",children:"Looking up your results…"}),_&&c.jsx("p",{className:"mt-4 text-center text-sm text-destructive",children:_}),c.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Signed in as ",r]}),c.jsx("button",{onClick:K,className:"text-xs text-muted-foreground underline underline-offset-4 hover:text-foreground",children:"Sign out"})]}),c.jsx("p",{className:"mt-8 text-center text-xs text-muted-foreground",children:"Powered by FlipWork · flipwork.ai"})]})})},pae="modulepreload",gae=function(e){return"/"+e},aj={},Wg=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(r.map(l=>{if(l=gae(l),l in aj)return;aj[l]=!0;const A=l.endsWith(".css"),u=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=A?"stylesheet":pae,A||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),A)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},mae=["[email protected]","[email protected]"];async function sF(){var t;const{data:{session:e}}=await Tt.auth.getSession();return(t=e==null?void 0:e.user)!=null&&t.email?mae.includes(e.user.email.toLowerCase().trim()):!1}/*!
271 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
272 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
273 * Released under MIT License
274 *//*! *****************************************************************************
275Copyright (c) Microsoft Corporation.
276
277Permission to use, copy, modify, and/or distribute this software for any
278purpose with or without fee is hereby granted.
279
280THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
281REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
282AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
283INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
284LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
285OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
286PERFORMANCE OF THIS SOFTWARE.
287***************************************************************************** */var EC=function(e,t){return EC=Object.
vendor: 5,962 bytes, line 287
287setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},EC(e,t)};function Va(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");EC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _C=function(){return _C=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},_C.apply(this,arguments)};function Hi(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{A(n.next(u))}catch(d){a(d)}}function l(u){try{A(n.throw(u))}catch(d){a(d)}}function A(u){u.done?o(u.value):i(u.value).then(s,l)}A((n=n.apply(e,[])).next())})}function Oi(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(A){return function(u){return l([A,u])}}function l(A){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=A[0]&2?i.return:A[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,A[1])).done)return o;switch(i=0,o&&(A=[A[0]&2,o.value]),A[0]){case 0:case 1:o=A;break;case 4:return r.label++,{value:A[1],done:!1};case 5:r.label++,i=A[1],A=[0];continue;case 7:A=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(A[0]===6||A[0]===2)){r=0;continue}if(A[0]===3&&(!o||A[1]>o[0]&&A[1]<o[3])){r.label=A[1];break}if(A[0]===6&&r.label<o[1]){r.label=o[1],o=A;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(A);break}o[2]&&r.ops.pop(),r.trys.pop();continue}A=t.call(e,r)}catch(u){A=[6,u],i=0}finally{n=o=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}}function w0(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||t)}var Nl=function(){function e(t,r,n,i){this.left=t,this.top=r,this.width=n,this.height=i}return e.prototype.add=function(t,r,n,i){return new e(this.left+t,this.top+r,this.width+n,this.height+i)},e.fromClientRect=function(t,r){return new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(t,r){var n=Array.from(r).find(function(i){return i.width!==0});return n?new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),Px=function(e,t){return Nl.fromClientRect(e,t.getBoundingClientRect())},yae=function(e){var t=e.body,r=e.documentElement;if(!t||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),i=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new Nl(0,0,n,i)},Lx=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);(o&64512)===56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),r--)}else t.push(i)}return t},In=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],i=-1,o="";++i<r;){var a=e[i];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(i+1===r||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},sj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vae=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var b0=0;b0<sj.length;b0++)vae[sj.charCodeAt(b0)]=b0;var lj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yg=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var x0=0;x0<lj.length;x0++)yg[lj.charCodeAt(x0)]=x0;var wae=function(e){var t=e.length*.75,r=e.length,n,i=0,o,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var A=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),u=Array.isArray(A)?A:new Uint8Array(A);for(n=0;n<r;n+=4)o=yg[e.charCodeAt(n)],a=yg[e.charCodeAt(n+1)],s=yg[e.charCodeAt(n+2)],l=yg[e.charCodeAt(n+3)],u[i++]=o<<2|a>>4,u[i++]=(a&15)<<4|s>>2,u[i++]=(s&3)<<6|l&63;return A},bae=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},xae=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},_u=5,lF=11,mE=2,Bae=lF-_u,j$=65536>>_u,Eae=1<<_u,yE=Eae-1,_ae=1024>>_u,Sae=j$+_ae,Cae=Sae,Iae=32,kae=Cae+Iae,Fae=65536>>lF,Nae=1<<Bae,Tae=Nae-1,Aj=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},Oae=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},jae=function(e,t){var r=wae(e),n=Array.isArray(r)?xae(r):new Uint32Array(r),i=Array.isArray(r)?bae(r):new Uint16Array(r),o=24,a=Aj(i,o/2,n[4]/2),s=n[5]===2?Aj(i,(o+n[4])/2):Oae(n,Math.ceil((o+n[4])/4));return new Pae(n[0],n[1],n[2],n[3],a,s)},Pae=function(){function e(t,r,n,i,o,a){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=i,this.index=o,this.data=a}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>_u],r=(r<<mE)+(t&yE),this.data[r];if(t<=65535)return r=this.index[j$+(t-55296>>_u)],r=(r<<mE)+(t&yE),this.data[r];if(t<this.highStart)return r=kae-Fae+(t>>lF),r=this.index[r],r+=t>>_u&Tae,r=this.index[r],r=(r<<mE)+(t&yE),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),cj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
287+/",Lae=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var B0=0;B0<cj.length;B0++)Lae[cj.charCodeAt(B0)]=B0;var Uae=
vendor: 52,891 bytes, line 287
287"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: 3,574 bytes, line 287
287uj=50,Rae=1,P$=2,L$=3,Dae=4,Qae=5,dj=7,U$=8,hj=9,jA=10,SC=11,fj=12,CC=13,Mae=14,vg=15,IC=16,E0=17,zp=18,$ae=19,pj=20,kC=21,Wp=22,vE=23,Nd=24,Co=25,wg=26,bg=27,Td=28,Hae=29,tu=30,Kae=31,_0=32,S0=33,FC=34,NC=35,TC=36,Dm=37,OC=38,Mw=39,$w=40,wE=41,R$=42,Vae=43,zae=[9001,65288],D$="!",nr="×",C0="÷",jC=jae(Uae),Xs=[tu,TC],PC=[Rae,P$,L$,Qae],Q$=[jA,U$],gj=[bg,wg],Wae=PC.concat(Q$),mj=[OC,Mw,$w,FC,NC],Gae=[vg,CC],Yae=function(e,t){t===void 0&&(t="strict");var r=[],n=[],i=[];return e.forEach(function(o,a){var s=jC.get(o);if(s>uj?(i.push(!0),s-=uj):i.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(o)!==-1)return n.push(a),r.push(IC);if(s===Dae||s===SC){if(a===0)return n.push(a),r.push(tu);var l=r[a-1];return Wae.indexOf(l)===-1?(n.push(n[a-1]),r.push(l)):(n.push(a),r.push(tu))}if(n.push(a),s===Kae)return r.push(t==="strict"?kC:Dm);if(s===R$||s===Hae)return r.push(tu);if(s===Vae)return o>=131072&&o<=196605||o>=196608&&o<=262141?r.push(Dm):r.push(tu);r.push(s)}),[n,r,i]},bE=function(e,t,r,n){var i=n[r];if(Array.isArray(e)?e.indexOf(i)!==-1:e===i)for(var o=r;o<=n.length;){o++;var a=n[o];if(a===t)return!0;if(a!==jA)break}if(i===jA)for(var o=r;o>0;){o--;var s=n[o];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var l=r;l<=n.length;){l++;var a=n[l];if(a===t)return!0;if(a!==jA)break}if(s!==jA)break}return!1},yj=function(e,t){for(var r=e;r>=0;){var n=t[r];if(n===jA)r--;else return n}return 0},qae=function(e,t,r,n,i){if(r[n]===0)return nr;var o=n-1;if(Array.isArray(i)&&i[o]===!0)return nr;var a=o-1,s=o+1,l=t[o],A=a>=0?t[a]:0,u=t[s];if(l===P$&&u===L$)return nr;if(PC.indexOf(l)!==-1)return D$;if(PC.indexOf(u)!==-1||Q$.indexOf(u)!==-1)return nr;if(yj(o,t)===U$)return C0;if(jC.get(e[o])===SC||(l===_0||l===S0)&&jC.get(e[s])===SC||l===dj||u===dj||l===hj||[jA,CC,vg].indexOf(l)===-1&&u===hj||[E0,zp,$ae,Nd,Td].indexOf(u)!==-1||yj(o,t)===Wp||bE(vE,Wp,o,t)||bE([E0,zp],kC,o,t)||bE(fj,fj,o,t))return nr;if(l===jA)return C0;if(l===vE||u===vE)return nr;if(u===IC||l===IC)return C0;if([CC,vg,kC].indexOf(u)!==-1||l===Mae||A===TC&&Gae.indexOf(l)!==-1||l===Td&&u===TC||u===pj||Xs.indexOf(u)!==-1&&l===Co||Xs.indexOf(l)!==-1&&u===Co||l===bg&&[Dm,_0,S0].indexOf(u)!==-1||[Dm,_0,S0].indexOf(l)!==-1&&u===wg||Xs.indexOf(l)!==-1&&gj.indexOf(u)!==-1||gj.indexOf(l)!==-1&&Xs.indexOf(u)!==-1||[bg,wg].indexOf(l)!==-1&&(u===Co||[Wp,vg].indexOf(u)!==-1&&t[s+1]===Co)||[Wp,vg].indexOf(l)!==-1&&u===Co||l===Co&&[Co,Td,Nd].indexOf(u)!==-1)return nr;if([Co,Td,Nd,E0,zp].indexOf(u)!==-1)for(var d=o;d>=0;){var h=t[d];if(h===Co)return nr;if([Td,Nd].indexOf(h)!==-1)d--;else break}if([bg,wg].indexOf(u)!==-1)for(var d=[E0,zp].indexOf(l)!==-1?a:o;d>=0;){var h=t[d];if(h===Co)return nr;if([Td,Nd].indexOf(h)!==-1)d--;else break}if(OC===l&&[OC,Mw,FC,NC].indexOf(u)!==-1||[Mw,FC].indexOf(l)!==-1&&[Mw,$w].indexOf(u)!==-1||[$w,NC].indexOf(l)!==-1&&u===$w||mj.indexOf(l)!==-1&&[pj,wg].indexOf(u)!==-1||mj.indexOf(u)!==-1&&l===bg||Xs.indexOf(l)!==-1&&Xs.indexOf(u)!==-1||l===Nd&&Xs.indexOf(u)!==-1||Xs.concat(Co).indexOf(l)!==-1&&u===Wp&&zae.indexOf(e[s])===-1||Xs.concat(Co).indexOf(u)!==-1&&l===zp)return nr;if(l===wE&&u===wE){for(var f=r[o],g=1;f>0&&(f--,t[f]===wE);)g++;if(g%2!==0)return nr}return l===_0&&u===S0?nr:C0},Xae=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=Yae(e,t.lineBreak),n=r[0],i=r[1],o=r[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(i=i.map(function(s){return[Co,tu,R$].indexOf(s)!==-1?Dm:s}));var a=t.wordBreak==="keep-all"?o.map(function(s,l){return s&&e[l]>=19968&&e[l]<=40959}):void 0;return[n,i,a]}
vendor: 15,590 bytes, line 287
287,Jae=function(){function e(t,r,n,i){this.codePoints=t,this.required=r===D$,this.start=n,this.end=i}return e.prototype.slice=function(){return In.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Zae=function(e,t){var r=Lx(e),n=Xae(r,t),i=n[0],o=n[1],a=n[2],s=r.length,l=0,A=0;return{next:function(){if(A>=s)return{done:!0,value:null};for(var u=nr;A<s&&(u=qae(r,o,i,++A,a))===nr;);if(u!==nr||A===s){var d=new Jae(r,u,l,A);return l=A,{value:d,done:!1}}return{done:!0,value:null}}}},ese=1,tse=2,Wy=4,vj=8,K1=10,wj=47,Gg=92,rse=9,nse=32,I0=34,Gp=61,ise=35,ose=36,ase=37,k0=39,F0=40,Yp=41,sse=95,ao=45,lse=33,Ase=60,cse=62,use=64,dse=91,hse=93,fse=61,pse=123,N0=63,gse=125,bj=124,mse=126,yse=128,xj=65533,xE=42,cu=43,vse=44,wse=58,bse=59,Qm=46,xse=0,Bse=8,Ese=11,_se=14,Sse=31,Cse=127,os=-1,M$=48,$$=97,H$=101,Ise=102,kse=117,Fse=122,K$=65,V$=69,z$=70,Nse=85,Tse=90,ji=function(e){return e>=M$&&e<=57},Ose=function(e){return e>=55296&&e<=57343},Od=function(e){return ji(e)||e>=K$&&e<=z$||e>=$$&&e<=Ise},jse=function(e){return e>=$$&&e<=Fse},Pse=function(e){return e>=K$&&e<=Tse},Lse=function(e){return jse(e)||Pse(e)},Use=function(e){return e>=yse},T0=function(e){return e===K1||e===rse||e===nse},V1=function(e){return Lse(e)||Use(e)||e===sse},Bj=function(e){return V1(e)||ji(e)||e===ao},Rse=function(e){return e>=xse&&e<=Bse||e===Ese||e>=_se&&e<=Sse||e===Cse},yA=function(e,t){return e!==Gg?!1:t!==K1},O0=function(e,t,r){return e===ao?V1(t)||yA(t,r):V1(e)?!0:!!(e===Gg&&yA(e,t))},BE=function(e,t,r){return e===cu||e===ao?ji(t)?!0:t===Qm&&ji(r):ji(e===Qm?t:e)},Dse=function(e){var t=0,r=1;(e[t]===cu||e[t]===ao)&&(e[t]===ao&&(r=-1),t++);for(var n=[];ji(e[t]);)n.push(e[t++]);var i=n.length?parseInt(In.apply(void 0,n),10):0;e[t]===Qm&&t++;for(var o=[];ji(e[t]);)o.push(e[t++]);var a=o.length,s=a?parseInt(In.apply(void 0,o),10):0;(e[t]===V$||e[t]===H$)&&t++;var l=1;(e[t]===cu||e[t]===ao)&&(e[t]===ao&&(l=-1),t++);for(var A=[];ji(e[t]);)A.push(e[t++]);var u=A.length?parseInt(In.apply(void 0,A),10):0;return r*(i+s*Math.pow(10,-a))*Math.pow(10,l*u)},Qse={type:2},Mse={type:3},$se={type:4},Hse={type:13},Kse={type:8},Vse={type:21},zse={type:9},Wse={type:10},Gse={type:11},Yse={type:12},qse={type:14},j0={type:23},Xse={type:1},Jse={type:25},Zse={type:24},ele={type:26},tle={type:27},rle={type:28},nle={type:29},ile={type:31},LC={type:32},W$=function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(Lx(t))},e.prototype.read=function(){for(var t=[],r=this.consumeToken();r!==LC;)t.push(r),r=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case I0:return this.consumeStringToken(I0);case ise:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(Bj(r)||yA(n,i)){var o=O0(r,n,i)?tse:ese,a=this.consumeName();return{type:5,value:a,flags:o}}break;case ose:if(this.peekCodePoint(0)===Gp)return this.consumeCodePoint(),Hse;break;case k0:return this.consumeStringToken(k0);case F0:return Qse;case Yp:return Mse;case xE:if(this.peekCodePoint(0)===Gp)return this.consumeCodePoint(),qse;break;case cu:if(BE(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case vse:return $se;case ao:var s=t,l=this.peekCodePoint(0),A=this.peekCodePoint(1);if(BE(s,l,A))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(O0(s,l,A))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(l===ao&&A===cse)return this.consumeCodePoint(),this.consumeCodePoint(),Zse;break;case Qm:if(BE(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case wj:if(this.peekCodePoint(0)===xE)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===xE&&(u=this.consumeCodePoint(),u===wj))return this.consumeToken();if(u===os)return this.consumeToken()}break;case wse:return ele;case bse:return tle;case Ase:if(this.peekCodePoint(0)===lse&&this.peekCodePoint(1)===ao&&this.peekCodePoint(2)===ao)return this.consumeCodePoint(),this.consumeCodePoint(),Jse;break;case use:var d=this.peekCodePoint(0),h=this.peekCodePoint(1),f=this.peekCodePoint(2);if(O0(d,h,f)){var a=this.consumeName();return{type:7,value:a}}break;case dse:return rle;case Gg:if(yA(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case hse:return nle;case fse:if(this.peekCodePoint(0)===Gp)return this.consumeCodePoint(),Kse;break;case pse:return Gse;case gse:return Yse;case kse:case Nse:var g=this.peekCodePoint(0),p=this.peekCodePoint(1);return g===cu&&(Od(p)||p===N0)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case bj:if(this.peekCodePoint(0)===Gp)return this.consumeCodePoint(),zse;if(this.peekCodePoint(0)===bj)return this.consumeCodePoint(),Vse;break;case mse:if(this.peekCodePoint(0)===Gp)return this.consumeCodePoint(),Wse;break;case os:return LC}return T0(t)?(this.consumeWhiteSpace(),ile):ji(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):V1(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:In(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=[],r=this.consumeCodePoint();Od(r)&&t.length<6;)t.push(r),r=this.consumeCodePoint();for(var n=!1;r===N0&&t.length<6;)t.push(r),r=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(In.apply(void 0,t.map(function(l){return l===N0?M$:l})),16),o=parseInt(In.apply(void 0,t.map(function(l){return l===N0?z$:l})),16);return{type:30,start:i,end:o}}var a=parseInt(In.apply(void 0,t),16);if(this.peekCodePoint(0)===ao&&Od(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var s=[];Od(r)&&s.length<6;)s.push(r),r=this.consumeCodePoint();var o=parseInt(In.apply(void 0,s),16);return{type:30,start:a,end:o}}else return{type:30,start:a,end:a}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===F0?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===F0?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===os)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===k0||r===I0){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===os||this.peekCodePoint(0)===Yp)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),j0)}for(;;){var i=this.consumeCodePoint();if(i===os||i===Yp)return{type:22,value:In.apply(void 0,t)};if(T0(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===os||this.peekCodePoint(0)===Yp?(this.consumeCodePoint(),{type:22,value:In.apply(void 0,t)}):(this.consumeBadUrlRemnants(),j0);if(i===I0||i===k0||i===F0||Rse(i))return this.consumeBadUrlRemnants(),j0;if(i===Gg)if(yA(i,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),j0;else t.push(i)}},e.prototype.consumeWhiteSpace=function(){for(;T0(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Yp||t===os)return;yA(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var r=5e4,n="";t>0;){var i=Math.min(r,t);n+=In.apply(void 0,this._value.splice(0,i)),t-=i}return this._value.shift(),n},e.prototype.consumeStringToken=function(t){var r="",n=0;do{var i=this._value[n];if(i===os||i===void 0||i===t)return r+=this.consumeStringSlice(n),{type:0,value:r};if(i===K1)return this._value.splice(0,n),Xse;if(i===Gg){var o=this._value[n+1];o!==os&&o!==void 0&&(o===K1?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):yA(i,o)&&(r+=this.consumeStringSlice(n),r+=In(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},e.prototype.consumeNumber=function(){var t=[],r=Wy,n=this.peekCodePoint(0);for((n===cu||n===ao)&&t.push(this.consumeCodePoint());ji(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===Qm&&ji(i))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=vj;ji(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((n===V$||n===H$)&&((i===cu||i===ao)&&ji(o)||ji(i)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=vj;ji(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[Dse(t),r]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),r=t[0],n=t[1],i=this.peekCodePoint(0),o=this.peekCodePoint(1),a=this.peekCodePoint(2);if(O0(i,o,a)){var s=this.consumeName();return{type:15,number:r,flags:n,unit:s}}return i===ase?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Od(t)){for(var r=In(t);Od(this.peekCodePoint(0))&&r.length<6;)r+=In(this.consumeCodePoint());T0(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||Ose(n)||n>1114111?xj:n}return t===os?xj:t},e.prototype.consumeName=function(){for(var t="";;){var r=this.consumeCodePoint();if(Bj(r))t+=In(r);else if(yA(r,this.peekCodePoint(0)))t+=In(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),t}},e}(),G$=function(){function e(t){this._tokens=t}return e.create=function(t){var r=new W$;return r.write(t),new e(r.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 r=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var r=this.consumeComponentValue();if(r.type===32)return t;t.push(r),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 r={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||ale(n,t))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var r={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?LC:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e}(),Gy=function(e){return e.type===15},Gf=function(e){return e.type===17},Tr=function(e){return e.type===20},ole=function(e){return e.type===0},UC=function(e,t){return Tr(e)&&e.value===t},Y$=function(e){return e.type!==31},Af=function(e){return e.type!==31&&e.type!==4},Ps=function(e){var t=[],r=[];return e.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&t.push(r),t},ale=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},sc=function(e){return e.type===17||e.type===15},Rn=function(e){return e.type===16||sc(e)},q$=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},mi={type:17,number:0,flags:Wy},AF={type:16,number:50,flags:Wy},PA={type:16,number:100,flags:Wy},xg=function(e,t,r){var n=e[0],i=e[1];return[Vr(n,t),Vr(typeof i<"u"?i:n,r)]},Vr=function(e,t){if(e.type===16)return e.number/100*t;if(Gy(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},X$="deg",J$="grad",Z$="rad",eH="turn",Ux={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case X$:return Math.PI*t.number/180;case J$:return Math.PI/200*t.number;case Z$:return t.number;case eH:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},tH=function(e){return e.type===15&&(e.unit===X$||e.unit===J$||e.unit===Z$||e.unit===eH)},rH=function(e){var t=e.filter(Tr).map(function(r){return r.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[mi,mi];case"to top":case"bottom":return sa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[mi,PA];case"to right":case"left":return sa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[PA,PA];case"to bottom":case"top":return sa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[PA,mi];case"to left":case"right":return sa(270)}return 0},sa=function(e){return Math.PI*e/180},GA={name:"color",parse:function(e,t){if(t.type===18){var r=sle[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(e,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);return LA(parseInt(n+n,16),parseInt(i+i,16),parseInt(o+o,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3),a=t.value.substring(3,4);return LA(parseInt(n+n,16),parseInt(i+i,16),parseInt(o+o,16),parseInt(a+a,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6);return LA(parseInt(n,16),parseInt(i,16),parseInt(o,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),a=t.value.substring(6,8);return LA(parseInt(n,16),parseInt(i,16),parseInt(o,16),parseInt(a,16)/255)}}if(t.type===20){var s=vl[t.value.toUpperCase()];if(typeof s<"u")return s}return vl.TRANSPARENT}},YA=function(e){return(255&e)===0},Jn=function(e){var t=255&e,r=255&e>>8,n=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+n+","+r+","+t/255+")":"rgb("+i+","+n+","+r+")"},LA=function(e,t,r,n){return(e<<24|t<<16|r<<8|Math.round(n*255)<<0)>>>0},Ej=function(e,t){if(e.type===17)return e.number;if(e.type===16){var r=t===3?1:255;return t===3?e.number/100*r:Math.round(e.number/100*r)}return 0},_j=function(e,t){var r=t.filter(Af);if(r.length===3){var n=r.map(Ej),i=n[0],o=n[1],a=n[2];return LA(i,o,a,1)}if(r.length===4){var s=r.map(Ej),i=s[0],o=s[1],a=s[2],l=s[3];return LA(i,o,a,l)}return 0};function EE(e,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(t-e)*r*6+e:r<1/2?t:r<2/3?(t-e)*6*(2/3-r)+e:e}var Sj=function(e,t){var r=t.filter(Af),n=r[0],i=r[1],o=r[2],a=r[3],s=(n.type===17?sa(n.number):Ux.parse(e,n))/(Math.PI*2),l=Rn(i)?i.number/100:0,A=Rn(o)?o.number/100:0,u=typeof a<"u"&&Rn(a)?Vr(a,1):1;if(l===0)return LA(A*255,A*255,A*255,1);var d=A<=.5?A*(l+1):A+l-A*l,h=A*2-d,f=EE(h,d,s+1/3),g=EE(h,d,s),p=EE(h,d,s-1/3);return LA(f*255,g*255,p*255,u)},sle={hsl:Sj,hsla:Sj,rgb:_j,rgba:_j},Yg=function(e,t){return GA.parse(e,G$.create(t).parseComponentValue())},vl
vendor: 3,054 bytes, line 287
287={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},
vendor: 10,041 bytes, line 287
287lle={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(Tr(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ale={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Rx=function(e,t){var r=GA.parse(e,t[0]),n=t[1];return n&&Rn(n)?{color:r,stop:n}:{color:r,stop:null}},Cj=function(e,t){var r=e[0],n=e[e.length-1];r.stop===null&&(r.stop=mi),n.stop===null&&(n.stop=PA);for(var i=[],o=0,a=0;a<e.length;a++){var s=e[a].stop;if(s!==null){var l=Vr(s,t);l>o?i.push(l):i.push(o),o=l}else i.push(null)}for(var A=null,a=0;a<i.length;a++){var u=i[a];if(u===null)A===null&&(A=a);else if(A!==null){for(var d=a-A,h=i[A-1],f=(u-h)/(d+1),g=1;g<=d;g++)i[A+g-1]=f*g;A=null}}return e.map(function(p,v){var m=p.color;return{color:m,stop:Math.max(Math.min(1,i[v]/t),0)}})},cle=function(e,t,r){var n=t/2,i=r/2,o=Vr(e[0],t)-n,a=i-Vr(e[1],r);return(Math.atan2(a,o)+Math.PI*2)%(Math.PI*2)},ule=function(e,t,r){var n=typeof e=="number"?e:cle(e,t,r),i=Math.abs(t*Math.sin(n))+Math.abs(r*Math.cos(n)),o=t/2,a=r/2,s=i/2,l=Math.sin(n-Math.PI/2)*s,A=Math.cos(n-Math.PI/2)*s;return[i,o-A,o+A,a-l,a+l]},ka=function(e,t){return Math.sqrt(e*e+t*t)},Ij=function(e,t,r,n,i){var o=[[0,0],[0,t],[e,0],[e,t]];return o.reduce(function(a,s){var l=s[0],A=s[1],u=ka(r-l,n-A);return(i?u<a.optimumDistance:u>a.optimumDistance)?{optimumCorner:s,optimumDistance:u}:a},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},dle=function(e,t,r,n,i){var o=0,a=0;switch(e.size){case 0:e.shape===0?o=a=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-i)):e.shape===1&&(o=Math.min(Math.abs(t),Math.abs(t-n)),a=Math.min(Math.abs(r),Math.abs(r-i)));break;case 2:if(e.shape===0)o=a=Math.min(ka(t,r),ka(t,r-i),ka(t-n,r),ka(t-n,r-i));else if(e.shape===1){var s=Math.min(Math.abs(r),Math.abs(r-i))/Math.min(Math.abs(t),Math.abs(t-n)),l=Ij(n,i,t,r,!0),A=l[0],u=l[1];o=ka(A-t,(u-r)/s),a=s*o}break;case 1:e.shape===0?o=a=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-i)):e.shape===1&&(o=Math.max(Math.abs(t),Math.abs(t-n)),a=Math.max(Math.abs(r),Math.abs(r-i)));break;case 3:if(e.shape===0)o=a=Math.max(ka(t,r),ka(t,r-i),ka(t-n,r),ka(t-n,r-i));else if(e.shape===1){var s=Math.max(Math.abs(r),Math.abs(r-i))/Math.max(Math.abs(t),Math.abs(t-n)),d=Ij(n,i,t,r,!1),A=d[0],u=d[1];o=ka(A-t,(u-r)/s),a=s*o}break}return Array.isArray(e.size)&&(o=Vr(e.size[0],n),a=e.size.length===2?Vr(e.size[1],i):o),[o,a]},hle=function(e,t){var r=sa(180),n=[];return Ps(t).forEach(function(i,o){if(o===0){var a=i[0];if(a.type===20&&a.value==="to"){r=rH(i);return}else if(tH(a)){r=Ux.parse(e,a);return}}var s=Rx(e,i);n.push(s)}),{angle:r,stops:n,type:1}},P0=function(e,t){var r=sa(180),n=[];return Ps(t).forEach(function(i,o){if(o===0){var a=i[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){r=rH(i);return}else if(tH(a)){r=(Ux.parse(e,a)+sa(270))%sa(360);return}}var s=Rx(e,i);n.push(s)}),{angle:r,stops:n,type:1}},fle=function(e,t){var r=sa(180),n=[],i=1,o=0,a=3,s=[];return Ps(t).forEach(function(l,A){var u=l[0];if(A===0){if(Tr(u)&&u.value==="linear"){i=1;return}else if(Tr(u)&&u.value==="radial"){i=2;return}}if(u.type===18){if(u.name==="from"){var d=GA.parse(e,u.values[0]);n.push({stop:mi,color:d})}else if(u.name==="to"){var d=GA.parse(e,u.values[0]);n.push({stop:PA,color:d})}else if(u.name==="color-stop"){var h=u.values.filter(Af);if(h.length===2){var d=GA.parse(e,h[1]),f=h[0];Gf(f)&&n.push({stop:{type:16,number:f.number*100,flags:f.flags},color:d})}}}}),i===1?{angle:(r+sa(180))%sa(360),stops:n,type:i}:{size:a,shape:o,stops:n,position:s,type:i}},nH="closest-side",iH="farthest-side",oH="closest-corner",aH="farthest-corner",sH="circle",lH="ellipse",AH="cover",cH="contain",ple=function(e,t){var r=0,n=3,i=[],o=[];return Ps(t).forEach(function(a,s){var l=!0;if(s===0){var A=!1;l=a.reduce(function(d,h){if(A)if(Tr(h))switch(h.value){case"center":return o.push(AF),d;case"top":case"left":return o.push(mi),d;case"right":case"bottom":return o.push(PA),d}else(Rn(h)||sc(h))&&o.push(h);else if(Tr(h))switch(h.value){case sH:return r=0,!1;case lH:return r=1,!1;case"at":return A=!0,!1;case nH:return n=0,!1;case AH:case iH:return n=1,!1;case cH:case oH:return n=2,!1;case aH:return n=3,!1}else if(sc(h)||Rn(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return d},l)}if(l){var u=Rx(e,a);i.push(u)}}),{size:n,shape:r,stops:i,position:o,type:2}},L0=function(e,t){var r=0,n=3,i=[],o=[];return Ps(t).forEach(function(a,s){var l=!0;if(s===0?l=a.reduce(function(u,d){if(Tr(d))switch(d.value){case"center":return o.push(AF),!1;case"top":case"left":return o.push(mi),!1;case"right":case"bottom":return o.push(PA),!1}else if(Rn(d)||sc(d))return o.push(d),!1;return u},l):s===1&&(l=a.reduce(function(u,d){if(Tr(d))switch(d.value){case sH:return r=0,!1;case lH:return r=1,!1;case cH:case nH:return n=0,!1;case iH:return n=1,!1;case oH:return n=2,!1;case AH:case aH:return n=3,!1}else if(sc(d)||Rn(d))return Array.isArray(n)||(n=[]),n.push(d),!1;return u},l)),l){var A=Rx(e,a);i.push(A)}}),{size:n,shape:r,stops:i,position:o,type:2}},gle=function(e){return e.type===1},mle=function(e){return e.type===2},cF={name:"image",parse:function(e,t){if(t.type===22){var r={url:t.value,type:0};return e.cache.addImage(t.value),r}if(t.type===18){var n=uH[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function yle(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!uH[e.name])}var uH={"linear-gradient":hle,"-moz-linear-gradient":P0,"-ms-linear-gradient":P0,"-o-linear-gradient":P0,"-webkit-linear-gradient":P0,"radial-gradient":ple,"-moz-radial-gradient":L0,"-ms-radial-gradient":L0,"-o-radial-gradient":L0,"-webkit-radial-gradient":L0,"-webkit-gradient":fle},vle={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t.filter(function(n){return Af(n)&&yle(n)}).map(function(n){return cF.parse(e,n)})}},wle={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(Tr(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ble={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Ps(t).map(function(r){return r.filter(Rn)}).map(q$)}},xle={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Ps(t).map(function(r){return r.filter(Tr).map(function(n){return n.value}).join(" ")}).map(Ble)}},Ble=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}},Th;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(Th||(Th={}));var Ele={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Ps(t).map(function(r){return r.filter(_le)})}},_le=function(e){return Tr(e)||Rn(e)},Dx=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Sle=Dx("top"),Cle=Dx("right"),Ile=Dx("bottom"),kle=Dx("left"),Qx=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,r){return q$(r.filter(Rn))}}},Fle=Qx("top-left"),Nle=Qx("top-right"),Tle=Qx("bottom-right"),Ole=Qx("bottom-left"),Mx=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},jle=Mx("top"),Ple=Mx("right"),Lle=Mx("bottom"),Ule=Mx("left"),$x=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return Gy(r)?r.number:0}}},Rle=$x("top"),Dle=$x("right"),Qle=$x("bottom"),Mle=$x("left"),$le={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Hle={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},Kle={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Tr).reduce(function(r,n){return r|Vle(n.value)},0)}},Vle=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},zle={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}},Wle={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}},z1;(function(e){e.NORMAL="normal",e.STRICT="strict"})(z1||(z1={}));var Gle={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return z1.STRICT;case"normal":default:return z1.NORMAL}}},Yle={name:"line-height",initialValue:"normal",prefix:!1,type:4},kj=function(e,t){return Tr(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:
vendor: 14,321 bytes, line 287
287Rn(e)?Vr(e,t):t},qle={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:cF.parse(e,t)}},Xle={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}}},RC={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}}},Hx=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Jle=Hx("top"),Zle=Hx("right"),eAe=Hx("bottom"),tAe=Hx("left"),rAe={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Tr).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},nAe={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"}}},Kx=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},iAe=Kx("top"),oAe=Kx("right"),aAe=Kx("bottom"),sAe=Kx("left"),lAe={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}}},AAe={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}},cAe={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&UC(t[0],"none")?[]:Ps(t).map(function(r){for(var n={color:vl.TRANSPARENT,offsetX:mi,offsetY:mi,blur:mi},i=0,o=0;o<r.length;o++){var a=r[o];sc(a)?(i===0?n.offsetX=a:i===1?n.offsetY=a:n.blur=a,i++):n.color=GA.parse(e,a)}return n})}},uAe={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}},dAe={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 r=pAe[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return r(t.values)}return null}},hAe=function(e){var t=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return t.length===6?t:null},fAe=function(e){var t=e.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=t[0],n=t[1];t[2],t[3];var i=t[4],o=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var a=t[12],s=t[13];return t[14],t[15],t.length===16?[r,n,i,o,a,s]:null},pAe={matrix:hAe,matrix3d:fAe},Fj={type:16,number:50,flags:Wy},gAe=[Fj,Fj],mAe={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var r=t.filter(Rn);return r.length!==2?gAe:[r[0],r[1]]}},yAe={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}}},qg;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(qg||(qg={}));var vAe={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return qg.BREAK_ALL;case"keep-all":return qg.KEEP_ALL;case"normal":default:return qg.NORMAL}}},wAe={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(Gf(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},dH={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")}},bAe={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Gf(t)?t.number:1}},xAe={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},BAe={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Tr).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},EAe={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var r=[],n=[];return t.forEach(function(i){switch(i.type){case 20:case 0:r.push(i.value);break;case 17:r.push(i.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},_Ae={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},SAe={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Gf(t))return t.number;if(Tr(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},CAe={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Tr).map(function(r){return r.value})}},IAe={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"}}},Gn=function(e,t){return(e&t)!==0},kAe={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t}},FAe={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;for(var n=[],i=t.filter(Y$),o=0;o<i.length;o++){var a=i[o],s=i[o+1];if(a.type===20){var l=s&&Gf(s)?s.number:1;n.push({counter:a.value,increment:l})}}return n}},NAe={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var r=[],n=t.filter(Y$),i=0;i<n.length;i++){var o=n[i],a=n[i+1];if(Tr(o)&&o.value!=="none"){var s=a&&Gf(a)?a.number:0;r.push({counter:o.value,reset:s})}}return r}},TAe={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Gy).map(function(r){return dH.parse(e,r)})}},OAe={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;var n=[],i=t.filter(ole);if(i.length%2!==0)return null;for(var o=0;o<i.length;o+=2){var a=i[o].value,s=i[o+1].value;n.push({open:a,close:s})}return n}},Nj=function(e,t,r){if(!e)return"";var n=e[Math.min(t,e.length-1)];return n?r?n.open:n.close:""},jAe={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&UC(t[0],"none")?[]:Ps(t).map(function(r){for(var n={color:255,offsetX:mi,offsetY:mi,blur:mi,spread:mi,inset:!1},i=0,o=0;o<r.length;o++){var a=r[o];UC(a,"inset")?n.inset=!0:sc(a)?(i===0?n.offsetX=a:i===1?n.offsetY=a:i===2?n.blur=a:n.spread=a,i++):n.color=GA.parse(e,a)}return n})}},PAe={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var r=[0,1,2],n=[];return t.filter(Tr).forEach(function(i){switch(i.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),r.forEach(function(i){n.indexOf(i)===-1&&n.push(i)}),n}},LAe={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},UAe={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Gy(t)?t.number:0}},RAe=function(){function e(t,r){var n,i;this.animationDuration=it(t,TAe,r.animationDuration),this.backgroundClip=it(t,lle,r.backgroundClip),this.backgroundColor=it(t,Ale,r.backgroundColor),this.backgroundImage=it(t,vle,r.backgroundImage),this.backgroundOrigin=it(t,wle,r.backgroundOrigin),this.backgroundPosition=it(t,ble,r.backgroundPosition),this.backgroundRepeat=it(t,xle,r.backgroundRepeat),this.backgroundSize=it(t,Ele,r.backgroundSize),this.borderTopColor=it(t,Sle,r.borderTopColor),this.borderRightColor=it(t,Cle,r.borderRightColor),this.borderBottomColor=it(t,Ile,r.borderBottomColor),this.borderLeftColor=it(t,kle,r.borderLeftColor),this.borderTopLeftRadius=it(t,Fle,r.borderTopLeftRadius),this.borderTopRightRadius=it(t,Nle,r.borderTopRightRadius),this.borderBottomRightRadius=it(t,Tle,r.borderBottomRightRadius),this.borderBottomLeftRadius=it(t,Ole,r.borderBottomLeftRadius),this.borderTopStyle=it(t,jle,r.borderTopStyle),this.borderRightStyle=it(t,Ple,r.borderRightStyle),this.borderBottomStyle=it(t,Lle,r.borderBottomStyle),this.borderLeftStyle=it(t,Ule,r.borderLeftStyle),this.borderTopWidth=it(t,Rle,r.borderTopWidth),this.borderRightWidth=it(t,Dle,r.borderRightWidth),this.borderBottomWidth=it(t,Qle,r.borderBottomWidth),this.borderLeftWidth=it(t,Mle,r.borderLeftWidth),this.boxShadow=it(t,jAe,r.boxShadow),this.color=it(t,$le,r.color),this.direction=it(t,Hle,r.direction),this.display=it(t,Kle,r.display),this.float=it(t,zle,r.cssFloat),this.fontFamily=it(t,EAe,r.fontFamily),this.fontSize=it(t,_Ae,r.fontSize),this.fontStyle=it(t,IAe,r.fontStyle),this.fontVariant=it(t,CAe,r.fontVariant),this.fontWeight=it(t,SAe,r.fontWeight),this.letterSpacing=it(t,Wle,r.letterSpacing),this.lineBreak=it(t,Gle,r.lineBreak),this.lineHeight=it(t,Yle,r.lineHeight),this.listStyleImage=it(t,qle,r.listStyleImage),this.listStylePosition=it(t,Xle,r.listStylePosition),this.listStyleType=it(t,RC,r.listStyleType),this.marginTop=it(t,Jle,r.marginTop),this.marginRight=it(t,Zle,r.marginRight),this.marginBottom=it(t,eAe,r.marginBottom),this.marginLeft=it(t,tAe,r.marginLeft),this.opacity=it(t,bAe,r.opacity);var o=it(t,rAe,r.overflow);this.overflowX=o[0],this.overflowY=o[o.length>1?1:0],this.overflowWrap=it(t,nAe,r.overflowWrap),this.paddingTop=it(t,iAe,r.paddingTop),this.paddingRight=it(t,oAe,r.paddingRight),this.paddingBottom=it(t,aAe,r.paddingBottom),this.paddingLeft=it(t,sAe,r.paddingLeft),this.paintOrder=it(t,PAe,r.paintOrder),this.position=it(t,AAe,r.position),this.textAlign=it(t,lAe,r.textAlign),this.textDecorationColor=it(t,xAe,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=it(t,BAe,(i=r.textDecorationLine)!==null&&i!==void 0?i:r.textDecoration),this.textShadow=it(t,cAe,r.textShadow),this.textTransform=it(t,uAe,r.textTransform),this.transform=it(t,dAe,r.transform),this.transformOrigin=it(t,mAe,r.transformOrigin),this.visibility=it(t,yAe,r.visibility),this.webkitTextStrokeColor=it(t,LAe,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=it(t,UAe,r.webkitTextStrokeWidth),this.wordBreak=it(t,vAe,r.wordBreak),this.zIndex=it(t,wAe,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return YA(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 Gn(this.display,4)||Gn(this.display,33554432)||Gn(this.display,268435456)||Gn(this.display,536870912)||Gn(this.display,67108864)||Gn(this.display,134217728)},e}(),DAe=function(){function e(t,r){this.content=it(t,kAe,r.content),this.quotes=it(t,OAe,r.quotes)}return e}(),Tj=function(){function e(t,r){this.counterIncrement=it(t,FAe,r.counterIncrement),this.counterReset=it(t,NAe,r.counterReset)}return e}(),it=function(e,t,r){var n=new W$,i=r!==null&&typeof r<"u"?r.toString():t.initialValue;n.write(i);var o=new G$(n.read());switch(t.type){case 2:var a=o.parseComponentValue();return t.parse(e,Tr(a)?a.value:t.initialValue);case 0:return t.parse(e,o.parseComponentValue());case 1:return t.parse(e,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(t.format){case"angle":return Ux.parse(e,o.parseComponentValue());case"color":return GA.parse(e,o.parseComponentValue());case"image":return cF.parse(e,o.parseComponentValue());case"length":var s=o.parseComponentValue();return sc(s)?s:mi;case"length-percentage":var l=o.parseComponentValue();return Rn(l)?l:mi;case"time":return dH.parse(e,o.parseComponentValue())}break}},QAe="data-html2canvas-debug",MAe=function(e){var t=e.getAttribute(QAe);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},DC=function(e,t){var r=MAe(e);return r===1||t===r},Ls=function(){function e(t,r){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,DC(r,3))debugger;this.styles=new RAe(t,window.getComputedStyle(r,null)),$C(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Px(this.context,r),DC(r,4)&&(this.flags|=16)}return e}(),$Ae=
vendor: 26,159 bytes, line 287
287"AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",
287Oj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 2,051 bytes, line 287
287+/",Bg=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var U0=0;U0<Oj.length;U0++)Bg[Oj.charCodeAt(U0)]=U0;var HAe=function(e){var t=e.length*.75,r=e.length,n,i=0,o,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var A=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),u=Array.isArray(A)?A:new Uint8Array(A);for(n=0;n<r;n+=4)o=Bg[e.charCodeAt(n)],a=Bg[e.charCodeAt(n+1)],s=Bg[e.charCodeAt(n+2)],l=Bg[e.charCodeAt(n+3)],u[i++]=o<<2|a>>4,u[i++]=(a&15)<<4|s>>2,u[i++]=(s&3)<<6|l&63;return A},KAe=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},VAe=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},Su=5,uF=11,_E=2,zAe=uF-Su,hH=65536>>Su,WAe=1<<Su,SE=WAe-1,GAe=1024>>Su,YAe=hH+GAe,qAe=YAe,XAe=32,JAe=qAe+XAe,ZAe=65536>>uF,ece=1<<zAe,tce=ece-1,jj=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},rce=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},nce=function(e,t){var r=HAe(e),n=Array.isArray(r)?VAe(r):new Uint32Array(r),i=Array.isArray(r)?KAe(r):new Uint16Array(r),o=24,a=jj(i,o/2,n[4]/2),s=n[5]===2?jj(i,(o+n[4])/2):rce(n,Math.ceil((o+n[4])/4));return new ice(n[0],n[1],n[2],n[3],a,s)},ice=function(){function e(t,r,n,i,o,a){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=i,this.index=o,this.data=a}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Su],r=(r<<_E)+(t&SE),this.data[r];if(t<=65535)return r=this.index[hH+(t-55296>>Su)],r=(r<<_E)+(t&SE),this.data[r];if(t<this.highStart)return r=JAe-ZAe+(t>>uF),r=this.index[r],r+=t>>Su&tce,r=this.index[r],r=(r<<_E)+(t&SE),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Pj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oce=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var R0=0;R0<Pj.length;
vendor: 4,718 bytes, line 287
287R0++)oce[Pj.charCodeAt(R0)]=R0;var ace=1,CE=2,IE=3,Lj=4,Uj=5,sce=7,Rj=8,kE=9,FE=10,Dj=11,Qj=12,Mj=13,$j=14,NE=15,lce=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);(o&64512)===56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),r--)}else t.push(i)}return t},Ace=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],i=-1,o="";++i<r;){var a=e[i];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(i+1===r||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},cce=nce($Ae),Jo="×",TE="÷",uce=function(e){return cce.get(e)},dce=function(e,t,r){var n=r-2,i=t[n],o=t[r-1],a=t[r];if(o===CE&&a===IE)return Jo;if(o===CE||o===IE||o===Lj||a===CE||a===IE||a===Lj)return TE;if(o===Rj&&[Rj,kE,Dj,Qj].indexOf(a)!==-1||(o===Dj||o===kE)&&(a===kE||a===FE)||(o===Qj||o===FE)&&a===FE||a===Mj||a===Uj||a===sce||o===ace)return Jo;if(o===Mj&&a===$j){for(;i===Uj;)i=t[--n];if(i===$j)return Jo}if(o===NE&&a===NE){for(var s=0;i===NE;)s++,i=t[--n];if(s%2===0)return Jo}return TE},hce=function(e){var t=lce(e),r=t.length,n=0,i=0,o=t.map(uce);return{next:function(){if(n>=r)return{done:!0,value:null};for(var a=Jo;n<r&&(a=dce(t,o,++n))===Jo;);if(a!==Jo||n===r){var s=Ace.apply(null,t.slice(i,n));return i=n,{value:s,done:!1}}return{done:!0,value:null}}}},fce=function(e){for(var t=hce(e),r=[],n;!(n=t.next()).done;)n.value&&r.push(n.value.slice());return r},pce=function(e){var t=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height=t+"px",n.style.display="block",e.body.appendChild(n),r.selectNode(n);var i=r.getBoundingClientRect(),o=Math.round(i.height);if(e.body.removeChild(n),o===t)return!0}}return!1},gce=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 r=e.createRange();t.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=t.firstChild,i=Lx(n.data).map(function(l){return In(l)}),o=0,a={},s=i.every(function(l,A){r.setStart(n,o),r.setEnd(n,o+l.length);var u=r.getBoundingClientRect();o+=l.length;var d=u.x>a.x||u.y>a.y;return a=u,A===0?!0:d});return e.body.removeChild(t),s},mce=function(){return typeof new Image().crossOrigin<"u"},yce=function(){return typeof new XMLHttpRequest().responseType=="string"},vce=function(e){var t=new Image,r=e.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),r.toDataURL()}catch{return!1}return!0},Hj=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},wce=function(e){var t=e.createElement("canvas"),r=100;t.width=r,t.height=r;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var i=new Image,o=t.toDataURL();i.src=o;var a=QC(r,r,0,0,i);return n.fillStyle="red",n.fillRect(0,0,r,r),Kj(a).then(function(s){n.drawImage(s,0,0);var l=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var A=e.createElement("div");return A.style.backgroundImage="url("+o+")",A.style.height=r+"px",Hj(l)?Kj(QC(r,r,0,0,A)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),Hj(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},QC=function(e,t,r,n,i){var o="http://www.w3.org/2000/svg",a=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",r.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(i),a},Kj=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},fi={get SUPPORT_RANGE_BOUNDS(){var e=pce(document);return Object.defineProperty(fi,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=fi.SUPPORT_RANGE_BOUNDS&&gce(document);return Object.defineProperty(fi,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=vce(document);return Object.defineProperty(fi,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?wce(document):Prom
vendor: 8,878 bytes, line 287
287ise.resolve(!1);return Object.defineProperty(fi,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=mce();return Object.defineProperty(fi,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=yce();return Object.defineProperty(fi,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(fi,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(fi,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Xg=function(){function e(t,r){this.text=t,this.bounds=r}return e}(),bce=function(e,t,r,n){var i=Ece(t,r),o=[],a=0;return i.forEach(function(s){if(r.textDecorationLine.length||s.trim().length>0)if(fi.SUPPORT_RANGE_BOUNDS){var l=Vj(n,a,s.length).getClientRects();if(l.length>1){var A=dF(s),u=0;A.forEach(function(h){o.push(new Xg(h,Nl.fromDOMRectList(e,Vj(n,u+a,h.length).getClientRects()))),u+=h.length})}else o.push(new Xg(s,Nl.fromDOMRectList(e,l)))}else{var d=n.splitText(s.length);o.push(new Xg(s,xce(e,n))),n=d}else fi.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));a+=s.length}),o},xce=function(e,t){var r=t.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(n,t);var o=Px(e,n);return n.firstChild&&i.replaceChild(n.firstChild,n),o}}return Nl.EMPTY},Vj=function(e,t,r){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var i=n.createRange();return i.setStart(e,t),i.setEnd(e,t+r),i},dF=function(e){if(fi.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return fce(e)},Bce=function(e,t){if(fi.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(n){return n.segment})}return Sce(e,t)},Ece=function(e,t){return t.letterSpacing!==0?dF(e):Bce(e,t)},_ce=[32,160,4961,65792,65793,4153,4241],Sce=function(e,t){for(var r=Zae(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],i,o=function(){if(i.value){var a=i.value.slice(),s=Lx(a),l="";s.forEach(function(A){_ce.indexOf(A)===-1?l+=In(A):(l.length&&n.push(l),n.push(In(A)),l="")}),l.length&&n.push(l)}};!(i=r.next()).done;)o();return n},Cce=function(){function e(t,r,n){this.text=Ice(r.data,n.textTransform),this.textBounds=bce(t,this.text,n,r)}return e}(),Ice=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(kce,Fce);case 2:return e.toUpperCase();default:return e}},kce=/(^|\s|:|-|\(|\))([a-z])/g,Fce=function(e,t,r){return e.length>0?t+r.toUpperCase():e},fH=function(e){Va(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return t}(Ls),pH=function(e){Va(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return t}(Ls),gH=function(e){Va(t,e);function t(r,n){var i=e.call(this,r,n)||this,o=new XMLSerializer,a=Px(r,n);return n.setAttribute("width",a.width+"px"),n.setAttribute("height",a.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(o.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return t}(Ls),mH=function(e){Va(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.value=n.value,i}return t}(Ls),MC=function(e){Va(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.start=n.start,i.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,i}return t}(Ls),Nce=[{type:15,flags:0,unit:"px",number:3}],Tce=[{type:16,flags:0,number:50}],Oce=function(e){return e.width>e.height?new Nl(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new Nl(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},jce=function(e){var t=e.type===Pce?new Array(e.value.length+1).join("•"):e.value;return t.length===0?e.placeholder||"":t},W1="checkbox",G1="radio",Pce="password",zj=707406591,hF=function(e){Va(t,e);function t(r,n){var i=e.call(this,r,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=jce(n),(i.type===W1||i.type===G1)&&(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=Oce(i.bounds)),i.type){case W1:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Nce;break;case G1:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Tce;break}return i}return t}(Ls),yH=function(e){Va(t,e);function t(r,n){var i=e.call(this,r,n)||this,o=n.options[n.selectedIndex||0];return i.value=o&&o.text||"",i}return t}(Ls),vH=function(e){Va(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.value=n.value,i}return t}(Ls),wH=function(e){Va(t,e);function t(r,n){var i=e.call(this,r,n)||this;i.src=n.src,i.width=parseInt(n.width,10)||0,i.height=parseInt(n.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){i.tree=xH(r,n.contentWindow.document.documentElement);var o=n.contentWindow.document.documentElement?Yg(r,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):vl.TRANSPARENT,a=n.contentWindow.document.body?Yg(r,getComputedStyle(n.contentWindow.document.body).backgroundColor):vl.TRANSPARENT;i.backgroundColor=YA(o)?YA(a)?i.styles.backgroundColor:a:o}}catch{}return i}return t}(Ls),Lce=["OL","UL","MENU"],Hw=function(e,t,r,n){for(var i=t.firstChild,o=void 0;i;i=o)if(o=i.nextSibling,BH(i)&&i.data.trim().length>0)r.textNodes.push(new Cce(e,i,r.styles));else if(gh(i))if(CH(i)&&i.assignedNodes)i.assignedNodes().forEach(function(s){return Hw(e,s,r,n)});else{var a=bH(e,i);a.styles.isVisible()&&(Uce(i,a,n)?a.flags|=4:Rce(a.styles)&&(a.flags|=2),Lce.indexOf(i.tagName)!==-1&&(a.flags|=8),r.elements.push(a),i.slot,i.shadowRoot?Hw(e,i.shadowRoot,a,n):!Y1(i)&&!EH(i)&&!q1(i)&&Hw(e,i,a,n))}},bH=function(e,t){return HC(t)?new fH(e,t):_H(t)?new pH(e,t):EH(t)?new gH(e,t):Dce(t)?new mH(e,t):Qce(t)?new MC(e,t):Mce(t)?new hF(e,t):q1(t)?new yH(e,t):Y1(t)?new vH(e,t):SH(t)?new wH(e,t):new Ls(e,t)},xH=function(e,t){var r=bH(e,t);return r.flags|=4,Hw(e,t,r,r),r},Uce=function(e,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||fF(e)&&r.styles.isTransparent()},Rce=function(e){return e.isPositioned()||e.isFloating()},BH=function(e){return e.nodeType===Node.TEXT_NODE},gh=function(e){return e.nodeType===Node.ELEMENT_NODE},$C=function(e){return gh(e)&&typeof e.style<"u"&&!Kw(e)},Kw=function(e){return typeof e.className=="object"},Dce=function(e){return e.tagName==="LI"},Qce=function(e){return e.tagName==="OL"},Mce=function(e){return e.tagName==="INPUT"},$ce=function(e){return e.tagName==="HTML"},EH=function(e){return e.tagName==="svg"},fF=function(e){return e.tagName==="BODY"},_H=function(e){return e.tagName==="CANVAS"},Wj=function(e){return e.tagName==="VIDEO"},HC=function(e){return e.tagName==="IMG"},SH=function(e){return e.tagName==="IFRAME"},Gj=function(e){return e.tagName==="STYLE"},Hce=function(e){return e.tagName==="SCRIPT"},Y1=function(e){return e.tagName==="TEXTAREA"},q1=function(e){return e.tagName==="SELECT"},CH=function(e){return e.tagName==="SLOT"},Yj=function(e){return e.tagName.indexOf("-")>0},Kce=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var r=this.counters[t];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(t){var r=this.counters[t];return r||[]},e.prototype.pop=function(t){var r=this;t.forEach(function(n){return r.counters[n].pop()})},e.prototype.parse=function(t){var r=this,n=t.counterIncrement,i=t.counterReset,o=!0;n!==null&&n.forEach(function(s){var l=r.counters[s.counter];l&&s.increment!==0&&(o=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=s.increment)});var a=[];return o&&i.forEach(function(s){var l=r.counters[s.counter];a.push(s.counter),l||(l=r.counters[s.counter]=[]),l.push(s.reset)}),a},e}(),qj={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"]},Xj={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,9
vendor: 5,012 bytes, line 287
2870,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Vce={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},zce={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},jd=function(e,t,r,n,i,o){return e<t||e>r?Mm(e,i,o.length>0):n.integers.reduce(function(a,s,l){for(;e>=s;)e-=s,a+=n.values[l];return a},"")+o},IH=function(e,t,r,n){var i="";do r||e--,i=n(e)+i,e/=t;while(e*t>=t);return i},Cn=function(e,t,r,n,i){var o=r-t+1;return(e<0?"-":"")+(IH(Math.abs(e),o,n,function(a){return In(Math.floor(a%o)+t)})+i)},Mc=function(e,t,r){r===void 0&&(r=". ");var n=t.length;return IH(Math.abs(e),n,!1,function(i){return t[Math.floor(i%n)]})+r},Jd=1,hA=2,fA=4,Eg=8,Js=function(e,t,r,n,i,o){if(e<-9999||e>9999)return Mm(e,4,i.length>0);var a=Math.abs(e),s=i;if(a===0)return t[0]+s;for(var l=0;a>0&&l<=4;l++){var A=a%10;A===0&&Gn(o,Jd)&&s!==""?s=t[A]+s:A>1||A===1&&l===0||A===1&&l===1&&Gn(o,hA)||A===1&&l===1&&Gn(o,fA)&&e>100||A===1&&l>1&&Gn(o,Eg)?s=t[A]+(l>0?r[l-1]:"")+s:A===1&&l>0&&(s=r[l-1]+s),a=Math.floor(a/10)}return(e<0?n:"")+s},Jj="十百千萬",Zj="拾佰仟萬",e3="マイナス",OE="마이너스",Mm=function(e,t,r){var n=r?". ":"",i=r?"、":"",o=r?", ":"",a=r?" ":"";switch(t){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=Cn(e,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return Mc(e,"〇一二三四五六七八九",i);case 6:return jd(e,1,3999,qj,3,n).toLowerCase();case 7:return jd(e,1,3999,qj,3,n);case 8:return Cn(e,945,969,!1,n);case 9:return Cn(e,97,122,!1,n);case 10:return Cn(e,65,90,!1,n);case 11:return Cn(e,1632,1641,!0,n);case 12:case 49:return jd(e,1,9999,Xj,3,n);case 35:return jd(e,1,9999,Xj,3,n).toLowerCase();case 13:return Cn(e,2534,2543,!0,n);case 14:case 30:return Cn(e,6112,6121,!0,n);case 15:return Mc(e,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Mc(e,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Js(e,"零一二三四五六七八九",Jj,"負",i,hA|fA|Eg);case 47:return Js(e,"零壹貳參肆伍陸柒捌玖",Zj,"負",i,Jd|hA|fA|Eg);case 42:return Js(e,"零一二三四五六七八九",Jj,"负",i,hA|fA|Eg);case 41:return Js(e,"零壹贰叁肆伍陆柒捌玖",Zj,"负",i,Jd|hA|fA|Eg);case 26:return Js(e,"〇一二三四五六七八九","十百千万",e3,i,0);case 25:return Js(e,"零壱弐参四伍六七八九","拾百千万",e3,i,Jd|hA|fA);case 31:return Js(e,"영일이삼사오육칠팔구","십백천만",OE,o,Jd|hA|fA);case 33:return Js(e,"零一二三四五六七八九","十百千萬",OE,o,0);case 32:return Js(e,"零壹貳參四五六七八九","拾百千",OE,o,Jd|hA|fA);case 18:return Cn(e,2406,2415,!0,n);case 20:return jd(e,1,19999,zce,3,n);case 21:return Cn(e,2790,2799,!0,n);case 22:return Cn(e,2662,2671,!0,n);case 22:return jd(e,1,10999,Vce,3,n);case 23:return Mc(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Mc(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Cn(e,3302,3311,!0,n);case 28:return Mc(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Mc(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Cn(e,3792,3801,!0,n);case 37:return Cn(e,6160,6169,!0,n);case 38:return Cn(e,4160,4169,!0,n);case 39:return Cn(e,2918,2927,!0,n);case 40:return Cn(e,1776,1785,!0,n);case 43:return Cn(e,3046,3055,!0,n);case 44:return Cn(e,3174,3183,!0,n);case 45:return Cn(e,3664,3673,!0,n);case 46:return Cn(e,3872,3881,!0,n);case 3:default:return Cn(e,48,57,!0,n)}},kH="data-html2canvas-ignore",t3=function(){function e(t,r,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new Kce,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,r){var n=this,i=Wce(t,r);
vendor: 37,309 bytes, lines 287-291
287if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,a=t.defaultView.pageYOffset,s=i.contentWindow,l=s.document,A=qce(i).then(function(){return Hi(n,void 0,void 0,function(){var u,d;return Oi(this,function(h){switch(h.label){case 0:return this.scrolledElements.forEach(eue),s&&(s.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==r.top||s.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-r.left,s.scrollY-r.top,0,0))),u=this.options.onclone,d=this.clonedReferenceElement,typeof d>"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,Yce(l)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(l,d)}).then(function(){return i})]:[2,i]}})})});return l.open(),l.write(Jce(document.doctype)+"<html></html>"),Zce(this.referenceElement.ownerDocument,o,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),A},e.prototype.createElementClone=function(t){if(DC(t,2))debugger;if(_H(t))return this.createCanvasClone(t);if(Wj(t))return this.createVideoClone(t);if(Gj(t))return this.createStyleClone(t);var r=t.cloneNode(!1);return HC(r)&&(HC(t)&&t.currentSrc&&t.currentSrc!==t.src&&(r.src=t.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Yj(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(t){var r=document.createElement("html2canvascustomelement");return jE(t.style,r),r},e.prototype.createStyleClone=function(t){try{var r=t.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(o,a){return a&&typeof a.cssText=="string"?o+a.cssText:o},""),i=t.cloneNode(!1);return i.textContent=n,i}}catch(o){if(this.context.logger.error("Unable to access cssRules property",o),o.name!=="SecurityError")throw o}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var r;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}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 o=t.getContext("2d"),a=i.getContext("2d");if(a)if(!this.options.allowTaint&&o)a.putImageData(o.getImageData(0,0,t.width,t.height),0,0);else{var s=(r=t.getContext("webgl2"))!==null&&r!==void 0?r: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)}a.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 r=t.ownerDocument.createElement("canvas");r.width=t.offsetWidth,r.height=t.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(t,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}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,r,n){(!gh(r)||!Hce(r)&&!r.hasAttribute(kH)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!gh(r)||!Gj(r))&&t.appendChild(this.cloneNode(r,n))},e.prototype.cloneChildNodes=function(t,r,n){for(var i=this,o=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;o;o=o.nextSibling)if(gh(o)&&CH(o)&&typeof o.assignedNodes=="function"){var a=o.assignedNodes();a.length&&a.forEach(function(s){return i.appendChildNode(r,s,n)})}else this.appendChildNode(r,o,n)},e.prototype.cloneNode=function(t,r){if(BH(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&gh(t)&&($C(t)||Kw(t))){var i=this.createElementClone(t);i.style.transitionProperty="none";var o=n.getComputedStyle(t),a=n.getComputedStyle(t,":before"),s=n.getComputedStyle(t,":after");this.referenceElement===t&&$C(i)&&(this.clonedReferenceElement=i),fF(i)&&nue(i);var l=this.counters.parse(new Tj(this.context,o)),A=this.resolvePseudoContent(t,i,a,Jg.BEFORE);Yj(t)&&(r=!0),Wj(t)||this.cloneChildNodes(t,i,r),A&&i.insertBefore(A,i.firstChild);var u=this.resolvePseudoContent(t,i,s,Jg.AFTER);return u&&i.appendChild(u),this.counters.pop(l),(o&&(this.options.copyStyles||Kw(t))&&!SH(t)||r)&&jE(o,i),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([i,t.scrollLeft,t.scrollTop]),(Y1(t)||q1(t))&&(Y1(i)||q1(i))&&(i.value=t.value),i}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,r,n,i){var o=this;if(n){var a=n.content,s=r.ownerDocument;if(!(!s||!a||a==="none"||a==="-moz-alt-content"||n.display==="none")){this.counters.parse(new Tj(this.context,n));var l=new DAe(this.context,n),A=s.createElement("html2canvaspseudoelement");jE(n,A),l.content.forEach(function(d){if(d.type===0)A.appendChild(s.createTextNode(d.value));else if(d.type===22){var h=s.createElement("img");h.src=d.value,h.style.opacity="1",A.appendChild(h)}else if(d.type===18){if(d.name==="attr"){var f=d.values.filter(Tr);f.length&&A.appendChild(s.createTextNode(t.getAttribute(f[0].value)||""))}else if(d.name==="counter"){var g=d.values.filter(Af),p=g[0],v=g[1];if(p&&Tr(p)){var m=o.counters.getCounterValue(p.value),w=v&&Tr(v)?RC.parse(o.context,v.value):3;A.appendChild(s.createTextNode(Mm(m,w,!1)))}}else if(d.name==="counters"){var b=d.values.filter(Af),p=b[0],E=b[1],v=b[2];if(p&&Tr(p)){var B=o.counters.getCounterValues(p.value),_=v&&Tr(v)?RC.parse(o.context,v.value):3,F=E&&E.type===0?E.value:"",O=B.map(function(I){return Mm(I,_,!1)}).join(F);A.appendChild(s.createTextNode(O))}}}else if(d.type===20)switch(d.value){case"open-quote":A.appendChild(s.createTextNode(Nj(l.quotes,o.quoteDepth++,!0)));break;case"close-quote":A.appendChild(s.createTextNode(Nj(l.quotes,--o.quoteDepth,!1)));break;default:A.appendChild(s.createTextNode(d.value))}}),A.className=KC+" "+VC;var u=i===Jg.BEFORE?" "+KC:" "+VC;return Kw(r)?r.className.baseValue+=u:r.className+=u,A}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e}(),Jg;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(Jg||(Jg={}));var Wce=function(e,t){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(kH,"true"),e.body.appendChild(r),r},Gce=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},Yce=function(e){return Promise.all([].slice.call(e.images,0).map(Gce))},qce=function(e){return new Promise(function(t,r){var n=e.contentWindow;if(!n)return r("No window assigned for iframe");var i=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var o=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(o),t(e))},50)}})},Xce=["all","d","content"],jE=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e.item(r);Xce.indexOf(n)===-1&&t.style.setProperty(n,e.getPropertyValue(n))}return t},Jce=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},Zce=function(e,t,r){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,r)},eue=function(e){var t=e[0],r=e[1],n=e[2];t.scrollLeft=r,t.scrollTop=n},tue=":before",rue=":after",KC="___html2canvas___pseudoelement_before",VC="___html2canvas___pseudoelement_after",r3=`{
288    content: "" !important;
289    display: none !important;
290}`,nue=function(e){iue(e,"."+KC+tue+r3+`
291         .`+VC+rue+r3)},iue=function(e,t){var r=e.ownerDocument;if(r){var n=r.createElement("style");n.textContent=t,e.appendChild(n)}},FH=function(){function e(){}return e.getOrigin=function(t){var r=e._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.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}(),oue=function(){function e(t,r){this.context=t,this._options=r,this._cache={}}return e.prototype.addImage=function(t){var r=Promise.resolve();return this.has(t)||(LE(t)||Aue(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),r},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return Hi(this,void 0,void 0,function(){var r,n,i,o,a=this;return Oi(this,function(s){switch(s.label){case 0:return r=FH.isSameOrigin(t),n=!PE(t)&&this._options.useCORS===!0&&fi.SUPPORT_CORS_IMAGES&&!r,i=!PE(t)&&!r&&!LE(t)&&typeof this._options.proxy=="string"&&fi.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!PE(t)&&!LE(t)&&!i&&!n?[2]:(o=t,i?[4,this.proxy(o)]:[3,2]);case 1:o=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,A){var u=new Image;u.onload=function(){return l(u)},u.onerror=A,(cue(o)||n)&&(u.crossOrigin="anonymous"),u.src=o,u.complete===!0&&setTimeout(function(){return l(u)},500),a._options.imageTimeout>0&&setTimeout(function(){return A("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._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 r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=t.substring(0,256);return new Promise(function(o,a){var s=fi.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(s==="text")o(l.response);else{var d=new FileReader;d.addEventListener("load",function(){return o(d.result)},!1),d.addEventListener("error",function(h){return a(h)},!1),d.readAsDataURL(l.response)}else a("Failed to proxy resource "+i+" with status code "+l.status)},l.onerror=a;var A=n.indexOf("?")>-1?"&":"?";if(l.open("GET",""+n+A+"url="+encodeURIComponent(t)+"&responseType="+s),s!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=s),r._options.imageTimeout){var u=r._options.imageTimeout;l.timeout=u,l.ontimeout=function(){return a("Timed out ("+u+"ms) proxying "+i)}}l.send()})},e}(),aue=/^data:image\/svg\+xml/i,sue=/^data:image\/.*;base64,/i,lue=/^data:image\/.*/i,Aue=function(e){return fi.SUPPORT_SVG_DRAWING||!uue(e)},PE=function(e){return lue.test(e)},cue=function(e){return sue.test(e)},LE=function(e){return e.substr(0,4)==="blob"},uue=function(e){return e.substr(-3).toLowerCase()==="svg"||aue.test(e)},nt=function(){function e(t,r){this.type=0,this.x=t,this.y=r}return e.prototype.add=function(t,r){return new e(this.x+t,this.y+r)},e}(),Pd=function(e,t,r){return new nt(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r)},D0=function(){function e(t,r,n,i){this.type=1,this.start=t,this.startControl=r,this.endControl=n,this.end=i}return e.prototype.subdivide=function(t,r){var n=Pd(this.start,this.startControl,t),i=Pd(this.startControl,this.endControl,t),o=Pd(this.endControl,this.end,t),a=Pd(n,i,t),s=Pd(i,o,t),l=Pd(a,s,t);return r?new e(this.start,n,a,l):new e(l,s,o,this.end)},e.prototype.add=function(t,r){return new e(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),na=function(e){return e.type===1},due=function(){function e(t){var r=t.styles,n=t.bounds,i=xg(r.borderTopLeftRadius,n.width,n.height),o=i[0],a=i[1],s=xg(r.borderTopRightRadius,n.width,n.height),l=s[0],A=s[1],u=xg(r.borderBottomRightRadius,n.width,n.height),d=u[0],h=u[1],f=xg(r.borderBottomLeftRadius,n.width,n.height),g=f[0],p=f[1],v=[];v.push((o+l)/n.width),v.push((g+d)/n.width),v.push((a+p)/n.height),v.push((A+h)/n.height);var m=Math.max.apply(Math,v);m>1&&(o/=m,a/=m,l/=m,A/=m,d/=m,h/=m,g/=m,p/=m);var w=n.width-l,b=n.height-h,E=n.width-d,B=n.height-p,_=r.borderTopWidth,F=r.borderRightWidth,O=r.borderBottomWidth,k=r.borderLeftWidth,j=Vr(r.paddingTop,t.bounds.width),I=Vr(r.paddingRight,t.bounds.width),T=Vr(r.paddingBottom,t.bounds.width),U=Vr(r.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||a>0?nn(n.left+k/3,n.top+_/3,o-k/3,a-_/3,vr.TOP_LEFT):new nt(n.left+k/3,n.top+_/3),this.topRightBorderDoubleOuterBox=o>0||a>0?nn(n.left+w,n.top+_/3,l-F/3,A-_/3,vr.TOP_RIGHT):new nt(n.left+n.width-F/3,n.top+_/3),this.bottomRightBorderDoubleOuterBox=d>0||h>0?nn(n.left+E,n.top+b,d-F/3,h-O/3,vr.BOTTOM_RIGHT):new nt(n.left+n.width-F/3,n.top+n.height-O/3),this.bottomLeftBorderDoubleOuterBox=g>0||p>0?nn(n.left+k/3,n.top+B,g-k/3,p-O/3,vr.BOTTOM_LEFT):new nt(n.left+k/3,n.top+n.height-O/3),this.topLeftBorderDoubleInnerBox=o>0||a>0?nn(n.left+k*2/3,n.top+_*2/3,o-k*2/3,a-_*2/3,vr.TOP_LEFT):new nt(n.left+k*2/3,n.top+_*2/3),this.topRightBorderDoubleInnerBox=o>0||a>0?nn(n.left+w,n.top+_*2/3,l-F*2/3,A-_*2/3,vr.TOP_RIGHT):new nt(n.left+n.width-F*2/3,n.top+_*2/3),this.bottomRightBorderDoubleInnerBox=d>0||h>0?nn(n.left+E,n.top+b,d-F*2/3,h-O*2/3,vr.BOTTOM_RIGHT):new nt(n.left+n.width-F*2/3,n.top+n.height-O*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||p>0?nn(n.left+k*2/3,n.top+B,g-k*2/3,p-O*2/3,vr.BOTTOM_LEFT):new nt(n.left+k*2/3,n.top+n.height-O*2/3),this.topLeftBorderStroke=o>0||a>0?nn(n.left+k/2,n.top+_/2,o-k/2,a-_/2,vr.TOP_LEFT):new nt(n.left+k/2,n.top+_/2),this.topRightBorderStroke=o>0||a>0?nn(n.left+w,n.top+_/2,l-F/2,A-_/2,vr.TOP_RIGHT):new nt(n.left+n.width-F/2,n.top+_/2),this.bottomRightBorderStroke=d>0||h>0?nn(n.left+E,n.top+b,d-F/2,h-O/2,vr.BOTTOM_RIGHT):new nt(n.left+n.width-F/2,n.top+n.height-O/2),this.bottomLeftBorderStroke=g>0||p>0?nn(n.left+k/2,n.top+B,g-k/2,p-O/2,vr.BOTTOM_LEFT):new nt(n.left+k/2,n.top+n.height-O/2),this.topLeftBorderBox=o>0||a>0?nn(n.left,n.top,o,a,vr.TOP_LEFT):new nt(n.left,n.top),this.topRightBorderBox=l>0||A>0?nn(n.left+w,n.top,l,A,vr.TOP_RIGHT):new nt(n.left+n.width,n.top),this.bottomRightBorderBox=d>0||h>0?nn(n.left+E,n.top+b,d,h,vr.BOTTOM_RIGHT):new nt(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=g>0||p>0?nn(n.left,n.top+B,g,p,vr.BOTTOM_LEFT):new nt(n.left,n.top+n.height),this.topLeftPaddingBox=o>0||a>0?nn(n.left+k,n.top+_,Math.max(0,o-k),Math.max(0,a-_),vr.TOP_LEFT):new nt(n.left+k,n.top+_),this.topRightPaddingBox=l>0||A>0?nn(n.left+Math.min(w,n.width-F),n.top+_,w>n.width+F?0:Math.max(0,l-F),Math.max(0,A-_),vr.TOP_RIGHT):new nt(n.left+n.width-F,n.top+_),this.bottomRightPaddingBox=d>0||h>0?nn(n.left+Math.min(E,n.width-k),n.top+Math.min(b,n.height-O),Math.max(0,d-F),Math.max(0,h-O),vr.BOTTOM_RIGHT):new nt(n.left+n.width-F,n.top+n.height-O),this.bottomLeftPaddingBox=g>0||p>0?nn(n.left+k,n.top+Math.min(B,n.height-O),Math.max(0,g-k),Math.max(0,p-O),vr.BOTTOM_LEFT):new nt(n.left+k,n.top+n.height-O),this.topLeftContentBox=o>0||a>0?nn(n.left+k+U,n.top+_+j,Math.max(0,o-(k+U)),Math.max(0,a-(_+j)),vr.TOP_LEFT):new nt(n.left+k+U,n.top+_+j),this.topRightContentBox=l>0||A>0?nn(n.left+Math.min(w,n.width+k+U),n.top+_+j,w>n.width+k+U?0:l-k+U,A-(_+j),vr.TOP_RIGHT):new nt(n.left+n.width-(F+I),n.top+_+j),this.bottomRightContentBox=d>0||h>0?nn(n.left+Math.min(E,n.width-(k+U)),n.top+Math.min(b,n.height+_+j),Math.max(0,d-(F+I)),h-(O+T),vr.BOTTOM_RIGHT):new nt(n.left+n.width-(F+I),n.top+n.height-(O+T)),this.bottomLeftContentBox=g>0||p>0?nn(n.left+k+U,n.top+B,Math.max(0,g-(k+U)),p-(O+T),vr.BOTTOM_LEFT):new nt(n.left+k+U,n.top+n.height-(O+T))}return e}(),vr;(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"})(vr||(vr={}));var nn=function(e,t,r,n,i){var o=4*((Math.sqrt(2)-1)/3),a=r*o,s=n*o,l=e+r,A=t+n;switch(i){case vr.TOP_LEFT:return new D0(new nt(e,A),new nt(e,A-s),new nt(l-a,t),new nt(l,t));case vr.TOP_RIGHT:return new D0(new nt(e,t),new nt(e+a,t),new nt(l,A-s),new nt(l,A));case vr.BOTTOM_RIGHT:return new D0(new nt(l,t),new nt(l,t+s),new nt(e+a,A),new nt(e,A));case vr.BOTTOM_LEFT:default:return new D0(new nt(l,A),new nt(l-a,A),new nt(e,t+s),new nt(e,t))}},X1=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},hue=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},J1=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},fue=function(){function e(t,r,n){this.offsetX=t,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return e}(),Q0=function(){function e(t,r){this.path=t,this.target=r,this.type=1}return e}(),pue=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),gue=function(e){return e.type===0},NH=function(e){return e.type===1},mue=function(e){return e.type===2},n3=function(e,t){return e.length===t.length?e.some(function(r,n){return r===t[n]}):!1},yue=function(e,t,r,n,i){return e.map(function(o,a){switch(a){case 0:return o.add(t,r);case 1:return o.add(t+n,r);case 2:return o.add(t+n,r+i);case 3:return o.add(t,r+i)}return o})},TH=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),OH=function(){function e(t,r){if(this.container=t,this.parent=r,this.effects=[],this.curves=new due(this.container),this.container.styles.opacity<1&&this.effects.push(new pue(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,o=this.container.styles.transform;this.effects.push(new fue(n,i,o))}if(this.container.styles.overflowX!==0){var a=X1(this.curves),s=J1(this.curves);n3(a,s)?this.effects.push(new Q0(a,6)):(this.effects.push(new Q0(a,2)),this.effects.push(new Q0(s,4)))}}return e.prototype.getEffects=function(t){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,i=this.effects.slice(0);n;){var o=n.effects.filter(function(l){return!NH(l)});if(r||n.container.styles.position!==0||!n.parent){if(i.unshift.apply(i,o),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var a=X1(n.curves),s=J1(n.curves);n3(a,s)||i.unshift(new Q0(s,6))}}else i.unshift.apply(i,o);n=n.parent}return i.filter(function(l){return Gn(l.target,t)})},e}(),zC=function(e,t,r,n){e.container.elements.forEach(function(i){var o=Gn(i.flags,4),a=Gn(i.flags,2),s=new OH(i,e);Gn(i.styles.display,2048)&&n.push(s);var l=Gn(i.flags,8)?[]:n;if(o||a){var A=o||i.styles.isPositioned()?r:t,u=new TH(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var d=i.styles.zIndex.order;if(d<0){var h=0;A.negativeZIndex.some(function(g,p){return d>g.element.container.styles.zIndex.order?(h=p,!1):h>0}),A.negativeZIndex.splice(h,0,u)}else if(d>0){var f=0;A.positiveZIndex.some(function(g,p){return d>=g.element.container.styles.zIndex.order?(f=p+1,!1):f>0}),A.positiveZIndex.splice(f,0,u)}else A.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?A.nonPositionedFloats.push(u):A.nonPositionedInlineLevel.push(u);zC(s,u,o?u:r,l)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),zC(s,t,r,l);Gn(i.flags,8)&&jH(i,l)})},jH=function(e,t){for(var r=e instanceof MC?e.start:1,n=e instanceof MC?e.reversed:!1,i=0;i<t.length;i++){var o=t[i];o.container instanceof mH&&typeof o.container.value=="number"&&o.container.value!==0&&(r=o.container.value),o.listValue=Mm(r,o.container.styles.listStyleType,!0),r+=n?-1:1}},vue=function(e){var t=new OH(e,null),r=new TH(t),n=[];return zC(t,r,r,n),jH(t.container,n),r},i3=function(e,t){switch(t){case 0:return la(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return la(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return la(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return la(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},wue=function(e,t){switch(t){case 0:return la(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return la(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return la(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return la(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},bue=function(e,t){switch(t){case 0:return la(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return la(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return la(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return la(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},xue=function(e,t){switch(t){case 0:return M0(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return M0(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return M0(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return M0(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},M0=function(e,t){var r=[];return na(e)?r.push(e.subdivide(.5,!1)):r.push(e),na(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},la=function(e,t,r,n){var i=[];return na(e)?i.push(e.subdivide(.5,!1)):i.push(e),na(r)?i.push(r.subdivide(.5,!0)):i.push(r),na(n)?i.push(n.subdivide(.5,!0).reverse()):i.push(n),na(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},PH=function(e){var t=e.bounds,r=e.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Z1=function(e){var t=e.styles,r=e.bounds,n=Vr(t.paddingLeft,r.width),i=Vr(t.paddingRight,r.width),o=Vr(t.paddingTop,r.width),a=Vr(t.paddingBottom,r.width);return r.add(n+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+n+i),-(t.borderTopWidth+t.borderBottomWidth+o+a))},Bue=function(e,t){return e===0?t.bounds:e===2?Z1(t):PH(t)},Eue=function(e,t){return e===0?t.bounds:e===2?Z1(t):PH(t)},UE=function(e,t,r){var n=Bue(Zd(e.styles.backgroundOrigin,t),e),i=Eue(Zd(e.styles.backgroundClip,t),e),o=_ue(Zd(e.styles.backgroundSize,t),r,n),a=o[0],s=o[1],l=xg(Zd(e.styles.backgroundPosition,t),n.width-a,n.height-s),A=Sue(Zd(e.styles.backgroundRepeat,t),l,o,n,i),u=Math.round(n.left+l[0]),d=Math.round(n.top+l[1]);return[A,u,d,a,s]},Ld=function(e){return Tr(e)&&e.value===Th.AUTO},$0=function(e){return typeof e=="number"},_ue=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1];if(!a)return[0,0];if(Rn(a)&&s&&Rn(s))return[Vr(a,r.width),Vr(s,r.height)];var l=$0(o);if(Tr(a)&&(a.value===Th.CONTAIN||a.value===Th.COVER)){if($0(o)){var A=r.width/r.height;return A<o!=(a.value===Th.COVER)?[r.width,r.width/o]:[r.height*o,r.height]}return[r.width,r.height]}var u=$0(n),d=$0(i),h=u||d;if(Ld(a)&&(!s||Ld(s))){if(u&&d)return[n,i];if(!l&&!h)return[r.width,r.height];if(h&&l){var f=u?n:i*o,g=d?i:n/o;return[f,g]}var p=u?n:r.width,v=d?i:r.height;return[p,v]}if(l){var m=0,w=0;return Rn(a)?m=Vr(a,r.width):Rn(s)&&(w=Vr(s,r.height)),Ld(a)?m=w*o:(!s||Ld(s))&&(w=m/o),[m,w]}var b=null,E=null;if(Rn(a)?b=Vr(a,r.width):s&&Rn(s)&&(E=Vr(s,r.height)),b!==null&&(!s||Ld(s))&&(E=u&&d?b/n*i:r.height),E!==null&&Ld(a)&&(b=u&&d?E/i*n:r.width),b!==null&&E!==null)return[b,E];throw new Error("Unable to calculate background-size for element")},Zd=function(e,t){var r=e[t];return typeof r>"u"?e[0]:r},Sue=function(e,t,r,n,i){var o=t[0],a=t[1],s=r[0],l=r[1];switch(e){case 2:return[new nt(Math.round(n.left),Math.round(n.top+a)),new nt(Math.round(n.left+n.width),Math.round(n.top+a)),new nt(Math.round(n.left+n.width),Math.round(l+n.top+a)),new nt(Math.round(n.left),Math.round(l+n.top+a))];case 3:return[new nt(Math.round(n.left+o),Math.round(n.top)),new nt(Math.round(n.left+o+s),Math.round(n.top)),new nt(Math.round(n.left+o+s),Math.round(n.height+n.top)),new nt(Math.round(n.left+o),Math.round(n.height+n.top))];case 1:return[new nt(Math.round(n.left+o),Math.round(n.top+a)),new nt(Math.round(n.left+o+s),Math.round(n.top+a)),new nt(Math.round(n.left+o+s),Math.round(n.top+a+l)),new nt(Math.round(n.left+o),Math.round(n.top+a+l))];default:return[new nt(Math.round(i.left),Math.round(i.top)),new nt(Math.round(i.left+i.width),Math.round(i.top)),new nt(Math.round(i.left+i.width),Math.round(i.height+i.top)),new nt(Math.round(i.left),Math.round(i.height+i.top))]}},Cue="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",o3="Hidden Text",Iue=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,r){var n=this._document.createElement("div"),i=this._document.createElement("img"),o=this._document.createElement("span"),a=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",a.appendChild(n),i.src=Cue,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",o.style.fontFamily=t,o.style.fontSize=r,o.style.margin="0",o.style.padding="0",o.appendChild(this._document.createTextNode(o3)),n.appendChild(o),n.appendChild(i);var s=i.offsetTop-o.offsetTop+2;n.removeChild(o),n.appendChild(this._document.createTextNode(o3)),n.style.lineHeight="normal",i.style.verticalAlign="super";var l=i.offsetTop-n.offsetTop+2;return a.removeChild(n),{baseline:s,middle:l}},e.prototype.getMetrics=function(t,r){var n=t+" "+r;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,r)),this._data[n]},e}(),LH=function(){function e(t,r){this.context=t,this.options=r}return e}(),kue=1e4,Fue=function(e){Va(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._activeEffects=[],i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),n.canvas||(i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px"),i.fontMetrics=new Iue(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),i}return t.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(i){return n.applyEffect(i)})},t.prototype.applyEffect=function(r){this.ctx.save(),mue(r)&&(this.ctx.globalAlpha=r.opacity),gue(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),NH(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(r){return Hi(this,void 0,void 0,function(){var n;return Oi(this,function(i){switch(i.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(r){return Hi(this,void 0,void 0,function(){return Oi(this,function(n){switch(n.label){case 0:if(Gn(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(r,n,i){var o=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+i);else{var a=dF(r.text);a.reduce(function(s,l){return o.ctx.fillText(l,s,r.bounds.top+i),s+o.ctx.measureText(l).width},r.bounds.left)}},t.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),i=Pue(r.fontFamily).join(", "),o=Gy(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,o,i].join(" "),i,o]},t.prototype.renderTextNode=function(r,n){return Hi(this,void 0,void 0,function(){var i,o,a,s,l,A,u,d,h=this;return Oi(this,function(f){return i=this.createFontStyle(n),o=i[0],a=i[1],s=i[2],this.ctx.font=o,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(a,s),A=l.baseline,u=l.middle,d=n.paintOrder,r.textBounds.forEach(function(g){d.forEach(function(p){switch(p){case 0:h.ctx.fillStyle=Jn(n.color),h.renderTextWithLetterSpacing(g,n.letterSpacing,A);var v=n.textShadow;v.length&&g.text.trim().length&&(v.slice(0).reverse().forEach(function(m){h.ctx.shadowColor=Jn(m.color),h.ctx.shadowOffsetX=m.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=m.offsetY.number*h.options.scale,h.ctx.shadowBlur=m.blur.number,h.renderTextWithLetterSpacing(g,n.letterSpacing,A)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),n.textDecorationLine.length&&(h.ctx.fillStyle=Jn(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(m){switch(m){case 1:h.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top+A),g.bounds.width,1);break;case 2:h.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top),g.bounds.width,1);break;case 3:h.ctx.fillRect(g.bounds.left,Math.ceil(g.bounds.top+u),g.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&g.text.trim().length&&(h.ctx.strokeStyle=Jn(n.webkitTextStrokeColor),h.ctx.lineWidth=n.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(g.text,g.bounds.left,g.bounds.top+A)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(r,n,i){if(i&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var o=Z1(r),a=J1(n);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,r.intrinsicWidth,r.intrinsicHeight,o.left,o.top,o.width,o.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(r){return Hi(this,void 0,void 0,function(){var n,i,o,a,s,l,w,w,A,u,d,h,E,f,g,B,p,v,m,w,b,E,B;return Oi(this,function(_){switch(_.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,i=r.curves,o=n.styles,a=0,s=n.textNodes,_.label=1;case 1:return a<s.length?(l=s[a],[4,this.renderTextNode(l,o)]):[3,4];case 2:_.sent(),_.label=3;case 3:return a++,[3,1];case 4:if(!(n instanceof fH))return[3,8];_.label=5;case 5:return _.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return w=_.sent(),this.renderReplacedElement(n,i,w),[3,8];case 7:return _.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof pH&&this.renderReplacedElement(n,i,n.canvas),!(n instanceof gH))return[3,12];_.label=9;case 9:return _.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return w=_.sent(),this.renderReplacedElement(n,i,w),[3,12];case 11:return _.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof wH&&n.tree?(A=new t(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,A.render(n.tree)]):[3,14];case 13:u=_.sent(),n.width&&n.height&&this.ctx.drawImage(u,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),_.label=14;case 14:if(n instanceof hF&&(d=Math.min(n.bounds.width,n.bounds.height),n.type===W1?n.checked&&(this.ctx.save(),this.path([new nt(n.bounds.left+d*.39363,n.bounds.top+d*.79),new nt(n.bounds.left+d*.16,n.bounds.top+d*.5549),new nt(n.bounds.left+d*.27347,n.bounds.top+d*.44071),new nt(n.bounds.left+d*.39694,n.bounds.top+d*.5649),new nt(n.bounds.left+d*.72983,n.bounds.top+d*.23),new nt(n.bounds.left+d*.84,n.bounds.top+d*.34085),new nt(n.bounds.left+d*.39363,n.bounds.top+d*.79)]),this.ctx.fillStyle=Jn(zj),this.ctx.fill(),this.ctx.restore()):n.type===G1&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+d/2,n.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=Jn(zj),this.ctx.fill(),this.ctx.restore())),Nue(n)&&n.value.length){switch(h=this.createFontStyle(o),E=h[0],f=h[1],g=this.fontMetrics.getMetrics(E,f).baseline,this.ctx.font=E,this.ctx.fillStyle=Jn(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Oue(n.styles.textAlign),B=Z1(n),p=0,n.styles.textAlign){case 1:p+=B.width/2;break;case 2:p+=B.width;break}v=B.add(p,0,0,-B.height/2+1),this.ctx.save(),this.path([new nt(B.left,B.top),new nt(B.left+B.width,B.top),new nt(B.left+B.width,B.top+B.height),new nt(B.left,B.top+B.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Xg(n.value,v),o.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Gn(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(m=n.styles.listStyleImage,m.type!==0)return[3,18];w=void 0,b=m.url,_.label=15;case 15:return _.trys.push([15,17,,18]),[4,this.context.cache.match(b)];case 16:return w=_.sent(),this.ctx.drawImage(w,n.bounds.left-(w.width+10),n.bounds.top),[3,18];case 17:return _.sent(),this.context.logger.error("Error loading list-style-image "+b),[3,18];case 18:return[3,20];case 19:r.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(o)[0],this.ctx.font=E,this.ctx.fillStyle=Jn(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",B=new Nl(n.bounds.left,n.bounds.top+Vr(n.styles.paddingTop,n.bounds.width),n.bounds.width,kj(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Xg(r.listValue,B),o.letterSpacing,kj(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),_.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(r){return Hi(this,void 0,void 0,function(){var n,i,m,o,a,m,s,l,m,A,u,m,d,h,m,f,g,m,p,v,m;return Oi(this,function(w){switch(w.label){case 0:if(Gn(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:w.sent(),n=0,i=r.negativeZIndex,w.label=2;case 2:return n<i.length?(m=i[n],[4,this.renderStack(m)]):[3,5];case 3:w.sent(),w.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:w.sent(),o=0,a=r.nonInlineLevel,w.label=7;case 7:return o<a.length?(m=a[o],[4,this.renderNode(m)]):[3,10];case 8:w.sent(),w.label=9;case 9:return o++,[3,7];case 10:s=0,l=r.nonPositionedFloats,w.label=11;case 11:return s<l.length?(m=l[s],[4,this.renderStack(m)]):[3,14];case 12:w.sent(),w.label=13;case 13:return s++,[3,11];case 14:A=0,u=r.nonPositionedInlineLevel,w.label=15;case 15:return A<u.length?(m=u[A],[4,this.renderStack(m)]):[3,18];case 16:w.sent(),w.label=17;case 17:return A++,[3,15];case 18:d=0,h=r.inlineLevel,w.label=19;case 19:return d<h.length?(m=h[d],[4,this.renderNode(m)]):[3,22];case 20:w.sent(),w.label=21;case 21:return d++,[3,19];case 22:f=0,g=r.zeroOrAutoZIndexOrTransformedOrOpacity,w.label=23;case 23:return f<g.length?(m=g[f],[4,this.renderStack(m)]):[3,26];case 24:w.sent(),w.label=25;case 25:return f++,[3,23];case 26:p=0,v=r.positiveZIndex,w.label=27;case 27:return p<v.length?(m=v[p],[4,this.renderStack(m)]):[3,30];case 28:w.sent(),w.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(r){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(r.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},t.prototype.formatPath=function(r){var n=this;r.forEach(function(i,o){var a=na(i)?i.start:i;o===0?n.ctx.moveTo(a.x,a.y):n.ctx.lineTo(a.x,a.y),na(i)&&n.ctx.bezierCurveTo(i.startControl.x,i.startControl.y,i.endControl.x,i.endControl.y,i.end.x,i.end.y)})},t.prototype.renderRepeat=function(r,n,i,o){this.path(r),this.ctx.fillStyle=n,this.ctx.translate(i,o),this.ctx.fill(),this.ctx.translate(-i,-o)},t.prototype.resizeImage=function(r,n,i){var o;if(r.width===n&&r.height===i)return r;var a=(o=this.canvas.ownerDocument)!==null&&o!==void 0?o:document,s=a.createElement("canvas");s.width=Math.max(1,n),s.height=Math.max(1,i);var l=s.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,n,i),s}
vendor: 5,793 bytes, line 291
291,t.prototype.renderBackgroundImage=function(r){return Hi(this,void 0,void 0,function(){var n,i,o,a,s,l;return Oi(this,function(A){switch(A.label){case 0:n=r.styles.backgroundImage.length-1,i=function(u){var d,h,f,j,K,V,U,R,O,g,j,K,V,U,R,p,v,m,w,b,E,B,_,F,O,k,j,I,T,U,R,G,K,V,Q,H,q,re,P,D,X,Z;return Oi(this,function(ae){switch(ae.label){case 0:if(u.type!==0)return[3,5];d=void 0,h=u.url,ae.label=1;case 1:return ae.trys.push([1,3,,4]),[4,o.context.cache.match(h)];case 2:return d=ae.sent(),[3,4];case 3:return ae.sent(),o.context.logger.error("Error loading background-image "+h),[3,4];case 4:return d&&(f=UE(r,n,[d.width,d.height,d.width/d.height]),j=f[0],K=f[1],V=f[2],U=f[3],R=f[4],O=o.ctx.createPattern(o.resizeImage(d,U,R),"repeat"),o.renderRepeat(j,O,K,V)),[3,6];case 5:gle(u)?(g=UE(r,n,[null,null,null]),j=g[0],K=g[1],V=g[2],U=g[3],R=g[4],p=ule(u.angle,U,R),v=p[0],m=p[1],w=p[2],b=p[3],E=p[4],B=document.createElement("canvas"),B.width=U,B.height=R,_=B.getContext("2d"),F=_.createLinearGradient(m,b,w,E),Cj(u.stops,v).forEach(function(se){return F.addColorStop(se.stop,Jn(se.color))}),_.fillStyle=F,_.fillRect(0,0,U,R),U>0&&R>0&&(O=o.ctx.createPattern(B,"repeat"),o.renderRepeat(j,O,K,V))):mle(u)&&(k=UE(r,n,[null,null,null]),j=k[0],I=k[1],T=k[2],U=k[3],R=k[4],G=u.position.length===0?[AF]:u.position,K=Vr(G[0],U),V=Vr(G[G.length-1],R),Q=dle(u,K,V,U,R),H=Q[0],q=Q[1],H>0&&q>0&&(re=o.ctx.createRadialGradient(I+K,T+V,0,I+K,T+V,H),Cj(u.stops,H*2).forEach(function(se){return re.addColorStop(se.stop,Jn(se.color))}),o.path(j),o.ctx.fillStyle=re,H!==q?(P=r.bounds.left+.5*r.bounds.width,D=r.bounds.top+.5*r.bounds.height,X=q/H,Z=1/X,o.ctx.save(),o.ctx.translate(P,D),o.ctx.transform(1,0,0,X,0,0),o.ctx.translate(-P,-D),o.ctx.fillRect(I,Z*(T-D)+D,U,R*Z),o.ctx.restore()):o.ctx.fill())),ae.label=6;case 6:return n--,[2]}})},o=this,a=0,s=r.styles.backgroundImage.slice(0).reverse(),A.label=1;case 1:return a<s.length?(l=s[a],[5,i(l)]):[3,4];case 2:A.sent(),A.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(r,n,i){return Hi(this,void 0,void 0,function(){return Oi(this,function(o){return this.path(i3(i,n)),this.ctx.fillStyle=Jn(r),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(r,n,i,o){return Hi(this,void 0,void 0,function(){var a,s;return Oi(this,function(l){switch(l.label){case 0:return n<3?[4,this.renderSolidBorder(r,i,o)]:[3,2];case 1:return l.sent(),[2];case 2:return a=wue(o,i),this.path(a),this.ctx.fillStyle=Jn(r),this.ctx.fill(),s=bue(o,i),this.path(s),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(r){return Hi(this,void 0,void 0,function(){var n,i,o,a,s,l,A,u,d=this;return Oi(this,function(h){switch(h.label){case 0:return this.applyEffects(r.getEffects(2)),n=r.container.styles,i=!YA(n.backgroundColor)||n.backgroundImage.length,o=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],a=Tue(Zd(n.backgroundClip,0),r.curves),i||n.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),YA(n.backgroundColor)||(this.ctx.fillStyle=Jn(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:h.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(f){d.ctx.save();var g=X1(r.curves),p=f.inset?0:kue,v=yue(g,-p+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(d.path(g),d.ctx.clip(),d.mask(v)):(d.mask(g),d.ctx.clip(),d.path(v)),d.ctx.shadowOffsetX=f.offsetX.number+p,d.ctx.shadowOffsetY=f.offsetY.number,d.ctx.shadowColor=Jn(f.color),d.ctx.shadowBlur=f.blur.number,d.ctx.fillStyle=f.inset?Jn(f.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),h.label=2;case 2:s=0,l=0,A=o,h.label=3;case 3:return l<A.length?(u=A[l],u.style!==0&&!YA(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,s,r.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,s,r.curves,3)];case 6:return h.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,r.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,r.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(r,n,i,o,a){return Hi(this,void 0,void 0,function(){var s,l,A,u,d,h,f,g,p,v,m,w,b,E,B,_,B,_;return Oi(this,function(F){return this.ctx.save(),s=xue(o,i),l=i3(o,i),a===2&&(this.path(l),this.ctx.clip()),na(l[0])?(A=l[0].start.x,u=l[0].start.y):(A=l[0].x,u=l[0].y),na(l[1])?(d=l[1].end.x,h=l[1].end.y):(d=l[1].x,h=l[1].y),i===0||i===2?f=Math.abs(A-d):f=Math.abs(u-h),this.ctx.beginPath(),a===3?this.formatPath(s):this.formatPath(l.slice(0,2)),g=n<3?n*3:n*2,p=n<3?n*2:n,a===3&&(g=n,p=n),v=!0,f<=g*2?v=!1:f<=g*2+p?(m=f/(2*g+p),g*=m,p*=m):(w=Math.floor((f+p)/(g+p)),b=(f-w*g)/(w-1),E=(f-(w+1)*g)/w,p=E<=0||Math.abs(p-b)<Math.abs(p-E)?b:E),v&&(a===3?this.ctx.setLineDash([0,g+p]):this.ctx.setLineDash([g,p])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=Jn(r),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&(na(l[0])&&(B=l[3],_=l[0],this.ctx.beginPath(),this.formatPath([new nt(B.end.x,B.end.y),new nt(_.start.x,_.start.y)]),this.ctx.stroke()),na(l[1])&&(B=l[1],_=l[2],this.ctx.beginPath(),this.formatPath([new nt(B.end.x,B.end.y),new nt(_.start.x,_.start.y)]),this.ctx.stroke())),this.ctx.restore(
vendor: 10,533 bytes, line 291
291),[2]})})},t.prototype.render=function(r){return Hi(this,void 0,void 0,function(){var n;return Oi(this,function(i){switch(i.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Jn(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=vue(r),[4,this.renderStack(n)];case 1:return i.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(LH),Nue=function(e){return e instanceof vH||e instanceof yH?!0:e instanceof hF&&e.type!==G1&&e.type!==W1},Tue=function(e,t){switch(e){case 0:return X1(t);case 2:return hue(t);case 1:default:return J1(t)}},Oue=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},jue=["-apple-system","system-ui"],Pue=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return jue.indexOf(t)===-1}):e},Lue=function(e){Va(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=n,i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),i}return t.prototype.render=function(r){return Hi(this,void 0,void 0,function(){var n,i;return Oi(this,function(o){switch(o.label){case 0:return n=QC(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,Uue(n)];case 1:return i=o.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Jn(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}(LH),Uue=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Rue=function(){function e(t){var r=t.id,n=t.enabled;this.id=r,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,w0([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=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,w0([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,w0([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,w0([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),Due=function(){function e(t,r){var n;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new Rue({id:this.instanceName,enabled:t.logging}),this.cache=(n=t.cache)!==null&&n!==void 0?n:new oue(this,t)}return e.instanceCount=1,e}(),EA=function(e,t){return t===void 0&&(t={}),Que(e,t)};typeof window<"u"&&FH.setContext(window);var Que=function(e,t){return Hi(void 0,void 0,void 0,function(){var r,n,i,o,a,s,l,A,u,d,h,f,g,p,v,m,w,b,E,B,F,_,F,O,k,j,I,T,U,R,G,K,V,Q,H,q,re,P,D,X;return Oi(this,function(Z){switch(Z.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(n=r.defaultView,!n)throw new Error("Document is not attached to a Window");return i={allowTaint:(O=t.allowTaint)!==null&&O!==void 0?O:!1,imageTimeout:(k=t.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:t.proxy,useCORS:(j=t.useCORS)!==null&&j!==void 0?j:!1},o=_C({logging:(I=t.logging)!==null&&I!==void 0?I:!0,cache:t.cache},i),a={windowWidth:(T=t.windowWidth)!==null&&T!==void 0?T:n.innerWidth,windowHeight:(U=t.windowHeight)!==null&&U!==void 0?U:n.innerHeight,scrollX:(R=t.scrollX)!==null&&R!==void 0?R:n.pageXOffset,scrollY:(G=t.scrollY)!==null&&G!==void 0?G:n.pageYOffset},s=new Nl(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),l=new Due(o,s),A=(K=t.foreignObjectRendering)!==null&&K!==void 0?K:!1,u={allowTaint:(V=t.allowTaint)!==null&&V!==void 0?V:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:A,copyStyles:A},l.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),d=new t3(l,e,u),h=d.clonedReferenceElement,h?[4,d.toIFrame(r,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=Z.sent(),g=fF(h)||$ce(h)?yae(h.ownerDocument):Px(l,h),p=g.width,v=g.height,m=g.left,w=g.top,b=Mue(l,h,t.backgroundColor),E={canvas:t.canvas,backgroundColor:b,scale:(H=(Q=t.scale)!==null&&Q!==void 0?Q:n.devicePixelRatio)!==null&&H!==void 0?H:1,x:((q=t.x)!==null&&q!==void 0?q:0)+m,y:((re=t.y)!==null&&re!==void 0?re:0)+w,width:(P=t.width)!==null&&P!==void 0?P:Math.ceil(p),height:(D=t.height)!==null&&D!==void 0?D:Math.ceil(v)},A?(l.logger.debug("Document cloned, using foreign object rendering"),F=new Lue(l,E),[4,F.render(h)]):[3,3];case 2:return B=Z.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+m+","+w+" with size "+p+"x"+v+" using computed rendering"),l.logger.debug("Starting DOM parsing"),_=xH(l,h),b===_.styles.backgroundColor&&(_.styles.backgroundColor=vl.TRANSPARENT),l.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),F=new Fue(l,E),[4,F.render(_)];case 4:B=Z.sent(),Z.label=5;case 5:return(!((X=t.removeContainer)!==null&&X!==void 0)||X)&&(t3.destroy(f)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,B]}})})},Mue=function(e,t,r){var n=t.ownerDocument,i=n.documentElement?Yg(e,getComputedStyle(n.documentElement).backgroundColor):vl.TRANSPARENT,o=n.body?Yg(e,getComputedStyle(n.body).backgroundColor):vl.TRANSPARENT,a=typeof r=="string"?Yg(e,r):r===null?vl.TRANSPARENT:4294967295;return t===n.documentElement?YA(i)?YA(o)?a:o:i:a};const $ue=Object.freeze(Object.defineProperty({__proto__:null,default:EA},Symbol.toStringTag,{value:"Module"}));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 Ka=Uint8Array,Po=Uint16Array,pF=Int32Array,gF=new Ka([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]),mF=new Ka([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]),a3=new Ka([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),UH=function(e,t){for(var r=new Po(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new pF(r[30]),n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return{b:r,r:i}},RH=UH(gF,2),Hue=RH.b,WC=RH.r;Hue[28]=258,WC[258]=28;var Kue=UH(mF,0),s3=Kue.r,GC=new Po(32768);for(var Zr=0;Zr<32768;++Zr){var AA=(Zr&43690)>>1|(Zr&21845)<<1;AA=(AA&52428)>>2|(AA&13107)<<2,AA=(AA&61680)>>4|(AA&3855)<<4,GC[Zr]=((AA&65280)>>8|(AA&255)<<8)>>1}var Zg=function(e,t,r){for(var n=e.length,i=0,o=new Po(t);i<n;++i)e[i]&&++o[e[i]-1];var a=new Po(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;var s;if(r){s=new Po(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var A=i<<4|e[i],u=t-e[i],d=a[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[GC[d]>>l]=A}else for(s=new Po(n),i=0;i<n;++i)e[i]&&(s[i]=GC[a[e[i]-1]++]>>15-e[i]);return s},Lu=new Ka(288);for(var Zr=0;Zr<144;++Zr)Lu[Zr]=8;for(var Zr=144;Zr<256;++Zr)Lu[Zr]=9;for(var Zr=256;Zr<280;++Zr)Lu[Zr]=7;for(var Zr=280;Zr<288;++Zr)Lu[Zr]=8;var eb=new Ka(32);for(var Zr=0;Zr<32;++Zr)eb[Zr]=5;var Vue=Zg(Lu,9,0),zue=Zg(eb,5,0),DH=function(e){return(e+7)/8|0},Wue=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new Ka(e.subarray(t,r))},Zs=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},qp=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},RE=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,o=r.slice();if(!i)return{t:MH,l:0};if(i==1){var a=new Ka(r[0].s+1);return a[r[0].s]=1,{t:a,l:1}}r.sort(function(B,_){return B.f-_.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],A=0,u=1,d=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=r[r[A].f<r[d].f?A++:d++],l=r[A!=u&&r[A].f<r[d].f?A++:d++],r[u++]={s:-1,f:s.f+l.f,l:s,r:l};for(var h=o[0].s,n=1;n<i;++n)o[n].s>h&&(h=o[n].s);var f=new Po(h+1),g=YC(r[u-1],f,0);if(g>t){var n=0,p=0,v=g-t,m=1<<v;for(o.sort(function(_,F){return f[F.s]-f[_.s]||_.f-F.f});n<i;++n){var w=o[n].s;if(f[w]>t)p+=m-(1<<g-f[w]),f[w]=t;else break}for(p>>=v;p>0;){var b=o[n].s;f[b]<t?p-=1<<t-f[b]++-1:++n}for(;n>=0&&p;--n){var E=o[n].s;f[E]==t&&(--f[E],++p)}g=t}return{t:new Ka(f),l:g}},YC=function(e,t,r){return e.s==-1?Math.max(YC(e.l,t,r+1),YC(e.r,t,r+1)):t[e.s]=r},l3=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Po(++t),n=0,i=e[0],o=1,a=function(l){r[n++]=l},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return{c:r.subarray(0,n),n:t}},Xp=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},QH=function(e,t,r){var n=r.length,i=DH(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var o=0;o<n;++o)e[i+o+4]=r[o];return(i+4+n)*8},A3=function(e,t,r,n,i,o,a,s,l,A,u){Zs(t,u++,r),++i[256];for(var d=RE(i,15),h=d.t,f=d.l,g=RE(o,15),p=g.t,v=g.l,m=l3(h),w=m.c,b=m.n,E=l3(p),B=E.c,_=E.n,F=new Po(19),O=0;O<w.length;++O)++F[w[O]&31];for(var O=0;O<B.length;++O)++F[B[O]&31];for(var k=RE(F,7),j=k.t,I=k.l,T=19;T>4&&!j[a3[T-1]];--T);var U=A+5<<3,R=Xp(i,Lu)+Xp(o,eb)+a,G=Xp(i,h)+Xp(o,p)+a+14+3*T+Xp(F,j)+2*F[16]+3*F[17]+7*F[18];
vendor: 1,545 bytes, line 291
291if(l>=0&&U<=R&&U<=G)return QH(t,u,e.subarray(l,l+A));var K,V,Q,H;if(Zs(t,u,1+(G<R)),u+=2,G<R){K=Zg(h,f,0),V=h,Q=Zg(p,v,0),H=p;var q=Zg(j,I,0);Zs(t,u,b-257),Zs(t,u+5,_-1),Zs(t,u+10,T-4),u+=14;for(var O=0;O<T;++O)Zs(t,u+3*O,j[a3[O]]);u+=3*T;for(var re=[w,B],P=0;P<2;++P)for(var D=re[P],O=0;O<D.length;++O){var X=D[O]&31;Zs(t,u,q[X]),u+=j[X],X>15&&(Zs(t,u,D[O]>>5&127),u+=D[O]>>12)}}else K=Vue,V=Lu,Q=zue,H=eb;for(var O=0;O<s;++O){var Z=n[O];if(Z>255){var X=Z>>18&31;qp(t,u,K[X+257]),u+=V[X+257],X>7&&(Zs(t,u,Z>>23&31),u+=gF[X]);var ae=Z&31;qp(t,u,Q[ae]),u+=H[ae],ae>3&&(qp(t,u,Z>>5&8191),u+=mF[ae])}else qp(t,u,K[Z]),u+=V[Z]}return qp(t,u,K[256]),u+V[256]},Gue=new pF([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),MH=new Ka(0),Yue=function(e,t,r,n,i,o){var a=o.z||e.length,s=new Ka(n+a+5*(1+Math.ceil(a/7e3))+i),l=s.subarray(n,s.length-i),A=o.l,u=(o.r||0)&7;if(t){u&&(l[0]=o.r>>3);for(var d=Gue[t-1],h=d>>13,f=d&8191,g=(1<<r)-1,p=o.p||new Po(32768),v=o.h||new Po(g+1),m=Math.ceil(r/3),w=2*m,b=function(ve){return(e[ve]^e[ve+1]<<m^e[ve+2]<<w)&g},E=new pF(25e3),B=new Po(288),_=new Po(32),F=0,O=0,k=o.i||0,j=0,I=o.w||0,T=0;k+2<a;++k){var U=b(k),R=k&32767,G=v[U];if(p[R]=G,v[U]=R,I<=k){var K=a-k;if((F>7e3||j>24576)&&(K>423||!A)){u=A3(e,l,0,E,B,_,O,j,T,k-T,u),j=F=O=0,T=k;for(var V=0;V<286;++V)B[V]=0;for(var V=0;V<30;++V)_[V]=0}var Q=2,H=0,q=f,re=R-G&32767;if(K>2&&U==b(k-re))for(var P=Math.min(h,K)-1,D=Math.min(32767,k),X=Math.min(258,K);re<=D&&--q&&R!=G;){if(e[k+Q]==e[k+Q-re]){for(var Z=0;Z<X&&e[k+Z]==e[k+Z-re];++Z);if(Z>
vendor: 9,090 bytes, lines 291-292
291Q){if(Q=Z,H=re,Z>P)break;for(var ae=Math.min(re,Z-2),se=0,V=0;V<ae;++V){var pe=k-re+V&32767,le=p[pe],he=pe-le&32767;he>se&&(se=he,G=pe)}}}R=G,G=p[R],re+=R-G&32767}if(H){E[j++]=268435456|WC[Q]<<18|s3[H];var Ae=WC[Q]&31,ue=s3[H]&31;O+=gF[Ae]+mF[ue],++B[257+Ae],++_[ue],I=k+Q,++F}else E[j++]=e[k],++B[e[k]]}}for(k=Math.max(k,I);k<a;++k)E[j++]=e[k],++B[e[k]];u=A3(e,l,A,E,B,_,O,j,T,k-T,u),A||(o.r=u&7|l[u/8|0]<<3,u-=7,o.h=v,o.p=p,o.i=k,o.w=I)}else{for(var k=o.w||0;k<a+A;k+=65535){var _e=k+65535;_e>=a&&(l[u/8|0]=A,_e=a),u=QH(l,u+1,e.subarray(k,_e))}o.i=a}return Wue(s,0,n+DH(u)+i)},$H=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,o=r.length|0,a=0;a!=o;){for(var s=Math.min(a+2655,o);a<s;++a)i+=n+=r[a];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}e=n,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},que=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),a=new Ka(o.length+e.length);a.set(o),a.set(e,o.length),e=a,i.w=o.length}return Yue(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,r,n,i)},HH=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},Xue=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=$H();i.p(t.dictionary),HH(e,2,i.d())}};function qC(e,t){t||(t={});var r=$H();r.p(e);var n=que(e,t,t.dictionary?6:2,4);return Xue(n,t),HH(n,n.length-4,r.d()),n}var Jue=typeof TextDecoder<"u"&&new TextDecoder,Zue=0;try{Jue.decode(MH,{stream:!0}),Zue=1}catch{}function ede(e){if(Array.isArray(e))return e}function tde(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function c3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function rde(e,t){if(e){if(typeof e=="string")return c3(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c3(e,t):void 0}}function nde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
292In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u3(e,t){return ede(e)||tde(e,t)||rde(e,t)||nde()}function d3(e,t="utf8"){return new TextDecoder(t).decode(e)}const ide=new TextEncoder;function ode(e){return ide.encode(e)}const ade=1024*8,sde=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),DE={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 yF{constructor(t=ade,r={}){_r(this,"buffer");_r(this,"byteLength");_r(this,"byteOffset");_r(this,"length");_r(this,"offset");_r(this,"lastWrittenByte");_r(this,"littleEndian");_r(this,"_data");_r(this,"_mark");_r(this,"_marks");let n=!1;typeof t=="number"?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const i=r.offset?r.offset>>>0:0,o=t.byteLength-i;let a=i;(ArrayBuffer.isView(t)||t instanceof yF)&&(t.byteLength!==t.buffer.byteLength&&(a=t.byteOffset+i),t=t.buffer),n?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=t,this.length=o,this.byteLength=o,this.byteOffset=a,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,a,o),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 n=(this.offset+t)*2,i=new Uint8Array(n);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=n,this.byteLength=n,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,r){const n=DE[r].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,o=this.buffer.slice(i,i+n);if(this.littleEndian===sde&&r!=="uint8"&&r!=="int8"){const s=new Uint8Array(this.buffer.slice(i,i+n));s.reverse();const l=new DE[r](s.buffer);return this.offset+=n,l.reverse(),l}const a=new DE[r](o);return this.offset+=n,a}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 r="";for(let n=0;n<t;n++)r+=this.readChar();return r}readUtf8(t=1){return d3(this.readBytes(t))}decodeText(t=1,r="utf8"){return d3(this.readBytes(t),r)}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 r=0;r<t.length;r++)this._data.setUint8(this.offset++,t[r]);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 r=0;r<t.length;r++)this.writeUint8(t.charCodeAt(r));return this}writeUtf8(t){return this.writeBytes(ode(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)}}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const lde=4,h3=0,f3=1,Ade=2;function Yf(e){let t=e.length;for(;--t>=0;)e[t]=0}const cde=0,KH=1,ude=2,dde=3,hde=258,vF=29,Yy=256,$m=Yy+1+vF,Oh=30,wF=19,VH=2*$m+1,uu=15,QE=16,fde=7,bF=256,zH=16,WH=17,GH=18,XC=new Uint8Array([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]),Vw=new Uint8Array([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]),pde=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),YH=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),gde=512,cl=new Array(($m+2)*2);Yf(cl);const em=new Array(Oh*2);Yf(em);const Hm=new Array(gde);Yf(Hm);const Km=new Array(hde-dde+1);Yf(Km);
vendor: 45,551 bytes, line 292
292const xF=new Array(vF);Yf(xF);const tb=new Array(Oh);Yf(tb);function ME(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}let qH,XH,JH;function $E(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const ZH=e=>e<256?Hm[e]:Hm[256+(e>>>7)],Vm=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Ao=(e,t,r)=>{e.bi_valid>QE-r?(e.bi_buf|=t<<e.bi_valid&65535,Vm(e,e.bi_buf),e.bi_buf=t>>QE-e.bi_valid,e.bi_valid+=r-QE):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},ms=(e,t,r)=>{Ao(e,r[t*2],r[t*2+1])},e7=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},mde=e=>{e.bi_valid===16?(Vm(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},yde=(e,t)=>{const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,l=t.stat_desc.max_length;let A,u,d,h,f,g,p=0;for(h=0;h<=uu;h++)e.bl_count[h]=0;for(r[e.heap[e.heap_max]*2+1]=0,A=e.heap_max+1;A<VH;A++)u=e.heap[A],h=r[r[u*2+1]*2+1]+1,h>l&&(h=l,p++),r[u*2+1]=h,!(u>n)&&(e.bl_count[h]++,f=0,u>=s&&(f=a[u-s]),g=r[u*2],e.opt_len+=g*(h+f),o&&(e.static_len+=g*(i[u*2+1]+f)));if(p!==0){do{for(h=l-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[l]--,p-=2}while(p>0);for(h=l;h!==0;h--)for(u=e.bl_count[h];u!==0;)d=e.heap[--A],!(d>n)&&(r[d*2+1]!==h&&(e.opt_len+=(h-r[d*2+1])*r[d*2],r[d*2+1]=h),u--)}},t7=(e,t,r)=>{const n=new Array(uu+1);let i=0,o,a;for(o=1;o<=uu;o++)i=i+r[o-1]<<1,n[o]=i;for(a=0;a<=t;a++){let s=e[a*2+1];s!==0&&(e[a*2]=e7(n[s]++,s))}},vde=()=>{let e,t,r,n,i;const o=new Array(uu+1);for(r=0,n=0;n<vF-1;n++)for(xF[n]=r,e=0;e<1<<XC[n];e++)Km[r++]=n;for(Km[r-1]=n,i=0,n=0;n<16;n++)for(tb[n]=i,e=0;e<1<<Vw[n];e++)Hm[i++]=n;for(i>>=7;n<Oh;n++)for(tb[n]=i<<7,e=0;e<1<<Vw[n]-7;e++)Hm[256+i++]=n;for(t=0;t<=uu;t++)o[t]=0;for(e=0;e<=143;)cl[e*2+1]=8,e++,o[8]++;for(;e<=255;)cl[e*2+1]=9,e++,o[9]++;for(;e<=279;)cl[e*2+1]=7,e++,o[7]++;for(;e<=287;)cl[e*2+1]=8,e++,o[8]++;for(t7(cl,$m+1,o),e=0;e<Oh;e++)em[e*2+1]=5,em[e*2]=e7(e,5);qH=new ME(cl,XC,Yy+1,$m,uu),XH=new ME(em,Vw,0,Oh,uu),JH=new ME(new Array(0),pde,0,wF,fde)},r7=e=>{let t;for(t=0;t<$m;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Oh;t++)e.dyn_dtree[t*2]=0;for(t=0;t<wF;t++)e.bl_tree[t*2]=0;e.dyn_ltree[bF*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},n7=e=>{e.bi_valid>8?Vm(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},p3=(e,t,r,n)=>{const i=t*2,o=r*2;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]},HE=(e,t,r)=>{const n=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i<e.heap_len&&p3(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!p3(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n},g3=(e,t,r)=>{let n,i,o=0,a,s;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+o++]&255,n+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],n===0?ms(e,i,t):(a=Km[i],ms(e,a+Yy+1,t),s=XC[a],s!==0&&(i-=xF[a],Ao(e,i,s)),n--,a=ZH(n),ms(e,a,r),s=Vw[a],s!==0&&(n-=tb[a],Ao(e,n,s)));while(o<e.sym_next);ms(e,bF,t)},JC=(e,t)=>{const r=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let a,s,l=-1,A;for(e.heap_len=0,e.heap_max=VH,a=0;a<o;a++)r[a*2]!==0?(e.heap[++e.heap_len]=l=a,e.depth[a]=0):r[a*2+1]=0;for(;e.heap_len<2;)A=e.heap[++e.heap_len]=l<2?++l:0,r[A*2]=1,e.depth[A]=0,e.opt_len--,i&&(e.static_len-=n[A*2+1]);for(t.max_code=l,a=e.heap_len>>1;a>=1;a--)HE(e,r,a);A=o;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],HE(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,r[A*2]=r[a*2]+r[s*2],e.depth[A]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,r[a*2+1]=r[s*2+1]=A,e.heap[1]=A++,HE(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],yde(e,t),t7(r,l,e.bl_count)},m3=(e,t,r)=>{let n,i=-1,o,a=t[0*2+1],s=0,l=7,A=4;for(a===0&&(l=138,A=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)o=a,a=t[(n+1)*2+1],!(++s<l&&o===a)&&(s<A?e.bl_tree[o*2]+=s:o!==0?(o!==i&&e.bl_tree[o*2]++,e.bl_tree[zH*2]++):s<=10?e.bl_tree[WH*2]++:e.bl_tree[GH*2]++,s=0,i=o,a===0?(l=138,A=3):o===a?(l=6,A=3):(l=7,A=4))},y3=(e,t,r)=>{let n,i=-1,o,a=t[0*2+1],s=0,l=7,A=4;for(a===0&&(l=138,A=3),n=0;n<=r;n++)if(o=a,a=t[(n+1)*2+1],!(++s<l&&o===a)){if(s<A)do ms(e,o,e.bl_tree);while(--s!==0);else o!==0?(o!==i&&(ms(e,o,e.bl_tree),s--),ms(e,zH,e.bl_tree),Ao(e,s-3,2)):s<=10?(ms(e,WH,e.bl_tree),Ao(e,s-3,3)):(ms(e,GH,e.bl_tree),Ao(e,s-11,7));s=0,i=o,a===0?(l=138,A=3):o===a?(l=6,A=3):(l=7,A=4)}},wde=e=>{let t;for(m3(e,e.dyn_ltree,e.l_desc.max_code),m3(e,e.dyn_dtree,e.d_desc.max_code),JC(e,e.bl_desc),t=wF-1;t>=3&&e.bl_tree[YH[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},bde=(e,t,r,n)=>{let i;for(Ao(e,t-257,5),Ao(e,r-1,5),Ao(e,n-4,4),i=0;i<n;i++)Ao(e,e.bl_tree[YH[i]*2+1],3);y3(e,e.dyn_ltree,t-1),y3(e,e.dyn_dtree,r-1)},xde=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return h3;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return f3;for(r=32;r<Yy;r++)if(e.dyn_ltree[r*2]!==0)return f3;return h3};let v3=!1;const Bde=e=>{v3||(vde(),v3=!0),e.l_desc=new $E(e.dyn_ltree,qH),e.d_desc=new $E(e.dyn_dtree,XH),e.bl_desc=new $E(e.bl_tree,JH),e.bi_buf=0,e.bi_valid=0,r7(e)},i7=(e,t,r,n)=>{Ao(e,(cde<<1)+(n?1:0),3),n7(e),Vm(e,r),Vm(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},Ede=e=>{Ao(e,KH<<1,3),ms(e,bF,cl),mde(e)},_de=(e,t,r,n)=>{let i,o,a=0;e.level>0?(e.strm.data_type===Ade&&(e.strm.data_type=xde(e)),JC(e,e.l_desc),JC(e,e.d_desc),a=wde(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&t!==-1?i7(e,t,r,n):e.strategy===lde||o===i?(Ao(e,(KH<<1)+(n?1:0),3),g3(e,cl,em)):(Ao(e,(ude<<1)+(n?1:0),3),bde(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),g3(e,e.dyn_ltree,e.dyn_dtree)),r7(e),n&&n7(e)},Sde=(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Km[r]+Yy+1)*2]++,e.dyn_dtree[ZH(t)*2]++),e.sym_next===e.sym_end);var Cde=Bde,Ide=i7,kde=_de,Fde=Sde,Nde=Ede,Tde={_tr_init:Cde,_tr_stored_block:Ide,_tr_flush_block:kde,_tr_tally:Fde,_tr_align:Nde};const Ode=(e,t,r,n)=>{let i=e&65535|0,o=e>>>16&65535|0,a=0;for(;r!==0;){a=r>2e3?2e3:r,r-=a;do i=i+t[n++]|0,o=o+i|0;while(--a);i%=65521,o%=65521}return i|o<<16|0};var zm=Ode;const jde=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},Pde=new Uint32Array(jde()),Lde=(e,t,r,n)=>{const i=Pde,o=n+r;e^=-1;for(let a=n;a<o;a++)e=e>>>8^i[(e^t[a])&255];return e^-1};var Zn=Lde,cf={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"},qy={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Ude,_tr_stored_block:ZC,_tr_flush_block:Rde,_tr_tally:qA,_tr_align:Dde}=Tde,{Z_NO_FLUSH:XA,Z_PARTIAL_FLUSH:Qde,Z_FULL_FLUSH:Mde,Z_FINISH:ia,Z_BLOCK:w3,Z_OK:hi,Z_STREAM_END:b3,Z_STREAM_ERROR:Ss,Z_DATA_ERROR:$de,Z_BUF_ERROR:KE,Z_DEFAULT_COMPRESSION:Hde,Z_FILTERED:Kde,Z_HUFFMAN_ONLY:H0,Z_RLE:Vde,Z_FIXED:zde,Z_DEFAULT_STRATEGY:Wde,Z_UNKNOWN:Gde,Z_DEFLATED:Vx}=qy,Yde=9,qde=15,Xde=8,Jde=29,Zde=256,e5=Zde+1+Jde,ehe=30,the=19,rhe=2*e5+1,nhe=15,or=3,UA=258,Cs=UA+or+1,ihe=32,uf=42,BF=57,t5=69,r5=73,n5=91,i5=103,du=113,_g=666,qi=1,qf=2,Uu=3,Xf=4,ohe=3,hu=(e,t)=>(e.msg=cf[t],t),x3=e=>e*2-(e>4?9:0),_A=e=>{let t=e.length;for(;--t>=0;)e[t]=0},ahe=e=>{let t,r,n,i=e.w_size;t=e.hash_size,n=t;do r=e.head[--n],e.head[n]=r>=i?r-i:0;while(--t);t=i,n=t;do r=e.prev[--n],e.prev[n]=r>=i?r-i:0;while(--t)};let she=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask,JA=she;const Io=e=>{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},Lo=(e,t)=>{Rde(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Io(e.strm)},pr=(e,t)=>{e.pending_buf[e.pending++]=t},Jp=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},o5=(e,t,r,n)=>{let i=e.avail_in;return i>n&&(i=n),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),r),e.state.wrap===1?e.adler=zm(e.adler,t,i,r):e.state.wrap===2&&(e.adler=Zn(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},o7=(e,t)=>{let r=e.max_chain_length,n=e.strstart,i,o,a=e.prev_length,s=e.nice_match;const l=e.strstart>e.w_size-Cs?e.strstart-(e.w_size-Cs):0,A=e.window,u=e.w_mask,d=e.prev,h=e.strstart+UA;let f=A[n+a-1],g=A[n+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,!(A[i+a]!==g||A[i+a-1]!==f||A[i]!==A[n]||A[++i]!==A[n+1])){n+=2,i++;do;while(A[++n]===A[++i]&&A[++n]===A[++i]&&A[++n]===A[++i]&&A[++n]===A[++i]&&A[++n]===A[++i]&&A[++n]===A[++i]&&A[++n]===A[++i]&&A[++n]===A[++i]&&n<h);if(o=UA-(h-n),n=h-UA,o>a){if(e.match_start=t,a=o,o>=s)break;f=A[n+a-1],g=A[n+a]}}while((t=d[t&u])>l&&--r!==0);return a<=e.lookahead?a:e.lookahead},df=e=>{const t=e.w_size;let r,n,i;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Cs)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),ahe(e),n+=t),e.strm.avail_in===0)break;if(r=o5(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=or)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=JA(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=JA(e,e.ins_h,e.window[i+or-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<or)););}while(e.lookahead<Cs&&e.strm.avail_in!==0)},a7=(e,t)=>{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,i,o,a=0,s=e.strm.avail_in;do{if(n=65535,o=e.bi_valid+42>>3,e.strm.avail_out<o||(o=e.strm.avail_out-o,i=e.strstart-e.block_start,n>i+e.strm.avail_in&&(n=i+e.strm.avail_in),n>o&&(n=o),n<r&&(n===0&&t!==ia||t===XA||n!==i+e.strm.avail_in)))break;a=t===ia&&n===i+e.strm.avail_in?1:0,ZC(e,0,0,a),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Io(e.strm),i&&(i>n&&(i=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,n-=i),n&&(o5(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(a===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?Xf:t!==XA&&t!==ia&&e.strm.avail_in===0&&e.strstart===e.block_start?qf:(o=e.window_size-e.strstart,e.strm.avail_in>o&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(o5(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water<e.strstart&&(e.high_water=e.strstart),o=e.bi_valid+42>>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,r=o>e.w_size?e.w_size:o,i=e.strstart-e.block_start,(i>=r||(i||t===ia)&&t!==XA&&e.strm.avail_in===0&&i<=o)&&(n=i>o?o:i,a=t===ia&&e.strm.avail_in===0&&n===i?1:0,ZC(e,e.block_start,n,a),e.block_start+=n,Io(e.strm)),a?Uu:qi)},VE=(e,t)=>{let r,n;for(;;){if(e.lookahead<Cs){if(df(e),e.lookahead<Cs&&t===XA)return qi;if(e.lookahead===0)break}if(r=0,e.lookahead>=or&&(e.ins_h=JA(e,e.ins_h,e.window[e.strstart+or-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Cs&&(e.match_length=o7(e,r)),e.match_length>=or)if(n=qA(e,e.strstart-e.match_start,e.match_length-or),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=or){e.match_length--;do e.strstart++,e.ins_h=JA(e,e.ins_h,e.window[e.strstart+or-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=JA(e,e.ins_h,e.window[e.strstart+1]);else n=qA(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Lo(e,!1),e.strm.avail_out===0))return qi}return e.insert=e.strstart<or-1?e.strstart:or-1,t===ia?(Lo(e,!0),e.strm.avail_out===0?Uu:Xf):e.sym_next&&(Lo(e,!1),e.strm.avail_out===0)?qi:qf},Ud=(e,t)=>{let r,n,i;for(;;){if(e.lookahead<Cs){if(df(e),e.lookahead<Cs&&t===XA)return qi;if(e.lookahead===0)break}if(r=0,e.lookahead>=or&&(e.ins_h=JA(e,e.ins_h,e.window[e.strstart+or-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=or-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Cs&&(e.match_length=o7(e,r),e.match_length<=5&&(e.strategy===Kde||e.match_length===or&&e.strstart-e.match_start>4096)&&(e.match_length=or-1)),e.prev_length>=or&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-or,n=qA(e,e.strstart-1-e.prev_match,e.prev_length-or),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=JA(e,e.ins_h,e.window[e.strstart+or-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=or-1,e.strstart++,n&&(Lo(e,!1),e.strm.avail_out===0))return qi}else if(e.match_available){if(n=qA(e,0,e.window[e.strstart-1]),n&&Lo(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return qi}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=qA(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<or-1?e.strstart:or-1,t===ia?(Lo(e,!0),e.strm.avail_out===0?Uu:Xf):e.sym_next&&(Lo(e,!1),e.strm.avail_out===0)?qi:qf},lhe=(e,t)=>{let r,n,i,o;const a=e.window;for(;;){if(e.lookahead<=UA){if(df(e),e.lookahead<=UA&&t===XA)return qi;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=or&&e.strstart>0&&(i=e.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=e.strstart+UA;do;while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);e.match_length=UA-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=or?(r=qA(e,1,e.match_length-or),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=qA(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Lo(e,!1),e.strm.avail_out===0))return qi}return e.insert=0,t===ia?(Lo(e,!0),e.strm.avail_out===0?Uu:Xf):e.sym_next&&(Lo(e,!1),e.strm.avail_out===0)?qi:qf},Ahe=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(df(e),e.lookahead===0)){if(t===XA)return qi;break}if(e.match_length=0,r=qA(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Lo(e,!1),e.strm.avail_out===0))return qi}return e.insert=0,t===ia?(Lo(e,!0),e.strm.avail_out===0?Uu:Xf):e.sym_next&&(Lo(e,!1),e.strm.avail_out===0)?qi:qf};function as(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}const Sg=[new as(0,0,0,0,a7),new as(4,4,8,4,VE),new as(4,5,16,8,VE),new as(4,6,32,32,VE),new as(4,4,16,16,Ud),new as(8,16,32,32,Ud),new as(8,16,128,128,Ud),new as(8,32,128,256,Ud),new as(32,128,258,1024,Ud),new as(32,258,258,4096,Ud)],che=e=>{e.window_size=2*e.w_size,_A(e.head),e.max_lazy_match=Sg[e.level].max_lazy,e.good_match=Sg[e.level].good_length,e.nice_match=Sg[e.level].nice_length,e.max_chain_length=Sg[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=or-1,e.match_available=0,e.ins_h=0};function uhe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Vx,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(rhe*2),this.dyn_dtree=new Uint16Array((2*ehe+1)*2),this.bl_tree=new Uint16Array((2*the+1)*2),_A(this.dyn_ltree),_A(this.dyn_dtree),_A(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(nhe+1),this.heap=new Uint16Array(2*e5+1),_A(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*e5+1),_A(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Xy=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==uf&&t.status!==BF&&t.status!==t5&&t.status!==r5&&t.status!==n5&&t.status!==i5&&t.status!==du&&t.status!==_g?1:0},s7=e=>{if(Xy(e))return hu(e,Ss);e.total_in=e.total_out=0,e.data_type=Gde;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?BF:t.wrap?uf:du,e.adler=t.wrap===2?0:1,t.last_flush=-2,Ude(t),hi},l7=e=>{const t=s7(e);return t===hi&&che(e.state),t},dhe=(e,t)=>Xy(e)||e.state.wrap!==2?Ss:(e.state.gzhead=t,hi),A7=(e,t,r,n,i,o)=>{if(!e)return Ss;let a=1;if(t===Hde&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>Yde||r!==Vx||n<8||n>15||t<0||t>9||o<0||o>zde||n===8&&a!==1)return hu(e,Ss);n===8&&(n=9);const s=new uhe;return e.state=s,s.strm=e,s.status=uf,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+or-1)/or),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=t,s.strategy=o,s.method=r,l7(e)},hhe=(e,t)=>A7(e,t,Vx,qde,Xde,Wde),fhe=(e,t)=>{if(Xy(e)||t>w3||t<0)return e?hu(e,Ss):Ss;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===_g&&t!==ia)return hu(e,e.avail_out===0?KE:Ss);const n=r.last_flush;if(r.last_flush=t,r.pending!==0){if(Io(e),e.avail_out===0)return r.last_flush=-1,hi}else if(e.avail_in===0&&x3(t)<=x3(n)&&t!==ia)return hu(e,KE);if(r.status===_g&&e.avail_in!==0)return hu(e,KE);if(r.status===uf&&r.wrap===0&&(r.status=du),r.status===uf){let i=Vx+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=H0||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,i|=o<<6,r.strstart!==0&&(i|=ihe),i+=31-i%31,Jp(r,i),r.strstart!==0&&(Jp(r,e.adler>>>16),Jp(r,e.adler&65535)),e.adler=1,r.status=du,Io(e),r.pending!==0)return r.last_flush=-1,hi}if(r.status===BF){if(e.adler=0,pr(r,31),pr(r,139),pr(r,8),r.gzhead)pr(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),pr(r,r.gzhead.time&255),pr(r,r.gzhead.time>>8&255),pr(r,r.gzhead.time>>16&255),pr(r,r.gzhead.time>>24&255),pr(r,r.level===9?2:r.strategy>=H0||r.level<2?4:0),pr(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(pr(r,r.gzhead.extra.length&255),pr(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=Zn(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=t5;else if(pr(r,0),pr(r,0),pr(r,0),pr(r,0),pr(r,0),pr(r,r.level===9?2:r.strategy>=H0||r.level<2?4:0),pr(r,ohe),r.status=du,Io(e),r.pending!==0)return r.last_flush=-1,hi}if(r.status===t5){if(r.gzhead.extra){let i=r.pending,o=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+o>r.pending_buf_size;){let s=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+s),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>i&&(e.adler=Zn(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex+=s,Io(e),r.pending!==0)return r.last_flush=-1,hi;i=0,o-=s}let a=new Uint8Array(r.gzhead.extra);r.pending_buf.set(a.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending+=o,r.gzhead.hcrc&&r.pending>i&&(e.adler=Zn(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=r5}if(r.status===r5){if(r.gzhead.name){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(e.adler=Zn(e.adler,r.pending_buf,r.pending-i,i)),Io(e),r.pending!==0)return r.last_flush=-1,hi;i=0}r.gzindex<r.gzhead.name.length?o=r.gzhead.name.charCodeAt(r.gzindex++)&255:o=0,pr(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=Zn(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=n5}if(r.status===n5){if(r.gzhead.comment){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(e.adler=Zn(e.adler,r.pending_buf,r.pending-i,i)),Io(e),r.pending!==0)return r.last_flush=-1,hi;i=0}r.gzindex<r.gzhead.comment.length?o=r.gzhead.comment.charCodeAt(r.gzindex++)&255:o=0,pr(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=Zn(e.adler,r.pending_buf,r.pending-i,i))}r.status=i5}if(r.status===i5){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(Io(e),r.pending!==0))return r.last_flush=-1,hi;pr(r,e.adler&255),pr(r,e.adler>>8&255),e.adler=0}if(r.status=du,Io(e),r.pending!==0)return r.last_flush=-1,hi}if(e.avail_in!==0||r.lookahead!==0||t!==XA&&r.status!==_g){let i=r.level===0?a7(r,t):r.strategy===H0?Ahe(r,t):r.strategy===Vde?lhe(r,t):Sg[r.level].func(r,t);if((i===Uu||i===Xf)&&(r.status=_g),i===qi||i===Uu)return e.avail_out===0&&(r.last_flush=-1),hi;if(i===qf&&(t===Qde?Dde(r):t!==w3&&(ZC(r,0,0,!1),t===Mde&&(_A(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),Io(e),e.avail_out===0))return r.last_flush=-1,hi}return t!==ia?hi:r.wrap<=0?b3:(r.wrap===2?(pr(r,e.adler&255),pr(r,e.adler>>8&255),pr(r,e.adler>>16&255),pr(r,e.adler>>24&255),pr(r,e.total_in&255),pr(r,e.total_in>>8&255),pr(r,e.total_in>>16&255),pr(r,e.total_in>>24&255)):(Jp(r,e.adler>>>16),Jp(r,e.adler&65535)),Io(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?hi:b3)},phe=e=>{if(Xy(e))return Ss;const t=e.state.status;return e.state=null,t===du?hu(e,$de):hi},ghe=(e,t)=>{let r=t.length;if(Xy(e))return Ss;const n=e.state,i=n.wrap;if(i===2||i===1&&n.status!==uf||n.lookahead)return Ss;if(i===1&&(e.adler=zm(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){i===0&&(_A(n.head),n.strstart=0,n.block_start=0,n.insert=0);let l=new Uint8Array(n.w_size);l.set(t.subarray(r-n.w_size,r),0),t=l,r=n.w_size}const o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,df(n);n.lookahead>=or;){let l=n.strstart,A=n.lookahead-(or-1);do n.ins_h=JA(n,n.ins_h,n.window[l+or-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++;while(--A);n.strstart=l,n.lookahead=or-1,df(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=or-1,n.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,n.wrap=i,hi};var mhe=hhe,yhe=A7,vhe=l7,whe=s7,bhe=dhe,xhe=fhe,Bhe=phe,Ehe=ghe,_he="pako deflate (from Nodeca project)",tm={deflateInit:mhe,deflateInit2:yhe,deflateReset:vhe,deflateResetKeep:whe,deflateSetHeader:bhe,deflate:xhe,deflateEnd:Bhe,deflateSetDictionary:Ehe,deflateInfo:_he};const She=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Che=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)She(r,n)&&(e[n]=r[n])}}return e},Ihe=e=>{let t=0;for(let n=0,i=e.length;n<i;n++)t+=e[n].length;const r=new Uint8Array(t);for(let n=0,i=0,o=e.length;n<o;n++){let a=e[n];r.set(a,i),i+=a.length}return r},zx={assign:Che,flattenChunks:Ihe};let c7=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{c7=!1}const Wm=new Uint8Array(256);for(let e=0;e<256;e++)Wm[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Wm[254]=Wm[254]=1;var khe=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,i,o,a=e.length,s=0;for(i=0;i<a;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<a&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),o=0,i=0;o<s;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<a&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const Fhe=(e,t)=>{if(t<65534&&e.subarray&&c7)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r};var Nhe=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,i;const o=new Array(r*2);for(i=0,n=0;n<r;){let a=e[n++];if(a<128){o[i++]=a;continue}let s=Wm[a];if(s>4){o[i++]=65533,n+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&n<r;)a=a<<6|e[n++]&63,s--;if(s>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return Fhe(o,i)},The=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Wm[e[r]]>t?r:t},Gm={string2buf:khe,buf2string:Nhe,utf8border:The};function Ohe(){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 u7=Ohe;const d7=Object.prototype.toString,{Z_NO_FLUSH:jhe,Z_SYNC_FLUSH:Phe,Z_FULL_FLUSH:Lhe,Z_FINISH:Uhe,Z_OK:rb,Z_STREAM_END:Rhe,Z_DEFAULT_COMPRESSION:Dhe,Z_DEFAULT_STRATEGY:Qhe,Z_DEFLATED:Mhe}=qy;function EF(e){this.options=zx.assign({level:Dhe,method:Mhe,chunkSize:16384,windowBits:15,memLevel:8,strategy:Qhe},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u7,this.strm.avail_out=0;let r=tm.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==rb)throw new Error(cf[r]);if(t.header&&tm.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=Gm.string2buf(t.dictionary):d7.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=tm.deflateSetDictionary(this.strm,n),r!==rb)throw new Error(cf[r]);this._dict_set=!0}}EF.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Uhe:jhe,typeof e=="string"?r.input=Gm.string2buf(e):d7.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===Phe||o===Lhe)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(i=tm.deflate(r,o),i===Rhe)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=tm.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===rb;if(r.avail_out===0){this.onData(r.output);continue}if(o>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};EF.prototype.onData=function(e){this.chunks.push(e)};EF.prototype.onEnd=function(e){e===rb&&(this.result=zx.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const K0=16209,$he=16191;var Hhe=function(t,r){let n,i,o,a,s,l,A,u,d,h,f,g,p,v,m,w,b,E,B,_,F,O,k,j;const I=t.state;n=t.next_in,k=t.input,i=n+(t.avail_in-5),o=t.next_out,j=t.output,a=o-(r-t.avail_out),s=o+(t.avail_out-257),l=I.dmax,A=I.wsize,u=I.whave,d=I.wnext,h=I.window,f=I.hold,g=I.bits,p=I.lencode,v=I.distcode,m=(1<<I.lenbits)-1,w=(1<<I.distbits)-1;e:do{g<15&&(f+=k[n++]<<g,g+=8,f+=k[n++]<<g,g+=8),b=p[f&m];t:for(;;){if(E=b>>>24,f>>>=E,g-=E,E=b>>>16&255,E===0)j[o++]=b&65535;else if(E&16){B=b&65535,E&=15,E&&(g<E&&(f+=k[n++]<<g,g+=8),B+=f&(1<<E)-1,f>>>=E,g-=E),g<15&&(f+=k[n++]<<g,g+=8,f+=k[n++]<<g,g+=8),b=v[f&w];r:for(;;){if(E=b>>>24,f>>>=E,g-=E,E=b>>>16&255,E&16){if(_=b&65535,E&=15,g<E&&(f+=k[n++]<<g,g+=8,g<E&&(f+=k[n++]<<g,g+=8)),_+=f&(1<<E)-1,_>l){t.msg="invalid distance too far back",I.mode=K0;break e}if(f>>>=E,g-=E,E=o-a,_>E){if(E=_-E,E>u&&I.sane){t.msg="invalid distance too far back",I.mode=K0;break e}if(F=0,O=h,d===0){if(F+=A-E,E<B){B-=E;do j[o++]=h[F++];while(--E);F=o-_,O=j}}else if(d<E){if(F+=A+d-E,E-=d,E<B){B-=E;do j[o++]=h[F++];while(--E);if(F=0,d<B){E=d,B-=E;do j[o++]=h[F++];while(--E);F=o-_,O=j}}}else if(F+=d-E,E<B){B-=E;do j[o++]=h[F++];while(--E);F=o-_,O=j}for(;B>2;)j[o++]=O[F++],j[o++]=O[F++],j[o++]=O[F++],B-=3;B&&(j[o++]=O[F++],B>1&&(j[o++]=O[F++]))}else{F=o-_;do j[o++]=j[F++],j[o++]=j[F++],j[o++]=j[F++],B-=3;while(B>2);B&&(j[o++]=j[F++],B>1&&(j[o++]=j[F++]))}}else if(E&64){t.msg="invalid distance code",I.mode=K0;break e}else{b=v[(b&65535)+(f&(1<<E)-1)];continue r}break}}else if(E&64)if(E&32){I.mode=$he;break e}else{t.msg="invalid literal/length code",I.mode=K0;break e}else{b=p[(b&65535)+(f&(1<<E)-1)];continue t}break}}while(n<i&&o<s);B=g>>3,n-=B,g-=B<<3,f&=(1<<g)-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?5+(i-n):5-(n-i),t.avail_out=o<s?257+(s-o):257-(o-s),I.hold=f,I.bits=g};const Rd=15,B3=852,E3=592,_3=0,zE=1,S3=2,Khe=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]),Vhe=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]),zhe=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]),Whe=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]),Ghe=(e,t,r,n,i,o,a,s)=>{const l=s.bits;let A=0,u=0,d=0,h=0,f=0,g=0,p=0,v=0,m=0,w=0,b,E,B,_,F,O=null,k;const j=new Uint16Array(Rd+1),I=new Uint16Array(Rd+1);let T=null,U,R,G;for(A=0;A<=Rd;A++)j[A]=0;for(u=0;u<n;u++)j[t[r+u]]++;for(f=l,h=Rd;h>=1&&j[h]===0;h--);if(f>h&&(f=h),h===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,s.bits=1,0;for(d=1;d<h&&j[d]===0;d++);for(f<d&&(f=d),v=1,A=1;A<=Rd;A++)if(v<<=1,v-=j[A],v<0)return-1;if(v>0&&(e===_3||h!==1))return-1;for(I[1]=0,A=1;A<Rd;A++)I[A+1]=I[A]+j[A];for(u=0;u<n;u++)t[r+u]!==0&&(a[I[t[r+u]]++]=u);if(e===_3?(O=T=a,k=20):e===zE?(O=Khe,T=Vhe,k=257):(O=zhe,T=Whe,k=0),w=0,u=0,A=d,F=o,g=f,p=0,B=-1,m=1<<f,_=m-1,e===zE&&m>B3||e===S3&&m>E3)return 1;for(;;){U=A-p,a[u]+1<k?(R=0,G=a[u]):a[u]>=k?(R=T[a[u]-k],G=O[a[u]-k]):(R=96,G=0),b=1<<A-p,E=1<<g,d=E;do E-=b,i[F+(w>>p)+E]=U<<24|R<<16|G|0;while(E!==0);for(b=1<<A-1;w&b;)b>>=1;if(b!==0?(w&=b-1,w+=b):w=0,u++,--j[A]===0){if(A===h)break;A=t[r+a[u]]}if(A>f&&(w&_)!==B){for(p===0&&(p=f),F+=d,g=A-p,v=1<<g;g+p<h&&(v-=j[g+p],!(v<=0));)g++,v<<=1;if(m+=1<<g,e===zE&&m>B3||e===S3&&m>E3)return 1;B=w&_,i[B]=f<<24|g<<16|F-o|0}}return w!==0&&(i[F+w]=A-p<<24|64<<16|0),s.bits=f,0};var rm=Ghe;const Yhe=0,h7=1,f7=2,{Z_FINISH:C3,Z_BLOCK:qhe,Z_TREES:V0,Z_OK:Ru,Z_STREAM_END:Xhe,Z_NEED_DICT:Jhe,Z_STREAM_ERROR:pa,Z_DATA_ERROR:p7,Z_MEM_ERROR:g7,Z_BUF_ERROR:Zhe,Z_DEFLATED:I3}=qy,Wx=16180,k3=16181,F3=16182,N3=16183,T3=16184,O3=16185,j3=16186,P3=16187,L3=16188,U3=16189,nb=16190,el=16191,WE=16192,R3=16193,GE=16194,D3=16195,Q3=16196,M3=16197,$3=16198,z0=16199,W0=16200,H3=16201,K3=16202,V3=16203,z3=16204,W3=16205,YE=16206,G3=16207,Y3=16208,on=16209,m7=16210,y7=16211,efe=852,tfe=592,rfe=15,nfe=rfe,q3=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ife(){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 Vu=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Wx||t.mode>y7?1:0},v7=e=>{if(Vu(e))return pa;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=Wx,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(efe),t.distcode=t.distdyn=new Int32Array(tfe),t.sane=1,t.back=-1,Ru},w7=e=>{if(Vu(e))return pa;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,v7(e)},b7=(e,t)=>{let r;if(Vu(e))return pa;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?pa:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,w7(e))},x7=(e,t)=>{if(!e)return pa;const r=new ife;e.state=r,r.strm=e,r.window=null,r.mode=Wx;const n=b7(e,t);return n!==Ru&&(e.state=null),n},ofe=e=>x7(e,nfe);let X3=!0,qE,XE;const afe=e=>{if(X3){qE=new Int32Array(512),XE=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(rm(h7,e.lens,0,288,qE,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;rm(f7,e.lens,0,32,XE,0,e.work,{bits:5}),X3=!1}e.lencode=qE,e.lenbits=9,e.distcode=XE,e.distbits=5},B7=(e,t,r,n)=>{let i;const o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(t.subarray(r-n,r-n+i),o.wnext),n-=i,n?(o.window.set(t.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0},sfe=(e,t)=>{let r,n,i,o,a,s,l,A,u,d,h,f,g,p,v=0,m,w,b,E,B,_,F,O;const k=new Uint8Array(4);let j,I;const T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Vu(e)||!e.output||!e.input&&e.avail_in!==0)return pa;r=e.state,r.mode===el&&(r.mode=WE),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,A=r.hold,u=r.bits,d=s,h=l,O=Ru;e:for(;;)switch(r.mode){case Wx:if(r.wrap===0){r.mode=WE;break}for(;u<16;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}if(r.wrap&2&&A===35615){r.wbits===0&&(r.wbits=15),r.check=0,k[0]=A&255,k[1]=A>>>8&255,r.check=Zn(r.check,k,2,0),A=0,u=0,r.mode=k3;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((A&255)<<8)+(A>>8))%31){e.msg="incorrect header check",r.mode=on;break}if((A&15)!==I3){e.msg="unknown compression method",r.mode=on;break}if(A>>>=4,u-=4,F=(A&15)+8,r.wbits===0&&(r.wbits=F),F>15||F>r.wbits){e.msg="invalid window size",r.mode=on;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=A&512?U3:el,A=0,u=0;break;case k3:for(;u<16;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}if(r.flags=A,(r.flags&255)!==I3){e.msg="unknown compression method",r.mode=on;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=on;break}r.head&&(r.head.text=A>>8&1),r.flags&512&&r.wrap&4&&(k[0]=A&255,k[1]=A>>>8&255,r.check=Zn(r.check,k,2,0)),A=0,u=0,r.mode=F3;case F3:for(;u<32;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}r.head&&(r.head.time=A),r.flags&512&&r.wrap&4&&(k[0]=A&255,k[1]=A>>>8&255,k[2]=A>>>16&255,k[3]=A>>>24&255,r.check=Zn(r.check,k,4,0)),A=0,u=0,r.mode=N3;case N3:for(;u<16;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}r.head&&(r.head.xflags=A&255,r.head.os=A>>8),r.flags&512&&r.wrap&4&&(k[0]=A&255,k[1]=A>>>8&255,r.check=Zn(r.check,k,2,0)),A=0,u=0,r.mode=T3;case T3:if(r.flags&1024){for(;u<16;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}r.length=A,r.head&&(r.head.extra_len=A),r.flags&512&&r.wrap&4&&(k[0]=A&255,k[1]=A>>>8&255,r.check=Zn(r.check,k,2,0)),A=0,u=0}else r.head&&(r.head.extra=null);r.mode=O3;case O3:if(r.flags&1024&&(f=r.length,f>s&&(f=s),f&&(r.head&&(F=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+f),F)),r.flags&512&&r.wrap&4&&(r.check=Zn(r.check,n,f,o)),s-=f,o+=f,r.length-=f),r.length))break e;r.length=0,r.mode=j3;case j3:if(r.flags&2048){if(s===0)break e;f=0;do F=n[o+f++],r.head&&F&&r.length<65536&&(r.head.name+=String.fromCharCode(F));while(F&&f<s);if(r.flags&512&&r.wrap&4&&(r.check=Zn(r.check,n,f,o)),s-=f,o+=f,F)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=P3;case P3:if(r.flags&4096){if(s===0)break e;f=0;do F=n[o+f++],r.head&&F&&r.length<65536&&(r.head.comment+=String.fromCharCode(F));while(F&&f<s);if(r.flags&512&&r.wrap&4&&(r.check=Zn(r.check,n,f,o)),s-=f,o+=f,F)break e}else r.head&&(r.head.comment=null);r.mode=L3;case L3:if(r.flags&512){for(;u<16;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}if(r.wrap&4&&A!==(r.check&65535)){e.msg="header crc mismatch",r.mode=on;break}A=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=el;break;case U3:for(;u<32;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}e.adler=r.check=q3(A),A=0,u=0,r.mode=nb;case nb:if(r.havedict===0)return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,r.hold=A,r.bits=u,Jhe;e.adler=r.check=1,r.mode=el;case el:if(t===qhe||t===V0)break e;case WE:if(r.last){A>>>=u&7,u-=u&7,r.mode=YE;break}for(;u<3;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}switch(r.last=A&1,A>>>=1,u-=1,A&3){case 0:r.mode=R3;break;case 1:if(afe(r),r.mode=z0,t===V0){A>>>=2,u-=2;break e}break;case 2:r.mode=Q3;break;case 3:e.msg="invalid block type",r.mode=on}A>>>=2,u-=2;break;case R3:for(A>>>=u&7,u-=u&7;u<32;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}if((A&65535)!==(A>>>16^65535)){e.msg="invalid stored block lengths",r.mode=on;break}if(r.length=A&65535,A=0,u=0,r.mode=GE,t===V0)break e;case GE:r.mode=D3;case D3:if(f=r.length,f){if(f>s&&(f=s),f>l&&(f=l),f===0)break e;i.set(n.subarray(o,o+f),a),s-=f,o+=f,l-=f,a+=f,r.length-=f;break}r.mode=el;break;case Q3:for(;u<14;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}if(r.nlen=(A&31)+257,A>>>=5,u-=5,r.ndist=(A&31)+1,A>>>=5,u-=5,r.ncode=(A&15)+4,A>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=on;break}r.have=0,r.mode=M3;case M3:for(;r.have<r.ncode;){for(;u<3;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}r.lens[T[r.have++]]=A&7,A>>>=3,u-=3}for(;r.have<19;)r.lens[T[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,j={bits:r.lenbits},O=rm(Yhe,r.lens,0,19,r.lencode,0,r.work,j),r.lenbits=j.bits,O){e.msg="invalid code lengths set",r.mode=on;break}r.have=0,r.mode=$3;case $3:for(;r.have<r.nlen+r.ndist;){for(;v=r.lencode[A&(1<<r.lenbits)-1],m=v>>>24,w=v>>>16&255,b=v&65535,!(m<=u);){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}if(b<16)A>>>=m,u-=m,r.lens[r.have++]=b;else{if(b===16){for(I=m+2;u<I;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}if(A>>>=m,u-=m,r.have===0){e.msg="invalid bit length repeat",r.mode=on;break}F=r.lens[r.have-1],f=3+(A&3),A>>>=2,u-=2}else if(b===17){for(I=m+3;u<I;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}A>>>=m,u-=m,F=0,f=3+(A&7),A>>>=3,u-=3}else{for(I=m+7;u<I;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}A>>>=m,u-=m,F=0,f=11+(A&127),A>>>=7,u-=7}if(r.have+f>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=on;break}for(;f--;)r.lens[r.have++]=F}}if(r.mode===on)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=on;break}if(r.lenbits=9,j={bits:r.lenbits},O=rm(h7,r.lens,0,r.nlen,r.lencode,0,r.work,j),r.lenbits=j.bits,O){e.msg="invalid literal/lengths set",r.mode=on;break}if(r.distbits=6,r.distcode=r.distdyn,j={bits:r.distbits},O=rm(f7,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,j),r.distbits=j.bits,O){e.msg="invalid distances set",r.mode=on;break}if(r.mode=z0,t===V0)break e;case z0:r.mode=W0;case W0:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,r.hold=A,r.bits=u,Hhe(e,h),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,A=r.hold,u=r.bits,r.mode===el&&(r.back=-1);break}for(r.back=0;v=r.lencode[A&(1<<r.lenbits)-1],m=v>>>24,w=v>>>16&255,b=v&65535,!(m<=u);){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}if(w&&!(w&240)){for(E=m,B=w,_=b;v=r.lencode[_+((A&(1<<E+B)-1)>>E)],m=v>>>24,w=v>>>16&255,b=v&65535,!(E+m<=u);){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}A>>>=E,u-=E,r.back+=E}if(A>>>=m,u-=m,r.back+=m,r.length=b,w===0){r.mode=W3;break}if(w&32){r.back=-1,r.mode=el;break}if(w&64){e.msg="invalid literal/length code",r.mode=on;break}r.extra=w&15,r.mode=H3;case H3:if(r.extra){for(I=r.extra;u<I;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}r.length+=A&(1<<r.extra)-1,A>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=K3;case K3:for(;v=r.distcode[A&(1<<r.distbits)-1],m=v>>>24,w=v>>>16&255,b=v&65535,!(m<=u);){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}if(!(w&240)){for(E=m,B=w,_=b;v=r.distcode[_+((A&(1<<E+B)-1)>>E)],m=v>>>24,w=v>>>16&255,b=v&65535,!(E+m<=u);){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}A>>>=E,u-=E,r.back+=E}if(A>>>=m,u-=m,r.back+=m,w&64){e.msg="invalid distance code",r.mode=on;break}r.offset=b,r.extra=w&15,r.mode=V3;case V3:if(r.extra){for(I=r.extra;u<I;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}r.offset+=A&(1<<r.extra)-1,A>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=on;break}r.mode=z3;case z3:if(l===0)break e;if(f=h-l,r.offset>f){if(f=r.offset-f,f>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=on;break}f>r.wnext?(f-=r.wnext,g=r.wsize-f):g=r.wnext-f,f>r.length&&(f=r.length),p=r.window}else p=i,g=a-r.offset,f=r.length;f>l&&(f=l),l-=f,r.length-=f;do i[a++]=p[g++];while(--f);r.length===0&&(r.mode=W0);break;case W3:if(l===0)break e;i[a++]=r.length,l--,r.mode=W0;break;case YE:if(r.wrap){for(;u<32;){if(s===0)break e;s--,A|=n[o++]<<u,u+=8}if(h-=l,e.total_out+=h,r.total+=h,r.wrap&4&&h&&(e.adler=r.check=r.flags?Zn(r.check,i,h,a-h):zm(r.check,i,h,a-h)),h=l,r.wrap&4&&(r.flags?A:q3(A))!==r.check){e.msg="incorrect data check",r.mode=on;break}A=0,u=0}r.mode=G3;case G3:if(r.wrap&&r.flags){for(;u<32;){if(s===0)break e;s--,A+=n[o++]<<u,u+=8}if(r.wrap&4&&A!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=on;break}A=0,u=0}r.mode=Y3;case Y3:O=Xhe;break e;case on:O=p7;break e;case m7:return g7;case y7:default:return pa}return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,r.hold=A,r.bits=u,(r.wsize||h!==e.avail_out&&r.mode<on&&(r.mode<YE||t!==C3))&&B7(e,e.output,e.next_out,h-e.avail_out),d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,r.total+=h,r.wrap&4&&h&&(e.adler=r.check=r.flags?Zn(r.check,i,h,e.next_out-h):zm(r.check,i,h,e.next_out-h)),e.data_type=r.bits+(r.last?64:0)+(r.mode===el?128:0)+(r.mode===z0||r.mode===GE?256:0),(d===0&&h===0||t===C3)&&O===Ru&&(O=Zhe),O},lfe=e=>{if(Vu(e))return pa;let t=e.state;return t.window&&(t.window=null),e.state=null,Ru},Afe=(e,t)=>{if(Vu(e))return pa;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,Ru):pa},cfe=(e,t)=>{const r=t.length;let n,i,o;return Vu(e)||(n=e.state,n.wrap!==0&&n.mode!==nb)?pa:n.mode===nb&&(i=1,i=zm(i,t,r,0),i!==n.check)?p7:(o=B7(e,t,r,r),o?(n.mode=m7,g7):(n.havedict=1,Ru))};var ufe=w7,dfe=b7,hfe=v7,ffe=ofe,pfe=x7,gfe=sfe,mfe=lfe,yfe=Afe,vfe=cfe,wfe="pako inflate (from Nodeca project)",ul={inflateReset:ufe,inflateReset2:dfe,inflateResetKeep:hfe,inflateInit:ffe,inflateInit2:pfe,inflate:gfe,inflateEnd:mfe,inflateGetHeader:yfe,inflateSetDictionary:vfe,inflateInfo:wfe};function bfe(){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 xfe=bfe;const E7=Object.prototype.toString,{Z_NO_FLUSH:Bfe,Z_FINISH:Efe,Z_OK:Ym,Z_STREAM_END:JE,Z_NEED_DICT:ZE,Z_STREAM_ERROR:_fe,Z_DATA_ERROR:J3,Z_MEM_ERROR:Sfe}=qy;function Jy(e){this.options=zx.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||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u7,this.strm.avail_out=0;let r=ul.inflateInit2(this.strm,t.windowBits);if(r!==Ym)throw new Error(cf[r]);if(this.header=new xfe,ul.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Gm.string2buf(t.dictionary):E7.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=ul.inflateSetDictionary(this.strm,t.dictionary),r!==Ym)))throw new Error(cf[r])}Jy.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?Efe:Bfe,E7.call(e)==="[object ArrayBuffer]"?r.input
vendor: 10,148 bytes, line 292
292=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=ul.inflate(r,a),o===ZE&&i&&(o=ul.inflateSetDictionary(r,i),o===Ym?o=ul.inflate(r,a):o===J3&&(o=ZE));r.avail_in>0&&o===JE&&r.state.wrap>0&&e[r.next_in]!==0;)ul.inflateReset(r),o=ul.inflate(r,a);switch(o){case _fe:case J3:case ZE:case Sfe:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(r.avail_out===0||o===JE))if(this.options.to==="string"){let l=Gm.utf8border(r.output,r.next_out),A=r.next_out-l,u=Gm.buf2string(r.output,l);r.next_out=A,r.avail_out=n-A,A&&r.output.set(r.output.subarray(l,l+A),0),this.onData(u)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===Ym&&s===0)){if(o===JE)return o=ul.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};Jy.prototype.onData=function(e){this.chunks.push(e)};Jy.prototype.onEnd=function(e){e===Ym&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=zx.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function _F(e,t){const r=new Jy(t);if(r.push(e),r.err)throw r.msg||cf[r.err];return r.result}function Cfe(e,t){return t=t||{},t.raw=!0,_F(e,t)}var Ife=Jy,kfe=_F,Ffe=Cfe,Nfe=_F,Tfe=qy,Ofe={Inflate:Ife,inflate:kfe,inflateRaw:Ffe,ungzip:Nfe,constants:Tfe};const{Inflate:jfe,inflate:Pfe,inflateRaw:gQe,ungzip:mQe}=Ofe;var Z3=jfe,Lfe=Pfe;const _7=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t=t>>>1;_7[e]=t}const eP=4294967295;function Ufe(e,t,r){let n=e;for(let i=0;i<r;i++)n=_7[(n^t[i])&255]^n>>>8;return n}function Rfe(e,t){return(Ufe(eP,e,t)^eP)>>>0}function tP(e,t,r){const n=e.readUint32(),i=Rfe(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==n)throw new Error(`CRC mismatch for chunk ${r}. Expected ${n}, found ${i}`)}function S7(e,t,r){for(let n=0;n<r;n++)t[n]=e[n]}function C7(e,t,r,n){let i=0;for(;i<n;i++)t[i]=e[i];for(;i<r;i++)t[i]=e[i]+t[i-n]&255}function I7(e,t,r,n){let i=0;if(r.length===0)for(;i<n;i++)t[i]=e[i];else for(;i<n;i++)t[i]=e[i]+r[i]&255}function k7(e,t,r,n,i){let o=0;if(r.length===0){for(;o<i;o++)t[o]=e[o];for(;o<n;o++)t[o]=e[o]+(t[o-i]>>1)&255}else{for(;o<i;o++)t[o]=e[o]+(r[o]>>1)&255;for(;o<n;o++)t[o]=e[o]+(t[o-i]+r[o]>>1)&255}}function F7(e,t,r,n,i){let o=0;if(r.length===0){for(;o<i;o++)t[o]=e[o];for(;o<n;o++)t[o]=e[o]+t[o-i]&255}else{for(;o<i;o++)t[o]=e[o]+r[o]&255;for(;o<n;o++)t[o]=e[o]+Dfe(t[o-i],r[o],r[o-i])&255}}function Dfe(e,t,r){const n=e+t-r,i=Math.abs(n-e),o=Math.abs(n-t),a=Math.abs(n-r);return i<=o&&i<=a?e:o<=a?t:r}function Qfe(e,t,r,n,i,o){switch(e){case 0:S7(t,r,i);break;case 1:C7(t,r,i,o);break;case 2:I7(t,r,n,i);break;case 3:k7(t,r,n,i,o);break;case 4:F7(t,r,n,i,o);break;default:throw new Error(`Unsupported filter: ${e}`)}}const Mfe=new Uint16Array([255]),$fe=new Uint8Array(Mfe.buffer),Hfe=$fe[0]===255;function Kfe(e){const{data:t,width:r,height:n,channels:i,depth:o}=e,a=[{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(o/8)*i,l=new Uint8Array(n*r*s);let A=0;for(let u=0;u<7;u++){const d=a[u],h=Math.ceil((r-d.x)/d.xStep),f=Math.ceil((n-d.y)/d.yStep);if(h<=0||f<=0)continue;const g=h*s,p=new Uint8Array(g);for(let v=0;v<f;v++){const m=t[A++],w=t.subarray(A,A+g);A+=g;const b=new Uint8Array(g);Qfe(m,w,b,p,g,s),p.set(b);for(let E=0;E<h;E++){const B=d.x+E*d.xStep,_=d.y+v*d.yStep;if(!(B>=r||_>=n))for(let F=0;F<s;F++)l[(_*r+B)*s+F]=b[E*s+F]}}}if(o===16){const u=new Uint16Array(l.buffer);if(Hfe)for(let d=0;d<u.length;d++)u[d]=Vfe(u[d]);return u}else return l}function Vfe(e){return(e&255)<<8|e>>8&255}const zfe=new Uint16Array([255]),Wfe=new Uint8Array(zfe.buffer),Gfe=Wfe[0]===255,Yfe=new Uint8Array(0);function rP(e){const{data:t,width:r,height:n,channels:i,depth:o}=e,a=Math.ceil(o/8)*i,s=Math.ceil(o/8*i*r),l=new Uint8Array(n*s);let A=Yfe,u=0,d,h;for(let f=0;f<n;f++){switch(d=t.subarray(u+1,u+1+s),h=l.subarray(f*s,(f+1)*s),t[u]){case 0:S7(d,h,s);break;case 1:C7(d,h,s,a);break;case 2:I7(d,h,A,s);break;case 3:k7(d,h,A,s,a);break;case 4:F7(d,h,A,s,a);break;default:throw new Error(`Unsupported filter: ${t[u]}`)}A=h,u+=s+1}if(o===16){const f=new Uint16Array(l.buffer);if(Gfe)for(let g=0;g<f.length;g++)f[g]=qfe(f[g]);return f}else return l}function qfe(e){return(e&255)<<8|e>>8&255}const zw=Uint8Array.of(137,80,78,71,13,10,26,10);function nP(e){if(!Xfe(e.readBytes(zw.length)))throw new Error("wrong PNG signature")}function Xfe(e){if(e.length<zw.length)return!1;for(let t=0;t<zw.length;t++)if(e[t]!==zw[t])return!1;return!0}const Jfe="tEXt",Zfe=0,N7=new TextDecoder("latin1");function epe(e){if(rpe(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const tpe=/^[\u0000-\u00FF]*$/;function rpe(e){if(!tpe.test(e))throw new Error("invalid latin1 text")}function npe(e,t,r){const n=T7(t);e[n]=ipe(t,r-n.length-1)}function T7(e){for(e.mark();e.readByte()!==Zfe;);const t=e.offset;e.reset();const r=N7.decode(e.readBytes(t-e.offset-1));return e.skip(1),epe(r),r}function ipe(e,t){return N7.decode(e.readBytes(t))}const _o={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},e_={UNKNOWN:-1,DEFLATE:0},iP={UNKNOWN:-1,ADAPTIVE:0},t_={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},G0={NONE:0,BACKGROUND:1,PREVIOUS:2},r_={SOURCE:0,OVER:1};class ope extends yF{constructor(r,n={}){super(r);_r(this,"_checkCrc");_r(this,"_inflator");_r(this,"_png");_r(this,"_apng");_r(this,"_end");_r(this,"_hasPalette");_r(this,"_palette");_r(this,"_hasTransparency");_r(this,"_transparency");_r(this,"_compressionMethod");_r(this,"_filterMethod");_r(this,"_interlaceMethod");_r(this,"_colorType");_r(this,"_isAnimated");_r(this,"_numberOfFrames");_r(this,"_numberOfPlays");_r(this,"_frames");_r(this,"_writingDataChunks");const{checkCrc:i=!1}=n;this._checkCrc=i,this._inflator=new Z3,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=e_.UNKNOWN,this._filterMethod=iP.UNKNOWN,this._interlaceMethod=t_.UNKNOWN,this._colorType=_o.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(nP(this);!this._end;){const r=this.readUint32(),n=this.readChars(4);this.decodeChunk(r,n)}return this.decodeImage(),this._png}decodeApng(){for(nP(this);!this._end;){const r=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(r,n)}return this.decodeApngImage(),this._apng}decodeChunk(r,n){const i=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(r);break;case"IDAT":this.decodeIDAT(r);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(r);break;case"iCCP":this.decodeiCCP(r);break;case Jfe:npe(this._png.text,this,r);break;case"pHYs":this.decodepHYs();break;default:this.skip(r);break}if(this.offset-i!==r)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?tP(this,r+4,n):this.skip(4)}decodeApngChunk(r,n){const i=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(r);break;default:this.decodeChunk(r,n),this.offset=i+r;break}if(this.offset-i!==r)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?tP(this,r+4,n):this.skip(4)}decodeIHDR(){const r=this._png;r.width=this.readUint32(),r.height=this.readUint32(),r.depth=ape(this.readUint8());const n=this.readUint8();this._colorType=n;let i;switch(n){case _o.GREYSCALE:i=1;break;case _o.TRUECOLOUR:i=3;break;case _o.INDEXED_COLOUR:i=1;break;case _o.GREYSCALE_ALPHA:i=2;break;case _o.TRUECOLOUR_ALPHA:i=4;break;case _o.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==e_.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 r={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(r)}decodePLTE(r){if(r%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${r}`);const n=r/3;this._hasPalette=!0;const i=[];this._palette=i;for(let o=0;o<n;o++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(r){this._writingDataChunks=!0;const n=r,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(r)}decodeFDAT(r){this._writingDataChunks=!0;let n=r,i=this.offset+this.byteOffset;if(i+=4,n-=4,this._inflator.push(new Uint8Array(this.buffer,i,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(r)}decodetRNS(r){switch(this._colorType){case _o.GREYSCALE:case _o.TRUECOLOUR:{if(r%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${r}`);if(r/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${r/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(r/2);for(let n=0;n<r/2;n++)this._transparency[n]=this.readUint16();break}case _o.INDEXED_COLOUR:{if(r>this._palette.length)throw new Error(`tRNS chunk contains more alph
292a values than there are palette colors (${r} vs ${this._palette.length})`);let n=0;for(;n<r;n++){const i=this.readByte();this._palette[n].push(i)}for(;n<this._palette.length;n++)this._palette[n].push(255);break}case _o.UNKNOWN:case _o.GREYSCALE_ALPHA:case _o.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(r){const n=T7(this),i=this.readUint8();if(i!==e_.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const o=this.readBytes(r-n.length-2);this._png.iccEmbeddedProfile={name:n,profile:Lfe(o)}}decodepHYs(){const r=this.readUint32(),n=this.readUint32(),i=this.readByte();this._png.resolution={x:r,y:n,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 r=0;r<this._numberOfFrames;r++){const n={sequenceNumber:this._frames[r].sequenceNumber,delayNumber:this._frames[r].delayNumber,delayDenominator:this._frames[r].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(r);if(i){if(i.data=rP({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),r===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)n.data=i.data;else{const o=this._apng.frames.at(r-1);this.disposeFrame(i,o,n),this.addFrameDataToCanvas(n,i)}this._apng.frames.push(n)}}return this._apng}disposeFrame(r,n,i){switch(r.disposeOp){case G0.NONE:break;case G0.BACKGROUND:for(let o=0;o<this._png.height;o++)for(let a=0;a<this._png.width;a++){const s=(o*r.width+a)*this._png.channels;for(let l=0;l<this._png.channels;l++)i.data[s+l]=0}break;case G0.PREVIOUS:i.data.set(n.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(r,n){const i=1<<this._png.depth,o=(a,s)=>{const l=((a+n.yOffset)*this._png.width+n.xOffset+s)*this._png.channels,A=(a*n.width+s)*this._png.channels;return{index:l,frameIndex:A}};switch(n.blendOp){case r_.SOURCE:for(let a=0;a<n.height;a++)for(let s=0;s<n.width;s++){const{index:l,frameIndex:A}=o(a,s);for(let u=0;u<this._png.channels;u++)r.data[l+u]=n.data[A+u]}break;case r_.OVER:for(let a=0;a<n.height;a++)for(let s=0;s<n.width;s++){const{index:l,frameIndex:A}=o(a,s);for(let u=0;u<this._png.channels;u++){const d=n.data[A+this._png.channels-1]/i,h=u%(this._png.channels-1)===0?1:n.data[A+u],f=Math.floor(d*h+(1-d)*r.data[l+u]);r.data[l+u]+=f}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var n;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const r=this._isAnimated?((n=this._frames)==null?void 0:n.at(0)).data:this._inflator.result;if(this._filterMethod!==iP.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===t_.NO_INTERLACE)this._png.data=rP({data:r,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===t_.ADAM7)this._png.data=Kfe({data:r,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 r=this._inflator.result,n=this._frames.at(-1);n?n.data=r:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:G0.NONE,blendOp:r_.SOURCE,data:r}),this._inflator=new Z3,this._writingDataChunks=!1}}function ape(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var oP;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(oP||(oP={}));function spe(e,t){return new ope(e,t).decode()}var Rt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function n_(){Rt.console&&typeof Rt.console.log=="function"&&Rt.console.log.apply(Rt.console,arguments)}var Lr={log:n_,warn:function(e){Rt.console&&(typeof Rt.console.warn=="function"?Rt.console.warn.apply(Rt.console,arguments):n_.call(null,arguments))},error:function(e){Rt.console&&(typeof Rt.console.error=="function"?Rt.console.error.apply(Rt.console,arguments):n_(e))}};function i_(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){qc(n.response,t,r)},n.onerror=function(){Lr.error("could not download file")},n.send()}function aP(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Y0(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");
vendor: 3,407 bytes, lines 292-297
292t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var qc=Rt.saveAs||((typeof window>"u"?"undefined":Sr(window))!=="object"||window!==Rt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=Rt.URL||Rt.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?aP(i.href)?i_(e,t,r):Y0(i,i.target="_blank"):Y0(i)):(i.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){Y0(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(aP(e))i_(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){Y0(n)})}else navigator.msSaveOrOpenBlob(function(i,o){return o===void 0?o={autoBom:!1}:Sr(o)!=="object"&&(Lr.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.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,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return i_(e,t,r);var i=e.type==="application/octet-stream",o=/constructor/i.test(Rt.HTMLElement)||Rt.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&o)&&(typeof FileReader>"u"?"undefined":Sr(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=a?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},s.readAsDataURL(e)}else{var l=Rt.URL||Rt.webkitURL,A=l.createObjectURL(e);n?n.location=A:location.href=A,n=null,setTimeout(function(){l.revokeObjectURL(A)},4e4)}});/**
293 * A class to parse color values
294 * @author Stoyan Stefanov <[email protected]>
295 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
296 * @license Use it if you like it
297 */function O7(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
2970",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 r=[{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)]}}],n=0;n<r.length;n++){var i=r[n].re,o=r[n].process,a=i.exec(e);a&&(t=o(a),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),A=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),A.length==1&&(A="0"+A),"#"+s+l+A}}var Ww=Rt.atob.bind(Rt),sP=Rt.btoa.bind(Rt);/**
298 * @license
299 * Joseph Myers does not specify a particular license for his work.
300 *
301 * Author: Joseph Myers
302 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
303 *
304 * Modified by: Owen Leong
305 */function o_(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r=Ci(r,n,i,o,t[0],7,-680876936),o=Ci(o,r,n,i,t[1],12,-389564586),i=Ci(i,o,r,n,t[2],17,606105819),n=Ci(n,i,o,r,t[3],22,-1044525330),r=Ci(r,n,i,o,t[4],7,-176418897),o=Ci(o,r,n,i,t[5],12,1200080426),i=Ci(i,o,r,n,t[6],17,-1473231341),n=Ci(n,i,o,r,t[7],22,-45705983),r=Ci(r,n,i,o,t[8],7,1770035416),o=Ci(o,r,n,i,t[9],12,-1958414417),i=Ci(i,o,r,n,t[10],17,-42063),n=Ci(n,i,o,r,t[11],22,-1990404162),r=Ci(r,n,i,o,t[12],7,1804603682),o=Ci(o,r,n,i,t[13],12,-40341101),i=Ci(i,o,r,n,t[14],17,-1502002290),r=Ii(r,n=Ci(n,i,o,r,t[15],22,1236535329),i,o,t[1],5,-165796510),o=Ii(o,r,n,i,t[6],9,-1069501632),i=Ii(i,o,r,n,t[11],14,643717713),n=Ii(n,i,o,r,t[0],20,-373897302),r=Ii(r,n,i,o,t[5],5,-701558691),o=Ii(o,r,n,i,t[10],9,38016083),i=Ii(i,o,r,n,t[15],14,-660478335),n=Ii(n,i,o,r,t[4],20,-405537848),r=Ii(r,n,i,o,t[9],5,568446438),o=Ii(o,r,n,i,t[14],9,-1019803690),i=Ii(i,o,r,n,t[3],14,-187363961),n=Ii(n,i,o,r,t[8],20,1163531501),r=Ii(r,n,i,o,t[13],5,-1444681467),o=Ii(o,r,n,i,t[2],9,-51403784),i=Ii(i,o,r,n,t[7],14,1735328473),r=ki(r,n=Ii(n,i,o,r,t[12],20,-1926607734),i,o,t[5],4,-378558),o=ki(o,r,n,i,t[8],11,-2022574463),i=ki(i,o,r,n,t[11],16,1839030562),n=ki(n,i,o,r,t[14],23,-35309556),r=ki(r,n,i,o,t[1],4,-1530992060),o=ki(o,r,n,i,t[4],11,1272893353),i=ki(i,o,r,n,t[7],16,-155497632),n=ki(n,i,o,r,t[10],23,-1094730640),r=ki(r,n,i,o,t[13],4,681279174),o=ki(o,r,n,i,t[0],11,-358537222),i=ki(i,o,r,n,t[3],16,-722521979),n=ki(n,i,o,r,t[6],23,76029189),r=ki(r,n,i,o,t[9],4,-640364487),o=ki(o,r,n,i,t[12],11,-421815835),i=ki(i,o,r,n,t[15],16,530742520),r=Fi(r,n=ki(n,i,o,r,t[2],23,-995338651),i,o,t[0],6,-198630844),o=Fi(o,r,n,i,t[7],10,1126891415),i=Fi(i,o,r,n,t[14],15,-1416354905),n=Fi(n,i,o,r,t[5],21,-57434055),r
vendor: 8,459 bytes, lines 305-322
305=Fi(r,n,i,o,t[12],6,1700485571),o=Fi(o,r,n,i,t[3],10,-1894986606),i=Fi(i,o,r,n,t[10],15,-1051523),n=Fi(n,i,o,r,t[1],21,-2054922799),r=Fi(r,n,i,o,t[8],6,1873313359),o=Fi(o,r,n,i,t[15],10,-30611744),i=Fi(i,o,r,n,t[6],15,-1560198380),n=Fi(n,i,o,r,t[13],21,1309151649),r=Fi(r,n,i,o,t[4],6,-145523070),o=Fi(o,r,n,i,t[11],10,-1120210379),i=Fi(i,o,r,n,t[2],15,718787259),n=Fi(n,i,o,r,t[9],21,-343485551),e[0]=RA(r,e[0]),e[1]=RA(n,e[1]),e[2]=RA(i,e[2]),e[3]=RA(o,e[3])}function Gx(e,t,r,n,i,o){return t=RA(RA(t,e),RA(n,o)),RA(t<<i|t>>>32-i,r)}function Ci(e,t,r,n,i,o,a){return Gx(t&r|~t&n,e,t,i,o,a)}function Ii(e,t,r,n,i,o,a){return Gx(t&n|r&~n,e,t,i,o,a)}function ki(e,t,r,n,i,o,a){return Gx(t^r^n,e,t,i,o,a)}function Fi(e,t,r,n,i,o,a){return Gx(r^(t|~n),e,t,i,o,a)}function j7(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)o_(n,lpe(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(o_(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,o_(n,i),n}function lpe(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}var lP="0123456789abcdef".split("");function Ape(e){for(var t="",r=0;r<4;r++)t+=lP[e>>8*r+4&15]+lP[e>>8*r&15];return t}function cpe(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function a5(e){return j7(e).map(cpe).join("")}var upe=function(e){for(var t=0;t<e.length;t++)e[t]=Ape(e[t]);return e.join("")}(j7("hello"))!="5d41402abc4b2a76b9719d911017c592";function RA(e,t){if(upe){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}/**
306 * @license
307 * FPDF is released under a permissive license: there is no usage restriction.
308 * You may embed it freely in your application (commercial or not), with or
309 * without modifications.
310 *
311 * Reference: http://www.fpdf.org/en/script/script37.php
312 */function s5(e,t){var r,n,i,o;if(e!==r){for(var a=(i=e,o=1+(256/e.length|0),new Array(o+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var A=0;for(l=0;l<256;l++){var u=s[l];A=(A+u+a.charCodeAt(l))%256,s[l]=s[A],s[A]=u}r=e,n=s}else s=n;var d=t.length,h=0,f=0,g="";for(l=0;l<d;l++)f=(f+(u=s[h=(h+1)%256]))%256,s[h]=s[f],s[f]=u,a=s[(s[h]+s[f])%256],g+=String.fromCharCode(t.charCodeAt(l)^a);return g}/**
313 * @license
314 * Licensed under the MIT License.
315 * http://opensource.org/licenses/mit-license
316 * Author: Owen Leong (@owenl131)
317 * Date: 15 Oct 2020
318 * References:
319 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
320 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
321 * http://www.fpdf.org/en/script/script37.php
322 */var AP={print:4,modify:8,copy:16,"annot-forms":32};function eh(e,t,r,n){this.v=1,this.r=2;var i=192;e.forEach(function(s){if(AP.perm!==void 0)throw new Error("Invalid permission: "+s);i+=AP[s]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var o=(t+this.padding).substr(0,32),a=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=a5(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=s5(this.encryptionKey,this.padding)}function th(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);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[n]}return t}function cP(e){if(Sr(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,i){if(i=i||!1,typeof r!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var o=Math.random().toString(35);return t[r][o]=[n,!!i],o},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var o in t[r]){var a=t[r][o];try{a[0].apply(e,n)}catch(s){Rt.console&&Lr.error("jsPDF PubSub Error",s.message,s)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function ib(e){if(!(this instanceof ib))return new ib(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function P7(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function ru(e,t,r,n,i){if(!(this instanceof ru))return new ru(e,t,r,n,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,P7.call(this,n,i)}function mh(e,t,r,n,i){if(!(this instanceof mh))return new mh(e,t,r,n,i);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,P7.call(this,n,i)}function Ct(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],o=arguments[3],a=[],s=1,l=16,A="S",u=null;Sr(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,i=e.format||i,o=e.compress||e.compressPdf||o,(u=e.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.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),A=e.defaultPathOperation||"S"),a=e.filters||(o===!0?["FlateEncode"]:a),n=n||"mm",r=(""+(r||"P")).toLowerCase();var d=e.putOnlyUsedFonts||!1,h={},f={internal:{},__private__:{}};f.__private__.PubSub=cP;var g="1.3",p=f.__private__.getPdfVersion=function(){return g};f.__private__.setPdfVersion=function(C){g=C};var v={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]};f.__private__.getPageFormats=function(){return v};var m=f.__private__.getPageFormat=function(C){return v[C]};i=i||"a4";var w="compat",b="advanced",E=w;function B(){this.saveGraphicsState(),z(new Pe(vt,0,0,-vt,0,Sc()*vt).toString()+" cm"),this.setFontSize(this.getFontSize()/vt),A="n",E=b}function _(){this.restoreGraphicsState(),A="S",E=w}var F=f.__private__.combineFontStyleAndFontWeight=function(C,M){if(C=="bold"&&M=="normal"||C=="bold"&&M==400||C=="normal"&&M=="italic"||C=="bold"&&M=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return M&&(C=M==400||M==="normal"?C==="italic"?"italic":"normal":M!=700&&M!=="bold"||C!=="normal"?(M==700?"bold":M)+""+C:"bold"),C};f.advancedAPI=function(C){var M=E===w;return M&&B.call(this),typeof C!="function"||(C(this),M&&_.call(this)),this},f.compatAPI=function(C){var M=E===b;return M&&_.call(this),typeof C!="function"||(C(this),M&&B.call(this)),this},f.isAdvancedAPI=function(){return E===b};var O,k=function(C){if(E!==b)throw new Error(C+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},j=f.roundToPrecision=f.__private__.roundToPrecision=function(C,M){var te=t||M;if(isNaN(C)||isNaN(te))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return C.toFixed(te).replace(/0+$/,"")};O=f.hpf=f.__private__.hpf=typeof l=="number"?function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return j(C,l)}:l==="smart"?function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return j(C,C>-1&&C<1?16:5)}:function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return j(C,16)};var I=f.f2=f.__private__.f2=function(C){if(isNaN(C))throw new Error("Invalid argument passed to 
322jsPDF.f2");return j(C,2)},T=f.__private__.f3=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.f3");return j(C,3)},U=f.scale=f.__private__.scale=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.scale");return E===w?C*vt:E===b?C:void 0},R=function(C){return U(function(M){return E===w?Sc()-M:E===b?M:void 0}(C))};f.__private__.setPrecision=f.setPrecision=function(C){typeof parseInt(C,10)=="number"&&(t=parseInt(C,10))};var G,K="00000000000000000000000000000000",V=f.__private__.getFileId=function(){return K},Q=f.__private__.setFileId=function(C){return K=C!==void 0&&/^[a-fA-F0-9]{32}$/.test(C)?C.toUpperCase():K.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(oi=new eh(u.userPermissions,u.userPassword,u.ownerPassword,K)),K};f.setFileId=function(C){return Q(C),this},f.getFileId=function(){return V()};var H=f.__private__.convertDateToPDFDate=function(C){var M=C.getTimezoneOffset(),te=M<0?"+":"-",ce=Math.floor(Math.abs(M/60)),ge=Math.abs(M%60),Ce=[te,X(ce),"'",X(ge),"'"].join("");return["D:",C.getFullYear(),X(C.getMonth()+1),X(C.getDate()),X(C.getHours()),X(C.getMinutes()),X(C.getSeconds()),Ce].join("")},q=f.__private__.convertPDFDateToDate=function(C){var M=parseInt(C.substr(2,4),10),te=parseInt(C.substr(6,2),10)-1,ce=parseInt(C.substr(8,2),10),ge=parseInt(C.substr(10,2),10),Ce=parseInt(C.substr(12,2),10),Oe=parseInt(C.substr(14,2),10);return new Date(M,te,ce,ge,Ce,Oe,0)},re=f.__private__.setCreationDate=function(C){var M;if(C===void 0&&(C=new Date),C instanceof Date)M=H(C);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(C))throw new Error("Invalid argument passed to jsPDF.setCreationDate");M=C}return G=M},P=f.__private__.getCreationDate=function(C){var M=G;return C==="jsDate"&&(M=q(G)),M};f.setCreationDate=function(C){return re(C),this},f.getCreationDate=function(C){return P(C)};var D,X=f.__private__.padd2=function(C){return("0"+parseInt(C)).slice(-2)},Z=f.__private__.padd2Hex=function(C){return("00"+(C=C.toString())).substr(C.length)},ae=0,se=[],pe=[],le=0,he=[],Ae=[],ue=!1,_e=pe;f.__private__.setCustomOutputDestination=function(C){ue=!0,_e=C};var ve=function(C){ue||(_e=C)};f.__private__.resetCustomOutputDestination=function(){ue=!1,_e=pe};var z=f.__private__.out=function(C){return C=C.toString(),le+=C.length+1,_e.push(C),_e},Se=f.__private__.write=function(C){return z(arguments.length===1?C.toString():Array.prototype.join.call(arguments," "))},Me=f.__private__.getArrayBuffer=function(C){for(var M=C.length,te=new ArrayBuffer(M),ce=new Uint8Array(te);M--;)ce[M]=C.charCodeAt(M);return te},De=[["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]];f.__private__.getStandardFonts=function(){return De};var xe=e.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(C){return xe=E===b?C/vt:C,this};var ze,me=f.__private__.getFontSize=f.getFontSize=function(){return E===w?xe:xe*vt},Le=e.R2L||!1;f.__private__.setR2L=f.setR2L=function(C){return Le=C,this},f.__private__.getR2L=f.getR2L=function(){return Le};var Ue,Bt=f.__private__.setZoomMode=function(C){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(C))ze=C;else if(isNaN(C)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(C)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+C+'" is not recognized.');ze=C}else ze=parseInt(C,10)};f.__private__.getZoomMode=function(){return ze};var Et,Ge=f.__private__.setPageMode=function(C){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(C)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+C+'" is not recognized.');Ue=C};f.__private__.getPageMode=function(){return Ue};var Je=f.__private__.setLayoutMode=function(C){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(C)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+C+'" is not recognized.');Et=C};f.__private__.getLayoutMode=function(){return Et},f.__private__.setDisplayMode=f.setDisplayMode=function(C,M,te){return Bt(C),Je(M),Ge(te),this};
vendor: 12,826 bytes, lines 322-326
322var dt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(C){if(Object.keys(dt).indexOf(C)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return dt[C]},f.__private__.getDocumentProperties=function(){return dt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(C){for(var M in dt)dt.hasOwnProperty(M)&&C[M]&&(dt[M]=C[M]);return this},f.__private__.setDocumentProperty=function(C,M){if(Object.keys(dt).indexOf(C)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return dt[C]=M};var Ye,vt,tt,dr,Pt,Ft={},Be={},rt=[],Ve={},et={},Qe={},He={},st=null,_t=0,We=[],Xt=new cP(f),Ze=e.hotfixes||[],Ee={},Ke={},ht=[],Pe=function C(M,te,ce,ge,Ce,Oe){if(!(this instanceof C))return new C(M,te,ce,ge,Ce,Oe);isNaN(M)&&(M=1),isNaN(te)&&(te=0),isNaN(ce)&&(ce=0),isNaN(ge)&&(ge=1),isNaN(Ce)&&(Ce=0),isNaN(Oe)&&(Oe=0),this._matrix=[M,te,ce,ge,Ce,Oe]};Object.defineProperty(Pe.prototype,"sx",{get:function(){return this._matrix[0]},set:function(C){this._matrix[0]=C}}),Object.defineProperty(Pe.prototype,"shy",{get:function(){return this._matrix[1]},set:function(C){this._matrix[1]=C}}),Object.defineProperty(Pe.prototype,"shx",{get:function(){return this._matrix[2]},set:function(C){this._matrix[2]=C}}),Object.defineProperty(Pe.prototype,"sy",{get:function(){return this._matrix[3]},set:function(C){this._matrix[3]=C}}),Object.defineProperty(Pe.prototype,"tx",{get:function(){return this._matrix[4]},set:function(C){this._matrix[4]=C}}),Object.defineProperty(Pe.prototype,"ty",{get:function(){return this._matrix[5]},set:function(C){this._matrix[5]=C}}),Object.defineProperty(Pe.prototype,"a",{get:function(){return this._matrix[0]},set:function(C){this._matrix[0]=C}}),Object.defineProperty(Pe.prototype,"b",{get:function(){return this._matrix[1]},set:function(C){this._matrix[1]=C}}),Object.defineProperty(Pe.prototype,"c",{get:function(){return this._matrix[2]},set:function(C){this._matrix[2]=C}}),Object.defineProperty(Pe.prototype,"d",{get:function(){return this._matrix[3]},set:function(C){this._matrix[3]=C}}),Object.defineProperty(Pe.prototype,"e",{get:function(){return this._matrix[4]},set:function(C){this._matrix[4]=C}}),Object.defineProperty(Pe.prototype,"f",{get:function(){return this._matrix[5]},set:function(C){this._matrix[5]=C}}),Object.defineProperty(Pe.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Pe.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Pe.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Pe.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Pe.prototype.join=function(C){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(C)},Pe.prototype.multiply=function(C){var M=C.sx*this.sx+C.shy*this.shx,te=C.sx*this.shy+C.shy*this.sy,ce=C.shx*this.sx+C.sy*this.shx,ge=C.shx*this.shy+C.sy*this.sy,Ce=C.tx*this.sx+C.ty*this.shx+this.tx,Oe=C.tx*this.shy+C.ty*this.sy+this.ty;return new Pe(M,te,ce,ge,Ce,Oe)},Pe.prototype.decompose=function(){var C=this.sx,M=this.shy,te=this.shx,ce=this.sy,ge=this.tx,Ce=this.ty,Oe=Math.sqrt(C*C+M*M),yt=(C/=Oe)*te+(M/=Oe)*ce;te-=C*yt,ce-=M*yt;var mt=Math.sqrt(te*te+ce*ce);return yt/=mt,C*(ce/=mt)<M*(te/=mt)&&(C=-C,M=-M,yt=-yt,Oe=-Oe),{scale:new Pe(Oe,0,0,mt,0,0),translate:new Pe(1,0,0,1,ge,Ce),rotate:new Pe(C,M,-M,C,0,0),skew:new Pe(1,0,yt,1,0,0)}},Pe.prototype.toString=function(C){return this.join(" ")},Pe.prototype.inversed=function(){var C=this.sx,M=this.shy,te=this.shx,ce=this.sy,ge=this.tx,Ce=this.ty,Oe=1/(C*ce-M*te),yt=ce*Oe,mt=-M*Oe,Mt=-te*Oe,Kt=C*Oe;return new Pe(yt,mt,Mt,Kt,-yt*ge-Mt*Ce,-mt*ge-Kt*Ce)},Pe.prototype.applyToPoint=function(C){var M=C.x*this.sx+C.y*this.shx+this.tx,te=C.x*this.shy+C.y*this.sy+this.ty;return new _c(M,te)},Pe.prototype.applyToRectangle=function(C){var M=this.applyToPoint(C),te=this.applyToPoint(new _c(C.x+C.w,C.y+C.h));return new vp(M.x,M.y,te.x-M.x,te.y-M.y)},Pe.prototype.clone=function(){var C=this.sx,M=this.shy,te=this.shx,ce=this.sy,ge=this.tx,Ce=this.ty;return new Pe(C,M,te,ce,ge,Ce)},f.Matrix=Pe;var ct=f.matrixMult=function(C,M){return M.multiply(C)},qe=new Pe(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=qe;var wt=function(C,M){if(!et[C]){var te=(M instanceof ru?"Sh":"P")+(Object.keys(Ve).length+1).toString(10);M.id=te,et[C]=te,Ve[te]=M,Xt.publish("addPattern",M)}};f.ShadingPattern=ru,f.TilingPattern=mh,f.addShadingPattern=function(C,M){return k("addShadingPattern()"),wt(C,M),this},f.beginTilingPattern=function(C){k("beginTilingPattern()"),wp(C.boundingBox[0],C.boundingBox[1],C.boundingBox[2]-C.boundingBox[0],C.boundingBox[3]-C.boundingBox[1],C.matrix)},f.endTilingPattern=function(C,M){k("endTilingPattern()"),M.stream=Ae[D].join(`
323`),wt(C,M),Xt.publish("endTilingPattern",M),ht.pop().restore()};var St,at=f.__private__.newObject=function(){var C=Ot();return Zt(C,!0),C},Ot=f.__private__.newObjectDeferred=function(){return ae++,se[ae]=function(){return le},ae},Zt=function(C,M){return M=typeof M=="boolean"&&M,se[C]=le,M&&z(C+" 0 obj"),C},gt=f.__private__.newAdditionalObject=function(){var C={objId:Ot(),content:""};return he.push(C),C},kt=Ot(),Qt=Ot(),ar=f.__private__.decodeColorString=function(C){var M=C.split(" ");if(M.length!==2||M[1]!=="g"&&M[1]!=="G")M.length!==5||M[4]!=="k"&&M[4]!=="K"||(M=[(1-M[0])*(1-M[3]),(1-M[1])*(1-M[3]),(1-M[2])*(1-M[3]),"r"]);else{var te=parseFloat(M[0]);M=[te,te,te,"r"]}for(var ce="#",ge=0;ge<3;ge++)ce+=("0"+Math.floor(255*parseFloat(M[ge])).toString(16)).slice(-2);return ce},Ht=f.__private__.encodeColorString=function(C){var M;typeof C=="string"&&(C={ch1:C});var te=C.ch1,ce=C.ch2,ge=C.ch3,Ce=C.ch4,Oe=C.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof te=="string"&&te.charAt(0)!=="#"){var yt=new O7(te);if(yt.ok)te=yt.toHex();else if(!/^\d*\.?\d*$/.test(te))throw new Error('Invalid color "'+te+'" passed to jsPDF.encodeColorString.')}if(typeof te=="string"&&/^#[0-9A-Fa-f]{3}$/.test(te)&&(te="#"+te[1]+te[1]+te[2]+te[2]+te[3]+te[3]),typeof te=="string"&&/^#[0-9A-Fa-f]{6}$/.test(te)){var mt=parseInt(te.substr(1),16);te=mt>>16&255,ce=mt>>8&255,ge=255&mt}if(ce===void 0||Ce===void 0&&te===ce&&ce===ge)M=typeof te=="string"?te+" "+Oe[0]:C.precision===2?I(te/255)+" "+Oe[0]:T(te/255)+" "+Oe[0];else if(Ce===void 0||Sr(Ce)==="object"){if(Ce&&!isNaN(Ce.a)&&Ce.a===0)return["1.","1.","1.",Oe[1]].join(" ");M=typeof te=="string"?[te,ce,ge,Oe[1]].join(" "):C.precision===2?[I(te/255),I(ce/255),I(ge/255),Oe[1]].join(" "):[T(te/255),T(ce/255),T(ge/255),Oe[1]].join(" ")}else M=typeof te=="string"?[te,ce,ge,Ce,Oe[2]].join(" "):C.precision===2?[I(te),I(ce),I(ge),I(Ce),Oe[2]].join(" "):[T(te),T(ce),T(ge),T(Ce),Oe[2]].join(" ");return M},rn=f.__private__.getFilters=function(){return a},An=f.__private__.putStream=function(C){var M=(C=C||{}).data||"",te=C.filters||rn(),ce=C.alreadyAppliedFilters||[],ge=C.addLength1||!1,Ce=M.length,Oe=C.objectId,yt=function(Wr){return Wr};if(u!==null&&Oe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(yt=oi.encryptor(Oe,0));var mt={};te===!0&&(te=["FlateEncode"]);var Mt=C.additionalKeyValues||[],Kt=(mt=Ct.API.processDataByFilters!==void 0?Ct.API.processDataByFilters(M,te):{data:M,reverseChain:[]}).reverseChain+(Array.isArray(ce)?ce.join(" "):ce.toString());if(mt.data.length!==0&&(Mt.push({key:"Length",value:mt.data.length}),ge===!0&&Mt.push({key:"Length1",value:Ce})),Kt.length!=0)if(Kt.split("/").length-1==1)Mt.push({key:"Filter",value:Kt});else{Mt.push({key:"Filter",value:"["+Kt+"]"});for(var sr=0;sr<Mt.length;sr+=1)if(Mt[sr].key==="DecodeParms"){for(var Pn=[],jr=0;jr<mt.reverseChain.split("/").length-1;jr+=1)Pn.push("null");Pn.push(Mt[sr].value),Mt[sr].value="["+Pn.join(" ")+"]"}}z("<<");for(var Fr=0;Fr<Mt.length;Fr++)z("/"+Mt[Fr].key+" "+Mt[Fr].value);z(">>"),mt.data.length!==0&&(z("stream"),z(yt(mt.data)),z("endstream"))},mr=f.__private__.putPage=function(C){var M=C.number,te=C.data,ce=C.objId,ge=C.contentsObjId;Zt(ce,!0),z("<</Type /Page"),z("/Parent "+C.rootDictionaryObjId+" 0 R"),z("/Resources "+C.resourceDictionaryObjId+" 0 R"),z("/MediaBox ["+parseFloat(O(C.mediaBox.bottomLeftX))+" "+parseFloat(O(C.mediaBox.bottomLeftY))+" "+O(C.mediaBox.topRightX)+" "+O(C.mediaBox.topRightY)+"]"),C.cropBox!==null&&z("/CropBox ["+O(C.cropBox.bottomLeftX)+" "+O(C.cropBox.bottomLeftY)+" "+O(C.cropBox.topRightX)+" "+O(C.cropBox.topRightY)+"]"),C.bleedBox!==null&&z("/BleedBox ["+O(C.bleedBox.bottomLeftX)+" "+O(C.bleedBox.bottomLeftY)+" "+O(C.bleedBox.topRightX)+" "+O(C.bleedBox.topRightY)+"]"),C.trimBox!==null&&z("/TrimBox ["+O(C.trimBox.bottomLeftX)+" "+O(C.trimBox.bottomLeftY)+" "+O(C.trimBox.topRightX)+" "+O(C.trimBox.topRightY)+"]"),C.artBox!==null&&z("/ArtBox ["+O(C.artBox.bottomLeftX)+" "+O(C.artBox.bottomLeftY)+" "+O(C.artBox.topRightX)+" "+O(C.artBox.topRightY)+"]"),typeof C.userUnit=="number"&&C.userUnit!==1&&z("/UserUnit "+C.userUnit),Xt.publish("putPage",{objId:ce,pageContext:We[M],pageNumber:M,page:te}),z("/Contents "+ge+" 0 R"),z(">>"),z("endobj");var Ce=te.join(`
324`);return E===b&&(Ce+=`
325Q`),Zt(ge,!0),An({data:Ce,filters:rn(),objectId:ge}),z("endobj"),ce},On=f.__private__.putPages=function(){var C,M,te=[];for(C=1;C<=_t;C++)We[C].objId=Ot(),We[C].contentsObjId=Ot();for(C=1;C<=_t;C++)te.push(mr({number:C,data:Ae[C],objId:We[C].objId,contentsObjId:We[C].contentsObjId,mediaBox:We[C].mediaBox,cropBox:We[C].cropBox,bleedBox:We[C].bleedBox,trimBox:We[C].trimBox,artBox:We[C].artBox,userUnit:We[C].userUnit,rootDictionaryObjId:kt,resourceDictionaryObjId:Qt}));Zt(kt,!0),z("<</Type /Pages");var ce="/Kids [";for(M=0;M<_t;M++)ce+=te[M]+" 0 R ";z(ce+"]"),z("/Count "+_t),z(">>"),z("endobj"),Xt.publish("postPutPages")},kr=function(C){Xt.publish("putFont",{font:C,out:z,newObject:at,putStream:An}),C.isAlreadyPutted!==!0&&(C.objectNumber=at(),z("<<"),z("/Type /Font"),z("/BaseFont /"+th(C.postScriptName)),z("/Subtype /Type1"),typeof C.encoding=="string"&&z("/Encoding /"+C.encoding),z("/FirstChar 32"),z("/LastChar 255"),z(">>"),z("endobj"))},Vl=function(C){C.objectNumber=at();var M=[];M.push({key:"Type",value:"/XObject"}),M.push({key:"Subtype",value:"/Form"}),M.push({key:"BBox",value:"["+[O(C.x),O(C.y),O(C.x+C.width),O(C.y+C.height)].join(" ")+"]"}),M.push({key:"Matrix",value:"["+C.matrix.toString()+"]"});var te=C.pages[1].join(`
326`);An({data:te,additionalKeyValues:M,objectId:C.objectNumber}),z("endobj")},nd=function(C,M){M||(M=21);var te=at(),ce=function(Oe,yt){var mt,Mt=[],Kt=1/(yt-1);for(mt=0;mt<1;mt+=Kt)Mt.push(mt);if(Mt.push(1),Oe[0].offset!=0){var sr={offset:0,color:Oe[0].color};Oe.unshift(sr)}if(Oe[Oe.length-1].offset!=1){var Pn={offset:1,color:Oe[Oe.length-1].color};Oe.push(Pn)}for(var jr="",Fr=0,Wr=0;Wr<Mt.length;Wr++){for(mt=Mt[Wr];mt>Oe[Fr+1].offset;)Fr++;var cn=Oe[Fr].offset,un=(mt-cn)/(Oe[Fr+1].offset-cn),wi=Oe[Fr].color,Ks=Oe[Fr+1].color;jr+=Z(Math.round((1-un)*wi[0]+un*Ks[0]).toString(16))+Z(Math.round((1-un)*wi[1]+un*Ks[1]).toString(16))+Z(Math.round((1-un)*wi[2]+un*Ks[2]).toString(16))}return jr.trim()}(C.colors,M),ge=[];ge.push({key:"FunctionType",value:"0"}),ge.push({key:"Domain",value:"[0.0 1.0]"}),ge.push({key:"Size",value:"["+M+"]"}),ge.push({key:"BitsPerSample",value:"8"}),ge.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ge.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),An({data:ce,additionalKeyValues:ge,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:te}),z("endobj"),C.objectNumber=at(),z("<< /ShadingType "+C.type),z("/ColorSpace /DeviceRGB");var Ce="/Coords ["+O(parseFloat(C.coords[0]))+" "+O(parseFloat(C.coords[1]))+" ";C.type===2?Ce+=O(parseFloat(C.coords[2]))+" "+O(parseFloat(C.coords[3])):Ce+=O(parseFloat(C.coords[2]))+" "+O(parseFloat(C.coords[3]))+" "+O(parseFloat(C.coords[4]))+" "+O(parseFloat(C.coords[5])),z(Ce+="]"),C.matrix&&z("/Matrix ["+C.matrix.toString()+"]"),z("/Function "+te+" 0 R"),z("/Extend [true true]"),z(">>"),z("endobj")},id=function(C,M){var te=Ot(),ce=at();M.push({resourcesOid:te,objectOid:ce}),C.objectNumber=ce;var ge=[];ge.push({key:"Type",value:"/Pattern"}),ge.push({key:"PatternType",value:"1"}),ge.push({key:"PaintType",value:"1"}),ge.push({key:"TilingType",value:"1"}),ge.push({key:"BBox",value:"["+C.boundingBox.map(O).join(" ")+"]"}),ge.push({key:"XStep",value:O(C.xStep)}),ge.push({key:"YStep",value:O(C.yStep)}),ge.push({key:"Resources",value:te+" 0 R"}),C.matrix&&ge.push({key:"Matrix",value:"["+C.matrix.toString()+"]"}),An({data:C.stream,additionalKeyValues:ge,objectId:C.objectNumber}),z("endobj")},z2=function(C){for(var M in C.objectNumber=at(),z("<<"),C)switch(M){case"opacity":z("/ca "+I(C[M]));break;case"stroke-opacity":z("/CA "+I(C[M]))}z(">>
326"),z("endobj")},up=function(C){Zt(C.resourcesOid,!0),z("<<"),z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var M in z("/Font <<"),Ft)Ft.hasOwnProperty(M)&&(d===!1||d===!0&&h.hasOwnProperty(M))&&z("/"+M+" "+Ft[M].objectNumber+" 0 R");z(">>")}(),function(){if(Object.keys(Ve).length>0){for(var M in z("/Shading <<"),Ve)Ve.hasOwnProperty(M)&&Ve[M]instanceof ru&&Ve[M].objectNumber>=0&&z("/"+M+" "+Ve[M].objectNumber+" 0 R");Xt.publish("putShadingPatternDict"),z(">>")}}(),function(M){if(Object.keys(Ve).length>0){for(var te in z("/Pattern <<"),Ve)Ve.hasOwnProperty(te)&&Ve[te]instanceof f.TilingPattern&&Ve[te].objectNumber>=0&&Ve[te].objectNumber<M&&z("/"+te+" "+Ve[te].objectNumber+" 0 R");Xt.publish("putTilingPatternDict"),z(">>")}}(C.objectOid),function(){if(Object.keys(Qe).length>0){var M;for(M in z("/ExtGState <<"),Qe)Qe.hasOwnProperty(M)&&Qe[M].objectNumber>=0&&z("/"+M+" "+Qe[M].objectNumber+" 0 R");Xt.publish("putGStateDict"),z(">>")}}(),function(){for(var M in z("/XObject <<"),Ee)Ee.hasOwnProperty(M)&&Ee[M].objectNumber>=0&&z("/"+M+" "+Ee[M].objectNumber+" 0 R");Xt.publish("putXobjectDict"),z(">>")}(),z(">>"),z("endobj")},Av=function(C){Be[C.fontName]=Be[C.fontName]||{},Be[C.fontName][C.fontStyle]=C.id},cv=function(C,M,te,ce,ge){var Ce={id:"F"+(Object.keys(Ft).length+1).toString(10),postScriptName:C,fontName:M,fontStyle:te,encoding:ce,isStandardFont:ge||!1,metadata:{}};return Xt.publish("addFont",{font:Ce,instance:this}),Ft[Ce.id]=Ce,Av(Ce),Ce.id},Vo=f.__private__.pdfEscape=f.pdfEscape=function(C,M){return function(te,ce){var ge,Ce,Oe,yt,mt,Mt,Kt,sr,Pn;if(Oe=(ce=ce||{}).sourceEncoding||"Unicode",mt=ce.outputEncoding,(ce.autoencode||mt)&&Ft[Ye].metadata&&Ft[Ye].metadata[Oe]&&Ft[Ye].metadata[Oe].encoding&&(yt=Ft[Ye].metadata[Oe].encoding,!mt&&Ft[Ye].encoding&&(mt=Ft[Ye].encoding),!mt&&yt.codePages&&(mt=yt.codePages[0]),typeof mt=="string"&&(mt=yt[mt]),mt)){for(Kt=!1,Mt=[],ge=0,Ce=te.length;ge<Ce;ge++)(sr=mt[te.charCodeAt(ge)])?Mt.push(String.fromCharCode(sr)):Mt.push(te[ge]),Mt[ge].charCodeAt(0)>>8&&(Kt=!0);te=Mt.join("")}for(ge=te.length;Kt===void 0&&ge!==0;)te.charCodeAt(ge-1)>>8&&(Kt=!0),ge--;if(!Kt)return te;for(Mt=ce.noBOM?[]:[254,255],ge=0,Ce=te.length;ge<Ce;ge++){if((Pn=(sr=te.charCodeAt(ge))>>8)>>8)throw new Error("Character at position "+ge+" of string '"+te+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Mt.push(Pn),Mt.push(sr-(Pn<<8))}return String.fromCharCode.apply(void 0,Mt)}(C,M).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},dp=f.__private__.beginPage=function(C){Ae[++_t]=[],We[_t]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(C[0]),topRightY:Number(C[1])}},dv(_t),ve(Ae[D])},uv=function(C,M){var te,ce,ge;switch(r=M||r,typeof C=="string"&&(te=m(C.toLowerCase()),Array.isArray(te)&&(ce=te[0],ge=te[1])),Array.isArray(C)&&(ce=C[0]*vt,ge=C[1]*vt),isNaN(ce)&&(ce=i[0],ge=i[1]),(ce>14400||ge>14400)&&(Lr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ce=Math.min(14400,ce),ge=Math.min(14400,ge)),i=[ce,ge],r.substr(0,1)){case"l":ge>ce&&(i=[ge,ce]);break;case"p":ce>ge&&(i=[ge,ce])}dp(i),rB(Ut),z(cd),mp!==0&&z(mp+" J"),Gl!==0&&z(Gl+" j"),Xt.publish("addPage",{pageNumber:_t})},hp=function(C){C>0&&C<=_t&&(Ae.splice(C,1),We.splice(C,1),_t--,D>_t&&(D=_t),this.setPage(D))},dv=function(C){C>0&&C<=_t&&(D=C)},hv=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return Ae.length-1},fv=function(C,M,te){var ce,ge=void 0;return te=te||{},C=C!==void 0?C:Ft[Ye].fontName,M=M!==void 0?M:Ft[Ye].fontStyle,ce=C.toLowerCase(),Be[ce]!==void 0&&Be[ce][M]!==void 0?ge=Be[ce][M]:Be[C]!==void 0&&Be[C][M]!==void 0?ge=Be[C][M]:te.disableWarning===!1&&Lr.warn("Unable to look up font label for font '"+C+"', '"+M+"'. Refer to getFontList() for available fonts."),ge||te.noFallback||(ge=Be.times[M])==null&&(ge=Be.times.normal),ge},qa=f.__private__.putInfo=function(){var C=at(),M=function(ce){return ce};for(var te in u!==null&&(M=oi.encryptor(C,0)),z("<<"),z("/Producer ("+Vo(M("jsPDF "+Ct.version))+")"),dt)dt.hasOwnProperty(te)&&dt[te]&&z("/"+te.substr(0,1).toUpperCase()+te.substr(1)+" ("+Vo(M(dt[te]))+")");z("/CreationDate ("+Vo(M(G))+")"),z(">>
326"),z("endobj")},od=f.__private__.putCatalog=function(C){var M=(C=C||{}).rootDictionaryObjId||kt;switch(at(),z("<<"),z("/Type /Catalog"),z("/Pages "+M+" 0 R"),ze||(ze="fullwidth"),ze){case"fullwidth":z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":z("/OpenAction [3 0 R /Fit]");break;case"original":z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var te=""+ze;te.substr(te.length-1)==="%"&&(ze=parseInt(ze)/100),typeof ze=="number"&&z("/OpenAction [3 0 R /XYZ null null "+I(ze)+"]")}switch(Et||(Et="continuous"),Et){case"continuous":z("/PageLayout /OneColumn");break;case"single":z("/PageLayout /SinglePage");break;case"two":case"twoleft":z("/PageLayout /TwoColumnLeft");break;case"tworight":z("/PageLayout /TwoColumnRight")}Ue&&z("/PageMode /"+Ue),Xt.publish("putCatalog"),z(">>"),z("endobj")},W2=f.__private__.putTrailer=function(){z("trailer"),z("<<"),z("/Size "+(ae+1)),z("/Root "+ae+" 0 R"),z("/Info "+(ae-1)+" 0 R"),u!==null&&z("/Encrypt "+oi.oid+" 0 R"),z("/ID [ <"+K+"> <"+K+"> ]"),z(">>")},jn=f.__private__.putHeader=function(){z("%PDF-"+g),z("%ºß¬à")},pv=f.__private__.putXRef=function(){var C="0000000000";z("xref"),z("0 "+(ae+1)),z("0000000000 65535 f ");for(var M=1;M<=ae;M++)typeof se[M]=="function"?z((C+se[M]()).slice(-10)+" 00000 n "):se[M]!==void 0?z((C+se[M]).slice(-10)+" 00000 n "):z("0000000000 00000 n ")},Xa=f.__private__.buildDocument=function(){var C;ae=0,le=0,pe=[],se=[],he=[],kt=Ot(),Qt=Ot(),ve(pe),Xt.publish("buildDocument"),jn(),On(),function(){Xt.publish("putAdditionalObjects");for(var te=0;te<he.length;te++){var ce=he[te];Zt(ce.objId,!0),z(ce.content),z("endobj")}Xt.publish("postPutAdditionalObjects")}(),C=[],function(){for(var te in Ft)Ft.hasOwnProperty(te)&&(d===!1||d===!0&&h.hasOwnProperty(te))&&kr(Ft[te])}(),function(){var te;for(te in Qe)Qe.hasOwnProperty(te)&&z2(Qe[te])}(),function(){for(var te in Ee)Ee.hasOwnProperty(te)&&Vl(Ee[te])}(),function(te){var ce;for(ce in Ve)Ve.hasOwnProperty(ce)&&(Ve[ce]instanceof ru?nd(Ve[ce]):Ve[ce]instanceof mh&&id(Ve[ce],te))}(C),Xt.publish("putResources"),C.forEach(up),up({resourcesOid:Qt,objectOid:Number.MAX_SAFE_INTEGER}),Xt.publish("postPutResources"),u!==null&&(oi.oid=at(),z("<<"),z("/Filter /Standard"),z("/V "+oi.v),z("/R "+oi.r),z("/U <"+oi.toHexString(oi.U)+">"),z("/O <"+oi.toHexString(oi.O)+">"),z("/P "+oi.P),z(">>"),z("endobj")),qa(),od();var M=le;return pv(),W2(),z("startxref"),z(""+M),z("%%EOF"),ve(Ae[D]),pe.join(`
327`)},ad=f.__private__.getBlob=function(C){return new Blob([Me(C)],{type:"application/pdf"})},fp=function(C){for(;C.firstChild;)C.removeChild(C.firstChild)},yo=function(C){var M,te=C.document,ce=te.documentElement,ge=te.head,Ce=te.body;return ge||(ge=te.createElement("head"),ce.appendChild(ge)),Ce||(Ce=te.createElement("body"),ce.appendChild(Ce)),fp(ge),fp(Ce),(M=te.createElement("style")).appendChild(te.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),ge.appendChild(M),{document:te,body:Ce}},sd=f.output=f.__private__.output=(St=function(C,M){switch(typeof(M=M||{})=="string"?M={filename:M}:M.filename=M.filename||"generated.pdf",C){case void 0:return Xa();case"save":f.save(M.filename);break;case"arraybuffer":return Me(Xa());case"blob":return ad(Xa());case"bloburi":case"bloburl":if(Rt.URL!==void 0&&typeof Rt.URL.createObjectURL=="function")return Rt.URL&&Rt.URL.createObjectURL(ad(Xa()))||void 0;Lr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var te="",ce=Xa();try{te=sP(ce)}catch{te=sP(unescape(encodeURIComponent(ce)))}return"data:application/pdf;filename="+encodeURIComponent(M.filename)+";base64,"+te;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Rt)==="[object Window]"){var ge="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ce=!M.pdfObjectUrl;Ce||(ge=M.pdfObjectUrl);var Oe=Rt.open();if(Oe!==null){var yt=yo(Oe),mt=yt.document.createElement("script"),Mt=this;mt.src=ge,Ce&&(mt.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",mt.crossOrigin="anonymous"),mt.onload=function(){Oe.PDFObject.embed(Mt.output("dataurlstring"),M)},yt.body.appendChild(mt)}return Oe}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Rt)==="[object Window]"){var Kt=M.pdfJsUrl||"examples/PDF.js/web/viewer.html",sr=Rt.open();if(sr!==null){var Pn=yo(sr),jr=Pn.document.createElement("iframe"),Fr=Kt.indexOf("?")===-1?"?":"&";Mt=this,jr.id="pdfViewer",jr.width="500px",jr.height="400px",jr.src=Kt+Fr+"file=&downloadName="+encodeURIComponent(M.filename),jr.onload=function(){sr.document.title=M.filename,jr.contentWindow.PDFViewerApplication.open(Mt.output("bloburl"))},Pn.body.appendChild(jr)}return sr}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Rt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Wr=Rt.open();if(Wr!==null){var cn=yo(Wr),un=cn.document.createElement("iframe");
vendor: 13,765 bytes, lines 327-342
327un.src=this.output("datauristring",M),cn.body.appendChild(un),Wr.document.title=M.filename}if(Wr||typeof safari>"u")return Wr;break;case"datauri":case"dataurl":return Rt.document.location.href=this.output("datauristring",M);default:return null}},St.foo=function(){try{return St.apply(this,arguments)}catch(te){var C=te.stack||"";~C.indexOf(" at ")&&(C=C.split(" at ")[1]);var M="Error in function "+C.split(`
328`)[0].split("<")[0]+": "+te.message;if(!Rt.console)throw new Error(M);Rt.console.error(M,te),Rt.alert&&alert(M)}},St.foo.bar=St,St.foo),Ds=function(C){return Array.isArray(Ze)===!0&&Ze.indexOf(C)>-1};switch(n){case"pt":vt=1;break;case"mm":vt=72/25.4;break;case"cm":vt=72/2.54;break;case"in":vt=72;break;case"px":vt=Ds("px_scaling")==1?.75:96/72;break;case"pc":case"em":vt=12;break;case"ex":vt=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);vt=n}var oi=null;re(),Q();var gv=f.__private__.getPageInfo=f.getPageInfo=function(C){if(isNaN(C)||C%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:We[C].objId,pageNumber:C,pageContext:We[C]}},G2=f.__private__.getPageInfoByObjId=function(C){if(isNaN(C)||C%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var M in We)if(We[M].objId===C)break;return gv(M)},Y2=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:We[D].objId,pageNumber:D,pageContext:We[D]}};f.addPage=function(){return uv.apply(this,arguments),this},f.setPage=function(){return dv.apply(this,arguments),ve.call(this,Ae[D]),this},f.insertPage=function(C){return this.addPage(),this.movePage(D,C),this},f.movePage=function(C,M){var te,ce;if(C>M){te=Ae[C],ce=We[C];for(var ge=C;ge>M;ge--)Ae[ge]=Ae[ge-1],We[ge]=We[ge-1];Ae[M]=te,We[M]=ce,this.setPage(M)}else if(C<M){te=Ae[C],ce=We[C];for(var Ce=C;Ce<M;Ce++)Ae[Ce]=Ae[Ce+1],We[Ce]=We[Ce+1];Ae[M]=te,We[M]=ce,this.setPage(M)}return this},f.deletePage=function(){return hp.apply(this,arguments),this},f.__private__.text=f.text=function(C,M,te,ce,ge){var Ce,Oe,yt,mt,Mt,Kt,sr,Pn,jr,Fr=(ce=ce||{}).scope||this;if(typeof C=="number"&&typeof M=="number"&&(typeof te=="string"||Array.isArray(te))){var Wr=te;te=M,M=C,C=Wr}if(arguments[3]instanceof Pe==0?(yt=arguments[4],mt=arguments[5],Sr(sr=arguments[3])==="object"&&sr!==null||(typeof yt=="string"&&(mt=yt,yt=null),typeof sr=="string"&&(mt=sr,sr=null),typeof sr=="number"&&(yt=sr,sr=null),ce={flags:sr,angle:yt,align:mt})):(k("The transform parameter of text() with a Matrix value"),jr=ge),isNaN(M)||isNaN(te)||C==null)throw new Error("Invalid arguments passed to jsPDF.text");if(C.length===0)return Fr;var cn,un="",wi=typeof ce.lineHeightFactor=="number"?ce.lineHeightFactor:Ec,Ks=Fr.internal.scaleFactor;function bp(Rr){return Rr=Rr.split("	").join(Array(ce.TabLen||9).join(" ")),Vo(Rr,sr)}function Cc(Rr){for(var Dr,En=Rr.concat(),$n=[],zs=En.length;zs--;)typeof(Dr=En.shift())=="string"?$n.push(Dr):Array.isArray(Rr)&&(Dr.length===1||Dr[1]===void 0&&Dr[2]===void 0)?$n.push(Dr[0]):$n.push([Dr[0],Dr[1],Dr[2]]);return $n}function Ic(Rr,Dr){var En;if(typeof Rr=="string")En=Dr(Rr)[0];else if(Array.isArray(Rr)){for(var $n,zs,Cp=Rr.concat(),xd=[],Sv=Cp.length;Sv--;)typeof($n=Cp.shift())=="string"?xd.push(Dr($n)[0]):Array.isArray($n)&&typeof $n[0]=="string"&&(zs=Dr($n[0],$n[1],$n[2]),xd.push([zs[0],zs[1],zs[2]]));En=xd}return En}var Yl=!1,kc=!0;if(typeof C=="string")Yl=!0;else if(Array.isArray(C)){var fd=C.concat();Oe=[];for(var pd,bi=fd.length;bi--;)(typeof(pd=fd.shift())!="string"||Array.isArray(pd)&&typeof pd[0]!="string")&&(kc=!1);Yl=kc}if(Yl===!1)throw new Error('Type of text must be string or Array. "'+C+'" is not recognized.');typeof C=="string"&&(C=C.match(/[\r?\n]/)?C.split(/\r\n|\r|\n/g):[C]);var Fc=xe/Fr.internal.scaleFactor,Nc=Fc*(wi-1);switch(ce.baseline){case"bottom":te-=Nc;break;case"top":te+=Fc-Nc;break;case"hanging":te+=Fc-2*Nc;break;case"middle":te+=Fc/2-Nc}if((Kt=ce.maxWidth||0)>0&&(typeof C=="string"?C=Fr.splitTextToSize(C,Kt):Object.prototype.toString.call(C)==="[object Array]"&&(C=C.reduce(function(Rr,Dr){return Rr.concat(Fr.splitTextToSize(Dr,Kt))},[]))),Ce={text:C,x:M,y:te,options:ce,mutex:{pdfEscape:Vo,activeFontKey:Ye,fonts:Ft,activeFontSize:xe}},Xt.publish("preProcessText",Ce),C=Ce.text,yt=(ce=Ce.options).angle,jr instanceof Pe==0&&yt&&typeof yt=="number"){yt*=Math.PI/180,ce.rotationDirection===0&&(yt=-yt),E===b&&(yt=-yt);var xp=Math.cos(yt),es=Math.sin(yt);jr=new Pe(xp,es,-es,xp,0,0)}else yt&&yt instanceof Pe&&(jr=yt);E!==b||jr||(jr=qe),(Mt=ce.charSpace||ud)!==void 0&&(un+=O(U(Mt))+` Tc
329`,this.setCharSpace(this.getCharSpace()||0)),(Pn=ce.horizontalScale)!==void 0&&(un+=O(100*Pn)+` Tz
330`),ce.lang;var Ui=-1,Ev=ce.renderingMode!==void 0?ce.renderingMode:ce.stroke,gd=Fr.internal.getCurrentPageInfo().pageContext;switch(Ev){case 0:case!1:case"fill":Ui=0;break;case 1:case!0:case"stroke":Ui=1;break;case 2:case"fillThenStroke":Ui=2;break;case 3:case"invisible":Ui=3;break;case 4:case"fillAndAddForClipping":Ui=4;break;case 5:case"strokeAndAddPathForClipping":Ui=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ui=6;break;case 7:case"addToPathForClipping":Ui=7}var _v=gd.usedRenderingMode!==void 0?gd.usedRenderingMode:-1;Ui!==-1?un+=Ui+` Tr
331`:_v!==-1&&(un+=`0 Tr
332`),Ui!==-1&&(gd.usedRenderingMode=Ui),mt=ce.align||"left";var zo,Tc=xe*wi,Bp=Fr.internal.pageSize.getWidth(),md=Ft[Ye];Mt=ce.charSpace||ud,Kt=ce.maxWidth||0,sr=Object.assign({autoencode:!0,noBOM:!0},ce.flags);var Oc=[],Ep=function(Rr){return Fr.getStringUnitWidth(Rr,{font:md,charSpace:Mt,fontSize:xe,doKerning:!1})*xe/Ks};if(Object.prototype.toString.call(C)==="[object Array]"){var Ri;Oe=Cc(C),mt!=="left"&&(zo=Oe.map(Ep));var to,yd=0;if(mt==="right"){M-=zo[0],C=[],bi=Oe.length;for(var ql=0;ql<bi;ql++)ql===0?(to=Qs(M),Ri=Ms(te)):(to=U(yd-zo[ql]),Ri=-Tc),C.push([Oe[ql],to,Ri]),yd=zo[ql]}else if(mt==="center"){M-=zo[0]/2,C=[],bi=Oe.length;for(var Xl=0;Xl<bi;Xl++)Xl===0?(to=Qs(M),Ri=Ms(te)):(to=U((yd-zo[Xl])/2),Ri=-Tc),C.push([Oe[Xl],to,Ri]),yd=zo[Xl]}else if(mt==="left"){C=[],bi=Oe.length;for(var vd=0;vd<bi;vd++)C.push(Oe[vd])}else if(mt==="justify"&&md.encoding==="Identity-H"){C=[],bi=Oe.length,Kt=Kt!==0?Kt:Bp;for(var jc=0,Ln=0;Ln<bi;Ln++)if(Ri=Ln===0?Ms(te):-Tc,to=Ln===0?Qs(M):jc,Ln<bi-1){var cB=U((Kt-zo[Ln])/(Oe[Ln].split(" ").length-1)),ts=Oe[Ln].split(" ");C.push([ts[0]+" ",to,Ri]),jc=0;for(var va=1;va<ts.length;va++){var Pc=(Ep(ts[va-1]+" "+ts[va])-Ep(ts[va]))*Ks+cB;va==ts.length-1?C.push([ts[va],Pc,0]):C.push([ts[va]+" ",Pc,0]),jc-=Pc}}else C.push([Oe[Ln],to,Ri]);C.push(["",jc,0])}else{if(mt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(C=[],bi=Oe.length,Kt=Kt!==0?Kt:Bp,Ln=0;Ln<bi;Ln++){Ri=Ln===0?Ms(te):-Tc,to=Ln===0?Qs(M):0;var _p=Oe[Ln].split(" ").length-1,Sp=_p>0?(Kt-zo[Ln])/_p:0;Ln<bi-1?Oc.push(O(U(Sp))):Oc.push(0),C.push([Oe[Ln],to,Ri])}}}(typeof ce.R2L=="boolean"?ce.R2L:Le)===!0&&(C=Ic(C,function(Rr,Dr,En){return[Rr.split("").reverse().join(""),Dr,En]})),Ce={text:C,x:M,y:te,options:ce,mutex:{pdfEscape:Vo,activeFontKey:Ye,fonts:Ft,activeFontSize:xe}},Xt.publish("postProcessText",Ce),C=Ce.text,cn=Ce.mutex.isHex||!1;var wd=Ft[Ye].encoding;wd!=="WinAnsiEncoding"&&wd!=="StandardEncoding"||(C=Ic(C,function(Rr,Dr,En){return[bp(Rr),Dr,En]})),Oe=Cc(C),C=[];for(var Lc,Uc,Jl,Vs=Array.isArray(Oe[0])?1:0,Zl="",bd=function(Rr,Dr,En){var $n="";return En instanceof Pe?(En=typeof ce.angle=="number"?ct(En,new Pe(1,0,0,1,Rr,Dr)):ct(new Pe(1,0,0,1,Rr,Dr),En),E===b&&(En=ct(new Pe(1,0,0,-1,0,0),En)),$n=En.join(" ")+` Tm
333`):$n=O(Rr)+" "+O(Dr)+` Td
334`,$n},xi=0;xi<Oe.length;xi++){switch(Zl="",Vs){case 1:Jl=(cn?"<":"(")+Oe[xi][0]+(cn?">":")"),Lc=parseFloat(Oe[xi][1]),Uc=parseFloat(Oe[xi][2]);break;case 0:Jl=(cn?"<":"(")+Oe[xi]+(cn?">":")"),Lc=Qs(M),Uc=Ms(te)}Oc!==void 0&&Oc[xi]!==void 0&&(Zl=Oc[xi]+` Tw
335`),xi===0?C.push(Zl+bd(Lc,Uc,jr)+Jl):Vs===0?C.push(Zl+Jl):Vs===1&&C.push(Zl+bd(Lc,Uc,jr)+Jl)}C=Vs===0?C.join(` Tj
336T* `):C.join(` Tj
337`),C+=` Tj
338`;var rs=`BT
339/`;return rs+=Ye+" "+xe+` Tf
340`,rs+=O(xe*wi)+` TL
341`,rs+=Za+`
342`,rs+=un,rs+=C,z(rs+="ET"),h[Ye]=!0,Fr};var q2=f.__private__.clip=f.clip=function(C){return z(C==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return q2("evenodd")},f.__private__.discardPath=f.discardPath=function(){return z("n"),this};var Ja=f.__private__.isValidStyle=function(C){var M=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(C)!==-1&&(M=!0),M};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(C){return Ja(C)&&(A=C),this};var mv=f.__private__.getStyle=f.getStyle=function(C){var M=A;switch(C){case"D":case"S":M="S";break;case"F":M="f";break;case"FD":case"DF":M="B";break;case"f":case"f*":case"B":case"B*":M=C}return M},ld=f.close=function(){return z("h"),this};f.stroke=function(){return z("S"),this},f.fill=function(C){return Ad("f",C),this},f.fillEvenOdd=function(C){return Ad("f*",C),this},f.fillStroke=function(C){return Ad("B",C),this},f.fillStrokeEvenOdd=function(C){return Ad("B*",C),this};var Ad=function(C,M){Sr(M)==="object"?J2(M,C):z(C)},pp=function(C){C===null||E===b&&C===void 0||(C=mv(C),z(C))};function X2(C,M,te,ce,ge){var Ce=new mh(M||this.boundingBox,te||this.xStep,ce||this.yStep,this.gState,ge||this.matrix);Ce.stream=this.stream;var Oe=C+"$$"+this.cloneIndex+++"$$";return wt(Oe,Ce),Ce}var J2=function(C,M){var te=et[C.key],ce=Ve[te];if(ce instanceof ru)z("q"),z(Z2(M)),ce.gState&&f.setGState(ce.gState),z(C.matrix.toString()+" cm"),z("/"+te+" sh"),z("Q");else if(ce instanceof mh){var ge=new Pe(1,0,0,-1,0,Sc());C.matrix&&(ge=ge.multiply(C.matrix||qe),te=X2.call(ce,C.key,C.boundingBox,C.xStep,C.yStep,ge).id),z("q"),z("/Pattern cs"),z("/"+te+" scn"),ce.gState&&f.setGState(ce.gState),z(M),z("Q")}},Z2=function(C){switch(C){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"}},zl=f.moveTo=function(C,M){return z(O(U(C))+" "+O(R(M))+" m"),this},yv=f.lineTo=function(C,M){return z(O(U(C))+" "+O(R(M))+" l"),this},Wl=f.curveTo=function(C,M,te,ce,ge,Ce){return z([O(U(C)),O(R(M)),O(U(te)),O(R(ce)),O(U(ge)),O(R(Ce)),"c"].join(" ")),this};f.__private__.line=f.line=function(C,M,te,ce,ge){if(isNaN(C)||isNaN(M)||isNaN(te)||isNaN(ce)||!Ja(ge))throw new Error("Invalid arguments passed to jsPDF.line");return E===w?this.lines([[te-C,ce-M]],C,M,[1,1],ge||"S"):this.lines([[te-C,ce-M]],C,M,[1,1]).stroke()},f.__private__.lines=f.lines=function(C,M,te,ce,ge,Ce){var Oe,yt,mt,Mt,Kt,sr,Pn,jr,Fr,Wr,cn,un;if(typeof C=="number"&&(un=te,te=M,M=C,C=un),ce=ce||[1,1],Ce=Ce||!1,isNaN(M)||isNaN(te)||!Array.isArray(C)||!Array.isArray(ce)||!Ja(ge)||typeof Ce!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(zl(M,te),Oe=ce[0],yt=ce[1],Mt=C.length,Wr=M,cn=te,mt=0;mt<Mt;mt++)(Kt=C[mt]).length===2?(Wr=Kt[0]*Oe+Wr,cn=Kt[1]*yt+cn,yv(Wr,cn)):(sr=Kt[0]*Oe+Wr,Pn=Kt[1]*yt+cn,jr=Kt[2]*Oe+Wr,Fr=Kt[3]*yt+cn,Wr=Kt[4]*Oe+Wr,cn=Kt[5]*yt+cn,Wl(sr,Pn,jr,Fr,Wr,cn));return Ce&&ld(),pp(ge),this},f.path=function(C){for(var M=0;M<C.length;M++){var te=C[M],ce=te.c;switch(te.op){case"m":zl(ce[0],ce[1]);break;case"l":yv(ce[0],ce[1]);break;case"c":Wl.apply(this,ce);break;case"h":ld()}}return this},f.__private__.rect=f.rect=function(C,M,te,ce,ge){if(isNaN(C)||isNaN(M)||isNaN(te)||isNaN(ce)||!Ja(ge))throw new Error("Invalid arguments passed to jsPDF.rect");return E===w&&(ce=-ce),z([O(U(C)),O(R(M)),O(U(te)),O(U(ce)),"re"].join(" ")),pp(ge),this},f.__private__.triangle=f.triangle=function(C,M,te,ce,ge,Ce,Oe){if(isNaN(C)||isNaN(M)||isNaN(te)||isNaN(ce)||isNaN(ge)||isNaN(Ce)||!Ja(Oe))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[te-C,ce-M],[ge-te,Ce-ce],[C-ge,M-Ce]],C,M,[1,1],Oe,!0),this},f.__private__.roundedRect=f.roundedRect=function(C,M,te,ce,ge,Ce,Oe){if(isNaN(C)||isNaN(M)||isNaN(te)||isNaN(ce)||isNaN(ge)||isNaN(Ce)||!Ja(Oe))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var yt=4/3*(Math.SQRT2-1);return ge=Math.min(ge,.5*te),Ce=Math.min(Ce,.5*ce),this.lines([[te-2*ge,0],[ge*yt,0,ge,Ce-Ce*yt,ge,Ce],[0,ce-2*Ce],[0,Ce*yt,-ge*yt,Ce,-ge,Ce],[2*ge-te,0],[-ge*yt,0,-ge,-Ce*yt,-ge,-Ce],[0,2*Ce-ce],[0,-Ce*yt,ge*yt,-Ce,ge,-Ce]],C+ge,M,[1,1],Oe,!0),this},f.__private__.ellipse=f.ellipse=function(C,M,te,ce,ge){if(isNaN(C)||isNaN(M)||isNaN(te)||isNaN(ce)||!Ja(ge))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ce=4/3*(Math.SQRT2-1)*te,Oe=4/3*(Math.SQRT2-1)*ce;return zl(C+te,M),Wl(C+te,M-Oe,C+Ce,M-ce,C,M-ce),Wl(C-Ce,M-ce,C-te,M-Oe,C-te,M),Wl(C-te,M+Oe,C-Ce,M+ce,C,M+ce),Wl(C+Ce,M+ce,C+te,M+Oe,C+te,M),pp(ge),this},f.__private__.circle=f.circle=function(C,M,te,ce){if(isNaN(C)||isNaN(M)||isNaN(te)||!Ja(ce))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(C,M,te,te,ce)},f.setFont=function(C,M,te){return te&&(M=F(M,te)),Ye=fv(C,M,{disableWarning:!1}),this};var eB=f.__private__.getFont=f.getFont=function(){return Ft[fv.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var C,M,te={};for(C in Be)if(Be.hasOwnProperty(C))for(M in te[C]=[],Be[C])Be[C].hasOwnProperty(M)&&te[C].push(M);return te},f.addFont=function(C,M,te,ce,ge){var Ce=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ce.indexOf(arguments[3])!==-1?ge=arguments[3]:arguments[3]&&Ce.indexOf(arguments[3])==-1&&(te=F(te,ce)),cv.call(this,C,M,te,ge=ge||"Identity-H")};var Ec,Ut=e.lineWidth||.200025,tB=f.__private__.getLineWidth=f.getLineWidth=function(){return Ut},rB=f.__private__.setLineWidth=f.setLineWidth=function(C){return Ut=C,z(O(U(C))+" w"),this};f.__private__.setLineDash=Ct.API.setLineDash=Ct.API.setLineDashPattern=function(C,M){if(C=C||[],M=M||0,isNaN(M)||!Array.isArray(C))throw new Error("Invalid arguments passed to 
342jsPDF.setLineDash");return C=C.map(function(te){return O(U(te))}).join(" "),M=O(U(M)),z("["+C+"] "+M+" d"),this};var nB=f.__private__.getLineHeight=f.getLineHeight=function(){return xe*Ec};f.__private__.getLineHeight=f.getLineHeight=function(){return xe*Ec};var iB=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(C){return typeof(C=C||1.15)=="number"&&(Ec=C),this},oB=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return Ec};iB(e.lineHeight);var Qs=f.__private__.getHorizontalCoordinate=function(C){return U(C)},Ms=f.__private__.getVerticalCoordinate=function(C){return E===b?C:We[D].mediaBox.topRightY-We[D].mediaBox.bottomLeftY-U(C)},aB=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(C){return O(Qs(C))},sB=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(C){return O(Ms(C))},cd=e.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return ar(cd)},f.__private__.setStrokeColor=f.setDrawColor=function(C,M,te,ce){return cd=Ht({ch1:C,ch2:M,ch3:te,ch4:ce,pdfColorType:"draw",precision:2}),z(cd),this};var gp=e.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return ar(gp)},f.__private__.setFillColor=f.setFillColor=function(C,M,te,ce){return gp=Ht({ch1:C,ch2:M,ch3:te,ch4:ce,pdfColorType:"fill",precision:2}),z(gp),this};var Za=e.textColor||"0 g",lB=f.__private__.getTextColor=f.getTextColor=function(){return ar(Za)};f.__private__.setTextColor=f.setTextColor=function(C,M,te,ce){return Za=Ht({ch1:C,ch2:M,ch3:te,ch4:ce,pdfColorType:"text",precision:3}),this};var ud=e.charSpace,AB=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(ud||0)};f.__private__.setCharSpace=f.setCharSpace=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ud=C,this};var mp=0;f.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},f.__private__.setLineCap=f.setLineCap=function(C){var M=f.CapJoinStyles[C];if(M===void 0)throw new Error("Line cap style of '"+C+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return mp=M,z(M+" J"),this};var Gl=0;f.__private__.setLineJoin=f.setLineJoin=function(C){var M=f.CapJoinStyles[C];if(M===void 0)throw new Error("Line join style of '"+C+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Gl=M,z(M+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(C){if(C=C||0,isNaN(C))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return z(O(U(C))+" M"),this},f.GState=ib,f.setGState=function(C){(C=typeof C=="string"?Qe[He[C]]:yp(null,C)).equals(st)||(z("/"+C.id+" gs"),st=C)};var yp=function(C,M){if(!C||!He[C]){var te=!1;for(var ce in Qe)if(Qe.hasOwnProperty(ce)&&Qe[ce].equals(M)){te=!0;break}if(te)M=Qe[ce];else{var ge="GS"+(Object.keys(Qe).length+1).toString(10);Qe[ge]=M,M.id=ge}return C&&(He[C]=M.id),Xt.publish("addGState",M),M}};f.addGState=function(C,M){return yp(C,M),this},f.saveGraphicsState=function(){return z("q"),rt.push({key:Ye,size:xe,color:Za}),this},f.restoreGraphicsState=function(){z("Q");var C=rt.pop();return Ye=C.key,xe=C.size,Za=C.color,st=null,this},f.setCurrentTransformationMatrix=function(C){return z(C.toString()+" cm"),this},f.comment=function(C){return z("#"+C),this};var _c=function(C,M){var te=C||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return te},set:function(Ce){isNaN(Ce)||(te=parseFloat(Ce))}});var ce=M||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ce},set:function(Ce){isNaN(Ce)||(ce=parseFloat(Ce))}});var ge="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ge},set:function(Ce){ge=Ce.toString()}}),this},vp=function(C,M,te,ce){_c.call(this,C,M),this.type="rect";var ge=te||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ge},set:function(Oe){isNaN(Oe)||(ge=parseFloat(Oe))}});var Ce=ce||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ce},set:function(Oe){isNaN(Oe)||(Ce=parseFloat(Oe))}}),this},dd=function(){this.page=_t,this.currentPage=D,this.pages=Ae.slice(0),this.pagesContext=We.slice(0),this.x=tt,this.y=dr,this.matrix=Pt,this.width=vv(D),this.height=Hs(D),this.outputDestination=_e,this.id="",this.objectNumber=-1};dd.prototype.restore=function(){_t=this.page,D=this.currentPage,We=this.pagesContext,Ae=this.pages,tt=this.x,dr=this.y,Pt=this.matrix,$s(D,this.width),wv(D,this.height),_e=this.outputDestination};var wp=function(C,M,te,ce,ge){ht.push(new dd),_t=D=0,Ae=[],tt=C,dr=M,Pt=ge,dp([te,ce])};for(var hd in f.beginFormObject=function(C,M,te,ce,ge){return wp(C,M,te,ce,ge),this}
vendor: 4,828 bytes, line 342
342,f.endFormObject=function(C){return function(M){if(Ke[M])ht.pop().restore();else{var te=new dd,ce="Xo"+(Object.keys(Ee).length+1).toString(10);te.id=ce,Ke[M]=ce,Ee[ce]=te,Xt.publish("addFormObject",te),ht.pop().restore()}}(C),this},f.doFormObject=function(C,M){var te=Ee[Ke[C]];return z("q"),z(M.toString()+" cm"),z("/"+te.id+" Do"),z("Q"),this},f.getFormObject=function(C){var M=Ee[Ke[C]];return{x:M.x,y:M.y,width:M.width,height:M.height,matrix:M.matrix}},f.save=function(C,M){return C=C||"generated.pdf",(M=M||{}).returnPromise=M.returnPromise||!1,M.returnPromise===!1?(qc(ad(Xa()),C),typeof qc.unload=="function"&&Rt.setTimeout&&setTimeout(qc.unload,911),this):new Promise(function(te,ce){try{var ge=qc(ad(Xa()),C);typeof qc.unload=="function"&&Rt.setTimeout&&setTimeout(qc.unload,911),te(ge)}catch(Ce){ce(Ce.message)}})},Ct.API)Ct.API.hasOwnProperty(hd)&&(hd==="events"&&Ct.API.events.length?function(C,M){var te,ce,ge;for(ge=M.length-1;ge!==-1;ge--)te=M[ge][0],ce=M[ge][1],C.subscribe.apply(C,[te].concat(typeof ce=="function"?[ce]:ce))}(Xt,Ct.API.events):f[hd]=Ct.API[hd]);function vv(C){return We[C].mediaBox.topRightX-We[C].mediaBox.bottomLeftX}function $s(C,M){We[C].mediaBox.topRightX=M+We[C].mediaBox.bottomLeftX}function Hs(C){return We[C].mediaBox.topRightY-We[C].mediaBox.bottomLeftY}function wv(C,M){We[C].mediaBox.topRightY=M+We[C].mediaBox.bottomLeftY}var bv=f.getPageWidth=function(C){return vv(C=C||D)/vt},xv=f.setPageWidth=function(C,M){$s(C,M*vt)},Sc=f.getPageHeight=function(C){return Hs(C=C||D)/vt},Bv=f.setPageHeight=function(C,M){wv(C,M*vt)};return f.internal={pdfEscape:Vo,getStyle:mv,getFont:eB,getFontSize:me,getCharSpace:AB,getTextColor:lB,getLineHeight:nB,getLineHeightFactor:oB,getLineWidth:tB,write:Se,getHorizontalCoordinate:Qs,getVerticalCoordinate:Ms,getCoordinateString:aB,getVerticalCoordinateString:sB,collections:{},newObject:at,newAdditionalObject:gt,newObjectDeferred:Ot,newObjectDeferredBegin:Zt,getFilters:rn,putStream:An,events:Xt,scaleFactor:vt,pageSize:{getWidth:function(){return bv(D)},setWidth:function(C){xv(D,C)},getHeight:function(){return Sc(D)},setHeight:function(C){Bv(D,C)}},encryptionOptions:u,encryption:oi,getEncryptor:function(C){return u!==null?oi.encryptor(C,0):function(M){return M}},output:sd,getNumberOfPages:hv,get pages(){return Ae},out:z,f2:I,f3:T,getPageInfo:gv,getPageInfoByObjId:G2,getCurrentPageInfo:Y2,getPDFVersion:p,Point:_c,Rectangle:vp,Matrix:Pe,hasHotfix:Ds},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return bv(D)},set:function(C){xv(D,C)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return Sc(D)},set:function(C){Bv(D,C)},enumerable:!0,configurable:!0}),(function(C){for(var M=0,te=De.length;M<te;M++){var ce=cv.call(this,C[M][0],C[M][1],C[M][2],De[M][3],!0);d===!1&&(h[ce]=!0);var ge=C[M][0].split("-");Av({id:ce,fontName:ge[0],fontStyle:ge[1]||""})}Xt.publish("addFonts",{fonts:Ft,dictionary:Be})}).call(f,De),Ye="F1",uv(i,r),Xt.publish("initialized"),f}eh.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},eh.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},eh.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},eh.prototype.processOwnerPassword=function(e,t){return s5(a5(t).substr(0,5),e)},eh.prototype.encryptor=function(e,t){var r=a5(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return s5(r,n)}},ib.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||Sr(e)!==Sr(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return n===0},Ct.API={events:[]},Ct.version="4.2.1";var vn=Ct.API,SF=1,zu=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Dd=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Du=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var r=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(r.length===1?"0"+r:r)})},$t=function(e){return e.toFixed(2)},cA=function(e){return e.toFixed(5)};vn.__acroform__={};var go=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},uP=function(e){return e*SF},ss=function(e){var t=new U7,r=ft.internal.getHeight(e)||0,n=ft.internal.getWidth(e)||0;return t.BBox=[0,0,Number($t(n)),Number($t(r))],t},dpe=vn.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to 
342jsPDF.API.__acroform__.setBit");return e|1<<t},hpe=vn.__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)},fpe=vn.__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},Fn=vn.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return fpe(e,t-1)},Nn=vn.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return dpe(e,t-1)},Tn=vn.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return hpe(e,t-1)},ppe=vn.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,i=e[0],o=e[1],a=e[2],s=e[3],l={};return l.lowerLeft_X=r(i)||0,l.lowerLeft_Y=n(o+s)||0,l.upperRight_X=r(i+a)||0,l.upperRight_Y=n(o)||0,[Number($t(l.lowerLeft_X)),Number($t(l.lowerLeft_Y)),Number($t(l.upperRight_X)),Number($t(l.upperRight_Y))]},gpe=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=l5(e,r),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+" "+$t(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var o=ss(e);return o.scope=e.scope,o.stream=t.join(`
343`),o}},l5=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={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(I){return I.split(`
344`)}):i.map(function(I){return[I]});var o=r,a=ft.internal.getHeight(e)||0;a=a<0?-a:a;var s=ft.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(I,T,U){if(I+1<i.length){var R=T+" "+i[I+1][0];return q0(R,e,U).width<=s-4}return!1};o++;e:for(;o>0;){t="",o--;var A,u,d=q0("3",e,o).height,h=e.multiline?a-o:(a-d)/2,f=h+=2,g=0,p=0,v=0;if(o<=0){t=`(...) Tj
345`,t+="% Width of Text: "+q0(t,e,o=12).width+", FieldWidth:"+s+`
346`;break}for(var m="",w=0,b=0;b<i.length;b++)if(i.hasOwnProperty(b)){var E=!1;if(i[b].length!==1&&v!==i[b].length-1){if((d+2)*(w+2)+2>a)continue e;m+=i[b][v],E=!0,p=b,b--}else{m=(m+=i[b][v]+" ").substr(m.length-1)==" "?m.substr(0,m.length-1):m;var B=parseInt(b),_=l(B,m,o),F=b>=i.length-1;if(_&&!F){m+=" ",v=0;continue}if(_||F){if(F)p=B;else if(e.multiline&&(d+2)*(w+2)+2>a)continue e}else{if(!e.multiline||(d+2)*(w+2)+2>a)continue e;p=B}}for(var O="",k=g;k<=p;k++){var j=i[k];if(e.multiline){if(k===p){O+=j[v]+" ",v=(v+1)%j.length;continue}if(k===g){O+=j[j.length-1]+" ";continue}}O+=j[0]+" "}switch(O=O.substr(O.length-1)==" "?O.substr(0,O.length-1):O,u=q0(O,e,o).width,e.textAlign){case"right":A=s-u-2;break;case"center":A=(s-u)/2;break;default:A=2}t+=$t(A)+" "+$t(f)+` Td
347`,t+="("+zu(O)+`) Tj
348`,t+=-$t(A)+` 0 Td
349`,f=-(o+2),u=0,g=E?p:p+1,w++,m=""}break}return n.text=t,n.fontSize=o,n},q0=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},mpe={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ype=function(e,t){var r={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(n){return n.type===r.type&&n.object===r.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},vpe=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(za.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(mpe)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");SF=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new R7,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var o=n[i];o.objId=void 0,o.hasAnnotation&&ype(o,r)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(r){(function(n,i){var o=!n;for(var a in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(a)){var s=n[a],l=[],A=s.Rect;if(s.Rect&&(s.Rect=ppe(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=ft.createDefaultAppearanceStream(s),Sr(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=A,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=gpe(s);l.push({key:"AP",value:"<</N "+u+">>"}),i.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var d="";for(var h in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(h)){var f=s.appearanceStreamContent[h];if(d+="/"+h+" ",d+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var a in f)if(f.hasOwnProperty(a)){var g=f[a];typeof g=="function"&&(g=g.call(i,s)),d+="/"+a+" "+g+" ",i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g)}}else typeof(g=f)=="function"&&(g=g.call(i,s)),d+="/"+a+" "+g,i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g);d+=">>"}l.push({key:"AP",value:`<<
350`+d+">>
350"})}i.internal.putStream({additionalKeyValues:l,objectId:s.objId}),i.internal.out("endobj")}o&&function(p,v){for(var m in p)if(p.hasOwnProperty(m)){var w=m,b=p[m];v.internal.newObjectDeferredBegin(b.objId,!0),Sr(b)==="object"&&typeof b.putStream=="function"&&b.putStream(),delete p[w]}}(i.internal.acroformPlugin.xForms,i)})(r,e)}),e.internal.acroformPlugin.isInitialized=!0}},L7=vn.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(a){return a};if(Array.isArray(e)){for(var i="[",o=0;o<e.length;o++)switch(o!==0&&(i+=" "),Sr(e[o])){case"boolean":case"number":case"object":i+=e[o].toString();break;case"string":e[o].substr(0,1)==="/"?i+="/"+Du(e[o].substr(1)):(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),i+="("+zu(n(e[o].toString()))+")")}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},a_=function(e,t,r){var n=function(i){return i};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),"("+zu(n(e))+")"},ws=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})};ws.prototype.toString=function(){return this.objId+" 0 R"},ws.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},ws.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],i=this[n];i&&(Array.isArray(i)?e.push({key:n,value:L7(i,this.objId,this.scope)}):i instanceof ws?(i.scope=this.scope,e.push({key:n,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:n,value:i}))}return e};var U7=function(){ws.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(r){t=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){e=r.trim()},get:function(){return e||null}})};go(U7,ws);var R7=function(){ws.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 r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+zu(r(e))+")"}},set:function(r){e=r}})};go(R7,ws);var za=function e(){ws.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(m){if(isNaN(m))throw new Error('Invalid value "'+m+'" for attribute F supplied.');t=m}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Fn(t,3)},set:function(m){m?this.F=Nn(t,3):this.F=Tn(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(m){if(isNaN(m))throw new Error('Invalid value "'+m+'" for attribute Ff supplied.');r=m}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(m){n=m!==void 0?m:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(m){n[0]=m}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(m){n[1]=m}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(m){n[2]=m}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(m){n[3]=m}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(m){switch(m){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=m;break;default:throw new Error('Invalid value "'+m+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof ob)return;o="FieldObject"+e.FieldNum++}var m=function(w){return w};return this.scope&&(m=this.scope.internal.getEncryptor(this.objId)),"("+zu(m(o))+")"},set:function(m){o=m.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o}
vendor: 17,516 bytes, lines 350-361
350,set:function(m){o=m}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(m){a=m}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(m){s=m}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(m){l=m}});var A=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return A===void 0?50/SF:A},set:function(m){A=m}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(m){u=m}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof ob||this instanceof Cu))return a_(d,this.objId,this.scope)},set:function(m){m=m.toString(),d=m}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ri==0?a_(h,this.objId,this.scope):h},set:function(m){m=m.toString(),h=this instanceof ri==0?m.substr(0,1)==="("?Dd(m.substr(1,m.length-2)):Dd(m):m}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ri==1?Dd(h.substr(1,h.length-1)):h},set:function(m){m=m.toString(),h=this instanceof ri==1?"/"+Du(m):m}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(m){this.V=m}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ri==0?a_(f,this.objId,this.scope):f},set:function(m){m=m.toString(),f=this instanceof ri==0?m.substr(0,1)==="("?Dd(m.substr(1,m.length-2)):Dd(m):m}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ri==1?Dd(f.substr(1,f.length-1)):f},set:function(m){m=m.toString(),f=this instanceof ri==1?"/"+Du(m):m}}),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 g,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(m){m=!!m,p=m}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(g)return g},set:function(m){g=m}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,1)},set:function(m){m?this.Ff=Nn(this.Ff,1):this.Ff=Tn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,2)},set:function(m){m?this.Ff=Nn(this.Ff,2):this.Ff=Tn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,3)},set:function(m){m?this.Ff=Nn(this.Ff,3):this.Ff=Tn(this.Ff,3)}});var v=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(v!==null)return v},set:function(m){if([0,1,2].indexOf(m)===-1)throw new Error('Invalid value "'+m+'" for attribute Q supplied.');v=m}}),Object.defineProperty(this,"textAlign",{get:function(){var m;switch(v){case 0:default:m="left";break;case 1:m="center";break;case 2:m="right"}return m},configurable:!0,enumerable:!0,set:function(m){switch(m){case"right":case 2:v=2;break;case"center":case 1:v=1;break;default:v=0}}})};go(za,ws);var jh=function(){za.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(r){e=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){e=r}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return L7(t,this.objId,this.scope)},set:function(r){var n,i;i=[],typeof(n=r)=="string"&&(i=function(o,a,s){s||(s=1);for(var l,A=[];l=a.exec(o);)A.push(l[s]);return A}(n,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(r){t=r,this.sort&&t.sort()},this.addOption=function(r){r=(r=r||"").toString(),t.push(r),this.sort&&t.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();t.indexOf(r)!==-1&&(t.splice(t.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,18)},set:function(r){r?this.Ff=Nn(this.Ff,18):this.Ff=Tn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Nn(this.Ff,19):this.Ff=Tn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,20)},set:function(r){r?(this.Ff=Nn(this.Ff,20),t.sort()):this.Ff=Tn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,22)},set:function(r){r?this.Ff=Nn(this.Ff,22):this.Ff=Tn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,23)},set:function(r){r?this.Ff=Nn(this.Ff,23):this.Ff=Tn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,27)},set:function(r){r?this.Ff=Nn(this.Ff,27):this.Ff=Tn(this.Ff,27)}}),this.hasAppearanceStream=!1};go(jh,za);var Ph=function(){jh.call(this),this.fontName="helvetica",this.combo=!1};go(Ph,jh);var Lh=function(){Ph.call(this),this.combo=!0};go(Lh,Ph);var Gw=function(){Lh.call(this),this.edit=!0};go(Gw,Lh);var ri=function(){za.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,15)},set:function(r){r?this.Ff=Nn(this.Ff,15):this.Ff=Tn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,16)},set:function(r){r?this.Ff=Nn(this.Ff,16):this.Ff=Tn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,17)},set:function(r){r?this.Ff=Nn(this.Ff,17):this.Ff=Tn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,26)},set:function(r){r?this.Ff=Nn(this.Ff,26):this.Ff=Tn(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(o){return o};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,i=[];for(n in i.push("<<"),t)i.push("/"+n+" ("+zu(r(t[n]))+")");return i.push(">>"),i.join(`
351`)}},set:function(r){Sr(r)==="object"&&(t=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(r){typeof r=="string"&&(t.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){var n=r==null?"":r.toString();n.substr(0,1)==="/"&&(n=n.substr(1)),e="/"+Du(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+Du(r)}})};go(ri,za);var Yw=function(){ri.call(this),this.pushButton=!0};go(Yw,ri);var Uh=function(){ri.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:[]}})};go(Uh,ri);var ob=function(){var e,t;za.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 r,n={};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 o,a=[];for(o in a.push("<<"),n)a.push("/"+o+" ("+zu(i(n[o]))+")");return a.push(">>"),a.join(`
352`)},set:function(i){Sr(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){var o=i==null?"":i.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),r="/"+Du(o)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(i){var o=i==null?"":i.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),r="/"+Du(o)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ft.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};go(ob,za),Uh.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 r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},Uh.prototype.createOption=function(e){var t=new ob;return t.Parent=this,t.optionName=e,this.Kids.push(t),wpe.call(this.scope,t),t};var qw=function(){ri.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ft.CheckBox.createAppearanceStream()};go(qw,ri);var Cu=function(){za.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,13)},set:function(t){t?this.Ff=Nn(this.Ff,13):this.Ff=Tn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,21)},set:function(t){t?this.Ff=Nn(this.Ff,21):this.Ff=Tn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,23)},set:function(t){t?this.Ff=Nn(this.Ff,23):this.Ff=Tn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,24)},set:function(t){t?this.Ff=Nn(this.Ff,24):this.Ff=Tn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,25)},set:function(t){t?this.Ff=Nn(this.Ff,25):this.Ff=Tn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,26)},set:function(t){t?this.Ff=Nn(this.Ff,26):this.Ff=Tn(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}})};go(Cu,za);var Xw=function(){Cu.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Fn(this.Ff,14)},set:function(e){e?this.Ff=Nn(this.Ff,14):this.Ff=Tn(this.Ff,14)}}),this.password=!0};go(Xw,Cu);var ft={CheckBox:{createAppearanceStream:function(){return{N:{On:ft.CheckBox.YesNormal},D:{On:ft.CheckBox.YesPushDown,Off:ft.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=ss(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),o=l5(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+$t(ft.internal.getWidth(e))+" "+$t(ft.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+$t(o.fontSize)+" Tf "+i),r.push("BT"),r.push(o.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(`
353`),t},YesNormal:function(e){var t=ss(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=[],o=ft.internal.getHeight(e),a=ft.internal.getWidth(e),s=l5(e,e.caption);return i.push("1 g"),i.push("0 0 "+$t(a)+" "+$t(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+$t(a-1)+" "+$t(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+$t(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
354`),t},OffPushDown:function(e){var t=ss(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+$t(ft.internal.getWidth(e))+" "+$t(ft.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
355`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:ft.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=ft.RadioButton.Circle.YesNormal,t.D[e]=ft.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=ss(e);t.scope=e.scope;var r=[],n=ft.internal.getWidth(e)<=ft.internal.getHeight(e)?ft.internal.getWidth(e)/4:ft.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=ft.internal.Bezier_C,o=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+cA(ft.internal.getWidth(e)/2)+" "+cA(ft.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
356`),t},YesPushDown:function(e){var t=ss(e);t.scope=e.scope;var r=[],n=ft.internal.getWidth(e)<=ft.internal.getHeight(e)?ft.internal.getWidth(e)/4:ft.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),o=Number((i*ft.internal.Bezier_C).toFixed(5)),a=Number((n*ft.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+cA(ft.internal.getWidth(e)/2)+" "+cA(ft.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),r.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),r.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),r.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+cA(ft.internal.getWidth(e)/2)+" "+cA(ft.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
357`),t},OffPushDown:function(e){var t=ss(e);t.scope=e.scope;var r=[],n=ft.internal.getWidth(e)<=ft.internal.getHeight(e)?ft.internal.getWidth(e)/4:ft.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),o=Number((i*ft.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+cA(ft.internal.getWidth(e)/2)+" "+cA(ft.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),r.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),r.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),r.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
358`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:ft.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=ft.RadioButton.Cross.YesNormal,t.D[e]=ft.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=ss(e);t.scope=e.scope;var r=[],n=ft.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+$t(ft.internal.getWidth(e)-2)+" "+$t(ft.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push($t(n.x1.x)+" "+$t(n.x1.y)+" m"),r.push($t(n.x2.x)+" "+$t(n.x2.y)+" l"),r.push($t(n.x4.x)+" "+$t(n.x4.y)+" m"),r.push($t(n.x3.x)+" "+$t(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
359`),t},YesPushDown:function(e){var t=ss(e);t.scope=e.scope;var r=ft.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+$t(ft.internal.getWidth(e))+" "+$t(ft.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+$t(ft.internal.getWidth(e)-2)+" "+$t(ft.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push($t(r.x1.x)+" "+$t(r.x1.y)+" m"),n.push($t(r.x2.x)+" "+$t(r.x2.y)+" l"),n.push($t(r.x4.x)+" "+$t(r.x4.y)+" m"),n.push($t(r.x3.x)+" "+$t(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
360`),t},OffPushDown:function(e){var t=ss(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+$t(ft.internal.getWidth(e))+" "+$t(ft.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
361`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};ft.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=ft.internal.getWidth(e),r=ft.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},ft.internal.getWidth=function(e){var t=0;return Sr(e)==="object"&&(t=uP(e.Rect[2])),t},ft.internal.getHeight=function(e){var t=0;return Sr(e)==="object"&&(t=uP(e.Rect[3])),t};var wpe=vn.addField=function(e){if(vpe(this,e),!(e instanceof za))throw new Error("Invalid argument passed to 
361jsPDF.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};vn.AcroFormChoiceField=jh,vn.AcroFormListBox=Ph,vn.AcroFormComboBox=Lh,vn.AcroFormEditBox=Gw,vn.AcroFormButton=ri,vn.AcroFormPushButton=Yw,vn.AcroFormRadioButton=Uh,vn.AcroFormCheckBox=qw,vn.AcroFormTextField=Cu,vn.AcroFormPasswordField=Xw,vn.AcroFormAppearance=ft,vn.AcroForm={ChoiceField:jh,ListBox:Ph,ComboBox:Lh,EditBox:Gw,Button:ri,PushButton:Yw,RadioButton:Uh,CheckBox:qw,TextField:Cu,PasswordField:Xw,Appearance:ft},Ct.AcroForm={ChoiceField:jh,ListBox:Ph,ComboBox:Lh,EditBox:Gw,Button:ri,PushButton:Yw,RadioButton:Uh,CheckBox:qw,TextField:Cu,PasswordField:Xw,Appearance:ft};function D7(e){return e.reduce(function(t,r,n){return t[r]=n,t},{})}(function(e){var t="addImage_";e.__addimage__={};var r="UNKNOWN",n={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(I,T){var U,R,G,K,V,Q=r;if((T=T||r)==="RGBA"||I.data!==void 0&&I.data instanceof Uint8ClampedArray&&"height"in I&&"width"in I)return"RGBA";if(_(I))for(V in n)for(G=n[V],U=0;U<G.length;U+=1){for(K=!0,R=0;R<G[U].length;R+=1)if(G[U][R]!==void 0&&G[U][R]!==I[R]){K=!1;break}if(K===!0){Q=V;break}}else for(V in n)for(G=n[V],U=0;U<G.length;U+=1){for(K=!0,R=0;R<G[U].length;R+=1)if(G[U][R]!==void 0&&G[U][R]!==I.charCodeAt(R)){K=!1;break}if(K===!0){Q=V;break}}return Q===r&&T!==r&&(Q=T),Q},o=function I(T){for(var U=this.internal.write,R=this.internal.putStream,G=(0,this.internal.getFilters)();G.indexOf("FlateEncode")!==-1;)G.splice(G.indexOf("FlateEncode"),1);T.objectId=this.internal.newObject();var K=[];if(K.push({key:"Type",value:"/XObject"}),K.push({key:"Subtype",value:"/Image"}),K.push({key:"Width",value:T.width}),K.push({key:"Height",value:T.height}),T.colorSpace===m.INDEXED?K.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(T.palette.length/3-1)+" "+("sMask"in T&&T.sMask!==void 0?T.objectId+2:T.objectId+1)+" 0 R]"}):(K.push({key:"ColorSpace",value:"/"+T.colorSpace}),T.colorSpace===m.DEVICE_CMYK&&K.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),K.push({key:"BitsPerComponent",value:T.bitsPerComponent}),"decodeParameters"in T&&T.decodeParameters!==void 0&&K.push({key:"DecodeParms",value:"<<"+T.decodeParameters+">>"}),"transparency"in T&&Array.isArray(T.transparency)&&T.transparency.length>0){for(var V="",Q=0,H=T.transparency.length;Q<H;Q++)V+=T.transparency[Q]+" "+T.transparency[Q]+" ";K.push({key:"Mask",value:"["+V+"]"})}T.sMask!==void 0&&K.push({key:"SMask",value:T.objectId+1+" 0 R"});var q=T.filter!==void 0?["/"+T.filter]:void 0;if(R({data:T.data,additionalKeyValues:K,alreadyAppliedFilters:q,objectId:T.objectId}),U("endobj"),"sMask"in T&&T.sMask!==void 0){var re,P=(re=T.sMaskBitsPerComponent)!==null&&re!==void 0?re:T.bitsPerComponent,D={width:T.width,height:T.height,colorSpace:"DeviceGray",bitsPerComponent:P,data:T.sMask};"filter"in T&&(D.decodeParameters="/Predictor ".concat(T.predictor," /Colors 1 /BitsPerComponent ").concat(P," /Columns ").concat(T.width),D.filter=T.filter),I.call(this,D)}if(T.colorSpace===m.INDEXED){var X=this.internal.newObject();R({data:O(new Uint8Array(T.palette)),objectId:X}
vendor: 31,937 bytes, lines 361-385
361),U("endobj")}},a=function(){var I=this.internal.collections[t+"images"];for(var T in I)o.call(this,I[T])},s=function(){var I,T=this.internal.collections[t+"images"],U=this.internal.write;for(var R in T)U("/I"+(I=T[R]).index,I.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s))},A=function(){var I=this.internal.collections[t+"images"];return l.call(this),I},u=function(){return Object.keys(this.internal.collections[t+"images"]).length},d=function(I){return typeof e["process"+I.toUpperCase()]=="function"},h=function(I){return Sr(I)==="object"&&I.nodeType===1},f=function(I,T){if(I.nodeName==="IMG"&&I.hasAttribute("src")){var U=""+I.getAttribute("src");if(U.indexOf("data:image/")===0)return Ww(unescape(U).split("base64,").pop());var R=e.loadFile(U,!0);if(R!==void 0)return R}if(I.nodeName==="CANVAS"){if(I.width===0||I.height===0)throw new Error("Given canvas must have data. Canvas width: "+I.width+", height: "+I.height);var G;switch(T){case"PNG":G="image/png";break;case"WEBP":G="image/webp";break;default:G="image/jpeg"}return Ww(I.toDataURL(G,1).split("base64,").pop())}},g=function(I){var T=this.internal.collections[t+"images"];if(T){for(var U in T)if(I===T[U].alias)return T[U]}},p=function(I,T,U){return I||T||(I=-96,T=-96),I<0&&(I=-1*U.width*72/I/this.internal.scaleFactor),T<0&&(T=-1*U.height*72/T/this.internal.scaleFactor),I===0&&(I=T*U.width/U.height),T===0&&(T=I*U.height/U.width),[I,T]},v=function(I,T,U,R,G,K){var V=p.call(this,U,R,G),Q=this.internal.getCoordinateString,H=this.internal.getVerticalCoordinateString,q=A.call(this);if(U=V[0],R=V[1],q[G.index]=G,K){K*=Math.PI/180;var re=Math.cos(K),P=Math.sin(K),D=function(Z){return Z.toFixed(4)},X=[D(re),D(P),D(-1*P),D(re),0,0,"cm"]}this.internal.write("q"),K?(this.internal.write([1,"0","0",1,Q(I),H(T+R),"cm"].join(" ")),this.internal.write(X.join(" ")),this.internal.write([Q(U),"0","0",Q(R),"0","0","cm"].join(" "))):this.internal.write([Q(U),"0","0",Q(R),Q(I),H(T+R),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+G.index+" Do"),this.internal.write("Q")},m=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 w=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},b=e.__addimage__.sHashCode=function(I){var T,U,R=0;if(typeof I=="string")for(U=I.length,T=0;T<U;T++)R=(R<<5)-R+I.charCodeAt(T),R|=0;else if(_(I))for(U=I.byteLength/2,T=0;T<U;T++)R=(R<<5)-R+I[T],R|=0;return R},E=e.__addimage__.validateStringAsBase64=function(I){(I=I||"").toString().trim();var T=!0;return I.length===0&&(T=!1),I.length%4!=0&&(T=!1),/^[A-Za-z0-9+/]+$/.test(I.substr(0,I.length-2))===!1&&(T=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(I.substr(-2))===!1&&(T=!1),T},B=e.__addimage__.extractImageFromDataUrl=function(I){if(I==null||!(I=I.trim()).startsWith("data:"))return null;var T=I.indexOf(",");return T<0?null:I.substring(0,T).trim().endsWith("base64")?I.substring(T+1):null};e.__addimage__.isArrayBuffer=function(I){return I instanceof ArrayBuffer};var _=e.__addimage__.isArrayBufferView=function(I){return I instanceof Int8Array||I instanceof Uint8Array||I instanceof Uint8ClampedArray||I instanceof Int16Array||I instanceof Uint16Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Float32Array||I instanceof Float64Array},F=e.__addimage__.binaryStringToUint8Array=function(I){for(var T=I.length,U=new Uint8Array(T),R=0;R<T;R++)U[R]=I.charCodeAt(R);return U},O=e.__addimage__.arrayBufferToBinaryString=function(I){for(var T="",U=_(I)?I:new Uint8Array(I),R=0;R<U.length;R+=8192)T+=String.fromCharCode.apply(null,U.subarray(R,R+8192));return T};e.addImage=function(){var I,T,U,R,G,K,V,Q,H;if(typeof arguments[1]=="number"?(T=r,U=arguments[1],R=arguments[2],G=arguments[3],K=arguments[4],V=arguments[5],Q=arguments[6],H=arguments[7]):(T=arguments[1],U=arguments[2],R=arguments[3],G=arguments[4],K=arguments[5],V=arguments[6],Q=arguments[7],H=arguments[8]),Sr(I=arguments[0])==="object"&&!h(I)&&"imageData"in I){var q=I;I=q.imageData,T=q.format||T||r,U=q.x||U||0,R=q.y||R||0,G=q.w||q.width||G,K=q.h||q.height||K,V=q.alias||V,Q=q.compression||Q,H=q.rotation||q.angle||H}var re=this.internal.getFilters();if(Q===void 0&&re.indexOf("FlateEncode")!==-1&&(Q="SLOW"),isNaN(U)||isNaN(R))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var P=k.call(this,I,T,V,Q);return v.call(this,U,R,G,K,P,H),this};var k=function(I,T,U,R){var G,K,V;if(typeof I=="string"&&i(I)===r){I=unescape(I);var Q=j(I,!1);(Q!==""||(Q=e.loadFile(I,!0))!==void 0)&&(I=Q)}if(h(I)&&(I=f(I,T)),T=i(I,T),!d(T))throw new Error("addImage does not support files of type '"+T+"', please ensure that a plugin for '"+T+"' support is added.");if(((V=U)==null||V.length===0)&&(U=function(H){return typeof H=="string"||_(H)?b(H):_(H.data)?b(H.data):null}(I)),(G=g.call(this,U))||(I instanceof Uint8Array||T==="RGBA"||(K=I,I=F(I)),G=this["process"+T.toUpperCase()](I,u.call(this),U,function(H){return H&&typeof H=="string"&&(H=H.toUpperCase()),H in e.image_compression?H:w.NONE}(R),K)),!G)throw new Error("An unknown error occurred whilst processing the image.");return G},j=e.__addimage__.convertBase64ToBinaryString=function(I,T){T=typeof T!="boolean"||T;var U,R="";if(typeof I=="string"){var G;U=(G=B(I))!==null&&G!==void 0?G:I;try{R=Ww(U)}catch(K){if(T)throw E(U)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+K.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return R};e.getImageProperties=function(I){var T,U,R="";if(h(I)&&(I=f(I)),typeof I=="string"&&i(I)===r&&((R=j(I,!1))===""&&(R=e.loadFile(I)||""),I=R),U=i(I),!d(U))throw new Error("addImage does not support files of type '"+U+"', please ensure that a plugin for '"+U+"' support is added.");if(I instanceof Uint8Array||(I=F(I)),!(T=this["process"+U.toUpperCase()](I)))throw new Error("An unknown error occurred whilst processing the image");return T.fileType=U,T}})(Ct.API),function(e){var t=function(r){if(r!==void 0&&r!="")return!0};Ct.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,i,o,a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(r.objId),A=r.pageContext.annotations,u=!1,d=0;d<A.length&&!u;d++)switch((n=A[d]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var h=0;h<A.length;h++){n=A[h];var f=this.internal.pdfEscape,g=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),v=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(p.objId),w=n.title||"Note";o="<</Type /Annot /Subtype /Text "+(i="/Rect ["+a(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+a(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+f(m(n.contents))+")",o+=" /Popup "+v.objId+" 0 R",o+=" /P "+l.objId+" 0 R",o+=" /T ("+f(m(w))+") >>",p.content=o;var b=p.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+a(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+a(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+b,n.open&&(o+=" /Open true"),o+=" >>",v.content=o,this.internal.write(p.objId,"0 R",v.objId,"0 R");break;case"freetext":i="/Rect ["+a(n.bounds.x)+" "+s(n.bounds.y)+" "+a(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var E="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(n.color||"#000000");o="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+f(g(n.contents))+")",o+=" /DS("+f(g(E))+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(n.options.name){var B=this.annotations._nameMap[n.options.name];n.options.pageNumber=B.page,n.options.top=B.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",o="",n.options.url)o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+f(g(n.options.url))+") >>";else if(n.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,o+=" /FitV "+n.options.left+"]";break;default:var _=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),o+=" /XYZ "+n.options.left+" "+_+" "+n.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},e.link=function(r,n,i,o,a){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,A=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(r),y:A(n),w:l(r+i),h:A(n+o)},options:a,type:"link"})},e.textWithLink=function(r,n,i,o){var a,s,l=this.getTextWidth(r),A=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){s=o.maxWidth;var u=this.splitTextToSize(r,s).length;a=Math.ceil(A*u)}else s=l,a=A;return this.text(r,n,i,o),i+=.2*A,o.align==="center"&&(n-=l/2),o.align==="right"&&(n-=l),this.link(n,i-A,s,a,o),l},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}}(Ct.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]},r={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}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(p){return t[p.charCodeAt(0)]!==void 0},a=e.__arabicParser__.isArabicLetter=function(p){return typeof p=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(p)},s=e.__arabicParser__.isArabicEndLetter=function(p){return a(p)&&o(p)&&t[p.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(p){return a(p)&&i.indexOf(p.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(p){return a(p)&&o(p)&&t[p.charCodeAt(0)].length>=1};var A=e.__arabicParser__.arabicLetterHasFinalForm=function(p){return a(p)&&o(p)&&t[p.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(p){return a(p)&&o(p)&&t[p.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(p){return a(p)&&o(p)&&t[p.charCodeAt(0)].length==4},d=e.__arabicParser__.resolveLigatures=function(p){var v=0,m=r,w="",b=0;for(v=0;v<p.length;v+=1)m[p.charCodeAt(v)]!==void 0?(b++,typeof(m=m[p.charCodeAt(v)])=="number"&&(w+=String.fromCharCode(m),m=r,b=0),v===p.length-1&&(m=r,w+=p.charAt(v-(b-1)),v-=b-1,b=0)):(m=r,w+=p.charAt(v-b),v-=b,b=0);return w};e.__arabicParser__.isArabicDiacritic=function(p){return p!==void 0&&n[p.charCodeAt(0)]!==void 0};var h=e.__arabicParser__.getCorrectForm=function(p,v,m){return a(p)?o(p)===!1?-1:!A(p)||!a(v)&&!a(m)||!a(m)&&s(v)||s(p)&&!a(v)||s(p)&&l(v)||s(p)&&s(v)?0:u(p)&&a(v)&&!s(v)&&a(m)&&A(m)?3:s(p)||!a(m)?1:2:-1},f=function(p){var v=0,m=0,w=0,b="",E="",B="",_=(p=p||"").split("\\s+"),F=[];for(v=0;v<_.length;v+=1){for(F.push(""),m=0;m<_[v].length;m+=1)b=_[v][m],E=_[v][m-1],B=_[v][m+1],a(b)?(w=h(b,E,B),F[v]+=w!==-1?String.fromCharCode(t[b.charCodeAt(0)][w]):b):F[v]+=b;F[v]=d(F[v])}return F.join(" ")},g=e.__arabicParser__.processArabic=e.processArabic=function(){var p,v=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,m=[];if(Array.isArray(v)){var w=0;for(m=[],w=0;w<v.length;w+=1)Array.isArray(v[w])?m.push([f(v[w][0]),v[w][1],v[w][2]]):m.push([f(v[w])]);p=m}else p=f(v);return typeof arguments[0]=="string"?p:(arguments[0].text=p,arguments[0])};e.events.push(["preProcessText",g])}(Ct.API),Ct.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 r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(s){r=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+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 o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(s){o=s}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(s){a=s}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(r,n){var i;if((r=r||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[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}])}(Ct.API),function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=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 o,this.internal.__cell__.pages=1},o=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(p){l=p}});var A=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return A},set:function(p){A=p}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(p){u=p}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(p){d=p}});var h=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return h},set:function(p){h=p}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(p){f=p}});var g=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return g},set:function(p){g=p}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return n.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,A){n.call(this);var u=(A=A||{}).fontSize||this.getFontSize(),d=A.font||this.getFont(),h=A.scaleFactor||this.internal.scaleFactor,f=0,g=0,p=0,v=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 m=A.maxWidth;m>0?typeof l=="string"?l=this.splitTextToSize(l,m):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(b,E){return b.concat(v.splitTextToSize(E,m))},[])):l=Array.isArray(l)?l:[l];for(var w=0;w<l.length;w++)f<(p=this.getStringUnitWidth(l[w],{font:d})*u)&&(f=p);return f!==0&&(g=l.length),{w:f/=h,h:Math.max((g*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/h,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=e.cell=function(){var l;l=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),n.call(this);var A=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,d=this.internal.__cell__.margins||t,h=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return A.lineNumber!==void 0&&(A.lineNumber===l.lineNumber?(l.x=(A.x||0)+(A.width||0),l.y=A.y||0):A.y+A.height+l.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=d.top,f&&h&&(this.printHeaderRow(l.lineNumber,!0),l.y+=h[0].height)):l.y=A.y+A.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,r===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-u,l.y+u,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+u,{align:"center",baseline:"top",maxWidth:l.width-u-u}):this.text(l.text,l.x+u,l.y+u,{align:"left",baseline:"top",maxWidth:l.width-u-u})),this.internal.__cell__.lastCell=l,this};e.table=function(l,A,u,d,h){if(n.call(this),!u)throw new Error("No data for PDF table.");var f,g,p,v,m=[],w=[],b=[],E={},B={},_=[],F=[],O=(h=h||{}).autoSize||!1,k=h.printHeaders!==!1,j=h.css&&h.css["font-size"]!==void 0?16*h.css["font-size"]:h.fontSize||12,I=h.margins||Object.assign({width:this.getPageWidth()},t),T=typeof h.padding=="number"?h.padding:3,U=h.headerBackgroundColor||"#c8c8c8",R=h.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=j,this.internal.__cell__.padding=T,this.internal.__cell__.headerBackgroundColor=U,this.internal.__cell__.headerTextColor=R,this.setFontSize(j),d==null)w=m=Object.keys(u[0]),b=m.map(function(){return"left"});else if(Array.isArray(d)&&Sr(d[0])==="object")for(m=d.map(function(q){return q.name}),w=d.map(function(q){return q.prompt||q.name||""}),b=d.map(function(q){return q.align||"left"}),f=0;f<d.length;f+=1)B[d[f].name]=.7499990551181103*d[f].width;else Array.isArray(d)&&typeof d[0]=="string"&&(w=m=d,b=m.map(function(){return"left"}));if(O||Array.isArray(d)&&typeof d[0]=="string")for(f=0;f<m.length;f+=1){for(E[v=m[f]]=u.map(function(q){return q[v]}),this.setFont(void 0,"bold"),_.push(this.getTextDimensions(w[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),g=E[v],this.setFont(void 0,"normal"),p=0;p<g.length;p+=1)_.push(this.getTextDimensions(g[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);B[v]=Math.max.apply(null,_)+T+T,_=[]}if(k){var G={};for(f=0;f<m.length;f+=1)G[m[f]]={},G[m[f]].text=w[f],G[m[f]].align=b[f];var K=s.call(this,G,B);F=m.map(function(q){return new o(l,A,B[q],K,G[q].text,void 0,G[q].align)}),this.setTableHeaderRow(F),this.printHeaderRow(1,!1)}var V=d.reduce(function(q,re){return q[re.name]=re.align,q},{});for(f=0;f<u.length;f+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:f,data:u[f]},this);var Q=s.call(this,u[f],B);for(p=0;p<m.length;p+=1){var H=u[f][m[p]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:f,col:p,data:H},this),a.call(this,new o(l,A,B[m[p]],Q,H,f+2,V[m[p]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=A,this};var s=function(l,A){var u=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,h=this.internal.scaleFactor;return Object.keys(l).map(function(f){var g=l[f];return this.splitTextToSize(g.hasOwnProperty("text")?g.text:g,A[f]-u-u)},this).map(function(f){return this.getLineHeightFactor()*f.length*d/h+u+u},this).reduce(function(f,g){return Math.max(f,g)},0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,A){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var d=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(d[0],d[1],d[2],d[3],void 0,-1)}this.setFont(void 0,"bold");for(var h=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){u=this.internal.__cell__.tableHeaderRow[f].clone(),A&&(u.y=this.internal.__cell__.margins.top||0,h.push(u)),u.lineNumber=l;var g=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,u),this.setTextColor(g)}h.length>0&&this.setTableHeaderRow(h),this.setFont(void 0,"normal"),r=!1}}(Ct.API);var Q7={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},M7=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],A5=D7(M7),$7=[100,200,300,400,500,600,700,800,900],bpe=D7($7);function s_(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=function(o){return Q7[o=o||"normal"]?o:"normal"}(e.style),n=function(o){return o?typeof o=="number"?o>=100&&o<=900&&o%100==0?o:400:/^\d00$/.test(o)?parseInt(o):o==="bold"?700:400:400}(e.weight),i=function(o){return typeof A5[o=o||"normal"]=="number"?o:"normal"}(e.stretch);return{family:t,style:r,weight:n,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,r,n].join(" ")}}}function dP(e,t,r,n){var i;for(i=r;i>=0&&i<t.length;i+=n)if(e[t[i]])return e[t[i]];for(i=r;i>=0&&i<t.length;i-=n)if(e[t[i]])return e[t[i]]}var xpe={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},hP={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function fP(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function pP(e){return e.trimLeft()}function Bpe(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function Epe(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 Qd,X0,gP,mP,yP,l_=["times"];function vP(e,t,r,n,i){var o=4,a=bP;switch(i){case Ct.API.image_compression.FAST:o=1,a=wP;break;case Ct.API.image_compression.MEDIUM:o=6,a=xP;break;case Ct.API.image_compression.SLOW:o=9,a=BP}e=function(l,A,u,d){for(var h,f=l.length/A,g=new Uint8Array(l.length+f),p=[_pe,wP,bP,xP,BP],v=0;v<f;v+=1){var m=v*A,w=l.subarray(m,m+A);if(d)g.set(d(w,u,h),m+v);else{for(var b=p.length,E=[],B=0;B<b;B+=1)E[B]=p[B](w,u,h);var _=Cpe(E.concat());g.set(E[_],m+v)}h=w}return g}(e,t,Math.ceil(r*n/8),a);var s=qC(e,{level:o});return Ct.API.__addimage__.arrayBufferToBinaryString(s)}function _pe(e){var t=Array.apply([],e);return t.unshift(0),t}function wP(e,t){var r=e.length,n=[];n[0]=1;for(var i=0;i<r;i+=1){var o=e[i-t]||0;n[i+1]=e[i]-o+256&255}return n}function bP(e,t,r){var n=e.length,i=[];i[0]=2;for(var o=0;o<n;o+=1){var a=r&&r[o]||0;i[o+1]=e[o]-a+256&255}return i}function xP(e,t,r){var n=e.length,i=[];i[0]=3;for(var o=0;o<n;o+=1){var a=e[o-t]||0,s=r&&r[o]||0;i[o+1]=e[o]+256-(a+s>>>1)&255}return i}function BP(e,t,r){var n=e.length,i=[];i[0]=4;for(var o=0;o<n;o+=1){var a=Spe(e[o-t]||0,r&&r[o]||0,r&&r[o-t]||0);i[o+1]=e[o]-a+256&255}return i}function Spe(e,t,r){if(e===t&&t===r)return e;var n=Math.abs(t-r),i=Math.abs(e-r),o=Math.abs(e+t-r-r);return n<=i&&n<=o?e:i<=o?t:r}function Cpe(e){var t=e.map(function(r){return r.reduce(function(n,i){return n+Math.abs(i)},0)});return t.indexOf(Math.min.apply(null,t))}function A_(e,t,r){var n=t*r,i=Math.floor(n/8),o=16-(n-8*i+r),a=(1<<r)-1;return H7(e,i)>>o&a}function EP(e,t,r,n){var i=r*n,o=Math.floor(i/8),a=16-(i-8*o+n),s=(1<<n)-1,l=(t&s)<<a;(function(A,u,d){if(u+1<A.byteLength)A.setUint16(u,d,!1);else{var h=d>>8&255;A.setUint8(u,h)}})(e,o,H7(e,o)&~(s<<a)&65535|l)}function H7(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function Ipe(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 r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,i=e[t++],o=i>>7,a=1<<1+(7&i);e[t++],e[t++];var s=null,l=null;o&&(s=t,l=a,t+=3*a);var A=!0,u=[],d=0,h=null,f=0,g=null;for(this.width=r,this.height=n;A&&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,g=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(I===0)break;t+=I}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var p=e[t++];d=e[t++]|e[t++]<<8,h=e[t++],1&p||(h=null),f=p>>2&7,t++;break;case 254:for(;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(I===0)break;t+=I}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var v=e[t++]|e[t++]<<8,m=e[t++]|e[t++]<<8,w=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,E=e[t++],B=E>>6&1,_=1<<1+(7&E),F=s,O=l,k=!1;E>>7&&(k=!0,F=t,O=_,t+=3*_);var j=t;for(t++;;){var I;if(!((I=e[t++])>=0))throw Error("Invalid block size");if(I===0)break;t+=I}u.push({x:v,y:m,width:w,height:b,has_local_palette:k,palette_offset:F,palette_size:O,data_offset:j,data_length:t-j,transparent_index:h,interlaced:!!B,delay:d,disposal:f});break;case 59:A=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return g},this.frameInfo=function(T){if(T<0||T>=u.length)throw new Error("Frame index out of range.");return u[T]},this.decodeAndBlitFrameBGRA=function(T,U){var R=this.frameInfo(T),G=R.width*R.height;if(G>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var K=new Uint8Array(G);_P(e,R.data_offset,K,G);var V=R.palette_offset,Q=R.transparent_index;Q===null&&(Q=256);var H=R.width,q=r-H,re=H,P=4*(R.y*r+R.x),D=4*((R.y+R.height)*r+R.x),X=P,Z=4*q;R.interlaced===!0&&(Z+=4*r*7);for(var ae=8,se=0,pe=K.length;se<pe;++se){var le=K[se];if(re===0&&(re=H,(X+=Z)>=D&&(Z=4*q+4*r*(ae-1),X=P+(H+q)*(ae<<1),ae>>=1)),le===Q)X+=4;else{var he=e[V+3*le],Ae=e[V+3*le+1],ue=e[V+3*le+2];U[X++]=ue,U[X++]=Ae,U[X++]=he,U[X++]=255}--re}},this.decodeAndBlitFrameRGBA=function(T,U){var R=this.frameInfo(T),G=R.width*R.height;if(G>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var K=new Uint8Array(G);_P(e,R.data_offset,K,G);var V=R.palette_offset,Q=R.transparent_index;Q===null&&(Q=256);var H=R.width,q=r-H,re=H,P=4*(R.y*r+R.x),D=4*((R.y+R.height)*r+R.x),X=P,Z=4*q;R.interlaced===!0&&(Z+=4*r*7);for(var ae=8,se=0,pe=K.length;se<pe;++se){var le=K[se];if(re===0&&(re=H,(X+=Z)>=D&&(Z=4*q+4*r*(ae-1),X=P+(H+q)*(ae<<1),ae>>=1)),le===Q)X+=4;else{var he=e[V+3*le],Ae=e[V+3*le+1],ue=e[V+3*le+2];U[X++]=he,U[X++]=Ae,U[X++]=ue,U[X++]=255}--re}}}function _P(e,t,r,n){for(var i=e[t++],o=1<<i,a=o+1,s=a+1,l=i+1,A=(1<<l)-1,u=0,d=0,h=0,f=e[t++],g=new Int32Array(4096),p=null;;){for(;u<16&&f!==0;)d|=e[t++]<<u,u+=8,f===1?f=e[t++]:--f;if(u<l)break;var v=d&A;if(d>>=l,u-=l,v!==o){if(v===a)break;for(var m=v<s?v:p,w=0,b=m;b>o;)b=g[b]>>8,++w;var E=b;if(h+w+(m!==v?1:0)>n)return void Lr.log("Warning, gif stream longer than expected.");r[h++]=E;var B=h+=w;for(m!==v&&(r[h++]=E),b=m;w--;)b=g[b],r[--B]=255&b,b>>=8;p!==null&&s<4096&&(g[s++]=p<<8|E,s>=A+1&&l<12&&(++l,A=A<<1|1)),p=v}else s=a+1,A=(1<<(l=i+1))-1,p=null}return h!==n&&Lr.log("Warning, gif stream shorter than expected."),r}/**
362 * @license
363  Copyright (c) 2008, Adobe Systems Incorporated
364  All rights reserved.
365
366  Redistribution and use in source and binary forms, with or without 
367  modification, are permitted provided that the following conditions are
368  met:
369
370  * Redistributions of source code must retain the above copyright notice, 
371    this list of conditions and the following disclaimer.
372  
373  * Redistributions in binary form must reproduce the above copyright
374    notice, this list of conditions and the following disclaimer in the 
375    documentation and/or other materials provided with the distribution.
376  
377  * Neither the name of Adobe Systems Incorporated nor the names of its 
378    contributors may be used to endorse or promote products derived from 
379    this software without specific prior written permission.
380
381  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
382  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
383  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
384  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
385  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
vendor: 5,822 bytes, lines 386-392
386  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
387  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
388  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
389  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
390  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
391  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
392*/function c_(e){var t,r,n,i,o,a=Math.floor,s=new Array(64),l=new Array(64),A=new Array(64),u=new Array(64),d=new Array(65535),h=new Array(65535),f=new Array(64),g=new Array(64),p=[],v=0,m=7,w=new Array(64),b=new Array(64),E=new Array(64),B=new Array(256),_=new Array(2048),F=[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],k=[0,1,2,3,4,5,6,7,8,9,10,11],j=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[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],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],U=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],G=[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 K(P,D){for(var X=0,Z=0,ae=new Array,se=1;se<=16;se++){for(var pe=1;pe<=P[se];pe++)ae[D[Z]]=[],ae[D[Z]][0]=X,ae[D[Z]][1]=se,Z++,X++;X*=2}return ae}function V(P){for(var D=P[0],X=P[1]-1;X>=0;)D&1<<X&&(v|=1<<m),X--,--m<0&&(v==255?(Q(255),Q(0)):Q(v),m=7,v=0)}function Q(P){p.push(P)}function H(P){Q(P>>8&255),Q(255&P)}function q(P,D,X,Z,ae){for(var se,pe=ae[0],le=ae[240],he=function(xe,ze){var me,Le,Ue,Bt,Et,Ge,Je,dt,Ye,vt,tt=0;for(Ye=0;Ye<8;++Ye){me=xe[tt],Le=xe[tt+1],Ue=xe[tt+2],Bt=xe[tt+3],Et=xe[tt+4],Ge=xe[tt+5],Je=xe[tt+6];var dr=me+(dt=xe[tt+7]),Pt=me-dt,Ft=Le+Je,Be=Le-Je,rt=Ue+Ge,Ve=Ue-Ge,et=Bt+Et,Qe=Bt-Et,He=dr+et,st=dr-et,_t=Ft+rt,We=Ft-rt;xe[tt]=He+_t,xe[tt+4]=He-_t;var Xt=.707106781*(We+st);xe[tt+2]=st+Xt,xe[tt+6]=st-Xt;var Ze=.382683433*((He=Qe+Ve)-(We=Be+Pt)),Ee=.5411961*He+Ze,Ke=1.306562965*We+Ze,ht=.707106781*(_t=Ve+Be),Pe=Pt+ht,ct=Pt-ht;xe[tt+5]=ct+Ee,xe[tt+3]=ct-Ee,xe[tt+1]=Pe+Ke,xe[tt+7]=Pe-Ke,tt+=8}for(tt=0,Ye=0;Ye<8;++Ye){me=xe[tt],Le=xe[tt+8],Ue=xe[tt+16],Bt=xe[tt+24],Et=xe[tt+32],Ge=xe[tt+40],Je=xe[tt+48];var qe=me+(dt=xe[tt+56]),wt=me-dt,St=Le+Je,at=Le-Je,Ot=Ue+Ge,Zt=Ue-Ge,gt=Bt+Et,kt=Bt-Et,Qt=qe+gt,ar=qe-gt,Ht=St+Ot,rn=St-Ot;xe[tt]=Qt+Ht,xe[tt+32]=Qt-Ht;var An=.707106781*(rn+ar);xe[tt+16]=ar+An,xe[tt+48]=ar-An;var mr=.382683433*((Qt=kt+Zt)-(rn=at+wt)),On=.5411961*Qt+mr,kr=1.306562965*rn+mr,Vl=.707106781*(Ht=Zt+at),nd=wt+Vl,id=wt-Vl;xe[tt+40]=id+On,xe[tt+24]=id-On,xe[tt+8]=nd+kr,xe[tt+56]=nd-kr,tt++}for(Ye=0;Ye<64;++Ye)vt=xe[Ye]*ze[Ye],f[Ye]=vt>0?vt+.5|0:vt-.5|0;return f}(P,D),Ae=0;Ae<64;++Ae)g[F[Ae]]=he[Ae];var ue=g[0]-X;X=g[0],ue==0?V(Z[0]):(V(Z[h[se=32767+ue]]),V(d[se]));for(var _e=63;_e>0&&g[_e]==0;)_e--;if(_e==0)return V(pe),X;for(var ve,z=1;z<=_e;){for(var Se=z;g[z]==0&&z<=_e;)++z;var Me=z-Se;if(Me>=16){ve=Me>>4;for(var De=1;De<=ve;++De)V(le);Me&=15}se=32767+g[z],V(ae[(Me<<4)+h[se]]),V(d[se]),z++}return _e!=63&&V(pe),X}function re(P){P=Math.min(Math.max(P,1),100),o!=P&&(function(D){for(var X=[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],Z=0;Z<64;Z++){var ae=a((X[Z]*D+50)/100);ae=Math.min(Math.max(ae,1),255),s[F[Z]]=ae}for(var se=[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],pe=0;pe<64;pe++){var le=a((se[pe]*D+50)/100);le=Math.min(Math.max(le,1),255),l[F[pe]]=le}for(var he=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ae=0,ue=0;ue<8;ue++)for(var _e=0;_e<8;_e++)A[Ae]=1/(s[F[Ae]]*he[ue]*he[_e]*8),u[Ae]=1/(l[F[Ae]]*he[ue]*he[_e]*8),Ae++}(P<50?Math.floor(5e3/P):Math.floor(200-2*P)),o=P)}this.encode=function(P,D){D&&re(D),p=new Array,v=0,m=7,H(65496),H(65504),H(16),Q(74),Q(70),Q(73),Q(70),Q(0),Q(1),Q(1),Q(0),H(1),H(1),Q(0),Q(0),function(){H(65499),H(132),Q(0);for(var Le=0;Le<64;Le++)Q(s[Le]);Q(1);for(var Ue=0;Ue<64;Ue++)Q(l[Ue])}(),function(Le,Ue){H(65472),H(17),Q(8),H(Ue),H(Le),Q(3),Q(1),Q(17),Q(0),Q(2),Q(17),Q(1),Q(3),Q(17),Q(1)}(P.width,P.height),function(){H(65476),H(418),Q(0);for(var Le=0;Le<16;Le++)Q(O[Le+1]);for(var Ue=0;Ue<=11;Ue++)Q(k[Ue]);Q(16);for(var Bt=0;Bt<16;Bt++)Q(j[Bt+1]);for(var Et=0;Et<=161;Et++)Q(I[Et]);Q(1);for(var Ge=0;Ge<16;Ge++)Q(T[Ge+1]);for(var Je=0;Je<=11;Je++)Q(U[Je]);Q(17);for(var dt=0;dt<16;dt++)Q(R[dt+1]);for(var Ye=0;Ye<=161;Ye++)Q(G[Ye])}(),H(65498),H(12),Q(3),Q(1),Q(0),Q(2),Q(17),Q(3),Q(17),Q(0),Q(63),Q(0);var X=0,Z=0,ae=0;
vendor: 25,585 bytes, lines 392-398
392v=0,m=7,this.encode.displayName="_encode_";for(var se,pe,le,he,Ae,ue,_e,ve,z,Se=P.data,Me=P.width,De=P.height,xe=4*Me,ze=0;ze<De;){for(se=0;se<xe;){for(Ae=xe*ze+se,_e=-1,ve=0,z=0;z<64;z++)ue=Ae+(ve=z>>3)*xe+(_e=4*(7&z)),ze+ve>=De&&(ue-=xe*(ze+1+ve-De)),se+_e>=xe&&(ue-=se+_e-xe+4),pe=Se[ue++],le=Se[ue++],he=Se[ue++],w[z]=(_[pe]+_[le+256|0]+_[he+512|0]>>16)-128,b[z]=(_[pe+768|0]+_[le+1024|0]+_[he+1280|0]>>16)-128,E[z]=(_[pe+1280|0]+_[le+1536|0]+_[he+1792|0]>>16)-128;X=q(w,A,X,t,n),Z=q(b,u,Z,r,i),ae=q(E,u,ae,r,i),se+=32}ze+=8}if(m>=0){var me=[];me[1]=m+1,me[0]=(1<<m+1)-1,V(me)}return H(65497),new Uint8Array(p)},e=e||50,function(){for(var P=String.fromCharCode,D=0;D<256;D++)B[D]=P(D)}(),t=K(O,k),r=K(T,U),n=K(j,I),i=K(R,G),function(){for(var P=1,D=2,X=1;X<=15;X++){for(var Z=P;Z<D;Z++)h[32767+Z]=X,d[32767+Z]=[],d[32767+Z][1]=X,d[32767+Z][0]=Z;for(var ae=-(D-1);ae<=-P;ae++)h[32767+ae]=X,d[32767+ae]=[],d[32767+ae][1]=X,d[32767+ae][0]=D-1+ae;P<<=1,D<<=1}}(),function(){for(var P=0;P<256;P++)_[P]=19595*P,_[P+256|0]=38470*P,_[P+512|0]=7471*P+32768,_[P+768|0]=-11059*P,_[P+1024|0]=-21709*P,_[P+1280|0]=32768*P+8421375,_[P+1536|0]=-27439*P,_[P+1792|0]=-5329*P}(),re(e)}/**
393 * @license
394 * Copyright (c) 2017 Aras Abbasi
395 *
396 * Licensed under the MIT License.
397 * http://opensource.org/licenses/mit-license
398 */function _a(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 SP(e){function t(k){if(!k)throw Error("assert :P")}function r(k,j,I){for(var T=0;4>T;T++)if(k[j+T]!=I.charCodeAt(T))return!0;return!1}function n(k,j,I,T,U){for(var R=0;R<U;R++)k[j+R]=I[T+R]}function i(k,j,I,T){for(var U=0;U<T;U++)k[j+U]=I}function o(k){return new Int32Array(k)}function a(k,j){for(var I=[],T=0;T<k;T++)I.push(new j);return I}function s(k,j){var I=[];return function T(U,R,G){for(var K=G[R],V=0;V<K&&(U.push(G.length>R+1?[]:new j),!(G.length<R+1));V++)T(U[V],R+1,G)}(I,0,k),I}var l=function(){var k=this;function j(y,x){for(var N=1<<x-1>>>0;y&N;)N>>>=1;return N?(y&N-1)+N:y}function I(y,x,N,L,$){t(!(L%N));do y[x+(L-=N)]=$;while(0<L)}function T(y,x,N,L,$){if(t(2328>=$),512>=$)var W=o(512);else if((W=o($))==null)return 0;return function(Y,J,ee,ne,de,be){var ie,fe,ye=J,Ie=1<<ee,we=o(16),Fe=o(16);for(t(de!=0),t(ne!=null),t(Y!=null),t(0<ee),fe=0;fe<de;++fe){if(15<ne[fe])return 0;++we[ne[fe]]}if(we[0]==de)return 0;for(Fe[1]=0,ie=1;15>ie;++ie){if(we[ie]>1<<ie)return 0;Fe[ie+1]=Fe[ie]+we[ie]}for(fe=0;fe<de;++fe)ie=ne[fe],0<ne[fe]&&(be[Fe[ie]++]=fe);if(Fe[15]==1)return(ne=new U).g=0,ne.value=be[0],I(Y,ye,1,Ie,ne),Ie;var Ne,Re=-1,je=Ie-1,It=0,ut=1,Gt=1,bt=1<<ee;for(fe=0,ie=1,de=2;ie<=ee;++ie,de<<=1){if(ut+=Gt<<=1,0>(Gt-=we[ie]))return 0;for(;0<we[ie];--we[ie])(ne=new U).g=ie,ne.value=be[fe++],I(Y,ye+It,de,bt,ne),It=j(It,ie)}for(ie=ee+1,de=2;15>=ie;++ie,de<<=1){if(ut+=Gt<<=1,0>(Gt-=we[ie]))return 0;for(;0<we[ie];--we[ie]){if(ne=new U,(It&je)!=Re){for(ye+=bt,Ne=1<<(Re=ie)-ee;15>Re&&!(0>=(Ne-=we[Re]));)++Re,Ne<<=1;Ie+=bt=1<<(Ne=Re-ee),Y[J+(Re=It&je)].g=Ne+ee,Y[J+Re].value=ye-J-Re}ne.g=ie-ee,ne.value=be[fe++],I(Y,ye+(It>>ee),de,bt,ne),It=j(It,ie)}}return ut!=2*Fe[15]-1?0:Ie}(y,x,N,L,$,W)}function U(){this.value=this.g=0}function R(){this.value=this.g=0}function G(){this.G=a(5,U),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(md,R)}function K(y,x,N,L){t(y!=null),t(x!=null),t(2147483648>L),y.Ca=254,y.I=0,y.b=-8,y.Ka=0,y.oa=x,y.pa=N,y.Jd=x,y.Yc=N+L,y.Zc=4<=L?N+L-4+1:N,pe(y)}function V(y,x){for(var N=0;0<x--;)N|=he(y,128)<<x;return N}function Q(y,x){var N=V(y,x);return le(y)?-N:N}function H(y,x,N,L){var $,W=0;for(t(y!=null),t(x!=null),t(4294967288>L),y.Sb=L,y.Ra=0,y.u=0,y.h=0,4<L&&(L=4),$=0;$<L;++$)W+=x[N+$]<<8*$;y.Ra=W,y.bb=L,y.oa=x,y.pa=N}function q(y){for(;8<=y.u&&y.bb<y.Sb;)y.Ra>>>=8,y.Ra+=y.oa[y.pa+y.bb]<<Ri-8>>>0,++y.bb,y.u-=8;Z(y)&&(y.h=1,y.u=0)}function re(y,x){if(t(0<=x),!y.h&&x<=Ep){var N=X(y)&Oc[x];return y.u+=x,q(y),N}return y.h=1,y.u=0}function P(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function D(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function X(y){return y.Ra>>>(y.u&Ri-1)>>>0}function Z(y){return t(y.bb<=y.Sb),y.h||y.bb==y.Sb&&y.u>Ri}function ae(y,x){y.u=x,y.h=Z(y)}function se(y){y.u>=to&&(t(y.u>=to),q(y))}function pe(y){t(y!=null&&y.oa!=null),y.pa<y.Zc?(y.I=(y.oa[y.pa++]|y.I<<8)>>>0,y.b+=8):(t(y!=null&&y.oa!=null),y.pa<y.Yc?(y.b+=8,y.I=y.oa[y.pa++]|y.I<<8):y.Ka?y.b=0:(y.I<<=8,y.b+=8,y.Ka=1))}function le(y){return V(y,1)}function he(y,x){var N=y.Ca;0>y.b&&pe(y);var L=y.b,$=N*x>>>8,W=(y.I>>>L>$)+0;for(W?(N-=$,y.I-=$+1<<L>>>0):N=$+1,L=N,$=0;256<=L;)$+=8,L>>=8;return L=7^$+yd[L],y.b-=L,y.Ca=(N<<L)-1,W}function Ae(y,x,N){y[x+0]=N>>24&255,y[x+1]=N>>16&255,y[x+2]=N>>8&255,y[x+3]=255&N}function ue(y,x){return y[x+0]|y[x+1]<<8}function _e(y,x){return ue(y,x)|y[x+2]<<16}function ve(y,x){return ue(y,x)|ue(y,x+2)<<16}function z(y,x){var N=1<<x;return t(y!=null),t(0<x),y.X=o(N),y.X==null?0:(y.Mb=32-x,y.Xa=x,1)}function Se(y,x){t(y!=null),t(x!=null),t(y.Xa==x.Xa),n(x.X,0,y.X,0,1<<x.Xa)}function Me(){this.X=[],this.Xa=this.Mb=0}function De(y,x,N,L){t(N!=null),t(L!=null);var $=N[0],W=L[0];return $==0&&($=(y*W+x/2)/x),W==0&&(W=(x*$+y/2)/y),0>=$||0>=W?0:(N[0]=$,L[0]=W,1)}function xe(y,x){return y+(1<<x)-1>>>x}function ze(y,x){return((4278255360&y)+(4278255360&x)>>>0&4278255360)+((16711935&y)+(16711935&x)>>>0&16711935)>>>0}function me(y,x){k[x]=function(N,L,$,W,Y,J,ee){var ne;for(ne=0;ne<Y;++ne){var de=k[y](J[ee+ne-1],$,W+ne);J[ee+ne]=ze(N[L+ne],de)}}}function Le(){this.ud=this.hd=this.jd=0}function Ue(y,x){return((4278124286&(y^x))>>>1)+(y&x)>>>0}function Bt(y){return 0<=y&&256>y?y:0>y?0:255<y?255:void 0}function Et(y,x){return Bt(y+(y-x+.5>>1))}function Ge(y,x,N){return Math.abs(x-N)-Math.abs(y-N)}function Je(y,x,N,L,$,W,Y){for(L=W[Y-1],N=0;N<$;++N)W[Y+N]=L=ze(y[x+N],L)}function dt(y,x,N,L,$){var W;for(W=0;W<N;++W){var Y=y[x+W],J=Y>>8&255,ee=16711935&(ee=(ee=16711935&Y)+((J<<16)+J));L[$+W]=(4278255360&Y)+ee>>>0}}function Ye(y,x){x.jd=255&y,x.hd=y>>8&255,x.ud=y>>16&255}function vt(y,x,N,L,$,W){var Y;for(Y=0;Y<L;++Y){var J=x[N+Y],ee=J>>>8,ne=J,de=255&(de=(de=J>>>16)+((y.jd<<24>>24)*(ee<<24>>24)>>>5));ne=255&(ne=(ne+=(y.hd<<24>>24)*(ee<<24>>24)>>>5)+((y.ud<<24>>24)*(de<<24>>24)>>>5)),$[W+Y]=(4278255360&J)+(de<<16)+ne}}function tt(y,x,N,L,$){k[x]=function(W,Y,J,ee,ne,de,be,ie,fe){for(ee=be;ee<ie;++ee)for(be=0;be<fe;++be)ne[de++]=$(J[L(W[Y++])])},k[y]=function(W,Y,J,ee,ne,de,be){var ie=8>>W.b,fe=W.Ea,ye=W.K[0],Ie=W.w;if(8>ie)for(W=(1<<W.b)-1,Ie=(1<<ie)-1;Y<J;++Y){var we,Fe=0;for(we=0;we<fe;++we)we&W||(Fe=L(ee[ne++])),de[be++]=$(ye[Fe&Ie]),Fe>>=ie}else k["VP8LMapColor"+N](ee,ne,ye,Ie,de,be,Y,J,fe)}}function dr(y,x,N,L,$){for(N=x+N;x<N;){var W=y[x++];L[$++]=W>>16&255,L[$++]=W>>8&255,L[$++]=255&W}}function Pt(y,x,N,L,$){for(N=x+N;x<N;){var W=y[x++];L[$++]=W>>16&255,L[$++]=W>>8&255,L[$++]=255&W,L[$++]=W>>24&255}}function Ft(y,x,N,L,$){for(N=x+N;x<N;){var W=(Y=y[x++])>>16&240|Y>>12&15,Y=240&Y|Y>>28&15;L[$++]=W,L[$++]=Y}}function Be(y,x,N,L,$){for(N=x+N;x<N;){var W=(Y=y[x++])>>16&248|Y>>13&7,Y=Y>>5&224|Y>>3&31;L[$++]=W,L[$++]=Y}}function rt(y,x,N,L,$){for(N=x+N;x<N;){var W=y[x++];L[$++]=255&W,L[$++]=W>>8&255,L[$++]=W>>16&255}}function Ve(y,x,N,L,$,W){if(W==0)for(N=x+N;x<N;)Ae(L,((W=y[x++])[0]>>24|W[1]>>8&65280|W[2]<<8&16711680|W[3]<<24)>>>0),$+=32;else n(L,$,y,x,N)}function et(y,x){k[x][0]=k[y+"0"],k[x][1]=k[y+"1"],k[x][2]=k[y+"2"],k[x][3]=k[y+"3"],k[x][4]=k[y+"4"],k[x][5]=k[y+"5"],k[x][6]=k[y+"6"],k[x][7]=k[y+"7"],k[x][8]=k[y+"8"],k[x][9]=k[y+"9"],k[x][10]=k[y+"10"],k[x][11]=k[y+"11"],k[x][12]=k[y+"12"],k[x][13]=k[y+"13"],k[x][14]=k[y+"0"],k[x][15]=k[y+"0"]}function Qe(y){return y==hB||y==fB||y==Tv||y==pB}function He(){this.eb=[],this.size=this.A=this.fb=0}function st(){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 _t(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new He,this.f.kb=new st,this.sd=null}function We(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Xt(){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 Ze(y){return alert("todo:WebPSamplerProcessPlane"),y.T}function Ee(y,x){var N=y.T,L=x.ba.f.RGBA,$=L.eb,W=L.fb+y.ka*L.A,Y=Go[x.ba.S],J=y.y,ee=y.O,ne=y.f,de=y.N,be=y.ea,ie=y.W,fe=x.cc,ye=x.dc,Ie=x.Mc,we=x.Nc,Fe=y.ka,Ne=y.ka+y.T,Re=y.U,je=Re+1>>1;for(Fe==0?Y(J,ee,null,null,ne,de,be,ie,ne,de,be,ie,$,W,null,null,Re):(Y(x.ec,x.fc,J,ee,fe,ye,Ie,we,ne,de,be,ie,$,W-L.A,$,W,Re),++N);Fe+2<Ne;Fe+=2)fe=ne,ye=de,Ie=be,we=ie,de+=y.Rc,ie+=y.Rc,W+=2*L.A,Y(J,(ee+=2*y.fa)-y.fa,J,ee,fe,ye,Ie,we,ne,de,be,ie,$,W-L.A,$,W,Re);return ee+=y.fa,y.j+Ne<y.o?(n(x.ec,x.fc,J,ee,Re),n(x.cc,x.dc,ne,de,je),n(x.Mc,x.Nc,be,ie,je),N--):1&Ne||Y(J,ee,null,null,ne,de,be,ie,ne,de,be,ie,$,W+L.A,null,null,Re),N}function Ke(y,x,N){var L=y.F,$=[y.J];if(L!=null){var W=y.U,Y=x.ba.S,J=Y==Nv||Y==Tv;x=x.ba.f.RGBA;var ee=[0],ne=y.ka;ee[0]=y.T,y.Kb&&(ne==0?--ee[0]:(--ne,$[0]-=y.width),y.j+y.ka+y.T==y.o&&(ee[0]=y.o-y.j-ne));var de=x.eb;ne=x.fb+ne*x.A,y=uT(L,$[0],y.width,W,ee,de,ne+(J?0:3),x.A),t(N==ee),y&&Qe(Y)&&Ip(de,ne,J,W,ee,x.A)}return 0}function ht(y){var x=y.ma,N=x.ba.S,L=11>N,$=N==kv||N==Fv||N==Nv||N==dB||N==12||Qe(N);if(x.memory=null,x.Ib=null,x.Jb=null,x.Nd=null,!zo(x.Oa,y,$?11:12))return 0;if($&&Qe(N)&&Ks(),y.da)alert("todo:use_scaling");else{if(L){if(x.Ib=Ze,y.Kb){if(N=y.U+1>>1,x.memory=o(y.U+2*N),x.memory==null)return 0;x.ec=x.memory,x.fc=0,x.cc=x.ec,x.dc=x.fc+y.U,x.Mc=x.cc,x.Nc=x.dc+N,x.Ib=Ee,Ks()}}else alert("todo:EmitYUV");$&&(x.Jb=Ke,L&&un())}if(L&&!IT){for(y=0;256>y;++y)FG[y]=89858*(y-128)+jv>>Ov,OG[y]=-22014*(y-128)+jv,TG[y]=-45773*(y-128),NG[y]=113618*(y-128)+jv>>Ov;for(y=Fp;y<yB;++y)x=76283*(y-16)+jv>>Ov,jG[y-Fp]=qa(x,255),PG[y-Fp]=qa(x+8>>4,15);IT=1}return 1}function Pe(y){var x=y.ma,N=y.U,L=y.T;return t(!(1&y.ka)),0>=N||0>=L?0:(N=x.Ib(y,x),x.Jb!=null&&x.Jb(y,x,N),x.Dc+=N,1)}function ct(y){y.ma.memory=null}function qe(y,x,N,L){return re(y,8)!=47?0:(x[0]=re(y,14)+1,N[0]=re(y,14)+1,L[0]=re(y,1),re(y,3)!=0?0:!y.h)}function wt(y,x){if(4>y)return y+1;var N=y-2>>1;return(2+(1&y)<<N)+re(x,N)+1}function St(y,x){return 120<x?x-120:1<=(N=((N=gG[x-1])>>4)*y+(8-(15&N)))?N:1;var N}function at(y,x,N){var L=X(N),$=y[x+=255&L].g-8;return 0<$&&(ae(N,N.u+8),L=X(N),x+=y[x].value,x+=L&(1<<$)-1),ae(N,N.u+y[x].g),y[x].value}function Ot(y,x,N){return N.g+=y.g,N.value+=y.value<<x>>>0,t(8>=N.g),y.g}function Zt(y,x,N){var L=y.xc;return t((x=L==0?0:y.vc[y.md*(N>>L)+(x>>L)])<y.Wb),y.Ya[x]}function gt(y,x,N,L){var $=y.ab,W=y.c*x,Y=y.C;x=Y+x;var J=N,ee=L;for(L=y.Ta,N=y.Ua;0<$--;){var ne=y.gc[$],de=Y,be=x,ie=J,fe=ee,ye=(ee=L,J=N,ne.Ea);switch(t(de<be),t(be<=ne.nc),ne.hc){case 2:vd(ie,fe,(be-de)*ye,ee,J);break;case 0:var Ie=de,we=be,Fe=ee,Ne=J,Re=(bt=ne).Ea;Ie==0&&(ql(ie,fe,null,null,1,Fe,Ne),Je(ie,fe+1,0,0,Re-1,Fe,Ne+1),fe+=Re,Ne+=Re,++Ie);for(var je=1<<bt.b,It=je-1,ut=xe(Re,bt.b),Gt=bt.K,bt=bt.w+(Ie>>bt.b)*ut;Ie<we;){var ir=Gt,Hn=bt,Yt=1;for(Xl(ie,fe,Fe,Ne-Re,1,Fe,Ne);Yt<Re;){var xt=(Yt&~It)+je;xt>Re&&(xt=Re),(0,va[ir[Hn++]>>8&15])(ie,fe+ +Yt,Fe,Ne+Yt-Re,xt-Yt,Fe,Ne+Yt),Yt=xt}fe+=Re,Ne+=Re,++Ie&It||(bt+=ut)}be!=ne.nc&&n(ee,J-ye,ee,J+(be-de-1)*ye,ye);break;case 1:for(ye=ie,we=fe,Re=(ie=ne.Ea)-(Ne=ie&~(Fe=(fe=1<<ne.b)-1)),Ie=xe(ie,ne.b),je=ne.K,ne=ne.w+(de>>ne.b)*Ie;de<be;){for(It=je,ut=ne,Gt=new Le,bt=we+Ne,ir=we+ie;we<bt;)Ye(It[ut++],Gt),Pc(Gt,ye,we,fe,ee,J),we+=fe,J+=fe;we<ir&&(Ye(It[ut++],Gt),Pc(Gt,ye,we,Re,ee,J),we+=Re,J+=Re),++de&Fe||(ne+=Ie)}break;case 3:if(ie==ee&&fe==J&&0<ne.b){for(we=ee,ie=ye=J+(be-de)*ye-(Ne=(be-de)*xe(ne.Ea,ne.b)),fe=ee,Fe=J,Ie=[],Ne=(Re=Ne)-1;0<=Ne;--Ne)Ie[Ne]=fe[Fe+Ne];for(Ne=Re-1;0<=Ne;--Ne)we[ie+Ne]=Ie[Ne];jc(ne,de,be,ee,ye,ee,J)}else jc(ne,de,be,ie,fe,ee,J)}J=L,ee=N}ee!=N&&n(L,N,J,ee,W)}function kt(y,x){var N=y.V,L=y.Ba+y.c*y.C,$=x-y.C;if(t(x<=y.l.o),t(16>=$),0<$){var W=y.l,Y=y.Ta,J=y.Ua,ee=W.width;if(gt(y,$,N,L),$=J=[J],t((N=y.C)<(L=x)),t(W.v<W.va),L>W.o&&(L=W.o),N<W.j){var ne=W.j-N;N=W.j,$[0]+=ne*ee}if(N>=L?N=0:($[0]+=4*W.v,W.ka=N-W.j,W.U=W.va-W.v,W.T=L-N,N=1),N){if(J=J[0],11>(N=y.ca).S){var de=N.f.RGBA,be=(L=N.S,$=W.U,W=W.T,ne=de.eb,de.A),ie=W;for(de=de.fb+y.Ma*de.A;0<ie--;){var fe=Y,ye=J,Ie=$,we=ne,Fe=de;switch(L){case Iv:_p(fe,ye,Ie,we,Fe);break;case kv:Sp(fe,ye,Ie,we,Fe);break;case hB:Sp(fe,ye,Ie,we,Fe),Ip(we,Fe,0,Ie,1,0);break;case yT:Uc(fe,ye,Ie,we,Fe);break;case Fv:Ve(fe,ye,Ie,we,Fe,1);break;case fB:Ve(fe,ye,Ie,we,Fe,1),Ip(we,Fe,0,Ie,1,0);break;case Nv:Ve(fe,ye,Ie,we,Fe,0);break;case Tv:Ve(fe,ye,Ie,we,Fe,0),Ip(we,Fe,1,Ie,1,0);break;case dB:wd(fe,ye,Ie,we,Fe);break;case pB:wd(fe,ye,Ie,we,Fe),cT(we,Fe,Ie,1,0);break;case vT:Lc(fe,ye,Ie,we,Fe);break;default:t(0)}J+=ee,de+=be}y.Ma+=W}else alert("todo:EmitRescaledRowsYUVA");t(y.Ma<=N.height)}}y.C=x,t(y.C<=y.i)}function Qt(y){var x;if(0<y.ua)return 0;for(x=0;x<y.Wb;++x){var N=y.Ya[x].G,L=y.Ya[x].H;if(0<N[1][L[1]+0].g||0<N[2][L[2]+0].g||0<N[3][L[3]+0].g)return 0}return 1}function ar(y,x,N,L,$,W){if(y.Z!=0){var Y=y.qd,J=y.rd;for(t(tA[y.Z]!=null);x<N;++x)tA[y.Z](Y,J,L,$,L,$,W),Y=L,J=$,$+=W;y.qd=Y,y.rd=J}}function Ht(y,x){var N=y.l.ma,L=N.Z==0||N.Z==1?y.l.j:y.C;if(L=y.C<L?L:y.C,t(x<=y.l.o),x>L){var $=y.l.width,W=N.ca,Y=N.tb+$*L,J=y.V,ee=y.Ba+y.c*L,ne=y.gc;t(y.ab==1),t(ne[0].hc==3),cB(ne[0],L,x,J,ee,W,Y),ar(N,L,x,W,Y,$)}y.C=y.Ma=x}function rn(y,x,N,L,$,W,Y){var J=y.$/L,ee=y.$%L,ne=y.m,de=y.s,be=N+y.$,ie=be;$=N+L*$;var fe=N+L*W,ye=280+de.ua,Ie=y.Pb?J:16777216,we=0<de.ua?de.Wa:null,Fe=de.wc,Ne=be<fe?Zt(de,ee,J):null;t(y.C<W),t(fe<=$);var Re=!1;e:for(;;){for(;Re||be<fe;){var je=0;if(J>=Ie){var It=be-N;t((Ie=y).Pb),Ie.wd=Ie.m,Ie.xd=It,0<Ie.s.ua&&Se(Ie.s.Wa,Ie.s.vb),Ie=J+yG}if(ee&Fe||(Ne=Zt(de,ee,J)),t(Ne!=null),Ne.Qb&&(x[be]=Ne.qb,Re=!0),!Re)if(se(ne),Ne.jc){je=ne,It=x;var ut=be,Gt=Ne.pd[X(je)&md-1];t(Ne.jc),256>Gt.g?(ae(je,je.u+Gt.g),It[ut]=Gt.value,je=0):(ae(je,je.u+Gt.g-256),t(256<=Gt.value),je=Gt.value),je==0&&(Re=!0)}else je=at(Ne.G[0],Ne.H[0],ne);if(ne.h)break;if(Re||256>je){if(!Re)if(Ne.nd)x[be]=(Ne.qb|je<<8)>>>0;else{if(se(ne),Re=at(Ne.G[1],Ne.H[1],ne),se(ne),It=at(Ne.G[2],Ne.H[2],ne),ut=at(Ne.G[3],Ne.H[3],ne),ne.h)break;x[be]=(ut<<24|Re<<16|je<<8|It)>>>0}if(Re=!1,++be,++ee>=L&&(ee=0,++J,Y!=null&&J<=W&&!(J%16)&&Y(y,J),we!=null))for(;ie<be;)je=x[ie++],we.X[(506832829*je&4294967295)>>>we.Mb]=je}else if(280>je){if(je=wt(je-256,ne),It=at(Ne.G[4],Ne.H[4],ne),se(ne),It=St(L,It=wt(It,ne)),ne.h)break;if(be-N<It||$-be<je)break e;for(ut=0;ut<je;++ut)x[be+ut]=x[be+ut-It];for(be+=je,ee+=je;ee>=L;)ee-=L,++J,Y!=null&&J<=W&&!(J%16)&&Y(y,J);if(t(be<=$),ee&Fe&&(Ne=Zt(de,ee,J)),we!=null)for(;ie<be;)je=x[ie++],we.X[(506832829*je&4294967295)>>>we.Mb]=je}else{if(!(je<ye))break e;for(Re=je-280,t(we!=null);ie<be;)je=x[ie++],we.X[(506832829*je&4294967295)>>>we.Mb]=je;je=be,t(!(Re>>>(It=we).Xa)),x[je]=It.X[Re],Re=!0}Re||t(ne.h==Z(ne))}if(y.Pb&&ne.h&&be<$)t(y.m.h),y.a=5,y.m=y.wd,y.$=y.xd,0<y.s.ua&&Se(y.s.vb,y.s.Wa);else{if(ne.h)break e;Y!=null&&Y(y,J>W?W:J),y.a=0,y.$=be-N}return 1}return y.a=3,0}function An(y){t(y!=null),y.vc=null,y.yc=null,y.Ya=null;var x=y.Wa;x!=null&&(x.X=null),y.vb=null,t(y!=null)}function mr(){var y=new yt;return y==null?null:(y.a=0,y.xb=xT,et("Predictor","VP8LPredictors"),et("Predictor","VP8LPredictors_C"),et("PredictorAdd","VP8LPredictorsAdd"),et("PredictorAdd","VP8LPredictorsAdd_C"),vd=dt,Pc=vt,_p=dr,Sp=Pt,wd=Ft,Lc=Be,Uc=rt,k.VP8LMapColor32b=Ln,k.VP8LMapColor8b=ts,y)}function On(y,x,N,L,$){var W=1,Y=[y],J=[x],ee=L.m,ne=L.s,de=null,be=0;e:for(;;){if(N)for(;W&&re(ee,1);){var ie=Y,fe=J,ye=L,Ie=1,we=ye.m,Fe=ye.gc[ye.ab],Ne=re(we,2);if(ye.Oc&1<<Ne)W=0;else{switch(ye.Oc|=1<<Ne,Fe.hc=Ne,Fe.Ea=ie[0],Fe.nc=fe[0],Fe.K=[null],++ye.ab,t(4>=ye.ab),Ne){case 0:case 1:Fe.b=re(we,3)+2,Ie=On(xe(Fe.Ea,Fe.b),xe(Fe.nc,Fe.b),0,ye,Fe.K),Fe.K=Fe.K[0];break;case 3:var Re,je=re(we,8)+1,It=16<je?0:4<je?1:2<je?2:3;if(ie[0]=xe(Fe.Ea,It),Fe.b=It,Re=Ie=On(je,1,0,ye,Fe.K)){var ut,Gt=je,bt=Fe,ir=1<<(8>>bt.b),Hn=o(ir);if(Hn==null)Re=0;else{var Yt=bt.K[0],xt=bt.w;for(Hn[0]=bt.K[0][0],ut=1;ut<1*Gt;++ut)Hn[ut]=ze(Yt[xt+ut],Hn[ut-1]);for(;ut<4*ir;++ut)Hn[ut]=0;bt.K[0]=null,bt.K[0]=Hn,Re=1}}Ie=Re;break;case 2:break;default:t(0)}W=Ie}}if(Y=Y[0],J=J[0],W&&re(ee,1)&&!(W=1<=(be=re(ee,4))&&11>=be)){L.a=3;break e}var Xe;if(Xe=W)t:{var _n,Vt,lr,Gr=L,ai=Y,Di=J,gn=be,Bi=N,Qi=Gr.m,Kn=Gr.s,Ar=[null],Br=1,mn=0,Er=mG[gn];r:for(;;){if(Bi&&re(Qi,1)){var si=re(Qi,3)+2,ba=xe(ai,si),Sn=xe(Di,si),ro=ba*Sn;if(!On(ba,Sn,0,Gr,Ar))break r;for(Ar=Ar[0],Kn.xc=si,_n=0;_n<ro;++_n){var Pr=Ar[_n]>>8&65535;Ar[_n]=Pr,Pr>=Br&&(Br=Pr+1)}}if(Qi.h)break r;for(Vt=0;5>Vt;++Vt){var Vn=wT[Vt];!Vt&&0<gn&&(Vn+=1<<gn),mn<Vn&&(mn=Vn)}var wo=a(Br*Er,U),Mi=Br,bo=a(Mi,G);if(bo==null)var xo=null;else t(65536>=Mi),xo=bo;var no=o(mn);if(xo==null||no==null||wo==null){Gr.a=1;break r}var Bo=wo;for(_n=lr=0;_n<Br;++_n){var Qr=xo[_n],Eo=Qr.G,xa=Qr.H,Rc=0,Gs=1,li=0;for(Vt=0;5>Vt;++Vt){Vn=wT[Vt],Eo[Vt]=Bo,xa[Vt]=lr,!Vt&&0<gn&&(Vn+=1<<gn);i:{var Lv,vB=Vn,Uv=Gr,Np=no,RG=Bo,DG=lr,wB=0,rA=Uv.m,QG=re(rA,1);if(i(Np,0,0,vB),QG){var MG=re(rA,1)+1,$G=re(rA,1),NT=re(rA,$G==0?1:8);Np[NT]=1,MG==2&&(Np[NT=re(rA,8)]=1);var Rv=1}else{var TT=o(19),OT=re(rA,4)+4;if(19<OT){Uv.a=3;var Dv=0;break i}for(Lv=0;Lv<OT;++Lv)TT[pG[Lv]]=re(rA,3);var bB=void 0,Tp=void 0,jT=Uv,HG=TT,Qv=vB,PT=Np,xB=0,nA=jT.m,LT=8,UT=a(128,U);n:for(;T(UT,0,7,HG,19);){if(re(nA,1)){var KG=2+2*re(nA,3);if((bB=2+re(nA,KG))>Qv)break n}else bB=Qv;for(Tp=0;Tp<Qv&&bB--;){se(nA);var RT=UT[0+(127&X(nA))];ae(nA,nA.u+RT.g);var Bd=RT.value;if(16>Bd)PT[Tp++]=Bd,Bd!=0&&(LT=Bd);else{var VG=Bd==16,DT=Bd-16,zG=hG[DT],QT=re(nA,dG[DT])+zG;if(Tp+QT>Qv)break n;for(var WG=VG?LT:0;0<QT--;)PT[Tp++]=WG}}xB=1;break n}xB||(jT.a=3),Rv=xB}(Rv=Rv&&!rA.h)&&(wB=T(RG,DG,8,Np,vB)),Rv&&wB!=0?Dv=wB:(Uv.a=3,Dv=0)}if(Dv==0)break r;if(Gs&&fG[Vt]==1&&(Gs=Bo[lr].g==0),Rc+=Bo[lr].g,lr+=Dv,3>=Vt){var Op,BB=no[0];for(Op=1;Op<Vn;++Op)no[Op]>BB&&(BB=no[Op]);li+=BB}}if(Qr.nd=Gs,Qr.Qb=0,Gs&&(Qr.qb=(Eo[3][xa[3]+0].value<<24|Eo[1][xa[1]+0].value<<16|Eo[2][xa[2]+0].value)>>>0,Rc==0&&256>Eo[0][xa[0]+0].value&&(Qr.Qb=1,Qr.qb+=Eo[0][xa[0]+0].value<<8)),Qr.jc=!Qr.Qb&&6>li,Qr.jc){var Mv,Ys=Qr;for(Mv=0;Mv<md;++Mv){var iA=Mv,oA=Ys.pd[iA],$v=Ys.G[0][Ys.H[0]+iA];256<=$v.value?(oA.g=$v.g+256,oA.value=$v.value):(oA.g=0,oA.value=0,iA>>=Ot($v,8,oA),iA>>=Ot(Ys.G[1][Ys.H[1]+iA],16,oA),iA>>=Ot(Ys.G[2][Ys.H[2]+iA],0,oA),Ot(Ys.G[3][Ys.H[3]+iA],24,oA))}}}Kn.vc=Ar,Kn.Wb=Br,Kn.Ya=xo,Kn.yc=wo,Xe=1;break t}Xe=0}if(!(W=Xe)){L.a=3;break e}if(0<be){if(ne.ua=1<<be,!z(ne.Wa,be)){L.a=1,W=0;break e}}else ne.ua=0;var EB=L,MT=Y,GG=J,_B=EB.s,SB=_B.xc;if(EB.c=MT,EB.i=GG,_B.md=xe(MT,SB),_B.wc=SB==0?-1:(1<<SB)-1,N){L.xb=_G;break e}if((de=o(Y*J))==null){L.a=1,W=0;break e}W=(W=rn(L,de,0,Y,J,J,null))&&!ee.h;break e}return W?($!=null?$[0]=de:(t(de==null),t(N)),L.$=0,N||An(ne)):An(ne),W}function kr(y,x){var N=y.c*y.i,L=N+x+16*x;return t(y.c<=x),y.V=o(L),y.V==null?(y.Ta=null,y.Ua=0,y.a=1,0):(y.Ta=y.V,y.Ua=y.Ba+N+x,1)}function Vl(y,x){var N=y.C,L=x-N,$=y.V,W=y.Ba+y.c*N;for(t(x<=y.l.o);0<L;){var Y=16<L?16:L,J=y.l.ma,ee=y.l.width,ne=ee*Y,de=J.ca,be=J.tb+ee*N,ie=y.Ta,fe=y.Ua;gt(y,Y,$,W),dT(ie,fe,de,be,ne),ar(J,N,N+Y,de,be,ee),L-=Y,$+=Y*y.c,N+=Y}t(N==x),y.C=y.Ma=x}function nd(){this.ub=this.yd=this.td=this.Rb=0}function id(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function z2(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function up(){this.Yb=function(){var y=[];return function x(N,L,$){for(var W=$[L],Y=0;Y<W&&(N.push($.length>L+1?[]:0),!($.length<L+1));Y++)x(N[Y],L+1,$)}(y,0,[3,11]),y}()}function Av(){this.jb=o(3),this.Wc=s([4,8],up),this.Xc=s([4,17],up)}function cv(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Vo(){this.ld=this.La=this.dd=this.tc=0}function dp(){this.Na=this.la=0}function uv(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function hp(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function dv(){this.uc=this.M=this.Nb=0,this.wa=Array(new Vo),this.Y=0,this.ya=Array(new hp),this.aa=0,this.l=new od}function hv(){this.y=o(16),this.f=o(8),this.ea=o(8)}function fv(){this.cb=this.a=0,this.sc="",this.m=new P,this.Od=new nd,this.Kc=new id,this.ed=new cv,this.Qa=new z2,this.Ic=this.$c=this.Aa=0,this.D=new dv,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,P),this.ia=0,this.pb=a(4,uv),this.Pa=new Av,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new hv),this.Hd=0,this.rb=Array(new dp),this.sb=0,this.wa=Array(new Vo),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 hp),this.L=this.aa=0,this.gd=s([4,2],Vo),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 qa(y,x){return 0>y?0:y>x?x:y}function od(){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 W2(){var y=new fv;return y!=null&&(y.a=0,y.sc="OK",y.cb=0,y.Xb=0,kp||(kp=ad)),y}function jn(y,x,N){return y.a==0&&(y.a=x,y.sc=N,y.cb=0),0}function pv(y,x,N){return 3<=N&&y[x+0]==157&&y[x+1]==1&&y[x+2]==42}function Xa(y,x){if(y==null)return 0;if(y.a=0,y.sc="OK",x==null)return jn(y,2,"null VP8Io passed to VP8GetHeaders()");var N=x.data,L=x.w,$=x.ha;if(4>$)return jn(y,7,"Truncated header.");var W=N[L+0]|N[L+1]<<8|N[L+2]<<16,Y=y.Od;if(Y.Rb=!(1&W),Y.td=W>>1&7,Y.yd=W>>4&1,Y.ub=W>>5,3<Y.td)return jn(y,3,"Incorrect keyframe parameters.");if(!Y.yd)return jn(y,4,"Frame not displayable.");L+=3,$-=3;var J=y.Kc;if(Y.Rb){if(7>$)return jn(y,7,"cannot parse picture header");if(!pv(N,L,$))return jn(y,3,"Bad code word");J.c=16383&(N[L+4]<<8|N[L+3]),J.Td=N[L+4]>>6,J.i=16383&(N[L+6]<<8|N[L+5]),J.Ud=N[L+6]>>6,L+=7,$-=7,y.za=J.c+15>>4,y.Ub=J.i+15>>4,x.width=J.c,x.height=J.i,x.Da=0,x.j=0,x.v=0,x.va=x.width,x.o=x.height,x.da=0,x.ib=x.width,x.hb=x.height,x.U=x.width,x.T=x.height,i((W=y.Pa).jb,0,255,W.jb.length),t((W=y.Qa)!=null),W.Cb=0,W.Bb=0,W.Fb=1,i(W.Zb,0,0,W.Zb.length),i(W.Lb,0,0,W.Lb)}if(Y.ub>$)return jn(y,7,"bad partition length");K(W=y.m,N,L,Y.ub),L+=Y.ub,$-=Y.ub,Y.Rb&&(J.Ld=le(W),J.Kd=le(W)),J=y.Qa;var ee,ne=y.Pa;if(t(W!=null),t(J!=null),J.Cb=le(W),J.Cb){if(J.Bb=le(W),le(W)){for(J.Fb=le(W),ee=0;4>ee;++ee)J.Zb[ee]=le(W)?Q(W,7):0;for(ee=0;4>ee;++ee)J.Lb[ee]=le(W)?Q(W,6):0}if(J.Bb)for(ee=0;3>ee;++ee)ne.jb[ee]=le(W)?V(W,8):255}else J.Bb=0;if(W.Ka)return jn(y,3,"cannot parse segment header");if((J=y.ed).zd=le(W),J.Tb=V(W,6),J.wb=V(W,3),J.Pc=le(W),J.Pc&&le(W)){for(ne=0;4>ne;++ne)le(W)&&(J.vd[ne]=Q(W,6));for(ne=0;4>ne;++ne)le(W)&&(J.od[ne]=Q(W,6))}if(y.L=J.Tb==0?0:J.zd?1:2,W.Ka)return jn(y,3,"cannot parse filter header");var de=$;if($=ee=L,L=ee+de,J=de,y.Xb=(1<<V(y.m,2))-1,de<3*(ne=y.Xb))N=7;else{for(ee+=3*ne,J-=3*ne,de=0;de<ne;++de){var be=N[$+0]|N[$+1]<<8|N[$+2]<<16;be>J&&(be=J),K(y.Jc[+de],N,ee,be),ee+=be,J-=be,$+=3}K(y.Jc[+ne],N,ee,J),N=ee<L?0:5}if(N!=0)return jn(y,N,"cannot parse partitions");for(N=V(ee=y.m,7),$=le(ee)?Q(ee,4):0,L=le(ee)?Q(ee,4):0,J=le(ee)?Q(ee,4):0,ne=le(ee)?Q(ee,4):0,ee=le(ee)?Q(ee,4):0,de=y.Qa,be=0;4>be;++be){if(de.Cb){var ie=de.Zb[be];de.Fb||(ie+=N)}else{if(0<be){y.pb[be]=y.pb[0];continue}ie=N}var fe=y.pb[be];fe.Sc[0]=gB[qa(ie+$,127)],fe.Sc[1]=mB[qa(ie+0,127)],fe.Eb[0]=2*gB[qa(ie+L,127)],fe.Eb[1]=101581*mB[qa(ie+J,127)]>>16,8>fe.Eb[1]&&(fe.Eb[1]=8),fe.Qc[0]=gB[qa(ie+ne,117)],fe.Qc[1]=mB[qa(ie+ee,127)],fe.lc=ie+ee}if(!Y.Rb)return jn(y,4,"Not a key frame.");for(le(W),Y=y.Pa,N=0;4>N;++N){for($=0;8>$;++$)for(L=0;3>L;++L)for(J=0;11>J;++J)ne=he(W,BG[N][$][L][J])?V(W,8):bG[N][$][L][J],Y.Wc[N][$].Yb[L][J]=ne;for($=0;17>$;++$)Y.Xc[N][$]=Y.Wc[N][EG[$]]}return y.kc=le(W),y.kc&&(y.Bd=V(W,8)),y.cb=1}function ad(y,x,N,L,$,W,Y){var J=x[$].Yb[N];for(N=0;16>$;++$){if(!he(y,J[N+0]))return $;for(;!he(y,J[N+1]);)if(J=x[++$].Yb[0],N=0,$==16)return 16;var ee=x[$+1].Yb;if(he(y,J[N+2])){var ne=y,de=0;if(he(ne,(ie=J)[(be=N)+3]))if(he(ne,ie[be+6])){for(J=0,be=2*(de=he(ne,ie[be+8]))+(ie=he(ne,ie[be+9+de])),de=0,ie=vG[be];ie[J];++J)de+=de+he(ne,ie[J]);de+=3+(8<<be)}else he(ne,ie[be+7])?(de=7+2*he(ne,165),de+=he(ne,145)):de=5+he(ne,159);else de=he(ne,ie[be+4])?3+he(ne,ie[be+5]):2;J=ee[2]}else de=1,J=ee[1];ee=Y+wG[$],0>(ne=y).b&&pe(ne);var be,ie=ne.b,fe=(be=ne.Ca>>1)-(ne.I>>ie)>>31;--ne.b,ne.Ca+=fe,ne.Ca|=1,ne.I-=(be+1&fe)<<ie,W[ee]=((de^fe)-fe)*L[(0<$)+0]}return 16}function fp(y){var x=y.rb[y.sb-1];x.la=0,x.Na=0,i(y.zc,0,0,y.zc.length),y.ja=0}function yo(y,x,N,L,$){$=y[x+N+32*L]+($>>3),y[x+N+32*L]=-256&$?0>$?0:255:$}function sd(y,x,N,L,$,W){yo(y,x,0,N,L+$),yo(y,x,1,N,L+W),yo(y,x,2,N,L-W),yo(y,x,3,N,L-$)}function Ds(y){return(20091*y>>16)+y}function oi(y,x,N,L){var $,W=0,Y=o(16);for($=0;4>$;++$){var J=y[x+0]+y[x+8],ee=y[x+0]-y[x+8],ne=(35468*y[x+4]>>16)-Ds(y[x+12]),de=Ds(y[x+4])+(35468*y[x+12]>>16);Y[W+0]=J+de,Y[W+1]=ee+ne,Y[W+2]=ee-ne,Y[W+3]=J-de,W+=4,x++}for($=W=0;4>$;++$)J=(y=Y[W+0]+4)+Y[W+8],ee=y-Y[W+8],ne=(35468*Y[W+4]>>16)-Ds(Y[W+12]),yo(N,L,0,0,J+(de=Ds(Y[W+4])+(35468*Y[W+12]>>16))),yo(N,L,1,0,ee+ne),yo(N,L,2,0,ee-ne),yo(N,L,3,0,J-de),W++,L+=32}
vendor: 6,469 bytes, line 398
398function gv(y,x,N,L){var $=y[x+0]+4,W=35468*y[x+4]>>16,Y=Ds(y[x+4]),J=35468*y[x+1]>>16;sd(N,L,0,$+Y,y=Ds(y[x+1]),J),sd(N,L,1,$+W,y,J),sd(N,L,2,$-W,y,J),sd(N,L,3,$-Y,y,J)}function G2(y,x,N,L,$){oi(y,x,N,L),$&&oi(y,x+16,N,L+4)}function Y2(y,x,N,L){Vs(y,x+0,N,L,1),Vs(y,x+32,N,L+128,1)}function q2(y,x,N,L){var $;for(y=y[x+0]+4,$=0;4>$;++$)for(x=0;4>x;++x)yo(N,L,x,$,y)}function Ja(y,x,N,L){y[x+0]&&xi(y,x+0,N,L),y[x+16]&&xi(y,x+16,N,L+4),y[x+32]&&xi(y,x+32,N,L+128),y[x+48]&&xi(y,x+48,N,L+128+4)}function mv(y,x,N,L){var $,W=o(16);for($=0;4>$;++$){var Y=y[x+0+$]+y[x+12+$],J=y[x+4+$]+y[x+8+$],ee=y[x+4+$]-y[x+8+$],ne=y[x+0+$]-y[x+12+$];W[0+$]=Y+J,W[8+$]=Y-J,W[4+$]=ne+ee,W[12+$]=ne-ee}for($=0;4>$;++$)Y=(y=W[0+4*$]+3)+W[3+4*$],J=W[1+4*$]+W[2+4*$],ee=W[1+4*$]-W[2+4*$],ne=y-W[3+4*$],N[L+0]=Y+J>>3,N[L+16]=ne+ee>>3,N[L+32]=Y-J>>3,N[L+48]=ne-ee>>3,L+=64}function ld(y,x,N){var L,$=x-32,W=vo,Y=255-y[$-1];for(L=0;L<N;++L){var J,ee=W,ne=Y+y[x-1];for(J=0;J<N;++J)y[x+J]=ee[ne+y[$+J]];x+=32}}function Ad(y,x){ld(y,x,4)}function pp(y,x){ld(y,x,8)}function X2(y,x){ld(y,x,16)}function J2(y,x){var N;for(N=0;16>N;++N)n(y,x+32*N,y,x-32,16)}function Z2(y,x){var N;for(N=16;0<N;--N)i(y,x,y[x-1],16),x+=32}function zl(y,x,N){var L;for(L=0;16>L;++L)i(x,N+32*L,y,16)}function yv(y,x){var N,L=16;for(N=0;16>N;++N)L+=y[x-1+32*N]+y[x+N-32];zl(L>>5,y,x)}function Wl(y,x){var N,L=8;for(N=0;16>N;++N)L+=y[x-1+32*N];zl(L>>4,y,x)}function eB(y,x){var N,L=8;for(N=0;16>N;++N)L+=y[x+N-32];zl(L>>4,y,x)}function Ec(y,x){zl(128,y,x)}function Ut(y,x,N){return y+2*x+N+2>>2}function tB(y,x){var N,L=x-32;for(L=new Uint8Array([Ut(y[L-1],y[L+0],y[L+1]),Ut(y[L+0],y[L+1],y[L+2]),Ut(y[L+1],y[L+2],y[L+3]),Ut(y[L+2],y[L+3],y[L+4])]),N=0;4>N;++N)n(y,x+32*N,L,0,L.length)}function rB(y,x){var N=y[x-1],L=y[x-1+32],$=y[x-1+64],W=y[x-1+96];Ae(y,x+0,16843009*Ut(y[x-1-32],N,L)),Ae(y,x+32,16843009*Ut(N,L,$)),Ae(y,x+64,16843009*Ut(L,$,W)),Ae(y,x+96,16843009*Ut($,W,W))}function nB(y,x){var N,L=4;for(N=0;4>N;++N)L+=y[x+N-32]+y[x-1+32*N];for(L>>=3,N=0;4>N;++N)i(y,x+32*N,L,4)}function iB(y,x){var N=y[x-1+0],L=y[x-1+32],$=y[x-1+64],W=y[x-1-32],Y=y[x+0-32],J=y[x+1-32],ee=y[x+2-32],ne=y[x+3-32];y[x+0+96]=Ut(L,$,y[x-1+96]),y[x+1+96]=y[x+0+64]=Ut(N,L,$),y[x+2+96]=y[x+1+64]=y[x+0+32]=Ut(W,N,L),y[x+3+96]=y[x+2+64]=y[x+1+32]=y[x+0+0]=Ut(Y,W,N),y[x+3+64]=y[x+2+32]=y[x+1+0]=Ut(J,Y,W),y[x+3+32]=y[x+2+0]=Ut(ee,J,Y),y[x+3+0]=Ut(ne,ee,J)}function oB(y,x){var N=y[x+1-32],L=y[x+2-32],$=y[x+3-32],W=y[x+4-32],Y=y[x+5-32],J=y[x+6-32],ee=y[x+7-32];y[x+0+0]=Ut(y[x+0-32],N,L),y[x+1+0]=y[x+0+32]=Ut(N,L,$),y[x+2+0]=y[x+1+32]=y[x+0+64]=Ut(L,$,W),y[x+3+0]=y[x+2+32]=y[x+1+64]=y[x+0+96]=Ut($,W,Y),y[x+3+32]=y[x+2+64]=y[x+1+96]=Ut(W,Y,J),y[x+3+64]=y[x+2+96]=Ut(Y,J,ee),y[x+3+96]=Ut(J,ee,ee)}function Qs(y,x){var N=y[x-1+0],L=y[x-1+32],$=y[x-1+64],W=y[x-1-32],Y=y[x+0-32],J=y[x+1-32],ee=y[x+2-32],ne=y[x+3-32];y[x+0+0]=y[x+1+64]=W+Y+1>>1,y[x+1+0]=y[x+2+64]=Y+J+1>>1,y[x+2+0]=y[x+3+64]=J+ee+1>>1,y[x+3+0]=ee+ne+1>>1,y[x+0+96]=Ut($,L,N),y[x+0+64]=Ut(L,N,W),y[x+0+32]=y[x+1+96]=Ut(N,W,Y),y[x+1+32]=y[x+2+96]=Ut(W,Y,J),y[x+2+32]=y[x+3+96]=Ut(Y,J,ee),y[x+3+32]=Ut(J,ee,ne)}function Ms(y,x){var N=y[x+0-32],L=y[x+1-32],$=y[x+2-32],W=y[x+3-32],Y=y[x+4-32],J=y[x+5-32],ee=y[x+6-32],ne=y[x+7-32];y[x+0+0]=N+L+1>>1,y[x+1+0]=y[x+0+64]=L+$+1>>1,y[x+2+0]=y[x+1+64]=$+W+1>>1,y[x+3+0]=y[x+2+64]=W+Y+1>>1,y[x+0+32]=Ut(N,L,$),y[x+1+32]=y[x+0+96]=Ut(L,$,W),y[x+2+32]=y[x+1+96]=Ut($,W,Y),y[x+3+32]=y[x+2+96]=Ut(W,Y,J),y[x+3+64]=Ut(Y,J,ee),y[x+3+96]=Ut(J,ee,ne)}function aB(y,x){var N=y[x-1+0],L=y[x-1+32],$=y[x-1+64],W=y[x-1+96];y[x+0+0]=N+L+1>>1,y[x+2+0]=y[x+0+32]=L+$+1>>1,y[x+2+32]=y[x+0+64]=$+W+1>>1,y[x+1+0]=Ut(N,L,$),y[x+3+0]=y[x+1+32]=Ut(L,$,W),y[x+3+32]=y[x+1+64]=Ut($,W,W),y[x+3+64]=y[x+2+64]=y[x+0+96]=y[x+1+96]=y[x+2+96]=y[x+3+96]=W}function sB(y,x){var N=y[x-1+0],L=y[x-1+32],$=y[x-1+64],W=y[x-1+96],Y=y[x-1-32],J=y[x+0-32],ee=y[x+1-32],ne=y[x+2-32];y[x+0+0]=y[x+2+32]=N+Y+1>>1,y[x+0+32]=y[x+2+64]=L+N+1>>1,y[x+0+64]=y[x+2+96]=$+L+1>>1,y[x+0+96]=W+$+1>>1,y[x+3+0]=Ut(J,ee,ne),y[x+2+0]=Ut(Y,J,ee),y[x+1+0]=y[x+3+32]=Ut(N,Y,J),y[x+1+32]=y[x+3+64]=Ut(L,N,Y),y[x+1+64]=y[x+3+96]=Ut($,L,N),y[x+1+96]=Ut(W,$,L)}function cd(y,x){var N;for(N=0;8>N;++N)n(y,x+32*N,y,x-32,8)}function gp(y,x){var N;for(N=0;8>N;++N)i(y,x,y[x-1],8),x+=32}function Za(y,x,N){var L;for(L=0;8>L;++L)i(x,N+32*L,y,8)}function lB(y,x){var N,L=8;for(N=0;8>N;++N)L+=y[x+N-32]+y[x-1+32*N];Za(L>>4,y,x)}function ud(y,x){var N,L=4;for(N=0;8>N;++N)L+=y[x+N-32];Za(L>>3,y,x)}function AB(y,x){var N,L=4;for(N=0;8>N;++N)L+=y[x-1+32*N];Za(L>>3,y,x)}function mp(y,x){Za(128,y,x)}function Gl(y,x,N){var L=y[x-N],$=y[x+0],W=3*($-L)+uB[1020+y[x-2*N]-y[x+N]],Y=Cv[112+(W+4>>3)];y[x-N]=vo[255+L+Cv[112+(W+3>>3)]],y[x+0]=vo[255+$-Y]}function yp(y,x,N,L){var $=y[x+0],W=y[x+N];return Wo[255+y[x-2*N]-y[x-N]]>L||Wo[255+W-$]>L}function _c(y,x,N,L){return 4*Wo[255+y[x-N]-y[x+0]]+Wo[255+y[x-2*N]-y[x+N]]<=L}function vp(y,x,N,L,$){var W=y[x-3*N],Y=y[x-2*N],J=y[x-N],ee=y[x+0],ne=y[x+N],de=y[x+2*N],be=y[x+3*N];return 4*Wo[255+J-ee]+Wo[255+Y-ne]>L?0:Wo[255+y[x-4*N]-W]<=$&&Wo[255+W-Y]<=$&&Wo[255+Y-J]<=$&&Wo[255+be-de]<=$&&Wo[255+de-ne]<=$&&Wo[255+ne-ee]<=$}function dd(y,x,N,L){var $=2*L+1;for(L=0;16>L;++L)_c(y,x+L,N,$)&&Gl(y,x+L,N)}function wp(y,x,N,L){var $=2*L+1;for(L=0;16>L;++L)_c(y,x+L*N,1,$)&&Gl(y,x+L*N,1)}function hd(y,x,N,L){var $;for($=3;0<$;--$)dd(y,x+=4*N,N,L)}function vv(y,x,N,L){var $;for($=3;0<$;--$)wp(y,x+=4,N,L)}function $s(y,x,N,L,$,W,Y,J){for(W=2*W+1;0<$--;){if(vp(y,x,N,W,Y))if(yp(y,x,N,J))Gl(y,x,N);else{var ee=y,ne=x,de=N,be=ee[ne-2*de],ie=ee[ne-de],fe=ee[ne+0],ye=ee[ne+de],Ie=ee[ne+2*de],we=27*(Ne=uB[1020+3*(fe-ie)+uB[1020+be-ye]])+63>>7,Fe=18*Ne+63>>7,Ne=9*Ne+63>>7;ee[ne-3*de]=vo[255+ee[ne-3*de]+Ne],ee[ne-2*de]=vo[255+be+Fe],ee[ne-de]=vo[255+ie+we],ee[ne+0]=vo[255+fe-we],ee[ne+de]=vo[255+ye-Fe],ee[ne+2*de]=vo[255+Ie-Ne]}x+=L}}function Hs(y,x,N,L,$,W,Y,J){for(W=2*W+1;0<$--;){if(vp(y,x,N,W,Y))if(yp(y,x,N,J))Gl(y,x,N);else{var ee=y,ne=x,de=N,be=ee[ne-de],ie=ee[ne+0],fe=ee[ne+de],ye=Cv[112+(4+(Ie=3*(ie-be))>>3)],Ie=Cv[112+(Ie+3>>3)],we=ye+1>>1;ee[ne-2*de]=vo[255+ee[ne-2*de]+we],ee[ne-de]=vo[255+be+Ie],ee[ne+0]=vo[255+ie-ye],ee[ne+de]=vo[255+fe-we]}x+=L}}function wv(y,x,N,L,$,W){$s(y,x,N,1,16,L,$,W)}function bv(y,x,N,L,$,W){$s(y,x,1,N,16,L,$,W)}function xv(y,x,N,L,$,W){var Y;for(Y=3;0<Y;--Y)Hs(y,x+=4*N,N,1,16,L,$,W)}function Sc(y,x,N,L,$,W){var Y;for(Y=3;0<Y;--Y)Hs(y,x+=4,1,N,16,L,$,W)}function Bv(y,x,N,L,$,W,Y,J){$s(y,x,$,1,8,W,Y,J),$s(N,L,$,1,8,W,Y,J)}
vendor: 16,007 bytes, line 398
398function C(y,x,N,L,$,W,Y,J){$s(y,x,1,$,8,W,Y,J),$s(N,L,1,$,8,W,Y,J)}function M(y,x,N,L,$,W,Y,J){Hs(y,x+4*$,$,1,8,W,Y,J),Hs(N,L+4*$,$,1,8,W,Y,J)}function te(y,x,N,L,$,W,Y,J){Hs(y,x+4,1,$,8,W,Y,J),Hs(N,L+4,1,$,8,W,Y,J)}function ce(){this.ba=new _t,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Xt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ge(){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 Ce(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Oe(){this.ua=0,this.Wa=new Me,this.vb=new Me,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new G,this.yc=new U}function yt(){this.xb=this.a=0,this.l=new od,this.ca=new _t,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new D,this.Pb=0,this.wd=new D,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Oe,this.ab=0,this.gc=a(4,Ce),this.Oc=0}function mt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new od,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Mt(y,x,N,L,$,W,Y){for(y=y==null?0:y[x+0],x=0;x<Y;++x)$[W+x]=y+N[L+x]&255,y=$[W+x]}function Kt(y,x,N,L,$,W,Y){var J;if(y==null)Mt(null,null,N,L,$,W,Y);else for(J=0;J<Y;++J)$[W+J]=y[x+J]+N[L+J]&255}function sr(y,x,N,L,$,W,Y){if(y==null)Mt(null,null,N,L,$,W,Y);else{var J,ee=y[x+0],ne=ee,de=ee;for(J=0;J<Y;++J)ne=de+(ee=y[x+J])-ne,de=N[L+J]+(-256&ne?0>ne?0:255:ne)&255,ne=ee,$[W+J]=de}}function Pn(y,x,N,L){var $=x.width,W=x.o;if(t(y!=null&&x!=null),0>N||0>=L||N+L>W)return null;if(!y.Cc){if(y.ga==null){var Y;if(y.ga=new mt,(Y=y.ga==null)||(Y=x.width*x.o,t(y.Gb.length==0),y.Gb=o(Y),y.Uc=0,y.Gb==null?Y=0:(y.mb=y.Gb,y.nb=y.Uc,y.rc=null,Y=1),Y=!Y),!Y){Y=y.ga;var J=y.Fa,ee=y.P,ne=y.qc,de=y.mb,be=y.nb,ie=ee+1,fe=ne-1,ye=Y.l;if(t(J!=null&&de!=null&&x!=null),tA[0]=null,tA[1]=Mt,tA[2]=Kt,tA[3]=sr,Y.ca=de,Y.tb=be,Y.c=x.width,Y.i=x.height,t(0<Y.c&&0<Y.i),1>=ne)x=0;else if(Y.$a=3&J[ee+0],Y.Z=J[ee+0]>>2&3,Y.Lc=J[ee+0]>>4&3,ee=J[ee+0]>>6&3,0>Y.$a||1<Y.$a||4<=Y.Z||1<Y.Lc||ee)x=0;else if(ye.put=Pe,ye.ac=ht,ye.bc=ct,ye.ma=Y,ye.width=x.width,ye.height=x.height,ye.Da=x.Da,ye.v=x.v,ye.va=x.va,ye.j=x.j,ye.o=x.o,Y.$a)e:{t(Y.$a==1),x=mr();t:for(;;){if(x==null){x=0;break e}if(t(Y!=null),Y.mc=x,x.c=Y.c,x.i=Y.i,x.l=Y.l,x.l.ma=Y,x.l.width=Y.c,x.l.height=Y.i,x.a=0,H(x.m,J,ie,fe),!On(Y.c,Y.i,1,x,null)||(x.ab==1&&x.gc[0].hc==3&&Qt(x.s)?(Y.ic=1,J=x.c*x.i,x.Ta=null,x.Ua=0,x.V=o(J),x.Ba=0,x.V==null?(x.a=1,x=0):x=1):(Y.ic=0,x=kr(x,Y.c)),!x))break t;x=1;break e}Y.mc=null,x=0}else x=fe>=Y.c*Y.i;Y=!x}if(Y)return null;y.ga.Lc!=1?y.Ga=0:L=W-N}t(y.ga!=null),t(N+L<=W);e:{if(x=(J=y.ga).c,W=J.l.o,J.$a==0){if(ie=y.rc,fe=y.Vc,ye=y.Fa,ee=y.P+1+N*x,ne=y.mb,de=y.nb+N*x,t(ee<=y.P+y.qc),J.Z!=0)for(t(tA[J.Z]!=null),Y=0;Y<L;++Y)tA[J.Z](ie,fe,ye,ee,ne,de,x),ie=ne,fe=de,de+=x,ee+=x;else for(Y=0;Y<L;++Y)n(ne,de,ye,ee,x),ie=ne,fe=de,de+=x,ee+=x;y.rc=ie,y.Vc=fe}else{if(t(J.mc!=null),x=N+L,t((Y=J.mc)!=null),t(x<=Y.i),Y.C>=x)x=1;else if(J.ic||un(),J.ic){J=Y.V,ie=Y.Ba,fe=Y.c;var Ie=Y.i,we=(ye=1,ee=Y.$/fe,ne=Y.$%fe,de=Y.m,be=Y.s,Y.$),Fe=fe*Ie,Ne=fe*x,Re=be.wc,je=we<Ne?Zt(be,ne,ee):null;t(we<=Fe),t(x<=Ie),t(Qt(be));t:for(;;){for(;!de.h&&we<Ne;){if(ne&Re||(je=Zt(be,ne,ee)),t(je!=null),se(de),256>(Ie=at(je.G[0],je.H[0],de)))J[ie+we]=Ie,++we,++ne>=fe&&(ne=0,++ee<=x&&!(ee%16)&&Ht(Y,ee));else{if(!(280>Ie)){ye=0;break t}Ie=wt(Ie-256,de);var It,ut=at(je.G[4],je.H[4],de);if(se(de),!(we>=(ut=St(fe,ut=wt(ut,de)))&&Fe-we>=Ie)){ye=0;break t}for(It=0;It<Ie;++It)J[ie+we+It]=J[ie+we+It-ut];for(we+=Ie,ne+=Ie;ne>=fe;)ne-=fe,++ee<=x&&!(ee%16)&&Ht(Y,ee);we<Ne&&ne&Re&&(je=Zt(be,ne,ee))}t(de.h==Z(de))}Ht(Y,ee>x?x:ee);break t}!ye||de.h&&we<Fe?(ye=0,Y.a=de.h?5:3):Y.$=we,x=ye}else x=rn(Y,Y.V,Y.Ba,Y.c,Y.i,x,Vl);if(!x){L=0;break e}}N+L>=W&&(y.Cc=1),L=1}if(!L)return null;if(y.Cc&&((L=y.ga)!=null&&(L.mc=null),y.ga=null,0<y.Ga))return alert("todo:WebPDequantizeLevels"),null}return y.nb+N*$}function jr(y,x,N,L,$,W){for(;0<$--;){var Y,J=y,ee=x+(N?1:0),ne=y,de=x+(N?0:3);for(Y=0;Y<L;++Y){var be=ne[de+4*Y];be!=255&&(be*=32897,J[ee+4*Y+0]=J[ee+4*Y+0]*be>>23,J[ee+4*Y+1]=J[ee+4*Y+1]*be>>23,J[ee+4*Y+2]=J[ee+4*Y+2]*be>>23)}x+=W}}function Fr(y,x,N,L,$){for(;0<L--;){var W;for(W=0;W<N;++W){var Y=y[x+2*W+0],J=15&(ne=y[x+2*W+1]),ee=4369*J,ne=(240&ne|ne>>4)*ee>>16;y[x+2*W+0]=(240&Y|Y>>4)*ee>>16&240|(15&Y|Y<<4)*ee>>16>>4&15,y[x+2*W+1]=240&ne|J}x+=$}}function Wr(y,x,N,L,$,W,Y,J){var ee,ne,de=255;for(ne=0;ne<$;++ne){for(ee=0;ee<L;++ee){var be=y[x+ee];W[Y+4*ee]=be,de&=be}x+=N,Y+=J}return de!=255}function cn(y,x,N,L,$){var W;for(W=0;W<$;++W)N[L+W]=y[x+W]>>8}function un(){Ip=jr,cT=Fr,uT=Wr,dT=cn}function wi(y,x,N){k[y]=function(L,$,W,Y,J,ee,ne,de,be,ie,fe,ye,Ie,we,Fe,Ne,Re){var je,It=Re-1>>1,ut=J[ee+0]|ne[de+0]<<16,Gt=be[ie+0]|fe[ye+0]<<16;t(L!=null);var bt=3*ut+Gt+131074>>2;for(x(L[$+0],255&bt,bt>>16,Ie,we),W!=null&&(bt=3*Gt+ut+131074>>2,x(W[Y+0],255&bt,bt>>16,Fe,Ne)),je=1;je<=It;++je){var ir=J[ee+je]|ne[de+je]<<16,Hn=be[ie+je]|fe[ye+je]<<16,Yt=ut+ir+Gt+Hn+524296,xt=Yt+2*(ir+Gt)>>3;bt=xt+ut>>1,ut=(Yt=Yt+2*(ut+Hn)>>3)+ir>>1,x(L[$+2*je-1],255&bt,bt>>16,Ie,we+(2*je-1)*N),x(L[$+2*je-0],255&ut,ut>>16,Ie,we+(2*je-0)*N),W!=null&&(bt=Yt+Gt>>1,ut=xt+Hn>>1,x(W[Y+2*je-1],255&bt,bt>>16,Fe,Ne+(2*je-1)*N),x(W[Y+2*je+0],255&ut,ut>>16,Fe,Ne+(2*je+0)*N)),ut=ir,Gt=Hn}1&Re||(bt=3*ut+Gt+131074>>2,x(L[$+Re-1],255&bt,bt>>16,Ie,we+(Re-1)*N),W!=null&&(bt=3*Gt+ut+131074>>2,x(W[Y+Re-1],255&bt,bt>>16,Fe,Ne+(Re-1)*N)))}}function Ks(){Go[Iv]=SG,Go[kv]=BT,Go[yT]=CG,Go[Fv]=ET,Go[Nv]=_T,Go[dB]=ST,Go[vT]=IG,Go[hB]=BT,Go[fB]=ET,Go[Tv]=_T,Go[pB]=ST}function bp(y){return y&~kG?0>y?0:255:y>>CT}function Cc(y,x){return bp((19077*y>>8)+(26149*x>>8)-14234)}function Ic(y,x,N){return bp((19077*y>>8)-(6419*x>>8)-(13320*N>>8)+8708)}function Yl(y,x){return bp((19077*y>>8)+(33050*x>>8)-17685)}function kc(y,x,N,L,$){L[$+0]=Cc(y,N),L[$+1]=Ic(y,x,N),L[$+2]=Yl(y,x)}function fd(y,x,N,L,$){L[$+0]=Yl(y,x),L[$+1]=Ic(y,x,N),L[$+2]=Cc(y,N)}function pd(y,x,N,L,$){var W=Ic(y,x,N);x=W<<3&224|Yl(y,x)>>3,L[$+0]=248&Cc(y,N)|W>>5,L[$+1]=x}function bi(y,x,N,L,$){var W=240&Yl(y,x)|15;L[$+0]=240&Cc(y,N)|Ic(y,x,N)>>4,L[$+1]=W}function Fc(y,x,N,L,$){L[$+0]=255,kc(y,x,N,L,$+1)}function Nc(y,x,N,L,$){fd(y,x,N,L,$),L[$+3]=255}function xp(y,x,N,L,$){kc(y,x,N,L,$),L[$+3]=255}function es(y,x,N){k[y]=function(L,$,W,Y,J,ee,ne,de,be){for(var ie=de+(-2&be)*N;de!=ie;)x(L[$+0],W[Y+0],J[ee+0],ne,de),x(L[$+1],W[Y+0],J[ee+0],ne,de+N),$+=2,++Y,++ee,de+=2*N;1&be&&x(L[$+0],W[Y+0],J[ee+0],ne,de)}}function Ui(y,x,N){return N==0?y==0?x==0?6:5:x==0?4:0:N}function Ev(y,x,N,L,$){switch(y>>>30){case 3:Vs(x,N,L,$,0);break;case 2:Zl(x,N,L,$);break;case 1:xi(x,N,L,$)}}function gd(y,x){var N,L,$=x.M,W=x.Nb,Y=y.oc,J=y.pc+40,ee=y.oc,ne=y.pc+584,de=y.oc,be=y.pc+600;for(N=0;16>N;++N)Y[J+32*N-1]=129;for(N=0;8>N;++N)ee[ne+32*N-1]=129,de[be+32*N-1]=129;for(0<$?Y[J-1-32]=ee[ne-1-32]=de[be-1-32]=129:(i(Y,J-32-1,127,21),i(ee,ne-32-1,127,9),i(de,be-32-1,127,9)),L=0;L<y.za;++L){var ie=x.ya[x.aa+L];if(0<L){for(N=-1;16>N;++N)n(Y,J+32*N-4,Y,J+32*N+12,4);for(N=-1;8>N;++N)n(ee,ne+32*N-4,ee,ne+32*N+4,4),n(de,be+32*N-4,de,be+32*N+4,4)}var fe=y.Gd,ye=y.Hd+L,Ie=ie.ad,we=ie.Hc;if(0<$&&(n(Y,J-32,fe[ye].y,0,16),n(ee,ne-32,fe[ye].f,0,8),n(de,be-32,fe[ye].ea,0,8)),ie.Za){var Fe=Y,Ne=J-32+16;for(0<$&&(L>=y.za-1?i(Fe,Ne,fe[ye].y[15],4):n(Fe,Ne,fe[ye+1].y,0,4)),N=0;4>N;N++)Fe[Ne+128+N]=Fe[Ne+256+N]=Fe[Ne+384+N]=Fe[Ne+0+N];for(N=0;16>N;++N,we<<=2)Fe=Y,Ne=J+kT[N],wa[ie.Ob[N]](Fe,Ne),Ev(we,Ie,16*+N,Fe,Ne)}else if(Fe=Ui(L,$,ie.Ob[0]),eA[Fe](Y,J),we!=0)for(N=0;16>N;++N,we<<=2)Ev(we,Ie,16*+N,Y,J+kT[N]);for(N=ie.Gc,Fe=Ui(L,$,ie.Dd),Ws[Fe](ee,ne),Ws[Fe](de,be),we=Ie,Fe=ee,Ne=ne,255&(ie=0|N)&&(170&ie?bd(we,256,Fe,Ne):rs(we,256,Fe,Ne)),ie=de,we=be,255&(N>>=8)&&(170&N?bd(Ie,320,ie,we):rs(Ie,320,ie,we)),$<y.Ub-1&&(n(fe[ye].y,0,Y,J+480,16),n(fe[ye].f,0,ee,ne+224,8),n(fe[ye].ea,0,de,be+224,8)),N=8*W*y.B,fe=y.sa,ye=y.ta+16*L+16*W*y.R,Ie=y.qa,ie=y.ra+8*L+N,we=y.Ha,Fe=y.Ia+8*L+N,N=0;16>N;++N)n(fe,ye+N*y.R,Y,J+32*N,16);for(N=0;8>N;++N)n(Ie,ie+N*y.B,ee,ne+32*N,8),n(we,Fe+N*y.B,de,be+32*N,8)}}function _v(y,x,N,L,$,W,Y,J,ee){var ne=[0],de=[0],be=0,ie=ee!=null?ee.kd:0,fe=ee??new ge;if(y==null||12>N)return 7;fe.data=y,fe.w=x,fe.ha=N,x=[x],N=[N],fe.gb=[fe.gb];e:{var ye=x,Ie=N,we=fe.gb;if(t(y!=null),t(Ie!=null),t(we!=null),we[0]=0,12<=Ie[0]&&!r(y,ye[0],"RIFF")){if(r(y,ye[0]+8,"WEBP")){we=3;break e}var Fe=ve(y,ye[0]+4);if(12>Fe||4294967286<Fe){we=3;break e}if(ie&&Fe>Ie[0]-8){we=7;break e}we[0]=Fe,ye[0]+=12,Ie[0]-=12}we=0}if(we!=0)return we;for(Fe=0<fe.gb[0],N=N[0];;){e:{var Ne=y;Ie=x,we=N;var Re=ne,je=de,It=ye=[0];if((bt=be=[be])[0]=0,8>we[0])we=7;else{if(!r(Ne,Ie[0],"VP8X")){if(ve(Ne,Ie[0]+4)!=10){we=3;break e}if(18>we[0]){we=7;break e}var ut=ve(Ne,Ie[0]+8),Gt=1+_e(Ne,Ie[0]+12);if(2147483648<=Gt*(Ne=1+_e(Ne,Ie[0]+15))){we=3;break e}It!=null&&(It[0]=ut),Re!=null&&(Re[0]=Gt),je!=null&&(je[0]=Ne),Ie[0]+=18,we[0]-=18,bt[0]=1}we=0}}if(be=be[0],ye=ye[0],we!=0)return we;if(Ie=!!(2&ye),!Fe&&be)return 3;if(W!=null&&(W[0]=!!(16&ye)),Y!=null&&(Y[0]=Ie),J!=null&&(J[0]=0),Y=ne[0],ye=de[0],be&&Ie&&ee==null){we=0;break}if(4>N){we=7;break}if(Fe&&be||!Fe&&!be&&!r(y,x[0],"ALPH")){N=[N],fe.na=[fe.na],fe.P=[fe.P],fe.Sa=[fe.Sa];e:{ut=y,we=x,Fe=N;var bt=fe.gb;Re=fe.na,je=fe.P,It=fe.Sa,Gt=22,t(ut!=null),t(Fe!=null),Ne=we[0];var ir=Fe[0];for(t(Re!=null),t(It!=null),Re[0]=null,je[0]=null,It[0]=0;;){if(we[0]=Ne,Fe[0]=ir,8>ir){we=7;break e}var Hn=ve(ut,Ne+4);if(4294967286<Hn){we=3;break e}var Yt=8+Hn+1&-2;if(Gt+=Yt,0<bt&&Gt>bt){we=3;break e}if(!r(ut,Ne,"VP8 ")||!r(ut,Ne,"VP8L")){we=0;break e}if(ir[0]<Yt){we=7;break e}r(ut,Ne,"ALPH")||(Re[0]=ut,je[0]=Ne+8,It[0]=Hn),Ne+=Yt,ir-=Yt}}if(N=N[0],fe.na=fe.na[0],fe.P=fe.P[0],fe.Sa=fe.Sa[0],we!=0)break}N=[N],fe.Ja=[fe.Ja],fe.xa=[fe.xa];e:if(bt=y,we=x,Fe=N,Re=fe.gb[0],je=fe.Ja,It=fe.xa,ut=we[0],Ne=!r(bt,ut,"VP8 "),Gt=!r(bt,ut,"VP8L"),t(bt!=null),t(Fe!=null),t(je!=null),t(It!=null),8>Fe[0])we=7;else{if(Ne||Gt){if(bt=ve(bt,ut+4),12<=Re&&bt>Re-12){we=3;break e}if(ie&&bt>Fe[0]-8){we=7;break e}je[0]=bt,we[0]+=8,Fe[0]-=8,It[0]=Gt}else It[0]=5<=Fe[0]&&bt[ut+0]==47&&!(bt[ut+4]>>5),je[0]=Fe[0];we=0}if(N=N[0],fe.Ja=fe.Ja[0],fe.xa=fe.xa[0],x=x[0],we!=0)break;if(4294967286<fe.Ja)return 3;if(J==null||Ie||(J[0]=fe.xa?2:1),Y=[Y],ye=[ye],fe.xa){if(5>N){we=7;break}J=Y,ie=ye,Ie=W,y==null||5>N?y=0:5<=N&&y[x+0]==47&&!(y[x+4]>>5)?(Fe=[0],bt=[0],Re=[0],H(je=new D,y,x,N),qe(je,Fe,bt,Re)?(J!=null&&(J[0]=Fe[0]),ie!=null&&(ie[0]=bt[0]),Ie!=null&&(Ie[0]=Re[0]),y=1):y=0):y=0}else{if(10>N){we=7;break}J=ye,y==null||10>N||!pv(y,x+3,N-3)?y=0:(ie=y[x+0]|y[x+1]<<8|y[x+2]<<16,Ie=16383&(y[x+7]<<8|y[x+6]),y=16383&(y[x+9]<<8|y[x+8]),1&ie||3<(ie>>1&7)||!(ie>>4&1)||ie>>5>=fe.Ja||!Ie||!y?y=0:(Y&&(Y[0]=Ie),J&&(J[0]=y),y=1))}if(!y||(Y=Y[0],ye=ye[0],be&&(ne[0]!=Y||de[0]!=ye)))return 3;ee!=null&&(ee[0]=fe,ee.offset=x-ee.w,t(4294967286>x-ee.w),t(ee.offset==ee.ha-N));break}return we==0||we==7&&be&&ee==null?(W!=null&&(W[0]|=fe.na!=null&&0<fe.na.length),L!=null&&(L[0]=Y),$!=null&&($[0]=ye),0):we}function zo(y,x,N){var L=x.width,$=x.height,W=0,Y=0,J=L,ee=$;if(x.Da=y!=null&&0<y.Da,x.Da&&(J=y.cd,ee=y.bd,W=y.v,Y=y.j,11>N||(W&=-2,Y&=-2),0>W||0>Y||0>=J||0>=ee||W+J>L||Y+ee>$))return 0;if(x.v=W,x.j=Y,x.va=W+J,x.o=Y+ee,x.U=J,x.T=ee,x.da=y!=null&&0<y.da,x.da){if(!De(J,ee,N=[y.ib],W=[y.hb]))return 0;x.ib=N[0],x.hb=W[0]}return x.ob=y!=null&&y.ob,x.Kb=y==null||!y.Sd,x.da&&(x.ob=x.ib<3*L/4&&x.hb<3*$/4,x.Kb=0),1}function Tc(y){if(y==null)return 2;if(11>y.S){var x=y.f.RGBA;x.fb+=(y.height-1)*x.A,x.A=-x.A}else x=y.f.kb,y=y.height,x.O+=(y-1)*x.fa,x.fa=-x.fa,x.N+=(y-1>>1)*x.Ab,x.Ab=-x.Ab,x.W+=(y-1>>1)*x.Db,x.Db=-x.Db,x.F!=null&&(x.J+=(y-1)*x.lb,x.lb=-x.lb);return 0}function Bp(y,x,N,L){if(L==null||0>=y||0>=x)return 2;if(N!=null){if(N.Da){var $=N.cd,W=N.bd,Y=-2&N.v,J=-2&N.j;if(0>Y||0>J||0>=$||0>=W||Y+$>y||J+W>x)return 2;y=$,x=W}if(N.da){if(!De(y,x,$=[N.ib],W=[N.hb]))return 2;y=$[0],x=W[0]}}L.width=y,L.height=x;e:{var ee=L.width,ne=L.height;if(y=L.S,0>=ee||0>=ne||!(y>=Iv&&13>y))y=2;else{if(0>=L.Rd&&L.sd==null){Y=W=$=x=0;var de=(J=ee*FT[y])*ne;if(11>y||(W=(ne+1)/2*(x=(ee+1)/2),y==12&&(Y=($=ee)*ne)),(ne=o(de+2*W+Y))==null){y=1;break e}L.sd=ne,11>y?((ee=L.f.RGBA).eb=ne,ee.fb=0,ee.A=J,ee.size=de):((ee=L.f.kb).y=ne,ee.O=0,ee.fa=J,ee.Fd=de,ee.f=ne,ee.N=0+de,ee.Ab=x,ee.Cd=W,ee.ea=ne,ee.W=0+de+W,ee.Db=x,ee.Ed=W,y==12&&(ee.F=ne,ee.J=0+de+2*W),ee.Tc=Y,ee.lb=$)}if(x=1,$=L.S,W=L.width,Y=L.height,$>=Iv&&13>$)if(11>$)y=L.f.RGBA,x&=(J=Math.abs(y.A))*(Y-1)+W<=y.size,x&=J>=W*FT[$],x&=y.eb!=null;else{y=L.f.kb,J=(W+1)/2,de=(Y+1)/2,ee=Math.abs(y.fa),ne=Math.abs(y.Ab);var be=Math.abs(y.Db),ie=Math.abs(y.lb),fe=ie*(Y-1)+W;x&=ee*(Y-1)+W<=y.Fd,x&=ne*(de-1)+J<=y.Cd,x=(x&=be*(de-1)+J<=y.Ed)&ee>=W&ne>=J&be>=J,x&=y.y!=null,x&=y.f!=null,x&=y.ea!=null,$==12&&(x&=ie>=W,x&=fe<=y.Tc,x&=y.F!=null)}else x=0;y=x?0:2}}return y!=0||N!=null&&N.fd&&(y=Tc(L)),y}var md=64,Oc=[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],Ep=24,Ri=32,to=8,yd=[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];me("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(y){return y},k.Predictor2=function(y,x,N){return x[N+0]},k.Predictor3=function(y,x,N){return x[N+1]},k.Predictor4=function(y,x,N){return x[N-1]},k.Predictor5=function(y,x,N){return Ue(Ue(y,x[N+1]),x[N+0])},k.Predictor6=function(y,x,N){return Ue(y,x[N-1])},k.Predictor7=function(y,x,N){return Ue(y,x[N+0])},k.Predictor8=function(y,x,N){return Ue(x[N-1],x[N+0])},k.Predictor9=function(y,x,N){return Ue(x[N+0],x[N+1])},k.Predictor10=function(y,x,N){return Ue(Ue(y,x[N-1]),Ue(x[N+0],x[N+1]))},k.Predictor11=function(y,x,N){var L=x[N+0];return 0>=Ge(L>>24&255,y>>24&255,(x=x[N-1])>>24&255)+Ge(L>>16&255,y>>16&255,x>>16&255)+Ge(L>>8&255,y>>8&255,x>>8&255)+Ge(255&L,255&y,255&x)?L:y},k.Predictor12=function(y,x,N){var L=x[N+0];return(Bt((y>>24&255)+(L>>24&255)-((x=x[N-1])>>24&255))<<24|Bt((y>>16&255)+(L>>16&255)-(x>>16&255))<<16|Bt((y>>8&255)+(L>>8&255)-(x>>8&255))<<8|Bt((255&y)+(255&L)-(255&x)))>>>0},k.Predictor13=function(y,x,N){var L=x[N-1];return(Et((y=Ue(y,x[N+0]))>>24&255,L>>24&255)<<24|Et(y>>16&255,L>>16&255)<<16|Et(y>>8&255,L>>8&255)<<8|Et(255&y,255&L))>>>0};var ql=k.PredictorAdd0;k.PredictorAdd1=Je,me("Predictor2","PredictorAdd2"),me("Predictor3","PredictorAdd3"),me("Predictor4","PredictorAdd4"),me("Predictor5","PredictorAdd5"),me("Predictor6","PredictorAdd6"),me("Predictor7","PredictorAdd7"),me("Predictor8","PredictorAdd8"),me("Predictor9","PredictorAdd9"),me("Predictor10","PredictorAdd10"),me("Predictor11","PredictorAdd11"),me("Predictor12","PredictorAdd12"),me("Predictor13","PredictorAdd13");var Xl=k.PredictorAdd2;tt("ColorIndexInverseTransform","MapARGB","32b",function(y){return y>>8&255},function(y){return y}),tt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(y){return y},function(y){return y>>8&255});var vd,jc=k.ColorIndexInverseTransform,Ln=k.MapARGB,cB=k.VP8LColorIndexInverseTransformAlpha,ts=k.MapAlpha,va=k.VP8LPredictorsAdd=[];va.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var Pc,_p,Sp,wd,Lc,Uc,Jl,Vs,Zl,bd,xi,rs,Rr,Dr,En,$n,zs,Cp,xd,Sv,aT,sT,lT,AT,Ip,cT,uT,dT,hT=o(511),fT=o(2041),pT=o(225),gT=o(767),mT=0,uB=fT,Cv=pT,vo=gT,Wo=hT,Iv=0,kv=1,yT=2,Fv=3,Nv=4,dB=5,vT=6,hB=7,fB=8,Tv=9,pB=10,dG=[2,3,7],hG=[3,3,11],wT=[280,256,256,256,40],fG=[0,1,1,1,0],pG=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],gG=[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,3
vendor: 4,386 bytes, line 398
3986,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],mG=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],yG=8,gB=[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],mB=[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],kp=null,vG=[[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]],wG=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],bT=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],bG=[[[[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
3985,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]]]],xG=[[[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,
3981,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]]],BG=[[[[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: 5,307 bytes, line 398
3985,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]]]],EG=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],eA=[],wa=[],Ws=[],_G=1,xT=2,tA=[],Go=[];wi("UpsampleRgbLinePair",kc,3),wi("UpsampleBgrLinePair",fd,3),wi("UpsampleRgbaLinePair",xp,4),wi("UpsampleBgraLinePair",Nc,4),wi("UpsampleArgbLinePair",Fc,4),wi("UpsampleRgba4444LinePair",bi,2),wi("UpsampleRgb565LinePair",pd,2);var SG=k.UpsampleRgbLinePair,CG=k.UpsampleBgrLinePair,BT=k.UpsampleRgbaLinePair,ET=k.UpsampleBgraLinePair,_T=k.UpsampleArgbLinePair,ST=k.UpsampleRgba4444LinePair,IG=k.UpsampleRgb565LinePair,Ov=16,jv=1<<Ov-1,Fp=-227,yB=482,CT=6,kG=(256<<CT)-1,IT=0,FG=o(256),NG=o(256),TG=o(256),OG=o(256),jG=o(yB-Fp),PG=o(yB-Fp);es("YuvToRgbRow",kc,3),es("YuvToBgrRow",fd,3),es("YuvToRgbaRow",xp,4),es("YuvToBgraRow",Nc,4),es("YuvToArgbRow",Fc,4),es("YuvToRgba4444Row",bi,2),es("YuvToRgb565Row",pd,2);var kT=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Pv=[0,2,8],LG=[8,7,6,4,4,2,2,2,1,1,1,1],UG=1;this.WebPDecodeRGBA=function(y,x,N,L,$){var W=kv,Y=new ce,J=new _t;Y.ba=J,J.S=W,J.width=[J.width],J.height=[J.height];var ee=J.width,ne=J.height,de=new We;if(de==null||y==null)var be=2;else t(de!=null),be=_v(y,x,N,de.width,de.height,de.Pd,de.Qd,de.format,null);if(be!=0?ee=0:(ee!=null&&(ee[0]=de.width[0]),ne!=null&&(ne[0]=de.height[0]),ee=1),ee){J.width=J.width[0],J.height=J.height[0],L!=null&&(L[0]=J.width),$!=null&&($[0]=J.height);e:{if(L=new od,($=new ge).data=y,$.w=x,$.ha=N,$.kd=1,x=[0],t($!=null),((y=_v($.data,$.w,$.ha,null,null,null,x,null,$))==0||y==7)&&x[0]&&(y=4),(x=y)==0){if(t(Y!=null),L.data=$.data,L.w=$.w+$.offset,L.ha=$.ha-$.offset,L.put=Pe,L.ac=ht,L.bc=ct,L.ma=Y,$.xa){if((y=mr())==null){Y=1;break e}if(function(ie,fe){var ye=[0],Ie=[0],we=[0];t:for(;;){if(ie==null)return 0;if(fe==null)return ie.a=2,0;if(ie.l=fe,ie.a=0,H(ie.m,fe.data,fe.w,fe.ha),!qe(ie.m,ye,Ie,we)){ie.a=3;break t}if(ie.xb=xT,fe.width=ye[0],fe.height=Ie[0],!On(ye[0],Ie[0],1,ie,null))break t;return 1}return t(ie.a!=0),0}(y,L)){if(L=(x=Bp(L.width,L.height,Y.Oa,Y.ba))==0){t:{L=y;r:for(;;){if(L==null){L=0;break t}if(t(L.s.yc!=null),t(L.s.Ya!=null),t(0<L.s.Wb),t((N=L.l)!=null),t(($=N.ma)!=null),L.xb!=0){if(L.ca=$.ba,L.tb=$.tb,t(L.ca!=null),!zo($.Oa,N,Fv)){L.a=2;break r}if(!kr(L,N.width)||N.da)break r;if((N.da||Qe(L.ca.S))&&un(),11>L.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),L.ca.f.kb.F!=null&&un()),L.Pb&&0<L.s.ua&&L.s.vb.X==null&&!z(L.s.vb,L.s.Wa.Xa)){L.a=1;break r}L.xb=0}if(!rn(L,L.V,L.Ba,L.c,L.i,N.o,kt))break r;$.Dc=L.Ma,L=1;break t}t(L.a!=0),L=0}L=!L}L&&(x=y.a)}else x=y.a}else{if((y=new W2)==null){Y=1;break e}if(y.Fa=$.na,y.P=$.P,y.qc=$.Sa,Xa(y,L)){if((x=Bp(L.width,L.height,Y.Oa,Y.ba))==0){if(y.Aa=0,N=Y.Oa,t(($=y)!=null),N!=null){if(0<(ee=0>(ee=N.Md)?0:100<ee?255:255*ee/100)){for(ne=de=0;4>ne;++ne)12>(be=$.pb[ne]).lc&&(be.ia=ee*LG[0>be.lc?0:be.lc]>>3),de|=be.ia;de&&(alert("todo:VP8InitRandom"),$.ia=1)}$.Ga=N.Id,100<$.Ga?$.Ga=100:0>$.Ga&&($.Ga=0)}(function(ie,fe){if(ie==null)return 0;if(fe==null)return jn(ie,2,"NULL VP8Io parameter in VP8Decode().");if(!ie.cb&&!Xa(ie,fe))return 0;if(t(ie.cb),fe.ac==null||fe.ac(fe)){fe.ob&&(ie.L=0);var ye=Pv[ie.L];if(ie.L==2?(ie.yb=0,ie.zb=0):(ie.yb=fe.v-ye>>4,ie.zb=fe.j-ye>>4,0>ie.yb&&(ie.yb=0),0>ie.zb&&(ie.zb=0)),ie.Va=fe.o+15+ye>>4,ie.Hb=fe.va+15+ye>>4,ie.Hb>ie.za&&(ie.Hb=ie.za),ie.Va>ie.Ub&&(ie.Va=ie.Ub),0<ie.L){var Ie=ie.ed;for(ye=0;4>ye;++ye){var we;if(ie.Qa.Cb){var Fe=ie.Qa.Lb[ye];ie.Qa.Fb||(Fe+=Ie.Tb)}else Fe=Ie.Tb;for(we=0;1>=we;++we){var Ne=ie.gd[ye][we],Re=Fe;if(Ie.Pc&&(Re+=Ie.vd[0],we&&(Re+=Ie.od[0])),0<(Re=0>Re?0:63<Re?63:Re)){var je=Re;0<Ie.wb&&(je=4<Ie.wb?je>>2:je>>1)>9-Ie.wb&&(je=9-Ie.wb),1>je&&(je=1),Ne.dd=je,Ne.tc=2*Re+je,Ne.ld=40<=Re?2:15<=Re?1:0}else Ne.tc=0;Ne.La=we}}}ye=0}else jn(ie,6,"Frame setup failed"),ye=ie.a;if(ye=ye==0){if(ye){ie.$c=0,0<ie.Aa||(ie.Ic=UG);t:{ye=ie.Ic,Ie=4*(je=ie.za);var It=32*je,ut=je+1,Gt=0<ie.L?je*(0<ie.Aa?2:1):0,bt=(ie.Aa==2?2:1)*je;if((Ne=Ie+832+(we=3*(16*ye+Pv[ie.L])/2*It)+(Fe=ie.Fa!=null&&0<ie.Fa.length?ie.Kc.c*ie.Kc.i:0))!=Ne)ye=0;else{if(Ne>ie.Vb){if(ie.Vb=0,ie.Ec=o(Ne),ie.Fc=0,ie.Ec==null){ye=jn(ie,1,"no memory during frame initialization.");break t}ie.Vb=Ne}Ne=ie.Ec,Re=ie.Fc,ie.Ac=Ne,ie.Bc=Re,Re+=Ie,ie.Gd=a(It,hv),ie.Hd=0,ie.rb=a(ut+1,dp),ie.sb=1,ie.wa=Gt?a(Gt,Vo):null,ie.Y=0,ie.D.Nb=0,ie.D.wa=ie.wa,ie.D.Y=ie.Y,0<ie.Aa&&(ie.D.Y+=je),t(!0),ie.oc=Ne,ie.pc=Re,Re+=832,ie.ya=a(bt,hp),ie.aa=0,ie.D.ya=ie.ya,ie.D.aa=ie.aa,ie.Aa==2&&(ie.D.aa+=je),ie.R=16*je,ie.B=8*je,je=(It=Pv[ie.L])*ie.R,It=It/2*ie.B,ie.sa=Ne,ie.ta=Re+je,ie.qa=ie.sa,ie.ra=ie.ta+16*ye*ie.R+It,
vendor: 1,141 bytes, line 398
398ie.Ha=ie.qa,ie.Ia=ie.ra+8*ye*ie.B+It,ie.$c=0,Re+=we,ie.mb=Fe?Ne:null,ie.nb=Fe?Re:null,t(Re+Fe<=ie.Fc+ie.Vb),fp(ie),i(ie.Ac,ie.Bc,0,Ie),ye=1}}if(ye){if(fe.ka=0,fe.y=ie.sa,fe.O=ie.ta,fe.f=ie.qa,fe.N=ie.ra,fe.ea=ie.Ha,fe.Vd=ie.Ia,fe.fa=ie.R,fe.Rc=ie.B,fe.F=null,fe.J=0,!mT){for(ye=-255;255>=ye;++ye)hT[255+ye]=0>ye?-ye:ye;for(ye=-1020;1020>=ye;++ye)fT[1020+ye]=-128>ye?-128:127<ye?127:ye;for(ye=-112;112>=ye;++ye)pT[112+ye]=-16>ye?-16:15<ye?15:ye;for(ye=-255;510>=ye;++ye)gT[255+ye]=0>ye?0:255<ye?255:ye;mT=1}Jl=mv,Vs=G2,bd=Y2,xi=q2,rs=Ja,Zl=gv,Rr=wv,Dr=bv,En=Bv,$n=C,zs=xv,Cp=Sc,xd=M,Sv=te,aT=dd,sT=wp,lT=hd,AT=vv,wa[0]=nB,wa[1]=Ad,wa[2]=tB,wa[3]=rB,wa[4]=iB,wa[5]=Qs,wa[6]=oB,wa[7]=Ms,wa[8]=sB,wa[9]=aB,eA[0]=yv,eA[1]=X2,eA[2]=J2,eA[3]=Z2,eA[4]=Wl,eA[5]=eB,eA[6]=Ec,Ws[0]=lB,Ws[1]=pp,Ws[2]=cd,Ws[3]=gp,Ws[4]=AB,Ws[5]=ud,Ws[6]=mp,ye=1}else ye=0}ye&&(ye=function(ir,Hn){for(ir.M=0;ir.M<ir.Va;++ir.M){var Yt,xt=ir.Jc[ir.M&ir.Xb],Xe=ir.m,_n=ir;for(Yt=0;Yt<_n.za;++Yt){var Vt=Xe,lr=_n,Gr=lr.Ac,ai=lr.Bc+4*Yt,Di=lr.zc,gn=lr.ya[lr.aa+Yt];if(lr.Qa.Bb?gn.$b=he(Vt,lr.Pa.jb[0])?2+he(Vt,lr.Pa.jb[2]):he(Vt,lr.Pa.jb[1]):gn.$b=0,lr.kc&&(gn.Ad=he(Vt,lr.Bd)
vendor: 5,123 bytes, line 398
398),gn.Za=!he(Vt,145)+0,gn.Za){var Bi=gn.Ob,Qi=0;for(lr=0;4>lr;++lr){var Kn,Ar=Di[0+lr];for(Kn=0;4>Kn;++Kn){Ar=xG[Gr[ai+Kn]][Ar];for(var Br=bT[he(Vt,Ar[0])];0<Br;)Br=bT[2*Br+he(Vt,Ar[Br])];Ar=-Br,Gr[ai+Kn]=Ar}n(Bi,Qi,Gr,ai,4),Qi+=4,Di[0+lr]=Ar}}else Ar=he(Vt,156)?he(Vt,128)?1:3:he(Vt,163)?2:0,gn.Ob[0]=Ar,i(Gr,ai,Ar,4),i(Di,0,Ar,4);gn.Dd=he(Vt,142)?he(Vt,114)?he(Vt,183)?1:3:2:0}if(_n.m.Ka)return jn(ir,7,"Premature end-of-partition0 encountered.");for(;ir.ja<ir.za;++ir.ja){if(_n=xt,Vt=(Xe=ir).rb[Xe.sb-1],Gr=Xe.rb[Xe.sb+Xe.ja],Yt=Xe.ya[Xe.aa+Xe.ja],ai=Xe.kc?Yt.Ad:0)Vt.la=Gr.la=0,Yt.Za||(Vt.Na=Gr.Na=0),Yt.Hc=0,Yt.Gc=0,Yt.ia=0;else{var mn,Er;if(Vt=Gr,Gr=_n,ai=Xe.Pa.Xc,Di=Xe.ya[Xe.aa+Xe.ja],gn=Xe.pb[Di.$b],lr=Di.ad,Bi=0,Qi=Xe.rb[Xe.sb-1],Ar=Kn=0,i(lr,Bi,0,384),Di.Za)var si=0,ba=ai[3];else{Br=o(16);var Sn=Vt.Na+Qi.Na;if(Sn=kp(Gr,ai[1],Sn,gn.Eb,0,Br,0),Vt.Na=Qi.Na=(0<Sn)+0,1<Sn)Jl(Br,0,lr,Bi);else{var ro=Br[0]+3>>3;for(Br=0;256>Br;Br+=16)lr[Bi+Br]=ro}si=1,ba=ai[0]}var Pr=15&Vt.la,Vn=15&Qi.la;for(Br=0;4>Br;++Br){var wo=1&Vn;for(ro=Er=0;4>ro;++ro)Pr=Pr>>1|(wo=(Sn=kp(Gr,ba,Sn=wo+(1&Pr),gn.Sc,si,lr,Bi))>si)<<7,Er=Er<<2|(3<Sn?3:1<Sn?2:lr[Bi+0]!=0),Bi+=16;Pr>>=4,Vn=Vn>>1|wo<<7,Kn=(Kn<<8|Er)>>>0}for(ba=Pr,si=Vn>>4,mn=0;4>mn;mn+=2){for(Er=0,Pr=Vt.la>>4+mn,Vn=Qi.la>>4+mn,Br=0;2>Br;++Br){for(wo=1&Vn,ro=0;2>ro;++ro)Sn=wo+(1&Pr),Pr=Pr>>1|(wo=0<(Sn=kp(Gr,ai[2],Sn,gn.Qc,0,lr,Bi)))<<3,Er=Er<<2|(3<Sn?3:1<Sn?2:lr[Bi+0]!=0),Bi+=16;Pr>>=2,Vn=Vn>>1|wo<<5}Ar|=Er<<4*mn,ba|=Pr<<4<<mn,si|=(240&Vn)<<mn}Vt.la=ba,Qi.la=si,Di.Hc=Kn,Di.Gc=Ar,Di.ia=43690&Ar?0:gn.ia,ai=!(Kn|Ar)}if(0<Xe.L&&(Xe.wa[Xe.Y+Xe.ja]=Xe.gd[Yt.$b][Yt.Za],Xe.wa[Xe.Y+Xe.ja].La|=!ai),_n.Ka)return jn(ir,7,"Premature end-of-file encountered.")}if(fp(ir),Xe=Hn,_n=1,Yt=(xt=ir).D,Vt=0<xt.L&&xt.M>=xt.zb&&xt.M<=xt.Va,xt.Aa==0)t:{if(Yt.M=xt.M,Yt.uc=Vt,gd(xt,Yt),_n=1,Yt=(Er=xt.D).Nb,Vt=(Ar=Pv[xt.L])*xt.R,Gr=Ar/2*xt.B,Br=16*Yt*xt.R,ro=8*Yt*xt.B,ai=xt.sa,Di=xt.ta-Vt+Br,gn=xt.qa,lr=xt.ra-Gr+ro,Bi=xt.Ha,Qi=xt.Ia-Gr+ro,Vn=(Pr=Er.M)==0,Kn=Pr>=xt.Va-1,xt.Aa==2&&gd(xt,Er),Er.uc)for(wo=(Sn=xt).D.M,t(Sn.D.uc),Er=Sn.yb;Er<Sn.Hb;++Er){si=Er,ba=wo;var Mi=(bo=(li=Sn).D).Nb;mn=li.R;var bo=bo.wa[bo.Y+si],xo=li.sa,no=li.ta+16*Mi*mn+16*si,Bo=bo.dd,Qr=bo.tc;if(Qr!=0)if(t(3<=Qr),li.L==1)0<si&&sT(xo,no,mn,Qr+4),bo.La&&AT(xo,no,mn,Qr),0<ba&&aT(xo,no,mn,Qr+4),bo.La&&lT(xo,no,mn,Qr);else{var Eo=li.B,xa=li.qa,Rc=li.ra+8*Mi*Eo+8*si,Gs=li.Ha,li=li.Ia+8*Mi*Eo+8*si;Mi=bo.ld,0<si&&(Dr(xo,no,mn,Qr+4,Bo,Mi),$n(xa,Rc,Gs,li,Eo,Qr+4,Bo,Mi)),bo.La&&(Cp(xo,no,mn,Qr,Bo,Mi),Sv(xa,Rc,Gs,li,Eo,Qr,Bo,Mi)),0<ba&&(Rr(xo,no,mn,Qr+4,Bo,Mi),En(xa,Rc,Gs,li,Eo,Qr+4,Bo,Mi)),bo.La&&(zs(xo,no,mn,Qr,Bo,Mi),xd(xa,Rc,Gs,li,Eo,Qr,Bo,Mi))}}if(xt.ia&&alert("todo:DitherRow"),Xe.put!=null){if(Er=16*Pr,Pr=16*(Pr+1),Vn?(Xe.y=xt.sa,Xe.O=xt.ta+Br,Xe.f=xt.qa,Xe.N=xt.ra+ro,Xe.ea=xt.Ha,Xe.W=xt.Ia+ro):(Er-=Ar,Xe.y=ai,Xe.O=Di,Xe.f=gn,Xe.N=lr,Xe.ea=Bi,Xe.W=Qi),Kn||(Pr-=Ar),Pr>Xe.o&&(Pr=Xe.o),Xe.F=null,Xe.J=null,xt.Fa!=null&&0<xt.Fa.length&&Er<Pr&&(Xe.J=Pn(xt,Xe,Er,Pr-Er),Xe.F=xt.mb,Xe.F==null&&Xe.F.length==0)){_n=jn(xt,3,"Could not decode alpha data.");break t}Er<Xe.j&&(Ar=Xe.j-Er,Er=Xe.j,t(!(1&Ar)),Xe.O+=xt.R*Ar,Xe.N+=xt.B*(Ar>>1),Xe.W+=xt.B*(Ar>>1),Xe.F!=null&&(Xe.J+=Xe.width*Ar)),Er<Pr&&(Xe.O+=Xe.v,Xe.N+=Xe.v>>1,Xe.W+=Xe.v>>1,Xe.F!=null&&(Xe.J+=Xe.v),Xe.ka=Er-Xe.j,Xe.U=Xe.va-Xe.v,Xe.T=Pr-Er,_n=Xe.put(Xe))}Yt+1!=xt.Ic||Kn||(n(xt.sa,xt.ta-Vt,ai,Di+16*xt.R,Vt),n(xt.qa,xt.ra-Gr,gn,lr+8*xt.B,Gr),n(xt.Ha,xt.Ia-Gr,Bi,Qi+8*xt.B,Gr))}if(!_n)return jn(ir,6,"Output aborted.")}return 1}(ie,fe)),fe.bc!=null&&fe.bc(fe),ye&=1}return ye?(ie.cb=0,ye):0})(y,L)||(x=y.a)}}else x=y.a}x==0&&Y.Oa!=null&&Y.Oa.fd&&(x=Tc(Y.ba))}Y=x}W=Y!=0?null:11>W?J.f.RGBA.eb:J.f.kb.y}else W=null;return W};var FT=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function A(k,j){for(var I="",T=0;T<4;T++)I+=String.fromCharCode(k[j++]);return I}function u(k,j){return k[j+0]|k[j+1]<<8}function d(k,j){return(k[j+0]|k[j+1]<<8|k[j+2]<<16)>>>0}function h(k,j){return(k[j+0]|k[j+1]<<8|k[j+2]<<16|k[j+3]<<24)>>>0}new l;var f=[0],g=[0],p=[],v=new l,m=e,w=function(k,j){var I={},T=0,U=!1,R=0,G=0;if(I.frames=[],!function(P,D){for(var X=0;X<4;X++)if(P[D+X]!="RIFF".charCodeAt(X))return!0;return!1}(k,j)){for(h(k,j+=4),j+=8;j<k.length;){var K=A(k,j),V=h(k,j+=4);j+=4;var Q=V+(1&V);switch(K){case"VP8 ":case"VP8L":I.frames[T]===void 0&&(I.frames[T]={}),(re=I.frames[T]).src_off=U?G:j-8,re.src_size=R+V+8,T++,U&&(U=!1,R=0,G=0);break;case"VP8X":(re=I.header={}).feature_flags=k[j];var H=j+4;re.canvas_width=1+d(k,H),H+=3,re.canvas_height=1+d(k,H),H+=3;break;case"ALPH":U=!0,R=Q+8,G=j-8;break;case"ANIM":(re=I.header).bgcolor=h(k,j),H=j+4,re.loop_count=u(k,H),H+=2;break;case"ANMF":var q,re;(re=I.frames[T]={}).offset_x=2*d(k,j),j+=3,re.offset_y=2*d(k,j),j+=3,re.width=1+d(k,j),j+=3,re.height=1+d(k,j),j+=3,re.duration=d(k,j),j+=3,q=k[j++],re.dispose=1&q,re.blend=q>>1&1}K!="ANMF"&&(j+=Q)}return I}}(m,0);w.response=m,w.rgbaoutput=!0,w.dataurl=!1;var b=w.header?w.header:null,E=w.frames?w.frames:null;if(b){b.loop_counter=b.loop_count,f=[b.canvas_height],g=[b.canvas_width];for(var B=0;B<E.length&&E[B].blend!=0;B++);}var _=E[0],F=v.WebPDecodeRGBA(m,_.src_off,_.src_size,g,f);
vendor: 5,119 bytes, lines 398-422
398_.rgba=F,_.imgwidth=g[0],_.imgheight=f[0];for(var O=0;O<g[0]*f[0]*4;O++)p[O]=F[O];return this.width=g,this.height=f,this.data=p,this}/** ====================================================================
399 * @license
400 * jsPDF XMP metadata plugin
401 * Copyright (c) 2016 Jussi Utunen, [email protected]
402 *
403 * Permission is hereby granted, free of charge, to any person obtaining
404 * a copy of this software and associated documentation files (the
405 * "Software"), to deal in the Software without restriction, including
406 * without limitation the rights to use, copy, modify, merge, publish,
407 * distribute, sublicense, and/or sell copies of the Software, and to
408 * permit persons to whom the Software is furnished to do so, subject to
409 * the following conditions:
410 *
411 * The above copyright notice and this permission notice shall be
412 * included in all copies or substantial portions of the Software.
413 *
414 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
415 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
416 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
417 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
418 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
419 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
420 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
421 * ====================================================================
422 */function kpe(){var e,t=this.internal.__metadata__.metadata,r=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?r:'<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>'+r.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 Fpe(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,r,n,i,o,a,s,l,A,u=function(P){return P=P||{},this.isStrokeTransparent=P.isStrokeTransparent||!1,this.strokeOpacity=P.strokeOpacity||1,this.strokeStyle=P.strokeStyle||"#000000",this.fillStyle=P.fillStyle||"#000000",this.isFillTransparent=P.isFillTransparent||!1,this.fillOpacity=P.fillOpacity||1,this.font=P.font||"10px sans-serif",this.textBaseline=P.textBaseline||"alphabetic",this.textAlign=P.textAlign||"left",this.lineWidth=P.lineWidth||1,this.lineJoin=P.lineJoin||"miter",this.lineCap=P.lineCap||"butt",this.path=P.path||[],this.transform=P.transform!==void 0?P.transform.clone():new l,this.globalCompositeOperation=P.globalCompositeOperation||"normal",this.globalAlpha=P.globalAlpha||1,this.clip_path=P.clip_path||[],this.currentPoint=P.currentPoint||new a,this.miterLimit=P.miterLimit||10,this.lastPoint=P.lastPoint||new a,this.lineDashOffset=P.lineDashOffset||0,this.lineDash=P.lineDash||[],this.margin=P.margin||[0,0,0,0],this.prevPageLastElemOffset=P.prevPageLastElemOffset||0,this.ignoreClearRect=typeof P.ignoreClearRect!="boolean"||P.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new d(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,A=new u}]);var d=function(P){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var D=P;Object.defineProperty(this,"pdf",{get:function(){return D}});var X=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return X},set:function(z){X=!!z}});var Z=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Z},set:function(z){Z=!!z}});var ae=0;Object.defineProperty(this,"posX",{get:function(){return ae},set:function(z){isNaN(z)||(ae=z)}});var se=0;Object.defineProperty(this,"posY",{get:function(){return se},set:function(z){isNaN(z)||(se=z)}}),Object.defineProperty(this,"margin",{get:function(){return A.margin},set:function(z){var Se;typeof z=="number"?Se=[z,z,z,z]:((Se=new Array(4))[0]=z[0],Se[1]=z.length>=2?z[1]:Se[0],Se[2]=z.length>=3?z[2]:Se[0],Se[3]=z.length>=4?z[3]:Se[1]),A.margin=Se}});var pe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return pe},set:function(z){pe=z}});var le=0;Object.defineProperty(this,"lastBreak",{get:function(){return le},set:function(z){le=z}});var he=[];Object.defineProperty(this,"pageBreaks",{get:function(){return he},set:function(z){he=z}}),Object.defineProperty(this,"ctx",{get:function(){return A},set:function(z){z instanceof u&&(A=z)}}),Object.defineProperty(this,"path",{get:function(){return A.path}
vendor: 8,725 bytes, line 422
422,set:function(z){A.path=z}});var Ae=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ae},set:function(z){Ae=z}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(z){var Se;Se=h(z),this.ctx.fillStyle=Se.style,this.ctx.isFillTransparent=Se.a===0,this.ctx.fillOpacity=Se.a,this.pdf.setFillColor(Se.r,Se.g,Se.b,{a:Se.a}),this.pdf.setTextColor(Se.r,Se.g,Se.b,{a:Se.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(z){var Se=h(z);this.ctx.strokeStyle=Se.style,this.ctx.isStrokeTransparent=Se.a===0,this.ctx.strokeOpacity=Se.a,Se.a===0?this.pdf.setDrawColor(255,255,255):(Se.a,this.pdf.setDrawColor(Se.r,Se.g,Se.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(z){["butt","round","square"].indexOf(z)!==-1&&(this.ctx.lineCap=z,this.pdf.setLineCap(z))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(z){isNaN(z)||(this.ctx.lineWidth=z,this.pdf.setLineWidth(z))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(z){["bevel","round","miter"].indexOf(z)!==-1&&(this.ctx.lineJoin=z,this.pdf.setLineJoin(z))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(z){isNaN(z)||(this.ctx.miterLimit=z,this.pdf.setMiterLimit(z))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(z){this.ctx.textBaseline=z}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(z){["right","end","center","left","start"].indexOf(z)!==-1&&(this.ctx.textAlign=z)}});var ue=null,_e=null,ve=null;Object.defineProperty(this,"fontFaces",{get:function(){return ve},set:function(z){ue=null,_e=null,ve=z}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(z){var Se;if(this.ctx.font=z,(Se=/^\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(z))!==null){var Me=Se[1];Se[2];var De=Se[3],xe=Se[4];Se[5];var ze=Se[6],me=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(xe)[2];xe=Math.floor(me==="px"?parseFloat(xe)*this.pdf.internal.scaleFactor:me==="em"?parseFloat(xe)*this.pdf.getFontSize():parseFloat(xe)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(xe);var Le=function(tt){var dr,Pt,Ft=[],Be=tt.trim();if(Be==="")return l_;if(Be in hP)return[hP[Be]];for(;Be!=="";){switch(Pt=null,dr=(Be=pP(Be)).charAt(0)){case'"':case"'":Pt=Bpe(Be.substring(1),dr);break;default:Pt=Epe(Be)}if(Pt===null||(Ft.push(Pt[0]),(Be=pP(Pt[1]))!==""&&Be.charAt(0)!==","))return l_;Be=Be.replace(/^,/,"")}return Ft}(ze);if(this.fontFaces){var Ue=function(tt,dr){var Pt=tt.getFontList(),Ft=JSON.stringify(Pt);if(ue===null||_e!==Ft){var Be=function(rt){var Ve=[];return Object.keys(rt).forEach(function(et){rt[et].forEach(function(Qe){var He=null;switch(Qe){case"bold":He={family:et,weight:"bold"};break;case"italic":He={family:et,style:"italic"};break;case"bolditalic":He={family:et,weight:"bold",style:"italic"};break;case"":case"normal":He={family:et}}He!==null&&(He.ref={name:et,style:Qe},Ve.push(He))})}),Ve}(Pt);ue=function(rt){for(var Ve={},et=0;et<rt.length;++et){var Qe=s_(rt[et]),He=Qe.family,st=Qe.stretch,_t=Qe.style,We=Qe.weight;Ve[He]=Ve[He]||{},Ve[He][st]=Ve[He][st]||{},Ve[He][st][_t]=Ve[He][st][_t]||{},Ve[He][st][_t][We]=Qe}return Ve}(Be.concat(dr)),_e=Ft}return ue}(this.pdf,this.fontFaces),Bt=Le.map(function(tt){return{family:tt,stretch:"normal",weight:De,style:Me}}),Et=function(tt,dr,Pt){for(var Ft=(Pt=Pt||{}).defaultFontFamily||"times",Be=Object.assign({},xpe,Pt.genericFontFamilies||{}),rt=null,Ve=null,et=0;et<dr.length;++et)if(Be[(rt=s_(dr[et])).family]&&(rt.family=Be[rt.family]),tt.hasOwnProperty(rt.family)){Ve=tt[rt.family];break}if(!(Ve=Ve||tt[Ft]))throw new Error("Could not find a font-family for the rule '"+fP(rt)+"' and default family '"+Ft+"'.");if(Ve=function(Qe,He){if(He[Qe])return He[Qe];var st=A5[Qe],_t=st<=A5.normal?-1:1,We=dP(He,M7,st,_t);if(!We)throw new Error("Could not find a matching font-stretch value for "+Qe);return We}(rt.stretch,Ve),Ve=function(Qe,He){if(He[Qe])return He[Qe];for(var st=Q7[Qe],_t=0;_t<st.length;++_t)if(He[st[_t]])return He[st[_t]];throw new Error("Could not find a matching font-style for "+Qe)}(rt.style,Ve),!(Ve=function(Qe,He){if(He[Qe])return He[Qe];if(Qe===400&&He[500])return He[500];if(Qe===500&&He[400])return He[400];var st=bpe[Qe],_t=dP(He,$7,st,Qe<400?-1:1);if(!_t)throw new Error("Could not find a matching font-weight for value "+Qe);return _t}(rt.weight,Ve)))throw new Error("Failed to resolve a font for the rule '"+fP(rt)+"'.");return Ve}(Ue,Bt);this.pdf.setFont(Et.ref.name,Et.ref.style)}else{var Ge="";(De==="bold"||parseInt(De,10)>=700||Me==="bold")&&(Ge="bold"),Me==="italic"&&(Ge+="italic"),Ge.length===0&&(Ge="normal");for(var Je="",dt={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"},Ye=0;Ye<Le.length;Ye++){if(this.pdf.internal.getFont(Le[Ye],Ge,{noFallback:!0,disableWarning:!0})!==void 0){Je=Le[Ye];break}if(Ge==="bolditalic"&&this.pdf.internal.getFont(Le[Ye],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Je=Le[Ye],Ge="bold";else if(this.pdf.internal.getFont(Le[Ye],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Je=Le[Ye],Ge="normal";break}}if(Je===""){for(var vt=0;vt<Le.length;vt++)if(dt[Le[vt]]){Je=dt[Le[vt]];break}}Je=Je===""?"Times":Je,this.pdf.setFont(Je,Ge)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(z){this.ctx.globalCompositeOperation=z}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(z){this.ctx.globalAlpha=z}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(z){this.ctx.lineDashOffset=z,re.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(z){this.ctx.lineDash=z,re.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(z){this.ctx.ignoreClearRect=!!z}})};d.prototype.setLineDash=function(P){this.lineDash=P},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){E.call(this,"fill",!1)},d.prototype.stroke=function(){E.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(P,D){if(isNaN(P)||isNaN(D))throw Lr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var X=this.ctx.transform.applyToPoint(new a(P,D));this.path.push({type:"mt",x:X.x,y:X.y}),this.ctx.lastPoint=new a(P,D)},d.prototype.closePath=function(){var P=new a(0,0),D=0;for(D=this.path.length-1;D!==-1;D--)if(this.path[D].type==="begin"&&Sr(this.path[D+1])==="object"&&typeof this.path[D+1].x=="number"){P=new a(this.path[D+1].x,this.path[D+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(P.x,P.y)},d.prototype.lineTo=function(P,D){if(isNaN(P)||isNaN(D))throw Lr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var X=this.ctx.transform.applyToPoint(new a(P,D));this.path.push({type:"lt",x:X.x,y:X.y}),this.ctx.lastPoint=new a(X.x,X.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),E.call(this,null,!0)},d.prototype.quadraticCurveTo=function(P,D,X,Z){if(isNaN(X)||isNaN(Z)||isNaN(P)||isNaN(D))throw Lr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ae=this.ctx.transform.applyToPoint(new a(X,Z)),se=this.ctx.transform.applyToPoint(new a(P,D));this.path.push({type:"qct",x1:se.x,y1:se.y,x:ae.x,y:ae.y}),this.ctx.lastPoint=new a(ae.x,ae.y)},d.prototype.bezierCurveTo=function(P,D,X,Z,ae,se){if(isNaN(ae)||isNaN(se)||isNaN(P)||isNaN(D)||isNaN(X)||isNaN(Z))throw Lr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
422jsPDF.context2d.bezierCurveTo");var pe=this.ctx.transform.applyToPoint(new a(ae,se)),le=this.ctx.transform.applyToPoint(new a(P,D)),he=this.ctx.transform.applyToPoint(new a(X,Z));this.path.push({type:"bct",x1:le.x,y1:le.y,x2:he.x,y2:he.y,x:pe.x,y:pe.y}),this.ctx.lastPoint=new a(pe.x,pe.y)},d.prototype.arc=function(P,D,X,Z,ae,se){if(isNaN(P)||isNaN(D)||isNaN(X)||isNaN(Z)||isNaN(ae))throw Lr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(se=!!se,!this.ctx.transform.isIdentity){var pe=this.ctx.transform.applyToPoint(new a(P,D));P=pe.x,D=pe.y;var le=this.ctx.transform.applyToPoint(new a(0,X)),he=this.ctx.transform.applyToPoint(new a(0,0));X=Math.sqrt(Math.pow(le.x-he.x,2)+Math.pow(le.y-he.y,2))}Math.abs(ae-Z)>=2*Math.PI&&(Z=0,ae=2*Math.PI),this.path.push({type:"arc",x:P,y:D,radius:X,startAngle:Z,endAngle:ae,counterclockwise:se})},d.prototype.arcTo=function(P,D,X,Z,ae){throw new Error("arcTo not implemented.")},d.prototype.rect=function(P,D,X,Z){if(isNaN(P)||isNaN(D)||isNaN(X)||isNaN(Z))throw Lr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(P,D),this.lineTo(P+X,D),this.lineTo(P+X,D+Z),this.lineTo(P,D+Z),this.lineTo(P,D),this.lineTo(P+X,D),this.lineTo(P,D)},d.prototype.fillRect=function(P,D,X,Z){if(isNaN(P)||isNaN(D)||isNaN(X)||isNaN(Z))throw Lr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var ae={};this.lineCap!=="butt"&&(ae.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ae.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(P,D,X,Z),this.fill(),ae.hasOwnProperty("lineCap")&&(this.lineCap=ae.lineCap),ae.hasOwnProperty("lineJoin")&&(this.lineJoin=ae.lineJoin)}},d.prototype.strokeRect=function(P,D,X,Z){if(isNaN(P)||isNaN(D)||isNaN(X)||isNaN(Z))throw Lr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(P,D,X,Z),this.stroke())},d.prototype.clearRect=function(P,D,X,Z){if(isNaN(P)||isNaN(D)||isNaN(X)||isNaN(Z))throw Lr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(P,D,X,Z))},d.prototype.save=function(P){P=typeof P!="boolean"||P;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,X=0;X<this.pdf.internal.getNumberOfPages();X++)this.pdf.setPage(X+1),this.pdf.internal.out("q");if(this.pdf.setPage(D),P){this.ctx.fontSize=this.pdf.internal.getFontSize();var Z=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Z}},d.prototype.restore=function(P){P=typeof P!="boolean"||P;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,X=0;X<this.pdf.internal.getNumberOfPages();X++)this.pdf.setPage(X+1),this.pdf.internal.out("Q");this.pdf.setPage(D),P&&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)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var h=function(P){var D,X,Z,ae;if(P.isCanvasGradient===!0&&(P=P.getColor()),!P)return{r:0,g:0,b:0,a:0,style:P};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(P))D=0,
vendor: 15,842 bytes, line 422
422X=0,Z=0,ae=0;else{var se=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(P);if(se!==null)D=parseInt(se[1]),X=parseInt(se[2]),Z=parseInt(se[3]),ae=1;else if((se=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(P))!==null)D=parseInt(se[1]),X=parseInt(se[2]),Z=parseInt(se[3]),ae=parseFloat(se[4]);else{if(ae=1,typeof P=="string"&&P.charAt(0)!=="#"){var pe=new O7(P);P=pe.ok?pe.toHex():"#000000"}P.length===4?(D=P.substring(1,2),D+=D,X=P.substring(2,3),X+=X,Z=P.substring(3,4),Z+=Z):(D=P.substring(1,3),X=P.substring(3,5),Z=P.substring(5,7)),D=parseInt(D,16),X=parseInt(X,16),Z=parseInt(Z,16)}}return{r:D,g:X,b:Z,a:ae,style:P}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},g=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(P,D,X,Z){if(isNaN(D)||isNaN(X)||typeof P!="string")throw Lr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Z=isNaN(Z)?void 0:Z,!f.call(this)){var ae=Q(this.ctx.transform.rotation),se=this.ctx.transform.scaleX;T.call(this,{text:P,x:D,y:X,scale:se,angle:ae,align:this.textAlign,maxWidth:Z})}},d.prototype.strokeText=function(P,D,X,Z){if(isNaN(D)||isNaN(X)||typeof P!="string")throw Lr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){Z=isNaN(Z)?void 0:Z;var ae=Q(this.ctx.transform.rotation),se=this.ctx.transform.scaleX;T.call(this,{text:P,x:D,y:X,scale:se,renderingMode:"stroke",angle:ae,align:this.textAlign,maxWidth:Z})}},d.prototype.measureText=function(P){if(typeof P!="string")throw Lr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var D=this.pdf,X=this.pdf.internal.scaleFactor,Z=D.internal.getFontSize(),ae=D.getStringUnitWidth(P)*Z/D.internal.scaleFactor;return new function(se){var pe=(se=se||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return pe}}),this}({width:ae*=Math.round(96*X/72*1e4)/1e4})},d.prototype.scale=function(P,D){if(isNaN(P)||isNaN(D))throw Lr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var X=new l(P,0,0,D,0,0);this.ctx.transform=this.ctx.transform.multiply(X)},d.prototype.rotate=function(P){if(isNaN(P))throw Lr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var D=new l(Math.cos(P),Math.sin(P),-Math.sin(P),Math.cos(P),0,0);this.ctx.transform=this.ctx.transform.multiply(D)},d.prototype.translate=function(P,D){if(isNaN(P)||isNaN(D))throw Lr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var X=new l(1,0,0,1,P,D);this.ctx.transform=this.ctx.transform.multiply(X)},d.prototype.transform=function(P,D,X,Z,ae,se){if(isNaN(P)||isNaN(D)||isNaN(X)||isNaN(Z)||isNaN(ae)||isNaN(se))throw Lr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var pe=new l(P,D,X,Z,ae,se);this.ctx.transform=this.ctx.transform.multiply(pe)},d.prototype.setTransform=function(P,D,X,Z,ae,se){P=isNaN(P)?1:P,D=isNaN(D)?0:D,X=isNaN(X)?0:X,Z=isNaN(Z)?1:Z,ae=isNaN(ae)?0:ae,se=isNaN(se)?0:se,this.ctx.transform=new l(P,D,X,Z,ae,se)};var p=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(P,D,X,Z,ae,se,pe,le,he){var Ae=this.pdf.getImageProperties(P),ue=1,_e=1,ve=1,z=1;Z!==void 0&&le!==void 0&&(ve=le/Z,z=he/ae,ue=Ae.width/Z*le/Z,_e=Ae.height/ae*he/ae),se===void 0&&(se=D,pe=X,D=0,X=0),Z!==void 0&&le===void 0&&(le=Z,he=ae),Z===void 0&&le===void 0&&(le=Ae.width,he=Ae.height);var Se=this.ctx.transform.decompose(),Me=Q(Se.rotate.shx),De=new l,xe=(De=(De=(De=De.multiply(Se.translate)).multiply(Se.skew)).multiply(Se.scale)).applyToRectangle(new s(se-D*ve,pe-X*z,Z*ue,ae*_e));if(this.autoPaging){for(var ze,me=v.call(this,xe),Le=[],Ue=0;Ue<me.length;Ue+=1)Le.indexOf(me[Ue])===-1&&Le.push(me[Ue]);b(Le);for(var Bt=Le[0],Et=Le[Le.length-1],Ge=Bt;Ge<Et+1;Ge++){this.pdf.setPage(Ge);var Je=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],dt=Ge===1?this.posY+this.margin[0]:this.margin[0],Ye=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],vt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],tt=Ge===1?0:Ye+(Ge-2)*vt;if(this.ctx.clip_path.length!==0){var dr=this.path;ze=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(ze,this.posX+this.margin[3],-tt+dt+this.ctx.prevPageLastElemOffset),B.call(this,"fill",!0),this.path=dr}var Pt=JSON.parse(JSON.stringify(xe));Pt=w([Pt],this.posX+this.margin[3],-tt+dt+this.ctx.prevPageLastElemOffset)[0];var Ft=(Ge>Bt||Ge<Et)&&p.call(this);Ft&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Je,vt,null).clip().discardPath()),this.pdf.addImage(P,"JPEG",Pt.x,Pt.y,Pt.w,Pt.h,null,null,Me),Ft&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(P,"JPEG",xe.x,xe.y,xe.w,xe.h,null,null,Me)};var v=function(P,D,X){var Z=[];D=D||this.pdf.internal.pageSize.width,X=X||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ae=this.posY+this.ctx.prevPageLastElemOffset;switch(P.type){default:case"mt":case"lt":Z.push(Math.floor((P.y+ae)/X)+1);break;case"arc":Z.push(Math.floor((P.y+ae-P.radius)/X)+1),Z.push(Math.floor((P.y+ae+P.radius)/X)+1);break;case"qct":var se=H(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x,P.y);Z.push(Math.floor((se.y+ae)/X)+1),Z.push(Math.floor((se.y+se.h+ae)/X)+1);break;case"bct":var pe=q(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x2,P.y2,P.x,P.y);Z.push(Math.floor((pe.y+ae)/X)+1),Z.push(Math.floor((pe.y+pe.h+ae)/X)+1);break;case"rect":Z.push(Math.floor((P.y+ae)/X)+1),Z.push(Math.floor((P.y+P.h+ae)/X)+1)}for(var le=0;le<Z.length;le+=1)for(;this.pdf.internal.getNumberOfPages()<Z[le];)m.call(this);return Z},m=function(){var P=this.fillStyle,D=this.strokeStyle,X=this.font,Z=this.lineCap,ae=this.lineWidth,se=this.lineJoin;this.pdf.addPage(),this.fillStyle=P,this.strokeStyle=D,this.font=X,this.lineCap=Z,this.lineWidth=ae,this.lineJoin=se},w=function(P,D,X){for(var Z=0;Z<P.length;Z++)switch(P[Z].type){case"bct":P[Z].x2+=D,P[Z].y2+=X;case"qct":P[Z].x1+=D,P[Z].y1+=X;default:P[Z].x+=D,P[Z].y+=X}return P},b=function(P){return P.sort(function(D,X){return D-X})},E=function(P,D){var X=this.fillStyle,Z=this.strokeStyle,ae=this.lineCap,se=this.lineWidth,pe=Math.abs(se*this.ctx.transform.scaleX),le=this.lineJoin;if(this.autoPaging){for(var he,Ae,ue=JSON.parse(JSON.stringify(this.path)),_e=JSON.parse(JSON.stringify(this.path)),ve=[],z=0;z<_e.length;z++)if(_e[z].x!==void 0)for(var Se=v.call(this,_e[z]),Me=0;Me<Se.length;Me+=1)ve.indexOf(Se[Me])===-1&&ve.push(Se[Me]);for(var De=0;De<ve.length;De++)for(;this.pdf.internal.getNumberOfPages()<ve[De];)m.call(this);b(ve);for(var xe=ve[0],ze=ve[ve.length-1],me=xe;me<ze+1;me++){this.pdf.setPage(me),this.fillStyle=X,this.strokeStyle=Z,this.lineCap=ae,this.lineWidth=pe,this.lineJoin=le;var Le=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ue=me===1?this.posY+this.margin[0]:this.margin[0],Bt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Et=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ge=me===1?0:Bt+(me-2)*Et;if(this.ctx.clip_path.length!==0){var Je=this.path;he=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(he,this.posX+this.margin[3],-Ge+Ue+this.ctx.prevPageLastElemOffset),B.call(this,P,!0),this.path=Je}if(Ae=JSON.parse(JSON.stringify(ue)),this.path=w(Ae,this.posX+this.margin[3],-Ge+Ue+this.ctx.prevPageLastElemOffset),D===!1||me===0){var dt=(me>xe||me<ze)&&p.call(this);dt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Le,Et,null).clip().discardPath()),B.call(this,P,D),dt&&this.pdf.restoreGraphicsState()}this.lineWidth=se}this.path=ue}else this.lineWidth=pe,B.call(this,P,D),this.lineWidth=se},B=function(P,D){if((P!=="stroke"||D||!g.call(this))&&(P==="stroke"||D||!f.call(this))){for(var X,Z,ae=[],se=this.path,pe=0;pe<se.length;pe++){var le=se[pe];switch(le.type){case"begin":ae.push({begin:!0});break;case"close":ae.push({close:!0});break;case"mt":ae.push({start:le,deltas:[],abs:[]});break;case"lt":var he=ae.length;if(se[pe-1]&&!isNaN(se[pe-1].x)&&(X=[le.x-se[pe-1].x,le.y-se[pe-1].y],he>0)){for(;he>=0;he--)if(ae[he-1].close!==!0&&ae[he-1].begin!==!0){ae[he-1].deltas.push(X),ae[he-1].abs.push(le);break}}break;case"bct":X=[le.x1-se[pe-1].x,le.y1-se[pe-1].y,le.x2-se[pe-1].x,le.y2-se[pe-1].y,le.x-se[pe-1].x,le.y-se[pe-1].y],ae[ae.length-1].deltas.push(X);break;case"qct":var Ae=se[pe-1].x+2/3*(le.x1-se[pe-1].x),ue=se[pe-1].y+2/3*(le.y1-se[pe-1].y),_e=le.x+2/3*(le.x1-le.x),ve=le.y+2/3*(le.y1-le.y),z=le.x,Se=le.y;X=[Ae-se[pe-1].x,ue-se[pe-1].y,_e-se[pe-1].x,ve-se[pe-1].y,z-se[pe-1].x,Se-se[pe-1].y],ae[ae.length-1].deltas.push(X);break;case"arc":ae.push({deltas:[],abs:[],arc:!0}),Array.isArray(ae[ae.length-1].abs)&&ae[ae.length-1].abs.push(le)}}Z=D?null:P==="stroke"?"stroke":"fill";for(var Me=!1,De=0;De<ae.length;De++)if(ae[De].arc)for(var xe=ae[De].abs,ze=0;ze<xe.length;ze++){var me=xe[ze];me.type==="arc"?O.call(this,me.x,me.y,me.radius,me.startAngle,me.endAngle,me.counterclockwise,void 0,D,!Me):U.call(this,me.x,me.y),Me=!0}else if(ae[De].close===!0)this.pdf.internal.out("h"),Me=!1;else if(ae[De].begin!==!0){var Le=ae[De].start.x,Ue=ae[De].start.y;R.call(this,ae[De].deltas,Le,Ue),Me=!0}Z&&k.call(this,Z),D&&j.call(this)}},_=function(P){var D=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,X=D*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return P-X;case"top":return P+D-X;case"hanging":return P+D-2*X;case"middle":return P+D/2-X;default:return P}},F=function(P){return P+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var P=function(){};return P.colorStops=[],P.addColorStop=function(D,X){this.colorStops.push([D,X])},P.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},P.isCanvasGradient=!0,P},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var O=function(P,D,X,Z,ae,se,pe,le,he){for(var Ae=K.call(this,X,Z,ae,se),ue=0;ue<Ae.length;ue++){var _e=Ae[ue];ue===0&&(he?I.call(this,_e.x1+P,_e.y1+D):U.call(this,_e.x1+P,_e.y1+D)),G.call(this,P,D,_e.x2,_e.y2,_e.x3,_e.y3,_e.x4,_e.y4)}le?j.call(this):k.call(this,pe)},k=function(P){switch(P){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},j=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(P,D){this.pdf.internal.out(r(P)+" "+n(D)+" m")},T=function(P){var D;switch(P.align){case"right":case"end":D="right";break;case"center":D="center";break;default:D="left"}var X,Z,ae,se=this.pdf.getTextDimensions(P.text),pe=_.call(this,P.y),le=F.call(this,pe)-se.h,he=this.ctx.transform.applyToPoint(new a(P.x,pe));if(this.autoPaging){var Ae=this.ctx.transform.decompose(),ue=new l;ue=(ue=(ue=ue.multiply(Ae.translate)).multiply(Ae.skew)).multiply(Ae.scale);for(var _e=this.ctx.transform.applyToRectangle(new s(P.x,pe,se.w,se.h)),ve=ue.applyToRectangle(new s(P.x,le,se.w,se.h)),z=v.call(this,ve),Se=[],Me=0;Me<z.length;Me+=1)Se.indexOf(z[Me])===-1&&Se.push(z[Me]);b(Se);for(var De=Se[0],xe=Se[Se.length-1],ze=De;ze<xe+1;ze++){this.pdf.setPage(ze);var me=ze===1?this.posY+this.margin[0]:this.margin[0],Le=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ue=this.pdf.internal.pageSize.height-this.margin[2],Bt=Ue-this.margin[0],Et=this.pdf.internal.pageSize.width-this.margin[1],Ge=Et-this.margin[3],Je=ze===1?0:Le+(ze-2)*Bt;if(this.ctx.clip_path.length!==0){var dt=this.path;X=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(X,this.posX+this.margin[3],-1*Je+me),B.call(this,"fill",!0),this.path=dt}var Ye=w([JSON.parse(JSON.stringify(ve))],this.posX+this.margin[3],-Je+me+this.ctx.prevPageLastElemOffset)[0];P.scale>=.01&&(Z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Z*P.scale),ae=this.lineWidth,this.lineWidth=ae*P.scale);var vt=this.autoPaging!=="text";if(vt||Ye.y+Ye.h<=Ue){if(vt||Ye.y>=me&&Ye.x<=Et){var tt=vt?P.text:this.pdf.splitTextToSize(P.text,P.maxWidth||Et-Ye.x)[0],dr=w([JSON.parse(JSON.stringify(_e))],this.posX+this.margin[3],-Je+me+this.ctx.prevPageLastElemOffset)[0],Pt=vt&&(ze>De||ze<xe)&&p.call(this);Pt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ge,Bt,null).clip().discardPath()),this.pdf.text(tt,dr.x,dr.y,{angle:P.angle,align:D,renderingMode:P.renderingMode}),Pt&&this.pdf.restoreGraphicsState()}}else Ye.y<Ue&&(this.ctx.prevPageLastElemOffset+=Ue-Ye.y);P.scale>=.01&&(this.pdf.setFontSize(Z),this.lineWidth=ae)}}else P.scale>=.01&&(Z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Z*P.scale),ae=this.lineWidth,this.lineWidth=ae*P.scale),this.pdf.text(P.text,he.x+this.posX,he.y+this.posY,{angle:P.angle,align:D,renderingMode:P.renderingMode,maxWidth:P.maxWidth}),P.scale>=.01&&(this.pdf.setFontSize(Z),this.lineWidth=ae)},U=function(P,D,X,Z){X=X||0,Z=Z||0,this.pdf.internal.out(r(P+X)+" "+n(D+Z)+" l")},R=function(P,D,X){return this.pdf.lines(P,D,X,null,null)},G=function(P,D,X,Z,ae,se,pe,le){this.pdf.internal.out([t(i(X+P)),t(o(Z+D)),t(i(ae+P)),t(o(se+D)),t(i(pe+P)),t(o(le+D)),"c"].join(" "))},K=function(P,D,X,Z){for(var ae=2*Math.PI,se=Math.PI/2;D>X;)D-=ae;var pe=Math.abs(X-D);pe<ae&&Z&&(pe=ae-pe);for(var le=[],he=Z?-1:1,Ae=D;pe>1e-5;){var ue=Ae+he*Math.min(pe,se);le.push(V.call(this,P,Ae,ue)),pe-=Math.abs(ue-Ae),Ae=ue}return le},V=function(P,D,X){var Z=(X-D)/2,ae=P*Math.cos(Z),se=P*Math.sin(Z),pe=ae,le=-se,he=pe*pe+le*le,Ae=he+pe*ae+le*se,ue=4/3*(Math.sqrt(2*he*Ae)-Ae)/(pe*se-le*ae),_e=pe-ue*le,ve=le+ue*pe,z=_e,Se=-ve,Me=Z+D,De=Math.cos(Me),xe=Math.sin(Me);return{x1:P*Math.cos(D),y1:P*Math.sin(D),x2:_e*De-ve*xe,y2:_e*xe+ve*De,x3:z*De-Se*xe,y3:z*xe+Se*De,x4:P*Math.cos(X),y4:P*Math.sin(X)}},Q=function(P){return 180*P/Math.PI},H=function(P,D,X,Z,ae,se){var pe=P+.5*(X-P),le=D+.5*(Z-D),he=ae+.5*(X-ae),Ae=se+.5*(Z-se),ue=Math.min(P,ae,pe,he),_e=Math.max(P,ae,pe,he),ve=Math.min(D,se,le,Ae),z=Math.max(D,se,le,Ae);return new s(ue,ve,_e-ue,z-ve)},q=function(P,D,X,Z,ae,se,pe,le){var he,Ae,ue,_e,ve,z,Se,Me,De,xe,ze,me,Le,Ue,Bt=X-P,Et=Z-D,Ge=ae-X,Je=se-Z,dt=pe-ae,Ye=le-se;for(Ae=0;Ae<41;Ae++)De=(Se=(ue=P+(he=Ae/40)*Bt)+he*((ve=X+he*Ge)-ue))+he*(ve+he*(ae+he*dt-ve)-Se),xe=(Me=(_e=D+he*Et)+he*((z=Z+he*Je)-_e))+he*(z+he*(se+he*Ye-z)-Me),Ae==0?(ze=De,me=xe,Le=De,Ue=xe):(ze=Math.min(ze,De),me=Math.min(me,xe),Le=Math.max(Le,De),Ue=Math.max(Ue,xe));return new s(Math.round(ze),Math.round(me),Math.round(Le-ze),Math.round(Ue-me))},re=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var P,D,X=(P=this.ctx.lineDash,D=this.ctx.lineDashOffset,JSON.stringify({lineDash:P,lineDashOffset:D}));this.prevLineDash!==X&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=X)}}})(Ct.API),function(e){var t=function(a){var s,l,A,u,d,h,f,g,p,v;for(l=[],A=0,u=(a+=s="\0\0\0\0".slice(a.length%4||4)).length;u>A;A+=4)(d=(a.charCodeAt(A)<<24)+(a.charCodeAt(A+1)<<16)+(a.charCodeAt(A+2)<<8)+a.charCodeAt(A+3))!==0?(h=(d=((d=((d=((d=(d-(v=d%85))/85)-(p=d%85))/85)-(g=d%85))/85)-(f=d%85))/85)%85,l.push(h+33,f+33,g+33,p+33,v+33)):l.push(122);return function(m,w){for(var b=w;b>0;b--)m.pop()}(l,s.length),String.fromCharCode.apply(String,l)+"~>"},r=function(a){var s,l,A,u,d,h=String,f="length",g=255,p="charCo
422deAt",v="slice",m="replace";for(a[v](-2),a=a[v](0,-2)[m](/\s/g,"")[m]("z","!!!!!"),A=[],u=0,d=(a+=s="uuuuu"[v](a[f]%5||5))[f];d>u;u+=5)l=52200625*(a[p](u)-33)+614125*(a[p](u+1)-33)+7225*(a[p](u+2)-33)+85*(a[p](u+3)-33)+(a[p](u+4)-33),A.push(g&l>>24,g&l>>16,g&l>>8,g&l);return function(w,b){for(var E=b;E>0;E--)w.pop()}(A,s[f]),h.fromCharCode.apply(h,A)},n=function(a){return a.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(a){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((a=a.replace(/\s/g,"")).indexOf(">")!==-1&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),s.test(a)===!1)return"";for(var l="",A=0;A<a.length;A+=2)l+=String.fromCharCode("0x"+(a[A]+a[A+1]));return l},o=function(a){for(var s=new Uint8Array(a.length),l=a.length;l--;)s[l]=a.charCodeAt(l);return(s=qC(s)).reduce(function(A,u){return A+String.fromCharCode(u)},"")};e.processDataByFilters=function(a,s){var l=0,A=a||"",u=[];for(typeof(s=s||[])=="string"&&(s=[s]),l=0;l<s.length;l+=1)switch(s[l]){case"ASCII85Decode":case"/ASCII85Decode":A=r(A),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":A=t(A),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":A=i(A),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":A=n(A),u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":A=o(A),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[l]+'" is not implemented')}return{data:A,reverseChain:u.reverse().join(" ")}}}(Ct.API),function(e){e.loadFile=function(t,r,n){return function(i,o,a){o=o!==!1,a=typeof a=="function"?a:function(){};var s=void 0;try{s=function(l,A,u){var d=new XMLHttpRequest,h=0,f=function(g){var p=g.length,v=[],m=String.fromCharCode;for(h=0;h<p;h+=1)v.push(m(255&g.charCodeAt(h)));return v.join("")};if(d.open("GET",l,!A),d.overrideMimeType("text/plain; charset=x-user-defined"),A===!1&&(d.onload=function(){d.status===200?u(f(this.responseText)):u(void 0)}),d.send(null),A&&d.status===200)return f(d.responseText)}(i,o,a)}catch{}return s}(t,r,n)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(Ct.API),function(e){function t(){return(Rt.html2canvas?Promise.resolve(Rt.html2canvas):Wg(()=>Promise.resolve().then(()=>$ue),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 r(){return(Rt.DOMPurify?Promise.resolve(Rt.DOMPurify):Wg(()=>import("./purify.es-Dqc4LzU4.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var n=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 A=document.createElement(s);for(var u in l.className&&(A.className=l.className),l.innerHTML&&l.dompurify&&(A.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)A.style[u]=l.style[u];return A},o=function s(l,A){for(var u=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),d=l.firstChild;d;d=d.nextSibling)A!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||u.appendChild(s(d,A));return l.nodeType===1&&(l.nodeName==="CANVAS"?(u.width=l.width,u.height=l.height,u.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(u.value=l.value),u.addEventListener("load",function(){u.scrollTop=l.scrollTop,u.scrollLeft=l.scrollLeft},!0)),u},a=function s(l){var A=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),u=s.convert(Promise.resolve(),A);return(u=u.setProgress(1,s,1,[s])).set(l)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(s,l){return s.__proto__=l||a.prototype,s},a.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"}},a.prototype.from=function(s,l){return this.then(function(){switch(l=l||function(A){switch(n(A)){case"string":return"string";case"element":return A.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s),l){case"string":return this.then(r).then(function(A){return this.set({src:i("div",{innerHTML:s,dompurify:A})})});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.")}})},a.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();
vendor: 23,994 bytes, lines 422-428
422case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},a.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=o(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"})},a.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 A=Object.assign({},this.opt.html2canvas);return delete A.onrendered,l(this.prop.container,A)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},a.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 A=this.opt.jsPDF,u=this.opt.fontFaces,d=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:d,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,A.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,A.context2d.posX=this.opt.x,A.context2d.posY=this.opt.y,A.context2d.margin=this.opt.margin,A.context2d.fontFaces=u,u)for(var f=0;f<u.length;++f){var g=u[f],p=g.src.find(function(v){return v.format==="truetype"});p&&A.addFont(p.url,g.ref.name,g.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,A.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)})},a.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})},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},a.prototype.output=function(s,l,A){return(A=A||"pdf").toLowerCase()==="img"||A.toLowerCase()==="image"?this.outputImg(s,l):this.outputPdf(s,l)},a.prototype.outputPdf=function(s,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,l)})},a.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.'}})},a.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)})},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},a.prototype.set=function(s){if(n(s)!=="object")return this;var l=Object.keys(s||{}).map(function(A){if(A in a.template.prop)return function(){this.prop[A]=s[A]};switch(A){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[A]=s[A]}}},this);return this.then(function(){return this.thenList(l)})},a.prototype.get=function(s,l){return this.then(function(){var A=s in a.template.prop?this.prop[s]:this.opt[s];return l?l(A):A})},a.prototype.setMargin=function(s){return this.then(function(){switch(n(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)},a.prototype.setPageSize=function(s){function l(A,u){return Math.floor(A*u/72*96)}return this.then(function(){(s=s||Ct.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})},a.prototype.setProgress=function(s,l,A,u){return s!=null&&(this.progress.val=s),l!=null&&(this.progress.state=l),A!=null&&(this.progress.n=A),u!=null&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(s,l,A,u){return this.setProgress(s?this.progress.val+s:null,l||null,A?this.progress.n+A:null,u?this.progress.stack.concat(u):null)},a.prototype.then=function(s,l){var A=this;return this.thenCore(s,l,function(u,d){return A.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,function(h){return A.updateProgress(null,u),h}).then(u,d).then(function(h){return A.updateProgress(1),h})})},a.prototype.thenCore=function(s,l,A){A=A||Promise.prototype.then;var u=this;s&&(s=s.bind(u)),l&&(l=l.bind(u));var d=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?u:a.convert(Object.assign({},u),Promise.prototype),h=A.call(d,s,l);return a.convert(h,u.__proto__)},a.prototype.thenExternal=function(s,l){return Promise.prototype.then.call(this,s,l)},a.prototype.thenList=function(s){var l=this;return s.forEach(function(A){l=l.thenCore(A)}),l},a.prototype.catch=function(s){s&&(s=s.bind(this));var l=Promise.prototype.catch.call(this,s);return a.convert(l,this)},a.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},a.prototype.error=function(s){return this.then(function(){throw new Error(s)})},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,Ct.getPageSize=function(s,l,A){if(Sr(s)==="object"){var u=s;s=u.orientation,l=u.unit||l,A=u.format||A}l=l||"mm",A=A||"a4",s=(""+(s||"P")).toLowerCase();var d,h=(""+A).toLowerCase(),f={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":d=1;break;case"mm":d=72/25.4;break;case"cm":d=72/2.54;break;case"in":d=72;break;case"px":d=.75;break;case"pc":case"em":d=12;break;case"ex":d=6;break;default:throw"Invalid unit: "+l}var g,p=0,v=0;if(f.hasOwnProperty(h))p=f[h][1]/d,v=f[h][0]/d;else try{p=A[1],v=A[0]}catch{throw new Error("Invalid format: "+A)}if(s==="p"||s==="portrait")s="p",v>p&&(g=v,v=p,p=g);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",p>v&&(g=v,v=p,p=g)}return{width:v,height:p,unit:l,k:d,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(s_):null;var A=new a(l);return l.worker?A:A.from(s).doCallback()}}(Ct.API),Ct.API.addJS=function(e){var t,r,n=function(i){for(var o="",a=0;a<i.length;a++){var s=i[a];if(s==="("||s===")"){for(var l=0,A=a-1;A>=0&&i[A]==="\\";A--)l++;o+=l%2==0?"\\"+s:s}else o+=s}return o}(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"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&r!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=r.outline.render().split(/\r\n/),o=0;o<i.length;o++){var a=i[o],s=n.exec(a);if(s!=null){var l=s[1];r.internal.newObjectDeferredBegin(l,!1)}r.internal.write(a)}if(this.outline.createNamedDestinations){var A=this.internal.pages.length,u=[];for(o=0;o<A;o++){var d=r.internal.newObject();u.push(d);var h=r.internal.getPageInfo(o+1);r.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var f=r.internal.newObject();for(r.internal.write("<< /Names [ "),o=0;o<u.length;o++)r.internal.write("(page_"+(o+1)+")"+u[o]+" 0 R");r.internal.write(" ] >>","endobj"),t=r.internal.newObject(),r.internal.write("<< /Dests "+f+" 0 R"),r.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var r=this;r.outline.root.children.length>0&&(r.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&r.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,i,o){var a={title:i,options:o,children:[]};return n==null&&(n=this.root),n.children.push(a),a},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<n.children.length;o++){var a=n.children[o];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(n)),o>0&&this.line("/Prev "+this.makeRef(n.children[o-1])),o<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[o+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var s=this.count=this.count_r({count:0},a);if(s>0&&this.line("/Count "+s),a.options&&a.options.pageNumber){var l=r.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var A=0;A<n.children.length;A++)this.renderItems(n.children[A])},r.outline.line=function(n){this.ctx.val+=n+`\r
423`},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r
424`+n.id+` 0 obj\r
425<<\r
426`},r.outline.objEnd=function(){this.ctx.val+=`>> \r
427endobj\r
428`},r.outline.count_r=function(n,i){for(var o=0;o<i.children.length;o++)n.count++,this.count_r(n,i.children[o]);return n.count}}])}(Ct.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,i,o,a,s){var l,A=this.decode.DCT_DECODE,u=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=a||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,l=function(d){for(var h,f=256*d.charCodeAt(4)+d.charCodeAt(5),g=d.length,p={width:0,height:0,numcomponents:1},v=4;v<g;v+=2){if(v+=f,t.indexOf(d.charCodeAt(v+1))!==-1){h=256*d.charCodeAt(v+5)+d.charCodeAt(v+6),p={width:256*d.charCodeAt(v+7)+d.charCodeAt(v+8),height:h,numcomponents:d.charCodeAt(v+9)};break}f=256*d.charCodeAt(v+2)+d.charCodeAt(v+3)}return p}(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r),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}u={data:r,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:A,index:n,alias:i}}return u}}(Ct.API),Ct.API.processPNG=function(e,t,r,n){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,o=spe(e,{checkCrc:!0}),a=o.width,s=o.height,l=o.channels,A=o.palette,u=o.depth;i=A&&l===1?function(O){for(var k=O.width,j=O.height,I=O.data,T=O.palette,U=O.depth,R=!1,G=[],K=[],V=void 0,Q=!1,H=0,q=0;q<T.length;q++){var re=u3(T[q],4),P=re[0],D=re[1],X=re[2],Z=re[3];G.push(P,D,X),Z!=null&&(Z===0?(H++,K.length<1&&K.push(q)):Z<255&&(Q=!0))}if(Q||H>1){R=!0,K=void 0;var ae=k*j;V=new Uint8Array(ae);for(var se=new DataView(I.buffer),pe=0;pe<ae;pe++){var le=A_(se,pe,U),he=u3(T[le],4)[3];V[pe]=he}}else H===0&&(K=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:R?8:void 0,colorBytes:I,alphaBytes:V,needSMask:R,palette:G,mask:K}}(o):l===2||l===4?function(O){for(var k=O.data,j=O.width,I=O.height,T=O.channels,U=O.depth,R=T===2?"DeviceGray":"DeviceRGB",G=T-1,K=j*I,V=G,Q=K*V,H=1*K,q=Math.ceil(Q*U/8),re=Math.ceil(H*U/8),P=new Uint8Array(q),D=new Uint8Array(re),X=new DataView(k.buffer),Z=new DataView(P.buffer),ae=new DataView(D.buffer),se=!1,pe=0;pe<K;pe++){for(var le=pe*T,he=0;he<V;he++)EP(Z,A_(X,le+he,U),pe*V+he,U);var Ae=A_(X,le+V,U);Ae<(1<<U)-1&&(se=!0),EP(ae,Ae,1*pe,U)}return{colorSpace:R,colorsPerPixel:G,sMaskBitsPerComponent:se?U:void 0,colorBytes:P,alphaBytes:D,needSMask:se}}(o):function(O){var k=O.data,j=O.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:j,colorsPerPixel:j==="DeviceGray"?1:3,colorBytes:k instanceof Uint16Array?function(I){for(var T=I.length,U=new Uint8Array(2*T),R=new DataView(U.buffer,U.byteOffset,U.byteLength),G=0;G<T;G++)R.setUint16(2*G,I[G],!1);return U}(k):k,needSMask:!1}}(o);var d,h,f,g=i,p=g.colorSpace,v=g.colorsPerPixel,m=g.sMaskBitsPerComponent,w=g.colorBytes,b=g.alphaBytes,E=g.needSMask,B=g.palette,_=g.mask,F=null;return n!==Ct.API.image_compression.NONE&&typeof qC=="function"?(F=function(O){var k;switch(O){case Ct.API.image_compression.FAST:k=11;break;case Ct.API.image_compression.MEDIUM:k=13;break;case Ct.API.image_compression.SLOW:k=14;break;default:k=12}return k}(n),d=this.decode.FLATE_DECODE,h="/Predictor ".concat(F," /Colors ").concat(v," /BitsPerComponent ").concat(u," /Columns ").concat(a),e=vP(w,Math.ceil(a*v*u/8),v,u,n),E&&(f=vP(b,Math.ceil(a*m/8),1,m,n))):(d=void 0,h=void 0,e=w,E&&(f=b)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:r,data:e,index:t,filter:d,decodeParameters:h,transparency:_,palette:B,sMask:f,predictor:F,width:a,height:s,bitsPerComponent:u,sMaskBitsPerComponent:m,colorSpace:p}}},function(e){e.processGIF89A=function(t,r,n,i){var o=new Ipe(t),a=o.width,s=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var A={data:l,width:a,height:s},u=new c_(100).encode(A,100);return e.processJPEG.call(this,u,r,n,i)},e.processGIF87A=e.processGIF89A}(Ct.API),_a.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 r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:n,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},_a.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(r){Lr.log("bit decode error:"+r)}},_a.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[o>>7-s&1];this.data[a+4*s]=l.blue,this.data[a+4*s+1]=l.green,this.data[a+4*s+2]=l.red,this.data[a+4*s+3]=255}r!==0&&(this.pos+=4-r)}},_a.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<e;i++){var o=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+2*i*4,s=o>>4,l=15&o,A=this.palette[s];if(this.data[a]=A.blue,this.data[a+1]=A.green,this.data[a+2]=A.red,this.data[a+3]=255,2*i+1>=this.width)break;A=this.palette[l],this.data[a+4]=A.blue,this.data[a+4+1]=A.green,this.data[a+4+2]=A.red,this.data[a+4+3]=255}t!==0&&(this.pos+=4-t)}},_a.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+4*n;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}e!==0&&(this.pos+=4-e)}},_a.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&t)/t*255|0,s=(o>>5&t)/t*255|0,l=(o>>10&t)/t*255|0,A=o>>15?255:0,u=n*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=A}this.pos+=e}},_a.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&t)/t*255|0,l=(a>>5&r)/r*255|0,A=(a>>11)/t*255|0,u=i*this.width*4+4*o;this.data[u]=A,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},_a.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*r;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=n,this.data[a+3]=255}this.pos+=this.width%4}},_a.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=a}},_a.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,r,n,i){var o=new _a(t,!1),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},A=new c_(100).encode(l,100);return e.processJPEG.call(this,A,r,n,i)}}(Ct.API),SP.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,r,n,i){var o=new SP(t),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},A=new c_(100).encode(l,100);return e.processJPEG.call(this,A,r,n,i)}}(Ct.API),Ct.API.processRGBA=function(e,t,r){for(var n=e.data,i=n.length,o=new Uint8Array(i/4*3),a=new Uint8Array(i/4),s=0,l=0,A=0;A<i;A+=4){var u=n[A],d=n[A+1],h=n[A+2],f=n[A+3];o[s++]=u,o[s++]=d,o[s++]=h,a[l++]=f}var g=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:g,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Ct.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
428a)","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},Qd=Ct.API,X0=Qd.getCharWidthsArray=function(e,t){var r,n,i=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),a=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,A=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=A.fof?A.fof:1,d=t.doKerning!==!1,h=0,f=e.length,g=0,p=s[0]||l,v=[];for(r=0;r<f;r++)n=e.charCodeAt(r),typeof i.metadata.widthOfString=="function"?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+a*(1e3/o)||0)/1e3):(h=d&&Sr(A[n])==="object"&&!isNaN(parseInt(A[n][g],10))?A[n][g]/u:0,v.push((s[n]||p)/l+h)),g=n;return v},gP=Qd.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Qd.processArabic&&(e=Qd.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,i)/r:X0.apply(this,arguments).reduce(function(o,a){return o+a},0)},mP=function(e,t,r,n){for(var i=[],o=0,a=e.length,s=0;o!==a&&s+t[o]<r;)s+=t[o],o++;i.push(e.slice(0,o));var l=o;for(s=0;o!==a;)s+t[o]>
vendor: 3,234 bytes, lines 428-430
428n&&(i.push(e.slice(l,o)),s=0,l=o),s+=t[o],o++;return l!==o&&i.push(e.slice(l,o)),i},yP=function(e,t,r){r||(r={});var n,i,o,a,s,l,A,u=[],d=[u],h=r.textIndent||0,f=0,g=0,p=e.split(" "),v=X0.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?p[0].length+2:r.lineIndent||0){var m=Array(l).join(" "),w=[];p.map(function(E){(E=E.split(/\s*\n/)).length>1?w=w.concat(E.map(function(B,_){return(_&&B.length?`
429`:"")+B})):w.push(E[0])}),p=w,l=gP.apply(this,[m,r])}for(o=0,a=p.length;o<a;o++){var b=0;if(n=p[o],l&&n[0]==`
430`&&(n=n.substr(1),b=1),h+f+(g=(i=X0.apply(this,[n,r])).reduce(function(E,B){return E+B},0))>t||b){if(g>t){for(s=mP.apply(this,[n,i,t-(h+f),t]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);g=i.slice(n.length-(u[0]?u[0].length:0)).reduce(function(E,B){return E+B},0)}else u=[n];d.push(u),h=g+l,f=v}else u.push(n),h+=f+g,f=v}return A=l?function(E,B){return(B?m:"")+E.join(" ")}:function(E){return E.join(" ")},d.map(A)},Qd.splitTextToSize=function(e,t,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),o=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var d=this.internal.getFont(u.fontName,u.fontStyle),h="Unicode";return d.metadata[h]?{widths:d.metadata[h].widths||{0:1},kerning:d.metadata[h].kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/i;o.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=r.lineIndent;var s,l,A=[];for(s=0,l=n.length;s<l;s++)A=A.concat(yP.apply(this,[n[s],a,o]));return A},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",r="klmnopqrstuvwxyz",n={},i={},o=0;o<16;o++)n[r[o]]=t[o],i[t[o]]=r[o];var a=function(h){return"0x"+parseInt(h,10).toString(16)},s=e.__fontmetrics__.compress=function(h){var f,g,p,v,m=["{"];for(var w in h){if(f=h[w],isNaN(parseInt(w,10))?g="'"+w+"'":(w=parseInt(w,10),g=(g=a(w).slice(2)).slice(0,-1)+i[g.slice(-1)]),typeof f=="number")f<0?(p=a(f).slice(3),v="-"):(p=a(f).slice(2),v=""),p=v+p.slice(0,-1)+i[p.slice(-1)];else{if(Sr(f)!=="object")throw new Error("Don't know what to do with value type "+Sr(f)+".");p=s(f)}m.push(g+p)}return m.push("}"),m.join("")},l=e.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,g,p,v,m={},w=1,b=m,E=[],B="",_="",F=h.length-1,O=1;O<F;O+=1)(v=h[O])=="'"?f?(p=f.join(""),f=void 0):f=[]:f?f.push(v):v=="{"?(E.push([b,p]),b={},p=void 0):v=="}"?((g=E.pop())[0][g[1]]=b,p=void 0,b=g[0]):v=="-"?w=-1:p===void 0?n.hasOwnProperty(v)?(B+=n[v],p=parseInt(B,16)*w,w=1,B=""):B+=v:n.hasOwnProperty(v)?(_+=n[v],b[p]=parseInt(_,16)*w,w=1,p=void 0,_=""):_+=v;return m},A={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:A,"Courier-Bold":A,"Courier-BoldOblique":A,"Courier-Oblique":A,Helvetica:A,"Helvetica-Bold":A,"Helvetica-BoldOblique":A,"Helvetica-Oblique":A,"Times-Roman":A,"Times-Bold":A,"Times-BoldItalic":A,"Times-Italic":A}},d
vendor: 14,727 bytes, line 430
430={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: 9,838 bytes, lines 430-458
430h){var f=h.font,g=d.Unicode[f.postScriptName];g&&(f.metadata.Unicode={},f.metadata.Unicode.widths=g.widths,f.metadata.Unicode.kerning=g.kerning);var p=u.Unicode[f.postScriptName];p&&(f.metadata.Unicode.encoding=p,f.encoding=p.codePages[0])}])}(Ct.API),function(e){var t=function(r){for(var n=r.length,i=new Uint8Array(n),o=0;o<n;o++)i[o]=r.charCodeAt(o);return i};e.API.events.push(["addFont",function(r){var n=void 0,i=r.font,o=r.instance;if(!i.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(n=o.existsFileInVFS(i.postScriptName)===!1?o.loadFile(i.postScriptName):o.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(a,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(Ww(s)),a.metadata=e.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(i,n)}}])}(Ct),Ct.API.addSvgAsImage=function(e,t,r,n,i,o,a,s){if(isNaN(t)||isNaN(r))throw Lr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(i))throw Lr.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=n,l.height=i;var A=l.getContext("2d");A.fillStyle="#fff",A.fillRect(0,0,l.width,l.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(Rt.canvg?Promise.resolve(Rt.canvg):Wg(()=>import("./index.es-CwlOorER.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(A,e,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(h){return h.render(u)}).then(function(){d.addImage(l.toDataURL("image/jpeg",1),t,r,n,i,a,s)})},Ct.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(t,r);return this},Ct.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,i,o,a={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(a),l=[],A=0,u=0,d=0;function h(g,p){var v,m=!1;for(v=0;v<g.length;v+=1)g[v]===p&&(m=!0);return m}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var f=s.length;for(d=0;d<f;d+=1)r[s[d]].value=r[s[d]].defaultValue,r[s[d]].explicitSet=!1}if(Sr(e)==="object"){for(i in e)if(o=e[i],h(s,i)&&o!==void 0){if(r[i].type==="boolean"&&typeof o=="boolean")r[i].value=o;else if(r[i].type==="name"&&h(r[i].valueSet,o))r[i].value=o;else if(r[i].type==="integer"&&Number.isInteger(o))r[i].value=o;else if(r[i].type==="array"){for(A=0;A<o.length;A+=1)if(n=!0,o[A].length===1&&typeof o[A][0]=="number")l.push(String(o[A]-1));else if(o[A].length>1){for(u=0;u<o[A].length;u+=1)typeof o[A][u]!="number"&&(n=!1);n===!0&&l.push([o[A][0]-1,o[A][1]-1].join(" "))}r[i].value="["+l.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var g,p=[];for(g in r)r[g].explicitSet===!0&&(r[g].type==="name"?p.push("/"+g+" /"+r[g].value):p.push("/"+g+" "+r[g].value));p.length!==0&&this.internal.write(`/ViewerPreferences
431<<
432`+p.join(`
433`)+`
434>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},Ct.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",Fpe),this.internal.events.subscribe("postPutResources",kpe)),this},function(e){var t=e.API,r=t.pdfEscape16=function(o,a){for(var s,l=a.metadata.Unicode.widths,A=["","0","00","000","0000"],u=[""],d=0,h=o.length;d<h;++d){if(s=a.metadata.characterToGlyph(o.charCodeAt(d)),a.metadata.glyIdsUsed.push(s),a.metadata.toUnicode[s]=o.charCodeAt(d),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(a.metadata.widthOfGlyph(s),10)])),s=="0")return u.join("");s=s.toString(16),u.push(A[4-s.length],s)}return u.join("")},n=function(o){var a,s,l,A,u,d,h;for(u=`/CIDInit /ProcSet findresource begin
43512 dict begin
436begincmap
437/CIDSystemInfo <<
438  /Registry (Adobe)
439  /Ordering (UCS)
440  /Supplement 0
441>> def
442/CMapName /Adobe-Identity-UCS def
443/CMapType 2 def
4441 begincodespacerange
445<0000><ffff>
446endcodespacerange`,l=[],d=0,h=(s=Object.keys(o).sort(function(f,g){return f-g})).length;d<h;d++)a=s[d],l.length>=100&&(u+=`
447`+l.length+` beginbfchar
448`+l.join(`
449`)+`
450endbfchar`,l=[]),o[a]!==void 0&&o[a]!==null&&typeof o[a].toString=="function"&&(A=("0000"+o[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),l.push("<"+a+"><"+A+">"));return l.length&&(u+=`
451`+l.length+` beginbfchar
452`+l.join(`
453`)+`
454endbfchar
455`),u+`endcmap
456CMapName currentdict /CMap defineresource pop
457end
458end`};t.events.push(["putFont",function(o){(function(a){var s=a.font,l=a.out,A=a.newObject,u=a.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var d=s.metadata.Unicode.widths,h=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),f="",g=0;g<h.length;g++)f+=String.fromCharCode(h[g]);var p=A();u({data:f,addLength1:!0,objectId:p}),l("endobj");var v=A();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:v}),l("endobj");var m=A();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+th(s.fontName)),l("/FontFile2 "+p+" 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 w=A();l("<<"),l("/Type /Font"),l("/BaseFont /"+th(s.fontName)),l("/FontDescriptor "+m+" 0 R"),l("/W "+e.API.PDFObject.convert(d)),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=A(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+v+" 0 R"),l("/BaseFont /"+th(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+w+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(o)}]),t.events.push(["putFont",function(o){(function(a){var s=a.font,l=a.out,A=a.newObject,u=a.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var d=s.metadata.rawData,h="",f=0;f<d.length;f++)h+=String.fromCharCode(d[f]);var g=A();u({data:h,addLength1:!0,objectId:g}),l("endobj");var p=A();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:p}),l("endobj");var v=A();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+g+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+th(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Asce
458nt "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=A();for(var m=0;m<s.metadata.hmtx.widths.length;m++)s.metadata.hmtx.widths[m]=parseInt(s.metadata.hmtx.widths[m]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+p+" 0 R/BaseFont/"+th(s.fontName)+"/FontDescriptor "+v+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),l("endobj"),s.isAlreadyPutted=!0}})(o)}]);var i=function(o){var a,s=o.text||"",l=o.x,A=o.y,u=o.options||{},d=o.mutex||{},h=d.pdfEscape,f=d.activeFontKey,g=d.fonts,p=f,v="",m=0,w="",b=g[p].encoding;if(g[p].encoding!=="Identity-H")return{text:s,x:l,y:A,options:u,mutex:d};for(w=s,p=f,Array.isArray(s)&&(w=s[0]),m=0;m<w.length;m+=1)g[p].metadata.hasOwnProperty("cmap")&&(a=g[p].metadata.cmap.unicode.codeMap[w[m].charCodeAt(0)]),a||w[m].charCodeAt(0)<256&&g[p].metadata.hasOwnProperty("Unicode")?v+=w[m]:v+="";var E="";return parseInt(p.slice(1))<14||b==="WinAnsiEncoding"?E=h(v,p).split("").map(function(B){return B.charCodeAt(0).toString(16)}).join(""):b==="Identity-H"&&(E=r(v,g[p])),d.isHex=!0,{text:E,x:l,y:A,options:u,mutex:d}};t.events.push(["postProcessText",function(o){var a=o.text||"",s=[],l={text:a,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(a)){var A=0;for(A=0;A<a.length;A+=1)Array.isArray(a[A])&&a[A].length===3?s.push([i(Object.assign({},l,{text:a[A][0]})).text,a[A][1],a[A][2]]):s.push(i(Object.assign({},l,{text:a[A]})).text);o.text=s}else o.text=i(Object.assign({},l,{text:a})).text}])}(Ct),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0},e.addFileToVFS=function(r,n){return t.call(this),this.internal.vFS[r]=n,this},e.getFileFromVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}}(Ct.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var i,o,a,s,l,A,u,d=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]],f=[[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]],g={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},v=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],m=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)$/),w=!1,b=0;this.__bidiEngine__={};var E=function(I){var T=I.charCodeAt(),U=T>>8,R=p[U];return R!==void 0?d[256*R+(255&T)]:U===252||U===253?"AL":m.test(U)?"L":U===8?"R":"N"},B=function(I){for(var T,U=0;U<I.length;U++){if((T=E(I.charAt(U)))==="L")return!1;if(T==="R")return!0}return!1},_=function(I,T,U,R){var G,K,V,Q,H=T[R];switch(H){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":w=!1;break;case"N":case"AN":break;case"EN":w&&(H="AN");break;case"AL":w=!0,H="R";break;case"WS":case"BN":H="N";break;case"CS":R<1||R+1>=T.length||(G=U[R-1])!=="EN"&&G!=="AN"||(K=T[R+1])!=="EN"&&K!=="AN"?H="N":w&&(K="AN"),H=K===G?K:"N";break;case"ES":H=(G=R>0?U[R-1]:"B")==="EN"&&R+1<T.length&&T[R+1]==="EN"?"EN":"N";break;case"ET":if(R>0&&U[R-1]==="EN"){H="EN";break}if(w){H="N";break}for(V=R+1,Q=T.length;V<Q&&T[V]==="ET";)V++;H=V<Q&&T[V]==="EN"?"EN":"N";break;case"NSM":if(a&&!s){for(Q=T.length,V=R+1;V<Q&&T[V]==="NSM";)V++;if(V<Q){var q=I[R],re=q>=1425&&q<=2303||q===64286;if(G=T[V],re&&(G==="R"||G==="AL")){H="R";break}}}H=R<1||(G=T[R-1])==="B"?"N":U[R-1];break;case"B":w=!1,i=!0,H=b;break;case"S":o=!0,H="N"}return H},F=function(I,T,U){var R=I.split("");return U&&O(R,U,{hiLevel:b}),R.reverse(),T&&T.reverse(),R.join("")},O=function(I,T,U){var R,G,K,V,Q,H=-1,q=I.length,re=0,P=[],D=b?f:h,X=[];for(w=!1,i=!1,o=!1,G=0;G<q;G++)X[G]=E(I[G]);for(K=0;K<q;K++){if(Q=re,P[K]=_(I,X,P,K),R=240&(re=D[Q][g[P[K]]]),re&=15,T[K]=V=D[re][5],R>0)if(R===16){for(G=H;G<K;G++)T[G]=1;H=-1}else H=-1;if(D[re][6])H===-1&&(H=K);else if(H>-1){for(G=H;G<K;G++)T[G]=V;H=-1}X[K]==="B"&&(T[K]=0),U.hiLevel|=V}o&&function(Z,ae,se){for(var pe=0;pe<se;pe++)if(Z[pe]==="S"){ae[pe]=b;
vendor: 33,591 bytes, lines 458-459
458for(var le=pe-1;le>=0&&Z[le]==="WS";le--)ae[le]=b}}(X,T,q)},k=function(I,T,U,R,G){if(!(G.hiLevel<I)){if(I===1&&b===1&&!i)return T.reverse(),void(U&&U.reverse());for(var K,V,Q,H,q=T.length,re=0;re<q;){if(R[re]>=I){for(Q=re+1;Q<q&&R[Q]>=I;)Q++;for(H=re,V=Q-1;H<V;H++,V--)K=T[H],T[H]=T[V],T[V]=K,U&&(K=U[H],U[H]=U[V],U[V]=K);re=Q}re++}}},j=function(I,T,U){var R=I.split(""),G={hiLevel:b};return U||(U=[]),O(R,U,G),function(K,V,Q){if(Q.hiLevel!==0&&u)for(var H,q=0;q<K.length;q++)V[q]===1&&(H=v.indexOf(K[q]))>=0&&(K[q]=v[H+1])}(R,U,G),k(2,R,T,U,G),k(1,R,T,U,G),R.join("")};return this.__bidiEngine__.doBidiReorder=function(I,T,U){if(function(G,K){if(K)for(var V=0;V<G.length;V++)K[V]=V;s===void 0&&(s=B(G)),A===void 0&&(A=B(G))}(I,T),a||!l||A)if(a&&l&&s^A)b=s?1:0,I=F(I,T,U);else if(!a&&l&&A)b=s?1:0,I=j(I,T,U),I=F(I,T);else if(!a||s||l||A){if(a&&!l&&s^A)I=F(I,T),s?(b=0,I=j(I,T,U)):(b=1,I=j(I,T,U),I=F(I,T));else if(a&&s&&!l&&A)b=1,I=j(I,T,U),I=F(I,T);else if(!a&&!l&&s^A){var R=u;s?(b=1,I=j(I,T,U),b=0,u=!1,I=j(I,T,U),u=R):(b=0,I=j(I,T,U),I=F(I,T),b=1,u=!1,I=j(I,T,U),u=R,I=F(I,T))}}else b=0,I=j(I,T,U);else b=s?1:0,I=j(I,T,U);return I},this.__bidiEngine__.setOptions=function(I){I&&(a=I.isInputVisual,l=I.isOutputVisual,s=I.isInputRtl,A=I.isOutputRtl,u=I.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),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"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var i=n.text;n.x,n.y;var o=n.options||{};n.mutex,o.lang;var a=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,r.setOptions(o),Object.prototype.toString.call(i)==="[object Array]"){var s=0;for(a=[],s=0;s<i.length;s+=1)Object.prototype.toString.call(i[s])==="[object Array]"?a.push([r.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):a.push([r.doBidiReorder(i[s])]);n.text=a}else n.text=r.doBidiReorder(i);r.setOptions({isInputVisual:!0})}])}(Ct),Ct.API.TTFFont=function(){function e(t){var r;if(this.rawData=t,r=this.contents=new lc(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new Vpe(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Npe(this.contents),this.head=new Ope(this),this.name=new Rpe(this),this.cmap=new K7(this),this.toUnicode={},this.hhea=new jpe(this),this.maxp=new Dpe(this),this.hmtx=new Qpe(this),this.post=new Lpe(this),this.os2=new Ppe(this),this.loca=new Kpe(this),this.glyf=new Mpe(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,r,n,i,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var a,s,l,A;for(A=[],a=0,s=(l=this.bbox).length;a<s;a++)t=l[a],A.push(Math.round(t*this.scaleFactor));return A}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),32768&(r=i>>16)&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):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=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===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 r;return((r=this.cmap.unicode)!=null?r.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*r},e.prototype.widthOfString=function(t,r,n){var i,o,a,s;for(a=0,o=0,s=(t=""+t).length;0<=s?o<s:o>s;o=0<=s?++o:--o)i=t.charCodeAt(o),a+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/r)||0;return a*(r/1e3)},e.prototype.lineHeight=function(t,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e}();var Wa,lc=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 r,n;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var r,n,i;for(i=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)i.push(this.writeByte(t.charCodeAt(r)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,i,o,a,s,l;return t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^o)+65536*(255^a)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*r+1099511627776*n+4294967296*i+16777216*o+65536*a+256*s+l},e.prototype.writeLongLong=function(t){var r,n;return r=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var r,n;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r.push(this.readByte());return r},e.prototype.write=function(t){var r,n,i,o;for(o=[],n=0,i=t.length;n<i;n++)r=t[n],o.push(this.writeByte(r));return o},e}(),Npe=function(){var e;function t(r){var n,i,o;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},i=0,o=this.tableCount;0<=o?i<o:i>o;i=0<=o?++i:--i)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(r){var n,i,o,a,s,l,A,u,d,h,f,g,p;for(p in f=Object.keys(r).length,l=Math.log(2),d=16*Math.floor(Math.log(f)/l),a=Math.floor(d/l),u=16*f-d,(i=new lc).writeInt(this.scalarType),i.writeShort(f),i.writeShort(d),i.writeShort(a),i.writeShort(u),o=16*f,A=i.pos+o,s=null,g=[],r)for(h=r[p],i.writeString(p),i.writeInt(e(h)),i.writeInt(A),i.writeInt(h.length),g=g.concat(h),p==="head"&&(s=A),A+=h.length;A%4;)g.push(0),A++;return i.write(g),n=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(n),i.data},e=function(r){var n,i,o,a;for(r=V7.call(r);r.length%4;)r.push(0);for(o=new lc(r),i=0,n=0,a=r.length;n<a;n=n+=4)i+=o.readUInt32();return 4294967295&i},t}(),Tpe={}.hasOwnProperty,Us=function(e,t){for(var r in t)Tpe.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};Wa=function(){function e(t){var r;this.file=t,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.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 Ope=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,Wa),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 r;return(r=new lc).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(t),r.writeShort(this.glyphDataFormat),r.data},e}(),CP=function(){function e(t,r){var n,i,o,a,s,l,A,u,d,h,f,g,p,v,m,w,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=r+t.readInt(),d=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(f=t.readUInt16(),h=f/2,t.pos+=6,o=function(){var E,B;for(B=[],l=E=0;0<=h?E<h:E>h;l=0<=h?++E:--E)B.push(t.readUInt16());return B}(),t.pos+=2,p=function(){var E,B;for(B=[],l=E=0;0<=h?E<h:E>h;l=0<=h?++E:--E)B.push(t.readUInt16());return B}(),A=function(){var E,B;for(B=[],l=E=0;0<=h?E<h:E>h;l=0<=h?++E:--E)B.push(t.readUInt16());return B}(),u=function(){var E,B;for(B=[],l=E=0;0<=h?E<h:E>h;l=0<=h?++E:--E)B.push(t.readUInt16());return B}(),i=(this.length-t.pos+this.offset)/2,s=function(){var E,B;for(B=[],l=E=0;0<=i?E<i:E>i;l=0<=i?++E:--E)B.push(t.readUInt16());return B}(),l=m=0,b=o.length;m<b;l=++m)for(v=o[l],n=w=g=p[l];g<=v?w<=v:w>=v;n=g<=v?++w:--w)u[l]===0?a=n+A[l]:(a=s[u[l]/2+(n-g)-(h-l)]||0)!==0&&(a+=A[l]),this.codeMap[n]=65535&a}t.pos=d}return e.encode=function(t,r){var n,i,o,a,s,l,A,u,d,h,f,g,p,v,m,w,b,E,B,_,F,O,k,j,I,T,U,R,G,K,V,Q,H,q,re,P,D,X,Z,ae,se,pe,le,he,Ae,ue;switch(R=new lc,a=Object.keys(t).sort(function(_e,ve){return _e-ve}),r){case"macroman":for(p=0,v=function(){var _e=[];for(g=0;g<256;++g)_e.push(0);return _e}(),w={0:0},o={},G=0,H=a.length;G<H;G++)w[le=t[i=a[G]]]==null&&(w[le]=++p),o[i]={old:t[i],new:w[t[i]]},v[i]=w[t[i]];return R.writeUInt16(1),R.writeUInt16(0),R.writeUInt32(12),R.writeUInt16(0),R.writeUInt16(262),R.writeUInt16(0),R.write(v),{charMap:o,subtable:R.data,maxGlyphID:p+1};case"unicode":for(T=[],d=[],b=0,w={},n={},m=A=null,K=0,q=a.length;K<q;K++)w[B=t[i=a[K]]]==null&&(w[B]=++b),n[i]={old:B,new:w[B]},s=w[B]-i,m!=null&&s===A||(m&&d.push(m),T.push(i),A=s),m=i;for(m&&d.push(m),d.push(65535),T.push(65535),j=2*(k=T.length),O=2*Math.pow(Math.log(k)/Math.LN2,2),h=Math.log(O/2)/Math.LN2,F=2*k-O,l=[],_=[],f=[],g=V=0,re=T.length;V<re;g=++V){if(I=T[g],u=d[g],I===65535){l.push(0),_.push(0);break}if(I-(U=n[I].new)>=32768)for(l.push(0),_.push(2*(f.length+k-g)),i=Q=I;I<=u?Q<=u:Q>=u;i=I<=u?++Q:--Q)f.push(n[i].new);else l.push(U-I),_.push(0)}for(R.writeUInt16(3),R.writeUInt16(1),R.writeUInt32(12),R.writeUInt16(4),R.writeUInt16(16+8*k+2*f.length),R.writeUInt16(0),R.writeUInt16(j),R.writeUInt16(O),R.writeUInt16(h),R.writeUInt16(F),se=0,P=d.length;se<P;se++)i=d[se],R.writeUInt16(i);for(R.writeUInt16(0),pe=0,D=T.length;pe<D;pe++)i=T[pe],R.writeUInt16(i);for(he=0,X=l.length;he<X;he++)s=l[he],R.writeUInt16(s);for(Ae=0,Z=_.length;Ae<Z;Ae++)E=_[Ae],R.writeUInt16(E);for(ue=0,ae=f.length;ue<ae;ue++)p=f[ue],R.writeUInt16(p);return{charMap:n,subtable:R.data,maxGlyphID:b+1}}},e}(),K7=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,Wa),e.prototype.tag="cmap",e.prototype.parse=function(t){var r,n,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)r=new CP(t,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(t,r){var n,i;return r==null&&(r="macroman"),n=CP.encode(t,r),(i=new lc).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},e}(),jpe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,Wa),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}(),Ppe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,Wa),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 r,n;for(n=[],r=0;r<10;++r)n.push(t.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(t.readInt());return n}(),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 r,n;for(n=[],r=0;r<2;r=++r)n.push(t.readInt());return n}(),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}(),Lpe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,Wa),e.prototype.tag="post",e.prototype.parse=function(t){var r,n,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 o;for(n=t.readUInt16(),this.glyphNameIndex=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)r=t.readByte(),i.push(this.names.push(t.readString(r)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=(function(){var a,s,l;for(l=[],o=a=0,s=this.file.maxp.numGlyphs;0<=s?a<s:a>s;o=0<=s?++a:--a)l.push(t.readUInt32());return l}).call(this)}},e}(),Upe=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Rpe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,Wa),e.prototype.tag="name",e.prototype.parse=function(t){var r,n,i,o,a,s,l,A,u,d,h;for(t.pos=this.offset,t.readShort(),r=t.readShort(),s=t.readShort(),n=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+s+t.readShort()});for(l={},o=u=0,d=n.length;u<d;o=++u)i=n[o],t.pos=i.offset,A=t.readString(i.length),a=new Upe(A,i),l[h=i.nameID]==null&&(l[h]=[]),l[i.nameID].push(a);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=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}(),Dpe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,Wa),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}(),Qpe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,Wa),e.prototype.tag="hmtx",e.prototype.parse=function(t){var r,n,i,o,a,s,l;for(t.pos=this.offset,this.metrics=[],r=0,s=this.file.hhea.numberOfMetrics;0<=s?r<s:r>s;r=0<=s?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var A,u;for(u=[],r=A=0;0<=i?A<i:A>i;r=0<=i?++A:--A)u.push(t.readInt16());return u}(),this.widths=(function(){var A,u,d,h;for(h=[],A=0,u=(d=this.metrics).length;A<u;A++)o=d[A],h.push(o.advance);return h}).call(this),n=this.widths[this.widths.length-1],l=[],r=a=0;0<=i?a<i:a>i;r=0<=i?++a:--a)l.push(this.widths.push(n));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}(),V7=[].slice,Mpe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,Wa),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var r,n,i,o,a,s,l,A,u,d;return t in this.cache?this.cache[t]:(o=this.file.loca,r=this.file.contents,n=o.indexOf(t),(i=o.lengthOf(t))===0?this.cache[t]=null:(r.pos=this.offset+n,a=(s=new lc(r.read(i))).readShort(),A=s.readShort(),d=s.readShort(),l=s.readShort(),u=s.readShort(),this.cache[t]=a===-1?new Hpe(s,A,d,l,u):new $pe(s,a,A,d,l,u),this.cache[t]))},e.prototype.encode=function(t,r,n){var i,o,a,s,l;for(a=[],o=[],s=0,l=r.length;s<l;s++)i=t[r[s]],o.push(a.length),i&&(a=a.concat(i.encode(n)));return o.push(a.length),{table:a,offsets:o}},e}(),$pe=function(){function e(t,r,n,i,o,a){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=i,this.xMax=o,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Hpe=function(){function e(t,r,n,i,o){var a,s;for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;s=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&s;)a.pos+=1&s?4:2,128&s?a.pos+=8:64&s?a.pos+=4:8&s&&(a.pos+=2)}return e.prototype.encode=function(){var t,r,n;for(r=new lc(V7.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e}(),Kpe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Us(e,Wa),e.prototype.tag="loca",e.prototype.parse=function(t){var r,n;return t.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var i,o;for(o=[],n=0,i=this.length;n<i;n+=2)o.push(2*t.readUInt16());return o}).call(this):(function(){var i,o;for(o=[],n=0,i=this.length;n<i;n+=4)o.push(t.readUInt32());return o}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,r){for(var n=new Uint32Array(this.offsets.length),i=0,o=0,a=0;a<n.length;++a)if(n[a]=i,o<r.length&&r[o]==a){++o,n[a]=i;var s=this.offsets[a],l=this.offsets[a+1]-s;l>0&&(i+=l)}for(var A=new Array(4*n.length),u=0;u<n.length;++u)A[4*u+3]=255&n[u],A[4*u+2]=(65280&n[u])>>8,A[4*u+1]=(16711680&n[u])>>16,A[4*u]=(4278190080&n[u])>>24;return A},e}(),Vpe=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,i,o;for(r in i=this.font.cmap.tables[0].codeMap,t={},o=this.subset)n=o[r],t[r]=i[n];return t},e.prototype.glyphsFor=function(t){var r,n,i,o,a,s,l;for(i={},a=0,s=t.length;a<s;a++)i[o=t[a]]=this.font.glyf.glyphFor(o);for(o in r=[],i)(n=i[o])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(o in l=this.glyphsFor(r))n=l[o],i[o]=n;return i},e.prototype.encode=function(t,r){var n,i,o,a,s,l,A,u,d,h,f,g,p,v,m;for(i in n=K7.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},m=n.charMap)f[(l=m[i]).old]=l.new;for(g in h=n.maxGlyphID,a)g in f||(f[g]=h++);return u=function(w){var b,E;for(b in E={},w)E[w[b]]=b;return E}(f),d=Object.keys(u).sort(function(w,b){return w-b}),p=function(){var w,b,E;for(E=[],w=0,b=d.length;w<b;w++)s=d[w],E.push(u[s]);return E}(),o=this.font.glyf.encode(a,p,f),A=this.font.loca.encode(o.offsets,p),v={cmap:this.font.cmap.raw(),glyf:o.table,loca:A,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(r)},this.font.os2.exists&&(v["OS/2"]=this.font.os2.raw()),this.font.directory.encode(v)},e}();Ct.API.PDFObject=function(){var e;function t(){}return e=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},t.convert=function(r){var n,i,o,a;if(Array.isArray(r))return"["+function(){var s,l,A;for(A=[],s=0,l=r.length;s<l;s++)n=r[s],A.push(t.convert(n));return A}().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r!=null&&r.isString)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(i in o=["<<"],r)a=r[i],o.push("/"+i+" "+t.convert(a));return o.push(">>"),o.join(`
459`)}return""+r},t}();const CF=e=>new Promise(t=>setTimeout(t,e)),pi=15,zpe="The FlipFactor™™ framework, assessment questions, archetypes, scoring methodology, and all associated content are the proprietary intellectual property of FlipWork, Inc. Unauthorized reproduction, distribution, or replication in any form is prohibited.";function Wpe(e){const t=e.internal.pageSize.getWidth(),r=e.internal.pageSize.getHeight();e.setFontSize(7),e.setTextColor(156,163,175);const n=t-pi*2,i=e.splitTextToSize(zpe,n),o=3,a=i.length*o,l=r-6-a+o;
459i.forEach((A,u)=>{e.text(A,t/2,l+u*o,{align:"center"})})}function IF(e){const t=e.getNumberOfPages();for(let r=1;r<=t;r++)e.setPage(r),Wpe(e)}function nu(e,t,r,n=pi,i=!0){const o=e.internal.pageSize.getWidth(),a=e.internal.pageSize.getHeight(),s=o-pi*2,A=a-pi-12,u=s,d=t.height*u/t.width;let h;r?h=pi:i?(e.addPage(),h=pi):h=n;let f=d,g=0;for(;f>0;){const p=A-h;if(p<=0){e.addPage(),h=pi;continue}const v=Math.min(f,p),m=v/d,w=g/d,b=document.createElement("canvas");b.width=t.width,b.height=Math.round(t.height*m);const E=b.getContext("2d");if(E){E.drawImage(t,0,Math.round(t.height*w),t.width,b.height,0,0,t.width,b.height);const B=b.toDataURL("image/jpeg",.85);e.addImage(B,"JPEG",pi,h,u,v)}g+=v,f-=v,h+=v,f>0&&(e.addPage(),h=pi)}return h}const kF={scale:1.5,useCORS:!0,allowTaint:!1,scrollY:-window.scrollY,windowWidth:document.documentElement.offsetWidth,backgroundColor:"#ffffff"};async function Gpe(e,t,r){const n=t.filter(Boolean);if(n.length===0)return;const i=e.querySelectorAll(".download-report-btn");i.forEach(o=>o.style.visibility="hidden"),await CF(500);try{const o={...kF,scrollY:-window.scrollY,windowWidth:document.documentElement.offsetWidth},a=await Promise.all(n.map(h=>EA(h,o))),s=new Ct({orientation:"portrait",unit:"mm",format:"a4"}),l=s.internal.pageSize.getHeight(),A=s.internal.pageSize.getWidth()-pi*2,u=12;let d=pi;a.forEach((h,f)=>{const g=f===0,p=h.height*A/h.width,v=l-pi-u-d,m=!g&&p<=v-4,w=!g&&!m;d=nu(s,h,g,g?pi:d+4,w)}),IF(s),s.save(r)}finally{i.forEach(o=>o.style.visibility="visible")}}async function z7(e,t){const r=e.querySelectorAll(".download-report-btn");r.forEach(n=>n.style.visibility="hidden"),await CF(500);try{const n=await EA(e,{...kF,scrollY:-window.scrollY,windowWidth:document.documentElement.offsetWidth}),i=new Ct({orientation:"portrait",unit:"mm",format:"a4"});nu(i,n,!0),IF(i),i.save(t)}finally{r.forEach(n=>n.style.visibility="visible")}}async function Ype(e,t,r,n,i,o,a){const s=e.querySelectorAll(".download-report-btn");s.forEach(l=>l.style.visibility="hidden"),await CF(500);try{const l={...kF,scrollY:-window.scrollY,windowWidth:document.documentElement.offsetWidth},A=[EA(t,l),EA(r,l),EA(n,l)];o&&A.push(EA(o,l)),a&&A.push(EA(a,l));const u=await Promise.all(A),[d,h,f]=u;let g=3;const p=o?u[g++]:void 0,v=a?u[g++]:void 0,m=new Ct({orientation:"portrait",unit:"mm",format:"a4"}),w=m.internal.pageSize.getHeight(),b=m.internal.pageSize.getWidth()-pi*2;nu(m,d,!0);const E=nu(m,h,!1,pi,!0);let B=nu(m,f,!1,E+4,!1);if(p){const _=p.height*b/p.width,F=w-pi-12-B,O=_<=F-4;B=nu(m,p,!1,B+4,!O)}if(v){const _=v.height*b/v.width,F=w-pi-12-B,O=_<=F-4;nu(m,v,!1,B+4,!O)}IF(m),m.save(i)}finally{s.forEach(l=>l.style.visibility="visible")}}const Ac=({onClick:e,isGenerating:t})=>c.jsxs("button",{onClick:e,disabled:t,className:"download-report-btn inline-flex items-center gap-2",style:{backgroundColor:t?"#d4a800":"#FFC100",color:"#1A1918",fontFamily:"Outfit, sans-serif",fontWeight:500,fontSize:"14px",padding:"10px 20px",borderRadius:"6px",border:"none",cursor:t?"not-allowed":"pointer",opacity:t?.8:1},children:[t?c.jsx(kJ,{size:16,className:"animate-spin"}):c.jsx(CJ,{size:16}),t?"Generating PDF…":"Download My Report"]});var u_=0;function W7(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??IP()),document.body.insertAdjacentElement("beforeend",e[1]??IP()),u_++,()=>{u_===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),u_--}},[])}function IP(){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 d_="focusScope.autoFocusOnMount",h_="focusScope.autoFocusOnUnmount",kP={bubbles:!1,cancelable:!0},qpe="FocusScope",FF=S.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=S.useState(null),A=Ns(i),u=Ns(o),d=S.useRef(null),h=pn(t,p=>l(p)),f=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(n){let p=function(b){if(f.paused||!s)return;const E=b.target;s.contains(E)?d.current=E:pA(d.current,{select:!0})},v=function(b){if(f.paused||!s)return;const E=b.relatedTarget;E!==null&&(s.contains(E)||pA(d.current,{select:!0}))},m=function(b){if(document.activeElement===document.body)for(const B of b)B.removedNodes.length>0&&pA(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const w=new MutationObserver(m);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),w.disconnect()}}},[n,s,f.paused]),S.useEffect(()=>{if(s){NP.add(f);const p=document.activeElement;if(!s.contains(p)){const m=new CustomEvent(d_,kP);s.addEventListener(d_,A),s.dispatchEvent(m),m.defaultPrevented||(Xpe(rge(G7(s)),{select:!0}),document.activeElement===p&&pA(s))}return()=>{s.removeEventListener(d_,A),setTimeout(()=>{const m=new CustomEvent(h_,kP);s.addEventListener(h_,u),s.dispatchEvent(m),m.defaultPrevented||pA(p??document.body,{select:!0}),s.removeEventListener(h_,u),NP.remove(f)},0)}}},[s,A,u,f]);const g=S.useCallback(p=>{if(!r&&!n||f.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,m=document.activeElement;if(v&&m){const w=p.currentTarget,[b,E]=Jpe(w);b&&E?!p.shiftKey&&m===E?(p.preventDefault(),r&&pA(b,{select:!0}
vendor: 3,609 bytes, line 459
459)):p.shiftKey&&m===b&&(p.preventDefault(),r&&pA(E,{select:!0})):m===w&&p.preventDefault()}},[r,n,f.paused]);return c.jsx(Or.div,{tabIndex:-1,...a,ref:h,onKeyDown:g})});FF.displayName=qpe;function Xpe(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(pA(n,{select:t}),document.activeElement!==r)return}function Jpe(e){const t=G7(e),r=FP(t,e),n=FP(t.reverse(),e);return[r,n]}function G7(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function FP(e,t){for(const r of e)if(!Zpe(r,{upTo:t}))return r}function Zpe(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 ege(e){return e instanceof HTMLInputElement&&"select"in e}function pA(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&ege(e)&&t&&e.select()}}var NP=tge();function tge(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=TP(e,t),e.unshift(t)},remove(t){var r;e=TP(e,t),(r=e[0])==null||r.resume()}}}function TP(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function rge(e){return e.filter(t=>t.tagName!=="A")}var nge=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Md=new WeakMap,J0=new WeakMap,Z0={},f_=0,Y7=function(e){return e&&(e.host||Y7(e.parentNode))},ige=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Y7(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},oge=function(e,t,r,n){var i=ige(t,Array.isArray(e)?e:[e]);Z0[r]||(Z0[r]=new WeakMap);var o=Z0[r],a=[],s=new Set,l=new Set(i),A=function(d){!d||s.has(d)||(s.add(d),A(d.parentNode))};i.forEach(A);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(s.has(h))u(h);else try{var f=h.getAttribute(n),g=f!==null&&f!=="false",p=(Md.get(h)||0)+1,v=(o.get(h)||0)+1;Md.set(h,p),o.set(h,v),a.push(h),p===1&&g&&J0.set(h,!0),v===1&&h.setAttribute(r,"true"),g||h.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return u(t),s.clear(),f_++,function(){a.forEach(function(d){var h=Md.get(d)-1,f=o.get(d)-1;Md.set(d,h),o.set(d,f),h||(J0.has(d)||d.removeAttribute(n),J0.delete(d)),f||d.removeAttribute(r)}),f_--,f_||(Md=new WeakMap,Md=new WeakMap,J0=new WeakMap,Z0={})}},q7=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=nge(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),oge(n,i,r,"aria-hidden")):function(){return null}},Jw="right-scroll-bar-position",Zw="width-before-scroll-bar",age="with-scroll-bars-hidden",sge="--removed-body-scroll-bar-size";function p_(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lge(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var Age=typeof window<"u"?S.useLayoutEffect:S.useEffect,OP=new WeakMap;function cge(e,t){var r=lge(null,function(n){return e.forEach(function(i){return p_(i,n)})});return Age(function(){var n=OP.get(r);if(n){var i=new Set(n),o=new Set(e),a=r.current;
vendor: 4,224 bytes, lines 459-474
459i.forEach(function(s){o.has(s)||p_(s,null)}),o.forEach(function(s){i.has(s)||p_(s,a)})}OP.set(r,e)},[e]),r}function uge(e){return e}function dge(e,t){t===void 0&&(t=uge);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var a=t(o,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(n=!0;r.length;){var a=r;r=[],a.forEach(o)}r={push:function(s){return o(s)},filter:function(){return r}}},assignMedium:function(o){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(o),a=r}var l=function(){var u=a;a=[],u.forEach(o)},A=function(){return Promise.resolve().then(l)};A(),r={push:function(u){a.push(u),A()},filter:function(u){return a=a.filter(u),r}}}};return i}function hge(e){e===void 0&&(e={});var t=dge(null);return t.options=gs({async:!0,ssr:!1},e),t}var X7=function(e){var t=e.sideCar,r=zf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return S.createElement(n,gs({},r))};X7.isSideCarExport=!0;function fge(e,t){return e.useMedium(t),X7}var J7=hge(),g_=function(){},Yx=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:g_,onWheelCapture:g_,onTouchMoveCapture:g_}),i=n[0],o=n[1],a=e.forwardProps,s=e.children,l=e.className,A=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,f=e.noRelative,g=e.noIsolation,p=e.inert,v=e.allowPinchZoom,m=e.as,w=m===void 0?"div":m,b=e.gapMode,E=zf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=h,_=cge([r,t]),F=gs(gs({},E),i);return S.createElement(S.Fragment,null,u&&S.createElement(B,{sideCar:J7,removeScrollBar:A,shards:d,noRelative:f,noIsolation:g,inert:p,setCallbacks:o,allowPinchZoom:!!v,lockRef:r,gapMode:b}),a?S.cloneElement(S.Children.only(s),gs(gs({},F),{ref:_})):S.createElement(w,gs({},F,{className:l,ref:_}),s))});Yx.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Yx.classNames={fullWidth:Zw,zeroRight:Jw};var pge=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function gge(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=pge();return t&&e.setAttribute("nonce",t),e}function mge(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yge(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vge=function(){var e=0,t=null;return{add:function(r){e==0&&(t=gge())&&(mge(t,r),yge(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wge=function(){var e=vge();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Z7=function(){var e=wge(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},bge={left:0,top:0,right:0,gap:0},m_=function(e){return parseInt(e||"",10)||0},xge=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[m_(r),m_(n),m_(i)]},Bge=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bge;var t=xge(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Ege=Z7(),Rh="data-scroll-locked",_ge=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
460  .`.concat(age,` {
461   overflow: hidden `).concat(n,`;
462   padding-right: `).concat(s,"px ").concat(n,`;
463  }
464  body[`).concat(Rh,`] {
465    overflow: hidden `).concat(n,`;
466    overscroll-behavior: contain;
467    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
468    padding-left: `.concat(i,`px;
469    padding-top: `).concat(o,`px;
470    padding-right: `).concat(a,`px;
471    margin-left:0;
472    margin-top:0;
473    margin-right: `).concat(s,"px ").concat(n,`;
474    `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";
474")].filter(Boolean).join(""),`
475  }
476  
477  .`).concat(Jw,` {
478    right: `).concat(s,"px ").concat(n,`;
479  }
480  
481  .`).concat(Zw,` {
482    margin-right: `).concat(s,"px ").concat(n,`;
483  }
484  
485  .`).concat(Jw," .").concat(Jw,` {
486    right: 0 `).concat(n,`;
487  }
488  
489  .`).concat(Zw," .").concat(Zw,` {
490    margin-right: 0 `).concat(n,`;
491  }
492  
493  body[`).concat(Rh,`] {
494    `).concat(sge,": ").concat(s,`px;
495  }
496`)},jP=function(){var e=parseInt(document.body.getAttribute(Rh)||"0",10);return isFinite(e)?e:0},Sge=function(){S.useEffect(function(){return document.body.setAttribute(Rh,(jP()+1).toString()),function(){var e=jP()-1;e<=0?document.body.removeAttribute(Rh):document.body.setAttribute(Rh,e.toString())}},[])},Cge=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;Sge();var o=S.useMemo(function(){return Bge(i)},[i]);return S.createElement(Ege,{styles:_ge(o,!t,i,r?"":"!important")})},c5=!1;if(typeof window<"u")try{var ew=Object.defineProperty({},"passive",{get:function(){return c5=!0,!0}});window.addEventListener("test",ew,ew),window.removeEventListener("test",ew,ew)}catch{c5=!1}var $d=c5?{passive:!1}:!1,Ige=function(e){return e.tagName==="TEXTAREA"},e9=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Ige(e)&&r[t]==="visible")},kge=function(e){return e9(e,"overflowY")},Fge=function(e){return e9(e,"overflowX")},PP=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=t9(e,n);if(i){var o=r9(e,n),a=o[1],s=o[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Nge=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Tge=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},t9=function(e,t){return e==="v"?kge(t):Fge(t)},r9=function(e,t){return e==="v"?Nge(t):Tge(t)},Oge=function(e,t){return e==="h"&&t==="rtl"?-1:1},jge=function(e,t,r,n,i){var o=Oge(e,window.getComputedStyle(t).direction),a=o*n,s=r.target,l=t.contains(s),A=!1,u=a>0,d=0,h=0;do{if(!s)break;var f=r9(e,s),g=f[0],p=f[1],v=f[2],m=p-v-o*g;(g||m)&&t9(e,s)&&(d+=m,h+=g);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(Math.abs(d)<1||!i)||!u&&(Math.abs(h)<1||!i))&&(A=!0),A},tw=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},LP=function(e){return[e.deltaX,e.deltaY]},UP=function(e){return e&&"current"in e?e.current:e},Pge=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Lge=function(e){return`
497  .block-interactivity-`.concat(e,` {pointer-events: none;}
498  .allow-interactivity-`).concat(e,` {pointer-events: all;}
499`)},Uge=0,Hd=[];function Rge(e){var t=S.useRef([]),r=S.useRef([0,0]),n=S.useRef(),i=S.useState(Uge++)[0],o=S.useState(Z7)[0],a=S.useRef(e);S.useEffect(function(){a.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=ine([e.lockRef.current],(e.shards||[]).map(UP),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!a.current.allowPinchZoom;var m=tw(p),w=r.current,b="deltaX"in p?p.deltaX:w[0]-m[0],E="deltaY"in p?p.deltaY:w[1]-m[1],B,_=p.target,F=Math.abs(b)>Math.abs(E)?"h":"v";if("touches"in p&&F==="h"&&_.type==="range")return!1;var O=PP(F,_);if(!O)return!0;if(O?B=F:(B=F==="v"?"h":"v",O=PP(F,_)),!O)return!1;if(!n.current&&"changedTouches"in p&&(b||E)&&(n.current=B),!B)return!0;var k=n.current||B;return jge(k,v,p,k==="h"?b:E,!0)},[]),l=S.useCallback(function(p){var v=p;if(!(!Hd.length||Hd[Hd.length-1]!==o)){var m="deltaY"in v?LP(v):tw(v),w=t.current.filter(function(B){return B.name===v.type&&(B.target===v.target||v.target===B.shadowParent)&&Pge(B.delta,m)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}
vendor: 4,664 bytes, line 499
499if(!w){var b=(a.current.shards||[]).map(UP).filter(Boolean).filter(function(B){return B.contains(v.target)}),E=b.length>0?s(v,b[0]):!a.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),A=S.useCallback(function(p,v,m,w){var b={name:p,delta:v,target:m,should:w,shadowParent:Dge(m)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(E){return E!==b})},1)},[]),u=S.useCallback(function(p){r.current=tw(p),n.current=void 0},[]),d=S.useCallback(function(p){A(p.type,LP(p),p.target,s(p,e.lockRef.current))},[]),h=S.useCallback(function(p){A(p.type,tw(p),p.target,s(p,e.lockRef.current))},[]);S.useEffect(function(){return Hd.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,$d),document.addEventListener("touchmove",l,$d),document.addEventListener("touchstart",u,$d),function(){Hd=Hd.filter(function(p){return p!==o}),document.removeEventListener("wheel",l,$d),document.removeEventListener("touchmove",l,$d),document.removeEventListener("touchstart",u,$d)}},[]);var f=e.removeScrollBar,g=e.inert;return S.createElement(S.Fragment,null,g?S.createElement(o,{styles:Lge(i)}):null,f?S.createElement(Cge,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Dge(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Qge=fge(J7,Rge);var NF=S.forwardRef(function(e,t){return S.createElement(Yx,gs({},e,{ref:t,sideCar:Qge}))});NF.classNames=Yx.classNames;var qx="Popover",[n9,yQe]=Rl(qx,[Bx]),Zy=Bx(),[Mge,mc]=n9(qx),i9=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=Zy(t),l=S.useRef(null),[A,u]=S.useState(!1),[d,h]=Mf({prop:n,defaultProp:i??!1,onChange:o,caller:qx});return c.jsx(j8,{...s,children:c.jsx(Mge,{scope:t,contentId:Hg(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:S.useCallback(()=>h(f=>!f),[h]),hasCustomAnchor:A,onCustomAnchorAdd:S.useCallback(()=>u(!0),[]),onCustomAnchorRemove:S.useCallback(()=>u(!1),[]),modal:a,children:r})})};i9.displayName=qx;var o9="PopoverAnchor",$ge=S.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=mc(o9,r),o=Zy(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=i;return S.useEffect(()=>(a(),()=>s()),[a,s]),c.jsx(Xk,{...o,...n,ref:t})});$ge.displayName=o9;var a9="PopoverTrigger",s9=S.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=mc(a9,r),o=Zy(r),a=pn(t,i.triggerRef),s=c.jsx(Or.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":d9(i.open),...n,ref:a,onClick:cr(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:c.jsx(Xk,{asChild:!0,...o,children:s})});s9.displayName=a9;var TF="PopoverPortal",[Hge,Kge]=n9(TF,{forceMount:void 0}),l9=e=>{const{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=mc(TF,t);return c.jsx(Hge,{scope:t,forceMount:r,children:c.jsx(Dl,{present:r||o.open,children:c.jsx(mx,{asChild:!0,container:i,children:n})})})};l9.displayName=TF;var hf="PopoverContent",A9=S.forwardRef((e,t)=>{const r=Kge(hf,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=mc(hf,e.__scopePopover);return c.jsx(Dl,{present:n||o.open,children:o.modal?c.jsx(zge,{...i,ref:t}):c.jsx(Wge,{...i,ref:t})})});A9.displayName=hf;var Vge=af("PopoverContent.RemoveScroll"),zge=S.forwardRef((e,t)=>{const r=mc(hf,e.__scopePopover),n=S.useRef(null),i=pn(t,n),o=S.useRef(!1);return S.useEffect(()=>{const a=n.current;if(a)return q7(a)},[]),c.jsx(NF,{as:Vge,allowPinchZoom:!0,children:c.jsx(c9,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:cr(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),o.current||(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:cr(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,A=s.button===2||l;o.current=A},{checkForDefaultPrevented:!1}),onFocusOutside:cr(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Wge=S.forwardRef((e,t)=>{const r=mc(hf,e.__scopePopover),n=S.useRef(!1),i=S.useRef(!1);return c.jsx(c9,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,o),o.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),o.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:o=>{var l,A;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;((A=r.triggerRef.current)==null?void 0:A.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),c9=S.forwardRef((e,t)=>
499{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:A,onInteractOutside:u,...d}=e,h=mc(hf,r),f=Zy(r);return W7(),c.jsx(FF,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:c.jsx(My,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:A,onDismiss:()=>h.onOpenChange(!1),children:c.jsx(P8,{"data-state":d9(h.open),role:"dialog",id:h.contentId,...f,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),u9="PopoverClose",Gge=S.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=mc(u9,r);return c.jsx(Or.button,{type:"button",...n,ref:t,onClick:cr(e.onClick,()=>i.onOpenChange(!1))})});Gge.displayName=u9;var Yge="PopoverArrow",qge=S.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=Zy(r);return c.jsx(L8,{...i,...n,ref:t})});qge.displayName=Yge;function d9(e){return e?"open":"closed"}var Xge=i9,Jge=s9,Zge=l9,h9=A9;const Wu=Xge,Gu=Jge,yc=S.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},i)=>c.jsx(Zge,{children:c.jsx(h9,{ref:i,align:t,sideOffset:r,className:Jt("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));yc.displayName=h9.displayName;function ab({current:e,baseline:t}){const r=e-t,n=Math.abs(r);return n===0?c.jsx("span",{style:{color:"#9ca3af"},children:"→ 0.00"}):r>0?c.jsxs("span",{style:{color:"#22c55e"},children:["↑ +",n.toFixed(2)]}):c.jsxs("span",{style:{color:"#ef4444"},children:["↓ -",n.toFixed(2)]})}const u5={EXPLORER:{fill:"#FEF2F2",stroke:"#DC2626"},PIONEER:{fill:"#EFF6FF",stroke:"#2563EB"},GUARDIAN:{fill:"#FFFBEB",stroke:"#D97706"},ORCHESTRATOR:{fill:"#F0FDF4",stroke:"#16A34A"}},eme="How actively your team experiments with and acts on AI in their daily work.",tme="How well AI is integrated into the systems, culture, and workflows around your team.";function RP({text:e}){return c.jsxs(Wu,{children:[c.jsx(Gu,{asChild:!0,children:c.jsx("button",{className:"ml-1 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-[#E5E7EB] text-[10px] text-[#6B7280] hover:bg-[#D1D5DB]","aria-label":"Info",children:"i"})}),c.jsx(yc,{className:"w-72 text-sm",children:e})]})}function f9(e,t,r,n,i){const o=[];for(let a=0;a<i*2;a++){const s=Math.PI/i*a-Math.PI/2,l=a%2===0?r:n;o.push(`${e+l*Math.cos(s)},${t+l*Math.sin(s)}`)}return o.join(" ")}function y_({members:e,teamAvgAV:t,teamAvgES:r,title:n,isPlaceholder:i,baselineMembers:o,isToday:a,axisMin:s,axisMax:l,onMemberClick:A,drilldownEnabled:u}){const[d,h]=S.useState(null),f=360,g=40,p=f-g*2,v=s??1.5,m=l??6.5,w=m-v,b=k=>g+(k-v)/w*p,E=k=>f-g-(k-v)/w*p,B=b(4),_=[{archetype:"THE GUARDIAN",org:"Org: The Governance Gridlock",anchor:"start",quadrant:"TL",bg:"#FFFBEB",border:"#D97706"},{archetype:"THE ORCHESTRATOR",org:"Org: The Agentic-Human Enterprise",anchor:"end",quadrant:"TR",bg:"#F0FDF4",border:"#16A34A"},{archetype:"THE EXPLORER",org:"Org: The Uncharted Enterprise",anchor:"start",quadrant:"BL",bg:"#FEF2F2",border:"#DC2626"},{archetype:"THE PIONEER",org:"Org: The Fragmented Frontier",anchor:"end",quadrant:"BR",bg:"#EFF6FF",border:"#2563EB"}],F=k=>{const j=k==="TL"||k==="BL"?g:B,I=k==="TL"||k==="TR"?g:E(4),T=k==="TL"||k==="BL"?B-g:f-g-B,U=k==="TL"||k==="TR"?E(4)-g:f-g-E(4);return{x:j,y:I,w:T,h:U}},O=k=>{if(o)return o.find(j=>j.label===k)};return c.jsx(Ky,{delayDuration:200,children:c.jsxs("div",{children:[c.jsx("p",{className:"mb-2 text-center text-sm font-semibold",style:{color:"#1A1918"},children:n}),c.jsxs("svg",{viewBox:`0 0 ${f} ${f}`,className:"w-full",style:{fontFamily:"Outfit, sans-serif"},children:[c.jsx("rect",{x:g,y:g,width:p,height:p,fill:i?"#F3F4F6":"#FAFAFA",stroke:"#E5E7EB"}),_.map(k=>{const j=F(k.quadrant),I=k.anchor==="start"?j.x+6:j.x+j.w-6,T=j.y+14;return c.jsxs("g",{children:[c.jsx("rect",{x:j.x,y:j.y,width:j.w,height:j.h,fill:i?"#F3F4F6":k.bg,fillOpacity:i?"0.5":"0.25",stroke:i?"#D1D5DB":k.border,strokeOpacity:"0.2",strokeWidth:"1"}),c.jsx("text",{x:I,y:T,textAnchor:k.anchor,fill:i?"#D1D5DB":"#1A1918",fillOpacity:i?"0.6":"0.35",fontSize:"9",fontWeight:"700",children:k.archetype}),!i&&c.jsx("text",{x:I,y:T+11,textAnchor:k.anchor,fill:"#6B7280",fillOpacity:"0.45",fontSize:"7",fontStyle:"italic",children:k.org})]},k.quadrant)}),c.jsx("line",{x1:B,y1:g,x2:B,y2:f-g,stroke:i?"#D1D5DB":"#E5E7EB",strokeDasharray:"4"}),c.jsx("line",{x1:g,y1:E(4),x2:f-g,y2:E(4),stroke:i?"#D1D5DB":"#E5E7EB",strokeDasharray:"4"}),c.jsx("text",{x:f/2,y:f-6,textAnchor:"middle",fill:i?"#D1D5DB":"#6B7280",fontSize:"10",children:"Agentic Velocity (AV)"}),c.jsx("text",{x:10,y:f/2,textAnchor:"middle",fill:i?"#D1D5DB":"#6B7280",fontSize:"10",transform:`rotate(-90,10,${f/2})`,children:"Enterprise Symbiosis (ES)"}),Array.from({length:Math.floor(m)-Math.ceil(v)+1},(k,j)=>Math.ceil(v)+j).map(k=>c.jsxs("g",{children:[c.jsx("text",{x:b(k),y:f-g+16,textAnchor:"middle",fill:i?"#D1D5DB":"#9CA3AF",fontSize:"9",children:k}
499),c.jsx("text",{x:g-8,y:E(k)+3,textAnchor:"end",fill:i?"#D1D5DB":"#9CA3AF",fontSize:"9",children:k})]},k)),i&&c.jsx("g",{children:c.jsx("text",{x:f/2,y:f/2+6,textAnchor:"middle",fill:"#9CA3AF",fontSize:"11",fontStyle:"italic",children:"Your team's next assessment will appear here."})}),!i&&e.map((k,j)=>{const I=u5[k.archetype],T=u&&A;return c.jsx("g",{onMouseEnter:()=>h(j),onMouseLeave:()=>h(null),onClick:()=>{h(d===j?null:j),T&&A(k,j)},style:{cursor:T?"pointer":"default"},children:c.jsx("circle",{cx:b(k.av),cy:E(k.es),r:"4",fill:I.fill,stroke:I.stroke,strokeWidth:"1.5"})},j)}),!i&&c.jsx("g",{onMouseEnter:()=>h(-1),onMouseLeave:()=>h(null),onClick:()=>h(d===-1?null:-1),style:{cursor:"pointer"},children:c.jsx("polygon",{points:f9(b(t),E(r),7,3.5,5),fill:"#FFC100",stroke:"#1A1918",strokeWidth:"1"})})]}),!i&&d!==null&&d>=0&&e[d]&&(()=>{const k=e[d],j=a?O(k.label):void 0,I=u&&A;return c.jsxs("div",{className:"mt-1 inline-block rounded-md border border-[#E5E7EB] bg-white px-3 py-2 text-xs shadow-sm",style:{borderRadius:"6px"},children:[I&&k.roleLevel&&c.jsx("p",{className:"text-[#6B7280] italic mb-0.5",children:k.roleLevel}),c.jsx("p",{className:"font-semibold text-[#374151]",children:k.label}),a&&j?c.jsxs(c.Fragment,{children:[c.jsxs("p",{className:"text-[#6B7280]",children:["Archetype: ",k.archetype]}),c.jsxs("p",{className:"text-[#6B7280]",children:["AV: ",k.av.toFixed(2)," ",c.jsx(ab,{current:k.av,baseline:j.av})]}),c.jsxs("p",{className:"text-[#6B7280]",children:["ES: ",k.es.toFixed(2)," ",c.jsx(ab,{current:k.es,baseline:j.es})]})]}):c.jsxs(c.Fragment,{children:[c.jsxs("p",{className:"text-[#6B7280]",children:["AV: ",k.av.toFixed(2)," · ES: ",k.es.toFixed(2)]}),c.jsxs("p",{className:"text-[#6B7280]",children:["Archetype: ",k.archetype]})]}),!I&&A&&c.jsx("p",{className:"text-[#9CA3AF] mt-1 text-[10px]",children:"Individual drill-down is not enabled for this organization."})]})})(),!i&&d===-1&&c.jsx("div",{className:"mt-1 inline-block rounded-md border border-[#E5E7EB] bg-white px-3 py-2 text-xs shadow-sm",style:{borderRadius:"6px"},children:c.jsxs("p",{className:"font-semibold text-[#374151]",children:["Team Average — AV: ",t.toFixed(2)," | ES: ",r.toFixed(2)]})})]})})}const ev=({baselineMembers:e,currentMembers:t,baselineTeamAvgAV:r,baselineTeamAvgES:n,currentTeamAvgAV:i,currentTeamAvgES:o,hasRetake:a,narrativeContent:s,axisMin:l,axisMax:A,onMemberClick:u,drilldownEnabled:d})=>c.jsxs("div",{style:{breakInside:"avoid"},children:[c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"24px"},children:[c.jsx(y_,{members:e,teamAvgAV:r,teamAvgES:n,title:"Day 1",axisMin:l,axisMax:A,onMemberClick:u,drilldownEnabled:d}),a&&t?c.jsx(y_,{members:t,teamAvgAV:i,teamAvgES:o,title:"Today",baselineMembers:e,isToday:!0,axisMin:l,axisMax:A,onMemberClick:u,drilldownEnabled:d}):c.jsxs("div",{children:[c.jsx("p",{className:"mb-2 text-center text-sm font-semibold",style:{color:"#9CA3AF"},children:"Today"}),c.jsxs("div",{className:"relative",children:[c.jsx(y_,{members:[],teamAvgAV:0,teamAvgES:0,title:"",isPlaceholder:!0}),c.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",style:{top:"30px"},children:c.jsx(_J,{className:"mb-2 text-[#9CA3AF]",size:28,strokeWidth:1.5})})]})]})]}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3 mt-3",style:{fontSize:"12px",color:"#6B7280"},children:[["EXPLORER","PIONEER","GUARDIAN","ORCHESTRATOR"].map(h=>c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("svg",{width:"10",height:"10",children:c.jsx("circle",{cx:"5",cy:"5",r:"4",fill:u5[h].fill,stroke:u5[h].stroke,strokeWidth:"1.5"})}),h.charAt(0)+h.slice(1).toLowerCase()]},h)),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",children:c.jsx("polygon",{points:f9(7,7,5,2.5,5),fill:"#FFC100"})}),"Team Average"]})]}),c.jsxs("div",{className:"mt-1 flex items-center justify-center gap-1 text-xs text-[#6B7280]",children:[c.jsx("span",{children:"X: Agentic Velocity (AV)"}),c.jsx(RP,{text:eme}),c.jsx("span",{className:"ml-2",children:"Y: Enterprise Symbiosis (ES)"}),c.jsx(RP,{text:tme})]}),a&&t&&c.jsxs("div",{className:"mt-4 flex items-center justify-center gap-8 rounded-md border border-[#
499E5E7EB] px-6 py-3",style:{background:"#FAFAFA",fontSize:"13px",color:"#374151"},children:[c.jsxs("span",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"font-medium text-[#6B7280]",children:"AV:"}),c.jsx("span",{children:r.toFixed(2)}),c.jsx("span",{style:{color:"#9CA3AF"},children:"→"}),c.jsx("span",{className:"font-semibold",children:i.toFixed(2)}),c.jsx(ab,{current:i,baseline:r})]}),c.jsx("span",{style:{color:"#E5E7EB"},children:"|"}),c.jsxs("span",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"font-medium text-[#6B7280]",children:"ES:"}),c.jsx("span",{children:n.toFixed(2)}),c.jsx("span",{style:{color:"#9CA3AF"},children:"→"}),c.jsx("span",{className:"font-semibold",children:o.toFixed(2)}),c.jsx(ab,{current:o,baseline:n})]})]}),c.jsx("div",{className:"mt-4 rounded-lg border border-[#E5E7EB] bg-card p-5",style:{breakInside:"avoid"},children:s})]}),p9=["IA_01_AV","IA_02_AV","IA_03_AV","IA_04_AV","IA_05_AV","IA_06_AV","IA_07_AV","IA_17_AV","IA_18_AV","IA_19_AV","IA_20_AV","IA_22_AV"],g9=["IA_08_ES","IA_09_ES","IA_10_ES","IA_11_ES","IA_12_ES","IA_13_ES","IA_14_ES","IA_15_ES","IA_16_ES","IA_21_ES","IA_23_ES","IA_24_ES","IA_25_ES","IA_26_ES","IA_27_ES","IA_28_ES","IA_29_ES"],OF=new Set(["IA_01_AV","IA_07_AV","IA_11_ES","IA_13_ES","IA_19_AV","IA_20_AV","IA_21_ES","IA_22_AV","IA_27_ES","IA_28_ES"]),rme=p9.map(e=>e.replace("IA_","SIA_")),nme=g9.map(e=>e.replace("IA_","SIA_")),m9=new Set([...OF].map(e=>e.replace("IA_","SIA_"))),ime=["LA_01_AV","LA_02_AV","LA_03_AV","LA_04_AV","LA_05_AV","LA_06_AV","LA_07_AV","LA_17_AV","LA_18_AV","LA_19_AV","LA_20_AV","LA_22_AV","LA_30_AV","LA_31_AV","LA_35_AV","LA_37_AV","LA_38_AV"],ome=["LA_08_ES","LA_09_ES","LA_10_ES","LA_11_ES","LA_12_ES","LA_13_ES","LA_14_ES","LA_15_ES","LA_16_ES","LA_21_ES","LA_23_ES","LA_24_ES","LA_25_ES","LA_26_ES","LA_27_ES","LA_28_ES","LA_29_ES","LA_32_ES","LA_33_ES","LA_34_ES","LA_36_ES","LA_39_ES","LA_40_ES"],y9=new Set(["LA_01_AV","LA_07_AV","LA_11_ES","LA_13_ES","LA_19_AV","LA_20_AV","LA_21_ES","LA_22_AV","LA_27_ES","LA_28_ES","LA_32_ES"]),Kd=4;function br(e){return e<2.5?"Critical":e<4?"Developing":e<5.3?"Strong":"Leading"}function Wi(e,t){return e>=Kd&&t>=Kd?"ORCHESTRATOR":e>=Kd&&t<Kd?"PIONEER":e<Kd&&t>=Kd?"GUARDIAN":"EXPLORER"}function ame(e){const t=e.match(/_(\d+)_/);return t?parseInt(t[1]):0}function v9(e,t,r,n){const i=[];for(const A of[...t,...r]){const u=parseFloat(e[A]);if(isNaN(u))continue;const d=n.has(A),h=d?7-u:u,f=Math.max(1,Math.min(6,h)),g=t.includes(A)?"AV":"ES";i.push({item:ame(A),key:A,dimension:g,rawScore:u,score:f,isReversed:d})}const o=i.filter(A=>A.dimension==="AV").map(A=>A.score),a=i.filter(A=>A.dimension==="ES").map(A=>A.score),s=o.length?Math.round(o.reduce((A,u)=>A+u,0)/o.length*100)/100:0,l=a.length?Math.round(a.reduce((A,u)=>A+u,0)/a.length*100)/100:0;return{av:s,es:l,avLabel:br(s),esLabel:br(l),archetype:Wi(s,l),items:i}}function Aa(e){const t=Object.keys(e).some(o=>o.startsWith("SIA_"));return v9(e,t?rme:p9,t?nme:g9,t?m9:OF)}function Dh(e){return v9(e,ime,ome,y9)}function w9(e){const t=n=>{const i=parseFloat(e[n]);return isNaN(i)?NaN:y9.has(n)?Math.max(1,Math.min(6,7-i)):Math.max(1,Math.min(6,i))},r=n=>{const i=n.map(t).filter(o=>!isNaN(o));return i.length?Math.round(i.reduce((o,a)=>o+a,0)/i.length*100)/100:0};return{"Individual Experimentation":r(["LA_02_AV","LA_03_AV","LA_04_AV","LA_05_AV"]),"Workflow Integration":r(["LA_06_AV","LA_17_AV","LA_18_AV","LA_19_AV","LA_22_AV"]),"Psychological Safety":r(["LA_09_ES","LA_10_ES","LA_16_ES","LA_21_ES"]),"Organizational Enablement":r(["LA_14_ES","LA_23_ES","LA_24_ES","LA_25_ES","LA_26_ES","LA_29_ES"])}}function sme(e){const t=Object.keys(e).some(a=>a.startsWith("SIA_")),r=t?"SIA_":"IA_",n=t?m9:OF,i=a=>{const s=parseFloat(e[a]);return isNaN(s)?NaN:n.has(a)?Math.max(1,Math.min(6,7-s)):Math.max(1,Math.min(6,s))},o=a=>{const s=a.map(i).filter(l=>!isNaN(l));return s.length?Math.round(s.reduce((l,A)=>l+A,0)/s.length*100)/100:0};return{"AI Confidence":o([`${r}01_AV`,`${r}02_AV`,`${r}03_AV`,`${r}04_AV`]),Experimentation:o([`${r}05_AV`,`${r}06_AV`,`${r}07_AV`]),"Workflow Integration":o([`${r}17_AV`,`${r}18_AV`,`${r}19_AV`,`${r}20_AV`,`${r}22_AV`]),"Psychological Safety":o([`${r}08_ES`,`${r}09_ES`,`${r}10_ES`,`${r}11_ES`]),"Organizational Support":o([`${r}12_ES`,`${r}13_ES`,`${r}14_ES`,`${r}15_ES`,`${r}16_ES`]),"Systemic Enablement":o([`${r}21_ES`,`${r}23_ES`,`${r}24_ES`,`${r}25_ES`,`${r}26_ES`,`${r}27_ES`,`${r}28_ES`,`${r}29_ES`])}}const lme={ORCHESTRATOR:"You seamlessly integrate AI into your daily work to amplify your unique expertise. You act as a manager of AI agents rather than a manual task executor. Crucially, you share your workflows, operate within secure organizational frameworks, and contribute to the collective intelligence of your team.",PIONEER:"You are a high-speed innovator operating in a vacuum. You actively use AI to accelerate your personal workflows, but you are likely relying on Shadow AI or workarounds because the organization’s official systems are too slow or restrictive. Your personal efficiency is high, but your innovations are not scaling to benefit the wider team.",GUARDIAN:"You operate in an environment with clear rules, high psychological safety, and good alignment, but your actual day-to-day execution with AI is lagging. You may be waiting for official permission, perfectly polished tools, or formal training before you fully commit to changing how you work. You are safe, but moving too slowly.",EXPLORER:"You are in the early stages of AI adoption. While you may be aware of AI tools, you likely feel uncertain about which tools to use or are constrained by a lack of clear guidance and training. Your day-to-day work remains highly manual, and integrating AI feels more like a risky experiment than a reliable productivity driver."};function Ame(e){const t=e.match(/^Date\((\d+),(\d+),(\d+)/);return t?new Date(parseInt(t[1]),parseInt(t[2]),parseInt(t[3])):new Date(e)}function b9(e){if(e.length===0)return[];const t=e.map(a=>({...a,date:Ame(a.submittedAt)})).filter(a=>!isNaN(a.date.getTime())).sort((a,s)=>a.date.getTime()-s.date.getTime());if(t.length===0)return[];const r=[];for(const a of t){const s=r[r.length-1];if(s&&s.date.getTime()===a.date.getTime()){const l=(s.av+s.es)/2;(a.av+a.es)/2>l&&(r[r.length-1]=a)}else r.push(a)}if(r.length===0)return[];if(r.length===1)return[{label:"DAY 1",av:r[0].av,es:r[0].es,archetype:r[0].archetype}];const n=r[0],i=r[r.length-1],o=[{label:"DAY 1",av:n.av,es:n.es,archetype:n.archetype}];if(r.length>=3){const a=(n.date.getTime()+i.date.getTime())/2,s=r.slice(1,-1);let l=0,A=1/0;for(let h=0;h<s.length;h++){const f=Math.abs(s[h].date.getTime()-a);f<A&&(A=f,l=h)}const u=s[l],d=Math.round((u.date.getTime()-n.date.getTime())/(1e3*60*60*24));o.push({label:`DAY ${d}`,av:u.av,es:u.es,archetype:u.archetype})}return o.push({label:"TODAY",av:i.av,es:i.es,archetype:i.archetype}),o}function DP({delta:e}){const t=Math.abs(e);return t<.005?c.jsx("span",{style:{color:"#9ca3af"},children:"→ 0.00"}):e>0?c.jsxs("span",{style:{color:"#22c55e"},children:["↑ +",t.toFixed(2)]}):c.jsxs("span",{style:{color:"#ef4444"},children:["↓ -",t.toFixed(2)]})}function cme(e){return e.length<=1?"":e.length===2?`When you started this journey your ${e[0].archetype} score was AV ${e[0].av.toFixed(2)} and ES ${e[0].es.toFixed(2)}. Today your AV is ${e[1].av.toFixed(2)} and ES is ${e[1].es.toFixed(2)}.`:`When you started this journey your AV was ${e[0].av.toFixed(2)} and ES was ${e[0].es.toFixed(2)}. At ${e[1].label} your AV was ${e[1].av.toFixed(2)} and ES was ${e[1].es.toFixed(2)}. Today your AV is ${e[2].av.toFixed(2)} and ES is ${e[2].es.toFixed(2)}.`}function Jf({rounds:e,title:t,singleRoundMessage:r="This is your baseline. Your growth journey begins here.",className:n,style:i}){if(e.length===0)return null;if(e.length===1)return c.jsxs("section",{className:n,style:i,children:[c.jsx("h2",{className:"mb-4 font-bold text-foreground",style:{fontFamily:"Outfit, sans-serif",fontSize:"18px"},children:t}),c.jsx("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-stretch sm:justify-center",children:c.jsxs("div",{className:"flex-1 rounded-lg border border-[#
499E5E7EB] bg-card p-5 text-center",children:[c.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"DAY 1"}),c.jsx("p",{className:"mt-2 text-lg font-bold text-foreground",children:e[0].archetype}),c.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["AV: ",e[0].av.toFixed(2)]}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["ES: ",e[0].es.toFixed(2)]})]})}),c.jsx("div",{className:"mt-4 rounded-lg p-5",style:{background:"#FAFAFA",borderLeft:"4px solid #FFC100",borderRadius:"8px"},children:c.jsx("p",{className:"text-sm italic leading-relaxed",style:{color:"#374151"},children:r})})]});const o=cme(e);return c.jsxs("section",{className:n,style:i,children:[c.jsx("h2",{className:"mb-4 font-bold text-foreground",style:{fontFamily:"Outfit, sans-serif",fontSize:"18px"},children:t}),c.jsx("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-stretch sm:justify-center",children:e.map((a,s)=>c.jsxs(oe.Fragment,{children:[s>0&&c.jsxs("div",{className:"flex flex-col items-center justify-center gap-1",children:[c.jsx("span",{className:"text-3xl font-bold",style:{color:"#FFC100"},children:"→"}),c.jsxs("p",{className:"text-xs whitespace-nowrap",children:["AV: ",c.jsx(DP,{delta:a.av-e[s-1].av})]}),c.jsxs("p",{className:"text-xs whitespace-nowrap",children:["ES: ",c.jsx(DP,{delta:a.es-e[s-1].es})]})]}),c.jsxs("div",{className:"flex-1 rounded-lg border border-[#E5E7EB] bg-card p-5 text-center",children:[c.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:a.label}),c.jsx("p",{className:"mt-2 text-lg font-bold text-foreground",children:a.archetype}),c.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["AV: ",a.av.toFixed(2)]}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["ES: ",a.es.toFixed(2)]})]})]},s))}),o&&c.jsx("div",{className:"mt-4 rounded-lg p-5",style:{background:"#FAFAFA",borderLeft:"4px solid #FFC100",borderRadius:"8px"},children:c.jsx("p",{className:"text-sm italic leading-relaxed",style:{color:"#374151"},children:o})})]})}const ume=[{slug:"acme-corp",companyName:"Acme Corp",leaderEmails:["[email protected]","[email protected]","[email protected]","[email protected]","[email protected]"]}];async function dme(e){try{const{data:t,error:r}=await Tt.from("company_registry").select("id, company_name, slug, leader_emails, cohort_id, root_email, leader_reports_unlocked").eq("slug",e).maybeSingle();if(t&&!r)return{slug:t.slug,companyName:t.company_name,leaderEmails:t.leader_emails||[],id:t.id,cohortId:t.cohort_id??null,rootEmail:t.root_email??null,leaderReportsUnlocked:t.leader_reports_unlocked??!1}}catch{}return ume.find(t=>t.slug===e)||null}const hme="1ddz-kxWUSkQbutS_eyu-DOGg6r2b2ABIHA8FgBg0FBI";async function QP(e){var s;const t=`https://docs.google.com/spreadsheets/d/${hme}/gviz/tq?tqx=out:json&sheet=${encodeURIComponent(e)}`,n=await(await fetch(t)).text(),i=JSON.parse(n.replace(/^[^{]+/,"").replace(/[^}]+$/,"")),o=i.table.cols.map(l=>(l.label||"").trim()),a=[];for(const l of i.table.rows??[]){const A={};for(let u=0;u<o.length;u++){const d=(s=l.c)==null?void 0:s[u];A[o[u]]=(d==null?void 0:d.v)!=null?String(d.v):""}a.push(A)}return a}function d5(e){return e.toString().toLowerCase().trim()}function fme(e){const t=d5(e.Email_Entry??"");return t.length>0&&t!=="xxxxx"&&t.includes("@")}async function x9(e){var O,k;if(!e.id||!e.rootEmail)return null;const{data:t,error:r}=await Tt.from("company_roster").select("employee_email, manager_email, first_name, last_name, role_level, department").eq("company_id",e.id);if(r||!t||t.length===0)return null;const n=e.rootEmail.trim().toLowerCase(),i=new Map,o=new Map;for(const j of t){const I=(j.employee_email??"").trim().toLowerCase(),T=j.manager_email?j.manager_email.trim().toLowerCase():null;if(!I)continue;const U={employee_email:I,manager_email:T,first_name:j.first_name,last_name:j.last_name,role_level:j.role_level,department:j.department};if(i.set(I,U),T){const R=o.get(T)??[];R.push(I),o.set(T,R)}}function a(j,I,T){if(I>20)return null;const U=i.get(j);if(!U)return null;const R=o.get(j)??[],G=[];for(const K of R){const V=a(K,I+1,j);V&&G.push(V)}return{email:j,firstName:U.first_name??"",lastName:U.last_name??"",roleLevel:U.role_level??"",department:U.department??null,depth:I,isLeader:G.length>0,managerEmail:T,pseudonym:"",memberNumber:null,children:G,scores:null,subtreeScores:null}}const s=a(n,0,null);if(!s)return null;const l=new Map;(function j(I){if(I.isLeader&&I.depth>0){const T=l.get(I.depth)??[];T.push(I),l.set(I.depth,T)}for(const T of I.children)j(T)})(s),s.pseudonym="Executive Leader";for(const[j,I]of l)I.sort((T,U)=>T.email.localeCompare(U.email)),I.forEach((T,U)=>{T.pseudonym=`Tier ${j} Leader ${String.fromCharCode(65+U)}`});(function j(I){I.children.filter(U=>!U.isLeader).sort((U,R)=>
499U.email.localeCompare(R.email)).forEach((U,R)=>{U.memberNumber=R+1,U.pseudonym=`Team Member ${U.memberNumber}`});for(const U of I.children)j(U)})(s);let A=0,u=0,d=0;(function j(I){A+=1,(I.isLeader||I.depth===0)&&(u+=1),!I.isLeader&&I.depth>0&&(d+=1);for(const T of I.children)j(T)})(s);const[h,f]=await Promise.all([QP("Leader_Staging"),QP("Individual_Staging")]),g=j=>{const I=new Map;for(const T of j.filter(fme)){const U=d5(T.Email_Entry),R=I.get(U)??[];R.push(T),I.set(U,R)}for(const[,T]of I)T.sort((U,R)=>new Date(U.Submitted_At??"").getTime()-new Date(R.Submitted_At??"").getTime());return I},p=g(h),v=g(f),m=j=>{const I=d5(j.email),T=j.isLeader||j.depth===0;let U=T?p.get(I)??[]:v.get(I)??[],R=T?Dh:Aa;U.length===0&&T&&(U=v.get(I)??[],R=Aa),U.length>0?j.scores={baseline:R(U[0]),current:R(U[U.length-1]),hasRetake:U.length>1}:j.scores=null;for(const G of j.children)m(G)};m(s);const w=j=>j.length?Math.round(j.reduce((I,T)=>I+T,0)/j.length*100)/100:0,b=j=>{const I=[],T=[];j.scores&&!j.isLeader&&j.depth>0&&(I.push(j.scores.current.av),T.push(j.scores.current.es));for(const U of j.children){const R=b(U);I.push(...R.avs),T.push(...R.ess)}if(I.length>0){const U=w(I),R=w(T);j.subtreeScores={avgAV:U,avgES:R,archetype:Wi(U,R),scoredCount:I.length}}else j.subtreeScores=null;return{avs:I,ess:T}};b(s);const E=s.children.filter(j=>j.isLeader&&j.subtreeScores).map(j=>({pseudonym:j.pseudonym,avgAV:j.subtreeScores.avgAV,avgES:j.subtreeScores.avgES,archetype:j.subtreeScores.archetype,scoredCount:j.subtreeScores.scoredCount}));console.log("[fetchCompanyTree 5c] Subtree rollup complete",{rootSubtree:s.subtreeScores?{avgAV:s.subtreeScores.avgAV,avgES:s.subtreeScores.avgES,archetype:s.subtreeScores.archetype,scoredCount:s.subtreeScores.scoredCount}:null,tier1Branches:E});const B=j=>(j.scores?1:0)+j.children.reduce((I,T)=>I+B(T),0),_=B(s),F=s.children.find(j=>j.isLeader);return console.log("[fetchCompanyTree 5b] Scores attached",{scoredNodes:_,totalNodes:A,rootScores:s.scores?{av:s.scores.current.av,es:s.scores.current.es,archetype:s.scores.current.archetype}:"null — Iliana has no sheet row yet",sampleTier1:F!=null&&F.scores?{pseudonym:F.pseudonym,av:F.scores.current.av,es:F.scores.current.es}:"no scores for first tier-1 leader"}),console.log("[fetchCompanyTree] Tree built successfully",{company:e.companyName,totalRosterCount:A,leaderCount:u,memberCount:d,rootPseudonym:s.pseudonym,tier1Leaders:s.children.filter(j=>j.isLeader).map(j=>j.pseudonym),tier2Sample:((k=(O=s.children.find(j=>j.isLeader))==null?void 0:O.children.find(j=>j.isLeader))==null?void 0:k.pseudonym)??"none"}),{companyName:e.companyName,root:s,totalRosterCount:A,leaderCount:u,memberCount:d}}async function pme(e){return x9(e)}async function B9(e){const t=new Map,r=await x9(e);return r&&function n(i){(i.isLeader||i.depth===0)&&t.set(i.email.trim().toLowerCase(),i.pseudonym);for(const o of i.children)n(o)}(r.root),t}const gme=Object.freeze(Object.defineProperty({__proto__:null,buildLeaderPseudonymMap:B9,fetchCompanyTree:pme},Symbol.toStringTag,{value:"Module"})),mme="1ddz-kxWUSkQbutS_eyu-DOGg6r2b2ABIHA8FgBg0FBI";async function MP(e){var l;const t=`https://docs.google.com/spreadsheets/d/${mme}/gviz/tq?tqx=out:json&sheet=${encodeURIComponent(e)}`,i=(await(await fetch(t)).text()).match(/google\.visualization\.Query\.setResponse\(([\s\S]*)\);?/);if(!i||!i[1])throw new Error(`Failed to parse response for tab: ${e}`);const o=JSON.parse(i[1]),a=o.table.cols.map(A=>(A.label||"").trim()),s=[];for(const A of o.table.rows){const u={};for(let d=0;d<a.length;d++){const h=(l=A.c)==null?void 0:l[d];u[a[d]]=(h==null?void 0:h.v)!=null?String(h.v):""}s.push(u)}return s}function Sa(e){return e.toString().toLowerCase().trim()}function Zp(e){const t=e.match(/^Date\((\d+),(\d+),(\d+)/);return t?new Date(parseInt(t[1]),parseInt(t[2]),parseInt(t[3])):new Date(e)}async function yme(e){const[t,r]=await Promise.all([MP("Leader_Staging"),MP("Individual_Staging")]);let n=new Map;if(e.id&&e.rootEmail)try{n=await B9(e)}catch{n=new Map}const i=r.filter(B=>B.Email_Entry&&B.Email_Entry!=="xxxxx"&&B.Email_Entry.includes("@")),o=t.filter(B=>B.Email_Entry&&B.Email_Entry!=="xxxxx"&&B.Email_Entry.includes("@")),a=[],s=new Map;if(e.id)try{const{data:B,error:_}=await Tt.from("company_roster").select("employee_email, manager_email").eq("company_id",e.id);if(_)console.warn("[fetchCompanyData] Roster fetch error:",_);else if(B&&B.length>0)for(const F of B){const O=Sa(F.employee_email??""),k=Sa(F.manager_email??"");O&&s.set(O,k)}}catch(B){console.warn("[fetchCompanyData] Roster fetch exception:",B)}for(let B=0;B<e.leaderEmails.length;B++){const _=Sa(e.leaderEmails[B]),F=o.filter(Z=>Sa(Z.Email_Entry)===_).sort((Z,ae)=>Zp(Z.Submitted_At).getTime()-Zp(ae.Submitted_At).getTime()),O=i.filter(Z=>{const ae=Sa(Z.Email_Entry),se=s.has(ae)?s.get(ae):Z.Manager_Email_Link;return se&&Sa(se)===_}).sort((Z,ae)=>Zp(Z.Submitted_At).getTime()-Zp(ae.Submitted_At).getTime());if(F.length===0&&O.length===0)continue;
499const k={av:0,es:0,avLabel:"Critical",esLabel:"Critical",archetype:"EXPLORER",items:[]},j=F.length>0?Dh(F[0]):k,I=F.length>0?Dh(F[F.length-1]):k,T=F.length>0?w9(F[F.length-1]):{},U=new Map;for(const Z of O){const ae=Sa(Z.Email_Entry);U.has(ae)||U.set(ae,[]),U.get(ae).push(Z)}const R=Array.from(U.entries()).map(([Z,ae])=>({baseline:Aa(ae[0]),current:Aa(ae[ae.length-1]),hasRetake:ae.length>1,email:Z,roleLevel:ae[ae.length-1].Role_Level_Entry||""})),G=R.map(Z=>Z.current),K=R.map(Z=>Z.baseline),V=Z=>Z.length?Math.round(Z.reduce((ae,se)=>ae+se,0)/Z.length*100)/100:0,Q=V(G.map(Z=>Z.av)),H=V(G.map(Z=>Z.es)),q=V(K.map(Z=>Z.av)),re=V(K.map(Z=>Z.es)),P=F.length>0&&F[0].First_Name?`${F[0].First_Name} ${F[0].Last_Name||""}`.trim():_,D=`Team ${B+1}`,X=F.length>0?F[F.length-1].Submitted_At||"":O.length>0&&O[O.length-1].Submitted_At||"";a.push({leaderEmail:_,leaderName:P,leaderPseudonym:n.get(_),teamName:D,members:R,leaderBaseline:j,leaderCurrent:I,leaderHasRetake:F.length>1,baselineAvgAV:q,baselineAvgES:re,currentAvgAV:Q,currentAvgES:H,composite:(Q+H)/2,archetype:Wi(Q,H),spiderSubScores:T,assessmentDate:X})}const l=[],A={ORCHESTRATOR:0,PIONEER:0,GUARDIAN:0,EXPLORER:0};for(const B of a)for(const _ of B.members)l.push({av:_.current.av,es:_.current.es,archetype:_.current.archetype,teamName:B.teamName,email:_.email,roleLevel:_.roleLevel}),A[_.current.archetype]++;const u=B=>B.length?Math.round(B.reduce((_,F)=>_+F,0)/B.length*100)/100:0,d=u(l.map(B=>B.av)),h=u(l.map(B=>B.es)),f=u(a.flatMap(B=>B.members.map(_=>_.baseline.av))),g=u(a.flatMap(B=>B.members.map(_=>_.baseline.es))),p=Wi(d,h),v=Object.entries(A).sort((B,_)=>_[1]-B[1])[0][0],m=["Individual Experimentation","Workflow Integration","Psychological Safety","Organizational Enablement"],w={};for(const B of m){const _=a.map(F=>F.spiderSubScores[B]).filter(F=>F>0);w[B]=u(_)}const b=[...i.filter(B=>e.leaderEmails.some(_=>B.Manager_Email_Link&&Sa(B.Manager_Email_Link)===Sa(_))).map(B=>
499B.Submitted_At),...o.filter(B=>e.leaderEmails.some(_=>Sa(B.Email_Entry)===Sa(_))).map(B=>B.Submitted_At)].filter(Boolean);let E="N/A";if(b.length>0){const B=b.map(Zp).filter(_=>!isNaN(_.getTime())).sort((_,F)=>_.getTime()-F.getTime());if(B.length>0){const _=F=>F.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"});E=_(B[0])===_(B[B.length-1])?_(B[0]):`${_(B[0])} - ${_(B[B.length-1])}`}}return{companyName:e.companyName,teams:a,orgAvgAV:d,orgAvgES:h,orgBaselineAvgAV:f,orgBaselineAvgES:g,orgArchetype:p,pluralityArchetype:v,orgArchetypeDist:A,orgSpiderSubScores:w,totalEmployees:l.length,assessmentDateRange:E,allEmployeeScores:l}}const vme="1ddz-kxWUSkQbutS_eyu-DOGg6r2b2ABIHA8FgBg0FBI";async function $P(e){var s;const t=`https://docs.google.com/spreadsheets/d/${vme}/gviz/tq?tqx=out:json&sheet=${encodeURIComponent(e)}`,n=await(await fetch(t)).text(),i=JSON.parse(n.replace(/^[^{]+/,"").replace(/[^}]+$/,"")),o=i.table.cols.map(l=>(l.label||"").trim()),a=[];for(const l of i.table.rows??[]){const A={};for(let u=0;u<o.length;u++){const d=(s=l.c)==null?void 0:s[u];A[o[u]]=(d==null?void 0:d.v)!=null?String(d.v):""}a.push(A)}return a}function Cg(e){return e.toString().toLowerCase().trim()}function HP(e){const t=Cg(e.Email_Entry??"");return t.length>0&&t!=="xxxxx"&&t.includes("@")}const wme=["01","02","03","04","05","06","07","17","18","19","20","22"],bme=["08","09","10","11","12","13","14","15","16","21","23","24","25","26","27","28","29"],h5=new Set(["01","07","11","13","19","20","21","22","27","28"]),KP={"01":"I'm uncertain about whether I'm using the right AI tools effectively in my role.","02":"I have clarity on which AI capabilities would meaningfully accelerate my key workflows.","03":"I feel effective when I use AI tools in my daily work.","04":"I'm free to experiment with new AI tools and find what works, even if we hit some dead ends along the way.","05":"AI agents or automation have directly reduced my manual workload in the past 6 months.","06":"My current role involves orchestrating or coordinating multiple AI tools or systems as part of my daily work.","07":"I feel overwhelmed by the pace at which AI tools and technologies are changing in my field.","08":"I share my best AI prompts, tips, and tools to help the whole team work faster.","09":"I trust that my leadership wants AI to help us do more, not to take our jobs.",10:"I feel okay flagging problems or admitting I'm stuck with AI tools without worrying it will make me look bad.",11:"I'm worried that what AI generates is starting to matter more than my actual judgment and expertise.",12:"AI feels like a helpful teammate that makes me better at my job.",13:"AI has accelerated work to such a pace that I'm struggling to keep up, and it's wearing me out.",14:"I have a real say in how AI is used in my area.",15:"My feedback on AI decisions actually shapes what happens next.",16:"If an AI tool gets it wrong, my team focuses on learning why instead of looking for someone to blame.",17:"I spend more of my time directing AI and less time on repetitive, time-consuming tasks.",18:"I actively use AI tools to support my decision-making and accelerate my work.",19:"I'm forced to work around our old systems because we don't have an AI alternative that actually works faster.",20:"Things take longer than they should due to manual steps and multiple layers of sign-off in our process.",21:"I've watched roles disappear because AI took over the work people used to do.",22:"AI saves me time, but those gains are lost because the rest of the workflow remains stuck in a slow, manual process.",23:"My organization provides me with the tools and training I need to work efficiently with AI.",24:"My organization regularly communicates the risks and ethics of AI use, not just the benefits.",25:"The rules for AI are clear in our organization. I know what's allowed and what's off-limits.",26:"Our organization uses AI to help us do more, not as a reason to cut jobs.",27:"Security policies restrict me to a list of approved AI tools, which limits my ability to find better ways to work.",28:"My direct leader/manager isn't on board with AI yet, so I don't feel like I have the green light to use the tools we've been given.",29:"My team has mapped out exactly where AI fits into our workflows to achieve the best outcomes."};function rw(e,t,r,n){const i=`${t}_${r}_${n}`,o=h5.has(r),a=[];for(const l of e){const A=parseFloat(l[i]??"");!isNaN(A)&&A>=1&&A<=6&&a.push(o?7-A:A)}return a.length===0?{avg:0,count:0}:{avg:Math.round(a.reduce((l,A)=>l+A,0)/a.length*100)/100,count:a.length}}async function xme(e){try{const{data:t,error:r}=await Tt.from("company_roster").select("employee_email, manager_email").eq("company_id",e);if(r||!t||t.length===0)return[];const n=new Set(t.map(u=>Cg(u.employee_email))),i=new Set(t.filter(u=>u.manager_email).map(u=>Cg(u.manager_email))),[o,a]=await Promise.all([$P("Individual_Staging"),$P("Leader_Staging")]),s=o.filter(u=>HP(u)&&n.has(Cg(u.Email_Entry))),l=a.filter(u=>HP(u)&&i.has(Cg(u.Email_Entry)));if(s.length===0||l.length===0)return[];const A=[];for(const u of wme){const d=rw(s,"IA",u,"AV"),h=rw(l,"LA",u,"AV");d.count===0||h.count===0||A.push({itemNumber:u,dimension:"AV",questionText:KP[u]??`Item ${u}`,isReverseCoded:h5.has(u),employeeAvg:d.avg,leaderAvg:h.avg,gap:Math.round((h.avg-d.avg)*100)/100,employeeCount:d.count,leaderCount:h.count})}for(const u of bme){const d=rw(s,"IA",u,"ES"),h=rw(l,"LA",u,"ES");d.count===0||h.count===0||A.push({itemNumber:u,dimension:"ES",questionText:KP[u]??`Item ${u}`,isReverseCoded:h5.has(u),employeeAvg:d.avg,leaderAvg:h.avg,gap:Math.round((h.avg-d.avg)*100)/100,employeeCount:d.count,leaderCount:h.count})}
499return A.sort((u,d)=>Math.abs(d.gap)-Math.abs(u.gap))}catch(t){return console.warn("[fetchPerceptionGap] failed:",t),[]}}const Bme={IA_01_AV:{individual:{high:"You feel confident in your tool choices. That clarity is an asset. Keep building on it by staying curious about new tools in your specific role.",low:"You are uncertain whether you have the right AI tools for your work. Start with one task you do every week and find one tool built specifically for that task. Narrow the question and the answer gets easier."},leaderTeam:{high:"Your team feels confident in their tool choices. Reinforce this by keeping tool guidance current and celebrating examples of effective AI use in team meetings.",low:"Your team is uncertain about whether they have the right tools. Prioritize a tool clarity session. Help each person connect a specific AI tool to a specific task they own every week."},leaderSelf:{high:"You feel confident navigating AI tool choices in your leadership role. Continue building this fluency and share what you are learning with your team openly.",low:"You are uncertain whether you are using the right AI tools in your own leadership work. This matters because your team takes cues from you. Start with one tool, one task, one week."},solo:{high:"You are not sure whether you are using the right AI tools effectively. That uncertainty is one of the most common friction points at this stage. Get specific: pick your most time-consuming repeatable task and spend 30 minutes this week finding the AI tool built for exactly that. One answer is enough to start."}},IA_07_AV:{individual:{high:"You are keeping pace with AI change without feeling overwhelmed. Protect this by being selective about which new tools you actually adopt versus just monitor.",low:"The pace of AI change is weighing on you. You do not have to track everything. Pick one trusted source, check it once a week, and let the rest go. Depth beats breadth."},leaderTeam:{high:"Your team is keeping pace with AI change without feeling overwhelmed. Protect this by maintaining realistic expectations and avoiding tool overload in team rollouts.",low:"Your team is feeling the pace. Normalize this openly. Create structured time for learning so AI evolution feels like a rhythm your team controls, not a flood coming at them."},leaderSelf:{high:"You are not feeling overwhelmed by the pace of AI change as a leader. This steadiness is visible to your team and gives them permission to stay calm too.",low:"The pace of AI change is affecting you personally as a leader. Your team can sense this. You do not need to know everything. You need to model steady curiosity over anxious scrambling."},solo:{high:"You are keeping pace with AI change without feeling overwhelmed. Protect this by staying selective: go deep on two or three tools rather than chasing every new release. Breadth without depth creates its own kind of exhaustion."}},IA_11_ES:{individual:{high:"You trust that your judgment still matters alongside AI output. Keep exercising that judgment visibly. The goal is not to defer to AI but to direct it.",low:"You are concerned that AI output is displacing your expertise. Name this concern with your manager or team. Your judgment is the quality control layer that makes AI output trustworthy. That role does not disappear. It becomes more valuable."},leaderTeam:{high:"Your team trusts that their judgment still matters alongside AI output. Keep reinforcing human-in-the-loop decision making in the way you talk about AI wins publicly.",low:"Your team feels their expertise is being overshadowed by AI output. Address this directly. Make visible how human judgment shapes and improves what AI produces. Create moments where expertise catches what AI misses."},leaderSelf:{high:"You feel secure in the value of your own judgment alongside AI as a leader. Model this confidence for your team by narrating how you use your expertise to evaluate and improve AI output.",low:"You are privately concerned that AI is eroding the value of your own expertise as a leader. This is worth examining. Your role is increasingly about judgment, framing, and accountability. AI cannot hold those. You can."},solo:{low:"You are concerned that AI output is displacing your expertise. Name this concern out loud, to a peer, a mentor, or even in writing for yourself. Your judgment is the quality control layer that makes AI output trustworthy. That role does not disappear. It becomes more valuable."}},IA_13_ES:{individual:{high:"You are not experiencing AI-driven burnout. Monitor this as AI adoption deepens in your role and protect your sustainable pace intentionally.",low:"AI acceleration is creating fatigue for you. This is a real signal, not a mindset problem. Talk to your manager. AI should reduce your burden over time, not compound it."},leaderTeam:{high:"Your team is not experiencing AI-driven burnout. Check in on this regularly as adoption deepens. Sustainable pace is a leadership responsibility.",low:"AI acceleration is creating fatigue on your team. This is a burnout signal. Audit workloads and be honest about whether AI is actually reducing effort or just compressing timelines without remov
499ing work."},leaderSelf:{high:"You are managing the pace of AI-driven change without burning out. This resilience is visible to your team. Protect it by building recovery into your own schedule.",low:"The acceleration of AI-driven work is wearing on you personally. You cannot lead your team through transformation if you are running on empty. Address your own sustainability first."},solo:{high:"AI is not burning you out. You are managing the pace well. Check in on this regularly as your AI use deepens — sustainable pace is your responsibility to protect, and the warning signs are easy to miss when things are moving fast.",low:"AI acceleration is creating real fatigue for you. This is a signal, not a mindset problem. Name it to someone you trust — a colleague, a peer, a mentor. Then audit your workload: where has AI made things faster only to be replaced by more volume? That is the cycle to break. AI should reduce your burden over time, not compound it."}},IA_19_AV:{individual:{high:"You have adequate tools and are not losing time to legacy system workarounds. Keep flagging gaps when they appear so infrastructure stays current.",low:"Legacy systems are costing you time and eroding the value of AI elsewhere in your workflow. Document the specific workarounds you are doing and escalate them. This is an infrastructure problem, not a personal one."},leaderTeam:{high:"Your team has adequate tools and is not losing productivity to legacy system workarounds. Keep infrastructure investments current as AI capabilities evolve.",low:"Your team is losing productivity to legacy systems. Identify the top one or two workarounds and make removing them a priority in the next 30 days. This is a leadership decision, not a technical one."},leaderSelf:{high:"You are not being slowed down by legacy infrastructure in your own leadership work. Continue advocating for modern tooling for your team as needs evolve.",low:"Legacy systems are limiting your own effectiveness as an AI-ready leader. If you are working around outdated infrastructure, your team almost certainly is too. Escalate this."},solo:{low:"You are gaining time with AI on individual tasks but losing it in the slower parts of your workflow. The bottleneck is almost never where you are using AI. It is the step after. Map one complete workflow end to end this week and find where the time goes after AI does its part. That is where to focus next."}},IA_20_AV:{individual:{high:"Your processes are enabling your speed rather than canceling it out. You are not losing AI gains to approval bottlenecks.",low:"Manual steps and approval layers are slowing you down and absorbing the time AI saves you. Map one workflow end to end this week and identify the single step that causes the most delay."},leaderTeam:{high:"Your team is not bottlenecked by manual approval layers. Your processes are enabling AI speed rather than neutralizing it.",low:"Approval layers and manual steps are slowing your team down. Map one end-to-end workflow this month and identify where human sign-off can be reduced or replaced. Process debt is compounding."},leaderSelf:{high:"Your leadership decisions and approval patterns are not creating bottlenecks for your team. Keep asking whether sign-off requirements are adding value or just adding time.",low:"Manual processes and sign-off layers may be originating from your own leadership patterns. Ask your team honestly where work slows down waiting for you. Then remove one of those steps."},solo:{high:"AI is freeing up your time effectively. You have replaced the manual habits that slow most people down with faster AI-enabled alternatives. Keep auditing your workflow for the next step still running on old patterns.",low:"AI is not yet freeing up your time. The manual steps and habits you are still relying on are absorbing the gains AI should be creating. The fit between the tools you are using and the tasks that take most of your time may be misaligned. Audit that fit. Pick your most time-consuming repeatable task and ask whether the AI tool you are using, or not using, is actually built for that specific work."}},IA_22_AV:{individual:{high:"AI time savings are flowing through your full workflow, not getting trapped downstream. You are capturing the real value of your AI adoption.",low:"You are gaining time with AI but losing it downstream in manual processes. The individual wins are real. The system is neutralizing them. Identify where the handoff breaks and bring that to your manager."}
499,leaderTeam:{high:"AI efficiency gains are flowing through your team's full workflow, not being absorbed by manual bottlenecks. Your team is capturing the real compound value of AI.",low:"Your team's AI gains are being offset by manual bottlenecks elsewhere in the process. Look downstream from where AI is being used. The constraint is usually a handoff point, an approval step, or a legacy system dependency."},leaderSelf:{high:"AI is generating real net time savings in your leadership work. The gains are not being eroded by downstream friction in how you operate.",low:"You may be gaining efficiency with AI in isolated tasks but losing it in the broader flow of your leadership work. Look at your full weekly workflow, not just the tasks where AI helps."}},IA_28_ES:{individual:{high:"You feel you have leadership permission to use AI tools in your role. That clarity enables faster and more confident adoption.",low:"You do not feel you have your manager's buy-in to use AI tools. You are not imagining this. Name it directly in your next one-on-one. Ask for explicit permission. Most managers will give it when asked plainly."},leaderTeam:{high:"Your team feels they have your buy-in to use AI tools. Your visible support is landing. Keep modeling the behavior publicly so permission stays explicit, not assumed.",low:"Your team does not feel they have your buy-in to use AI. This is a leadership signal, not a skill gap. One explicit public statement from you this week will move this score more than any training program."},leaderSelf:{high:"You feel supported by your own leadership to engage with AI. Use that support actively and visibly. Your team is watching whether organizational permission translates into real behavior.",low:"You do not feel your own leadership supports your AI engagement. This is worth addressing directly. You cannot credibly ask your team to adopt AI if you are not receiving that signal from above."}},IA_27_ES:{individual:{high:"You do not feel constrained by security policies in your AI work. Governance and your ability to experiment are in balance for now.",low:"Security restrictions are creating friction that feels like a block to your progress. Document the specific tools or use cases being restricted and bring them to your IT or security partner. Ask for a review pathway, not blanket exceptions."},leaderTeam:{high:"Your team does not feel constrained by security policies. Governance and agility are in balance. Monitor this as new tools emerge.",low:"Security guardrails are creating friction your team experiences as a block to progress. Work with your IT or security partners to review which restrictions are protecting real risk versus slowing legitimate work. Advocate for a faster tool approval process."},leaderSelf:{high:"Security policies are not limiting your own effectiveness as a leader. You have the tools you need within the guardrails that exist.",low:"Security constraints are limiting your own AI experimentation as a leader. If you are experiencing this, your team definitely is. Escalate this as a leadership priority, not just an IT ticket."}},IA_21_ES:{individual:{high:"You do not feel threatened by AI-driven role displacement. This psychological security will help you engage with AI more openly and experimentally.",low:"You have witnessed role displacement and it is affecting how you engage with AI. This is a legitimate concern, not a distorted perception. Talk about it openly with your manager. The goal is to understand how your role is evolving, not whether it is disappearing."},leaderTeam:{high:"Your team does not feel threatened by AI-driven role displacement. This psychological safety is a competitive advantage. Protect it by being transparent about how AI is shaping roles going forward.",low:"Your team is experiencing or witnessing role displacement fear. This will suppress AI adoption even when tools are available and supported. Address it directly and publicly. Be specific about how AI is meant to evolve roles, not eliminate people. Vague reassurance makes it worse."},leaderSelf:{high:"You are not experiencing personal anxiety about AI displacing your leadership role. Use this security to model calm, forward-looking engagement with AI for your team.",low:"You are personally concerned about AI changing or displacing your leadership role. This is more common than leaders admit. Get specific about which parts of your role feel most at risk and lean into developing the judgment and orchestration skills AI cannot replicate."},solo:{low:"You are watching work you used to own go to someone doing it faster and cheaper with AI. That is a real competitive signal, not a hypothetical one. The response is not to panic. It is to get specific about what part of your value cannot be replicated by speed alone — judgment, relationships, domain expertise, 
499creative direction — and double down on that while building your own AI fluency alongside it. The professionals who survive this shift are the ones who refuse to compete on speed alone."}},IA_17_AV:{solo:{high:"You are not losing time to outdated tool workarounds. Your current setup is working for you. Keep evaluating new options as they emerge but do not change what is not slowing you down.",low:"Outdated tools are costing you time and absorbing the gains AI is creating elsewhere. You do not need permission to fix this. Identify the one platform causing the most friction and spend 30 minutes this week finding a faster alternative. The decision is yours to make."}},IA_18_AV:{solo:{high:"You are not losing time to slow manual habits. Your workflow is relatively streamlined. Keep looking for the next step still running on old rails.",low:"Manual habits and outdated approaches are slowing you down and absorbing the time AI saves elsewhere. Old habits are the stickiest bottleneck. Pick one task you do the same way you always have and spend 20 minutes finding the AI-enabled version of it. One swap builds the habit of swapping."}},LA_32_ES:{leaderSelf:{high:"You feel capable of guiding your team on AI. That confidence creates permission for your team to experiment. Stay curious and keep building fluency so this advantage compounds.",low:"Your own AI literacy gap is limiting your ability to lead your team forward. This is your highest-leverage development area right now. Start with one hour a week of hands-on AI exploration. You do not need to become technical. You need to become credible."}}};function qm(e,t,r){var s,l;const n=e.startsWith("SIA_")?e.replace("SIA_","IA_"):e,i=Bme[n];if(!i)return null;const o=t>=4?"high":"low";if(r==="solo"){const A=(s=i.solo)==null?void 0:s[o];return A||(((l=i.individual)==null?void 0:l[o])??null)}const a=i[r];return a?a[o]??null:null}const VP={IA_02_AV:{individual:{high:"You know where AI fits in your work and which tools move the needle. That clarity is rare and valuable. Use it to go deeper, not just broader.",low:"You are not yet sure which AI capabilities would actually speed up your work. Start with your most time-consuming repeatable task this week and ask: is there an AI tool built for exactly this? One answer is enough to start."},leaderTeam:{high:"Your team has clarity on which AI capabilities matter most for their work. Build on this by making that knowledge visible and shared so it raises the floor for everyone.",low:"Your team lacks clarity on which AI tools would actually help them. This is a common early-stage gap. Run a short workflow mapping session: each person names their top three time sinks and you identify one AI tool per person that addresses one of them."},leaderSelf:{high:"You are clear on which AI capabilities move the needle in your leadership work. Use that clarity to model specific, concrete AI adoption for your team rather than generic encouragement.",low:"You are not yet sure which AI capabilities matter most for your own leadership work. Get specific. Pick one part of your role, strategy, communication, or decision-making, and spend 30 minutes this week exploring what AI can do there."}},IA_03_AV:{individual:{high:"AI is genuinely making you more effective in your daily work. That is the signal that adoption is working. Now look for the next place to extend it.",low:"AI tools are not yet making you feel more effective. This is often a prompting and workflow fit problem, not a capability problem. Try one tool on one specific task for a full week before judging whether it works."},leaderTeam:{high:"Your team feels effective when using AI in their daily work. This is the outcome that matters most. Celebrate it publicly and ask people to share what is working so the whole team learns.",low:"Your team does not feel effective with AI yet. This is the most important signal on this report. Effectiveness comes from fit, not just access. Help your team find the right tool for the right task rather than pushing broader adoption."},leaderSelf:{high:"You feel effective using AI in your own leadership work. This firsthand experience makes you a more credible AI champion for your team. Keep building on it and share what you are learning.",low:"AI is not yet making you feel more effective in your own work. You cannot credibly lead AI adoption if you are not experiencing it personally. Pick one leadership task this week and commit to using AI for it, even imperfectly."}},IA_04_AV:{individual:{high:"You have the freedom to experiment with AI. That permission is a competitive advantage. Use it intentionally. Dead ends are data.",low:"You do not feel free to experiment with AI tools. Find out whether that is a real policy constraint or an assumed one. Ask your manager directly. Most organizations give permission when someone simply asks for it."},leaderTeam:{high:"Your team feels free to experiment with AI tools. This psychological permission is what separates team
499s that move from teams that stall. Protect it by celebrating attempts, not just successes.",low:"Your team does not feel free to experiment. This is a culture signal. If people are waiting for permission or fearing judgment for failed experiments, adoption will be slow regardless of what tools you provide. Give explicit permission out loud, not just in policy."},leaderSelf:{high:"You feel free to experiment with AI in your own leadership practice. Model this openly. When you try something and it does not work, say so. That normalizes experimentation for your whole team.",low:"You do not feel free to experiment with AI in your own work. If you are waiting for permission from above, ask for it directly. Leaders who experiment set the tone. Leaders who wait set a different tone."},solo:{high:"You give yourself permission to experiment with AI, even through dead ends. That self-authorization is everything when you work independently. No one is going to give you the green light. You already have it. Keep using it.",low:"You are not yet giving yourself full permission to experiment with AI. When you work independently, the only gatekeeper is you. The hesitation is often about wasting time or looking foolish, but dead ends are data. Pick one tool this week, give it a genuine try, and let the outcome inform your next move."}},IA_05_AV:{individual:{high:"AI has already reduced your manual workload in a measurable way. You are past the experimentation phase and into real returns. Look at what worked and do more of it.",low:"AI has not yet reduced your manual workload. This is the outcome test. If adoption is not freeing up your time, something is misaligned between the tools you are using and the tasks that take most of your time. Audit the fit."},leaderTeam:{high:"Your team has experienced real workload reduction from AI in the past six months. This is outcome-level evidence that adoption is working. Make the time savings visible so people can see the return on their effort.",low:"Your team has not experienced workload reduction from AI yet. Adoption without outcomes is theater. Find out which team members are closest to a real workflow win and help them get there first. That first visible result changes everything."},leaderSelf:{high:"AI has reduced your own manual workload as a leader. Document what changed and share it with your team. Concrete examples from you carry more weight than any training program.",low:"AI has not reduced your own workload yet. Until it does, your AI leadership is aspirational rather than experiential. Find one manual task you do every week and automate or delegate it to AI this month."}},IA_06_AV:{individual:{high:"You are already operating at the orchestration level, coordinating multiple AI tools as part of your daily workflow. This is the leading edge of AI fluency. Keep building the connective tissue between tools.",low:"Your role does not yet involve coordinating AI tools. This is not a problem at early stages of adoption. But as AI matures in your organization, the ability to orchestrate multiple tools will become a core skill. Start by identifying two tools that could hand off work to each other."},leaderTeam:{high:"Some of your team members are already orchestrating multiple AI tools as part of their daily work. These people are your internal champions. Give them visibility and a platform to teach others.",low:"Your team is not yet coordinating multiple AI tools. Most teams start here. The path forward is moving from using AI occasionally to building AI into the flow of how work gets done. Start with one workflow redesign, not a dozen."},leaderSelf:{high:"You are personally coordinating multiple AI tools in your leadership work. This operational fluency gives you direct insight into what your team needs to develop. Use it to build more specific and realistic development plans.",low:"You are not yet orchestrating multiple AI tools in your own work. As a leader this matters because orchestration is where the real leverage is. Start by connecting two tools you already use rather than adding new ones."},solo:{low:"Your role does not yet involve coordinating AI tools. This is not a problem at early stages of adoption. But as AI matures in your field, the ability to orchestrate multiple tools will become a core skill. Start by identifying two tools that could hand off work to each other."}},IA_08_ES:{individual:{high:"You are actively contributing to your team's collective AI intelligence. This generosity compounds. The more you share, the faster everyone around you moves, including you.",low:"You are not yet sharing AI knowledge with your team. This is often not a reluctance issue but a habit one. Start small: share one prompt or tip in your next team meeting. One share creates a culture of sharing."},leaderTeam:{high:"Your team is actively sharing AI knowledge with each other. This peer learning culture is one of the highest-value behaviors you can build. Formalize it with a shared space for AI wins and prompts.",low:"Your team is not yet sharing AI knowledge. Individual pockets of AI fluency are not reaching others. Create a low-friction channel for sharing, a Slack thread, a shared doc, a standing two minutes in team meetings. Make it visible and celebrated."},leaderSelf:{high:"You are actively sharing AI knowledge with your team. This is one of the most powerful things a leader can do to accelerate adoption. Keep it up and make your sharing specific and practical, not just inspirational.",low:"You are not yet sharing your own AI knowledge with your team. Your team notices what you do, not just what you say. Share one specific prompt or workflow win in your next team interaction."},solo:{high:"You are actively sharing your AI knowledge with your network and collaborators. This generosity builds your reputation as someone ahead of the curve. The more you share, the more you attract people who are also moving fast.",low:"You are not yet sharing your AI knowledge with your network or clients. Sharing what you know is one of the fastest ways to establish authority in your field right now. Post one prompt, tip, or workflow win this week. You do not need to be an expert to share what is working for you."}},IA_09_ES:{individual:{high:"You trust your leadership's intent around AI. That trust removes a significant psychological barrier to adoption. Use it to experiment more boldly.",low:"You do not trust that leadership's AI agenda is in your interest. This is a significant barr
499ier to your engagement. Name the concern with your manager directly. Ambiguity about intent almost always reads as threat. Clarity, even uncomfortable clarity, is better than silence."},leaderTeam:{high:"Your team trusts your intent around AI. This is one of the most important scores on this report. Trust in leadership intent is the foundation that all other AI adoption builds on. Do not take it for granted.",low:"Your team does not trust that your AI agenda is in their interest. This will suppress adoption more than any skill gap or tool gap. Address it directly, publicly, and specifically. Tell your team in plain language what AI is and is not for in your organization."},leaderSelf:{high:"You trust that your own leadership supports AI as a tool for growth, not reduction. Use that trust to advocate for your team with confidence and to model the behavior you want them to adopt.",low:"You do not trust that your leadership's AI agenda is in your team's interest. This is worth addressing upward. If you cannot advocate for your team's wellbeing in the AI transition, your own leadership credibility is at risk."},solo:{high:"You believe AI amplifies your value rather than commoditizing it. That confidence shapes how you position yourself with clients and how boldly you experiment. Hold onto it. It is not naive. It is strategically correct for people who keep developing judgment alongside tools.",low:"You are concerned that AI might make your expertise easier to replace. This fear is worth examining specifically rather than carrying generally. Ask yourself: which parts of what I do require irreplaceable judgment, relationships, or creativity? Those are your moat. AI handles the rest and frees you to go deeper on what only you can do."}},IA_10_ES:{individual:{high:"You feel safe admitting when you are stuck with AI. That psychological safety is what allows you to learn faster. Keep using it.",low:"You do not feel safe admitting when you are stuck with AI tools. This fear slows your learning more than any skill gap. Find one person you trust and practice saying out loud: I tried this and it did not work. That conversation is the beginning of faster progress."},leaderTeam:{high:"Your team feels safe admitting when they are stuck with AI. This psychological safety is a direct accelerant of adoption. Protect it by continuing to normalize struggle and celebrate honesty in team conversations.",low:"Your team does not feel safe admitting when they are stuck. This is a culture problem that looks like a skills problem. People will avoid AI rather than risk looking incompetent. Model vulnerability yourself. Tell your team about a time AI did not work for you."},leaderSelf:{high:"You feel safe admitting your own AI struggles upward and laterally. This self-awareness makes you more trustworthy as a leader and more effective as a learner. Keep being honest about your own journey.",low:"You do not feel safe admitting when you are stuck with AI in your leadership role. If you are performing confidence you do not have, your team will sense the gap. Authentic struggle is more motivating than polished competence."}},IA_12_ES:{individual:{high:"AI feels like a genuine partner in your work. That relationship is the goal. You have crossed the threshold from AI as a tool to AI as a collaborator. Now push the collaboration further.",low:"AI does not yet feel like a useful partner in your work. This is often a prompting quality issue. AI is only as useful as the instructions you give it. Invest 30 minutes in learning how to give better prompts for your specific role and try again."},leaderTeam:{high:"Your team experiences AI as a genuine partner, not just a tool to comply with. This mindset shift is the difference between surface adoption and deep integration. Build on it.",low:"Your team does not yet experience AI as a helpful partner. Reframe how AI is introduced and discussed. When AI is presented as a mandate it creates resistance. When it is presented as a personal accelerator for each person's own goals it creates engagement."},leaderSelf:{high:"You experience AI as a genuine collaborator in your leadership work. This firsthand positive experience is your most authentic tool for leading adoption. Share the specific ways AI has made you better at your job.",low:"AI does not yet feel like a helpful partner in your own leadership work. Without this personal experience, your AI advocacy will feel hollow to your team. Find one leadership task this week where you let AI genuinely help rather than just assist."}},IA_14_ES:{individual:{high:"You have genuine voice in how AI is used in your area. Use it. Advocate for tools and workflows that serve the actual work, not just the tools that are easiest to deploy.",low:"You do not feel you have a real say in how AI is used. This disempowerment undermines adoption. Flag this to your manager specifically. AI strategies designed without input from the people doing the work consistently underperform."},leaderTeam:{high:"Your team feels they have genuine input into how AI is used in their area. This ownership increases both adoption quality and accountability. Keep including them in decisions, not just announcements.",low:"Your team does not feel they have a real say in how AI is used. AI rollouts designed without frontline input create resistance. Involve your team in decisions about tool selection, workflow redesign, and policy before those decisions are finalized."},leaderSelf:{high:"You feel you have real influence over how AI is used in your area of leadership. Use that influence to center your team's needs in those decisions, not just organizational efficiency.",low:"You do not feel you have meaningful influence over AI strategy in your area. This limits your ability to lead effectively. Identify one upcoming AI decision in your organization and insert yourself into the conversation before it is made."},solo:{high:"You have full control over how AI shows up in your work. That autonomy is one of the real advantages of working independently. Use it deliberately. The fact that no one is making decisions for you means every AI adoption choice is yours to optimize.",low:"You do not feel full control over how AI is used in your work. When you work independently this is worth unpacking. The constraints are usually client expectations, platform limitations, or your own uncertainty about what is allowed or appropriate. Identify the specific constraint and address it directly."}},IA_15_ES:{individual:{high:"Your feedback on AI is heard and acted on. This is motivating and it creates accountability. Keep giving specific, actionable feedback rather than general reactions.",low:"Your feedback on AI decisions does not feel like it lands. This erodes your motivation to engage. Document your feedback in writing, one specific observation and one specific recommendation. Written feedback is harder to ignore than verbal input."},leaderTeam:{high:"Your team believes their AI feedback shapes real decisions. That belief drives higher quality input and greater ownership. Close the loop visibly: when team feedback leads to a change, say so.",low:"Your team does not believe their AI feedback matters. If this is true, fix the process. If the feedback is being considered but the outcome is not visible to the team, close the loop. Either way, people who feel unheard disengage."},leaderSelf:{high:"Your feedback on AI strategy is shaping real decisions at your level. Use this influence to advocate specifically for what your team needs, not just what looks good strategically.",low:"Your feedback on AI decisions is not being acted on. This is worth addressing with your own leadership directly. Frame it as a risk to adoption quality, not a complaint. Decisions made without frontline leader input are more likely to fail."},solo:{high:"You are using AI on your own terms, shaped by your own judgment rather than external pressure. This autonomy produces better work and protects your professional identity. Keep questioning whether new tools serve your actual goals rather than just following what the market is doing.",low:"External pressure, from clients, platforms, or market trends, is shaping how you use AI more than your own judgment is. This is worth reclaiming. Start by asking: if I removed the pressure to look a certain way, how would I actually want to use AI in my work? That answer is your starting point."}},IA_16_ES:{individual:{high:"Your team treats AI failures as learning opportunities rather than blame events. This blameless culture is what allows rapid iteration. Reinforce it every time something does not work as expected.",low:"AI failures in your team tend toward blame rather than learning. This will slow adoption significantly because people avoid tools they might be blamed for misusing. Introduce the concept of AI post-mortems: 
499when something goes wrong, the question is always what can we learn, not who is responsible."},leaderTeam:{high:"Your team has a learning culture around AI failures. This is the psychological infrastructure that makes rapid improvement possible. Protect it by modeling it yourself when things go wrong.",low:"Your team culture defaults to blame when AI goes wrong. This is one of the most adoption-suppressing patterns that exists. Address it directly in your next team meeting. Establish an explicit norm: when AI fails, we investigate together. No exceptions."},leaderSelf:{high:"You model a learning orientation when AI does not perform as expected. This is one of the most valuable cultural contributions a leader can make during an AI transition.",low:"Your team's blame culture around AI failures may be reflecting patterns set at the leadership level. Examine your own reactions when AI-assisted work falls short. Your team is watching how you respond."},solo:{high:"When AI fails you, you stay curious rather than reactive. That investigative instinct is what separates people who compound their AI fluency from those who plateau. Every failure you analyze makes you faster and more precise the next time.",low:"When an AI tool gets it wrong, your instinct is to abandon it rather than investigate why. This is a common early-stage pattern but it is costly. Most AI failures are prompting failures, not tool failures. Before you walk away from a tool that did not work, spend 10 minutes asking: what did I ask it to do, and what would a better instruction have looked like?"}},IA_17_AV:{individual:{high:"You have made the shift from doing repetitive work to directing AI. This is the Doers to Orchestrators transition in action. You are operating at a higher level of leverage. Keep pushing the boundary of what you delegate to AI.",low:"You are still spending most of your time on repetitive tasks rather than directing AI. This is the most important transition in the AI age. Identify your three most repetitive weekly tasks and find an AI approach for at least one of them this week."},leaderTeam:{high:"Your team has begun the shift from doing repetitive work to directing AI. This Doers to Orchestrators transition is the core outcome you are building toward. Accelerate it by giving your team explicit permission and time to redesign their own workflows.",low:"Your team is still spending most of their time on repetitive tasks rather than directing AI. This is the central challenge of AI leadership. The goal is not just AI adoption but workflow transformation. Help your team identify which of their tasks should be handed to AI first."},leaderSelf:{high:"You have personally made the shift toward directing AI rather than doing repetitive work. This operating model change is what you are asking your team to make. The fact that you have done it yourself makes your leadership on this credible and specific.",low:"You are still spending more time on repetitive tasks than directing AI in your own leadership work. Until you make this shift personally, you are asking your team to do something you have not done. Identify one task you do manually every week and hand it to AI this month."}},IA_18_AV:{individual:{high:"You are actively using AI to improve your decisions and accelerate your outcomes. This is what productive AI adoption looks like. Document what is working so you can scale it.",low:"You are not yet actively using AI to augment your decision-making. This is the most direct measure of adoption maturity. Start with one decision you make regularly and bring AI into the process, research, synthesis, option generation, or risk analysis. Pick one."},leaderTeam:{high:"Your team is actively using AI to improve decisions and accelerate outcomes. This is the core of what AI readiness is for. Measure the impact, make it visible, and use it to build the case for deeper investment.",low:"Your team is not yet actively using AI to augment decision-making. Tool access without active use means adoption has stalled at the awareness stage. Focus on one decision type your team makes regularly and design an AI-assisted ver
499sion of that process."},leaderSelf:{high:"You are actively using AI to improve your own leadership decisions and outcomes. This firsthand practice is your most credible basis for leading adoption. Keep developing it and share the results transparently.",low:"You are not yet actively using AI in your own decision-making as a leader. This is a significant gap. Your team cannot be expected to integrate AI into their decisions if you have not done it in yours. Start with your next strategic decision."}},IA_23_ES:{individual:{high:"Your organization is giving you what you need to work with AI effectively. This is a real advantage. Use the tools and training fully rather than just checking the box.",low:"Your organization is not providing adequate tools or training for AI work. Name the specific gap to your manager: what tool do you need, what training would help, what is missing. Vague dissatisfaction is easy to ignore. Specific requests are harder to dismiss."},leaderTeam:{high:"Your team feels adequately equipped with tools and training for AI work. This organizational support is a foundation you have built. Keep it current as AI capabilities evolve.",low:"Your team does not feel adequately equipped for AI work. This is a resource and infrastructure gap that sits above the individual level. Audit what your team actually needs versus what has been provided and escalate the specific delta to your leadership."},leaderSelf:{high:"You feel your organization equips you adequately for AI leadership. Use that support to advocate for equivalent investment in your team's tools and training.",low:"You do not feel adequately equipped by your organization to lead AI adoption. This limits your effectiveness and your credibility. Identify the one resource gap that would most change your ability to lead and make a specific ask for it."},solo:{high:"You proactively invest in the tools and training you need to stay current with AI. That self-directed learning is one of the most important habits an independent professional can have right now. You are not waiting for anyone to develop you. That is your edge.",low:"You are not yet proactively investing in AI tools and training. When you work independently, no one builds this for you. Start small: one hour a week, one tool at a time, one skill that directly serves your current client work. The investment compounds faster than you expect."}},IA_24_ES:{individual:{high:"Your organization gives you balanced communication about AI, including risks and ethics alongside benefits. This transparency builds informed and responsible adoption.",low:"Your organization only communicates the upside of AI without addressing risks or ethics. This creates blind spots. Seek out this context yourself. Understanding where AI can go wrong makes you a more effective and trustworthy user of it."},leaderTeam:{high:"Your organization communicates AI risks and ethics alongside benefits. Your team is adopting AI with informed awareness of the boundaries. Reinforce this by surfacing ethical considerations in your own team conversations.",low:"Your organization is not communicating AI risks and ethics alongside benefits. This is a governance gap that leaves your team vulnerable. Fill it yourself: address risks, data privacy, decision accountability, and appropriate use directly in your team context."},leaderSelf:{high:"Your organization gives you balanced communication about AI risks and benefits. Use that informed perspective to lead your team through nuanced conversations about responsible AI use.",low:"You are not receiving balanced communication about AI from your organization. As a leader this puts you in a difficult position. You cannot lead responsible AI adoption without understanding the risks. Seek out this knowledge proactively."},solo:{high:"You educate yourself on AI risks and ethics alongside the benefits. This balanced awareness makes you a more trustworthy practitioner and a more informed decision-maker about where and how you use AI in your work.",low:"You are focused primarily on AI benefits without consistently educating yourself on risks and ethics. As an independent professional your clients are trusting your judgment on how AI is used in work that affects them. That trust requires you to understand the risks, not just the upside. Dedicate 30 minutes this month to reading one resource specifically about AI ethics or failure modes in your field."}},IA_25_ES:{individual:{high:"You have clarity on AI governance in your organization. That clarity removes uncertainty and lets you adopt confidently within the guardrails. Use the freedom you have.",low:"You are unclear about what AI use is allowed in your organization. Ambiguity here is a common adoption blocker. Ask your manager directly: what AI tools am I explicitly allowed to use and what is off-limits? One conversation ends the ambiguity."},leaderTeam:{high:"Your team has clarity on AI governance. They know what is allowed and what is not. This eliminates a major source of hesitation. Keep governance communications current as new tools emerge.",low:"Your team is unclear about AI governance. This ambiguity is suppressing adoption: people default to inaction when they are unsure of the rules. Provide explicit written guidance on what is allowed, what requires approval, and what is off-limits. Clarity is more important than comprehensiveness."},leaderSelf:{high:"You have clear understanding of AI governance at the leadership level. Translate that clarity into simple, actionable guidance for your team rather than expecting them to find it themselves.",low:"You are unclear about AI governance at your own leadership level. You cannot set clear expectations for your team if you are uncertain yourself. Escalate this to your leadership: unclear governance is an organizational risk, not just a personal inconvenience."},solo:{high:"You have a clear personal ethics framework for AI use. This is rare and valuable. It means you can make fast, confident decisions about where AI is and is not appropriate in y
499our work rather than deciding case by case under pressure.",low:"You do not yet have a clear personal framework for where you draw the line on AI use. Without this, you are making ethics decisions reactively rather than proactively. Take 30 minutes this week to write down three things you will always do and three things you will never do when using AI in client work. That is your framework. It does not need to be perfect to be useful."}},IA_26_ES:{individual:{high:"You believe your organization is using AI to expand capability, not reduce headcount. That belief enables more open and enthusiastic adoption. It is also worth protecting by staying visible about the value you create with AI.",low:"You believe AI is being used as a justification for job cuts. This is a fundamental trust breakdown. Name it explicitly with your manager. Organizations that use AI for reduction rather than growth consistently underperform those that use it for expansion."},leaderTeam:{high:"Your team believes AI is being used to amplify their capability, not eliminate their roles. This belief is foundational to sustainable adoption. Keep reinforcing it with specific examples of how AI is expanding scope, not shrinking headcount.",low:"Your team believes AI is being used as cover for headcount reduction. This belief, whether accurate or not, will suppress adoption entirely. Address it directly and publicly. If it is inaccurate, correct the record with specifics. If it has any basis in reality, acknowledge it honestly."},leaderSelf:{high:"You believe your organization's AI strategy is genuinely about growth, not reduction. Use that belief to champion AI adoption confidently and to advocate for your team's role in the AI future.",low:"You have doubts about whether your organization is using AI for growth or reduction. If you hold this doubt, your team almost certainly does too. Get clarity from your own leadership and bring that clarity back to your team."},solo:{high:"You use AI to expand your capability and capacity rather than to justify lower pricing. That positioning is exactly right. AI should raise the ceiling on what you can deliver, not lower the floor on what you charge.",low:"You may be using AI efficiency as a reason to undercharge or feel like your work is worth less. This is one of the most common traps for independent professionals adopting AI. Faster does not mean less valuable. The expertise, judgment, and relationships that make your work good are not made cheaper by the tools you use. Revisit your pricing through the lens of outcome value, not time spent."}},IA_27_ES:{individual:{high:"Your team has done the work of mapping AI into your workflows. That clarity means everyone knows where AI helps and where human judgment is required. Build on this foundation.",low:"Your team has not mapped out where AI fits in your workflows. AI without workflow integration stays at the level of occasional assistance rather than structural advantage. Identify one workflow this month and map it end to end with AI touchpoints marked explicitly."},leaderTeam:{high:"Your team has mapped AI into your workflows. This structured integration is what separates team
499s with compounding AI returns from teams with scattered wins. Formalize these maps so they survive team changes.",low:"Your team has not mapped AI into its workflows. Individual tool use without workflow integration produces inconsistent results. Run one workflow mapping session this month. Start with your highest-volume, most repeatable process."},leaderSelf:{high:"You have mapped AI into your own leadership workflows. This clarity makes you a more effective orchestrator and a more credible AI advocate. Share your workflow maps with your team as a model.",low:"You have not mapped AI into your own leadership workflows. Without this structure, your AI use stays opportunistic rather than systematic. Map one leadership workflow this month and identify where AI fits in every step."},solo:{low:"Privacy and security concerns are limiting which AI tools you are willing to use, and that friction is holding back your progress. This is a legitimate concern, not an obstacle to dismiss. Get specific about what you are protecting: client data, proprietary work, personal information. Then evaluate tools against that specific risk rather than applying a blanket restriction that may be costing you more than it protects."}},IA_28_ES:{individual:{high:"You are actively using AI to improve your decisions and accelerate your outcomes. This is what productive AI adoption looks like. Document what is working so you can scale it.",low:"You are not yet actively using AI to augment your decision-making. This is the most direct measure of adoption maturity. Start with one decision you make regularly and bring AI into the process, research, synthesis, option generation, or risk analysis. Pick one."},leaderTeam:{high:"Your team is actively using AI to improve decisions and accelerate outcomes. This is the core of what AI readiness is for. Measure the impact, make it visible, and use it to build the case for deeper investment.",low:"Your team is not yet actively using AI to augment decision-making. Tool access without active use means adoption has stalled at the awareness stage. Focus on one decision type your team makes regularly and design an AI-assisted ver
499sion of that process."},leaderSelf:{high:"You are actively using AI to improve your own leadership decisions and outcomes. This firsthand practice is your most credible basis for leading adoption. Keep developing it and share the results transparently.",low:"You are not yet actively using AI in your own decision-making as a leader. This is a significant gap. Your team cannot be expected to integrate AI into their decisions if you have not done it in yours. Start with your next strategic decision."},solo:{high:"The people you work with are not blocking your AI adoption. You have navigated any skepticism without losing momentum. Keep letting results speak louder than explanations.",low:"Client or collaborator skepticism is making you hesitant to use AI even when it would improve your work. You do not have to lead with the tool. Lead with the outcome. Most skeptics shift when they see the quality and speed of what you produce, not when you explain how you produced it. Let the work make the argument."}},IA_29_ES:{individual:{high:"Your team has done the work of mapping AI into your workflows. That clarity means everyone knows where AI helps and where human judgment is required. Build on this foundation.",low:"Your team has not yet redesigned its workflows around AI as a collective. Individual tool use is a starting point, but the real gains come when your team steps back and asks: where in our shared processes does AI multiply our output, not just save one person time? Block one hour this month to map one team workflow end to end and identify the two or three steps where AI creates the biggest shared return."},leaderTeam:{high:"Your team has mapped AI into your workflows. This structured integration is what separates team
499s with compounding AI returns from teams with scattered wins. Formalize these maps so they survive team changes.",low:"Your team has not mapped AI into its workflows. Individual tool use without workflow integration produces inconsistent results. Run one workflow mapping session this month. Start with your highest-volume, most repeatable process."},leaderSelf:{high:"You have mapped AI into your own leadership workflows. This clarity makes you a more effective orchestrator and a more credible AI advocate. Share your workflow maps with your team as a model.",low:"You have not mapped AI into your own leadership workflows. Without this structure, your AI use stays opportunistic rather than systematic. Map one leadership workflow this month and identify where AI fits in every step."},solo:{high:"You have mapped AI into your personal workflows with intention. That structural clarity is what separates scattered AI use from compounding returns. You know where it helps and where it does not. Build on that map as your work evolves.",low:"You have not yet mapped out where AI fits in your workflows. AI without intentional integration stays at the level of occasional help rather than structural advantage. Take one workflow you run every week and map it end to end this month. Mark every step where AI could be applied. Then pick one and build it in."}},LA_30_AV:{leaderSelf:{high:"You have a concrete plan for your team's AI evolution. That roadmap is one of the rarest and most valuable things a leader can have right now. Keep it visible, share it with your team, and revisit it quarterly as capabilities change.",low:"You do not yet have a roadmap for your team's AI evolution. This is the most foundational leadership gap on this report. Your team cannot move toward orchestration if they do not know that is where they are going. Start with a simple one-page vision: where is your team today, where do you want them in 12 months, and what are the three shifts that get them there."}},LA_31_AV:{leaderSelf:{high:"You have visibility into your team's actual AI tool usage, including informal and unsanctioned tools. This awareness lets you channel Shadow AI into approved channels before it becomes a compliance risk. Keep the lines of communication open so your team keeps telling you what they are using.",low:"You do not have visibility into which AI tools your team is using informally. Shadow AI is almost certainly happening on your team right now. This is not a discipline problem, it is an information gap. Ask your team directly in your next one-on-one: what AI tools are you using that are not on the approved list? You need to know before your security or compliance team finds out first."}},LA_33_ES:{leaderSelf:{high:"You can measure the actual impact of AI on your team's outputs, not just track tool adoption. This outcome-level visibility is what separates AI leadership from AI theater. Use these metrics to build the case for deeper investment and to show your team that their effort is producing real results.",low:"You are tracking whether your team uses AI tools but cannot yet measure the impact on their actual outputs. This is the most common gap in AI leadership. Usage without outcomes is not a success metric. Identify one deliverable your team produces regularly and define what AI-assisted improvement looks like for that specific output. Then measure it."}},LA_34_ES:{leaderSelf:{high:"Your team has made the transition from individual AI experimentation to formally redesigned workflows. This is the inflection point where AI stops being a personal productivity tool and starts compounding at the team level. Document these workflows so they scale and survive personnel changes.",low:"Your team is still in the individual experimentation phase and has not yet redesigned any workflows around AI. Experimentation is necessary but it is not the destination. Pick one high-volume repeatable workflow this quarter and formally redesign it with AI built in as a required step, not an optional enhancement."}},LA_35_AV:{leaderSelf:{high:"You are comfortable delegating to AI even when you could do the work yourself. This is a genuine leadership behavior shift and one of the hardest ones to make. It signals that you are optimizing for leverage over control. Model this publicly so your team knows they have permission to do the same.",low:"You are reluctant to delegate to AI 
499when you know you could do the work well yourself. This is one of the most common identity barriers in AI leadership. The instinct to own the work is exactly what holds teams back from compounding AI returns. Start with one task this week that you are good at and hand it to AI anyway. The goal is not better output on that task. It is building the habit of letting go."}},LA_36_ES:{leaderSelf:{high:"You have clarity on accountability boundaries when AI informs your team's decisions. This clarity is essential and rare. Make it explicit for your team so they know exactly when they need to own a judgment call versus when they can rely on AI output.",low:"You are unclear about where accountability sits when your team uses AI to inform decisions. This ambiguity creates real risk. When an AI-assisted decision goes wrong, someone needs to own it. That person is always a human. Define this clearly for your team before you need it, not after something goes wrong."}},LA_37_AV:{leaderSelf:{high:"You can evaluate AI-assisted work quality even when you did not direct the AI yourself. This supervisory fluency is a critical leadership competency. Keep developing it by staying close to how your team is prompting and what outputs they are accepting without review.",low:"You are not confident evaluating AI-assisted work you did not direct yourself. This is a growing leadership gap as AI becomes embedded in more team outputs. You do not need to know how to prompt AI. You need to know what good output looks like and where AI typically fails. Build this by reviewing AI-assisted work with your team regularly and asking: how did you verify this?"}},LA_38_AV:{leaderSelf:{high:"You evaluate your team on outcomes, not effort or process. This is exactly the performance philosophy that AI-ready organizations need. It removes the disincentive to use AI efficiently and rewards the judgment and quality that humans uniquely contribute.",low:"You are still evaluating your team partly on effort, hours, or manual steps rather than purely on outcome quality and impact. This is one of the most powerful adoption blockers you can remove. If your team believes working faster with AI will make them look less hardworking, they will slow down deliberately. Shift your performance conversations explicitly to outcomes and make that shift visible."}},LA_39_ES:{leaderSelf:{high:"You are comfortable with team members who have greater AI fluency than you. This security is one of the most valuable leadership qualities in an AI transition. Leaders who need to be the most knowledgeable person in the room slow their teams down. Leaders who celebrate expertise above them accelerate everyone.",low:"You are uncomfortable when team members know more about AI than you do. This is worth examining honestly. The discomfort usually comes from a legitimate place but it creates a real problem: your team will sense it and self-censor their AI fluency to protect your comfort. The fastest path forward is naming this directly and giving your most AI-fluent team members explicit permission to lead."}},LA_40_ES:{leaderSelf:{high:"You actively give your most AI-capable team members the lead on AI initiatives. This distributed leadership model is how AI-ready organizations scale. You do not need to be the expert. You need to be the person who puts the right experts in front of the right opportunities.",low:"You are not yet actively giving team members the lead on AI initiatives where they outpace you. This may feel uncomfortable but the cost of holding back your most capable people is significant. Identify one AI initiative this month and explicitly hand it to the team member best positioned to lead it. Your job in that moment is to remove blockers, not to direct."}}};function Xm(e,t,r){var s,l;let n=e,i=VP[n];if(i||(n.startsWith("SIA_")?n=n.replace("SIA_","IA_"):n.startsWith("LA_")&&(n=n.replace("LA_","IA_")),i=VP[n]),!i)return null;const o=t>=4?"high":"low";if(r==="solo"){const A=(s=i.solo)==null?void 0:s[o];return A||(((l=i.individual)==null?void 0:l[o])??null)}const a=i[r];return a?a[o]??null:null}function Eme({label:e}
499){const r={Critical:{bg:"#FEF2F2",color:"#DC2626"},Developing:{bg:"#FFFBEB",color:"#D97706"},Strong:{bg:"#F0FDF4",color:"#16A34A"},Leading:{bg:"#EFF6FF",color:"#2563EB"}}[e];return c.jsx("span",{style:{backgroundColor:r.bg,color:r.color,borderRadius:"9999px",padding:"2px 10px",fontSize:"12px",fontWeight:600},children:e})}function E9({rows:e,title:t,subtitle:r,buttonLabel:n,interpretationSurface:i}){const[o,a]=S.useState(!1),s=[...e].sort((A,u)=>A.displayAvg-u.displayAvg),l={Critical:0,Developing:0,Strong:0,Leading:0};return s.forEach(A=>{l[br(A.displayAvg)]++}),c.jsxs("section",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:t}),c.jsx("p",{className:"mt-1 italic",style:{fontSize:"13px",color:"#6B7280"},children:r}),c.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:[s.length," items scored. ",l.Critical," Critical, ",l.Developing," Developing, ",l.Strong," Strong, ",l.Leading," Leading"]}),o?c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>a(!1),className:"mt-3 mb-3 rounded-md bg-[#FFC100] px-4 py-2 text-sm font-medium text-[#1A1918]",children:"Hide Details"}),c.jsx("p",{className:"mb-1 italic",style:{fontSize:"13px",color:"#6B7280"},children:"Questions are sorted from lowest to highest AI Readiness score. Start at the top for highest-leverage areas."}),c.jsx("p",{className:"mb-3 italic",style:{fontSize:"13px",color:"#6B7280"},children:"Note: Questions marked RC are reverse coded. For these questions a lower AI Readiness score means the challenge is more present. A higher score means it is being navigated well."}),c.jsx("div",{className:"overflow-hidden rounded-lg border border-[#E5E7EB]",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-[#E5E7EB] bg-[#F9FAFB]",children:[c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"Question"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"Dimension"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"AI Readiness Score"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground w-1/5"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"AI Readiness Zone"})]})}),c.jsx("tbody",{children:s.map(A=>{const u=A.displayAvg,d=A.rc?"transparent":u<2.5?"#FEF2F2":u<4?"#FFFBEB":u<5.3?"#F0FDF4":"#EFF6FF",h=A.rc?"#D1D5DB":u<2.5?"#FCA5A5":u<4?"#FCD34D":u<5.3?"#86EFAC":"#93C5FD",f=i||"leaderTeam",g=A.rc?qm(A.key,u,f):null,p=A.rc?null:Xm(A.key,u,f);return c.jsxs("tr",{className:"border-b border-[#E5E7EB] last:border-b-0",style:{backgroundColor:d},children:[c.jsxs("td",{className:"px-4 py-2 text-foreground",children:[c.jsx("span",{children:A.text}),A.rc&&c.jsx("span",{className:"ml-2 inline-flex items-center",style:{backgroundColor:"#F3F4F6",color:"#6B7280",fontSize:"11px",borderRadius:"4px",padding:"2px 5px"},children:"RC"}),g&&c.jsx("p",{className:"mt-1 text-xs leading-relaxed",style:{color:"#6B7280"},children:g}),p&&c.jsx("p",{className:"mt-1 text-xs leading-relaxed",style:{color:"#6B7280"},children:p})]}),c.jsx("td",{className:"px-4 py-2",children:c.jsx("span",{style:{color:"#6B7280",fontSize:"13px"},children:A.dim})}),c.jsx("td",{className:"px-4 py-2 font-semibold text-foreground",children:u.toFixed(1)}),c.jsx("td",{className:"px-4 py-2",children:c.jsx("div",{className:"h-2 w-full overflow-hidden rounded-full bg-[#E5E7EB]",children:c.jsx("div",{className:"h-full rounded-full",style:{width:`${(u-1)/5*100}%`,backgroundColor:h}})})}),c.jsx("td",{className:"px-4 py-2",children:c.jsx(Eme,{label:br(u)})})]},A.key)})})]})})]}):c.jsx("button",{onClick:()=>a(!0),className:"mt-3 rounded-md bg-[#FFC100] px-4 py-2 text-sm font-medium text-[#1A1918]",children:n})]})}var _me=Array.isArray,mo=_me,Sme=typeof Kv=="object"&&Kv&&Kv.Object===Object&&Kv,_9=Sme,Cme=_9,Ime=typeof self=="object"&&self&&self.Object===Object&&self,kme=Cme||Ime||Function("return this")(),Rs=kme,Fme=Rs,Nme=Fme.Symbol,tv=Nme,zP=tv,S9=Object.prototype,Tme=S9.hasOwnProperty,Ome=S9.toString,eg=zP?zP.toStringTag:void 0;function jme(e){var t=Tme.call(e,eg),r=e[eg];try{e[eg]=void 0;var n=!0}catch{}var i=Ome.call(e);return n&&(t?e[eg]=r:delete e[eg]),i}var Pme=jme,Lme=Object.prototype,Ume=Lme.toString;function Rme(e){return Ume.call(e)}var Dme=Rme,WP=tv,Qme=Pme,Mme=Dme,$me="[object Null]",Hme="[object Undef
499ined]",GP=WP?WP.toStringTag:void 0;function Kme(e){return e==null?e===void 0?Hme:$me:GP&&GP in Object(e)?Qme(e):Mme(e)}var Ml=Kme;function Vme(e){return e!=null&&typeof e=="object"}var $l=Vme,zme=Ml,Wme=$l,Gme="[object Symbol]";function Yme(e){return typeof e=="symbol"||Wme(e)&&zme(e)==Gme}var Zf=Yme,qme=mo,Xme=Zf,Jme=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zme=/^\w*$/;function eye(e,t){if(qme(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Xme(e)?!0:Zme.test(e)||!Jme.test(e)||t!=null&&e in Object(t)}var jF=eye;function tye(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var vc=tye;const ep=xr(vc);var rye=Ml,nye=vc,iye="[object AsyncFunction]",oye="[object Function]",aye="[object GeneratorFunction]",sye="[object Proxy]";function lye(e){if(!nye(e))return!1;var t=rye(e);return t==oye||t==aye||t==iye||t==sye}var PF=lye;const Wt=xr(PF);var Aye=Rs,cye=Aye["__core-js_shared__"],uye=cye,v_=uye,YP=function(){var e=/[^.]+$/.exec(v_&&v_.keys&&v_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dye(e){return!!YP&&YP in e}var hye=dye,fye=Function.prototype,pye=fye.toString;function gye(e){if(e!=null){try{return pye.call(e)}catch{}try{return e+""}catch{}}return""}var C9=gye,mye=PF,yye=hye,vye=vc,wye=C9,bye=/[\\^$.*+?()[\]{}|]/g,xye=/^\[object .+?Constructor\]$/,Bye=Function.prototype,Eye=Object.prototype,_ye=Bye.toString,Sye=Eye.hasOwnProperty,Cye=RegExp("^"+_ye.call(Sye).replace(bye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Iye(e){if(!vye(e)||yye(e))return!1;var t=mye(e)?Cye:xye;return t.test(wye(e))}var kye=Iye;function Fye(e,t){return e==null?void 0:e[t]}var Nye=Fye,Tye=kye,Oye=Nye;function jye(e,t){var r=Oye(e,t);return Tye(r)?r:void 0}var Yu=jye,Pye=Yu,Lye=Pye(Object,"create"),Xx=Lye,qP=Xx;function Uye(){this.__data__=qP?qP(null):{},this.size=0}var Rye=Uye;function Dye(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Qye=Dye,Mye=Xx,$ye="__lodash_hash_undefined__",Hye=Object.prototype,Kye=Hye.hasOwnProperty;function Vye(e){var t=this.__data__;if(Mye){var r=t[e];return r===$ye?void 0:r}return Kye.call(t,e)?t[e]:void 0}var zye=Vye,Wye=Xx,Gye=Object.prototype,Yye=Gye.hasOwnProperty;function qye(e){var t=this.__data__;return Wye?t[e]!==void 0:Yye.call(t,e)}var Xye=qye,Jye=Xx,Zye="__lodash_hash_undefined__";function eve(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Jye&&t===void 0?Zye:t,this}var tve=eve,rve=Rye,nve=Qye,ive=zye,ove=Xye,ave=tve;function tp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}tp.prototype.clear=rve;tp.prototype.delete=nve;tp.prototype.get=ive;tp.prototype.has=ove;tp.prototype.set=ave;var sve=tp;function lve(){this.__data__=[],this.size=0}var Ave=lve;function cve(e,t){return e===t||e!==e&&t!==t}var LF=cve,uve=LF;function dve(e,t){for(var r=e.length;r--;)if(uve(e[r][0],t))return r;return-1}var Jx=dve,hve=Jx,fve=Array.prototype,pve=fve.splice;function gve(e){var t=this.__data__,r=hve(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():pve.call(t,r,1),--this.size,!0}var mve=gve,yve=Jx;function vve(e){var t=this.__data__,r=yve(t,e);return r<0?void 0:t[r][1]}var wve=vve,bve=Jx;function xve(e){return bve(this.__data__,e)>-1}var Bve=xve,Eve=Jx;function _ve(e,t){var r=this.__data__,n=Eve(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Sve=_ve,Cve=Ave,Ive=mve,kve=wve,Fve=Bve,Nve=Sve;function rp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rp.prototype.clear=Cve;rp.prototype.delete=Ive;rp.prototype.get=kve;rp.prototype.has=Fve;rp.prototype.set=Nve;var Zx=rp,Tve=Yu,Ove=Rs,jve=Tve(Ove,"Map"),UF=jve,XP=sve,Pve=Zx,Lve=UF;function Uve(){this.size=0,this.__data__={hash:new XP,map:new(Lve||Pve),string:new XP}}var Rve=Uve;function Dve(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Qve=Dve,Mve=Qve;function $ve(e,t){var r=e.__data__;return Mve(t)?r[typeof t=="string"?"string":"hash"]:r.map}var e2=$ve,Hve=e2;function Kve(e){var t=Hve(this,e).delete(e);return this.size-=t?1:0,t}var Vve=Kve,zve=e2;function Wve(e){return zve(this,e).get(e)}var Gve=Wve,Yve=e2;function qve(e){return Yve(this,e).has(e)}var Xve=qve,Jve=e2;function Zve(e,t){var r=Jve(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var e0e=Zve,t0e=Rve,r0e=Vve,n0e=Gve,i0e=Xve,o0e=e0e;function np(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}np.prototype.clear=t0e;np.prototype.delete=r0e;np.prototype.get=n0e;np.prototype.has=i0e;np.prototype.set=o0e;var RF=np,I9=RF,a0e="Expected a function";function DF(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(a0e);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(DF.Cache||I9),r}DF.Cache=I9;var k9=DF;const s0e=xr(k9);var l0e=k9,A0e=500;function c0e(e){var t=l0e(e,function(n){return r.size===A0e&&r.clear(),n}
vendor: 6,545 bytes, lines 499-507
499),r=t.cache;return t}var u0e=c0e,d0e=u0e,h0e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f0e=/\\(\\)?/g,p0e=d0e(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(h0e,function(r,n,i,o){t.push(i?o.replace(f0e,"$1"):n||r)}),t}),g0e=p0e;function m0e(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var QF=m0e,JP=tv,y0e=QF,v0e=mo,w0e=Zf,b0e=1/0,ZP=JP?JP.prototype:void 0,eL=ZP?ZP.toString:void 0;function F9(e){if(typeof e=="string")return e;if(v0e(e))return y0e(e,F9)+"";if(w0e(e))return eL?eL.call(e):"";var t=e+"";return t=="0"&&1/e==-b0e?"-0":t}var x0e=F9,B0e=x0e;function E0e(e){return e==null?"":B0e(e)}var N9=E0e,_0e=mo,S0e=jF,C0e=g0e,I0e=N9;function k0e(e,t){return _0e(e)?e:S0e(e,t)?[e]:C0e(I0e(e))}var T9=k0e,F0e=Zf,N0e=1/0;function T0e(e){if(typeof e=="string"||F0e(e))return e;var t=e+"";return t=="0"&&1/e==-N0e?"-0":t}var t2=T0e,O0e=T9,j0e=t2;function P0e(e,t){t=O0e(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[j0e(t[r++])];return r&&r==n?e:void 0}var MF=P0e,L0e=MF;function U0e(e,t,r){var n=e==null?void 0:L0e(e,t);return n===void 0?r:n}var O9=U0e;const Qa=xr(O9);function R0e(e){return e==null}var D0e=R0e;const tr=xr(D0e);var Q0e=Ml,M0e=mo,$0e=$l,H0e="[object String]";function K0e(e){return typeof e=="string"||!M0e(e)&&$0e(e)&&Q0e(e)==H0e}var V0e=K0e;const rv=xr(V0e);var j9={exports:{}},Ir={};/**
500 * @license React
501 * react-is.production.min.js
502 *
503 * Copyright (c) Facebook, Inc. and its affiliates.
504 *
505 * This source code is licensed under the MIT license found in the
506 * LICENSE file in the root directory of this source tree.
507 */var $F=Symbol.for("react.element"),HF=Symbol.for("react.portal"),r2=Symbol.for("react.fragment"),n2=Symbol.for("react.strict_mode"),i2=Symbol.for("react.profiler"),o2=Symbol.for("react.provider"),a2=Symbol.for("react.context"),z0e=Symbol.for("react.server_context"),s2=Symbol.for("react.forward_ref"),l2=Symbol.for("react.suspense"),A2=Symbol.for("react.suspense_list"),c2=Symbol.for("react.memo"),u2=Symbol.for("react.lazy"),W0e=Symbol.for("react.offscreen"),P9;P9=Symbol.for("react.module.reference");function ma(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $F:switch(e=e.type,e){case r2:case i2:case n2:case l2:case A2:return e;default:switch(e=e&&e.$$typeof,e){case z0e:case a2:case s2:case u2:case c2:case o2:return e;default:return t}}case HF:return t}}}Ir.ContextConsumer=a2;Ir.ContextProvider=o2;Ir.Element=$F;Ir.ForwardRef=s2;Ir.Fragment=r2;Ir.Lazy=u2;Ir.Memo=c2;Ir.Portal=HF;Ir.Profiler=i2;Ir.StrictMode=n2;Ir.Suspense=l2;Ir.SuspenseList=A2;Ir.isAsyncMode=function(){return!1};Ir.isConcurrentMode=function(){return!1};Ir.isContextConsumer=function(e){return ma(e)===a2};Ir.isContextProvider=function(e){return ma(e)===o2};Ir.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$F};Ir.isForwardRef=function(e){return ma(e)===s2};Ir.isFragment=function(e){return ma(e)===r2};Ir.isLazy=function(e){return ma(e)===u2};Ir.isMemo=function(e){return ma(e)===c2};Ir.isPortal=function(e){return ma(e)===HF};Ir.isProfiler=function(e){return ma(e)===i2};Ir.isStrictMode=function(e){return ma(e)===n2};Ir.isSuspense=function(e){return ma(e)===l2};Ir.isSuspenseList=function(e){return ma(e)===A2};Ir.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===r2||e===i2||e===n2||e===l2||e===A2||e===W0e||typeof e=="object"&&e!==null&&(e.$$typeof===u2||e.$$typeof===c2||e.$$typeof===o2||e.$$typeof===a2||e.$$typeof===s2||e.$$typeof===P9||e.getModuleId!==void 0)};Ir.typeOf=ma;j9.exports=Ir;var G0e=j9.exports,Y0e=Ml,q0e=$l,X0e="[object Number]";function J0e(e){return typeof e=="number"||q0e(e)&&Y0e(e)==X0e}var L9=J0e;const Z0e=xr(L9);var ewe=L9;function twe(e){return ewe(e)&&e!=+e}var rwe=twe;const nv=xr(rwe);var ca=function(t){return t===0?0:t>0?1:-1},fu=function(t){return rv(t)&&t.indexOf("%")===t.length-1},ot=function(t){return Z0e(t)&&!nv(t)},qn=function(t){return ot(t)||rv(t)},nwe=0,d2=function(t){var r=++nwe;return"".concat(t||"").concat(r)},co=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ot(t)&&!rv(t))return n;var o;if(fu(t)){var a=t.indexOf("%");o=r*parseFloat(t.slice(0,a))/100}else o=+t;return nv(o)&&(o=n),i&&o>r&&(o=r),o},rh=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},iwe=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},yh=function(t,r){return ot(t)&&ot(r)?function(n){return t+n*(r-t)}:function(){return r}};function f5(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Qa(n,t))===r})}function p5(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function g5(e){"@babel/helpers - typeof";return g5=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},g5(e)}var owe=["viewBox","children"],awe=["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","colorRen
507dering","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"],tL=["points","pathLength"],w_={svg:owe,polygon:tL,polyline:tL},KF=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","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","onDrag
507Capture","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"],sb=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(S.isValidElement(t)&&(n=t.props),!ep(n))return null;var i={};return Object.keys(n).forEach(function(o){KF.includes(o)&&(i[o]=r||function(a){return n[o](n,a)})}),i},swe=function(t,r,n){return function(i){return t(r,n,i),null}},h2=function(t,r,n){if(!ep(t)||g5(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];KF.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=swe(a,r,n))}),i},lwe=["children"],Awe=["children"];function rL(e,t){if(e==null)return{};var r=cwe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cwe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var nL={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"},wl=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},iL=null,b_=null,VF=function e(t){if(t===iL&&Array.isArray(b_))return b_;var r=[];return S.Children.forEach(t,function(n){tr(n)||(G0e.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),b_=r,iL=t,r};function Is(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return wl(i)}):n=[wl(t)],VF(e).forEach(function(i){var o=Qa(i,"type.displayName")||Qa(i,"type.name");n.indexOf(o)!==-1&&r.push(i)}),r}function ea(e,t){var r=Is(e,t);return r&&r[0]}var oL=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!ot(n)||n<=0||!ot(i)||i<=0)},uwe=["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"],dwe=function(t){return t&&t.type&&rv(t.type)&&uwe.indexOf(t.type)>=0},hwe=function(t,r,n,i){var o,a=(o=w_==null?void 0:w_[i])!==null&&o!==void 0?o:[];return r.startsWith("data-")||!Wt(t)&&(i&&a.includes(r)||awe.includes(r))||n&&KF.includes(r)},Dt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(S.isValidElement(t)&&(i=t.props),!ep(i))return null;var o={};
vendor: 4,460 bytes, line 507
507return Object.keys(i).forEach(function(a){var s;hwe((s=i)===null||s===void 0?void 0:s[a],a,r,n)&&(o[a]=i[a])}),o},m5=function e(t,r){if(t===r)return!0;var n=S.Children.count(t);if(n!==S.Children.count(r))return!1;if(n===0)return!0;if(n===1)return aL(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=t[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!aL(o,a))return!1}return!0},aL=function(t,r){if(tr(t)&&tr(r))return!0;if(!tr(t)&&!tr(r)){var n=t.props||{},i=n.children,o=rL(n,lwe),a=r.props||{},s=a.children,l=rL(a,Awe);return i&&s?p5(o,l)&&m5(i,s):!i&&!s?p5(o,l):!1}return!1},sL=function(t,r){var n=[],i={};return VF(t).forEach(function(o,a){if(dwe(o))n.push(o);else if(o){var s=wl(o.type),l=r[s]||{},A=l.handler,u=l.once;if(A&&(!u||!i[s])){var d=A(o,s,a);n.push(d),i[s]=!0}}}),n},fwe=function(t){var r=t&&t.type;return r&&nL[r]?nL[r]:null},pwe=function(t,r){return VF(r).indexOf(t)},gwe=["children","width","height","viewBox","className","style","title","desc"];function y5(){return y5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y5.apply(this,arguments)}function mwe(e,t){if(e==null)return{};var r=ywe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ywe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function v5(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,l=e.desc,A=mwe(e,gwe),u=i||{width:r,height:n,x:0,y:0},d=er("recharts-surface",o);return oe.createElement("svg",y5({},Dt(A,!0,"svg"),{className:d,width:r,height:n,style:a,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),oe.createElement("title",null,s),oe.createElement("desc",null,l),t)}var vwe=["children","className"];function w5(){return w5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w5.apply(this,arguments)}function wwe(e,t){if(e==null)return{};var r=bwe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bwe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var en=oe.forwardRef(function(e,t){var r=e.children,n=e.className,i=wwe(e,vwe),o=er("recharts-layer",n);return oe.createElement("g",w5({className:o},Dt(i,!0),{ref:t}),r)}),bl=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o]};function xwe(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}var Bwe=xwe,Ewe=Bwe;function _we(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Ewe(e,t,r)}var Swe=_we,Cwe="\\ud800-\\udfff",Iwe="\\u0300-\\u036f",kwe="\\ufe20-\\ufe2f",Fwe="\\u20d0-\\u20ff",Nwe=Iwe+kwe+Fwe,Twe="\\ufe0e\\ufe0f",Owe="\\u200d",jwe=RegExp("["+Owe+Cwe+Nwe+Twe+"]");function Pwe(e){return jwe.test(e)}var U9=Pwe;function Lwe(e){return e.split("")}var Uwe=Lwe,R9="\\ud800-\\udfff",Rwe="\\u0300-\\u036f",Dwe="\\ufe20-\\ufe2f",Qwe="\\u20d0-\\u20ff",Mwe=Rwe+Dwe+Qwe,$we="\\ufe0e\\ufe0f",Hwe="["+R9+"]",b5="["+Mwe+"]",x5="\\ud83c[\\udffb-\\udfff]",Kwe="(?:"+b5+"|"+x5+")",D9="[^"+R9+"]",Q9="(?:\\ud83c[\\udde6-\\uddff]){2}",M9="[\\ud800-\\udbff][\\udc00-\\udfff]",Vwe="\\u200d",$9=Kwe+"?",H9="["+$we+"]?",zwe="(?:"+Vwe+"(?:"+[D9,Q9,M9].join("|")+")"+H9+$9+")*",Wwe=H9+$9+zwe,Gwe="(?:"+[D9+b5+"?",b5,Q9,M9,Hwe].join("|")+")",Ywe=RegExp(x5+"(?="+x5+")|"+Gwe+Wwe,"g");function qwe(e){return e.match(Ywe)||[]}var Xwe=qwe,Jwe=Uwe,Zwe=U9,e1e=Xwe;function t1e(e){return Zwe(e)?e1e(e):Jwe(e)}var r1e=t1e,n1e=Swe,i1e=U9,o1e=r1e,a1e=N9;function s1e(e){return function(t){t=a1e(t);var r=i1e(t)?o1e(t):void 0,n=r?r[0]:t.charAt(0),i=r?n1e(r,1).join(""):t.slice(1);return n[e]()+i}}var l1e=s1e,A1e=l1e,c1e=A1e("toUpperCase"),u1e=c1e;const f2=xr(u1e);function Hr(e){return function(){return e}}
507const K9=Math.cos,lb=Math.sin,Ga=Math.sqrt,Ab=Math.PI,p2=2*Ab,B5=Math.PI,E5=2*B5,Xc=1e-6,d1e=E5-Xc;function V9(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function h1e(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return V9;const r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;i<o;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class f1e{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?V9:h1e(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,o,a){this._append`C${+t},${+r},${+n},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,r,n,i,o){if(t=+t,r=+r,n=+n,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=n-t,A=i-r,u=a-t,d=s-r,h=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Xc)if(!(Math.abs(d*l-A*u)>Xc)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let f=n-a,g=i-s,p=l*l+A*A,v=f*f+g*g,m=Math.sqrt(p),w=Math.sqrt(h),b=o*Math.tan((B5-Math.acos((p+h-v)/(2*m*w)))/2),E=b/w,B=b/m;Math.abs(E-1)>Xc&&this._append`L${t+E*u},${r+E*d}`,this._append`A${o},${o},0,0,${+(d*f>u*g)},${this._x1=t+B*l},${this._y1=r+B*A}`}}arc(t,r,n,i,o,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),A=t+s,u=r+l,d=1^a,h=a?i-o:o-i;this._x1===null?this._append`M${A},${u}`:(Math.abs(this._x1-A)>Xc||Math.abs(this._y1-u)>Xc)&&this._append`L${A},${u}`,n&&(h<0&&(h=h%E5+E5),h>d1e?this._append`A${n},${n},0,1,${d},${t-s},${r-l}A${n},${n},0,1,${d},${this._x1=A},${this._y1=u}`:h>Xc&&this._append`A${n},${n},0,${+(h>=B5)},${d},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function zF(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new f1e(t)}function WF(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function z9(e){this._context=e}z9.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 g2(e){return new z9(e)}function W9(e){return e[0]}function G9(e){return e[1]}function Y9(e,t){var r=Hr(!0),n=null,i=g2,o=null,a=zF(s);e=typeof e=="function"?e:e===void 0?W9:Hr(e),t=typeof t=="function"?t:t===void 0?G9:Hr(t);function s(l){var A,u=(l=WF(l)).length,d,h=!1,f;for(n==null&&(o=i(f=a())),A=0;A<=u;++A)!(A<u&&r(d=l[A],A,l))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(d,A,l),+t(d,A,l));if(f)return o=null,f+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Hr(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Hr(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Hr(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(o=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=o=null:o=i(n=l),s):n},s}function nw(e,t,r){var n=null,i=Hr(!0),o=null,a=g2,s=null,l=zF(A);e=typeof e=="function"?e:e===void 0?W9:Hr(+e),t=typeof t=="function"?t:Hr(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?G9:Hr(+r);function A(d){var h,f,g,p=(d=WF(d)).length,v,m=!1,w,b=new Array(p),E=new Array(p);for(o==null&&(s=a(w=l())),h=0;h<=p;++h){if(!(h<p&&i(v=d[h],h,d))===m)if(m=!m)f=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=h-1;g>=f;--g)s.point(b[g],E[g]);s.lineEnd(),s.areaEnd()}m&&(b[h]=+e(v,h,d),E[h]=+t(v,h,d),s.point(n?+n(v,h,d):b[h],r?+r(v,h,d):E[h]))}if(w)return s=null,w+""||null}function u(){return Y9().defined(i).curve(a).context(o)}return A.x=function(d){return arguments.length?(e=typeof d=="function"?d:Hr(+d),n=null,A):e},A.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Hr(+d),A):e},A.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Hr(+d),A):n},A.y=function(d){return arguments.length?(t=typeof d=="function"?d:Hr(+d),r=null,A):t},A.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Hr(+d),A):t},A.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Hr(+d),A):r},A.lineX0=A.lineY0=function(){return u().x(e).y(t)},A.lineY1=function(){return u().x(e).y(r)},A.lineX1=function(){return u().x(n).y(t)},A.defined=function(d){return arguments.length?(i=typeof d=="function"?d:Hr(!!d),A):i},A.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),A):a},A.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),A):o},A}class q9{constructor(t,r){this._context=t,this._x=r}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}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function p1e(e){return new q9(e,!0)}function g1e(e){return new q9(e,!1)}const GF={draw(e,t){const r=Ga(t/Ab);e.moveTo(r,0),e.arc(0,0,r,0,p2)}},m1e={draw(e,t){const r=Ga(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},X9=Ga(1/3),y1e=X9*2,v1e={draw(e,t){const r=Ga(t/y1e),n=r*X9;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},w1e={draw(e,t){const r=Ga(t),n=-r/2;e.rect(n,n,r,r)}},b1e=.8908130915292852,J9=lb(Ab/10)/lb(7*Ab/10),x1e=lb(p2/10)*J9,B1e=-K9(p2/10)*J9,E1e={draw(e,t){const r=Ga(t*b1e),n=x1e*r,
vendor: 7,390 bytes, line 507
507i=B1e*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const a=p2*o/5,s=K9(a),l=lb(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},x_=Ga(3),_1e={draw(e,t){const r=-Ga(t/(x_*3));e.moveTo(0,r*2),e.lineTo(-x_*r,-r),e.lineTo(x_*r,-r),e.closePath()}},Yo=-.5,qo=Ga(3)/2,_5=1/Ga(12),S1e=(_5/2+1)*3,C1e={draw(e,t){const r=Ga(t/S1e),n=r/2,i=r*_5,o=n,a=r*_5+r,s=-o,l=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Yo*n-qo*i,qo*n+Yo*i),e.lineTo(Yo*o-qo*a,qo*o+Yo*a),e.lineTo(Yo*s-qo*l,qo*s+Yo*l),e.lineTo(Yo*n+qo*i,Yo*i-qo*n),e.lineTo(Yo*o+qo*a,Yo*a-qo*o),e.lineTo(Yo*s+qo*l,Yo*l-qo*s),e.closePath()}};function I1e(e,t){let r=null,n=zF(i);e=typeof e=="function"?e:Hr(e||GF),t=typeof t=="function"?t:Hr(t===void 0?64:+t);function i(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Hr(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Hr(+o),i):t},i.context=function(o){return arguments.length?(r=o??null,i):r},i}function cb(){}function ub(e,t,r){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+r)/6)}function Z9(e){this._context=e}Z9.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:ub(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:ub(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function k1e(e){return new Z9(e)}function eK(e){this._context=e}eK.prototype={areaStart:cb,areaEnd:cb,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:ub(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function F1e(e){return new eK(e)}function tK(e){this._context=e}tK.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ub(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function N1e(e){return new tK(e)}function rK(e){this._context=e}rK.prototype={areaStart:cb,areaEnd:cb,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 T1e(e){return new rK(e)}function lL(e){return e<0?-1:1}function AL(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),s=(o*i+a*n)/(n+i);return(lL(o)+lL(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function cL(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function B_(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function db(e){this._context=e}db.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:B_(this,this._t0,cL(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 r=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,B_(this,cL(this,r=AL(this,e,t)),r);break;default:B_(this,this._t0,r=AL(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function nK(e){this._context=new iK(e)}(nK.prototype=Object.create(db.prototype)).point=function(e,t){db.prototype.point.call(this,t,e)};function iK(e){this._context=e}iK.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,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function O1e(e){return new db(e)}function j1e(e){return new nK(e)}function oK(e){this._context=e}oK.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=uL(e),i=uL(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&r===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 uL(e){var t,r=e.length-1,n,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function P1e(e){return new oK(e)}function m2(e,t){this._context=e,this._t=t}m2.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;
vendor: 9,326 bytes, lines 507-510
507default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function L1e(e){return new m2(e,.5)}function U1e(e){return new m2(e,0)}function R1e(e){return new m2(e,1)}function ff(e,t){if((a=e.length)>1)for(var r=1,n,i,o=e[t[0]],a,s=o.length;r<a;++r)for(i=o,o=e[t[r]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function S5(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function D1e(e,t){return e[t]}function Q1e(e){const t=[];return t.key=e,t}function M1e(){var e=Hr([]),t=S5,r=ff,n=D1e;function i(o){var a=Array.from(e.apply(this,arguments),Q1e),s,l=a.length,A=-1,u;for(const d of o)for(s=0,++A;s<l;++s)(a[s][A]=[0,+n(d,a[s].key,A,o)]).data=d;for(s=0,u=WF(t(a));s<l;++s)a[u[s]].index=s;return r(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Hr(Array.from(o)),i):e},i.value=function(o){return arguments.length?(n=typeof o=="function"?o:Hr(+o),i):n},i.order=function(o){return arguments.length?(t=o==null?S5:typeof o=="function"?o:Hr(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(r=o??ff,i):r},i}function $1e(e,t){if((n=e.length)>0){for(var r,n,i=0,o=e[0].length,a;i<o;++i){for(a=r=0;r<n;++r)a+=e[r][i][1]||0;if(a)for(r=0;r<n;++r)e[r][i][1]/=a}ff(e,t)}}function H1e(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,o=n.length;r<o;++r){for(var a=0,s=0;a<i;++a)s+=e[a][r][1]||0;n[r][1]+=n[r][0]=-s/2}ff(e,t)}}function K1e(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,o,a;n<o;++n){for(var s=0,l=0,A=0;s<a;++s){for(var u=e[t[s]],d=u[n][1]||0,h=u[n-1][1]||0,f=(d-h)/2,g=0;g<s;++g){var p=e[t[g]],v=p[n][1]||0,m=p[n-1][1]||0;f+=v-m}l+=d,A+=f*d}i[n-1][1]+=i[n-1][0]=r,l&&(r-=A/l)}i[n-1][1]+=i[n-1][0]=r,ff(e,t)}}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)}var V1e=["type","size","sizeType"];function C5(){return C5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C5.apply(this,arguments)}function dL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dL(Object(r),!0).forEach(function(n){z1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z1e(e,t,r){return t=W1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W1e(e){var t=G1e(e,"string");return Jm(t)=="symbol"?t:t+""}function G1e(e,t){if(Jm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Jm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y1e(e,t){if(e==null)return{};var r=q1e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function q1e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var aK={symbolCircle:GF,symbolCross:m1e,symbolDiamond:v1e,symbolSquare:w1e,symbolStar:E1e,symbolTriangle:_1e,symbolWye:C1e},X1e=Math.PI/180,J1e=function(t){var r="symbol".concat(f2(t));return aK[r]||GF},Z1e=function(t,r,n){if(r==="area")return t;switch(n){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*X1e;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}},ebe=function(t,r){aK["symbol".concat(f2(t))]=r},YF=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,l=Y1e(t,V1e),A=hL(hL({},l),{},{type:n,size:o,sizeType:s}),u=function(){var v=J1e(n),m=I1e().type(v).size(Z1e(o,s,n));return m()},d=A.className,h=A.cx,f=A.cy,g=Dt(A,!0);return h===+h&&f===+f&&o===+o?oe.createElement("path",C5({},g,{className:er("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(f,")"),d:u()})):null};YF.registerSymbol=ebe;function pf(e){"@babel/helpers - typeof";return pf=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},pf(e)}function I5(){return I5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},I5.apply(this,arguments)}function fL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tbe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fL(Object(r),!0).forEach(function(n){Zm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nbe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lK(n.key),n)}}function ibe(e,t,r){return t&&nbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function obe(e,t,r){return t=hb(t),abe(e,sK()?Reflect.construct(t,r||[],hb(e).constructor):t.apply(e,r))}function abe(e,t){if(t&&(pf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sbe(e)}function sbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sK=function(){return!!e})()}function hb(e){return hb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hb(e)}function lbe(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&&k5(e,t)}function k5(e,t){return k5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},k5(e,t)}function Zm(e,t,r){return t=lK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lK(e){var t=Abe(e,"string");return pf(t)=="symbol"?t:t+""}function Abe(e,t){if(pf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xo=32,qF=function(e){function t(){return rbe(this,t),obe(this,t,arguments)}return lbe(t,e),ibe(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,o=Xo/2,a=Xo/6,s=Xo/3,l=n.inactive?i:n.color;if(n.type==="plainline")return oe.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:o,x2:Xo,y2:o,className:"recharts-legend-icon"});if(n.type==="line")return oe.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(s,`
508            A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,`
509            H`).concat(Xo,"M").concat(2*s,",").concat(o,`
510            A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(n.type==="rect")return oe.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Xo/8,"h").concat(Xo,"v").concat(Xo*3/4,"h").concat(-Xo,"z"),className:"recharts-legend-icon"});if(oe.isValidElement(n.legendIcon)){var A=tbe({},n);return delete A.legendIcon,oe.cloneElement(n.legendIcon,A)}return oe.createElement(YF,{fill:l,cx:o,cy:o,size:Xo,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,l=i.formatter,A=i.inactiveColor,u={x:0,y:0,width:Xo,height:Xo},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};
vendor: 5,878 bytes, line 510
510return o.map(function(f,g){var p=f.formatter||l,v=er(Zm(Zm({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",f.inactive));if(f.type==="none")return null;var m=Wt(f.value)?null:f.value;bl(!Wt(f.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 w=f.inactive?A:f.color;return oe.createElement("li",I5({className:v,style:d,key:"legend-item-".concat(g)},h2(n.props,f,g)),oe.createElement(v5,{width:a,height:a,viewBox:u,style:h},n.renderIcon(f)),oe.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},p?p(m,f,g):m))})}},{key:"render",value:function(){var n=this.props,i=n.payload,o=n.layout,a=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return oe.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(S.PureComponent);Zm(qF,"displayName","Legend");Zm(qF,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var cbe=Zx;function ube(){this.__data__=new cbe,this.size=0}var dbe=ube;function hbe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var fbe=hbe;function pbe(e){return this.__data__.get(e)}var gbe=pbe;function mbe(e){return this.__data__.has(e)}var ybe=mbe,vbe=Zx,wbe=UF,bbe=RF,xbe=200;function Bbe(e,t){var r=this.__data__;if(r instanceof vbe){var n=r.__data__;if(!wbe||n.length<xbe-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new bbe(n)}return r.set(e,t),this.size=r.size,this}var Ebe=Bbe,_be=Zx,Sbe=dbe,Cbe=fbe,Ibe=gbe,kbe=ybe,Fbe=Ebe;function ip(e){var t=this.__data__=new _be(e);this.size=t.size}ip.prototype.clear=Sbe;ip.prototype.delete=Cbe;ip.prototype.get=Ibe;ip.prototype.has=kbe;ip.prototype.set=Fbe;var AK=ip,Nbe="__lodash_hash_undefined__";function Tbe(e){return this.__data__.set(e,Nbe),this}var Obe=Tbe;function jbe(e){return this.__data__.has(e)}var Pbe=jbe,Lbe=RF,Ube=Obe,Rbe=Pbe;function fb(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Lbe;++t<r;)this.add(e[t])}fb.prototype.add=fb.prototype.push=Ube;fb.prototype.has=Rbe;var cK=fb;function Dbe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var uK=Dbe;function Qbe(e,t){return e.has(t)}var dK=Qbe,Mbe=cK,$be=uK,Hbe=dK,Kbe=1,Vbe=2;function zbe(e,t,r,n,i,o){var a=r&Kbe,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var A=o.get(e),u=o.get(t);if(A&&u)return A==t&&u==e;var d=-1,h=!0,f=r&Vbe?new Mbe:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var g=e[d],p=t[d];if(n)var v=a?n(p,g,d,t,e,o):n(g,p,d,e,t,o);if(v!==void 0){if(v)continue;h=!1;break}if(f){if(!$be(t,function(m,w){if(!Hbe(f,w)&&(g===m||i(g,m,r,n,o)))return f.push(w)})){h=!1;break}}else if(!(g===p||i(g,p,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}var hK=zbe,Wbe=Rs,Gbe=Wbe.Uint8Array,Ybe=Gbe;function qbe(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var Xbe=qbe;function Jbe(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var XF=Jbe,pL=tv,gL=Ybe,Zbe=LF,exe=hK,txe=Xbe,rxe=XF,nxe=1,ixe=2,oxe="[object Boolean]",axe="[object Date]",sxe="[object Error]",lxe="[object Map]",Axe="[object Number]",cxe="[object RegExp]",uxe="[object Set]",dxe="[object String]",hxe="[object Symbol]",fxe="[object ArrayBuffer]",pxe="[object DataView]",mL=pL?pL.prototype:void 0,E_=mL?mL.valueOf:void 0;function gxe(e,t,r,n,i,o,a){switch(r){case pxe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fxe:return!(e.byteLength!=t.byteLength||!o(new gL(e),new gL(t)));case oxe:case axe:case Axe:return Zbe(+e,+t);case sxe:return e.name==t.name&&e.message==t.message;case cxe:case dxe:return e==t+"";case lxe:var s=txe;case uxe:var l=n&nxe;if(s||(s=rxe),e.size!=t.size&&!l)return!1;var A=a.get(e);if(A)return A==t;n|=ixe,a.set(e,t);var u=exe(s(e),s(t),n,i,o,a);return a.delete(e),u;case hxe:if(E_)return E_.call(e)==E_.call(t)}return!1}var mxe=gxe;function yxe(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var fK=yxe,vxe=fK,wxe=mo;function bxe(e,t,r){var n=t(e);return wxe(e)?n:vxe(n,r(e))}var xxe=bxe;function Bxe(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var Exe=Bxe;function _xe(){return[]}var Sxe=_xe,Cxe=Exe,Ixe=Sxe,kxe=Object.prototype,Fxe=kxe.propertyIsEnumerable,yL=Object.getOwnPropertySymbols,Nxe=yL?function(e){return e==null?[]:(e=Object(e),Cxe(yL(e),function(t){return Fxe.call(e,t)}))}:Ixe,Txe=Nxe;function Oxe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var jxe=Oxe,Pxe=Ml,Lxe=$l,Uxe="[object Arguments]";function Rxe(e){return Lxe(e)&&Pxe(e)==Uxe}var Dxe=Rxe,vL=Dxe,Qxe=$l,pK=Object.prototype,Mxe=pK.hasOwnProperty,$xe=pK.propertyIsEnumerable,Hxe=vL(function(){return arguments}())?vL:function(e){return Qxe(e)&&Mxe.call(e,"callee")&&!$xe.call(e,"callee")},JF=Hxe,pb={exports:{}};function Kxe(){return!1}var Vxe=Kxe;pb.exports;(function(e,t){var r=Rs,n=Vxe,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,A=l||n;e.exports=A})(pb,pb.exports);var gK=pb.exports,zxe=9007199254740991,Wxe=/^(?:0|[1-9]\d*)$/;function Gxe(e,t){var r=typeof e;return t=t??zxe,!!t&&(r=="number"||r!="symbol"&&Wxe.test(e))&&e>-1&&e%1==0&&e<t}var ZF=Gxe,Yxe=9007199254740991;function qxe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yxe}var eN=qxe,Xxe=Ml,Jxe=eN,Zxe=$l,e2e="[object Arguments]",t2e="[object Array]",r2e="[object Boolean]",n2e="[object Date]",i2e="[object Error]",o2e="[object Function]",a2e="[object Map]",s2e="[object Number]",l2e="[object Object]",A2e="[object RegExp]",c2e="[object Set]",u2e="[object String]",d2e="[object WeakMap]",h2e="[object ArrayBuffer]",f2e="[object DataView]",p2e="[object Float32Array]",g2e="[object Float64Array
510]",m2e="[object Int8Array]",y2e="[object Int16Array]",v2e="[object Int32Array]",w2e="[object Uint8Array]",b2e="[object Uint8ClampedArray]",x2e="[object Uint16Array]",B2e="[object Uint32Array]",Xr={};Xr[p2e]=Xr[g2e]=Xr[m2e]=Xr[y2e]=Xr[v2e]=Xr[w2e]=Xr[b2e]=Xr[x2e]=Xr[B2e]=!0;Xr[e2e]=Xr[t2e]=Xr[h2e]=Xr[r2e]=Xr[f2e]=Xr[n2e]=Xr[i2e]=Xr[o2e]=Xr[a2e]=Xr[s2e]=Xr[l2e]=Xr[A2e]=Xr[c2e]=Xr[u2e]=Xr[d2e]=!1;function E2e(e){return Zxe(e)&&Jxe(e.length)&&!!Xr[Xxe(e)]}var _2e=E2e;function S2e(e){return function(t){return e(t)}}var mK=S2e,gb={exports:{}};gb.exports;(function(e,t){var r=_9,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(gb,gb.exports);var C2e=gb.exports,I2e=_2e,k2e=mK,wL=C2e,bL=wL&&wL.isTypedArray,F2e=bL?k2e(bL):I2e,yK=F2e,N2e=jxe,T2e=JF,O2e=mo,j2e=gK,P2e=ZF,L2e=yK,U2e=Object.prototype,R2e=U2e.hasOwnProperty;function D2e(e,t){var r=O2e(e),n=!r&&T2e(e),i=!r&&!n&&j2e(e),o=!r&&!n&&!i&&L2e(e),a=r||n||i||o,s=a?N2e(e.length,String):[],l=s.length;for(var A in e)(t||R2e.call(e,A))&&!(a&&(A=="length"||i&&(A=="offset"||A=="parent")||o&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||P2e(A,l)))&&s.push(A);return s}var Q2e=D2e,M2e=Object.prototype;function $2e(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||M2e;return e===r}var H2e=$2e;function K2e(e,t){return function(r){return e(t(r))}}var vK=K2e,V2e=vK,z2e=V2e(Object.keys,Object),W2e=z2e,G2e=H2e,Y2e=W2e,q2e=Object.prototype,X2e=q2e.hasOwnProperty;function J2e(e){if(!G2e(e))return Y2e(e);var t=[];for(var r in Object(e))X2e.call(e,r)&&r!="constructor"&&t.push(r);return t}var Z2e=J2e,eBe=PF,tBe=eN;function rBe(e){return e!=null&&tBe(e.length)&&!eBe(e)}var y2=rBe,nBe=Q2e,iBe=Z2e,oBe=y2;function aBe(e){return oBe(e)?nBe(e):iBe(e)}var tN=aBe,sBe=xxe,lBe=Txe,ABe=tN;function cBe(e){return sBe(e,ABe,lBe)}var uBe=cBe,xL=uBe,dBe=1,hBe=Object.prototype,fBe=hBe.hasOwnProperty;function pBe(e,t,r,n,i,o){var a=r&dBe,s=xL(e),l=s.length,A=xL(t),u=A.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var h=s[d];if(!(a?h in t:fBe.call(t,h)))return!1}var f=o.get(e),g=o.get(t);if(f&&g)return f==t&&g==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++d<l;){h=s[d];var m=e[h],w=t[h];if(n)var b=a?n(w,m,h,t,e,o):n(m,w,h,e,t,o);if(!(b===void 0?m===w||i(m,w,r,n,o):b)){p=!1;break}v||(v=h=="constructor")}if(p&&!v){var E=e.constructor,B=t.constructor;E!=B&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof B=="function"&&B instanceof B)&&(p=!1)}return o.delete(e),o.delete(t),p}var gBe=pBe,mBe=Yu,yBe=Rs,vBe=mBe(yBe,"DataView"),wBe=vBe,bBe=Yu,xBe=Rs,BBe=bBe(xBe,"Promise"),EBe=BBe,_Be=Yu,SBe=Rs,CBe=_Be(SBe,"Set"),wK=CBe,IBe=Yu,kBe=Rs,FBe=IBe(kBe,"WeakMap"),NBe=FBe,F5=wBe,N5=UF,T5=EBe,O5=wK,j5=NBe,bK=Ml,op=C9,BL="[object Map]",TBe="[object Object]",EL="[object Promise]",_L="[object Set]",SL="[object WeakMap]",CL="[object DataView]",OBe=op(F5),jBe=op(N5),PBe=op(T5),LBe=op(O5),UBe=op(j5),Jc=bK;(F5&&Jc(new F5(new ArrayBuffer(1)))!=CL||N5&&Jc(new N5)!=BL||T5&&Jc(T5.resolve())!=EL||O5&&Jc(new O5)!=_L||j5&&Jc(new j5)!=SL)&&(Jc=function(e){var t=bK(e),r=t==TBe?e.constructor:void 0,n=r?op(r):"";if(n)switch(n){case OBe:return CL;case jBe:return BL;case PBe:return EL;case LBe:return _L;case UBe:return SL}return t});var RBe=Jc,__=AK,DBe=hK,QBe=mxe,MBe=gBe,IL=RBe,kL=mo,FL=gK,$Be=yK,HBe=1,NL="[object Arguments]",TL="[object Array]",iw="[object Object]",KBe=Object.prototype,OL=KBe.hasOwnProperty;function VBe(e,t,r,n,i,o){var a=kL(e),s=kL(t),l=a?TL:IL(e),A=s?TL:IL(t);l=l==NL?iw:l,A=A==NL?iw:A;var u=l==iw,d=A==iw,h=l==A;if(h&&FL(e)){if(!FL(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new __),a||$Be(e)?DBe(e,t,r,n,i,o):QBe(e,t,l,r,n,i,o);if(!(r&HBe)){var f=u&&OL.call(e,"__wrapped__"),g=d&&OL.call(t,"__wrapped__");
vendor: 4,114 bytes, line 510
510if(f||g){var p=f?e.value():e,v=g?t.value():t;return o||(o=new __),i(p,v,r,n,o)}}return h?(o||(o=new __),MBe(e,t,r,n,i,o)):!1}var zBe=VBe,WBe=zBe,jL=$l;function xK(e,t,r,n,i){return e===t?!0:e==null||t==null||!jL(e)&&!jL(t)?e!==e&&t!==t:WBe(e,t,r,n,xK,i)}var rN=xK,GBe=AK,YBe=rN,qBe=1,XBe=2;function JBe(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var l=s[0],A=e[l],u=s[1];if(a&&s[2]){if(A===void 0&&!(l in e))return!1}else{var d=new GBe;if(n)var h=n(A,u,l,e,t,d);if(!(h===void 0?YBe(u,A,qBe|XBe,n,d):h))return!1}}return!0}var ZBe=JBe,eEe=vc;function tEe(e){return e===e&&!eEe(e)}var BK=tEe,rEe=BK,nEe=tN;function iEe(e){for(var t=nEe(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,rEe(i)]}return t}var oEe=iEe;function aEe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var EK=aEe,sEe=ZBe,lEe=oEe,AEe=EK;function cEe(e){var t=lEe(e);return t.length==1&&t[0][2]?AEe(t[0][0],t[0][1]):function(r){return r===e||sEe(r,e,t)}}var uEe=cEe;function dEe(e,t){return e!=null&&t in Object(e)}var hEe=dEe,fEe=T9,pEe=JF,gEe=mo,mEe=ZF,yEe=eN,vEe=t2;function wEe(e,t,r){t=fEe(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=vEe(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&yEe(i)&&mEe(a,i)&&(gEe(e)||pEe(e)))}var bEe=wEe,xEe=hEe,BEe=bEe;function EEe(e,t){return e!=null&&BEe(e,t,xEe)}var _Ee=EEe,SEe=rN,CEe=O9,IEe=_Ee,kEe=jF,FEe=BK,NEe=EK,TEe=t2,OEe=1,jEe=2;function PEe(e,t){return kEe(e)&&FEe(t)?NEe(TEe(e),t):function(r){var n=CEe(r,e);return n===void 0&&n===t?IEe(r,e):SEe(t,n,OEe|jEe)}}var LEe=PEe;function UEe(e){return e}var ap=UEe;function REe(e){return function(t){return t==null?void 0:t[e]}}var DEe=REe,QEe=MF;function MEe(e){return function(t){return QEe(t,e)}}var $Ee=MEe,HEe=DEe,KEe=$Ee,VEe=jF,zEe=t2;function WEe(e){return VEe(e)?HEe(zEe(e)):KEe(e)}var GEe=WEe,YEe=uEe,qEe=LEe,XEe=ap,JEe=mo,ZEe=GEe;function e_e(e){return typeof e=="function"?e:e==null?XEe:typeof e=="object"?JEe(e)?qEe(e[0],e[1]):YEe(e):ZEe(e)}var wc=e_e;function t_e(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var r_e=t_e;function n_e(e){return e!==e}var i_e=n_e;function o_e(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var a_e=o_e,s_e=r_e,l_e=i_e,A_e=a_e;function c_e(e,t,r){return t===t?A_e(e,t,r):s_e(e,l_e,r)}var u_e=c_e,d_e=u_e;function h_e(e,t){var r=e==null?0:e.length;return!!r&&d_e(e,t,0)>-1}var f_e=h_e;function p_e(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var g_e=p_e;function m_e(){}var y_e=m_e,S_=wK,v_e=y_e,w_e=XF,b_e=1/0,x_e=S_&&1/w_e(new S_([,-0]))[1]==b_e?function(e){return new S_(e)}:v_e,B_e=x_e,E_e=cK,__e=f_e,S_e=g_e,C_e=dK,I_e=B_e,k_e=XF,F_e=200;function N_e(e,t,r){var n=-1,i=__e,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=S_e;else if(o>=F_e){var A=t?null:I_e(e);if(A)return k_e(A);a=!1,i=C_e,l=new E_e}else l=t?[]:s;e:for(;++n<o;){var u=e[n],d=t?t(u):u;if(u=r||u!==0?u:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,r)||(l!==s&&l.push(d),s.push(u))}return s}var T_e=N_e,O_e=wc,j_e=T_e;function P_e(e,t){return e&&e.length?j_e(e,O_e(t)):[]}var L_e=P_e;const PL=xr(L_e);function _K(e,t,r){return t===!0?PL(e,r):Wt(t)?PL(e,t):e}function gf(e){"@babel/helpers - typeof";return gf=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},gf(e)}var U_e=["ref"];function LL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LL(Object(r),!0).forEach(function(n){v2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LL(Object(r)).forEac
vendor: 4,286 bytes, line 510
510h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CK(n.key),n)}}function D_e(e,t,r){return t&&UL(e.prototype,t),r&&UL(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q_e(e,t,r){return t=mb(t),M_e(e,SK()?Reflect.construct(t,r||[],mb(e).constructor):t.apply(e,r))}function M_e(e,t){if(t&&(gf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $_e(e)}function $_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SK=function(){return!!e})()}function mb(e){return mb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mb(e)}function H_e(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&&P5(e,t)}function P5(e,t){return P5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},P5(e,t)}function v2(e,t,r){return t=CK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CK(e){var t=K_e(e,"string");return gf(t)=="symbol"?t:t+""}function K_e(e,t){if(gf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V_e(e,t){if(e==null)return{};var r=z_e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function z_e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function W_e(e){return e.value}function G_e(e,t){if(oe.isValidElement(e))return oe.cloneElement(e,t);if(typeof e=="function")return oe.createElement(e,t);t.ref;var r=V_e(t,U_e);return oe.createElement(qF,r)}var RL=1,Qh=function(e){function t(){var r;R_e(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=Q_e(this,t,[].concat(i)),v2(r,"lastBoundingBox",{width:-1,height:-1}),r}return H_e(t,e),D_e(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>RL||Math.abs(i.height-this.lastBoundingBox.height)>RL)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?tl({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,l=i.margin,A=i.chartWidth,u=i.chartHeight,d,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(a==="center"&&o==="vertical"){var f=this.getBBoxSnapshot();d={left:((A||0)-f.width)/2}}else d=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var g=this.getBBoxSnapsh
510ot();h={top:((u||0)-g.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return tl(tl({},d),h)}},{key:"render",value:function(){var n=this,i=this.props,o=i.content,a=i.width,s=i.height,l=i.wrapperStyle,A=i.payloadUniqBy,u=i.payload,d=tl(tl({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return oe.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(f){n.wrapperNode=f}},G_e(o,tl(tl({},this.props),{},{payload:_K(u,A,W_e)})))}}],[{key:"getWithHeight",value:function(n,i){var o=tl(tl({},this.defaultProps),n.props),a=o.layout;return a==="vertical"&&ot(n.props.height)?{height:n.props.height}:a==="horizontal"?{width:n.props.width||i}:null}}])}(S.PureComponent);v2(Qh,"displayName","Legend");v2(Qh,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var DL=tv,Y_e=JF,q_e=mo,QL=DL?DL.isConcatSpreadable:void 0;function X_e(e){return q_e(e)||Y_e(e)||!!(QL&&e&&e[QL])}var J_e=X_e,Z_e=fK,eSe=J_e;function IK(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=eSe),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?IK(s,t-1,r,n,i):Z_e(i,s):n||(i[i.length]=s)}return i}var kK=IK;function tSe(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(r(o[l],l,o)===!1)break}return t}}var rSe=tSe,nSe=rSe,iSe=nSe(),oSe=iSe,aSe=oSe,sSe=tN;function lSe(e,t){return e&&aSe(e,t,sSe)}var FK=lSe,ASe=y2;function cSe(e,t){return function(r,n){if(r==null)return r;if(!ASe(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var uSe=cSe,dSe=FK,hSe=uSe,fSe=hSe(dSe),nN=fSe,pSe=nN,gSe=y2;function mSe(e,t){var r=-1,n=gSe(e)?Array(e.length):[];return pSe(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var NK=mSe;function ySe(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var vSe=ySe,ML=Zf;function wSe(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,o=ML(e),a=t!==void 0,s=t===null,l=t===t,A=ML(t);if(!s&&!A&&!o&&e>t||o&&a&&l&&!s&&!A||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!A&&e<t||A&&r&&i&&!n&&!o||s&&r&&i||!a&&i||!l)return-1}return 0}var bSe=wSe,xSe=bSe;function BSe(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var l=xSe(i[n],o[n]);if(l){if(n>=s)return l;var A=r[n];return l*(A=="desc"?-1:1)}}return e.index-t.index}var ESe=BSe,C_=QF,_Se=MF,SSe=wc,CSe=NK,ISe=vSe,kSe=mK,FSe=ESe,NSe=ap,TSe=mo;function OSe(e,t,r){t.length?t=C_(t,function(o){return TSe(o)?function(a){return _Se(a,o.length===1?o[0]:o)}:o}):t=[NSe];var n=-1;t=C_(t,kSe(SSe));var i=CSe(e,function(o,a,s){var l=C_(t,function(A){return A(o)});return{criteria:l,index:++n,value:o}});return ISe(i,function(o,a){return FSe(o,a,r)})}var jSe=OSe;function PSe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var LSe=PSe,USe=LSe,$L=Math.max;function RSe(e,t,r){return t=$L(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=$L(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),USe(e,this,s)}}var DSe=RSe;function QSe(e){return function(){return e}}var MSe=QSe,$Se=Yu,HSe=function(){try{var e=$Se(Object,"defineProperty");return e({},"",{}),e}catch{}}(),TK=HSe,KSe=MSe,HL=TK,VSe=ap,zSe=HL?function(e,t){return HL(e,"toString",{configurable:!0,enumerable:!1,value:KSe(t),writable:!0})}:VSe,WSe=zSe,GSe=800,YSe=16,qSe=Date.now;function XSe(e){var t=0,r=0;return function(){var n=qSe(),i=YSe-(n-r);if(r=n,i>0){if(++t>=GSe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var JSe=XSe,ZSe=WSe,eCe=JSe,tCe=eCe(ZSe),rCe=tCe,nCe=ap,iCe=DSe,oCe=rCe;function aCe(e,t){return oCe(iCe(e,t,nCe),e+"")}var sCe=aCe,lCe=LF,ACe=y2,cCe=ZF,uCe=vc;function dCe(e,t,r){if(!uCe(r))return!1;var n=typeof t;return(n=="number"?ACe(r)&&cCe(t,r.length):n=="string"&&t in r)?lCe(r[t],e):!1}var w2=dCe,hCe=kK,fCe=jSe,pCe=sCe,KL=w2,gCe=pCe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&KL(e,t[0],t[1])?t=[]:r>2&&KL(t[0],t[1],t[2])&&(t=[t[0]]),fCe(e,hCe(t,1),[])}),mCe=gCe;const iN=xr(mCe);function ey(e){"@babel/helpers - typeof";return ey=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},ey(e)}function L5(){return L5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 10,917 bytes, lines 510-511
510for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L5.apply(this,arguments)}function yCe(e,t){return xCe(e)||bCe(e,t)||wCe(e,t)||vCe()}function vCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
511In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wCe(e,t){if(e){if(typeof e=="string")return VL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return VL(e,t)}}function VL(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bCe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function xCe(e){if(Array.isArray(e))return e}function zL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zL(Object(r),!0).forEach(function(n){BCe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BCe(e,t,r){return t=ECe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ECe(e){var t=_Ce(e,"string");return ey(t)=="symbol"?t:t+""}function _Ce(e,t){if(ey(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ey(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SCe(e){return Array.isArray(e)&&qn(e[0])&&qn(e[1])?e.join(" ~ "):e}var CCe=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,s=a===void 0?{}:a,l=t.labelStyle,A=l===void 0?{}:l,u=t.payload,d=t.formatter,h=t.itemSorter,f=t.wrapperClassName,g=t.labelClassName,p=t.label,v=t.labelFormatter,m=t.accessibilityLayer,w=m===void 0?!1:m,b=function(){if(u&&u.length){var T={padding:0,margin:0},U=(h?iN(u,h):u).map(function(R,G){if(R.type==="none")return null;var K=I_({display:"block",paddingTop:4,paddingBottom:4,color:R.color||"#000"},s),V=R.formatter||d||SCe,Q=R.value,H=R.name,q=Q,re=H;if(V&&q!=null&&re!=null){var P=V(Q,H,R,G,u);if(Array.isArray(P)){var D=yCe(P,2);q=D[0],re=D[1]}else q=P}return oe.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(G),style:K},qn(re)?oe.createElement("span",{className:"recharts-tooltip-item-name"},re):null,qn(re)?oe.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,oe.createElement("span",{className:"recharts-tooltip-item-value"},q),oe.createElement("span",{className:"recharts-tooltip-item-unit"},R.unit||""))});return oe.createElement("ul",{className:"recharts-tooltip-item-list",style:T},U)}return null},E=I_({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),B=I_({margin:0},A),_=!tr(p),F=_?p:"",O=er("recharts-default-tooltip",f),k=er("recharts-tooltip-label",g);_&&v&&u!==void 0&&u!==null&&(F=v(p,u));var j=w?{role:"status","aria-live":"assertive"}:{};return oe.createElement("div",L5({className:O,style:E},j),oe.createElement("p",{className:k,style:B},oe.isValidElement(F)?F:"".concat(F)),b())};function ty(e){"@babel/helpers - typeof";return ty=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},ty(e)}function ow(e,t,r){return t=ICe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ICe(e){var t=kCe(e,"string");return ty(t)=="symbol"?t:t+""}function kCe(e,t){if(ty(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ty(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tg="recharts-tooltip-wrapper",FCe={visibility:"hidden"};function NCe(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return er(tg,ow(ow(ow(ow({},"".concat(tg,"-right"),ot(r)&&t&&ot(t.x)&&r>=t.x),"".concat(tg,"-left"),ot(r)&&t&&ot(t.x)&&r<t.x),"".concat(tg,"-bottom"),ot(n)&&t&&ot(t.y)&&n>=t.y),"".concat(tg,"-top"),ot(n)&&t&&ot(t.y)&&n<t.y))}function WL(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,A=e.viewBoxDimension;if(o&&ot(o[n]))return o[n];var u=r[n]-s-i,d=r[n]+i;if(t[n])return a[n]?u:d;if(a[n]){var h=u,f=l[n];return h<f?Math.max(d,l[n]):Math.max(u,l[n])}var g=d+s,p=l[n]+A;return g>p?Math.max(u,l[n]):Math.max(d,l[n])}function TCe(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function OCe(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,A,u,d;return a.height>0&&a.width>0&&r?(u=WL({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=WL({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),A=TCe({translateX:u,translateY:d,useTranslate3d:s})):A=FCe,{cssProperties:A,cssClasses:NCe({translateX:u,translateY:d,coordinate:r})}}function mf(e){"@babel/helpers - typeof";return mf=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},mf(e)}function GL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GL(Object(r),!0).forEach(function(n){R5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PCe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jK(n.key),n)}}function LCe(e,t,r){return t&&PCe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UCe(e,t,r){return t=yb(t),RCe(e,OK()?Reflect.construct(t,r||[],yb(e).constructor):t.apply(e,r))}function RCe(e,t){if(t&&(mf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DCe(e)}function DCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OK=function(){return!!e})()}function yb(e){return yb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yb(e)}function QCe(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&&U5(e,t)}function U5(e,t){return U5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},U5(e,t)}function R5(e,t,r){return t=jK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jK(e){var t=MCe(e,"string");return mf(t)=="symbol"?t:t+""}function MCe(e,t){if(mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qL=1,$Ce=function(e){function t(){var r;jCe(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=UCe(this,t,[].concat(i)),R5(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),R5(r,"handleKeyDown",function(a){if(a.key==="Escape"){var s,l,A,u;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(A=(u=r.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&A!==void 0?A:0}})}}),r}return QCe(t,e),LCe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>qL||Math.abs(n.height-this.state.lastBoundingBox.height)>qL)&&this.setState({lastBoundingBox:{width:n.width,height:n.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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.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 n=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,A=i.children,u=i.coordinate,d=i.hasPayload,h=i.isAnimationActive,f=i.offset,g=i.position,p=i.reverseDirection,v=i.useTranslate3d,m=i.viewBox,w=i.wrapperStyle,b=OCe({allowEscapeViewBox:a,coordinate:u,offsetTopLeft:f,position:g,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:m}
511),E=b.cssClasses,B=b.cssProperties,_=YL(YL({transition:h&&o?"transform ".concat(s,"ms ").concat(l):void 0},B),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&d?"visible":"hidden",position:"absolute",top:0,left:0},w);return oe.createElement("div",{tabIndex:-1,className:E,style:_,ref:function(O){n.wrapperNode=O}},A)}}])}(S.PureComponent),HCe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ZA={isSsr:HCe(),get:function(t){return ZA[t]},set:function(t,r){if(typeof t=="string")ZA[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){ZA[i]=t[i]})}}};function yf(e){"@babel/helpers - typeof";return yf=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},yf(e)}function XL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function JL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XL(Object(r),!0).forEach(function(n){oN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VCe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LK(n.key),n)}}function zCe(e,t,r){return t&&VCe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WCe(e,t,r){return t=vb(t),GCe(e,PK()?Reflect.construct(t,r||[],vb(e).constructor):t.apply(e,r))}function GCe(e,t){if(t&&(yf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YCe(e)}function YCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PK=function(){return!!e})()}function vb(e){return vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vb(e)}function qCe(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&&D5(e,t)}
vendor: 18,925 bytes, lines 511-518
511function D5(e,t){return D5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},D5(e,t)}function oN(e,t,r){return t=LK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LK(e){var t=XCe(e,"string");return yf(t)=="symbol"?t:t+""}function XCe(e,t){if(yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JCe(e){return e.dataKey}function ZCe(e,t){return oe.isValidElement(e)?oe.cloneElement(e,t):typeof e=="function"?oe.createElement(e,t):oe.createElement(CCe,t)}var sl=function(e){function t(){return KCe(this,t),WCe(this,t,arguments)}return qCe(t,e),zCe(t,[{key:"render",value:function(){var n=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,A=i.content,u=i.coordinate,d=i.filterNull,h=i.isAnimationActive,f=i.offset,g=i.payload,p=i.payloadUniqBy,v=i.position,m=i.reverseDirection,w=i.useTranslate3d,b=i.viewBox,E=i.wrapperStyle,B=g??[];d&&B.length&&(B=_K(g.filter(function(F){return F.value!=null&&(F.hide!==!0||n.props.includeHidden)}),p,JCe));var _=B.length>0;return oe.createElement($Ce,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:h,active:o,coordinate:u,hasPayload:_,offset:f,position:v,reverseDirection:m,useTranslate3d:w,viewBox:b,wrapperStyle:E},ZCe(A,JL(JL({},this.props),{},{payload:B})))}}])}(S.PureComponent);oN(sl,"displayName","Tooltip");oN(sl,"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 e5e=Rs,t5e=function(){return e5e.Date.now()},r5e=t5e,n5e=/\s/;function i5e(e){for(var t=e.length;t--&&n5e.test(e.charAt(t)););return t}var o5e=i5e,a5e=o5e,s5e=/^\s+/;function l5e(e){return e&&e.slice(0,a5e(e)+1).replace(s5e,"")}var A5e=l5e,c5e=A5e,ZL=vc,u5e=Zf,eU=NaN,d5e=/^[-+]0x[0-9a-f]+$/i,h5e=/^0b[01]+$/i,f5e=/^0o[0-7]+$/i,p5e=parseInt;function g5e(e){if(typeof e=="number")return e;if(u5e(e))return eU;if(ZL(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ZL(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=c5e(e);var r=h5e.test(e);return r||f5e.test(e)?p5e(e.slice(2),r?2:8):d5e.test(e)?eU:+e}var UK=g5e,m5e=vc,k_=r5e,tU=UK,y5e="Expected a function",v5e=Math.max,w5e=Math.min;function b5e(e,t,r){var n,i,o,a,s,l,A=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(y5e);t=tU(t)||0,m5e(r)&&(u=!!r.leading,d="maxWait"in r,o=d?v5e(tU(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function f(_){var F=n,O=i;return n=i=void 0,A=_,a=e.apply(O,F),a}function g(_){return A=_,s=setTimeout(m,t),u?f(_):a}function p(_){var F=_-l,O=_-A,k=t-F;return d?w5e(k,o-O):k}function v(_){var F=_-l,O=_-A;return l===void 0||F>=t||F<0||d&&O>=o}function m(){var _=k_();if(v(_))return w(_);s=setTimeout(m,p(_))}function w(_){return s=void 0,h&&n?f(_):(n=i=void 0,a)}function b(){s!==void 0&&clearTimeout(s),A=0,n=l=i=s=void 0}function E(){return s===void 0?a:w(k_())}function B(){var _=k_(),F=v(_);if(n=arguments,i=this,l=_,F){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(m,t),f(l)}return s===void 0&&(s=setTimeout(m,t)),a}return B.cancel=b,B.flush=E,B}var x5e=b5e,B5e=x5e,E5e=vc,_5e="Expected a function";function S5e(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(_5e);return E5e(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),B5e(e,t,{leading:n,maxWait:t,trailing:i})}var C5e=S5e;const RK=xr(C5e);function ry(e){"@babel/helpers - typeof";return ry=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},ry(e)}function rU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function aw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rU(Object(r),!0).forEach(function(n){I5e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I5e(e,t,r){return t=k5e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k5e(e){var t=F5e(e,"string");return ry(t)=="symbol"?t:t+""}function F5e(e,t){if(ry(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ry(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function N5e(e,t){return P5e(e)||j5e(e,t)||O5e(e,t)||T5e()}function T5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
512In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O5e(e,t){if(e){if(typeof e=="string")return nU(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nU(e,t)}}function nU(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function j5e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function P5e(e){if(Array.isArray(e))return e}var qu=S.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,o=e.width,a=o===void 0?"100%":o,s=e.height,l=s===void 0?"100%":s,A=e.minWidth,u=A===void 0?0:A,d=e.minHeight,h=e.maxHeight,f=e.children,g=e.debounce,p=g===void 0?0:g,v=e.id,m=e.className,w=e.onResize,b=e.style,E=b===void 0?{}:b,B=S.useRef(null),_=S.useRef();_.current=w,S.useImperativeHandle(t,function(){return Object.defineProperty(B.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),B.current},configurable:!0})});var F=S.useState({containerWidth:i.width,containerHeight:i.height}),O=N5e(F,2),k=O[0],j=O[1],I=S.useCallback(function(U,R){j(function(G){var K=Math.round(U),V=Math.round(R);return G.containerWidth===K&&G.containerHeight===V?G:{containerWidth:K,containerHeight:V}})},[]);S.useEffect(function(){var U=function(H){var q,re=H[0].contentRect,P=re.width,D=re.height;I(P,D),(q=_.current)===null||q===void 0||q.call(_,P,D)};p>0&&(U=RK(U,p,{trailing:!0,leading:!1}));var R=new ResizeObserver(U),G=B.current.getBoundingClientRect(),K=G.width,V=G.height;return I(K,V),R.observe(B.current),function(){R.disconnect()}},[I,p]);var T=S.useMemo(function(){var U=k.containerWidth,R=k.containerHeight;if(U<0||R<0)return null;bl(fu(a)||fu(l),`The width(%s) and height(%s) are both fixed numbers,
513       maybe you don't need to use a ResponsiveContainer.`,a,l),bl(!r||r>0,"The aspect(%s) must be greater than zero.",r);var G=fu(a)?U:a,K=fu(l)?R:l;r&&r>0&&(G?K=G/r:K&&(G=K*r),h&&K>h&&(K=h)),bl(G>0||K>0,`The width(%s) and height(%s) of chart should be greater than 0,
514       please check the style of container, or the props width(%s) and height(%s),
515       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
516       height and width.`,G,K,a,l,u,d,r);var V=!Array.isArray(f)&&wl(f.type).endsWith("Chart");return oe.Children.map(f,function(Q){return oe.isValidElement(Q)?S.cloneElement(Q,aw({width:G,height:K},V?{style:aw({height:"100%",width:"100%",maxHeight:K,maxWidth:G},Q.props.style)}:{})):Q})},[r,f,l,h,d,u,k,a]);return oe.createElement("div",{id:v?"".concat(v):void 0,className:er("recharts-responsive-container",m),style:aw(aw({},E),{},{width:a,height:l,minWidth:u,minHeight:d,maxHeight:h}),ref:B},T)}),Xu=function(t){return null};Xu.displayName="Cell";function ny(e){"@babel/helpers - typeof";return ny=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},ny(e)}function iU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Q5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iU(Object(r),!0).forEach(function(n){L5e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L5e(e,t,r){return t=U5e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U5e(e){var t=R5e(e,"string");return ny(t)=="symbol"?t:t+""}function R5e(e,t){if(ny(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ny(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vd={widthCache:{},cacheCount:0},D5e=2e3,Q5e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},oU="recharts_measurement_span";function M5e(e){var t=Q5({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var aU=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ZA.isSsr)return{width:0,height:0};var n=M5e(r),i=JSON.stringify({text:t,copyStyle:n});if(Vd.widthCache[i])return Vd.widthCache[i];try{var o=document.getElementById(oU);o||(o=document.createElement("span"),o.setAttribute("id",oU),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Q5(Q5({},Q5e),n);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),l={width:s.width,height:s.height};return Vd.widthCache[i]=l,++Vd.cacheCount>D5e&&(Vd.cacheCount=0,Vd.widthCache={}),l}catch{return{width:0,height:0}}},$5e=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function iy(e){"@babel/helpers - typeof";return iy=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},iy(e)}function wb(e,t){return z5e(e)||V5e(e,t)||K5e(e,t)||H5e()}function H5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
517In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K5e(e,t){if(e){if(typeof e=="string")return sU(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sU(e,t)}}function sU(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function V5e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function z5e(e){if(Array.isArray(e))return e}function W5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y5e(n.key),n)}}function G5e(e,t,r){return t&&lU(e.prototype,t),r&&lU(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y5e(e){var t=q5e(e,"string");return iy(t)=="symbol"?t:t+""}function q5e(e,t){if(iy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(iy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var AU=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,cU=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,X5e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,J5e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,DK={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Z5e=Object.keys(DK),vh="NaN";function eIe(e,t){return e*DK[t]}var sw=function(){function e(t,r){W5e(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!X5e.test(r)&&(this.num=NaN,this.unit=""),Z5e.includes(r)&&(this.num=eIe(t,r),this.unit="px")}return G5e(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.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(r){var n,i=(n=J5e.exec(r))!==null&&n!==void 0?n:[],o=wb(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}])}();function QK(e){if(e.includes(vh))return vh;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=AU.exec(t))!==null&&r!==void 0?r:[],i=wb(n,4),o=i[1],a=i[2],s=i[3],l=sw.parse(o??""),A=sw.parse(s??""),u=a==="*"?l.multiply(A):l.divide(A);if(u.isNaN())return vh;t=t.replace(AU,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,h=(d=cU.exec(t))!==null&&d!==void 0?d:[],f=wb(h,4),g=f[1],p=f[2],v=f[3],m=sw.parse(g??""),w=sw.parse(v??""),b=p==="+"?m.add(w):m.subtract(w);if(b.isNaN())return vh;t=t.replace(cU,b.toString())}return t}var uU=/\(([^()]*)\)/;function tIe(e){for(var t=e;t.includes("(");){var r=uU.exec(t),n=wb(r,2),i=n[1];t=t.replace(uU,QK(i))}return t}function rIe(e){var t=e.replace(/\s+/g,"");return t=tIe(t),t=QK(t),t}function nIe(e){try{return rIe(e)}catch{return vh}}function F_(e){var t=nIe(e.slice(5,-1));return t===vh?"":t}var iIe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],oIe=["dx","dy","angle","className","breakAll"];function M5(){return M5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M5.apply(this,arguments)}function dU(e,t){if(e==null)return{};var r=aIe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aIe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function hU(e,t){return cIe(e)||AIe(e,t)||lIe(e,t)||sIe()}function sIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
518In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lIe(e,t){if(e){if(typeof e=="string")return fU(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fU(e,t)}}function fU(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function AIe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function cIe(e){if(Array.isArray(e))return e}var MK=/[ \f\n\r\t\v\u2028\u2029]+/,$K=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var o=[];tr(r)||(n?o=r.toString().split(""):o=r.toString().split(MK));var a=o.map(function(l){return{word:l,width:aU(l,i).width}}),s=n?0:aU(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},uIe=function(t,r,n,i,o){var a=t.maxLines,s=t.children,l=t.style,A=t.breakAll,u=ot(a),d=s,h=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return G.reduce(function(K,V){var Q=V.word,H=V.width,q=K[K.length-1];if(q&&(i==null||o||q.width+H+n<Number(i)))q.words.push(Q),q.width+=H+n;else{var re={words:[Q],width:H};K.push(re)}return K},[])},f=h(r),g=function(G){return G.reduce(function(K,V){return K.width>V.width?K:V})};if(!u)return f;for(var p="…",v=function(G){var K=d.slice(0,G),V=$K({breakAll:A,style:l,children:K+p}).wordsWithComputedWidth,Q=h(V),H=Q.length>a||g(Q).width>Number(i);return[H,Q]},m=0,w=d.length-1,b=0,E;m<=w&&b<=d.length-1;){var B=Math.floor((m+w)/2),_=B-1,F=v(_),O=hU(F,2),k=O[0],j=O[1],I=v(B),T=hU(I,1),U=T[0];if(!k&&!U&&(m=B+1),k&&U&&(w=B-1),!k&&U){E=j;break}b++}return E||f},pU=function(t){var r=tr(t)?[]:t.toString().split(MK);return[{words:r}]},dIe=function(t){var r=t.width,n=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((r||n)&&!ZA.isSsr){var l,A,u=$K({breakAll:a,children:i,style:o});if(u){var d=u.wordsWithComputedWidth,h=u.spaceWidth;l=d,A=h}else return pU(i);return uIe({breakAll:a,children:i,maxLines:s,style:o},l,A,r,n)}return pU(i)},gU="#808080",vf=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,A=l===void 0?"0.71em":l,u=t.scaleToFit,d=u===void 0?!1:u,h=t.textAnchor,f=h===void 0?"start":h,g=t.verticalAnchor,p=g===void 0?"end":g,v=t.fill,m=v===void 0?gU:v,w=dU(t,iIe),b=S.useMemo(function(){return dIe({breakAll:w.breakAll,children:w.
518children,maxLines:w.maxLines,scaleToFit:d,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,d,w.style,w.width]),E=w.dx,B=w.dy,_=w.angle,F=w.className,O=w.breakAll,k=dU(w,oIe);if(!qn(n)||!qn(o))return null;var j=n+(ot(E)?E:0),I=o+(ot(B)?B:0),T;switch(p){case"start":T=F_("calc(".concat(A,")"));break;case"middle":T=F_("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(A," / 2))"));break;default:T=F_("calc(".concat(b.length-1," * -").concat(s,")"));break}var U=[];if(d){var R=b[0].width,G=w.width;U.push("scale(".concat((ot(G)?G/R:1)/R,")"))}return _&&U.push("rotate(".concat(_,", ").concat(j,", ").concat(I,")")),U.length&&(k.transform=U.join(" ")),oe.createElement("text",M5({},Dt(k,!0),{x:j,y:I,className:er("recharts-text",F),textAnchor:f,fill:m.includes("url")?gU:m}),b.map(function(K,V){var Q=K.words.join(O?"":" ");return oe.createElement("tspan",{x:j,dy:V===0?T:s,key:"".concat(Q,"-").concat(V)},Q)}))};function ec(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function hIe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function aN(e){let t,r,n;e.length!==2?(t=ec,r=(s,l)=>ec(e(s),l),n=(s,l)=>e(s)-l):(t=e===ec||e===hIe?e:fIe,r=e,n=e);function i(s,l,A=0,u=s.length){if(A<u){if(t(l,l)!==0)return u;do{const d=A+u>>>1;r(s[d],l)<0?A=d+1:u=d}while(A<u)}return A}function o(s,l,A=0,u=s.length){if(A<u){if(t(l,l)!==0)return u;do{const d=A+u>>>1;r(s[d],l)<=0?A=d+1:u=d}while(A<u)}return A}function a(s,l,A=0,u=s.length){const d=i(s,l,A,u-1);return d>A&&n(s[d-1],l)>-n(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function fIe(){return 0}function HK(e){return e===null?NaN:+e}function*pIe(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const gIe=aN(ec),iv=gIe.right;aN(HK).center;class mU extends Map{constructor(t,r=vIe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(yU(this,t))}has(t){return super.has(yU(this,t))}set(t,r){return super.set(mIe(this,t),r)}delete(t){return super.delete(yIe(this,t))}}function yU({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function mIe({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function yIe({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function vIe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function wIe(e=ec){if(e===ec)return KK;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function KK(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const bIe=Math.sqrt(50),xIe=Math.sqrt(10),BIe=Math.sqrt(2);function bb(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=bIe?10:o>=xIe?5:o>=BIe?2:1;let s,l,A;return i<0?(A=Math.pow(10,-i)/a,s=Math.round(e*A),l=Math.round(t*A),s/A<e&&++s,l/A>t&&--l,A=-A):(A=Math.pow(10,i)*a,s=Math.round(e/A),l=Math.round(t/A),s*A<e&&++s,l*A>t&&--l),l<s&&.5<=r&&r<2?bb(e,t,r*2):[s,l,A]}function $5(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,o,a]=n?bb(t,e,r):bb(e,t,r);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(n)if(a<0)for(let A=0;A<s;++A)l[A]=(o-A)/-a;else for(let A=0;A<s;++A)l[A]=(o-A)*a;else if(a<0)for(let A=0;A<s;++A)l[A]=(i+A)/-a;else for(let A=0;A<s;++A)l[A]=(i+A)*a;return l}function H5(e,t,r){return t=+t,e=+e,r=+r,bb(e,t,r)[2]}function K5(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?H5(t,e,r):H5(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function vU(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function wU(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function VK(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?KK:wIe(i);n>r;){if(n-r>600){const l=n-r+1,A=t-r+1,u=Math.log(l),d=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*d*(l-d)/l)*(A-l/2<0?-1:1),f=Math.max(r,Math.floor(t-A*d/l+h)),g=Math.min(n,Math.floor(t+(l-A)*d/l+h));VK(e,t,f,g,i)}const o=e[t];let a=r,s=n;for(rg(e,r,t),i(e[n],o)>0&&rg(e,r,n);a<s;){for(rg(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[r],o)===0?rg(e,r,s):(++s,rg(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function rg(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function EIe(e,t,r){if(e=Float64Array.from(pIe(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return wU(e);if(t>=1)return vU(e);var n,i=(n-1)*t,o=Math.floor(i),a=vU(VK(e,o).subarray(0,o+1)),s=wU(e.subarray(o+1));return a+(s-a)*(i-o)}}function _Ie(e,t,r=HK){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e),s=+r(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function SIe(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(i);++n<i;)o[n]=e+n*r;return o}function ya(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Hl(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,227 bytes, line 518
518const V5=Symbol("implicit");function sN(){var e=new mU,t=[],r=[],n=V5;function i(o){let a=e.get(o);if(a===void 0){if(n!==V5)return n;e.set(o,a=t.push(o)-1)}return r[a%r.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new mU;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(r=Array.from(o),i):r.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return sN(t,r).unknown(n)},ya.apply(i,arguments),i}function oy(){var e=sN().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,o,a,s=!1,l=0,A=0,u=.5;delete e.unknown;function d(){var h=t().length,f=i<n,g=f?i:n,p=f?n:i;o=(p-g)/Math.max(1,h-l+A*2),s&&(o=Math.floor(o)),g+=(p-g-o*(h-l))*u,a=o*(1-l),s&&(g=Math.round(g),a=Math.round(a));var v=SIe(h).map(function(m){return g+o*m});return r(f?v.reverse():v)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,d()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(h){return arguments.length?(s=!!h,d()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,A=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(A=+h,d()):A},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),d()):u},e.copy=function(){return oy(t(),[n,i]).round(s).paddingInner(l).paddingOuter(A).align(u)},ya.apply(d(),arguments)}function zK(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return zK(t())},e}function nm(){return zK(oy.apply(null,arguments).paddingInner(1))}function lN(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function WK(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ov(){}var ay=.7,xb=1/ay,Mh="\\s*([+-]?\\d+)\\s*",sy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ks="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",CIe=/^#([0-9a-f]{3,8})$/,IIe=new RegExp(`^rgb\\(${Mh},${Mh},${Mh}\\)$`),kIe=new RegExp(`^rgb\\(${ks},${ks},${ks}\\)$`),FIe=new RegExp(`^rgba\\(${Mh},${Mh},${Mh},${sy}\\)$`),NIe=new RegExp(`^rgba\\(${ks},${ks},${ks},${sy}\\)$`),TIe=new RegExp(`^hsl\\(${sy},${ks},${ks}\\)$`),OIe=new RegExp(`^hsla\\(${sy},${ks},${ks},${sy}\\)$`),bU={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};lN(ov,ly,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xU,formatHex:xU,formatHex8:jIe,formatHsl:PIe,formatRgb:BU,toString:BU});function xU(){return this.rgb().formatHex()}function jIe(){return this.rgb().formatHex8()}function PIe(){return GK(this).formatHsl()}function BU(){return this.rgb().formatRgb()}function ly(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=CIe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?EU(t):r===3?new uo(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?lw(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?lw(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=IIe.exec(e))?new uo(t[1],t[2],t[3],1):(t=kIe.exec(e))?new uo(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FIe.exec(e))?lw(t[1],t[2],t[3],t[4]):(t=NIe.exec(e))?lw(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=TIe.exec(e))?CU(t[1],t[2]/100,t[3]/100,1):(t=OIe.exec(e))?CU(t[1],t[2]/100,t[3]/100,t[4]):bU.hasOwnProperty(e)?EU(bU[e]):e==="transparent"?new uo(NaN,NaN,NaN,0):null}function EU(e){return new uo(e>>16&255,e>>8&255,e&255,1)}function lw(e,t,r,n){return n<=0&&(e=t=r=NaN),new uo(e,t,r,n)}function LIe(e){return e instanceof ov||(e=ly(e)),e?(e=e.rgb(),new uo(e.r,e.g,e.b,e.opacity)):new uo}function z5(e,t,r,n){return arguments.length===1?LIe(e):new uo(e,t,r,n??1)}function uo(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}lN(uo,z5,WK(ov,{brighter(e){return e=e==null?xb:Math.pow(xb,e),new uo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ay:Math.pow(ay,e),new uo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new uo(Iu(this.r),Iu(this.g),Iu(this.b),Bb(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:_U,formatHex:_U,formatHex8:UIe,formatRgb:SU,toString:SU}));function _U(){return`#${pu(this.r)}${pu(this.g)}${pu(this.b)}`}function UIe(){return`#${pu(this.r)}${pu(this.g)}${pu(this.b)}${pu((isNaN(this.opacity)?1:this.opacity)*255)}`}function SU(){const e=Bb(this.opacity);return`${e===1?"rgb(":"rgba("}${Iu(this.r)}, ${Iu(this.g)}, ${Iu(this.b)}${e===1?")":`, ${e})`}`}function Bb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Iu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function pu(e){return e=Iu(e),(e<16?"0":"")+e.toString(16)}function CU(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ua(e,t,r,n)}function GK(e){if(e instanceof Ua)return new Ua(e.h,e.s,e.l,e.opacity);if(e instanceof ov||(e=ly(e)),!e)return new Ua;if(e instanceof Ua)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(r-n)/s+(r<n)*6:r===o?a=(n-t)/s+2:a=(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ua(a,s,l,e.opacity)}function RIe(e,t,r,n){return arguments.length===1?GK(e):new Ua(e,t,r,n??1)}function Ua(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}lN(Ua,RIe,WK(ov,{brighter(e){return e=e==null?xb:Math.pow(xb,e),new Ua(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ay:Math.pow(ay,e),new Ua(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new uo(N_(e>=240?e-240:e+120,i,n),N_(e,i,n),N_(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ua(IU(this.h),Aw(this.s),Aw(this.l),Bb(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=Bb(this.opacity);return`${e===1?"hsl(":"hsla("}${IU(this.h)}, ${Aw(this.s)*100}%, ${Aw(this.l)*100}%${e===1?")":`, ${e})`}`}}));function IU(e){return e=(e||0)%360,e<0?e+360:e}function Aw(e){return Math.max(0,Math.min(1,e||0))}function N_(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const AN=e=>()=>e;function DIe(e,t){return function(r){return e+r*t}}function QIe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function MIe(e){return(e=+e)==1?YK:function(t,r){return r-t?QIe(t,r,e):AN(isNaN(t)?r:t)}}function YK(e,t){var r=t-e;return r?DIe(e,r):AN(isNaN(e)?t:e)}const kU=function e(t){var r=MIe(t);function n(i,o){var a=r((i=z5(i)).r,(o=z5(o)).r),s=r(i.g,o.g),l=r(i.b,o.b),A=YK(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=A(u),i+""}}return n.gamma=e,n}(1);function $Ie(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;i<r;++i)n[i]=e[i]*(1-o)+t[i]*o;return n}}function HIe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function KIe(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),o=new Array(r),a;for(a=0;a<n;++a)i[a]=sp(e[a],t[a]);for(;a<r;++a)o[a]=t[a];return function(s){for(a=0;a<n;++a)o[a]=i[a](s);return o}}function VIe(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Eb(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function zIe(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=sp(e[i],t[i]):n[i]=t[i];return function(o){for(i in r)n[i]=r[i](o);return n}}var W5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,T_=new RegExp(W5.source,"g");function WIe(e){return function(){return e}}function GIe(e){return function(t){return e(t)+""}}function YIe(e,t){var r=W5.lastIndex=T_.lastIndex=0,n,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=W5.exec(e))&&(i=T_.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Eb(n,i)})),r=T_.lastIndex;return r<t.length&&(o=t.slice(r),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?GIe(l[0].x):WIe(t):(t=l.length,function(A){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(A);return s.join("")})}function sp(e,t){var r=typeof t,n;return t==null||r==="boolean"?AN(t):(r==="number"?Eb:r==="string"?(n=ly(t))?(t=n,kU):YIe:t instanceof ly?kU:t instanceof Date?VIe:HIe(t)?$Ie:Array.isArray(t)?KIe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?zIe:Eb)(e,t)}function cN(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function qIe(e,t){t===void 0&&(t=e,e=sp);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(a){var s=Math.max(0,Math.min(n-1,Math.floor(a*=n)));return o[s](a-s)}}function XIe(e){return function(){return e}}function _b(e){return+e}var FU=[0,1];function Xi(e){return e}function G5(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:XIe(isNaN(t)?NaN:.5)}function JIe(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function ZIe(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=G5(i,n),o=r(a,o)):(n=G5(n,i),o=r(o,a)),function(s){return o(n(s))}}function eke(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=G5(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(s){var l=iv(e,s,1,n)-1;return o[l](i[l](s))}}function av(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function b2(){var e=FU,t=FU,r=sp,n,i,o,a=Xi,s,l,A;function u(){var h=Math.min(e.length,t.length);return a!==Xi&&(a=JIe(e[0],e[h-1])),s=h>2?eke:ZIe,l=A=null,d}function d(h){return h==null||isNaN(h=+h)?o:(l||(l=s(e.map(n),t,r)))(n(a(h)))}return d.invert=function(h){return a(i((A||(A=s(t,e.map(n),Eb)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,_b),u()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),r=cN,u()},d.clamp=function(h){return arguments.length?(a=h?!0:Xi,u()):a!==Xi},d.interpolate=function(h){return arguments.length?(r=h,u()):r},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return n=h,i=f,u()}}function uN(){return b2()(Xi,Xi)}
vendor: 4,456 bytes, line 518
518function tke(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Sb(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function wf(e){return e=Sb(Math.abs(e)),e?e[1]:NaN}function rke(e,t){return function(r,n){for(var i=r.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function nke(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var ike=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ay(e){if(!(t=ike.exec(e)))throw new Error("invalid format: "+e);var t;return new dN({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]})}Ay.prototype=dN.prototype;function dN(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+""}dN.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 oke(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var qK;function ake(e,t){var r=Sb(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(qK=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Sb(e,Math.max(0,t+o-1))[0]}function NU(e,t){var r=Sb(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const TU={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:tke,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)=>NU(e*100,t),r:NU,s:ake,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function OU(e){return e}var jU=Array.prototype.map,PU=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ske(e){var t=e.grouping===void 0||e.thousands===void 0?OU:rke(jU.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?OU:nke(jU.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function A(d){d=Ay(d);var h=d.fill,f=d.align,g=d.sign,p=d.symbol,v=d.zero,m=d.width,w=d.comma,b=d.precision,E=d.trim,B=d.type;B==="n"?(w=!0,B="g"):TU[B]||(b===void 0&&(b=12),E=!0,B="g"),(v||h==="0"&&f==="=")&&(v=!0,h="0",f="=");var _=p==="$"?r:p==="#"&&/[boxX]/.test(B)?"0"+B.toLowerCase():"",F=p==="$"?n:/[%p]/.test(B)?a:"",O=TU[B],k=/[defgprs%]/.test(B);b=b===void 0?6:/[gprs]/.test(B)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function j(I){var T=_,U=F,R,G,K;if(B==="c")U=O(I)+U,I="";else{I=+I;var V=I<0||1/I<0;if(I=isNaN(I)?l:O(Math.abs(I),b),E&&(I=oke(I)),V&&+I==0&&g!=="+"&&(V=!1),T=(V?g==="("?g:s:g==="-"||g==="("?"":g)+T,U=(B==="s"?PU[8+qK/3]:"")+U+(V&&g==="("?")":""),k){for(R=-1,G=I.length;++R<G;)if(K=I.charCodeAt(R),48>K||K>57){U=(K===46?i+I.slice(R+1):I.slice(R))+U,I=I.slice(0,R);break}}}w&&!v&&(I=t(I,1/0));var Q=T.length+I.length+U.length,H=Q<m?new Array(m-Q+1).join(h):"";switch(w&&v&&(I=t(H+I,H.length?m-U.length:1/0),H=""),f){case"<":I=T+I+U+H;break;case"=":I=T+H+I+U;break;case"^":I=H.slice(0,Q=H.length>>1)+T+I+U+H.slice(Q);break;default:I=H+T+I+U;break}return o(I)}return j.toString=function(){return d+""},j}function u(d,h){var f=A((d=Ay(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(wf(h)/3)))*3,p=Math.pow(10,-g),v=PU[8+g/3];return function(m){return f(p*m)+v}}return{format:A,formatPrefix:u}}var cw,hN,XK;
518lke({thousands:",",grouping:[3],currency:["$",""]});function lke(e){return cw=ske(e),hN=cw.format,XK=cw.formatPrefix,cw}function Ake(e){return Math.max(0,-wf(Math.abs(e)))}function cke(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wf(t)/3)))*3-wf(Math.abs(e)))}function uke(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wf(t)-wf(e))+1}function JK(e,t,r,n){var i=K5(e,t,r),o;switch(n=Ay(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=cke(i,a))&&(n.precision=o),XK(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=uke(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=Ake(i))&&(n.precision=o-(n.type==="%")*2);break}}return hN(n)}function bc(e){var t=e.domain;return e.ticks=function(r){var n=t();return $5(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return JK(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,a=n[i],s=n[o],l,A,u=10;for(s<a&&(A=a,a=s,s=A,A=i,i=o,o=A);u-- >0;){if(A=H5(a,s,r),A===l)return n[i]=a,n[o]=s,t(n);if(A>0)a=Math.floor(a/A)*A,s=Math.ceil(s/A)*A;else if(A<0)a=Math.ceil(a*A)/A,s=Math.floor(s*A)/A;else break;l=A}return e},e}function Cb(){var e=uN();return e.copy=function(){return av(e,Cb())},ya.apply(e,arguments),bc(e)}function ZK(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,_b),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return ZK(e).unknown(t)},e=arguments.length?Array.from(e,_b):[0,1],bc(r)}function eV(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],a;return o<i&&(a=r,r=n,n=a,a=i,i=o,o=a),e[r]=t.floor(i),e[n]=t.ceil(o),e}function LU(e){return Math.log(e)}function UU(e){return Math.exp(e)}function dke(e){return-Math.log(-e)}function hke(e){return-Math.exp(-e)}function fke(e){return isFinite(e)?+("1e"+e):e<0?0:e}function pke(e){return e===10?fke:e===Math.E?Math.exp:t=>Math.pow(e,t)}function gke(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 RU(e){return(t,r)=>-e(-t,r)}function fN(e){const t=e(LU,UU),r=t.domain;let n=10,i,o;function a(){return i=gke(n),o=pke(n),r()[0]<0?(i=RU(i),o=RU(o),e(dke,hke)):e(LU,UU),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{const l=r();let A=l[0],u=l[l.length-1];const d=u<A;d&&([A,u]=[u,A]);let h=i(A),f=i(u),g,p;const v=s==null?10:+s;let m=[];if(!(n%1)&&f-h<v){if(h=Math.floor(h),f=Math.ceil(f),A>0){for(;h<=f;++h)for(g=1;g<n;++g)if(p=h<0?g/o(-h):g*o(h),!(p<A)){if(p>u)break;m.push(p)}}else for(;h<=f;++h)for(g=n-1;g>=1;--g)if(p=h>0?g/o(-h):g*o(h),!(p<A)){if(p>u)break;m.push(p)}m.length*2<v&&(m=$5(A,u,v))}else m=$5(h,f,Math.min(f-h,v)).map(o);return d?m.reverse():m},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ay(l)).precision==null&&(l.trim=!0),l=hN(l)),s===1/0)return l;const A=Math.max(1,n*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*n<n-.5&&(d*=n),d<=A?l(u):""}},t.nice=()=>r(eV(r(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function tV(){const e=fN(b2()).domain([1,10]);return e.copy=()=>av(e,tV()).base(e.base()),ya.apply(e,arguments),e}function DU(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function QU(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function pN(e){var t=1,r=e(DU(t),QU(t));return r.constant=function(n){return arguments.length?e(DU(t=+n),QU(t)):t},bc(r)}function rV(){var e=pN(b2());return e.copy=function(){return av(e,rV()).constant(e.constant())},ya.apply(e,arguments)}function MU(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function mke(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function yke(e){return e<0?-e*e:e*e}function gN(e){var t=e(Xi,Xi),r=1;function n(){return r===1?e(Xi,Xi):r===.5?e(mke,yke):e(MU(r),MU(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},bc(t)}function mN(){var e=gN(b2());return e.copy=function(){return av(e,mN()).exponent(e.exponent())},ya.apply(e,arguments),e}function vke(){return mN.apply(null,arguments).exponent(.5)}function $U(e){return Math.sign(e)*e*e}function wke(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function nV(){var e=uN(),t=[0,1],r=!1,n;function i(o){var a=wke(e(o));return isNaN(a)?n:r?Math.round(a):a}return i.invert=function(o){return e.invert($U(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,_b)).map($U)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(r=!!o,i):r},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return nV(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},ya.apply(i,arguments),bc(i)}function iV(){var e=[],t=[],r=[],n;function i(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a<s;)r[a-1]=_Ie(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?n:t[iv(r,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>
5180?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(ec),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(n=a,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return iV().domain(e).range(t).unknown(n)},ya.apply(o,arguments)}function oV(){var e=0,t=1,r=1,n=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[iv(n,l,0,r)]:o}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var A=i.indexOf(l);return A<0?[NaN,NaN]:A<1?[e,n[0]]:A>=r?[n[r-1],t]:[n[A-1],n[A]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return oV().domain([e,t]).range(i).unknown(o)},ya.apply(bc(a),arguments)}function aV(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[iv(e,o,0,n)]:r}return i.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return aV().domain(e).range(t).unknown(r)},ya.apply(i,arguments)}const O_=new Date,j_=new Date;function Xn(e,t,r,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let A;do l.push(A=new Date(+o)),t(o,s),e(o);while(A<o&&o<a);return l},i.filter=o=>Xn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),r&&(i.count=(o,a)=>(O_.setTime(+o),j_.setTime(+a),e(O_),e(j_),Math.floor(r(O_,j_))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?a=>n(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Ib=Xn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ib.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xn(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ib);Ib.range;const gl=1e3,ua=gl*60,ml=ua*60,Tl=ml*24,yN=Tl*7,HU=Tl*30,P_=Tl*365,gu=Xn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*gl)},(e,t)=>(t-e)/gl,e=>e.getUTCSeconds());gu.range;const vN=Xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*gl)},(e,t)=>{e.setTime(+e+t*ua)},(e,t)=>(t-e)/ua,e=>e.getMinutes());vN.range;const wN=Xn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ua)},(e,t)=>(t-e)/ua,e=>e.getUTCMinutes());wN.range;const bN=Xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*gl-e.getMinutes()*ua)},(e,t)=>{e.setTime(+e+t*ml)},(e,t)=>(t-e)/ml,e=>e.getHours());bN.range;const xN=Xn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ml)},(e,t)=>(t-e)/ml,e=>e.getUTCHours());xN.range;const sv=Xn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ua)/Tl,e=>e.getDate()-1);sv.range;const x2=Xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tl,e=>e.getUTCDate()-1);x2.range;const sV=Xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tl,e=>Math.floor(e/Tl));sV.range;function Ju(e){return Xn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*ua)/yN)}const B2=Ju(0),kb=Ju(1),bke=Ju(2),xke=Ju(3),bf=Ju(4),Bke=Ju(5),Eke=Ju(6);B2.range;kb.range;bke.range;xke.range;bf.range;Bke.range;Eke.range;function Zu(e){return Xn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/yN)}const E2=Zu(0),Fb=Zu(1),_ke=Zu(2),Ske=Zu(3),xf=Zu(4),Cke=Zu(5),Ike=Zu(6);E2.range;Fb.range;_ke.range;Ske.range;xf.range;Cke.range;Ike.range;const BN=Xn(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());BN.range;const EN=Xn(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());EN.range;const Ol=Xn(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());Ol.every=e=>
vendor: 10,287 bytes, line 518
518!isFinite(e=Math.floor(e))||!(e>0)?null:Xn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ol.range;const jl=Xn(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());jl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});jl.range;function lV(e,t,r,n,i,o){const a=[[gu,1,gl],[gu,5,5*gl],[gu,15,15*gl],[gu,30,30*gl],[o,1,ua],[o,5,5*ua],[o,15,15*ua],[o,30,30*ua],[i,1,ml],[i,3,3*ml],[i,6,6*ml],[i,12,12*ml],[n,1,Tl],[n,2,2*Tl],[r,1,yN],[t,1,HU],[t,3,3*HU],[e,1,P_]];function s(A,u,d){const h=u<A;h&&([A,u]=[u,A]);const f=d&&typeof d.range=="function"?d:l(A,u,d),g=f?f.range(A,+u+1):[];return h?g.reverse():g}function l(A,u,d){const h=Math.abs(u-A)/d,f=aN(([,,v])=>v).right(a,h);if(f===a.length)return e.every(K5(A/P_,u/P_,d));if(f===0)return Ib.every(Math.max(K5(A,u,d),1));const[g,p]=a[h/a[f-1][2]<a[f][2]/h?f-1:f];return g.every(p)}return[s,l]}const[kke,Fke]=lV(jl,EN,E2,sV,xN,wN),[Nke,Tke]=lV(Ol,BN,B2,sv,bN,vN);function L_(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 U_(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 ng(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Oke(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,A=ig(i),u=og(i),d=ig(o),h=og(o),f=ig(a),g=og(a),p=ig(s),v=og(s),m=ig(l),w=og(l),b={a:V,A:Q,b:H,B:q,c:null,d:YU,e:YU,f:rFe,g:dFe,G:fFe,H:Zke,I:eFe,j:tFe,L:AV,m:nFe,M:iFe,p:re,q:P,Q:JU,s:ZU,S:oFe,u:aFe,U:sFe,V:lFe,w:AFe,W:cFe,x:null,X:null,y:uFe,Y:hFe,Z:pFe,"%":XU},E={a:D,A:X,b:Z,B:ae,c:null,d:qU,e:qU,f:vFe,g:kFe,G:NFe,H:gFe,I:mFe,j:yFe,L:uV,m:wFe,M:bFe,p:se,q:pe,Q:JU,s:ZU,S:xFe,u:BFe,U:EFe,V:_Fe,w:SFe,W:CFe,x:null,X:null,y:IFe,Y:FFe,Z:TFe,"%":XU},B={a:j,A:I,b:T,B:U,c:R,d:WU,e:WU,f:Yke,g:zU,G:VU,H:GU,I:GU,j:Vke,L:Gke,m:Kke,M:zke,p:k,q:Hke,Q:Xke,s:Jke,S:Wke,u:Rke,U:Dke,V:Qke,w:Uke,W:Mke,x:G,X:K,y:zU,Y:VU,Z:$ke,"%":qke};b.x=_(r,b),b.X=_(n,b),b.c=_(t,b),E.x=_(r,E),E.X=_(n,E),E.c=_(t,E);function _(le,he){return function(Ae){var ue=[],_e=-1,ve=0,z=le.length,Se,Me,De;for(Ae instanceof Date||(Ae=new Date(+Ae));++_e<z;)le.charCodeAt(_e)===37&&(ue.push(le.slice(ve,_e)),(Me=KU[Se=le.charAt(++_e)])!=null?Se=le.charAt(++_e):Me=Se==="e"?" ":"0",(De=he[Se])&&(Se=De(Ae,Me)),ue.push(Se),ve=_e+1);return ue.push(le.slice(ve,_e)),ue.join("")}}function F(le,he){return function(Ae){var ue=ng(1900,void 0,1),_e=O(ue,le,Ae+="",0),ve,z;if(_e!=Ae.length)return null;if("Q"in ue)return new Date(ue.Q);if("s"in ue)return new Date(ue.s*1e3+("L"in ue?ue.L:0));if(he&&!("Z"in ue)&&(ue.Z=0),"p"in ue&&(ue.H=ue.H%12+ue.p*12),ue.m===void 0&&(ue.m="q"in ue?ue.q:0),"V"in ue){if(ue.V<1||ue.V>53)return null;"w"in ue||(ue.w=1),"Z"in ue?(ve=U_(ng(ue.y,0,1)),z=ve.getUTCDay(),ve=z>4||z===0?Fb.ceil(ve):Fb(ve),ve=x2.offset(ve,(ue.V-1)*7),ue.y=ve.getUTCFullYear(),ue.m=ve.getUTCMonth(),ue.d=ve.getUTCDate()+(ue.w+6)%7):(ve=L_(ng(ue.y,0,1)),z=ve.getDay(),ve=z>4||z===0?kb.ceil(ve):kb(ve),ve=sv.offset(ve,(ue.V-1)*7),ue.y=ve.getFullYear(),ue.m=ve.getMonth(),ue.d=ve.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),z="Z"in ue?U_(ng(ue.y,0,1)).getUTCDay():L_(ng(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+ue.W*7-(z+5)%7:ue.w+ue.U*7-(z+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,U_(ue)):L_(ue)}}function O(le,he,Ae,ue){for(var _e=0,ve=he.length,z=Ae.length,Se,Me;_e<ve;){if(ue>=z)return-1;if(Se=he.charCodeAt(_e++),Se===37){if(Se=he.charAt(_e++),Me=B[Se in KU?he.charAt(_e++):Se],!Me||(ue=Me(le,Ae,ue))<0)return-1}else if(Se!=Ae.charCodeAt(ue++))return-1}return ue}function k(le,he,Ae){var ue=A.exec(he.slice(Ae));return ue?(le.p=u.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function j(le,he,Ae){var ue=f.exec(he.slice(Ae));return ue?(le.w=g.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function I(le,he,Ae){var ue=d.exec(he.slice(Ae));return ue?(le.w=h.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function T(le,he,Ae){var ue=m.exec(he.slice(Ae));return ue?(le.m=w.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function U(le,he,Ae){var ue=p.exec(he.slice(Ae));return ue?(le.m=v.get(ue[0].toLowerCase()),Ae+ue[0].length):-1}function R(le,he,Ae){return O(le,t,he,Ae)}function G(le,he,Ae){return O(le,r,he,Ae)}function K(le,he,Ae){return O(le,n,he,Ae)}function V(le){return a[le.getDay()]}function Q(le){return o[le.getDay()]}function H(le){return l[le.getMonth()]}function q(le){return s[le.getMonth()]}function re(le){return i[+(le.getHours()>=12)]}function P(le){return 1+~~(le.getMonth()/3)}function D(le){return a[le.getUTCDay()]}function X(le){return o[le.getUTCDay()]}function Z(le){return l[le.getUTCMonth()]}function ae(le){return s[le.getUTCMonth()]}function se(le){return i[+(le.getUTCHours()>=12)]}function pe(le){return 1+~~(le.getUTCMonth()/3)}return{format:function(le){var he=_(le+="",b);return he.toString=function(){return le},he},parse:function(le){var he=F(le+="",!1);return he.toString=function(){return le},he},utcFormat:function(le){var he=_(le+="",E);return he.toString=function(){return le},he},utcParse:function(le){var he=F(le+="",!0);return he.toString=function(){return le},he}}}var KU={"-":"",_:" ",0:"0"},ii=/^\s*\d+/,jke=/^%/,Pke=/[\\^$*+?|[\]().{}]/g;function fr(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function Lke(e){return e.replace(Pke,"\\$&")}function ig(e){return new RegExp("^(?:"+e.map(Lke).join("|")+")","i")}function og(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Uke(e,t,r){var n=ii.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Rke(e,t,r){var n=ii.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Dke(e,t,r){var n=ii.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Qke(e,t,r){var n=ii.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Mke(e,t,r){var n=ii.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function VU(e,t,r){var n=ii.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function zU(e,t,r){var n=ii.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function $ke(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Hke(e,t,r){var n=ii.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Kke(e,t,r){var n=ii.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function WU(e,t,r){var n=ii.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Vke(e,t,r){var n=ii.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function GU(e,t,r){var n=ii.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function zke(e,t,r){var n=ii.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Wke(e,t,r){var n=ii.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Gke(e,t,r){var n=ii.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Yke(e,t,r){var n=ii.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function qke(e,t,r){var n=jke.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Xke(e,t,r){var n=ii.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Jke(e,t,r){var n=ii.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function YU(e,t){return fr(e.getDate(),t,2)}function Zke(e,t){return fr(e.getHours(),t,2)}function eFe(e,t){return fr(e.getHours()%12||12,t,2)}function tFe(e,t){return fr(1+sv.count(Ol(e),e),t,3)}function AV(e,t){return fr(e.getMilliseconds(),t,3)}function rFe(e,t){return AV(e,t)+"000"}function nFe(e,t){return fr(e.getMonth()+1,t,2)}function iFe(e,t){return fr(e.getMinutes(),t,2)}function oFe(e,t){return fr(e.getSeconds(),t,2)}function aFe(e){var t=e.getDay();return t===0?7:t}function sFe(e,t){return fr(B2.count(Ol(e)-1,e),t,2)}function cV(e){var t=e.getDay();return t>=4||t===0?bf(e):bf.ceil(e)}function lFe(e,t){return e=cV(e),fr(bf.count(Ol(e),e)+(Ol(e).getDay()===4),t,2)}function AFe(e){return e.getDay()}function cFe(e,t){return fr(kb.count(Ol(e)-1,e),t,2)}function uFe(e,t){return fr(e.getFullYear()%100,t,2)}function dFe(e,t){return e=cV(e),fr(e.getFullYear()%100,t,2)}function hFe(e,t){return fr(e.getFullYear()%1e4,t,4)}function fFe(e,t){var r=e.getDay();return e=r>=4||r===0?bf(e):bf.ceil(e),fr(e.getFullYear()%1e4,t,4)}function pFe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fr(t/60|0,"0",2)+fr(t%60,"0",2)}function qU(e,t){return fr(e.getUTCDate(),t,2)}function gFe(e,t){return fr(e.getUTCHours(),t,2)}function mFe(e,t){return fr(e.getUTCHours()%12||12,t,2)}function yFe(e,t){return fr(1+x2.count(jl(e),e),t,3)}function uV(e,t){return fr(e.getUTCMilliseconds(),t,3)}function vFe(e,t){return uV(e,t)+"000"}function wFe(e,t){return fr(e.getUTCMonth()+1,t,2)}function bFe(e,t){return fr(e.getUTCMinutes(),t,2)}function xFe(e,t){return fr(e.getUTCSeconds(),t,2)}function BFe(e){var t=e.getUTCDay();return t===0?7:t}function EFe(e,t){return fr(E2.count(jl(e)-1,e),t,2)}function dV(e){var t=e.getUTCDay();return t>=4||t===0?xf(e):xf.ceil(e)}function _Fe(e,t){return e=dV(e),fr(xf.count(jl(e),e)+(jl(e).getUTCDay()===4),t,2)}function SFe(e){return e.getUTCDay()}function CFe(e,t){return fr(Fb.count(jl(e)-1,e),t,2)}function IFe(e,t){return fr(e.getUTCFullYear()%100,t,2)}function kFe(e,t){return e=dV(e),fr(e.getUTCFullYear()%100,t,2)}function FFe(e,t){return fr(e.getUTCFullYear()%1e4,t,4)}function NFe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?xf(e):xf.ceil(e),fr(e.getUTCFullYear()%1e4,t,4)}function TFe(){return"+0000"}function XU(){return"%"}function JU(e){return+e}function ZU(e){return Math.floor(+e/1e3)}var zd,hV,fV;OFe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
518ay","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 OFe(e){return zd=Oke(e),hV=zd.format,zd.parse,fV=zd.utcFormat,zd.utcParse,zd}function jFe(e){return new Date(e)}function PFe(e){return e instanceof Date?+e:+new Date(+e)}function _N(e,t,r,n,i,o,a,s,l,A){var u=uN(),d=u.invert,h=u.domain,f=A(".%L"),g=A(":%S"),p=A("%I:%M"),v=A("%I %p"),m=A("%a %d"),w=A("%b %d"),b=A("%B"),E=A("%Y");function B(_){return(l(_)<_?f:s(_)<_?g:a(_)<_?p:o(_)<_?v:n(_)<_?i(_)<_?m:w:r(_)<_?b:E)(_)}return u.invert=function(_){return new Date(d(_))},u.domain=function(_){return arguments.length?h(Array.from(_,PFe)):h().map(jFe)},u.ticks=function(_){var F=h();return e(F[0],F[F.length-1],_??10)},u.tickFormat=function(_,F){return F==null?B:A(F)},u.nice=function(_){var F=h();return(!_||typeof _.range!="function")&&(_=t(F[0],F[F.length-1],_??10)),_?h(eV(F,_)):u},u.copy=function(){return av(u,_N(e,t,r,n,i,o,a,s,l,A))},u}function LFe(){return ya.apply(_N(Nke,Tke,Ol,BN,B2,sv,bN,vN,gu,hV).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function UFe(){return ya.apply(_N(kke,Fke,jl,EN,E2,x2,xN,wN,gu,fV).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function _2(){var e=0,t=1,r,n,i,o,a=Xi,s=!1,l;function A(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-r)*i,s?Math.max(0,Math.min(1,d)):d))}A.domain=function(d){return arguments.length?([e,t]=d,r=o(e=+e),n=o(t=+t),i=r===n?0:1/(n-r),A):[e,t]},A.clamp=function(d){return arguments.length?(s=!!d,A):s},A.interpolator=function(d){return arguments.length?(a=d,A):a};function u(d){return function(h){var f,g;return arguments.length?([f,g]=h,a=d(f,g),A):[a(0),a(1)]}}return A.range=u(sp),A.rangeRound=u(cN),A.unknown=function(d){return arguments.length?(l=d,A):l},function(d){return o=d,r=d(e),n=d(t),i=r===n?0:1/(n-r),A}}function xc(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function pV(){var e=bc(_2()(Xi));return e.copy=function(){return xc(e,pV())},Hl.apply(e,arguments)}function gV(){var e=fN(_2()).domain([1,10]);return e.copy=function(){return xc(e,gV()).base(e.base())},Hl.apply(e,arguments)}function mV(){var e=pN(_2());return e.copy=function(){return xc(e,mV()).constant(e.constant())},Hl.apply(e,arguments)}function SN(){var e=gN(_2());return e.copy=function(){return xc(e,SN()).exponent(e.exponent())},Hl.apply(e,arguments)}function RFe(){return SN.apply(null,arguments).exponent(.5)}function yV(){var e=[],t=Xi;function r(n){if(n!=null&&!isNaN(n=+n))return t((iv(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ec),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,o)=>EIe(e,o/n))},r.copy=function(){return yV(t).domain(e)},Hl.apply(r,arguments)}function S2(){var e=0,t=.5,r=1,n=1,i,o,a,s,l,A=Xi,u,d=!1,h;function f(p){return isNaN(p=+p)?h:(p=.5+((p=+u(p))-o)*(n*p<n*o?s:l),A(d?Math.max(0,Math.min(1,p)):p))}f.domain=function(p){return arguments.length?([e,t,r]=p,i=u(e=+e),o=u(t=+t),a=u(r=+r),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),n=o<i?-1:1,f):[e,t,r]},f.clamp=function(p){return arguments.length?(d=!!p,f):d},f.interpolator=function(p){return arguments.length?(A=p,f):A};function g(p){return function(v){var m,w,b;return arguments.length?([m,w,b]=v,A=qIe(p,[m,w,b]),f):[A(0),A(.5),A(1)]}}return f.range=g(sp),f.rangeRound=g(cN),f.unknown=function(p){return arguments.length?(h=p,f):h},function(p){return u=p,i=p(e),o=p(t),a=p(r),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),n=o<i?-1:1,f}}function vV(){var e=bc(S2()(Xi));return e.copy=function(){return xc(e,vV())},Hl.apply(e,arguments)}function wV(){var e=fN(S2()).domain([.1,1,10]);return e.copy=function(){return xc(e,wV()).base(e.base())},Hl.apply(e,arguments)}function bV(){var e=pN(S2());return e.copy=function(){return xc(e,bV()).constant(e.constant())},Hl.apply(e,arguments)}function CN(){var e=gN(S2());return e.copy=function(){return xc(e,CN()).exponent(e.exponent())},Hl.apply(e,arguments)}function DFe(){return CN.apply(null,arguments).exponent(.5)}const eR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:oy,scaleDiverging:vV,scaleDivergingLog:wV,scaleDivergingPow:CN,scaleDivergingSqrt:DFe,scaleDivergingSymlog:bV,scaleIdentity:ZK,scaleImplicit:V5,scaleLinear:Cb,scaleLog:tV,scaleOrdinal:sN,scalePoint:nm,scalePow:mN,scaleQuantile:iV,scaleQuantize:oV,scaleRadial:nV,scaleSequential:pV,scaleSequentialLog:gV,scaleSequentialPow:SN,scaleSequentialQuantile:yV,scaleSequentialSqrt:RFe,scaleSequentialSymlog:mV,scaleSqrt:vke,scaleSymlog:rV,scaleThreshold:aV,scaleTime:LFe,scaleUtc:UFe,tickFormat:JK},Symbol.toStringTag,{value:"Module"}));var QFe=Zf;function MFe(e,t,r){for(var n=-1,i=e.length;++n<i;){var o=e[n],a=t(o);if(a!=null&&(s===void 0?a===a&&!QFe(a):r(a,s)))var s=a,l=o}return l}var C2=MFe;function $Fe(e,t){return e>t}var xV=$Fe,HFe=C2,KFe=xV,VFe=ap;function zFe(e){return e&&e.length?HFe(e,VFe,KFe):void 0}var WFe=zFe;const I2=xr(WFe);function GFe(e,t){return e<t}var BV=GFe,YFe=C2,qFe=BV,XFe=ap;function JFe(e){return e&&e.length?YFe(e,XFe,qFe):void 0}var ZFe=JFe;const k2=xr(ZFe);var eNe=QF,tNe=wc,rNe=NK,nNe=mo;function iNe(e,t){var r=nNe(e)?eNe:rNe;return r(e,tNe(t))}var oNe=iNe,aNe=kK,sNe=oNe;function lNe(e,t){return aNe(sNe(e,t),1)}var ANe=lNe;const cNe=xr(ANe);var uNe=rN;function dNe(e,t){return uNe(e,t)}var hNe=dNe;const F2=xr(hNe);
vendor: 61,080 bytes, lines 518-545
518var lp=1e9,fNe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},kN,sn=!0,ga="[DecimalError] ",ku=ga+"Invalid argument: ",IN=ga+"Exponent out of range: ",Ap=Math.floor,Zc=Math.pow,pNe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Oo,ei=1e7,Jr=7,EV=9007199254740991,Nb=Ap(EV/Jr),At={};At.absoluteValue=At.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};At.comparedTo=At.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};At.decimalPlaces=At.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Jr;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};At.dividedBy=At.div=function(e){return xl(this,new this.constructor(e))};At.dividedToIntegerBy=At.idiv=function(e){var t=this,r=t.constructor;return Ur(xl(t,new r(e),0,1),r.precision)};At.equals=At.eq=function(e){return!this.cmp(e)};At.exponent=function(){return Mn(this)};At.greaterThan=At.gt=function(e){return this.cmp(e)>0};At.greaterThanOrEqualTo=At.gte=function(e){return this.cmp(e)>=0};At.isInteger=At.isint=function(){return this.e>this.d.length-2};At.isNegative=At.isneg=function(){return this.s<0};At.isPositive=At.ispos=function(){return this.s>0};At.isZero=function(){return this.s===0};At.lessThan=At.lt=function(e){return this.cmp(e)<0};At.lessThanOrEqualTo=At.lte=function(e){return this.cmp(e)<1};At.logarithm=At.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Oo))throw Error(ga+"NaN");if(r.s<1)throw Error(ga+(r.s?"NaN":"-Infinity"));return r.eq(Oo)?new n(0):(sn=!1,t=xl(cy(r,o),cy(e,o),o),sn=!0,Ur(t,i))};At.minus=At.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?CV(t,e):_V(t,(e.s=-e.s,e))};At.modulo=At.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ga+"NaN");return r.s?(sn=!1,t=xl(r,e,0,1).times(e),sn=!0,r.minus(t)):Ur(new n(r),i)};At.naturalExponential=At.exp=function(){return SV(this)};At.naturalLogarithm=At.ln=function(){return cy(this)};At.negated=At.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};At.plus=At.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_V(t,e):CV(t,(e.s=-e.s,e))};At.precision=At.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ku+e);if(t=Mn(i)+1,n=i.d.length-1,r=n*Jr+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};At.squareRoot=At.sqrt=function(){var e,t,r,n,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(ga+"NaN")}for(e=Mn(s),sn=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=bs(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ap((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),n=new l(t)):n=new l(i.toString()),r=l.precision,i=a=r+3;;)if(o=n,n=o.plus(xl(s,o,a+2)).times(.5),bs(o.d).slice(0,a)===(t=bs(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Ur(o,r+1,0),o.times(o).eq(s)){n=o;break}}else if(t!="9999")break;a+=4}return sn=!0,Ur(n,r)};At.times=At.mul=function(e){var t,r,n,i,o,a,s,l,A,u=this,d=u.constructor,h=u.d,f=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,r=u.e+e.e,l=h.length,A=f.length,l<A&&(o=h,h=f,f=o,a=l,l=A,A=a),o=[],a=l+A,n=a;n--;)o.push(0);for(n=A;--n>=0;){for(t=0,i=l+n;i>n;)s=o[i]+f[n]*h[i-n-1]+t,o[i--]=s%ei|0,t=s/ei|0;o[i]=(o[i]+t)%ei|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,sn?Ur(e,d.precision):e};At.toDecimalPlaces=At.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Os(e,0,lp),t===void 0?t=n.rounding:Os(t,0,8),Ur(r,e+Mn(r)+1,t))};At.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Qu(n,!0):(Os(e,0,lp),t===void 0?t=i.rounding:Os(t,0,8),n=Ur(new i(n),e+1,t),r=Qu(n,!0,e+1)),r};At.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?Qu(i):(Os(e,0,lp),t===void 0?t=o.rounding:Os(t,0,8),n=Ur(new o(i),e+Mn(i)+1,t),r=Qu(n.abs(),!1,e+Mn(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};At.toInteger=At.toint=function(){var e=this,t=e.constructor;return Ur(new t(e),Mn(e)+1,t.rounding)};At.toNumber=function(){return+this};At.toPower=At.pow=function(e){var t,r,n,i,o,a,s=this,l=s.constructor,A=12,u=+(e=new l(e));if(!e.s)return new l(Oo);if(s=new l(s),!s.s){if(e.s<1)throw Error(ga+"Infinity");return s}if(s.eq(Oo))return s;if(n=l.precision,e.eq(Oo))return Ur(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,o=s.s,a){if((r=u<0?-u:u)<=EV){for(i=new l(Oo),t=Math.ceil(n/Jr+4),sn=!1;r%2&&(i=i.times(s),rR(i.d,t)),r=Ap(r/2),r!==0;)s=s.times(s),rR(s.d,t);return sn=!0,e.s<0?new l(Oo).div(i):Ur(i,n)}}else if(o<0)throw Error(ga+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,sn=!1,i=e.times(cy(s,n+A)),sn=!0,i=SV(i),i.s=o,i};At.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=Mn(i),n=Qu(i,r<=o.toExpNeg||r>=o.toExpPos)):(Os(e,1,lp),t===void 0?t=o.rounding:Os(t,0,8),i=Ur(new o(i),e,t),r=Mn(i),n=Qu(i,e<=r||r<=o.toExpNeg,e)),n};At.toSignificantDigits=At.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Os(e,1,lp),t===void 0?t=n.rounding:Os(t,0,8)),Ur(new n(r),e,t)};At.toString=At.valueOf=At.val=At.toJSON=At[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Mn(e),r=e.constructor;return Qu(e,t<=r.toExpNeg||t>=r.toExpPos)};function _V(e,t){var r,n,i,o,a,s,l,A,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),sn?Ur(t,d):t;if(l=e.d,A=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(n=l,o=-o,s=A.length):(n=A,i=a,s=l.length),a=Math.ceil(d/Jr),s=a>s?a+1:s+1,o>s&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(s=l.length,o=A.length,s-o<0&&(o=s,n=A,A=l,l=n),r=0;o;)r=(l[--o]=l[o]+A[o]+r)/ei|0,l[o]%=ei;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,sn?Ur(t,d):t}function Os(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ku+e)}function bs(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)n=e[t]+"",r=Jr-n.length,r&&(o+=vA(r)),o+=n;a=e[t],n=a+"",r=Jr-n.length,r&&(o+=vA(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var xl=function(){function e(n,i){var o,a=0,s=n.length;for(n=n.slice();s--;)o=n[s]*i+a,n[s]=o%ei|0,a=o/ei|0;return a&&n.unshift(a),n}function t(n,i,o,a){var s,l;if(o!=a)l=o>a?1:-1;else for(s=l=0;s<o;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,o){for(var a=0;o--;)n[o]-=a,a=n[o]<i[o]?1:0,n[o]=a*ei+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,a){var s,l,A,u,d,h,f,g,p,v,m,w,b,E,B,_,F,O,k=n.constructor,j=n.s==i.s?1:-1,I=n.d,T=i.d;if(!n.s)return new k(n);if(!i.s)throw Error(ga+"Division by zero");for(l=n.e-i.e,F=T.length,B=I.length,f=new k(j),g=f.d=[],A=0;T[A]==(I[A]||0);)++A;if(T[A]>(I[A]||0)&&--l,o==null?w=o=k.precision:a?w=o+(Mn(n)-Mn(i))+1:w=o,w<0)return new k(0);if(w=w/Jr+2|0,A=0,F==1)for(u=0,T=T[0],w++;(A<B||u)&&w--;A++)b=u*ei+(I[A]||0),g[A]=b/T|0,u=b%T|0;else{for(u=ei/(T[0]+1)|0,u>1&&(T=e(T,u),I=e(I,u),F=T.length,B=I.length),E=F,p=I.slice(0,F),v=p.length;v<F;)p[v++]=0;O=T.slice(),O.unshift(0),_=T[0],T[1]>=ei/2&&++_;do u=0,s=t(T,p,F,v),s<0?(m=p[0],F!=v&&(m=m*ei+(p[1]||0)),u=m/_|0,u>1?(u>=ei&&(u=ei-1),d=e(T,u),h=d.length,v=p.length,s=t(d,p,h,v),s==1&&(u--,r(d,F<h?O:T,h))):(u==0&&(s=u=1),d=T.slice()),h=d.length,h<v&&d.unshift(0),r(p,d,v),s==-1&&(v=p.length,s=t(T,p,F,v),s<1&&(u++,r(p,F<v?O:T,v))),v=p.length):s===0&&(u++,p=[0]),g[A++]=u,s&&p[0]?p[v++]=I[E]||0:(p=[I[E]],v=1);while((E++<B||p[0]!==void 0)&&w--)}return g[0]||g.shift(),f.e=l,Ur(f,a?o+Mn(f)+1:o)}}();function SV(e,t){var r,n,i,o,a,s,l=0,A=0,u=e.constructor,d=u.precision;if(Mn(e)>16)throw Error(IN+Mn(e));if(!e.s)return new u(Oo);for(t==null?(sn=!1,s=d):s=t,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),A+=5;for(n=Math.log(Zc(2,A))/Math.LN10*2+5|0,s+=n,r=i=o=new u(Oo),u.precision=s;;){if(i=Ur(i.times(e),s),r=r.times(++l),a=o.plus(xl(i,r,s)),bs(a.d).slice(0,s)===bs(o.d).slice(0,s)){for(;A--;)o=Ur(o.times(o),s);return u.precision=d,t==null?(sn=!0,Ur(o,d)):o}o=a}}function Mn(e){for(var t=e.e*Jr,r=e.d[0];r>=10;r/=10)t++;return t}function R_(e,t,r){if(t>e.LN10.sd())throw sn=!0,r&&(e.precision=r),Error(ga+"LN10 precision limit exceeded");return Ur(new e(e.LN10),t)}function vA(e){for(var t="";e--;)t+="0";return t}function cy(e,t){var r,n,i,o,a,s,l,A,u,d=1,h=10,f=e,g=f.d,p=f.constructor,v=p.precision;if(f.s<1)throw Error(ga+(f.s?"NaN":"-Infinity"));if(f.eq(Oo))return new p(0);if(t==null?(sn=!1,A=v):A=t,f.eq(10))return t==null&&(sn=!0),R_(p,A);if(A+=h,p.precision=A,r=bs(g),n=r.charAt(0),o=Mn(f),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)f=f.times(e),r=bs(f.d),n=r.charAt(0),d++;o=Mn(f),n>1?(f=new p("0."+r),o++):f=new p(n+"."+r.slice(1))}else return l=R_(p,A+2,v).times(o+""),f=cy(new p(n+"."+r.slice(1)),A-h).plus(l),p.precision=v,t==null?(sn=!0,Ur(f,v)):f;for(s=a=f=xl(f.minus(Oo),f.plus(Oo),A),u=Ur(f.times(f),A),i=3;;){if(a=Ur(a.times(u),A),l=s.plus(xl(a,new p(i),A)),bs(l.d).slice(0,A)===bs(s.d).slice(0,A))return s=s.times(2),o!==0&&(s=s.plus(R_(p,A+2,v).times(o+""))),s=xl(s,new p(d),A),p.precision=v,t==null?(sn=!0,Ur(s,v)):s;s=l,i+=2}}function tR(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ap(r/Jr),e.d=[],n=(r+1)%Jr,r<0&&(n+=Jr),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Jr;n<i;)e.d.push(+t.slice(n,n+=Jr));t=t.slice(n),n=Jr-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),sn&&(e.e>Nb||e.e<-Nb))throw Error(IN+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ur(e,t,r){var n,i,o,a,s,l,A,u,d=e.d;for(a=1,o=d[0];o>=10;o/=10)a++;if(n=t-a,n<0)n+=Jr,i=t,A=d[u=0];else{if(u=Math.ceil((n+1)/Jr),o=d.length,u>=o)return e;for(A=o=d[u],a=1;o>=10;o/=10)a++;n%=Jr,i=n-Jr+a}if(r!==void 0&&(o=Zc(10,a-i-1),s=A/o%10|0,l=t<0||d[u+1]!==void 0||A%o,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?A/Zc(10,a-i):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return l?(o=Mn(e),d.length=1,t=t-o-1,d[0]=Zc(10,(Jr-t%Jr)%Jr),e.e=Ap(-t/Jr)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(n==0?(d.length=u,o=1,u--):(d.length=u+1,o=Zc(10,Jr-n),d[u]=i>0?(A/Zc(10,a-i)%Zc(10,i)|0)*o:0),l)for(;;)if(u==0){(d[0]+=o)==ei&&(d[0]=1,++e.e);break}else{if(d[u]+=o,d[u]!=ei)break;d[u--]=0,o=1}for(n=d.length;d[--n]===0;)d.pop();if(sn&&(e.e>Nb||e.e<-Nb))throw Error(IN+Mn(e));return e}function CV(e,t){var r,n,i,o,a,s,l,A,u,d,h=e.constructor,f=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),sn?Ur(t,f):t;if(l=e.d,d=t.d,n=t.e,A=e.e,l=l.slice(),a=A-n,a){for(u=a<0,u?(r=l,a=-a,s=d.length):(r=d,n=A,s=l.length),i=Math.max(Math.ceil(f/Jr),s)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=d.length,u=i<s,u&&(s=i),i=0;i<s;i++)if(l[i]!=d[i]){u=l[i]<d[i];break}a=0}for(u&&(r=l,l=d,d=r,t.s=-t.s),s=l.length,i=d.length-s;i>0;--i)l[s++]=0;for(i=d.length;i>a;){if(l[--i]<d[i]){for(o=i;o&&l[--o]===0;)l[o]=ei-1;--l[o],l[i]+=ei}l[i]-=d[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,sn?Ur(t,f):t):new h(0)}function Qu(e,t,r){var n,i=Mn(e),o=bs(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+vA(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+vA(-i-1)+o,r&&(n=r-a)>0&&(o+=vA(n))):i>=a?(o+=vA(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+vA(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=vA(n))),e.s<0?"-"+o:o}function rR(e,t){if(e.length>t)return e.length=t,!0}function IV(e){var t,r,n;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(ku+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return tR(a,o.toString())}else if(typeof o!="string")throw Error(ku+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,pNe.test(o))tR(a,o);else throw Error(ku+o)}if(i.prototype=At,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=IV,i.config=i.set=gNe,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function gNe(e){if(!e||typeof e!="object")throw Error(ga+"Object expected");var t,r,n,i=["precision",1,lp,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Ap(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(ku+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ku+r+": "+n);return this}var kN=IV(fNe);Oo=new kN(1);const Nr=kN;function mNe(e){return bNe(e)||wNe(e)||vNe(e)||yNe()}function yNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
519In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vNe(e,t){if(e){if(typeof e=="string")return Y5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y5(e,t)}}function wNe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function bNe(e){if(Array.isArray(e))return Y5(e)}function Y5(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var xNe=function(t){return t},kV={"@@functional/placeholder":!0},FV=function(t){return t===kV},nR=function(t){return function r(){return arguments.length===0||arguments.length===1&&FV(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},BNe=function e(t,r){return t===1?r:nR(function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter(function(s){return s!==kV}).length;return a>=t?r.apply(void 0,i):e(t-a,nR(function(){for(var s=arguments.length,l=new Array(s),A=0;A<s;A++)l[A]=arguments[A];var u=i.map(function(d){return FV(d)?l.shift():d});return r.apply(void 0,mNe(u).concat(l))}))})},N2=function(t){return BNe(t.length,t)},q5=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},ENe=N2(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),_Ne=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return xNe;var i=r.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(s,l){return l(s)},o.apply(void 0,arguments))}},X5=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},NV=function(t){var r=null,n=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r&&o.every(function(s,l){return s===r[l]})||(r=o,n=t.apply(void 0,o)),n}};function SNe(e){var t;return e===0?t=1:t=Math.floor(new Nr(e).abs().log(10).toNumber())+1,t}function CNe(e,t,r){for(var n=new Nr(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var INe=N2(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),kNe=N2(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),FNe=N2(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const T2={rangeStep:CNe,getDigitCount:SNe,interpolateNumber:INe,uninterpolateNumber:kNe,uninterpolateTruncation:FNe};function J5(e){return ONe(e)||TNe(e)||TV(e)||NNe()}function NNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
520In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TNe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ONe(e){if(Array.isArray(e))return Z5(e)}function uy(e,t){return LNe(e)||PNe(e,t)||TV(e,t)||jNe()}function jNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
521In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TV(e,t){if(e){if(typeof e=="string")return Z5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Z5(e,t)}}function Z5(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PNe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,o=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw o}}return r}}function LNe(e){if(Array.isArray(e))return e}function OV(e){var t=uy(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function jV(e,t,r){if(e.lte(0))return new Nr(0);var n=T2.getDigitCount(e.toNumber()),i=new Nr(10).pow(n),o=e.div(i),a=n!==1?.05:.1,s=new Nr(Math.ceil(o.div(a).toNumber())).add(r).mul(a),l=s.mul(i);return t?l:new Nr(Math.ceil(l))}function UNe(e,t,r){var n=1,i=new Nr(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new Nr(10).pow(T2.getDigitCount(e)-1),i=new Nr(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new Nr(Math.floor(e)))}else e===0?i=new Nr(Math.floor((t-1)/2)):r||(i=new Nr(Math.floor(e)));var a=Math.floor((t-1)/2),s=_Ne(ENe(function(l){return i.add(new Nr(l-a).mul(n)).toNumber()}),q5);return s(0,t)}function PV(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Nr(0),tickMin:new Nr(0),tickMax:new Nr(0)};var o=jV(new Nr(t).sub(e).div(r-1),n,i),a;e<=0&&t>=0?a=new Nr(0):(a=new Nr(e).add(t).div(2),a=a.sub(new Nr(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new Nr(t).sub(a).div(o).toNumber()),A=s+l+1;return A>r?PV(e,t,r,n,i+1):(A<r&&(l=t>0?l+(r-A):l,s=t>0?s:s+(r-A)),{step:o,tickMin:a.sub(new Nr(s).mul(o)),tickMax:a.add(new Nr(l).mul(o))})}function RNe(e){var t=uy(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=OV([r,n]),l=uy(s,2),A=l[0],u=l[1];if(A===-1/0||u===1/0){var d=u===1/0?[A].concat(J5(q5(0,i-1).map(function(){return 1/0}))):[].concat(J5(q5(0,i-1).map(function(){return-1/0})),[u]);return r>n?X5(d):d}if(A===u)return UNe(A,i,o);var h=PV(A,u,a,o),f=h.step,g=h.tickMin,p=h.tickMax,v=T2.rangeStep(g,p.add(new Nr(.1).mul(f)),f);return r>n?X5(v):v}function DNe(e,t){var r=uy(e,2),n=r[0],i=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=OV([n,i]),s=uy(a,2),l=s[0],A=s[1];if(l===-1/0||A===1/0)return[n,i];if(l===A)return[l];var u=Math.max(t,2),d=jV(new Nr(A).sub(l).div(u-1),o,0),h=[].concat(J5(T2.rangeStep(new Nr(l),new Nr(A).sub(new Nr(.99).mul(d)),d)),[A]);return n>i?X5(h):h}var QNe=NV(RNe),MNe=NV(DNe),$Ne="Invariant failed";function Bf(e,t){throw new Error($Ne)}var HNe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ef(e){"@babel/helpers - typeof";return Ef=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},Ef(e)}function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tb.apply(this,arguments)}function KNe(e,t){return GNe(e)||WNe(e,t)||zNe(e,t)||VNe()}function VNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
522In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zNe(e,t){if(e){if(typeof e=="string")return iR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iR(e,t)}}function iR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WNe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function GNe(e){if(Array.isArray(e))return e}function YNe(e,t){if(e==null)return{};var r=qNe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qNe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function XNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JNe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RV(n.key),n)}}function ZNe(e,t,r){return t&&JNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eTe(e,t,r){return t=Ob(t),tTe(e,LV()?Reflect.construct(t,r||[],Ob(e).constructor):t.apply(e,r))}function tTe(e,t){if(t&&(Ef(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rTe(e)}function rTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LV=function(){return!!e})()}function Ob(e){return Ob=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ob(e)}function nTe(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&&eI(e,t)}function eI(e,t){return eI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eI(e,t)}function UV(e,t,r){return t=RV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RV(e){var t=iTe(e,"string");return Ef(t)=="symbol"?t:t+""}function iTe(e,t){if(Ef(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ef(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FN=function(e){function t(){return XNe(this,t),eTe(this,t,arguments)}return nTe(t,e),ZNe(t,[{key:"render",value:function(){var n=this.props,i=n.offset,o=n.layout,a=n.width,s=n.dataKey,l=n.data,A=n.dataPointFormatter,u=n.xAxis,d=n.yAxis,h=YNe(n,HNe),f=Dt(h,!1);this.props.direction==="x"&&u.type!=="number"&&Bf();var g=l.map(function(p){var v=A(p,s),m=v.x,w=v.y,b=v.value,E=v.errorVal;if(!E)return null;var B=[],_,F;if(Array.isArray(E)){var O=KNe(E,2);_=O[0],F=O[1]}else _=F=E;if(o==="vertical"){var k=u.scale,j=w+i,I=j+a,T=j-a,U=k(b-_),R=k(b+F);B.push({x1:R,y1:I,x2:R,y2:T}),B.push({x1:U,y1:j,x2:R,y2:j}),B.push({x1:U,y1:I,x2:U,y2:T})}else if(o==="horizontal"){var G=d.scale,K=m+i,V=K-a,Q=K+a,H=G(b-_),q=G(b+F);B.push({x1:V,y1:q,x2:Q,y2:q}),B.push({x1:K,y1:H,x2:K,y2:q}),B.push({x1:V,y1:H,x2:Q,y2:H})}return oe.createElement(en,Tb({className:"recharts-errorBar",key:"bar-".concat(B.map(function(re){return"".concat(re.x1,"-").concat(re.x2,"-").concat(re.y1,"-").concat(re.y2)}))},f),B.map(function(re){return oe.createElement("line",Tb({},re,{key:"line-".concat(re.x1,"-").concat(re.x2,"-").concat(re.y1,"-").concat(re.y2)}))}))});return oe.createElement(en,{className:"recharts-errorBars"},g)}}])}(oe.Component);UV(FN,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});UV(FN,"displayName","ErrorBar");function dy(e){"@babel/helpers - typeof";return dy=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},dy(e)}function oR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $c(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oR(Object(r),!0).forEach(function(n){oTe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oTe(e,t,r){return t=aTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aTe(e){var t=sTe(e,"string");return dy(t)=="symbol"?t:t+""}function sTe(e,t){if(dy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DV=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=ea(r,Qh);if(!a)return null;var s=Qh.defaultProps,l=s!==void 0?$c($c({},s),a.props):{},A;return a.props&&a.props.payload?A=a.props&&a.props.payload:o==="children"?A=(n||[]).reduce(function(u,d){var h=d.item,f=d.props,g=f.sectors||f.data||[];return u.concat(g.map(function(p){return{type:a.props.iconType||h.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):A=(n||[]).map(function(u){var d=u.item,h=d.type.defaultProps,f=h!==void 0?$c($c({},h),d.props):{},g=f.dataKey,p=f.name,v=f.legendType,m=f.hide;return{inactive:m,dataKey:g,type:l.iconType||v||"square",color:NN(d),value:p||g,payload:f}}),$c($c($c({},l),Qh.getWithHeight(a,i)),{},{payload:A,item:a})};function hy(e){"@babel/helpers - typeof";return hy=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},hy(e)}function aR(e){return uTe(e)||cTe(e)||ATe(e)||lTe()}function lTe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
523In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ATe(e,t){if(e){if(typeof e=="string")return tI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tI(e,t)}}function cTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uTe(e){if(Array.isArray(e))return tI(e)}function tI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sR(Object(r),!0).forEach(function(n){$h(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $h(e,t,r){return t=dTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dTe(e){var t=hTe(e,"string");return hy(t)=="symbol"?t:t+""}function hTe(e,t){if(hy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gi(e,t,r){return tr(e)||tr(t)?r:qn(t)?Qa(e,t,r):Wt(t)?t(e):r}function im(e,t,r,n){var i=cNe(e,function(s){return Gi(s,t)});if(r==="number"){var o=i.filter(function(s){return ot(s)||parseFloat(s)});return o.length?[k2(o),I2(o)]:[1/0,-1/0]}var a=n?i.filter(function(s){return!tr(s)}):i;return a.map(function(s){return qn(s)||s instanceof Date?s:""})}var fTe=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,A=0;A<s;A++){var u=A>0?i[A-1].coordinate:i[s-1].coordinate,d=i[A].coordinate,h=A>=s-1?i[0].coordinate:i[A+1].coordinate,f=void 0;if(ca(d-u)!==ca(h-d)){var g=[];if(ca(h-d)===ca(l[1]-l[0])){f=h;var p=d+l[1]-l[0];g[0]=Math.min(p,(p+u)/2),g[1]=Math.max(p,(p+u)/2)}else{f=u;var v=h+l[1]-l[0];g[0]=Math.min(d,(v+d)/2),g[1]=Math.max(d,(v+d)/2)}var m=[Math.min(d,(f+d)/2),Math.max(d,(f+d)/2)];if(t>m[0]&&t<=m[1]||t>=g[0]&&t<=g[1]){a=i[A].index;break}}else{var w=Math.min(u,h),b=Math.max(u,h);if(t>(w+d)/2&&t<=(b+d)/2){a=i[A].index;break}}}else for(var E=0;E<s;E++)if(E===0&&t<=(n[E].coordinate+n[E+1].coordinate)/2||E>0&&E<s-1&&t>(n[E].coordinate+n[E-1].coordinate)/2&&t<=(n[E].coordinate+n[E+1].coordinate)/2||E===s-1&&t>(n[E].coordinate+n[E-1].coordinate)/2){a=n[E].index;break}return a},NN=function(t){var r,n=t,i=n.type.displayName,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?xn(xn({},t.type.defaultProps),t.props):t.props,a=o.stroke,s=o.fill,l;switch(i){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:s;break;default:l=s;break}return l},pTe=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),l=0,A=s.length;l<A;l++)for(var u=o[s[l]].stackGroups,d=Object.keys(u),h=0,f=d.length;h<f;h++){var g=u[d[h]],p=g.items,v=g.cateAxisId,m=p.filter(function(F){return wl(F.type).indexOf("Bar")>=0});if(m&&m.length){var w=m[0].type.defaultProps,b=w!==void 0?xn(xn({},w),m[0].props):m[0].props,E=b.barSize,B=b[v];a[B]||(a[B]=[]);var _=tr(E)?r:E;a[B].push({item:m[0],stackList:m.slice(1),barSize:tr(_)?void 0:co(_,n,0)})}}return a},gTe=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,l=a.length;if(l<1)return null;var A=co(r,i,0,!0),u,d=[];if(a[0].barSize===+a[0].barSize){var h=!1,f=i/l,g=a.reduce(function(E,B){return E+B.barSize||0},0);g+=(l-1)*A,g>=i&&(g-=(l-1)*A,A=0),g>=i&&f>0&&(h=!0,f*=.9,g=l*f);var p=(i-g)/2>>0,v={offset:p-A,size:0};u=a.reduce(function(E,B){var _={item:B.item,position:{offset:v.offset+v.size+A,size:h?f:B.barSize}},F=[].concat(aR(E),[_]);return v=F[F.length-1].position,B.stackList&&B.stackList.length&&B.stackList.forEach(function(O){F.push({item:O,position:v})}),F},d)}else{var m=co(n,i,0,!0);i-2*m-(l-1)*A<=0&&(A=0);var w=(i-2*m-(l-1)*A)/l;w>1&&(w>>=0);var b=s===+s?Math.min(w,s):w;u=a.reduce(function(E,B,_){var F=[].concat(aR(E),[{item:B.item,position:{offset:m+(w+A)*_+(w-b)/2,size:b}}]);return B.stackList&&B.stackList.length&&B.stackList.forEach(function(O){F.push({item:O,position:F[F.length-1].position})}),F},d)}return u},mTe=function(t,r,n,i){var o=n.children,a=n.width,s=n.margin,l=a-(s.left||0)-(s.right||0),A=DV({children:o,legendWidth:l});if(A){var u=i||{},d=u.width,h=u.height,f=A.align,g=A.verticalAlign,p=A.layout;if((p==="vertical"||p==="horizontal"&&g==="middle")&&f!=="center"&&ot(t[f]))return xn(xn({},t),{},$h({},f,t[f]+(d||0)));if((p==="horizontal"||p==="vertical"&&f==="center")&&g!=="middle"&&ot(t[g]))return xn(xn({},t),{},$h({},g,t[g]+(h||0)))}return t},yTe=function(t,r,n){return tr(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},QV=function(t,r,n,i,o){var a=r.props.children,s=Is(a,FN).filter(function(A){return yTe(i,o,A.props.direction)});if(s&&s.length){var l=s.map(function(A){return A.props.dataKey});return t.reduce(function(A,u){var d=Gi(u,n);if(tr(d))return A;var h=Array.isArray(d)?[k2(d),I2(d)]:[d,d],f=l.reduce(function(g,p){var v=Gi(u,p,0),m=h[0]-Math.abs(Array.isArray(v)?v[0]:v),w=h[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(m,g[0]),Math.max(w,g[1])]},[1/0,-1/0]);return[Math.min(f[0],A[0]),Math.max(f[1],A[1])]},[1/0,-1/0])}return null},vTe=function(t,r,n,i,o){var a=r.map(function(s){return QV(t,s,n,o,i)}).filter(function(s){return!tr(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},MV=function(t,r,n,i,o){var a=r.map(function(l){var A=l.props.dataKey;return n==="number"&&A&&QV(t,l,A,i)||im(t,A,n,o)});if(n==="number")return a.reduce(function(l,A){return[Math.min(l[0],A[0]),Math.max(l[1],A[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,A){for(var u=0,d=A.length;u<d;u++)s[A[u]]||(s[A[u]]=!0,l.push(A[u]));return l},[])},$V=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Ig=function(t,r,n){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,A=(r||n)&&a==="category"&&i.bandwidth?i.bandwidth()/l:0;if(A=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?ca(s[0]-s[1])*2*A:A,r&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(d){var h=o?o.indexOf(d):d;return{coordinate:i(h)+A,value:d,offset:A}});return u.filter(function(d){return!nv(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,h){return{coordinate:i(d)+A,value:d,index:h,offset:A}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+A,value:d,offset:A}}):i.domain().map(function(d,h){return{coordinate:i(d)+A,value:o?o[d]:d,index:h,offset:A}})},D_=new WeakMap,uw=function(t,r){if(typeof r!="function")return t;D_.has(t)||D_.set(t,new WeakMap);var n=D_.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},wTe=function(t,r,n){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:oy(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Cb(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:nm(),realScaleType:"point"}:o==="category"?{scale:oy(),realScaleType:"band"}:{scale:Cb(),realScaleType:"linear"};if(rv(i)){var l="scale".concat(f2(i));return{scale:(eR[l]||nm)(),realScaleType:eR[l]?l:"point"}}return Wt(i)?{scale:i}:{scale:nm(),realScaleType:"point"}},lR=1e-4,bTe=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),o=Math.min(i[0],i[1])-lR,a=Math.max(i[0],i[1])+lR,s=t(r[0]),l=t(r[n-1]);(s<o||s>a||l<o||l>a)&&t.domain([r[0],r[n-1]])}},xTe=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,a=0,s=0;s<r;++s){var l=nv(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1]):(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1])}},BTe=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,a=0;a<r;++a){var s=nv(t[a][n][1])?t[a][n][0]:t[a][n][1];s>=0?(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1]):(t[a][n][0]=0,t[a][n][1]=0)}},ETe={sign:xTe,expand:$1e,none:ff,silhouette:H1e,wiggle:K1e,positive:BTe},_Te=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),o=ETe[n],a=M1e().keys(i).value(function(s,l){return+Gi(s,l,0)}).order(S5).offset(o);return a(t)},STe=function(t,r,n,i,o,a){if(!t)return null;var s=a?r.reverse():r,l={},A=s.reduce(function(d,h){var f,g=(f=h.type)!==null&&f!==void 0&&f.defaultProps?xn(xn({},h.type.defaultProps),h.props):h.props,p=g.stackId,v=g.hide;if(v)return d;var m=g[n],w=d[m]||{hasStack:!1,stackGroups:{}};if(qn(p)){var b=w.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),w.hasStack=!0,w.stackGroups[p]=b}else w.stackGroups[d2("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return xn(xn({},d),{},$h({},m,w))},l),u={};return Object.keys(A).reduce(function(d,h){var f=A[h];if(f.hasStack){var g={};f.stackGroups=Object.keys(f.stackGroups).reduce(function(p,v){var m=f.stackGroups[v];return xn(xn({},p),{},$h({},v,{numericAxisId:n,cateAxisId:i,items:m.items,stackedData:_Te(t,m.items,o)}))},g)}return xn(xn({},d),{},$h({},h,f))},u)},CTe=function(t,r){var n=r.realScaleType,i=r.type,o=r.tickCount,a=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var A=t.domain();if(!A.length)return null;var u=QNe(A,o,s);return t.domain([k2(u),I2(u)]),{niceTicks:u}}if(o&&i==="number"){var d=t.domain(),h=MNe(d,o,s);return{niceTicks:h}}return null},ITe=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?xn(xn({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(qn(o)){var a=r[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},kTe=function(t){return t.reduce(function(r,n){return[k2(n.concat([r[0]]).filter(ot)),I2(n.concat([r[1]]).filter(ot))]},[1/0,-1/0])},HV=function(t,r,n){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,l=s.reduce(function(A,u){var d=kTe(u.slice(r,n+1));return[Math.min(A[0],d[0]),Math.max(A[1],d[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})},AR=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cR=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rI=function(t,r,n){if(Wt(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(ot(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(AR.test(t[0])){var o=+AR.exec(t[0])[1];i[0]=r[0]-o}else Wt(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(ot(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(cR.test(t[1])){var a=+cR.exec(t[1])[1];i[1]=r[1]+a}else Wt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},nI=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var o=iN(r,function(d){return d.coordinate}),a=1/0,s=1,l=o.length;s<l;s++){var A=o[s],u=o[s-1];a=Math.min((A.coordinate||0)-(u.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},uR=function(t,r,n){return!t||!t.length||F2(t,Qa(n,"type.defaultProps.domain"))?r:t},FTe=function(t,r){var n=t.type.defaultProps?xn(xn({},t.type.defaultProps),t.props):t.props,i=n.dataKey,o=n.name,a=n.unit,s=n.formatter,l=n.tooltipType,A=n.chartType,u=n.hide;return xn(xn({},Dt(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:NN(t),value:Gi(r,i),type:l,payload:r,chartType:A,hide:u})};function fy(e){"@babel/helpers - typeof";return fy=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},fy(e)}function dR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ll(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dR(Object(r),!0).forEach(function(n){KV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KV(e,t,r){return t=NTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NTe(e){var t=TTe(e,"string");return fy(t)=="symbol"?t:t+""}function TTe(e,t){if(fy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OTe(e,t){return UTe(e)||LTe(e,t)||PTe(e,t)||jTe()}function jTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
524In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PTe(e,t){if(e){if(typeof e=="string")return hR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hR(e,t)}}function hR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function LTe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function UTe(e){if(Array.isArray(e))return e}var jb=Math.PI/180,RTe=function(t){return t*180/Math.PI},gr=function(t,r,n,i){return{x:t+Math.cos(-jb*i)*n,y:r+Math.sin(-jb*i)*n}},VV=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},zV=function(t,r,n,i,o){var a=t.width,s=t.height,l=t.startAngle,A=t.endAngle,u=co(t.cx,a,a/2),d=co(t.cy,s,s/2),h=VV(a,s,n),f=co(t.innerRadius,h,0),g=co(t.outerRadius,h,h*.8),p=Object.keys(r);return p.reduce(function(v,m){var w=r[m],b=w.domain,E=w.reversed,B;if(tr(w.range))i==="angleAxis"?B=[l,A]:i==="radiusAxis"&&(B=[f,g]),E&&(B=[B[1],B[0]]);else{B=w.range;var _=B,F=OTe(_,2);l=F[0],A=F[1]}var O=wTe(w,o),k=O.realScaleType,j=O.scale;j.domain(b).range(B),bTe(j);var I=CTe(j,ll(ll({},w),{},{realScaleType:k})),T=ll(ll(ll({},w),I),{},{range:B,radius:g,realScaleType:k,scale:j,cx:u,cy:d,innerRadius:f,outerRadius:g,startAngle:l,endAngle:A});return ll(ll({},v),{},KV({},m,T))},{})},DTe=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(i-a,2))},QTe=function(t,r){var n=t.x,i=t.y,o=r.cx,a=r.cy,s=DTe({x:n,y:i},{x:o,y:a});if(s<=0)return{radius:s};var l=(n-o)/s,A=Math.acos(l);return i>a&&(A=2*Math.PI-A),{radius:s,angle:RTe(A),angleInRadian:A}},MTe=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360),a=Math.min(i,o);return{startAngle:r-a*360,endAngle:n-a*360}},$Te=function(t,r){var n=r.startAngle,i=r.endAngle,o=Math.floor(n/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},fR=function(t,r){var n=t.x,i=t.y,o=QTe({x:n,y:i},r),a=o.radius,s=o.angle,l=r.innerRadius,A=r.outerRadius;if(a<l||a>A)return!1;if(a===0)return!0;var u=MTe(r),d=u.startAngle,h=u.endAngle,f=s,g;if(d<=h){for(;f>h;)f-=360;for(;f<d;)f+=360;g=f>=d&&f<=h}else{for(;f>d;)f-=360;for(;f<h;)f+=360;g=f>=h&&f<=d}return g?ll(ll({},r),{},{radius:a,angle:$Te(f,r)}):null},WV=function(t){return!S.isValidElement(t)&&!Wt(t)&&typeof t!="boolean"?t.className:""};function py(e){"@babel/helpers - typeof";return py=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},py(e)}var HTe=["offset"];function KTe(e){return GTe(e)||WTe(e)||zTe(e)||VTe()}function VTe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
525In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zTe(e,t){if(e){if(typeof e=="string")return iI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iI(e,t)}}function WTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GTe(e){if(Array.isArray(e))return iI(e)}function iI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function YTe(e,t){if(e==null)return{};var r=qTe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qTe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pR(Object(r),!0).forEach(function(n){XTe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XTe(e,t,r){return t=JTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JTe(e){var t=ZTe(e,"string");return py(t)=="symbol"?t:t+""}function ZTe(e,t){if(py(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(py(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gy.apply(this,arguments)}var e4e=function(t){var r=t.value,n=t.formatter,i=tr(t.children)?r:t.children;return Wt(n)?n(i):i},t4e=function(t,r){var n=ca(r-t),i=Math.min(Math.abs(r-t),360);return n*i},r4e=function(t,r,n){var i=t.position,o=t.viewBox,a=t.offset,s=t.className,l=o,A=l.cx,u=l.cy,d=l.innerRadius,h=l.outerRadius,f=l.startAngle,g=l.endAngle,p=l.clockWise,v=(d+h)/2,m=t4e(f,g),w=m>=0?1:-1,b,E;i==="insideStart"?(b=f+w*a,E=p):i==="insideEnd"?(b=g-w*a,E=!p):i==="end"&&(b=g+w*a,E=p),E=m<=0?E:!E;var B=gr(A,u,v,b),_=gr(A,u,v,b+(E?1:-1)*359),F="M".concat(B.x,",").concat(B.y,`
526    A`).concat(v,",").concat(v,",0,1,").concat(E?0:1,`,
527    `).concat(_.x,",").concat(_.y),O=tr(t.id)?d2("recharts-radial-line-"):t.id;return oe.createElement("text",gy({},n,{dominantBaseline:"central",className:er("recharts-radial-bar-label",s)}),oe.createElement("defs",null,oe.createElement("path",{id:O,d:F})),oe.createElement("textPath",{xlinkHref:"#".concat(O)},r))},n4e=function(t){var r=t.viewBox,n=t.offset,i=t.position,o=r,a=o.cx,s=o.cy,l=o.innerRadius,A=o.outerRadius,u=o.startAngle,d=o.endAngle,h=(u+d)/2;if(i==="outside"){var f=gr(a,s,A+n,h),g=f.x,p=f.y;return{x:g,y:p,textAnchor:g>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+A)/2,m=gr(a,s,v,h),w=m.x,b=m.y;return{x:w,y:b,textAnchor:"middle",verticalAnchor:"middle"}},i4e=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,o=t.position,a=r,s=a.x,l=a.y,A=a.width,u=a.height,d=u>=0?1:-1,h=d*i,f=d>0?"end":"start",g=d>0?"start":"end",p=A>=0?1:-1,v=p*i,m=p>0?"end":"start",w=p>0?"start":"end";if(o==="top"){var b={x:s+A/2,y:l-d*i,textAnchor:"middle",verticalAnchor:f};return zn(zn({},b),n?{height:Math.max(l-n.y,0),width:A}:{})}if(o==="bottom"){var E={x:s+A/2,y:l+u+h,textAnchor:"middle",verticalAnchor:g};return zn(zn({},E),n?{height:Math.max(n.y+n.height-(l+u),0),width:A}:{})}if(o==="left"){var B={x:s-v,y:l+u/2,textAnchor:m,verticalAnchor:"middle"};return zn(zn({},B),n?{width:Math.max(B.x-n.x,0),height:u}:{})}if(o==="right"){var _={x:s+A+v,y:l+u/2,textAnchor:w,verticalAnchor:"middle"};return zn(zn({},_),n?{width:Math.max(n.x+n.width-_.x,0),height:u}:{})}var F=n?{width:A,height:u}:{};return o==="insideLeft"?zn({x:s+v,y:l+u/2,textAnchor:w,verticalAnchor:"middle"},F):o==="insideRight"?zn({x:s+A-v,y:l+u/2,textAnchor:m,verticalAnchor:"middle"},F):o==="insideTop"?zn({x:s+A/2,y:l+h,textAnchor:"middle",verticalAnchor:g},F):o==="insideBottom"?zn({x:s+A/2,y:l+u-h,textAnchor:"middle",verticalAnchor:f},F):o==="insideTopLeft"?zn({x:s+v,y:l+h,textAnchor:w,verticalAnchor:g},F):o==="insideTopRight"?zn({x:s+A-v,y:l+h,textAnchor:m,verticalAnchor:g},F):o==="insideBottomLeft"?zn({x:s+v,y:l+u-h,textAnchor:w,verticalAnchor:f},F):o==="insideBottomRight"?zn({x:s+A-v,y:l+u-h,textAnchor:m,verticalAnchor:f},F):ep(o)&&(ot(o.x)||fu(o.x))&&(ot(o.y)||fu(o.y))?zn({x:s+co(o.x,A),y:l+co(o.y,u),textAnchor:"end",verticalAnchor:"end"},F):zn({x:s+A/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},F)},o4e=function(t){return"cx"in t&&ot(t.cx)};function gi(e){var t=e.offset,r=t===void 0?5:t,n=YTe(e,HTe),i=zn({offset:r},n),o=i.viewBox,a=i.position,s=i.value,l=i.children,A=i.content,u=i.className,d=u===void 0?"":u,h=i.textBreakAll;if(!o||tr(s)&&tr(l)&&!S.isValidElement(A)&&!Wt(A))return null;if(S.isValidElement(A))return S.cloneElement(A,i);var f;if(Wt(A)){if(f=S.createElement(A,i),S.isValidElement(f))return f}else f=e4e(i);var g=o4e(o),p=Dt(i,!0);if(g&&(a==="insideStart"||a==="insideEnd"||a==="end"))return r4e(i,f,p);var v=g?n4e(i):i4e(i);return oe.createElement(vf,gy({className:er("recharts-label",d)},p,v,{breakAll:h}),f)}gi.displayName="Label";var GV=function(t){var r=t.cx,n=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,A=t.innerRadius,u=t.outerRadius,d=t.x,h=t.y,f=t.top,g=t.left,p=t.width,v=t.height,m=t.clockWise,w=t.labelViewBox;if(w)return w;if(ot(p)&&ot(v)){if(ot(d)&&ot(h))return{x:d,y:h,width:p,height:v};if(ot(f)&&ot(g))return{x:f,y:g,width:p,height:v}}return ot(d)&&ot(h)?{x:d,y:h,width:0,height:0}:ot(r)&&ot(n)?{cx:r,cy:n,startAngle:o||i||0,endAngle:a||i||0,innerRadius:A||0,outerRadius:u||l||s||0,clockWise:m}:t.viewBox?t.viewBox:{}},a4e=function(t,r){return t?t===!0?oe.createElement(gi,{key:"label-implicit",viewBox:r}):qn(t)?oe.createElement(gi,{key:"label-implicit",viewBox:r,value:t}):S.isValidElement(t)?t.type===gi?S.cloneElement(t,{key:"label-implicit",viewBox:r}):oe.createElement(gi,{key:"label-implicit",content:t,viewBox:r}):Wt(t)?oe.createElement(gi,{key:"label-implicit",content:t,viewBox:r}):ep(t)?oe.createElement(gi,gy({viewBox:r},t,{key:"label-implicit"})):null:null},s4e=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=GV(t),a=Is(i,gi).map(function(l,A){return S.cloneElement(l,{viewBox:r||o,key:"label-".concat(A)})});if(!n)return a;var s=a4e(t.label,r||o);return[s].concat(KTe(a))};gi.parseViewBox=GV;gi.renderCallByParent=s4e;function l4e(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var A4e=l4e;const YV=xr(A4e);function my(e){"@babel/helpers - typeof";return my=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},my(e)}var c4e=["valueAccessor"],u4e=["data","dataKey","clockWise","id","textBreakAll"];function d4e(e){return g4e(e)||p4e(e)||f4e(e)||h4e()}function h4e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
528In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f4e(e,t){if(e){if(typeof e=="string")return oI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oI(e,t)}}function p4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function g4e(e){if(Array.isArray(e))return oI(e)}function oI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pb(){return Pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pb.apply(this,arguments)}function gR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gR(Object(r),!0).forEach(function(n){m4e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m4e(e,t,r){return t=y4e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y4e(e){var t=v4e(e,"string");return my(t)=="symbol"?t:t+""}function v4e(e,t){if(my(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(my(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yR(e,t){if(e==null)return{};var r=w4e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function w4e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var b4e=function(t){return Array.isArray(t.value)?YV(t.value):t.value};function tc(e){var t=e.valueAccessor,r=t===void 0?b4e:t,n=yR(e,c4e),i=n.data,o=n.dataKey,a=n.clockWise,s=n.id,l=n.textBreakAll,A=yR(n,u4e);return!i||!i.length?null:oe.createElement(en,{className:"recharts-label-list"},i.map(function(u,d){var h=tr(o)?r(u,d):Gi(u&&u.payload,o),f=tr(s)?{}:{id:"".concat(s,"-").concat(d)};return oe.createElement(gi,Pb({},Dt(u,!0),A,f,{parentViewBox:u.parentViewBox,value:h,textBreakAll:l,viewBox:gi.parseViewBox(tr(a)?u:mR(mR({},u),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}tc.displayName="LabelList";function x4e(e,t){return e?e===!0?oe.createElement(tc,{key:"labelList-implicit",data:t}):oe.isValidElement(e)||Wt(e)?oe.createElement(tc,{key:"labelList-implicit",data:t,content:e}):ep(e)?oe.createElement(tc,Pb({data:t},e,{key:"labelList-implicit"})):null:null}function B4e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Is(n,tc).map(function(a,s){return S.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var o=x4e(e.label,t);return[o].concat(d4e(i))}tc.renderCallByParent=B4e;function yy(e){"@babel/helpers - typeof";return yy=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},yy(e)}function aI(){return aI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aI.apply(this,arguments)}function vR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vR(Object(r),!0).forEach(function(n){E4e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E4e(e,t,r){return t=_4e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _4e(e){var t=S4e(e,"string");return yy(t)=="symbol"?t:t+""}function S4e(e,t){if(yy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C4e=function(t,r){var n=ca(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},dw=function(t){var r=t.cx,n=t.cy,i=t.radius,o=t.angle,a=t.sign,s=t.isExternal,l=t.cornerRadius,A=t.cornerIsExternal,u=l*(s?1:-1)+i,d=Math.asin(l/u)/jb,h=A?o:o+a*d,f=gr(r,n,u,h),g=gr(r,n,i,h),p=A?o-a*d:o,v=gr(r,n,u*Math.cos(d*jb),p);return{center:f,circleTangency:g,lineTangency:v,theta:d}},qV=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,l=C4e(a,s),A=a+l,u=gr(r,n,o,a),d=gr(r,n,o,A),h="M ".concat(u.x,",").concat(u.y,`
529    A `).concat(o,",").concat(o,`,0,
530    `).concat(+(Math.abs(l)>180),",").concat(+(a>A),`,
531    `).concat(d.x,",").concat(d.y,`
532  `);if(i>0){var f=gr(r,n,i,a),g=gr(r,n,i,A);h+="L ".concat(g.x,",").concat(g.y,`
533            A `).concat(i,",").concat(i,`,0,
534            `).concat(+(Math.abs(l)>180),",").concat(+(a<=A),`,
535            `).concat(f.x,",").concat(f.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},I4e=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,A=t.startAngle,u=t.endAngle,d=ca(u-A),h=dw({cx:r,cy:n,radius:o,angle:A,sign:d,cornerRadius:a,cornerIsExternal:l}),f=h.circleTangency,g=h.lineTangency,p=h.theta,v=dw({cx:r,cy:n,radius:o,angle:u,sign:-d,cornerRadius:a,cornerIsExternal:l}),m=v.circleTangency,w=v.lineTangency,b=v.theta,E=l?Math.abs(A-u):Math.abs(A-u)-p-b;if(E<0)return s?"M ".concat(g.x,",").concat(g.y,`
536        a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
537        a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
538      `):qV({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:A,endAngle:u});var B="M ".concat(g.x,",").concat(g.y,`
539    A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(f.x,",").concat(f.y,`
540    A`).concat(o,",").concat(o,",0,").concat(+(E>180),",").concat(+(d<0),",").concat(m.x,",").concat(m.y,`
541    A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(w.x,",").concat(w.y,`
542  `);if(i>0){var _=dw({cx:r,cy:n,radius:i,angle:A,sign:d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),F=_.circleTangency,O=_.lineTangency,k=_.theta,j=dw({cx:r,cy:n,radius:i,angle:u,sign:-d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),I=j.circleTangency,T=j.lineTangency,U=j.theta,R=l?Math.abs(A-u):Math.abs(A-u)-k-U;if(R<0&&a===0)return"".concat(B,"L").concat(r,",").concat(n,"Z");B+="L".concat(T.x,",").concat(T.y,`
543      A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(I.x,",").concat(I.y,`
544      A`).concat(i,",").concat(i,",0,").concat(+(R>180),",").concat(+(d>0),",").concat(F.x,",").concat(F.y,`
545      A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(O.x,",").concat(O.y,"Z")}else B+="L".concat(r,",").concat(n,"Z");return B},k4e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},XV=function(t){var r=wR(wR({},k4e),t),n=r.cx,i=r.cy,o=r.innerRadius,a=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,A=r.cornerIsExternal,u=r.startAngle,d=r.endAngle,h=r.className;if(a<o||u===d)return null;var f=er("recharts-sector",h),g=a-o,p=co(s,g,0,!0),v;return p>0&&Math.abs(u-d)<360?v=I4e({cx:n,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(p,g/2),forceCornerRadius:l,cornerIsExternal:A,startAngle:u,endAngle:d}):v=qV({cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:u,endAngle:d}),oe.createElement("path",aI({},Dt(r,!0),{className:f,d:v,role:"img"}))};function vy(e){"@babel/helpers - typeof";return vy=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},vy(e)}function sI(){return sI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
545for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sI.apply(this,arguments)}function bR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bR(Object(r),!0).forEach(function(n){F4e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F4e(e,t,r){return t=N4e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N4e(e){var t=T4e(e,"string");return vy(t)=="symbol"?t:t+""}function T4e(e,t){if(vy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BR={curveBasisClosed:F1e,curveBasisOpen:N1e,curveBasis:k1e,curveBumpX:p1e,curveBumpY:g1e,curveLinearClosed:T1e,curveLinear:g2,curveMonotoneX:O1e,curveMonotoneY:j1e,curveNatural:P1e,curveStep:L1e,curveStepAfter:R1e,curveStepBefore:U1e},hw=function(t){return t.x===+t.x&&t.y===+t.y},ag=function(t){return t.x},sg=function(t){return t.y},O4e=function(t,r){if(Wt(t))return t;var n="curve".concat(f2(t));return(n==="curveMonotone"||n==="curveBump")&&r?BR["".concat(n).concat(r==="vertical"?"Y":"X")]:BR[n]||g2},j4e=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,o=i===void 0?[]:i,a=t.baseLine,s=t.layout,l=t.connectNulls,A=l===void 0?!1:l,u=O4e(n,s),d=A?o.filter(function(p){return hw(p)}):o,h;if(Array.isArray(a)){var f=A?a.filter(function(p){return hw(p)}):a,g=d.map(function(p,v){return xR(xR({},p),{},{base:f[v]})});return s==="vertical"?h=nw().y(sg).x1(ag).x0(function(p){return p.base.x}):h=nw().x(ag).y1(sg).y0(function(p){return p.base.y}),h.defined(hw).curve(u),h(g)}return s==="vertical"&&ot(a)?h=nw().y(sg).x1(ag).x0(a):ot(a)?h=nw().x(ag).y1(sg).y0(a):h=Y9().x(ag).y(sg),h.defined(hw).curve(u),h(d)},lI=function(t){var r=t.className,n=t.points,i=t.path,o=t.pathRef;if((!n||!n.length)&&!i)return null;var a=n&&n.length?j4e(t):i;return S.createElement("path",sI({},Dt(t,!1),sb(t),{className:er("recharts-curve",r),d:a,ref:o}))},JV={exports:{}},P4e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",L4e=P4e,U4e=L4e;function ZV(){}function ez(){}ez.resetWarningCache=ZV;var R4e=function(){function e(n,i,o,a,s,l){if(l!==U4e){var A=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 A.name="Invariant Violation",A}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ez,resetWarningCache:ZV};return r.PropTypes=r,r};JV.exports=R4e();var D4e=JV.exports;const yr=xr(D4e);var Q4e=Object.getOwnPropertyNames,M4e=Object.getOwnPropertySymbols,$4e=Object.prototype.hasOwnProperty;function ER(e,t){return function(n,i,o){return e(n,i,o)&&t(n,i,o)}}function fw(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var o=i.cache,a=o.get(r),s=o.get(n);if(a&&s)return a===n&&s===r;o.set(r,n),o.set(n,r);var l=e(r,n,i);return o.delete(r),o.delete(n),l}}function _R(e){return Q4e(e).concat(M4e(e))}var H4e=Object.hasOwn||function(e,t){return $4e.call(e,t)};function ed(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var K4e="__v",V4e="__o",z4e="_owner",SR=Object.getOwnPropertyDescriptor,CR=Object.keys;function W4e(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function G4e(e,t){return ed(e.getTime(),t.getTime())}function Y4e(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function q4e(e,t){return e===t}function IR(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),o=e.entries(),a,s,l=0;(a=o.next())&&!a.done;){for(var A=t.entries(),u=!1,d=0;(s=A.next())&&!s.done;){if(i[d]){d++;continue}var h=a.value,f=s.value;if(r.equals(h[0],f[0],l,d,e,t,r)&&r.equals(h[1],f[1],h[0],f[0],e,t,r)){u=i[d]=!0;break}d++}if(!u)return!1;l++}return!0}var X4e=ed;function J4e(e,t,r){var n=CR(e),i=n.length;if(CR(t).length!==i)return!1;for(;i-- >0;)if(!tz(e,t,r,n[i]))return!1;return!0}function lg(e,t,r){var n=_R(e),i=n.length;if(_R(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=n[i],!tz(e,t,r,o)||(a=SR(e,o),s=SR(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function Z4e(e,t){return ed(e.valueOf(),t.valueOf())}function eOe(e,t){return e.source===t.source&&e.flags===t.flags}function kR(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),o=e.values(),a,s;(a=o.next())&&!a.done;){for(var l=t.values(),A=!1,u=0;(s=l.next())&&!s.done;){if(!i[u]&&r.equals(a.value,s.value,a.value,s.value,e,t,r)){A=i[u]=!0;break}u++}if(!A)return!1}return!0}function tOe(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function rOe(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 tz(e,t,r,n){return(n===z4e||n===V4e||n===K4e)&&(e.$$typeof||t.$$typeof)?!0:H4e(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var nOe="[object Arguments]",iOe="[object Boolean]",oOe="[object Date]",aOe="[object Error]",sOe="[object Map]",lOe="[object Number]",AOe="[object Object]",cOe="[object RegExp]",uOe="[object Set]",dOe="[object String]",hOe="[object URL]",fOe=Array.isArray,FR=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,NR=Object.assign,pOe=Object.prototype.toString.call.bind(Object.prototype.toString);function gOe(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,o=e.areMapsEqual,a=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,A=e.areRegExpsEqual,u=e.areSetsEqual,d=e.areTypedArraysEqual,h=e.areUrlsEqual;return function(g,p,v){if(g===p)return!0;
545if(g==null||p==null)return!1;var m=typeof g;if(m!==typeof p)return!1;if(m!=="object")return m==="number"?a(g,p,v):m==="function"?i(g,p,v):!1;var w=g.constructor;if(w!==p.constructor)return!1;if(w===Object)return s(g,p,v);if(fOe(g))return t(g,p,v);if(FR!=null&&FR(g))return d(g,p,v);if(w===Date)return r(g,p,v);if(w===RegExp)return A(g,p,v);if(w===Map)return o(g,p,v);if(w===Set)return u(g,p,v);var b=pOe(g);return b===oOe?r(g,p,v):b===cOe?A(g,p,v):b===sOe?o(g,p,v):b===uOe?u(g,p,v):b===AOe?typeof g.then!="function"&&typeof p.then!="function"&&s(g,p,v):b===hOe?h(g,p,v):b===aOe?n(g,p,v):b===nOe?s(g,p,v):b===iOe||b===lOe||b===dOe?l(g,p,v):!1}}function mOe(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?lg:W4e,areDatesEqual:G4e,areErrorsEqual:Y4e,areFunctionsEqual:q4e,areMapsEqual:n?ER(IR,lg):IR,areNumbersEqual:X4e,areObjectsEqual:n?lg:J4e,arePrimitiveWrappersEqual:Z4e,areRegExpsEqual:eOe,areSetsEqual:n?ER(kR,lg):kR,areTypedArraysEqual:n?lg:tOe,areUrlsEqual:rOe};if(r&&(i=NR({},i,r(i))),t){var o=fw(i.areArraysEqual),a=fw(i.areMapsEqual),s=fw(i.areObjectsEqual),l=fw(i.areSetsEqual);i=NR({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function yOe(e){return function(t,r,n,i,o,a,s){return e(t,r,s)}}function vOe(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,o=e.strict;if(n)return function(l,A){var u=n(),d=u.cache,h=d===void 0?t?new WeakMap:void 0:d,f=u.meta;return r(l,A,{cache:h,equals:i,meta:f,strict:o})};if(t)return function(l,A){return r(l,A,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(l,A){return r(l,A,a)}}var wOe=Bc();Bc({strict:!0});Bc({circular:!0});Bc({circular:!0,strict:!0});Bc({createInternalComparator:function(){return ed}});Bc({strict:!0,createInternalComparator:function(){return ed}});Bc({circular:!0,createInternalComparator:function(){return ed}});Bc({circular:!0,createInternalComparator:function(){return ed},strict:!0});function Bc(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=mOe(e),l=gOe(s),A=n?n(l):yOe(l);return vOe({circular:r,comparator:l,createState:i,equals:A,strict:a})}function bOe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function TR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(o){r<0&&(r=o),o-r>t?(e(o),r=-1):bOe(i)};requestAnimationFrame(n)}function AI(e){"@babel/helpers - typeof";return AI=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},AI(e)}function xOe(e){return SOe(e)||_Oe(e)||EOe(e)||BOe()}function BOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
546In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EOe(e,t){if(e){if(typeof e=="string")return OR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OR(e,t)}}function OR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _Oe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SOe(e){if(Array.isArray(e))return e}function COe(){var e={},t=function(){return null},r=!1,n=function i(o){if(!r){if(Array.isArray(o)){if(!o.length)return;var a=o,s=xOe(a),l=s[0],A=s.slice(1);if(typeof l=="number"){TR(i.bind(null,A),l);return}i(l),TR(i.bind(null,A));return}AI(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){r=!0},start:function(o){r=!1,n(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function wy(e){"@babel/helpers - typeof";return wy=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},wy(e)}function jR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 62,627 bytes, lines 546-564
546t%2?jR(Object(r),!0).forEach(function(n){rz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rz(e,t,r){return t=IOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IOe(e){var t=kOe(e,"string");return wy(t)==="symbol"?t:String(t)}function kOe(e,t){if(wy(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wy(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FOe=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(o){return i.includes(o)})})},NOe=function(t){return t},TOe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},om=function(t,r){return Object.keys(r).reduce(function(n,i){return PR(PR({},n),{},rz({},i,t(i,r[i])))},{})},LR=function(t,r,n){return t.map(function(i){return"".concat(TOe(i)," ").concat(r,"ms ").concat(n)}).join(",")};function OOe(e,t){return LOe(e)||POe(e,t)||nz(e,t)||jOe()}function jOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
547In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function POe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function LOe(e){if(Array.isArray(e))return e}function UOe(e){return QOe(e)||DOe(e)||nz(e)||ROe()}function ROe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
548In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nz(e,t){if(e){if(typeof e=="string")return cI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cI(e,t)}}function DOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QOe(e){if(Array.isArray(e))return cI(e)}function cI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Lb=1e-4,iz=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},oz=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},UR=function(t,r){return function(n){var i=iz(t,r);return oz(i,n)}},MOe=function(t,r){return function(n){var i=iz(t,r),o=[].concat(UOe(i.map(function(a,s){return a*s}).slice(1)),[0]);return oz(o,n)}},RR=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],o=r[1],a=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,o=0,a=1,s=1;break;case"ease":i=.25,o=.1,a=.25,s=1;break;case"ease-in":i=.42,o=0,a=1,s=1;break;case"ease-out":i=.42,o=0,a=.58,s=1;break;case"ease-in-out":i=0,o=0,a=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var A=l[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),u=OOe(A,4);i=u[0],o=u[1],a=u[2],s=u[3]}}}var d=UR(i,a),h=UR(o,s),f=MOe(i,a),g=function(m){return m>1?1:m<0?0:m},p=function(m){for(var w=m>1?1:m,b=w,E=0;E<8;++E){var B=d(b)-w,_=f(b);if(Math.abs(B-w)<Lb||_<Lb)return h(b);b=g(b-B/_)}return h(b)};return p.isStepper=!1,p},$Oe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,l=function(u,d,h){var f=-(u-d)*n,g=h*o,p=h+(f-g)*s/1e3,v=h*s/1e3+u;return Math.abs(v-d)<Lb&&Math.abs(p)<Lb?[d,0]:[v,p]};return l.isStepper=!0,l.dt=s,l},HOe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return RR(i);case"spring":return $Oe();default:if(i.split("(")[0]==="cubic-bezier")return RR(i)}return typeof i=="function"?i:null};function by(e){"@babel/helpers - typeof";return by=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},by(e)}function DR(e){return zOe(e)||VOe(e)||az(e)||KOe()}function KOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
549In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zOe(e){if(Array.isArray(e))return dI(e)}function QR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QR(Object(r),!0).forEach(function(n){uI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uI(e,t,r){return t=WOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WOe(e){var t=GOe(e,"string");return by(t)==="symbol"?t:String(t)}function GOe(e,t){if(by(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(by(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YOe(e,t){return JOe(e)||XOe(e,t)||az(e,t)||qOe()}function qOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
550In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function az(e,t){if(e){if(typeof e=="string")return dI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dI(e,t)}}function dI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XOe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function JOe(e){if(Array.isArray(e))return e}var Ub=function(t,r,n){return t+(r-t)*n},hI=function(t){var r=t.from,n=t.to;return r!==n},ZOe=function e(t,r,n){var i=om(function(o,a){if(hI(a)){var s=t(a.from,a.to,a.velocity),l=YOe(s,2),A=l[0],u=l[1];return ui(ui({},a),{},{from:A,velocity:u})}return a},r);return n<1?om(function(o,a){return hI(a)?ui(ui({},a),{},{velocity:Ub(a.velocity,i[o].velocity,n),from:Ub(a.from,i[o].from,n)}):a},r):e(t,i,n-1)};const eje=function(e,t,r,n,i){var o=FOe(e,t),a=o.reduce(function(v,m){return ui(ui({},v),{},uI({},m,[e[m],t[m]]))},{}),s=o.reduce(function(v,m){return ui(ui({},v),{},uI({},m,{from:e[m],velocity:0,to:t[m]}))},{}),l=-1,A,u,d=function(){return null},h=function(){return om(function(m,w){return w.from},s)},f=function(){return!Object.values(s).filter(hI).length},g=function(m){A||(A=m);var w=m-A,b=w/r.dt;s=ZOe(r,s,b),i(ui(ui(ui({},e),t),h())),A=m,f()||(l=requestAnimationFrame(d))},p=function(m){u||(u=m);var w=(m-u)/n,b=om(function(B,_){return Ub.apply(void 0,DR(_).concat([r(w)]))},a);if(i(ui(ui(ui({},e),t),b)),w<1)l=requestAnimationFrame(d);else{var E=om(function(B,_){return Ub.apply(void 0,DR(_).concat([r(1)]))},a);i(ui(ui(ui({},e),t),E))}};return d=r.isStepper?g:p,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function _f(e){"@babel/helpers - typeof";return _f=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},_f(e)}var tje=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function rje(e,t){if(e==null)return{};var r=nje(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nje(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Q_(e){return sje(e)||aje(e)||oje(e)||ije()}function ije(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
551In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oje(e,t){if(e){if(typeof e=="string")return fI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fI(e,t)}}function aje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sje(e){if(Array.isArray(e))return fI(e)}function fI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function MR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MR(Object(r),!0).forEach(function(n){kg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kg(e,t,r){return t=sz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aje(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sz(n.key),n)}}function cje(e,t,r){return t&&Aje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sz(e){var t=uje(e,"string");return _f(t)==="symbol"?t:String(t)}function uje(e,t){if(_f(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(_f(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dje(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&&pI(e,t)}function pI(e,t){return pI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pI(e,t)}function hje(e){var t=fje();return function(){var n=Rb(e),i;if(t){var o=Rb(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gI(this,i)}}function gI(e,t){if(t&&(_f(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 fje(){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 Rb(e){return Rb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rb(e)}var Pl=function(e){dje(r,e);var t=hje(r);function r(n,i){var o;lje(this,r),o=t.call(this,n,i);var a=o.props,s=a.isActive,l=a.attributeName,A=a.from,u=a.to,d=a.steps,h=a.children,f=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(mI(o)),o.changeStyle=o.changeStyle.bind(mI(o)),!s||f<=0)return o.state={style:{}},typeof h=="function"&&(o.state={style:u}),gI(o);if(d&&d.length)o.state={style:d[0].style};else if(A){if(typeof h=="function")return o.state={style:A},gI(o);o.state={style:l?kg({},l,A):A}}else o.state={style:{}};return o}return cje(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,l=o.attributeName,A=o.shouldReAnimate,u=o.to,d=o.from,h=this.state.style;if(s){if(!a){var f={style:l?kg({},l,u):u};this.state&&h&&(l&&h[l]!==u||!l&&h!==u)&&this.setState(f);return}if(!(wOe(i.to,u)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=g||A?d:i.to;if(this.state&&h){var v={style:l?kg({},l,p):p};(l&&h[l]!==p||!l&&h!==p)&&this.setState(v)}this.runAnimation(Ca(Ca({},this.props),{},{from:p,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 o=this,a=i.from,s=i.to,l=i.duration,A=i.easing,u=i.begin,d=i.onAnimationEnd,h=i.onAnimationStart,f=eje(a,s,HOe(A),l,this.changeStyle),g=function(){o.stopJSAnimation=f()};this.manager.start([h,u,g,l,d])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,l=i.onAnimationStart,A=a[0],u=A.style,d=A.duration,h=d===void 0?0:d,f=function(p,v,m){if(m===0)return p;var w=v.duration,b=v.easing,E=b===void 0?"ease":b,B=v.style,_=v.properties,F=v.onAnimationEnd,O=m>0?a[m-1]:v,k=_||Object.keys(B);if(typeof E=="function"||E==="spring")return[].concat(Q_(p),[o.runJSAnimation.bind(o,{from:O.style,to:B,duration:w,easing:E}),w]);var j=LR(k,w,E),I=Ca(Ca(Ca({},O.style),B),{},{transition:j});return[].concat(Q_(p),[I,w,F]).filter(NOe)};return this.manager.start([l].concat(Q_(a.reduce(f,[u,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=COe());var o=i.begin,a=i.duration,s=i.attributeName,l=i.to,A=i.easing,u=i.onAnimationStart,d=i.onAnimationEnd,h=i.steps,f=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof A=="function"||typeof f=="function"||A==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var p=s?kg({},s,l):l,v=LR(Object.keys(p),a,A);g.start([u,o,Ca(Ca({},p),{},{transition:v}),a,d])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=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=rje(i,tje),A=S.Children.count(o),u=this.state.style;if(typeof o=="function")return o(u);if(!s||A===0||a<=0)return o;var d=function(f){var g=f.props,p=g.style,v=p===void 0?{}:p,m=g.className,w=S.cloneElement(f,Ca(Ca({},l),{},{style:Ca(Ca({},v),u),className:m}));return w};return A===1?d(S.Children.only(o)):oe.createElement("div",null,S.Children.map(o,function(h){return d(h)}))}}]),r}(S.PureComponent);Pl.displayName="Animate";Pl.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Pl.propTypes={from:yr.oneOfType([yr.object,yr.string]),to:yr.oneOfType([yr.object,yr.string]),attributeName:yr.string,duration:yr.number,begin:yr.number,easing:yr.oneOfType([yr.string,yr.func]),steps:yr.arrayOf(yr.shape({duration:yr.number.isRequired,style:yr.object.isRequired,easing:yr.oneOfType([yr.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),yr.func]),properties:yr.arrayOf("string"),onAnimationEnd:yr.func})),children:yr.oneOfType([yr.node,yr.func]),isActive:yr.bool,canBegin:yr.bool,onAnimationEnd:yr.func,shouldReAnimate:yr.bool,onAnimationStart:yr.func,onAnimationReStart:yr.func};function xy(e){"@babel/helpers - typeof";return xy=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},xy(e)}function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Db.apply(this,arguments)}function pje(e,t){return vje(e)||yje(e,t)||mje(e,t)||gje()}function gje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
552In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mje(e,t){if(e){if(typeof e=="string")return $R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $R(e,t)}}function $R(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yje(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function vje(e){if(Array.isArray(e))return e}function HR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function KR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HR(Object(r),!0).forEach(function(n){wje(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wje(e,t,r){return t=bje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bje(e){var t=xje(e,"string");return xy(t)=="symbol"?t:t+""}function xje(e,t){if(xy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VR=function(t,r,n,i,o){var a=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,A=i>=0&&n>=0||i<0&&n<0?1:0,u;if(a>0&&o instanceof Array){for(var d=[0,0,0,0],h=0,f=4;h<f;h++)d[h]=o[h]>a?a:o[h];u="M".concat(t,",").concat(r+s*d[0]),d[0]>0&&(u+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(A,",").concat(t+l*d[0],",").concat(r)),u+="L ".concat(t+n-l*d[1],",").concat(r),d[1]>0&&(u+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(A,`,
553        `).concat(t+n,",").concat(r+s*d[1])),u+="L ".concat(t+n,",").concat(r+i-s*d[2]),d[2]>0&&(u+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(A,`,
554        `).concat(t+n-l*d[2],",").concat(r+i)),u+="L ".concat(t+l*d[3],",").concat(r+i),d[3]>0&&(u+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(A,`,
555        `).concat(t,",").concat(r+i-s*d[3])),u+="Z"}else if(a>0&&o===+o&&o>0){var g=Math.min(a,o);u="M ".concat(t,",").concat(r+s*g,`
556            A `).concat(g,",").concat(g,",0,0,").concat(A,",").concat(t+l*g,",").concat(r,`
557            L `).concat(t+n-l*g,",").concat(r,`
558            A `).concat(g,",").concat(g,",0,0,").concat(A,",").concat(t+n,",").concat(r+s*g,`
559            L `).concat(t+n,",").concat(r+i-s*g,`
560            A `).concat(g,",").concat(g,",0,0,").concat(A,",").concat(t+n-l*g,",").concat(r+i,`
561            L `).concat(t+l*g,",").concat(r+i,`
562            A `).concat(g,",").concat(g,",0,0,").concat(A,",").concat(t,",").concat(r+i-s*g," Z")}else u="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return u},Bje=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,o=r.x,a=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var A=Math.min(o,o+s),u=Math.max(o,o+s),d=Math.min(a,a+l),h=Math.max(a,a+l);return n>=A&&n<=u&&i>=d&&i<=h}return!1},Eje={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},TN=function(t){var r=KR(KR({},Eje),t),n=S.useRef(),i=S.useState(-1),o=pje(i,2),a=o[0],s=o[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var E=n.current.getTotalLength();E&&s(E)}catch{}},[]);var l=r.x,A=r.y,u=r.width,d=r.height,h=r.radius,f=r.className,g=r.animationEasing,p=r.animationDuration,v=r.animationBegin,m=r.isAnimationActive,w=r.isUpdateAnimationActive;if(l!==+l||A!==+A||u!==+u||d!==+d||u===0||d===0)return null;var b=er("recharts-rectangle",f);return w?oe.createElement(Pl,{canBegin:a>0,from:{width:u,height:d,x:l,y:A},to:{width:u,height:d,x:l,y:A},duration:p,animationEasing:g,isActive:w},function(E){var B=E.width,_=E.height,F=E.x,O=E.y;return oe.createElement(Pl,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,isActive:m,easing:g},oe.createElement("path",Db({},Dt(r,!0),{className:b,d:VR(F,O,B,_,h),ref:n})))}):oe.createElement("path",Db({},Dt(r,!0),{className:b,d:VR(l,A,u,d,h)}))},_je=["points","className","baseLinePoints","connectNulls"];function wh(){return wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wh.apply(this,arguments)}function Sje(e,t){if(e==null)return{};var r=Cje(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cje(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function zR(e){return Nje(e)||Fje(e)||kje(e)||Ije()}function Ije(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
563In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kje(e,t){if(e){if(typeof e=="string")return yI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yI(e,t)}}function Fje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nje(e){if(Array.isArray(e))return yI(e)}function yI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var WR=function(t){return t&&t.x===+t.x&&t.y===+t.y},Tje=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){WR(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),WR(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},am=function(t,r){var n=Tje(t);r&&(n=[n.reduce(function(o,a){return[].concat(zR(o),zR(a))},[])]);var i=n.map(function(o){return o.reduce(function(a,s,l){return"".concat(a).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},Oje=function(t,r,n){var i=am(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(am(r.reverse(),n).slice(1))},lz=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,o=t.connectNulls,a=Sje(t,_je);if(!r||!r.length)return null;var s=er("recharts-polygon",n);if(i&&i.length){var l=a.stroke&&a.stroke!=="none",A=Oje(r,i,o);return oe.createElement("g",{className:s},oe.createElement("path",wh({},Dt(a,!0),{fill:A.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:A})),l?oe.createElement("path",wh({},Dt(a,!0),{fill:"none",d:am(r,o)})):null,l?oe.createElement("path",wh({},Dt(a,!0),{fill:"none",d:am(i,o)})):null)}var u=am(r,o);return oe.createElement("path",wh({},Dt(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",className:s,d:u}))};function vI(){return vI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vI.apply(this,arguments)}var O2=function(t){var r=t.cx,n=t.cy,i=t.r,o=t.className,a=er("recharts-dot",o);return r===+r&&n===+n&&i===+i?S.createElement("circle",vI({},Dt(t,!1),sb(t),{className:a,cx:r,cy:n,r:i})):null};function By(e){"@babel/helpers - typeof";return By=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},By(e)}var jje=["x","y","top","left","width","height","className"];function wI(){return wI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wI.apply(this,arguments)}function GR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pje(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GR(Object(r),!0).forEach(function(n){Lje(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lje(e,t,r){return t=Uje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uje(e){var t=Rje(e,"string");return By(t)=="symbol"?t:t+""}function Rje(e,t){if(By(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(By(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dje(e,t){if(e==null)return{};var r=Qje(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qje(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Mje=function(t,r,n,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(r,"h").concat(n)},$je=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,l=t.left,A=l===void 0?0:l,u=t.width,d=u===void 0?0:u,h=t.height,f=h===void 0?0:h,g=t.className,p=Dje(t,jje),v=Pje({x:n,y:o,top:s,left:A,width:d,height:f},p);return!ot(n)||!ot(o)||!ot(d)||!ot(f)||!ot(s)||!ot(A)?null:oe.createElement("path",wI({},Dt(v,!0),{className:er("recharts-cross",g),d:Mje(n,o,d,f,s,A)}))},Hje=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Ey(e){"@babel/helpers - typeof";return Ey=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},Ey(e)}function Kje(e,t){if(e==null)return{};var r=Vje(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vje(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ll.apply(this,arguments)}function YR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YR(Object(r),!0).forEach(function(n){zje(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zje(e,t,r){return t=Wje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wje(e){var t=Gje(e,"string");return Ey(t)=="symbol"?t:t+""}function Gje(e,t){if(Ey(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ey(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yje=function(t,r,n,i){var o="";return i.forEach(function(a,s){var l=gr(r,n,t,a);s?o+="L ".concat(l.x,",").concat(l.y):o+="M ".concat(l.x,",").concat(l.y)}),o+="Z",o},qje=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.polarAngles,s=t.radialLines;if(!a||!a.length||!s)return null;var l=_y({stroke:"#ccc"},Dt(t,!1));return oe.createElement("g",{className:"recharts-polar-grid-angle"},a.map(function(A){var u=gr(r,n,i,A),d=gr(r,n,o,A);return oe.createElement("line",Ll({},l,{key:"line-".concat(A),x1:u.x,y1:u.y,x2:d.x,y2:d.y}))}))},Xje=function(t){var r=t.cx,n=t.cy,i=t.radius,o=t.index,a=_y(_y({stroke:"#ccc"},Dt(t,!1)),{},{fill:"none"});return oe.createElement("circle",Ll({},a,{className:er("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(o),cx:r,cy:n,r:i}))},Jje=function(t){var r=t.radius,n=t.index,i=_y(_y({stroke:"#ccc"},Dt(t,!1)),{},{fill:"none"});return oe.createElement("path",Ll({},i,{className:er("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:Yje(r,t.cx,t.cy,t.polarAngles)}))},Zje=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:oe.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,o){var a=o;return n==="circle"?oe.createElement(Xje,Ll({key:a},t,{radius:i,index:o})):oe.createElement(Jje,Ll({key:a},t,{radius:i,index:o}))}))},ON=function(t){var r=t.cx,n=r===void 0?0:r,i=t.cy,o=i===void 0?0:i,a=t.innerRadius,s=a===void 0?0:a,l=t.outerRadius,A=l===void 0?0:l,u=t.gridType,d=u===void 0?"polygon":u,h=t.radialLines,f=h===void 0?!0:h,g=Kje(t,Hje);return A<=0?null:oe.createElement("g",{className:"recharts-polar-grid"},oe.createElement(qje,Ll({cx:n,cy:o,innerRadius:s,outerRadius:A,gridType:d,radialLines:f},g)),oe.createElement(Zje,Ll({cx:n,cy:o,innerRadius:s,outerRadius:A,gridType:d,radialLines:f},g)))};ON.displayName="PolarGrid";var e3e=C2,t3e=xV,r3e=wc;function n3e(e,t){return e&&e.length?e3e(e,r3e(t),t3e):void 0}var i3e=n3e;const o3e=xr(i3e);var a3e=C2,s3e=wc,l3e=BV;function A3e(e,t){return e&&e.length?a3e(e,s3e(t),l3e):void 0}var c3e=A3e;const u3e=xr(c3e);var d3e=["cx","cy","angle","ticks","axisLine"],h3e=["ticks","tick","angle","tickFormatter","stroke"];function Sf(e){"@babel/helpers - typeof";return Sf=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},Sf(e)}function sm(){return sm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sm.apply(this,arguments)}function qR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qR(Object(r),!0).forEach(function(n){j2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XR(e,t){if(e==null)return{};var r=f3e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f3e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function p3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cz(n.key),n)}}function g3e(e,t,r){return t&&JR(e.prototype,t),r&&JR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m3e(e,t,r){return t=Qb(t),y3e(e,Az()?Reflect.construct(t,r||[],Qb(e).constructor):t.apply(e,r))}function y3e(e,t){if(t&&(Sf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v3e(e)}function v3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Az(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Az=function(){return!!e})()}function Qb(e){return Qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qb(e)}function w3e(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&&bI(e,t)}function bI(e,t){return bI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bI(e,t)}function j2(e,t,r){return t=cz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cz(e){var t=b3e(e,"string");return Sf(t)=="symbol"?t:t+""}function b3e(e,t){if(Sf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var td=function(e){function t(){return p3e(this,t),m3e(this,t,arguments)}return w3e(t,e),g3e(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,o=this.props,a=o.angle,s=o.cx,l=o.cy;return gr(s,l,i,a)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.angle,s=n.ticks,l=o3e(s,function(u){return u.coordinate||0}),A=u3e(s,function(u){return u.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:A.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.angle,s=n.ticks,l=n.axisLine,A=XR(n,d3e),u=s.reduce(function(g,p){return[Math.min(g[0],p.coordinate),Math.max(g[1],p.coordinate)]},[1/0,-1/0]),d=gr(i,o,u[0],a),h=gr(i,o,u[1],a),f=Hc(Hc(Hc({},Dt(A,!1)),{},{fill:"none"},Dt(l,!1)),{},{x1:d.x,y1:d.y,x2:h.x,y2:h.y});return oe.createElement("line",sm({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var n=this,i=this.props,o=i.ticks,a=i.tick,s=i.angle,l=i.tickFormatter,A=i.stroke,u=XR(i,h3e),d=this.getTickTextAnchor(),h=Dt(u,!1),f=Dt(a,!1),g=o.map(function(p,v){var m=n.getTickValueCoord(p),w=Hc(Hc(Hc(Hc({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(m.x,", ").concat(m.y,")")},h),{},{stroke:"none",fill:A},f),{},{index:v},m),{},{payload:p});return oe.createElement(en,sm({className:er("recharts-polar-radius-axis-tick",WV(a)),key:"tick-".concat(p.coordinate)},h2(n.props,p,v)),t.renderTickItem(a,w,l?l(p.value,v):p.value))});return oe.createElement(en,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.axisLine,a=n.tick;return!i||!i.length?null:oe.createElement(en,{className:er("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),gi.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,o){var a;return oe.isValidElement(n)?a=oe.cloneElement(n,i):Wt(n)?a=n(i):a=oe.createElement(vf,sm({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(S.PureComponent);j2(td,"displayName","PolarRadiusAxis");j2(td,"axisType","radiusAxis");j2(td,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Cf(e){"@babel/helpers - typeof";return Cf=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},Cf(e)}function iu(){return iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iu.apply(this,arguments)}function ZR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(r),!0).forEach(function(n){P2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dz(n.key),n)}}function B3e(e,t,r){return t&&eD(e.prototype,t),r&&eD(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function E3e(e,t,r){return t=Mb(t),_3e(e,uz()?Reflect.construct(t,r||[],Mb(e).constructor):t.apply(e,r))}function _3e(e,t){if(t&&(Cf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S3e(e)}function S3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uz=function(){return!!e})()}function Mb(e){return Mb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mb(e)}function C3e(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(n,i){return n.__proto__=i,n},xI(e,t)}function P2(e,t,r){return t=dz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dz(e){var t=I3e(e,"string");return Cf(t)=="symbol"?t:t+""}function I3e(e,t){if(Cf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var k3e=Math.PI/180,tD=1e-5,rd=function(e){function t(){return x3e(this,t),E3e(this,t,arguments)}return C3e(t,e),B3e(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,o=i.cx,a=i.cy,s=i.radius,l=i.orientation,A=i.tickSize,u=A||8,d=gr(o,a,s,n.coordinate),h=gr(o,a,s+(l==="inner"?-1:1)*u,n.coordinate);return{x1:d.x,y1:d.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,o=Math.cos(-n.coordinate*k3e),a;return o>tD?a=i==="outer"?"start":"end":o<-tD?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.radius,s=n.axisLine,l=n.axisLineType,A=Kc(Kc({},Dt(this.props,!1)),{},{fill:"none"},Dt(s,!1));if(l==="circle")return oe.createElement(O2,iu({className:"recharts-polar-angle-axis-line"},A,{cx:i,cy:o,r:a}));var u=this.props.ticks,d=u.map(function(h){return gr(i,o,a,h.coordinate)});return oe.createElement(lz,iu({className:"recharts-polar-angle-axis-line"},A,{points:d}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,l=i.tickFormatter,A=i.stroke,u=Dt(this.props,!1),d=Dt(a,!1),h=Kc(Kc({},u),{},{fill:"none"},Dt(s,!1)),f=o.map(function(g,p){var v=n.getTickLineCoord(g),m=n.getTickTextAnchor(g),w=Kc(Kc(Kc({textAnchor:m},u),{},{stroke:"none",fill:A},d),{},{index:p,payload:g,x:v.x2,y:v.y2});return oe.createElement(en,iu({className:er("recharts-polar-angle-axis-tick",WV(a)),key:"tick-".concat(g.coordinate)},h2(n.props,g,p)),s&&oe.createElement("line",iu({className:"recharts-polar-angle-axis-tick-line"},h,v)),a&&t.renderTickItem(a,w,l?l(g.value,p):g.value))});return oe.createElement(en,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.radius,a=n.axisLine;return o<=0||!i||!i.length?null:oe.createElement(en,{className:er("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,o){var a;return oe.isValidElement(n)?a=oe.cloneElement(n,i):Wt(n)?a=n(i):a=oe.createElement(vf,iu({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(S.PureComponent);P2(rd,"displayName","PolarAngleAxis");P2(rd,"axisType","angleAxis");P2(rd,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var F3e=vK,N3e=F3e(Object.getPrototypeOf,Object),T3e=N3e,O3e=Ml,j3e=T3e,P3e=$l,L3e="[object Object]",U3e=Function.prototype,R3e=Object.prototype,hz=U3e.toString,D3e=R3e.hasOwnProperty,Q3e=hz.call(Object);function M3e(e){if(!P3e(e)||O3e(e)!=L3e)return!1;var t=j3e(e);if(t===null)return!0;var r=D3e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&hz.call(r)==Q3e}var $3e=M3e;const H3e=xr($3e);var K3e=Ml,V3e=$l,z3e="[object Boolean]";function W3e(e){return e===!0||e===!1||V3e(e)&&K3e(e)==z3e}var G3e=W3e;const Y3e=xr(G3e);function Sy(e){"@babel/helpers - typeof";return Sy=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},Sy(e)}function $b(){return $b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$b.apply(this,arguments)}function q3e(e,t){return ePe(e)||Z3e(e,t)||J3e(e,t)||X3e()}function X3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
564In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J3e(e,t){if(e){if(typeof e=="string")return rD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rD(e,t)}}function rD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Z3e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function ePe(e){if(Array.isArray(e))return e}function nD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nD(Object(r),!0).forEach(function(n){tPe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tPe(e,t,r){return t=rPe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rPe(e){var t=nPe(e,"string");return Sy(t)=="symbol"?t:t+""}function nPe(e,t){if(Sy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oD=function(t,r,n,i,o){var a=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-a/2,",").concat(r+o),s+="L ".concat(t+n-a/2-i,",").concat(r+o),s+="L ".concat(t,",").concat(r," Z"),s},iPe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},oPe=function(t){var r=iD(iD({},iPe),t),n=S.useRef(),i=S.useState(-1),o=q3e(i,2),a=o[0],s=o[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var l=r.x,A=r.y,u=r.upperWidth,d=r.lowerWidth,h=r.height,f=r.className,g=r.animationEasing,p=r.animationDuration,v=r.animationBegin,m=r.isUpdateAnimationActive;if(l!==+l||A!==+A||u!==+u||d!==+d||h!==+h||u===0&&d===0||h===0)return null;var w=er("recharts-trapezoid",f);return m?oe.createElement(Pl,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:A},to:{upperWidth:u,lowerWidth:d,height:h,x:l,y:A},duration:p,animationEasing:g,isActive:m},function(b){var E=b.upperWidth,B=b.lowerWidth,_=b.height,F=b.x,O=b.y;return oe.createElement(Pl,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,easing:g},oe.createElement("path",$b({},Dt(r,!0),{className:w,d:oD(F,O,E,B,_),ref:n})))}):oe.createElement("g",null,oe.createElement("path",$b({},Dt(r,!0),{className:w,d:oD(l,A,u,d,h)})))},aPe=["option","shapeType","propTransformer","activeClassName","isActive"];function Cy(e){"@babel/helpers - typeof";return Cy=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},Cy(e)}function sPe(e,t){if(e==null)return{};var r=lPe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function aD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aD(Object(r),!0).forEach(function(n){APe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function APe(e,t,r){return t=cPe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cPe(e){var t=uPe(e,"string");return Cy(t)=="symbol"?t:t+""}function uPe(e,t){if(Cy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dPe(e,t){return Hb(Hb({},t),e)}function hPe(e,t){return e==="symbols"}function sD(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return oe.createElement(TN,r);case"trapezoid":return oe.createElement(oPe,r);case"sector":return oe.createElement(XV,r);case"symbols":if(hPe(t))return oe.createElement(YF,r);break;default:return null}}function fPe(e){return S.isValidElement(e)?e.props:e}function pPe(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?dPe:n,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,l=sPe(e,aPe),A;if(S.isValidElement(t))A=S.cloneElement(t,Hb(Hb({},l),fPe(t)));else if(Wt(t))A=t(l);else if(H3e(t)&&!Y3e(t)){var u=i(t,l);A=oe.createElement(sD,{shapeType:r,elementProps:u})}else{var d=l;A=oe.createElement(sD,{shapeType:r,elementProps:d})}return s?oe.createElement(en,{className:a},A):A}function L2(e,t){return t!=null&&"trapezoids"in e.props}function U2(e,t){return t!=null&&"sectors"in e.props}function Iy(e,t){return t!=null&&"points"in e.props}function gPe(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,o=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&o}function mPe(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function yPe(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function vPe(e,t){var r;return L2(e,t)?r=gPe:U2(e,t)?r=mPe:Iy(e,t)&&(r=yPe),r}function wPe(e,t){var r;return L2(e,t)?r="trapezoids":U2(e,t)?r="sectors":Iy(e,t)&&(r="points"),r}function bPe(e,t){if(L2(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}if(U2(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}return Iy(e,t)?t.payload:{}}function xPe(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=wPe(r,t),o=bPe(r,t),a=n.filter(function(l,A){var u=F2(o,l),d=r.props[i].filter(function(g){var p=vPe(r,t);return p(g,t)}),h=r.props[i].indexOf(d[d.length-1]),f=A===h;return u&&f}),s=n.indexOf(a[a.length-1]);return s}var e1;function If(e){"@babel/helpers - typeof";return If=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},If(e)}function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bh.apply(this,arguments)}function lD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lD(Object(r),!0).forEach(function(n){oa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pz(n.key),n)}}function EPe(e,t,r){return t&&AD(e.prototype,t),r&&AD(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Pe(e,t,r){return t=Kb(t),SPe(e,fz()?Reflect.construct(t,r||[],Kb(e).constructor):t.apply(e,r))}function SPe(e,t){if(t&&(If(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CPe(e)}function CPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fz=function(){return!!e})()}function Kb(e){return Kb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kb(e)}function IPe(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&&BI(e,t)}function BI(e,t){return BI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},BI(e,t)}function oa(e,t,r){return t=pz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pz(e){var t=kPe(e,"string");return If(t)=="symbol"?t:t+""}function kPe(e,t){if(If(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(If(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ko=function(e){function t(r){var n;return BPe(this,t),n=_Pe(this,t,[r]),oa(n,"pieRef",null),oa(n,"sectorRefs",[]),oa(n,"id",d2("recharts-pie-")),oa(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Wt(i)&&i()}),oa(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Wt(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return IPe(t,e),EPe(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,s=o.labelLine,l=o.dataKey,A=o.valueKey,u=Dt(this.props,!1),d=Dt(a,!1),h=Dt(s,!1),f=a&&a.offsetRadius||20,g=n.map(function(p,v){var m=(p.startAngle+p.endAngle)/2,w=gr(p.cx,p.cy,p.outerRadius+f,m),b=$r($r($r($r({},u),p),{},{stroke:"none"},d),{},{index:v,textAnchor:t.getTextAnchor(w.x,p.cx)},w),E=$r($r($r($r({},u),p),{},{fill:"none",stroke:p.fill},h),{},{index:v,points:[gr(p.cx,p.cy,p.outerRadius,m),w]}),B=l;return tr(l)&&tr(A)?B="value":tr(l)&&(B=A),oe.createElement(en,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(v)},s&&t.renderLabelLineItem(s,E,"line"),t.renderLabelItem(a,b,Gi(p,B)))});return oe.createElement(en,{className:"recharts-pie-labels"},g)}},{key:"renderSectorsStatically",value:function(n){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,l=o.inactiveShape;return n.map(function(A,u){if((A==null?void 0:A.startAngle)===0&&(A==null?void 0:A.endAngle)===0&&n.length!==1)return null;var d=i.isActiveIndex(u),h=l&&i.hasActiveIndex()?l:null,f=d?a:h,g=$r($r({},A),{},{stroke:s?A.fill:A.stroke,tabIndex:-1});return oe.createElement(en,bh({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},h2(i.props,A,u),{key:"sector-".concat(A==null?void 0:A.startAngle,"-").concat(A==null?void 0:A.endAngle,"-").concat(A.midAngle,"-").concat(u)}),oe.createElement(pPe,bh({option:f,isActive:d,shapeType:"sector"},g)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,A=i.animationEasing,u=i.animationId,d=this.state,h=d.prevSectors,f=d.prevIsAnimationActive;return oe.createElement(Pl,{begin:s,duration:l,isActive:a,easing:A,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(g){var p=g.t,v=[],m=o&&o[0],w=m.startAngle;return o.forEach(function(b,E){var B=h&&h[E],_=E>0?Qa(b,"paddingAngle",0):0;if(B){var F=yh(B.endAngle-B.startAngle,b.endAngle-b.startAngle),O=$r($r({},b),{},{startAngle:w+_,endAngle:w+F(p)+_});v.push(O),w=O.endAngle}else{var k=b.endAngle,j=b.startAngle,I=yh(0,k-j),T=I(p),U=$r($r({},b),{},{startAngle:w+_,endAngle:w+T+_});v.push(U),w=U.endAngle}}),oe.createElement(en,null,n.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,o=n.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!F2(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,o=i.hide,a=i.sectors,s=i.className,l=i.label,A=i.cx,u=i.cy,d=i.innerRadius,h=i.outerRadius,f=i.isAnimationActive,g=this.state.isAnimationFinished;if(o||!a||!a.length||!ot(A)||!ot(u)||!ot(d)||!ot(h))return null;var p=er("recharts-pie",s);return oe.createElement(en,{tabIndex:this.props.rootTabIndex,className:p,ref:function(m){n.pieRef=m}},this.renderSectors(),l&&this.renderLabels(a),gi.renderCallByParent(this.props,null,!1),(!f||g)&&tc.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,o){if(oe.isValidElement(n))return oe.cloneElement(n,i);if(Wt(n))return n(i);var a=er("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return oe.createElement(lI,bh({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(n,i,o){if(oe.isValidElement(n))return oe.cloneElement(n,i);var a=o;if(Wt(n)&&(a=n(i),oe.isValidElement(a)))return a;var s=er("recharts-pie-label-text",typeof n!="boolean"&&!Wt(n)?n.className:"");return oe.createElement(vf,bh({},i,{alignmentBaseline:"middle",className:s}),a)}}])}(S.PureComponent);e1=Ko;oa(Ko,"displayName","Pie");oa(Ko,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ZA.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});oa(Ko,"parseDeltaAngle",function(e,t){var r=ca(t-e),n=Math.min(Math.abs(t-e),360);return r*n});oa(Ko,"getRealPieData",function(e){var t=e.data,r=e.children,n=Dt(e,!1),i=Is(r,Xu);return t&&t.length?t.map(function(o,a){return $r($r($r({payload:o},n),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return $r($r({},n),o.props)}):[]});oa(Ko,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,o=t.height,a=VV(i,o),s=n+co(e.cx,i,i/2),l=r+co(e.cy,o,o/2),A=co(e.innerRadius,a,0),u=co(e.outerRadius,a,a*.8),d=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:s,cy:l,innerRadius:A,outerRadius:u,maxRadius:d}});oa(Ko,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?$r($r({},t.type.defaultProps),t.props):t.props,i=e1.getRealPieData(n);if(!i||!i.length)return null;var o=n.cornerRadius,a=n.startAngle,s=n.endAngle,l=n.paddingAngle,A=n.dataKey,u=n.nameKey,d=n.valueKey,h=n.tooltipType,f=Math.abs(n.minAngle),g=e1.parseCoordinateOfPie(n,r),p=e1.parseDeltaAngle(a,s),v=Math.abs(p),m=A;tr(A)&&tr(d)?(bl(!1,`Use "dataKey" to specify the value of pie,
565      the props "valueKey" will be deprecated in 1.1.0`),m="value"):tr(A)&&(bl(!1,`Use "dataKey" to specify the value of pie,
566      the props "valueKey" will be deprecated in 1.1.0`),m=d);var w=i.filter(function(O){return Gi(O,m,0)!==0}).length,b=(v>=360?w:w-1)*l,E=v-w*f-b,B=i.reduce(function(O,k){var j=Gi(k,m,0);return O+(ot(j)?j:0)},0),_;if(B>0){var F;_=i.map(function(O,k){var j=Gi(O,m,0),I=Gi(O,u,k),T=(ot(j)?j:0)/B,U;k?U=F.endAngle+ca(p)*l*(j!==0?1:0):U=a;var R=U+ca(p)*((j!==0?f:0)+T*E),G=(U+R)/2,K=(g.innerRadius+g.outerRadius)/2,V=[{name:I,value:j,payload:O,dataKey:m,type:h}],Q=gr(g.cx,g.cy,K,G);return F=$r($r($r({percent:T,cornerRadius:o,name:I,tooltipPayload:V,midAngle:G,middleRadius:K,tooltipPosition:Q},O),g),{},{value:Gi(O,m),startAngle:U,endAngle:R,payload:O,paddingAngle:ca(p)*l}),F})}return $r($r({},g),{},{sectors:_,data:i})});function FPe(e){return e&&e.length?e[0]:void 0}var NPe=FPe,TPe=NPe;const OPe=xr(TPe);var jPe=["key"];function kf(e){"@babel/helpers - typeof";return kf=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},kf(e)}function PPe(e,t){if(e==null)return{};var r=LPe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vb.apply(this,arguments)}function cD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ki(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cD(Object(r),!0).forEach(function(n){hl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mz(n.key),n)}}function RPe(e,t,r){return t&&uD(e.prototype,t),r&&uD(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function DPe(e,t,r){return t=zb(t),QPe(e,gz()?Reflect.construct(t,r||[],zb(e).constructor):t.apply(e,r))}function QPe(e,t){if(t&&(kf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MPe(e)}function MPe(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 zb(e){return zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zb(e)}function $Pe(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&&EI(e,t)}function EI(e,t){return EI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},EI(e,t)}function hl(e,t,r){return t=mz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mz(e){var t=HPe(e,"string");return kf(t)=="symbol"?t:t+""}function HPe(e,t){if(kf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(kf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cp=function(e){function t(){var r;UPe(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=DPe(this,t,[].concat(i)),hl(r,"state",{isAnimationFinished:!1}),hl(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Wt(a)&&a()}),hl(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Wt(a)&&a()}),hl(r,"handleMouseEnter",function(a){var s=r.props.onMouseEnter;s&&s(r.props,a)}),hl(r,"handleMouseLeave",function(a){var s=r.props.onMouseLeave;s&&s(r.props,a)}),r}return $Pe(t,e),RPe(t,[{key:"renderDots",value:function(n){var i=this.props,o=i.dot,a=i.dataKey,s=Dt(this.props,!1),l=Dt(o,!0),A=n.map(function(u,d){var h=Ki(Ki(Ki({key:"dot-".concat(d),r:3},s),l),{},{dataKey:a,cx:u.x,cy:u.y,index:d,payload:u});return t.renderDotItem(o,h)});return oe.createElement(en,{className:"recharts-radar-dots"},A)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,o=i.shape,a=i.dot,s=i.isRange,l=i.baseLinePoints,A=i.connectNulls,u;return oe.isValidElement(o)?u=oe.cloneElement(o,Ki(Ki({},this.props),{},{points:n})):Wt(o)?u=o(Ki(Ki({},this.props),{},{points:n})):u=oe.createElement(lz,Vb({},Dt(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?l:null,connectNulls:A})),oe.createElement(en,{className:"recharts-radar-polygon"},u,a?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,o=i.points,a=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,A=i.animationEasing,u=i.animationId,d=this.state.prevPoints;return oe.createElement(Pl,{begin:s,duration:l,isActive:a,easing:A,from:{t:0},to:{t:1},key:"radar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var f=h.t,g=d&&d.length/o.length,p=o.map(function(v,m){var w=d&&d[Math.floor(m*g)];if(w){var b=yh(w.x,v.x),E=yh(w.y,v.y);return Ki(Ki({},v),{},{x:b(f),y:E(f)})}var B=yh(v.cx,v.x),_=yh(v.cy,v.y);return Ki(Ki({},v),{},{x:B(f),y:_(f)})});return n.renderPolygonStatically(p)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,o=n.isAnimationActive,a=n.isRange,s=this.state.prevPoints;return o&&i&&i.length&&!a&&(!s||!F2(s,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,o=n.className,a=n.points,s=n.isAnimationActive;if(i||!a||!a.length)return null;var l=this.state.isAnimationFinished,A=er("recharts-radar",o);return oe.createElement(en,{className:A},this.renderPolygon(),(!s||l)&&tc.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,i){var o;if(oe.isValidElement(n))o=oe.cloneElement(n,i);else if(Wt(n))o=n(i);else{var a=i.key,s=PPe(i,jPe);o=oe.createElement(O2,Vb({},s,{key:a,className:er("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return o}}])}(S.PureComponent);hl(cp,"displayName","Radar");hl(cp,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendT
vendor: 75,888 bytes, lines 566-570
566ype:"rect",isAnimationActive:!ZA.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});hl(cp,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,i=e.dataKey,o=e.bandSize,a=r.cx,s=r.cy,l=!1,A=[],u=r.type!=="number"?o??0:0;n.forEach(function(h,f){var g=Gi(h,r.dataKey,f),p=Gi(h,i),v=r.scale(g)+u,m=Array.isArray(p)?YV(p):p,w=tr(m)?void 0:t.scale(m);Array.isArray(p)&&p.length>=2&&(l=!0),A.push(Ki(Ki({},gr(a,s,w,v)),{},{name:g,value:p,cx:a,cy:s,radius:w,angle:v,payload:h}))});var d=[];return l&&A.forEach(function(h){if(Array.isArray(h.value)){var f=OPe(h.value),g=tr(f)?void 0:t.scale(f);d.push(Ki(Ki({},h),{},{radius:g},gr(a,s,g,h.angle)))}else d.push(h)}),{points:A,isRange:l,baseLinePoints:d}});var KPe=Math.ceil,VPe=Math.max;function zPe(e,t,r,n){for(var i=-1,o=VPe(KPe((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}var WPe=zPe,GPe=UK,dD=1/0,YPe=17976931348623157e292;function qPe(e){if(!e)return e===0?e:0;if(e=GPe(e),e===dD||e===-dD){var t=e<0?-1:1;return t*YPe}return e===e?e:0}var XPe=qPe,JPe=WPe,ZPe=w2,M_=XPe;function eLe(e){return function(t,r,n){return n&&typeof n!="number"&&ZPe(t,r,n)&&(r=n=void 0),t=M_(t),r===void 0?(r=t,t=0):r=M_(r),n=n===void 0?t<r?1:-1:M_(n),JPe(t,r,n,e)}}var tLe=eLe,rLe=tLe,nLe=rLe(),iLe=nLe;const Wb=xr(iLe);function ky(e){"@babel/helpers - typeof";return ky=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},ky(e)}function hD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hD(Object(r),!0).forEach(function(n){yz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yz(e,t,r){return t=oLe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oLe(e){var t=aLe(e,"string");return ky(t)=="symbol"?t:t+""}function aLe(e,t){if(ky(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ky(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sLe=["Webkit","Moz","O","ms"],lLe=function(t,r){var n=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=sLe.reduce(function(o,a){return fD(fD({},o),{},yz({},a+n,r))},{});return i[t]=r,i};function Ff(e){"@babel/helpers - typeof";return Ff=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},Ff(e)}function Gb(){return Gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gb.apply(this,arguments)}function pD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pD(Object(r),!0).forEach(function(n){ko(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ALe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wz(n.key),n)}}function cLe(e,t,r){return t&&gD(e.prototype,t),r&&gD(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uLe(e,t,r){return t=Yb(t),dLe(e,vz()?Reflect.construct(t,r||[],Yb(e).constructor):t.apply(e,r))}function dLe(e,t){if(t&&(Ff(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hLe(e)}function hLe(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 Yb(e){return Yb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yb(e)}function fLe(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&&_I(e,t)}function _I(e,t){return _I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_I(e,t)}function ko(e,t,r){return t=wz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wz(e){var t=pLe(e,"string");return Ff(t)=="symbol"?t:t+""}function pLe(e,t){if(Ff(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gLe=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,A=nm().domain(Wb(0,l)).range([o,o+a-s]),u=A.domain().map(function(d){return A(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:A(n),endX:A(i),scale:A,scaleValues:u}},mD=function(t){return t.changedTouches&&!!t.changedTouches.length},Nf=function(e){function t(r){var n;return ALe(this,t),n=uLe(this,t,[r]),ko(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),ko(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),ko(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),n.detachDragEndListener()}),ko(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ko(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ko(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ko(n,"handleSlideDragStart",function(i){var o=mD(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return fLe(t,e),cLe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,o=n.endX,a=this.state.scaleValues,s=this.props,l=s.gap,A=s.data,u=A.length-1,d=Math.min(i,o),h=Math.max(i,o),f=t.getIndexInRange(a,d),g=t.getIndexInRange(a,h);return{startIndex:f-f%l,endIndex:g===u?u:g-g%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,l=Gi(o[n],s,n);return Wt(a)?a(l,n):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(n){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,l=this.props,A=l.x,u=l.width,d=l.travellerWidth,h=l.startIndex,f=l.endIndex,g=l.onChange,p=n.pageX-o;p>0?p=Math.min(p,A+u-d-s,A+u-d-a):p<0&&(p=Math.max(p,A-a,A-s));var v=this.getIndex({startX:a+p,endX:s+p});(v.startIndex!==h||v.endIndex!==f)&&g&&g(v),this.setState({startX:a+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var o=mD(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,l=i.startX,A=this.state[a],u=this.props,d=u.x,h=u.width,f=u.travellerWidth,g=u.onChange,p=u.gap,v=u.data,m={startX:this.state.startX,endX:this.state.endX},w=n.pageX-o;w>0?w=Math.min(w,d+h-f-A):w<0&&(w=Math.max(w,d-A)),m[a]=A+w;var b=this.getIndex(m),E=b.startIndex,B=b.endIndex,_=function(){var O=v.length-1;return a==="startX"&&(s>l?E%p===0:B%p===0)||s<l&&B===O||a==="endX"&&(s>l?B%p===0:E%p===0)||s>l&&B===O};this.setState(ko(ko({},a,A+w),"brushMoveStartX",n.pageX),function(){g&&_()&&g(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var o=this,a=this.state,s=a.scaleValues,l=a.startX,A=a.endX,u=this.state[i],d=s.indexOf(u);if(d!==-1){var h=d+n;if(!(h===-1||h>=s.length)){var f=s[h];i==="startX"&&f>=A||i==="endX"&&f<=l||this.setState(ko({},i,f),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,l=n.fill,A=n.stroke;return oe.createElement("rect",{stroke:A,fill:l,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,l=n.data,A=n.children,u=n.padding,d=S.Children.only(A);return d?oe.cloneElement(d,{x:i,y:o,width:a,height:s,margin:u,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var o,a,s=this,l=this.props,A=l.y,u=l.travellerWidth,d=l.height,h=l.traveller,f=l.ariaLabel,g=l.data,p=l.startIndex,v=l.endIndex,m=Math.max(n,this.props.x),w=$_($_({},Dt(this.props,!1)),{},{x:m,y:A,width:u,height:d}),b=f||"Min value: ".concat((o=g[p])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=g[v])===null||a===void 0?void 0:a.name);return oe.createElement(en,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(B){["ArrowLeft","ArrowRight"].includes(B.key)&&(B.preventDefault(),B.stopPropagation(),s.handleTravellerMoveKeyboard(B.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,w))}},{key:"renderSlide",value:function(n,i){var o=this.props,a=o.y,s=o.height,l=o.stroke,A=o.travellerWidth,u=Math.min(n,i)+A,d=Math.max(Math.abs(i-n)-A,0);return oe.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:u,y:a,width:d,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,o=n.endIndex,a=n.y,s=n.height,l=n.travellerWidth,A=n.stroke,u=this.state,d=u.startX,h=u.endX,f=5,g={pointerEvents:"none",fill:A};return oe.createElement(en,{className:"recharts-brush-texts"},oe.createElement(vf,Gb({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-f,y:a+s/2},g),this.getTextOfTick(i)),oe.createElement(vf,Gb({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,h)+l+f,y:a+s/2},g),this.getTextOfTick(o)))}},{key:"render",value:function(){var n=this.props,i=n.data,o=n.className,a=n.children,s=n.x,l=n.y,A=n.width,u=n.height,d=n.alwaysShowText,h=this.state,f=h.startX,g=h.endX,p=h.isTextActive,v=h.isSlideMoving,m=h.isTravellerMoving,w=h.isTravellerFocused;if(!i||!i.length||!ot(s)||!ot(l)||!ot(A)||!ot(u)||A<=0||u<=0)return null;var b=er("recharts-brush",o),E=oe.Children.count(a)===1,B=lLe("userSelect","none");return oe.createElement(en,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:B},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(f,g),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(g,"endX"),(p||v||m||w||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,o=n.y,a=n.width,s=n.height,l=n.stroke,A=Math.floor(o+s/2)-1;return oe.createElement(oe.Fragment,null,oe.createElement("rect",{x:i,y:o,width:a,height:s,fill:l,stroke:"none"}),oe.createElement("line",{x1:i+1,y1:A,x2:i+a-1,y2:A,fill:"none",stroke:"#fff"}),oe.createElement("line",{x1:i+1,y1:A+2,x2:i+a-1,y2:A+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var o;return oe.isValidElement(n)?o=oe.cloneElement(n,i):Wt(n)?o=n(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(n,i){var o=n.data,a=n.width,s=n.x,l=n.travellerWidth,A=n.updateId,u=n.startIndex,d=n.endIndex;if(o!==i.prevData||A!==i.prevUpdateId)return $_({prevData:o,prevTravellerWidth:l,prevUpdateId:A,prevX:s,prevWidth:a},o&&o.length?gLe({data:o,width:a,x:s,travellerWidth:l,startIndex:u,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+a-l]);var h=i.scale.domain().map(function(f){return i.scale(f)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:A,prevX:s,prevWidth:a,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var o=n.length,a=0,s=o-1;s-a>1;){var l=Math.floor((a+s)/2);n[l]>i?s=l:a=l}return i>=n[s]?s:a}}])}(S.PureComponent);ko(Nf,"displayName","Brush");ko(Nf,"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 mLe=nN;function yLe(e,t){var r;return mLe(e,function(n,i,o){return r=t(n,i,o),!r}),!!r}var vLe=yLe,wLe=uK,bLe=wc,xLe=vLe,BLe=mo,ELe=w2;function _Le(e,t,r){var n=BLe(e)?wLe:xLe;return r&&ELe(e,t,r)&&(t=void 0),n(e,bLe(t))}var SLe=_Le;const CLe=xr(SLe);var Fs=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},yD=TK;function ILe(e,t,r){t=="__proto__"&&yD?yD(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var kLe=ILe,FLe=kLe,NLe=FK,TLe=wc;function OLe(e,t){var r={};return t=TLe(t),NLe(e,function(n,i,o){FLe(r,i,t(n,i,o))}),r}var jLe=OLe;const PLe=xr(jLe);function LLe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var ULe=LLe,RLe=nN;function DLe(e,t){var r=!0;return RLe(e,function(n,i,o){return r=!!t(n,i,o),r}),r}var QLe=DLe,MLe=ULe,$Le=QLe,HLe=wc,KLe=mo,VLe=w2;function zLe(e,t,r){var n=KLe(e)?MLe:$Le;return r&&VLe(e,t,r)&&(t=void 0),n(e,HLe(t))}var WLe=zLe;const GLe=xr(WLe);function Fy(e){"@babel/helpers - typeof";return Fy=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},Fy(e)}function YLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bz(n.key),n)}}function qLe(e,t,r){return t&&vD(e.prototype,t),r&&vD(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wD(Object(r),!0).forEach(function(n){jN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jN(e,t,r){return t=bz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bz(e){var t=XLe(e,"string");return Fy(t)=="symbol"?t:t+""}function XLe(e,t){if(Fy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fy(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xz=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return{x:Math.min(n,o),y:Math.min(i,a),width:Math.abs(o-n),height:Math.abs(a-i)}},JLe=function(t){var r=t.x1,n=t.y1,i=t.x2,o=t.y2;return xz({x:r,y:n},{x:i,y:o})},Bz=function(){function e(t){YLe(this,e),this.scale=t}return qLe(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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,o=n.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],o=n[n.length-1];return i<=o?r>=i&&r<=o:r>=o&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();jN(Bz,"EPS",1e-4);var PN=function(t){var r=Object.keys(t).reduce(function(n,i){return pw(pw({},n),{},jN({},i,Bz.create(t[i])))},{});return pw(pw({},r),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return PLe(i,function(l,A){return r[A].apply(l,{bandAware:a,position:s})})},isInRange:function(i){return GLe(i,function(o,a){return r[a].isInRange(o)})}})},ZLe=s0e(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("")}),Ez=S.createContext(void 0),_z=S.createContext(void 0),Sz=S.createContext(void 0),eUe=S.createContext({}),Cz=S.createContext(void 0),tUe=S.createContext(0),rUe=S.createContext(0),bD=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,o=r.offset,a=t.clipPathId,s=t.children,l=t.width,A=t.height,u=ZLe(o);return oe.createElement(Ez.Provider,{value:n},oe.createElement(_z.Provider,{value:i},oe.createElement(eUe.Provider,{value:o},oe.createElement(Sz.Provider,{value:u},oe.createElement(Cz.Provider,{value:a},oe.createElement(tUe.Provider,{value:A},oe.createElement(rUe.Provider,{value:l},s)))))))},nUe=function(){return S.useContext(Cz)},iUe=function(t){var r=S.useContext(Ez);r==null&&Bf();var n=r[t];return n==null&&Bf(),n},oUe=function(t){var r=S.useContext(_z);r==null&&Bf();var n=r[t];return n==null&&Bf(),n},aUe=function(){var t=S.useContext(Sz);return t};function Tf(e){"@babel/helpers - typeof";return Tf=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},Tf(e)}function sUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lUe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kz(n.key),n)}}function AUe(e,t,r){return t&&lUe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cUe(e,t,r){return t=qb(t),uUe(e,Iz()?Reflect.construct(t,r||[],qb(e).constructor):t.apply(e,r))}function uUe(e,t){if(t&&(Tf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dUe(e)}function dUe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Iz=function(){return!!e})()}function qb(e){return qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qb(e)}function hUe(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(n,i){return n.__proto__=i,n},SI(e,t)}function xD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function BD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xD(Object(r),!0).forEach(function(n){LN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LN(e,t,r){return t=kz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kz(e){var t=fUe(e,"string");return Tf(t)=="symbol"?t:t+""}function fUe(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pUe(e,t){return vUe(e)||yUe(e,t)||mUe(e,t)||gUe()}function gUe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
567In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mUe(e,t){if(e){if(typeof e=="string")return ED(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ED(e,t)}}function ED(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yUe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function vUe(e){if(Array.isArray(e))return e}function CI(){return CI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CI.apply(this,arguments)}var wUe=function(t,r){var n;return oe.isValidElement(t)?n=oe.cloneElement(t,r):Wt(t)?n=t(r):n=oe.createElement("line",CI({},r,{className:"recharts-reference-line-line"})),n},bUe=function(t,r,n,i,o,a,s,l,A){var u=o.x,d=o.y,h=o.width,f=o.height;if(n){var g=A.y,p=t.y.apply(g,{position:a});if(Fs(A,"discard")&&!t.y.isInRange(p))return null;var v=[{x:u+h,y:p},{x:u,y:p}];return l==="left"?v.reverse():v}if(r){var m=A.x,w=t.x.apply(m,{position:a});if(Fs(A,"discard")&&!t.x.isInRange(w))return null;var b=[{x:w,y:d+f},{x:w,y:d}];return s==="top"?b.reverse():b}if(i){var E=A.segment,B=E.map(function(_){return t.apply(_,{position:a})});return Fs(A,"discard")&&CLe(B,function(_){return!t.isInRange(_)})?null:B}return null};function xUe(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,l=e.alwaysShow,A=nUe(),u=iUe(i),d=oUe(o),h=aUe();if(!A||!h)return null;bl(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=PN({x:u.scale,y:d.scale}),g=qn(t),p=qn(r),v=n&&n.length===2,m=bUe(f,g,p,v,h,e.position,u.orientation,d.orientation,e);if(!m)return null;var w=pUe(m,2),b=w[0],E=b.x,B=b.y,_=w[1],F=_.x,O=_.y,k=Fs(e,"hidden")?"url(#".concat(A,")"):void 0,j=BD(BD({clipPath:k},Dt(e,!0)),{},{x1:E,y1:B,x2:F,y2:O});return oe.createElement(en,{className:er("recharts-reference-line",s)},wUe(a,j),gi.renderCallByParent(e,JLe({x1:E,y1:B,x2:F,y2:O})))}var UN=function(e){function t(){return sUe(this,t),cUe(this,t,arguments)}return hUe(t,e),AUe(t,[{key:"render",value:function(){return oe.createElement(xUe,this.props)}}])}(oe.Component);LN(UN,"displayName","ReferenceLine");LN(UN,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function II(){return II=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},II.apply(this,arguments)}function Of(e){"@babel/helpers - typeof";return Of=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},Of(e)}function _D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_D(Object(r),!0).forEach(function(n){R2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_D(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EUe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nz(n.key),n)}}function _Ue(e,t,r){return t&&EUe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SUe(e,t,r){return t=Xb(t),CUe(e,Fz()?Reflect.construct(t,r||[],Xb(e).constructor):t.apply(e,r))}function CUe(e,t){if(t&&(Of(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IUe(e)}function IUe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fz=function(){return!!e})()}function Xb(e){return Xb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xb(e)}function kUe(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(n,i){return n.__proto__=i,n},kI(e,t)}function R2(e,t,r){return t=Nz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nz(e){var t=FUe(e,"string");return Of(t)=="symbol"?t:t+""}function FUe(e,t){if(Of(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Of(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NUe=function(t){var r=t.x,n=t.y,i=t.xAxis,o=t.yAxis,a=PN({x:i.scale,y:o.scale}),s=a.apply({x:r,y:n},{bandAware:!0});return Fs(t,"discard")&&!a.isInRange(s)?null:s},D2=function(e){function t(){return BUe(this,t),SUe(this,t,arguments)}return kUe(t,e),_Ue(t,[{key:"render",value:function(){var n=this.props,i=n.x,o=n.y,a=n.r,s=n.alwaysShow,l=n.clipPathId,A=qn(i),u=qn(o);if(bl(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!A||!u)return null;var d=NUe(this.props);if(!d)return null;var h=d.x,f=d.y,g=this.props,p=g.shape,v=g.className,m=Fs(this.props,"hidden")?"url(#".concat(l,")"):void 0,w=SD(SD({clipPath:m},Dt(this.props,!0)),{},{cx:h,cy:f});return oe.createElement(en,{className:er("recharts-reference-dot",v)},t.renderDot(p,w),gi.renderCallByParent(this.props,{x:h-a,y:f-a,width:2*a,height:2*a}))}}])}(oe.Component);R2(D2,"displayName","ReferenceDot");R2(D2,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});R2(D2,"renderDot",function(e,t){var r;return oe.isValidElement(e)?r=oe.cloneElement(e,t):Wt(e)?r=e(t):r=oe.createElement(O2,II({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function FI(){return FI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},FI.apply(this,arguments)}function jf(e){"@babel/helpers - typeof";return jf=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},jf(e)}function CD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ID(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CD(Object(r),!0).forEach(function(n){Q2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OUe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Oz(n.key),n)}}function jUe(e,t,r){return t&&OUe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PUe(e,t,r){return t=Jb(t),LUe(e,Tz()?Reflect.construct(t,r||[],Jb(e).constructor):t.apply(e,r))}function LUe(e,t){if(t&&(jf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UUe(e)}function UUe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tz=function(){return!!e})()}function Jb(e){return Jb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jb(e)}function RUe(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&&NI(e,t)}function NI(e,t){return NI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},NI(e,t)}function Q2(e,t,r){return t=Oz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oz(e){var t=DUe(e,"string");return jf(t)=="symbol"?t:t+""}function DUe(e,t){if(jf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QUe=function(t,r,n,i,o){var a=o.x1,s=o.x2,l=o.y1,A=o.y2,u=o.xAxis,d=o.yAxis;if(!u||!d)return null;var h=PN({x:u.scale,y:d.scale}),f={x:t?h.x.apply(a,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(l,{position:"start"}):h.y.rangeMin},g={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(A,{position:"end"}):h.y.rangeMax};return Fs(o,"discard")&&(!h.isInRange(f)||!h.isInRange(g))?null:xz(f,g)},M2=function(e){function t(){return TUe(this,t),PUe(this,t,arguments)}return RUe(t,e),jUe(t,[{key:"render",value:function(){var n=this.props,i=n.x1,o=n.x2,a=n.y1,s=n.y2,l=n.className,A=n.alwaysShow,u=n.clipPathId;bl(A===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=qn(i),h=qn(o),f=qn(a),g=qn(s),p=this.props.shape;if(!d&&!h&&!f&&!g&&!p)return null;var v=QUe(d,h,f,g,this.props);if(!v&&!p)return null;var m=Fs(this.props,"hidden")?"url(#".concat(u,")"):void 0;return oe.createElement(en,{className:er("recharts-reference-area",l)},t.renderRect(p,ID(ID({clipPath:m},Dt(this.props,!0)),v)),gi.renderCallByParent(this.props,v))}}])}(oe.Component);Q2(M2,"displayName","ReferenceArea");Q2(M2,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Q2(M2,"renderRect",function(e,t){var r;return oe.isValidElement(e)?r=oe.cloneElement(e,t):Wt(e)?r=e(t):r=oe.createElement(TN,FI({},t,{className:"recharts-reference-area-rect"})),r});function kD(e){return KUe(e)||HUe(e)||$Ue(e)||MUe()}function MUe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
568In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Ue(e,t){if(e){if(typeof e=="string")return TI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TI(e,t)}}function HUe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KUe(e){if(Array.isArray(e))return TI(e)}function TI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var OI=function(t,r,n,i,o){var a=Is(t,UN),s=Is(t,D2),l=[].concat(kD(a),kD(s)),A=Is(t,M2),u="".concat(i,"Id"),d=i[0],h=r;if(l.length&&(h=l.reduce(function(p,v){if(v.props[u]===n&&Fs(v.props,"extendDomain")&&ot(v.props[d])){var m=v.props[d];return[Math.min(p[0],m),Math.max(p[1],m)]}return p},h)),A.length){var f="".concat(d,"1"),g="".concat(d,"2");h=A.reduce(function(p,v){if(v.props[u]===n&&Fs(v.props,"extendDomain")&&ot(v.props[f])&&ot(v.props[g])){var m=v.props[f],w=v.props[g];return[Math.min(p[0],m,w),Math.max(p[1],m,w)]}return p},h)}return o&&o.length&&(h=o.reduce(function(p,v){return ot(v)?[Math.min(p[0],v),Math.max(p[1],v)]:p},h)),h},jz={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,A,u){this.fn=l,this.context=A,this.once=u||!1}function o(l,A,u,d,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var f=new i(u,d||l,h),g=r?r+A:A;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],f]:l._events[g].push(f):(l._events[g]=f,l._eventsCount++),l}function a(l,A){--l._eventsCount===0?l._events=new n:delete l._events[A]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var A=[],u,d;if(this._eventsCount===0)return A;for(d in u=this._events)t.call(u,d)&&A.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?A.concat(Object.getOwnPropertySymbols(u)):A},s.prototype.listeners=function(A){var u=r?r+A:A,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,f=d.length,g=new Array(f);h<f;h++)g[h]=d[h].fn;return g},s.prototype.listenerCount=function(A){var u=r?r+A:A,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(A,u,d,h,f,g){var p=r?r+A:A;if(!this._events[p])return!1;var v=this._events[p],m=arguments.length,w,b;if(v.fn){switch(v.once&&this.removeListener(A,v.fn,void 0,!0),m){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,d),!0;case 4:return v.fn.call(v.context,u,d,h),!0;case 5:return v.fn.call(v.context,u,d,h,f),!0;case 6:return v.fn.call(v.context,u,d,h,f,g),!0}for(b=1,w=new Array(m-1);b<m;b++)w[b-1]=arguments[b];v.fn.apply(v.context,w)}else{var E=v.length,B;for(b=0;b<E;b++)switch(v[b].once&&this.removeListener(A,v[b].fn,void 0,!0),m){case 1:v[b].fn.call(v[b].context);break;case 2:v[b].fn.call(v[b].context,u);break;case 3:v[b].fn.call(v[b].context,u,d);break;case 4:v[b].fn.call(v[b].context,u,d,h);break;default:if(!w)for(B=1,w=new Array(m-1);B<m;B++)w[B-1]=arguments[B];v[b].fn.apply(v[b].context,w)}}return!0},s.prototype.on=function(A,u,d){return o(this,A,u,d,!1)},s.prototype.once=function(A,u,d){return o(this,A,u,d,!0)},s.prototype.removeListener=function(A,u,d,h){var f=r?r+A:A;if(!this._events[f])return this;if(!u)return a(this,f),this;var g=this._events[f];if(g.fn)g.fn===u&&(!h||g.once)&&(!d||g.context===d)&&a(this,f);else{for(var p=0,v=[],m=g.length;p<m;p++)(g[p].fn!==u||h&&!g[p].once||d&&g[p].context!==d)&&v.push(g[p]);v.length?this._events[f]=v.length===1?v[0]:v:a(this,f)}return this},s.prototype.removeAllListeners=function(A){var u;return A?(u=r?r+A:A,this._events[u]&&a(this,u)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(jz);var VUe=jz.exports;const zUe=xr(VUe);var H_=new zUe,K_="recharts.syncMouseEvents";function Ny(e){"@babel/helpers - typeof";return Ny=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},Ny(e)}function WUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GUe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pz(n.key),n)}}function YUe(e,t,r){return t&&GUe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V_(e,t,r){return t=Pz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pz(e){var t=qUe(e,"string");return Ny(t)=="symbol"?t:t+""}function qUe(e,t){if(Ny(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ny(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var XUe=function(){function e(){WUe(this,e),V_(this,"activeIndex",0),V_(this,"coordinateList",[]),V_(this,"layout","horizontal")}return YUe(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,o=i===void 0?null:i,a=r.container,s=a===void 0?null:a,l=r.layout,A=l===void 0?null:l,u=r.offset,d=u===void 0?null:u,h=r.mouseHandlerCallback,f=h===void 0?null:h;this.coordinateList=(n=o??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=A??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=f??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(r){if(this.coordinateList.length!==0)switch(r.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(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,a=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,A=((r=window)===null||r===void 0?void 0:r.scrollX)||0,u=((n=window)===null||n===void 0?void 0:n.scrollY)||0,d=o+l+A,h=a+this.offset.top+s/2+u;this.mouseHandlerCallback({pageX:d,pageY:h})}}}])}();function JUe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&ot(n)&&ot(i))return!0}return!1}function ZUe(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Lz(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,o=e.endAngle,a=gr(t,r,n,i),s=gr(t,r,n,o);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}function eRe(e,t,r){var n,i,o,a;if(e==="horizontal")n=t.x,o=n,i=r.top,a=r.top+r.height;else if(e==="vertical")i=t.y,a=i,n=r.left,o=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,A=t.innerRadius,u=t.outerRadius,d=t.angle,h=gr(s,l,A,d),f=gr(s,l,u,d);n=h.x,i=h.y,o=f.x,a=f.y}else return Lz(t);return[{x:n,y:i},{x:o,y:a}]}function Ty(e){"@babel/helpers - typeof";return Ty=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},Ty(e)}function FD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FD(Object(r),!0).forEach(function(n){tRe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tRe(e,t,r){return t=rRe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rRe(e){var t=nRe(e,"string");return Ty(t)=="symbol"?t:t+""}function nRe(e,t){if(Ty(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ty(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iRe(e){var t,r,n=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,s=e.activePayload,l=e.offset,A=e.activeTooltipIndex,u=e.tooltipAxisBandSize,d=e.layout,h=e.chartName,f=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!f||!o||!a||h!=="ScatterChart"&&i!=="axis")return null;var g,p=lI;if(h==="ScatterChart")g=a,p=$je;else if(h==="BarChart")g=ZUe(d,a,l,u),p=TN;else if(d==="radial"){var v=Lz(a),m=v.cx,w=v.cy,b=v.radius,E=v.startAngle,B=v.endAngle;g={cx:m,cy:w,startAngle:E,endAngle:B,innerRadius:b,outerRadius:b},p=XV}else g={points:eRe(d,a,l)},p=lI;var _=gw(gw(gw(gw({stroke:"#ccc",pointerEvents:"none"},l),g),Dt(f,!1)),{},{payload:s,payloadIndex:A,className:er("recharts-tooltip-cursor",f.className)});return S.isValidElement(f)?S.cloneElement(f,_):S.createElement(p,_)}var oRe=["item"],aRe=["children","className","width","height","style","compact","title","desc"];function Pf(e){"@babel/helpers - typeof";return Pf=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},Pf(e)}function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xh.apply(this,arguments)}function ND(e,t){return ARe(e)||lRe(e,t)||Rz(e,t)||sRe()}function sRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
569In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lRe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,A=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){A=!0,i=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw i}}return s}}function ARe(e){if(Array.isArray(e))return e}function TD(e,t){if(e==null)return{};var r=cRe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cRe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function uRe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dRe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dz(n.key),n)}}function hRe(e,t,r){return t&&dRe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fRe(e,t,r){return t=Zb(t),pRe(e,Uz()?Reflect.construct(t,r||[],Zb(e).constructor):t.apply(e,r))}function pRe(e,t){if(t&&(Pf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gRe(e)}function gRe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uz=function(){return!!e})()}function Zb(e){return Zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zb(e)}function mRe(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&&jI(e,t)}function jI(e,t){return jI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jI(e,t)}function Lf(e){return wRe(e)||vRe(e)||Rz(e)||yRe()}function yRe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
570In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rz(e,t){if(e){if(typeof e=="string")return PI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PI(e,t)}}function vRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wRe(e){if(Array.isArray(e))return PI(e)}function PI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function OD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OD(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lt(e,t,r){return t=Dz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dz(e){var t=bRe(e,"string");return Pf(t)=="symbol"?t:t+""}function bRe(e,t){if(Pf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xRe={xAxis:["bottom","top"],yAxis:["left","right"]},BRe={width:"100%",height:"100%"},Qz={x:0,y:0};function mw(e){return e}var ERe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},_Re=function(t,r,n,i){var o=r.find(function(u){return u&&u.index===n});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var a=o.coordinate,s=i.radius;return ke(ke(ke({},i),gr(i.cx,i.cy,s,a)),{},{angle:a,radius:s})}var l=o.coordinate,A=i.angle;return ke(ke(ke({},i),gr(i.cx,i.cy,l,A)),{},{angle:A,radius:l})}return Qz},$2=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,o=r.dataEndIndex,a=(n??[]).reduce(function(s,l){var A=l.props.data;return A&&A.length?[].concat(Lf(s),Lf(A)):s},[]);return a.length>0?a:t&&t.length&&ot(i)&&ot(o)?t.slice(i,o+1):[]};function Mz(e){return e==="number"?[0,"auto"]:void 0}var LI=function(t,r,n,i){var o=t.graphicalItems,a=t.tooltipAxis,s=$2(r,t);return n<0||!o||!o.length||n>=s.length?null:o.reduce(function(l,A){var u,d=(u=A.props.data)!==null&&u!==void 0?u:r;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(a.dataKey&&!a.allowDuplicatedCategory){var f=d===void 0?s:d;h=f5(f,a.dataKey,i)}else h=d&&d[n]||s[n];return h?[].concat(Lf(l),[FTe(A,h)]):l},[])},jD=function(t,r,n,i){var o=i||{x:t.chartX,y:t.chartY},a=ERe(o,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,A=t.tooltipTicks,u=fTe(a,s,A,l);if(u>=0&&A){var d=A[u]&&A[u].value,h=LI(t,r,u,d),f=_Re(n,s,u,o);return{activeTooltipIndex:u,activeLabel:d,activePayload:h,activeCoordinate:f}}return null},SRe=function(t,r){var n=r.axes,i=r.graphicalItems,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,A=r.dataEndIndex,u=t.layout,d=t.children,h=t.stackOffset,f=$V(u,o);return n.reduce(function(g,p){var v,m=p.type.defaultProps!==void 0?ke(ke({},p.type.defaultProps),p.props):p.props,w=m.type,b=m.dataKey,E=m.allowDataOverflow,B=m.allowDuplicatedCategory,_=m.scale,F=m.ticks,O=m.includeHidden,k=m[a];if(g[k])return g;var j=$2(t.data,{graphicalItems:i.filter(function(P){var D,X=a in P.props?P.props[a]:(D=P.type.defaultProps)===null||D===void 0?void 0:D[a];return X===k}),dataStartIndex:l,dataEndIndex:A}),I=j.length,T,U,R;JUe(m.domain,E,w)&&(T=rI(m.domain,null,E),f&&(w==="number"||_!=="auto")&&(R=im(j,b,"category")));var G=Mz(w);if(!T||T.length===0){var K,V=(K=m.domain)!==null&&K!==void 0?K:G;if(b){if(T=im(j,b,w),w==="category"&&f){var Q=iwe(T);B&&Q?(U=T,T=Wb(0,I)):B||(T=uR(V,T,p).reduce(function(P,D){return P.indexOf(D)>=0?P:[].concat(Lf(P),[D])},[]))}else if(w==="category")B?T=T.filter(function(P){return P!==""&&!tr(P)}):T=uR(V,T,p).reduce(function(P,D){return P.indexOf(D)>=0||D===""||tr(D)?P:[].concat(Lf(P),[D])},[]);else if(w==="number"){var H=vTe(j,i.filter(function(P){var D,X,Z=a in P.props?P.props[a]:(D=P.type.defaultProps)===null||D===void 0?void 0:D[a],ae="hide"in P.props?P.props.hide:(X=P.type.defaultProps)===null||X===void 0?void 0:X.hide;return Z===k&&(O||!ae)}),b,o,u);H&&(T=H)}f&&(w==="number"||_!=="auto")&&(R=im(j,b,"category"))}else f?T=Wb(0,I):s&&s[k]&&s[k].hasStack&&w==="number"?T=h==="expand"?[0,1]:HV(s[k].stackGroups,l,A):T=MV(j,i.filter(function(P){var D=a in P.props?P.props[a]:P.type.defaultProps[a],X="hide"in P.props?P.props.hide:P.type.defaultProps.hide;return D===k&&(O||!X)}),w,u,!0);if(w==="number")T=OI(d,T,k,o,F),V&&(T=rI(V,T,E));else if(w==="category"&&V){var q=V,re=T.every(function(P){return q.indexOf(P)>=0});re&&(T=q)}}return ke(ke({},g),{},Lt({},k,ke(ke({},m),{},{axisType:o,domain:T,categoricalDomain:R,duplicateDomain:U,originalDomain:(v=m.domain)!==null&&v!==void 0?v:G,isCategorical:f,layout:u})))},{})},CRe=function(t,r){var n=r.graphicalItems,i=r.Axis,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,A=r.dataEndIndex,u=t.layout,d=t.children,h=$2(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:A}),f=h.length,g=$V(u,o),p=-1;return n.reduce(function(v,m){var w=m.type.defaultProps!==void 0?ke(ke({},m.type.defaultProps),m.props):m.props,b=w[a],E=Mz("number");if(!v[b]){p++;var B;return g?B=Wb(0,f):s&&s[b]&&s[b].hasStack?(B=HV(s[b].stackGroups,l,A),B=OI(d,B,b,o)):(B=rI(E,MV(h,n.filter(function(_){var F,O,k=a in _.props?_.props[a]:(F=_.type.defaultProps)===null||F===void 0?void 0:F[a],j="hide"in _.props?_.props.hide:(O=_.type.defaultProps)===null||O===void 0?void 0:O.hide;return k===b&&!j}),"number",u),i.defaultProps.allowDataOverflow),B=OI(d,B,b,o)),ke(ke({},v),{},Lt({},b,ke(ke({axisType:o},i.defaultProps),{},{hide:!0,orientation:Qa(xRe,"".concat(o,".").concat(p%2),null),domain:B,originalDomain:E,isCategorical:g,layout:u})))}return v},{})},IRe=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,o=r.AxisComp,a=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,A=r.dataEndIndex,u=t.children,d="".concat(i,"Id"),h=Is(u,o),f={};return h&&h.length?f=SRe(t,{axes:h,graphicalItems:a,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:A}):a&&a.length&&(f=CRe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:A})),f},kRe=function(t){var r=rh(t),n=Ig(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:iN(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:nI(r,n)}},PD=function(t){var r=t.children,n=t.defaultShowTooltip,i=ea(r,Nf),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},FRe=function(t){return!t||!t.length?!1:t.some(function(r){var n=wl(r&&r.type);return n&&n.indexOf("Bar")>=0})},LD=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"}},NRe=function(t,r){var n=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,l=s===void 0?{}:s,A=n.width,u=n.height,d=n.children,h=n.margin||{},f=ea(d,Nf),g=ea(d,Qh),p=Object.keys(l).reduce(function(B,_){var F=l[_],O=F.orientation;return!F.mirror&&!F.hide?ke(ke({},B),{},Lt({},O,B[O]+F.width)):B},{left:h.left||0,right:h.right||0}),v=Object.keys(a).reduce(function(B,_){var F=a[_],O=F.orientation;return!F.mirror&&!F.hide?ke(ke({},B),{},Lt({},O,Qa(B,"".concat(O))+F.height)):B},{top:h.top||0,bottom:h.bottom||0}),m=ke(ke({},v),p),w=m.bottom;f&&(m.bottom+=f.props.height||Nf.defaultProps.height),g&&r&&(m=mTe(m,i,n,r));var b=A-m.left-m.right,E=u-m.top-m.bottom;return ke(ke({brushBottom:w},m),{},{width:Math.max(b,0),height:Math.max(E,0)})},TRe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},$z=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=t.axisComponents,A=t.legendContent,u=t.formatAxisMap,d=t.defaultProps,h=function(m,w){var b=w.graphicalItems,E=w.stackGroups,B=w.offset,_=w.updateId,F=w.dataStartIndex,O=w.dataEndIndex,k=m.barSize,j=m.layout,I=m.barGap,T=m.barCategoryGap,U=m.maxBarSize,R=LD(j),G=R.numericAxisName,K=R.cateAxisName,V=FRe(b),Q=[];return b.forEach(function(H,q){var re=$2(m.data,{graphicalItems:[H],dataStartIndex:F,dataEndIndex:O}),P=H.type.defaultProps!==void 0?ke(ke({},H.type.defaultProps),H.props):H.props,D=P.dataKey,X=P.maxBarSize,Z=P["".concat(G,"Id")],ae=P["".concat(K,"Id")],se={},pe=l.reduce(function(me,Le){var Ue=w["".concat(Le.axisType,"Map")],Bt=P["".concat(Le.axisType,"Id")];Ue&&Ue[Bt]||Le.axisType==="zAxis"||Bf();var Et=Ue[Bt];return ke(ke({},me),{},Lt(Lt({},Le.axisType,Et),"".concat(Le.axisType,"Ticks"),Ig(Et)))},se),le=pe[K],he=pe["".concat(K,"Ticks")],Ae=E&&E[Z]&&E[Z].hasStack&&ITe(H,E[Z].stackGroups),ue=wl(H.type).indexOf("Bar")>=0,_e=nI(le,he),ve=[],z=V&&pTe({barSize:k,stackGroups:E,totalSize:TRe(pe,K)});if(ue){var Se,Me,De=tr(X)?U:X,xe=(Se=(Me=nI(le,he,!0))!==null&&Me!==void 0?Me:De)!==null&&Se!==void 0?Se:0;ve=gTe({barGap:I,barCategoryGap:T,bandSize:xe!==_e?xe:_e,sizeList:z[ae],maxBarSize:De}),xe!==_e&&(ve=ve.map(function(me){return ke(ke({},me),{},{position:ke(ke({},me.position),{},{offset:me.position.offset-xe/2})})}))}var ze=H&&H.type&&H.type.getComposedData;ze&&Q.push({props:ke(ke({},ze(ke(ke({},pe),{},{displayedData:re,props:m,dataKey:D,item:H,bandSize:_e,barPosition:ve,offset:B,stackedData:Ae,layout:j,dataStartIndex:F,dataEndIndex:O}))),{},Lt(Lt(Lt({key:H.key||"item-".concat(q)},G,pe[G]),K,pe[K]),"animationId",_)),childIndex:pwe(H,m.children),item:H})}),Q},f=function(m,w){var b=m.props,E=m.dataStartIndex,B=m.dataEndIndex,_=m.updateId;if(!oL({props:b}))return null;var F=b.children,O=b.layout,k=b.stackOffset,j=b.data,I=b.reverseStackOrder,T=LD(O),U=T.numericAxisName,R=T.cateAxisName,G=Is(F,n),K=STe(j,G,"".concat(U,"Id"),"".concat(R,"Id"),k,I),V=l.reduce(function(P,D){var X="".concat(D.axisType,"Map");return ke(ke({},P),{},Lt({},X,IRe(b,ke(ke({},D),{},{graphicalItems:G,stackGroups:D.axisType===U&&K,dataStartIndex:E,dataEndIndex:B}))))},{}),Q=NRe(ke(ke({},V),{},{props:b,graphicalItems:G}),w==null?void 0:w.legendBBox);Object.keys(V).forEach(function(P){V[P]=u(b,V[P],Q,P.replace("Map",""),r)});var H=V["".concat(R,"Map")],q=kRe(H),re=h(b,ke(ke({},V),{},{dataStartIndex:E,dataEndIndex:B,updateId:_,graphicalItems:G,stackGroups:K,offset:Q}));return ke(ke({formattedGraphicalItems:re,graphicalItems:G,offset:Q,stackGroups:K},q),V)},g=function(v){function m(w){var b,E,B;return uRe(this,m),B=fRe(this,m,[w]),Lt(B,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Lt(B,"accessibilityManager",new XUe),Lt(B,"handleLegendBBoxUpdate",function(_){if(_){var F=B.state,O=F.dataStartIndex,k=F.dataEndIndex,j=F.updateId;B.setState(ke({legendBBox:_},f({props:B.props,dataStartIndex:O,dataEndIndex:k,updateId:j},ke(ke({},B.state),{},{legendBBox:_}))))}}),Lt(B,"handleReceiveSyncEvent",function(_,F,O){if(B.props.syncId===_){if(O===B.eventEmitterSymbol&&typeof B.props.syncMethod!="function")return;B.applySyncEvent(F)}}),Lt(B,"handleBrushChange",function(_){var F=_.startIndex,O=_.endIndex;if(F!==B.state.dataStartIndex||O!==B.state.dataEndIndex){var k=B.state.updateId;B.setState(function(){return ke({dataStartIndex:F,dataEndIndex:O},f({props:B.props,dataStartIndex:F,dataEndIndex:O,updateId:k},B.state))}),B.triggerSyncEvent({dataStartIndex:F,dataEndIndex:O})}}),Lt(B,"handleMouseEnter",function(_){var F=B.getMouseInfo(_);if(F){var O=ke(ke({},F),{},{isTooltipActive:!0});B.setState(O),B.triggerSyncEvent(O);var k=B.props.onMouseEnter;Wt(k)&&k(O,_)}}),Lt(B,"triggeredAfterMouseMove",function(_){var F=B.getMouseInfo(_),O=F?ke(ke({},F),{},{isTooltipActive:!0}):{isTooltipActive:!1};B.setState(O),B.triggerSyncEvent(O);var k=B.props.onMouseMove;Wt(k)&&k(O,_)}),Lt(B,"handleItemMouseEnter",function(_){B.setState(function(){return{isTooltipActive:!0,activeItem:_,activePayload:_.tooltipPayload,activeCoordinate:_.tooltipPosition||{x:_.cx,y:_.cy}}})}),Lt(B,"handleItemMouseLeave",function(){B.setState(function(){return{isTooltipActive:!1}})}),Lt(B,"handleMouseMove",function(_){_.persist(),B.throttleTriggeredAfterMouseMove(_)}),Lt(B,"handleMouseLeave",function(_){B.throttleTriggeredAfterMouseMove.cancel();var F={isTooltipActive:!1};B.setState(F),B.triggerSyncEvent(F);var O=B.props.onMouseLeave;Wt(O)&&O(F,_)}),Lt(B,"handleOuterEvent",function(_){var F=fwe(_),O=Qa(B.props,"".concat(F));if(F&&Wt(O)){var k,j;/.*touch.*/i.test(F)?j=B.getMouseInfo(_.changedTouches[0]):j=B.getMouseInfo(_),O((k=j)!==null&&k!==void 0?k:{},_)}}),Lt(B,"handleClick",function(_){var F=B.getMouseInfo(_);if(F){var O=ke(ke({},F),{},{isTooltipActive:!0});B.setState(O),B.triggerSyncEvent(O);var k=B.props.onClick;Wt(k)&&k(O,_)}}),Lt(B,"handleMouseDown",function(_){var F=B.props.onMouseDown;if(Wt(F)){var O=B.getMouseInfo(_);F(O,_)}}),Lt(B,"handleMouseUp",function(_){var F=B.props.onMouseUp;if(Wt(F)){var O=B.getMouseInfo(_);F(O,_)}}),Lt(B,"handleTouchMove",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&B.throttleTriggeredAfterMouseMove(_.changedTouches[0])}),Lt(B,"handleTouchStart",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&B.handleMouseDown(_.changedTouches[0])}),Lt(B,"handleTouchEnd",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&B.handleMouseUp(_.changedTouches[0])}),Lt(B,"handleDoubleClick",function(_){var F=B.props.onDoubleClick;if(Wt(F)){var O=B.getMouseInfo(_);F(O,_)}}),Lt(B,"handleContextMenu",function(_){var F=B.props.onContextMenu;if(Wt(F)){var O=B.getMouseInfo(_);F(O,_)}}),Lt(B,"triggerSyncEvent",function(_){B.props.syncId!==void 0&&H_.emit(K_,B.props.syncId,_,B.eventEmitterSymbol)}),Lt(B,"applySyncEvent",function(_){var F=B.props,O=F.layout,k=F.syncMethod,j=B.state.updateId,I=_.dataStartIndex,T=_.dataEndIndex;if(_.dataStartIndex!==void 0||_.dataEndIndex!==void 0)B.setState(ke({dataStartIndex:I,dataEndIndex:T},f({props:B.props,dataStartIndex:I,dataEndIndex:T,updateId:j},B.state)));else if(_.activeTooltipIndex!==void 0){var U=_.chartX,R=_.chartY,G=_.activeTooltipIndex,K=B.state,V=K.offset,Q=K.tooltipTicks;if(!V)return;if(typeof k=="function")G=k(Q,_);else if(k==="value"){G=-1;for(var H=0;H<Q.length;H++)if(Q[H].value===_.activeLabel){G=H;break}}var q=ke(ke({},V),{},{x:V.left,y:V.top}),re=Math.min(U,q.x+q.width),P=Math.min(R,q.y+q.height),D=Q[G]&&Q[G].value,X=LI(B.state,B.props.data,G),Z=Q[G]?{x:O==="horizontal"?Q[G].coordinate:re,y:O==="horizontal"?P:Q[G].coordinate}:Qz;B.setState(ke(ke({},_),{},{activeLabel:D,activeCoordinate:Z,activePayload:X,activeTooltipIndex:G}))}else B.setState(_)}),Lt(B,"renderCursor",function(_){var F,O=B.state,k=O.isTooltipActive,j=O.activeCoordinate,I=O.activePayload,T=O.offset,U=O.activeTooltipIndex,R=O.tooltipAxisBandSize,G=B.getTooltipEventType(),K=(F=_.props.active)!==null&&F!==void 0?F:k,V=B.props.layout,Q=_.key||"_recharts-cursor";return oe.createElement(iRe,{key:Q,activeCoordinate:j,activePayload:I,activeTooltipIndex:U,chartName:r,element:_,isActive:K,layout:V,offset:T,tooltipAxisBandSize:R,tooltipEventType:G})}),Lt(B,"renderPolarAxis",function(_,F,O){var k=Qa(_,"type.axisType"),j=Qa(B.state,"".concat(k,"Map")),I=_.type.defaultProps,T=I!==void 0?ke(ke({},I),_.props):_.props,U=j&&j[T["".concat(k,"Id")]];return S.cloneElement(_,ke(ke({},U),{},{className:er(k,U.className),key:_.key||"".concat(F,"-").concat(O),ticks:Ig(U,!0)}))}),Lt(B,"renderPolarGrid",function(_){var F=_.props,O=F.radialLines,k=F.polarAngles,j=F.polarRadius,I=B.state,T=I.radiusAxisMap,U=I.angleAxisMap,R=rh(T),G=rh(U),K=G.cx,V=G.cy,Q=G.innerRadius,H=G.outerRadius;return S.cloneElement(_,{polarAngles:Array.isArray(k)?k:Ig(G,!0).map(function(q){return q.coordinate}),polarRadius:Array.isArray(j)?j:Ig(R,!0).map(function(q){return q.coordinate}),cx:K,cy:V,innerRadius:Q,outerRadius:H,key:_.key||"polar-grid",radialLines:O})}),Lt(B,"renderLegend",function(){var _=B.state.formattedGraphicalItems,F=B.props,O=F.children,k=F.width,j=F.height,I=B.props.margin||{},T=k-(I.left||0)-(I.right||0),U=DV({children:O,formattedGraphicalItems:_,legendWidth:T,legendContent:A});if(!U)return null;var R=U.item,G=TD(U,oRe);return S.cloneElement(R,ke(ke({},G),{},{chartWidth:k,chartHeight:j,margin:I,onBBoxUpdate:B.handleLegendBBoxUpdate}))}),Lt(B,"renderTooltip",function(){var _,F=B.props,O=F.children,k=F.accessibilityLayer,j=ea(O,sl);if(!j)return null;var I=B.state,T=I.isTooltipActive,U=I.activeCoordinate,R=I.activePayload,G=I.activeLabel,K=I.offset,V=(_=j.props.active)!==null&&_!==void 0?_:T;return S.cloneElement(j,{viewBox:ke(ke({},K),{},{x:K.left,y:K.top}),active:V,label:G,payload:V?R:[],coordinate:U,accessibilityLayer:k})}),Lt(B,"renderBrush",function(_){var F=B.props,O=F.margin,k=F.data,j=B.state,I=j.offset,T=j.dataStartIndex,U=j.dataEndIndex,R=j.updateId;return S.cloneElement(_,{key:_.key||"_recharts-brush",onChange:uw(B.handleBrushChange,_.props.onChange),data:k,x:ot(_.props.x)?_.props.x:I.left,y:ot(_.props.y)?_.props.y:I.top+I.height+I.brushBottom-(O.bottom||0),width:ot(_.props.width)?_.props.width:I.width,startIndex:T,endIndex:U,updateId:"brush-".concat(R)})}),Lt(B,"renderReferenceElement",function(_,F,O){if(!_)return null;var k=B,j=k.clipPathId,I=B.state,T=I.xAxisMap,U=I.yAxisMap,R=I.offset,G=_.type.defaultProps||{},K=_.props,V=K.xAxisId,Q=V===void 0?G.xAxisId:V,H=K.yAxisId,q=H===void 0?G.yAxisId:H;return S.cloneElement(_,{key:_.key||"".concat(F,"-").concat(O),xAxis:T[Q],yAxis:U[q],viewBox:{x:R.left,y:R.top,width:R.width,height:R.height},clipPathId:j})}),Lt(B,"renderActivePoints",function(_){var F=_.item,O=_.activePoint,k=_.basePoint,j=_.childIndex,I=_.isRange,T=[],U=F.props.key,R=F.item.type.defaultProps!==void 0?ke(ke({},F.item.type.defaultProps),F.item.props):F.item.props,G=R.activeDot,K=R.dataKey,V=ke(ke({index:j,dataKey:K,cx:O.x,cy:O.y,r:4,fill:NN(F.item),strokeWidth:2,stroke:"#fff",payload:O.payload,value:O.value},Dt(G,!1)),sb(G));return T.push(m.renderActiveDot(G,V,"".concat(U,"-activePoint-").concat(j))),k?T.push(m.renderActiveDot(G,ke(ke({},V),{},{cx:k.x,cy:k.y}),"".concat(U,"-basePoint-").concat(j))):I&&T.push(null),T}),Lt(B,"renderGraphicChild",function(_,F,O){var k=B.filterFormatItem(_,F,O);if(!k)return null;var j=B.getTooltipEventType(),I=B.state,T=I.isTooltipActive,U=I.tooltipAxis,R=I.activeTooltipIndex,G=I.activeLabel,K=B.props.children,V=ea(K,sl),Q=k.props,H=Q.points,q=Q.isRange,re=Q.baseLine,P=k.item.type.defaultProps!==void 0?ke(ke({},k.item.type.defaultProps),k.item.props):k.item.props,D=P.activeDot,X=P.hide,Z=P.activeBar,ae=P.activeShape,se=!!(!X&&T&&V&&(D||Z||ae)),pe={};j!=="axis"&&V&&V.props.trigger==="click"?pe={onClick:uw(B.handleItemMouseEnter,_.props.onClick)}:j!=="axis"&&(pe={onMouseLeave:uw(B.handleItemMouseLeave,_.props.onMouseLeave),onMouseEnter:uw(B.handleItemMouseEnter,_.props.onMouseEnter)});var le=S.cloneElement(_,ke(ke({},k.props),pe));function he(Le){return typeof U.dataKey=="function"?U.dataKey(Le.payload):null}if(se)if(R>=0){var Ae,ue;if(U.dataKey&&!U.allowDuplicatedCategory){var _e=typeof U.dataKey=="function"?he:"payload.".concat(U.dataKey.toString());Ae=f5(H,_e,G),ue=q&&re&&f5(re,_e,G)}else Ae=H==null?void 0:H[R],ue=q&&re&&re[R];if(ae||Z){var ve=_.props.activeIndex!==void 0?_.props.activeIndex:R;return[S.cloneElement(_,ke(ke(ke({},k.props),pe),{},{activeIndex:ve})),null,null]}if(!tr(Ae))return[le].concat(Lf(B.renderActivePoints({item:k,activePoint:Ae,basePoint:ue,childIndex:R,isRange:q})))}else{var z,Se=(z=B.getItemByXY(B.state.activeCoordinate))!==null&&z!==void 0?z:{graphicalItem:le},Me=Se.graphicalItem,De=Me.item,xe=De===void 0?_:De,ze=Me.childIndex,me=ke(ke(ke({},k.props),pe),{},{activeIndex:ze});return[S.cloneElement(xe,me),null,null]}return q?[le,null,null]:[le,null]}),Lt(B,"renderCustomized",function(_,F,O){return S.cloneElement(_,ke(ke({key:"recharts-customized-".concat(O)},B.props),B.state))}),Lt(B,"renderMap",{CartesianGrid:{handler:mw,once:!0},ReferenceArea:{handler:B.renderReferenceElement},ReferenceLine:{handler:mw},ReferenceDot:{handler:B.renderReferenceElement},XAxis:{handler:mw},YAxis:{handler:mw},Brush:{handler:B.renderBrush,once:!0},Bar:{handler:B.renderGraphicChild},Line:{handler:B.renderGraphicChild},Area:{handler:B.renderGraphicChild},Radar:{handler:B.renderGraphicChild},RadialBar:{handler:B.renderGraphicChild},Scatter:{handler:B.renderGraphicChild},Pie:{handler:B.renderGraphicChild},Funnel:{handler:B.renderGraphicChild},Tooltip:{handler:B.renderCursor,once:!0},PolarGrid:{handler:B.renderPolarGrid,once:!0},PolarAngleAxis:{handler:B.renderPolarAxis},PolarRadiusAxis:{handler:B.renderPolarAxis},Customized:{handler:B.renderCustomized}}),B.clipPathId="".concat((b=w.id)!==null&&b!==void 0?b:d2("recharts"),"-clip"),B.throttleTriggeredAfterMouseMove=RK(B.triggeredAfterMouseMove,(E=w.throttleDelay)!==null&&E!==void 0?E:1e3/60),B.state={},B}return mRe(m,v),hRe(m,[{key:"componentDidMount",value:function(){var b,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,E=b.children,B=b.data,_=b.height,F=b.layout,O=ea(E,sl);if(O){var k=O.props.defaultIndex;if(!(typeof k!="number"||k<0||k>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[k]&&this.state.tooltipTicks[k].value,I=LI(this.state,B,k,j),T=this.state.tooltipTicks[k].coordinate,U=(this.state.offset.top+_)/2,R=F==="horizontal",G=R?{x:T,y:U}:{y:T,x:U},K=this.state.formattedGraphicalItems.find(function(Q){var H=Q.item;return H.type.name==="Scatter"});K&&(G=ke(ke({},G),K.props.points[k].tooltipPosition),I=K.props.points[k].tooltipPayload);var V={activeTooltipIndex:k,isTooltipActive:!0,activeLabel:j,activePayload:I,activeCoordinate:G};this.setState(V),this.renderCursor(O),this.accessibilityManager.setIndex(k)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.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 B,_;this.accessibilityManager.setDetails({offset:{left:(B=this.props.margin.left)!==null&&B!==void 0?B:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(b){m5([ea(b.children,sl)],[ea(this.props.children,sl)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=ea(this.props.children,sl);if(b&&typeof b.props.shared=="boolean"){var E=b.props.shared?"axis":"item";return s.indexOf(E)>=0?E:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var E=this.container,B=E.getBoundingClientRect(),_=$5e(B),F={chartX:Math.round(b.pageX-_.left),chartY:Math.round(b.pageY-_.top)},O=B.width/E.offsetWidth||1,k=this.inRange(F.chartX,F.chartY,O);if(!k)return null;var j=this.state,I=j.xAxisMap,T=j.yAxisMap,U=this.getTooltipEventType(),R=jD(this.state,this.props.data,this.props.layout,k);if(U!=="axis"&&I&&T){var G=rh(I).scale,K=rh(T).scale,V=G&&G.invert?G.invert(F.chartX):null,Q=K&&K.invert?K.invert(F.chartY):null;return ke(ke({},F),{},{xValue:V,yValue:Q},R)}return R?ke(ke({},F),R):null}},{key:"inRange",value:function(b,E){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,F=b/B,O=E/B;if(_==="horizontal"||_==="vertical"){var k=this.state.offset,j=F>=k.left&&F<=k.left+k.width&&O>=k.top&&O<=k.top+k.height;return j?{x:F,y:O}:null}var I=this.state,T=I.angleAxisMap,U=I.radiusAxisMap;if(T&&U){var R=rh(T);return fR({x:F,y:O},R)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,E=this.getTooltipEventType(),B=ea(b,sl),_={};B&&E==="axis"&&(B.props.trigger==="click"?_={onClick:this.handleClick}:_={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 F=sb(this.props,this.handleOuterEvent);return ke(ke({},F),_)}},{key:"addListener",value:function(){H_.on(K_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){H_.removeListener(K_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,E,B){for(var _=this.state.formattedGraphicalItems,F=0,O=_.length;F<O;F++){var k=_[F];if(k.item===b||k.props.key===b.key||E===wl(k.item.type)&&B===k.childIndex)return k}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,E=this.state.offset,B=E.left,_=E.top,F=E.height,O=E.width;return oe.createElement("defs",null,oe.createElement("clipPath",{id:b},oe.createElement("rect",{x:B,y:_,height:F,width:O})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(E,B){var _=ND(B,2),F=_[0],O=_[1];return ke(ke({},E),{},Lt({},F,O.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(E,B){var _=ND(B,2),F=_[0],O=_[1];return ke(ke({},E),{},Lt({},F,O.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[b])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(b){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[b])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(b){var E=this.state,B=E.formattedGraphicalItems,_=E.activeItem;if(B&&B.length)for(var F=0,O=B.length;F<O;F++){var k=B[F],j=k.props,I=k.item,T=I.type.defaultProps!==void 0?ke(ke({},I.type.defaultProps),I.props):I.props,U=wl(I.type);if(U==="Bar"){var R=(j.data||[]).find(function(Q){return Bje(b,Q)});if(R)return{graphicalItem:k,payload:R}}else if(U==="RadialBar"){var G=(j.data||[]).find(function(Q){return fR(b,Q)});if(G)return{graphicalItem:k,payload:G}}else if(L2(k,_)||U2(k,_)||Iy(k,_)){var K=xPe({graphicalItem:k,activeTooltipItem:_,itemData:T.data}),V=T.activeIndex===void 0?K:T.activeIndex;return{graphicalItem:ke(ke({},k),{},{childIndex:V}),payload:Iy(k,_)?T.data[K]:k.props.data[K]}}}return null}},{key:"render",value:function(){var b=this;if(!oL(this))return null;var E=this.props,B=E.children,_=E.className,F=E.width,O=E.height,k=E.style,j=E.compact,I=E.title,T=E.desc,U=TD(E,aRe),R=Dt(U,!1);if(j)return oe.createElement(bD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},oe.createElement(v5,xh({},R,{width:F,height:O,title:I,desc:T}),this.renderClipPath(),sL(B,this.renderMap)));if(this.props.accessibilityLayer){var G,K;R.tabIndex=(G=this.props.tabIndex)!==null&&G!==void 0?G:0,R.role=(K=this.props.role)!==null&&K!==void 0?K:"application",R.onKeyDown=function(Q){b.accessibilityManager.keyboardEvent(Q)},R.onFocus=function(){b.accessibilityManager.focus()}}var V=this.parseEventsOfWrapper();return oe.createElement(bD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},oe.createElement("div",xh({className:er("recharts-wrapper",_),style:ke({position:"relative",curs
570or:"default",width:F,height:O},k)},V,{ref:function(H){b.container=H}}),oe.createElement(v5,xh({},R,{width:F,height:O,title:I,desc:T,style:BRe}),this.renderClipPath(),sL(B,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(S.Component);Lt(g,"displayName",r),Lt(g,"defaultProps",ke({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),Lt(g,"getDerivedStateFromProps",function(v,m){var w=v.dataKey,b=v.data,E=v.children,B=v.width,_=v.height,F=v.layout,O=v.stackOffset,k=v.margin,j=m.dataStartIndex,I=m.dataEndIndex;if(m.updateId===void 0){var T=PD(v);return ke(ke(ke({},T),{},{updateId:0},f(ke(ke({props:v},T),{},{updateId:0}),m)),{},{prevDataKey:w,prevData:b,prevWidth:B,prevHeight:_,prevLayout:F,prevStackOffset:O,prevMargin:k,prevChildren:E})}if(w!==m.prevDataKey||b!==m.prevData||B!==m.prevWidth||_!==m.prevHeight||F!==m.prevLayout||O!==m.prevStackOffset||!p5(k,m.prevMargin)){var U=PD(v),R={chartX:m.chartX,chartY:m.chartY,isTooltipActive:m.isTooltipActive},G=ke(ke({},jD(m,b,F)),{},{updateId:m.updateId+1}),K=ke(ke(ke({},U),R),G);return ke(ke(ke({},K),f(ke({props:v},K),m)),{},{prevDataKey:w,prevData:b,prevWidth:B,prevHeight:_,prevLayout:F,prevStackOffset:O,prevMargin:k,prevChildren:E})}if(!m5(E,m.prevChildren)){var V,Q,H,q,re=ea(E,Nf),P=re&&(V=(Q=re.props)===null||Q===void 0?void 0:Q.startIndex)!==null&&V!==void 0?V:j,D=re&&(H=(q=re.props)===null||q===void 0?void 0:q.endIndex)!==null&&H!==void 0?H:I,X=P!==j||D!==I,Z=!tr(b),ae=Z&&!X?m.updateId:m.updateId+1;return ke(ke({updateId:ae},f(ke(ke({props:v},m),{},{updateId:ae,dataStartIndex:P,dataEndIndex:D}),m)),{},{prevChildren:E,dataStartIndex:P,dataEndIndex:D})}return null}),Lt(g,"renderActiveDot",function(v,m,w){var b;return S.isValidElement(v)?b=S.cloneElement(v,m):Wt(v)?b=v(m):b=oe.createElement(O2,m),oe.createElement(en,{className:"recharts-active-dot",key:w},b)});var p=S.forwardRef(function(m,w){return oe.createElement(g,xh({},m,{ref:w}))});return p.displayName=g.displayName,p},lv=$z({chartName:"PieChart",GraphicalChild:Ko,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:rd},{axisType:"radiusAxis",AxisComp:td}],formatAxisMap:zV,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Hz=$z({chartName:"RadarChart",GraphicalChild:cp,axisComponents:[{axisType:"angleAxis",AxisComp:rd},{axisType:"radiusAxis",AxisComp:td}],formatAxisMap:zV,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function z_({delta:e}){const t=Math.abs(e);return t===0?c.jsx("span",{style:{color:"#9ca3af"},children:"→ 0.00"}):e>0?c.jsxs("span",{style:{color:"#22c55e"},children:["↑ +",t.toFixed(2)]}):c.jsxs("span",{style:{color:"#ef4444"},children:["↓ -",t.toFixed(2)]})}function W_({label:e}){const r={Critical:{bg:"#FEF2F2",color:"#DC2626"},Developing:{bg:"#FFFBEB",color:"#D97706"},Strong:{bg:"#F0FDF4",color:"#16A34A"},Leading:{bg:"#EFF6FF",color:"#2563EB"}}[e];return c.jsx("span",{style:{backgroundColor:r.bg,color:r.color,borderRadius:"9999px",padding:"2px 10px",fontSize:"12px",fontWeight:600},children:e})}function ORe({text:e}){return c.jsxs(Wu,{children:[c.jsx(Gu,{asChild:!0,children:c.jsx("button",{className:"ml-1 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-[#E5E7EB] text-[10px] text-[#6B7280] hover:bg-[#D1D5DB]","aria-label":"Info",children:"i"})}),c.jsx(yc,{className:"w-72 text-sm",children:e})]})}const UD={AV:"How actively employees experiment with and act on AI in their daily work.",ES:"How well AI is integrated into the systems, culture, and workflows across the organization.",THRESHOLD:"4.0 is the threshold between Developing and Strong readiness."},t1={EXPLORER:{fill:"#FEF2F2",stroke:"#DC2626"},PIONEER:{fill:"#EFF6FF",stroke:"#2563EB"},GUARDIAN:{fill:"#FFFBEB",stroke:"#D97706"},ORCHESTRATOR:{fill:"#F0FDF4",stroke:"#16A34A"}},Fg={ORCHESTRATOR:"Orchestrator",PIONEER:"Pioneer",GUARDIAN:"Guardian",EXPLORER:"Explorer"},jRe={ORCHESTRATOR:"The Agentic-Human Enterprise",PIONEER:"The Fragmented Frontier",GUARDIAN:"The Governance Gridlock",EXPLORER:"The Uncharted Enterprise"},RD={IA_01_AV:"I'm uncertain about whether I'm using the right AI tools effectively in my role.",IA_02_AV:"I have clarity on which AI capabilities would meaningfully accelerate my key workflows.",IA_03_AV:"I feel effective when I use AI tools in my daily work.",IA_04_AV:"I'm free to experiment with new AI tools and find what works, even if we hit some dead ends along the way.",IA_05_AV:"AI agents or automation have directly reduced my manual workload in the past 6 months.",IA_06_AV:"My current role involves orchestrating or coordinating multiple AI tools or systems as part of my daily work.",IA_07_AV:"I feel overwhelmed by the pace at which AI tools and technologies are changing in my field.",IA_08_ES:"I share my best AI prompts, tips, and tools to help the whole team work faster.",IA_09_ES:"I trust that my leadership wants AI to help us do more, not to take our jobs.",IA_10_ES:"I feel okay flagging problems or admitting I'm stuck with AI tools without worrying it will make me look bad.",IA_11_ES:"I'm worried that what AI generates is starting to matter more than my actual judgment and expertise.",IA_12_ES:"AI feels like a helpful teammate that makes me better at my job.",IA_13_ES:"AI has accelerated work to 
570such a pace that I'm struggling to keep up, and it's wearing me out.",IA_14_ES:"I have a real say in how AI is used in my area.",IA_15_ES:"My feedback on AI decisions actually shapes what happens next.",IA_16_ES:"If an AI tool gets it wrong, my team focuses on learning why instead of looking for someone to blame.",IA_17_AV:"I spend more of my time directing AI and less time on repetitive, time-consuming tasks.",IA_18_AV:"I actively use AI tools to support my decision-making and accelerate my work.",IA_19_AV:"I'm forced to work around our old systems because we don't have an AI alternative that actually works faster.",IA_20_AV:"Things take longer than they should due to manual steps and multiple layers of sign-off in our process.",IA_21_ES:"I've watched roles disappear because AI took over the work people used to do.",IA_22_AV:"AI saves me time, but those gains are lost because the rest of the workflow is stuck in a slow manual process.",IA_23_ES:"My organization provides me with the tools and training I need to work efficiently with AI.",IA_24_ES:"My organization regularly communicates the risks and ethics of AI use, not just the benefits.",IA_25_ES:"The rules for AI are clear in our organization. I know what's allowed and what's off-limits.",IA_26_ES:"Our organization uses AI to help us do more, not as a reason to cut our jobs.",IA_27_ES:"Security policies restrict me to a list of approved AI tools, which limits my ability to find better ways to work.",IA_28_ES:"My direct leader/manager isn't on board with AI yet, so I don't feel like I have the green light to use the tools we've been given.",IA_29_ES:"My team has mapped out exactly where AI fits into our workflows to achieve the best outcomes."},PRe=new Set(["IA_01_AV","IA_07_AV","IA_11_ES","IA_13_ES","IA_19_AV","IA_20_AV","IA_21_ES","IA_22_AV","IA_27_ES","IA_28_ES"]);function LRe({distribution:e}){const t=["EXPLORER","PIONEER","GUARDIAN","ORCHESTRATOR"],r=Object.values(e).reduce((o,a)=>o+a,0),n=t.filter(o=>e[o]>0).map(o=>({name:o,value:e[o],...t1[o]})),i=({cx:o,cy:a,midAngle:s,innerRadius:l,outerRadius:A,value:u})=>{const d=Math.PI/180,h=l+(A-l)*1.6,f=o+h*Math.cos(-s*d),g=a+h*Math.sin(-s*d),p=r>0?Math.round(u/r*100):0;return c.jsxs("text",{x:f,y:g,fill:"#374151",textAnchor:f>o?"start":"end",dominantBaseline:"central",fontSize:"11",children:[u," (",p,"%)"]})};return c.jsxs("div",{children:[c.jsx(qu,{width:"100%",height:260,children:c.jsx(lv,{children:c.jsx(Ko,{data:n,dataKey:"value",cx:"50%",cy:"50%",innerRadius:55,outerRadius:85,label:i,labelLine:!1,children:n.map((o,a)=>c.jsx(Xu,{fill:o.fill,stroke:o.stroke,strokeWidth:2},a))})})}),c.jsx("div",{className:"flex flex-wrap justify-center gap-3 mt-2",children:t.map(o=>c.jsxs("span",{className:"flex items-center gap-1 text-xs text-[#374151]",children:[c.jsx("span",{className:"inline-block h-3 w-3 rounded-sm",style:{backgroundColor:t1[o].fill,border:`2px solid ${t1[o].stroke}`}}),o,": ",e[o]]},o))})]})}function URe({employees:e,orgAvg:t}){const[r,n]=S.useState(null),i=[...e].sort((h,f)=>(h.av+h.es)/2-(f.av+f.es)/2),o=i.map(h=>(h.av+h.es)/2),a=o.length?Math.min(...o):1,l=(o.length?Math.max(...o):6)-a;let A;l<=.5?A="Your employees are tightly clustered. A rising tide approach will work well here.":l>1.5?A="There is significant spread in individual readiness. Consider targeted programs for different readiness tiers.":A="There is moderate spread across individuals. Targeted coaching for the lowest-scoring segments will move the average fastest.";const u=h=>(h-1.5)/5*100,d=u(4);return c.jsxs("div",{children:[c.jsx("div",{className:"relative py-8",style:{minHeight:"80px"},children:c.jsxs("svg",{viewBox:"0 0 100 40",className:"w-full",preserveAspectRatio:"none",style:{overflow:"visible"},children:[c.jsx("line",{x1:"0",y1:"25",x2:"100",y2:"25",stroke:"#E5E7EB",strokeWidth:"0.5"}),c.jsx("line",{x1:d,y1:"5",x2:d,y2:"35",stroke:"#9CA3AF",strokeWidth:"0.3",strokeDasharray:"1"}),c.jsx("line",{x1:u(t),y1:"10",x2:u(t),y2:"30",stroke:"#FFC100",strokeWidth:"0.6"}),c.jsx("text",{x:u(t),y:"38",textAnchor:"middle",fill:"#FFC100",fontSize:"3",fontWeight:"600",children:t.toFixed(2)}),i.map((h,f)=>{const g=(h.av+h.es)/2,p=t1[h.archetype];return c.jsx("g",{onMouseEnter:()=>n(f),onMouseLeave:()=>n(null),style:{cursor:"pointer"},children:c.jsx("circle",{cx:u(g),cy:"25",r:"1.2",fill:p.fill,stroke:p.stroke,strokeWidth:"0.4"})},f)}),[2,3,4,5,6].map(h=>c.jsx("text",{x:u(h),y:"30",textAnchor:"middle",fill:"#9CA3AF",fontSize:"2.5",children:h},h))]})}),r!==null&&i[r]&&(()=>{const h=i[r],f=((h.av+h.es)/2).toFixed(2);return c.jsxs("div",{className:"mb-2 inline-block rounded-md border border-[#
570E5E7EB] bg-white px-3 py-2 text-xs shadow-sm",style:{borderRadius:"6px"},children:[c.jsx("p",{className:"font-semibold text-[#374151]",children:Fg[h.archetype]}),c.jsxs("p",{className:"text-[#6B7280]",children:["Overall Score: ",f]})]})})(),c.jsx("p",{className:"text-sm italic text-[#374151]",children:A})]})}function RRe({score:e}){const t=(e-1)/5*100,r=[{label:"Critical",bg:"#FEF2F2",w:"28%"},{label:"Developing",bg:"#FFFBEB",w:"28%"},{label:"Strong",bg:"#F0FDF4",w:"24%"},{label:"Leading",bg:"#EFF6FF",w:"16%"}];return c.jsx("div",{className:"mt-3",children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute text-sm text-[#FFC100]",style:{left:`${t}%`,top:"-18px",transform:"translateX(-50%)"},children:"▼"}),c.jsx("div",{className:"flex h-5 w-full overflow-hidden rounded",children:r.map(n=>c.jsx("div",{className:"flex items-center justify-center text-[9px] font-medium text-[#6B7280]",style:{backgroundColor:n.bg,width:n.w},children:n.label},n.label))})]})})}function DRe({data:e,drilldownEnabled:t,onMemberClick:r,aiNarrative:n,aiNarrativeLoading:i}){const{teams:o,orgAvgAV:a,orgAvgES:s,orgBaselineAvgAV:l,orgBaselineAvgES:A,orgArchetype:u,orgArchetypeDist:d,orgSpiderSubScores:h,totalEmployees:f,companyName:g}=e,p=o.some(H=>H.members.some(q=>q.hasRetake)),v=Wi(l,A),m=(a+s)/2;S.useMemo(()=>{const H=[];for(const q of o)for(const re of q.members)H.push({av:re.current.av,es:re.current.es,archetype:re.current.archetype,email:re.email,label:re.roleLevel||void 0});return H},[o]);const w=S.useMemo(()=>{const H=[];let q=0;for(const re of o)for(const P of re.members)H.push({label:`P${++q}`,av:P.baseline.av,es:P.baseline.es,archetype:P.baseline.archetype,email:P.email,roleLevel:P.roleLevel});return H},[o]),b=S.useMemo(()=>{if(!p)return null;const H=[];let q=0;for(const re of o)for(const P of re.members)H.push({label:`P${++q}`,av:P.current.av,es:P.current.es,archetype:P.current.archetype,email:P.email,roleLevel:P.roleLevel});return H},[o,p]),E=S.useMemo(()=>{const H={ORCHESTRATOR:0,PIONEER:0,GUARDIAN:0,EXPLORER:0};for(const q of o)for(const re of q.members)H[re.current.archetype]++;return H},[o]),B=a>=s?"Agentic Velocity":"Enterprise Symbiosis",_=a<s?"Agentic Velocity":"Enterprise Symbiosis",F=Math.max(a,s),O=Math.min(a,s),k=F>3.5?`Your organization's strongest dimension is ${B} at ${F.toFixed(2)}. This is above the readiness threshold and represents a genuine organizational capability.`:"Your organization is early in its AI readiness journey. You are measuring it now, and that matters. Awareness comes before action.",j=O<=3.5?`The area needing the most attention is ${_} at ${O.toFixed(2)}. This is below the readiness threshold and represents the highest-leverage improvement opportunity.`:"Both dimensions are above the readiness threshold. Focus on moving the overall average upward and closing any gaps between individuals.",I=(()=>
570{if(!p)return`This is your organization's baseline. AV is ${a.toFixed(2)} and ES is ${s.toFixed(2)}. Every future assessment will show movement from this starting point.`;const H=m-(l+A)/2;return H>=.1?`Your organization's average readiness has improved since Day 1. AV moved from ${l.toFixed(2)} to ${a.toFixed(2)} and ES moved from ${A.toFixed(2)} to ${s.toFixed(2)}. The organization is shifting in the right direction.`:H<=-.1?`Your organization's average readiness has dipped since Day 1. AV moved from ${l.toFixed(2)} to ${a.toFixed(2)} and ES moved from ${A.toFixed(2)} to ${s.toFixed(2)}. Review the question-level insights to find where to focus.`:`Your organization's scores have held steady since Day 1. AV is ${a.toFixed(2)} and ES is ${s.toFixed(2)}. Consistency is a foundation. Identify one intervention to move the needle before the next assessment.`})(),T=S.useMemo(()=>Object.keys(RD).map(q=>{const re=q.includes("_AV")?"AV":"ES",P=[],D=q.replace("IA_","SIA_");for(const Z of o)for(const ae of Z.members){const se=ae.current.items.find(pe=>pe.key===q||pe.key===D);se&&P.push(se.score)}const X=P.length?Math.round(P.reduce((Z,ae)=>Z+ae,0)/P.length*100)/100:0;return{key:q,dim:re,text:RD[q],rc:PRe.has(q),displayAvg:X}}).filter(q=>q.displayAvg>0),[o]),U=Object.entries(E).sort((H,q)=>q[1]-H[1])[0],R={color:"#FFC100",fontSize:"11px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"8px"},G={color:"#374151",fontSize:"14px",lineHeight:1.7},K={borderColor:"#E5E7EB",margin:"0"},V="Start with the Org-Wide Profile to see where every individual lands. Then review the Dimension Breakdown for AV and ES details. Check the four visualizations for shape, distribution, gap, and spread insights. If retake data exists, the Growth Journey shows movement over time. Close with the Question-Level Insights for the most granular view.",Q=S.useMemo(()=>{const H=[];for(const q of o)for(const re of q.members)H.push({av:re.current.av,es:re.current.es,archetype:re.current.archetype});return H},[o]);return c.jsxs("div",{className:"space-y-8",children:[c.jsxs("section",{className:"rounded-lg",style:{borderLeft:"4px solid #FFC100",background:"#FFFDF5",padding:"28px"},children:[c.jsx("h2",{style:{fontFamily:"Outfit, sans-serif",fontSize:"22px",fontWeight:700,color:"#1A1918",marginBottom:"8px"},children:"Org Snapshot"}),c.jsx("div",{style:{height:"2px",background:"#FFC100",marginBottom:"12px"}}),c.jsx("p",{style:{fontSize:"14px",fontStyle:"italic",color:"#6B7280",marginBottom:"24px"},children:"Your FlipFactor™ org-wide assessment at a glance."}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[c.jsxs("div",{children:[c.jsx("p",{style:R,children:"OVERVIEW"}),c.jsx("p",{style:G,children:i?c.jsx("span",{className:"text-muted-foreground italic",children:"Preparing your organizational insights..."}):(n==null?void 0:n.overview)??`${f} employees assessed across ${o.length} team${o.length!==1?"s":""}. The dominant archetype is ${Fg[u]} (${U[1]} of ${f} employees). Org-wide AV is ${a.toFixed(2)} (${br(a)}) and ES is ${s.toFixed(2)} (${br(s)}). This places the organization in the ${jRe[u]} stage.${p?` On Day 1, the dominant archetype was ${Fg[v]} with an org-wide AV of ${l.toFixed(2)} and ES of ${A.toFixed(2)}. Today the organization has reached ${Fg[u]}.`:""}`})]}),c.jsx("hr",{style:K}),c.jsxs("div",{children:[c.jsx("p",{style:R,children:"WHAT YOUR ORGANIZATION IS DOING WELL"}),c.jsx("p",{style:G,children:i?c.jsx("span",{className:"text-muted-foreground italic",children:"Preparing your organizational insights..."}):(n==null?void 0:n.strengths)??k})]}),c.jsx("hr",{style:K}),c.jsxs("div",{children:[c.jsx("p",{style:R,children:"WHERE TO FOCUS"}),c.jsx("p",{style:G,children:i?c.jsx("span",{className:"text-muted-foreground italic",children:"Preparing your organizational insights..."}):(n==null?void 0:n.focus)??j})]}),c.jsx("hr",{style:K}),c.jsxs("div",{children:[c.jsx("p",{style:R,children:"HOW TO USE THIS REPORT"}),c.jsx("p",{style:G,children:V})]})]})]}),c.jsxs("section",{"data-print-break":!0,className:"rounded-lg border border-[#
570E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Org-Wide FlipFactor™ Profile"}),c.jsx("p",{className:"mb-6 text-sm italic",style:{color:"#6B7280"},children:"Every individual employee plotted by their AV and ES scores. The star marks the org-wide average."}),c.jsx(ev,{baselineMembers:w,currentMembers:b,baselineTeamAvgAV:l,baselineTeamAvgES:A,currentTeamAvgAV:a,currentTeamAvgES:s,hasRetake:p,drilldownEnabled:t,onMemberClick:r?H=>{H.email&&r(H.email)}:void 0,narrativeContent:c.jsxs("div",{children:[c.jsx("p",{className:"text-xs uppercase tracking-wider",style:{color:"#B8860B",fontWeight:700},children:"Org Profile"}),c.jsxs("div",{className:"mt-3 flex items-center gap-4 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Org Average AV"}),c.jsx("span",{className:"ml-2",children:c.jsx(W_,{label:br(a)})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",a.toFixed(2)," out of 6.0",p&&c.jsx("span",{className:"ml-2",children:c.jsx(z_,{delta:a-l})})]})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Org Average ES"}),c.jsx("span",{className:"ml-2",children:c.jsx(W_,{label:br(s)})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",s.toFixed(2)," out of 6.0",p&&c.jsx("span",{className:"ml-2",children:c.jsx(z_,{delta:s-A})})]})]})]}),c.jsxs("div",{className:"mt-4",style:{display:"flex",flexDirection:"column",gap:"12px"},children:[c.jsxs("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:[f," employees assessed. The dominant archetype is ",Fg[u]," with an org-wide AV of ",a.toFixed(2)," and ES of ",s.toFixed(2),"."]}),c.jsx("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:I})]})]})})]}),c.jsxs("section",{"data-print-break":!0,children:[c.jsx("h2",{className:"mb-4 text-lg font-bold text-foreground",children:"Org Dimension Breakdown"}),c.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:[{key:"av",name:"Agentic Velocity (AV)",def:UD.AV,score:a,baseline:l},{key:"es",name:"Enterprise Symbiosis (ES)",def:UD.ES,score:s,baseline:A}].map(H=>c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsxs("p",{className:"text-sm font-medium text-muted-foreground flex items-center",children:[H.name,c.jsx(ORe,{text:H.def})]}),c.jsx("p",{className:"text-[12px] text-[#6B7280]",children:H.def}),c.jsx("p",{className:"mt-2 flex items-center gap-2 text-2xl font-bold text-foreground",children:c.jsx(W_,{label:br(H.score)})}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Score: ",H.score.toFixed(2)," out of 6.0"]}),p&&c.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:c.jsx(z_,{delta:H.score-H.baseline})}),c.jsx(RRe,{score:H.score})]},H.key))})]}),c.jsx("section",{children:c.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Org Archetype Distribution"}),c.jsx("p",{className:"mt-1 mb-3 text-sm text-[#374151]",children:"How all employees are distributed across the four AI readiness archetypes."}),c.jsx(LRe,{distribution:E})]}),c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Org Score Spread"}),c.jsx("p",{className:"mt-1 mb-3 text-sm text-[#374151]",children:"Every employee plotted by their composite score. The gold line is the org-wide average."}),c.jsx(URe,{employees:Q,orgAvg:m})]})]})}),p&&(()=>{const H=[{label:"DAY 1",av:l,es:A,archetype:v},{label:"TODAY",av:a,es:s,archetype:u}];return c.jsx(Jf,{rounds:H,title:"Org Growth Journey"})})(),c.jsxs("section",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",style:{breakInside:"avoid"},children:[c.jsx("h2",{className:"mb-1 text-lg font-bold text-foreground",children:"Recommendations"}),c.jsx("p",{className:"mb-4 text-sm italic",style:{color:"#6B7280"},children:"What this data means for your people strategy."}),c.jsx("p",{className:"mb-4 text-sm text-[#374151]",children:"Individual readiness is distributed unevenly. That is normal. The question is whether your strategy accounts for it."}),c.jsx("div",{className:"space-y-3",children:(()=>{const H=E.ORCHESTRATOR,q=f,re=q>0?Math.round(H/q*100):0,P=E.EXPLORER,D=E.GUARDIAN;return(i?[]:(n==null?void 0:n.recommendations)??[`${re}% of individuals (${H} of ${q}) are now in Orchestrator territory. That is a real achievement. The recommendation is to make these people visible. They are your internal proof of concept. If your organization has Orchestrators and your workforce does not know who they are, you are leaving influence on the table.`,`${P} individual${P!==1?"s are":" is"} still in Explorer territory and ${D} in Guardian territory. Explorers need structured onboarding and one successful AI experiment. Guardians need explicit permission, not more training. These are different interventions. Treat them as such.`,"The score spread shows individual variance. The recommendation is to build cohort-based support, not one-size-fits-all training. Group people by archetype for the next learning sprint and watch adoption accelerate."]).map((Z,ae)=>
570c.jsxs("div",{className:"flex gap-4 rounded-lg bg-white p-4",style:{borderLeft:"4px solid #FFC100",borderRadius:"8px"},children:[c.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[#FFC100] text-sm font-bold text-[#1A1918]",children:ae+1}),c.jsx("p",{className:"text-sm leading-relaxed text-[#374151]",children:Z})]},ae))})()}),c.jsx("p",{className:"mt-6 text-sm italic",style:{color:"#6B7280",fontSize:"14px"},children:"Readiness is not a one-time event. It is a practice. Every score on this report has room to grow."})]}),c.jsx(E9,{rows:T,title:"Org-Wide Question-Level Insights",subtitle:"Org-wide average score per question across all employees, sorted lowest to highest. Use this to identify where the organization is collectively strong and where targeted support is needed most.",buttonLabel:"View Org Question Details",interpretationSurface:"leaderTeam"})]})}function QRe({items:e,maxItems:t=12,coachingMap:r={}}){if(!e||e.length===0)return c.jsx("div",{className:"text-sm text-muted-foreground py-4",children:"Not enough data to compute perception gaps. Leaders and employees must both have scores."});const n=e.slice(0,t),i=6;return c.jsxs("div",{className:"space-y-8",children:[c.jsx("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-amber-400"}),"Leader assumed"]}),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-sky-400"}),"Team reported"]})]})}),c.jsxs("div",{className:"space-y-3 text-xs text-muted-foreground",children:[c.jsx("p",{children:"Both instruments measure the same 29 questions from two perspectives. Leaders answered how they perceive their team's AI readiness. Team members answered how they see themselves. All scores are on a 1 to 6 scale where higher always means greater AI readiness."}),c.jsx("p",{children:"Some questions are marked RC (reverse coded). This is a standard technique in validated behavioral research designed to produce more accurate, trustworthy results. A high score on a reverse-coded item means the challenge is well-managed or not present. All scores are automatically adjusted before display so that higher always means greater AI readiness, regardless of how a question was originally worded."}),c.jsx("p",{children:"Questions are sorted by the size of the gap. The largest misalignments appear first. A longer gold bar means you assumed your team was stronger than they reported. A longer blue bar means your team is stronger than you realized."})]}),n.map(o=>{const a=`${o.itemNumber}-${o.dimension}`,s=o.leaderAvg/i*100,l=o.employeeAvg/i*100,A=o.gap,u=Math.abs(A)<.1?"text-muted-foreground":A>0?"text-amber-600":"text-sky-600",d=Math.abs(A)<.1?"Aligned":A>0?`Leaders +${A.toFixed(2)} higher`:`Team +${Math.abs(A).toFixed(2)} higher`,h=r[a];return c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-start justify-between gap-4",children:[c.jsx("div",{className:"flex-1 min-w-0",children:c.jsxs("div",{className:"text-sm font-medium text-foreground leading-snug",children:[o.questionText,o.isReverseCoded&&c.jsx("span",{className:"ml-1.5 text-xs text-muted-foreground",children:"RC"})]})}),c.jsx("div",{className:`text-sm font-semibold whitespace-nowrap ${u}`,children:d})]}),c.jsxs("div",{className:"space-y-1.5",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("span",{className:"text-xs text-muted-foreground w-14 text-right shrink-0",children:["Leader ",o.leaderAvg.toFixed(2)]}),c.jsx("div",{className:"flex-1 h-2 bg-muted rounded-full overflow-hidden",children:c.jsx("div",{className:"h-full rounded-full bg-amber-400 transition-all duration-500",style:{width:`${s}%`}})})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("span",{className:"text-xs text-muted-foreground w-14 text-right shrink-0",children:["Team ",o.employeeAvg.toFixed(2)]}),c.jsx("div",{className:"flex-1 h-2 bg-muted rounded-full overflow-hidden",children:c.jsx("div",{className:"h-full rounded-full bg-sky-4
57000 transition-all duration-500",style:{width:`${l}%`}})})]})]}),c.jsxs("div",{className:"text-xs text-muted-foreground pt-0.5",children:[o.dimension==="AV"?"Agentic Velocity":"Enterprise Symbiosis"," ·"," ",o.leaderCount," leader",o.leaderCount!==1?"s":""," ·"," ",o.employeeCount," team member",o.employeeCount!==1?"s":""]}),h?c.jsxs("div",{className:"mt-2 p-3 rounded-md bg-muted/50 border border-border text-sm text-foreground",children:[c.jsx("strong",{className:"block text-xs uppercase tracking-wide text-muted-foreground mb-1",children:"Coaching insight"}),h]}):c.jsx("div",{className:"mt-2 p-3 rounded-md bg-muted/30 border border-border/50 text-xs text-muted-foreground italic",children:"Generating coaching insight..."})]},a)})]})}function G_({delta:e}){const t=Math.abs(e);return t===0?c.jsx("span",{style:{color:"#9ca3af"},children:"→ 0.00"}):e>0?c.jsxs("span",{style:{color:"#22c55e"},children:["↑ +",t.toFixed(2)]}):c.jsxs("span",{style:{color:"#ef4444"},children:["↓ -",t.toFixed(2)]})}function Y_({label:e}){const r={Critical:{bg:"#FEF2F2",color:"#DC2626"},Developing:{bg:"#FFFBEB",color:"#D97706"},Strong:{bg:"#F0FDF4",color:"#16A34A"},Leading:{bg:"#EFF6FF",color:"#2563EB"}}[e];return c.jsx("span",{style:{backgroundColor:r.bg,color:r.color,borderRadius:"9999px",padding:"2px 10px",fontSize:"12px",fontWeight:600},children:e})}function MRe({text:e}){return c.jsxs(Wu,{children:[c.jsx(Gu,{asChild:!0,children:c.jsx("button",{className:"ml-1 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-[#E5E7EB] text-[10px] text-[#6B7280] hover:bg-[#D1D5DB]","aria-label":"Info",children:"i"})}),c.jsx(yc,{className:"w-72 text-sm",children:e})]})}const DD={AV:"How actively leaders experiment with and act on AI in their daily work.",ES:"How well AI is integrated into the systems, culture, and workflows leaders enable.",THRESHOLD:"4.0 is the threshold between Developing and Strong readiness."},r1={EXPLORER:{fill:"#FEF2F2",stroke:"#DC2626"},PIONEER:{fill:"#EFF6FF",stroke:"#2563EB"},GUARDIAN:{fill:"#FFFBEB",stroke:"#D97706"},ORCHESTRATOR:{fill:"#F0FDF4",stroke:"#16A34A"}},Ng={ORCHESTRATOR:"Orchestrator",PIONEER:"Pioneer",GUARDIAN:"Guardian",EXPLORER:"Explorer"},$Re={ORCHESTRATOR:"The Agentic-Human Enterprise",PIONEER:"The Fragmented Frontier",GUARDIAN:"The Governance Gridlock",EXPLORER:"The Uncharted Enterprise"},HRe=[{key:"LA_30_AV",dim:"AV",text:"I have a clear roadmap for how my team will evolve from task-performers to AI orchestrators over the next 12 months.",rc:!1},{key:"LA_31_AV",dim:"AV",text:"I have visibility into which AI tools and workarounds my team is using outside of official organizational channels.",rc:!1},{key:"LA_32_ES",dim:"ES",text:"I struggle with my own understanding of AI capabilities, which limits my ability to guide my team effectively.",rc:!0},{key:"LA_33_ES",dim:"ES",text:"I can clearly measure the impact of AI on my team's end-to-end deliverables, not just whether people are using the tools.",rc:!1},{key:"LA_34_ES",dim:"ES",text:"My team has moved beyond individual experimentation with AI to officially redesigned workflows where AI is a required component.",rc:!1},{key:"LA_35_AV",dim:"AV",text:"I'm comfortable delegating work I used to do myself to AI tools, even when I know I could do it well.",rc:!1},{key:"LA_36_ES",dim:"ES",text:"I am clear on how accountability works when my team uses AI to inform decisions. I know where the AI's role ends and human responsibility begins.",rc:!1},{key:"LA_37_AV",dim:"AV",text:"I am confident in my ability to evaluate the quality of AI-assisted work my team produces, even when I wasn't involved in directing the AI.",rc:!1},{key:"LA_38_AV",dim:"AV",text:"I evaluate my team's performance based on the quality and impact of their outcomes, not on how many hours or manual steps it took to produce them.",rc:!1},{key:"LA_39_ES",dim:"ES",text:"I'm comfortable when team members know more about AI tools than I do.",rc:!1},{key:"LA_40_ES",dim:"ES",text:"I actively encourage team members to lead AI initiatives in areas where they have greater expertise than I do.",rc:!1}];function KRe({avgAV:e,avgES:t,subScores:r}){const n=[{name:"Agentic Velocity",value:e},{name:"Enterprise Symbiosis",value:t},{name:"Individual Experimentation",value:r["Individual Experimentation"]||0},{name:"Workflow Integration",value:r["Workflow Integration"]||0},{name:"Psychological Safety",value:r["Psychological Safety"]||0},{name:"Organizational Enablement",value:r["Organizational Enablement"]||0}];return c.jsxs("div",{children:[c.jsx(qu,{width:"100%",height:300,children:c.jsxs(Hz,{data:n,cx:"50%",cy:"50%",outerRadius:"70%",children:[c.jsx(ON,{stroke:"#E5E7EB"}),c.jsx(rd,{dataKey:"name",tick:{fill:"#374151",fontSize:11}}
570),c.jsx(td,{domain:[1,6],tick:{fill:"#9CA3AF",fontSize:9},axisLine:!1}),c.jsx(cp,{dataKey:"value",stroke:"#FFC100",fill:"#FFC100",fillOpacity:.3,strokeWidth:2})]})}),c.jsx("p",{className:"mt-2 italic",style:{fontSize:"12px",color:"#6B7280"},children:"Each spoke represents a sub-dimension of leadership AI readiness. A fuller shape means more balanced readiness across all areas."})]})}function VRe({distribution:e}){const t=["EXPLORER","PIONEER","GUARDIAN","ORCHESTRATOR"],r=Object.values(e).reduce((o,a)=>o+a,0),n=t.filter(o=>e[o]>0).map(o=>({name:o,value:e[o],...r1[o]})),i=({cx:o,cy:a,midAngle:s,innerRadius:l,outerRadius:A,value:u})=>{const d=Math.PI/180,h=l+(A-l)*1.6,f=o+h*Math.cos(-s*d),g=a+h*Math.sin(-s*d),p=r>0?Math.round(u/r*100):0;return c.jsxs("text",{x:f,y:g,fill:"#374151",textAnchor:f>o?"start":"end",dominantBaseline:"central",fontSize:"11",children:[u," (",p,"%)"]})};return c.jsxs("div",{children:[c.jsx(qu,{width:"100%",height:260,children:c.jsx(lv,{children:c.jsx(Ko,{data:n,dataKey:"value",cx:"50%",cy:"50%",innerRadius:55,outerRadius:85,label:i,labelLine:!1,children:n.map((o,a)=>c.jsx(Xu,{fill:o.fill,stroke:o.stroke,strokeWidth:2},a))})})}),c.jsx("div",{className:"flex flex-wrap justify-center gap-3 mt-2",children:t.map(o=>c.jsxs("span",{className:"flex items-center gap-1 text-xs text-[#374151]",children:[c.jsx("span",{className:"inline-block h-3 w-3 rounded-sm",style:{backgroundColor:r1[o].fill,border:`2px solid ${r1[o].stroke}`}}),o,": ",e[o]]},o))})]})}function zRe({leaders:e,leaderAvg:t}){const[r,n]=S.useState(null),i=[...e].sort((h,f)=>(h.av+h.es)/2-(f.av+f.es)/2),o=i.map(h=>(h.av+h.es)/2),a=o.length?Math.min(...o):1,l=(o.length?Math.max(...o):6)-a;let A;l<=.5?A="Your leaders are tightly clustered. A consistent leadership development program will work well.":l>1.5?A="There is significant spread in leadership readiness. Consider targeted development for leaders at different readiness tiers.":A="There is moderate spread across leaders. Targeted coaching for the lowest-scoring leaders will move the leadership average fastest.";const u=h=>(h-1.5)/5*100,d=u(4);return c.jsxs("div",{children:[c.jsx("div",{className:"relative py-8",style:{minHeight:"80px"},children:c.jsxs("svg",{viewBox:"0 0 100 40",className:"w-full",preserveAspectRatio:"none",style:{overflow:"visible"},children:[c.jsx("line",{x1:"0",y1:"25",x2:"100",y2:"25",stroke:"#E5E7EB",strokeWidth:"0.5"}),c.jsx("line",{x1:d,y1:"5",x2:d,y2:"35",stroke:"#9CA3AF",strokeWidth:"0.3",strokeDasharray:"1"}),c.jsx("line",{x1:u(t),y1:"10",x2:u(t),y2:"30",stroke:"#FFC100",strokeWidth:"0.6"}),c.jsx("text",{x:u(t),y:"38",textAnchor:"middle",fill:"#FFC100",fontSize:"3",fontWeight:"600",children:t.toFixed(2)}),i.map((h,f)=>{const g=(h.av+h.es)/2,p=r1[h.archetype];return c.jsx("g",{onMouseEnter:()=>n(f),onMouseLeave:()=>n(null),style:{cursor:"pointer"},children:c.jsx("circle",{cx:u(g),cy:"25",r:"1.2",fill:p.fill,stroke:p.stroke,strokeWidth:"0.4"})},f)}),[2,3,4,5,6].map(h=>c.jsx("text",{x:u(h),y:"30",textAnchor:"middle",fill:"#9CA3AF",fontSize:"2.5",children:h},h))]})}),r!==null&&i[r]&&(()=>{const h=i[r],f=((h.av+h.es)/2).toFixed(2);return c.jsxs("div",{className:"mb-2 inline-block rounded-md border border-[#E5E7EB] bg-white px-3 py-2 text-xs shadow-sm",style:{borderRadius:"6px"},children:[c.jsx("p",{className:"font-semibold text-[#374151]",children:Ng[h.archetype]}),c.jsxs("p",{className:"text-[#6B7280]",children:["Overall Score: ",f]})]})})(),c.jsx("p",{className:"text-sm italic text-[#374151]",children:A})]})}function WRe({score:e}){const t=(e-1)/5*100,r=[{label:"Critical",bg:"#FEF2F2",w:"28%"},{label:"Developing",bg:"#FFFBEB",w:"28%"},{label:"Strong",bg:"#F0FDF4",w:"24%"},{label:"Leading",bg:"#EFF6FF",w:"16%"}];return c.jsx("div",{className:"mt-3",children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute text-sm text-[#FFC100]",style:{left:`${t}%`,top:"-18px",transform:"translateX(-50%)"},children:"▼"}),c.jsx("div",{className:"flex h-5 w-full overflow-hidden rounded",children:r.map(n=>c.jsx("div",{className:"flex items-center justify-center text-[9px] font-medium text-[#6B7280]",style:{backgroundColor:n.bg,width:n.w},children:n.label},n.label))})]})})}function GRe({data:e,companySlug:t,drilldownEnabled:r,aiNarrative:n,aiNarrativeLoading:i,perceptionGapItems:o,perceptionGapCoaching:a}){const{teams:s}=e,l=S.useMemo(()=>{const q=[];for(const re of s)(re.leaderCurrent.av>0||re.leaderCurrent.es>0)&&q.push({baseline:re.leaderBaseline,current:re.leaderCurrent,hasRetake:re.leaderHasRetake,email:re.leaderEmail,spiderSubScores:re.spiderSubScores});return q},[s]),A=l.length,u=q=>q.length?Math.round(q.reduce((re,P)=>re+P,0)/q.length*100)/100:0,d=u(l.map(q=>q.current.av)),h=u(l.map(q=>q.current.es)),f=u(l.map(q=>q.baseline.av)),g=u(l.map(q=>q.baseline.es)),p=Wi(d,h),v=Wi(f,g),m=(d+h)/2,w=l.some(q=>q.hasRetake),b=S.useMemo(()=>{const q={ORCHESTRATOR:0,PIONEER:0,GUARDIAN:0,EXPLORER:0};for(const re of l)q[re.current.archetype]++;return q},[l]),E=S.useMemo(()=>{const q=["Individual Experimentation","Workflow Integration","Psychological Safety","Organizational Enablement"],re={};for(const P of q){const D=l.map(X=>X.spiderSubScores[P]).filter(X=>X>0);re[P]=u(D)}return re},[l]),B=S.useMemo(()=>l.map((q,re)=>({label:`L${re+1}`,av:q.baseline.av,es:q.baseline.es,archetype:q.baseline.archetype})),[l]),_=S.useMemo(()=>w?l.map((q,re)=>({label:`L${re+1}`,av:q.current.av,es:q.current.es,archetype:q.current.archetype})):null,[l,w]);S.useMemo(()=>l.map(q=>({av:q.current.av,es:q.current.es,archetype:q.current.archetype,email:q.email})),[l]);const F=d>=h?"Agentic Velocity":"Enterprise Symbiosis",O=d<h?"Agentic Velocity":"Enterprise Symbiosis",k=Math.max(d,h),j=Math.min(d,h),I=k>3.5?`Your leadership layer's strongest dimension is ${F} at ${k.toFixed(2)}. This indicates genuine leadership capability in this area.`:"Your leadership layer is early in its AI readiness journey. Measuring it now is the right first step.",T=j<=3.5?`The area needing the most attention is ${O} at ${j.toFixed(2)}. This is below the readiness threshold and represents the highest-leverage improvement opportunity for your leaders.`:"Both dimensions are above the readiness threshold. Focus on deepening leadership capabilities and closing any individual gaps.",U=(()=>
570{if(!w)return`This is your leadership layer's baseline. AV is ${d.toFixed(2)} and ES is ${h.toFixed(2)}. Every future assessment will show movement from this starting point.`;const q=m-(f+g)/2;return q>=.1?`Your leadership layer's average readiness has improved since Day 1. AV moved from ${f.toFixed(2)} to ${d.toFixed(2)} and ES moved from ${g.toFixed(2)} to ${h.toFixed(2)}.`:q<=-.1?`Your leadership layer's average readiness has dipped since Day 1. AV moved from ${f.toFixed(2)} to ${d.toFixed(2)} and ES moved from ${g.toFixed(2)} to ${h.toFixed(2)}. Review the question-level insights to find where to focus.`:`Your leadership layer's scores have held steady since Day 1. AV is ${d.toFixed(2)} and ES is ${h.toFixed(2)}. Identify one intervention to move leadership readiness before the next assessment.`})(),R=S.useMemo(()=>HRe.map(q=>{const re=[];for(const D of l){const X=D.current.items.find(Z=>Z.key===q.key);X&&re.push(X.score)}const P=re.length?Math.round(re.reduce((D,X)=>D+X,0)/re.length*100)/100:0;return{key:q.key,dim:q.dim,text:q.text,rc:q.rc,displayAvg:P}}).filter(q=>q.displayAvg>0),[l]),G={color:"#FFC100",fontSize:"11px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"8px"},K={color:"#374151",fontSize:"14px",lineHeight:1.7},V={borderColor:"#E5E7EB",margin:"0"},Q="Start with the Leadership Profile to see where every leader lands. Then review the Dimension Breakdown for AV and ES details. Check the four visualizations for shape, distribution, gap, and spread insights. If retake data exists, the Growth Journey shows movement over time. Close with the Question-Level Insights for the most granular view. Click any dot on the scatter plot to open that leader's individual report.",H=S.useMemo(()=>l.map(q=>({av:q.current.av,es:q.current.es,archetype:q.current.archetype})),[l]);return c.jsxs("div",{className:"space-y-8",children:[c.jsxs("section",{className:"rounded-lg",style:{borderLeft:"4px solid #FFC100",background:"#FFFDF5",padding:"28px"},children:[c.jsx("h2",{style:{fontFamily:"Outfit, sans-serif",fontSize:"22px",fontWeight:700,color:"#1A1918",marginBottom:"8px"},children:"Leadership Snapshot"}),c.jsx("div",{style:{height:"2px",background:"#FFC100",marginBottom:"12px"}}),c.jsx("p",{style:{fontSize:"14px",fontStyle:"italic",color:"#6B7280",marginBottom:"24px"},children:"Your leadership layer's FlipFactor™ diagnostic at a glance."}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[c.jsxs("div",{children:[c.jsx("p",{style:G,children:"OVERVIEW"}),c.jsx("p",{style:K,children:i?c.jsx("span",{className:"text-muted-foreground italic",children:"Preparing your organizational insights..."}):(n==null?void 0:n.overview)??`${A} leader${A!==1?"s":""} assessed. The dominant leader archetype is ${Ng[p]}. Leadership average AV is ${d.toFixed(2)} (${br(d)}) and ES is ${h.toFixed(2)} (${br(h)}). This places the leadership layer in the ${$Re[p]} stage.${w?` On Day 1, the dominant leader archetype was ${Ng[v]} with an average AV of ${f.toFixed(2)} and ES of ${g.toFixed(2)}. Today the leadership layer has reached ${Ng[p]}.`:""}`})]}),c.jsx("hr",{style:V}),c.jsxs("div",{children:[c.jsx("p",{style:G,children:"WHAT YOUR LEADERSHIP LAYER IS DOING WELL"}),c.jsx("p",{style:K,children:i?c.jsx("span",{className:"text-muted-foreground italic",children:"Preparing your organizational insights..."}):(n==null?void 0:n.strengths)??I})]}),c.jsx("hr",{style:V}),c.jsxs("div",{children:[c.jsx("p",{style:G,children:"WHERE TO FOCUS"}),c.jsx("p",{style:K,children:i?c.jsx("span",{className:"text-muted-foreground italic",children:"Preparing your organizational insights..."}):(n==null?void 0:n.focus)??T})]}),c.jsx("hr",{style:V}),c.jsxs("div",{children:[c.jsx("p",{style:G,children:"HOW TO USE THIS REPORT"}),c.jsx("p",{style:K,children:Q})]})]})]}),c.jsxs("section",{"data-print-break":!0,className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Leadership Layer FlipFactor™ Profile"}),c.jsx("p",{className:"mb-6 text-sm italic",style:{color:"#6B7280"},children:"Every leader plotted by their individual AV and ES scores. Click a dot to open that leader's report."}),c.jsx(ev,{baselineMembers:B,currentMembers:_,baselineTeamAvgAV:f,baselineTeamAvgES:g,currentTeamAvgAV:d,currentTeamAvgES:h,hasRetake:w,drilldownEnabled:r,onMemberClick:(q,re)=>{const P=l[re];P!=null&&P.email&&window.open(`/leader-dashboard/view/${encodeURIComponent(P.email)}?from=${t}`,"_blank")},narrativeContent:c.jsxs("div",{children:[c.jsx("p",{className:"text-xs uppercase tracking-wider",style:{color:"#B8860B",fontWeight:700},children:"Leader Profile"}),c.jsxs("div",{className:"mt-3 flex items-center gap-4 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Leader Average AV"}),c.jsx("span",{className:"ml-2",children:c.jsx(Y_,{label:br(d)})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",d.toFixed(2)," out of 6.0",w&&c.jsx("span",{className:"ml-2",children:c.jsx(G_,{delta:d-f})})]})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Leader Average ES"}),c.jsx("span",{className:"ml-2",children:c.jsx(Y_,{label:br(h)})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",h.toFixed(2)," out of 6.0",w&&c.jsx("span",{className:"ml-2",children:c.jsx(G_,{delta:h-g})})]})]})]}),c.jsxs("div",{className:"mt-4",style:{display:"flex",flexDirection:"column",gap:"12px"},children:[c.jsxs("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:[A," leader",A!==1?"s":""," assessed. The dominant archetype is ",Ng[p]," with an average AV of ",d.toFixed(2)," and ES of ",h.toFixed(2),"."]}),c.jsx("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:U})]})]})})]}),c.jsxs("section",{"data-print-break":!0,children:[c.jsx("h2",{className:"mb-4 text-lg font-bold text-foreground",children:"Leadership Dimension Breakdown"}),c.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:[{key:"av",name:"Agentic Velocity (AV)",def:DD.AV,score:d,baseline:f},{key:"es",name:"Enterprise Symbiosis (ES)",def:DD.ES,score:h,baseline:g}].map(q=>
570c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsxs("p",{className:"text-sm font-medium text-muted-foreground flex items-center",children:[q.name,c.jsx(MRe,{text:q.def})]}),c.jsx("p",{className:"text-[12px] text-[#6B7280]",children:q.def}),c.jsx("p",{className:"mt-2 flex items-center gap-2 text-2xl font-bold text-foreground",children:c.jsx(Y_,{label:br(q.score)})}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Score: ",q.score.toFixed(2)," out of 6.0"]}),w&&c.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:c.jsx(G_,{delta:q.score-q.baseline})}),c.jsx(WRe,{score:q.score})]},q.key))})]}),c.jsxs("section",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"mb-1 text-lg font-bold text-foreground",children:"Leader Perception vs. Team Reality"}),c.jsx("p",{className:"mb-4 text-sm italic",style:{color:"#6B7280"},children:"These bars compare what leaders assumed about their team's AI readiness against what team members actually reported. Gold shows the leader's assumed score. Blue shows the team's self-reported score. Both are on a 1 to 6 scale. Questions are sorted by the size of the gap, with the largest misalignments at the top. A longer gold bar means leaders overestimated their team. A longer blue bar means the team is stronger than leaders realized."}),!o||o.length===0?c.jsx("p",{className:"text-sm text-[#374151]",children:"Generating perception analysis... This section requires both leader and employee responses."}):c.jsx(QRe,{items:o,coachingMap:a??{}})]}),c.jsx("section",{children:c.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Leadership Readiness Shape"}),c.jsx("p",{className:"mt-1 mb-3 text-sm text-[#374151]",children:"This chart shows the shape of your leadership layer's AI readiness across six dimensions. A fuller, rounder shape means more balanced readiness."}),c.jsx(KRe,{avgAV:d,avgES:h,subScores:E})]}),c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Leadership Archetype Distribution"}),c.jsx("p",{className:"mt-1 mb-3 text-sm text-[#374151]",children:"How all leaders are distributed across the four AI readiness archetypes."}),c.jsx(VRe,{distribution:b})]}),c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Leadership Score Spread"}),c.jsx("p",{className:"mt-1 mb-3 text-sm text-[#374151]",children:"Every leader plotted by their composite score. The gold line is the leadership average."}),c.jsx(zRe,{leaders:H,leaderAvg:m})]})]})}),w&&(()=>{const q=[{label:"DAY 1",av:f,es:g,archetype:v},{label:"TODAY",av:d,es:h,archetype:p}];return c.jsx(Jf,{rounds:q,title:"Leadership Growth Journey"})})(),c.jsxs("section",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",style:{breakInside:"avoid"},children:[c.jsx("h2",{className:"mb-1 text-lg font-bold text-foreground",children:"Recommendations"}),c.jsx("p",{className:"mb-4 text-sm italic",style:{color:"#6B7280"},children:"What this data means for how you develop and deploy your leadership team."}),c.jsx("p",{className:"mb-4 text-sm text-[#374151]",children:"Your leadership layer is not uniform. The leaders who model AI use are creating permission for everyone below them. The leaders who are not are creating ceilings."}),c.jsx("div",{className:"space-y-3",children:(()=>{const q=b.ORCHESTRATOR,re=b.EXPLORER;return(i?[]:(n==null?void 0:n.recommendations)??[`${q} leader${q!==1?"s are":" is"} in Orchestrator territory. The recommendation is to deploy them deliberately. Give them cross-functional visibility. Have them present their AI workflows in a leadership meeting. Orchestrator leaders are your fastest path to org-wide adoption, but only if you activate them.`,`${re} leader${re!==1?"s are":" is"} still in Explorer territory. An Explorer leader creates an Explorer team. The data shows this clearly. The recommendation is to give these leaders one specific AI behavior to model publicly this week. Not a training program. One behavior. Visibility before mastery.`,"The leadership layer's growth from Day 1 to today represents a meaningful shift. The recommendation is to set a leadership AI readiness target for the next review cycle. Define what Leading looks like for a leader in this organization and make it part of how leadership effectiveness is measured going forward."]).map((D,X)=>
570c.jsxs("div",{className:"flex gap-4 rounded-lg bg-white p-4",style:{borderLeft:"4px solid #FFC100",borderRadius:"8px"},children:[c.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[#FFC100] text-sm font-bold text-[#1A1918]",children:X+1}),c.jsx("p",{className:"text-sm leading-relaxed text-[#374151]",children:D})]},X))})()}),c.jsx("p",{className:"mt-6 text-sm italic",style:{color:"#6B7280",fontSize:"14px"},children:"The ceiling for this organization is the floor your leaders set. Leaders who grow give everyone else permission to do the same."})]}),c.jsx(E9,{rows:R,title:"Leadership Question-Level Insights",subtitle:"Average score across all leaders for the 11 leader-specific items (LA_30 through LA_40), sorted lowest to highest.",buttonLabel:"View Leadership Question Details",interpretationSurface:"leaderSelf"})]})}function Kz(e){return 1+e.children.reduce((t,r)=>t+Kz(r),0)}function q_(e){switch(e){case"ORCHESTRATOR":return"text-green-700 bg-green-50 border-green-200";case"PIONEER":return"text-blue-700 bg-blue-50 border-blue-200";case"GUARDIAN":return"text-yellow-700 bg-yellow-50 border-yellow-200";default:return"text-gray-700 bg-gray-50 border-gray-200"}}function X_(e){return e.charAt(0)+e.slice(1).toLowerCase()}function yw(e){return e.subtreeScores?Math.round((e.subtreeScores.avgAV+e.subtreeScores.avgES)/2*100)/100:1/0}function YRe({treeData:e,leaderReportsUnlocked:t,onLeaderClick:r}){const[n,i]=S.useState(new Set),o=A=>{i(u=>{const d=new Set(u);return d.has(A)?d.delete(A):d.add(A),d})},a=e.root,s=a.subtreeScores,l=a.children.filter(A=>A.isLeader).slice().sort((A,u)=>yw(A)-yw(u));return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"bg-gray-50 border border-gray-200 rounded-lg px-5 py-4 flex flex-wrap items-center gap-x-6 gap-y-2",children:[c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:a.pseudonym}),t&&a.firstName&&a.lastName&&c.jsxs("span",{className:"text-sm text-muted-foreground",children:[a.firstName," ",a.lastName]})]}),s?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"text-sm",children:[c.jsx("span",{className:"text-muted-foreground",children:"AV"})," ",c.jsx("span",{className:"font-semibold",children:s.avgAV.toFixed(2)})]}),c.jsxs("div",{className:"text-sm",children:[c.jsx("span",{className:"text-muted-foreground",children:"ES"})," ",c.jsx("span",{className:"font-semibold",children:s.avgES.toFixed(2)})]}),c.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full border text-xs font-medium ${q_(s.archetype)}`,children:X_(s.archetype)}),c.jsxs("div",{className:"text-sm text-muted-foreground inline-flex items-center gap-1",children:[c.jsx($g,{className:"w-4 h-4"}),s.scoredCount," scored"]})]}):c.jsx("span",{className:"text-sm text-muted-foreground",children:"No data yet"})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-bold text-foreground",children:"Team Breakdown"}),c.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Team scores reflect team member responses only. Cards are ranked from lowest to highest composite score, showing where your organization needs the most focus."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:l.map(A=>{const u=A.subtreeScores,d=Kz(A)-1,h=A.children.filter(v=>v.isLeader).slice().sort((v,m)=>yw(v)-yw(m)),f=A.children.filter(v=>!v.isLeader),g=n.has(A.email),p=h.length>0;return c.jsxs("div",{className:`bg-card border border-border rounded-lg p-5 shadow-sm ${t&&r?"cursor-pointer transition-all hover:border-primary hover:shadow-md":""}`,onClick:t&&r?()=>r(A.email):void 0,children:[c.jsxs("div",{className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"font-bold text-foreground",children:A.pseudonym}),t&&A.firstName&&A.lastName&&c.jsxs("span",{className:"text-xs text-muted-foreground mt-0.5",children:[A.firstName," ",A.lastName]})]}),u?c.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full border text-xs font-medium whitespace-nowrap ${q_(u.archetype)}`,children:X_(u.archetype)}):c.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full border text-xs font-medium text-muted-foreground bg-muted border-border whitespace-nowrap",children:"No data yet"}),t&&r&&c.jsx(Rw,{className:"w-4 h-4 text-muted-foreground shrink-0"})]}),u&&c.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm",children:[c.jsxs("span",{children:[c.jsx("span",{className:"text-muted-foreground",children:"AV:"})," ",c.jsx("span",{className:"font-medium",children:u.avgAV.toFixed(2)})]}),c.jsxs("span",{children:[c.jsx("span",{className:"text-muted-foreground",children:"ES:"})," ",c.jsx("span",{className:"font-medium",children:u.avgES.toFixed(2)})]}),c.jsxs("span",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Composite:"})," ",c.jsx("span",{className:"font-medium",children:Math.round((u.avgAV+u.avgES)/2*100)/100})]}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-muted-foreground",children:[c.jsx($g,{className:"w-4 h-4"}),u.scoredCount," scored"]}),c.jsxs("span",{className:"text-xs text-muted-foreground",children:["of ",d," in branch"]})]}),p&&c.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),o(A.email)},className:"mt-4 inline-flex items-center gap-1 text-sm text-foreground hover:text-primary transition-colors",children:g?c.jsxs(c.Fragment,{children:[c.jsx(EJ,{className:"w-4 h-4"}),"Hide sub-teams"]}):c.jsxs(c.Fragment,{children:[c.jsx(Rw,{className:"w-4 h-4"}),"Show sub-teams"]})}),g&&p&&c.jsxs("div",{className:"mt-4 ml-4 pl-4 border-l border-border space-y-2",children:[h.map(v=>{const m=v.subtreeScores;return c.jsxs("div",{className:`bg-muted/50 border border-border rounded-md p-3 ${t&&r?"cursor-pointer transition-all hover:border-primary hover:shadow-md":""}`,onClick:t&&r?w=>{w.stopPropagation(),r(v.email)}:void 0,children:[c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-sm font-semibold text-foreground",children:v.pseudonym}),t&&v.firstName&&v.lastName&&c.jsxs("span",{className:"text-[11px] text-muted-foreground mt-0.5",children:[v.firstName," ",v.lastName]})]}),m?c.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full border text-[10px] font-medium whitespace-nowrap ${q_(m.archetype)}`,children:X_(m.archetype)}):null,t&&r&&c.jsx(Rw,{className:"w-3.5 h-3.5 text-muted-foreground shrink-0"})]}),m?c.jsxs("div",{className:"mt-1.5 text-xs text-muted-foreground",children:["AV: ",c.jsx("span",{className:"font-medium text-foreground",children:m.avgAV.toFixed(2)})," · ","ES: ",c.jsx("span",{className:"font-medium text-foreground",children:m.avgES.toFixed(2)})," · ","Composite: ",c.jsx("span",{className:"font-medium text-foreground",children:Math.round((m.avgAV+m.avgES)/2*100)/100})," · ",m.scoredCount," scored"]}):c.jsx("div",{className:"mt-1.5 text-xs text-muted-foreground",children:"No data yet"})]},v.email)}),f.length>0&&c.jsxs("div",{className:"inline-flex items-center gap-1 text-xs text-muted-foreground pt-1",children:[c.jsx($g,{className:"w-3.5 h-3.5"}),"Plus ",f.length," direct member",f.length===1?"":"s"]})]})]},A.email)})})]})}function Wd({delta:e}){const t=Math.abs(e);return t===0?c.jsx("span",{style:{color:"#9ca3af"},children:"→ 0.00"}):e>0?c.jsxs("span",{style:{color:"#22c55e"},children:["↑ +",t.toFixed(2)]}):c.jsxs("span",{style:{color:"#ef4444"},children:["↓ -",t.toFixed(2)]})}function vw({label:e}
570){const r={Critical:{bg:"#FEF2F2",color:"#DC2626"},Developing:{bg:"#FFFBEB",color:"#D97706"},Strong:{bg:"#F0FDF4",color:"#16A34A"},Leading:{bg:"#EFF6FF",color:"#2563EB"}}[e];return c.jsx("span",{style:{backgroundColor:r.bg,color:r.color,borderRadius:"9999px",padding:"2px 10px",fontSize:"12px",fontWeight:600},children:e})}function qRe({text:e}){return c.jsxs(Wu,{children:[c.jsx(Gu,{asChild:!0,children:c.jsx("button",{className:"ml-1 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-[#E5E7EB] text-[10px] text-[#6B7280] hover:bg-[#D1D5DB]","aria-label":"Info",children:"i"})}),c.jsx(yc,{className:"w-72 text-sm",children:e})]})}const XRe={AV:"How actively employees experiment with and act on AI in their daily work. High AV means people are moving fast with AI tools. Low AV means hesitation, avoidance, or lack of experimentation.",ES:"How well AI is integrated into the systems, culture, and workflows across the organization. High ES means the organization enables and supports AI adoption. Low ES means structural or cultural barriers are slowing people down.",THRESHOLD:"4.0 is the threshold between Developing and Strong readiness. Teams and individuals above this line have enough momentum to build on. Below this line, foundational support and deliberate practice are the priority."},JRe="How actively employees experiment with and act on AI in their daily work.",ZRe="How well AI is integrated into the systems, culture, and workflows across the organization.",n1={EXPLORER:{fill:"#FEF2F2",stroke:"#DC2626"},PIONEER:{fill:"#EFF6FF",stroke:"#2563EB"},GUARDIAN:{fill:"#FFFBEB",stroke:"#D97706"},ORCHESTRATOR:{fill:"#F0FDF4",stroke:"#16A34A"}},Ag={ORCHESTRATOR:"Orchestrator",PIONEER:"Pioneer",GUARDIAN:"Guardian",EXPLORER:"Explorer"};function eDe({distribution:e}){const t=["EXPLORER","PIONEER","GUARDIAN","ORCHESTRATOR"],r=Object.values(e).reduce((o,a)=>o+a,0),n=t.filter(o=>e[o]>0).map(o=>({name:o,value:e[o],...n1[o]})),i=({cx:o,cy:a,midAngle:s,innerRadius:l,outerRadius:A,value:u})=>{const d=Math.PI/180,h=l+(A-l)*1.6,f=o+h*Math.cos(-s*d),g=a+h*Math.sin(-s*d),p=r>0?Math.round(u/r*100):0;return c.jsxs("text",{x:f,y:g,fill:"#374151",textAnchor:f>o?"start":"end",dominantBaseline:"central",fontSize:"11",children:[u," (",p,"%)"]})};return c.jsxs("div",{children:[c.jsx(qu,{width:"100%",height:260,children:c.jsx(lv,{children:c.jsx(Ko,{data:n,dataKey:"value",cx:"50%",cy:"50%",innerRadius:55,outerRadius:85,label:i,labelLine:!1,children:n.map((o,a)=>c.jsx(Xu,{fill:o.fill,stroke:o.stroke,strokeWidth:2},a))})})}),c.jsx("div",{className:"flex flex-wrap justify-center gap-3 mt-2",children:t.map(o=>c.jsxs("span",{className:"flex items-center gap-1 text-xs text-[#374151]",children:[c.jsx("span",{className:"inline-block h-3 w-3 rounded-sm",style:{backgroundColor:n1[o].fill,border:`2px solid ${n1[o].stroke}`}}),o,": ",e[o]]},o))})]})}function tDe({employees:e,orgAvg:t}){const[r,n]=S.useState(null),i=[...e].sort((h,f)=>(h.av+h.es)/2-(f.av+f.es)/2),o=i.map(h=>(h.av+h.es)/2),a=o.length?Math.min(...o):1,l=(o.length?Math.max(...o):6)-a;let A;l<=.5?A="Your organization is tightly clustered. A rising tide approach will work well here.":l>1.5?A="Your organization has significant spread in readiness. Consider targeted programs for different readiness tiers.":A="Your organization has moderate spread. Targeted coaching for your lowest-scoring teams will move the org average fastest.";const u=h=>(h-1.5)/5*100,d=u(4);return c.jsxs("div",{children:[c.jsx("div",{className:"relative py-8",style:{minHeight:"80px"},children:c.jsxs("svg",{viewBox:"0 0 100 40",className:"w-full",preserveAspectRatio:"none",style:{overflow:"visible"},children:[c.jsx("line",{x1:"0",y1:"25",x2:"100",y2:"25",stroke:"#E5E7EB",strokeWidth:"0.5"}),c.jsx("line",{x1:d,y1:"5",x2:d,y2:"35",stroke:"#9CA3AF",strokeWidth:"0.3",strokeDasharray:"1"}),c.jsx("line",{x1:u(t),y1:"10",x2:u(t),y2:"30",stroke:"#FFC100",strokeWidth:"0.6"}),c.jsx("text",{x:u(t),y:"38",textAnchor:"middle",fill:"#FFC100",fontSize:"3",fontWeight:"600",children:t.toFixed(2)}),i.map((h,f)=>{const g=(h.av+h.es)/2,p=n1[h.archetype];return c.jsx("g",{onMouseEnter:()=>n(f),onMouseLeave:()=>n(null),style:{cursor:"pointer"},children:c.jsx("circle",{cx:u(g),cy:"25",r:"1.2",fill:p.fill,stroke:p.stroke,strokeWidth:"0.4"})},f)}),[2,3,4,5,6].map(h=>c.jsx("text",{x:u(h),y:"30",textAnchor:"middle",fill:"#9CA3AF",fontSize:"2.5",children:h},h))]})}),r!==null&&i[r]&&(()=>{const h=i[r],f=((h.av+h.es)/2).toFixed(2);return c.jsxs("div",{className:"mb-2 inline-block rounded-md border border-[#
570E5E7EB] bg-white px-3 py-2 text-xs shadow-sm",style:{borderRadius:"6px"},children:[c.jsx("p",{className:"font-semibold text-[#374151]",children:h.teamName}),c.jsxs("p",{className:"text-[#6B7280]",children:["Overall Score: ",f]}),c.jsxs("p",{className:"text-[#6B7280]",children:["Archetype: ",h.archetype]})]})})(),c.jsx("p",{className:"text-sm italic text-[#374151]",children:A})]})}function rDe({score:e}){const t=(e-1)/5*100,r=[{label:"Critical",bg:"#FEF2F2",w:"28%"},{label:"Developing",bg:"#FFFBEB",w:"28%"},{label:"Strong",bg:"#F0FDF4",w:"24%"},{label:"Leading",bg:"#EFF6FF",w:"16%"}];return c.jsx("div",{className:"mt-3",children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute text-sm text-[#FFC100]",style:{left:`${t}%`,top:"-18px",transform:"translateX(-50%)"},children:"▼"}),c.jsx("div",{className:"flex h-5 w-full overflow-hidden rounded",children:r.map(n=>c.jsx("div",{className:"flex items-center justify-center text-[9px] font-medium text-[#6B7280]",style:{backgroundColor:n.bg,width:n.w},children:n.label},n.label))})]})})}const nDe=()=>{const{companySlug:e}=Nx(),t=gc(),r=S.useRef(null),[n,i]=S.useState(!1),[o,a]=S.useState(!0),[s,l]=S.useState(""),[A,u]=S.useState(null),[d,h]=S.useState(!1),[f,g]=S.useState(!1),[p,v]=S.useState("people"),[m,w]=S.useState(!1),[b,E]=S.useState(!1),[B,_]=S.useState(!1),[F,O]=S.useState(null),[k,j]=S.useState(null),[I,T]=S.useState(!1),U=S.useRef(!1),[R,G]=S.useState(null),[K,V]=S.useState(!0),Q=S.useRef(!1),[H,q]=S.useState([]),[re,P]=S.useState({}),D=S.useRef(!1),X=S.useCallback(async()=>{if(!(!r.current||n)){i(!0);try{await new Promise(et=>setTimeout(et,500));const Be=(e||"unknown").replace(/[^a-zA-Z0-9]/g,"-"),rt={teams:`FlipFactor-Company-Report-${Be}.pdf`,people:`FlipFactor-OrgWide-Report-${Be}.pdf`,leaders:`FlipFactor-Leaders-Report-${Be}.pdf`},Ve=rt[p]||rt.teams;await z7(r.current,Ve)}catch(Be){console.warn("PDF generation failed:",Be)}finally{i(!1)}}},[n,e,p]);S.useEffect(()=>{Tt.auth.getSession().then(async({data:{session:Be}})=>{if(Be!=null&&Be.user){const{data:rt}=await Tt.rpc("has_role",{_user_id:Be.user.id,_role:"admin"});rt&&g(!0)}}),sF().then(w)},[]),S.useEffect(()=>{if(!e){l("invalid"),a(!1);return}(async()=>{const Be=await dme(e);if(!Be){l("invalid"),a(!1);return}h(Be.leaderReportsUnlocked??!1);const{data:rt}=await Tt.from("company_registry").select("leader_reports_unlocked, enable_drilldown_org, enable_drilldown_leaders").eq("slug",e).maybeSingle();if(rt&&(h(rt.leader_reports_unlocked??!1),E(rt.enable_drilldown_org??!1),_(rt.enable_drilldown_leaders??!1)),Be!=null&&Be.cohortId&&(Be!=null&&Be.rootEmail)&&(Be!=null&&Be.id))try{const{fetchCompanyTree:Ve}=await Wg(async()=>{const{fetchCompanyTree:Qe}=await Promise.resolve().then(()=>gme);return{fetchCompanyTree:Qe}},void 0),et=await Ve(Be);et&&(O(et),console.log("[CompanyDashboard] treeData loaded",{totalRosterCount:et.totalRosterCount,leaderCount:et.leaderCount,memberCount:et.memberCount}))}catch(Ve){console.warn("[CompanyDashboard] fetchCompanyTree failed, falling back to flat view",Ve)}try{const Ve=await yme(Be);u(Ve)}catch(Ve){l(Ve.message)}finally{a(!1)}})()},[e]),S.useEffect(()=>{if(!A||!F||U.current)return;U.current=!0,(async()=>{T(!0);try{const rt={GUARDIAN:"Governance Gridlock",ORCHESTRATOR:"Agentic-Human Enterprise",EXPLORER:"Uncharted Enterprise",PIONEER:"Fragmented Frontier"},Ve={GUARDIAN:"Guardian",ORCHESTRATOR:"Orchestrator",EXPLORER:"Explorer",PIONEER:"Pioneer"},et=F.root.children.filter(Ee=>Ee.isLeader&&Ee.subtreeScores).sort((Ee,Ke)=>{const ht=(Ee.subtreeScores.avgAV+Ee.subtreeScores.avgES)/2,Pe=(Ke.subtreeScores.avgAV+Ke.subtreeScores.avgES)/2;return ht-Pe}).map(Ee=>({label:Ee.pseudonym,archetype:Ee.subtreeScores.archetype,avgAV:Ee.subtreeScores.avgAV,avgES:Ee.subtreeScores.avgES,composite:Math.round((Ee.subtreeScores.avgAV+Ee.subtreeScores.avgES)/2*100)/100,scored:Ee.subtreeScores.scoredCount})),Qe=Object.entries(A.orgArchetypeDist).filter(([,Ee])=>Ee>0).sort((Ee,Ke)=>Ke[1]-Ee[1]).map(([Ee,Ke])=>`${Ve[Ee]} (${Ke})`).join(", "),He=`You are a strategic advisor for FlipWork, Inc. writing executive-level AI readiness narratives for senior business leaders based on FlipFactor diagnostic data. Your audience is a VP or C-suite executive who is not a data scientist. Write in plain business English. Never use technical or statistical jargon. Specifically never use the words: centroid, archetype distribution, psychometric, quartile, variance, coefficient, or any statistical term. Instead of "centroid archetype" say "the organization's overall position." Instead of "archetype distribution" say "how employees are spread across the four readiness profiles."
571
572FlipFactor measures two dimensions on a 1 to 6 scale. Agentic Velocity measures how actively employees personally experiment with and act on AI in their daily work. Enterprise Symbiosis measures how well AI is integrated into the organization's systems, culture, and workflows. The readiness threshold is 4.0 on both dimensions. Scores below 4.0 are Developing. Scores at or above 4.0 are Strong. Four profiles result: Explorer (both developing), Guardian (AV developing, ES strong), Pioneer (AV strong, ES developing), Orchestrator (both strong).
573
574When you identify an industry pattern, reference credible external research using phrases like "consistent with findings from McKinsey, KPMG, and MIT Sloan Management Review" or "a pattern documented across technology organizations in recent Deloitte and Harvard Business Review research." Never invent citations. Only reference organizations that have genuinely published AI workforce research: McKinsey Global Institute, KPMG, Deloitte, MIT Sloan Management Review, Harvard Business Review, AWS, Anthropic, and the World Economic Forum. Do not cite specific report titles or years unless you are certain they exist.
575
576When the data shows a Guardian profile in a technology company, you may 
576note this as a well-documented pattern where technology organizations build AI capabilities for clients while personal AI adoption among employees lags behind. Frame it as an observation grounded in external research, not as a criticism.
577
578Write in a direct trusted advisor tone. Sentences should be concrete and specific to the actual numbers provided. No em dashes. No phrases like "AI journey," "exciting opportunity," or "transformative potential." Be direct about what the data shows and what leaders should do. Return only valid JSON with no markdown formatting, no backticks, no preamble.`,st=`Based on the following organizational FlipFactor diagnostic data, generate four sections of narrative for an executive report. Return ONLY a valid JSON object with exactly this shape and no other text:
579{
580  "overview": "2-3 sentence paragraph describing the org current state, centroid archetype, stage, and distribution. Reference the specific AV and ES scores. If this is a tech company building AI for clients, note the Guardian pattern directly.",
581  "strengths": "1-2 sentences about what the organization is doing well based on the highest-scoring dimension and strongest branches.",
582  "focus": "1-2 sentences about the primary focus area. Be specific about which branches or dimensions need the most attention.",
583  "recommendations": ["recommendation 1 as 2-4 sentences", "recommendation 2 as 2-4 sentences", "recommendation 3 as 2-4 sentences"]
584}
585
586Organization: ${A.companyName}
587Assessment period: ${A.assessmentDateRange}
588Participants assessed: ${A.totalEmployees} across ${A.teams.length} teams
589Org Average AV: ${A.orgAvgAV.toFixed(2)} | Org Average ES: ${A.orgAvgES.toFixed(2)}
590Centroid archetype: ${A.orgArchetype} (${rt[A.orgArchetype]??A.orgArchetype})
591Archetype distribution: ${Qe}
592
593Branch breakdown sorted lowest to highest composite score:
594${et.map(Ee=>`${Ee.label}: AV ${Ee.avgAV} / ES ${Ee.avgES} / Composite ${Ee.composite} / Archetype ${Ee.archetype} / ${Ee.scored} scored`).join(`
595`)}
596
597Important context: This organization is a technology company. Tech companies frequently build AI tools and products for their clients while their own employees do not personally integrate AI into their daily workflows. This produces a Guardian pattern where ES is strong (the infrastructure and systems exist) but AV is developing (individuals are not experimenting personally). If this pattern is visible in the data, name it directly and specifically in the overview and recommendations.
598
599For the three recommendations: base them on the actual archetype counts and branch data above. The first recommendation should address the lowest-scoring branches specifically. The second should address the archetype distribution pattern. The third should define a concrete behavioral target. Do not use the word "journey." Do not use em dashes. Be direct and specific.`,{data:_t,error:We}=await Tt.functions.invoke("generate-narrative",{body:{prompt:st,system:He,maxTokens:1200}});if(We||!(_t!=null&&_t.narrative)){console.warn("[AI Narrative] Edge function error or empty response, using template fallback");return}const Xt=_t.narrative.replace(/^```json\s*/i,"").replace(/^```\s*/i,"").replace(/```\s*$/i,"").trim(),Ze=JSON.parse(Xt);Ze!=null&&Ze.overview&&(Ze!=null&&Ze.strengths)&&(Ze!=null&&Ze.focus)&&Array.isArray(Ze==null?void 0:Ze.recommendations)&&Ze.recommendations.length>=3&&j({overview:Ze.overview,strengths:Ze.strengths,focus:Ze.focus,recommendations:Ze.recommendations.slice(0,3)})}catch(rt){console.warn("[AI Narrative] Failed to generate, using template fallback:",rt)}finally{T(!1)}})()},[A,F]),S.useEffect(()=>{if(!A||Q.current)return;Q.current=!0,(async()=>{var rt,Ve;try{const et={GUARDIAN:"Guardian",ORCHESTRATOR:"Orchestrator",EXPLORER:"Explorer",PIONEER:"Pioneer"},Qe={GUARDIAN:"Governance Gridlock",ORCHESTRATOR:"Agentic-Human Enterprise",EXPLORER:"Uncharted Enterprise",PIONEER:"Fragmented Frontier"},He=A.teams.filter(at=>at.leaderCurrent&&at.leaderCurrent.av>0),st=He.length?Math.round(He.reduce((at,Ot)=>at+Ot.leaderCurrent.av,0)/He.length*100)/100:0,_t=He.length?Math.round(He.reduce((at,Ot)=>
599at+Ot.leaderCurrent.es,0)/He.length*100)/100:0,We={ORCHESTRATOR:0,GUARDIAN:0,EXPLORER:0,PIONEER:0};for(const at of He){const Ot=at.leaderCurrent.archetype;Ot in We&&We[Ot]++}const Xt=st>=4&&_t>=4?"ORCHESTRATOR":st>=4?"PIONEER":_t>=4?"GUARDIAN":"EXPLORER",Ze=Object.entries(A.orgArchetypeDist).filter(([,at])=>at>0).sort((at,Ot)=>Ot[1]-at[1]).map(([at,Ot])=>`${et[at]} (${Ot})`).join(", "),Ee=Object.entries(We).filter(([,at])=>at>0).sort((at,Ot)=>Ot[1]-at[1]).map(([at,Ot])=>`${et[at]} (${Ot})`).join(", ")||"insufficient data",Ke=`You are a strategic advisor for FlipWork, Inc. writing executive-level AI readiness narratives for senior business leaders based on FlipFactor diagnostic data. Your audience is a VP or C-suite executive who is not a data scientist. Write in plain business English. Never use technical or statistical jargon. Specifically never use the words: centroid, archetype distribution, psychometric, quartile, variance, coefficient, or any statistical term. Instead of "centroid archetype" say "the organization's overall position." Instead of "archetype distribution" say "how employees are spread across the four readiness profiles."
600
601FlipFactor measures two dimensions on a 1 to 6 scale. Agentic Velocity measures how actively employees personally experiment with and act on AI in their daily work. Enterprise Symbiosis measures how well AI is integrated into the organization's systems, culture, and workflows. The readiness threshold is 4.0 on both dimensions. Scores below 4.0 are Developing. Scores at or above 4.0 are Strong. Four profiles result: Explorer (both developing), Guardian (AV developing, ES strong), Pioneer (AV strong, ES developing), Orchestrator (both strong).
602
603When you identify an industry pattern, reference credible external research using phrases like "consistent with findings from McKinsey, KPMG, and MIT Sloan Management Review" or "a pattern documented across technology organizations in recent Deloitte and Harvard Business Review research." Never invent citations. Only reference organizations that have genuinely published AI workforce research: McKinsey Global Institute, KPMG, Deloitte, MIT Sloan Management Review, Harvard Business Review, AWS, Anthropic, and the World Economic Forum. Do not cite specific report titles or years unless you are certain they exist.
604
605When the data shows a Guardian profile in a technology company, you may note this as a well-documented pattern where technology organizations build AI capabilities for clients while personal AI adoption among employees lags behind. Frame it as an observation grounded in external research, not as a criticism.
606
607Write in a direct trusted advisor tone. Sentences should be concrete and specific to the actual numbers provided. No em dashes. No phrases like "AI journey," "exciting opportunity," or "transformative potential." Be direct about what the data shows and what leaders should do. Return only valid JSON with no markdown formatting, no backticks, no preamble.`,ht=`Generate narrative for two sections of an executive FlipFactor report for ${A.companyName}. Return ONLY a valid JSON object with exactly this shape:
608{
609  "allPeople": {
610    "overview": "2-3 sentences about all ${A.totalEmployees} employees. Reference actual AV ${A.orgAvgAV.toFixed(2)} and ES ${A.orgAvgES.toFixed(2)}. Name the centroid archetype ${A.orgArchetype} (${Qe[A.orgArchetype]??A.orgArchetype}) and distribution ${Ze}. If this is a tech company where employees build AI for clients but do not use it personally, name that Guardian pattern directly.",
611    "strengths": "1-2 sentences about the strongest dimension and what it means for the whole population.",
612    "focus": "1-2 sentences on the primary development need across all employees. Be specific about which archetype groups need what.",
613    "recommendations": ["2-4 sentences addressing the largest archetype group and what they need", "2-4 sentences addressing the gap between AV and ES if one exists", "2-4 sentences about a concrete population-level behavioral target for the next 90 days"]
614  },
615  "leaders": {
616    "overview": "2-3 sentences about the ${He.length} leaders assessed. Reference leader AV ${st.toFixed(2)} and ES ${_t.toFixed(2)}. Name the leader centroid archetype ${Xt} (${Qe[Xt]??Xt}) and distribution ${Ee}. Compare leader scores to org scores to surface any gap.",
617    "strengths": "1-2 sentences on what the leadership layer is doing well.",
618    "focus": "1-2 sentences on the highest-leverage development area for these leaders specifically.",
619    "recommendations": ["2-4 sentences about what leaders should model for their teams this week", "2-4 sentences about the gap between leader scores and team scores and what to do about it", "2-4 sentences about a specific leadership behavior that will move the org archetype in 90 days"]
620  }
621}
622
623Assessment: ${A.assessmentDateRange}
624Context: Technology company. Leaders often build AI for clients but may not use it personally day to day.`,{data:Pe,error:ct}=await Tt.functions.invoke("generate-narrative",{body:{prompt:ht,system:Ke,maxTokens:1400}});if(ct||!(Pe!=null&&Pe.narrative)){console.warn("[AI Section Narrative] Edge function error, using template fallback");return}let qe=Pe.narrative.trim();const wt=qe.match(/^```(?:json)?\s*([\s\S]*?)```\s*$/i);wt?qe=wt[1].trim():qe=qe.replace(/^```[a-z]*\n?/i,"").replace(/\n?```$/i,"").trim();const St=JSON.parse(qe);G({allPeople:(rt=St==null?void 0:St.allPeople)!=null&&rt.overview?St.allPeople:null,leaders:(Ve=St==null?void 0:St.leaders)!=null&&Ve.overview?St.leaders:null})}catch(et){console.warn("[AI Section Narrative] Failed, using template fallback:",et)}finally{V(!1)}})()},[A]),S.useEffect(()=>{!A||!F||D.current||(D.current=!0,F.root,Tt.from("company_registry").select("id").eq("slug",e??"").maybeSingle().then(({data:Be})=>{Be!=null&&Be.id&&xme(Be.id).then(rt=>{if(rt.length>0){q(rt);const Ve=`You are a leadership coach writing brief, direct coaching tips for team leaders reviewing their AI readiness perception gaps. For each item below, write exactly 2 sentences: first interpret what the gap means about this leader's relationship with their team, then give one concrete action they can take this week to close the gap. Be specific to the question. No em dashes. No generic advice. Return ONLY a valid JSON object with no markdown, no backticks, no preamble. Keys are in the format "itemNumber-dimension" (e.g. "01-AV"). Values are the 2-sentence coaching tip.
625
626Items to interpret:
627${rt.slice(0,12).map(et=>{const Qe=Math.abs(et.gap)<.1?"aligned":et.gap>0?`leader assumed ${et.gap.toFixed(2)} higher than team reported`:`team scored ${Math.abs(et.gap).toFixed(2)} higher than leader assumed`;return`"${et.itemNumber}-${et.dimension}": Question: "${et.questionText}" | Leader avg: ${et.leaderAvg.toFixed(2)} | Team avg: ${et.employeeAvg.toFixed(2)} | ${Qe} | ${et.dimension==="AV"?"AV = personal AI experimentation":"ES = organizational AI systems and culture"}${et.isReverseCoded?" | Reverse coded (higher = stronger)":""}`}).join(`
628`)}
629
630Return JSON only. Example shape: {"01-AV": "Your team is less confident with AI tools than you realize. This week, ask each person to show you one AI workflow they use regularly.", "08-ES": "..."}`;Tt.functions.invoke("generate-narrative",{body:{prompt:Ve,system:"You are a leadership coach. Return only valid JSON with no markdown formatting.",maxTokens:2e3}}).then(({data:et})=>{if(et!=null&&et.narrative)try{let Qe=et.narrative.trim();const He=Qe.match(/^```(?:json)?\s*([\s\S]*?)```\s*$/i);He&&(Qe=He[1].trim());const st=JSON.parse(Qe);typeof st=="object"&&P(st)}catch{console.warn("[PerceptionGapCoaching] JSON parse failed")}})}})}))},[A,F,e]);const Z=S.useCallback((Be,rt="Individual_Staging")=>{window.open(`/individual-dashboard/view/${encodeURIComponent(Be)}?source=${rt}`,"_blank")},[]),ae=m||b;if(o)return c.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[c.jsxs("nav",{className:"flex items-center justify-between px-6 py-4",children:[c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",children:c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"h-8 w-auto"})}),c.jsx("span",{className:"text-sm font-medium text-foreground",children:"FlipFactor™ | Company AI Readiness Report"}),c.jsx("span",{})]}),c.jsx("div",{className:"h-0.5 w-full bg-primary"}),c.jsx("div",{className:"flex flex-1 items-center justify-center",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading your results…"})})]});if(s||!A)return c.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[c.jsxs("nav",{className:"flex items-center justify-between px-6 py-4",children:[c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",children:c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"h-8 w-auto"})}),c.jsx("span",{className:"text-sm font-medium text-foreground",children:"FlipFactor™"}),c.jsx("span",{})]}),c.jsx("div",{className:"h-0.5 w-full bg-primary"}),c.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 px-4",children:[c.jsx("p",{className:"text-lg font-semibold text-foreground",children:"This report is not available."}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Please contact FlipWork at ",c.jsx("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"})]})]})]});const{teams:se,orgAvgAV:pe,orgAvgES:le,orgBaselineAvgAV:he,orgBaselineAvgES:Ae,orgArchetype:ue,orgArchetypeDist:_e,orgSpiderSubScores:ve,totalEmployees:z,assessmentDateRange:Se,allEmployeeScores:Me,companyName:De}=A,xe=(pe+le)/2,ze=(he+Ae)/2,me=se.some(Be=>Be.members.some(rt=>rt.hasRetake)),Le=Wi(he,Ae),Ue=[...se].sort((Be,rt)=>rt.composite-Be.composite),Bt=se.map(Be=>({label:Be.teamName,av:Be.baselineAvgAV,es:Be.baselineAvgES,archetype:Wi(Be.baselineAvgAV,Be.baselineAvgES),email:Be.leaderEmail})),Et=me?se.map(Be=>({label:Be.teamName,av:Be.currentAvgAV,es:Be.currentAvgES,archetype:Be.archetype,email:Be.leaderEmail})):null,Ge=pe>=le?"Agentic Velocity":"Enterprise Symbiosis",Je=pe<le?"Agentic Velocity":"Enterprise Symbiosis",dt=Math.max(pe,le),Ye=Math.min(pe,le),vt=dt>3.5?`Your organization's strongest dimension is ${Ge} at ${dt.toFixed(2)}. This is above the readiness threshold and represents a genuine organizational capability.`:"Your organization is early in its AI readiness journey. You are measuring it now, and that matters. Awareness comes before action.",tt=Ye<=3.5?`The area needing the most attention is ${Je} at ${Ye.toFixed(2)}. This is below the readiness threshold and represents the highest-leverage improvement opportunity.`:"Both dimensions are above the readiness threshold. Focus on moving the overall average upward and closing any gaps between teams.",dr=(()=>{const Be=xe-ze;return me?Be>=.1?`Your organization's average readiness has improved since Day 1. AV moved from ${he.toFixed(2)} to ${pe.toFixed(2)} and ES moved from ${Ae.toFixed(2)} to ${le.toFixed(2)}. The organization is shifting in the right direction.`:Be<=-.1?`Your organization's average readiness has dipped since Day 1. AV moved from ${he.toFixed(2)} to ${pe.toFixed(2)} and ES moved from ${Ae.toFixed(2)} to ${le.toFixed(2)}. Review the Team Breakdown to find where to focus.`:`Your organization's scores have held steady since Day 1. AV is ${pe.toFixed(2)} and ES is ${le.toFixed(2)}. Consistency is a foundation. The next step is identifying one intervention to move the needle before the next assessment.`:`This is your organization's baseline. AV is ${pe.toFixed(2)} and ES is ${le.toFixed(2)}. Every future assessment will show movement from this starting point.`})(),Pt={teams:"Team AI Readiness Report",people:"Org-Wide AI Readiness Report",leaders:"Leadership L
630ayer AI Readiness Report"},Ft=Pt[p]||Pt.teams;return c.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[c.jsxs("nav",{className:"flex items-center justify-between px-6 py-4 print:hidden",children:[c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",children:c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"h-8 w-auto"})}),c.jsxs("span",{className:"text-sm font-medium text-foreground",children:["FlipFactor™ | ",Ft]}),c.jsx("span",{})]}),c.jsx("div",{className:"h-0.5 w-full bg-primary print:hidden"}),c.jsxs("div",{ref:r,className:"mx-auto w-full max-w-5xl space-y-8 px-4 py-8",children:[c.jsxs("section",{style:{position:"relative",display:"flex",width:"100%",justifyContent:"space-between",alignItems:"flex-start",paddingBottom:"12px",marginBottom:"16px",borderBottom:"2px solid #FFC100"},children:[c.jsx("img",{src:Bn,alt:"",style:{position:"absolute",top:0,left:0,width:"56px",height:"56px",opacity:.75,objectFit:"contain"}}),c.jsxs("div",{style:{flex:1,minWidth:0,paddingLeft:"68px"},children:[c.jsx("h1",{className:"text-2xl font-bold text-foreground break-words",children:De}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:[z," employees assessed · ",se.length," team",se.length!==1?"s":""]})]}),c.jsxs("div",{style:{flexShrink:0,textAlign:"right",whiteSpace:"nowrap",minWidth:"220px",marginLeft:"auto"},className:"flex items-start gap-4 text-sm",children:[c.jsxs("div",{style:{textAlign:"right",marginLeft:"auto",minWidth:"240px"},children:[c.jsxs("p",{className:"text-muted-foreground",children:["Assessment: ",Se]}),c.jsxs("p",{className:"font-medium text-foreground",children:["FlipFactor™ | ",Ft]})]}),c.jsx(Ac,{onClick:()=>X(),isGenerating:n})]})]}),c.jsx("div",{className:"flex gap-1 rounded-lg bg-[#F3F4F6] p-1 print:hidden",children:[{key:"people",label:"All People"},{key:"teams",label:"Teams"},{key:"leaders",label:"Leaders"}].map(Be=>c.jsx("button",{onClick:()=>v(Be.key),className:"flex-1 rounded-md px-4 py-2 text-sm font-medium transition-all",style:{backgroundColor:p===Be.key?"#FFFFFF":"transparent",color:p===Be.key?"#1A1918":"#6B7280",boxShadow:p===Be.key?"0 1px 3px rgba(0,0,0,0.1)":"none"},children:Be.label},Be.key))}),p==="people"&&c.jsx(DRe,{data:A,drilldownEnabled:ae,onMemberClick:Be=>Z(Be),aiNarrative:(R==null?void 0:R.allPeople)??null,aiNarrativeLoading:K}),p==="teams"&&c.jsxs(c.Fragment,{children:[(()=>{const Be="Start with the Org-Wide Profile to see where your teams land. Then review the Team Breakdown to compare performance across teams. Move to the Org Dimension Detail for deep dives into AV and ES. Check the Org Growth Journey to see movement over time. Close with Your Next Three Moves for what to do this quarter.",rt={color:"#FFC100",fontSize:"11px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"8px"},Ve={color:"#374151",fontSize:"14px",lineHeight:1.7},et={borderColor:"#E5E7EB",margin:"0"},Qe={GUARDIAN:"Governance Gridlock",ORCHESTRATOR:"Agentic-Human Enterprise",EXPLORER:"Uncharted Enterprise",PIONEER:"Fragmented Frontier"},He=Object.entries(_e).filter(([,st])=>st>0).sort((st,_t)=>_t[1]-st[1]).map(([st,_t])=>`${Ag[st]} (${_t})`).join(", ");return c.jsxs("section",{className:"rounded-lg",style:{borderLeft:"4px solid #FFC100",background:"#FFFDF5",padding:"28px"},children:[c.jsx("h2",{style:{fontFamily:"Outfit, sans-serif",fontSize:"22px",fontWeight:700,color:"#1A1918",marginBottom:"8px"},children:"Org Snapshot"}),c.jsx("div",{style:{height:"2px",background:"#FFC100",marginBottom:"12px"}}),c.jsx("p",{style:{fontSize:"14px",fontStyle:"italic",color:"#6B7280",marginBottom:"24px"},children:"Your team-by-team AI readiness journey at a glance."}),I&&c.jsx("p",{className:"text-xs text-muted-foreground italic mt-1",children:"Generating insights..."}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[c.jsxs("div",{children:[c.jsx("p",{style:rt,children:"OVERVIEW"}),c.jsx("p",{style:Ve,children:(k==null?void 0:k.overview)??`This report covers ${z} participants across ${se.length} team${se.length!==1?"s":""} in ${De}. Based on its average AV and ES scores, this organization sits in the ${Ag[ue]} archetype, the ${Qe[ue]} stage. Across all participants, the archetype distribution is: ${He}.${me?` On Day 1, the dominant archetype was ${Ag[Le]} with an org-wide AV of ${he.toFixed(2)} and ES of ${Ae.toFixed(2)}. Today the organization has reached ${Ag[ue]}.`:""}`})]}),c.jsx("hr",{style:et}),c.jsxs("div",{children:[c.jsx("p",{style:rt,children:"WHAT YOUR ORGANIZATION IS DOING WELL"}),c.jsx("p",{style:Ve,children:(k==null?void 0:k.strengths)??vt})]}),c.jsx("hr",{style:et}),c.jsxs("div",{children:[c.jsx("p",{style:rt,children:"WHERE TO FOCUS"}),c.jsx("p",{style:Ve,children:(k==null?void 0:k.focus)??tt})]}),c.jsx("hr",{style:et}),c.jsxs("div",{children:[c.jsx("p",{style:rt,children:"HOW TO USE THIS REPORT"}),c.jsx("p",{style:Ve,children:Be})]})]})]})})(),c.jsxs("section",{"data-print-break":!0,className:"rounded-lg border border-[#
630E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Org-Wide FlipFactor™ Profile"}),c.jsx("p",{className:"mb-6 text-sm italic",style:{color:"#6B7280"},children:"Each dot represents one team, plotted by their average AV and ES scores. The star marks the org-wide average."}),c.jsx(ev,{baselineMembers:Bt,currentMembers:Et,baselineTeamAvgAV:he,baselineTeamAvgES:Ae,currentTeamAvgAV:pe,currentTeamAvgES:le,hasRetake:me,drilldownEnabled:ae,onMemberClick:Be=>{Be.email&&window.open(`/leader-dashboard/view/${encodeURIComponent(Be.email)}?from=${e}`,"_blank")},narrativeContent:c.jsxs("div",{children:[c.jsx("p",{className:"text-xs uppercase tracking-wider",style:{color:"#B8860B",fontWeight:700},children:"Org Profile"}),c.jsxs("div",{className:"mt-3 flex items-center gap-4 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Org Average AV"}),c.jsx("span",{className:"ml-2",children:c.jsx(vw,{label:br(pe)})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",pe.toFixed(2)," out of 6.0",me&&c.jsx("span",{className:"ml-2",children:c.jsx(Wd,{delta:pe-he})})]})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Org Average ES"}),c.jsx("span",{className:"ml-2",children:c.jsx(vw,{label:br(le)})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",le.toFixed(2)," out of 6.0",me&&c.jsx("span",{className:"ml-2",children:c.jsx(Wd,{delta:le-Ae})})]})]})]}),c.jsxs("div",{className:"mt-4",style:{display:"flex",flexDirection:"column",gap:"12px"},children:[c.jsxs("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:[De," has ",z," employees assessed across ",se.length," team",se.length!==1?"s":"",". The dominant archetype is ",Ag[ue]," with an org-wide AV of ",pe.toFixed(2)," and ES of ",le.toFixed(2),"."]}),c.jsx("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:dr})]})]})})]}),F?c.jsx(YRe,{treeData:F,leaderReportsUnlocked:d,onLeaderClick:Be=>t(`/leader-dashboard/view/${encodeURIComponent(Be)}?from=${e}`)}):c.jsx(c.Fragment,{children:c.jsxs("section",{"data-print-break":!0,children:[c.jsx("h2",{className:"mb-4 text-lg font-bold text-foreground",children:"Team Breakdown"}),c.jsx("p",{className:"mb-4 text-sm italic",style:{color:"#6B7280"},children:"Teams are ranked by composite score (average of AV and ES), highest to lowest."}),c.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:Ue.map(Be=>{const rt=Be.members.some(_t=>_t.hasRetake),Ve=Be.currentAvgAV-Be.baselineAvgAV,et=Be.currentAvgES-Be.baselineAvgES,Qe=Be.composite-(Be.baselineAvgAV+Be.baselineAvgES)/2,He=f||d,st=c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:Be.teamName}),Be.leaderPseudonym&&c.jsx("p",{className:"text-xs text-muted-foreground",children:Be.leaderPseudonym}),d&&c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Leader: ",Be.leaderName]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:[Be.members.length," member",Be.members.length!==1?"s":""," assessed"]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(vw,{label:br(Be.composite)}),!He&&c.jsx(Rk,{className:"h-3.5 w-3.5 text-muted-foreground"})]})]}),c.jsxs("div",{className:"mt-3 space-y-1 text-sm",children:[c.jsxs("p",{className:"text-[#374151]",children:["AV: ",Be.currentAvgAV.toFixed(2)," ",rt?c.jsx(Wd,{delta:Ve}):c.jsx("span",{style:{color:"#9ca3af"},children:"→ 0.00"})]}),c.jsxs("p",{className:"text-[#374151]",children:["ES: ",Be.currentAvgES.toFixed(2)," ",rt?c.jsx(Wd,{delta:et}):c.jsx("span",{style:{color:"#9ca3af"},children:"→ 0.00"})]}),c.jsxs("p",{className:"text-[#374151] font-semibold",children:["Composite: ",Be.composite.toFixed(2)," ",rt?c.jsx(Wd,{delta:Qe}):c.jsx("span",{style:{color:"#9ca3af"},children:"→ 0.00"})]})]}),c.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[c.jsx("span",{className:"text-xs text-muted-foreground",children:"Archetype:"}),c.jsx("span",{className:"text-xs font-semibold text-foreground",children:Be.archetype})]}),He&&c.jsxs("div",{className:"mt-3 flex items-center justify-end gap-1 text-xs font-medium text-primary opacity-0 group-hover:opacity-100 transition-opacity",children:["View Report ",c.jsx(Rw,{className:"h-3 w-3"})]})]});
630return He?c.jsx("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-5 cursor-pointer transition-all hover:border-primary hover:shadow-md group",style:{breakInside:"avoid"},onClick:()=>t(`/leader-dashboard/view/${encodeURIComponent(Be.leaderEmail)}?from=${e}`),children:st},Be.leaderEmail):c.jsx(Ky,{children:c.jsxs(Zk,{children:[c.jsx(eF,{asChild:!0,children:c.jsx("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-5",style:{breakInside:"avoid"},children:st})}),c.jsx(Cx,{className:"max-w-xs text-center",children:"Leader reports are available upon request. Contact your FlipWork advisor to unlock access."})]})},Be.leaderEmail)})})]})}),c.jsxs("section",{"data-print-break":!0,children:[c.jsx("h2",{className:"mb-4 text-lg font-bold text-foreground",children:"Org Dimension Breakdown"}),c.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:[{key:"av",name:"Agentic Velocity (AV)",def:JRe,score:pe,baseline:he},{key:"es",name:"Enterprise Symbiosis (ES)",def:ZRe,score:le,baseline:Ae}].map(Be=>c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsxs("p",{className:"text-sm font-medium text-muted-foreground flex items-center",children:[Be.name,c.jsx(qRe,{text:XRe[Be.key==="av"?"AV":"ES"]})]}),c.jsx("p",{className:"text-[12px] text-[#6B7280]",children:Be.def}),c.jsx("p",{className:"mt-2 flex items-center gap-2 text-2xl font-bold text-foreground",children:c.jsx(vw,{label:br(Be.score)})}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Score: ",Be.score.toFixed(2)," out of 6.0"]}),me&&c.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:c.jsx(Wd,{delta:Be.score-Be.baseline})}),c.jsx(rDe,{score:Be.score})]},Be.key))})]}),c.jsx("section",{children:c.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Org Archetype Distribution"}),c.jsx("p",{className:"mt-1 mb-3 text-sm text-[#374151]",children:"How all employees across all teams are distributed across the four AI readiness archetypes."}),c.jsx(eDe,{distribution:_e})]}),c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Org Score Spread"}),c.jsx("p",{className:"mt-1 mb-3 text-sm text-[#374151]",children:"Every employee plotted by their composite score. The gold line is the org-wide average."}),c.jsx(tDe,{employees:Me,orgAvg:xe})]})]})}),me&&(()=>{const Be=[{label:"DAY 1",av:he,es:Ae,archetype:Le},{label:"TODAY",av:pe,es:le,archetype:ue}];return c.jsx(Jf,{rounds:Be,title:"Org Growth Journey",style:{paddingBottom:"80px"}})})(),c.jsxs("section",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",style:{breakInside:"avoid"},children:[c.jsx("h2",{className:"mb-1 text-lg font-bold text-foreground",children:"Recommendations"}),c.jsx("p",{className:"mb-4 text-sm italic",style:{color:"#6B7280"},children:"What your AI strategy leaders should focus on next."}),c.jsx("p",{className:"mb-4 text-sm text-[#374151]",children:"Your organization has made real progress. The work now is to protect the gains and close the gaps."}),c.jsx("div",{className:"space-y-3",children:(()=>{const Be=_e.ORCHESTRATOR,rt=_e.EXPLORER,Ve=_e.GUARDIAN;return((k==null?void 0:k.recommendations)??[`${Be} employee${Be!==1?"s have":" has"} moved into Orchestrator territory. These people modeled AI use, reduced manual work, and built psychological safety on their teams. The recommendation is to document what those teams did and make it transferable. Champions exist. Now institutionalize them.`,`${rt} employee${rt!==1?"s are":" is"} still in Explorer territory and ${Ve} in Guardian territory. Explorers need permission and low-stakes experiments. Guardians are waiting for someone to tell them it is safe to act. Senior leaders should give explicit public permission this week. Not in a policy document. In a team meeting.`,"The organization has crossed the readiness threshold. The next milestone is not another diagnostic. It is a behavioral target. Define one observable AI behavior every team should be doing consistently by the next 90 days, and measure it."]).map((Qe,He)=>
630c.jsxs("div",{className:"flex gap-4 rounded-lg bg-white p-4",style:{borderLeft:"4px solid #FFC100",borderRadius:"8px"},children:[c.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[#FFC100] text-sm font-bold text-[#1A1918]",children:He+1}),c.jsx("p",{className:"text-sm leading-relaxed text-[#374151]",children:Qe})]},He))})()}),c.jsx("p",{className:"mt-6 text-sm italic",style:{color:"#6B7280",fontSize:"14px"},children:"The organizations that sustain momentum are the ones that measure, share, and celebrate. Keep going."})]})]}),p==="leaders"&&c.jsx(GRe,{data:A,companySlug:e||"",drilldownEnabled:ae,aiNarrative:(R==null?void 0:R.leaders)??null,aiNarrativeLoading:K,perceptionGapItems:H,perceptionGapCoaching:re}),c.jsx("div",{className:"flex justify-center pt-4",children:c.jsx(Ac,{onClick:()=>X(),isGenerating:n})}),c.jsxs("footer",{className:"mt-12 border-t border-[#E5E7EB] pt-6 pb-4 text-center print:hidden",children:[c.jsxs("p",{style:{fontSize:"12px",color:"#6B7280"},children:[c.jsx("a",{href:"https://flipfactor.ai",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"flipfactor.ai"})," | Contact us: ",c.jsx("a",{href:"mailto:FlipFactor™@flipwork.ai",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"FlipFactor™@flipwork.ai"})," | © 2026 FlipWork. All rights reserved."]}),c.jsx("p",{style:{fontSize:"10px",color:"#9CA3AF",fontStyle:"italic",marginTop:"6px"},children:"This report is for professional development purposes only and does not constitute career, legal, or psychological advice."}),c.jsxs("p",{style:{fontSize:"10px",color:"#9CA3AF",fontStyle:"italic",marginTop:"4px"},children:["The FlipFactor™ framework, assessment questions, archetypes, scoring methodology, and all associated content are the proprietary intellectual property of ",c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"FlipWork, Inc."})," Unauthorized reproduction, distribution, or replication in any form is prohibited."]})]})]})]})};function iDe(e){if(e==null)return null;let t=e.trim().toUpperCase();return t=t.replace(/_/g,"-"),t=t.replace(/[\s-]+/g,"-"),t=t.replace(/^-|-$/g,""),t===""?null:t}const oDe=/^(WEB|SPR)-\d{6}-[A-Z]$/,aDe=/^CONF-\d{6}(-[A-Z0-9]{1,4})?$/,sDe=/^[A-Z]{2,5}-\d{6}(-[A-Z]{2,5})?$/,lDe=/^EVENT-\d{2}-\d{2}-\d{2}$/,ADe=/^S-\d{3}$/,cDe=/^C-\d{3}$/;function uDe(e){return e==null?"blank":oDe.test(e)||aDe.test(e)||sDe.test(e)?"valid":lDe.test(e)||ADe.test(e)||cDe.test(e)?"legacy":"review"}function dDe(e){const t=e??"",r=iDe(t);return{normalized:r,status:uDe(r),raw:t}}async function hDe(){const{data:e}=await Tt.from("solo_cohort_overrides").select("email, corrected_cohort_id, resolved").eq("resolved",!0).not("corrected_cohort_id","is",null),t=new Map;if(e)for(const r of e)r.corrected_cohort_id&&t.set(r.email.toLowerCase().trim(),r.corrected_cohort_id);return t}async function fDe(e){if(e.length===0)return;const{data:t}=await Tt.from("solo_cohort_overrides").select("email, raw_cohort_id"),r=new Set;if(t)for(const i of t)r.add(`${i.email.toLowerCase()}|${i.raw_cohort_id}`);const n=e.filter(i=>!r.has(`${i.email.toLowerCase()}|${i.rawCohortId}`)).map(i=>({email:i.email,raw_cohort_id:i.rawCohortId,cohort_id_status:"review",submitted_at:i.submittedAt||null}));n.length>0&&await Tt.from("solo_cohort_overrides").insert(n)}async function RN(e){const t=await hDe(),r=[];for(const n of e){const i=(n.Email_Entry||"").trim(),o=(n.cohort_id_auto||"").trim(),a=n.Cohort_ID_Entry||"";if(o){n.Cohort_ID_Entry=o;continue}const s=t.get(i.toLowerCase());if(s&&/^[A-Z]{2,}-\d{6}[A-Z]?$/i.test(s.trim())){n.Cohort_ID_Entry=s;continue}const l=dDe(a);l.status==="review"?r.push({email:i,rawCohortId:a,submittedAt:n.Submitted_At||""}):l.normalized!=null&&(n.Cohort_ID_Entry=l.normalized)}return fDe(r).catch(console.error),e}const pDe="1ddz-kxWUSkQbutS_eyu-DOGg6r2b2ABIHA8FgBg0FBI";function Vz(e){const t=(e.cohort_id_auto||"").toString().trim();return t||(e.Cohort_ID_Entry||"").toString().trim()}async function zz(e){var l;const t=`https://docs.google.com/spreadsheets/d/${pDe}/gviz/tq?tqx=out:json&sheet=${encodeURIComponent(e)}
630&t=${Date.now()}`,i=(await(await fetch(t,{cache:"no-store"})).text()).match(/google\.visualization\.Query\.setResponse\(([\s\S]*)\);?/);if(!i||!i[1])throw new Error(`Failed to parse response for tab: ${e}`);const o=JSON.parse(i[1]),a=o.table.cols.map(A=>(A.label||"").trim()),s=[];for(const A of o.table.rows){const u={};for(let d=0;d<a.length;d++){const h=(l=A.c)==null?void 0:l[d];u[a[d]]=(h==null?void 0:h.v)!=null?String(h.v):""}s.push(u)}return s}function Wz(e){return e.toString().toLowerCase().trim()}function J_(e){const t=e.match(/^Date\((\d+),(\d+),(\d+)/);return t?new Date(parseInt(t[1]),parseInt(t[2]),parseInt(t[3])):new Date(e)}async function Gz(e){const t=await zz("SOLO_Individual_Staging"),n=(await RN(t)).filter(K=>K.Email_Entry&&K.Email_Entry!=="xxxxx"&&K.Email_Entry.includes("@")),i=e.map(K=>K.toLowerCase().trim()),o=n.filter(K=>{const V=Vz(K).toLowerCase();return V&&i.includes(V)}),a=new Map;for(const K of o){const V=Wz(K.Email_Entry);a.has(V)||a.set(V,[]),a.get(V).push(K)}if(a.size===0)throw new Error("No participants found for this cohort.");for(const[,K]of a)K.sort((V,Q)=>J_(V.Submitted_At).getTime()-J_(Q.Submitted_At).getTime());const s=[],l=[],A={ORCHESTRATOR:0,PIONEER:0,GUARDIAN:0,EXPLORER:0};let u=0;const d=new Map;let h=0;for(const[K,V]of a){h++;const Q=Aa(V[0]),H=Aa(V[V.length-1]),q=V.length>1;q&&u++;const re=sme(V[V.length-1]);for(const[D,X]of Object.entries(re))d.has(D)||d.set(D,[]),d.get(D).push(X);const P=V[V.length-1].Role_Level_Entry||"";s.push({baseline:Q,current:H,hasRetake:q,email:K,roleLevel:P}),l.push({av:H.av,es:H.es,archetype:H.archetype,label:`Participant ${h}`,email:K,roleLevel:P}),A[H.archetype]++}const f=s.length,g=f>0?u/f:0,p=g>=.2,v=K=>K.length?Math.round(K.reduce((V,Q)=>V+Q,0)/K.length*100)/100:0,m=v(s.map(K=>K.current.av)),w=v(s.map(K=>K.current.es)),b=v(s.map(K=>K.baseline.av)),E=v(s.map(K=>K.baseline.es)),B=m,_=w,F=b,O=E,k=Object.entries(A).sort((K,V)=>V[1]-K[1])[0][0],j=Wi(m,w),I=o.map(K=>K.Submitted_At).filter(Boolean);let T="N/A";if(I.length>0){const K=I.map(J_).filter(V=>!isNaN(V.getTime())).sort((V,Q)=>V.getTime()-Q.getTime());if(K.length>0){const V=Q=>Q.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"});T=K.length===1||V(K[0])===V(K[K.length-1])?V(K[0]):`${V(K[0])} – ${V(K[K.length-1])}`}}const U=new Map;for(const K of s)for(const V of K.current.items)U.has(V.key)||U.set(V.key,{dimension:V.dimension,scores:[]}),U.get(V.key).scores.push(V.score);const R=[];for(const[K,V]of U)R.push({key:K,dimension:V.dimension,avgScore:v(V.scores),count:V.scores.length});const G={};for(const[K,V]of d)G[K]=v(V);return{participants:s,totalParticipants:f,avgAV:m,avgES:w,baselineAvgAV:b,baselineAvgES:E,todayAvgAV:B,todayAvgES:_,retakerBaselineAvgAV:F,retakerBaselineAvgES:O,dominantArchetype:j,pluralityArchetype:k,archetypeDist:A,hasRetake:p,retakePercentage:g,retakeCount:u,allScores:l,assessmentDate:T,questionAverages:R,subDimensionAverages:G}}async function gDe(e){const t=await zz("SOLO_Individual_Staging"),r=await RN(t),n=e.toLowerCase().trim(),i=new Set;for(const o of r)o.Email_Entry&&o.Email_Entry!=="xxxxx"&&o.Email_Entry.includes("@")&&Vz(o).toLowerCase()===n&&i.add(Wz(o.Email_Entry));return i.size}const mDe=Object.freeze(Object.defineProperty({__proto__:null,countCohortParticipants:gDe,fetchCohortData:Gz},Symbol.toStringTag,{value:"Module"})),yDe={SIA_01_AV:"I'm uncertain about whether I'm using the right AI tools effectively in my role.",SIA_02_AV:"I have clarity on which AI capabilities would meaningfully accelerate my key workflows.",SIA_03_AV:"I feel effective when I use AI tools in my daily work.",SIA_04_AV:"I give myself permission to experiment with new AI tools and find what works, even when I hit dead ends along the way.",SIA_05_AV:"AI agents or automation have directly reduced my manual workload in the past 6 months.",SIA_06_AV:"My current role involves orchestrating or coordinating multiple AI tools or systems as part of my daily work.",SIA_07_AV:"I feel overwhelmed by the pace at which AI tools and technologies are changing in my field.",SIA_08_ES:"I actively share my best AI prompts, tips, and tools with my network, clients, or collaborators.",SIA_09_ES:"I believe that embracing AI enhances my value to clients and the market, rather than making my expertise easier to replace.",SIA_10_ES:"I feel okay flagging problems or admitting I'm stuck with AI tools without worrying it will make me look bad.",SIA_11_ES:"I'm worried that what AI generates is starting to matter more than my actual judgment and expertise.",SIA_12_ES:"AI feels like a helpful teammate that makes me better at my job.",SIA_13_ES:"AI has accelerated work to 
630such a pace that I'm struggling to keep up, and it's wearing me out.",SIA_14_ES:"I have full control over how AI is used in my work.",SIA_15_ES:"The way I use AI is shaped by my own judgment, not by pressure from clients, platforms, or market trends telling me how I should work.",SIA_16_ES:"When an AI tool gets it wrong, I focus on understanding why rather than abandoning the tool entirely.",SIA_17_AV:"I spend more of my time directing AI and less time on repetitive, time-consuming tasks.",SIA_18_AV:"I actively use AI tools to augment my decision-making and accelerate my work outcomes.",SIA_19_AV:"I'm forced to work around outdated tools or platforms because I haven't found an AI alternative that actually works faster.",SIA_20_AV:"Things take longer than they should because I'm still relying on manual steps or habits I haven't replaced with faster AI-enabled alternatives.",SIA_21_ES:"I've watched work I used to do go to someone using AI faster and cheaper than I can.",SIA_22_AV:"AI saves me time on some tasks, but those gains get lost because other parts of my workflow are still slow and manual.",SIA_23_ES:"I proactively seek out and invest in the tools and training I need to work efficiently with AI.",SIA_24_ES:"I regularly educate myself on the risks and ethics of AI use, not just the benefits.",SIA_25_ES:"I have a clear personal framework for how I use AI ethically. I know where I draw the line on what I will and won't use it for.",SIA_26_ES:"I use AI to expand what I can deliver and take on, not as a reason to undercharge or devalue my work.",SIA_27_ES:"Concerns about data privacy or security limit which AI tools I'm willing to use, which prevents me from finding better ways to work.",SIA_28_ES:"The clients or collaborators I work with are skeptical of AI, which makes me hesitant to use it openly even when it would improve my work.",SIA_29_ES:"I have mapped out exactly where AI fits into my workflows to achieve the best outcomes."},vDe=new Set(["IA_01_AV","IA_07_AV","IA_11_ES","IA_13_ES","IA_19_AV","IA_20_AV","IA_21_ES","IA_22_AV","IA_27_ES","IA_28_ES"]);function Yz(e){return e.startsWith("SIA_")?e.replace("SIA_","IA_"):e}function wDe(e){return vDe.has(Yz(e))}function bDe(e){return e<2.5?{bg:"#FEF2F2",bar:"#FCA5A5",label:"Critical"}:e<4?{bg:"#FFFBEB",bar:"#FCD34D",label:"Developing"}:e<5.3?{bg:"#F0FDF4",bar:"#86EFAC",label:"Strong"}:{bg:"#EFF6FF",bar:"#93C5FD",label:"Leading"}}function xDe({questionAverages:e}){const[t,r]=S.useState(!1),n=e.filter(a=>a.dimension==="AV").sort((a,s)=>a.avgScore-s.avgScore),i=e.filter(a=>a.dimension==="ES").sort((a,s)=>a.avgScore-s.avgScore),o=a=>{const s=yDe[a.key]||a.key,l=Yz(a.key),A=wDe(a.key),u=bDe(a.avgScore),d=(a.avgScore-1)/5*100,h=A?qm(l,a.avgScore,"individual"):Xm(l,a.avgScore,"individual");return c.jsx("div",{className:"rounded-md border border-[#E5E7EB] px-4 py-3",style:{backgroundColor:A?"#F9FAFB":u.bg,breakInside:"avoid"},children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm text-foreground leading-relaxed",children:s}),h&&c.jsx("p",{className:"mt-1 text-xs italic leading-relaxed",style:{color:"#6B7280"},children:h}),c.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5",children:[c.jsx("span",{className:"inline-block rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider",style:{backgroundColor:"#F3F4F6",color:"#6B7280"},children:a.dimension}),A&&c.jsxs(Wu,{children:[c.jsx(Gu,{asChild:!0,children:c.jsx("span",{className:"inline-block cursor-help rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider",style:{backgroundColor:"#E5E7EB",color:"#9CA3AF"},children:"RC"})}),c.jsx(yc,{className:"max-w-xs text-xs",side:"top",children:"This question is reverse coded. A higher score means this barrier is less present for your cohort."})]})]})]}),c.jsxs("div",{className:"flex flex-col items-end gap-1.5",style:{minWidth:"110px"},children:[c.jsxs("span",{className:"text-sm font-bold text-foreground",children:[a.avgScore.toFixed(2)," ",c.jsx("span",{className:"font-normal text-muted-foreground",children:"/ 6.0"})]}),c.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-[#E5E7EB]",children:c.jsx("div",{className:"h-full rounded-full transition-all",style:{width:`${d}%`,backgroundColor:A?"#D1D5DB":u.bar}})}),!A&&c.jsx("span",{className:"inline-block rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider",style:{backgroundColor:u.bar+"44",color:u.bar==="#FCA5A5"?"#DC2626":u.bar==="#FCD34D"?"#D97706":u.bar==="#86EFAC"?"#16A34A":"#2563EB"},children:u.label})]})]})},a.key)};return c.jsxs("section",{className:"mt-2",children:[c.jsxs("button",{onClick:()=>r(!t),className:"flex w-full items-center justify-between rounded-lg border border-[#
630E5E7EB] bg-card px-6 py-4 text-left transition-colors hover:bg-accent/50",style:{cursor:"pointer"},children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Question-Level Breakdown"}),c.jsx("p",{className:"text-sm italic",style:{color:"#6B7280"},children:"Questions are sorted from lowest to highest cohort average. The top of this list is where your cohort needs the most support."})]}),c.jsx("span",{className:"shrink-0 rounded-full px-4 py-1.5 text-sm font-semibold transition-colors",style:{backgroundColor:"#FFC100",color:"#1A1918"},children:t?"Hide Details":"View Question Breakdown"})]}),t&&c.jsxs("div",{className:"mt-4 space-y-6",children:[c.jsxs("div",{children:[c.jsxs("h3",{className:"mb-3 text-sm font-semibold uppercase tracking-wider",style:{color:"#2563EB"},children:["Agentic Velocity (AV) — ",n.length," questions"]}),c.jsx("div",{className:"space-y-2",children:n.map(o)})]}),c.jsxs("div",{children:[c.jsxs("h3",{className:"mb-3 text-sm font-semibold uppercase tracking-wider",style:{color:"#16A34A"},children:["Enterprise Symbiosis (ES) — ",i.length," questions"]}),c.jsx("div",{className:"space-y-2",children:i.map(o)})]})]})]})}function QD(e){return/^[aeiou]/i.test(e)?"an":"a"}function Z_({delta:e}){const t=Math.abs(e);return t===0?c.jsx("span",{style:{color:"#9ca3af"},children:"→ 0.00"}):e>0?c.jsxs("span",{style:{color:"#22c55e"},children:["↑ +",t.toFixed(2)]}):c.jsxs("span",{style:{color:"#ef4444"},children:["↓ -",t.toFixed(2)]})}function eS({label:e}){const r={Critical:{bg:"#FEF2F2",color:"#DC2626"},Developing:{bg:"#FFFBEB",color:"#D97706"},Strong:{bg:"#F0FDF4",color:"#16A34A"},Leading:{bg:"#EFF6FF",color:"#2563EB"}}[e];return c.jsx("span",{style:{backgroundColor:r.bg,color:r.color,borderRadius:"9999px",padding:"2px 10px",fontSize:"12px",fontWeight:600},children:e})}function qz({text:e}){return c.jsxs(Wu,{children:[c.jsx(Gu,{asChild:!0,children:c.jsx("button",{className:"ml-1 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-[#E5E7EB] text-[10px] text-[#6B7280] hover:bg-[#D1D5DB]","aria-label":"Info",children:"i"})}),c.jsx(yc,{className:"w-72 text-sm",children:e})]})}const Xz={AV:"How actively participants experiment with and act on AI in their daily work. High AV means people are moving fast with AI tools. Low AV means hesitation, avoidance, or lack of experimentation.",ES:"How well AI is integrated into the systems, culture, and workflows around the participant. High ES means the environment enables and supports AI adoption. Low ES means structural or cultural barriers are slowing people down.",THRESHOLD:"4.0 is the threshold between Developing and Strong readiness. Participants above this line have enough momentum to build on. Below this line, foundational support and deliberate practice are the priority."},BDe="How actively participants experiment with and act on AI in their daily work.",EDe="How well AI is integrated into the systems, culture, and workflows around participants.",i1={EXPLORER:{fill:"#FEF2F2",stroke:"#DC2626"},PIONEER:{fill:"#EFF6FF",stroke:"#2563EB"},GUARDIAN:{fill:"#FFFBEB",stroke:"#D97706"},ORCHESTRATOR:{fill:"#F0FDF4",stroke:"#16A34A"}},uA={ORCHESTRATOR:"Orchestrator",PIONEER:"Pioneer",GUARDIAN:"Guardian",EXPLORER:"Explorer"};function _De({subDimensionAverages:e}){const t=Object.entries(e).map(([r,n])=>({name:r,value:n}));return t.length===0?null:c.jsxs("div",{children:[c.jsx(qu,{width:"100%",height:300,children:c.jsxs(Hz,{data:t,cx:"50%",cy:"50%",outerRadius:"70%",children:[c.jsx(ON,{stroke:"#E5E7EB"}),c.jsx(rd,{dataKey:"name",tick:{fill:"#374151",fontSize:10}}),c.jsx(td,{domain:[0,6],tick:{fill:"#9CA3AF",fontSize:9},axisLine:!1}),c.jsx(cp,{dataKey:"value",stroke:"#FFC100",fill:"#FFC100",fillOpacity:.3,strokeWidth:2})]})}),c.jsx("p",{className:"mt-2 italic",style:{fontSize:"12px",color:"#6B7280"},children:"Each spoke represents a dimension of cohort AI readiness. A fuller shape means more balanced readiness."})]})}function SDe({distribution:e}){const t=["EXPLORER","PIONEER","GUARDIAN","ORCHESTRATOR"],r=Object.values(e).reduce((o,a)=>o+a,0),n=t.filter(o=>e[o]>0).map(o=>({name:o,value:e[o],...i1[o]})),i=({cx:o,cy:a,midAngle:s,innerRadius:l,outerRadius:A,value:u})=>{const d=Math.PI/180,h=l+(A-l)*1.6,f=o+h*Math.cos(-s*d),g=a+h*Math.sin(-s*d),p=r>0?Math.round(u/r*100):0;return c.jsxs("text",{x:f,y:g,fill:"#374151",textAnchor:f>o?"start":"end",dominantBaseline:"central",fontSize:"11",children:[u," (",p,"%)"]})};return c.jsxs("div",{children:[c.jsx(qu,{width:"100%",height:260,children:c.jsx(lv,{children:c.jsx(Ko,{data:n,dataKey:"value",cx:"50%",cy:"50%",innerRadius:55,outerRadius:85,label:i,labelLine:!1,children:n.map((o,a)=>c.jsx(Xu,{fill:o.fill,stroke:o.stroke,strokeWidth:2},a))})})}),c.jsx("div",{className:"flex flex-wrap justify-center gap-3 mt-2",children:t.map(o=>c.jsxs("span",{className:"flex items-center gap-1 text-xs text-[#374151]",children:[c.jsx("span",{className:"inline-block h-3 w-3 rounded-sm",style:{backgroundColor:i1[o].fill,border:`2px solid ${i1[o].stroke}`}}),o,": ",e[o]]},o))})]})}function CDe({avgAV:e,avgES:t}){const r=e-t;let n;r>.3?n="Your cohort moves faster individually than the environment supports. Focus on building supportive structures and peer learning.":r<-.3?n="Your cohort has strong environmental support but needs more individual confidence and experimentation.":n="Your cohort is balanced across both dimensions. Focus on moving the overall average upward together.";const i=a=>`${(a-1)/5*100}%`,o=3/5*100;return c.jsxs("div",{children:[c.jsxs("div",{className:"relative space-y-3 py-4",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between text-xs text-[#374151] mb-1",children:[c.jsx("span",{children:"Agentic Velocity"}),c.jsx("span",{className:"font-semibold",children:e.toFixed(2)})]}),c.jsx("div",{className:"h-6 w-full rounded bg-[#F3F4F6] relative overflow-hidden",children:c.jsx("div",{className:"h-full rounded",style:{width:i(e),backgroundColor:"#FFC100"}})})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between text-xs text-[#374151] mb-1",children:[c.jsx("span",{children:"Enterprise Symbiosis"}),c.jsx("span",{className:"font-semibold",children:t.toFixed(2)})]}),c.jsx("div",{className:"h-6 w-full rounded bg-[#F3F4F6] relative overflow-hidden",children:c.jsx("div",{className:"h-full rounded",style:{width:i(t),backgroundColor:"#93C5FD"}})})]}),c.jsx("div",{className:"absolute top-0 bottom-0",style:{left:`${o}%`},children:c.jsx("div",{className:"h-full border-l-2 border-dashed border-[#9CA3AF]"})})]}),c.jsxs("div",{className:"flex items-center gap-1 mb-2",style:{marginLeft:`${o}%`,transform:"translateX(-50%)"},children:[c.jsx("span",{style:{fontSize:"11px",color:"#6B7280"},children:"Readiness Threshold"}),c.jsx(qz,{text:Xz.THRESHOLD})]}),c.jsx("p",{className:"text-sm italic text-[#374151]",children:n})]})}function IDe({participants:e,cohortAvg:t}){const[r,n]=S.useState(null),i=[...e].sort((h,f)=>(h.av+h.es)/2-(f.av+f.es)/2),o=i.map(h=>(h.av+h.es)/2),a=o.length?Math.min(...o):1,l=(o.length?Math.max(...o):6)-a;let A;l<=.5?A="Your cohort is tightly clustered. A rising tide approach will work well here.":l>1.5?A="Your cohort has significant spread in readiness. Consider targeted programs for different readiness tiers.":A="Your cohort has moderate spread. Targeted coaching for your lowest-scoring participants will move the cohort average fastest.";const u=h=>(h-1.5)/5*100,d=u(4);return c.jsxs("div",{children:[c.jsx("div",{className:"relative py-8",style:{minHeight:"80px"},children:c.jsxs("svg",{viewBox:"0 0 100 40",className:"w-full",preserveAspectRatio:"none",style:{overflow:"visible"},children:[c.jsx("line",{x1:"0",y1:"25",x2:"100",y2:"25",stroke:"#E5E7EB",strokeWidth:"0.5"}),c.jsx("line",{x1:d,y1:"5",x2:d,y2:"35",stroke:"#9CA3AF",strokeWidth:"0.3",strokeDasharray:"1"}),c.jsx("line",{x1:u(t),y1:"10",x2:u(t),y2:"30",stroke:"#FFC100",strokeWidth:"0.6"}),c.jsx("text",{x:u(t),y:"38",textAnchor:"middle",fill:"#FFC100",fontSize:"3",fontWeight:"600",children:t.toFixed(2)}),i.map((h,f)=>{const g=(h.av+h.es)/2,p=i1[h.archetype];return c.jsx("g",{onMouseEnter:()=>n(f),onMouseLeave:()=>n(null),style:{cursor:"pointer"},children:c.jsx("circle",{cx:u(g),cy:"25",r:"1.2",fill:p.fill,stroke:p.stroke,strokeWidth:"0.4"})},f)}),[2,3,4,5,6].map(h=>c.jsx("text",{x:u(h),y:"30",textAnchor:"middle",fill:"#9CA3AF",fontSize:"2.5",children:h},h))]})}),r!==null&&i[r]&&(()=>{const h=i[r],f=((h.av+h.es)/2).toFixed(2);return c.jsxs("div",{className:"mb-2 inline-block rounded-md border border-[#
630E5E7EB] bg-white px-3 py-2 text-xs shadow-sm",style:{borderRadius:"6px"},children:[c.jsx("p",{className:"font-semibold text-[#374151]",children:h.label}),c.jsxs("p",{className:"text-[#6B7280]",children:["Overall Score: ",f]}),c.jsxs("p",{className:"text-[#6B7280]",children:["Archetype: ",h.archetype]})]})})(),c.jsx("p",{className:"text-sm italic text-[#374151]",children:A})]})}function kDe({score:e}){const t=(e-1)/5*100,r=[{label:"Critical",bg:"#FEF2F2",w:"28%"},{label:"Developing",bg:"#FFFBEB",w:"28%"},{label:"Strong",bg:"#F0FDF4",w:"24%"},{label:"Leading",bg:"#EFF6FF",w:"16%"}];return c.jsx("div",{className:"mt-3",children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute text-sm text-[#FFC100]",style:{left:`${t}%`,top:"-18px",transform:"translateX(-50%)"},children:"▼"}),c.jsx("div",{className:"flex h-5 w-full overflow-hidden rounded",children:r.map(n=>c.jsx("div",{className:"flex items-center justify-center text-[9px] font-medium text-[#6B7280]",style:{backgroundColor:n.bg,width:n.w},children:n.label},n.label))})]})})}const FDe={EXPLORER:{heading:"Your cohort is at the starting line. The window to lead is open right now.",moves:["Commission a structured AI onboarding experience for every participant this quarter. Not a tool rollout. A confidence-building program that gives every participant one safe place to try, one successful experiment, and one peer to learn from. That sequence is what moves Explorers forward.","Identify the three participants in your cohort who are already experimenting with AI personally. Make them visible. Give them a title, a channel, a standing meeting. Internal 
630champions with organizational backing move culture faster than any top-down mandate.","Set one cohort-wide AI readiness goal with a 90-day timeline and share it in writing with every participant. Not a tool adoption target. A behavior target. Something like: every participant has run at least one AI workflow experiment by the target date. Clarity at the top creates permission at every level below it."]},PIONEER:{heading:"Your cohort has momentum. Your job now is to build the structure around it.",moves:["Audit your Shadow AI exposure this week. Survey participants directly: what tools are you using that are not on the approved list? The answer will surprise you. Getting ahead of this protects the momentum you have built and prevents a compliance incident from derailing it.","Identify your top three AI-fluent participants and formalize their workflows. Document what they are doing, how they are doing it, and what results they are seeing. Then create a structured way for other participants to adopt those workflows. Individual momentum becomes cohort capability when it is codified and transferable.","Build an AI governance framework this quarter if you do not have one. Not a policy document that sits in a shared drive. A living framework with clear lanes: what is approved, what requires review, what is off-limits, and who owns each decision. Pioneer cohorts that do not build governance infrastructure at speed create compounding risk."]},GUARDIAN:{heading:"Your cohort has the structure. Now it needs the permission.",moves:["Issue an explicit AI experimentation mandate from the facilitator this week. In writing. Visible to all participants. The message is simple: it is safe to try. It is expected that you try. Failure in a bounded experiment is not a performance issue. Guardian cohorts do not lack governance. They lack the green light. Give it.","Audit your AI approval process for friction. Map every step a participant has to take to get approval to use a new AI tool. If that process takes more than 48 hours or involves more than two approvals, you are suppressing adoption faster than any skill gap could. Redesign it.","Identify one high-visibility workflow in your cohort and formally redesign it with AI built in as a required step. Make the redesign public. Name it. Celebrate it. Guardian cohorts move when they see that the structure supports action, not just caution. One visible example at the cohort level changes the permission structure for everyone."]},ORCHESTRATOR:{heading:"Your cohort is at the frontier. The work now is compounding and scaling.",moves:["Build a formal AI Center of Excellence this quarter if you do not have one. Not a committee. A functional group with dedicated resources, a mandate to codify best practices, and a charter to spread them across every participant. Orchestrator cohorts that do not institutionalize their edge eventually lose it to faster-moving competitors who do.","Set your next-level AI readiness target. Your cohort has reached Orchestrator. Define what the next 12 months look like in specific behavioral terms: what percentage of core workflows are formally redesigned around AI, what does your average participant AI fluency score look like. Orchestrator cohorts that keep measuring keep improving.","Export your AI playbook. Document your cohort's AI transformation journey, the frameworks you used, the mistakes you made, and the results you achieved. Share it externally. Publish it. The cohorts that define the standard become the ones others follow. That positioning compounds in ways that individual performance never does."]}};function NDe(e){const t=e.match(/event-(\d{2})-(\d{2})-(\d{2})/i);if(!t)return"";const r=parseInt(t[1]),n=parseInt(t[2]),i=2e3+parseInt(t[3]);return new Date(i,r-1,n).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}const TDe=()=>{const{cohortId:e}=Nx(),t=S.useRef(null),[r,n]=S.useState(!1),i=S.useCallback(async()=>{if(!(!t.current||r)){n(!0);try{await new Promise(Le=>setTimeout(Le,500));const me=`FlipFactor-Cohort-Report-${(e||"unknown").replace(/[^a-zA-Z0-9]/g,"-")}.pdf`;await z7(t.current,me)}catch(me){console.warn("PDF generation failed:",me)}finally{n(!1)}}},[r,e]),[o,a]=S.useState(!0),[s,l]=S.useState(""),[A,u]=S.useState(null),[d,h]=S.useState(""),[f,g]=S.useState(!1),[p,v]=S.useState(null),[m,w]=S.useState(null),[b,E]=S.useState(!1),[B,_]=S.useState(null);S.useEffect(()=>{sF().then(g)},[]),S.useEffect(()=>{if(!e){l("invalid"),a(!1);return}(async()=>{const{data:me,error:Le}=await Tt.from("cohort_registry").select("*").eq("cohort_id",e).maybeSingle();if(!me){l("not_found"),a(!1);return}h(me.cohort_name);try{const Ue=await Gz([e]);u(Ue)}catch(Ue){l(Ue.message)}finally{a(!1)}})()},[e]);const F=async()=>
630{if(!A)return;E(!0),_(null);const me=A,Le=me.avgAV>=me.avgES?"Agentic Velocity":"Enterprise Symbiosis",Ue=me.avgAV<me.avgES?"Agentic Velocity":"Enterprise Symbiosis",Bt=Math.max(me.avgAV,me.avgES),Et=Math.min(me.avgAV,me.avgES),Ge=Object.entries(me.archetypeDist).filter(([,dt])=>dt>0).sort((dt,Ye)=>Ye[1]-dt[1]).map(([dt,Ye])=>`${uA[dt]} (${Ye})`).join(", "),Je={cohortName:d,totalParticipants:me.totalParticipants,retakeCount:me.retakeCount,dominantArchetype:uA[me.dominantArchetype],avgAV:me.avgAV,avgES:me.avgES,baselineAvgAV:me.baselineAvgAV,baselineAvgES:me.baselineAvgES,hasRetake:me.hasRetake,baselineCohortArchetype:me.hasRetake?uA[Wi(me.baselineAvgAV,me.baselineAvgES)]:null,archetypeDistribution:Ge,strongestDimension:Le,strongestScore:Bt,weakestDimension:Ue,weakestScore:Et,subDimensionAverages:me.subDimensionAverages};try{const[dt,Ye]=await Promise.all([fetch("https://tsaefmoxxdvjdtxauisr.supabase.co/functions/v1/generate-narrative",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer undefined"},body:JSON.stringify({maxTokens:800,system:'You are a trusted strategic advisor writing for a program facilitator or organizational leader. Write in plain, confident language. No bullet points. No em dashes. No filler phrases like "it is worth noting" or "it is important to". Every sentence must carry specific meaning grounded in the data provided.',prompt:`Write a cohort readiness snapshot for a facilitator using exactly these four sections with these exact headings on their own lines: OVERVIEW, WHAT YOUR COHORT IS DOING WELL, WHERE TO FOCUS, HOW TO USE THIS REPORT. The OVERVIEW section must open by naming the cohort archetype explicitly in the first sentence. For example: This cohort is a Guardian cohort. Then continue with the score and distribution detail. Each section is one to three sentences. Base everything strictly on this data: ${JSON.stringify(Je,null,2)}`})}),fetch("https://tsaefmoxxdvjdtxauisr.supabase.co/functions/v1/generate-narrative",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer undefined"},body:JSON.stringify({maxTokens:600,system:"You are a trusted strategic advisor writing for a program facilitator or organizational leader. Write in plain, confident language. No bullet points. No em dashes. No filler phrases. Every recommendation must be specific, concrete, and grounded in the data provided. Never give generic advice.",prompt:`Write exactly three numbered intervention recommendations for a cohort facilitator. Each recommendation is two to three sentences. Number them 1, 2, 3. Make each one specific to the archetype, scores, and sub-dimension weaknesses in this data: ${JSON.stringify(Je,null,2)}`})})]),vt=await dt.json(),tt=await Ye.json();vt.narrative&&v(vt.narrative),tt.narrative&&w(tt.narrative),!vt.narrative&&!tt.narrative&&_("Narrative generation failed. Showing standard report.")}catch{_("Could not reach the narrative service. Showing standard report.")}finally{E(!1)}};if(S.useEffect(()=>{A&&d&&F()},[A,d]),o)return c.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[c.jsxs("nav",{className:"flex items-center justify-between px-6 py-4",children:[c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",children:c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"h-8 w-auto"})}),c.jsx("span",{className:"text-sm font-medium text-foreground",children:"FlipFactor™ | Cohort AI Readiness Report"}),c.jsx("span",{})]}),c.jsx("div",{className:"h-0.5 w-full bg-primary"}),c.jsx("div",{className:"flex flex-1 items-center justify-center",children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading your results…"})})]});if(s||!A)return c.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[c.jsxs("nav",{className:"flex items-center justify-between px-6 py-4",children:[c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",children:c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"h-8 w-auto"})}),c.jsx("span",{className:"text-sm font-medium text-foreground",children:"FlipFactor™"}),c.jsx("span",{})]}),c.jsx("div",{className:"h-0.5 w-full bg-primary"}),c.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 px-4",children:[c.jsx("p",{className:"text-lg font-semibold text-foreground",children:"This report is not available."}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Please contact FlipWork at ",c.jsx("a",{href:"mailto:FlipFactor™@flipwork.ai",className:"underline",children:"FlipFactor™@flipwork.ai"})]})]})]});const{participants:O,totalParticipants:k,avgAV:j,avgES:I,baselineAvgAV:T,baselineAvgES:U,todayAvgAV:R,todayAvgES:G,retakerBaselineAvgAV:K,retakerBaselineAvgES:V,dominantArchetype:Q,archetypeDist:H,hasRetake:q,retakePercentage:re,retakeCount:P,allScores:D,assessmentDate:X,questionAverages:Z,subDimensionAverages:ae}=A,se=(j+I)/2,pe=(T+U)/2,le=Wi(T,U),he=e?NDe(e):"",Ae=O.map((me,Le)=>({label:`Participant ${Le+1}`,av:me.baseline.av,es:me.baseline.es,archetype:me.baseline.archetype,email:me.email,roleLevel:me.roleLevel})),ue=q?O.map((me,Le)=>({label:`Participant ${Le+1}`,av:me.current.av,es:me.current.es,archetype:me.current.archetype,email:me.email,roleLevel:me.roleLevel})):null,_e=j>=I?"Agentic Velocity":"Enterprise Symbiosis",ve=j<I?"Agentic Velocity":"Enterprise Symbiosis",z=Math.max(j,I),Se=Math.min(j,I),Me=z>3.5?`Your cohort's strongest dimension is ${_e} at ${z.toFixed(2)}. This is above the readiness threshold and represents a genuine cohort capability.`:"Your cohort is early in its AI readiness journey. You are measuring it now, and that matters. Awareness comes before action.",De=Se<=3.5?`The area needing the most attention is ${ve} at ${Se.toFixed(2)}. This is below the readiness threshold and represents the highest-leverage improvement opportunity.`:"Both dimensions are above the readiness threshold. Focus on moving the overall average upward and closing any gaps between participants.",xe=(()=>{const me=se-pe;return q?me>=.1?`Your cohort's average readiness has improved since Day 1. AV moved from ${T.toFixed(2)} to ${j.toFixed(2)} and ES moved from ${U.toFixed(2)} to ${I.toFixed(2)}. The cohort is shifting in the right direction.`:me<=-.1?`Your cohort's average readiness has dipped since Day 1. AV moved from ${T.toFixed(2)} to ${j.toFixed(2)} and ES moved from ${U.toFixed(2)} to ${I.toFixed(2)}. Review the data to find where to focus.`:`Your cohort's scores have held steady since Day 1. AV is ${j.toFixed(2)} and ES is ${I.toFixed(2)}. Consistency is a foundation. The next step is identifying one intervention to move the needle before the next assessment.`:`This is your cohort's baseline. AV is ${j.toFixed(2)} and ES is ${I.toFixed(2)}. Every future assessment will show movement from this starting point.`})(),ze=FDe[Q];return c.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[c.jsxs("nav",{className:"flex items-center justify-between px-6 py-4 print:hidden",children:[c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",children:c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"h-8 w-auto"})}),c.jsx("span",{className:"text-sm font-medium text-foreground",children:"FlipFactor™ | Cohort AI Readiness Report"}),c.jsx("span",{})]}),c.jsx("div",{className:"h-0.5 w-full bg-primary print:hidden"}),c.jsxs("div",{ref:t,className:"mx-auto w-full max-w-5xl space-y-8 px-4 py-8",children:[c.jsxs("section",{style:{position:"relative",display:"flex",width:"100%",justifyContent:"space-between",alignItems:"flex-start",paddingBottom:"12px",marginBottom:"16
630px",borderBottom:"2px solid #FFC100"},children:[c.jsx("img",{src:Bn,alt:"",style:{position:"absolute",top:0,left:0,width:"56px",height:"56px",opacity:.75,objectFit:"contain"}}),c.jsxs("div",{style:{flex:1,minWidth:0,paddingLeft:"68px"},children:[c.jsx("h1",{className:"text-2xl font-bold text-foreground break-words",children:d}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:[k," participants assessed",he?` · ${he}`:""]}),e&&c.jsx("p",{className:"text-xs text-muted-foreground/70",children:e})]}),c.jsxs("div",{style:{flexShrink:0,textAlign:"right",whiteSpace:"nowrap",minWidth:"220px",marginLeft:"auto"},className:"flex items-start gap-4 text-sm",children:[c.jsxs("div",{style:{textAlign:"right",marginLeft:"auto",minWidth:"240px"},children:[c.jsxs("p",{className:"text-muted-foreground",children:["Assessment: ",he||X]}),c.jsx("p",{className:"font-medium text-foreground",children:"FlipFactor™ | Cohort AI Readiness Report"})]}),c.jsx(Ac,{onClick:()=>i(),isGenerating:r})]})]}),(()=>{const me="Start with the Cohort Profile to see where participants land. Then review the Dimension Detail for deep dives into AV and ES. Check the Growth Journey to see movement over time. Close with Your Next Three Moves for what to focus on this month.",Le={color:"#FFC100",fontSize:"11px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"8px"},Ue={color:"#374151",fontSize:"14px",lineHeight:1.7},Bt={borderColor:"#E5E7EB",margin:"0"},Et={GUARDIAN:"Governance Gridlock",ORCHESTRATOR:"Agentic-Human Enterprise",EXPLORER:"Uncharted Enterprise",PIONEER:"Fragmented Frontier"},Ge=Object.entries(H).filter(([,Je])=>Je>0).sort((Je,dt)=>dt[1]-Je[1]).map(([Je,dt])=>`${uA[Je]} (${dt})`).join(", ");return c.jsxs("section",{className:"rounded-lg",style:{borderLeft:"4px solid #FFC100",background:"#FFFDF5",padding:"28px"},children:[c.jsx("h2",{style:{fontFamily:"Outfit, sans-serif",fontSize:"22px",fontWeight:700,color:"#1A1918",marginBottom:"8px"},children:"Cohort Snapshot"}),c.jsx("div",{style:{height:"2px",background:"#FFC100",marginBottom:"12px"}}),c.jsx("p",{style:{fontSize:"14px",fontStyle:"italic",color:"#6B7280",marginBottom:"8px"},children:"Your FlipFactor™ cohort assessment at a glance."}),c.jsxs("p",{style:{fontSize:"12px",color:"#6B7280",marginBottom:"16px"},children:[P," of ",k," participants have completed the midpoint diagnostic. All scores and growth deltas reflect the full cohort."]}),c.jsx("div",{style:{marginBottom:"20px"},children:c.jsx("button",{type:"button",onClick:()=>F(),disabled:b,className:"print:hidden",style:{fontSize:"12px",fontWeight:600,color:"#1A1918",background:"transparent",border:"1px solid #E5E7EB",borderRadius:"6px",padding:"6px 12px",cursor:b?"not-allowed":"pointer",opacity:b?.6:1},children:b?"Generating...":"Regenerate Narratives"})}),B&&c.jsx("p",{style:{fontSize:"12px",color:"#DC2626",marginBottom:"12px"},children:B}),b&&!p?c.jsx("p",{style:{fontSize:"14px",fontStyle:"italic",color:"#6B7280"},children:"Generating cohort snapshot..."}):p?c.jsx("div",{className:"ai-narrative-text",style:{...Ue,whiteSpace:"pre-wrap"},children:p}):c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[c.jsxs("div",{children:[c.jsx("p",{style:Le,children:"OVERVIEW"}),c.jsxs("p",{style:Ue,children:["This report covers ",k," participants in the ",d," cohort. Based on its average AV and ES scores, this cohort sits in the ",uA[Q]," archetype, the ",Et[Q]," stage. Across all participants, the archetype distribution is: ",Ge,".",q&&(()=>{const Je=le,dt=T.toFixed(2),Ye=U.toFixed(2),vt=j.toFixed(2),tt=I.toFixed(2);return Je!==Q?` On Day 1, the cohort was operating as ${QD(Je)} ${uA[Je]} with an AV of ${dt} and ES of ${Ye}. Today the cohort is ${QD(Q)} ${uA[Q]} with an AV of ${vt} and ES of ${tt}.`:` On Day 1, the cohort scored an AV of ${dt} and ES of ${Ye}. Today AV is ${vt} and ES is ${tt}.`})()]})]}),c.jsx("hr",{style:Bt}),c.jsxs("div",{children:[c.jsx("p",{style:Le,children:"WHAT YOUR COHORT IS DOING WELL"}),c.jsx("p",{style:Ue,children:Me})]}),c.jsx("hr",{style:Bt}),c.jsxs("div",{children:[c.jsx("p",{style:Le,children:"WHERE TO FOCUS"}),c.jsx("p",{style:Ue,children:De})]}),c.jsx("hr",{style:Bt}),c.jsxs("div",{children:[c.jsx("p",{style:Le,children:"HOW TO USE THIS REPORT"}),c.jsx("p",{style:Ue,children:me})]})]})]})})(),c.jsxs("section",{"data-print-break":!0,className:"rounded-lg border border-[#
630E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Cohort-Wide FlipFactor™ Profile"}),c.jsx("p",{className:"mb-6 text-sm italic",style:{color:"#6B7280"},children:"Each dot represents one participant, plotted by their AV and ES scores. The star marks the cohort-wide average."}),c.jsx(ev,{axisMin:1.5,axisMax:6.5,baselineMembers:Ae,currentMembers:ue,baselineTeamAvgAV:T,baselineTeamAvgES:U,currentTeamAvgAV:j,currentTeamAvgES:I,hasRetake:q,drilldownEnabled:f,onMemberClick:me=>{me.email&&window.open(`/individual-dashboard/view/${encodeURIComponent(me.email)}?source=SOLO_Individual_Staging`,"_blank")},narrativeContent:c.jsxs("div",{children:[c.jsx("p",{className:"text-xs uppercase tracking-wider",style:{color:"#B8860B",fontWeight:700},children:"Cohort Profile"}),c.jsxs("div",{className:"mt-3 flex items-center gap-4 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Cohort Average AV"}),c.jsx("span",{className:"ml-2",children:c.jsx(eS,{label:br(j)})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",j.toFixed(2)," out of 6.0",q&&c.jsx("span",{className:"ml-2",children:c.jsx(Z_,{delta:j-T})})]})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Cohort Average ES"}),c.jsx("span",{className:"ml-2",children:c.jsx(eS,{label:br(I)})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",I.toFixed(2)," out of 6.0",q&&c.jsx("span",{className:"ml-2",children:c.jsx(Z_,{delta:I-U})})]})]})]}),c.jsxs("div",{className:"mt-4",style:{display:"flex",flexDirection:"column",gap:"12px"},children:[c.jsxs("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:["This cohort has ",k," participants assessed. The dominant archetype is ",uA[Q]," with a cohort-wide AV of ",j.toFixed(2)," and ES of ",I.toFixed(2),"."]}),c.jsx("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:xe})]})]})})]}),c.jsx(xDe,{questionAverages:Z}),c.jsxs("section",{"data-print-break":!0,children:[c.jsx("h2",{className:"mb-4 text-lg font-bold text-foreground",children:"Cohort Dimension Breakdown"}),c.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:[{key:"av",name:"Agentic Velocity (AV)",def:BDe,score:j,baseline:T},{key:"es",name:"Enterprise Symbiosis (ES)",def:EDe,score:I,baseline:U}].map(me=>c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsxs("p",{className:"text-sm font-medium text-muted-foreground flex items-center",children:[me.name,c.jsx(qz,{text:Xz[me.key==="av"?"AV":"ES"]})]}),c.jsx("p",{className:"text-[12px] text-[#6B7280]",children:me.def}),c.jsx("p",{className:"mt-2 flex items-center gap-2 text-2xl font-bold text-foreground",children:c.jsx(eS,{label:br(me.score)})}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Score: ",me.score.toFixed(2)," out of 6.0"]}),q&&c.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:c.jsx(Z_,{delta:me.score-me.baseline})}),c.jsx(kDe,{score:me.score})]},me.key))})]}),c.jsx("section",{children:c.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Cohort AI Readiness Snapshot"}),c.jsx("p",{className:"mt-1 mb-3 text-sm text-[#374151]",children:"This chart shows the shape of your cohort's AI readiness across six sub-dimensions."}),c.jsx(_De,{subDimensionAverages:ae})]}),c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Cohort Archetype Distribution"}),c.jsx("p",{className:"mt-1 mb-3 text-sm text-[#374151]",children:"How all participants are distributed across the four AI readiness archetypes."}),c.jsx(SDe,{distribution:H})]}),c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Cohort Dimension Gap"}),c.jsx("p",{className:"mt-1 mb-3 text-sm text-[#374151]",children:"Compares cohort-wide average AV against ES. The bigger the gap, the more imbalanced the cohort's readiness."}),c.jsx(CDe,{avgAV:j,avgES:I})]}
630),c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Cohort Score Spread"}),c.jsx("p",{className:"mt-1 mb-3 text-sm text-[#374151]",children:"Every participant plotted by their composite score. The gold line is the cohort-wide average."}),c.jsx(IDe,{participants:D,cohortAvg:se})]})]})}),(()=>{const me=q?[{label:"DAY 1",av:K,es:V,archetype:Wi(K,V)},{label:"TODAY",av:R,es:G,archetype:Wi(R,G)}]:[{label:"DAY 1",av:j,es:I,archetype:Wi(j,I)}];return c.jsx(Jf,{rounds:me,title:"Cohort Growth Journey",singleRoundMessage:"This is your cohort's baseline. Encourage participants to retake the diagnostic in 30 days to measure growth.",style:{paddingBottom:"80px"}})})(),c.jsxs("section",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",style:{breakInside:"avoid"},children:[c.jsx("h2",{className:"mb-1 text-lg font-bold text-foreground",children:"Recommendations"}),c.jsx("p",{className:"mb-4 text-sm italic",style:{color:"#6B7280"},children:"Cohort-level intervention moves for your facilitators and participants."}),b&&!m?c.jsx("p",{className:"text-sm italic",style:{color:"#6B7280"},children:"Generating recommendations..."}):m?c.jsx("div",{className:"ai-narrative-text rounded-lg bg-white p-4",style:{borderLeft:"4px solid #FFC100",borderRadius:"8px",whiteSpace:"pre-wrap",color:"#374151",fontSize:"14px",lineHeight:1.7},children:m}):c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"mb-4 text-sm italic text-[#374151]",children:ze.heading}),c.jsx("div",{className:"space-y-3",children:ze.moves.map((me,Le)=>c.jsxs("div",{className:"flex gap-4 rounded-lg bg-white p-4",style:{borderLeft:"4px solid #FFC100",borderRadius:"8px"},children:[c.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[#FFC100] text-sm font-bold text-[#1A1918]",children:Le+1}),c.jsx("p",{className:"text-sm leading-relaxed text-[#374151]",children:me})]},Le))})]}),c.jsx("p",{className:"mt-6 text-sm italic",style:{color:"#6B7280",fontSize:"14px"},children:"Every score on this report has room to grow. The cohorts that win in the AI age are the ones that measure, act, and iterate. This report is not a grade. It is a starting point."})]}),c.jsx("div",{className:"flex justify-center pt-4",children:c.jsx(Ac,{onClick:()=>i(),isGenerating:r})}),c.jsxs("footer",{className:"mt-12 border-t border-[#E5E7EB] pt-6 pb-4 text-center print:hidden",children:[c.jsxs("p",{style:{fontSize:"12px",color:"#6B7280"},children:[c.jsx("a",{href:"https://flipfactor.ai",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"flipfactor.ai"})," | Contact us: ",c.jsx("a",{href:"mailto:FlipFactor™@flipwork.ai",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"FlipFactor™@flipwork.ai"})," | © 2026 FlipWork. All rights reserved."]}),c.jsx("p",{style:{fontSize:"10px",color:"#9CA3AF",fontStyle:"italic",marginTop:"6px"},children:"This report is for professional development purposes only and does not constitute career, legal, or psychological advice."}),c.jsxs("p",{style:{fontSize:"10px",color:"#9CA3AF",fontStyle:"italic",marginTop:"4px"},children:["The FlipFactor™ framework, assessment questions, archetypes, scoring methodology, and all associated content are the proprietary intellectual property of ",c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"FlipWork, Inc."})," Unauthorized reproduction, distribution, or replication in any form is prohibited."]})]})]})]})},ODe="/assets/hero-banner-CJ7yjMBC.png",jDe="https://calendar.google.com/calendar/appointments/schedules/AcZssZ3NPBNCiujKzPl5T3UOoq1VxYzJz-x70VlCqMGm3f6l7hvX8RBK8tg8STp4qAcp-2OAQvV3pxlA",PDe=()=>c.jsxs("div",{className:"min-h-screen bg-white",style:{fontFamily:"Outfit, sans-serif"},children:[c.jsxs("header",{className:"flex items-center justify-between px-6 py-5 md:px-12",style:{backgroundColor:"#000000"},children:[c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",children:c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"w-auto",style:{height:"52px",flexShrink:0}})}),c.jsxs("div",{className:"flex items-center gap-6",children:[c.jsx(lu,{to:"/diagnostic",className:"text-sm font-medium",style:{color:"#FFC100"},children:"Take the Diagnostic"}),c.jsx(lu,{to:"/results",className:"text-sm font-medium",style:{color:"#FFC100"},children:"View My Results"})]})]}),c.jsxs("section",{className:"relative w-full min-h-[580px] md:min-
630h-[620px] h-[55vw] max-h-[720px] overflow-hidden",children:[c.jsx("img",{src:ODe,alt:"Diverse people collaborating",className:"absolute inset-0 w-full h-full object-cover",style:{objectPosition:"center center"}}),c.jsx("div",{className:"absolute inset-0",style:{background:"rgba(0, 0, 0, 0.45)"}}),c.jsxs("div",{className:"relative z-10 flex flex-col items-center justify-center h-full px-6 text-center",children:[c.jsx("h2",{className:"max-w-[900px] md:whitespace-nowrap md:text-[67px] text-[28px]",style:{fontWeight:700,color:"#FFFFFF",letterSpacing:"-0.5px",lineHeight:1.15},children:"Your AI Readiness Starts Here"}),c.jsx("p",{className:"mt-4",style:{fontSize:"26px",fontWeight:400,color:"rgba(255, 255, 255, 0.9)"},children:"FlipFactor™. Find Your Agentic-Human Advantage."})]})]}),c.jsx("div",{className:"w-full",style:{height:"2px",backgroundColor:"#FFC100"}}),c.jsxs("section",{className:"px-6 py-16 md:py-24 text-center",children:[c.jsxs("h1",{className:"mx-auto max-w-4xl leading-tight md:text-[52px] text-[22px]",style:{fontWeight:700,color:"#1A1918"},children:["Know Where You Stand with AI.",c.jsx("br",{}),c.jsx("span",{style:{color:"#FFC100"},children:"Then Do Something About It."})]}),c.jsxs("p",{className:"mx-auto mt-6 max-w-[680px]",style:{fontSize:"20px",color:"#6B7280",lineHeight:1.6},children:["FlipFactor™ is FlipWork's proprietary AI readiness diagnostic.",c.jsx("br",{}),"It measures where you stand across two dimensions of AI readiness, places you in one of four archetypes, and gives you a personalized action plan for what to do next."]}),c.jsxs("div",{className:"mx-auto mt-12 flex max-w-3xl flex-col items-center gap-6 md:flex-row md:justify-center md:gap-0",children:[c.jsxs("div",{className:"flex-1 text-center px-6",children:[c.jsx("p",{style:{fontSize:"15px",color:"#1A1918",fontWeight:500},children:"86% of employers expect AI to transform their business by 2030"}),c.jsx("p",{style:{fontSize:"11px",color:"#9CA3AF"},className:"mt-1",children:"Source: World Economic Forum"})]}),c.jsx("div",{className:"hidden md:block w-px self-stretch",style:{backgroundColor:"#FFC100"}}),c.jsx("div",{className:"block md:hidden h-px w-12",style:{backgroundColor:"#FFC100"}}),c.jsxs("div",{className:"flex-1 text-center px-6",children:[c.jsx("p",{style:{fontSize:"15px",color:"#1A1918",fontWeight:500},children:"Only 1% of executives describe their AI rollouts as mature"}),c.jsx("p",{style:{fontSize:"11px",color:"#9CA3AF"},className:"mt-1",children:"Source: McKinsey"})]})]}),c.jsx("div",{className:"mx-auto mt-12 max-w-3xl h-px",style:{backgroundColor:"#FFC100"}})]}),c.jsxs("section",{className:"px-6 py-16 md:py-20",children:[c.jsx("h2",{className:"text-center mb-4",style:{fontSize:"32px",fontWeight:700,color:"#1A1918"},children:"Two Dimensions. Four Archetypes. One Clear Path Forward."}),c.jsx("p",{className:"text-center italic",style:{fontSize:"22px",color:"#6B7280",marginTop:"8px",marginBottom:"28px"},children:"Where do you land?"}),c.jsxs("div",{className:"mx-auto max-w-5xl grid gap-10 md:grid-cols-2 items-start",children:[c.jsxs("div",{className:"flex flex-col gap-6",children:[c.jsxs("div",{className:"rounded-lg p-5",style:{borderLeft:"4px solid #FFC100",border:"1px solid #E5E7EB",borderLeftWidth:"4px",borderLeftColor:"#FFC100"},children:[c.jsx("p",{className:"mb-2 text-xs font-bold uppercase tracking-wide",style:{color:"#FFC100",fontSize:"13px"},children:"Agentic Velocity (AV)"}),c.jsx("p",{style:{fontSize:"15px",color:"#374151",lineHeight:1.65},children:"How actively you experiment with and act on AI in your daily work. High AV means you are moving fast with AI tools. Low AV means hesitation or lack of experimentation."})]}),c.jsxs("div",{className:"rounded-lg p-5",style:{borderLeft:"4px solid #FFC100",border:"1px solid #E5E7EB",borderLeftWidth:"4px",borderLeftColor:"#FFC100"},children:[c.jsx("p",{className:"mb-2 text-xs font-bold uppercase tracking-wide",style:{color:"#FFC100",fontSize:"13px"},children:"Enterprise Symbiosis (ES)"}),c.jsx("p",{style:{fontSize:"15px",color:"#374151",lineHeight:1.65},children:"How well AI is integrated into the systems, culture, and workflows around you. High ES means your work environment enables AI adoption. Low ES means structural or cultural barriers are slowing you down."})]})]}),c.jsxs("div",{className:"flex flex-col items-start overflow-x-auto w-full",children:[c.jsxs("div",{className:"flex flex-row items-center",style:{gap:"12px"},children:[c.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",style:{width:"24px",height:"440px"},children:c.jsx("span",{style:{transform:"rotate(-90deg)",fontSize:"13px",color:"#6B7280",whiteSpace:"nowrap",display:"block"},children:"Enterprise Symbiosis (ES)"})}),c.jsxs("div",{className:"relative aspect-square flex-shrink-0",style:{width:"440px",height:"440px",maxWidth:"440px"},children:[c.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[c.jsx("div",{className:"absolute left-0 right-0 h-[2px]",style:{backgroundColor:"#FFC100",top:"50%"}}),c.jsx("div",{className:"absolute top-0 bottom-0 w-[2px]",style:{backgroundColor:"#FFC100",left:"50%"}})]}),c.jsxs("div",{className:"absolute flex flex-col items-start text-left",style:{left:"3%",top:"10px",maxWidth:"44%",paddingRight:"8px"},children:[c.jsx("span",{className:"font-bold",style:{fontSize:"12px",color:"#1A1918"},children:"GUARDIAN"}),c.jsx("span",{className:"italic",style:{fontSize:"11px",color:"#6B7280",lineHeight:1.45,marginTop:"4px"},children:"Works in a supportive environment but hesitates to act without greater clarity, confidence, or permission."})]}),c.jsxs("div",{className:"absolute flex flex-col items-start text-left",style:{right:"3%",top:"10px",maxWidth:"44%",paddingLeft:"8px"},children:[c.jsx("span",{className:"font-bold",style:{fontSize:"12px",color:"#1A1918"},children:"ORCHESTRATOR"}),c.jsx("span",{className:"italic",style:{fontSize:"11px",color:"#6B7280",lineHeight:1.45,marginTop:"4px"},children:"Moves confidently with AI in an environment that supports, aligns, and scales new ways of working."})]}),c.jsxs("div",{className:"absolute flex flex-col items-start text-left",style:{left:"3%",top:"calc(50% + 12px)",maxWidth:"44%",paddingRight:"8px"},children:[c.jsx("span",{className:"font-bold",style:{fontSize:"12px",color:"#1A1918"},children:"EXPLORER"}),c.jsx("span",{className:"italic",style:{fontSize:"11px",color:"#6B7280",lineHeight:1.45,marginTop:"4px"},children:"Developing confidence with AI but has not yet built consistent habits or strong organizational support."})]}),c.jsxs("div",{className:"absolute flex flex-col items-start text-left",style:{right:"3%",top:"calc(50% + 12px)",maxWidth:"44%",paddingLeft:"8px"},children:[c.jsx("span",{className:"font-bold",style:{fontSize:"12px",color:"#1A1918"},children:"PIONEER"}),c.jsx("span",{className:"italic",style:{fontSize:"11px",color:"#6B7280",lineHeight:1.45,marginTop:"4px"},children:"Moves quickly with AI and experiments ahead of the organization, creating momentum and new possibilities."})]})]})]}),c.jsxs("div",{className:"flex flex-row mt-3",style:{gap:"12px"},children:[c.jsx("div",{style:{width:"24px",flexShrink:0}}),c.jsx("span",{className:"text-center",style:{width:"440px",fontSize:"13px",color:"#6B7280"},children:"Agentic Velocity (AV)"})]})]})]})]}),c.jsxs("section",{className:"px-6 py-16 md:py-20",style:{backgroundColor:"#F9FAFB"},children:[c.jsx("h2",{className:"text-center mb-14",style:{fontSize:"32px",fontWeight:700,color:"#1A1918"},children:"How It Works"}),c.jsx("div",{className:"mx-auto max-w-5xl grid gap-10 md:grid-cols-3 text-center",children:[{step:"1",title:"Take the Diagnostic",body:"Answer 29 questions about how you work with AI today. Honest answers give you the most useful results."},{step:"2",title:"Get Your Report",body:"Check your email for a link to your personalized AI Readiness Report. No waiting. No interpretation needed."},{step:"3",title:"Take Action",body:"Your report gives you three specific next moves based on exactly where you land. Start there."}].map(e=>c.jsxs("div",{className:"flex flex-col items-center",children:[c.jsx("div",{className:"mb-5 flex h-12 w-12 items-center justify-center rounded-full text-white font-bold",style:{backgroundColor:"#FFC100",fontSize:"18px"},children:e.step}),c.jsx("h3",{className:"mb-3",style:{fontSize:"18px",fontWeight:700,color:"#1A1918"},children:e.title}),c.jsx("p",{style:{fontSize:"15px",color:"#6B7280",lineHeight:1.65},children:e.body})]},e.step))})]}),c.jsxs("section",{className:"px-6 py-16 md:py-20 text-center",children:[c.jsx("h2",{className:"mx-auto max-w-3xl md:text-[32px] text-[24px]",style:{fontWeight:700,color:"#1A1918",lineHeight:1.3},children:"FlipFactor™ is built on one belief. AI does not replace human potential. It multiplies it."}),c.jsx("p",{className:"mx-auto mt-8 mb-8 md:text-[26px] text-[18px]",style:{color:"#FFC100",lineHeight:1.5,fontWeight:700},children:"People² = (Human Creativity + Contextual Wisdom) x Agentic Scale"}),c.jsxs("p",{className:"mx-auto max-w-2xl",style:{fontSize:"15px",color:"#6B7280",lineHeight:1.65},children:["Find your path to Agentic-Human Reinvention™.",c.jsx("br",{}),"It starts with your FlipFactor™."]})]}),c.jsxs("section",{className:"px-6 py-16 md:py-20",style:{backgroundColor:"#F9FAFB"},children:[c.jsx("h2",{className:"text-center mb-12",style:{fontSize:"32px",fontWeight:700,color:"#1A1918"},children:"Take the Diagnostic"}),c.jsxs("div",{className:"mx-auto max-w-5xl grid gap-8 md:grid-cols-2",children:[c.jsxs("div",{className:"rounded-xl p-8",style:{border:"2px s
630olid #FFC100",boxShadow:"0 1px 3px rgba(0,0,0,0.06)"},children:[c.jsx("p",{className:"mb-3 text-xs font-bold uppercase tracking-wide",style:{color:"#FFC100",fontSize:"12px"},children:"For Individuals"}),c.jsx("h3",{className:"mb-3",style:{fontSize:"22px",fontWeight:700,color:"#1A1918"},children:"Take the FlipFactor™ Diagnostic"}),c.jsx("p",{className:"mb-6",style:{fontSize:"15px",color:"#6B7280",lineHeight:1.65},children:"You work independently or want to understand your own AI readiness. Take the Solo Individual diagnostic and get your personalized AI Readiness Report in minutes."}),c.jsx(lu,{to:"/diagnostic/individual",className:"block w-full rounded-lg py-3 text-center font-semibold text-white",style:{backgroundColor:"#FFC100",fontSize:"15px"},children:"Start My Diagnostic"}),c.jsx("p",{className:"mt-3 text-center",style:{fontSize:"13px",color:"#9CA3AF"},children:"Takes about 10 minutes. Free."})]}),c.jsxs("div",{className:"rounded-xl p-8",style:{border:"2px solid #FFC100",boxShadow:"0 1px 3px rgba(0,0,0,0.06)"},children:[c.jsx("p",{className:"mb-3 text-xs font-bold uppercase tracking-wide",style:{color:"#FFC100",fontSize:"12px"},children:"For Organizations"}),c.jsx("h3",{className:"mb-3",style:{fontSize:"22px",fontWeight:700,color:"#1A1918"},children:"Bring FlipFactor™ to Your Team"}),c.jsx("p",{className:"mb-4",style:{fontSize:"15px",color:"#6B7280",lineHeight:1.65},children:"FlipFactor™ is available for corporate teams, departments, and enterprise-wide rollouts. Includes Individual, Leader, and Team Diagnostics with strategic insights and implementation support."}),c.jsx("a",{href:jDe,target:"_blank",rel:"noopener noreferrer",className:"block w-full rounded-lg py-3 text-center font-semibold text-white",style:{backgroundColor:"#FFC100",fontSize:"15px"},children:"Schedule a Demo"}),c.jsx("p",{className:"mt-3 text-center",style:{fontSize:"13px",color:"#9CA3AF"},children:"We respond within 1 business day."})]})]})]}),c.jsxs("section",{className:"px-6 py-16 md:py-20",children:[c.jsx("h2",{className:"text-center mb-12",style:{fontSize:"32px",fontWeight:700,color:"#1A1918"},children:"What Leaders Are Saying About FlipWork"}),c.jsx("div",{className:"mx-auto max-w-6xl grid gap-8 md:grid-cols-3",children:[{quote:"We went from 15% of our team using AI to 82% in 90 days, boosting our speed and productivity. FlipWork rewired how we think, work, and collaborate.",attribution:"CEO, Mid-Market Services Firm"},{quote:"We shifted from viewing AI as a technical tool to treating it as a trusted teammate. Our productivity and decision-making speed increased dramatically.",attribution:"Operating Partner, PE Firm"},{quote:"Leverage is leadership. Delegation and using tools aren't cheating. That's how we work smarter.",attribution:"CHRO, Fortune 500 Tech Company"}].map((e,t)=>c.jsxs("div",{className:"rounded-xl p-6",style:{border:"1px solid #E5E7EB"},children:[c.jsxs("p",{className:"mb-6 italic",style:{fontSize:"15px",color:"#374151",lineHeight:1.7},children:['"',e.quote,'"']}),c.jsx("p",{style:{fontSize:"14px",color:"#6B7280",fontWeight:500},children:e.attribution})]},t))})]}),c.jsxs("footer",{className:"px-6 py-12 text-center",style:{backgroundColor:"#000000"},children:[c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",children:c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"mx-auto mb-6 w-auto",style:{height:"52px"}})}),c.jsx("div",{className:"mx-auto mb-8 max-w-md h-px",style:{backgroundColor:"#FFC100"}}),c.jsxs("p",{style:{fontSize:"14px",color:"#E5E7EB"},className:"mb-2",children:["FlipFactor™ is a product of"," ",c.jsx("a",{href:"https://flipwork.ai",style:{color:"#FFC100"},className:"font-medium",children:"FlipWork"}),"."]}),c.jsxs("p",{style:{fontSize:"14px",color:"#E5E7EB"},className:"mb-2",children:["Questions?"," ",c.jsx("a",{href:"mailto:[email protected]",style:{color:"#FFC100"},className:"font-medium",children:"[email protected]"})]}),c.jsxs("p",{style:{fontSize:"14px",color:"#E5E7EB"},className:"mb-4",children:["Already took the diagnostic?"," ",c.jsx(lu,{to:"/results",style:{color:"#FFC100"},className:"font-medium",children:"View your results here"}),"."]}),c.jsxs("p",{style:{fontSize:"12px",color:"#D1D5DB"},children:[c.jsx("a",{href:"https://flipfactor.ai",target:"_blank",rel:"noopener noreferrer",style:{color:"#D1D5DB"},className:"footer-link",children:"flipfactor.ai"})," | Contact us: ",c.jsx("a",{href:"mailto:FlipFactor™@flipwork.ai",target:"_blank",rel:"noopener noreferrer",style:{color:"#D1D5DB"},className:"footer-link",children:"FlipFactor™@flipwork.ai"})," | ",c.jsx("a",{href:"https://www.flipwork.ai/privacy",target:"_blank",rel:"noopener noreferrer",style:{color:"#D1D5DB"},className:"footer-link",children:"Privacy Policy"})," | ",c.jsx("a",{href:"https://www.flipwork.ai/termsofservice",target:"_blank",rel:"noopener noreferrer",style:{color:"#D1D5DB"},className:"footer-link",children:"Terms of Service"})," | © 2026 FlipWork. All rights reserved."]}
630),c.jsxs("p",{style:{fontSize:"10px",color:"#9CA3AF",fontStyle:"italic",marginTop:"4px"},children:["The FlipFactor™ framework, diagnostic questions, archetypes, scoring methodology, and all associated content are the proprietary intellectual property of ",c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",style:{color:"#9CA3AF"},className:"footer-link",children:"FlipWork, Inc."})," Unauthorized reproduction, distribution, or replication in any form is prohibited."]})]})]});function DN(){const[e,t]=S.useState("loading"),[r,n]=S.useState(null),i=S.useRef(!1);return S.useEffect(()=>{let a=!1;async function s(A){if(a)return;if(!A){n(null),t("unauthenticated");return}n(A);const{data:u}=await Tt.rpc("has_role",{_user_id:A.id,_role:"admin"});a||t(u?"authorized":"unauthorized")}Tt.auth.getSession().then(({data:{session:A}})=>{a||(i.current=!0,s((A==null?void 0:A.user)??null))});const{data:{subscription:l}}=Tt.auth.onAuthStateChange((A,u)=>{i.current&&s((u==null?void 0:u.user)??null)});return()=>{a=!0,l.unsubscribe()}},[]),{state:e,user:r,signOut:async()=>{await Tt.auth.signOut()}}}function ww(e,t){const r=e.find(n=>n.key.endsWith(t)||n.key===t);return r?r.score:null}function tS(e){return e!==null&&(e===1||e===2||e<=2)}function UI(e,t,r,n){const i=t.length>0&&t[0].key.startsWith("LA_")?"LA":t.length>0&&t[0].key.startsWith("SIA_")?"SIA":"IA",o=ww(t,`${i}_08_ES`),a=ww(t,`${i}_14_ES`),s=ww(t,`${i}_15_ES`),l=[o,a,s].filter(tS).length;if(e==="ORCHESTRATOR"&&l>=2)return"CONSTRAINED_ORCHESTRATOR";if(e==="PIONEER"&&l>=2)return"CONSTRAINED_PIONEER";if(e==="GUARDIAN"){const A=ww(t,`${i}_07_AV`);if(tS(A))return"BURNED_OUT_GUARDIAN"}if(e==="EXPLORER"){const A=t.filter(h=>tS(h.score)),u=A.some(h=>h.dimension==="AV"),d=A.some(h=>h.dimension==="ES");if(A.length>=5&&u&&d)return"HOLLOW_EXPLORER"}return r>=3.85&&r<=4.15&&n>=3.85&&n<=4.15?"NEAR_THRESHOLD":null}const LDe={CONSTRAINED_ORCHESTRATOR:{prepend:null,body:`Your scores reveal something important. Your personal instincts around AI are ahead of where your environment currently allows you to operate. You are experimenting, you are effective when you use AI, and you understand its value. But several of your lowest scores point to something beyond your individual behavior. Autonomy, psychological safety, and the freedom to use your own judgment are constrained right now, and that is showing up in your results.
631
632This is not a readiness gap. It is a context gap.
633
634Reaching Orchestrator is not the destination. It is the entry point to a higher level of impact. But the standard path forward assumes you have organizational freedom to build, share, and operate on your own terms. Your data says that is not fully true yet. Your next moves are not about learning more AI skills. They are about creating the conditions, inside your organization or on your own terms, where your actual capabilities can operate freely. The work is environmental, not individual.
635
636Every score on this report has room to grow. Your job is not to be perfect. It is to be further along than you were. This report is not a grade. It is a starting point. The only direction from here is onwards and upwards.`},CONSTRAINED_PIONEER:{prepend:null,body:`You are moving fast with AI on your own. That initiative is real and it is showing in your scores. But your data also reveals a friction point that individual effort alone cannot solve. The environment around you, whether that is your organization, your clients, or the systems you work within, is not keeping pace with where you are going. You are building capability in a context that is not yet designed to support it.
637
638The Pioneer who cannot share, cannot operate freely, and cannot use their own judgment is doing double the work for half the return.
639
640Your next move is not to experiment more. It is to make your experimentation visible and defensible so the environment around you starts to shift. The frontier you are pushing requires you to bring others along, not just to advance it alone.`},BURNED_OUT_GUARDIAN:{prepend:null,body:`Your scores show something that deserves to be named directly. You are not avoiding AI because you are resistant to change. You are overwhelmed by the pace of it. That is a different problem and it requires a different response.
641
642The Guardian archetype is often described as cautious. But caution and exhaustion are not the same thing. What your data actually shows is someone trying to keep up with a pace of change that is genuinely unsustainable, in an environment that may not be giving you the support or the permission to slow down and learn well.
643
644The right move here is not to push harder. It is to go narrower. One tool. One workflow. One win. Depth before breadth. You do not need to track every AI development happening in your field. You need one place where AI is working for you so well that the pace stops feeling like a threat.`},HOLLOW_EXPLORER:{prepend:null,body:`Your scores place you at the earliest stage of the AI readiness journey. Before anything else, that is worth saying clearly: this is a starting point, not a verdict. Every person on this diagnostic started somewhere, and the data exists to show you exactly where to focus, not to define your ceiling.
645
646What your scores cannot tell us is why you are here. For some people, a score like this reflects a work environment that has not yet made AI adoption possible. For others, it reflects a genuine moment of not yet having started. Both are valid. Both have a different path forward.
647
648What matters now is one thing: picking the smallest possible move and making it. Not a plan. Not a course. One thing, this week, that puts AI 
648in your hands for a real task. That is how this starts.`},NEAR_THRESHOLD:{prepend:"Your scores place you at the boundary between archetypes. A small shift in either dimension would move your profile into a different quadrant. That is not a weakness in your results. It means you are in transition, and the diagnostic is catching you mid-move. Read the interpretation below with that context in mind. The archetype describes where you are trending, not where you are locked in.",body:null}},UDe={CONSTRAINED_ORCHESTRATOR:{heading:"Your next moves are about environment, not skill.",moves:["Name the specific constraint holding you back. Is it a client expectation, a platform restriction, an internal policy, or your own uncertainty about what is allowed? You cannot address what you have not defined. Write it down this week in one sentence.","Find one low-risk context where you can use AI on your own terms without asking permission. Build one proof of concept there. Results create permission faster than requests do. One small visible win changes the conversation.","Identify one peer or leader in your organization who is already using AI more freely. Study how they framed it internally. Your path to autonomy likely runs through how you position the work, not just doing the work itself."]},CONSTRAINED_PIONEER:{heading:"Your next moves are about making your momentum visible and bringing others with you.",moves:["Document one AI workflow you have built in enough detail that someone else could follow it. You do not need to share it yet. Just make it shareable. That act alone changes how you think about what you are building.","Identify one stakeholder, a manager, a client, or a collaborator, who would benefit from seeing a result of your AI work. Show them the outcome, not the process. One visible result builds more trust than ten explanations.","Ask one direct question to the person who oversees your work: what would it look like if our team could do what I just showed you? You are not asking for permission. You are opening a door."]},BURNED_OUT_GUARDIAN:{heading:"Your next moves are about depth, not breadth.",moves:["Pick one trusted source for AI news in your field and unsubscribe or mute everything else for 30 days. Breadth without depth creates its own kind of exhaustion. You need signal, not noise.","Identify the single most time-consuming repetitive task in your week. Spend 30 minutes this week only on finding whether an AI tool exists specifically for that task. One problem, one tool, one test. That is the full scope of this move.","Tell one person you trust that the pace of AI change is weighing on you. Not to vent. To name it out loud. Naming it reduces its power and often opens a conversation about how others in your context are handling it."]},HOLLOW_EXPLORER:{heading:"Your next move is one thing, tried once, this week.",moves:["Do not try to learn AI broadly. Pick the single task you do most often that feels repetitive or slow. Search for an AI tool built specifically for that task. Spend 20 minutes testing it this week. That is the entire assignment.","Find one person in your immediate network who talks openly about using AI in their work. Ask them one question: what is the one thing you use AI for every single day? You do not need a roadmap. You need a conversation.","Give yourself permission to be bad at this for 90 days. The people who compound AI fluency fastest are not the ones who get it right immediately. They are the ones who stay curious through the dead ends. You are at day one. That is the right place to be."]}},RDe={CONSTRAINED_ORCHESTRATOR:{whatYouBring:"You are actively experimenting with AI and your scores confirm you are doing it consistently. But your environment is not fully supporting what you are capable of. The gap between your instincts and your current conditions is where your growth work lives.",yourNextMove:"Your next move is environmental. Identify the single constraint holding back your AI autonomy and name it in one sentence this week.",archetypeHeroDescription:"You have the instincts and the capability of an Orchestrator. But your environment is constraining how fully you can operate. You are not limited by skill. You are limited by context. That is a solvable problem."},CONSTRAINED_PIONEER:{whatYouBring:"You are moving fast with AI and your initiative is showing in your scores. The opportunity in front of you is not more experimentation. It is bringing others along so your momentum becomes organizational momentum, not just personal momentum.",yourNextMove:"Your next move is a conversation, not a workaround. Find one stakeholder who needs to understand what you are building and show them a result this week.",archetypeHeroDescription:"You are pushing the frontier with genuine capability. The most valuable thing you can do right now is not experiment more. It is help the people and systems around you catch up to where you already are. That is how individual momentum becomes organizational change."},BURNED_OUT_GUARDIAN:{whatYouBring:"You understand AI's value but the pace of change is weighing on you. That is not resistance. That is a signal worth listening to. Your work right now is not about keeping up with every new AI development. It is about going deep on one thing that actually works for you.",yourNextMove:"Your next move is narrowing. Pick one tool for one task and go deep. Stop tracking the field broadly for 30 days.",archetypeHeroDescription:"Your scores reflect someone who understands what is at stake with AI but is running at an unsustainable pace. This is not a readiness failure. It is a sustainability signal. Narrowing your focus is the highest-leverage move available to you right now."},HOLLOW_EXPLORER:{whatYouBring:"Your diagnostic results show you are in the earliest stage of AI adoption. That is not a gap. It is an opening. The people who grow fastest from here are not the ones who know the most. They are the ones who start with one thing and stay curious.",yourNextMove:"Your next move is one test. Pick your most repetitive task and spend 20 minutes f
648inding an AI tool built for exactly that. That is the entire assignment.",archetypeHeroDescription:"Your diagnostic results show you are in the earliest stage of AI adoption. Every Orchestrator, Pioneer, and Guardian on this platform started here. The diagnostic is not a verdict. It is a map. Your only job is to take one step."},NEAR_THRESHOLD:{whatYouBring:"You are in active transition across two dimensions of AI readiness. Your scores place you between archetypes, which means the diagnostic is catching you mid-move. That is a meaningful place to be.",yourNextMove:"Your next move is one deliberate action in either dimension. A small shift right now compounds faster than you expect.",archetypeHeroDescription:"Your scores place you at the intersection of two archetypes. You are in transition. The label below describes your current trajectory, not a fixed state. A small deliberate move in either dimension will clarify where you are headed."}};function RI(e){if(!e)return{prependParagraph:null,replaceBody:null,replaceMoves:null,whatYouBring:null,yourNextMove:null,archetypeHeroDescription:null};const t=LDe[e],r=RDe[e];return{prependParagraph:t.prepend,replaceBody:t.body,replaceMoves:e!=="NEAR_THRESHOLD"?UDe[e]:null,whatYouBring:r.whatYouBring,yourNextMove:r.yourNextMove,archetypeHeroDescription:r.archetypeHeroDescription}}const fs=({children:e})=>{var i;const t=gc(),n=((i=pc().state)==null?void 0:i.email)||"";return c.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[c.jsxs("nav",{className:"dashboard-nav flex items-center justify-between px-6 py-4",children:[c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",children:c.jsx("img",{src:Bn,alt:"FlipWork logo",className:"h-8 w-auto"})}),c.jsx("span",{className:"text-sm font-medium text-foreground",children:"FlipFactor™ | AI Readiness Report"}),c.jsx("span",{className:"text-sm text-muted-foreground",children:n})]}),c.jsx("div",{className:"dashboard-gold-rule h-0.5 w-full bg-primary"}),c.jsxs("div",{className:"flex flex-1 flex-col px-4 pb-8",children:[e,c.jsx("div",{className:"back-to-login mt-8 text-center",children:c.jsx("button",{onClick:()=>t("/results"),className:"text-sm text-muted-foreground underline underline-offset-4 hover:text-foreground",children:"← Back to login"})})]})]})},DDe="1ddz-kxWUSkQbutS_eyu-DOGg6r2b2ABIHA8FgBg0FBI";async function QN(e){var l;const t=`https://docs.google.com/spreadsheets/d/${DDe}/gviz/tq?tqx=out:json&sheet=${encodeURIComponent(e)}`,i=(await(await fetch(t)).text()).match(/google\.visualization\.Query\.setResponse\(([\s\S]*)\);?/);if(!i||!i[1])throw new Error(`Failed to parse response for tab: ${e}`);const o=JSON.parse(i[1]),a=o.table.cols.map(A=>(A.label||"").trim()),s=[];for(const A of o.table.rows){const u={};for(let d=0;d<a.length;d++){const h=(l=A.c)==null?void 0:l[d];u[a[d]]=(h==null?void 0:h.v)!=null?String(h.v):""}s.push(u)}return s}function ys(e){return e.toString().toLowerCase().trim()}function Uf(e){const t=e.match(/^Date\((\d+),(\d+),(\d+)/);return t?new Date(parseInt(t[1]),parseInt(t[2]),parseInt(t[3])):new Date(e)}async function o1(e,t){if(!t)throw new Error("No source tab specified");let r=await QN(t);t==="SOLO_Individual_Staging"&&(r=await RN(r));const n=ys(e),i=r.filter(l=>l.Email_Entry&&l.Email_Entry!=="xxxxx"&&l.Email_Entry.includes("@")&&ys(l.Email_Entry)===n);if(i.length===0)throw new Error("No records found for this email.");const o=[...i].sort((l,A)=>Uf(l.Submitted_At).getTime()-Uf(A.Submitted_At).getTime()),a=o[0],s=o[o.length-1];return{baseline:a,current:s,allRecords:o,hasMultipleRounds:o.length>1}}async function QDe(e){const t=await QN("Individual_Staging"),r=ys(e),i=[...t.filter(a=>a.Email_Entry&&a.Email_Entry!=="xxxxx"&&a.Email_Entry.includes("@")&&a.Manager_Email_Link&&ys(a.Manager_Email_Link)===r)].sort((a,s)=>Uf(a.Submitted_At).getTime()-Uf(s.Submitted_At).getTime()),o=new Map;for(const a of i){const s=ys(a.Email_Entry);o.has(s)||o.set(s,[]),o.get(s).push(a)}return Array.from(o.values()).map(a=>({baseline:a[0],current:a[a.length-1],hasMultipleRounds:a.length>1}))}async function MDe(e,t){const r=await QN("Individual_Staging"),n=ys(e),i=ys(t),a=[...r.filter(l=>l.Email_Entry&&l.Email_Entry!=="xxxxx"&&l.Email_Entry.includes("@")&&ys(l.Email_Entry)!==i&&l.Manager_Email_Link&&ys(l.Manager_Email_Link)===n)].sort((l,A)=>Uf(l.Submitted_At).getTime()-Uf(A.Submitted_At).getTime()),s=new Map;for(const l of a)s.set(ys(l.Email_Entry),l);return Array.from(s.values())}function MD(e){if(!e)return"N/A";const t=e.match(/^Date\((\d+),(\d+),(\d+)/);let r;return t?r=new Date(parseInt(t[1]),parseInt(t[2]),parseInt(t[3])):r=new Date(e),isNaN(r.getTime())?"N/A":r.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function cg({delta:e}){const t=Math.abs(e);return t===0?c.jsx("span",{style:{color:"#9ca3af"},children:"→ 0.00"}):e>0?c.jsxs("span",{style:{color:"#22c55e"},children:["↑ +",t.toFixed(2)]}):c.jsxs("span",{style:{color:"#ef4444"},children:["↓ -",t.toFixed(2)]})}const $D="How actively you experiment with and act on AI in your daily work.",HD="How well AI is integrated into the systems, culture, and workflows around you.",Jz={EXPLORER:"You are in the early stages of AI adoption. While you may be aware of AI tools, you likely feel uncertain about which tools to use or are constrained by a lack of clear guidance and training. Your day-to-day work remains highly manual, and integrating AI feels more like a risky experiment than a reliable productivity driver.",PIONEER:"You are a high-speed innovator operating in a vacuum. You actively use AI to accelerate your personal workflows, but you are likely relying on Shadow AI or workarounds because the organization’s official systems are too slow or restrictive. Your personal efficiency is high, but your innovations are not scaling to benefit the wider team.",GUARDIAN:"You operate in an environment with clear rules, high psychological safety, and good alignment, but your actual day-to-day execution with AI is lagging. You may be waiting for official permission, perfectly polished tools, or formal training before you fully commit to changing how you work. You are safe, but moving too slowly.",ORCHESTRATOR:"You seamlessly integrate AI into your daily work to amplify your unique expertise. You act as a manager of AI agents rather than a manual task executor. Crucially, you share your workflows, operate within secure organizational frameworks, and contribute to the collective intelligence of your team."},$De=new Set(["IA_01_AV","IA_07_AV","IA_11_ES","IA_13_ES","IA_19_AV","IA_20_AV","IA_21_ES","IA_22_AV","IA_27_ES","IA_28_ES","SIA_01_AV","SIA_07_AV","SIA_11_ES","SIA_13_ES","SIA_19_AV","SIA_20_AV","SIA_21_ES","SIA_22_AV","SIA_27_ES","SIA_28_ES"]),HDe=new Set(["SIA_01_AV","SIA_07_AV","SIA_11_ES","SIA_13_ES","SIA_17_AV","SIA_18_AV","SIA_19_AV","SIA_20_AV","SIA_21_ES","SIA_22_AV"]),KDe={solo:{EXPLORER:"You are at the beginning of something real. Most people who end up leading in the AI age did n
648ot start with a plan. They started with one tool, one experiment, one moment where they stopped waiting and tried something. That is exactly where you are. Your job right now is not to become an AI expert. It is to stop treating AI as someone else's territory and start claiming it as yours. The gap between where you are and where you want to be is smaller than it looks. You close it one deliberate experiment at a time.",PIONEER:"You are no longer a beginner, but you have not yet locked in your edge. That is the most important moment in any professional's AI journey. This is where most people coast. They find a handful of tools that work and stop pushing. You are at the threshold where intentional practice becomes compounding advantage. The professionals who pull ahead from here are the ones who stop asking 'does this work?' and start asking 'how do I build this into everything I do?' That question is yours to answer now.",GUARDIAN:"Your caution is not a weakness. It is a professional standard. But it is also a ceiling if you let it become a habit of avoidance rather than a habit of discernment. The professionals who navigate the AI age best are not the fastest adopters. They are the most intentional ones. People who know what they stand for, what they will and will not use AI for, and why. You already have that instinct. Your next move is to let it drive action, not just restraint. Judgment without motion does not compound.",ORCHESTRATOR:"You are operating at a level most professionals have not reached yet. That is not a reason to stop. It is a reason to raise the stakes. The Orchestrator's real work is not using AI well. It is building something that works when you step back. Systems that run. Processes that scale. Knowledge that does not live only in your head. The question for you is no longer 'am I using AI?' It is 'am I building something with it?' That is the shift from skilled to irreplaceable."},individual:{EXPLORER:"You are at the beginning of a shift that is happening across every team and every function. The good news: starting here, with this data, with this report in hand, puts you ahead of the people who are still waiting for someone to tell them where to begin. Your organization is investing in this because the stakes are real. Your next move is one experiment. Not a transformation. Not a strategy. One thing, tried once, this week. That is how every skilled AI practitioner in your organization started.",PIONEER:"You are building real traction. Your scores show that adoption is not just happening around you. You are driving it. The gap between a Pioneer and an Orchestrator is not skills. It is systems. Pioneers use AI well on their own work. Orchestrators build the patterns their teams follow. Your manager and your peers are watching what you do with AI, whether they say so or not. The way you work right now is the template. Make it intentional.",GUARDIAN:"Your instinct to protect quality, security, and integrity is exactly what organizations need as AI accelerates. The risk is not that you are too cautious. The risk is that caution without engagement leaves you without a seat at the table when the decisions get made. The people who shape how AI is used in your organization will be the ones who showed up, asked hard questions, and stayed in the room. That role belongs to people like you, if you choose it.",ORCHESTRATOR:"You are one of the people your organization is going to lean on as AI transforms how work gets done. That comes with real responsibility. Not just to keep performing at a high level, but to bring others with you. The Orchestrators who create the most value are not the ones who hoard their systems. They are the ones who make their methods legible, teachable, and repeatable. Your next level of impact is not personal. It is organizational."},leaderSelf:{EXPLORER:"You are at the starting line of your AI readiness journey as a leader. Your team is watching how you engage with AI right now. Not what you say about it. What you do. One visible experiment from you this week will do more for your team's adoption than any policy or training you could roll out. You do not need to be the most technically skilled person in the room. You need to be the most willing.",PIONEER:"You are moving fast personally. That is real. The question now is whether your speed is creating a gap between you and the people you lead. Pioneers who outpace their teams without bringing them along create fragmentation, not momentum. Your next level of leadership is not about your own AI fluency. It is about making your fluency legible and transferable to the people around you.",GUARDIAN:"Your instinct to protect quality, governance, and integrity is exactly what AI-accelerating organizations need at the leadership level. The risk is not that you are too careful. The risk is that careful without visible engagement reads as resistance to the people you lead. Your team needs to see you in the arena, not just setting the rules for it. The leader who n
648ames the standards and then models working within them is the one who earns the team's trust when the hard AI decisions get made.",ORCHESTRATOR:"You are operating at the frontier of AI readiness as a leader. That comes with a responsibility most high performers underestimate. Your team cannot follow a path they cannot see. The systems you have built, the judgment calls you make, the way you evaluate AI-assisted work — none of that compounds beyond you unless you make it visible and teachable. Your next move is not personal development. It is organizational architecture."}};function VDe(e,t){return KDe[t][e]}const zDe={EXPLORER:{heading:"You are building your AI confidence. Start with what is in front of you.",moves:["Pick one task you do every week that feels repetitive or draining. Spend 20 minutes this week asking an AI tool to do a first draft of it. Do not judge the output. Judge what you learned about how to ask.","Find one independent professional in your field, a peer, a collaborator, someone in a community you belong to, who talks openly about how they use AI. Ask them one question: what is the one tool you would not go back to working without? That answer is your next experiment.","Open a blank document and write down three things you do in your work that you would genuinely love to spend less time on. That list is your AI roadmap. You do not need a course. You need that list and the willingness to try."]},PIONEER:{heading:"You have found your footing. Now build the system.",moves:["Map one of your core workflows end to end, every step from start to delivery. Mark every step where you are still doing something manually that AI could handle. That is your next build sprint. Pick one and automate it this week.","Take the best AI prompt or workflow you have developed in the last month and document it. Write it down as if you were teaching it to a peer. That act alone sharpens your own thinking and starts building your IP as someone who knows how to work this way.","Identify one capability you want to have three months from now that you do not have today. A tool mastered, a workflow built, a service you can offer clients that you cannot offer yet. Set a 90-day target and work backwards. What is the first step this week?"]},GUARDIAN:{heading:"Your judgment is an asset. Put it in motion.",moves:["Choose one AI tool you have been skeptical of and give it a genuine, bounded trial this week. Define what success looks like before you start. Give it a real task, not a test. Evaluate it against your standard and let the evidence, not the instinct, decide.","Write down your personal AI framework. The three things you will always do and the three things you will never do when using AI in your work. Share it with one peer or client. That act sharpens your own thinking and starts building your reputation as someone who uses AI with integrity.","Find one area where your caution has slowed your adoption and ask yourself honestly: is this protecting something real, or is it protecting me from the discomfort of learning something new? That question deserves an honest answer before the next opportunity passes you by."]},ORCHESTRATOR:{heading:"You are operating at a high level. Raise the ceiling.",moves:["Audit your current AI stack. List every tool you use and what it does. Then ask: where are there gaps? Where are tools doing overlapping things? Where could one better tool replace two mediocre ones? Optimize the system, not just the individual tools.","Take one workflow you have built and make it shareable. Document it clearly enough that a peer with less AI experience could run it without your help. That is the difference between a personal advantage and a replicable system, and it is the foundation of a sellable service or product.","Identify the next frontier of your practice. The thing AI cannot yet do well in y
648our specific field, the judgment call that still requires you. That is where to invest your human development right now. The Orchestrator's edge is knowing exactly where the human still wins."]}},WDe={EXPLORER:{heading:"You are building your AI confidence. Start with what is in front of you.",moves:["Pick one task in your current role that feels repetitive or draining. Ask your manager if you can spend 30 minutes this week testing an AI tool on it. You are not proposing a project. You are running a single experiment. That framing makes it easy to say yes.","Find one person on your team or in your organization who talks openly about how they use AI. Ask them one question: what is the one tool or workflow that changed how you work? That conversation is worth more than any course right now.","Write down three things in your current role that take more of your time than they should. That list is your personal AI roadmap. Bring it to your next one-on-one with your manager and ask: which of these would it make sense to try automating first?"]},PIONEER:{heading:"You have found your footing. Now build the system.",moves:["Map one of your core workflows end to end, every step from start to delivery. Show it to your manager or a teammate. Mark every step where AI could reduce manual effort. Propose one specific change. Pioneers who make their process visible get invited into the bigger conversations.","Take the best AI prompt or workflow you have built and share it with your team. Document it simply enough that someone else could use it without asking you. That act positions you as someone who elevates the team, not just themselves, and that visibility matters.","Identify one skill or capability your team or organization needs to develop around AI. Volunteer to lead a brief demo, lunch-and-learn, or even a Slack channel dedicated to sharing what works. Becoming the internal resource is one of the fastest ways to accelerate your own learning while building real organizational capital."]},GUARDIAN:{heading:"Your judgment is an asset. Put it in motion.",moves:["Identify one AI-related policy, governance question, or risk concern at your organization that does not yet have a clear answer. Raise it with your manager, not as a blocker, but as a question worth solving. Guardians who name the right problems become the people organizations trust to lead the governance conversation.","Choose one AI tool your team is already using and offer to run a quality review. You do not need to be the most technical person in the room. You need to be the most rigorous. That role is yours to claim.","Write down your personal framework for how you evaluate AI in your work. What you will use it for, what you will not, and what evidence would change your mind. Share it with your manager. That kind of structured thinking is exactly what organizations need as AI policy gets made."]},ORCHESTRATOR:{heading:"You are operating at a high level. Raise the ceiling.",moves:["Audit the AI tools and workflows you use most. Then ask: which of these could my team be using too? Identify one workflow you have built that would have the highest impact if your teammates adopted it. Build a simple brief and share it with your manager as a team-level opportunity.","Find the person on your team who is furthest behind on AI adoption and offer one concrete thing: a 20-minute walkthrough of one tool you use, with a real task from their work. Orchestrators pull others forward. That is how individual expertise becomes organizational strength.","Identify where AI still fails in your role. The tasks where the output is not good enough, the judgment calls that still require you. Document those gaps and share them with your manager. That intelligence shapes your team's AI strategy. And it positions you as someone thinking at the system level, not just the task level."]}},GDe={EXPLORER:{heading:"You are building your AI confidence. Your next move is finding your people.",moves:["Identify one person on your team or in your organization who talks openly about AI. Ask them how they got started. You do not need a plan. You need a conversation.","The next time you use an AI tool and it works, tell someone. Out loud. That one act starts to shift the culture around you.","Ask your manager one question this week: what would it look like if I used AI to improve one part of my workflow? You are not asking for permission. You are opening a door."]},PIONEER:{heading:"You have personal momentum. Now make it visible to your team.",moves:["Take the most effective AI workflow you have built for yourself and document it simply enough that a team member could follow it without asking you questions. The
648n share it. Your personal system becomes team infrastructure the moment someone else can use it.","In your next team meeting, spend five minutes showing your team one thing you used AI for this week and what you learned from it. Not a polished demo. A real example. Leaders who share their own learning process give their teams permission to learn out loud too.","Identify the team member who is furthest behind on AI adoption. Offer them one thing: a 20-minute walkthrough of one tool you use on a real task from their work. That conversation is worth more than any training program you could assign."]},GUARDIAN:{heading:"Your judgment is your leadership edge. Put it in motion.",moves:["Identify one AI governance question at your organization that does not yet have a clear answer. Raise it with your leadership, not as a blocker, but as a question worth solving. Guardians who name the right problems become the people organizations trust to lead the governance conversation.","Choose one AI tool your team is already using and offer to run a quality review. You do not need to be the most technical person in the room. You need to be the most rigorous. That role is yours to claim.","Write down your personal framework for how you evaluate AI in your work and in your team's work. What you will use it for, what you will not, and what evidence would change your mind. Share it with your own manager. That kind of structured thinking is exactly what organizations need as AI policy gets made at the leadership level."]},ORCHESTRATOR:{heading:"You are operating at a high level. Now build the bridge for everyone else.",moves:["You have the credibility and the capability. Use it. This week, volunteer to lead or co-lead one AI-related initiative, conversation, or cross-team working session. Even informally. Your presence in that room changes the room.","Map out the AI readiness of the three people you lead most directly. Where are the gaps? What is one thing you could do this week to close one of those gaps for one of those people? Orchestrators who pull others forward are the ones organizations build their AI strategy around.","Document one AI workflow you have built that works. Write it down, share it with your team, and make it replicable. Your individual excellence becomes organizational capability when you codify it. That is the difference between a high performer and a force multiplier."]}};function YDe(e,t){return t==="leaderSelf"?GDe[e]:t==="solo"?zDe[e]:WDe[e]}const qDe={IA_01_AV:"I'm uncertain about whether I'm using the right AI tools effectively in my role.",IA_02_AV:"I have clarity on which AI capabilities would meaningfully accelerate my key workflows.",IA_03_AV:"I feel effective when I use AI tools in my daily work.",IA_04_AV:"I'm free to experiment with new AI tools and find what works, even if we hit some dead ends along the way.",IA_05_AV:"AI agents or automation have directly reduced my manual workload in the past 6 months.",IA_06_AV:"My current role involves orchestrating or coordinating multiple AI tools or systems as part of my daily work.",IA_07_AV:"I feel overwhelmed by the pace at which AI tools and technologies are changing in my field.",IA_08_ES:"I share my best AI prompts, tips, and tools to help the whole team work faster.",IA_09_ES:"I trust that my leadership wants AI to help us do more, not to take our jobs.",IA_10_ES:"I feel okay flagging problems or admitting I'm stuck with AI tools without worrying it will make me look bad.",IA_11_ES:"I'm worried that what AI generates is starting to matter more than my actual judgment and expertise.",IA_12_ES:"AI feels like a helpful teammate that makes me better at my job.",IA_13_ES:"AI has accelerated work to such a pace that I'm struggling to keep up, and it's wearing me out.",IA_14_ES:"I have a real say in how AI is used in my area.",IA_15_ES:"My feedback on AI decisions actually shapes what happens next.",IA_16_ES:"If an AI tool gets it wrong, my team focuses on learning why instead of looking for someone to blame.",IA_17_AV:"I spend more of my time directing AI and less time on repetitive, time-consuming tasks.",IA_18_AV:"I actively use AI tools to support my decision-making and accelerate my work.",IA_19_AV:"I'm forced to work around our old systems because we don't have an AI alternative that actually works faster.",IA_20_AV:"Things take longer than they should due to manual steps and multiple layers of sign-off in our process.",IA_21_ES:"I've watched roles disappear because AI took over the work people used to do.",IA_22_AV:"AI saves me time, but those gains are lost because the rest of the workflow is stuck in a slow manual process.",IA_23_ES:"My organization provides me with the tools and training I need to work efficie
648ntly with AI.",IA_24_ES:"My organization regularly communicates the risks and ethics of AI use, not just the benefits.",IA_25_ES:"The rules for AI are clear in our organization. I know what's allowed and what's off-limits.",IA_26_ES:"Our organization uses AI to help us do more, not as a reason to cut our jobs.",IA_27_ES:"Security policies restrict me to a list of approved AI tools, which limits my ability to find better ways to work.",IA_28_ES:"My direct leader/manager isn't on board with AI yet, so I don't feel like I have the green light to use the tools we've been given.",IA_29_ES:"My team has mapped out exactly where AI fits into our workflows to achieve the best outcomes.",SIA_01_AV:"I'm uncertain about whether I'm using the right AI tools effectively in my role.",SIA_02_AV:"I have clarity on which AI capabilities would meaningfully accelerate my key workflows.",SIA_03_AV:"I feel effective when I use AI tools in my daily work.",SIA_04_AV:"I give myself permission to experiment with new AI tools and find what works, even when I hit dead ends along the way.",SIA_05_AV:"AI agents or automation have directly reduced my manual workload in the past 6 months.",SIA_06_AV:"My current role involves orchestrating or coordinating multiple AI tools or systems as part of my daily work.",SIA_07_AV:"I feel overwhelmed by the pace at which AI tools and technologies are changing in my field.",SIA_08_ES:"I actively share my best AI prompts, tips, and tools with my network, clients, or collaborators.",SIA_09_ES:"I believe that embracing AI enhances my value to clients and the market, rather than making my expertise easier to replace.",SIA_10_ES:"I feel okay flagging problems or admitting I'm stuck with AI tools without worrying it will make me look bad.",SIA_11_ES:"I'm worried that what AI generates is starting to matter more than my actual judgment and expertise.",SIA_12_ES:"AI feels like a helpful teammate that makes me better at my job.",SIA_13_ES:"AI has accelerated work to such a pace that I'm struggling to keep up, and it's wearing me out.",SIA_14_ES:"I have full control over how AI is used in my work.",SIA_15_ES:"The way I use AI is shaped by my own judgment, not by pressure from clients, platforms, or market trends telling me how I should work.",SIA_16_ES:"When an AI tool gets it wrong, I focus on understanding why rather than abandoning the tool entirely.",SIA_17_AV:"I spend more of my time directing AI and less time on repetitive, time-consuming tasks.",SIA_18_AV:"I actively use AI tools to augment my decision-making and accelerate my work outcomes.",SIA_19_AV:"I'm forced to work around outdated tools or platforms because I haven't found an AI alternative that actually works faster.",SIA_20_AV:"Things take longer than they should because I'm still relying on manual steps or habits I haven't replaced with faster AI-enabled alternatives.",SIA_21_ES:"I've watched work I used to do go to someone using AI faster and cheaper than I can.",SIA_22_AV:"AI saves me time on some tasks, but those gains get lost because other parts of my workflow are still slow and manual.",SIA_23_ES:"I proactively seek out and invest in the tools and training I need to work efficiently with AI.",SIA_24_ES:"I regularly educate myself on the risks and ethics of AI use, not just the benefits.",SIA_25_ES:"I have a clear personal framework for how I use AI ethically. I know where I draw the line on what I will and won't use it for.",SIA_26_ES:"I use AI to expand what I can deliver and take on, not as a reason to undercharge or devalue my work.",SIA_27_ES:"Concerns about data privacy or security limit which AI tools I'm willing to use, which prevents me from finding better ways to work.",SIA_28_ES:"The clients or collaborators I work with are skeptical of AI, which makes me hesitant to use it openly even when it would improve my work.",SIA_29_ES:"I have mapped out exactly where AI fits into my workflows to achieve the best outcomes."};function bw({label:e}){const r={Critical:{bg:"#FEF2F2",color:"#DC2626"},Developing:{bg:"#FFFBEB",color:"#D97706"},Strong:{bg:"#F0FDF4",color:"#16A34A"},Leading:{bg:"#EFF6FF",color:"#2563EB"}}[e];return c.jsx("span",{style:{backgroundColor:r.bg,color:r.color,borderRadius:"9999px",padding:"2px 10px",fontSize:"12px",fontWeight:600},children:e})}function XDe(e){return e<2.5?"bg-[#FEF2F2]":e<4?"bg-[#FFFBEB]":e<5.3?"bg-[#F0FDF4]":"bg-[#EFF6FF]"}function JDe({score:e}){const t=(e-1)/5*100,r=[{label:"Critical",bg:"#FEF2F2",w:"28%"},{label:"Developing",bg:"#FFFBEB",w:"28%"},{label:"Strong",bg:"#F0FDF4",w:"24%"},{label:"Leading",bg:"#EFF6FF",w:"16%"}];return c.jsx("div",{className:"mt-3",children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute text-sm text-[#FFC100]",style:{left:`${t}%`,top:"-18px",transform:"translateX(-50%)"},children:"▼"}),c.jsx("div",{className:"flex h-5 w-full overflow-hidden rounded",children:r.map(n=>c.jsx("div",{className:"flex items-center justify-center text-[9px] font-medium text-[#6B7280]",style:{backgroundColor:n.bg,width:n.w},children:n.label},n.label))})]})})}const ZDe=[{archetype:"THE GUARDIAN",org:"Org: The Governance Gridlock",anchor:"start",quadrant:"TL"},{archetype:"THE ORCHESTRATOR",org:"Org: The Agentic-Human Enterprise",anchor:"end",quadrant:"TR"},{archetype:"THE EXPLORER",org:"Org: The Uncharted Enterprise",anchor:"start",quadrant:"BL"},{archetype:"THE PIONEER",org:"Org: The Fragmented Frontier",anchor:"end",quadrant:"BR"}];function e6e({baselineAV:e,baselineES:t,currentAV:r,currentES:n,hasMultiple:i,teamPoints:o}){const[a,s]=S.useState(!1),l=360,A=40,u=l-A*2,d=I=>A+(I-1.5)/5*u,h=I=>l-A-(I-1.5)/5*u,f=d(4),g=d(e),p=h(t),v=d(r),m=h(n),w=o&&o.length>0;let b=0,E=0,B=0,_=0,F=0,O=0;if(w){const I=o.map(P=>P.av),T=o.map(P=>P.es);b=I.reduce((P,D)=>P+D,0)/I.length,E=T.reduce((P,D)=>P+D,0)/T.length;const U=Math.min(...I),R=Math.max(...I),G=Math.min(...T),K=Math.max(...T),V=Math.max((R-U)*.15,.2),Q=Math.max((K-G)*.15,.2);B=d(Math.max(1.5,U-V)),F=d(Math.min(6.5,R+V))-B;const q=h(Math.min(6.5,K+Q)),re=h(Math.max(1.5,G-Q));_=q,O=re-q}const k=ZDe.map(I=>{let T,U;return I.quadrant==="TL"?(T=A+12,U=A+20):I.quadrant==="TR"?(T=l-A-12,U=A+20):I.quadrant==="BL"?(T=A+12,U=h(4)+20):(T=l-A-12,U=h(4)+20),{...I,wx:T,wy:U}}),j=[{name:"GUARDIAN",x:A+8,y:A+18},{name:"ORCHESTRATOR",x:f+8,y:A+18},{name:"EXPLORER",x:A+8,y:h(4)+18},{name:"PIONEER",x:f+8,y:h(4)+18}];return c.jsx(Ky,{delayDuration:200,children:c.jsxs("div",{className:"flex flex-col items-center w-full",children:[c.jsxs("div",{className:"relative",style:{minWidth:"400px",minHeight:"400px"},children:[c.jsxs("svg",{viewBox:`0 0 ${l} ${l}`,className:"w-full",style:{fontFamily:"Outfit, sans-serif",minWidth:"400px",minHeight:"400px"},children:[c.jsx("rect",{x:A,y:A,width:u,height:u,fill:"#FAFAFA",stroke:"#E5E7EB"}),c.jsx("rect",{x:A,y:A,width:f-A,height:h(4)-A,fill:"#FFFBEB",fillOpacity:"0.25",stroke:"#D97706",strokeOpacity:"0.2",strokeWidth:"1"}),c.jsx("rect",{x:f,y:A,width:l-A-f,height:h(4)-A,fill:"#F0FDF4",fillOpacity:"0.25",stroke:"#16A34A",strokeOpacity:"0.2",strokeWidth:"1"}),c.jsx("rect",{x:A,y:h(4),width:f-A,height:l-A-h(4),fill:"#FEF2F2",fillOpacity:"0.25",stroke:"#DC2626",strokeOpacity:"0.2",strokeWidth:"1"}),c.jsx("rect",{x:f,y:h(4),width:l-A-f,height:l-A-h(4),fill:"#EFF6FF",fillOpacity:"0.25",stroke:"#2563EB",strokeOpacity:"0.2",strokeWidth:"1"}),c.jsx("line",{x1:f,y1:A,x2:f,y2:l-A,stroke:"#E5E7EB",strokeDasharray:"4"}),c.jsx("line",{x1:A,y1:h(4),x2:l-A,y2:h(4),stroke:"#E5E7EB",strokeDasharray:"4"}),k.map(I=>c.jsxs("g",{children:[c.jsx("text",{x:I.wx,y:I.wy,textAnchor:I.anchor,fill:"#1A1918",fillOpacity:"0.35",fontSize:"9",fontWeight:"700",children:I.archetype}),c.jsx("text",{x:I.wx,y:I.wy+12,textAnchor:I.anchor,fill:"#6B7280",fillOpacity:"0.45",fontSize:"7",fontStyle:"italic",children:I.org})]},I.quadrant)),j.map(I=>c.jsxs(Zk,{children:[c.jsx(eF,{asChild:!0,children:c.jsx("text",{x:I.x,y:I.y,fill:"transparent",fontSize:"10",fontWeight:"600",style:{cursor:"pointer"},children:I.name})}),c.jsx(Cx,{side:"bottom",className:"max-w-xs text-xs leading-relaxed",children:c.jsx("p",{children:Jz[I.name]})})]},I.name)),c.jsx("text",{x:l/2,y:l-6,textAnchor:"middle",fill:"#6B7280",fontSize:"10",children:"Agentic Velocity (AV)"}),c.jsx("text",{x:10,y:l/2,textAnchor:"middle",fill:"#6B7280",fontSize:"10",transform:`rotate(-90,10,${l/2})`,children:"Enterprise Symbiosis (ES)"}),[2,3,4,5,6].map(I=>c.jsxs("g",{children:[c.jsx("text",{x:d(I),y:l-A+16,textAnchor:"middle",fill:"#9CA3AF",fontSize:"9",children:I}),c.jsx("text",{x:A-8,y:h(I)+3,textAnchor:"end",fill:"#9CA3AF",fontSize:"9",children:I})]},I)),w&&c.jsx("ellipse",{cx:B+F/2,cy:_+O/2,rx:F/2,ry:O/2,fill:"rgba(156, 163, 175, 0.15)",stroke:"none"}),w&&c.jsx("circle",{cx:d(b),cy:h(E),r:"5",fill:"transparent",stroke:"#9CA3AF",strokeWidth:"2",strokeDasharray:"3 2",style:{cursor:"pointer"},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)}),i&&c.jsx("line",{x1:g,y1:p,x2:v,y2:m,stroke:"#9CA3AF",strokeWidth:"1.5",markerEnd:"url(#arrowhead)"}),c.jsx("defs",{children:c.jsx("marker",{id:"arrowhead",markerWidth:"8",markerHeight:"6",refX:"8",refY:"3",orient:"auto",children:c.jsx("polygon",{points:"0 0, 8 3, 0 6",fill:"#9CA3AF"})})}),c.jsx("circle",{cx:g,cy:p,r:"7",fill:"#FFC100",stroke:"#1A1918",strokeWidth:"1"}),i&&c.jsx("polygon",{points:KD(v,m,10,5,5),fill:"#FFC100",stroke:"#1A1918",strokeWidth:"1"})]}),w&&a&&c.jsx("div",{className:"absolute pointer-events-none",style:{left:`${d(b)/l*100}%`,top:`${h(E)/l*100}%`,transform:"translate(-50%, -120%)"},children:c.jsxs("div",{style:{background:"white",border:"1px solid #E5E7EB",borderRadius:"6px",padding:"8px 12px",boxShadow:"0 1px 3px rgba(0,0,0,0.1)",fontSize:"12px",color:"#374151",whiteSpace:"nowrap"},children:["Team Average — AV: ",b.toFixed(2)," | ES: ",E.toFixed(2)]})})]}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 mt-3",style:{fontSize:"12px",color:"#6B7280"},children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("svg",{width:"12",height:"12",children:c.jsx("circle",{cx:"6",cy:"6",r:"5",fill:"#FFC100"})}),i?"Day 1":"Your Score"]}),i&&c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",children:c.jsx("polygon",{points:KD(7,7,
6486,3,5),fill:"#FFC100"})}),"Today"]}),w&&c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("svg",{width:"16",height:"12",children:c.jsx("ellipse",{cx:"8",cy:"6",rx:"7",ry:"5",fill:"rgba(156, 163, 175, 0.3)"})}),"Team Spread"]}),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("svg",{width:"12",height:"12",children:c.jsx("circle",{cx:"6",cy:"6",r:"4",fill:"transparent",stroke:"#9CA3AF",strokeWidth:"1.5",strokeDasharray:"2 1.5"})}),"Team Avg"]})]})]}),w&&c.jsxs("div",{className:"flex flex-col items-start mt-2",style:{gap:"4px",fontSize:"12px",color:"#6B7280",fontStyle:"italic"},children:[c.jsx("span",{children:"Your dot shows where you land."}),c.jsx("span",{children:"The shaded region shows where your team is."}),c.jsx("span",{children:"The dashed circle is your team average."})]})]})})}function KD(e,t,r,n,i){const o=[];for(let a=0;a<i*2;a++){const s=Math.PI/i*a-Math.PI/2,l=a%2===0?r:n;o.push(`${e+l*Math.cos(s)},${t+l*Math.sin(s)}`)}return o.join(" ")}const VD=()=>{const e=pc(),t=gc(),{viewEmail:r}=Nx(),n=e.state||{},i=r?decodeURIComponent(r):n.email,a=(r?new URLSearchParams(e.search).get("source")||"Individual_Staging":void 0)||n.sourceTab,s=!!r,l=DN(),A=s&&l.state!=="authorized",u=S.useRef(null),d=S.useRef(null),h=S.useRef(null),f=S.useRef(null),g=S.useRef(null),p=S.useRef(null),v=S.useRef(null),[m,w]=S.useState(null),[b,E]=S.useState(!1),B=S.useCallback(async()=>{if(!u.current||!d.current||!h.current||!f.current||b)return;E(!0),H(!0);const Ae=u.current.querySelector(".dashboard-header-row > div");Ae&&(Ae.style.flexDirection="row",Ae.style.alignItems="flex-start",Ae.style.justifyContent="space-between");try{await new Promise(ve=>setTimeout(ve,500));const _e=`FlipFactor-${!!(a!=null&&a.startsWith("SOLO"))?"SOLO-":""}Report-${(i||"unknown").replace(/[^a-zA-Z0-9]/g,"-")}.pdf`;await Ype(u.current,d.current,h.current,f.current,_e,g.current,p.current)}catch(ue){console.warn("PDF generation failed:",ue)}finally{Ae&&(Ae.style.flexDirection="",Ae.style.alignItems="",Ae.style.justifyContent=""),E(!1)}},[b,i,a]),[_,F]=S.useState(!0),[O,k]=S.useState(""),[j,I]=S.useState(null),[T,U]=S.useState(null),[R,G]=S.useState(null),[K,V]=S.useState([]),[Q,H]=S.useState(!1),[q,re]=S.useState([]);if(S.useEffect(()=>{s&&l.state==="unauthenticated"&&t("/results")},[s,l.state,t]),S.useEffect(()=>{if(!A){if(!i||!a){t("/results");return}o1(i,a).then(Ae=>{I(Ae),U(Aa(Ae.baseline)),G(Aa(Ae.current));const ue=Ae.allRecords.map(ve=>{const z=Aa(ve);return{submittedAt:ve.Submitted_At,av:z.av,es:z.es,archetype:z.archetype}});V(b9(ue));const _e=Ae.current.Manager_Email_Link;_e&&_e.includes("@")&&!a.startsWith("SOLO")&&MDe(_e,i).then(ve=>{const z=ve.map(Se=>{const Me=Aa(Se);return{av:Me.av,es:Me.es}}).filter(Se=>Se.av>0&&Se.es>0);re(z)}).catch(()=>{})}).catch(Ae=>k(Ae.message)).finally(()=>F(!1))}},[i,a,t,A]),s&&l.state==="loading")return c.jsx(fs,{children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Checking access…"})});if(_)return c.jsx(fs,{children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading your results…"})});if(O||!j||!T||!R)return c.jsx(fs,{children:c.jsx("p",{className:"text-sm text-destructive",children:O||"Failed to load data."})});const P=j.hasMultipleRounds,D=P?R:T,X={Critical:0,Developing:0,Strong:0,Leading:0};D.items.forEach(Ae=>{X[br(Ae.score)]++});const Z=!!(a!=null&&a.startsWith("SOLO")),ae=Z?"solo":"individual",se=VDe(D.archetype,ae),pe=YDe(D.archetype,ae),le=UI(D.archetype,D.items,D.av,D.es),he=RI(le);return c.jsx(fs,{children:c.jsxs("div",{ref:u,className:"mx-auto w-full max-w-5xl space-y-8 py-8 print-content-area",children:[c.jsxs("div",{ref:d,children:[c.jsxs("section",{className:"dashboard-header-row",style:{position:"relative",display:"flex",width:"100%",justifyContent:"space-between",alignItems:"flex-start",paddingBottom:"12px",marginBottom:"16px",borderBottom:"2px solid #FFC100"},children:[c.jsx("img",{src:Bn,alt:"",style:{position:"absolute",top:0,left:0,width:"56px",height:"56px",opacity:.75,objectFit:"contain"}}),c.jsxs("div",{style:{flex:1,minWidth:0,paddingLeft:"68px"},children:[c.jsx("p",{className:"text-sm text-muted-foreground break-words",children:i}),c.jsxs("p",{className:"text-sm text-foreground",children:[j.baseline.Company_Entry,j.baseline.Role_Level_Entry&&` · ${j.baseline.Role_Level_Entry}`]})]}),c.jsxs("div",{style:{flexShrink:0,textAlign:"right",whiteSpace:"nowrap",minWidth:"220px",marginLeft:"auto"},className:"flex items-start gap-4 text-sm",children:[c.jsxs("div",{style:{textAlign:"right",marginLeft:"auto",minWidth:"240px"},children:[c.jsxs("p",{className:"text-muted-foreground",children:["Assessment Date: ",MD(j.baseline.Submitted_At)]}),c.jsx("p",{className:"font-medium text-foreground",children:"FlipFactor™ | Individual AI Readiness Report"})]}),c.jsx(Ac,{onClick:()=>B(),isGenerating:b})]})]}),(()=>{const Ae={ORCHESTRATOR:"Orchestrator",PIONEER:"Pioneer",GUARDIAN:"Guardian",EXPLORER:"Explorer"},ue=j.baseline.Company_Entry||"",_e=j.baseline.Role_Level_Entry||"",ve=MD(j.current.Submitted_At),z=D.archetype,Se=D.avLabel,Me=D.esLabel;let De=`${i}`;if(ue&&(De+=` at ${ue}`),_e&&(De+=`, ${_e}`),De+=`. Assessed on ${ve}. Your archetype is ${Ae[z]}. AV score: ${D.av.toFixed(2)} (${Se}). ES score: ${D.es.toFixed(2)} (${Me}).`,P){const Ge=R.av-T.av,Je=R.es-T.es,dt=Ge>0?"up":Ge<0?"down":"unchanged",Ye=Je>0?"up":Je<0?"down":"unchanged";De+=` Since your baseline, AV moved ${dt} by ${Math.abs(Ge).toFixed(2)} and ES moved ${Ye} by ${Math.abs(Je).toFixed(2)}.`}const xe=[];if(D.av>=4?xe.push("You are actively experimenting with AI. That takes initiative, and your scores confirm you are doing it consistently."):D.av>=2.5&&xe.push("You are building momentum with AI tools. You are not standing still, and that matters more than most people realize."),D.es>=4?xe.push("You are operating in an environment that supports AI adoption. Whether you helped create that environment or benef
648it from it, it is working."):D.es>=2.5&&xe.push(a!=null&&a.startsWith("SOLO")?"Your working environment is developing. There is enough support to move forward if you choose to.":"Your organizational environment is developing. There is enough support to move forward if you choose to."),P){const Ge=R.av>T.av,Je=R.es>T.es;Ge&&Je?xe.push("Both your AV and ES scores have grown since your baseline. You are moving in the right direction on both fronts."):Ge?xe.push(`Your AV has grown by ${(R.av-T.av).toFixed(2)} since baseline. You are building real habits.`):Je&&xe.push(`Your ES has grown by ${(R.es-T.es).toFixed(2)} since baseline. The environment around you is improving.`)}xe.length===0&&xe.push("You showed up and completed this assessment. That is the first step. Everything that follows builds on this baseline.");const ze=xe.slice(0,3).join(" ");let me="";z==="GUARDIAN"?me="Your environment is ready. So are you. The next move is action, not preparation. Pick one workflow this week and try running it with an AI tool. You do not need permission. You have it.":z==="PIONEER"?me="Your speed is an asset. The next move is bringing others along. Share one workflow with a teammate this week. Your individual gains become team gains when other people can see how you work.":z==="EXPLORER"?me="The hardest part is starting, and you have already done that. Your next move is one small experiment. Pick a task you do every day and try an AI tool on it once. That is it. Build from there.":me="Your next move is multiplication. Your personal AI readiness is strong. Your impact now lives in what you teach others to do. Find one person on your team who is stuck and show them your workflow.";const Le={color:"#FFC100",fontSize:"11px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"8px"},Ue={color:"#374151",fontSize:"14px",lineHeight:1.7},Bt={borderColor:"#E5E7EB",margin:"0"},Et=a!=null&&a.startsWith("SOLO")?"Start with Your FlipFactor™ Profile to see where you land across the two dimensions of AI readiness. Then review your dimension breakdown to understand which specific behaviors are driving your scores. Check your next moves for concrete actions you can take this week. Use this report as your personal roadmap. It tells you exactly where to focus and what to do next.":"Start with Your FlipFactor™ Profile to see where you land across the two dimensions of AI readiness. Then review your dimension breakdown to understand which specific behaviors are driving your scores. Check your micro-actions for concrete next steps you can take this week. If your manager has taken the FlipFactor™ Leader Assessment, your dot will appear in their team view. This report gives you the language to have that conversation.";return c.jsxs("section",{className:"rounded-lg print-break-after print-no-break print-card",style:{borderLeft:"4px solid #FFC100",background:"#FFFDF5",padding:"28px"},children:[c.jsx("h2",{style:{fontFamily:"Outfit, sans-serif",fontSize:"22px",fontWeight:700,color:"#1A1918",marginBottom:"8px"},children:"Your AI Readiness Brief"}),c.jsx("div",{style:{height:"2px",background:"#FFC100",marginBottom:"12px"}}),c.jsx("p",{style:{fontSize:"14px",fontStyle:"italic",color:"#6B7280",marginBottom:"24px"},children:"Your FlipFactor™ assessment at a glance. Read this before you dive in."}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[c.jsxs("div",{children:[c.jsx("p",{style:Le,children:"YOUR SNAPSHOT"}),c.jsx("p",{style:Ue,children:De})]}),c.jsx("hr",{style:Bt}),c.jsxs("div",{children:[c.jsx("p",{style:Le,children:"WHAT YOU BRING"}),c.jsx("p",{style:Ue,children:he.whatYouBring||ze})]}),c.jsx("hr",{style:Bt}),c.jsxs("div",{children:[c.jsx("p",{style:Le,children:"YOUR NEXT MOVE"}),c.jsx("p",{style:Ue,children:he.yourNextMove||me})]}),c.jsx("hr",{style:Bt}),c.jsxs("div",{children:[c.jsx("p",{style:Le,children:"HOW TO USE THIS REPORT"}),c.jsx("p",{style:Ue,children:Et})]})]})]})})(),c.jsxs("section",{className:"rounded-lg border border-[#E5E7EB] bg-card print-card print-no-break print-break-before print-profile-section",style:{padding:"24px"},children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Your FlipFactor™ Profile"}),c.jsx("p",{className:"mb-4 text-sm text-muted-foreground",children:"Where you land today across two dimensions of AI readiness"}),c.jsxs("div",{className:"flex flex-col items-start gap-6 md:flex-row print-profile-layout",children:[c.jsxs("div",{className:"w-full md:w-1/2 print-profile-chart-col",children:[c.jsx("div",{ref:v,className:"print-hide",children:c.jsx(e6e,{baselineAV:T.av,baselineES:T.es,currentAV:R.av,currentES:R.es,hasMultiple:P,teamPoints:q.length>0?q:void 0})}),m&&c.jsx("div",{className:"print-show",style:{display:"none"},children:c.jsx("img",{src:m,alt:"FlipFactor™ Quadrant Chart",style:{width:"100%",maxHeight:Z?void 0:"500px",objectFit:"contain"}})})]}
648),c.jsxs("div",{className:"w-full md:w-1/2 rounded-lg border border-[#E5E7EB] bg-card p-6 print-profile-archetype-col",children:[c.jsx("p",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Your Archetype"}),c.jsx("h3",{className:"mt-1 text-2xl font-bold text-foreground",children:D.archetype}),c.jsx("p",{className:"mt-2 text-sm leading-relaxed text-[#374151]",children:he.archetypeHeroDescription||Jz[D.archetype]}),c.jsxs("div",{className:"mt-4 space-y-3 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Agentic Velocity (AV)"}),c.jsx("p",{className:"text-[12px] text-[#6B7280]",children:$D}),c.jsx("p",{className:"mt-1 flex items-center gap-2 text-lg font-bold text-foreground",children:c.jsx(bw,{label:D.avLabel})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",D.av.toFixed(2)," out of 6.0",P&&c.jsx("span",{className:"ml-2",children:c.jsx(cg,{delta:R.av-T.av})})]})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Enterprise Symbiosis (ES)"}),c.jsx("p",{className:"text-[12px] text-[#6B7280]",children:HD}),c.jsx("p",{className:"mt-1 flex items-center gap-2 text-lg font-bold text-foreground",children:c.jsx(bw,{label:D.esLabel})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",D.es.toFixed(2)," out of 6.0",P&&c.jsx("span",{className:"ml-2",children:c.jsx(cg,{delta:R.es-T.es})})]})]})]}),P&&c.jsxs("div",{className:"mt-3 space-y-1 text-xs text-muted-foreground",children:[c.jsxs("p",{children:["Baseline AV: ",T.av.toFixed(2)," → Current: ",R.av.toFixed(2)," ",c.jsx(cg,{delta:R.av-T.av})]}),c.jsxs("p",{children:["Baseline ES: ",T.es.toFixed(2)," → Current: ",R.es.toFixed(2)," ",c.jsx(cg,{delta:R.es-T.es})]})]})]})]})]}),c.jsxs("div",{className:"print-zone-3 print-break-before",children:[c.jsxs("section",{className:"print-no-break",children:[c.jsx("h2",{className:"mb-4 text-lg font-bold text-foreground",children:"Dimension Breakdown"}),c.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:["av","es"].map(Ae=>{const ue=Ae==="av"?"Agentic Velocity (AV)":"Enterprise Symbiosis (ES)",_e=Ae==="av"?$D:HD,ve=D[Ae],z=Ae==="av"?D.avLabel:D.esLabel,Se=T[Ae],Me=P?ve-Se:0;return c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:ue}),c.jsx("p",{className:"text-[12px] text-[#6B7280]",children:_e}),c.jsx("p",{className:"mt-2 flex items-center gap-2 text-2xl font-bold text-foreground",children:c.jsx(bw,{label:z})}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Score: ",ve.toFixed(2)," out of 6.0"]}),P&&c.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:["Baseline: ",Se.toFixed(2)," ",c.jsx(cg,{delta:Me})]}),c.jsx(JDe,{score:ve})]},Ae)})})]}),K.length>0&&c.jsx(Jf,{rounds:K,title:"Your Growth Journey",className:"print-no-break",singleRoundMessage:"This is your baseline. Your growth journey begins here."})]})]}),c.jsx("div",{ref:h,children:c.jsxs("section",{className:"print-break-before print-no-break",children:[c.jsx("h2",{className:"mb-1 text-lg font-bold text-foreground",children:"Question-Level Insights"}),c.jsx("p",{className:"mb-1 italic",style:{fontSize:"13px",color:"#6B7280"},children:"Scores reflect your AI readiness level on a 1 to 6 scale. Higher is always stronger, regardless of how the question was worded."}),c.jsxs("p",{className:"mb-3 text-sm text-muted-foreground",children:["29 items scored. ",X.Critical," Critical, ",X.Developing," Developing, ",X.Strong," Strong, ",X.Leading," Leading"]}),Q?c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>H(!1),className:"mb-3 rounded-md bg-[#FFC100] px-4 py-2 text-sm font-medium text-[#1A1918]",children:"Hide Details"}),c.jsx("p",{className:"mb-1 italic",style:{fontSize:"13px",color:"#6B7280"},children:"Questions are sorted from lowest to highest AI Readiness score. Start at the top. That is 
648where your focus is needed most."}),c.jsx("p",{className:"mb-3 italic",style:{fontSize:"13px",color:"#6B7280"},children:"Note: Questions marked RC are reverse coded. For these questions a lower AI Readiness score means the challenge is more present for you. A higher score means you are navigating it well."}),c.jsx("div",{className:"overflow-hidden rounded-lg border border-[#E5E7EB] print-heatmap-wrapper",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-[#E5E7EB] bg-[#F9FAFB]",children:[c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"Question"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"Dimension"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"AI Readiness Score"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground w-1/5"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"AI Readiness Zone"})]})}),c.jsx("tbody",{children:[...D.items].map(Ae=>{const ue=a==null?void 0:a.startsWith("SOLO"),ve=(ue?HDe:$De).has(Ae.key),z=Ae.score,Se=ue?"solo":"individual",Me=ve?qm(Ae.key,z,Se):null,De=ve?null:Xm(Ae.key,z,Se);return{item:Ae,isRC:ve,displayValue:z,rcText:Me,nonRCText:De}}).sort((Ae,ue)=>Ae.displayValue-ue.displayValue).map(({item:Ae,isRC:ue,displayValue:_e,rcText:ve,nonRCText:z})=>{const Se=ue?"":XDe(_e),Me=ue?"#D1D5DB":_e<2.5?"#FCA5A5":_e<4?"#FCD34D":_e<5.3?"#86EFAC":"#93C5FD";return c.jsxs("tr",{className:`${Se} border-b border-[#E5E7EB] last:border-b-0`,children:[c.jsxs("td",{className:"px-4 py-2 text-foreground",children:[c.jsx("span",{children:qDe[Ae.key]||Ae.key}),ue&&c.jsx("span",{className:"ml-2 inline-flex items-center",style:{backgroundColor:"#F3F4F6",color:"#6B7280",fontSize:"11px",borderRadius:"4px",padding:"2px 5px"},children:"RC"}),ve&&c.jsx("p",{className:"mt-1 text-xs leading-relaxed",style:{color:"#6B7280"},children:ve}),z&&c.jsx("p",{className:"mt-1 text-xs leading-relaxed",style:{color:"#6B7280"},children:z})]}),c.jsx("td",{className:"px-4 py-2 text-muted-foreground",children:Ae.dimension}),c.jsx("td",{className:"px-4 py-2 font-semibold text-foreground",children:_e.toFixed(1)}),c.jsx("td",{className:"px-4 py-2",children:c.jsx("div",{className:"h-2 w-full overflow-hidden rounded-full bg-[#E5E7EB]",children:c.jsx("div",{className:"h-full rounded-full",style:{width:`${(_e-1)/5*100}%`,backgroundColor:Me}})})}),c.jsx("td",{className:"px-4 py-2",children:c.jsx(bw,{label:br(_e)})})]},Ae.item)})})]})})]}):c.jsx("button",{onClick:()=>H(!0),className:"rounded-md bg-[#FFC100] px-4 py-2 text-sm font-medium text-[#1A1918]",children:"View Question Details"})]})}),c.jsx("div",{ref:f,children:c.jsxs("section",{className:"rounded-lg border border-[#E5E7EB] bg-card print-card print-no-break",style:{padding:"24px"},children:[c.jsx("h2",{className:"mb-3 text-lg font-bold text-foreground",children:"What This Means For You"}),he.replaceBody?c.jsx(c.Fragment,{children:he.replaceBody.split(`
649
650`).map((Ae,ue)=>c.jsx("p",{className:`${ue>0?"mt-4":""} text-sm leading-relaxed text-[#374151]`,children:Ae},ue))}):c.jsxs(c.Fragment,{children:[he.prependParagraph&&c.jsx("p",{className:"text-sm leading-relaxed text-[#374151]",children:he.prependParagraph}),c.jsx("p",{className:`${he.prependParagraph?"mt-4":""} text-sm leading-relaxed text-[#374151]`,children:lme[D.archetype]}),D.archetype==="ORCHESTRATOR"&&c.jsx("p",{className:"mt-4 text-sm leading-relaxed text-[#374151]",children:"Reaching Orchestrator is not the destination. It is the entry point to a higher level of impact. Look at your Question-Level Insights and find every item still sitting in Developing. Those are your next targets. Then find your Strong items and ask yourself what it would take to move each one to Leading. The Orchestrator who keeps pushing their own edges is the one who makes everyone around them better."}),c.jsx("p",{className:"mt-4 text-sm leading-relaxed text-[#374151]",children:se}),c.jsx("p",{className:"mt-4 text-sm italic",style:{color:"#6B7280",fontSize:"14px"},children:"Every score on this report has room to grow. Your job is not to be perfect. It is to be further along than you were. This report is not a grade. It is a starting point. The only direction from here is onwards and upwards."})]}),(()=>{const Ae=he.replaceMoves||pe;return c.jsxs("div",{className:"print-no-break",style:{breakInside:"avoid",pageBreakInside:"avoid"},children:[c.jsx("h3",{className:"mt-6 font-bold text-foreground",style:{fontFamily:"Outfit, sans-serif",fontSize:"16px"},children:"Your Next Three Moves"}),c.jsx("p",{className:"mt-1 mb-4 text-sm italic text-[#6B7280]",children:Ae.heading}),c.jsx("div",{className:"space-y-3",children:Ae.moves.map((ue,_e)=>
650c.jsxs("div",{className:"flex gap-4 rounded-lg bg-white p-4",style:{borderLeft:"4px solid #FFC100",borderRadius:"8px"},children:[c.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[#FFC100] text-sm font-bold text-[#1A1918]",children:_e+1}),c.jsx("p",{className:"text-sm leading-relaxed text-[#374151]",children:ue})]},_e))})]})})()]})}),a==="SOLO_Individual_Staging"&&c.jsx("div",{ref:g,children:c.jsxs("section",{className:"cta-solo-card print-no-break",style:{background:"#1A1918",borderLeft:"4px solid #FFC100",borderRadius:"12px",padding:"32px"},children:[c.jsx("p",{style:{color:"#FFC100",fontSize:"11px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"12px"},children:"WHAT COMES NEXT"}),c.jsx("h2",{style:{fontFamily:"Outfit, sans-serif",fontSize:"24px",fontWeight:700,color:"#FFFFFF",marginBottom:"8px"},children:"Build the first working version of your AI twin in five days."}),c.jsx("p",{style:{fontFamily:"Outfit, sans-serif",fontSize:"16px",color:"#D1D5DB",marginBottom:"16px"},children:"Free. Five days. Fifteen minutes a day."}),c.jsx("p",{style:{fontSize:"14px",color:"#9CA3AF",lineHeight:1.7,marginBottom:"16px"},children:"You have seen your FlipFactor score. The AI Advantage Map is the free next step. Over five short email lessons, you turn your voice, judgment, standards, and boundaries into instructions AI can use, then test the difference on one real task. You finish with a portable starter AI Twin Operating File that works in any AI tool you already use."}),c.jsx("p",{style:{fontSize:"14px",color:"#9CA3AF",lineHeight:1.7,marginBottom:"24px"},children:"Why does this matter? Every AI tool treats you as generic until you give it your context. It does not know your standards, your priorities, or what good looks like in your work, so it hands you the same answers it hands everyone else. Your starter file works like a briefing page you would give a new assistant. Once AI knows how you think and decide, its output starts sounding like you and saving you time on real work. And the best part: no one can copy the result, because the context is yours."}),c.jsx("a",{href:"https://www.flipwork.ai/map",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-block",backgroundColor:"#FFC100",color:"#1A1918",fontFamily:"Outfit, sans-serif",fontWeight:500,fontSize:"16px",padding:"14px 32px",borderRadius:"6px",textDecoration:"none"},children:"Yes, I'm Interested"}),c.jsx("p",{style:{fontSize:"12px",color:"#6B7280",fontStyle:"italic",marginTop:"16px"},children:"Delivered by email. Starts the day you sign up."})]})}),c.jsx("div",{className:"flex justify-center pt-4 print:hidden",children:c.jsx(Ac,{onClick:()=>B(),isGenerating:b})}),c.jsx("div",{ref:p,children:c.jsxs("footer",{className:"mt-12 border-t border-[#E5E7EB] pt-6 pb-4 text-center",children:[c.jsxs("p",{style:{fontSize:"12px",color:"#6B7280"},children:[c.jsx("a",{href:"https://flipfactor.ai",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"flipfactor.ai"})," | Contact us: ",c.jsx("a",{href:"mailto:[email protected]",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"[email protected]"})," | © 2026 FlipWork. All rights reserved."]}),c.jsx("p",{style:{fontSize:"10px",color:"#9CA3AF",fontStyle:"italic",marginTop:"6px"},children:"This report is for professional development purposes only and does not constitute career, legal, or psychological advice."}),c.jsxs("p",{style:{fontSize:"10px",color:"#9CA3AF",fontStyle:"italic",marginTop:"4px"},children:["The FlipFactor™ framework, assessment questions, archetypes, scoring methodology, and all associated content are the proprietary intellectual property of ",c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"FlipWork, Inc."})," Unauthorized reproduction, distribution, or replication in any form is prohibited."]})]})})]})})},t6e="1ddz-kxWUSkQbutS_eyu-DOGg6r2b2ABIHA8FgBg0FBI";async function r6e(){var a;const e=`https://docs.google.com/spreadsheets/d/${t6e}/gviz/tq?tqx=out:json&sheet=${encodeURIComponent("Individual_Staging")}`,r=await(await fetch(e)).text(),n=JSON.parse(r.replace(/^[^{]+/,"").replace(/[^}]+$/,"")),i=n.table.cols.map(s=>(s.label||"").trim()),o=[];for(const s of n.table.rows??[]){const l={};for(let A=0;A<i.length;A++){const u=(a=s.c)==null?void 0:a[A];l[i[A]]=(u==null?void 0:u.v)!=null?String(u.v):""}o.push(l)}return o}function ug(e){return e.toString().toLowerCase().trim()}async function n6e(e,t){try{const{data:r,error:n}=await Tt.from("company_registry").select("id").eq("slug",t).maybeSingle();if(n||!r)return[];const{data:i,error:o}=await Tt.from("company_roster").select("employee_email, manager_email").eq("company_id",r.id);if(o||!i||i.length===0)return[];const a=ug(e),s=new Map;for(const g of i){if(!g.manager_email)continue;const p=ug(g.manager_email),v=ug(g.employee_email),m=s.get(p)??[];m.push(v),s.set(p,m)}const l=new Set,A=(g,p=0)=>
650{if(p>20)return;const v=s.get(g)??[];for(const m of v)l.add(m),A(m,p+1)};if(A(a),l.size===0)return[];const d=(await r6e()).filter(g=>{const p=ug(g.Email_Entry??"");return p.length>0&&p!=="xxxxx"&&p.includes("@")&&l.has(p)}),h=new Map;for(const g of d){const p=ug(g.Email_Entry),v=h.get(p)??[];v.push(g),h.set(p,v)}const f=[];for(const[,g]of h){const p=[...g].sort((v,m)=>new Date(v.Submitted_At??"").getTime()-new Date(m.Submitted_At??"").getTime());f.push({baseline:p[0],current:p[p.length-1],hasMultipleRounds:p.length>1})}return f}catch{return[]}}function Vc({delta:e}){const t=Math.abs(e);return t===0?c.jsx("span",{style:{color:"#9ca3af"},children:"→ 0.00"}):e>0?c.jsxs("span",{style:{color:"#22c55e"},children:["↑ +",t.toFixed(2)]}):c.jsxs("span",{style:{color:"#ef4444"},children:["↓ -",t.toFixed(2)]})}const xw={AV:"How actively your team experiments with and acts on AI in their daily work. High AV means people are moving fast with AI tools. Low AV means hesitation, avoidance, or lack of experimentation.",ES:"How well AI is integrated into the systems, culture, and workflows around your team. High ES means the organization enables and supports AI adoption. Low ES means structural or cultural barriers are slowing people down.",AI_READINESS:"Scores run from 1.0 to 6.0. Higher is always stronger. 1.0 to 2.4 is Critical. 2.5 to 3.9 is Developing. 4.0 to 5.2 is Strong. 5.3 to 6.0 is Leading. The score reflects readiness level, not a raw survey answer.",THRESHOLD:"4.0 is the threshold between Developing and Strong readiness. Teams and individuals above this line have enough momentum to build on. Below this line, foundational support and deliberate practice are the priority."},zD="How actively you experiment with and act on AI in your daily work.",WD="How well AI is integrated into the systems, culture, and workflows around you.",i6e={EXPLORER:"You are at the starting line of your AI readiness journey as a leader. Your team is watching how you engage with AI right now. Not what you say about it. What you do. One visible experiment from you this week will do more for your team's adoption than any policy or training you could roll out. You do not need to be the most technically skilled person in the room. You need to be the most willing.",PIONEER:"You are moving fast personally. That is real. The question now is whether your speed is creating a gap between you and the people you lead. Pioneers who outpace their teams without bringing them along create fragmentation, not momentum. Your next level of leadership is not about your own AI fluency. It is about making your fluency legible and transferable to the people around you.",GUARDIAN:"Your instinct to protect quality, governance, and integrity is exactly what AI-accelerating organizations need at the leadership level. The risk is not that you are too careful. The risk is that careful without visible engagement reads as resistance to the people you lead. Your team needs to see you in the arena, not just setting the rules for it. The leader who names the standards and then models working within them is the one who earns the team's trust when the hard AI decisions get made.",ORCHESTRATOR:"You are operating at the frontier of AI readiness as a leader. That comes with a responsibility most high performers underestimate. Your team cannot follow a path they cannot see. The systems you have built, the judgment calls you make, the way you evaluate AI-assisted work — none of that compounds beyond you unless you make it visible and teachable. Your next move is not personal development. It is organizational architecture."};function o6e(e,t,r,n){const i=(e+t)/2,o=(r+n)/2;if(i>=o)return null;const a=r-e>=.1,s=n-t>=.1;return a&&!s?"Your personal AI readiness score is currently below your team's average. The gap is on Agentic Velocity. Your team is experimenting with AI more actively than you are right now. The most powerful thing you can do is make your own experimentation visible.":s&&!a?"Your personal AI readiness score is currently below your team's average. The gap is on Enterprise Symbiosis. Your team has stronger organizational support and integration around AI than you are currently experiencing or utilizing. Name that gap with your own leadership.":a&&s?"Your personal AI readiness score is currently below your team's average on both dimensions. That is 
650worth naming directly. The most powerful signal you can send your team right now is a visible personal experiment, not a directive.":"Your personal AI readiness score is marginally below your team's average. The gap is small but it is there. One deliberate move this week closes it."}const a6e={EXPLORER:{heading:"You are building your AI confidence. Your next move is finding your people.",moves:["Identify one person on your team or in your organization who talks openly about AI. Ask them how they got started. You do not need a plan. You need a conversation.","The next time you use an AI tool and it works, tell someone. Out loud. That one act starts to shift the culture around you.","Ask your manager one question this week: what would it look like if I used AI to improve one part of my workflow? You are not asking for permission. You are opening a door."]},PIONEER:{heading:"You have personal momentum. Now make it visible to your team.",moves:["Take the most effective AI workflow you have built for yourself and document it simply enough that a team member could follow it without asking you questions. Then share it. Your personal system becomes team infrastructure the moment someone else can use it.","In your next team meeting, spend five minutes showing your team one thing you used AI for this week and what you learned from it. Not a polished demo. A real example. Leaders who share their own learning process give their teams permission to learn out loud too.","Identify the team member who is furthest behind on AI adoption. Offer them one thing: a 20-minute walkthrough of one tool you use on a real task from their work. That conversation is worth more than any training program you could assign."]},GUARDIAN:{heading:"Your judgment is your leadership edge. Put it in motion.",moves:["Identify one AI governance question at your organization that does not yet have a clear answer. Raise it with your leadership, not as a blocker, but as a question worth solving. Guardians who name the right problems become the people organizations trust to lead the governance conversation.","Choose one AI tool your team is already using and offer to run a quality review. You do not need to be the most technical person in the room. You need to be the most rigorous. That role is yours to claim.","Write down your personal framework for how you evaluate AI in your work and in your team's work. What you will use it for, what you will not, and what evidence would change your mind. Share it with your own manager. That kind of structured thinking is exactly what organizations need as AI policy gets made at the leadership level."]},ORCHESTRATOR:{heading:"You are operating at a high level. Now build the bridge for everyone else.",moves:["You have the credibility and the capability. Use it. This week, volunteer to lead or co-lead one AI-related initiative, conversation, or cross-team working session. Even informally. Your presence in that room changes the room.","Map out the AI readiness of the three people you lead most directly. Where are the gaps? What is one thing you could do this week to close one of those gaps for one of those people? Orchestrators who pull others forward are the ones organizations build their AI strategy around.","Document one AI workflow you have built that works. Write it down, share it with your team, and make it replicable. Your individual excellence becomes organizational capability when you codify it. That is the difference between a high performer and a force multiplier."]}},Zz={EXPLORER:"You are in the early stages of AI adoption. While you may be aware of AI tools, you likely feel uncertain about which tools to use or are constrained by a lack of clear guidance and training. Your day-to-day work remains highly manual, and integrating AI feels more like a risky experiment than a reliable productivity driver.",PIONEER:"You are a high-speed innovator operating in a vacuum. You actively use AI to accelerate your personal workflows, but you are likely relying on Shadow AI or workarounds because the organization’s official systems are too slow or restrictive. Your personal efficiency is high, but your innovations are not scaling to benefit the wider team.",GUARDIAN:"You operate in an environment with clear rules, high psychological safety, and good alignment, but your actual day-to-day execution with AI is lagging. You may be waiting for official permission, perfectly polished tools, or formal training before you fully commit to changing how you work. You are safe, but moving too slowly.",ORCHESTRATOR:"You seamlessly integrate AI into your daily work to amplify your unique expertise. You act as a manager of AI agents rather than a manual task executor. Crucially, you share your workflows, operate within secure organizational frameworks, and contribute to the collective intelligence of your team."},s6e={AV:{intro:"Your team is building AI confidence. Your job is to make it safe to experiment.",actions:["Create one low-stakes AI experiment this week that your whole team can try together. It does not have to work perfectly. It has to happen.","In your next team meeting, share one specific AI tool you have been using and what it actually did for your workflow. Model the behavior you want to see.","Ask each person on your team one question this week: what is one task you wish you could hand off? Then help them find an AI tool that c
650ould take it."]},ES:{intro:"Your team has individual momentum. Your job is to build the connective tissue.",actions:["Start a shared team document this week called AI Wins. Ask everyone to add one thing they tried with AI in the last 30 days. Make it visible and make it celebrated.","In your next one on one with each team member, ask them one question: what would make it easier for you to use AI in your daily work? Then actually remove one blocker.","Communicate your team's AI vision in writing this week. Even one paragraph. People cannot align to a direction they cannot see."]}};function zc({label:e}){const r={Critical:{bg:"#FEF2F2",color:"#DC2626"},Developing:{bg:"#FFFBEB",color:"#D97706"},Strong:{bg:"#F0FDF4",color:"#16A34A"},Leading:{bg:"#EFF6FF",color:"#2563EB"}}[e];return c.jsx("span",{style:{backgroundColor:r.bg,color:r.color,borderRadius:"9999px",padding:"2px 10px",fontSize:"12px",fontWeight:600},children:e})}function Bw({text:e}){return c.jsxs(Wu,{children:[c.jsx(Gu,{asChild:!0,children:c.jsx("button",{className:"ml-1 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-[#E5E7EB] text-[10px] text-[#6B7280] hover:bg-[#D1D5DB]","aria-label":"Info",children:"i"})}),c.jsx(yc,{className:"w-72 text-sm",children:e})]})}function l6e({score:e}){const t=(e-1)/5*100,r=[{label:"Critical",bg:"#FEF2F2",w:"28%"},{label:"Developing",bg:"#FFFBEB",w:"28%"},{label:"Strong",bg:"#F0FDF4",w:"24%"},{label:"Leading",bg:"#EFF6FF",w:"16%"}];return c.jsx("div",{className:"mt-3",children:c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute text-sm text-[#FFC100]",style:{left:`${t}%`,top:"-18px",transform:"translateX(-50%)"},children:"▼"}),c.jsx("div",{className:"flex h-5 w-full overflow-hidden rounded",children:r.map(n=>c.jsx("div",{className:"flex items-center justify-center text-[9px] font-medium text-[#6B7280]",style:{backgroundColor:n.bg,width:n.w},children:n.label},n.label))})]})})}function GD(e,t,r,n,i){const o=[];for(let a=0;a<i*2;a++){const s=Math.PI/i*a-Math.PI/2,l=a%2===0?r:n;o.push(`${e+l*Math.cos(s)},${t+l*Math.sin(s)}`)}return o.join(" ")}const A6e=[{archetype:"THE GUARDIAN",org:"Org: The Governance Gridlock",anchor:"start",quadrant:"TL"},{archetype:"THE ORCHESTRATOR",org:"Org: The Agentic-Human Enterprise",anchor:"end",quadrant:"TR"},{archetype:"THE EXPLORER",org:"Org: The Uncharted Enterprise",anchor:"start",quadrant:"BL"},{archetype:"THE PIONEER",org:"Org: The Fragmented Frontier",anchor:"end",quadrant:"BR"}];function c6e({baselineAV:e,baselineES:t,currentAV:r,currentES:n,hasMultiple:i,teamPoints:o}){const[a,s]=S.useState(!1),l=360,A=40,u=l-A*2,d=I=>A+(I-1.5)/5*u,h=I=>l-A-(I-1.5)/5*u,f=d(4),g=d(e),p=h(t),v=d(r),m=h(n),w=o&&o.length>0;let b=0,E=0,B=0,_=0,F=0,O=0;if(w){const I=o.map(P=>P.av),T=o.map(P=>P.es);b=I.reduce((P,D)=>P+D,0)/I.length,E=T.reduce((P,D)=>P+D,0)/T.length;const U=Math.min(...I),R=Math.max(...I),G=Math.min(...T),K=Math.max(...T),V=Math.max((R-U)*.15,.2),Q=Math.max((K-G)*.15,.2);B=d(Math.max(1.5,U-V)),F=d(Math.min(6.5,R+V))-B;const q=h(Math.min(6.5,K+Q)),re=h(Math.max(1.5,G-Q));_=q,O=re-q}const k=A6e.map(I=>{let T,U;return I.quadrant==="TL"?(T=A+12,U=A+20):I.quadrant==="TR"?(T=l-A-12,U=A+20):I.quadrant==="BL"?(T=A+12,U=h(4)+20):(T=l-A-12,U=h(4)+20),{...I,wx:T,wy:U}}),j=[{name:"GUARDIAN",x:A+8,y:A+18},{name:"ORCHESTRATOR",x:f+8,y:A+18},{name:"EXPLORER",x:A+8,y:h(4)+18},{name:"PIONEER",x:f+8,y:h(4)+18}];return c.jsx(Ky,{delayDuration:200,children:c.jsxs("div",{className:"flex flex-col items-center w-full",children:[c.jsxs("div",{className:"relative",style:{minWidth:"400px",minHeight:"400px"},children:[c.jsxs("svg",{viewBox:`0 0 ${l} ${l}`,className:"w-full",style:{fontFamily:"Outfit, sans-serif",minWidth:"400px",minHeight:"400px"},children:[c.jsx("rect",{x:A,y:A,width:u,height:u,fill:"#FAFAFA",stroke:"#E5E7EB"}),c.jsx("rect",{x:A,y:A,width:f-A,height:h(4)-A,fill:"#FFFBEB",fillOpacity:"0.25",stroke:"#D97706",strokeOpacity:"0.2",strokeWidth:"1"}),c.jsx("rect",{x:f,y:A,width:l-A-f,height:h(4)-A,fill:"#F0FDF4",fillOpacity:"0.25",stroke:"#16A34A",strokeOpacity:"0.2",strokeWidth:"1"}),c.jsx("rect",{x:A,y:h(4),width:f-A,height:l-A-h(4),fill:"#FEF2F2",fillOpacity:"0.25",stroke:"#DC2626",strokeOpacity:"0.2",strokeWidth:"1"}),c.jsx("rect",{x:f,y:h(4),width:l-A-f,height:l-A-h(4),fill:"#EFF6FF",fillOpacity:"0.25",stroke:"#2563EB",strokeOpacity:"0.2",strokeWidth:"1"}),c.jsx("line",{x1:f,y1:A,x2:f,y2:l-A,stroke:"#E5E7EB",strokeDasharray:"4"}),c.jsx("line",{x1:A,y1:h(4),x2:l-A,y2:h(4),stroke:"#E5E7EB",strokeDasharray:"4"}),k.map(I=>c.jsxs("g",{children:[c.jsx("text",{x:I.wx,y:I.wy,textAnchor:I.anchor,fill:"#1A1918",fillOpacity:"0.35",fontSize:"9",fontWeight:"700",children:I.archetype}),c.jsx("text",{x:I.wx,y:I.wy+12,textAnchor:I.anchor,fill:"#6B7280",fillOpacity:"0.45",fontSize:"7",fontStyle:"italic",children:I.org})]},I.quadrant)),j.map(I=>c.jsxs(Zk,{children:[c.jsx(eF,{asChild:!0,children:c.jsx("text",{x:I.x,y:I.y,fill:"transparent",fontSize:"10",fontWeight:"600",style:{cursor:"pointer"},children:I.name})}),c.jsx(Cx,{side:"bottom",className:"max-w-xs text-xs leading-relaxed",children:c.jsx("p",{children:Zz[I.name]})})]},I.name)),c.jsx("text",{x:l/2,y:l-6,textAnchor:"middle",fill:"#6B7280",fontSize:"10",children:"Agentic Velocity (AV)"}),c.jsx("text",{x:10,y:l/2,textAnchor:"middle",fill:"#6B7280",fontSize:"10",transform:`rotate(-90,10,${l/2})`,children:"Enterprise Symbiosis (ES)"}),[2,3,4,5,6].map(I=>c.jsxs("g",{children:[c.jsx("text",{x:d(I),y:l-A+16,textAnchor:"middle",fill:"#9CA3AF",fontSize:"9",children:I}),c.jsx("text",{x:A-8,y:h(I)+3,textAnchor:"end",fill:"#9CA3AF",fontSize:"9",children:I})]},I)),w&&c.jsx("ellipse",{cx:B+F/2,cy:_+O/2,rx:F/2,ry:O/2,fill:"rgba(156, 163, 175, 0.15)",stroke:"none"}),w&&c.jsx("circle",{cx:d(b),cy:h(E),r:"5",fill:"transparent",stroke:"#9CA3AF",strokeWidth:"2",strokeDasharray:"3 2",style:{cursor:"pointer"},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)}),i&&c.jsx("line",{x1:g,y1:p,x2:v,y2:m,stroke:"#9CA3AF",strokeWidth:"1.5",markerEnd:"url(#arrowhead-personal)"}),c.jsx("defs",{children:c.jsx("marker",{id:"arrowhead-personal",markerWidth:"8",markerHeight:"6",refX:"8",refY:"3",orient:"auto",children:c.jsx("polygon",{points:"0 0, 8 3, 0 6",fill:"#9CA3AF"})})}),c.jsx("circle",{cx:g,cy:p,r:"7",fill:"#FFC100",stroke:"#1A1918",strokeWidth:"1"}),i&&c.jsx("polygon",{points:GD(v,m,10,5,5),fill:"#FFC100",stroke:"#1A1918",strokeWidth:"1"})]}),w&&a&&c.jsx("div",{className:"absolute pointer-events-none",style:{left:`${d(b)/l*100}%`,top:`${h(E)/l*100}%`,transform:"translate(-50%, -120%)"},children:c.jsxs("div",{style:{background:"white",border:"1px solid #E5E7EB",borderRadius:"6px",padding:"8px 12px",boxShadow:"0 1px 3px rgba(0,0,0,0.1)",fontSize:"12px",color:"#374151",whiteSpace:"nowrap"},children:["Team Average — AV: ",b.toFixed(2)," | ES: ",E.toFixed(2)]})})]}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 mt-3",style:{fontSize:"12px",color:"#6B7280"},children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("svg",{width:"12",height:"12",children:c.jsx("circle",{cx:"6",cy:"6",r:"5",fill:"#FFC100"})}),i?"Day 1":"Your Score"]}),i&&c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",children:c.jsx("polygon",{points:GD(7,7,6,3,5),fill:"#FFC100"})}),"Today"]}),w&&c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("svg",{width:"16",height:"12",children:c.jsx("ellipse",{cx:"8",cy:"6",rx:"7",ry:"5",fill:"rgba(156, 163, 175, 0.3)"})}),"Team Spread"]}),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("svg",{width:"12",height:"12",children:c.jsx("circle",{cx:"6",cy:"6",r:"4",fill:"transparent",stroke:"#9CA3AF",strokeWidth:"1.5",strokeDasharray:"2 1.5"})}),"Team Avg"]})]})]}),w&&c.jsxs("div",{className:"flex flex-col items-start mt-2",style:{gap:"4px",fontSize:"12px",color:"#6B7280",fontStyle:"italic"},children:[c.jsx("span",{children:"Your star shows where you land personally."}),c.jsx("span",{children:"The shaded region shows where your team is."}),c.jsx("span",{children:"Use this to understand your position relative to the people you lead."})]})]})})}const a1={EXPLORER:{fill:"#FEF2F2",stroke:"#DC2626"},PIONEER:{fill:"#EFF6FF",stroke:"#2563EB"},GUARDIAN:{fill:"#FFFBEB",stroke:"#D97706"},ORCHESTRATOR:{fill:"#F0FDF4",stroke:"#16A34A"}};function u6e({distribution:e}){const t=["EXPLORER","PIONEER","GUARDIAN","ORCHESTRATOR"],r=Object.values(e).reduce((o,a)=>o+a,0),n=t.filter(o=>e[o]>0).map(o=>({name:o,value:e[o],...a1[o]})),i=({cx:o,cy:a,midAngle:s,innerRadius:l,outerRadius:A,value:u,name:d})=>{const h=Math.PI/180,f=l+(A-l)*1.6,g=o+f*Math.cos(-s*h),p=a+f*Math.sin(-s*h),v=r>0?Math.round(u/r*100):0;return c.jsxs("text",{x:g,y:p,fill:"#374151",textAnchor:g>o?"start":"end",dominantBaseline:"central",fontSize:"11",children:[u," (",v,"%)"]})};return c.jsxs("div",{children:[c.jsx(qu,{width:"100%",height:260,children:c.jsx(lv,{children:c.jsx(Ko,{data:n,dataKey:"value",cx:"50%",cy:"50%",innerRadius:55,outerRadius:85,label:i,labelLine:!1,children:n.map((o,a)=>c.jsx(Xu,{fill:o.fill,stroke:o.stroke,strokeWidth:2},a))})})}),c.jsx("div",{className:"flex flex-wrap justify-center gap-3 mt-2",children:t.map(o=>c.jsxs("span",{className:"flex items-center gap-1 text-xs text-[#374151]",children:[c.jsx("span",{className:"inline-block h-3 w-3 rounded-sm",style:{backgroundColor:a1[o].fill,border:`2px solid ${a1[o].stroke}`}}),o,": ",e[o]]},o))})]})}function d6e({members:e,teamAvg:t}){const[r,n]=S.useState(null),i=[...e].sort((h,f)=>(h.av+h.es)/2-(f.av+f.es)/2),o=i.map(h=>(h.av+h.es)/2),a=o.length?Math.min(...o):1,l=(o.length?Math.max(...o):6)-a;let A;l<=.5?A="Your team is tightly clustered. A rising tide approach will work well here.":l>1.5?A="Your team has significant spread in readiness. Consider pairing higher-readiness members with those still developing.":A="Your team has moderate spread. Targeted coaching for your lowest-scoring members will move the group average fastest.";const u=h=>(h-1.5)/5*100,d=u(4);return c.jsxs("div",{children:[c.jsx("div",{className:"relative py-8",style:{minHeight:"80px"},children:c.jsxs("svg",{viewBox:"0 0 100 40",className:"w-full",preserveAspectRatio:"none",style:{overflow:"visible"},children:[c.jsx("line",{x1:"0",y1:"25",x2:"100",y2:"25",stroke:"#E5E7EB",strokeWidth:"0.5"}),c.jsx("line",{x1:d,y1:"5",x2:d,y2:"35",stroke:"#9CA3AF",strokeWidth:"0.3",strokeDasharray:"1"}),c.jsx("line",{x1:u(t),y1:"10",x2:u(t),y2:"30",stroke:"#FFC100",strokeWidth:"0.6"}),c.jsx("text",{x:u(t),y:"38",textAnchor:"middle",fill:"#FFC100",fontSize:"3",fontWeight:"600",children:t.toFixed(2)}),i.map((h,f)=>{const g=(h.av+h.es)/2,p=a1[h.archetype];return c.jsx("g",{onMouseEnter:()=>n(f),onMouseLeave:()=>n(null),onClick:()=>n(r===f?null:f),style:{cursor:"pointer"},children:c.jsx("circle",{cx:u(g),cy:"25",r:"1.2",fill:p.fill,stroke:p.stroke,strokeWidth:"0.4"})},f)}),[2,3,4,5,6].map(h=>c.jsx("text",{x:u(h),y:"30",textAnchor:"middle",fill:"#9CA3AF",fontSize:"2.5",children:h},h))]})}),r!==null&&i[r]&&(()=>{const h=i[r],f=((h.av+h.es)/2).toFixed(2);return c.jsxs("div",{className:"mb-2 inline-block rounded-md border border-[#
650E5E7EB] bg-white px-3 py-2 text-xs shadow-sm",style:{borderRadius:"6px"},children:[c.jsx("p",{className:"font-semibold text-[#374151]",children:h.label}),c.jsxs("p",{className:"text-[#6B7280]",children:["Overall Score: ",f]}),c.jsxs("p",{className:"text-[#6B7280]",children:["Archetype: ",h.archetype]})]})})(),c.jsx("p",{className:"text-sm italic text-[#374151]",children:A})]})}const YD=()=>{const e=pc(),t=gc(),{leaderEmail:r}=Nx(),n=!!r,i=DN(),o=e.state||{},a=n?decodeURIComponent(r):o.email,s=n?"Leader_Staging":o.sourceTab,l=n&&new URLSearchParams(e.search).get("from")||"",A=new URLSearchParams(e.search).get("from")||"",u=S.useRef(null),d=S.useRef(null),h=S.useRef(null),f=S.useRef(null),g=S.useRef(null),p=S.useRef(null),v=S.useRef(null),m=S.useRef(null),w=S.useRef(null),b=S.useRef(null),E=S.useRef(null),B=S.useRef(null),_=S.useRef(null),[F,O]=S.useState(!1),[k,j]=S.useState(null),[I,T]=S.useState(!0),U=S.useRef(!1),R=S.useRef(null),G=S.useRef(0),K=S.useRef(0),V=S.useRef(null),Q=S.useCallback(async()=>{if(!u.current||F)return;O(!0);const Ee=u.current.querySelector(".dashboard-header-row > div");Ee&&(Ee.style.flexDirection="row",Ee.style.alignItems="flex-start",Ee.style.justifyContent="space-between");try{await new Promise(Pe=>setTimeout(Pe,500));const Ke=`FlipFactor-Leader-Report-${(a||"unknown").replace(/[^a-zA-Z0-9]/g,"-")}.pdf`,ht=[d.current,h.current,f.current,g.current,p.current,v.current,m.current,w.current,b.current,E.current,B.current,_.current];await Gpe(u.current,ht,Ke)}catch(Ke){console.warn("PDF generation failed:",Ke)}finally{Ee&&(Ee.style.flexDirection="",Ee.style.alignItems="",Ee.style.justifyContent=""),O(!1)}},[F,a]),[H,q]=S.useState(!0),[re,P]=S.useState(""),[D,X]=S.useState(null),[Z,ae]=S.useState(null),[se,pe]=S.useState(null),[le,he]=S.useState([]),[Ae,ue]=S.useState([]),[_e,ve]=S.useState([]),[z,Se]=S.useState(null),[Me,De]=S.useState(!1),[xe,ze]=S.useState(0),[me,Le]=S.useState(0),[Ue,Bt]=S.useState(0),[Et,Ge]=S.useState({}),[Je,dt]=S.useState("N/A"),[Ye,vt]=S.useState(!1),[tt,dr]=S.useState(!1),[Pt,Ft]=S.useState(!1),[Be,rt]=S.useState(!1),Ve=n&&i.state!=="authorized";if(S.useEffect(()=>{sF().then(Ft),a&&Tt.from("company_registry").select("enable_drilldown_leaders, leader_emails").then(({data:Ee})=>{if(Ee){const Ke=Ee.find(ht=>(ht.leader_emails||[]).some(Pe=>Pe.toLowerCase().trim()===a.toLowerCase().trim()));Ke&&rt(Ke.enable_drilldown_leaders??!1)}})},[a]),S.useEffect(()=>{n&&i.state==="unauthenticated"&&t("/admin/login")},[n,i.state,t]),S.useEffect(()=>{if(Ve)return;if(!a||!s){t("/results");return}(async()=>{try{let Ke=QDe(a);if(A)try{const gt=await n6e(a,A);gt.length>0&&(Ke=Promise.resolve(gt))}catch{}const[ht,Pe]=await Promise.all([A&&s==="Leader_Staging"?o1(a,s).catch(()=>o1(a,"Individual_Staging")):o1(a,s),Ke]);X(ht);const ct=Dh(ht.baseline),qe=Dh(ht.current);ae(ct),pe(qe);const wt=ht.allRecords.map(gt=>{const kt=Dh(gt);return{submittedAt:gt.Submitted_At,av:kt.av,es:kt.es,archetype:kt.archetype}});he(b9(wt)),Ge(w9(ht.current));const St=Pe.map((gt,kt)=>{const Qt=Aa(gt.current),ar=gt.current.Email_Entry?gt.current.Email_Entry.toString().toLowerCase().trim():void 0,Ht=gt.current.Role_Level_Entry||"";return{label:"",av:Qt.av,es:Qt.es,archetype:Qt.archetype,scores:Qt,email:ar,roleLevel:Ht}});St.sort((gt,kt)=>kt.es-gt.es),St.forEach((gt,kt)=>{gt.label=`Team Member ${kt+1}`}),ue(St);const at=Pe.map((gt,kt)=>{const Qt=Aa(gt.baseline),ar=gt.current.Email_Entry?gt.current.Email_Entry.toString().toLowerCase().trim():void 0,Ht=gt.current.Role_Level_Entry||"";return{label:`Team Member ${kt+1}`,av:Qt.av,es:Qt.es,archetype:Qt.archetype,email:ar,roleLevel:Ht}});at.sort((gt,kt)=>{const Qt=St.findIndex(Ht=>Ht.label===gt.label),ar=St.findIndex(Ht=>Ht.label===kt.label);return Qt-ar}),ve(at),at.length>0&&(Le(Math.round(at.reduce((gt,kt)=>gt+kt.av,0)/at.length*100)/100),Bt(Math.round(at.reduce((gt,kt)=>gt+kt.es,0)/at.length*100)/100));const Ot=Pe.some(gt=>gt.hasMultipleRounds);if(De(Ot),ze(Pe.filter(gt=>gt.hasMultipleRounds).length),Ot){const gt=St.map(kt=>({label:kt.label,av:kt.av,es:kt.es,archetype:kt.archetype,email:kt.email,roleLevel:kt.roleLevel}));Se(gt)}const Zt=[...ht.allRecords.map(gt=>gt.Submitted_At),...Pe.flatMap(gt=>
650[gt.baseline.Submitted_At,gt.current.Submitted_At])].filter(Boolean);if(Zt.length>0){const gt=Qt=>{const ar=Qt.match(/^Date\((\d+),(\d+),(\d+)/);return ar?new Date(parseInt(ar[1]),parseInt(ar[2]),parseInt(ar[3])):new Date(Qt)},kt=Zt.map(gt).filter(Qt=>!isNaN(Qt.getTime())).sort((Qt,ar)=>Qt.getTime()-ar.getTime());if(kt.length>0){const Qt=ar=>ar.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"});dt(Qt(kt[0])===Qt(kt[kt.length-1])?Qt(kt[0]):`${Qt(kt[0])} - ${Qt(kt[kt.length-1])}`)}}}catch(Ke){P(Ke.message)}finally{q(!1)}})()},[a,s,t,Ve]),S.useEffect(()=>{if(!Ae||Ae.length===0||U.current)return;const Ee=R.current,Ke=G.current,ht=K.current,Pe=V.current;if(!Ee||!Pe)return;U.current=!0,(async()=>{var qe;try{const wt={GUARDIAN:"Guardian",ORCHESTRATOR:"Orchestrator",EXPLORER:"Explorer",PIONEER:"Pioneer"},St={GUARDIAN:"Governance Gridlock",ORCHESTRATOR:"Agentic-Human Enterprise",EXPLORER:"Uncharted Enterprise",PIONEER:"Fragmented Frontier"},at=Ke>=4&&ht>=4?"ORCHESTRATOR":Ke>=4?"PIONEER":ht>=4?"GUARDIAN":"EXPLORER",Ot=Object.entries(Pe).filter(([,On])=>On>0).sort((On,kr)=>kr[1]-On[1]).map(([On,kr])=>`${wt[On]} (${kr})`).join(", "),Zt=((qe=D==null?void 0:D.baseline)==null?void 0:qe.Company_Entry)||"this organization",gt=Ae.length,kt='You are a leadership coach for FlipWork writing an executive brief for a team leader reviewing their FlipFactor AI readiness report. Write in plain business English for a senior leader. Be direct, specific, and brief. No em dashes. No phrases like "AI journey." No jargon. Return only valid JSON with no markdown, no backticks, no preamble.',Qt=`Generate an executive brief for a team leader at ${Zt}. Return ONLY valid JSON with exactly this shape:
651{
652  "snapshot": "2-3 sentences. Describe this leader's team of ${gt} people, their team archetype (${wt[at]}, ${St[at]}), team AV ${Ke.toFixed(2)} and ES ${ht.toFixed(2)}, and distribution (${Ot}). Compare to the leader's own scores AV ${Ee.av.toFixed(2)} ES ${Ee.es.toFixed(2)} archetype ${wt[Ee.archetype]}. If the leader scores higher than their team on AV, note they are ahead of their people and must model the behavior visibly.",
653  "strengths": "1-2 sentences about what this team is genuinely doing well based on their highest scoring dimension or archetype distribution.",
654  "focus": "1-2 sentences about the single highest-leverage development area for this specific team. Be concrete about what the scores reveal.",
655  "teamMoves": [
656    "2-3 sentences. A specific action this leader should take this week to move their team's lowest scoring dimension. Reference the actual score.",
657    "2-3 sentences. A specific action addressing the gap between leader score and team score if one exists, or the next highest priority team need.",
658    "2-3 sentences. A behavioral target for the next 30 days that would move at least 3 team members from their current archetype toward Orchestrator."
659  ]
660}
661
662Team data: ${gt} members, AV ${Ke.toFixed(2)}, ES ${ht.toFixed(2)}, archetype ${at}, distribution ${Ot}.
663Leader data: AV ${Ee.av.toFixed(2)}, ES ${Ee.es.toFixed(2)}, archetype ${Ee.archetype}.
664${me>0?`Baseline team: AV ${me.toFixed(2)}, ES ${Ue.toFixed(2)}.`:"No baseline data."}
665Assessment period: ${Je}.`,{data:ar,error:Ht}=await Tt.functions.invoke("generate-narrative",{body:{prompt:Qt,system:kt,maxTokens:1e3}});if(Ht||!(ar!=null&&ar.narrative))return;let rn=ar.narrative.trim();const An=rn.match(/^```(?:json)?\s*([\s\S]*?)```\s*$/i);An&&(rn=An[1].trim());const mr=JSON.parse(rn);mr!=null&&mr.snapshot&&(mr!=null&&mr.strengths)&&(mr!=null&&mr.focus)&&Array.isArray(mr==null?void 0:mr.teamMoves)&&mr.teamMoves.length>=3&&j({snapshot:mr.snapshot,strengths:mr.strengths,focus:mr.focus,teamMoves:mr.teamMoves.slice(0,3)})}catch(wt){console.warn("[AI Leader Narrative] Failed, using template fallback:",wt)}finally{T(!1)}})()},[Ae]),n&&i.state==="loading")return c.jsx(fs,{children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Checking access…"})});if(n&&i.state==="unauthenticated")return c.jsx(fs,{children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Redirecting to login…"})});if(n&&i.state==="unauthorized")return c.jsx(fs,{children:c.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 py-20",children:[c.jsx("p",{className:"text-lg font-semibold text-foreground",children:"Access Denied"}),c.jsxs("p",{className:"text-sm text-muted-foreground text-center max-w-md",children:["You do not have permission to access this page. C
665ontact"," ",c.jsx("a",{href:"mailto:FlipFactor™@flipwork.ai",className:"underline",children:"FlipFactor™@flipwork.ai"})," ","if you believe this is an error."]})]})});if(H)return c.jsx(fs,{children:c.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading your results…"})});if(re||!D||!Z||!se)return c.jsx(fs,{children:c.jsxs("div",{className:"flex flex-col gap-3 p-4",children:[A&&c.jsxs("button",{onClick:()=>t(`/company-dashboard/${A}`),className:"flex items-center gap-2 text-sm font-medium text-primary hover:underline w-fit",children:[c.jsx(N1,{className:"h-4 w-4"}),"Back to Company Dashboard"]}),c.jsx("p",{className:"text-sm text-destructive",children:re||"This leader has not yet completed their diagnostic. Their report will appear here once they do."})]})});const et=D.hasMultipleRounds,Qe=et?se:Z;R.current=Qe;const He=Ae.length?Math.round(Ae.reduce((Ee,Ke)=>Ee+Ke.av,0)/Ae.length*100)/100:0;G.current=He;const st=Ae.length?Math.round(Ae.reduce((Ee,Ke)=>Ee+Ke.es,0)/Ae.length*100)/100:0;K.current=st;const _t=Ae.length?Math.round((He+st)/2*100)/100:0,We={ORCHESTRATOR:0,PIONEER:0,GUARDIAN:0,EXPLORER:0};Ae.forEach(Ee=>{We[Ee.archetype]++}),V.current=We;const Xt=He<=st?"AV":"ES",Ze=s6e[Xt];return c.jsx(fs,{children:c.jsxs("div",{ref:u,className:"mx-auto w-full max-w-5xl space-y-8 py-8",children:[n&&c.jsxs("button",{onClick:()=>t(l?`/company-dashboard/${l}`:-1),className:"flex items-center gap-2 text-sm font-medium text-primary hover:underline print:hidden",children:[c.jsx(N1,{className:"h-4 w-4"}),"Back to Company Dashboard"]}),c.jsxs("section",{ref:d,className:"dashboard-header-row",style:{position:"relative",display:"flex",width:"100%",justifyContent:"space-between",alignItems:"flex-start",paddingBottom:"12px",marginBottom:"16px",borderBottom:"2px solid #FFC100"},children:[c.jsx("img",{src:Bn,alt:"",style:{position:"absolute",top:0,left:0,width:"56px",height:"56px",opacity:.75,objectFit:"contain"}}),c.jsxs("div",{style:{flex:1,minWidth:0,paddingLeft:"68px"},children:[c.jsx("p",{className:"text-sm text-muted-foreground break-words",children:a}),c.jsxs("p",{className:"text-sm text-foreground",children:[D.baseline.Company_Entry,D.baseline.Role_Level_Entry&&` · ${D.baseline.Role_Level_Entry}`]})]}),c.jsxs("div",{style:{flexShrink:0,textAlign:"right",whiteSpace:"nowrap",minWidth:"220px",marginLeft:"auto"},className:"flex items-start gap-4 text-sm",children:[c.jsxs("div",{style:{textAlign:"right",marginLeft:"auto",minWidth:"240px"},children:[c.jsxs("p",{className:"text-muted-foreground",children:["Assessment: ",Je]}),c.jsx("p",{className:"font-medium text-foreground",children:"FlipFactor™ | Leader AI Readiness Report"})]}),c.jsx(Ac,{onClick:()=>Q(),isGenerating:F})]})]}),Ae.length>0&&(()=>{const Ee=Ae.length,Ke=D.baseline.Company_Entry||"your organization",ht=Je,Pe=Object.entries(We).sort((kr,Vl)=>Vl[1]-kr[1])[0],ct={ORCHESTRATOR:"Orchestrator",PIONEER:"Pioneer",GUARDIAN:"Guardian",EXPLORER:"Explorer"},qe=["ORCHESTRATOR","PIONEER","GUARDIAN","EXPLORER"].filter(kr=>We[kr]>0).map(kr=>`${We[kr]} ${We[kr]===1?ct[kr]:ct[kr]+"s"}`),wt=qe.length===1?qe[0]:qe.slice(0,-1).join(", ")+" and "+qe[qe.length-1],St=["ORCHESTRATOR","PIONEER","GUARDIAN","EXPLORER"].filter(kr=>We[kr]===0),at=St.length>0?` No ${St.map(kr=>ct[kr]+"s").join(" or ")} were identified on this team.`:"",Ot=`This report covers a team of ${Ee} at ${Ke}, assessed on ${ht}. The team ${Pe[1]>Ee/2?"is concentrated in":"leans toward"} the ${ct[Pe[0]]} archetype, with ${wt}.${at}`,Zt=[];He>3.5&&Zt.push(`Your team's average Agentic Velocity is ${He.toFixed(2)}. People are actively experimenting with AI tools in their daily work. That is a real advantage.`),st>3.5&&Zt.push(`Your team's average Enterprise Symbiosis is ${st.toFixed(2)}. The organizational environment is doing its job. Infrastructure, culture, and leadership are enabling adoption.`),Pe[0]==="ORCHESTRATOR"?Zt.push("Most of your team sits in the Orchestrator quadrant. They have both personal capability and organizational support. This is the strongest position a team can be in."):Pe[0]==="GUARDIAN"&&Zt.push("Your team's Guardian majority means the environment is structured and safe. The foundation is in place. Once individual experimentation picks up, this team can scale fast."),Zt.length===0&&Zt.push("Your team is early in its AI readiness journey. You are measuring it now, and that matters. Awareness comes before action. This assessment gives you a clear baseline to build from.");const gt=Zt.join(" "),kt=[],Qt=Ae.map(kr=>kr.av);Ae.map(kr=>kr.es);const ar=Math.max(...Qt)-Math.min(...Qt);We.PIONEER>0&&kt.push(`You have ${We.PIONEER} Pioneer${We.PIONEER>1?"s":""}
665 on your team. These individuals are moving fast with AI but may be operating outside approved channels. That is a Shadow AI risk. It needs guardrails now.`),We.EXPLORER>0&&kt.push(`${We.EXPLORER} team member${We.EXPLORER>1?"s are":" is"} in the Explorer quadrant. They need structured onboarding, encouragement, and low-stakes chances to build AI confidence.`),ar>1.5&&kt.push(`AV scores range from ${Math.min(...Qt).toFixed(2)} to ${Math.max(...Qt).toFixed(2)}. That is a spread of more than 1.5 points. Personal AI adoption is uneven across your team and needs targeted attention.`),Qe.av<He&&kt.push(`Your personal AV score is ${Qe.av.toFixed(2)}. Your team's average is ${He.toFixed(2)}. You are below the people you lead. The strongest signal you can send is modeling the behavior yourself.`),Qe.es<st&&kt.push(`Your personal ES score is ${Qe.es.toFixed(2)}. Your team's average is ${st.toFixed(2)}. Ask yourself whether the environment you are creating fully matches the support your team needs.`),kt.length===0&&kt.push("No major risk signals in this assessment. Keep monitoring for score drift and emerging gaps between team members.");const Ht=kt.slice(0,3).join(" "),rn="Start with Your Team's FlipFactor™ Profile to understand where your people land across the two dimensions. Then review the Understanding Your Team's Archetypes section to build your vocabulary. Move to the individual dimension breakdowns to identify specific skill gaps. Close with Your Personal AI Readiness. The most powerful signal you can send your team is modeling the behavior yourself.",An={color:"#FFC100",fontSize:"11px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"8px"},mr={color:"#374151",fontSize:"14px",lineHeight:1.7},On={borderColor:"#E5E7EB",margin:"0"};return c.jsxs("section",{ref:h,className:"rounded-lg",style:{borderLeft:"4px solid #FFC100",background:"#FFFDF5",padding:"28px"},children:[c.jsx("h2",{style:{fontFamily:"Outfit, sans-serif",fontSize:"22px",fontWeight:700,color:"#1A1918",marginBottom:"8px"},children:"Executive Brief"}),c.jsx("div",{style:{height:"2px",background:"#FFC100",marginBottom:"12px"}}),c.jsx("p",{style:{fontSize:"14px",fontStyle:"italic",color:"#6B7280",marginBottom:"24px"},children:"Your FlipFactor™ assessment at a glance. Read this before you dive in."}),I&&c.jsx("p",{className:"text-xs text-muted-foreground italic mt-1",children:"Preparing your leadership insights..."}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[c.jsxs("div",{children:[c.jsx("p",{style:An,children:"TEAM SNAPSHOT"}),c.jsx("p",{style:mr,children:I?c.jsx("span",{className:"text-muted-foreground italic text-sm",children:"Generating..."}):(k==null?void 0:k.snapshot)??Ot})]}),c.jsx("hr",{style:On}),c.jsxs("div",{children:[c.jsx("p",{style:An,children:"WHAT YOUR TEAM IS DOING WELL"}),c.jsx("p",{style:mr,children:I?c.jsx("span",{className:"text-muted-foreground italic text-sm",children:"Generating..."}):(k==null?void 0:k.strengths)??gt})]}),c.jsx("hr",{style:On}),c.jsxs("div",{children:[c.jsx("p",{style:An,children:"WHERE TO FOCUS"}),c.jsx("p",{style:mr,children:I?c.jsx("span",{className:"text-muted-foreground italic text-sm",children:"Generating..."}):(k==null?void 0:k.focus)??Ht})]}),c.jsx("hr",{style:On}),c.jsxs("div",{children:[c.jsx("p",{style:An,children:"HOW TO USE THIS REPORT"}),c.jsx("p",{style:mr,children:rn})]})]})]})})(),c.jsxs("section",{ref:f,"data-print-break":!0,className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Your Team's FlipFactor™ Profile"}),c.jsx("p",{className:"mb-6 text-sm italic",style:{color:"#6B7280"},children:"We start with your team because great AI-ready leaders build AI-ready teams. Understanding where your people are is the first step to knowing where to focus."}),Ae.length===0?c.jsx("p",{className:"text-sm text-muted-foreground",children:"No team members found linked to your email."}):c.jsx(ev,{baselineMembers:_e,currentMembers:z,baselineTeamAvgAV:me,baselineTeamAvgES:Ue,currentTeamAvgAV:He,currentTeamAvgES:st,hasRetake:Me,drilldownEnabled:Pt||Be,onMemberClick:Ee
665=>{Ee.email&&window.open(`/individual-dashboard/view/${encodeURIComponent(Ee.email)}?source=Individual_Staging`,"_blank")},narrativeContent:(()=>{const Ee=Ae.length,Ke=Object.entries(We).filter(([,Ht])=>Ht>0).sort((Ht,rn)=>rn[1]-Ht[1]),ht=Ke[0];ht[0].charAt(0)+ht[0].slice(1).toLowerCase(),ht[1];const Pe=He>=4&&st>=4?"ORCHESTRATOR":He>=4?"PIONEER":st>=4?"GUARDIAN":"EXPLORER",ct=Pe.charAt(0)+Pe.slice(1).toLowerCase(),qe=Ke.slice(0).map(([Ht,rn])=>`${rn} ${Ht.charAt(0)+Ht.slice(1).toLowerCase()}${rn===1?"":"s"}`).join(", "),wt=`Your team of ${Ee} shows a ${ct} profile overall (AV ${He.toFixed(2)}, ES ${st.toFixed(2)}), with ${qe} across the four readiness profiles.`,St=Ae.map(Ht=>Ht.av),at=Ae.map(Ht=>Ht.es);Math.max(...St)-Math.min(...St),Math.max(...at)-Math.min(...at);const Ot=Ke.filter(([,Ht])=>Ht===1),Zt=Ke.filter(([,Ht])=>Ht>1);let gt="";if(Ot.length>0&&Zt.length>0&&Zt[0][1]>=3){const Ht=Ot[0][0].charAt(0)+Ot[0][0].slice(1).toLowerCase();Ot[0][0]==="PIONEER"||Ot[0][0]==="ORCHESTRATOR"?gt=`You have one ${Ht} operating significantly ahead of the rest of the team. This person may be a valuable internal champion — or may need guardrails if they are using unsanctioned tools.`:gt=`You have one ${Ht} who may need additional support and encouragement to build AI confidence alongside the rest of the team.`}const Qt={GUARDIAN:{name:"The Governance Gridlock",context:"well-structured but moving too slowly to capture meaningful AI productivity gains"},ORCHESTRATOR:{name:"The Agentic-Human Enterprise",context:"operating at the leading edge with both individual readiness and organizational support aligned"},EXPLORER:{name:"The Uncharted Enterprise",context:"still in the early stages of AI adoption with foundational gaps in both individual habits and organizational infrastructure"},PIONEER:{name:"The Fragmented Frontier",context:"seeing individual experimentation outpace organizational readiness, creating potential governance and alignment risks"}}[ht[0]],ar=`Based on your team's profile, your organization is currently operating as ${Qt.name} — ${Qt.context}.`;return c.jsxs("div",{children:[c.jsx("p",{className:"text-xs uppercase tracking-wider",style:{color:"#B8860B",fontWeight:700},children:"Team Profile"}),c.jsxs("div",{className:"mt-3 flex items-center gap-4 text-sm",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Team Average AV"}),c.jsx("span",{className:"ml-2",children:c.jsx(zc,{label:br(He)})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",He.toFixed(2)," out of 6.0",Me&&c.jsx("span",{className:"ml-2",children:c.jsx(Vc,{delta:He-me})})]})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Team Average ES"}),c.jsx("span",{className:"ml-2",children:c.jsx(zc,{label:br(st)})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",st.toFixed(2)," out of 6.0",Me&&c.jsx("span",{className:"ml-2",children:c.jsx(Vc,{delta:st-Ue})})]})]})]}),c.jsxs("div",{className:"mt-4",style:{display:"flex",flexDirection:"column",gap:"12px"},children:[c.jsx("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:wt}),c.jsx("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:(()=>{const Ht=(He+st)/2,rn=(me+Ue)/2,An=Ht-rn;return Me?An>=.1?`Your team's average readiness has improved since Day 1. AV moved from ${me.toFixed(2)} to ${He.toFixed(2)} and ES moved from ${Ue.toFixed(2)} to ${st.toFixed(2)}. The cluster is shifting in the right direction.`:An<=-.1?`Your team's average readiness has dipped since Day 1. AV moved from ${me.toFixed(2)} to ${He.toFixed(2)} and ES moved from ${Ue.toFixed(2)} to ${st.toFixed(2)}. Review the Question-Level Insights to find where to focus.`:`Your team's scores have held steady since Day 1. AV is ${He.toFixed(2)} and ES is ${st.toFixed(2)}. Consistency is a foundation. The next step is identifying one behavior to move the needle before the next assessment.`:`This is your team's baseline. AV is ${He.toFixed(2)} and ES is ${st.toFixed(2)}. Every future assessment will show movement from this starting point.`})()}),gt&&c.jsx("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:gt}),c.jsx("p",{style:{fontSize:"14px",color:"#374151",lineHeight:1.6},children:ar})]})]})})()})]}),Ae.length>
6650&&c.jsxs("section",{ref:g,"data-print-break":!0,className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Understanding Your Team's Archetypes"}),c.jsx("p",{className:"mb-6 text-sm italic",style:{color:"#6B7280"},children:"Use this as your reference guide as you read your team's report."}),c.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2",children:[{name:"EXPLORER",border:"#DC2626",color:"#DC2626",individual:"Still building foundational AI confidence. These team members are aware of AI but have not yet developed consistent habits or experimentation routines. They need encouragement, low-stakes opportunities to try, and visible support from you.",leader:"They need encouragement, low-stakes opportunities to try, and visible support from you.",orgName:"The Uncharted Enterprise",orgDesc:"Your people may be aware of AI tools, but they are paralyzed by caution, uncertain of which tools to use, or constrained by a lack of clear strategic guid
665ance and training. The organization is vulnerable to being rapidly outpaced by more agile competitors."},{name:"PIONEER",border:"#2563EB",color:"#2563EB",individual:"Moving fast with AI individually but operating ahead of the team and the organization. These members may be using AI tools outside of approved channels — Shadow AI — which can introduce compliance, data privacy, and governance risks. Acknowledge their momentum, but make sure they understand the guardrails. Channel their energy into approved tools and team-wide practices before their independence creates liability.",leader:"Acknowledge their momentum, but make sure they understand the guardrails. Channel their energy into approved tools and team-wide practices before their independence creates liability.",orgName:"The Fragmented Frontier",orgDesc:"Employees are adopting AI rapidly on their own, resulting in widespread Shadow AI. While there is high grassroots energy, there is zero structural alignment. Security, compliance, and operational risks are accumulating faster than scalable ROI."},{name:"GUARDIAN",border:"#D97706",color:"#D97706",individual:"Almost the opposite of a Pioneer. Guardians work in an AI-supportive environment but hold back from experimenting because they do not want to break rules, step out of line, or act without explicit permission. They are waiting to be told it is okay. As a leader your job is to give them that permission directly and explicitly. Tell them it is safe to try. Invite them to redesign their own workflows. Guardians who feel authorized to experiment can move quickly — they just need you to open the door.",leader:"Give them permission directly and explicitly. Tell them it is safe to try. Invite them to redesign their own workflows. Guardians who feel authorized to experiment can move quickly — they just need you to open the door.",orgName:"The Governance Gridlock",orgDesc:"You have prioritized governance and structure over speed. The enterprise is well-protected and strategically aligned, but moving far too slowly to realize meaningful productivity gains from AI."},{name:"ORCHESTRATOR",border:"#16A34A",color:"#16A34A",individual:"Operating at the leading edge of AI readiness. These members experiment actively, work in supportive environments, and are ready to lead others. Leverage them as peer coaches and internal champions for your team's AI journey.",leader:"Leverage them as peer coaches and internal champions. Their habits and workflows are your team's fastest path to scale.",orgName:"The Agentic-Human Enterprise",orgDesc:"Leaders provide clear vision, secure infrastru
665cture, and high psychological safety. Teams seamlessly manage and orchestrate AI agents rather than executing manual tasks. Core workflows have been formally redesigned around AI, compounding ROI and fundamentally elevating human capability across the entire organization."}].map(Ee=>c.jsxs("div",{style:{borderLeft:`4px solid ${Ee.border}`,padding:"16px 20px",borderRadius:"6px",backgroundColor:"#FAFAFA"},children:[c.jsx("p",{style:{fontSize:"14px",fontWeight:700,color:Ee.color,marginBottom:"8px"},children:Ee.name}),c.jsx("p",{style:{fontSize:"13px",color:"#374151",lineHeight:1.6,marginBottom:"12px"},children:Ee.individual}),c.jsx("hr",{style:{borderColor:"#E5E7EB",marginBottom:"12px"}}),c.jsx("p",{style:{fontSize:"11px",fontWeight:700,color:"#B8860B",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:"4px"},children:"For leaders:"}),c.jsx("p",{style:{fontSize:"13px",color:"#374151",lineHeight:1.6,marginBottom:"12px"},children:Ee.leader}),c.jsx("p",{style:{fontSize:"11px",fontWeight:700,color:"#B8860B",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:"4px"},children:"Org stage:"}),c.jsxs("p",{style:{fontSize:"13px",lineHeight:1.6},children:[c.jsx("span",{style:{fontStyle:"italic",color:"#6B7280"},children:Ee.orgName}),c.jsxs("span",{style:{color:"#374151"},children:[" — ",Ee.orgDesc]})]})]},Ee.name))})]}),Ae.length>0&&c.jsxs("section",{ref:p,"data-print-break":!0,className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"text-base font-bold text-foreground",children:"Reading Your Team's Scores"}),c.jsx("div",{className:"mt-3 flex flex-wrap items-center gap-0 text-sm",children:["ORCHESTRATOR","PIONEER","GUARDIAN","EXPLORER"].map((Ee,Ke)=>{const ht=Ee==="ORCHESTRATOR"?"Leading":Ee==="PIONEER"?"Strong":Ee==="GUARDIAN"?"Developing":"Critical",ct={Leading:{bg:"#EFF6FF",text:"#2563EB"},Strong:{bg:"#F0FDF4",text:"#16A34A"},Developing:{bg:"#FFFBEB",text:"#D97706"},Critical:{bg:"#FEF2F2",text:"#DC2626"}}[ht],qe=We[Ee];return c.jsxs(oe.Fragment,{children:[Ke>0&&c.jsx("div",{className:"mx-3 h-5 w-px",style:{backgroundColor:"#E5E7EB"}}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"font-bold text-foreground",children:Ee}),c.jsx("span",{style:{color:"#6B7280"},children:"·"}),c.jsxs("span",{style:{color:"#6B7280"},children:[qe," ",qe===1?"member":"members"]}),c.jsx("span",{style:{backgroundColor:ct.bg,color:ct.text,fontSize:"12px",fontWeight:600,borderRadius:"9999px",padding:"2px 10px"},children:ht})]})]},Ee)})}),c.jsx("hr",{className:"mt-4 mb-3",style:{borderColor:"#E5E7EB"}}),c.jsx("div",{className:"space-y-1",children:[{zone:"Critical",range:"1.0 to 2.4",def:"Foundational gaps exist. Immediate support and structured intervention needed."},{zone:"Developing",range:"2.5 to 3.9",def:"Awareness is building but consistent application and confidence are still emerging."},{zone:"Strong",range:"4.0 to 5.2",def:"Solid readiness with active habits and environmental support in place."},{zone:"Leading",range:"5.3 to 6.0",def:"Operating at the frontier. A model for others and a multiplier of team capability."}].map(Ee=>c.jsxs("p",{style:{fontSize:"13px",color:"#6B7280"},children:[c.jsxs("span",{className:"font-semibold",children:[Ee.zone," (",Ee.range,")"]})," — ",Ee.def]},Ee.zone))}),c.jsx("p",{className:"mt-4 italic",style:{fontSize:"13px",color:"#6B7280"},children:"Colors reflect readiness zones. Red is Critical, Amber is Developing, Green is Strong, Blue is Leading."})]}),Ae.length>0&&(()=>{const Ee={IA_01_AV:"I'm uncertain about whether I'm using the right AI tools effectively in my role.",IA_02_AV:"I have clarity on which AI capabilities would meaningfully accelerate my key workflows.",IA_03_AV:"I feel effective when I use AI tools in my daily work.",IA_04_AV:"I'm free to experiment with new AI tools and find what works, even if we hit some dead ends along the way.",IA_05_AV:"AI agents or automation have directly reduced my manual workload in the past 6 months.",IA_06_AV:"My current role involves orchestrating or coordinating multiple AI tools or systems as part of my daily work.",IA_07_AV:"I feel overwhelmed by the pace at which AI tools and technologies are changing in my field.",IA_08_ES:"I share my best AI prompts, tips, and tools to help the whole team work faster.",IA_09_ES:"I trust that my leadership wants AI to help us do more, not to take our jobs.",IA_10_ES:"I feel okay flagging problems or admitting I'm stuck with AI tools without worrying it will make me look bad.",IA_11_ES:"I'm worried that what AI generates is starting to matter more than my actual judgment and expertise.",IA_12_ES:"AI feels like a helpful teammate that makes me better at my job.",IA_13_ES:"AI has accelerated work to 
665such a pace that I'm struggling to keep up, and it's wearing me out.",IA_14_ES:"I have a real say in how AI is used in my area.",IA_15_ES:"My feedback on AI decisions actually shapes what happens next.",IA_16_ES:"If an AI tool gets it wrong, my team focuses on learning why instead of looking for someone to blame.",IA_17_AV:"I spend more of my time directing AI and less time on repetitive, time-consuming tasks.",IA_18_AV:"I actively use AI tools to support my decision-making and accelerate my work.",IA_19_AV:"I'm forced to work around our old systems because we don't have an AI alternative that actually works faster.",IA_20_AV:"Things take longer than they should due to manual steps and multiple layers of sign-off in our process.",IA_21_ES:"I've watched roles disappear because AI took over the work people used to do.",IA_22_AV:"AI saves me time, but those gains are lost because the rest of the workflow is stuck in a slow manual process.",IA_23_ES:"My organization provides me with the tools and training I need to work efficiently with AI.",IA_24_ES:"My organization regularly communicates the risks and ethics of AI use, not just the benefits.",IA_25_ES:"The rules for AI are clear in our organization. I know what's allowed and what's off-limits.",IA_26_ES:"Our organization uses AI to help us do more, not as a reason to cut our jobs.",IA_27_ES:"Security policies restrict me to a list of approved AI tools, which limits my ability to find better ways to work.",IA_28_ES:"My direct leader/manager isn't on board with AI yet, so I don't feel like I have the green light to use the tools we've been given.",IA_29_ES:"My team has mapped out exactly where AI fits into our workflows to achieve the best outcomes."},Ke=new Set(["IA_01_AV","IA_07_AV","IA_11_ES","IA_13_ES","IA_19_AV","IA_20_AV","IA_21_ES","IA_22_AV","IA_27_ES","IA_28_ES"]),Pe=Object.keys(Ee).map(qe=>{const wt=qe.includes("_AV")?"AV":"ES",St=[],at=qe.replace("IA_","SIA_");for(const Zt of Ae){const gt=Zt.scores.items.find(kt=>kt.key===qe||kt.key===at);gt&&St.push(gt.score)}const Ot=St.length?Math.round(St.reduce((Zt,gt)=>Zt+gt,0)/St.length*100)/100:0;return{key:qe,dim:wt,avg:Ot}}).filter(qe=>qe.avg>0).map(qe=>({...qe,displayAvg:qe.avg})).sort((qe,wt)=>qe.displayAvg-wt.displayAvg),ct={Critical:0,Developing:0,Strong:0,Leading:0};return Pe.forEach(qe=>{ct[br(qe.displayAvg)]++}),c.jsxs("section",{ref:v,className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Team Question-Level Insights"}),c.jsx("p",{className:"mt-1 italic",style:{fontSize:"13px",color:"#6B7280"},children:"These scores represent your team's average response per question. Use this view to identify where your team is collectively strong and where targeted support is needed most."}),c.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:[Pe.length," items scored. ",ct.Critical," Critical, ",ct.Developing," Developing, ",ct.Strong," Strong, ",ct.Leading," Leading"]}),Ye?c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>vt(!1),className:"mt-3 mb-3 rounded-md bg-[#FFC100] px-4 py-2 text-sm font-medium text-[#1A1918]",children:"Hide Details"}),c.jsx("p",{className:"mb-1 italic",style:{fontSize:"13px",color:"#6B7280"},children:"Questions are sorted from lowest to highest team AI Readiness score. Start at the top. That is 
665where your team needs the most support."}),c.jsx("p",{className:"mb-3 italic",style:{fontSize:"13px",color:"#6B7280"},children:"Note: Questions marked RC are reverse coded. For these questions a lower AI Readiness score means the challenge is more present on your team. A higher score means your team is navigating it well."}),c.jsx("div",{className:"overflow-hidden rounded-lg border border-[#E5E7EB] print-heatmap-wrapper",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-[#E5E7EB] bg-[#F9FAFB]",children:[c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"Question"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"Dimension"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"AI Readiness Score"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground w-1/5"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"AI Readiness Zone"})]})}),c.jsx("tbody",{children:Pe.map(qe=>{const wt=qe.displayAvg,St=Ke.has(qe.key),at=St?qm(qe.key,wt,"leaderTeam"):null,Ot=St?null:Xm(qe.key,wt,"leaderTeam"),Zt=St?"transparent":wt<2.5?"#FEF2F2":wt<4?"#FFFBEB":wt<5.3?"#F0FDF4":"#EFF6FF",gt=St?"#D1D5DB":wt<2.5?"#FCA5A5":wt<4?"#FCD34D":wt<5.3?"#86EFAC":"#93C5FD";return c.jsxs("tr",{className:"border-b border-[#E5E7EB] last:border-b-0",style:{backgroundColor:Zt,pageBreakInside:"avoid",breakInside:"avoid"},children:[c.jsxs("td",{className:"px-4 py-2 text-foreground",children:[c.jsx("span",{children:Ee[qe.key]||qe.key}),St&&c.jsx("span",{className:"ml-2 inline-flex items-center",style:{backgroundColor:"#F3F4F6",color:"#6B7280",fontSize:"11px",borderRadius:"4px",padding:"2px 5px"},children:"RC"}),at&&c.jsx("p",{className:"mt-1 text-xs leading-relaxed",style:{color:"#6B7280"},children:at}),Ot&&c.jsx("p",{className:"mt-1 text-xs leading-relaxed",style:{color:"#6B7280"},children:Ot})]}),c.jsx("td",{className:"px-4 py-2",children:c.jsx("span",{style:{color:"#6B7280",fontSize:"13px"},children:qe.dim})}),c.jsx("td",{className:"px-4 py-2 font-semibold text-foreground",children:wt.toFixed(1)}),c.jsx("td",{className:"px-4 py-2",children:c.jsx("div",{className:"h-2 w-full overflow-hidden rounded-full bg-[#E5E7EB]",children:c.jsx("div",{className:"h-full rounded-full",style:{width:`${(wt-1)/5*100}%`,backgroundColor:gt}})})}),c.jsx("td",{className:"px-4 py-2",children:c.jsx(zc,{label:br(wt)})})]},qe.key)})})]})})]}):c.jsx("button",{onClick:()=>vt(!0),className:"mt-3 rounded-md bg-[#FFC100] px-4 py-2 text-sm font-medium text-[#1A1918]",children:"View Team Question Details"})]})})(),c.jsxs("div",{ref:m,children:[Ae.length>0&&c.jsxs("section",{children:[c.jsx("h2",{className:"mb-2 text-lg font-bold text-foreground",children:"Team Dimension Breakdown"}),c.jsxs("p",{className:"mb-4 text-[12px] text-[#6B7280]",children:[xe," of ",Ae.length," team members have completed the midpoint diagnostic. All team averages reflect the full team."]}),c.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:[{key:"av",name:"Agentic Velocity (AV)",def:zD,score:He,baseline:me},{key:"es",name:"Enterprise Symbiosis (ES)",def:WD,score:st,baseline:Ue}].map(Ee=>c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsxs("p",{className:"text-sm font-medium text-muted-foreground flex items-center",children:[Ee.name,c.jsx(Bw,{text:Ee.key==="av"?xw.AV:xw.ES})]}),c.jsx("p",{className:"text-[12px] text-[#6B7280]",children:Ee.def}),c.jsx("p",{className:"mt-2 flex items-center gap-2 text-2xl font-bold text-foreground",children:c.jsx(zc,{label:br(Ee.score)})}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Score: ",Ee.score.toFixed(2)," out of 6.0"]}),Me&&c.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:c.jsx(Vc,{delta:Ee.score-Ee.baseline})}),c.jsx(l6e,{score:Ee.score})]},Ee.key))})]}),Ae.length>0&&c.jsx("section",{children:c.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[c.jsxs("div",{className:"rounded-lg border border-[#
665E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Team Archetype Distribution"}),c.jsx("p",{className:"mt-1 text-sm text-[#374151]",children:"This chart shows how your team is distributed across the four AI readiness archetypes."}),c.jsx("p",{className:"mb-3 text-sm text-[#374151]",children:"A team concentrated in one archetype needs different support than a mixed team. The goal over time is to see your distribution shift toward Pioneer and Orchestrator."}),c.jsx(u6e,{distribution:We})]}),c.jsxs("div",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h3",{className:"text-base font-bold text-foreground",children:"Team Score Spread"}),c.jsx("p",{className:"mt-1 text-sm text-[#374151]",children:"Each dot represents one team member plotted by their overall AI readiness score, calculated as the average of their AV and ES scores."}),c.jsx("p",{className:"mb-3 text-sm text-[#374151]",children:"A tight cluster means your team is moving together. A wide spread means some people need targeted support before group momentum is possible."}),c.jsx(d6e,{members:Ae,teamAvg:_t})]})]})})]}),Ae.length>0&&c.jsxs("section",{ref:w,className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Your Team's Next Three Moves"}),c.jsx("p",{className:"mt-1 mb-4 text-sm italic",style:{color:"#6B7280"},children:"These are actions for you to take as a leader on behalf of your team. They are designed to move your lowest-scoring dimension in the next 30 days."}),c.jsx("p",{className:"mb-4 text-sm italic text-[#374151]",children:Ze.intro}),c.jsx("div",{className:"space-y-3",children:((k==null?void 0:k.teamMoves)??Ze.actions).map((Ee,Ke)=>c.jsxs("div",{className:"flex gap-4 rounded-lg bg-white p-4",style:{borderLeft:"4px solid #FFC100",borderRadius:"8px"},children:[c.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[#FFC100] text-sm font-bold text-[#1A1918]",children:Ke+1}),c.jsx("p",{className:"text-sm leading-relaxed text-[#374151]",children:Ee})]},Ke))})]}),c.jsxs("div",{ref:b,children:[c.jsxs("section",{"data-print-break":!0,style:{paddingTop:"48px"},children:[c.jsx("div",{className:"w-full bg-primary",style:{height:"2px"}}),c.jsx("h2",{className:"text-center font-bold text-foreground",style:{fontFamily:"Outfit, sans-serif",fontSize:"24px",color:"#1A1918",marginTop:"32px"},children:"Your Personal AI Readiness"}),c.jsx("p",{className:"mt-1 text-center italic",style:{color:"#6B7280",fontSize:"14px"},children:"Your own AI readiness matters independently of your team's. Leaders who model AI adoption create permission for others to follow. This section shows where you stand personally."})]}),c.jsxs("section",{className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Your FlipFactor™ Profile"}),c.jsx("p",{className:"mb-4 text-sm text-muted-foreground",children:"Where you land today across two dimensions of AI readiness"}),c.jsxs("div",{className:"flex flex-col items-start gap-6 md:flex-row",children:[c.jsx("div",{className:"w-full md:w-1/2",children:c.jsx(c6e,{baselineAV:Z.av,baselineES:Z.es,currentAV:se.av,currentES:se.es,hasMultiple:et,teamPoints:Ae.length>0?Ae.map(Ee=>({av:Ee.av,es:Ee.es})):void 0})}),c.jsxs("div",{className:"w-full md:w-1/2 rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("p",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Your Archetype"}),c.jsx("h3",{className:"mt-1 text-2xl font-bold text-foreground",children:Qe.archetype}),(()=>{const Ee=UI(Qe.archetype,Qe.items,Qe.av,Qe.es),Ke=RI(Ee),ht=Ae.length>0?o6e(Qe.av,Qe.es,He,st):null;return c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"mt-2 text-sm leading-relaxed text-[#374151]",children:Ke.archetypeHeroDescription||Zz[Qe.archetype]}),Ke.replaceBody?c.jsx("div",{className:"mt-4",children:Ke.replaceBody.split(`
666
667`).map((Pe,ct)=>c.jsx("p",{className:`${ct>0?"mt-4":""} text-sm leading-relaxed text-[#374151]`,children:Pe},ct))}):c.jsxs("p",{className:"mt-4 text-sm leading-relaxed text-[#374151]",children:[Ke.prependParagraph&&c.jsxs(c.Fragment,{children:[Ke.prependParagraph," "]}),ht&&c.jsxs(c.Fragment,{children:[ht," "]}),i6e[Qe.archetype]]})]})})(),c.jsxs("div",{className:"mt-4 space-y-3 text-sm",children:[c.jsxs("div",{children:[c.jsxs("span",{className:"text-muted-foreground flex items-center",children:["Agentic Velocity (AV)",c.jsx(Bw,{text:
667xw.AV})]}),c.jsx("p",{className:"text-[12px] text-[#6B7280]",children:zD}),c.jsx("p",{className:"mt-1 flex items-center gap-2 text-lg font-bold text-foreground",children:c.jsx(zc,{label:Qe.avLabel})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",Qe.av.toFixed(2)," out of 6.0",et&&c.jsx("span",{className:"ml-2",children:c.jsx(Vc,{delta:se.av-Z.av})})]})]}),c.jsxs("div",{children:[c.jsxs("span",{className:"text-muted-foreground flex items-center",children:["Enterprise Symbiosis (ES)",c.jsx(Bw,{text:xw.ES})]}),c.jsx("p",{className:"text-[12px] text-[#6B7280]",children:WD}),c.jsx("p",{className:"mt-1 flex items-center gap-2 text-lg font-bold text-foreground",children:c.jsx(zc,{label:Qe.esLabel})}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Score: ",Qe.es.toFixed(2)," out of 6.0",et&&c.jsx("span",{className:"ml-2",children:c.jsx(Vc,{delta:se.es-Z.es})})]})]})]}),et&&c.jsxs("div",{className:"mt-3 space-y-1 text-xs text-muted-foreground",children:[c.jsxs("p",{children:["Baseline AV: ",Z.av.toFixed(2)," → Current: ",se.av.toFixed(2)," ",c.jsx(Vc,{delta:se.av-Z.av})]}),c.jsxs("p",{children:["Baseline ES: ",Z.es.toFixed(2)," → Current: ",se.es.toFixed(2)," ",c.jsx(Vc,{delta:se.es-Z.es})]})]})]})]})]}),(()=>{const Ee=[{key:"LA_30_AV",dim:"AV",text:"I have a clear roadmap for how my team will evolve from task-performers to AI orchestrators over the next 12 months.",rc:!1},{key:"LA_31_AV",dim:"AV",text:"I have visibility into which AI tools and workarounds my team is using outside of official organizational channels.",rc:!1},{key:"LA_32_ES",dim:"ES",text:"I struggle with my own understanding of AI capabilities, which limits my ability to guide my team effectively.",rc:!0},{key:"LA_33_ES",dim:"ES",text:"I can clearly measure the impact of AI on my team's end-to-end deliverables, not just whether people are using the tools.",rc:!1},{key:"LA_34_ES",dim:"ES",text:"My team has moved beyond individual experimentation with AI to officially redesigned workflows where AI is a required component.",rc:!1},{key:"LA_35_AV",dim:"AV",text:"I'm comfortable delegating work I used to do myself to AI tools, even when I know I could do it well.",rc:!1},{key:"LA_36_ES",dim:"ES",text:"I am clear on how accountability works when my team uses AI to inform decisions. I know where the AI's role ends and human responsibility begins.",rc:!1},{key:"LA_37_AV",dim:"AV",text:"I am confident in my ability to evaluate the quality of AI-assisted work my team produces, even when I wasn't involved in directing the AI.",rc:!1},{key:"LA_38_AV",dim:"AV",text:"I evaluate my team's performance based on the quality and impact of their outcomes, not on how many hours or manual steps it took to produce them.",rc:!1},{key:"LA_39_ES",dim:"ES",text:"I'm comfortable when team members know more about AI tools than I do.",rc:!1},{key:"LA_40_ES",dim:"ES",text:"I actively encourage team members to lead AI initiatives in areas where they have greater expertise than I do.",rc:!1}],Ke=D.current,ht=Ee.map(ct=>{const qe=parseFloat(Ke[ct.key]);if(isNaN(qe))return null;const wt=ct.rc?Math.max(1,Math.min(6,7-qe)):Math.max(1,Math.min(6,qe));return{...ct,score:wt,displayScore:wt}}).filter(Boolean);ht.sort((ct,qe)=>ct.displayScore-qe.displayScore);const Pe={Critical:0,Developing:0,Strong:0,Leading:0};return ht.forEach(ct=>{Pe[br(ct.displayScore)]++}),c.jsxs("section",{"data-print-break":!0,className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsxs("h2",{className:"text-lg font-bold text-foreground flex items-center",children:["Your Leadership AI Readiness — Detailed View",c.jsx(Bw,{text:"These questions were answered only by you and are not visible to your team. They are designed to surface your personal leadership gaps around AI strategy, delegation, and team development."})]}),c.jsx("p",{className:"mt-1 italic",style:{fontSize:"13px",color:"#6B7280"},children:"These 11 questions are specific to you as a leader. They reflect how you personally show up around AI strategy, delegation, accountability, and team development. Your scores here reveal your highest-leverage growth areas as a leader."}),c.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:[ht.length," leadership items scored. ",Pe.Critical," Critical, ",Pe.Developing," Developing, ",Pe.Strong," Strong, ",Pe.Leading," Leading"]}),tt?c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>dr(!1),className:"mt-3 mb-3 rounded-md bg-[#FFC100] px-4 py-2 text-sm font-medium text-[#1A1918]",children:"Hide Details"}),c.jsx("p",{className:"mb-1 italic",style:{fontSize:"13px",color:"#6B7280"},children:"Items are sorted from lowest to highest score. The questions at the top are your most immediate development opportunities as an AI-ready leader."}),c.jsx("p",{className:"mb-3 italic",style:{fontSize:"13px",color:"#6B7280"},children:"Note: Questions marked RC are reverse coded. For these questions a lower AI Readiness score means the challenge is more present for you as a leader. A higher score means you are navigating it well."}),c.jsx("div",{className:"overflow-hidden rounded-lg border border-[#
667E5E7EB] print-heatmap-wrapper",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-[#E5E7EB] bg-[#F9FAFB]",children:[c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"Question"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"Dimension"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"AI Readiness Score"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground w-1/5"}),c.jsx("th",{className:"px-4 py-2 text-left font-medium text-muted-foreground",children:"AI Readiness Zone"})]})}),c.jsx("tbody",{children:ht.map(ct=>{const qe=ct.displayScore,wt=ct.rc?qm(ct.key,qe,"leaderSelf"):null,St=ct.rc?null:Xm(ct.key,qe,"leaderSelf"),at=ct.rc?"transparent":qe<2.5?"#FEF2F2":qe<4?"#FFFBEB":qe<5.3?"#F0FDF4":"#EFF6FF",Ot=ct.rc?"#D1D5DB":qe<2.5?"#FCA5A5":qe<4?"#FCD34D":qe<5.3?"#86EFAC":"#93C5FD";return c.jsxs("tr",{className:"border-b border-[#E5E7EB] last:border-b-0",style:{backgroundColor:at,pageBreakInside:"avoid",breakInside:"avoid"},children:[c.jsxs("td",{className:"px-4 py-2 text-foreground",children:[c.jsx("span",{children:ct.text}),ct.rc&&c.jsx("span",{className:"ml-2 inline-flex items-center",style:{backgroundColor:"#F3F4F6",color:"#6B7280",fontSize:"11px",borderRadius:"4px",padding:"2px 5px"},children:"RC"}),wt&&c.jsx("p",{className:"mt-1 text-xs leading-relaxed",style:{color:"#6B7280"},children:wt}),St&&c.jsx("p",{className:"mt-1 text-xs leading-relaxed",style:{color:"#6B7280"},children:St})]}),c.jsx("td",{className:"px-4 py-2",children:c.jsx("span",{style:{color:"#6B7280",fontSize:"13px"},children:ct.dim})}),c.jsx("td",{className:"px-4 py-2 font-semibold text-foreground",children:qe.toFixed(1)}),c.jsx("td",{className:"px-4 py-2",children:c.jsx("div",{className:"h-2 w-full overflow-hidden rounded-full bg-[#E5E7EB]",children:c.jsx("div",{className:"h-full rounded-full",style:{width:`${(qe-1)/5*100}%`,backgroundColor:Ot}})})}),c.jsx("td",{className:"px-4 py-2",children:c.jsx(zc,{label:br(qe)})})]},ct.key)})})]})})]}):c.jsx("button",{onClick:()=>dr(!0),className:"mt-3 rounded-md bg-[#FFC100] px-4 py-2 text-sm font-medium text-[#1A1918]",children:"View My Leadership Details"})]})})(),le.length>1&&c.jsx(Jf,{rounds:le,title:"Your Growth Journey",style:{paddingBottom:"80px"}})]}),(()=>{const Ee=UI(Qe.archetype,Qe.items,Qe.av,Qe.es),ht=RI(Ee).replaceMoves||a6e[Qe.archetype];return c.jsxs("section",{ref:E,className:"rounded-lg border border-[#E5E7EB] bg-card p-6",children:[c.jsx("h2",{className:"mb-1 text-lg font-bold text-foreground",children:"Your Next Three Moves"}),c.jsx("p",{className:"mb-4 text-sm italic",style:{color:"#6B7280"},children:"These actions are for your own development as an AI-ready leader. They are separate from your team coaching moves above."}),c.jsx("p",{className:"mb-4 text-sm italic text-[#374151]",children:ht.heading}),c.jsx("div",{className:"space-y-3",children:ht.moves.map((Pe,ct)=>c.jsxs("div",{className:"flex gap-4 rounded-lg bg-white p-4",style:{borderLeft:"4px solid #FFC100",borderRadius:"8px"},children:[c.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[#FFC100] text-sm font-bold text-[#1A1918]",children:ct+1}),c.jsx("p",{className:"text-sm leading-relaxed text-[#374151]",children:Pe})]},ct))}),c.jsx("p",{className:"mt-6 text-sm italic",style:{color:"#6B7280",fontSize:"14px"},children:"Every score on this report has room to grow. Your job is not to be perfect. It is to be further along than you were. This report is not a grade. It is a starting point. The only direction from here is onwards and upwards."})]})})(),c.jsx("div",{ref:B,className:"flex justify-center pt-4",children:c.jsx(Ac,{onClick:()=>Q(),isGenerating:F})}),c.jsxs("footer",{ref:_,className:"mt-12 border-t border-[#E5E7EB] pt-6 pb-4 text-center print:hidden",children:[c.jsxs("p",{style:{fontSize:"12px",color:"#6B7280"},children:[c.jsx("a",{href:"https://flipfactor.ai",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"flipfactor.ai"})," | Contact us: ",c.jsx("a",{href:"mailto:FlipFactor™@flipwork.ai",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"FlipFactor™@flipwork.ai"})," | © 2026 FlipWork. All rights reserved."]}
667),c.jsx("p",{style:{fontSize:"10px",color:"#9CA3AF",fontStyle:"italic",marginTop:"6px"},children:"This report is for professional development purposes only and does not constitute career, legal, or psychological advice."}),c.jsxs("p",{style:{fontSize:"10px",color:"#9CA3AF",fontStyle:"italic",marginTop:"4px"},children:["The FlipFactor™ framework, assessment questions, archetypes, scoring methodology, and all associated content are the proprietary intellectual property of ",c.jsx("a",{href:"https://www.flipwork.ai",target:"_blank",rel:"noopener noreferrer",className:"footer-link",children:"FlipWork, Inc."})," Unauthorized reproduction, distribution, or replication in any form is prohibited."]})]})]})})},MN=Uk("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 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 hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),wr=S.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},o)=>{const a=n?FX:"button";return c.jsx(a,{className:Jt(MN({variant:t,size:r,className:e})),ref:o,...i})});wr.displayName="Button";const Yi=S.forwardRef(({className:e,type:t,...r},n)=>c.jsx("input",{type:t,className:Jt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));Yi.displayName="Input";var h6e="Label",eW=S.forwardRef((e,t)=>c.jsx(Or.label,{...e,ref:t,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));eW.displayName=h6e;var tW=eW;const f6e=Uk("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Kr=S.forwardRef(({className:e,...t},r)=>c.jsx(tW,{ref:r,className:Jt(f6e(),e),...t}));Kr.displayName=tW.displayName;const Qo=S.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:Jt("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Qo.displayName="Card";const rW=S.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:Jt("flex flex-col space-y-1.5 p-6",e),...t}));rW.displayName="CardHeader";const nW=S.forwardRef(({className:e,...t},r)=>c.jsx("h3",{ref:r,className:Jt("text-2xl font-semibold leading-none tracking-tight",e),...t}));nW.displayName="CardTitle";const p6e=S.forwardRef(({className:e,...t},r)=>c.jsx("p",{ref:r,className:Jt("text-sm text-muted-foreground",e),...t}));p6e.displayName="CardDescription";const Mo=S.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:Jt("p-6 pt-0",e),...t}));Mo.displayName="CardContent";const g6e=S.forwardRef(({className:e,...t},r)=>c.jsx("div",{ref:r,className:Jt("flex items-center p-6 pt-0",e),...t}));g6e.displayName="CardFooter";function m6e(){const[e,t]=S.useState(""),[r,n]=S.useState(""),[i,o]=S.useState(!1),a=gc(),{toast:s}=hc(),l=async A=>{A.preventDefault(),o(!0);const{error:u}=await Tt.auth.signInWithPassword({email:e,password:r});o(!1),u?s({title:"Login failed",description:u.message,variant:"destructive"}):a("/admin")};return c.jsx("div",{className:"min-h-screen bg-muted flex items-center justify-center p-4",children:c.jsxs(Qo,{className:"w-full max-w-md",children:[c.jsxs(rW,{className:"text-center space-y-4",children:[c.jsx("img",{src:Bn,alt:"FlipWork",className:"h-10 mx-auto"}),c.jsx(nW,{className:"text-xl font-bold text-foreground",children:"Admin Login"})]}),c.jsx(Mo,{children:c.jsxs("form",{onSubmit:l,className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{htmlFor:"email",children:"Email"}
vendor: 2,668 bytes, line 667
667),c.jsx(Yi,{id:"email",type:"email",value:e,onChange:A=>t(A.target.value),required:!0,placeholder:"[email protected]"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{htmlFor:"password",children:"Password"}),c.jsx(Yi,{id:"password",type:"password",value:r,onChange:A=>n(A.target.value),required:!0})]}),c.jsx(wr,{type:"submit",disabled:i,className:"w-full bg-primary text-primary-foreground hover:bg-primary/90",children:i?"Signing in…":"Sign In"})]})})]})})}const $N=S.forwardRef(({className:e,...t},r)=>c.jsx("textarea",{className:Jt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));$N.displayName="Textarea";function iW(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var H2="Switch",[y6e,vQe]=Rl(H2),[v6e,w6e]=y6e(H2),oW=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:i,defaultChecked:o,required:a,disabled:s,value:l="on",onCheckedChange:A,form:u,...d}=e,[h,f]=S.useState(null),g=pn(t,b=>f(b)),p=S.useRef(!1),v=h?u||!!h.closest("form"):!0,[m,w]=Mf({prop:i,defaultProp:o??!1,onChange:A,caller:H2});return c.jsxs(v6e,{scope:r,checked:m,disabled:s,children:[c.jsx(Or.button,{type:"button",role:"switch","aria-checked":m,"aria-required":a,"data-state":AW(m),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:g,onClick:cr(e.onClick,b=>{w(E=>!E),v&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})}),v&&c.jsx(lW,{control:h,bubbles:!p.current,name:n,value:l,checked:m,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});oW.displayName=H2;var aW="SwitchThumb",sW=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,i=w6e(aW,r);return c.jsx(Or.span,{"data-state":AW(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t})});sW.displayName=aW;var b6e="SwitchBubbleInput",lW=S.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...i},o)=>{const a=S.useRef(null),s=pn(a,o),l=iW(r),A=Gk(t);return S.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&f){const g=new Event("click",{bubbles:n});f.call(u,r),u.dispatchEvent(g)}},[l,r,n]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:s,style:{...i.style,...A,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});
vendor: 4,470 bytes, line 667
667lW.displayName=b6e;function AW(e){return e?"checked":"unchecked"}var cW=oW,x6e=sW;const Bl=S.forwardRef(({className:e,...t},r)=>c.jsx(cW,{className:Jt("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:r,children:c.jsx(x6e,{className:Jt("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Bl.displayName=cW.displayName;var K2="Dialog",[uW,dW]=Rl(K2),[B6e,Ya]=uW(K2),hW=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,s=S.useRef(null),l=S.useRef(null),[A,u]=Mf({prop:n,defaultProp:i??!1,onChange:o,caller:K2});return c.jsx(B6e,{scope:t,triggerRef:s,contentRef:l,contentId:Hg(),titleId:Hg(),descriptionId:Hg(),open:A,onOpenChange:u,onOpenToggle:S.useCallback(()=>u(d=>!d),[u]),modal:a,children:r})};hW.displayName=K2;var fW="DialogTrigger",pW=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=Ya(fW,r),o=pn(t,i.triggerRef);return c.jsx(Or.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":VN(i.open),...n,ref:o,onClick:cr(e.onClick,i.onOpenToggle)})});pW.displayName=fW;var HN="DialogPortal",[E6e,gW]=uW(HN,{forceMount:void 0}),mW=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=Ya(HN,t);return c.jsx(E6e,{scope:t,forceMount:r,children:S.Children.map(n,a=>c.jsx(Dl,{present:r||o.open,children:c.jsx(mx,{asChild:!0,container:i,children:a})}))})};mW.displayName=HN;var ex="DialogOverlay",yW=S.forwardRef((e,t)=>{const r=gW(ex,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=Ya(ex,e.__scopeDialog);return o.modal?c.jsx(Dl,{present:n||o.open,children:c.jsx(S6e,{...i,ref:t})}):null});yW.displayName=ex;var _6e=af("DialogOverlay.RemoveScroll"),S6e=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=Ya(ex,r);return c.jsx(NF,{as:_6e,allowPinchZoom:!0,shards:[i.contentRef],children:c.jsx(Or.div,{"data-state":VN(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Mu="DialogContent",vW=S.forwardRef((e,t)=>{const r=gW(Mu,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=Ya(Mu,e.__scopeDialog);return c.jsx(Dl,{present:n||o.open,children:o.modal?c.jsx(C6e,{...i,ref:t}):c.jsx(I6e,{...i,ref:t})})});vW.displayName=Mu;var C6e=S.forwardRef((e,t)=>{const r=Ya(Mu,e.__scopeDialog),n=S.useRef(null),i=pn(t,r.contentRef,n);return S.useEffect(()=>{const o=n.current;if(o)return q7(o)},[]),c.jsx(wW,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:cr(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:cr(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&o.preventDefault()}),onFocusOutside:cr(e.onFocusOutside,o=>o.preventDefault())})}),I6e=S.forwardRef((e,t)=>{const r=Ya(Mu,e.__scopeDialog),n=S.useRef(!1),i=S.useRef(!1);return c.jsx(wW,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,o),o.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),o.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:o=>{var l,A;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;((A=r.triggerRef.current)==null?void 0:A.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),wW=S.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,s=Ya(Mu,r),l=S.useRef(null),A=pn(t,l);return W7(),c.jsxs(c.Fragment,{children:[c.jsx(FF,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:c.jsx(My,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":VN(s.open),...a,ref:A,onDismiss:()=>s.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(F6e,{titleId:s.titleId}),c.jsx(T6e,{contentRef:l,descriptionId:s.descriptionId})]})]})}),KN="DialogTitle",bW=S.forwardRef((e,t)=>
667{const{__scopeDialog:r,...n}=e,i=Ya(KN,r);return c.jsx(Or.h2,{id:i.titleId,...n,ref:t})});bW.displayName=KN;var xW="DialogDescription",BW=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=Ya(xW,r);return c.jsx(Or.p,{id:i.descriptionId,...n,ref:t})});BW.displayName=xW;var EW="DialogClose",_W=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=Ya(EW,r);return c.jsx(Or.button,{type:"button",...n,ref:t,onClick:cr(e.onClick,()=>i.onOpenChange(!1))})});_W.displayName=EW;function VN(e){return e?"open":"closed"}var SW="DialogTitleWarning",[k6e,CW]=IX(SW,{contentName:Mu,titleName:KN,docsSlug:"dialog"}),F6e=({titleId:e})=>{const t=CW(SW),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
668
669If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
670
671For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return S.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},N6e="DialogDescriptionWarning",T6e=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${CW(N6e).contentName}}.`;return S.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},IW=hW,O6e=pW,kW=mW,zN=yW,WN=vW,GN=bW,YN=BW,qN=_W,FW="AlertDialog",[j6e,wQe]=Rl(FW,[dW]),Kl=dW(),NW=e=>{const{__scopeAlertDialog:t,...r}=e,n=Kl(t);return c.jsx(IW,{...n,...r,modal:!0})};NW.displayName=FW;var P6e="AlertDialogTrigger",TW=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=Kl(r);return c.jsx(O6e,{...i,...n,ref:t})});TW.displayName=P6e;var L6e="AlertDialogPortal",OW=e=>{const{__scopeAlertDialog:t,...r}=e,n=Kl(t);return c.jsx(kW,{...n,...r})};OW.displayName=L6e;var U6e="AlertDialogOverlay",jW=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=Kl(r);return c.jsx(zN,{...i,...n,ref:t})});jW.displayName=U6e;var Hh="AlertDialogContent",[R6e,D6e]=j6e(Hh),Q6e=BM("AlertDialogContent"),PW=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...i}=e,o=Kl(r),a=S.useRef(null),s=pn(t,a),l=S.useRef(null);return c.jsx(k6e,{contentName:Hh,titleName:LW,docsSlug:"alert-dialog",children:c.jsx(R6e,{scope:r,cancelRef:l,children:c.jsxs(WN,{role:"alertdialog",...o,...i,ref:s,onOpenAutoFocus:cr(i.onOpenAutoFocus,A=>{var u;A.preventDefault(),(u=l.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:A=>A.preventDefault(),onInteractOutside:A=>A.preventDefault(),children:[c.jsx(Q6e,{children:n}),c.jsx($6e,{contentRef:a})]})})})});PW.displayName=Hh;var LW="AlertDialogTitle",UW=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=Kl(r);return c.jsx(GN,{...i,...n,ref:t})});UW.displayName=LW;var RW="AlertDialogDescription",DW=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=Kl(r);return c.jsx(YN,{...i,...n,ref:t})});DW.displayName=RW;var M6e="AlertDialogAction",QW=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=Kl(r);return c.jsx(qN,{...i,...n,ref:t})});QW.displayName=M6e;var MW="AlertDialogCancel",$W=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:i}=D6e(MW,r),o=Kl(r),a=pn(t,i);return c.jsx(qN,{...o,...n,ref:a})});$W.displayName=MW;var $6e=({contentRef:e})=>{const t=`\`${Hh}\` requires a description for the component to be accessible for screen reader users.
672
673You can add a description to the \`${Hh}\` by passing a \`${RW}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
674
675Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Hh}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
676
677For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return S.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},H6e=NW,K6e=TW,V6e=OW,HW=jW,KW=PW,VW=QW,zW=$W,WW=UW,GW=DW;const YW=H6e,qW=K6e,z6e=V6e,XW=S.forwardRef(({className:e,...t},r)=>c.jsx(HW,{className:Jt("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,ref:r}));XW.displayName=HW.displayName;const XN=S.forwardRef(({className:e,...t},r)=>c.jsxs(z6e,{children:[c.jsx(XW,{}),c.jsx(KW,{ref:r,className:Jt("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:rou
677nded-lg",e),...t})]}));XN.displayName=KW.displayName;const JN=({className:e,...t})=>c.jsx("div",{className:Jt("flex flex-col space-y-2 text-center sm:text-left",e),...t});JN.displayName="AlertDialogHeader";const ZN=({className:e,...t})=>c.jsx("div",{className:Jt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ZN.displayName="AlertDialogFooter";const eT=S.forwardRef(({className:e,...t},r)=>c.jsx(WW,{ref:r,className:Jt("text-lg font-semibold",e),...t}));eT.displayName=WW.displayName;const tT=S.forwardRef(({className:e,...t},r)=>c.jsx(GW,{ref:r,className:Jt("text-sm text-muted-foreground",e),...t}));tT.displayName=GW.displayName;const rT=S.forwardRef(({className:e,...t},r)=>c.jsx(VW,{ref:r,className:Jt(MN(),e),...t}));rT.displayName=VW.displayName;const nT=S.forwardRef(({className:e,...t},r)=>c.jsx(zW,{ref:r,className:Jt(MN({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));nT.displayName=zW.displayName;var V2="Checkbox",[W6e,bQe]=Rl(V2),[G6e,iT]=W6e(V2);function Y6e(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:i,disabled:o,form:a,name:s,onCheckedChange:l,required:A,value:u="on",internal_do_not_use_render:d}=e,[h,f]=Mf({prop:r,defaultProp:i??!1,onChange:l,caller:V2}),[g,p]=S.useState(null),[v,m]=S.useState(null),w=S.useRef(!1),b=g?!!a||!!g.closest("form"):!0,E={checked:h,disabled:o,setChecked:f,control:g,setControl:p,name:s,form:a,value:u,hasConsumerStoppedPropagationRef:w,required:A,defaultChecked:rc(i)?!1:i,isFormControl:b,bubbleInput:v,setBubbleInput:m};return c.jsx(G6e,{scope:t,...E,children:q6e(d)?d(E):n})}var JW="CheckboxTrigger",ZW=S.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},i)=>{const{control:o,value:a,disabled:s,checked:l,required:A,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:h,isFormControl:f,bubbleInput:g}=iT(JW,e),p=pn(i,u),v=S.useRef(l);return S.useEffect(()=>{const m=o==null?void 0:o.form;if(m){const w=()=>d(v.current);return m.addEventListener("reset",w),()=>m.removeEventListener("reset",w)}},[o,d]),c.jsx(Or.button,{type:"button",role:"checkbox","aria-checked":rc(l)?"mixed":l,"aria-required":A,"data-state":iG(l),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:p,onKeyDown:cr(t,m=>{m.key==="Enter"&&m.preventDefault()}),onClick:cr(r,m=>{d(w=>rc(w)?!0:!w),g&&f&&(h.current=m.isPropagationStopped(),h.current||m.stopPropagation())})})});ZW.displayName=JW;var oT=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:o,required:a,disabled:s,value:l,onCheckedChange:A,form:u,...d}=e;return c.jsx(Y6e,{__scopeCheckbox:r,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:A,name:n,form:u,value:l,internal_do_not_use_render:({isFormControl:h})=>c.jsxs(c.Fragment,{children:[c.jsx(ZW,{...d,ref:t,__scopeCheckbox:r}),h&&c.jsx(nG,{__scopeCheckbox:r})]})})});oT.displayName=V2;var eG="CheckboxIndicator",tG=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,o=iT(eG,r);return c.jsx(Dl,{present:n||rc(o.checked)||o.checked===!0,children:c.jsx(Or.span,{"data-state":iG(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});tG.displayName=eG;var rG="CheckboxBubbleInput",nG=S.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:o,defaultChecked:a,required:s,disabled:l,name:A,value:u,form:d,bubbleInput:h,setBubbleInput:f}=iT(rG,e),g=pn(r,f),p=iW(o),v=Gk(n);S.useEffect(()=>{const w=h;if(!w)return;const b=window.HTMLInputElement.prototype,B=Object.getOwnPropertyDescriptor(b,"checked").set,_=!i.current;if(p!==o&&B){const F=new Event("click",{bubbles:_});w.indeterminate=rc(o),B.call(w,rc(o)?!1:o),w.dispatchEvent(F)}},[h,p,o,i]);const m=S.useRef(rc(o)?!1:o);return c.jsx(Or.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??m.current,required:s,disabled:l,name:A,value:u,form:d,...t,tabIndex:-1,ref:g,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});nG.displayName=rG;function q6e(e){return typeof e=="function"}function rc(e){return e==="indeterminate"}function iG(e){return rc(e)?"indeterminate":e?"checked":"unchecked"}const oG=S.forwardRef(({className:e,...t},r)=>c.jsx(oT,{ref:r,className:Jt("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:c.jsx(tG,{className:Jt("flex items-center justify-center text-current"),children:c.jsx(qM,{className:"h-4 w-4"})})}));oG.displayName=oT.displayName;const X6e=IW,J6e=kW,aG=S.forwardRef(({className:e,...t},r)=>c.jsx(zN,{ref:r,className:Jt("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}));aG.displayName=zN.displayName;const sG=S.forwardRef(({className:e,children:t,...r},n)=>c.jsxs(J6e,{children:[c.jsx(aG,{}),c.jsxs(WN,{ref:n,className:Jt("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:rou
677nded-lg",e),...r,children:[t,c.jsxs(qN,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[c.jsx(r8,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));sG.displayName=WN.displayName;const lG=({className:e,...t})=>c.jsx("div",{className:Jt("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});lG.displayName="DialogHeader";const AG=({className:e,...t})=>c.jsx("div",{className:Jt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});AG.displayName="DialogFooter";const cG=S.forwardRef(({className:e,...t},r)=>c.jsx(GN,{ref:r,className:Jt("text-lg font-semibold leading-none tracking-tight",e),...t}));cG.displayName=GN.displayName;const uG=S.forwardRef(({className:e,...t},r)=>c.jsx(YN,{ref:r,className:Jt("text-sm text-muted-foreground",e),...t}));uG.displayName=YN.displayName;function Z6e(){const{state:e,user:t,signOut:r}=DN(),n=gc();return e==="loading"?c.jsx("div",{className:"min-h-screen bg-muted flex items-center justify-center",children:c.jsx("p",{className:"text-muted-foreground text-lg",children:"Loading…"})}):e==="unauthenticated"?(n("/admin/login"),null):e==="unauthorized"?c.jsx("div",{className:"min-h-screen bg-muted flex items-center justify-center p-4",children:c.jsx(Qo,{className:"w-full max-w-lg text-center",children:c.jsxs(Mo,{className:"py-12 space-y-4",children:[c.jsx("h2",{className:"text-xl font-bold text-foreground",children:"Access Denied"}),c.jsxs("p",{className:"text-muted-foreground",children:["You do not have permission to access this page. Contact"," ",c.jsx("a",{href:"mailto:FlipFactor™@flipwork.ai",className:"underline text-primary",children:"FlipFactor™@flipwork.ai"})," ","if you believe this is an error."]}),c.jsx(wr,{variant:"outline",onClick:r,children:"Sign Out"})]})})}):c.jsx(eQe,{user:t,onSignOut:r})}function eQe({user:e,onSignOut:t}){const[r,n]=S.useState("list"),[i,o]=S.useState(null),[a,s]=S.useState(null),l=u=>{o(u),n("edit")},A=u=>{s(u),n("cohort-edit")};return c.jsxs("div",{className:"min-h-screen bg-muted",children:[c.jsxs("header",{className:"bg-card border-b border-border px-6 py-4 flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("img",{src:Bn,alt:"FlipWork",className:"h-8"}),c.jsx("h1",{className:"text-lg font-bold text-foreground",children:"Admin Panel"})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:"text-sm text-muted-foreground",children:e.email}),c.jsxs(wr,{variant:"ghost",size:"sm",onClick:t,children:[c.jsx(FJ,{className:"h-4 w-4 mr-1"})," Sign Out"]})]})]}),c.jsxs("main",{className:"max-w-5xl mx-auto p-6",children:[r==="list"&&c.jsxs("div",{className:"space-y-12",children:[c.jsx(tQe,{onAdd:()=>n("add"),onEdit:l}),c.jsx(rQe,{onAdd:()=>n("cohort-add"),onEdit:A}),c.jsx(nQe,{}),c.jsx(oQe,{}),c.jsx(iQe,{})]}),r==="add"&&c.jsx(qD,{onCancel:()=>n("list"),onSaved:()=>n("list")}),r==="edit"&&i&&c.jsx(qD,{company:i,onCancel:()=>n("list"),onSaved:()=>n("list")}),r==="cohort-add"&&c.jsx(JD,{onCancel:()=>n("list"),onSaved:()=>n("list")}),r==="cohort-edit"&&a&&c.jsx(JD,{cohort:a,onCancel:()=>n("list"),onSaved:()=>n("list")})]})]})}function tQe({onAdd:e,onEdit:t}){const[r,n]=S.useState([]),[i,o]=S.useState(!0),[a,s]=S.useState(!1),[l,A]=S.useState(null),[u,d]=S.useState(null),[h,f]=S.useState(!1),{toast:g}=hc(),p=O=>{const k=O.split(/\r?\n/).map(V=>V.trim()).filter(V=>V.length>0);if(k.length===0)return{error:"Invalid headers. Expected: Employee_Email, Employee_First_Name, Employee_Last_Name, Role_Level, Manager_Email, Department"};const j=k[0].split(",").map(V=>V.trim());if(["Employee_Email","Employee_First_Name","Employee_Last_Name","Role_Level","Manager_Email","Department"].filter(V=>!j.includes(V)).length>0)return{error:"Invalid headers. Expected: Employee_Email, Employee_First_Name, Employee_Last_Name, Role_Level, Manager_Email, Department"};const U={employee_email:j.indexOf("Employee_Email"),first_name:j.indexOf("Employee_First_Name"),last_name:j.indexOf("Employee_Last_Name"),role_level:j.indexOf("Role_Level"),manager_email:j.indexOf("Manager_Email"),department:j.indexOf("Department")};let R=0,G=0;const K=[];for(let V=1;V<k.length;V++){const Q=k[V].split(",").map(q=>q.trim()),H={employee_email:(Q[U.employee_email]||"").toLowerCase(),first_name:Q[U.first_name]||"",last_name:Q[U.last_name]||"",role_level:Q[U.role_level]||"",manager_email:(Q[U.manager_email]||"").toLowerCase(),department:Q[U.department]||""};H.employee_email?(K.push(H),R++):G++}return{valid:R,skipped:G,rows:K}},v=O=>{var I;const k=(I=O.target.files)==null?void 0:I[0];if(!k)return;const j=new FileReader;j.onload=()=>{const T=String(j.result||""),U=p(T);"error"in U?(g({title:"Invalid CSV",description:U.error,variant:"destructive"}),d(null)):d(U)},j.readAsText(k)},m=async()=>
677{if(!l||!u||u.rows.length===0)return;f(!0);const{error:O}=await Tt.from("company_roster").delete().eq("company_id",l.id);if(O){g({title:"Error",description:O.message,variant:"destructive"}),f(!1);return}const{error:k}=await Tt.from("company_roster").insert(u.rows.map(j=>({company_id:l.id,employee_email:j.employee_email,manager_email:j.manager_email||null,first_name:j.first_name||null,last_name:j.last_name||null,role_level:j.role_level||null,department:j.department||null})));if(k){g({title:"Error uploading roster",description:k.message,variant:"destructive"}),f(!1);return}g({title:"Roster uploaded",description:`${u.rows.length} rows loaded for ${l.company_name}`}),A(null),d(null),f(!1)},w=async()=>{o(!0);const{data:O,error:k}=await Tt.from("company_registry").select("id, company_name, slug, leader_emails, status, created_at, updated_at, leader_reports_unlocked, enable_drilldown_leaders, enable_drilldown_org, cohort_id, root_email").order("created_at",{ascending:!1});k?g({title:"Error loading companies",description:k.message,variant:"destructive"}):n(O||[]),o(!1)};S.useEffect(()=>{w()},[]);const b=async O=>{const k=O.status==="active"?"archived":"active",{error:j}=await Tt.from("company_registry").update({status:k}).eq("id",O.id);j?g({title:"Error",description:j.message,variant:"destructive"}):(g({title:`Company ${k==="archived"?"archived":"restored"}`}),w())},E=async O=>{const{error:k}=await Tt.from("company_registry").delete().eq("id",O.id);k?g({title:"Error",description:k.message,variant:"destructive"}):(g({title:"Company deleted"}),w())},B=O=>{navigator.clipboard.writeText(`https://flipfactor.ai/company-dashboard/${O}`),g({title:"URL copied to clipboard"})},_=(O,k)=>{navigator.clipboard.writeText(`https://flipfactor.ai/diagnostic/${O}?cohort_id=${encodeURIComponent(k)}`),g({title:"URL copied to clipboard"})},F=a?r:r.filter(O=>O.status==="active");return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"Companies"}),c.jsxs(wr,{onClick:e,className:"bg-primary text-primary-foreground hover:bg-primary/90",children:[c.jsx(ZM,{className:"h-4 w-4 mr-1"})," Add New Company"]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Bl,{checked:a,onCheckedChange:s}),c.jsx(Kr,{className:"text-sm text-muted-foreground",children:"Show archived companies"})]}),i?c.jsx("p",{className:"text-muted-foreground",children:"Loading…"}):F.length===0?c.jsx(Qo,{children:c.jsx(Mo,{className:"py-12 text-center text-muted-foreground",children:"No companies found. Add your first company to get started."})}):c.jsx("div",{className:"grid gap-4",children:F.map(O=>c.jsx(Qo,{className:O.status==="archived"?"opacity-50":"",children:c.jsx(Mo,{className:"py-4 px-6",children:c.jsxs("div",{className:"flex items-start justify-between gap-4",children:[c.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h3",{className:"font-semibold text-foreground text-lg",children:O.company_name}),O.status==="archived"&&c.jsx("span",{className:"text-xs bg-muted text-muted-foreground px-2 py-0.5 rounded",children:"Archived"})]}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Slug: ",c.jsx("code",{className:"bg-muted px-1 rounded",children:O.slug})]}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:[O.leader_emails.length," leader email",O.leader_emails.length!==1?"s":""]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Created ",new Date(O.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]}),c.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[c.jsxs("a",{href:`/company-dashboard/${O.slug}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline",children:["flipfactor.ai/company-dashboard/",O.slug]}),c.jsx("button",{onClick:()=>B(O.slug),className:"text-muted-foreground hover:text-foreground",title:"Copy URL",children:c.jsx(Es,{className:"h-3.5 w-3.5"})})]}),O.cohort_id&&c.jsxs("div",{className:"mt-1 space-y-1",children:[c.jsx("p",{className:"text-xs text-muted-foreground",children:"Diagnostic Link(s)"}),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap flex-shrink-0",children:"Employee Diagnostic:"}),c.jsxs("a",{href:`https://flipfactor.ai/diagnostic/employee?cohort_id=${encodeURIComponent(O.cohort_id)}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline truncate min-w-0",children:["flipfactor.ai/diagnostic/employee?cohort_id=",O.cohort_id]}),c.jsx("button",{onClick:()=>_("employee",O.cohort_id),className:"text-muted-foreground hover:text-foreground flex-shrink-0",title:"Copy URL",children:c.jsx(Es,{className:"h-3.5 w-3.5"})})]}),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap flex-shrink-0",children:"Leader Diagnostic:"}),c.jsxs("a",{href:`https://flipfactor.ai/diagnostic/leader?cohort_id=${encodeURIComponent(O.cohort_id)}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline truncate min-w-0",children:["flipfactor.ai/diagnostic/leader?cohort_id=",O.cohort_id]}),c.jsx("button",{onClick:()=>_("leader",O.cohort_id),className:"text-muted-foreground hover:text-foreground flex-shrink-0",title:"Copy URL",children:c.jsx(Es,{className:"h-3.5 w-3.5"})})]})]}),c.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[c.jsx(Bl,{checked:O.leader_reports_unlocked,onCheckedChange:async k=>{const{error:j}=await Tt.from("company_registry").update({leader_reports_unlocked:k}
677).eq("id",O.id);j?g({title:"Error",description:j.message,variant:"destructive"}):(g({title:"Leader report access updated"}),w())}}),O.leader_reports_unlocked?c.jsxs("span",{className:"flex items-center gap-1 text-xs text-foreground",children:[c.jsx(JM,{className:"h-3.5 w-3.5"})," Leader reports unlocked"]}):c.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[c.jsx(Rk,{className:"h-3.5 w-3.5"})," Leader reports locked"]})]}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:O.leader_reports_unlocked?"Unlocked: real names and emails are visible. Use only when sharing privately with the executive who is authorized to identify their people.":"Locked: names and emails are hidden. Safe for group presentations and public display."})]}),c.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[c.jsx("a",{href:`/company-dashboard/${O.slug}`,target:"_blank",rel:"noopener noreferrer",children:c.jsxs(wr,{variant:"outline",size:"sm",children:[c.jsx(XM,{className:"h-3.5 w-3.5 mr-1"})," View Dashboard"]})}),c.jsxs(wr,{variant:"outline",size:"sm",onClick:()=>t(O),children:[c.jsx(Dk,{className:"h-3.5 w-3.5 mr-1"})," Edit"]}),c.jsxs(wr,{variant:"outline",size:"sm",onClick:()=>{A(O),d(null)},children:[c.jsx(NJ,{className:"h-3.5 w-3.5 mr-1"})," Upload Roster"]}),c.jsxs(wr,{variant:"outline",size:"sm",onClick:()=>b(O),children:[c.jsx(YM,{className:"h-3.5 w-3.5 mr-1"}),O.status==="archived"?"Restore":"Archive"]}),c.jsxs(YW,{children:[c.jsx(qW,{asChild:!0,children:c.jsxs(wr,{variant:"outline",size:"sm",className:"text-destructive border-destructive/30 hover:bg-destructive/10",children:[c.jsx(e8,{className:"h-3.5 w-3.5 mr-1"})," Delete"]})}),c.jsxs(XN,{children:[c.jsxs(JN,{children:[c.jsx(eT,{children:"Delete Company"}),c.jsxs(tT,{children:["This will permanently delete ",c.jsx("strong",{children:O.company_name})," and cannot be undone. Are you sure?"]})]}),c.jsxs(ZN,{children:[c.jsx(nT,{children:"Cancel"}),c.jsx(rT,{onClick:()=>E(O),className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]})]})]})]})]})})},O.id))}),c.jsx(X6e,{open:l!==null,onOpenChange:O=>{!O&&!h&&(A(null),d(null))},children:c.jsxs(sG,{children:[c.jsxs(lG,{children:[c.jsxs(cG,{children:["Upload Roster — ",l==null?void 0:l.company_name]}),c.jsx(uG,{children:"Upload a CSV file using the canonical FlipFactor roster template. Existing roster data for this company will be replaced."})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("input",{type:"file",accept:".csv",onChange:v,className:"block w-full text-sm"}),u?c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Found ",u.valid," valid rows.",u.skipped>0?` ${u.skipped} row(s) skipped (missing email).`:""," Ready to upload."]}):c.jsx("p",{className:"text-sm text-muted-foreground",children:"Select a CSV file to continue."})]}),c.jsxs(AG,{children:[c.jsx(wr,{variant:"outline",onClick:()=>{A(null),d(null)},disabled:h,children:"Cancel"}),c.jsx(wr,{onClick:m,disabled:u===null||u.rows.length===0||h,children:h?"Uploading...":`Upload ${(u==null?void 0:u.valid)??0} Rows`})]})]})})]})}function qD({company:e,onCancel:t,onSaved:r}){const n=!!e,[i,o]=S.useState((e==null?void 0:e.company_name)||""),[a,s]=S.useState((e==null?void 0:e.slug)||""),[l,A]=S.useState((e==null?void 0:e.leader_emails.join(`
678`))||""),[u,d]=S.useState((e==null?void 0:e.status)!=="archived"),[h,f]=S.useState(""),[g,p]=S.useState([]),[v,m]=S.useState(!1),[w,b]=S.useState((e==null?void 0:e.enable_drilldown_leaders)??!1),[E,B]=S.useState((e==null?void 0:e.enable_drilldown_org)??!1),[_,F]=S.useState((e==null?void 0:e.cohort_id)||""),[O,k]=S.useState((e==null?void 0:e.root_email)||""),{toast:j}=hc();S.useEffect(()=>{n||(_?s(_.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")):i&&s(i.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")))},[i,_,n]);const I=async G=>{if(!G)return f("Slug is required"),!1;if(!/^[a-z0-9-]+$/.test(G))return f("Slug can only contain lowercase letters, numbers, and hyphens"),!1;const{data:K}=await Tt.from("company_registry").select("id").eq("slug",G).maybeSingle();return K&&(!n||K.id!==(e==null?void 0:e.id))?(f("This slug is already in use. Please choose a different one."),!1):(f(""),!0)},T=G=>{const K=G.split(`
679`).map(H=>
679H.trim()).filter(Boolean),V=[],Q=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;for(const H of K)Q.test(H)||V.push(`Invalid email: ${H}`);return{valid:V.length===0&&K.length>0,parsed:K,errors:V}},U=async()=>{m(!0);const G=await I(a),K=T(l);if(p(K.errors),!G||!K.valid){!K.valid&&K.errors.length===0&&p(["At least one leader email is required"]),m(!1);return}if(n){const{error:V}=await Tt.from("company_registry").update({company_name:i,leader_emails:K.parsed,status:u?"active":"archived",cohort_id:_.trim()||null,root_email:O.trim()||null}).eq("id",e.id);if(V){j({title:"Error saving",description:V.message,variant:"destructive"}),m(!1);return}j({title:"Company updated successfully"})}else{const{error:V}=await Tt.from("company_registry").insert({company_name:i,slug:a,leader_emails:K.parsed,status:u?"active":"archived",cohort_id:_.trim()||null,root_email:O.trim()||null});if(V){j({title:"Error saving",description:V.message,variant:"destructive"}),m(!1);return}j({title:"Company created successfully"})}m(!1),r()},R=()=>{navigator.clipboard.writeText(`https://flipfactor.ai/company-dashboard/${a}`),j({title:"URL copied to clipboard"})};return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs(wr,{variant:"ghost",size:"sm",onClick:t,children:[c.jsx(N1,{className:"h-4 w-4 mr-1"})," Back"]}),c.jsx("h2",{className:"text-2xl font-bold text-foreground",children:n?"Edit Company":"Add New Company"})]}),c.jsx(Qo,{children:c.jsxs(Mo,{className:"py-6 space-y-5",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{htmlFor:"name",children:"Company Name *"}),c.jsx(Yi,{id:"name",value:i,onChange:G=>o(G.target.value),placeholder:"Acme Corp",required:!0})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{htmlFor:"cohortId",children:"Cohort ID"}),c.jsx(Yi,{id:"cohortId",value:_,onChange:G=>F(G.target.value),placeholder:"e.g. GOOG-060426-SLT"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"The passthrough ID from your diagnostic links. When provided, this drives the URL slug."})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{htmlFor:"slug",children:"Slug *"}),n?c.jsxs("div",{children:[c.jsx(Yi,{id:"slug",value:a,disabled:!0,className:"opacity-60"}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Slugs cannot be changed after creation as this would break existing shared links."})]}):c.jsxs("div",{children:[c.jsx(Yi,{id:"slug",value:a,onChange:G=>s(G.target.value),onBlur:()=>I(a),placeholder:"acme-corp"}),h&&c.jsx("p",{className:"text-sm text-destructive mt-1",children:h})]})]}),c.jsxs("div",{className:"bg-muted rounded-md px-4 py-3 flex items-center justify-between",children:[c.jsxs("code",{className:"text-sm text-muted-foreground",children:["flipfactor.ai/company-dashboard/",a||"…"]}),a&&c.jsx("button",{onClick:R,className:"text-muted-foreground hover:text-foreground",title:"Copy URL",children:c.jsx(Es,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{htmlFor:"emails",children:"Leader Emails * (one per line)"}),c.jsx($N,{id:"emails",value:l,onChange:G=>{A(G.target.value),p([])},placeholder:`[email protected]
680[email protected]`,rows:5}),g.map((G,K)=>c.jsx("p",{className:"text-sm text-destructive",children:G},K))]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{htmlFor:"rootEmail",children:"Root Executive Email"}),c.jsx(Yi,{id:"rootEmail",value:O,onChange:G=>k(G.target.value),placeholder:"e.g. [email protected]"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Email of the top-level leader. The org tree builds from this person downward."})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(Bl,{checked:u,onCheckedChange:d}),c.jsx(Kr,{className:"text-sm",children:u?"Active":"Archived"})]}),n&&c.jsxs("div",{className:"bg-muted rounded-md px-4 py-3 flex items-center gap-2",children:[e!=null&&e.leader_reports_unlocked?c.jsxs(c.Fragment,{children:[c.jsx(JM,{className:"h-4 w-4 text-foreground"}),c.jsx("span",{className:"text-sm text-foreground",children:"Leader reports are unlocked for this company"})]}):c.jsxs(c.Fragment,{children:[c.jsx(Rk,{className:"h-4 w-4 text-muted-foreground"}),c.jsx("span",{className:"text-sm text-muted-foreground",children:"Leader reports are locked for this company"})]}),c.jsx("span",{className:"text-xs text-muted-foreground ml-auto",children:"Toggle from the company list"})]}),n&&c.jsxs("div",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Individual Report Acce
680ss"}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(Bl,{checked:w,onCheckedChange:async G=>{b(G),await Tt.from("company_registry").update({enable_drilldown_leaders:G}).eq("id",e.id)}}),c.jsxs("div",{children:[c.jsx(Kr,{className:"text-sm",children:"Enable individual drill-down for leaders"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"When enabled, leaders can click on any dot in their team scatter plot to open that team member's full individual report."})]})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(Bl,{checked:E,onCheckedChange:async G=>{B(G),await Tt.from("company_registry").update({enable_drilldown_org:G}).eq("id",e.id)}}),c.jsxs("div",{children:[c.jsx(Kr,{className:"text-sm",children:"Enable individual drill-down for org-level viewers"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"When enabled, company-level dashboard viewers can click on any dot in the All People and Teams scatter plots to open that individual's full report."})]})]})]}),c.jsxs("div",{className:"rounded-md px-4 py-3 text-xs",style:{backgroundColor:"#FFFBEB",border:"1px solid #FCD34D",color:"#92400E"},children:[c.jsx(t8,{className:"inline h-3.5 w-3.5 mr-1"}),"Individual drill-down is off by default to protect employee privacy. Enable only when the organization has explicitly authorized leader or executive access to individual diagnostic results."]})]}),c.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[c.jsx(wr,{onClick:U,disabled:v||!i,className:"bg-primary text-primary-foreground hover:bg-primary/90",children:v?"Saving…":n?"Save Changes":"Create Company"}),c.jsx(wr,{variant:"outline",onClick:t,children:"Cancel"})]})]})})]})}function XD(e){const t=e.match(/event-(\d{2})-(\d{2})-(\d{2})/i);if(!t)return"";const r=parseInt(t[1]),n=parseInt(t[2]),i=2e3+parseInt(t[3]);return new Date(i,r-1,n).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function rQe({onAdd:e,onEdit:t}){const[r,n]=S.useState([]),[i,o]=S.useState(!0),[a,s]=S.useState(!1),[l,A]=S.useState({}),{toast:u}=hc(),d=async()=>{o(!0);const{data:w,error:b}=await Tt.from("cohort_registry").select("*").order("created_at",{ascending:!1});b?u({title:"Error loading cohorts",description:b.message,variant:"destructive"}):n(w||[]),o(!1)};S.useEffect(()=>{d()},[]),S.useEffect(()=>{r.length!==0&&(async()=>{const{countCohortParticipants:w}=await Wg(async()=>{const{countCohortParticipants:E}=await Promise.resolve().then(()=>mDe);return{countCohortParticipants:E}},void 0),b={};for(const E of r)try{b[E.cohort_id]=await w(E.cohort_id)}catch{b[E.cohort_id]=0}A(b)})()},[r]);const h=async w=>{const b=w.status==="active"?"archived":"active",{error:E}=await Tt.from("cohort_registry").update({status:b}).eq("id",w.id);E?u({title:"Error",description:E.message,variant:"destructive"}):(u({title:`Cohort ${b==="archived"?"archived":"restored"}`}),d())},f=async w=>{const{error:b}=await Tt.from("cohort_registry").delete().eq("id",w.id);b?u({title:"Error",description:b.message,variant:"destructive"}):(u({title:"Cohort deleted"}),d())},g=w=>{navigator.clipboard.writeText(`https://flipfactor.ai/cohort-dashboard/${w}`),u({title:"URL copied to clipboard"})},p=(w,b)=>{navigator.clipboard.writeText(`https://flipfactor.ai/diagnostic/${w}?cohort_id=${encodeURIComponent(b)}`),u({title:"URL copied to clipboard"})},v=w=>{navigator.clipboard.writeText(w),u({title:"Cohort ID copied to clipboard"})},m=a?r:r.filter(w=>w.status==="active");return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("h2",{className:"text-2xl font-bold text-foreground flex items-center gap-2",children:[c.jsx($g,{className:"h-6 w-6"})," Cohort Reports"]}),c.jsxs(wr,{onClick:e,className:"bg-primary text-primary-foreground hover:bg-primary/90",children:[c.jsx(ZM,{className:"h-4 w-4 mr-1"})," Add New Cohort"]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Bl,{checked:a,onCheckedChange:s}),c.jsx(Kr,{className:"text-sm text-muted-foreground",children:"Show archived cohorts"})]}),i?c.jsx("p",{className:"text-muted-foreground",children:"Loading…"}):m.length===0?c.jsx(Qo,{children:c.jsx(Mo,{className:"py-12 text-center text-muted-foreground",children:"No cohorts found. Add your first cohort to get started."})}):c.jsx("div",{className:"grid gap-4",children:m.map(w=>c.jsx(Qo,{className:w.status==="archived"?"opacity-50":"",children:c.jsx(Mo,{className:"py-4 px-6",children:c.jsxs("div",{className:"flex items-start justify-between gap-4",children:[c.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h3",{className:"font-semibold text-foreground text-lg",children:w.
680cohort_name}),w.status==="archived"&&c.jsx("span",{className:"text-xs bg-muted text-muted-foreground px-2 py-0.5 rounded",children:"Archived"})]}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Cohort ID: ",c.jsx("code",{className:"bg-muted px-1 rounded",children:w.cohort_id})]}),XD(w.cohort_id)&&c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Event Date: ",XD(w.cohort_id)]}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:[l[w.cohort_id]??"…"," participant",(l[w.cohort_id]??0)!==1?"s":""]}),w.description&&c.jsx("p",{className:"text-xs text-muted-foreground italic",children:w.description}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Created ",new Date(w.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]}),c.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[c.jsxs("a",{href:`/cohort-dashboard/${w.cohort_id}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline",children:["flipfactor.ai/cohort-dashboard/",w.cohort_id]}),c.jsx("button",{onClick:()=>g(w.cohort_id),className:"text-muted-foreground hover:text-foreground",title:"Copy URL",children:c.jsx(Es,{className:"h-3.5 w-3.5"})})]}),w.diagnostic_types&&w.diagnostic_types.length>0&&c.jsxs("div",{className:"mt-1 space-y-1",children:[c.jsx("p",{className:"text-xs text-muted-foreground",children:"Diagnostic Link(s)"}),w.diagnostic_types.map(b=>c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap flex-shrink-0",children:[b==="individual"?"Individual":b==="employee"?"Employee":"Leader"," Diagnostic:"]}),c.jsxs("a",{href:`https://flipfactor.ai/diagnostic/${b}?cohort_id=${encodeURIComponent(w.cohort_id)}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline truncate min-w-0",children:["flipfactor.ai/diagnostic/",b,"?cohort_id=",w.cohort_id]}),c.jsx("button",{onClick:()=>p(b,w.cohort_id),className:"text-muted-foreground hover:text-foreground flex-shrink-0",title:"Copy URL",children:c.jsx(Es,{className:"h-3.5 w-3.5"})})]},b)),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("span",{className:"text-xs text-muted-foreground",children:"Cohort ID:"}),c.jsx("code",{className:"text-xs bg-muted px-1 rounded",children:w.cohort_id}),c.jsx("button",{onClick:()=>v(w.cohort_id),className:"text-muted-foreground hover:text-foreground",title:"Copy Cohort ID",children:c.jsx(Es,{className:"h-3.5 w-3.5"})})]})]})]}),c.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[c.jsx("a",{href:`/cohort-dashboard/${w.cohort_id}`,target:"_blank",rel:"noopener noreferrer",children:c.jsxs(wr,{variant:"outline",size:"sm",children:[c.jsx(XM,{className:"h-3.5 w-3.5 mr-1"})," View Dashboard"]})}),c.jsxs(wr,{variant:"outline",size:"sm",onClick:()=>t(w),children:[c.jsx(Dk,{className:"h-3.5 w-3.5 mr-1"})," Edit"]}),c.jsxs(wr,{variant:"outline",size:"sm",onClick:()=>h(w),children:[c.jsx(YM,{className:"h-3.5 w-3.5 mr-1"}),w.status==="archived"?"Restore":"Archive"]}),c.jsxs(YW,{children:[c.jsx(qW,{asChild:!0,children:c.jsxs(wr,{variant:"outline",size:"sm",className:"text-destructive border-destructive/30 hover:bg-destructive/10",children:[c.jsx(e8,{className:"h-3.5 w-3.5 mr-1"})," Delete"]})}),c.jsxs(XN,{children:[c.jsxs(JN,{children:[c.jsx(eT,{children:"Delete Cohort"}),c.jsxs(tT,{children:["This will permanently delete ",c.jsx("strong",{children:w.cohort_name})," and cannot be undone. Are you sure?"]})]}),c.jsxs(ZN,{children:[c.jsx(nT,{children:"Cancel"}),c.jsx(rT,{onClick:()=>f(w),className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]})]})]})]})]})})},w.id))})]})}function JD({cohort:e,onCancel:t,onSaved:r}){const n=!!e,[i,o]=S.useState((e==null?void 0:e.cohort_name)||""),[a,s]=S.useState((e==null?void 0:e.cohort_id)||""),[l,A]=S.useState((e==null?void 0:e.description)||""),[u,d]=S.useState((e==null?void 0:e.diagnostic_types)||[]),[h,f]=S.useState((e==null?void 0:e.status)!=="archived"),[g,p]=S.useState(""),[v,m]=S.useState(!1),{toast:w}=hc(),b=k=>{d(j=>j.includes(k)?j.filter(I=>I!==k):[...j,k])},E=[/^(WEB|SPR)-\d{6}-[A-Z]$/,/^CONF-\d{6}(-[A-Z]{2,5})?$/,/^[A-Z]{2,5}-\d{6}(-[A-Z]{2,5})?$/,/^event-\d{2}-\d{2}-\d{2}$/i],B=k=>{const j=parseInt(k.slice(0,2),10),I=parseInt(k.slice(2,4),10),T=parseInt(k.slice(4,6),10);return j>=1&&j<=12&&I>=1&&I<=31&&T>=20&&T<=29},_=async k=>
680{if(!k)return p("Cohort ID is required"),!1;const j=k.toUpperCase();if(!E.some(G=>G.test(j)))return p("Cohort ID format not recognized. Accepted formats: WEB-032026-A, SPR-040126-A, CONF-032026-LIT, UBER-032026 (with optional descriptor suffix like GOOG-060426-SLT), or legacy event-03-20-26."),!1;const T=j.match(/(\d{6})/),U=k.match(/event-(\d{2})-(\d{2})-(\d{2})/i);if(T){if(!B(T[1]))return p("The date portion must be a valid date (month 01-12, day 01-31, year 20-29)."),!1}else if(U){const G=U[1]+U[2]+U[3];if(!B(G))return p("The date portion must be a valid date (month 01-12, day 01-31, year 20-29)."),!1}const{data:R}=await Tt.from("cohort_registry").select("id").eq("cohort_id",k).maybeSingle();return R&&(!n||R.id!==(e==null?void 0:e.id))?(p("This Cohort ID is already in use."),!1):(p(""),!0)},F=async()=>{if(m(!0),!i.trim()){w({title:"Cohort name is required",variant:"destructive"}),m(!1);return}if(!await _(a)){m(!1);return}if(n){const{error:j}=await Tt.from("cohort_registry").update({cohort_name:i,description:l||null,status:h?"active":"archived",diagnostic_types:u.length?u:null}).eq("id",e.id);if(j){w({title:"Error saving",description:j.message,variant:"destructive"}),m(!1);return}w({title:"Cohort updated successfully"})}else{const{error:j}=await Tt.from("cohort_registry").insert({cohort_name:i,cohort_id:/^event-/i.test(a)?a.replace(/^EVENT-/i,"event-"):a.toUpperCase(),description:l||null,status:h?"active":"archived",diagnostic_types:u.length?u:null});if(j){w({title:"Error saving",description:j.message,variant:"destructive"}),m(!1);return}w({title:"Cohort created successfully"})}m(!1),r()},O=()=>{navigator.clipboard.writeText(`https://flipfactor.ai/cohort-dashboard/${a}`),w({title:"URL copied to clipboard"})};return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs(wr,{variant:"ghost",size:"sm",onClick:t,children:[c.jsx(N1,{className:"h-4 w-4 mr-1"})," Back"]}),c.jsx("h2",{className:"text-2xl font-bold text-foreground",children:n?"Edit Cohort":"Add New Cohort"})]}),c.jsx(Qo,{children:c.jsxs(Mo,{className:"py-6 space-y-5",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{htmlFor:"cohort-name",children:"Cohort Name *"}),c.jsx(Yi,{id:"cohort-name",value:i,onChange:k=>o(k.target.value),placeholder:"Future-Proof Yourself: The AI Reinvention Masterclass — March 20 2026",required:!0})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{htmlFor:"event-id",children:"Cohort ID *"}),n?c.jsxs("div",{children:[c.jsx(Yi,{id:"event-id",value:a,disabled:!0,className:"opacity-60"}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Cohort IDs cannot be changed after creation as this would break existing shared links."})]}):c.jsxs("div",{className:"space-y-2",children:[c.jsx(Yi,{id:"event-id",value:a,onChange:k=>s(k.target.value.toUpperCase()),onBlur:()=>a&&_(a),placeholder:"WEB-032026-A"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Enter a Cohort ID using your event type prefix, the date (MMDDYY), and an optional letter suffix."}),c.jsxs("div",{className:"border border-border rounded-md bg-muted/50 p-3 space-y-2",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(IJ,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsx("span",{className:"text-xs font-semibold text-foreground",children:"Cohort ID Format Guide"})]}),c.jsxs("table",{className:"w-full text-xs",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"text-muted-foreground border-b border-border",children:[c.jsx("th",{className:"text-left py-1 pr-2 font-medium",children:"Event Type"}),c.jsx("th",{className:"text-left py-1 pr-2 font-medium",children:"Format"}),c.jsx("th",{className:"text-left py-1 font-medium",children:"Example"})]})}),c.jsxs("tbody",{className:"text-foreground",children:[c.jsxs("tr",{className:"border-b border-border/50",children:[c.jsx("td",{className:"py-1 pr-2",children:"Public webinar"}),c.jsx("td",{className:"py-1 pr-2 font-mono",children:"WEB-MMDDYY-A"}),c.jsx("td",{className:"py-1 font-mono",children:"WEB-032026-A"})]}),c.jsxs("tr",{className:"border-b border-border/50",children:[c.jsx("td",{className:"py-1 pr-2",children:"Paid sprint cohort"}),c.jsx("td",{className:"py-1 pr-2 font-mono",children:"SPR-MMDDYY-A"}),c.jsx("td",{className:"py-1 font-mono",children:"SPR-040126-A"})]}),c.jsxs("tr",{className:"border-b border-border/50",children:[c.jsx("td",{className:"py-1 pr-2",children:"Conference or keynote"}),c.jsx("td",{className:"py-1 pr-2 font-mono",children:"CONF-MMDDYY or CONF-MMDDYY-ORG"}),c.jsx("td",{className:"py-1 font-mono",children:"CONF-032026-LIT"})]}),c.jsxs("tr",{className:"border-b border-border/50",children:[c.jsx("td",{className:"py-1 pr-2",children:"Corporate workshop"}),c.jsx("td",{className:"py-1 pr-2 font-mono",children:"ORGSLUG-MMDDYY[-DESC]"}),c.jsx("td",{className:"py-1 font-mono",children:"GOOG-060426 or GOOG-060426-SLT"})]}),c.jsxs("tr",{children:[c.jsx("td",{className:"py-1 pr-2",children:"Partner org event"}),c.jsx("td",{className:"py-1 pr-2 font-mono",children:"ORGSLUG-MMDDYY[-DESC]"}),c.jsx("td",{className:"py-1 font-mono",children:"LIT-032026 or LIT-032026-NYC"})]})]})]}),c.jsx("p",{className:"text-[11px] text-muted-foreground",children:"MMDDYY is the event date. ORGSLUG is 2 to 5 uppercase letters identifying the organization. Add a letter suffix (A, B, C) if running multiple events on the same day. For corporate workshops and partner orgs, an optional descriptor suffix of 2 to 5 uppercase letters (like SLT, NYC) can be appended after the date."})]}),g&&c.jsx("p",{className:"text-sm text-destructive",children:g})]})]}),c.jsxs("div",{className:"bg-muted rounded-md px-4 py-3 flex items-center justify-between",children:[c.jsxs("code",{className:"text-sm text-muted-foreground",children:["flipfactor.ai/cohort-dashboard/",a||"…"]}),a&&c.jsx("button",{onClick:O,className:"text-muted-foreground hover:text-foreground",title:"Copy URL",children:c.jsx(Es,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{htmlFor:"cohort-desc",children:"Description (optional)"}
680),c.jsx($N,{id:"cohort-desc",value:l,onChange:k=>A(k.target.value),placeholder:"Brief description of this cohort or event",rows:3})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{children:"Diagnostic Type(s)"}),c.jsx("div",{className:"flex flex-wrap gap-4",children:[{key:"individual",label:"Individual"},{key:"employee",label:"Employee"},{key:"leader",label:"Leader"}].map(k=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(oG,{id:`diag-${k.key}`,checked:u.includes(k.key),onCheckedChange:()=>b(k.key)}),c.jsx(Kr,{htmlFor:`diag-${k.key}`,className:"text-sm cursor-pointer",children:k.label})]},k.key))})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(Bl,{checked:h,onCheckedChange:f}),c.jsx(Kr,{className:"text-sm",children:h?"Active":"Archived"})]}),c.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[c.jsx(wr,{onClick:F,disabled:v||!i,className:"bg-primary text-primary-foreground hover:bg-primary/90",children:v?"Saving…":n?"Save Changes":"Create Cohort"}),c.jsx(wr,{variant:"outline",onClick:t,children:"Cancel"})]})]})})]})}function nQe(){const[e,t]=S.useState([]),[r,n]=S.useState(!0),[i,o]=S.useState(!1),[a,s]=S.useState(null),[l,A]=S.useState(""),[u,d]=S.useState(""),[h,f]=S.useState(!1),{toast:g}=hc(),p=async()=>{n(!0);const E=Tt.from("solo_cohort_overrides").select("*").eq("cohort_id_status","review").order("created_at",{ascending:!1});i||E.eq("resolved",!1);const{data:B,error:_}=await E;_?g({title:"Error loading review items",description:_.message,variant:"destructive"}):t(B||[]),n(!1)};S.useEffect(()=>{p()},[i]);const v=E=>{s(E.id),A(E.corrected_cohort_id||""),d(E.admin_note||"")},m=()=>{s(null),A(""),d("")},w=async E=>{f(!0);const B=l.trim()||null,{error:_}=await Tt.from("solo_cohort_overrides").update({corrected_cohort_id:B,admin_note:u.trim()||null,resolved:B!=null}).eq("id",E.id);_?g({title:"Error saving",description:_.message,variant:"destructive"}):(g({title:B?"Cohort ID corrected":"Note saved"}),m(),p()),f(!1)},b=E=>{if(!E)return"—";try{const B=E.match(/^Date\((\d+),(\d+),(\d+)/);return B?new Date(parseInt(B[1]),parseInt(B[2]),parseInt(B[3])).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):new Date(E).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch{return E}};return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("h2",{className:"text-2xl font-bold text-foreground flex items-center gap-2",children:[c.jsx(t8,{className:"h-6 w-6"})," Cohort ID Review"]}),c.jsxs("span",{className:"text-sm text-muted-foreground",children:[e.length," item",e.length!==1?"s":""," ",i?"total":"pending"]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Bl,{checked:i,onCheckedChange:o}),c.jsx(Kr,{className:"text-sm text-muted-foreground",children:"Show resolved 
680items"})]}),r?c.jsx("p",{className:"text-muted-foreground",children:"Loading…"}):e.length===0?c.jsx(Qo,{children:c.jsx(Mo,{className:"py-8 text-center text-muted-foreground",children:"No cohort IDs flagged for review. All clear!"})}):c.jsx("div",{className:"grid gap-3",children:e.map(E=>c.jsx(Qo,{className:E.resolved?"opacity-60":"",children:c.jsx(Mo,{className:"py-4 px-6",children:a===E.id?c.jsxs("div",{className:"space-y-3",children:[c.jsx("div",{className:"flex items-start justify-between gap-4",children:c.jsxs("div",{className:"space-y-1",children:[c.jsx("p",{className:"text-sm font-medium text-foreground",children:E.email}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Submitted: ",b(E.submitted_at)]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Raw value: ",c.jsx("code",{className:"bg-muted px-1 rounded",children:E.raw_cohort_id})]})]})}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{className:"text-sm",children:"Corrected Cohort ID"}),c.jsx(Yi,{value:l,onChange:B=>A(B.target.value),placeholder:"e.g. WEB-032026-A or EVENT-03-20-26"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{className:"text-sm",children:"Admin Note"}),c.jsx(Yi,{value:u,onChange:B=>d(B.target.value),placeholder:"Optional note about the correction"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(wr,{size:"sm",onClick:()=>w(E),disabled:h,className:"bg-primary text-primary-foreground hover:bg-primary/90",children:[c.jsx(qM,{className:"h-3.5 w-3.5 mr-1"}),h?"Saving…":"Save & Resolve"]}),c.jsx(wr,{size:"sm",variant:"outline",onClick:m,children:"Cancel"})]})]}):c.jsxs("div",{className:"flex items-start justify-between gap-4",children:[c.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[c.jsx("p",{className:"text-sm font-medium text-foreground",children:E.email}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Submitted: ",b(E.submitted_at)]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Raw value: ",c.jsx("code",{className:"bg-muted px-1 rounded",children:E.raw_cohort_id})]}),E.resolved&&E.corrected_cohort_id&&c.jsxs("p",{className:"text-xs text-foreground",children:["Corrected to: ",c.jsx("code",{className:"bg-muted px-1 rounded",children:E.corrected_cohort_id})]}),E.admin_note&&c.jsx("p",{className:"text-xs text-muted-foreground italic",children:E.admin_note})]}),c.jsxs(wr,{variant:"outline",size:"sm",onClick:()=>v(E),children:[c.jsx(Dk,{className:"h-3.5 w-3.5 mr-1"})," ",E.resolved?"Re-edit":"Correct"]})]})})},E.id))})]})}function iQe(){const[e,t]=S.useState(""),[r,n]=S.useState(!1),[i,o]=S.useState(""),a=async()=>{const s=e.trim().toLowerCase();if(s){n(!0),o("");try{const l=await A$(s);l.route==="individual"?window.open(`/individual-dashboard/view/${encodeURIComponent(s)}?source=${encodeURIComponent(l.sourceTab||"Individual_Staging")}`,"_blank","noopener,noreferrer"):l.route==="leader"?window.open(`/leader-dashboard/view/${encodeURIComponent(s)}`,"_blank","noopener,noreferrer"):o("No results found for that email. Check the spelling, or confirm their submission landed in the sheet.")}catch{o("Something went wrong. Please try again.")}finally{n(!1)}}};return c.jsxs("div",{className:"space-y-6",children:[c.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"Pull a Participant's Report"}),c.jsx("p",{className:"text-sm text-muted-foreground -mt-4",children:"Opens the participant's live report in a 
680new tab. Use Download My Report on that page to save a PDF copy."}),c.jsx(Qo,{children:c.jsxs(Mo,{className:"py-6 space-y-4",children:[c.jsxs("div",{className:"flex items-end gap-3",children:[c.jsxs("div",{className:"flex-1 space-y-2",children:[c.jsx(Kr,{htmlFor:"participant-report-email",className:"text-sm font-medium",children:"Participant Email"}),c.jsx(Yi,{id:"participant-report-email",type:"email",placeholder:"[email protected]",value:e,onChange:s=>t(s.target.value),onKeyDown:s=>s.key==="Enter"&&a()})]}),c.jsx(wr,{onClick:a,disabled:r||!e,className:"bg-primary text-primary-foreground hover:bg-primary/90",children:r?"Opening…":"Open Report"})]}),i&&c.jsx("p",{className:"text-sm text-destructive",children:i})]})})]})}function oQe(){const[e,t]=S.useState(""),[r,n]=S.useState(""),[i,o]=S.useState(!1),[a,s]=S.useState(""),{toast:l}=hc(),A=async()=>{if(e){o(!0),s(""),n("");try{const{data:d,error:h}=await Tt.functions.invoke("generate-magic-link",{body:{email:e.trim()}});h?s(h.message||"Failed to generate code"):d!=null&&d.error?s(d.error):d!=null&&d.code?n(d.code):s("No code returned")}catch{s("Something went wrong. Please try again.")}finally{o(!1)}}},u=()=>{navigator.clipboard.writeText(r),l({title:"Code copied to clipboard"})};return c.jsxs("div",{className:"space-y-6",children:[c.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"Generate Manual OTP"}),c.jsx("p",{className:"text-sm text-muted-foreground -mt-4",children:"Use this tool to generate a one-time password for individuals having trouble receiving the email with their one-time password due to firewalls."}),c.jsx(Qo,{children:c.jsxs(Mo,{className:"py-6 space-y-4",children:[c.jsxs("div",{className:"flex items-end gap-3",children:[c.jsxs("div",{className:"flex-1 space-y-2",children:[c.jsx(Kr,{htmlFor:"magic-link-email",className:"text-sm font-medium",children:"Participant Email"}),c.jsx(Yi,{id:"magic-link-email",type:"email",placeholder:"[email protected]",value:e,onChange:d=>t(d.target.value),onKeyDown:d=>d.key==="Enter"&&A()})]}),c.jsx(wr,{onClick:A,disabled:i||!e,className:"bg-primary text-primary-foreground hover:bg-primary/90",children:i?"Generating…":"Generate Code"})]}),a&&c.jsx("p",{className:"text-sm text-destructive",children:a}),r&&c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{className:"text-sm font-medium",children:"Generated Code"}),c.jsxs("div",{className:"flex items-center gap-3 p-4 rounded-lg bg-muted border border-border",children:[c.jsx("span",{className:"text-3xl font-mono font-bold tracking-widest text-foreground flex-1 text-center select-all",children:r}),c.jsxs(wr,{variant:"outline",size:"sm",onClick:u,className:"flex-shrink-0",children:[c.jsx(Es,{className:"h-4 w-4 mr-1"})," Copy Code"]})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Kr,{className:"text-sm font-medium",children:"Email Copy"}),c.jsx("div",{className:"rounded-lg border border-border bg-muted p-4",children:c.jsxs("p",{className:"text-sm text-foreground whitespace-pre-wrap",children:["Click this link to go straight to your results page: https://flipfactor.ai/results?email=",encodeURIComponent(e),c.jsx("br",{}),c.jsx("br",{}),"When the page loads, enter this code: ",r,c.jsx("br",{}),c.jsx("br",{}),"This code is valid for 60 minutes. If it expires before you get a chance to use it, reply to this email and we will generate a fresh one for you."]})}),c.jsxs(wr,{variant:"outline",size:"sm",onClick:()=>{const d=`Click this link to go straight to your results page: https://flipfactor.ai/results?email=${encodeURIComponent(e)}
681
682When the page loads, enter this code: ${r}
683
684This code is valid for 60 minutes. If it expires before you get a chance to use it, reply to this email and we will generate a fresh one for you.`;navigator.clipboard.writeText(d),l({title:"Email text copied to clipboard"})},children:[c.jsx(Es,{className:"h-4 w-4 mr-1"})," Copy Email Text"]})]})]})]})})]})}const aQe=()=>{const e=pc();return S.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),c.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),c.jsx("a",{href:"/results",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},sQe=[{Icon:TJ,title:"Taking It on Your Own",description:"You're here because you're curious about your own AI readiness, or you're attending a conference, event, or session where FlipFactor™ was recommended. This diagnostic is designed for independent professionals, entrepreneurs, consultants, and conference attendees exploring where they stand in the AI age.",cta:"Start My FlipFactor™ Diagnostic",href:"/diagnostic/individual"},{Icon:BJ,title:"Your Company Enrolled You",description:"You're here because your organization has enrolled you in the FlipFactor™ diagnostic as part of a company initiative. This version is tailored to your experience as an employee within a team and organization.",cta:"Start My FlipFactor™ Employee Diagnostic",href:"/diagnostic/employee"},{Icon:$g,title:"You Lead a Team or Organization",description:"You're here because your organization has asked you to complete this FlipFactor™ diagnostic as a team leader, business unit leader, or executive. This version is designed to reflect your perspective as a leader responsible for others.",cta:"Start My FlipFactor™ Leader Diagnostic",href:"/diagnostic/leader"}],lQe=()=>{const e=typeof window<"u"?window.location.search:"";return c.jsxs("div",{className:"min-h-screen bg-white",style:{fontFamily:"Outfit, sans-serif"},children:[c.jsx("header",{className:"flex items-center justify-center px-6 py-8",style:{backgroundColor:"#000000"},children:c.jsx(lu,{to:"/",children:c.jsx("img",{src:Bn,alt:"FlipWork logo",style:{height:"80px"}})})}),c.jsxs("main",{className:"px-6 py-16 md:py-20",children:[c.jsx("h1",{className:"mx-auto max-w-3xl text-center mb-4 text-[28px] md:text-[36px]",style:{color:"#1A1918",fontWeight:700},children:"FlipFactor™ Diagnostic"}),c.jsx("p",{className:"mx-auto max-w-3xl text-center mb-12 md:text-[22px] text-[18px]",style:{color:"#1A1918",fontWeight:500},children:"Before you begin, select the option that best describes you."}),c.jsx("div",{className:"mx-auto max-w-[1400px] grid gap-8 md:grid-cols-3",children:sQe.map(({Icon:t,title:r,de
684scription:n,cta:i,href:o})=>c.jsxs("div",{className:"group flex flex-col rounded-xl p-8 transition-all duration-200 hover:shadow-lg",style:{border:"2px solid #E5E7EB"},onMouseEnter:a=>a.currentTarget.style.borderColor="#FFC100",onMouseLeave:a=>a.currentTarget.style.borderColor="#E5E7EB",children:[c.jsx("div",{className:"mb-5 flex h-12 w-12 items-center justify-center rounded-full",style:{backgroundColor:"#FFC100"},children:c.jsx(t,{color:"#FFFFFF",size:24})}),c.jsx("h3",{className:"mb-3",style:{fontSize:"20px",fontWeight:700,color:"#1A1918"},children:r}),c.jsx("p",{className:"mb-6 flex-1",style:{fontSize:"15px",color:"#6B7280",lineHeight:1.65},children:n}),c.jsx(lu,{to:`${o}${e}`,className:"block w-full rounded-lg py-3 text-center font-semibold text-white",style:{backgroundColor:"#FFC100",fontSize:"15px"},children:i})]},r))})]})]})},rS=({formId:e,containerId:t,headerCopy:r})=>{const n=S.useMemo(()=>{const o=new URLSearchParams(window.location.search).get("cohort_id")||"";let a=`https://k27ikdimi5v.typeform.com/to/${e}`;return o&&(a+=`#cohort_id=${encodeURIComponent(o)}`),a},[e]);return c.jsxs("div",{className:"min-h-screen bg-white",style:{fontFamily:"Outfit, sans-serif"},children:[c.jsx("header",{className:"flex items-center justify-center px-6 py-6",style:{backgroundColor:"#000000"},children:c.jsx(lu,{to:"/",children:c.jsx("img",{src:Bn,alt:"FlipWork logo",style:{height:"52px"}})})}),c.jsx("div",{className:"px-6 py-8 text-center",children:c.jsx("p",{style:{fontSize:"18px",color:"#1A1918",fontWeight:500},children:r})}),c.jsx("main",{className:"px-4 pb-16",children:c.jsx("div",{id:t,className:"mx-auto max-w-5xl",children:c.jsx("iframe",{src:n,title:"FlipFactor Diagnostic",style:{width:"100%",height:"700px",border:"none"},allow:"camera; microphone; autoplay; encrypted-media;"})})})]})},AQe=new ere,cQe=()=>c.jsx(rre,{client:AQe,children:c.jsxs(Ky,{children:[c.jsx(fZ,{}),c.jsx(zZ,{}),c.jsx(Jre,{children:c.jsxs(Vre,{children:[c.jsx(Ni,{path:"/",element:c.jsx(PDe,{})}),c.jsx(Ni,{path:"/diagnostic",element:c.jsx(lQe,{})}),c.jsx(Ni,{path:"/diagnostic/individual",element:c.jsx(rS,{formId:"AqhnmQzv",containerId:"ff-individual",headerCopy:"Discover your AI readiness in 10 minutes. Powered by FlipWork, Inc.™"})}),c.jsx(Ni,{path:"/diagnostic/employee",element:c.jsx(rS,{formId:"eCnCz9Ao",containerId:"ff-employee",headerCopy:"Your organization has invited you to discover your AI readiness. Powered by FlipWork, Inc.™"})}),c.jsx(Ni,{path:"/diagnostic/leader",element:c.jsx(rS,{formId:"afwGDkEn",containerId:"ff-leader",headerCopy:"Gain a leader's perspective on AI readiness across your team and organization. Powered by FlipWork, Inc.™"})}),c.jsx(Ni,{path:"/results",element:c.jsx(fae,{})}),c.jsx(Ni,{path:"/individual-dashboard",element:c.jsx(VD,{})}),c.jsx(Ni,{path:"/individual-dashboard/view/:viewEmail",element:c.jsx(VD,{})}),c.jsx(Ni,{path:"/company-dashboard/:companySlug",element:c.jsx(nDe,{})}),c.jsx(Ni,{path:"/cohort-dashboard/:cohortId",element:c.jsx(TDe,{})}),c.jsx(Ni,{path:"/leader-dashboard",element:c.jsx(YD,{})}),c.jsx(Ni,{path:"/leader-dashboard/view/:leaderEmail",element:c.jsx(YD,{})}),c.jsx(Ni,{path:"/admin",element:c.jsx(Z6e,{})}),c.jsx(Ni,{path:"/admin/login",element:c.jsx(m6e,{})}),c.jsx(Ni,{path:"*",element:c.jsx(aQe,{})})]})})]})});wM(document.getElementById("root")).render(c.jsx(cQe,{}));export{Sr as _,Kv as c,xr 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.