vendor: 5,975 bytes, lines 1-9
1var q8=Object.defineProperty;var Qv=e=>{throw TypeError(e)};var $8=(e,t,n)=>t in e?q8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zt=(e,t,n)=>$8(e,typeof t!="symbol"?t+"":t,n),U1=(e,t,n)=>t.has(e)||Qv("Cannot "+n);var _e=(e,t,n)=>(U1(e,t,"read from private field"),n?n.call(e):t.get(e)),jt=(e,t,n)=>t.has(e)?Qv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ht=(e,t,n,r)=>(U1(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),cr=(e,t,n)=>(U1(e,t,"access private method"),n);var Ld=(e,t,n,r)=>({set _(i){ht(e,t,i,n)},get _(){return _e(e,t,r)}});function H8(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(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 r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var u9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ob(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jb={exports:{}},Sp={},Mb={exports:{}},Nt={};/** 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 jf=Symbol.for("react.element"),W8=Symbol.for("react.portal"),V8=Symbol.for("react.fragment"),G8=Symbol.for("react.strict_mode"),K8=Symbol.for("react.profiler"),Y8=Symbol.for("react.provider"),Z8=Symbol.for("react.context"),X8=Symbol.for("react.forward_ref"),Q8=Symbol.for("react.suspense"),J8=Symbol.for("react.memo"),eN=Symbol.for("react.lazy"),Jv=Symbol.iterator;function tN(e){return e===null||typeof e!="object"?null:(e=Jv&&e[Jv]||e["@@iterator"],typeof e=="function"?e:null)}var Fb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Db=Object.assign,Bb={};function Mu(e,t,n){this.props=e,this.context=t,this.refs=Bb,this.updater=n||Fb}Mu.prototype.isReactComponent={};Mu.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")};Mu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zb(){}zb.prototype=Mu.prototype;function D2(e,t,n){this.props=e,this.context=t,this.refs=Bb,this.updater=n||Fb}var B2=D2.prototype=new zb;B2.constructor=D2;Db(B2,Mu.prototype);B2.isPureReactComponent=!0;var e5=Array.isArray,Ub=Object.prototype.hasOwnProperty,z2={current:null},qb={key:!0,ref:!0,__self:!0,__source:!0};function $b(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Ub.call(t,r)&&!qb.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:jf,type:e,key:o,ref:a,props:i,_owner:z2.current}}function nN(e,t){return{$$typeof:jf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function U2(e){return typeof e=="object"&&e!==null&&e.$$typeof===jf}function rN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var t5=/\/+/g;function q1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rN(""+e.key):t.toString(36)}function ch(e,t,n,r,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 jf:case W8:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+q1(a,0):r,e5(i)?(n="",e!=null&&(n=e.replace(t5,"$&/")+"/"),ch(i,t,n,"",function(u){return u})):i!=null&&(U2(i)&&(i=nN(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(t5,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",e5(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+q1(o,s);a+=ch(o,t,n,l,i)}else if(l=tN(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+q1(o,s++),a+=ch(o,t,n,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 Cd(e,t,n){if(e==null)return e;var r=[],i=0;return ch(e,r,"","",function(o){return t.call(n,o,i++)}),r}function iN(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pr={current:null},fh={transition:null},oN={ReactCurrentDispatcher:Pr,ReactCurrentBatchConfig:fh,ReactCurrentOwner:z2};function Hb(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 5,575 bytes, lines 9-25
9Nt.Children={map:Cd,forEach:function(e,t,n){Cd(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cd(e,function(){t++}),t},toArray:function(e){return Cd(e,function(t){return t})||[]},only:function(e){if(!U2(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Nt.Component=Mu;Nt.Fragment=V8;Nt.Profiler=K8;Nt.PureComponent=D2;Nt.StrictMode=G8;Nt.Suspense=Q8;Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oN;Nt.act=Hb;Nt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Db({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=z2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Ub.call(t,l)&&!qb.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:jf,type:e.type,key:i,ref:o,props:r,_owner:a}};Nt.createContext=function(e){return e={$$typeof:Z8,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Y8,_context:e},e.Consumer=e};Nt.createElement=$b;Nt.createFactory=function(e){var t=$b.bind(null,e);return t.type=e,t};Nt.createRef=function(){return{current:null}};Nt.forwardRef=function(e){return{$$typeof:X8,render:e}};Nt.isValidElement=U2;Nt.lazy=function(e){return{$$typeof:eN,_payload:{_status:-1,_result:e},_init:iN}};Nt.memo=function(e,t){return{$$typeof:J8,type:e,compare:t===void 0?null:t}};Nt.startTransition=function(e){var t=fh.transition;fh.transition={};try{e()}finally{fh.transition=t}};Nt.unstable_act=Hb;Nt.useCallback=function(e,t){return Pr.current.useCallback(e,t)};Nt.useContext=function(e){return Pr.current.useContext(e)};Nt.useDebugValue=function(){};Nt.useDeferredValue=function(e){return Pr.current.useDeferredValue(e)};Nt.useEffect=function(e,t){return Pr.current.useEffect(e,t)};Nt.useId=function(){return Pr.current.useId()};Nt.useImperativeHandle=function(e,t,n){return Pr.current.useImperativeHandle(e,t,n)};Nt.useInsertionEffect=function(e,t){return Pr.current.useInsertionEffect(e,t)};Nt.useLayoutEffect=function(e,t){return Pr.current.useLayoutEffect(e,t)};Nt.useMemo=function(e,t){return Pr.current.useMemo(e,t)};Nt.useReducer=function(e,t,n){return Pr.current.useReducer(e,t,n)};Nt.useRef=function(e){return Pr.current.useRef(e)};Nt.useState=function(e){return Pr.current.useState(e)};Nt.useSyncExternalStore=function(e,t,n){return Pr.current.useSyncExternalStore(e,t,n)};Nt.useTransition=function(){return Pr.current.useTransition()};Nt.version="18.3.1";Mb.exports=Nt;var E=Mb.exports;const Pe=Ob(E),q2=H8({__proto__:null,default:Pe},[E]);/** 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 aN=E,sN=Symbol.for("react.element"),lN=Symbol.for("react.fragment"),uN=Object.prototype.hasOwnProperty,cN=aN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fN={key:!0,ref:!0,__self:!0,__source:!0};function Wb(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)uN.call(t,r)&&!fN.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:sN,type:e,key:o,ref:a,props:i,_owner:cN.current}}Sp.Fragment=lN;Sp.jsx=Wb;Sp.jsxs=Wb;jb.exports=Sp;var O=jb.exports,Vb={exports:{}},ai={},Gb={exports:{}},Kb={};/** 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){var fe=$.length;$.push(Q);e:for(;0<fe;){var me=fe-1>>>1,C=$[me];if(0<i(C,Q))$[me]=Q,$[fe]=C,fe=me;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var Q=$[0],fe=$.pop();if(fe!==Q){$[0]=fe;e:for(var me=0,C=$.length,z=C>>>1;me<z;){var W=2*(me+1)-1,ee=$[W],ne=W+1,J=$[ne];if(0>i(ee,fe))ne<C&&0>i(J,ee)?($[me]=J,$[ne]=fe,me=ne):($[me]=ee,$[W]=fe,me=W);else if(ne<C&&0>i(J,fe))$[me]=J,$[ne]=fe,me=ne;else break e}}return Q}function i($,Q){var fe=$.sortIndex-Q.sortIndex;return fe!==0?fe:$.id-Q.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=[],u=[],d=1,p=null,g=3,f=!1,S=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _($){for(var Q=n(u);Q!==null;){if(Q.callback===null)r(u);else if(Q.startTime<=$)r(u),Q.sortIndex=Q.expirationTime,t(l,Q);else break;Q=n(u)}}function A($){if(v=!1,_($),!S)if(n(l)!==null)S=!0,oe(M);else{var Q=n(u);Q!==null&&se(A,Q.startTime-$)}}function M($,Q){S=!1,v&&(v=!1,y(q),q=-1),f=!0;var fe=g;try{for(_(Q),p=n(l);p!==null&&(!(p.expirationTime>Q)||$&&!P());){var me=p.callback;if(typeof me=="function"){p.callback=null,g=p.priorityLevel;
vendor: 9,131 bytes, lines 25-34
25var C=me(p.expirationTime<=Q);Q=e.unstable_now(),typeof C=="function"?p.callback=C:p===n(l)&&r(l),_(Q)}else r(l);p=n(l)}if(p!==null)var z=!0;else{var W=n(u);W!==null&&se(A,W.startTime-Q),z=!1}return z}finally{p=null,g=fe,f=!1}}var Z=!1,V=null,q=-1,F=5,X=-1;function P(){return!(e.unstable_now()-X<F)}function R(){if(V!==null){var $=e.unstable_now();X=$;var Q=!0;try{Q=V(!0,$)}finally{Q?Y():(Z=!1,V=null)}}else Z=!1}var Y;if(typeof b=="function")Y=function(){b(R)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,ie=B.port2;B.port1.onmessage=R,Y=function(){ie.postMessage(null)}}else Y=function(){x(R,0)};function oe($){V=$,Z||(Z=!0,Y())}function se($,Q){q=x(function(){$(e.unstable_now())},Q)}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($){$.callback=null},e.unstable_continueExecution=function(){S||f||(S=!0,oe(M))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(g){case 1:case 2:case 3:var Q=3;break;default:Q=g}var fe=g;g=Q;try{return $()}finally{g=fe}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,Q){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var fe=g;g=$;try{return Q()}finally{g=fe}},e.unstable_scheduleCallback=function($,Q,fe){var me=e.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?me+fe:me):fe=me,$){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=fe+C,$={id:d++,callback:Q,priorityLevel:$,startTime:fe,expirationTime:C,sortIndex:-1},fe>me?($.sortIndex=fe,t(u,$),n(l)===null&&$===n(u)&&(v?(y(q),q=-1):v=!0,se(A,fe-me))):($.sortIndex=C,t(l,$),S||f||(S=!0,oe(M))),$},e.unstable_shouldYield=P,e.unstable_wrapCallback=function($){var Q=g;return function(){var fe=g;g=Q;try{return $.apply(this,arguments)}finally{g=fe}}}})(Kb);Gb.exports=Kb;var dN=Gb.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 hN=E,oi=dN;function Le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 Yb=new Set,ef={};function rl(e,t){Nu(e,t),Nu(e+"Capture",t)}function Nu(e,t){for(ef[e]=t,e=0;e<t.length;e++)Yb.add(t[e])}var Ko=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),im=Object.prototype.hasOwnProperty,pN=/^[: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]*$/,n5={},r5={};function mN(e){return im.call(r5,e)?!0:im.call(n5,e)?!1:pN.test(e)?r5[e]=!0:(n5[e]=!0,!1)}function gN(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vN(e,t,n,r){if(t===null||typeof t>"u"||gN(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Tr(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ir[e]=new Tr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ir[t]=new Tr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ir[e]=new Tr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ir[e]=new Tr(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){ir[e]=new Tr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ir[e]=new Tr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ir[e]=new Tr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ir[e]=new Tr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ir[e]=new Tr(e,5,!1,e.toLowerCase(),null,!1,!1)});var $2=/[\-:]([a-z])/g;function H2(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($2,H2);ir[t]=new Tr(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($2,H2);ir[t]=new Tr(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($2,H2);ir[t]=new Tr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ir[e]=new Tr(e,1,!1,e.toLowerCase(),null,!1,!1)});ir.xlinkHref=new Tr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ir[e]=new Tr(e,1,!1,e.toLowerCase(),null,!0,!0)});function W2(e,t,n,r){var i=ir.hasOwnProperty(t)?ir[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(vN(t,n,i,r)&&(n=null),r||i===null?mN(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ea=hN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pd=Symbol.for("react.element"),$l=Symbol.for("react.portal"),Hl=Symbol.for("react.fragment"),V2=Symbol.for("react.strict_mode"),om=Symbol.for("react.profiler"),Zb=Symbol.for("react.provider"),Xb=Symbol.for("react.context"),G2=Symbol.for("react.forward_ref"),am=Symbol.for("react.suspense"),sm=Symbol.for("react.suspense_list"),K2=Symbol.for("react.memo"),Sa=Symbol.for("react.lazy"),Qb=Symbol.for("react.offscreen"),i5=Symbol.iterator;function yc(e){return e===null||typeof e!="object"?null:(e=i5&&e[i5]||e["@@iterator"],typeof e=="function"?e:null)}var gn=Object.assign,$1;function Tc(e){if($1===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$1=t&&t[1]||""}return` 34`+$1+e}var H1=!1;function W1(e,t){if(!e||H1)return"";H1=!0;var n=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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 18,193 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(` 35`),o=r.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{H1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tc(e):""}function yN(e){switch(e.tag){case 5:return Tc(e.type);case 16:return Tc("Lazy");case 13:return Tc("Suspense");case 19:return Tc("SuspenseList");case 0:case 2:case 15:return e=W1(e.type,!1),e;case 11:return e=W1(e.type.render,!1),e;case 1:return e=W1(e.type,!0),e;default:return""}}function lm(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 Hl:return"Fragment";case $l:return"Portal";case om:return"Profiler";case V2:return"StrictMode";case am:return"Suspense";case sm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xb:return(e.displayName||"Context")+".Consumer";case Zb:return(e._context.displayName||"Context")+".Provider";case G2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K2:return t=e.displayName||null,t!==null?t:lm(e.type)||"Memo";case Sa:t=e._payload,e=e._init;try{return lm(e(t))}catch{}}return null}function wN(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 lm(t);case 8:return t===V2?"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 Xa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bN(e){var t=Jb(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Td(e){e._valueTracker||(e._valueTracker=bN(e))}function ex(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fh(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 um(e,t){var n=t.checked;return gn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function o5(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xa(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tx(e,t){t=t.checked,t!=null&&W2(e,"checked",t,!1)}function cm(e,t){tx(e,t);var n=Xa(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fm(e,t.type,n):t.hasOwnProperty("defaultValue")&&fm(e,t.type,Xa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function a5(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fm(e,t,n){(t!=="number"||Fh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rc=Array.isArray;function nu(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xa(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function dm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Le(91));return gn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function s5(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Le(92));if(Rc(n)){if(1<n.length)throw Error(Le(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Xa(n)}}function nx(e,t){var n=Xa(t.value),r=Xa(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function l5(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rx(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 hm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Rd,ix=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Rd=Rd||document.createElement("div"),Rd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Dc={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},xN=["Webkit","ms","Moz","O"];Object.keys(Dc).forEach(function(e){xN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dc[t]=Dc[e]})});function ox(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Dc.hasOwnProperty(e)&&Dc[e]?(""+t).trim():t+"px"}function ax(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ox(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var _N=gn({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 pm(e,t){if(t){if(_N[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Le(62))}}function mm(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 gm=null;function Y2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vm=null,ru=null,iu=null;function u5(e){if(e=Df(e)){if(typeof vm!="function")throw Error(Le(280));var t=e.stateNode;t&&(t=Lp(t),vm(e.stateNode,e.type,t))}}function sx(e){ru?iu?iu.push(e):iu=[e]:ru=e}function lx(){if(ru){var e=ru,t=iu;if(iu=ru=null,u5(e),t)for(e=0;e<t.length;e++)u5(t[e])}}function ux(e,t){return e(t)}function cx(){}var V1=!1;function fx(e,t,n){if(V1)return e(t,n);V1=!0;try{return ux(e,t,n)}finally{V1=!1,(ru!==null||iu!==null)&&(cx(),lx())}}function nf(e,t){var n=e.stateNode;if(n===null)return null;var r=Lp(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Le(231,t,typeof n));return n}var ym=!1;if(Ko)try{var wc={};Object.defineProperty(wc,"passive",{get:function(){ym=!0}}),window.addEventListener("test",wc,wc),window.removeEventListener("test",wc,wc)}catch{ym=!1}function SN(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Bc=!1,Dh=null,Bh=!1,wm=null,NN={onError:function(e){Bc=!0,Dh=e}};function AN(e,t,n,r,i,o,a,s,l){Bc=!1,Dh=null,SN.apply(NN,arguments)}function kN(e,t,n,r,i,o,a,s,l){if(AN.apply(this,arguments),Bc){if(Bc){var u=Dh;Bc=!1,Dh=null}else throw Error(Le(198));Bh||(Bh=!0,wm=u)}}function il(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dx(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 c5(e){if(il(e)!==e)throw Error(Le(188))}function EN(e){var t=e.alternate;if(!t){if(t=il(e),t===null)throw Error(Le(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return c5(i),e;if(o===r)return c5(i),t;o=o.sibling}throw Error(Le(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Le(189))}}if(n.alternate!==r)throw Error(Le(190))}if(n.tag!==3)throw Error(Le(188));return n.stateNode.current===n?e:t}function hx(e){return e=EN(e),e!==null?px(e):null}function px(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=px(e);if(t!==null)return t;e=e.sibling}return null}var mx=oi.unstable_scheduleCallback,f5=oi.unstable_cancelCallback,LN=oi.unstable_shouldYield,CN=oi.unstable_requestPaint,Ln=oi.unstable_now,PN=oi.unstable_getCurrentPriorityLevel,Z2=oi.unstable_ImmediatePriority,gx=oi.unstable_UserBlockingPriority,zh=oi.unstable_NormalPriority,TN=oi.unstable_LowPriority,vx=oi.unstable_IdlePriority,Np=null,vo=null;function RN(e){if(vo&&typeof vo.onCommitFiberRoot=="function")try{vo.onCommitFiberRoot(Np,e,void 0,(e.current.flags&128)===128)}catch{}}var Bi=Math.clz32?Math.clz32:jN,IN=Math.log,ON=Math.LN2;function jN(e){return e>>>=0,e===0?32:31-(IN(e)/ON|0)|0}var Id=64,Od=4194304;function Ic(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 Uh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Ic(s):(o&=a,o!==0&&(r=Ic(o)))}else a=n&~i,a!==0?r=Ic(a):o!==0&&(r=Ic(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Bi(t),i=1<<n,r|=e[n],t&=~i;return r}function MN(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 FN(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Bi(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=MN(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function bm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yx(){var e=Id;return Id<<=1,!(Id&4194240)&&(Id=64),e}function G1(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bi(t),e[t]=n}function DN(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Bi(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function X2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Bi(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var qt=0;function wx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var bx,Q2,xx,_x,Sx,xm=!1,jd=[],Ba=null,za=null,Ua=null,rf=new Map,of=new Map,ka=[],BN="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 d5(e,t){switch(e){case"focusin":case"focusout":Ba=null;break;case"dragenter":case"dragleave":za=null;break;case"mouseover":case"mouseout":Ua=null;break;case"pointerover":case"pointerout":rf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":of.delete(t.pointerId)}}function bc(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Df(t),t!==null&&Q2(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function zN(e,t,n,r,i){switch(t){case"focusin":return Ba=bc(Ba,e,t,n,r,i),!0;case"dragenter":return za=bc(za,e,t,n,r,i),!0;case"mouseover":return Ua=bc(Ua,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return rf.set(o,bc(rf.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,of.set(o,bc(of.get(o)||null,e,t,n,r,i)),!0}return!1}function Nx(e){var t=Ps(e.target);if(t!==null){var n=il(t);if(n!==null){if(t=n.tag,t===13){if(t=dx(n),t!==null){e.blockedOn=t,Sx(e.priority,function(){xx(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function dh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_m(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);gm=r,n.target.dispatchEvent(r),gm=null}else return t=Df(n),t!==null&&Q2(t),e.blockedOn=n,!1;t.shift()}return!0}function h5(e,t,n){dh(e)&&n.delete(t)}function UN(){xm=!1,Ba!==null&&dh(Ba)&&(Ba=null),za!==null&&dh(za)&&(za=null),Ua!==null&&dh(Ua)&&(Ua=null),rf.forEach(h5),of.forEach(h5)}function xc(e,t){e.blockedOn===t&&(e.blockedOn=null,xm||(xm=!0,oi.unstable_scheduleCallback(oi.unstable_NormalPriority,UN)))}function af(e){function t(i){return xc(i,e)}if(0<jd.length){xc(jd[0],e);for(var n=1;n<jd.length;n++){var r=jd[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ba!==null&&xc(Ba,e),za!==null&&xc(za,e),Ua!==null&&xc(Ua,e),rf.forEach(t),of.forEach(t),n=0;n<ka.length;n++)r=ka[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ka.length&&(n=ka[0],n.blockedOn===null);)Nx(n),n.blockedOn===null&&ka.shift()}var ou=ea.ReactCurrentBatchConfig,qh=!0;function qN(e,t,n,r){var i=qt,o=ou.transition;ou.transition=null;try{qt=1,J2(e,t,n,r)}finally{qt=i,ou.transition=o}}function $N(e,t,n,r){var i=qt,o=ou.transition;ou.transition=null;try{qt=4,J2(e,t,n,r)}finally{qt=i,ou.transition=o}}function J2(e,t,n,r){if(qh){var i=_m(e,t,n,r);if(i===null)r0(e,t,r,$h,n),d5(e,r);else if(zN(i,e,t,n,r))r.stopPropagation();else if(d5(e,r),t&4&&-1<BN.indexOf(e)){for(;i!==null;){var o=Df(i);if(o!==null&&bx(o),o=_m(e,t,n,r),o===null&&r0(e,t,r,$h,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else r0(e,t,r,null,n)}}var $h=null;function _m(e,t,n,r){if($h=null,e=Y2(r),e=Ps(e),e!==null)if(t=il(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dx(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $h=e,null}
vendor: 9,127 bytes, line 37
37function Ax(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(PN()){case Z2:return 1;case gx:return 4;case zh:case TN:return 16;case vx:return 536870912;default:return 16}default:return 16}}var Oa=null,eg=null,hh=null;function kx(){if(hh)return hh;var e,t=eg,n=t.length,r,i="value"in Oa?Oa.value:Oa.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return hh=i.slice(e,1<r?1-r:void 0)}function ph(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 Md(){return!0}function p5(){return!1}function si(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Md:p5,this.isPropagationStopped=p5,this}return gn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Md)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Md)},persist:function(){},isPersistent:Md}),t}var Fu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tg=si(Fu),Ff=gn({},Fu,{view:0,detail:0}),HN=si(Ff),K1,Y1,_c,Ap=gn({},Ff,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ng,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!==_c&&(_c&&e.type==="mousemove"?(K1=e.screenX-_c.screenX,Y1=e.screenY-_c.screenY):Y1=K1=0,_c=e),K1)},movementY:function(e){return"movementY"in e?e.movementY:Y1}}),m5=si(Ap),WN=gn({},Ap,{dataTransfer:0}),VN=si(WN),GN=gn({},Ff,{relatedTarget:0}),Z1=si(GN),KN=gn({},Fu,{animationName:0,elapsedTime:0,pseudoElement:0}),YN=si(KN),ZN=gn({},Fu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),XN=si(ZN),QN=gn({},Fu,{data:0}),g5=si(QN),JN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eA={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"},tA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nA(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tA[e])?!!t[e]:!1}function ng(){return nA}var rA=gn({},Ff,{key:function(e){if(e.key){var t=JN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ph(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?eA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ng,charCode:function(e){return e.type==="keypress"?ph(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ph(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iA=si(rA),oA=gn({},Ap,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),v5=si(oA),aA=gn({},Ff,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ng}),sA=si(aA),lA=gn({},Fu,{propertyName:0,elapsedTime:0,pseudoElement:0}),uA=si(lA),cA=gn({},Ap,{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}),fA=si(cA),dA=[9,13,27,32],rg=Ko&&"CompositionEvent"in window,zc=null;Ko&&"documentMode"in document&&(zc=document.documentMode);var hA=Ko&&"TextEvent"in window&&!zc,Ex=Ko&&(!rg||zc&&8<zc&&11>=zc),y5=" ",w5=!1;function Lx(e,t){switch(e){case"keyup":return dA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wl=!1;function pA(e,t){switch(e){case"compositionend":return Cx(t);case"keypress":return t.which!==32?null:(w5=!0,y5);case"textInput":return e=t.data,e===y5&&w5?null:e;default:return null}}function mA(e,t){if(Wl)return e==="compositionend"||!rg&&Lx(e,t)?(e=kx(),hh=eg=Oa=null,Wl=!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 Ex&&t.locale!=="ko"?null:t.data;default:return null}}var gA={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 b5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gA[e.type]:t==="textarea"}function Px(e,t,n,r){sx(r),t=Hh(t,"onChange"),0<t.length&&(n=new tg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Uc=null,sf=null;function vA(e){Ux(e,0)}function kp(e){var t=Kl(e);if(ex(t))return e}function yA(e,t){if(e==="change")return t}var Tx=!1;if(Ko){var X1;if(Ko){var Q1="oninput"in document;if(!Q1){var x5=document.createElement("div");x5.setAttribute("oninput","return;"),Q1=typeof x5.oninput=="function"}X1=Q1}else X1=!1;Tx=X1&&(!document.documentMode||9<document.documentMode)}function _5(){Uc&&(Uc.detachEvent("onpropertychange",Rx),sf=Uc=null)}function Rx(e){if(e.propertyName==="value"&&kp(sf)){var t=[];Px(t,sf,e,Y2(e)),fx(vA,t)}}function wA(e,t,n){e==="focusin"?(_5(),Uc=t,sf=n,Uc.attachEvent("onpropertychange",Rx)):e==="focusout"&&_5()}function bA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kp(sf)}function xA(e,t){if(e==="click")return kp(t)}function _A(e,t){if(e==="input"||e==="change")return kp(t)}function SA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ui=typeof Object.is=="function"?Object.is:SA;function lf(e,t){if(Ui(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!im.call(t,i)||!Ui(e[i],t[i]))return!1}return!0}function S5(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function N5(e,t){var n=S5(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=S5(n)}}function Ix(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ix(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ox(){for(var e=window,t=Fh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fh(e.document)}return t}function ig(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 NA(e){var t=Ox(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ix(n.ownerDocument.documentElement,n)){if(r!==null&&ig(n)){if
vendor: 4,319 bytes, line 37
37(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=N5(n,o);var a=N5(n,r);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>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var AA=Ko&&"documentMode"in document&&11>=document.documentMode,Vl=null,Sm=null,qc=null,Nm=!1;function A5(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nm||Vl==null||Vl!==Fh(r)||(r=Vl,"selectionStart"in r&&ig(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qc&&lf(qc,r)||(qc=r,r=Hh(Sm,"onSelect"),0<r.length&&(t=new tg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vl)))}function Fd(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gl={animationend:Fd("Animation","AnimationEnd"),animationiteration:Fd("Animation","AnimationIteration"),animationstart:Fd("Animation","AnimationStart"),transitionend:Fd("Transition","TransitionEnd")},J1={},jx={};Ko&&(jx=document.createElement("div").style,"AnimationEvent"in window||(delete Gl.animationend.animation,delete Gl.animationiteration.animation,delete Gl.animationstart.animation),"TransitionEvent"in window||delete Gl.transitionend.transition);function Ep(e){if(J1[e])return J1[e];if(!Gl[e])return e;var t=Gl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jx)return J1[e]=t[n];return e}var Mx=Ep("animationend"),Fx=Ep("animationiteration"),Dx=Ep("animationstart"),Bx=Ep("transitionend"),zx=new Map,k5="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 ns(e,t){zx.set(e,t),rl(t,[e])}for(var e0=0;e0<k5.length;e0++){var t0=k5[e0],kA=t0.toLowerCase(),EA=t0[0].toUpperCase()+t0.slice(1);ns(kA,"on"+EA)}ns(Mx,"onAnimationEnd");ns(Fx,"onAnimationIteration");ns(Dx,"onAnimationStart");ns("dblclick","onDoubleClick");ns("focusin","onFocus");ns("focusout","onBlur");ns(Bx,"onTransitionEnd");Nu("onMouseEnter",["mouseout","mouseover"]);Nu("onMouseLeave",["mouseout","mouseover"]);Nu("onPointerEnter",["pointerout","pointerover"]);Nu("onPointerLeave",["pointerout","pointerover"]);rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));rl("onBeforeInput",["compositionend","keypress","textInput","paste"]);rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oc="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(" "),LA=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oc));
vendor: 4,236 bytes, line 37
37function E5(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,kN(r,t,void 0,e),e.currentTarget=null}function Ux(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;E5(i,s,u),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;E5(i,s,u),o=l}}}if(Bh)throw e=wm,Bh=!1,wm=null,e}function rn(e,t){var n=t[Cm];n===void 0&&(n=t[Cm]=new Set);var r=e+"__bubble";n.has(r)||(qx(t,e,2,!1),n.add(r))}function n0(e,t,n){var r=0;t&&(r|=4),qx(n,e,r,t)}var Dd="_reactListening"+Math.random().toString(36).slice(2);function uf(e){if(!e[Dd]){e[Dd]=!0,Yb.forEach(function(n){n!=="selectionchange"&&(LA.has(n)||n0(n,!1,e),n0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dd]||(t[Dd]=!0,n0("selectionchange",!1,t))}}function qx(e,t,n,r){switch(Ax(t)){case 1:var i=qN;break;case 4:i=$N;break;default:i=J2}n=i.bind(null,t,n,e),i=void 0,!ym||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function r0(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.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=Ps(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}fx(function(){var u=o,d=Y2(n),p=[];e:{var g=zx.get(e);if(g!==void 0){var f=tg,S=e;switch(e){case"keypress":if(ph(n)===0)break e;case"keydown":case"keyup":f=iA;break;case"focusin":S="focus",f=Z1;break;case"focusout":S="blur",f=Z1;break;case"beforeblur":case"afterblur":f=Z1;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=m5;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=VN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=sA;break;case Mx:case Fx:case Dx:f=YN;break;case Bx:f=uA;break;case"scroll":f=HN;break;case"wheel":f=fA;break;case"copy":case"cut":case"paste":f=XN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=v5}var v=(t&4)!==0,x=!v&&e==="scroll",y=v?g!==null?g+"Capture":null:g;v=[];for(var b=u,_;b!==null;){_=b;var A=_.stateNode;if(_.tag===5&&A!==null&&(_=A,y!==null&&(A=nf(b,y),A!=null&&v.push(cf(b,A,_)))),x)break;b=b.return}0<v.length&&(g=new f(g,S,null,n,d),p.push({event:g,listeners:v}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",g&&n!==gm&&(S=n.relatedTarget||n.fromElement)&&(Ps(S)||S[Yo]))break e;if((f||g)&&(g=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,f?(S=n.relatedTarget||n.toElement,f=u,S=S?Ps(S):null,S!==null&&(x=il(S),S!==x||S.tag!==5&&S.tag!==6)&&(S=null)):(f=null,S=u),f!==S)){if(v=m5,A="onMouseLeave",y="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(v=v5,A="onPointerLeave",y="onPointerEnter",b="pointer"),x=f==null?g:Kl(f),_=S==null?g:Kl(S),g=new v(A,b+"leave",f,n,d),g.target=x,g.relatedTarget=_,A=null,Ps(d)===u&&(v=new v(y,b+"enter",S,n,d),v.target=_,v.relatedTarget=x,A=v),x=A,f&&S)t:{for(v=f,y=S,b=0,_=v;_;_=Rl(_))b++;for(_=0,A=y;A;A=Rl(A))_++;for(;0<b-_;)v=Rl(v),b--;for(;0<_-b;)y=Rl(y),_--;for(;b--;){if(v===y||y!==null&&v===y.alternate)break t;v=Rl(v),y=Rl(y)}v=null}else v=null;f!==null&&L5(p,g,f,v,!1),S!==null&&x!==null&&L5(p,x,S,v,!0)}}e:{if(g=u?Kl(u):window,f=g.nodeName&&g.nodeName.toLowerCase(),f==="select"||f==="input"&&g.type==="file")var M=yA;else if(b5(g))if(Tx)M=_A;else{M=bA;var Z=wA}else(f=g.nodeName)&&f.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(M=xA);
vendor: 6,124 bytes, lines 37-38
37if(M&&(M=M(e,u))){Px(p,M,n,d);break e}Z&&Z(e,g,u),e==="focusout"&&(Z=g._wrapperState)&&Z.controlled&&g.type==="number"&&fm(g,"number",g.value)}switch(Z=u?Kl(u):window,e){case"focusin":(b5(Z)||Z.contentEditable==="true")&&(Vl=Z,Sm=u,qc=null);break;case"focusout":qc=Sm=Vl=null;break;case"mousedown":Nm=!0;break;case"contextmenu":case"mouseup":case"dragend":Nm=!1,A5(p,n,d);break;case"selectionchange":if(AA)break;case"keydown":case"keyup":A5(p,n,d)}var V;if(rg)e:{switch(e){case"compositionstart":var q="onCompositionStart";break e;case"compositionend":q="onCompositionEnd";break e;case"compositionupdate":q="onCompositionUpdate";break e}q=void 0}else Wl?Lx(e,n)&&(q="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(q="onCompositionStart");q&&(Ex&&n.locale!=="ko"&&(Wl||q!=="onCompositionStart"?q==="onCompositionEnd"&&Wl&&(V=kx()):(Oa=d,eg="value"in Oa?Oa.value:Oa.textContent,Wl=!0)),Z=Hh(u,q),0<Z.length&&(q=new g5(q,e,null,n,d),p.push({event:q,listeners:Z}),V?q.data=V:(V=Cx(n),V!==null&&(q.data=V)))),(V=hA?pA(e,n):mA(e,n))&&(u=Hh(u,"onBeforeInput"),0<u.length&&(d=new g5("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=V))}Ux(p,t)})}function cf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hh(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=nf(e,n),o!=null&&r.unshift(cf(e,o,i)),o=nf(e,t),o!=null&&r.push(cf(e,o,i))),e=e.return}return r}function Rl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function L5(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,i?(l=nf(n,o),l!=null&&a.unshift(cf(n,l,s))):i||(l=nf(n,o),l!=null&&a.push(cf(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var CA=/\r\n?/g,PA=/\u0000|\uFFFD/g;function C5(e){return(typeof e=="string"?e:""+e).replace(CA,` 38`).replace(PA,"")}function Bd(e,t,n){if(t=C5(t),C5(e)!==t&&n)throw Error(Le(425))}function Wh(){}var Am=null,km=null;function Em(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 Lm=typeof setTimeout=="function"?setTimeout:void 0,TA=typeof clearTimeout=="function"?clearTimeout:void 0,P5=typeof Promise=="function"?Promise:void 0,RA=typeof queueMicrotask=="function"?queueMicrotask:typeof P5<"u"?function(e){return P5.resolve(null).then(e).catch(IA)}:Lm;function IA(e){setTimeout(function(){throw e})}function i0(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),af(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);af(t)}function qa(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 T5(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Du=Math.random().toString(36).slice(2),fo="__reactFiber$"+Du,ff="__reactProps$"+Du,Yo="__reactContainer$"+Du,Cm="__reactEvents$"+Du,OA="__reactListeners$"+Du,jA="__reactHandles$"+Du;function Ps(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yo]||n[fo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=T5(e);e!==null;){if(n=e[fo])return n;e=T5(e)}return t}e=n,n=e.parentNode}return null}function Df(e){return e=e[fo]||e[Yo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Le(33))}function Lp(e){return e[ff]||null}var Pm=[],Yl=-1;function rs(e){return{current:e}}function an(e){0>Yl||(e.current=Pm[Yl],Pm[Yl]=null,Yl--)}function Jt(e,t){Yl++,Pm[Yl]=e.current,e.current=t}var Qa={},wr=rs(Qa),Br=rs(!1),Ws=Qa;function Au(e,t){var n=e.type.contextTypes;if(!n)return Qa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zr(e){return e=e.childContextTypes,e!=null}function Vh(){an(Br),an(wr)}function R5(e,t,n){if(wr.current!==Qa)throw Error(Le(168));Jt(wr,t),Jt(Br,n)}function $x(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Le(108,wN(e)||"Unknown",i));return gn({},n,r)}function Gh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qa,Ws=wr.current,Jt(wr,e),Jt(Br,Br.current),!0}function I5(e,t,n){var r=e.stateNode;if(!r)throw Error(Le(169));n?(e=$x(e,t,Ws),r.__reactInternalMemoizedMergedChildContext=e,an(Br),an(wr),Jt(wr,e)):an(Br),Jt(Br,n)}var Uo=null,Cp=!1,o0=!1;function Hx(e){Uo===null?Uo=[e]:Uo.push(e)}function MA(e){Cp=!0,Hx(e)}function is(){if(!o0&&Uo!==null){o0=!0;var e=0,t=qt;try{var n=Uo;for(qt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Uo=null,Cp=!1}catch(i){throw Uo!==null&&(Uo=Uo.slice(e+1)),mx(Z2,is),i}finally{qt=t,o0=!1}}return null}var Zl=[],Xl=0,Kh=null,Yh=0,pi=[],mi=0,Vs=null,Wo=1,Vo="";function ks(e,t){Zl[Xl++]=Yh,Zl[Xl++]=Kh,Kh=e,Yh=t}function Wx(e,t,n){pi[mi++]=Wo,pi[mi++]=Vo,pi[mi++]=Vs,Vs=e;var r=Wo;e=Vo;var i=32-Bi(r)-1;r&=~(1<<i),n+=1;var o=32-Bi(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Wo=1<<32-Bi(t)+i|n<<i|r,Vo=o+e}else Wo=1<<o|n<<i|r,Vo=e}function og(e){e.return!==null&&(ks(e,1),Wx(e,1,0))}function ag(e){for(;e===Kh;)Kh=Zl[--Xl],Zl[Xl]=null,Yh=Zl[--Xl],Zl[Xl]=null;for(;e===Vs;)Vs=pi[--mi],pi[mi]=null,Vo=pi[--mi],pi[mi]=null,Wo=pi[--mi],pi[mi]=null}var ri=null,ei=null,fn=!1,Di=null;function Vx(e,t){var n=vi(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function O5(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 25,507 bytes, lines 38-40
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ri=e,ei=qa(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ri=e,ei=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vs!==null?{id:Wo,overflow:Vo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=vi(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ri=e,ei=null,!0):!1;default:return!1}}function Tm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Rm(e){if(fn){var t=ei;if(t){var n=t;if(!O5(e,t)){if(Tm(e))throw Error(Le(418));t=qa(n.nextSibling);var r=ri;t&&O5(e,t)?Vx(r,n):(e.flags=e.flags&-4097|2,fn=!1,ri=e)}}else{if(Tm(e))throw Error(Le(418));e.flags=e.flags&-4097|2,fn=!1,ri=e}}}function j5(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ri=e}function zd(e){if(e!==ri)return!1;if(!fn)return j5(e),fn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Em(e.type,e.memoizedProps)),t&&(t=ei)){if(Tm(e))throw Gx(),Error(Le(418));for(;t;)Vx(e,t),t=qa(t.nextSibling)}if(j5(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Le(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ei=qa(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ei=null}}else ei=ri?qa(e.stateNode.nextSibling):null;return!0}function Gx(){for(var e=ei;e;)e=qa(e.nextSibling)}function ku(){ei=ri=null,fn=!1}function sg(e){Di===null?Di=[e]:Di.push(e)}var FA=ea.ReactCurrentBatchConfig;function Sc(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Le(309));var r=n.stateNode}if(!r)throw Error(Le(147,e));var i=r,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(Le(284));if(!n._owner)throw Error(Le(290,e))}return e}function Ud(e,t){throw e=Object.prototype.toString.call(t),Error(Le(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function M5(e){var t=e._init;return t(e._payload)}function Kx(e){function t(y,b){if(e){var _=y.deletions;_===null?(y.deletions=[b],y.flags|=16):_.push(b)}}function n(y,b){if(!e)return null;for(;b!==null;)t(y,b),b=b.sibling;return null}function r(y,b){for(y=new Map;b!==null;)b.key!==null?y.set(b.key,b):y.set(b.index,b),b=b.sibling;return y}function i(y,b){return y=Va(y,b),y.index=0,y.sibling=null,y}function o(y,b,_){return y.index=_,e?(_=y.alternate,_!==null?(_=_.index,_<b?(y.flags|=2,b):_):(y.flags|=2,b)):(y.flags|=1048576,b)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,b,_,A){return b===null||b.tag!==6?(b=d0(_,y.mode,A),b.return=y,b):(b=i(b,_),b.return=y,b)}function l(y,b,_,A){var M=_.type;return M===Hl?d(y,b,_.props.children,A,_.key):b!==null&&(b.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Sa&&M5(M)===b.type)?(A=i(b,_.props),A.ref=Sc(y,b,_),A.return=y,A):(A=xh(_.type,_.key,_.props,null,y.mode,A),A.ref=Sc(y,b,_),A.return=y,A)}function u(y,b,_,A){return b===null||b.tag!==4||b.stateNode.containerInfo!==_.containerInfo||b.stateNode.implementation!==_.implementation?(b=h0(_,y.mode,A),b.return=y,b):(b=i(b,_.children||[]),b.return=y,b)}function d(y,b,_,A,M){return b===null||b.tag!==7?(b=$s(_,y.mode,A,M),b.return=y,b):(b=i(b,_),b.return=y,b)}function p(y,b,_){if(typeof b=="string"&&b!==""||typeof b=="number")return b=d0(""+b,y.mode,_),b.return=y,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Pd:return _=xh(b.type,b.key,b.props,null,y.mode,_),_.ref=Sc(y,null,b),_.return=y,_;case $l:return b=h0(b,y.mode,_),b.return=y,b;case Sa:var A=b._init;return p(y,A(b._payload),_)}if(Rc(b)||yc(b))return b=$s(b,y.mode,_,null),b.return=y,b;Ud(y,b)}return null}function g(y,b,_,A){var M=b!==null?b.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return M!==null?null:s(y,b,""+_,A);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Pd:return _.key===M?l(y,b,_,A):null;case $l:return _.key===M?u(y,b,_,A):null;case Sa:return M=_._init,g(y,b,M(_._payload),A)}if(Rc(_)||yc(_))return M!==null?null:d(y,b,_,A,null);Ud(y,_)}return null}function f(y,b,_,A,M){if(typeof A=="string"&&A!==""||typeof A=="number")return y=y.get(_)||null,s(b,y,""+A,M);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Pd:return y=y.get(A.key===null?_:A.key)||null,l(b,y,A,M);case $l:return y=y.get(A.key===null?_:A.key)||null,u(b,y,A,M);case Sa:var Z=A._init;return f(y,b,_,Z(A._payload),M)}if(Rc(A)||yc(A))return y=y.get(_)||null,d(b,y,A,M,null);Ud(b,A)}return null}function S(y,b,_,A){for(var M=null,Z=null,V=b,q=b=0,F=null;V!==null&&q<_.length;q++){V.index>q?(F=V,V=null):F=V.sibling;var X=g(y,V,_[q],A);if(X===null){V===null&&(V=F);break}e&&V&&X.alternate===null&&t(y,V),b=o(X,b,q),Z===null?M=X:Z.sibling=X,Z=X,V=F}if(q===_.length)return n(y,V),fn&&ks(y,q),M;if(V===null){for(;q<_.length;q++)V=p(y,_[q],A),V!==null&&(b=o(V,b,q),Z===null?M=V:Z.sibling=V,Z=V);return fn&&ks(y,q),M}for(V=r(y,V);q<_.length;q++)F=f(V,y,q,_[q],A),F!==null&&(e&&F.alternate!==null&&V.delete(F.key===null?q:F.key),b=o(F,b,q),Z===null?M=F:Z.sibling=F,Z=F);return e&&V.forEach(function(P){return t(y,P)}),fn&&ks(y,q),M}function v(y,b,_,A){var M=yc(_);if(typeof M!="function")throw Error(Le(150));if(_=M.call(_),_==null)throw Error(Le(151));for(var Z=M=null,V=b,q=b=0,F=null,X=_.next();V!==null&&!X.done;q++,X=_.next()){V.index>q?(F=V,V=null):F=V.sibling;var P=g(y,V,X.value,A);if(P===null){V===null&&(V=F);break}e&&V&&P.alternate===null&&t(y,V),b=o(P,b,q),Z===null?M=P:Z.sibling=P,Z=P,V=F}if(X.done)return n(y,V),fn&&ks(y,q),M;if(V===null){for(;!X.done;q++,X=_.next())X=p(y,X.value,A),X!==null&&(b=o(X,b,q),Z===null?M=X:Z.sibling=X,Z=X);return fn&&ks(y,q),M}for(V=r(y,V);!X.done;q++,X=_.next())X=f(V,y,q,X.value,A),X!==null&&(e&&X.alternate!==null&&V.delete(X.key===null?q:X.key),b=o(X,b,q),Z===null?M=X:Z.sibling=X,Z=X);return e&&V.forEach(function(R){return t(y,R)}),fn&&ks(y,q),M}function x(y,b,_,A){if(typeof _=="object"&&_!==null&&_.type===Hl&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Pd:e:{for(var M=_.key,Z=b;Z!==null;){if(Z.key===M){if(M=_.type,M===Hl){if(Z.tag===7){n(y,Z.sibling),b=i(Z,_.props.children),b.return=y,y=b;break e}}else if(Z.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Sa&&M5(M)===Z.type){n(y,Z.sibling),b=i(Z,_.props),b.ref=Sc(y,Z,_),b.return=y,y=b;break e}n(y,Z);break}else t(y,Z);Z=Z.sibling}_.type===Hl?(b=$s(_.props.children,y.mode,A,_.key),b.return=y,y=b):(A=xh(_.type,_.key,_.props,null,y.mode,A),A.ref=Sc(y,b,_),A.return=y,y=A)}return a(y);case $l:e:{for(Z=_.key;b!==null;){if(b.key===Z)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){n(y,b.sibling),b=i(b,_.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=h0(_,y.mode,A),b.return=y,y=b}return a(y);case Sa:return Z=_._init,x(y,b,Z(_._payload),A)}if(Rc(_))return S(y,b,_,A);if(yc(_))return v(y,b,_,A);Ud(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(n(y,b.sibling),b=i(b,_),b.return=y,y=b):(n(y,b),b=d0(_,y.mode,A),b.return=y,y=b),a(y)):n(y,b)}return x}var Eu=Kx(!0),Yx=Kx(!1),Zh=rs(null),Xh=null,Ql=null,lg=null;function ug(){lg=Ql=Xh=null}function cg(e){var t=Zh.current;an(Zh),e._currentValue=t}function Im(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function au(e,t){Xh=e,lg=Ql=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fr=!0),e.firstContext=null)}function wi(e){var t=e._currentValue;if(lg!==e)if(e={context:e,memoizedValue:t,next:null},Ql===null){if(Xh===null)throw Error(Le(308));Ql=e,Xh.dependencies={lanes:0,firstContext:e}}else Ql=Ql.next=e;return t}var Ts=null;function fg(e){Ts===null?Ts=[e]:Ts.push(e)}function Zx(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,fg(t)):(n.next=i.next,i.next=n),t.interleaved=n,Zo(e,r)}function Zo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Na=!1;function dg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xx(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 Go(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $a(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Rt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Zo(e,n)}return i=r.interleaved,i===null?(t.next=t,fg(r)):(t.next=i.next,i.next=t),r.interleaved=t,Zo(e,n)}function mh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,X2(e,n)}}function F5(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qh(e,t,n,r){var i=e.updateQueue;Na=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(o!==null){var p=i.baseState;a=0,d=u=l=null,s=o;do{var g=s.lane,f=s.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,v=s;switch(g=t,f=n,v.tag){case 1:if(S=v.payload,typeof S=="function"){p=S.call(f,p,g);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=v.payload,g=typeof S=="function"?S.call(f,p,g):S,g==null)break e;p=gn({},p,g);break e;case 2:Na=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[s]:g.push(s))}else f={eventTime:f,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=f,l=p):d=d.next=f,a|=g;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;g=s,s=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);if(d===null&&(l=p),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,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);Ks|=a,e.lanes=a,e.memoizedState=p}}function D5(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Le(191,i));i.call(r)}}}var Bf={},yo=rs(Bf),df=rs(Bf),hf=rs(Bf);function Rs(e){if(e===Bf)throw Error(Le(174));return e}function hg(e,t){switch(Jt(hf,t),Jt(df,e),Jt(yo,Bf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hm(t,e)}an(yo),Jt(yo,t)}function Lu(){an(yo),an(df),an(hf)}function Qx(e){Rs(hf.current);var t=Rs(yo.current),n=hm(t,e.type);t!==n&&(Jt(df,e),Jt(yo,n))}function pg(e){df.current===e&&(an(yo),an(df))}var pn=rs(0);function Jh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 a0=[];function mg(){for(var e=0;e<a0.length;e++)a0[e]._workInProgressVersionPrimary=null;a0.length=0}var gh=ea.ReactCurrentDispatcher,s0=ea.ReactCurrentBatchConfig,Gs=0,mn=null,Un=null,Vn=null,ep=!1,$c=!1,pf=0,DA=0;function fr(){throw Error(Le(321))}function gg(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ui(e[n],t[n]))return!1;return!0}function vg(e,t,n,r,i,o){if(Gs=o,mn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,gh.current=e===null||e.memoizedState===null?qA:$A,e=n(r,i),$c){o=0;do{if($c=!1,pf=0,25<=o)throw Error(Le(301));o+=1,Vn=Un=null,t.updateQueue=null,gh.current=HA,e=n(r,i)}while($c)}if(gh.current=tp,t=Un!==null&&Un.next!==null,Gs=0,Vn=Un=mn=null,ep=!1,t)throw Error(Le(300));return e}function yg(){var e=pf!==0;return pf=0,e}function so(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vn===null?mn.memoizedState=Vn=e:Vn=Vn.next=e,Vn}function bi(){if(Un===null){var e=mn.alternate;e=e!==null?e.memoizedState:null}else e=Un.next;var t=Vn===null?mn.memoizedState:Vn.next;if(t!==null)Vn=t,Un=e;else{if(e===null)throw Error(Le(310));Un=e,e={memoizedState:Un.memoizedState,baseState:Un.baseState,baseQueue:Un.baseQueue,queue:Un.queue,next:null},Vn===null?mn.memoizedState=Vn=e:Vn=Vn.next=e}return Vn}function mf(e,t){return typeof t=="function"?t(e):t}function l0(e){var t=bi(),n=t.queue;if(n===null)throw Error(Le(311));n.lastRenderedReducer=e;var r=Un,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var d=u.lane;if((Gs&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=p,a=r):l=l.next=p,mn.lanes|=d,Ks|=d}u=u.next}while(u!==null&&u!==o);l===null?a=r:l.next=s,Ui(r,t.memoizedState)||(Fr=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,mn.lanes|=o,Ks|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function u0(e){var t=bi(),n=t.queue;if(n===null)throw Error(Le(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Ui(o,t.memoizedState)||(Fr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Jx(){}function e3(e,t){var n=mn,r=bi(),i=t(),o=!Ui(r.memoizedState,i);if(o&&(r.memoizedState=i,Fr=!0),r=r.queue,wg(r3.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Vn!==null&&Vn.memoizedState.tag&1){if(n.flags|=2048,gf(9,n3.bind(null,n,r,i,t),void 0,null),Kn===null)throw Error(Le(349));Gs&30||t3(n,t,i)}return i}function t3(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=mn.updateQueue,t===null?(t={lastEffect:null,stores:null},mn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function n3(e,t,n,r){t.value=n,t.getSnapshot=r,i3(t)&&o3(e)}function r3(e,t,n){return n(function(){i3(t)&&o3(e)})}function i3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ui(e,n)}catch{return!0}}function o3(e){var t=Zo(e,1);t!==null&&zi(t,e,1,-1)}function B5(e){var t=so();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:mf,lastRenderedState:e},t.queue=e,e=e.dispatch=UA.bind(null,mn,e),[t.memoizedState,e]}function gf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=mn.updateQueue,t===null?(t={lastEffect:null,stores:null},mn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function a3(){return bi().memoizedState}function vh(e,t,n,r){var i=so();mn.flags|=e,i.memoizedState=gf(1|t,n,void 0,r===void 0?null:r)}function Pp(e,t,n,r){var i=bi();r=r===void 0?null:r;var o=void 0;if(Un!==null){var a=Un.memoizedState;if(o=a.destroy,r!==null&&gg(r,a.deps)){i.memoizedState=gf(t,n,o,r);return}}mn.flags|=e,i.memoizedState=gf(1|t,n,o,r)}function z5(e,t){return vh(8390656,8,e,t)}function wg(e,t){return Pp(2048,8,e,t)}function s3(e,t){return Pp(4,2,e,t)}function l3(e,t){return Pp(4,4,e,t)}function u3(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 c3(e,t,n){return n=n!=null?n.concat([e]):null,Pp(4,4,u3.bind(null,t,e),n)}function bg(){}function f3(e,t){var n=bi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gg(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function d3(e,t){var n=bi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gg(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function h3(e,t,n){return Gs&21?(Ui(n,t)||(n=yx(),mn.lanes|=n,Ks|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Fr=!0),e.memoizedState=n)}function BA(e,t){var n=qt;qt=n!==0&&4>n?n:4,e(!0);var r=s0.transition;s0.transition={};try{e(!1),t()}finally{qt=n,s0.transition=r}}function p3(){return bi().memoizedState}function zA(e,t,n){var r=Wa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},m3(e))g3(t,n);else if(n=Zx(e,t,n,r),n!==null){var i=Cr();zi(n,e,r,i),v3(n,t,r)}}function UA(e,t,n){var r=Wa(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(m3(e))g3(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,n);if(i.hasEagerState=!0,i.eagerState=s,Ui(s,a)){var l=t.interleaved;l===null?(i.next=i,fg(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Zx(e,t,i,r),n!==null&&(i=Cr(),zi(n,e,r,i),v3(n,t,r))}}function m3(e){var t=e.alternate;return e===mn||t!==null&&t===mn}function g3(e,t){$c=ep=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function v3(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,X2(e,n)}}var tp={readContext:wi,useCallback:fr,useContext:fr,useEffect:fr,useImperativeHandle:fr,useInsertionEffect:fr,useLayoutEffect:fr,useMemo:fr,useReducer:fr,useRef:fr,useState:fr,useDebugValue:fr,useDeferredValue:fr,useTransition:fr,useMutableSource:fr,useSyncExternalStore:fr,useId:fr,unstable_isNewReconciler:!1},qA={readContext:wi,useCallback:function(e,t){return so().memoizedState=[e,t===void 0?null:t],e},useContext:wi,useEffect:z5,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vh(4194308,4,u3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vh(4194308,4,e,t)},useInsertionEffect:function(e,t){return vh(4,2,e,t)},useMemo:function(e,t){var n=so();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=so();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=zA.bind(null,mn,e),[r.memoizedState,e]},useRef:function(e){var t=so();return e={current:e},t.memoizedState=e},useState:B5,useDebugValue:bg,useDeferredValue:function(e){return so().memoizedState=e},useTransition:function(){var e=B5(!1),t=e[0];return e=BA.bind(null,e[1]),so().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mn,i=so();if(fn){if(n===void 0)throw Error(Le(407));n=n()}else{if(n=t(),Kn===null)throw Error(Le(349));Gs&30||t3(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,z5(r3.bind(null,r,o,e),[e]),r.flags|=2048,gf(9,n3.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=so(),t=Kn.identifierPrefix;if(fn){var n=Vo,r=Wo;n=(r&~(1<<32-Bi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=DA++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$A={readContext:wi,useCallback:f3,useContext:wi,useEffect:wg,useImperativeHandle:c3,useInsertionEffect:s3,useLayoutEffect:l3,useMemo:d3,useReducer:l0,useRef:a3,useState:function(){return l0(mf)},useDebugValue:bg,useDeferredValue:function(e){var t=bi();return h3(t,Un.memoizedState,e)},useTransition:function(){var e=l0(mf)[0],t=bi().memoizedState;return[e,t]},useMutableSource:Jx,useSyncExternalStore:e3,useId:p3,unstable_isNewReconciler:!1},HA={readContext:wi,useCallback:f3,useContext:wi,useEffect:wg,useImperativeHandle:c3,useInsertionEffect:s3,useLayoutEffect:l3,useMemo:d3,useReducer:u0,useRef:a3,useState:function(){return u0(mf)},useDebugValue:bg,useDeferredValue:function(e){var t=bi();return Un===null?t.memoizedState=e:h3(t,Un.memoizedState,e)},useTransition:function(){var e=u0(mf)[0],t=bi().memoizedState;return[e,t]},useMutableSource:Jx,useSyncExternalStore:e3,useId:p3,unstable_isNewReconciler:!1};function Ii(e,t){if(e&&e.defaultProps){t=gn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Om(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:gn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Tp={isMounted:function(e){return(e=e._reactInternals)?il(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Cr(),i=Wa(e),o=Go(r,i);o.payload=t,n!=null&&(o.callback=n),t=$a(e,o,i),t!==null&&(zi(t,e,i,r),mh(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Cr(),i=Wa(e),o=Go(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=$a(e,o,i),t!==null&&(zi(t,e,i,r),mh(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cr(),r=Wa(e),i=Go(n,r);i.tag=2,t!=null&&(i.callback=t),t=$a(e,i,r),t!==null&&(zi(t,e,r,n),mh(t,e,r))}};function U5(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!lf(n,r)||!lf(i,o):!0}function y3(e,t,n){var r=!1,i=Qa,o=t.contextType;return typeof o=="object"&&o!==null?o=wi(o):(i=zr(t)?Ws:wr.current,r=t.contextTypes,o=(r=r!=null)?Au(e,i):Qa),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Tp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function q5(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Tp.enqueueReplaceState(t,t.state,null)}function jm(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},dg(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=wi(o):(o=zr(t)?Ws:wr.current,i.context=Au(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Om(e,t,o,n),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&&Tp.enqueueReplaceState(i,i.state,null),Qh(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Cu(e,t){try{var n="",r=t;do n+=yN(r),r=r.return;while(r);var i=n}catch(o){i=` 39Error generating stack: `+o.message+` 40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function c0(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Mm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var WA=typeof WeakMap=="function"?WeakMap:Map;function w3(e,t,n){n=Go(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rp||(rp=!0,Vm=r),Mm(e,t)},n}function b3(e,t,n){n=Go(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Mm(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Mm(e,t),typeof r!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function $5(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new WA;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=ok.bind(null,e,t,n),t.then(e,e))}function H5(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 W5(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Go(-1,1),t.tag=2,$a(n,t,1))),n.lanes|=1),e)}var VA=ea.ReactCurrentOwner,Fr=!1;function kr(e,t,n,r){t.child=e===null?Yx(t,null,n,r):Eu(t,e.child,n,r)}function V5(e,t,n,r,i){n=n.render;var o=t.ref;return au(t,i),r=vg(e,t,n,r,o,i),n=yg(),e!==null&&!Fr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xo(e,t,i)):(fn&&n&&og(t),t.flags|=1,kr(e,t,r,i
vendor: 7,600 bytes, line 40
40),t.child)}function G5(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Lg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,x3(e,t,o,r,i)):(e=xh(n.type,null,r,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(n=n.compare,n=n!==null?n:lf,n(a,r)&&e.ref===t.ref)return Xo(e,t,i)}return t.flags|=1,e=Va(o,r),e.ref=t.ref,e.return=t,t.child=e}function x3(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(lf(o,r)&&e.ref===t.ref)if(Fr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Fr=!0);else return t.lanes=e.lanes,Xo(e,t,i)}return Fm(e,t,n,r,i)}function _3(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Jt(eu,Qr),Qr|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Jt(eu,Qr),Qr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Jt(eu,Qr),Qr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Jt(eu,Qr),Qr|=r;return kr(e,t,i,n),t.child}function S3(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Fm(e,t,n,r,i){var o=zr(n)?Ws:wr.current;return o=Au(t,o),au(t,i),n=vg(e,t,n,r,o,i),r=yg(),e!==null&&!Fr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xo(e,t,i)):(fn&&r&&og(t),t.flags|=1,kr(e,t,n,i),t.child)}function K5(e,t,n,r,i){if(zr(n)){var o=!0;Gh(t)}else o=!1;if(au(t,i),t.stateNode===null)yh(e,t),y3(t,n,r),jm(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=wi(u):(u=zr(n)?Ws:wr.current,u=Au(t,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&q5(t,a,r,u),Na=!1;var g=t.memoizedState;a.state=g,Qh(t,r,a,i),l=t.memoizedState,s!==r||g!==l||Br.current||Na?(typeof d=="function"&&(Om(t,n,d,r),l=t.memoizedState),(s=Na||U5(t,n,s,r,g,l,u))?(p||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=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Xx(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ii(t.type,s),a.props=u,p=t.pendingProps,g=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=wi(l):(l=zr(n)?Ws:wr.current,l=Au(t,l));var f=n.getDerivedStateFromProps;(d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==p||g!==l)&&q5(t,a,r,l),Na=!1,g=t.memoizedState,a.state=g,Qh(t,r,a,i);var S=t.memoizedState;s!==p||g!==S||Br.current||Na?(typeof f=="function"&&(Om(t,n,f,r),S=t.memoizedState),(u=Na||U5(t,n,u,r,g,S,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,S,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,S,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),a.props=r,a.state=S,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return Dm(e,t,n,r,o,i)}function Dm(e,t,n,r,i,o){S3(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&I5(t,n,!1),Xo(e,t,o);r=t.stateNode,VA.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Eu(t,e.child,null,o),t.child=Eu(t,null,s,o)):kr(e,t,s,o),t.memoizedState=r.state,i&&I5(t,n,!0),t.child}function N3(e){var t=e.stateNode;t.pendingContext?R5(e,t.pendingContext,t.pendingContext!==t.context):t.context&&R5(e,t.context,!1),hg(e,t.containerInfo)}function Y5(e,t,n,r,i){return ku(),sg(i),t.flags|=256,kr(e,t,n,r),t.child}var Bm={dehydrated:null,treeContext:null,retryLane:0};function zm(e){return{baseLanes:e,cachePool:null,transitions:null}}function A3(e,t,n){var r=t.pendingProps,i=pn.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),Jt(pn,i&1),e===null)return Rm(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=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Op(a,r,0,null),e=$s(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=zm(n),t.memoizedState=Bm,e):xg(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return GA(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Va(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Va(s,o):(o=$s(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?zm(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Bm,r}return o=e.child,e=o.sibling,r=Va(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xg(e,t){return t=Op({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qd(e,t,n,r){return r!==null&&sg(r),Eu(t,e.child,null,n),e=xg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function GA(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=c0(Error(Le(422))),qd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Op({mode:"visible",children:r.children},i,0,null),o=$s(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Eu(t,e.child,null,a),t.child.memoizedState=zm(a),t.memoizedState=Bm,o);if(!(t.mode&1))return qd(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Le(419)),r=c0(o,r,void 0),qd(e,t,a,r)}if(s=(a&e.childLanes)!==0,Fr||s){if(r=Kn,r!==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}
vendor: 4,524 bytes, line 40
40i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Zo(e,i),zi(r,e,i,-1))}return Eg(),r=c0(Error(Le(421))),qd(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=ak.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ei=qa(i.nextSibling),ri=t,fn=!0,Di=null,e!==null&&(pi[mi++]=Wo,pi[mi++]=Vo,pi[mi++]=Vs,Wo=e.id,Vo=e.overflow,Vs=t),t=xg(t,r.children),t.flags|=4096,t)}function Z5(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Im(e.return,t,n)}function f0(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function k3(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(kr(e,t,r.children,n),r=pn.current,r&2)r=r&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&&Z5(e,n,t);else if(e.tag===19)Z5(e,n,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}r&=1}if(Jt(pn,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Jh(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),f0(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Jh(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}f0(t,!0,n,null,o);break;case"together":f0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function yh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ks|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Le(153));if(t.child!==null){for(e=t.child,n=Va(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Va(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function KA(e,t,n){switch(t.tag){case 3:N3(t),ku();break;case 5:Qx(t);break;case 1:zr(t.type)&&Gh(t);break;case 4:hg(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Jt(Zh,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Jt(pn,pn.current&1),t.flags|=128,null):n&t.child.childLanes?A3(e,t,n):(Jt(pn,pn.current&1),e=Xo(e,t,n),e!==null?e.sibling:null);Jt(pn,pn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return k3(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Jt(pn,pn.current),r)break;return null;case 22:case 23:return t.lanes=0,_3(e,t,n)}return Xo(e,t,n)}var E3,Um,L3,C3;E3=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Um=function(){};L3=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Rs(yo.current);var o=null;switch(n){case"input":i=um(e,i),r=um(e,r),o=[];break;case"select":i=gn({},i,{value:void 0}),r=gn({},r,{value:void 0}),o=[];break;case"textarea":i=dm(e,i),r=dm(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Wh)}pm(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ef.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ef.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&rn("scroll",e),o||s===l||(
vendor: 4,659 bytes, line 40
40o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};C3=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nc(e,t){if(!fn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function dr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function YA(e,t,n){var r=t.pendingProps;switch(ag(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dr(t),null;case 1:return zr(t.type)&&Vh(),dr(t),null;case 3:return r=t.stateNode,Lu(),an(Br),an(wr),mg(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Di!==null&&(Ym(Di),Di=null))),Um(e,t),dr(t),null;case 5:pg(t);var i=Rs(hf.current);if(n=t.type,e!==null&&t.stateNode!=null)L3(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Le(166));return dr(t),null}if(e=Rs(yo.current),zd(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[fo]=t,r[ff]=o,e=(t.mode&1)!==0,n){case"dialog":rn("cancel",r),rn("close",r);break;case"iframe":case"object":case"embed":rn("load",r);break;case"video":case"audio":for(i=0;i<Oc.length;i++)rn(Oc[i],r);break;case"source":rn("error",r);break;case"img":case"image":case"link":rn("error",r),rn("load",r);break;case"details":rn("toggle",r);break;case"input":o5(r,o),rn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},rn("invalid",r);break;case"textarea":s5(r,o),rn("invalid",r)}pm(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Bd(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Bd(r.textContent,s,e),i=["children",""+s]):ef.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&rn("scroll",r)}switch(n){case"input":Td(r),a5(r,o,!0);break;case"textarea":Td(r),l5(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Wh)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rx(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[fo]=t,e[ff]=r,E3(e,t,!1,!1),t.stateNode=e;e:{switch(a=mm(n,r),n){case"dialog":rn("cancel",e),rn("close",e),i=r;break;case"iframe":case"object":case"embed":rn("load",e),i=r;break;case"video":case"audio":for(i=0;i<Oc.length;i++)rn(Oc[i],e);i=r;break;case"source":rn("error",e),i=r;break;case"img":case"image":case"link":rn("error",e),rn("load",e),i=r;break;case"details":rn("toggle",e),i=r;break;case"input":o5(e,r),i=um(e,r),rn("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=gn({},r,{value:void 0}),rn("invalid",e);break;case"textarea":s5(e,r),i=dm(e,r),rn("invalid",e);break;default:i=r}pm(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?ax(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ix(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&tf(e,l):typeof l=="number"&&tf(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ef.hasOwnProperty(o)?l!=null&&o==="onScroll"&&rn("scroll",e):l!=null&&W2(e,o,l,a))}switch(n){case"input":Td(e),a5(e,r,!1);break;case"textarea":Td(e),l5(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Xa(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?nu(e,!!r.multiple,o,!1):r.defaultValue!=null&&nu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Wh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 26,487 bytes, line 40
40return dr(t),null;case 6:if(e&&t.stateNode!=null)C3(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Le(166));if(n=Rs(hf.current),Rs(yo.current),zd(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(o=r.nodeValue!==n)&&(e=ri,e!==null))switch(e.tag){case 3:Bd(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Bd(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[fo]=t,t.stateNode=r}return dr(t),null;case 13:if(an(pn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(fn&&ei!==null&&t.mode&1&&!(t.flags&128))Gx(),ku(),t.flags|=98560,o=!1;else if(o=zd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Le(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Le(317));o[fo]=t}else ku(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;dr(t),o=!1}else Di!==null&&(Ym(Di),Di=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||pn.current&1?qn===0&&(qn=3):Eg())),t.updateQueue!==null&&(t.flags|=4),dr(t),null);case 4:return Lu(),Um(e,t),e===null&&uf(t.stateNode.containerInfo),dr(t),null;case 10:return cg(t.type._context),dr(t),null;case 17:return zr(t.type)&&Vh(),dr(t),null;case 19:if(an(pn),o=t.memoizedState,o===null)return dr(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Nc(o,!1);else{if(qn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Jh(e),a!==null){for(t.flags|=128,Nc(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,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}),n=n.sibling;return Jt(pn,pn.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ln()>Pu&&(t.flags|=128,r=!0,Nc(o,!1),t.lanes=4194304)}else{if(!r)if(e=Jh(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!fn)return dr(t),null}else 2*Ln()-o.renderingStartTime>Pu&&n!==1073741824&&(t.flags|=128,r=!0,Nc(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ln(),t.sibling=null,n=pn.current,Jt(pn,r?n&1|2:n&1),t):(dr(t),null);case 22:case 23:return kg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qr&1073741824&&(dr(t),t.subtreeFlags&6&&(t.flags|=8192)):dr(t),null;case 24:return null;case 25:return null}throw Error(Le(156,t.tag))}function ZA(e,t){switch(ag(t),t.tag){case 1:return zr(t.type)&&Vh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lu(),an(Br),an(wr),mg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pg(t),null;case 13:if(an(pn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Le(340));ku()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return an(pn),null;case 4:return Lu(),null;case 10:return cg(t.type._context),null;case 22:case 23:return kg(),null;case 24:return null;default:return null}}var $d=!1,yr=!1,XA=typeof WeakSet=="function"?WeakSet:Set,je=null;function Jl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Sn(e,t,r)}else n.current=null}function qm(e,t,n){try{n()}catch(r){Sn(e,t,r)}}var X5=!1;function QA(e,t){if(Am=qh,e=Ox(),ig(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,d=0,p=e,g=null;t:for(;;){for(var f;p!==n||i!==0&&p.nodeType!==3||(s=a+i),p!==o||r!==0&&p.nodeType!==3||(l=a+r),p.nodeType===3&&(a+=p.nodeValue.length),(f=p.firstChild)!==null;)g=p,p=f;for(;;){if(p===e)break t;if(g===n&&++u===i&&(s=a),g===o&&++d===r&&(l=a),(f=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=f}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(km={focusedElem:e,selectionRange:n},qh=!1,je=t;je!==null;)if(t=je,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,je=e;else for(;je!==null;){t=je;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var v=S.memoizedProps,x=S.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ii(t.type,v),x);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(A){Sn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,je=e;break}je=t.return}return S=X5,X5=!1,S}function Hc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&qm(t,n,o)}i=i.next}while(i!==r)}}function Rp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function $m(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function P3(e){var t=e.alternate;t!==null&&(e.alternate=null,P3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fo],delete t[ff],delete t[Cm],delete t[OA],delete t[jA])),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 T3(e){return e.tag===5||e.tag===3||e.tag===4}function Q5(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||T3(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 Hm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Wh));else if(r!==4&&(e=e.child,e!==null))for(Hm(e,t,n),e=e.sibling;e!==null;)Hm(e,t,n),e=e.sibling}function Wm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Wm(e,t,n),e=e.sibling;e!==null;)Wm(e,t,n),e=e.sibling}var tr=null,Fi=!1;function ga(e,t,n){for(n=n.child;n!==null;)R3(e,t,n),n=n.sibling}function R3(e,t,n){if(vo&&typeof vo.onCommitFiberUnmount=="function")try{vo.onCommitFiberUnmount(Np,n)}catch{}switch(n.tag){case 5:yr||Jl(n,t);case 6:var r=tr,i=Fi;tr=null,ga(e,t,n),tr=r,Fi=i,tr!==null&&(Fi?(e=tr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):tr.removeChild(n.stateNode));break;case 18:tr!==null&&(Fi?(e=tr,n=n.stateNode,e.nodeType===8?i0(e.parentNode,n):e.nodeType===1&&i0(e,n),af(e)):i0(tr,n.stateNode));break;case 4:r=tr,i=Fi,tr=n.stateNode.containerInfo,Fi=!0,ga(e,t,n),tr=r,Fi=i;break;case 0:case 11:case 14:case 15:if(!yr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&qm(n,t,a),i=i.next}while(i!==r)}ga(e,t,n);break;case 1:if(!yr&&(Jl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sn(n,t,s)}ga(e,t,n);break;case 21:ga(e,t,n);break;case 22:n.mode&1?(yr=(r=yr)||n.memoizedState!==null,ga(e,t,n),yr=r):ga(e,t,n);break;default:ga(e,t,n)}}function J5(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new XA),t.forEach(function(r){var i=sk.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ci(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:tr=s.stateNode,Fi=!1;break e;case 3:tr=s.stateNode.containerInfo,Fi=!0;break e;case 4:tr=s.stateNode.containerInfo,Fi=!0;break e}s=s.return}if(tr===null)throw Error(Le(160));R3(o,a,i),tr=null,Fi=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Sn(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)I3(t,e),t=t.sibling}function I3(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ci(t,e),ro(e),r&4){try{Hc(3,e,e.return),Rp(3,e)}catch(v){Sn(e,e.return,v)}try{Hc(5,e,e.return)}catch(v){Sn(e,e.return,v)}}break;case 1:Ci(t,e),ro(e),r&512&&n!==null&&Jl(n,n.return);break;case 5:if(Ci(t,e),ro(e),r&512&&n!==null&&Jl(n,n.return),e.flags&32){var i=e.stateNode;try{tf(i,"")}catch(v){Sn(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&tx(i,o),mm(s,a);var u=mm(s,o);for(a=0;a<l.length;a+=2){var d=l[a],p=l[a+1];d==="style"?ax(i,p):d==="dangerouslySetInnerHTML"?ix(i,p):d==="children"?tf(i,p):W2(i,d,p,u)}switch(s){case"input":cm(i,o);break;case"textarea":nx(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?nu(i,!!o.multiple,f,!1):g!==!!o.multiple&&(o.defaultValue!=null?nu(i,!!o.multiple,o.defaultValue,!0):nu(i,!!o.multiple,o.multiple?[]:"",!1))}i[ff]=o}catch(v){Sn(e,e.return,v)}}break;case 6:if(Ci(t,e),ro(e),r&4){if(e.stateNode===null)throw Error(Le(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){Sn(e,e.return,v)}}break;case 3:if(Ci(t,e),ro(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{af(t.containerInfo)}catch(v){Sn(e,e.return,v)}break;case 4:Ci(t,e),ro(e);break;case 13:Ci(t,e),ro(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Ng=Ln())),r&4&&J5(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(yr=(u=yr)||d,Ci(t,e),yr=u):Ci(t,e),ro(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(je=e,d=e.child;d!==null;){for(p=je=d;je!==null;){switch(g=je,f=g.child,g.tag){case 0:case 11:case 14:case 15:Hc(4,g,g.return);break;case 1:Jl(g,g.return);var S=g.stateNode;if(typeof S.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(v){Sn(r,n,v)}}break;case 5:Jl(g,g.return);break;case 22:if(g.memoizedState!==null){ty(p);continue}}f!==null?(f.return=g,je=f):ty(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{i=p.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=p.stateNode,l=p.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=ox("display",a))}catch(v){Sn(e,e.return,v)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(v){Sn(e,e.return,v)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ci(t,e),ro(e),r&4&&J5(e);break;case 21:break;default:Ci(t,e),ro(e)}}function ro(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(T3(n)){var r=n;break e}n=n.return}throw Error(Le(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(tf(i,""),r.flags&=-33);var o=Q5(e);Wm(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=Q5(e);Hm(e,s,a);break;default:throw Error(Le(161))}}catch(l){Sn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function JA(e,t,n){je=e,O3(e)}function O3(e,t,n){for(var r=(e.mode&1)!==0;je!==null;){var i=je,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||$d;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||yr;s=$d;var u=yr;if($d=a,(yr=l)&&!u)for(je=i;je!==null;)a=je,l=a.child,a.tag===22&&a.memoizedState!==null?ny(i):l!==null?(l.return=a,je=l):ny(i);for(;o!==null;)je=o,O3(o),o=o.sibling;je=i,$d=s,yr=u}ey(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,je=o):ey(e)}}function ey(e){for(;je!==null;){var t=je;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:yr||Rp(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!yr)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ii(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&D5(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}D5(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&af(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Le(163))}yr||t.flags&512&&$m(t)}catch(g){Sn(t,t.return,g)}}if(t===e){je=null;break}if(n=t.sibling,n!==null){n.return=t.return,je=n;break}je=t.return}}function ty(e){for(;je!==null;){var t=je;if(t===e){je=null;break}var n=t.sibling;if(n!==null){n.return=t.return,je=n;break}je=t.return}}function ny(e){for(;je!==null;){var t=je;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rp(4,t)}catch(l){Sn(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Sn(t,i,l)}}var o=t.return;try{$m(t)}catch(l){Sn(t,o,l)}break;case 5:var a=t.return;try{$m(t)}catch(l){Sn(t,a,l)}}}catch(l){Sn(t,t.return,l)}if(t===e){je=null;break}var s=t.sibling;if(s!==null){s.return=t.return,je=s;break}je=t.return}}var ek=Math.ceil,np=ea.ReactCurrentDispatcher,_g=ea.ReactCurrentOwner,yi=ea.ReactCurrentBatchConfig,Rt=0,Kn=null,jn=null,rr=0,Qr=0,eu=rs(0),qn=0,vf=null,Ks=0,Ip=0,Sg=0,Wc=null,Mr=null,Ng=0,Pu=1/0,zo=null,rp=!1,Vm=null,Ha=null,Hd=!1,ja=null,ip=0,Vc=0,Gm=null,wh=-1,bh=0;function Cr(){return Rt&6?Ln():wh!==-1?wh:wh=Ln()}function Wa(e){return e.mode&1?Rt&2&&rr!==0?rr&-rr:FA.transition!==null?(bh===0&&(bh=yx()),bh):(e=qt,e!==0||(e=window.event,e=e===void 0?16:Ax(e.type)),e):1}function zi(e,t,n,r){if(50<Vc)throw Vc=0,Gm=null,Error(Le(185));Mf(e,n,r),(!(Rt&2)||e!==Kn)&&(e===Kn&&(!(Rt&2)&&(Ip|=n),qn===4&&Ea(e,rr)),Ur(e,r),n===1&&Rt===0&&!(t.mode&1)&&(Pu=Ln()+500,Cp&&is()))}function Ur(e,t){var n=e.callbackNode;FN(e,t);var r=Uh(e,e===Kn?rr:0);if(r===0)n!==null&&f5(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&f5(n),t===1)e.tag===0?MA(ry.bind(null,e)):Hx(ry.bind(null,e)),RA(function(){!(Rt&6)&&is()}),n=null;else{switch(wx(r)){case 1:n=Z2;break;case 4:n=gx;break;case 16:n=zh;break;case 536870912:n=vx;break;default:n=zh}n=q3(n,j3.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function j3(e,t){if(wh=-1,bh=0,Rt&6)throw Error(Le(327));var n=e.callbackNode;if(su()&&e.callbackNode!==n)return null;var r=Uh(e,e===Kn?rr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=op(e,r);else{t=r;var i=Rt;Rt|=2;var o=F3();(Kn!==e||rr!==t)&&(zo=null,Pu=Ln()+500,qs(e,t));do try{rk();break}catch(s){M3(e,s)}while(!0);ug(),np.current=o,Rt=i,jn!==null?t=0:(Kn=null,rr=0,t=qn)}if(t!==0){if(t===2&&(i=bm(e),i!==0&&(r=i,t=Km(e,i))),t===1)throw n=vf,qs(e,0),Ea(e,r),Ur(e,Ln()),n;if(t===6)Ea(e,r);else{if(i=e.current.alternate,!(r&30)&&!tk(i)&&(t=op(e,r),t===2&&(o=bm(e),o!==0&&(r=o,t=Km(e,o))),t===1))throw n=vf,qs(e,0),Ea(e,r),Ur(e,Ln()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Le(345));case 2:Es(e,Mr,zo);break;case 3:if(Ea(e,r),(r&130023424)===r&&(t=Ng+500-Ln(),10<t)){if(Uh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Cr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Lm(Es.bind(null,e,Mr,zo),t);break}Es(e,Mr,zo);break;case 4:if(Ea(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Bi(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=Ln()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ek(r/1960))-r,10<r){e.timeoutHandle=Lm(Es.bind(null,e,Mr,zo),r);break}Es(e,Mr,zo);break;case 5:Es(e,Mr,zo);break;default:throw Error(Le(329))}}}return Ur(e,Ln()),e.callbackNode===n?j3.bind(null,e):null}function Km(e,t){var n=Wc;return e.current.memoizedState.isDehydrated&&(qs(e,t).flags|=256),e=op(e,t),e!==2&&(t=Mr,Mr=n,t!==null&&Ym(t)),e}function Ym(e){Mr===null?Mr=e:Mr.push.apply(Mr,e)}function tk(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Ui(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Ea(e,t){for(t&=~Sg,t&=~Ip,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Bi(t),r=1<<n;e[n]=-1,t&=~r}}function ry(e){if(Rt&6)throw Error(Le(327));su();var t=Uh(e,0);if(!(t&1))return Ur(e,Ln()),null;var n=op(e,t);if(e.tag!==0&&n===2){var r=bm(e);r!==0&&(t=r,n=Km(e,r))}if(n===1)throw n=vf,qs(e,0),Ea(e,t),Ur(e,Ln()),n;if(n===6)throw Error(Le(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Es(e,Mr,zo),Ur(e,Ln()),null}function Ag(e,t){var n=Rt;Rt|=1;try{return e(t)}finally{Rt=n,Rt===0&&(Pu=Ln()+500,Cp&&is())}}function Ys(e){ja!==null&&ja.tag===0&&!(Rt&6)&&su();var t=Rt;Rt|=1;var n=yi.transition,r=qt;try{if(yi.transition=null,qt=1,e)return e()}finally{qt=r,yi.transition=n,Rt=t,!(Rt&6)&&is()}}function kg(){Qr=eu.current,an(eu)}function qs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,TA(n)),jn!==null)for(n=jn.return;n!==null;){var r=n;switch(ag(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Vh();break;case 3:Lu(),an(Br),an(wr),mg();break;case 5:pg(r);break;case 4:Lu();break;case 13:an(pn);break;case 19:an(pn);break;case 10:cg(r.type._context);break;case 22:case 23:kg()}n=n.return}if(Kn=e,jn=e=Va(e.current,null),rr=Qr=t,qn=0,vf=null,Sg=Ip=Ks=0,Mr=Wc=null,Ts!==null){for(t=0;t<Ts.length;t++)if(n=Ts[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Ts=null}return e}function M3(e,t){do{var n=jn;try{if(ug(),gh.current=tp,ep){for(var r=mn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ep=!1}if(Gs=0,Vn=Un=mn=null,$c=!1,pf=0,_g.current=null,n===null||n.return===null){qn=1,vf=t,jn=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=rr,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=s,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var g=d.alternate;g?(d.updateQueue=g.updateQueue,d.memoizedState=g.memoizedState,d.lanes=g.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=H5(a);if(f!==null){f.flags&=-257,W5(f,a,s,o,t),f.mode&1&&$5(o,u,t),t=f,l=u;var S=t.updateQueue;if(S===null){var v=new Set;v.add(l),t.updateQueue=v}else S.add(l);break e}else{if(!(t&1)){$5(o,u,t),Eg();break e}l=Error(Le(426))}}else if(fn&&s.mode&1){var x=H5(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),W5(x,a,s,o,t),sg(Cu(l,s));break e}}o=l=Cu(l,s),qn!==4&&(qn=2),Wc===null?Wc=[o]:Wc.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=w3(o,l,t);F5(o,y);break e;case 1:s=l;var b=o.type,_=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Ha===null||!Ha.has(_)))){o.flags|=65536,t&=-t,o.lanes|=t;var A=b3(o,s,t);F5(o,A);break e}}o=o.return}while(o!==null)}B3(n)}catch(M){t=M,jn===n&&n!==null&&(jn=n=n.return);continue}break}while(!0)}function F3(){var e=np.current;return np.current=tp,e===null?tp:e}function Eg(){(qn===0||qn===3||qn===2)&&(qn=4),Kn===null||!(Ks&268435455)&&!(Ip&268435455)||Ea(Kn,rr)}function op(e,t){var n=Rt;Rt|=2;var r=F3();(Kn!==e||rr!==t)&&(zo=null,qs(e,t));do try{nk();break}catch(i){M3(e,i)}while(!0);if(ug(),Rt=n,np.current=r,jn!==null)throw Error(Le(261));return Kn=null,rr=0,qn}function nk(){for(;jn!==null;)D3(jn)}function rk(){for(;jn!==null&&!LN();)D3(jn)}function D3(e){var t=U3(e.alternate,e,Qr);e.memoizedProps=e.pendingProps,t===null?B3(e):jn=t,_g.current=null}function B3(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ZA(n,t),n!==null){n.flags&=32767,jn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qn=6,jn=null;return}}else if(n=YA(n,t,Qr),n!==null){jn=n;return}if(t=t.sibling,t!==null){jn=t;return}jn=t=e}while(t!==null);qn===0&&(qn=5)}function Es(e,t,n){var r=qt,i=yi.transition;try{yi.transition=null,qt=1,ik(e,t,n,r)}finally{yi.transition=i,qt=r}return null}function ik(e,t,n,r){do su();while(ja!==null);if(Rt&6)throw Error(Le(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Le(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(DN(e,o),e===Kn&&(jn=Kn=null,rr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Hd||(Hd=!0,q3(zh,function(){return su(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=yi.transition,yi.transition=null;var a=qt;qt=1;var s=Rt;Rt|=4,_g.current=null,QA(e,n),I3(n,e),NA(km),qh=!!Am,km=Am=null,e.current=n,JA(n),CN(),Rt=s,qt=a,yi.transition=o}else e.current=n;if(Hd&&(Hd=!1,ja=e,ip=i),o=e.pendingLanes,o===0&&(Ha=null),RN(n.stateNode),Ur(e,Ln()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(rp)throw rp=!1,e=Vm,Vm=null,e;return ip&1&&e.tag!==0&&su(),o=e.pendingLanes,o&1?e===Gm?Vc++:(Vc=0,Gm=e):Vc=0,is(),null}function su(){if(ja!==null){var e=wx(ip),t=yi.transition,n=qt;try{if(yi.transition=null,qt=16>e?16:e,ja===null)var r=!1;else{if(e=ja,ja=null,ip=0,Rt&6)throw Error(Le(331));var i=Rt;for(Rt|=4,je=e.current;je!==null;){var o=je,a=o.child;if(je.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(je=u;je!==null;){var d=je;switch(d.tag){case 0:case 11:case 15:Hc(8,d,o)}var p=d.child;if(p!==null)p.return=d,je=p;else for(;je!==null;){d=je;var g=d.sibling,f=d.return;if(P3(d),d===u){je=null;break}if(g!==null){g.return=f,je=g;break}je=f}}}var S=o.alternate;if(S!==null){var v=S.child;if(v!==null){S.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}je=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,je=a;else e:for(;je!==null;){if(o=je,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Hc(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,je=y;break e}je=o.return}}var b=e.current;for(je=b;je!==null;){a=je;var _=a.child;if(a.subtreeFlags&2064&&_!==null)_.return=a,je=_;else e:for(a=b;je!==null;){if(s=je,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Rp(9,s)}}catch(M){Sn(s,s.return,M)}if(s===a){je=null;break e}var A=s.sibling;if(A!==null){A.return=s.return,je=A;break e}je=s.return}}if(Rt=i,is(),vo&&typeof vo.onPostCommitFiberRoot=="function")try{vo.onPostCommitFiberRoot(Np,e)}catch{}r=!0}return r}finally{qt=n,yi.transition=t}}return!1}function iy(e,t,n){t=Cu(n,t),t=w3(e,t,1),e=$a(e,t,1),t=Cr(),e!==null&&(Mf(e,1,t),Ur(e,t))}function Sn(e,t,n){if(e.tag===3)iy(e,e,n);else for(;t!==null;){if(t.tag===3){iy(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ha===null||!Ha.has(r))){e=Cu(n,e),e=b3(t,e,1),t=$a(t,e,1),e=Cr(),t!==null&&(Mf(t,1,e),Ur(t,e));break}}t=t.return}}function ok(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Cr(),e.pingedLanes|=e.suspendedLanes&n,Kn===e&&(rr&n)===n&&(qn===4||qn===3&&(rr&130023424)===rr&&500>Ln()-Ng?qs(e,0):Sg|=n),Ur(e,t)}function z3(e,t){t===0&&(e.mode&1?(t=Od,Od<<=1,!(Od&130023424)&&(Od=4194304)):t=1);var n=Cr();e=Zo(e,t),e!==null&&(Mf(e,t,n),Ur(e,n))}function ak(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),z3(e,n)}function sk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Le(314))}r!==null&&r.delete(t),z3(e,n)}var U3;U3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Br.current)Fr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fr=!1,KA(e,t,n);Fr=!!(e.flags&131072)}else Fr=!1,fn&&t.flags&1048576&&Wx(t,Yh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yh(e,t),e=t.pendingProps;var i=Au(t,wr.current);au(t,n),i=vg(null,t,r,e,i,n);var o=yg();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,zr(r)?(o=!0,Gh(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,dg(t),i.updater=Tp,t.stateNode=i,i._reactInternals=t,jm(t,r,e,n),t=Dm(null,t,r,!0,o,n)):(t.tag=0,fn&&o&&og(t),kr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=uk(r),e=Ii(r,e),i){case 0:t=Fm(null,t,r,e,n);break e;case 1:t=K5(null,t,r,e,n);break e;case 11:t=V5(null,t,r,e,n);break e;case 14:t=G5(null,t,r,Ii(r.type,e),n);break e}throw Error(Le(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),Fm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),K5(e,t,r,i,n);case 3:e:{if(N3(t),e===null)throw Error(Le(387));
vendor: 4,050 bytes, line 40
40r=t.pendingProps,o=t.memoizedState,i=o.element,Xx(e,t),Qh(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Cu(Error(Le(423)),t),t=Y5(e,t,r,n,i);break e}else if(r!==i){i=Cu(Error(Le(424)),t),t=Y5(e,t,r,n,i);break e}else for(ei=qa(t.stateNode.containerInfo.firstChild),ri=t,fn=!0,Di=null,n=Yx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ku(),r===i){t=Xo(e,t,n);break e}kr(e,t,r,n)}t=t.child}return t;case 5:return Qx(t),e===null&&Rm(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Em(r,i)?a=null:o!==null&&Em(r,o)&&(t.flags|=32),S3(e,t),kr(e,t,a,n),t.child;case 6:return e===null&&Rm(t),null;case 13:return A3(e,t,n);case 4:return hg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Eu(t,null,r,n):kr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),V5(e,t,r,i,n);case 7:return kr(e,t,t.pendingProps,n),t.child;case 8:return kr(e,t,t.pendingProps.children,n),t.child;case 12:return kr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Jt(Zh,r._currentValue),r._currentValue=a,o!==null)if(Ui(o.value,a)){if(o.children===i.children&&!Br.current){t=Xo(e,t,n);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===r){if(o.tag===1){l=Go(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Im(o.return,n,t),s.lanes|=n;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(Le(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Im(a,n,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}kr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,au(t,n),i=wi(i),r=r(i),t.flags|=1,kr(e,t,r,n),t.child;case 14:return r=t.type,i=Ii(r,t.pendingProps),i=Ii(r.type,i),G5(e,t,r,i,n);case 15:return x3(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ii(r,i),yh(e,t),t.tag=1,zr(r)?(e=!0,Gh(t)):e=!1,au(t,n),y3(t,r,i),jm(t,r,i,n),Dm(null,t,r,!0,e,n);case 19:return k3(e,t,n);case 22:return _3(e,t,n)}throw Error(Le(156,t.tag))};function q3(e,t){return mx(e,t)}function lk(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vi(e,t,n,r){return new lk(e,t,n,r)}function Lg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uk(e){if(typeof e=="function")return Lg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===G2)return 11;if(e===K2)return 14}return 2}function Va(e,t){var n=e.alternate;return n===null?(n=vi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xh(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Lg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Hl:return $s(n.children,i,o,t);case V2:a=8,i|=8;break;
vendor: 6,324 bytes, line 40
40case om:return e=vi(12,n,t,i|2),e.elementType=om,e.lanes=o,e;case am:return e=vi(13,n,t,i),e.elementType=am,e.lanes=o,e;case sm:return e=vi(19,n,t,i),e.elementType=sm,e.lanes=o,e;case Qb:return Op(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zb:a=10;break e;case Xb:a=9;break e;case G2:a=11;break e;case K2:a=14;break e;case Sa:a=16,r=null;break e}throw Error(Le(130,e==null?e:typeof e,""))}return t=vi(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function $s(e,t,n,r){return e=vi(7,e,r,t),e.lanes=n,e}function Op(e,t,n,r){return e=vi(22,e,r,t),e.elementType=Qb,e.lanes=n,e.stateNode={isHidden:!1},e}function d0(e,t,n){return e=vi(6,e,null,t),e.lanes=n,e}function h0(e,t,n){return t=vi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ck(e,t,n,r,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=G1(0),this.expirationTimes=G1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=G1(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Cg(e,t,n,r,i,o,a,s,l){return e=new ck(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=vi(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dg(o),e}function fk(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$l,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $3(e){if(!e)return Qa;e=e._reactInternals;e:{if(il(e)!==e||e.tag!==1)throw Error(Le(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Le(171))}if(e.tag===1){var n=e.type;if(zr(n))return $x(e,n,t)}return t}function H3(e,t,n,r,i,o,a,s,l){return e=Cg(n,r,!0,e,i,o,a,s,l),e.context=$3(null),n=e.current,r=Cr(),i=Wa(n),o=Go(r,i),o.callback=t??null,$a(n,o,i),e.current.lanes=i,Mf(e,i,r),Ur(e,r),e}function jp(e,t,n,r){var i=t.current,o=Cr(),a=Wa(i);return n=$3(n),t.context===null?t.context=n:t.pendingContext=n,t=Go(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$a(i,t,a),e!==null&&(zi(e,i,a,o),mh(e,i,a)),a}function ap(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 oy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pg(e,t){oy(e,t),(e=e.alternate)&&oy(e,t)}function dk(){return null}var W3=typeof reportError=="function"?reportError:function(e){console.error(e)};function Tg(e){this._internalRoot=e}Mp.prototype.render=Tg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Le(409));jp(e,t,null,null)};Mp.prototype.unmount=Tg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ys(function(){jp(null,e,null,null)}),t[Yo]=null}};function Mp(e){this._internalRoot=e}Mp.prototype.unstable_scheduleHydration=function(e){if(e){var t=_x();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ka.length&&t!==0&&t<ka[n].priority;n++);ka.splice(n,0,e),n===0&&Nx(e)}};function Rg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ay(){}function hk(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=ap(a);o.call(u)}}var a=H3(t,r,e,0,null,!1,!1,"",ay);return e._reactRootContainer=a,e[Yo]=a.current,uf(e.nodeType===8?e.parentNode:e),Ys(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=ap(l);s.call(u)}}var l=Cg(e,0,!1,null,null,!1,!1,"",ay);return e._reactRootContainer=l,e[Yo]=l.current,uf(e.nodeType===8?e.parentNode:e),Ys(function(){jp(t,l,n,r)}),l}function Dp(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=ap(a);s.call(l)}}jp(t,a,e,i)}else a=hk(n,t,e,i,r);return ap(a)}bx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ic(t.pendingLanes);n!==0&&(X2(t,n|1),Ur(t,Ln()),!(Rt&6)&&(Pu=Ln()+500,is()))}break;case 13:Ys(function(){var r=Zo(e,1);if(r!==null){var i=Cr();zi(r,e,1,i)}}),Pg(e,1)}};Q2=function(e){if(e.tag===13){var t=Zo(e,134217728);if(t!==null){var n=Cr();zi(t,e,134217728,n)}Pg(e,134217728)}};xx=function(e){if(e.tag===13){var t=Wa(e),n=Zo(e,t);if(n!==null){var r=Cr();zi(n,e,t,r)}Pg(e,t)}};_x=function(){return qt};Sx=function(e,t){var n=qt;try{return qt=e,t()}finally{qt=n}};vm=function(e,t,n){switch(t){case"input":if(cm(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Lp(r);if(!i)throw Error(Le(90));ex(r),cm(r,i)}}}break;case"textarea":nx(e,n);break;case"select":t=n.value,t!=null&&nu(e,!!n.multiple,t,!1)}};ux=Ag;cx=Ys;var pk={usingClientEntryPoint:!1,Events:[Df,Kl,Lp,sx,lx,Ag]},Ac={findFiberByHostInstance:Ps,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mk={bundleType:Ac.bundleType,version:Ac.version,rendererPackageName:Ac.rendererPackageName,rendererConfig:Ac.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ea.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hx(e),e===null?null:e.stateNode},findFiberByHostInstance:Ac.findFiberByHostInstance||dk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wd.isDisabled&&Wd.supportsFiber)try{Np=Wd.inject(mk),vo=Wd}catch{}}ai.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pk;ai.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rg(t))throw Error(Le(200));return fk(e,t,null,n)};ai.createRoot=function(e,t){if(!Rg(e))throw Error(Le(299));var n=!1,r="",i=W3;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Cg(e,1,!1,null,null,n,!1,r,i),e[Yo]=t.current,uf(e.nodeType===8?e.parentNode:e),new Tg(t)};ai.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(Le(188)):(e=Object.keys(e).join(","),Error(Le(268,e)));return e=hx(t),e=e===null?null:e.stateNode,e};ai.flushSync=function(e){return Ys(e)};ai.hydrate=function(e,t,n){if(!Fp(t))throw Error(Le(200));return Dp(null,e,t,!0,n)};ai.hydrateRoot=function(e,t,n){if(!Rg(e))throw Error(Le(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=W3;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=H3(t,null,e,1,n??null,i,!1,o,a),e[Yo]=t.current,uf(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Mp(t)};ai.render=function(e,t,n){if(!Fp(t))throw Error(Le(200));return Dp(null,e,t,!1,n)};ai.unmountComponentAtNode=function(e){if(!Fp(e))throw Error(Le(40));return e._reactRootContainer?(Ys(function(){Dp(null,null,e,!1,function(){e._reactRootContainer=null,e[Yo]=null})}),!0):!1};ai.unstable_batchedUpdates=Ag;ai.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fp(n))throw Error(Le(200));if(e==null||e._reactInternals===void 0)throw Error(Le(38));return Dp(e,t,n,!1,r)};ai.version="18.3.1-next-f1338f8080-20240426";function V3(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(V3)}catch(e){console.error(e)}}V3(),Vb.exports=ai;var ol=Vb.exports;const G3=Ob(ol);var K3,sy=ol;K3=sy.createRoot,sy.hydrateRoot;var Bp=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(){}},zp=typeof window>"u"||"Deno"in globalThis;function Oi(){}function gk(e,t){return typeof e=="function"?e(t):e}function vk(e){return typeof e=="number"&&e>=0&&e!==1/0}function yk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zm(e,t){return typeof e=="function"?e(t):e}function wk(e,t){return typeof e=="function"?e(t):e}function ly(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==Ig(a,t.options))return!1}else if(!wf(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||o&&!o(t))}function uy(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(yf(t.options.mutationKey)!==yf(o))return!1}else if(!wf(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ig(e,t){return((t==null?void 0:t.queryKeyHashFn)||yf)(e)}function yf(e){return JSON.stringify(e,(t,n)=>Xm(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function wf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>wf(e[n],t[n])):!1}function Y3(e,t){if(e===t)return e;const n=cy(e)&&cy(t);if(n||Xm(e)&&Xm(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{},l=new Set(r);let u=0;for(let d=0;d<a;d++){const p=n?d:o[d];(!n&&l.has(p)||n)&&e[p]===void 0&&t[p]===void 0?(s[p]=void 0,u++):(s[p]=Y3(e[p],t[p]),s[p]===e[p]&&e[p]!==void 0&&u++)}return i===a&&u===i?e:s}return t}function cy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xm(e){if(!fy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!fy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function fy(e){return Object.prototype.toString.call(e)==="[object Object]"}function bk(e){return new Promise(t=>{setTimeout(t,e)})}function xk(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Y3(e,t):t}function _k(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Sk(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Og=Symbol();function Z3(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Og?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ms,Ca,gu,kb,Nk=(kb=class extends Bp{constructor(){super();jt(this,Ms);jt(this,Ca);jt(this,gu);ht(this,gu,t=>{if(!zp&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_e(this,Ca)||this.setEventListener(_e(this,gu))}onUnsubscribe(){var t;this.hasListeners()||((t=_e(this,Ca))==null||t.call(this),ht(this,Ca,void 0))}setEventListener(t){var n;ht(this,gu,t),(n=_e(this,Ca))==null||n.call(this),ht(this,Ca,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_e(this,Ms)!==t&&(ht(this,Ms,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,942 bytes, line 40
40this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _e(this,Ms)=="boolean"?_e(this,Ms):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ms=new WeakMap,Ca=new WeakMap,gu=new WeakMap,kb),X3=new Nk,vu,Pa,yu,Eb,Ak=(Eb=class extends Bp{constructor(){super();jt(this,vu,!0);jt(this,Pa);jt(this,yu);ht(this,yu,t=>{if(!zp&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){_e(this,Pa)||this.setEventListener(_e(this,yu))}onUnsubscribe(){var t;this.hasListeners()||((t=_e(this,Pa))==null||t.call(this),ht(this,Pa,void 0))}setEventListener(t){var n;ht(this,yu,t),(n=_e(this,Pa))==null||n.call(this),ht(this,Pa,t(this.setOnline.bind(this)))}setOnline(t){_e(this,vu)!==t&&(ht(this,vu,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _e(this,vu)}},vu=new WeakMap,Pa=new WeakMap,yu=new WeakMap,Eb),sp=new Ak;function kk(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Ek(e){return Math.min(1e3*2**e,3e4)}function Q3(e){return(e??"online")==="online"?sp.isOnline():!0}var J3=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function p0(e){return e instanceof J3}function e4(e){let t=!1,n=0,r=!1,i;const o=kk(),a=v=>{var x;r||(g(new J3(v)),(x=e.abort)==null||x.call(e))},s=()=>{t=!0},l=()=>{t=!1},u=()=>X3.isFocused()&&(e.networkMode==="always"||sp.isOnline())&&e.canRun(),d=()=>Q3(e.networkMode)&&e.canRun(),p=v=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,v),i==null||i(),o.resolve(v))},g=v=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,v),i==null||i(),o.reject(v))},f=()=>new Promise(v=>{var x;i=y=>{(r||u())&&v(y)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),S=()=>{if(r)return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(p).catch(y=>{var Z;if(r)return;const b=e.retry??(zp?0:3),_=e.retryDelay??Ek,A=typeof _=="function"?_(n,y):_,M=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,y);if(t||!M){g(y);return}n++,(Z=e.onFail)==null||Z.call(e,n,y),bk(A).then(()=>u()?void 0:f()).then(()=>{t?g(y):S()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:l,canStart:d,start:()=>(d()?S():f().then(S),o)}}var Lk=e=>setTimeout(e,0);function Ck(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=Lk;const o=s=>{t?e.push(s):i(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Er=Ck(),Fs,Lb,t4=(Lb=class{constructor(){jt(this,Fs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),vk(this.gcTime)&&ht(this,Fs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zp?1/0:5*60*1e3))}clearGcTimeout(){_e(this,Fs)&&(clearTimeout(_e(this,Fs)),ht(this,Fs,void 0))}},Fs=new WeakMap,Lb),wu,Ds,hi,Bs,vr,If,zs,ji,Bo,Cb,Pk=(Cb=class extends t4{constructor(t){super();jt(this,ji);jt(this,wu);jt(this,Ds);jt(this,hi);jt(this,Bs);jt(this,vr);jt(this,If);jt(this,zs);ht(this,zs,!1),ht(this,If,t.defaultOptions),this.setOptions(t.options),this.observers=[],ht(this,Bs,t.client),ht(this,hi,_e(this,Bs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ht(this,wu,Rk(this.options)),this.state=t.state??_e(this,wu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_e(this,vr))==null?void 0:t.promise}setOptions(t){this.options={..._e(this,If),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_e(this,hi).remove(this)}setData(t,n){const r=xk(this.state.data,t,this.options);return cr(this,ji,Bo).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){cr(this,ji,Bo).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=_e(this,vr))==null?void 0:r.promise;return(i=_e(this,vr))==null||i.cancel(t),n?n.then(Oi).catch(Oi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_e(this,wu))}isActive(){return this.observers.some(t=>wk(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Og||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,282 bytes, line 40
40Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Zm(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:!yk(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_e(this,vr))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_e(this,vr))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_e(this,hi).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_e(this,vr)&&(_e(this,zs)?_e(this,vr).cancel({revert:!0}):_e(this,vr).cancelRetry()),this.scheduleGc()),_e(this,hi).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||cr(this,ji,Bo).call(this,{type:"invalidate"})}
vendor: 13,508 bytes, line 40
40fetch(t,n){var u,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_e(this,vr))return _e(this,vr).continueRetry(),_e(this,vr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(f=>f.options.queryFn);g&&this.setOptions(g.options)}const r=new AbortController,i=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(ht(this,zs,!0),r.signal)})},o=()=>{const g=Z3(this.options,n),S=(()=>{const v={client:_e(this,Bs),queryKey:this.queryKey,meta:this.meta};return i(v),v})();return ht(this,zs,!1),this.options.persister?this.options.persister(g,S,this):g(S)},s=(()=>{const g={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:_e(this,Bs),state:this.state,fetchFn:o};return i(g),g})();(u=this.options.behavior)==null||u.onFetch(s,this),ht(this,Ds,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&cr(this,ji,Bo).call(this,{type:"fetch",meta:(p=s.fetchOptions)==null?void 0:p.meta});const l=g=>{var f,S,v,x;p0(g)&&g.silent||cr(this,ji,Bo).call(this,{type:"error",error:g}),p0(g)||((S=(f=_e(this,hi).config).onError)==null||S.call(f,g,this),(x=(v=_e(this,hi).config).onSettled)==null||x.call(v,this.state.data,g,this)),this.scheduleGc()};return ht(this,vr,e4({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var f,S,v,x;if(g===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(y){l(y);return}(S=(f=_e(this,hi).config).onSuccess)==null||S.call(f,g,this),(x=(v=_e(this,hi).config).onSettled)==null||x.call(v,g,this.state.error,this),this.scheduleGc()},onError:l,onFail:(g,f)=>{cr(this,ji,Bo).call(this,{type:"failed",failureCount:g,error:f})},onPause:()=>{cr(this,ji,Bo).call(this,{type:"pause"})},onContinue:()=>{cr(this,ji,Bo).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),_e(this,vr).start()}},wu=new WeakMap,Ds=new WeakMap,hi=new WeakMap,Bs=new WeakMap,vr=new WeakMap,If=new WeakMap,zs=new WeakMap,ji=new WeakSet,Bo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Tk(r.data,this.options),fetchMeta:t.meta??null};case"success":return ht(this,Ds,void 0),{...r,data:t.data,dataUpdateCount:r.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 p0(i)&&i.revert&&_e(this,Ds)?{..._e(this,Ds),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Er.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),_e(this,hi).notify({query:this,type:"updated",action:t})})},Cb);function Tk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Q3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Rk(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var lo,Pb,Ik=(Pb=class extends Bp{constructor(t={}){super();jt(this,lo);this.config=t,ht(this,lo,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Ig(i,n);let a=this.get(o);return a||(a=new Pk({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){_e(this,lo).has(t.queryHash)||(_e(this,lo).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_e(this,lo).get(t.queryHash);n&&(t.destroy(),n===t&&_e(this,lo).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Er.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _e(this,lo).get(t)}getAll(){return[..._e(this,lo).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ly(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ly(t,r)):n}notify(t){Er.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Er.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Er.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lo=new WeakMap,Pb),uo,Ar,Us,co,xa,Tb,Ok=(Tb=class extends t4{constructor(t){super();jt(this,co);jt(this,uo);jt(this,Ar);jt(this,Us);this.mutationId=t.mutationId,ht(this,Ar,t.mutationCache),ht(this,uo,[]),this.state=t.state||jk(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_e(this,uo).includes(t)||(_e(this,uo).push(t),this.clearGcTimeout(),_e(this,Ar).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ht(this,uo,_e(this,uo).filter(n=>n!==t)),this.scheduleGc(),_e(this,Ar).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_e(this,uo).length||(this.state.status==="pending"?this.scheduleGc():_e(this,Ar).remove(this))}continue(){var t;return((t=_e(this,Us))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,s,l,u,d,p,g,f,S,v,x,y,b,_,A,M,Z,V,q;const n=()=>{cr(this,co,xa).call(this,{type:"continue"})};ht(this,Us,e4({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(F,X)=>{cr(this,co,xa).call(this,{type:"failed",failureCount:F,error:X})},onPause:()=>{cr(this,co,xa).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_e(this,Ar).canRun(this)}));const r=this.state.status==="pending",i=!_e(this,Us).canStart();try{if(r)n();else{cr(this,co,xa).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(o=_e(this,Ar).config).onMutate)==null?void 0:a.call(o,t,this));const X=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));X!==this.state.context&&cr(this,co,xa).call(this,{type:"pending",context:X,variables:t,isPaused:i})}const F=await _e(this,Us).start();return await((d=(u=_e(this,Ar).config).onSuccess)==null?void 0:d.call(u,F,t,this.state.context,this)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,F,t,this.state.context)),await((S=(f=_e(this,Ar).config).onSettled)==null?void 0:S.call(f,F,null,this.state.variables,this.state.context,this)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,F,null,t,this.state.context)),cr(this,co,xa).call(this,{type:"success",data:F}),F}catch(F){try{throw await((b=(y=_e(this,Ar).config).onError)==null?void 0:b.call(y,F,t,this.state.context,this)),await((A=(_=this.options).onError)==null?void 0:A.call(_,F,t,this.state.context)),await((Z=(M=_e(this,Ar).config).onSettled)==null?void 0:Z.call(M,void 0,F,this.state.variables,this.state.context,this)),await((q=(V=this.options).onSettled)==null?void 0:q.call(V,void 0,F,t,this.state.context)),F}finally{cr(this,co,xa).call(this,{type:"error",error:F})}}finally{_e(this,Ar).runNext(this)}}},uo=new WeakMap,Ar=new WeakMap,Us=new WeakMap,co=new WeakSet,xa=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Er.batch(()=>{_e(this,uo).forEach(r=>{r.onMutationUpdate(t)}),_e(this,Ar).notify({mutation:this,type:"updated",action:t})})},Tb);function jk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ho,Mi,Of,Rb,Mk=(Rb=class extends Bp{constructor(t={}){super();jt(this,Ho);jt(this,Mi);jt(this,Of);this.config=t,ht(this,Ho,new Set),ht(this,Mi,new Map),ht(this,Of,0)}build(t,n,r){const i=new Ok({mutationCache:this,mutationId:++Ld(this,Of)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){_e(this,Ho).add(t);const n=Vd(t);if(typeof n=="string"){const r=_e(this,Mi).get(n);r?r.push(t):_e(this,Mi).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(_e(this,Ho).delete(t)){const n=Vd(t);if(typeof n=="string"){const r=_e(this,Mi).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&_e(this,Mi).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Vd(t);if(typeof n=="string"){const r=_e(this,Mi).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Vd(t);if(typeof n=="string"){const i=(r=_e(this,Mi).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Er.batch(()=>{_e(this,Ho).forEach(t=>{this.notify({type:"removed",mutation:t})}),_e(this,Ho).clear(),_e(this,Mi).clear()})}getAll(){return Array.from(_e(this,Ho))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>uy(n,r))}findAll(t={}){return this.getAll().filter(n=>uy(t,n))}notify(t){Er.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Er.batch(()=>Promise.all(t.map(n=>n.continue().catch(Oi))))}},Ho=new WeakMap,Mi=new WeakMap,Of=new WeakMap,Rb);function Vd(e){var t;return(t=e.options.scope)==null?void 0:t.id}function dy(e){return{onFetch:(t,n)=>{var d,p,g,f,S;const r=t.options,i=(g=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,o=((f=t.state.data)==null?void 0:f.pages)||[],a=((S=t.state.data)==null?void 0:S.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let v=!1;const x=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},y=Z3(t.options,t.fetchOptions),b=async(_,A,M)=>{if(v)return Promise.reject();if(A==null&&_.pages.length)return Promise.resolve(_);const V=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:A,direction:M?"backward":"forward",meta:t.options.meta};return x(P),P})(),q=await y(V),{maxPages:F}=t.options,X=M?Sk:_k;return{pages:X(_.pages,q,F),pageParams:X(_.pageParams,A,F)}};if(i&&o.length){const _=i==="backward",A=_?Fk:hy,M={pages:o,pageParams:a},Z=A(r,M);s=await b(M,Z,_)}else{const _=e??o.length;do{const A=l===0?a[0]??r.initialPageParam:hy(r,s);if(l>0&&A==null)break;s=await b(s,A),l++}while(l<_)}return s};t.options.persister?t.fetchFn=()=>{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function hy(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Fk(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var xn,Ta,Ra,bu,xu,Ia,_u,Su,Ib,Dk=(Ib=class{constructor(e={}){jt(this,xn);jt(this,Ta);jt(this,Ra);jt(this,bu);jt(this,xu);jt(this,Ia);jt(this,_u);jt(this,Su);ht(this,xn,e.queryCache||new Ik),ht(this,Ta,e.mutationCache||new Mk),ht(this,Ra,e.defaultOptions||{}),ht(this,bu,new Map),ht(this,xu,new Map),ht(this,Ia,0)}mount(){Ld(this,Ia)._++,_e(this,Ia)===1&&(ht(this,_u,X3.subscribe(async e=>{e&&(await this.resumePausedMutations(),_e(this,xn).onFocus())})),ht(this,Su,sp.subscribe(async e=>{e&&(await this.resumePausedMutations(),_e(this,xn).onOnline())})))}unmount(){var e,t;Ld(this,Ia)._--,_e(this,Ia)===0&&((e=_e(this,_u))==null||e.call(this),ht(this,_u,void 0),(t=_e(this,Su))==null||t.call(this),ht(this,Su,void 0))}isFetching(e){return _e(this,xn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _e(this,Ta).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_e(this,xn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=_e(this,xn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Zm(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return _e(this,xn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=_e(this,xn).get(r.queryHash),o=i==null?void 0:i.state.data,a=gk(t,o);if(a!==void 0)return _e(this,xn).build(this,r).setData(a,{...n,manual:!0})}
40setQueriesData(e,t,n){return Er.batch(()=>_e(this,xn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_e(this,xn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_e(this,xn);Er.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_e(this,xn);return Er.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Er.batch(()=>_e(this,xn).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Oi).catch(Oi)}invalidateQueries(e,t={}){return Er.batch(()=>(_e(this,xn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Er.batch(()=>_e(this,xn).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Oi)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Oi)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_e(this,xn).build(this,t);return n.isStaleByTime(Zm(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Oi).catch(Oi)}fetchInfiniteQuery(e){return e.behavior=dy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Oi).catch(Oi)}ensureInfiniteQueryData(e){return e.behavior=dy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return sp.isOnline()?_e(this,Ta).resumePausedMutations():Promise.resolve()}getQueryCache(){return _e(this,xn)}getMutationCache(){return _e(this,Ta)}getDefaultOptions(){return _e(this,Ra)}setDefaultOptions(e){ht(this,Ra,e)}setQueryDefaults(e,t){_e(this,bu).set(yf(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._e(this,bu).values()],n={};return t.forEach(r=>{wf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){_e(this,xu).set(yf(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._e(this,xu).values()],n={};return t.forEach(r=>{wf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._e(this,Ra).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ig(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===Og&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._e(this,Ra).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_e(this,xn).clear(),_e(this,Ta).clear()}},xn=new WeakMap,Ta=new WeakMap,Ra=new WeakMap,bu=new WeakMap,xu=new WeakMap,Ia=new WeakMap,_u=new WeakMap,Su=new WeakMap,Ib),Bk=E.createContext(void 0),zk=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),O.jsx(Bk.Provider,{value:e,children:t}));/** 41 * @remix-run/router v1.23.0 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(this,arguments)}var Ma;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ma||(Ma={}));const py="popstate";function Uk(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return Qm("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:lp(i)}return $k(t,n,null,e)}function Mn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function n4(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qk(){return Math.random().toString(36).substr(2,8)}function my(e,t){return{usr:e.state,key:e.key,idx:t}}function Qm(e,t,n,r){return n===void 0&&(n=null),bf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bu(t):t,{state:n,key:t&&t.key||r||qk()})}function lp(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Bu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $k(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Ma.Pop,l=null,u=d();u==null&&(u=0,a.replaceState(bf({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function p(){s=Ma.Pop;let x=d(),y=x==null?null:x-u;u=x,l&&l({action:s,location:v.location,delta:y})}function g(x,y){s=Ma.Push;let b=Qm(v.location,x,y);u=d()+1;let _=my(b,u),A=v.createHref(b);try{a.pushState(_,"",A)}
vendor: 3,324 bytes, line 49
49catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;i.location.assign(A)}o&&l&&l({action:s,location:v.location,delta:1})}function f(x,y){s=Ma.Replace;let b=Qm(v.location,x,y);u=d();let _=my(b,u),A=v.createHref(b);a.replaceState(_,"",A),o&&l&&l({action:s,location:v.location,delta:0})}function S(x){let y=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof x=="string"?x:lp(x);return b=b.replace(/ $/,"%20"),Mn(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let v={get action(){return s},get location(){return e(i,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(py,p),l=x,()=>{i.removeEventListener(py,p),l=null}},createHref(x){return t(i,x)},createURL:S,encodeLocation(x){let y=S(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:g,replace:f,go(x){return a.go(x)}};return v}var gy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gy||(gy={}));function Hk(e,t,n){return n===void 0&&(n="/"),Wk(e,t,n,!1)}function Wk(e,t,n,r){let i=typeof t=="string"?Bu(t):t,o=jg(i.pathname||"/",n);if(o==null)return null;let a=r4(e);Vk(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=rE(o);s=tE(a[l],u,r)}return s}function r4(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");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("/")&&(Mn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ga([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(Mn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),r4(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Jk(u,o.index),routesMeta:d})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of i4(o.path))i(o,a,l)}),t}function i4(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=i4(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Vk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:eE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Gk=/^:[\w-]+$/,Kk=3,Yk=2,Zk=1,Xk=10,Qk=-2,vy=e=>e==="*";function Jk(e,t){let n=e.split("/"),r=n.length;return n.some(vy)&&(r+=Qk),t&&(r+=Yk),n.filter(i=>!vy(i)).reduce((i,o)=>i+(Gk.test(o)?Kk:o===""?Zk:Xk),r)}function eE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function tE(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",p=yy({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),g=l.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=yy({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!p)return null;
vendor: 9,180 bytes, lines 49-58
49Object.assign(i,p.params),a.push({params:i,pathname:Ga([o,p.pathname]),pathnameBase:sE(Ga([o,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(o=Ga([o,p.pathnameBase]))}return a}function yy(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=nE(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,d,p)=>{let{paramName:g,isOptional:f}=d;if(g==="*"){let v=s[p]||"";a=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const S=s[p];return f&&!S?u[g]=void 0:u[g]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function nE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),n4(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function rE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return n4(!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 jg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function iE(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Bu(e):e;return{pathname:n?n.startsWith("/")?n:oE(n,t):t,search:lE(r),hash:uE(i)}}function oE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function m0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function aE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function o4(e,t){let n=aE(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function a4(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Bu(e):(i=bf({},e),Mn(!i.pathname||!i.pathname.includes("?"),m0("?","pathname","search",i)),Mn(!i.pathname||!i.pathname.includes("#"),m0("#","pathname","hash",i)),Mn(!i.search||!i.search.includes("#"),m0("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let p=t.length-1;if(!r&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}s=p>=0?t[p]:"/"}let l=iE(i,s),u=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Ga=e=>e.join("/").replace(/\/\/+/g,"/"),sE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,uE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function cE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const s4=["post","put","patch","delete"];new Set(s4);const fE=["get",...s4];new Set(fE);/** 50 * React Router v6.30.1 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xf.apply(this,arguments)}const Mg=E.createContext(null),dE=E.createContext(null),al=E.createContext(null),Up=E.createContext(null),sl=E.createContext({outlet:null,matches:[],isDataRoute:!1}),l4=E.createContext(null);function hE(e,t){let{relative:n}=t===void 0?{}:t;zf()||Mn(!1);let{basename:r,navigator:i}=E.useContext(al),{hash:o,pathname:a,search:s}=c4(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Ga([r,a])),i.createHref({pathname:l,search:s,hash:o})}function zf(){return E.useContext(Up)!=null}function Uf(){return zf()||Mn(!1),E.useContext(Up).location}function u4(e){E.useContext(al).static||E.useLayoutEffect(e)}function pE(){let{isDataRoute:e}=E.useContext(sl);return e?EE():mE()}function mE(){zf()||Mn(!1);let e=E.useContext(Mg),{basename:t,future:n,navigator:r}=E.useContext(al),{matches:i}=E.useContext(sl),{pathname:o}=Uf(),a=JSON.stringify(o4(i,n.v7_relativeSplatPath)),s=E.useRef(!1);return u4(()=>{s.current=!0}),E.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let p=a4(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ga([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,a,o,e])}function c4(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(al),{matches:i}=E.useContext(sl),{pathname:o}=Uf(),a=JSON.stringify(o4(i,r.v7_relativeSplatPath));return E.useMemo(()=>a4(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function gE(e,t){return vE(e,t)}function vE(e,t,n,r){zf()||Mn(!1);let{navigator:i}=E.useContext(al),{matches:o}=E.useContext(sl),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Uf(),d;if(t){var p;let x=typeof t=="string"?Bu(t):t;l==="/"||(p=x.pathname)!=null&&p.startsWith(l)||Mn(!1),d=x}else d=u;let g=d.pathname||"/",f=g;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let S=Hk(e,{pathname:f}),v=_E(S&&S.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Ga([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ga([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&v?E.createElement(Up.Provider,{value:{location:xf({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ma.Pop}},v):v}function yE(){let e=kE(),t=cE(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,null)}const wE=E.createElement(yE,null);class bE extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(sl.Provider,{value:this.props.routeContext},E.createElement(l4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function xE(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(Mg);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(sl.Provider,{value:t},r)}function _E(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let d=a.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);d>=0||Mn(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let p=a[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:g,errors:f}=n,S=p.route.loader&&g[p.route.id]===void 0&&(!f||f[p.route.id]===void 0);if(p.route.lazy||S){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,p,g)=>{let f,S=!1,v=null,x=null;n&&(f=s&&p.route.id?s[p.route.id]:void 0,v=p.route.errorElement||wE,l&&(u<0&&g===0?(S=!0,x=null):u===g&&(S=!0,x=p.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,g+1)),b=()=>{let _;return f?_=v:S?_=x:p.route.Component?_=E.createElement(p.route.Component,null):p.route.element?_=p.route.element:_=d,E.createElement(xE,{match:p,routeC
58ontext:{outlet:d,matches:y,isDataRoute:n!=null},children:_})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?E.createElement(bE,{location:n.location,revalidation:n.revalidation,component:v,error:f,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var f4=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(f4||{}),up=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}(up||{});function SE(e){let t=E.useContext(Mg);return t||Mn(!1),t}function NE(e){let t=E.useContext(dE);return t||Mn(!1),t}function AE(e){let t=E.useContext(sl);return t||Mn(!1),t}function d4(e){let t=AE(),n=t.matches[t.matches.length-1];return n.route.id||Mn(!1),n.route.id}function kE(){var e;let t=E.useContext(l4),n=NE(up.UseRouteError),r=d4(up.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function EE(){let{router:e}=SE(f4.UseNavigateStable),t=d4(up.UseNavigateStable),n=E.useRef(!1);return u4(()=>{n.current=!0}),E.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,xf({fromRouteId:t},o)))},[e,t])}function LE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function _h(e){Mn(!1)}function CE(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ma.Pop,navigator:o,static:a=!1,future:s}=e;zf()&&Mn(!1);let l=t.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:l,navigator:o,static:a,future:xf({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Bu(r));let{pathname:d="/",search:p="",hash:g="",state:f=null,key:S="default"}=r,v=E.useMemo(()=>{let x=jg(d,l);return x==null?null:{location:{pathname:x,search:p,hash:g,state:f,key:S},navigationType:i}},[l,d,p,g,f,S,i]);return v==null?null:E.createElement(al.Provider,{value:u},E.createElement(Up.Provider,{children:n,value:v}))}function PE(e){let{children:t,location:n}=e;return gE(Jm(t),n)}new Promise(()=>{});function Jm(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;let o=[...t,i];if(r.type===E.Fragment){n.push.apply(n,Jm(r.props.children,o));return}r.type!==_h&&Mn(!1),!r.props.index||!r.props.children||Mn(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Jm(r.props.children,o)),n.push(a)}),n}/** 59 * React Router DOM v6.30.1 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function e2(){return e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e2.apply(this,arguments)}function TE(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function RE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function IE(e,t){return e.button===0&&(!t||t==="_self")&&!RE(e)}const OE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],jE="6";try{window.__reactRouterVersion=jE}catch{}const ME="startTransition",wy=q2[ME];function FE(e){let{basename:t,children:n,future:r,window:i}=e,o=E.useRef();o.current==null&&(o.current=Uk({window:i,v5Compat:!0}));let a=o.current,[s,l]=E.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=E.useCallback(p=>{u&&wy?wy(()=>l(p)):l(p)},[l,u]);return E.useLayoutEffect(()=>a.listen(d),[a,d]),E.useEffect(()=>LE(r),[r]),E.createElement(CE,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const DE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,h4=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:d,viewTransition:p}=t,g=TE(t,OE),{basename:f}=E.useContext(al),S,v=!1;if(typeof u=="string"&&BE.test(u)&&(S=u,DE))try{let _=new URL(window.location.href),A=u.startsWith("//")?new URL(_.protocol+u):new URL(u),M=jg(A.pathname,f);A.origin===_.origin&&M!=null?u=M+A.search+A.hash:v=!0}catch{}let x=hE(u,{relative:i}),y=zE(u,{replace:a,state:s,target:l,preventScrollReset:d,relative:i,viewTransition:p});function b(_){r&&r(_),_.defaultPrevented||y(_)}return E.createElement("a",e2({},g,{href:S||x,onClick:v||o?r:b,ref:n,target:l}))});var by;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(by||(by={}));var xy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xy||(xy={}));function zE(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=pE(),u=Uf(),d=c4(e,{relative:a});return E.useCallback(p=>{if(IE(p,n)){p.preventDefault();let g=r!==void 0?r:lp(u)===lp(d);l(e,{replace:g,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[u,l,d,r,i,n,e,o,a,s])}var _y=["light","dark"],UE="(prefers-color-scheme: dark)",qE=E.createContext(void 0),$E={setTheme:e=>{},themes:[]},HE=()=>{var e;return(e=E.useContext(qE))!=null?e:$E};E.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:a,attrs:s,nonce:l})=>{let u=o==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=i?_y.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(S,v=!1,x=!0)=>{let y=a?a[S]:S,b=v?S+"|| ''":`'${y}'`,_="";return i&&x&&!v&&_y.includes(S)&&(_+=`d.style.colorScheme = '${S}';`),n==="class"?v||y?_+=`c.add(${b})`:_+="null":y&&(_+=`d[s](n,${b})`),_},f=e?`!function(){${d}${g(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${UE}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${g(a?"x[e]":"e",!0)}}${u?"":"else{"+g(o,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${g(a?"x[e]":"e",!0)}}else{${g(o,!1,!1)};}${p}}catch(t){}}();`;return E.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var WE=e=>{switch(e){case"success":return KE;case"info":return ZE;case"warning":return YE;case"error":return XE;default:return null}},VE=Array(12).fill(0),GE=({visible:e,className:t})=>Pe.createElement("div",{className:["sonner-loading-wrapper",t].filter(
67Boolean).join(" "),"data-visible":e},Pe.createElement("div",{className:"sonner-spinner"},VE.map((n,r)=>Pe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),KE=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.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"})),YE=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Pe.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"})),ZE=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.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"})),XE=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.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"})),QE=Pe.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"},Pe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Pe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),JE=()=>{let[e,t]=Pe.useState(document.hidden);return Pe.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},t2=1,eL=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;let{message:r,...i}=t,o=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:t2++,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:r}
67),{...l,...t,id:o,dismissible:s,title:r}):l):this.addToast({title:r,...i,dismissible:s,id:o}),o},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:t,dismiss:!0})),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));let i=t instanceof Promise?t:t(),o=r!==void 0,a,s=i.then(async u=>{if(a=["resolve",u],Pe.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if(nL(u)&&!u.ok){o=!1;let d=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description;this.create({id:r,type:"error",message:d,description:p})}else if(n.success!==void 0){o=!1;let d=typeof n.success=="function"?await n.success(u):n.success,p=typeof n.description=="function"?await n.description(u):n.description;this.create({id:r,type:"success",message:d,description:p})}}).catch(async u=>{if(a=["reject",u],n.error!==void 0){o=!1;let d=typeof n.error=="function"?await n.error(u):n.error,p=typeof n.description=="function"?await n.description(u):n.description;this.create({id:r,type:"error",message:d,description:p})}}).finally(()=>{var u;o&&(this.dismiss(r),r=void 0),(u=n.finally)==null||u.call(n)}),l=()=>new Promise((u,d)=>s.then(()=>a[0]==="reject"?d(a[1]):u(a[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{let r=(n==null?void 0:n.id)||t2++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},jr=new eL,tL=(e,t)=>{let n=(t==null?void 0:t.id)||t2++;return jr.addToast({title:e,...t,id:n}),n},nL=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",rL=tL,iL=()=>jr.toasts,oL=()=>jr.getActiveToasts();Object.assign(rL,{success:jr.success,info:jr.info,warning:jr.warning,error:jr.error,custom:jr.custom,message:jr.message,promise:jr.promise,dismiss:jr.dismiss,loading:jr.loading},{getHistory:iL,getToasts:oL});function aL(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}aL(`: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;
67left: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}
67: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%);
67--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%)} 68`);function Gd(e){return e.label!==void 0}var sL=3,lL="32px",uL="16px",Sy=4e3,cL=356,fL=14,dL=20,hL=200;function Pi(...e){return e.filter(Boolean).join(" ")}function pL(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var mL=e=>{var t,n,r,i,o,a,s,l,u,d,p;let{invert:g,toast:f,unstyled:S,interacting:v,setHeights:x,visibleToasts:y,heights:b,index:_,toasts:A,expanded:M,removeToast:Z,defaultRichColors:V,closeButton:q,style:F,cancelButtonStyle:X,actionButtonStyle:P,className:R="",descriptionClassName:Y="",duration:B,position:ie,gap:oe,loadingIcon:se,expandByDefault:$,classNames:Q,icons:fe,closeButtonAriaLabel:me="Close toast",pauseWhenPageIsHidden:C}=e,[z,W]=Pe.useState(null),[ee,ne]=Pe.useState(null),[J,ce]=Pe.useState(!1),[pe,ge]=Pe.useState(!1),[ve,ke]=Pe.useState(!1),[Ce,Oe]=Pe.useState(!1),[U,Te]=Pe.useState(!1),[nt,Ke]=Pe.useState(0),[Ne,Je]=Pe.useState(0),Ie=Pe.useRef(f.duration||B||Sy),Xe=Pe.useRef(null),Be=Pe.useRef(null),It=_===0,xt=_+1<=y,Ze=f.type,pt=f.dismissible!==!1,_t=f.className||"",qe=f.de
68scriptionClassName||"",rt=Pe.useMemo(()=>b.findIndex(tt=>tt.toastId===f.id)||0,[b,f.id]),We=Pe.useMemo(()=>{var tt;return(tt=f.closeButton)!=null?tt:q},[f.closeButton,q]),ln=Pe.useMemo(()=>f.duration||B||Sy,[f.duration,B]),St=Pe.useRef(0),at=Pe.useRef(0),mt=Pe.useRef(0),Mt=Pe.useRef(null),[Qe,$t]=ie.split("-"),et=Pe.useMemo(()=>b.reduce((tt,lt,Et)=>Et>=rt?tt:tt+lt.height,0),[b,rt]),st=JE(),Yt=f.invert||g,gt=Ze==="loading";at.current=Pe.useMemo(()=>rt*oe+et,[rt,et]),Pe.useEffect(()=>{Ie.current=ln},[ln]),Pe.useEffect(()=>{ce(!0)},[]),Pe.useEffect(()=>{let tt=Be.current;if(tt){let lt=tt.getBoundingClientRect().height;return Je(lt),x(Et=>[{toastId:f.id,height:lt,position:f.position},...Et]),()=>x(Et=>Et.filter(vn=>vn.toastId!==f.id))}},[x,f.id]),Pe.useLayoutEffect(()=>{if(!J)return;let tt=Be.current,lt=tt.style.height;tt.style.height="auto";let Et=tt.getBoundingClientRect().height;tt.style.height=lt,Je(Et),x(vn=>vn.find(ze=>ze.toastId===f.id)?vn.map(ze=>ze.toastId===f.id?{...ze,height:Et}:ze):[{toastId:f.id,height:Et,position:f.position},...vn])},[J,f.title,f.description,x,f.id]);let Ve=Pe.useCallback(()=>{ge(!0),Ke(at.current),x(tt=>tt.filter(lt=>lt.toastId!==f.id)),setTimeout(()=>{Z(f)},hL)},[f,Z,x,at]);Pe.useEffect(()=>{if(f.promise&&Ze==="loading"||f.duration===1/0||f.type==="loading")return;let tt;return M||v||C&&st?(()=>{if(mt.current<St.current){let lt=new Date().getTime()-St.current;Ie.current=Ie.current-lt}mt.current=new Date().getTime()})():Ie.current!==1/0&&(St.current=new Date().getTime(),tt=setTimeout(()=>{var lt;(lt=f.onAutoClose)==null||lt.call(f,f),Ve()},Ie.current)),()=>clearTimeout(tt)},[M,v,f,Ze,C,st,Ve]),Pe.useEffect(()=>{f.delete&&Ve()},[Ve,f.delete]);function Ot(){var tt,lt,Et;return fe!=null&&fe.loading?Pe.createElement("div",{className:Pi(Q==null?void 0:Q.loader,(tt=f==null?void 0:f.classNames)==null?void 0:tt.loader,"sonner-loader"),"data-visible":Ze==="loading"},fe.loading):se?Pe.createElement("div",{className:Pi(Q==null?void 0:Q.loader,(lt=f==null?void 0:f.classNames)==null?void 0:lt.loader,"sonner-loader"),"data-visible":Ze==="loading"},se):Pe.createElement(GE,{className:Pi(Q==null?void 0:Q.loader,(Et=f==null?void 0:f.classNames)==null?void 0:Et.loader),visible:Ze==="loading"})}return Pe.createElement("li",{tabIndex:0,ref:Be,className:Pi(R,_t,Q==null?void 0:Q.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,Q==null?void 0:Q.default,Q==null?void 0:Q[Ze],(n=f==null?void 0:f.classNames)==null?void 0:n[Ze]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:V,"data-styled":!(f.jsx||f.unstyled||S),"data-mounted":J,"data-promise":!!f.promise,"data-swiped":U,"data-removed":pe,"data-visible":xt,"data-y-position":Qe,"data-x-position":$t,"data-index":_,"data-front":It,"data-swiping":ve,"data-dismissible":pt,"data-type":Ze,"data-invert":Yt,"data-swipe-out":Ce,"data-swipe-direction":ee,"data-expanded":!!(M||$&&J),style:{"--index":_,"--toasts-before":_,"--z-index":A.length-_,"--offset":`${pe?nt:at.current}px`,"--initial-height":$?"auto":`${Ne}px`,...F,...f.style},onDragEnd:()=>{ke(!1),W(null),Mt.current=null},onPointerDown:tt=>{gt||!pt||(Xe.current=new Date,Ke(at.current),tt.target.setPointerCapture(tt.pointerId),tt.target.tagName!=="BUTTON"&&(ke(!0),Mt.current={x:tt.clientX,y:tt.clientY}))},onPointerUp:()=>{var tt,lt,Et,vn;if(Ce||!pt)return;Mt.current=null;let ze=Number(((tt=Be.current)==null?void 0:tt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),$n=Number(((lt=Be.current)==null?void 0:lt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Yn=new Date().getTime()-((Et=Xe.current)==null?void 0:Et.getTime()),un=z==="x"?ze:$n,Nn=Math.abs(un)/Yn;if(Math.abs(un)>=dL||Nn>.11){Ke(at.current),(vn=f.onDismiss)==null||vn.call(f,f),ne(z==="x"?ze>0?"right":"left":$n>0?"down":"up"),Ve(),Oe(!0),Te(!1);return}ke(!1),W(null)},onPointerMove:tt=>{var lt,Et,vn,ze;if(!Mt.current||!pt||((lt=window.getSelection())==null?void 0:lt.toString().length)>0)return;let $n=tt.clientY-Mt.current.y,Yn=tt.clientX-Mt.current.x,un=(Et=e.swipeDirections)!=null?Et:pL(ie);!z&&(Math.abs(Yn)>1||Math.abs($n)>1)&&W(Math.abs(Yn)>Math.abs($n)?"x":"y");let Nn={x:0,y:0};z==="y"?(un.includes("top")||un.includes("bottom"))&&(un.includes("top")&&$n<0||un.includes("bottom")&&$n>0)&&(Nn.y=$n):z==="x"&&(un.includes("left")||un.includes("right"))&&(un.includes("left")&&Yn<0||un.includes("right")&&Yn>0)&&(Nn.x=Yn),(Math.abs(Nn.x)>0||Math.abs(Nn.y)>0)&&Te(!0),(vn=Be.current)==null||vn.style.setProperty("--swipe-amount-x",`${Nn.x}px`),(ze=Be.current)==null||ze.style.setProperty("--swipe-amount-y",`${Nn.y}px`)}},We&&!f.jsx?Pe.createElement("button",{"aria-label":me,"data-disabled":gt,"data-close-button":!0,onClick:gt||!pt?()=>{}:()=>{var tt;Ve(),(tt=f.onDismiss)==null||tt.call(f,f)},className:Pi(Q==null?void 0:Q.closeButton,(i=f==null?void 0:f.classNames)==null?void 0:i.closeButton)},(o=fe==null?void 0:fe.close)!=null?o:QE):null,f.jsx||E.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:Pe.createElement(Pe.Fragment,null,Ze||f.icon||f.promise?Pe.createElement("div",{"data-icon":"",className:Pi(Q==null?void 0:Q.icon,(a=f==null?void 0:f.classNames)==null?void 0:a.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ot():null,f.type!=="loading"?f.icon||(fe==null?void 0:fe[Ze])||WE(Ze):null):null,Pe.createElement("div",{"data-content":"",className:Pi(Q==null?void 0:Q.content,(s=f==null?void 0:f.classNames)==null?void 0:s.content)},Pe.createElement("div",{"data-title":"",className:Pi(Q==null?void 0:Q.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?Pe.createElement("div",{"data-description":"",className:Pi(Y,qe,Q==null?void 0:Q.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),E.isValidElement(f.cancel)?f.cancel:f.cancel&&Gd(f.cancel)?Pe.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||X,onClick:tt=>{var lt,Et;Gd(f.cancel)&&pt&&((Et=(lt=f.cancel).onClick)==null||Et.call(lt,tt),Ve())},className:Pi(Q==null?void 0:Q.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,E.isValidElement(f.action)?f.action:f.action&&Gd(f.action)?Pe.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||P,onClick:tt=>{var lt,Et;Gd(f.action)&&((Et=(lt=f.action).onClick)==null||Et.call(lt,tt),!tt.defaultPrevented&&Ve())},className:Pi(Q==null?void 0:Q.actionButton,(p=f==null?void 0:f.classNames)==null?void 0:p.actionButton)},f.action.label):null))};function Ny(){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 gL(e,t){let n={};return[e,t].forEach((r,i)=>{let o=i===1,a=o?"--mobile-offset":"--offset",s=o?uL:lL;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${a}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}var vL=E.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:a,className:s,offset:l,mobileOffset:u,theme:d="light",richColors:p,duration:g,style:f,visibleToasts:S=sL,toastOptions:v,dir:x=Ny(),gap:y=fL,loadingIcon:b,icons:_,containerAriaLabel:A="Notifications",pauseWhenPageIsHidden:M}=e,[Z,V]=Pe.useState([]),q=Pe.useMemo(()=>Array.from(new Set([r].concat(Z.filter(C=>C.position).map(C=>C.position)))),[Z,r]),[F,X]=Pe.useState([]),[P,R]=Pe.useState(!1),[Y,B]=Pe.useState(!1),[ie,oe]=Pe.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
68k":"light"),se=Pe.useRef(null),$=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),Q=Pe.useRef(null),fe=Pe.useRef(!1),me=Pe.useCallback(C=>{V(z=>{var W;return(W=z.find(ee=>ee.id===C.id))!=null&&W.delete||jr.dismiss(C.id),z.filter(({id:ee})=>ee!==C.id)})},[]);return Pe.useEffect(()=>jr.subscribe(C=>{if(C.dismiss){V(z=>z.map(W=>W.id===C.id?{...W,delete:!0}:W));return}setTimeout(()=>{G3.flushSync(()=>{V(z=>{let W=z.findIndex(ee=>ee.id===C.id);return W!==-1?[...z.slice(0,W),{...z[W],...C},...z.slice(W+1)]:[C,...z]})})})}),[]),Pe.useEffect(()=>{if(d!=="system"){oe(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?oe("dark"):oe("light")),typeof window>"u")return;let C=window.matchMedia("(prefers-color-scheme: dark)");try{C.addEventListener("change",({matches:z})=>{oe(z?"dark":"light")})}catch{C.addListener(({matches:W})=>{try{oe(W?"dark":"light")}catch(ee){console.error(ee)}})}},[d]),Pe.useEffect(()=>{Z.length<=1&&R(!1)},[Z]),Pe.useEffect(()=>{let C=z=>{var W,ee;i.every(ne=>z[ne]||z.code===ne)&&(R(!0),(W=se.current)==null||W.focus()),z.code==="Escape"&&(document.activeElement===se.current||(ee=se.current)!=null&&ee.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[i]),Pe.useEffect(()=>{if(se.current)return()=>{Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null,fe.current=!1)}},[se.current]),Pe.createElement("section",{ref:t,"aria-label":`${A} ${$}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},q.map((C,z)=>{var W;let[ee,ne]=C.split("-");return Z.length?Pe.createElement("ol",{key:C,dir:x==="auto"?Ny():x,tabIndex:-1,ref:se,className:s,"data-sonner-toaster":!0,"data-theme":ie,"data-y-position":ee,"data-lifted":P&&Z.length>1&&!o,"data-x-position":ne,style:{"--front-toast-height":`${((W=F[0])==null?void 0:W.height)||0}px`,"--width":`${cL}px`,"--gap":`${y}px`,...f,...gL(l,u)},onBlur:J=>{fe.current&&!J.currentTarget.contains(J.relatedTarget)&&(fe.current=!1,Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||fe.current||(fe.current=!0,Q.current=J.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{Y||R(!1)},onDragEnd:()=>R(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||B(!0)},onPointerUp:()=>B(!1)},Z.filter(J=>!J.position&&z===0||J.position===C).map((J,ce)=>{var pe,ge;return Pe.createElement(mL,{key:J.id,icons:_,index:ce,toast:J,defaultRichColors:p,duration:(pe=v==null?void 0:v.duration)!=null?pe:g,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:S,closeButton:(ge=v==null?void 0:v.closeButton)!=null?ge:a,interacting:Y,position:C,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:me,toasts:Z.filter(ve=>ve.position==J.position),heights:F.filter(ve=>ve.position==J.position),setHeights:X,expandByDefault:o,gap:y,loadingIcon:b,expanded:P,pauseWhenPageIsHidden:M,swipeDirections:e.swipeDirections})})):null}))});const yL=({...e})=>{const{theme:t="system"}=HE();return O.jsx(vL,{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})},wL=1,bL=1e6;let g0=0;function xL(){return g0=(g0+1)%Number.MAX_SAFE_INTEGER,g0.toString()}const v0=new Map,Ay=e=>{if(v0.has(e))return;const t=setTimeout(()=>{v0.delete(e),Gc({type:"REMOVE_TOAST",toastId:e})},bL);v0.set(e,t)},_L=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,wL)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
68return n?Ay(n):e.toasts.forEach(r=>{Ay(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Sh=[];let Nh={toasts:[]};function Gc(e){Nh=_L(Nh,e),Sh.forEach(t=>{t(Nh)})}function SL({...e}){const t=xL(),n=i=>Gc({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Gc({type:"DISMISS_TOAST",toastId:t});return Gc({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function NL(){const[e,t]=E.useState(Nh);return E.useEffect(()=>(Sh.push(t),()=>{const n=Sh.indexOf(t);n>-1&&Sh.splice(n,1)}),[e]),{...e,toast:SL,dismiss:n=>Gc({type:"DISMISS_TOAST",toastId:n})}}function vt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function ky(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function p4(...e){return t=>{let n=!1;const r=e.map(i=>{const o=ky(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():ky(e[i],null)}}}}function Wt(...e){return E.useCallback(p4(...e),e)}function zu(e,t=[]){let n=[];function r(o,a){const s=E.createContext(a),l=n.length;n=[...n,a];const u=p=>{var y;const{scope:g,children:f,...S}=p,v=((y=g==null?void 0:g[e])==null?void 0:y[l])||s,x=E.useMemo(()=>S,Object.values(S));return O.jsx(v.Provider,{value:x,children:f})};u.displayName=o+"Provider";function d(p,g){var v;const f=((v=g==null?void 0:g[e])==null?void 0:v[l])||s,S=E.useContext(f);if(S)return S;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[u,d]}const i=()=>{const o=n.map(a=>E.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,AL(i,...t)]}function AL(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:l,scopeName:u})=>{const p=l(o)[`__scope${u}`];return{...s,...p}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function _f(e){const t=EL(e),n=E.forwardRef((r,i)=>{const{children:o,...a}=r,s=E.Children.toArray(o),l=s.find(CL);if(l){const u=l.props.children,d=s.map(p=>p===l?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:p);return O.jsx(t,{...a,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,d):null})}return O.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var kL=_f("Slot");function EL(e){const t=E.forwardRef((n,r)=>{const{children:i,...o}=n;if(E.isValidElement(i)){const a=TL(i),s=PL(o,i.props);return i.type!==E.Fragment&&(s.ref=r?p4(r,a):a),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var m4=Symbol("radix.slottable");function LL(e){const t=({children:n})=>O.jsx(O.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=m4,t}function CL(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===m4}function PL(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{const l=o(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function TL(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Fg(e){const t=e+"CollectionProvider",[n,r]=zu(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:x,children:y}=v,b=Pe.useRef(null),_=Pe.useRef(new Map).current;return O.jsx(i,{scope:x,itemMap:_,collectionRef:b,children:y})};a.displayName=t;const s=e+"CollectionSlot",l=_f(s),u=Pe.forwardRef((v,x)=>{const{scope:y,children:b}=v,_=o(s,y),A=Wt(x,_.collectionRef);return O.jsx(l,{ref:A,children:b})});u.displayName=s;const d=e+"CollectionItemSlot",p="data-radix-collection-item",g=_f(d),f=Pe.forwardRef((v,x)=>{const{scope:y,children:b,..._}=v,A=Pe.useRef(null),M=Wt(x,A),Z=o(d,y);return Pe.useEffect(()=>(Z.itemMap.set(A,{ref:A,..._}),()=>void Z.itemMap.delete(A))),O.jsx(g,{[p]:"",ref:M,children:b})});f.displayName=d;function S(v){const x=o(e+"CollectionConsumer",v);return Pe.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const _=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((Z,V)=>_.indexOf(Z.ref.current)-_.indexOf(V.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:u,ItemSlot:f},S,r]}var RL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pt=RL.reduce((e,t)=>
vendor: 8,608 bytes, line 68
68{const n=_f(`Primitive.${t}`),r=E.forwardRef((i,o)=>{const{asChild:a,...s}=i,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),O.jsx(l,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function g4(e,t){e&&ol.flushSync(()=>e.dispatchEvent(t))}function qi(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function IL(e,t=globalThis==null?void 0:globalThis.document){const n=qi(e);E.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var OL="DismissableLayer",n2="dismissableLayer.update",jL="dismissableLayer.pointerDownOutside",ML="dismissableLayer.focusOutside",Ey,v4=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qp=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...l}=e,u=E.useContext(v4),[d,p]=E.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=E.useState({}),S=Wt(t,V=>p(V)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(x),b=d?v.indexOf(d):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,A=b>=y,M=DL(V=>{const q=V.target,F=[...u.branches].some(X=>X.contains(q));!A||F||(i==null||i(V),a==null||a(V),V.defaultPrevented||s==null||s())},g),Z=BL(V=>{const q=V.target;[...u.branches].some(X=>X.contains(q))||(o==null||o(V),a==null||a(V),V.defaultPrevented||s==null||s())},g);return IL(V=>{b===u.layers.size-1&&(r==null||r(V),!V.defaultPrevented&&s&&(V.preventDefault(),s()))},g),E.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ey=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ly(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ey)}},[d,g,n,u]),E.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ly())},[d,u]),E.useEffect(()=>{const V=()=>f({});return document.addEventListener(n2,V),()=>document.removeEventListener(n2,V)},[]),O.jsx(Pt.div,{...l,ref:S,style:{pointerEvents:_?A?"auto":"none":void 0,...e.style},onFocusCapture:vt(e.onFocusCapture,Z.onFocusCapture),onBlurCapture:vt(e.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:vt(e.onPointerDownCapture,M.onPointerDownCapture)})});qp.displayName=OL;var FL="DismissableLayerBranch",y4=E.forwardRef((e,t)=>{const n=E.useContext(v4),r=E.useRef(null),i=Wt(t,r);return E.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),O.jsx(Pt.div,{...e,ref:i})});y4.displayName=FL;function DL(e,t=globalThis==null?void 0:globalThis.document){const n=qi(e),r=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const o=s=>{if(s.target&&!r.current){let l=function(){w4(jL,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function BL(e,t=globalThis==null?void 0:globalThis.document){const n=qi(e),r=E.useRef(!1);return E.useEffect(()=>{const i=o=>{o.target&&!r.current&&w4(ML,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ly(){const e=new CustomEvent(n2);document.dispatchEvent(e)}function w4(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?g4(i,o):i.dispatchEvent(o)}var zL=qp,UL=y4,or=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},qL="Portal",Dg=E.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[i,o]=E.useState(!1);or(()=>o(!0),[]);const a=n||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?G3.createPortal(O.jsx(Pt.div,{...r,ref:t}),a):null});Dg.displayName=qL;function $L(e,t){return E.useReducer((n,r)=>t[n][r]??n,e)}var Bg=e=>{const{present:t,children:n}=e,r=HL(t),i=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),o=Wt(r.ref,WL(i));return typeof n=="function"||r.isPresent?E.cloneElement(i,{ref:o}):null};Bg.displayName="Presence";function HL(e){const[t,n]=E.useState(),r=E.useRef(null),i=E.useRef(e),o=E.useRef("none"),a=e?"mounted":"unmounted",[s,l]=$L(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=Kd(r.current);o.current=s==="mounted"?u:"none"},[s]),or(()=>{const u=r.current,d=i.current;if(d!==e){const g=o.current,f=Kd(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&g!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),or(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=f=>{const v=Kd(r.current).includes(f.animationName);if(f.target===t&&v&&(l("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=f=>{f.target===t&&(o.current=Kd(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:E.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Kd(e){return(e==null?void 0:e.animationName)||"none"}function WL(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var VL=q2[" useInsertionEffect ".trim().toString()]||or;function cp({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=GL({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:i;{const d=E.useRef(e!==void 0);E.useEffect(()=>{const p=d.current;p!==s&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,r])}const u=E.useCallback(d=>{var p;if(s){const g=KL(d)?d(e):d;g!==e&&((p=a.current)==null||p.call(a,g))}else o(d)},[s,e,o,a]);return[l,u]}function GL({defaultProp:e,onChange:t}){const[n,r]=E.useState(e),i=E.useRef(n),o=E.useRef(t);return VL(()=>{o.current=t},[t]),E.useEffect(()=>{var a;i.current!==n&&((a=o.current)==null||a.call(o,n),i.current=n)},[n,i]),[n,r,o]}function KL(e){return typeof e=="function"}var b4=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"}),YL="VisuallyHidden",$p=E.forwardRef((e,t)=>O.jsx(Pt.span,{...e,ref:t,style:{...b4,...e.style}}));$p.displayName=YL;var ZL=$p,zg="ToastProvider",[Ug,XL,QL]=Fg("Toast"),[x4,f9]=zu("Toast",[QL]),[JL,Hp]=x4(zg),_4=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:a}=e,[s,l]=E.useState(null),[u,d]=E.useState(0),p=E.useRef(!1),g=E.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${zg}\`. Expected non-empty \`string\`.`),O.jsx(Ug.Provider,{scope:t,children:O.jsx(JL,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:o,toastCount:u,viewport:s,onViewportChange:l,onToastAdd:E.useCallback(()=>d(f=>f+1),[]),onToastRemove:E.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:g,children:a})})};_4.displayName=zg;var S4="ToastViewport",eC=["F8"],r2="toast.viewportPause",i2="toast.viewportResume",N4=E.forwardRef((e,t)=>
68{const{__scopeToast:n,hotkey:r=eC,label:i="Notifications ({hotkey})",...o}=e,a=Hp(S4,n),s=XL(n),l=E.useRef(null),u=E.useRef(null),d=E.useRef(null),p=E.useRef(null),g=Wt(t,p,a.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=a.toastCount>0;E.useEffect(()=>{const x=y=>{var _;r.length!==0&&r.every(A=>y[A]||y.code===A)&&((_=p.current)==null||_.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),E.useEffect(()=>{const x=l.current,y=p.current;if(S&&x&&y){const b=()=>{if(!a.isClosePausedRef.current){const Z=new CustomEvent(r2);y.dispatchEvent(Z),a.isClosePausedRef.current=!0}},_=()=>{if(a.isClosePausedRef.current){const Z=new CustomEvent(i2);y.dispatchEvent(Z),a.isClosePausedRef.current=!1}},A=Z=>{!x.contains(Z.relatedTarget)&&_()},M=()=>{x.contains(document.activeElement)||_()};return x.addEventListener("focusin",b),x.addEventListener("focusout",A),x.addEventListener("pointermove",b),x.addEventListener("pointerleave",M),window.addEventListener("blur",b),window.addEventListener("focus",_),()=>{x.removeEventListener("focusin",b),x.removeEventListener("focusout",A),x.removeEventListener("pointermove",b),x.removeEventListener("pointerleave",M),window.removeEventListener("blur",b),window.removeEventListener("focus",_)}}},[S,a.isClosePausedRef]);const v=E.useCallback(({tabbingDirection:x})=>{const b=s().map(_=>{const A=_.ref.current,M=[A,...hC(A)];return x==="forwards"?M:M.reverse()});return(x==="forwards"?b.reverse():b).flat()},[s]);return E.useEffect(()=>{const x=p.current;if(x){const y=b=>{var M,Z,V;const _=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!_){const q=document.activeElement,F=b.shiftKey;if(b.target===x&&F){(M=u.current)==null||M.focus();return}const R=v({tabbingDirection:F?"backwards":"forwards"}),Y=R.findIndex(B=>B===q);y0(R.slice(Y+1))?b.preventDefault():F?(Z=u.current)==null||Z.focus():(V=d.current)==null||V.focus()}};return x.addEventListener("keydown",y),()=>x.removeEventListener("keydown",y)}},[s,v]),O.jsxs(UL,{ref:l,role:"region","aria-label":i.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&O.jsx(o2,{ref:u,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"forwards"});y0(x)}}),O.jsx(Ug.Slot,{scope:n,children:O.jsx(Pt.ol,{tabIndex:-1,...o,ref:g})}),S&&O.jsx(o2,{ref:d,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"backwards"});y0(x)}})]})});N4.displayName=S4;var A4="ToastFocusProxy",o2=E.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=Hp(A4,n);return O.jsx($p,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const s=a.relatedTarget;!((u=o.viewport)!=null&&u.contains(s))&&r()}})});o2.displayName=A4;var qf="Toast",tC="toast.swipeStart",nC="toast.swipeMove",rC="toast.swipeCancel",iC="toast.swipeEnd",k4=E.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...a}=e,[s,l]=cp({prop:r,defaultProp:i??!0,onChange:o,caller:qf});return O.jsx(Bg,{present:n||s,children:O.jsx(sC,{open:s,...a,ref:t,onClose:()=>l(!1),onPause:qi(e.onPause),onResume:qi(e.onResume),onSwipeStart:vt(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:vt(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:vt(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:vt(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});k4.displayName=qf;var[oC,aC]=x4(qf,{onClose(){}}),sC=E.forwardRef((e,t)=>
68{const{__scopeToast:n,type:r="foreground",duration:i,open:o,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:g,onSwipeEnd:f,...S}=e,v=Hp(qf,n),[x,y]=E.useState(null),b=Wt(t,B=>y(B)),_=E.useRef(null),A=E.useRef(null),M=i||v.duration,Z=E.useRef(0),V=E.useRef(M),q=E.useRef(0),{onToastAdd:F,onToastRemove:X}=v,P=qi(()=>{var ie;(x==null?void 0:x.contains(document.activeElement))&&((ie=v.viewport)==null||ie.focus()),a()}),R=E.useCallback(B=>{!B||B===1/0||(window.clearTimeout(q.current),Z.current=new Date().getTime(),q.current=window.setTimeout(P,B))},[P]);E.useEffect(()=>{const B=v.viewport;if(B){const ie=()=>{R(V.current),u==null||u()},oe=()=>{const se=new Date().getTime()-Z.current;V.current=V.current-se,window.clearTimeout(q.current),l==null||l()};return B.addEventListener(r2,oe),B.addEventListener(i2,ie),()=>{B.removeEventListener(r2,oe),B.removeEventListener(i2,ie)}}},[v.viewport,M,l,u,R]),E.useEffect(()=>{o&&!v.isClosePausedRef.current&&R(M)},[o,M,v.isClosePausedRef,R]),E.useEffect(()=>(F(),()=>X()),[F,X]);const Y=E.useMemo(()=>x?I4(x):null,[x]);return v.viewport?O.jsxs(O.Fragment,{children:[Y&&O.jsx(lC,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Y}),O.jsx(oC,{scope:n,onClose:P,children:ol.createPortal(O.jsx(Ug.ItemSlot,{scope:n,children:O.jsx(zL,{asChild:!0,onEscapeKeyDown:vt(s,()=>{v.isFocusedToastEscapeKeyDownRef.current||P(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:O.jsx(Pt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":v.swipeDirection,...S,ref:b,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:vt(e.onKeyDown,B=>{B.key==="Escape"&&(s==null||s(B.nativeEvent),B.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,P()))}),onPointerDown:vt(e.onPointerDown,B=>{B.button===0&&(_.current={x:B.clientX,y:B.clientY})}),onPointerMove:vt(e.onPointerMove,B=>{if(!_.current)return;const ie=B.clientX-_.current.x,oe=B.clientY-_.current.y,se=!!A.current,$=["left","right"].includes(v.swipeDirection),Q=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,fe=$?Q(0,ie):0,me=$?0:Q(0,oe),C=B.pointerType==="touch"?10:2,z={x:fe,y:me},W={originalEvent:B,delta:z};se?(A.current=z,Yd(nC,p,W,{discrete:!1})):Cy(z,v.swipeDirection,C)?(A.current=z,Yd(tC,d,W,{discrete:!1}),B.target.setPointerCapture(B.pointerId)):(Math.abs(ie)>C||Math.abs(oe)>C)&&(_.current=null)}),onPointerUp:vt(e.onPointerUp,B=>{const ie=A.current,oe=B.target;if(oe.hasPointerCapture(B.pointerId)&&oe.releasePointerCapture(B.pointerId),A.current=null,_.current=null,ie){const se=B.currentTarget,$={originalEvent:B,delta:ie};Cy(ie,v.swipeDirection,v.swipeThreshold)?Yd(iC,f,$,{discrete:!0}):Yd(rC,g,$,{discrete:!0}),se.addEventListener("click",Q=>Q.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),lC=e=>{const{__scopeToast:t,children:n,...r}=e,i=Hp(qf,t),[o,a]=E.useState(!1),[s,l]=E.useState(!1);return fC(()=>a(!0)),E.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),s?null:O.jsx(Dg,{asChild:!0,children:O.jsx($p,{...r,children:o&&O.jsxs(O.Fragment,{children:[i.label," ",n]})})})},uC="ToastTitle",E4=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return O.jsx(Pt.div,{...r,ref:t})});E4.displayName=uC;var cC="ToastDescription",L4=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return O.jsx(Pt.div,{...r,ref:t})});L4.displayName=cC;var C4="ToastAction",P4=E.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?O.jsx(R4,{altText:n,asChild:!0,children:O.jsx(qg,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${C4}\`. Expected non-empty \`string\`.`),null)});P4.displayName=C4;var T4="ToastClose",qg=E.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=aC(T4,n);return O.jsx(R4,{asChild:!0,children:O.jsx(Pt.button,{type:"button",...r,ref:t,onClick:vt(e.onClick,i.onClose)})})});qg.displayName=T4;var R4=E.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return O.jsx(Pt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function I4(e){const t=[];
vendor: 5,150 bytes, lines 68-112
68return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),dC(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...I4(r))}}),t}function Yd(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?g4(i,o):i.dispatchEvent(o)}var Cy=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return t==="left"||t==="right"?o&&r>n:!o&&i>n};function fC(e=()=>{}){const t=qi(e);or(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function dC(e){return e.nodeType===e.ELEMENT_NODE}function hC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function y0(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var pC=_4,O4=N4,j4=k4,M4=E4,F4=L4,D4=P4,B4=qg;function z4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=z4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function U4(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=z4(e))&&(r&&(r+=" "),r+=t);return r}const Py=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ty=U4,$g=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ty(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(u=>{const d=n==null?void 0:n[u],p=o==null?void 0:o[u];if(d===null)return null;const g=Py(d)||Py(p);return i[u][g]}),s=n&&Object.entries(n).reduce((u,d)=>{let[p,g]=d;return g===void 0||(u[p]=g),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:g,...f}=d;return Object.entries(f).every(S=>{let[v,x]=S;return Array.isArray(x)?x.includes({...o,...s}[v]):{...o,...s}[v]===x})?[...u,p,g]:u},[]);return Ty(e,a,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 69 * @license lucide-react v0.462.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const mC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),q4=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 74 * @license lucide-react v0.462.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */var gC={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"};/** 79 * @license lucide-react v0.462.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const vC=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...s},l)=>E.createElement("svg",{ref:l,...gC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:q4("lucide",i),...s},[...a.map(([u,d])=>E.createElement(u,d)),...Array.isArray(o)?o:[o]]));/** 84 * @license lucide-react v0.462.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const os=(e,t)=>{const n=E.forwardRef(({className:r,...i},o)=>E.createElement(vC,{ref:o,iconNode:t,className:q4(`lucide-${mC(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 89 * @license lucide-react v0.462.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const yC=os("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 94 * @license lucide-react v0.462.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const wC=os("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 99 * @license lucide-react v0.462.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const $4=os("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 104 * @license lucide-react v0.462.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const bC=os("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 109 * @license lucide-react v0.462.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree.
vendor: 8,662 bytes, lines 113-128
113 */const xC=os("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"}]]);/** 114 * @license lucide-react v0.462.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const _C=os("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/** 119 * @license lucide-react v0.462.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const SC=os("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 124 * @license lucide-react v0.462.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const NC=os("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Hg="-",AC=e=>{const t=EC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(Hg);return s[0]===""&&s.length!==1&&s.shift(),H4(s,t)||kC(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},H4=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?H4(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Hg);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},Ry=/^\[(.+)\]$/,kC=e=>{if(Ry.test(e)){const t=Ry.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},EC=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return CC(Object.entries(e.classGroups),n).forEach(([o,a])=>{a2(a,r,o,t)}),r},a2=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:Iy(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(LC(i)){a2(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{a2(a,Iy(t,o),n,r)})})},Iy=(e,t)=>{let n=e;return t.split(Hg).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},LC=e=>e.isThemeGetter,CC=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[t+a,s])):o);return[n,i]}):e,PC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a)}}},W4="!",TC=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=s=>{const l=[];let u=0,d=0,p;for(let x=0;x<s.length;x++){let y=s[x];if(u===0){if(y===i&&(r||s.slice(x,x+o)===t)){l.push(s.slice(d,x)),d=x+o;continue}if(y==="/"){p=x;continue}}y==="["?u++:y==="]"&&u--}const g=l.length===0?s:s.substring(d),f=g.startsWith(W4),S=f?g.substring(1):g,v=p&&p>d?p-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:S,maybePostfixModifierPosition:v}};return n?s=>n({className:s,parseClassName:a}):a},RC=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},IC=e=>({cache:PC(e.cacheSize),parseClassName:TC(e),...AC(e)}),OC=/\s+/,jC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(OC);let s="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=n(u);let S=!!f,v=r(S?g.substring(0,f):g);if(!v){if(!S){s=u+(s.length>0?" "+s:s);continue}if(v=r(g),!v){s=u+(s.length>0?" "+s:s);continue}S=!1}const x=RC(d).join(":"),y=p?x+W4:x,b=y+v;if(o.includes(b))continue;o.push(b);const _=i(v,S);for(let A=0;A<_.length;++A){const M=_[A];o.push(y+M)}s=u+(s.length>0?" "+s:s)}return s};function MC(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=V4(t))&&(r&&(r+=" "),r+=n);return r}const V4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=V4(e[r]))&&(n&&(n+=" "),n+=t);return n};function FC(e,...t){let n,r,i,o=a;function a(l){const u=t.reduce((d,p)=>p(d),e());return n=IC(u),r=n.cache.get,i=n.cache.set,o=s,s(l)}function s(l){const u=r(l);if(u)return u;const d=jC(l,n);return i(l,d),d}return function(){return o(MC.apply(null,arguments))}}const nn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},G4=/^\[(?:([a-z-]+):)?(.+)\]$/i,DC=/^\d+\/\d+$/,BC=new Set(["px","full","screen"]),zC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,UC=/\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$/,qC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,HC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mo=e=>lu(e)||BC.has(e)||DC.test(e),va=e=>Uu(e,"length",QC),lu=e=>!!e&&!Number.isNaN(Number(e)),w0=e=>Uu(e,"number",lu),kc=e=>!!e&&Number.isInteger(Number(e)),WC=e=>e.endsWith("%")&&lu(e.slice(0,-1)),bt=e=>G4.test(e),ya=e=>zC.test(e),VC=new Set(["length","size","percentage"]),GC=e=>Uu(e,VC,K4),KC=e=>Uu(e,"position",K4),YC=new Set(["image","url"]),ZC=e=>Uu(e,YC,e7),XC=e=>Uu(e,"",JC),Ec=()=>!0,Uu=(e,t,n)=>{const r=G4.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},QC=e=>UC.test(e)&&!qC.test(e),K4=()=>!1,JC=e=>$C.test(e),e7=e=>HC.test(e),t7=()=>{const e=nn("colors"),t=nn("spacing"),n=nn("blur"),r=nn("brightness"),i=nn("borderColor"),o=nn("borderRadius"),a=nn("borderSpacing"),s=nn("borderWidth"),l=nn("contrast"),u=nn("grayscale"),d=nn("hueRotate"),p=nn("invert"),g=nn("gap"),f=nn("gradientColorStops"),S=nn("gradientColorStopPositions"),v=nn("inset"),x=nn("margin"),y=nn("opacity"),b=nn("padding"),_=nn("saturate"),A=nn("scale"),M=nn("sepia"),Z=nn("skew"),V=nn("space"),q=nn("translate"),F=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",bt,t],R=()=>[bt,t],Y=()=>["",Mo,va],B=()=>["auto",lu,bt],ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],oe=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",bt],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],me=()=>[lu,bt];return{cacheSize:500,separator:":",theme:{colors:[Ec],spacing:[Mo,va],blur:["none","",ya,bt],brightness:me(),borderColor:[e],borderRadius:["none","","full",ya,bt],borderSpacing:R(),borderWidth:Y(),contrast:me(),grayscale:Q(),hueRotate:me(),invert:Q(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[WC,va],inset:P(),margin:P(),opacity:me(),padding:R(),saturate:me(),scale:me(),sepia:Q(),skew:me(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",bt]}],container:["container"],columns:[{columns:[ya]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"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:[...ie(),bt]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}
vendor: 4,769 bytes, line 128
128],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",kc,bt]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",bt]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",kc,bt]}],"grid-cols":[{"grid-cols":[Ec]}],"col-start-end":[{col:["auto",{span:["full",kc,bt]},bt]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[Ec]}],"row-start-end":[{row:["auto",{span:[kc,bt]},bt]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",bt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",bt]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",bt,t]}],"min-w":[{"min-w":[bt,t,"min","max","fit"]}],"max-w":[{"max-w":[bt,t,"none","full","min","max","fit","prose",{screen:[ya]},ya]}],h:[{h:[bt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[bt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[bt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[bt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ya,va]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",w0]}],"font-family":[{font:[Ec]}],"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",bt]}],"line-clamp":[{"line-clamp":["none",lu,w0]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Mo,bt]}],"list-image":[{"list-image":["none",bt]}],"list-style-type":[{list:["none","disc","decimal",bt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Mo,va]}],"underline-offset":[{"underline-offset":["auto",Mo,bt]}],"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:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",bt]}],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",bt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ie(),KC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",GC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ZC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}
128],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"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":[y]}],"border-style":[{border:[...oe(),"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":[y]}
vendor: 4,473 bytes, line 128
128],"divide-style":[{divide:oe()}],"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:["",...oe()]}],"outline-offset":[{"outline-offset":[Mo,bt]}],"outline-w":[{outline:[Mo,va]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Mo,va]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ya,XC]}],"shadow-color":[{shadow:[Ec]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ya,bt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[_]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"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",bt]}],duration:[{duration:me()}],ease:[{ease:["linear","in","out","in-out",bt]}],delay:[{delay:me()}],animate:[{animate:["none","spin","ping","pulse","bounce",bt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[kc,bt]}],"translate-x":[{"translate-x":[q]}],"translate-y":[{"translate-y":[q]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",bt]}],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",bt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",bt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Mo,va,w0]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
128none"]}]},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"]}}},n7=FC(t7);function sn(...e){return n7(U4(e))}const r7=pC,Y4=E.forwardRef(({className:e,...t},n)=>O.jsx(O4,{ref:n,className:sn("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}));Y4.displayName=O4.displayName;const i7=$g("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"}}),Z4=E.forwardRef(({className:e,variant:t,...n},r)=>O.jsx(j4,{ref:r,className:sn(i7({variant:t}),e),...n}));Z4.displayName=j4.displayName;const o7=E.forwardRef(({className:e,...t},n)=>O.jsx(D4,{ref:n,className:sn("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}));o7.displayName=D4.displayName;const X4=E.forwardRef(({className:e,...t},n)=>O.jsx(B4,{ref:n,className:sn("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 13,180 bytes, line 128
128/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:O.jsx(NC,{className:"h-4 w-4"})}));X4.displayName=B4.displayName;const Q4=E.forwardRef(({className:e,...t},n)=>O.jsx(M4,{ref:n,className:sn("text-sm font-semibold",e),...t}));Q4.displayName=M4.displayName;const J4=E.forwardRef(({className:e,...t},n)=>O.jsx(F4,{ref:n,className:sn("text-sm opacity-90",e),...t}));J4.displayName=F4.displayName;function a7(){const{toasts:e}=NL();return O.jsxs(r7,{children:[e.map(function({id:t,title:n,description:r,action:i,...o}){return O.jsxs(Z4,{...o,children:[O.jsxs("div",{className:"grid gap-1",children:[n&&O.jsx(Q4,{children:n}),r&&O.jsx(J4,{children:r})]}),i,O.jsx(X4,{})]},t)}),O.jsx(Y4,{})]})}var s7=q2[" useId ".trim().toString()]||(()=>{}),l7=0;function Wg(e){const[t,n]=E.useState(s7());return or(()=>{n(r=>r??String(l7++))},[e]),t?`radix-${t}`:""}const u7=["top","right","bottom","left"],Ja=Math.min,Jr=Math.max,fp=Math.round,Zd=Math.floor,wo=e=>({x:e,y:e}),c7={left:"right",right:"left",bottom:"top",top:"bottom"},f7={start:"end",end:"start"};function s2(e,t,n){return Jr(e,Ja(t,n))}function Qo(e,t){return typeof e=="function"?e(t):e}function Jo(e){return e.split("-")[0]}function qu(e){return e.split("-")[1]}function Vg(e){return e==="x"?"y":"x"}function Gg(e){return e==="y"?"height":"width"}const d7=new Set(["top","bottom"]);function mo(e){return d7.has(Jo(e))?"y":"x"}function Kg(e){return Vg(mo(e))}function h7(e,t,n){n===void 0&&(n=!1);const r=qu(e),i=Kg(e),o=Gg(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=dp(a)),[a,dp(a)]}function p7(e){const t=dp(e);return[l2(e),t,l2(t)]}function l2(e){return e.replace(/start|end/g,t=>f7[t])}const Oy=["left","right"],jy=["right","left"],m7=["top","bottom"],g7=["bottom","top"];function v7(e,t,n){switch(e){case"top":case"bottom":return n?t?jy:Oy:t?Oy:jy;case"left":case"right":return t?m7:g7;default:return[]}}function y7(e,t,n,r){const i=qu(e);let o=v7(Jo(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(l2)))),o}function dp(e){return e.replace(/left|right|bottom|top/g,t=>c7[t])}function w7(e){return{top:0,right:0,bottom:0,left:0,...e}}function e_(e){return typeof e!="number"?w7(e):{top:e,right:e,bottom:e,left:e}}function hp(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function My(e,t,n){let{reference:r,floating:i}=e;const o=mo(t),a=Kg(t),s=Gg(a),l=Jo(t),u=o==="y",d=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,g=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:d,y:r.y-i.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-i.width,y:p};break;default:f={x:r.x,y:r.y}}switch(qu(t)){case"start":f[a]-=g*(n&&u?-1:1);break;case"end":f[a]+=g*(n&&u?-1:1);break}return f}const b7=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=My(u,r,l),g=r,f={},S=0;for(let v=0;v<s.length;v++){const{name:x,fn:y}=s[v],{x:b,y:_,data:A,reset:M}=await y({x:d,y:p,initialPlacement:r,placement:g,strategy:i,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});d=b??d,p=_??p,f={...f,[x]:{...f[x],...A}},M&&S<=50&&(S++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(u=M.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:d,y:p}=My(u,g,l)),v=-1)}return{x:d,y:p,placement:g,strategy:i,middlewareData:f}};async function Sf(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:g=!1,padding:f=0}=Qo(t,e),S=e_(f),x=s[g?p==="floating"?"reference":"floating":p],y=hp(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),b=p==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),A=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{x:1,y:1},M=hp(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:_,strategy:l}):b);return{top:(y.top-M.top+S.top)/A.y,bottom:(M.bottom-y.bottom+S.bottom)/A.y,left:(y.left-M.left+S.left)/A.x,right:(M.right-y.right+S.right)/A.x}}const x7=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=Qo(e,t)||{};if(u==null)return{};const p=e_(d),g={x:n,y:r},f=Kg(i),S=Gg(f),v=await a.getDimensions(u),x=f==="y",y=x?"top":"left",b=x?"bottom":"right",_=x?"clientHeight":"clientWidth",A=o.reference[S]+o.reference[f]-g[f]-o.floating[S],M=g[f]-o.reference[f],Z=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let V=Z?Z[_]:0;(!V||!await(a.isElement==null?void 0:a.isElement(Z)))&&(V=s.floating[_]||o.floating[S]);const q=A/2-M/2,F=V/2-v[S]/2-1,X=Ja(p[y],F),P=Ja(p[b],F),R=X,Y=V-v[S]-P,B=V/2-v[S]/2+q,ie=s2(R,B,Y),oe=!l.arrow&&qu(i)!=null&&B!==ie&&o.reference[S]/2-(B<R?X:P)-v[S]/2<0,se=oe?B<R?B-R:B-Y:0;return{[f]:g[f]+se,data:{[f]:ie,centerOffset:B-ie-se,...oe&&{alignmentOffset:se}},reset:oe}}}),_7=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:v=!0,...x}=Qo(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=Jo(i),b=mo(s),_=Jo(s)===s,A=await(l.isRTL==null?void 0:l.isRTL(u.floating)),M=g||(_||!v?[dp(s)]:p7(s)),Z=S!=="none";!g&&Z&&M.push(...y7(s,v,S,A));const V=[s,...M],q=await Sf(t,x),F=[];let X=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&F.push(q[y]),p){const B=h7(i,a,A);F.push(q[B[0]],q[B[1]])}if(X=[...X,{placement:i,overflows:F}],!F.every(B=>B<=0)){var P,R;const B=(((P=o.flip)==null?void 0:P.index)||0)+1,ie=V[B];if(ie&&(!(p==="alignment"?b!==mo(ie):!1)||X.every($=>$.overflows[0]>0&&mo($.placement)===b)))return{data:{index:B,overflows:X},reset:{placement:ie}};let oe=(R=X.filter(se=>se.overflows[0]<=0).sort((se,$)=>se.overflows[1]-$.overflows[1])[0])==null?void 0:R.placement;if(!oe)switch(f){case"bestFit":{var Y;const se=(Y=X.filter($=>{if(Z){const Q=mo($.placement);return Q===b||Q==="y"}return!0}).map($=>[$.placement,$.overflows.filter(Q=>Q>0).reduce((Q,fe)=>Q+fe,0)]).sort(($,Q)=>$[1]-Q[1])[0])==null?void 0:Y[0];se&&(oe=se);break}case"initialPlacement":oe=s;break}if(i!==oe)return{reset:{placement:oe}}}return{}}}};function Fy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Dy(e){return u7.some(t=>e[t]>=0)}const S7=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Qo(e,t);switch(r){case"referenceHidden":{const o=await Sf(t,{...i,elementContext:"reference"}),a=Fy(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Dy(a)}}}case"escaped":{const o=await Sf(t,{...i,altBoundary:!0}),a=Fy(o,n.floating);return{data:{escapedOffsets:a,escaped:Dy(a)}}}default:return{}}}}},t_=new Set(["left","top"]);async function N7(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Jo(n),s=qu(n),l=mo(n)==="y",u=t_.has(a)?-1:1,d=o&&l?-1:1,p=Qo(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:S}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof S=="number"&&(f=s==="end"?S*-1:S),l?{x:f*d,y:g*u}:{x:g*u,y:f*d}}const A7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await N7(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},k7=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...l}=Qo(e,t),u={x:n,y:r},d=await Sf(t,l),p=mo(Jo(i)),g=Vg(p);let f=u[g],S=u[p];if(o){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",b=f+d[x],_=f-d[y];f=s2(b,f,_)}if(a){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=S+d[x],_=S-d[y];S=s2(b,S,_)}const v=s.fn({...t,[g]:f,[p]:S});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:o,[p]:a}}}}}},E7=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Qo(e,t),d={x:n,y:r},p=mo(i),g=Vg(p);let f=d[g],S=d[p];const v=Qo(s,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const _=g==="y"?"height":"width",A=o.reference[g]-o.floating[_]+x.mainAxis,M=o.reference[g]+o.reference[_]-x.mainAxis;f<A?f=A:f>M&&(f=M)}if(u){var y,b;const _=g==="y"?"width":"height",A=t_.has(Jo(i)),M=o.reference[p]-o.floating[_]+(A&&((y=a.offset)==null?void 0:y[p])||0)+(A?0:x.crossAxis),Z=o.reference[p]+o.reference[_]+(A?0:((b=a.offset)==null?void 0:b[p])||0)-(A?x.crossAxis:0);S<M?S=M:S>Z&&(S=Z)}return{[g]:f,[p]:S}}}},L7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...u}=Qo(e,t),d=await Sf(t,u),p=Jo(i),g=qu(i),f=mo(i)==="y",{width:S,height:v}=o.floating;let x,y;p==="top"||p==="bottom"?(x=p,y=g===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,x=g==="end"?"top":"bottom");const b=v-d.top-d.bottom,_=S-d.left-d.right,A=Ja(v-d[x],b),M=Ja(S-d[y],_),Z=!t.middlewareData.shift;let V=A,q=M;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(q=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(V=b),Z&&!g){const X=Jr(d.left,0),P=Jr(d.right,0),R=Jr(d.top,0),Y=Jr(d.bottom,0);f?q=S-2*(X!==0||P!==0?X+P:Jr(d.left,d.right)):V=v-2*(R!==0||Y!==0?R+Y:Jr(d.top,d.bottom))}await l({...t,availableWidth:q,availableHeight:V});const F=await a.getDimensions(s.floating);return S!==F.width||v!==F.height?{reset:{rects:!0}}:{}}}};function Wp(){return typeof window<"u"}function $u(e){return n_(e)?(e.nodeName||"").toLowerCase():"#document"}function ii(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function So(e){var t;return(t=(n_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function n_(e){return Wp()?e instanceof Node||e instanceof ii(e).Node:!1}function $i(e){return Wp()?e instanceof Element||e instanceof ii(e).Element:!1}function _o(e){return Wp()?e instanceof HTMLElement||e instanceof ii(e).HTMLElement:!1}function By(e){return!Wp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ii(e).ShadowRoot}const C7=new Set(["inline","contents"]);function $f(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Hi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!C7.has(i)}const P7=new Set(["table","td","th"]);function T7(e){return P7.has($u(e))}const R7=[":popover-open",":modal"];function Vp(e){return R7.some(t=>{try{return e.matches(t)}catch{return!1}})}const I7=["transform","translate","scale","rotate","perspective"],O7=["transform","translate","scale","rotate","perspective","filter"],j7=["paint","layout","strict","content"];function Yg(e){const t=Zg(),n=$i(e)?Hi(e):e;return I7.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||O7.some(r=>(n.willChange||"").includes(r))||j7.some(r=>(n.contain||"").includes(r))}function M7(e){let t=es(e);for(;_o(t)&&!Tu(t);){if(Yg(t))return t;if(Vp(t))return null;t=es(t)}return null}function Zg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const F7=new Set(["html","body","#document"]);function Tu(e){return F7.has($u(e))}function Hi(e){return ii(e).getComputedStyle(e)}function Gp(e){return $i(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function es(e){if($u(e)==="html")return e;const t=e.assignedSlot||e.parentNode||By(e)&&e.host||So(e);return By(t)?t.host:t}function r_(e){const t=es(e);return Tu(t)?e.ownerDocument?e.ownerDocument.body:e.body:_o(t)&&$f(t)?t:r_(t)}function Nf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=r_(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=ii(i);if(o){const s=u2(a);
vendor: 3,977 bytes, line 128
128return t.concat(a,a.visualViewport||[],$f(i)?i:[],s&&n?Nf(s):[])}return t.concat(i,Nf(i,[],n))}function u2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function i_(e){const t=Hi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=_o(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=fp(n)!==o||fp(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Xg(e){return $i(e)?e:e.contextElement}function uu(e){const t=Xg(e);if(!_o(t))return wo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=i_(t);let a=(o?fp(n.width):n.width)/r,s=(o?fp(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const D7=wo(0);function o_(e){const t=ii(e);return!Zg()||!t.visualViewport?D7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function B7(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ii(e)?!1:t}function Zs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Xg(e);let a=wo(1);t&&(r?$i(r)&&(a=uu(r)):a=uu(e));const s=B7(o,n,r)?o_(o):wo(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(o){const g=ii(o),f=r&&$i(r)?ii(r):r;let S=g,v=u2(S);for(;v&&r&&f!==S;){const x=uu(v),y=v.getBoundingClientRect(),b=Hi(v),_=y.left+(v.clientLeft+parseFloat(b.paddingLeft))*x.x,A=y.top+(v.clientTop+parseFloat(b.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,p*=x.y,l+=_,u+=A,S=ii(v),v=u2(S)}}return hp({width:d,height:p,x:l,y:u})}function Qg(e,t){const n=Gp(e).scrollLeft;return t?t.left+n:Zs(So(e)).left+n}function a_(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Qg(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function z7(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=So(r),s=t?Vp(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=wo(1);const d=wo(0),p=_o(r);if((p||!p&&!o)&&(($u(r)!=="body"||$f(a))&&(l=Gp(r)),_o(r))){const f=Zs(r);u=uu(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const g=a&&!p&&!o?a_(a,l,!0):wo(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-l.scrollTop*u.y+d.y+g.y}}function U7(e){return Array.from(e.getClientRects())}function q7(e){const t=So(e),n=Gp(e),r=e.ownerDocument.body,i=Jr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Jr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Qg(e);const s=-n.scrollTop;return Hi(r).direction==="rtl"&&(a+=Jr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function $7(e,t){const n=ii(e),r=So(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=Zg();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}const H7=new Set(["absolute","fixed"]);function W7(e,t){const n=Zs(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=_o(e)?uu(e):wo(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:s,x:l,y:u}}function zy(e,t,n){let r;if(t==="viewport")r=$7(e,n);else if(t==="document")r=q7(So(e));else if($i(t))r=W7(t,n);else{const i=o_(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return hp(r)}function s_(e,t){const n=es(e);return n===t||!$i(n)||Tu(n)?!1:Hi(n).position==="fixed"||s_(n,t)}function V7(e,t){const n=t.get(e);if(n)return n;let r=Nf(e,[],!1).filter(s=>$i(s)&&$u(s)!=="body"),i=null;const o=Hi(e).position==="fixed";let a=o?es(e):e;for(;$i(a)&&!Tu(a);){const s=Hi(a),l=Yg(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&H7.has(i.position)||$f(a)&&!l&&s_(e,a))?r=r.filter(d=>d!==a):i=s,a=es(a)}return t.set(e,r),r}function G7(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Vp(t)?[]:V7(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,d)=>{const p=zy(t,d,i);return u.top=Jr(p.top,u.top),u.right=Ja(p.right,u.right),u.bottom=Ja(p.bottom,u.bottom),u.left=Jr(p.left,u.left),u}
vendor: 11,909 bytes, line 128
128,zy(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function K7(e){const{width:t,height:n}=i_(e);return{width:t,height:n}}function Y7(e,t,n){const r=_o(t),i=So(t),o=n==="fixed",a=Zs(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=wo(0);function u(){l.x=Qg(i)}if(r||!r&&!o)if(($u(t)!=="body"||$f(i))&&(s=Gp(t)),r){const f=Zs(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&u();o&&!r&&i&&u();const d=i&&!r&&!o?a_(i,s):wo(0),p=a.left+s.scrollLeft-l.x-d.x,g=a.top+s.scrollTop-l.y-d.y;return{x:p,y:g,width:a.width,height:a.height}}function b0(e){return Hi(e).position==="static"}function Uy(e,t){if(!_o(e)||Hi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return So(e)===n&&(n=n.ownerDocument.body),n}function l_(e,t){const n=ii(e);if(Vp(e))return n;if(!_o(e)){let i=es(e);for(;i&&!Tu(i);){if($i(i)&&!b0(i))return i;i=es(i)}return n}let r=Uy(e,t);for(;r&&T7(r)&&b0(r);)r=Uy(r,t);return r&&Tu(r)&&b0(r)&&!Yg(r)?n:r||M7(e)||n}const Z7=async function(e){const t=this.getOffsetParent||l_,n=this.getDimensions,r=await n(e.floating);return{reference:Y7(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function X7(e){return Hi(e).direction==="rtl"}const Q7={convertOffsetParentRelativeRectToViewportRelativeRect:z7,getDocumentElement:So,getClippingRect:G7,getOffsetParent:l_,getElementRects:Z7,getClientRects:U7,getDimensions:K7,getScale:uu,isElement:$i,isRTL:X7};function u_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function J7(e,t){let n=null,r;const i=So(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:d,top:p,width:g,height:f}=u;if(s||t(),!g||!f)return;const S=Zd(p),v=Zd(i.clientWidth-(d+g)),x=Zd(i.clientHeight-(p+f)),y=Zd(d),_={rootMargin:-S+"px "+-v+"px "+-x+"px "+-y+"px",threshold:Jr(0,Ja(1,l))||1};let A=!0;function M(Z){const V=Z[0].intersectionRatio;if(V!==l){if(!A)return a();V?a(!1,V):r=setTimeout(()=>{a(!1,1e-7)},1e3)}V===1&&!u_(u,e.getBoundingClientRect())&&a(),A=!1}try{n=new IntersectionObserver(M,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(M,_)}n.observe(e)}return a(!0),o}function eP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Xg(e),d=i||o?[...u?Nf(u):[],...Nf(t)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const p=u&&s?J7(u,n):null;let g=-1,f=null;a&&(f=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var _;(_=f)==null||_.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let S,v=l?Zs(e):null;l&&x();function x(){const y=Zs(e);v&&!u_(v,y)&&n(),v=y,S=requestAnimationFrame(x)}return n(),()=>{var y;d.forEach(b=>{i&&b.removeEventListener("scroll",n),o&&b.removeEventListener("resize",n)}),p==null||p(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(S)}}const tP=A7,nP=k7,rP=_7,iP=L7,oP=S7,qy=x7,aP=E7,sP=(e,t,n)=>{const r=new Map,i={platform:Q7,...n},o={...i.platform,_c:r};return b7(e,t,{...i,platform:o})};var lP=typeof document<"u",uP=function(){},Ah=lP?E.useLayoutEffect:uP;function pp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!pp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!pp(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function c_(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $y(e,t){const n=c_(e);return Math.round(t*n)/n}function x0(e){const t=E.useRef(e);return Ah(()=>{t.current=e}),t}function cP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,p]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,f]=E.useState(r);pp(g,r)||f(r);const[S,v]=E.useState(null),[x,y]=E.useState(null),b=E.useCallback($=>{$!==Z.current&&(Z.current=$,v($))},[]),_=E.useCallback($=>{$!==V.current&&(V.current=$,y($))},[]),A=o||S,M=a||x,Z=E.useRef(null),V=E.useRef(null),q=E.useRef(d),F=l!=null,X=x0(l),P=x0(i),R=x0(u),Y=E.useCallback(()=>{if(!Z.current||!V.current)return;const $={placement:t,strategy:n,middleware:g};P.current&&($.platform=P.current),sP(Z.current,V.current,$).then(Q=>{const fe={...Q,isPositioned:R.current!==!1};B.current&&!pp(q.current,fe)&&(q.current=fe,ol.flushSync(()=>{p(fe)}))})},[g,t,n,P,R]);Ah(()=>{u===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,p($=>({...$,isPositioned:!1})))},[u]);const B=E.useRef(!1);Ah(()=>(B.current=!0,()=>{B.current=!1}),[]),Ah(()=>{if(A&&(Z.current=A),M&&(V.current=M),A&&M){if(X.current)return X.current(A,M,Y);Y()}},[A,M,Y,X,F]);const ie=E.useMemo(()=>({reference:Z,floating:V,setReference:b,setFloating:_}),[b,_]),oe=E.useMemo(()=>({reference:A,floating:M}),[A,M]),se=E.useMemo(()=>{const $={position:n,left:0,top:0};if(!oe.floating)return $;const Q=$y(oe.floating,d.x),fe=$y(oe.floating,d.y);return s?{...$,transform:"translate("+Q+"px, "+fe+"px)",...c_(oe.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:fe}},[n,s,oe.floating,d.x,d.y]);return E.useMemo(()=>({...d,update:Y,refs:ie,elements:oe,floatingStyles:se}),[d,Y,ie,oe,se])}const fP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?qy({element:r.current,padding:i}).fn(n):{}:r?qy({element:r,padding:i}).fn(n):{}}}},dP=(e,t)=>({...tP(e),options:[e,t]}),hP=(e,t)=>({...nP(e),options:[e,t]}),pP=(e,t)=>({...aP(e),options:[e,t]}),mP=(e,t)=>({...rP(e),options:[e,t]}),gP=(e,t)=>({...iP(e),options:[e,t]}),vP=(e,t)=>({...oP(e),options:[e,t]}),yP=(e,t)=>({...fP(e),options:[e,t]});var wP="Arrow",f_=E.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return O.jsx(Pt.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:O.jsx("polygon",{points:"0,0 30,0 15,10"})})});f_.displayName=wP;var bP=f_;function d_(e){const[t,n]=E.useState(void 0);return or(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=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,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Jg="Popper",[h_,Kp]=zu(Jg),[xP,p_]=h_(Jg),m_=e=>{const{__scopePopper:t,children:n}=e,[r,i]=E.useState(null);return O.jsx(xP,{scope:t,anchor:r,onAnchorChange:i,children:n})};m_.displayName=Jg;var g_="PopperAnchor",v_=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=p_(g_,n),a=E.useRef(null),s=Wt(t,a);return E.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:O.jsx(Pt.div,{...i,ref:s})});v_.displayName=g_;var ev="PopperContent",[_P,SP]=h_(ev),y_=E.forwardRef((e,t)=>{var J,ce,pe,ge,ve,ke;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:f="optimized",onPlaced:S,...v}=e,x=p_(ev,n),[y,b]=E.useState(null),_=Wt(t,Ce=>b(Ce)),[A,M]=E.useState(null),Z=d_(A),V=(Z==null?void 0:Z.width)??0,q=(Z==null?void 0:Z.height)??0,F=r+(o!=="center"?"-"+o:""),X=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},P=Array.isArray(u)?u:[u],R=P.length>0,Y={padding:X,boundary:P.filter(AP),altBoundary:R},{refs:B,floatingStyles:ie,placement:oe,isPositioned:se,middlewareData:$}=cP({strategy:"fixed",placement:F,whileElementsMounted:(...Ce)=>eP(...Ce,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[dP({mainAxis:i+q,alignmentAxis:a}),l&&hP({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?pP():void 0,...Y}),l&&mP({...Y}),gP({...Y,apply:({elements:Ce,rects:Oe,availableWidth:U,availableHeight:Te})=>{const{width:nt,height:Ke}=Oe.reference,Ne=Ce.floating.style;Ne.setProperty("--radix-popper-available-width",`${U}px`),Ne.setProperty("--radix-popper-available-height",`${Te}px`),Ne.setProperty("--radix-popper-anchor-width",`${nt}px`),Ne.setProperty("--radix-popper-anchor-height",`${Ke}px`)}}),A&&yP({element:A,padding:s}),kP({arrowWidth:V,arrowHeight:q}),g&&vP({strategy:"referenceHidden",...Y})]}),[Q,fe]=x_(oe),me=qi(S);or(()=>{se&&(me==null||me())},[se,me]);const C=(J=$.arrow)==null?void 0:J.x,z=(ce=$.arrow)==null?void 0:ce.y,W=((pe=$.arrow)==null?void 0:pe.centerOffset)!==0,[ee,ne]=E.useState();return or(()=>{y&&ne(window.getComputedStyle(y).zIndex)},[y]),O.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:se?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(ge=$.transformOrigin)==null?void 0:ge.x,(ve=$.transformOrigin)==null?void 0:ve.y].join(" "),...((ke=$.hide)==null?void 0:ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:O.jsx(_P,{scope:n,placedSide:Q,onArrowChange:M,arrowX:C,arrowY:z,shouldHideArrow:W,children:O.jsx(Pt.div,{"data-side":Q,"data-align":fe,...v,ref:_,style:{...v.style,animation:se?void 0:"none"}})})})});y_.displayName=ev;var w_="PopperArrow",NP={top:"bottom",right:"left",bottom:"top",left:"right"},b_=E.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=SP(w_,r),a=NP[o.placedSide];return O.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:O.jsx(bP,{...i,ref:n,style:{...i.style,display:"block"}})})});b_.displayName=w_;function AP(e){return e!==null}var kP=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:n,rects:r,middlewareData:i}=t,a=((x=i.arrow)==null?void 0:x.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,d]=x_(n),p={start:"0%",center:"50%",end:"100%"}[d],g=(((y=i.arrow)==null?void 0:y.x)??0)+s/2,f=(((b=i.arrow)==null?void 0:b.y)??0)+l/2;let S="",v="";return u==="bottom"?(S=a?p:`${g}px`,v=`${-l}px`):u==="top"?(S=a?p:`${g}px`,v=`${r.floating.height+l}px`):u==="right"?(S=`${-l}px`,v=a?p:`${f}px`):u==="left"&&(S=`${r.floating.width+l}px`,v=a?p:`${f}px`),{data:{x:S,y:v}}}});function x_(e){const[t,n="center"]=e.split("-");return[t,n]}var EP=m_,__=v_,S_=y_,N_=b_,[Yp,d9]=zu("Tooltip",[Kp]),tv=Kp(),A_="TooltipProvider",LP=700,Hy="tooltip.open",[CP,k_]=Yp(A_),E_=e=>{const{__scopeTooltip:t,delayDuration:n=LP,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,a=E.useRef(!0),s=E.useRef(!1),l=E.useRef(0);return E.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),O.jsx(CP,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:E.useCallback(u=>{s.current=u}
vendor: 5,364 bytes, line 128
128,[]),disableHoverableContent:i,children:o})};E_.displayName=A_;var L_="Tooltip",[h9,Zp]=Yp(L_),c2="TooltipTrigger",PP=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Zp(c2,n),o=k_(c2,n),a=tv(n),s=E.useRef(null),l=Wt(t,s,i.onTriggerChange),u=E.useRef(!1),d=E.useRef(!1),p=E.useCallback(()=>u.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),O.jsx(__,{asChild:!0,...a,children:O.jsx(Pt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:vt(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:vt(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:vt(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:vt(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:vt(e.onBlur,i.onClose),onClick:vt(e.onClick,i.onClose)})})});PP.displayName=c2;var TP="TooltipPortal",[p9,RP]=Yp(TP,{forceMount:void 0}),Ru="TooltipContent",C_=E.forwardRef((e,t)=>{const n=RP(Ru,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=Zp(Ru,e.__scopeTooltip);return O.jsx(Bg,{present:r||a.open,children:a.disableHoverableContent?O.jsx(P_,{side:i,...o,ref:t}):O.jsx(IP,{side:i,...o,ref:t})})}),IP=E.forwardRef((e,t)=>{const n=Zp(Ru,e.__scopeTooltip),r=k_(Ru,e.__scopeTooltip),i=E.useRef(null),o=Wt(t,i),[a,s]=E.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:p}=r,g=E.useCallback(()=>{s(null),p(!1)},[p]),f=E.useCallback((S,v)=>{const x=S.currentTarget,y={x:S.clientX,y:S.clientY},b=DP(y,x.getBoundingClientRect()),_=BP(y,b),A=zP(v.getBoundingClientRect()),M=qP([..._,...A]);s(M),p(!0)},[p]);return E.useEffect(()=>()=>g(),[g]),E.useEffect(()=>{if(l&&d){const S=x=>f(x,d),v=x=>f(x,l);return l.addEventListener("pointerleave",S),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",v)}}},[l,d,f,g]),E.useEffect(()=>{if(a){const S=v=>{const x=v.target,y={x:v.clientX,y:v.clientY},b=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),_=!UP(y,a);b?g():_&&(g(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[l,d,a,u,g]),O.jsx(P_,{...e,ref:o})}),[OP,jP]=Yp(L_,{isInside:!1}),MP=LL("TooltipContent"),P_=E.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=Zp(Ru,n),u=tv(n),{onClose:d}=l;return E.useEffect(()=>(document.addEventListener(Hy,d),()=>document.removeEventListener(Hy,d)),[d]),E.useEffect(()=>{if(l.trigger){const p=g=>{const f=g.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),O.jsx(qp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:O.jsxs(S_,{"data-state":l.stateAttribute,...u,...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:[O.jsx(MP,{children:r}),O.jsx(OP,{scope:n,isInside:!0,children:O.jsx(ZL,{id:l.contentId,role:"tooltip",children:i||r})})]})})});C_.displayName=Ru;var T_="TooltipArrow",FP=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=tv(n);return jP(T_,n).isInside?null:O.jsx(N_,{...i,...r,ref:t})});FP.displayName=T_;function DP(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function BP(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function zP(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function UP(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const s=t[o],l=t[a],u=s.x,d=s.y,p=l.x,g=l.y;d>r!=g>r&&n<(p-u)*(r-d)/(g-d)+u&&(i=!i)}return i}function qP(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),$P(t)}function $P(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];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 n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var HP=E_,R_=C_;const WP=HP,VP=E.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
128O.jsx(R_,{ref:r,sideOffset:t,className:sn("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),...n}));VP.displayName=R_.displayName;const GP=$g("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"}}),I_=E.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const a=r?kL:"button";return O.jsx(a,{className:sn(GP({variant:t,size:n,className:e})),ref:o,...i})});I_.displayName="Button";const f2=E.forwardRef(({className:e,...t},n)=>O.jsx("div",{ref:n,className:sn("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));f2.displayName="Card";const KP=E.forwardRef(({className:e,...t},n)=>O.jsx("div",{ref:n,className:sn("flex flex-col space-y-1.5 p-6",e),...t}));KP.displayName="CardHeader";const YP=E.forwardRef(({className:e,...t},n)=>O.jsx("h3",{ref:n,className:sn("text-2xl font-semibold leading-none tracking-tight",e),...t}));YP.displayName="CardTitle";const ZP=E.forwardRef(({className:e,...t},n)=>O.jsx("p",{ref:n,className:sn("text-sm text-muted-foreground",e),...t}));ZP.displayName="CardDescription";const XP=E.forwardRef(({className:e,...t},n)=>O.jsx("div",{ref:n,className:sn("p-6 pt-0",e),...t}));XP.displayName="CardContent";const QP=E.forwardRef(({className:e,...t},n)=>O.jsx("div",{ref:n,className:sn("flex items-center p-6 pt-0",e),...t}));QP.displayName="CardFooter";const O_=E.forwardRef(({className:e,type:t,...n},r)=>O.jsx("input",{type:t,className:sn("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:r,...n}));O_.displayName="Input";var JP="Label",j_=E.forwardRef((e,t)=>O.jsx(Pt.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));j_.displayName=JP;var M_=j_;const eT=$g("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),oo=E.forwardRef(({className:e,...t},n)=>O.jsx(M_,{ref:n,className:sn(eT(),e),...t}));oo.displayName=M_.displayName;function mp(e,[t,n]){return Math.min(n,Math.max(t,e))}var tT=E.createContext(void 0);function F_(e){const t=E.useContext(tT);return e||t||"ltr"}var _0=0;function nT(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wy()),document.body.insertAdjacentElement("beforeend",e[1]??Wy()),_0++,()=>{_0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_0--}},[])}function Wy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,514 bytes, line 128
128style.position="fixed",e.style.pointerEvents="none",e}var S0="focusScope.autoFocusOnMount",N0="focusScope.autoFocusOnUnmount",Vy={bubbles:!1,cancelable:!0},rT="FocusScope",D_=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=E.useState(null),u=qi(i),d=qi(o),p=E.useRef(null),g=Wt(t,v=>l(v)),f=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(r){let v=function(_){if(f.paused||!s)return;const A=_.target;s.contains(A)?p.current=A:_a(p.current,{select:!0})},x=function(_){if(f.paused||!s)return;const A=_.relatedTarget;A!==null&&(s.contains(A)||_a(p.current,{select:!0}))},y=function(_){if(document.activeElement===document.body)for(const M of _)M.removedNodes.length>0&&_a(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),b.disconnect()}}},[r,s,f.paused]),E.useEffect(()=>{if(s){Ky.add(f);const v=document.activeElement;if(!s.contains(v)){const y=new CustomEvent(S0,Vy);s.addEventListener(S0,u),s.dispatchEvent(y),y.defaultPrevented||(iT(uT(B_(s)),{select:!0}),document.activeElement===v&&_a(s))}return()=>{s.removeEventListener(S0,u),setTimeout(()=>{const y=new CustomEvent(N0,Vy);s.addEventListener(N0,d),s.dispatchEvent(y),y.defaultPrevented||_a(v??document.body,{select:!0}),s.removeEventListener(N0,d),Ky.remove(f)},0)}}},[s,u,d,f]);const S=E.useCallback(v=>{if(!n&&!r||f.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(x&&y){const b=v.currentTarget,[_,A]=oT(b);_&&A?!v.shiftKey&&y===A?(v.preventDefault(),n&&_a(_,{select:!0})):v.shiftKey&&y===_&&(v.preventDefault(),n&&_a(A,{select:!0})):y===b&&v.preventDefault()}},[n,r,f.paused]);return O.jsx(Pt.div,{tabIndex:-1,...a,ref:g,onKeyDown:S})});D_.displayName=rT;function iT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_a(r,{select:t}),document.activeElement!==n)return}function oT(e){const t=B_(e),n=Gy(t,e),r=Gy(t.reverse(),e);return[n,r]}function B_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gy(e,t){for(const n of e)if(!aT(n,{upTo:t}))return n}function aT(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 sT(e){return e instanceof HTMLInputElement&&"select"in e}function _a(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&sT(e)&&t&&e.select()}}var Ky=lT();function lT(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Yy(e,t),e.unshift(t)},remove(t){var n;e=Yy(e,t),(n=e[0])==null||n.resume()}}}function Yy(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function uT(e){return e.filter(t=>t.tagName!=="A")}function z_(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var cT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Il=new WeakMap,Xd=new WeakMap,Qd={},A0=0,U_=function(e){return e&&(e.host||U_(e.parentNode))},fT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=U_(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},dT=function(e,t,n,r){var i=fT(t,Array.isArray(e)?e:[e]);Qd[n]||(Qd[n]=new WeakMap);var o=Qd[n],a=[],s=new Set,l=new Set(i),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};i.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(g){if(s.has(g))d(g);else try{var f=g.getAttribute(r),S=f!==null&&f!=="false",v=(Il.get(g)||0)+1,x=(o.get(g)||0)+1;Il.set(g,v),o.set(g,x),a.push(g),v===1&&S&&Xd.set(g,!0),x===1&&g.setAttribute(n,"true"),S||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return d(t),s.clear(),A0++,function(){a.forEach(function(p){var g=Il.get(p)-1,f=o.get(p)-1;
vendor: 5,981 bytes, lines 128-143
128Il.set(p,g),o.set(p,f),g||(Xd.has(p)||p.removeAttribute(r),Xd.delete(p)),f||p.removeAttribute(n)}),A0--,A0||(Il=new WeakMap,Il=new WeakMap,Xd=new WeakMap,Qd={})}},hT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=cT(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),dT(r,i,n,"aria-hidden")):function(){return null}},ho=function(){return ho=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ho.apply(this,arguments)};function q_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function pT(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var kh="right-scroll-bar-position",Eh="width-before-scroll-bar",mT="with-scroll-bars-hidden",gT="--removed-body-scroll-bar-size";function k0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vT(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var yT=typeof window<"u"?E.useLayoutEffect:E.useEffect,Zy=new WeakMap;function wT(e,t){var n=vT(null,function(r){return e.forEach(function(i){return k0(i,r)})});return yT(function(){var r=Zy.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(s){o.has(s)||k0(s,null)}),o.forEach(function(s){i.has(s)||k0(s,a)})}Zy.set(n,e)},[e]),n}function bT(e){return e}function xT(e,t){t===void 0&&(t=bT);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(s){return o(s)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(o),a=n}var l=function(){var d=a;a=[],d.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return i}function _T(e){e===void 0&&(e={});var t=xT(null);return t.options=ho({async:!0,ssr:!1},e),t}var $_=function(e){var t=e.sideCar,n=q_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return E.createElement(r,ho({},n))};$_.isSideCarExport=!0;function ST(e,t){return e.useMedium(t),$_}var H_=_T(),E0=function(){},Xp=E.forwardRef(function(e,t){var n=E.useRef(null),r=E.useState({onScrollCapture:E0,onWheelCapture:E0,onTouchMoveCapture:E0}),i=r[0],o=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,g=e.sideCar,f=e.noRelative,S=e.noIsolation,v=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,_=e.gapMode,A=q_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=g,Z=wT([n,t]),V=ho(ho({},A),i);return E.createElement(E.Fragment,null,d&&E.createElement(M,{sideCar:H_,removeScrollBar:u,shards:p,noRelative:f,noIsolation:S,inert:v,setCallbacks:o,allowPinchZoom:!!x,lockRef:n,gapMode:_}),a?E.cloneElement(E.Children.only(s),ho(ho({},V),{ref:Z})):E.createElement(b,ho({},V,{className:l,ref:Z}),s))});Xp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xp.classNames={fullWidth:Eh,zeroRight:kh};var NT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function AT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=NT();return t&&e.setAttribute("nonce",t),e}function kT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ET(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var LT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=AT())&&(kT(t,n),ET(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},CT=function(){var e=LT();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},W_=function(){var e=CT(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},PT={left:0,top:0,right:0,gap:0},L0=function(e){return parseInt(e||"",10)||0},TT=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[L0(n),L0(r),L0(i)]},RT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return PT;var t=TT(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},IT=W_(),cu="data-scroll-locked",OT=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),` 129 .`.concat(mT,` { 130 overflow: hidden `).concat(r,`; 131 padding-right: `).concat(s,"px ").concat(r,`; 132 } 133 body[`).concat(cu,`] { 134 overflow: hidden `).concat(r,`; 135 overscroll-behavior: contain; 136 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 137 padding-left: `.concat(i,`px; 138 padding-top: `).concat(o,`px; 139 padding-right: `).concat(a,`px; 140 margin-left:0; 141 margin-top:0; 142 margin-right: `).concat(s,"px ").concat(r,`; 143 `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";
143")].filter(Boolean).join(""),` 144 } 145 146 .`).concat(kh,` { 147 right: `).concat(s,"px ").concat(r,`; 148 } 149 150 .`).concat(Eh,` { 151 margin-right: `).concat(s,"px ").concat(r,`; 152 } 153 154 .`).concat(kh," .").concat(kh,` { 155 right: 0 `).concat(r,`; 156 } 157 158 .`).concat(Eh," .").concat(Eh,` { 159 margin-right: 0 `).concat(r,`; 160 } 161 162 body[`).concat(cu,`] { 163 `).concat(gT,": ").concat(s,`px; 164 } 165`)},Xy=function(){var e=parseInt(document.body.getAttribute(cu)||"0",10);return isFinite(e)?e:0},jT=function(){E.useEffect(function(){return document.body.setAttribute(cu,(Xy()+1).toString()),function(){var e=Xy()-1;e<=0?document.body.removeAttribute(cu):document.body.setAttribute(cu,e.toString())}},[])},MT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;jT();var o=E.useMemo(function(){return RT(i)},[i]);return E.createElement(IT,{styles:OT(o,!t,i,n?"":"!important")})},d2=!1;if(typeof window<"u")try{var Jd=Object.defineProperty({},"passive",{get:function(){return d2=!0,!0}});window.addEventListener("test",Jd,Jd),window.removeEventListener("test",Jd,Jd)}catch{d2=!1}var Ol=d2?{passive:!1}:!1,FT=function(e){return e.tagName==="TEXTAREA"},V_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!FT(e)&&n[t]==="visible")},DT=function(e){return V_(e,"overflowY")},BT=function(e){return V_(e,"overflowX")},Qy=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=G_(e,r);if(i){var o=K_(e,r),a=o[1],s=o[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},UT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},G_=function(e,t){return e==="v"?DT(t):BT(t)},K_=function(e,t){return e==="v"?zT(t):UT(t)},qT=function(e,t){return e==="h"&&t==="rtl"?-1:1},$T=function(e,t,n,r,i){var o=qT(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,d=a>0,p=0,g=0;do{if(!s)break;var f=K_(e,s),S=f[0],v=f[1],x=f[2],y=v-x-o*S;(S||y)&&G_(e,s)&&(p+=y,g+=S);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(Math.abs(p)<1||!i)||!d&&(Math.abs(g)<1||!i))&&(u=!0),u},eh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jy=function(e){return[e.deltaX,e.deltaY]},ew=function(e){return e&&"current"in e?e.current:e},HT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},WT=function(e){return` 166 .block-interactivity-`.concat(e,` {pointer-events: none;} 167 .allow-interactivity-`).concat(e,` {pointer-events: all;} 168`)},VT=0,jl=[];function GT(e){var t=E.useRef([]),n=E.useRef([0,0]),r=E.useRef(),i=E.useState(VT++)[0],o=E.useState(W_)[0],a=E.useRef(e);E.useEffect(function(){a.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=pT([e.lockRef.current],(e.shards||[]).map(ew),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=E.useCallback(function(v,x){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var y=eh(v),b=n.current,_="deltaX"in v?v.deltaX:b[0]-y[0],A="deltaY"in v?v.deltaY:b[1]-y[1],M,Z=v.target,V=Math.abs(_)>Math.abs(A)?"h":"v";if("touches"in v&&V==="h"&&Z.type==="range")return!1;var q=Qy(V,Z);if(!q)return!0;if(q?M=V:(M=V==="v"?"h":"v",q=Qy(V,Z)),!q)return!1;if(!r.current&&"changedTouches"in v&&(_||A)&&(r.current=M),!M)return!0;var F=r.current||M;return $T(F,x,v,F==="h"?_:A,!0)},[]),l=E.useCallback(function(v){var x=v;if(!(!jl.length||jl[jl.length-1]!==o)){var y="deltaY"in x?Jy(x):eh(x),b=t.current.filter(function(M){return M.name===x.type&&(M.target===x.target||x.target===M.shadowParent)&&HT(M.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}
vendor: 4,139 bytes, line 168
168if(!b){var _=(a.current.shards||[]).map(ew).filter(Boolean).filter(function(M){return M.contains(x.target)}),A=_.length>0?s(x,_[0]):!a.current.noIsolation;A&&x.cancelable&&x.preventDefault()}}},[]),u=E.useCallback(function(v,x,y,b){var _={name:v,delta:x,target:y,should:b,shadowParent:KT(y)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(A){return A!==_})},1)},[]),d=E.useCallback(function(v){n.current=eh(v),r.current=void 0},[]),p=E.useCallback(function(v){u(v.type,Jy(v),v.target,s(v,e.lockRef.current))},[]),g=E.useCallback(function(v){u(v.type,eh(v),v.target,s(v,e.lockRef.current))},[]);E.useEffect(function(){return jl.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",l,Ol),document.addEventListener("touchmove",l,Ol),document.addEventListener("touchstart",d,Ol),function(){jl=jl.filter(function(v){return v!==o}),document.removeEventListener("wheel",l,Ol),document.removeEventListener("touchmove",l,Ol),document.removeEventListener("touchstart",d,Ol)}},[]);var f=e.removeScrollBar,S=e.inert;return E.createElement(E.Fragment,null,S?E.createElement(o,{styles:WT(i)}):null,f?E.createElement(MT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function KT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const YT=ST(H_,GT);var Y_=E.forwardRef(function(e,t){return E.createElement(Xp,ho({},e,{ref:t,sideCar:YT}))});Y_.classNames=Xp.classNames;var ZT=[" ","Enter","ArrowUp","ArrowDown"],XT=[" ","Enter"],Xs="Select",[Qp,Jp,QT]=Fg(Xs),[Hu,m9]=zu(Xs,[QT,Kp]),e1=Kp(),[JT,as]=Hu(Xs),[eR,tR]=Hu(Xs),Z_=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:a,defaultValue:s,onValueChange:l,dir:u,name:d,autoComplete:p,disabled:g,required:f,form:S}=e,v=e1(t),[x,y]=E.useState(null),[b,_]=E.useState(null),[A,M]=E.useState(!1),Z=F_(u),[V,q]=cp({prop:r,defaultProp:i??!1,onChange:o,caller:Xs}),[F,X]=cp({prop:a,defaultProp:s,onChange:l,caller:Xs}),P=E.useRef(null),R=x?S||!!x.closest("form"):!0,[Y,B]=E.useState(new Set),ie=Array.from(Y).map(oe=>oe.props.value).join(";");return O.jsx(EP,{...v,children:O.jsxs(JT,{required:f,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:_,valueNodeHasChildren:A,onValueNodeHasChildrenChange:M,contentId:Wg(),value:F,onValueChange:X,open:V,onOpenChange:q,dir:Z,triggerPointerDownPosRef:P,disabled:g,children:[O.jsx(Qp.Provider,{scope:t,children:O.jsx(eR,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(oe=>{B(se=>new Set(se).add(oe))},[]),onNativeOptionRemove:E.useCallback(oe=>{B(se=>{const $=new Set(se);return $.delete(oe),$})},[]),children:n})}),R?O.jsxs(bS,{"aria-hidden":!0,required:f,tabIndex:-1,name:d,autoComplete:p,value:F,onChange:oe=>X(oe.target.value),disabled:g,form:S,children:[F===void 0?O.jsx("option",{value:""}):null,Array.from(Y)]},ie):null]})})};Z_.displayName=Xs;var X_="SelectTrigger",Q_=E.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=e1(n),a=as(X_,n),s=a.disabled||r,l=Wt(t,a.onTriggerChange),u=Jp(n),d=E.useRef("touch"),[p,g,f]=_S(v=>{const x=u().filter(_=>!_.disabled),y=x.find(_=>_.value===a.value),b=SS(x,v,y);b!==void 0&&a.onValueChange(b.value)}),S=v=>{s||(a.onOpenChange(!0),f()),v&&(a.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return O.jsx(__,{asChild:!0,...o,children:O.jsx(Pt.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":xS(a.value)?"":void 0,...i,ref:l,onClick:vt(i.onClick,v=>{v.currentTarget.focus(),d.current!=="mouse"&&S(v)}),onPointerDown:vt(i.onPointerDown,v=>{d.current=v.pointerType;const x=v.target;x.hasPointerCapture(v.pointerId)&&x.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(S(v),v.preventDefault())}),onKeyDown:vt(i.onKeyDown,v=>{const x=p.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&g(v.key),!(x&&v.key===" ")&&ZT.includes(v.key)&&
vendor: 15,659 bytes, line 168
168(S(),v.preventDefault())})})})});Q_.displayName=X_;var J_="SelectValue",eS=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:a="",...s}=e,l=as(J_,n),{onValueNodeHasChildrenChange:u}=l,d=o!==void 0,p=Wt(t,l.onValueNodeChange);return or(()=>{u(d)},[u,d]),O.jsx(Pt.span,{...s,ref:p,style:{pointerEvents:"none"},children:xS(l.value)?O.jsx(O.Fragment,{children:a}):o})});eS.displayName=J_;var nR="SelectIcon",tS=E.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return O.jsx(Pt.span,{"aria-hidden":!0,...i,ref:t,children:r||"â¼"})});tS.displayName=nR;var rR="SelectPortal",nS=e=>O.jsx(Dg,{asChild:!0,...e});nS.displayName=rR;var Qs="SelectContent",rS=E.forwardRef((e,t)=>{const n=as(Qs,e.__scopeSelect),[r,i]=E.useState();if(or(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?ol.createPortal(O.jsx(iS,{scope:e.__scopeSelect,children:O.jsx(Qp.Slot,{scope:e.__scopeSelect,children:O.jsx("div",{children:e.children})})}),o):null}return O.jsx(oS,{...e,ref:t})});rS.displayName=Qs;var Ri=10,[iS,ss]=Hu(Qs),iR="SelectContentImpl",oR=_f("SelectContent.RemoveScroll"),oS=E.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:g,collisionPadding:f,sticky:S,hideWhenDetached:v,avoidCollisions:x,...y}=e,b=as(Qs,n),[_,A]=E.useState(null),[M,Z]=E.useState(null),V=Wt(t,J=>A(J)),[q,F]=E.useState(null),[X,P]=E.useState(null),R=Jp(n),[Y,B]=E.useState(!1),ie=E.useRef(!1);E.useEffect(()=>{if(_)return hT(_)},[_]),nT();const oe=E.useCallback(J=>{const[ce,...pe]=R().map(ke=>ke.ref.current),[ge]=pe.slice(-1),ve=document.activeElement;for(const ke of J)if(ke===ve||(ke==null||ke.scrollIntoView({block:"nearest"}),ke===ce&&M&&(M.scrollTop=0),ke===ge&&M&&(M.scrollTop=M.scrollHeight),ke==null||ke.focus(),document.activeElement!==ve))return},[R,M]),se=E.useCallback(()=>oe([q,_]),[oe,q,_]);E.useEffect(()=>{Y&&se()},[Y,se]);const{onOpenChange:$,triggerPointerDownPosRef:Q}=b;E.useEffect(()=>{if(_){let J={x:0,y:0};const ce=ge=>{var ve,ke;J={x:Math.abs(Math.round(ge.pageX)-(((ve=Q.current)==null?void 0:ve.x)??0)),y:Math.abs(Math.round(ge.pageY)-(((ke=Q.current)==null?void 0:ke.y)??0))}},pe=ge=>{J.x<=10&&J.y<=10?ge.preventDefault():_.contains(ge.target)||$(!1),document.removeEventListener("pointermove",ce),Q.current=null};return Q.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",pe,{capture:!0})}}},[_,$,Q]),E.useEffect(()=>{const J=()=>$(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[$]);const[fe,me]=_S(J=>{const ce=R().filter(ve=>!ve.disabled),pe=ce.find(ve=>ve.ref.current===document.activeElement),ge=SS(ce,J,pe);ge&&setTimeout(()=>ge.ref.current.focus())}),C=E.useCallback((J,ce,pe)=>{const ge=!ie.current&&!pe;(b.value!==void 0&&b.value===ce||ge)&&(F(J),ge&&(ie.current=!0))},[b.value]),z=E.useCallback(()=>_==null?void 0:_.focus(),[_]),W=E.useCallback((J,ce,pe)=>{const ge=!ie.current&&!pe;(b.value!==void 0&&b.value===ce||ge)&&P(J)},[b.value]),ee=r==="popper"?h2:aS,ne=ee===h2?{side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:g,collisionPadding:f,sticky:S,hideWhenDetached:v,avoidCollisions:x}:{};return O.jsx(iS,{scope:n,content:_,viewport:M,onViewportChange:Z,itemRefCallback:C,selectedItem:q,onItemLeave:z,itemTextRefCallback:W,focusSelectedItem:se,selectedItemText:X,position:r,isPositioned:Y,searchRef:fe,children:O.jsx(Y_,{as:oR,allowPinchZoom:!0,children:O.jsx(D_,{asChild:!0,trapped:b.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:vt(i,J=>{var ce;(ce=b.trigger)==null||ce.focus({preventScroll:!0}),J.preventDefault()}),children:O.jsx(qp,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:O.jsx(ee,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:J=>J.preventDefault(),...y,...ne,onPlaced:()=>B(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:vt(y.onKeyDown,J=>{const ce=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ce&&J.key.length===1&&me(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let ge=R().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(J.key)&&(ge=ge.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const ve=J.target,ke=ge.indexOf(ve);ge=ge.slice(ke+1)}setTimeout(()=>oe(ge)),J.preventDefault()}})})})})})})});oS.displayName=iR;var aR="SelectItemAlignedPosition",aS=E.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=as(Qs,n),a=ss(Qs,n),[s,l]=E.useState(null),[u,d]=E.useState(null),p=Wt(t,V=>d(V)),g=Jp(n),f=E.useRef(!1),S=E.useRef(!0),{viewport:v,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=a,_=E.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&u&&v&&x&&y){const V=o.trigger.getBoundingClientRect(),q=u.getBoundingClientRect(),F=o.valueNode.getBoundingClientRect(),X=y.getBoundingClientRect();if(o.dir!=="rtl"){const ve=X.left-q.left,ke=F.left-ve,Ce=V.left-ke,Oe=V.width+Ce,U=Math.max(Oe,q.width),Te=window.innerWidth-Ri,nt=mp(ke,[Ri,Math.max(Ri,Te-U)]);s.style.minWidth=Oe+"px",s.style.left=nt+"px"}else{const ve=q.right-X.right,ke=window.innerWidth-F.right-ve,Ce=window.innerWidth-V.right-ke,Oe=V.width+Ce,U=Math.max(Oe,q.width),Te=window.innerWidth-Ri,nt=mp(ke,[Ri,Math.max(Ri,Te-U)]);s.style.minWidth=Oe+"px",s.style.right=nt+"px"}const P=g(),R=window.innerHeight-Ri*2,Y=v.scrollHeight,B=window.getComputedStyle(u),ie=parseInt(B.borderTopWidth,10),oe=parseInt(B.paddingTop,10),se=parseInt(B.borderBottomWidth,10),$=parseInt(B.paddingBottom,10),Q=ie+oe+Y+$+se,fe=Math.min(x.offsetHeight*5,Q),me=window.getComputedStyle(v),C=parseInt(me.paddingTop,10),z=parseInt(me.paddingBottom,10),W=V.top+V.height/2-Ri,ee=R-W,ne=x.offsetHeight/2,J=x.offsetTop+ne,ce=ie+oe+J,pe=Q-ce;if(ce<=W){const ve=P.length>0&&x===P[P.length-1].ref.current;s.style.bottom="0px";const ke=u.clientHeight-v.offsetTop-v.offsetHeight,Ce=Math.max(ee,ne+(ve?z:0)+ke+se),Oe=ce+Ce;s.style.height=Oe+"px"}else{const ve=P.length>0&&x===P[0].ref.current;s.style.top="0px";const Ce=Math.max(W,ie+v.offsetTop+(ve?C:0)+ne)+pe;s.style.height=Ce+"px",v.scrollTop=ce-W+v.offsetTop}s.style.margin=`${Ri}px 0`,s.style.minHeight=fe+"px",s.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>f.current=!0)}},[g,o.trigger,o.valueNode,s,u,v,x,y,o.dir,r]);or(()=>_(),[_]);const[A,M]=E.useState();or(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const Z=E.useCallback(V=>{V&&S.current===!0&&(_(),b==null||b(),S.current=!1)},[_,b]);return O.jsx(lR,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:f,onScrollButtonChange:Z,children:O.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A},children:O.jsx(Pt.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});aS.displayName=aR;var sR="SelectPopperPosition",h2=E.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Ri,...o}=e,a=e1(n);return O.jsx(S_,{...a,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});h2.displayName=sR;var[lR,nv]=Hu(Qs,{}),p2="SelectViewport",sS=E.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,o=ss(p2,n),a=nv(p2,n),s=Wt(t,o.onViewportChange),l=E.useRef(0);return O.jsxs(O.Fragment,{children:[O.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),O.jsx(Qp.Slot,{scope:n,children:O.jsx(Pt.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:vt(i.onScroll,u=>{const d=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=a;if(g!=null&&g.current&&p){const f=Math.abs(l.current-d.scrollTop);if(f>0){const S=window.innerHeight-Ri*2,v=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),y=Math.max(v,x);if(y<S){const b=y+f,_=Math.min(S,b),A=b-_;p.style.height=_+"px",p.style.bottom==="0px"&&(d.scrollTop=A>0?A:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});sS.displayName=p2;var lS="SelectGroup",[uR,cR]=Hu(lS),fR=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Wg();return O.jsx(uR,{scope:n,id:i,children:O.jsx(Pt.div,{role:"group","aria-labelledby":i,...r,ref:t})})});fR.displayName=lS;var uS="SelectLabel",cS=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=cR(uS,n);return O.jsx(Pt.div,{id:i.id,...r,ref:t})});cS.displayName=uS;var gp="SelectItem",[dR,fS]=Hu(gp),dS=E.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...a}=e,s=as(gp,n),l=ss(gp,n),u=s.value===r,[d,p]=E.useState(o??""),[g,f]=E.useState(!1),S=Wt(t,b=>{var _;return(_=l.itemRefCallback)==null?void 0:_.call(l,b,r,i)}),v=Wg(),x=E.useRef("touch"),y=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return O.jsx(dR,{scope:n,value:r,disabled:i,textId:v,isSelected:u,onItemTextChange:E.useCallback(b=>{p(_=>_||((b==null?void 0:b.textContent)??"").trim())},[]),children:O.jsx(Qp.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:O.jsx(Pt.div,{role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:S,onFocus:vt(a.onFocus,()=>f(!0)),onBlur:vt(a.onBlur,()=>f(!1)),onClick:vt(a.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:vt(a.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:vt(a.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:vt(a.onPointerMove,b=>{var _;x.current=b.pointerType,i?(_=l.onItemLeave)==null||_.call(l):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:vt(a.onPointerLeave,b=>{var _;b.currentTarget===document.activeElement&&((_=l.onItemLeave)==null||_.call(l))}),onKeyDown:vt(a.onKeyDown,b=>{var A;((A=l.searchRef)==null?void 0:A.current)!==""&&b.key===" "||(XT.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});dS.displayName=gp;var jc="SelectItemText",hS=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,a=as(jc,n),s=ss(jc,n),l=fS(jc,n),u=tR(jc,n),[d,p]=E.useState(null),g=Wt(t,y=>p(y),l.onItemTextChange,y=>{var b;return(b=s.itemTextRefCallback)==null?void 0:b.call(s,y,l.value,l.disabled)}),f=d==null?void 0:d.textContent,S=E.useMemo(()=>O.jsx("option",{value:l.value,disabled:l.disabled,children:f},l.value),[l.disabled,l.value,f]),{onNativeOptionAdd:v,onNativeOptionRemove:x}=u;return or(()=>(v(S),()=>x(S)),[v,x,S]),O.jsxs(O.Fragment,{children:[O.jsx(Pt.span,{id:l.textId,...o,ref:g}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ol.createPortal(o.children,a.valueNode):null]})});hS.displayName=jc;var pS="SelectItemIndicator",mS=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return fS(pS,n).isSelected?O.jsx(Pt.span,{"aria-hidden":!0,...r,ref:t}):null});mS.displayName=pS;var m2="SelectScrollUpButton",gS=E.forwardRef((e,t)=>{const n=ss(m2,e.__scopeSelect),r=nv(m2,e.__scopeSelect),[i,o]=E.useState(!1),a=Wt(t,r.onScrollButtonChange);return or(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollTop>0;o(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),i?O.jsx(yS,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});gS.displayName=m2;var g2="SelectScrollDownButton",vS=E.forwardRef((e,t)=>{const n=ss(g2,e.__scopeSelect),r=nv(g2,e.__scopeSelect),[i,o]=E.useState(!1),a=Wt(t,r.onScrollButtonChange);return or(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;o(d)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),i?O.jsx(yS,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});vS.displayName=g2;var yS=E.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=ss("SelectScrollButton",n),a=E.useRef(null),s=Jp(n),l=E.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return E.useEffect(()=>()=>l(),[l]),or(()=>{var d;const u=s().find(p=>p.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[s]),O.jsx(Pt.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:vt(i.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:vt(i.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:vt(i.onPointerLeave,()=>{l()})})}),hR="SelectSeparator",wS=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return O.jsx(Pt.div,{"aria-hidden":!0,...r,ref:t})});wS.displayName=hR;var v2="SelectArrow",pR=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=e1(n),o=as(v2,n),a=ss(v2,n);return o.open&&a.position==="popper"?O.jsx(N_,{...i,...r,ref:t}):null});pR.displayName=v2;var mR="SelectBubbleInput",bS=E.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=E.useRef(null),o=Wt(r,i),a=z_(t);return E.useEffect(()=>{const s=i.current;if(!s)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&d){const p=new Event("change",{bubbles:!0});d.call(s,t),s.dispatchEvent(p)}},[a,t]),O.jsx(Pt.select,{...n,style:{...b4,...n.style},ref:o,defaultValue:t})});bS.displayName=mR;function xS(e){return e===""||e===void 0}function _S(e){const t=qi(e),n=E.useRef(""),r=E.useRef(0),i=E.useCallback(a=>{const s=n.current+a;t(s),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),o=E.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function SS(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=gR(e,Math.max(o,0));i.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function gR(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var vR=Z_,NS=Q_,yR=eS,wR=tS,bR=nS,AS=rS,xR=sS,kS=cS,ES=dS,_R=hS,SR=mS,LS=gS,CS=vS,PS=wS;const Lh=vR,Ch=yR,Kc=E.forwardRef(({className:e,children:t,...n},r)=>O.jsxs(NS,{ref:r,className:sn("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
168ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,O.jsx(wR,{asChild:!0,children:O.jsx($4,{className:"h-4 w-4 opacity-50"})})]}));Kc.displayName=NS.displayName;const TS=E.forwardRef(({className:e,...t},n)=>O.jsx(LS,{ref:n,className:sn("flex cursor-default items-center justify-center py-1",e),...t,children:O.jsx(bC,{className:"h-4 w-4"})}));TS.displayName=LS.displayName;const RS=E.forwardRef(({className:e,...t},n)=>O.jsx(CS,{ref:n,className:sn("flex cursor-default items-center justify-center py-1",e),...t,children:O.jsx($4,{className:"h-4 w-4"})}));RS.displayName=CS.displayName;const Yc=E.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>O.jsx(bR,{children:O.jsxs(AS,{ref:i,className:sn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[O.jsx(TS,{}),O.jsx(xR,{className:sn("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),O.jsx(RS,{})]})}));Yc.displayName=AS.displayName;const NR=E.forwardRef(({className:e,...t},n)=>O.jsx(kS,{ref:n,className:sn("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));NR.displayName=kS.displayName;const Aa=E.forwardRef(({className:e,children:t,...n},r)=>O.jsxs(ES,{ref:r,className:sn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[O.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:O.jsx(SR,{children:O.jsx(wC,{className:"h-4 w-4"})})}),O.jsx(_R,{children:t})]}));Aa.displayName=ES.displayName;const AR=E.forwardRef(({className:e,...t},n)=>O.jsx(PS,{ref:n,className:sn("-mx-1 my-1 h-px bg-muted",e),...t}));AR.displayName=PS.displayName;var IS=["PageUp","PageDown"],OS=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],jS={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Wu="Slider",[y2,kR,ER]=Fg(Wu),[MS,g9]=zu(Wu,[ER]),[LR,t1]=MS(Wu),FS=E.forwardRef((e,t)=>{const{name:n,min:r=0,max:i=100,step:o=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:d,onValueChange:p=()=>{},onValueCommit:g=()=>{},inverted:f=!1,form:S,...v}=e,x=E.useRef(new Set),y=E.useRef(0),_=a==="horizontal"?CR:PR,[A=[],M]=cp({prop:d,defaultProp:u,onChange:P=>{var Y;(Y=[...x.current][y.current])==null||Y.focus(),p(P)}}),Z=E.useRef(A);function V(P){const R=jR(A,P);X(P,R)}function q(P){X(P,y.current)}function F(){const P=Z.current[y.current];A[y.current]!==P&&g(A)}function X(P,R,{commit:Y}={commit:!1}){const B=BR(o),ie=zR(Math.round((P-r)/o)*o+r,B),oe=mp(ie,[r,i]);M((se=[])=>{const $=IR(se,oe,R);if(DR($,l*o)){y.current=$.indexOf(oe);const Q=String($)!==String(se);return Q&&Y&&g($),Q?$:se}else return se})}return O.jsx(LR,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:i,valueIndexToChangeRef:y,thumbs:x.current,values:A,orientation:a,form:S,children:O.jsx(y2.Provider,{scope:e.__scopeSlider,children:O.jsx(y2.Slot,{scope:e.__scopeSlider,children:O.jsx(_,{"aria-disabled":s,"data-disabled":s?"":void 0,...v,ref:t,onPointerDown:vt(v.onPointerDown,()=>{s||(Z.current=A)}),min:r,max:i,inverted:f,onSlideStart:s?void 0:V,onSlideMove:s?void 0:q,onSlideEnd:s?void 0:F,onHomeKeyDown:()=>!s&&X(r,0,{commit:!0}),onEndKeyDown:()=>!s&&X(i,A.length-1,{commit:!0}),onStepKeyDown:({event:P,direction:R})=>{if(!s){const ie=IS.includes(P.key)||P.shiftKey&&OS.includes(P.key)?10:1,oe=y.current,se=A[oe],$=o*ie*R;
168X(se+$,oe,{commit:!0})}}})})})})});FS.displayName=Wu;var[DS,BS]=MS(Wu,{startEdge:"left",endEdge:"right",size:"width",direction:1}),CR=E.forwardRef((e,t)=>{const{min:n,max:r,dir:i,inverted:o,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:u,...d}=e,[p,g]=E.useState(null),f=Wt(t,_=>g(_)),S=E.useRef(void 0),v=F_(i),x=v==="ltr",y=x&&!o||!x&&o;function b(_){const A=S.current||p.getBoundingClientRect(),M=[0,A.width],V=rv(M,y?[n,r]:[r,n]);return S.current=A,V(_-A.left)}return O.jsx(DS,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:O.jsx(zS,{dir:v,"data-orientation":"horizontal",...d,ref:f,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:_=>{const A=b(_.clientX);a==null||a(A)},onSlideMove:_=>{const A=b(_.clientX);s==null||s(A)},onSlideEnd:()=>{S.current=void 0,l==null||l()},onStepKeyDown:_=>{const M=jS[y?"from-left":"from-right"].includes(_.key);u==null||u({event:_,direction:M?-1:1})}})})}),PR=E.forwardRef((e,t)=>{const{min:n,max:r,inverted:i,onSlideStart:o,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...u}=e,d=E.useRef(null),p=Wt(t,d),g=E.useRef(void 0),f=!i;function S(v){const x=g.current||d.current.getBoundingClientRect(),y=[0,x.height],_=rv(y,f?[r,n]:[n,r]);return g.current=x,_(v-x.top)}return O.jsx(DS,{scope:e.__scopeSlider,startEdge:f?"bottom":"top",endEdge:f?"top":"bottom",size:"height",direction:f?1:-1,children:O.jsx(zS,{"data-orientation":"vertical",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const x=S(v.clientY);o==null||o(x)},onSlideMove:v=>{const x=S(v.clientY);a==null||a(x)},onSlideEnd:()=>{g.current=void 0,s==null||s()},onStepKeyDown:v=>{const y=jS[f?"from-bottom":"from-top"].includes(v.key);l==null||l({event:v,direction:y?-1:1})}})})}),zS=E.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:o,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...u}=e,d=t1(Wu,n);return O.jsx(Pt.span,{...u,ref:t,onKeyDown:vt(e.onKeyDown,p=>{p.key==="Home"?(a(p),p.preventDefault()):p.key==="End"?(s(p),p.preventDefault()):IS.concat(OS).includes(p.key)&&(l(p),p.preventDefault())}),onPointerDown:vt(e.onPointerDown,p=>{const g=p.target;g.setPointerCapture(p.pointerId),p.preventDefault(),d.thumbs.has(g)?g.focus():r(p)}),onPointerMove:vt(e.onPointerMove,p=>{p.target.hasPointerCapture(p.pointerId)&&i(p)}),onPointerUp:vt(e.onPointerUp,p=>{const g=p.target;g.hasPointerCapture(p.pointerId)&&(g.releasePointerCapture(p.pointerId),o(p))})})}),US="SliderTrack",qS=E.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=t1(US,n);return O.jsx(Pt.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});qS.displayName=US;var w2="SliderRange",$S=E.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=t1(w2,n),o=BS(w2,n),a=E.useRef(null),s=Wt(t,a),l=i.values.length,u=i.values.map(g=>VS(g,i.min,i.max)),d=l>1?Math.min(...u):0,p=100-Math.max(...u);return O.jsx(Pt.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:s,style:{...e.style,[o.startEdge]:d+"%",[o.endEdge]:p+"%"}})});$S.displayName=w2;var b2="SliderThumb",HS=E.forwardRef((e,t)=>{const n=kR(e.__scopeSlider),[r,i]=E.useState(null),o=Wt(t,s=>i(s)),a=E.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return O.jsx(TR,{...e,ref:o,index:a})}),TR=E.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:i,...o}=e,a=t1(b2,n),s=BS(b2,n),[l,u]=E.useState(null),d=Wt(t,b=>u(b)),p=l?a.form||!!l.closest("form"):!0,g=d_(l),f=a.values[r],S=f===void 0?0:VS(f,a.min,a.max),v=OR(r,a.values.length),x=g==null?void 0:g[s.size],y=x?MR(x,S,s.direction):0;return E.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),O.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${S}% + ${y}px)`},children:[O.jsx(y2.ItemSlot,{scope:e.__scopeSlider,children:O.jsx(Pt.span,{role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":a.min,"aria-valuenow":f,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...o,ref:d,style:f===void 0?{display:"none"}:e.style,onFocus:vt(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})})}),p&&O.jsx(WS,{name:i??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:f},r)]})});HS.displayName=b2;var RR="RadioBubbleInput",WS=E.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const i=E.useRef(null),o=Wt(i,r),a=z_(t);return E.useEffect(()=>
168{const s=i.current;if(!s)return;const l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&d){const p=new Event("input",{bubbles:!0});d.call(s,t),s.dispatchEvent(p)}},[a,t]),O.jsx(Pt.input,{style:{display:"none"},...n,ref:o,defaultValue:t})});WS.displayName=RR;function IR(e=[],t,n){const r=[...e];return r[n]=t,r.sort((i,o)=>i-o)}function VS(e,t,n){const o=100/(n-t)*(e-t);return mp(o,[0,100])}function OR(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function jR(e,t){if(e.length===1)return 0;const n=e.map(i=>Math.abs(i-t)),r=Math.min(...n);return n.indexOf(r)}function MR(e,t,n){const r=e/2,o=rv([0,50],[0,r]);return(r-o(t)*n)*n}function FR(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function DR(e,t){if(t>0){const n=FR(e);return Math.min(...n)>=t}return!0}function rv(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function BR(e){return(String(e).split(".")[1]||"").length}function zR(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var GS=FS,UR=qS,qR=$S,$R=HS;const zl=E.forwardRef(({className:e,...t},n)=>O.jsxs(GS,{ref:n,className:sn("relative flex w-full touch-none select-none items-center",e),...t,children:[O.jsx(UR,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:O.jsx(qR,{className:"absolute h-full bg-primary"})}),O.jsx($R,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background 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"})]}));zl.displayName=GS.displayName;function HR({inputs:e,onChange:t}){const n=(o,a)=>t({...e,[o]:a}),[r,i]=E.useState(String(e.currentSET));return O.jsxs("div",{className:"space-y-5",children:[O.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[O.jsxs("div",{className:"space-y-2",children:[O.jsx(oo,{className:"text-xs font-medium text-muted-foreground",children:"Professor Gender"}),O.jsxs(Lh,{value:String(e.profGender),onValueChange:o=>n("profGender",Number(o)),children:[O.jsx(Kc,{children:O.jsx(Ch,{})}),O.jsxs(Yc,{children:[O.jsx(Aa,{value:"0",children:"Female"}),O.jsx(Aa,{value:"1",children:"Male"})]})]})]}),O.jsxs("div",{className:"space-y-2",children:[O.jsxs(oo,{className:"text-xs font-medium text-muted-foreground",children:["Professor Age â ",O.jsxs("span",{className:"font-semibold text-foreground",children:[e.profAge," years"]})]}),O.jsx(zl,{min:25,max:70,step:1,value:[e.profAge],onValueChange:([o])=>n("profAge",o)})]}),O.jsxs("div",{className:"space-y-2",children:[O.jsxs(oo,{className:"text-xs font-medium text-muted-foreground",children:["Student Gender (proportion male) â ",O.jsx("span",{className:"font-semibold text-foreground",children:e.studentGender})]}),O.jsx(zl,{min:0,max:1,step:.05,value:[e.studentGender],onValueChange:([o])=>n("studentGender",Math.round(o*100)/100)})]}),O.jsxs("div",{className:"space-y-2",children:[O.jsxs(oo,{className:"text-xs font-medium text-muted-foreground",children:["Student Age â ",O.jsxs("span",{className:"font-semibold text-foreground",children:[e.studentAge," years"]})]}),O.jsx(zl,{min:17,max:60,step:1,value:[e.studentAge],onValueChange:([o])=>n("studentAge",o)})]}),O.jsxs("div",{className:"space-y-2",children:[O.jsxs(oo,{className:"text-xs font-medium text-muted-foreground",children:["Average Student Grade â ",O.jsxs("span",{className:"font-semibold text-foreground",children:[e.studentGrade,"/20"]})]}),O.jsx(zl,{min:0,max:20,step:.5,value:[e.studentGrade],onValueChange:([o])=>n("studentGrade",o)})]}),O.jsxs("div",{className:"space-y-2",children:[O.jsx(oo,{className:"text-xs font-medium text-muted-foreground",children:"Full-time Professor"}),O.jsxs(Lh,{value:String(e.fullTime),onValueChange:o=>n("fullTime",Number(o)),children:[O.jsx(Kc,{children:O.jsx(Ch,{})}),O.jsxs(Yc,{children:[O.jsx(Aa,{value:"0",children:"No (Adjunct)"}),O.jsx(Aa,{value:"1",children:"Yes (Permanent)"})]})]})]}),O.jsxs("div",{className:"space-y-2",children:[O.jsx(oo,{className:"text-xs font-medium text-muted-foreground",children:"Native Speaker"}),O.jsxs(Lh,{value:String(e.nativeSpeaker),onValueChange:o=>n("nativeSpeaker",Number(o)),children:[O.jsx(Kc,{children:O.jsx(Ch,{})}),O.jsxs(Yc,{children:[O.jsx(Aa,{value:"0",children:"No"}),O.jsx(Aa,{value:"1",children:"Yes"})]})]})]}),O.jsxs("div",{className:"space-y-2",children:[O.jsxs(oo,{className:"text-xs font-medium text-muted-foreground",children:["Cultural Distance â ",O.jsxs("span",{className:"font-semibold text-foreground",children:[e.culturalDistance,"%"]})]}),O.jsx(zl,{min:0,max:100,step:1,value:[e.culturalDistance],onValueChange:([o])=>n("culturalDistance",o)}),O.jsxs("p",{className:"text-[10px] text-muted-foreground",children:['Cultural Distance between you and your students. Please provide your best judgment with 0 "no cultural distance" (you and the students are from the same country) to 100 "extreme cultural distance" (you are from a country that has the highest cultural distance from your students). To learn more, read'," ",O.jsx("a",{href:"https://doi.org/10.5465/amle.2023.0541",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-foreground",children:"our paper"}),"."]})]})]}),O.jsxs("div",{className:"rounded-lg border bg-muted/50 p-4",children:[O.jsx(oo,{className:"text-sm font-semibold text-foreground",children:"Your Current SET Score"}),O.jsx(O_,{type:"text",inputMode:"decimal",value:r,onChange:o=>{const a=o.target.value;i(a);const s=parseFloat(a.replace(",","."));isNaN(s)||n("currentSET",s)},onBlur:()=>{(r===""||isNaN(parseFloat(r.replace(",","."))))&&i("")},className:"mt-2 max-w-[200px] text-lg font-bold"})]})]})}function WR(e){return`${e>=0?"+":""}${Math.round(e*100)}%`}function tw({label:e,percentage:t,correctedSET:n}){const r=t>=0;return O.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-border bg-card px-4 py-3 transition-colors hover:bg-muted/30",children:[O.jsx("span",{className:"text-sm text-foreground",children:e}),O.jsxs("div",{className:"flex items-center gap-3",children:[O.jsx("span",{className:`rounded-full px-2.5 py-0.5 text-xs font-semibold ${r?"bg-accent/10 text-result-positive":"bg-destructive/10 text-result-negative"}`,children:WR(t)}),O.jsx("span",{className:"min-w-[48px] rounded-md bg-secondary px-2 py-1 text-center text-sm font-bold text-secondary-foreground",children:n.toFixed(1)})]})]})}function VR({group:e}){const[t,n]=E.useState(0);if(e.type==="single"){const r=e.results[0];return O.jsxs("div",{children:[O.jsx("h3",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:e.title}),O.jsx(tw,{label:r.label,percentage:r.percentage,correctedSET:r.correctedSET})]})}return O.jsxs("div",{children:[O.jsx("h3",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:e.title}),e.description&&O.jsx("p",{className:"mb-2 text-xs text-muted-foreground",children:e.description}),O.jsxs(Lh,{value:String(t),onValueChange:r=>n(Number(r)),children:[O.jsx(Kc,{className:"mb-2",children:O.jsx(Ch,{})}),O.jsx(Yc,{children:e.results.map((r,i)=>O.jsx(Aa,{value:String(i),children:r.label},i))})]}),O.jsx(tw,{label:e.results[t].label,percentage:e.results[t].percentage,correctedSET:e.results[t].correctedSET})]})}function GR({groups:e}){return O.jsxs("div",{className:"space-y-4",children:[O.jsx("p",{className:"text-xs text-muted-foreground",children:"The percentage shows how much b
168ias exists; the number is your corrected SET."}),O.jsx("div",{className:"space-y-4",children:e.map((t,n)=>O.jsx(VR,{group:t},n))})]})}const KR={culturalDistance:-.0027,culturalDistance2:2e-4,profGenderMale:1.3161,profAge:.0544,profGenderMale_x_profAge:-.0442,profAge2:-5e-4,profGenderMale_x_profAge2:3e-4,studentGenderMale:.2266,studentGenderMale_x_profGenderMale:-.2061,studentGenderMale_x_profAge:-.0117,studentGenderMale_x_profGenderMale_x_profAge:.013,studentGenderMale_x_profAge2:1e-4,studentGenderMale_x_profGenderMale_x_profAge2:-1e-4,studentAge:.0131,studentGrade:.0382,fullTimeProfessor:.1006,nativeSpeaker:.0918,constant:1.7123},KS="https://doi.org/10.5465/amle.2023.0541",YS="Bashirzadeh, Y., Meunier, L., & Mai, R. (2025). Do Business School Students Value Faculty Diversity? Insights From a Dyadic Analysis of Students' Evaluations of Teaching. Academy of Management Learning & Education, 25(1), 10-32.",C0=[{name:"Yashar Bashirzadeh",url:"https://scholar.google.de/citations?user=TUQxeH0AAAAJ&hl=fr&oi=sra"},{name:"Luc Meunier",url:"https://scholar.google.de/citations?user=z5kg56MAAAAJ&hl=fr&oi=sra"},{name:"Robert Mai",url:"https://scholar.google.de/citations?user=HJcUHgkAAAAJ&hl=de&oi=sra"}];function nw(e){const{culturalDistance:t,profGender:n,profAge:r,studentGender:i,studentAge:o,studentGrade:a,fullTime:s,nativeSpeaker:l}=e,u=KR,d=t/2;return u.culturalDistance*d+u.culturalDistance2*d**2+u.profGenderMale*n+u.profAge*r+u.profGenderMale_x_profAge*n*r+u.profAge2*r**2+u.profGenderMale_x_profAge2*n*r**2+u.studentGenderMale*i+u.studentGenderMale_x_profGenderMale*i*n+u.studentGenderMale_x_profAge*i*r+u.studentGenderMale_x_profGenderMale_x_profAge*i*n*r+u.studentGenderMale_x_profAge2*i*r**2+u.studentGenderMale_x_profGenderMale_x_profAge2*i*n*r**2+u.studentAge*o+u.studentGrade*a+u.fullTimeProfessor*s+u.nativeSpeaker*l+u.constant}function YR(e){const t=nw(e);function n(g){const f={...e,...g},v=nw(f)/t;return{percentage:v-1,correctedSET:e.currentSET*v}}const r=n({profGender:Math.abs(e.profGender-1)}),o=[25,30,40,50,60].map(g=>{const f=n({profAge:g});return{label:`${g} years`,...f}}),s=[{value:11.425,label:"Tough grader (10th percentile)"},{value:14.6,label:"Average grader (50th percentile)"},{value:16,label:"Somewhat softer grader (75th percentile)"},{value:17.9,label:"Soft grader (95th percentile)"}].map(({value:g,label:f})=>{const S=n({studentGrade:g});return{label:f,...S}}),l=n({fullTime:Math.abs(e.fullTime-1)}),u=n({nativeSpeaker:Math.abs(e.nativeSpeaker-1)}),p=[{value:0,label:"Distance of 0%"},{value:20,label:"Distance of 20%"},{value:40,label:"Distance of 40%"},{value:60,label:"Distance of 60%"},{value:80,label:"Distance of 80%"}].map(({value:g,label:f})=>{const S=n({culturalDistance:g});return{label:f,...S}});return[{title:"Gender",type:"single",results:[{label:"If you were of the other gender",...r}]},{title:"Age",description:"If you were of another age",type:"dropdown",dropdownLabel:"Select age",results:o},{title:"Grading",description:"If you were a tougher or softer grader",type:"dropdown",dropdownLabel:"Select grading style",results:s},{title:"Employment Status",type:"single",results:[{label:"If you had the other status (full vs. part-time)",...l}]},{title:"Language",type:"single",results:[{label:"If you had the other language skills (native vs. non-native)",...u}]},{title:"Cultural Distance",description:"If you were culturally closer or more distant to your students",type:"dropdown",dropdownLabel:"Select distance",results:p}]}const ZR="modulepreload",XR=function(e){return"/"+e},rw={},P0=function(t,n,r){let i=Promise.resolve();if(n&&n.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(n.map(l=>{if(l=XR(l),l in rw)return;rw[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":ZR,u||(p.as="script"),p.crossOrigin="",p.href=l,s&&p.setAttribute("nonce",s),document.head.appendChild(p),u)return new Promise((g,f)=>{p.addEventListener("load",g),p.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)})};function Ut(e){"@babel/helpers - typeof";return Ut=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},Ut(e)}var Wi=Uint8Array,ti=Uint16Array,iv=Int32Array,ov=new Wi([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]),av=new Wi([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]),iw=new Wi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ZS=function(e,t){for(var n=new ti(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new iv(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return{b:n,r:i}},XS=ZS(ov,2),QR=XS.b,x2=XS.r;QR[28]=258,x2[258]=28;var JR=ZS(av,0),ow=JR.r,_2=new ti(32768);for(var on=0;on<32768;++on){var wa=(on&43690)>>1|(on&21845)<<1;wa=(wa&52428)>>2|(wa&13107)<<2,wa=(wa&61680)>>4|(wa&3855)<<4,_2[on]=((wa&65280)>>8|(wa&255)<<8)>>1}var Zc=function(e,t,n){for(var r=e.length,i=0,o=new ti(t);i<r;++i)e[i]&&++o[e[i]-1];var a=new ti(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;var s;if(n){s=new ti(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],d=t-e[i],p=a[e[i]-1]++<<d,g=p|(1<<d)-1;p<=g;++p)s[_2[p]>>l]=u}else for(s=new ti(r),i=0;i<r;++i)e[i]&&(s[i]=_2[a[e[i]-1]++]>>15-e[i]);return s},Js=new Wi(288);for(var on=0;on<144;++on)Js[on]=8;for(var on=144;on<256;++on)Js[on]=9;for(var on=256;on<280;++on)Js[on]=7;for(var on=280;on<288;++on)Js[on]=8;var vp=new Wi(32);for(var on=0;on<32;++on)vp[on]=5;var eI=Zc(Js,9,0),tI=Zc(vp,5,0),QS=function(e){return(e+7)/8|0},nI=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new Wi(e.subarray(t,n))},Fo=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Lc=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},T0=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return{t:e6,l:0};if(i==1){var a=new Wi(n[0].s+1);return a[n[0].s]=1,{t:a,l:1}}n.sort(function(M,Z){return M.f-Z.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],u=0,d=1,p=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};d!=i-1;)s=n[n[u].f<n[p].f?u++:p++],l=n[u!=d&&n[u].f<n[p].f?u++:p++],n[d++]={s:-1,f:s.f+l.f,l:s,r:l};for(var g=o[0].s,r=1;r<i;++r)o[r].s>g&&(g=o[r].s);var f=new ti(g+1),S=S2(n[d-1],f,0);if(S>t){var r=0,v=0,x=S-t,y=1<<x;for(o.sort(function(Z,V){return f[V.s]-f[Z.s]||Z.f-V.f});r<i;++r){var b=o[r].s;if(f[b]>t)v+=y-(1<<S-f[b]),f[b]=t;else break}for(v>>=x;v>0;){var _=o[r].s;f[_]<t?v-=1<<t-f[_]++-1:++r}for(;r>=0&&v;--r){var A=o[r].s;f[A]==t&&(--f[A],++v)}S=t}return{t:new Wi(f),l:S}},S2=function(e,t,n){return e.s==-1?Math.max(S2(e.l,t,n+1),S2(e.r,t,n+1)):t[e.s]=n},aw=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ti(++t),r=0,i=e[0],o=1,a=function(l){n[r++]=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:n.subarray(0,r),n:t}},Cc=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},JS=function(e,t,n){var r=n.length,i=QS(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},sw=function(e,t,n,r,i,o,a,s,l,u,d){Fo(t,d++,n),++i[256];for(var p=T0(i,15),g=p.t,f=p.l,S=T0(o,15),v=S.t,x=S.l,y=aw(g),b=y.c,_=y.n,A=aw(v),M=A.c,Z=A.n,V=new ti(19),q=0;q<b.length;++q)++V[b[q]&31];for(var q=0;q<M.length;++q)++V[M[q]&31];for(var F=T0(V,7),X=F.t,P=F.l,R=19;R>4&&!X[iw[R-1]];--R);var Y=u+5<<3,B=Cc(i,Js)+Cc(o,vp)+a,ie=Cc(i,g)+Cc(o,v)+a+14+3*R+Cc(V,X)+2*V[16]+3*V[17]+
vendor: 10,108 bytes, lines 168-169
1687*V[18];if(l>=0&&Y<=B&&Y<=ie)return JS(t,d,e.subarray(l,l+u));var oe,se,$,Q;if(Fo(t,d,1+(ie<B)),d+=2,ie<B){oe=Zc(g,f,0),se=g,$=Zc(v,x,0),Q=v;var fe=Zc(X,P,0);Fo(t,d,_-257),Fo(t,d+5,Z-1),Fo(t,d+10,R-4),d+=14;for(var q=0;q<R;++q)Fo(t,d+3*q,X[iw[q]]);d+=3*R;for(var me=[b,M],C=0;C<2;++C)for(var z=me[C],q=0;q<z.length;++q){var W=z[q]&31;Fo(t,d,fe[W]),d+=X[W],W>15&&(Fo(t,d,z[q]>>5&127),d+=z[q]>>12)}}else oe=eI,se=Js,$=tI,Q=vp;for(var q=0;q<s;++q){var ee=r[q];if(ee>255){var W=ee>>18&31;Lc(t,d,oe[W+257]),d+=se[W+257],W>7&&(Fo(t,d,ee>>23&31),d+=ov[W]);var ne=ee&31;Lc(t,d,$[ne]),d+=Q[ne],ne>3&&(Lc(t,d,ee>>5&8191),d+=av[ne])}else Lc(t,d,oe[ee]),d+=se[ee]}return Lc(t,d,oe[256]),d+se[256]},rI=new iv([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),e6=new Wi(0),iI=function(e,t,n,r,i,o){var a=o.z||e.length,s=new Wi(r+a+5*(1+Math.ceil(a/7e3))+i),l=s.subarray(r,s.length-i),u=o.l,d=(o.r||0)&7;if(t){d&&(l[0]=o.r>>3);for(var p=rI[t-1],g=p>>13,f=p&8191,S=(1<<n)-1,v=o.p||new ti(32768),x=o.h||new ti(S+1),y=Math.ceil(n/3),b=2*y,_=function(Oe){return(e[Oe]^e[Oe+1]<<y^e[Oe+2]<<b)&S},A=new iv(25e3),M=new ti(288),Z=new ti(32),V=0,q=0,F=o.i||0,X=0,P=o.w||0,R=0;F+2<a;++F){var Y=_(F),B=F&32767,ie=x[Y];if(v[B]=ie,x[Y]=B,P<=F){var oe=a-F;if((V>7e3||X>24576)&&(oe>423||!u)){d=sw(e,l,0,A,M,Z,q,X,R,F-R,d),X=V=q=0,R=F;for(var se=0;se<286;++se)M[se]=0;for(var se=0;se<30;++se)Z[se]=0}var $=2,Q=0,fe=f,me=B-ie&32767;if(oe>2&&Y==_(F-me))for(var C=Math.min(g,oe)-1,z=Math.min(32767,F),W=Math.min(258,oe);me<=z&&--fe&&B!=ie;){if(e[F+$]==e[F+$-me]){for(var ee=0;ee<W&&e[F+ee]==e[F+ee-me];++ee);if(ee>$){if($=ee,Q=me,ee>C)break;for(var ne=Math.min(me,ee-2),J=0,se=0;se<ne;++se){var ce=F-me+se&32767,pe=v[ce],ge=ce-pe&32767;ge>J&&(J=ge,ie=ce)}}}B=ie,ie=v[B],me+=B-ie&32767}if(Q){A[X++]=268435456|x2[$]<<18|ow[Q];var ve=x2[$]&31,ke=ow[Q]&31;q+=ov[ve]+av[ke],++M[257+ve],++Z[ke],P=F+$,++V}else A[X++]=e[F],++M[e[F]]}}for(F=Math.max(F,P);F<a;++F)A[X++]=e[F],++M[e[F]];d=sw(e,l,u,A,M,Z,q,X,R,F-R,d),u||(o.r=d&7|l[d/8|0]<<3,d-=7,o.h=x,o.p=v,o.i=F,o.w=P)}else{for(var F=o.w||0;F<a+u;F+=65535){var Ce=F+65535;Ce>=a&&(l[d/8|0]=u,Ce=a),d=JS(l,d+1,e.subarray(F,Ce))}o.i=a}return nI(s,0,r+QS(d)+i)},t6=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length|0,a=0;a!=o;){for(var s=Math.min(a+2655,o);a<s;++a)i+=r+=n[a];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},oI=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),a=new Wi(o.length+e.length);a.set(o),a.set(e,o.length),e=a,i.w=o.length}return iI(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},n6=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},aI=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=t6();i.p(t.dictionary),n6(e,2,i.d())}};function N2(e,t){t||(t={});var n=t6();n.p(e);var r=oI(e,t,t.dictionary?6:2,4);return aI(r,t),n6(r,r.length-4,n.d()),r}var sI=typeof TextDecoder<"u"&&new TextDecoder,lI=0;try{sI.decode(e6,{stream:!0}),lI=1}catch{}function uI(e){if(Array.isArray(e))return e}function cI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function lw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fI(e,t){if(e){if(typeof e=="string")return lw(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lw(e,t):void 0}}function dI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 169In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uw(e,t){return uI(e)||cI(e,t)||fI(e,t)||dI()}function cw(e,t="utf8"){return new TextDecoder(t).decode(e)}const hI=new TextEncoder;function pI(e){return hI.encode(e)}const mI=1024*8,gI=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),R0={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 sv{constructor(t=mI,n={}){zt(this,"buffer");zt(this,"byteLength");zt(this,"byteOffset");zt(this,"length");zt(this,"offset");zt(this,"lastWrittenByte");zt(this,"littleEndian");zt(this,"_data");zt(this,"_mark");zt(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const i=n.offset?n.offset>>>0:0,o=t.byteLength-i;let a=i;(ArrayBuffer.isView(t)||t instanceof sv)&&(t.byteLength!==t.buffer.byteLength&&(a=t.byteOffset+i),t=t.buffer),r?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 r=(this.offset+t)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,n){const r=R0[n].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,o=this.buffer.slice(i,i+r);if(this.littleEndian===gI&&n!=="uint8"&&n!=="int8"){const s=new Uint8Array(this.buffer.slice(i,i+r));s.reverse();const l=new R0[n](s.buffer);return this.offset+=r,l.reverse(),l}const a=new R0[n](o);return this.offset+=r,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 n="";for(let r=0;r<t;r++)n+=this.readChar();return n}readUtf8(t=1){return cw(this.readBytes(t))}decodeText(t=1,n="utf8"){return cw(this.readBytes(t),n)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let n=0;n<t.length;n++)this._data.setUint8(this.offset++,t[n]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let n=0;n<t.length;n++)this.writeUint8(t.charCodeAt(n));return this}writeUtf8(t){return this.writeBytes(pI(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 vI=4,fw=0,dw=1,yI=2;function Vu(e){let t=e.length;for(;--t>=0;)e[t]=0}
vendor: 46,439 bytes, line 169
169const wI=0,r6=1,bI=2,xI=3,_I=258,lv=29,Hf=256,Af=Hf+1+lv,fu=30,uv=19,i6=2*Af+1,Is=15,I0=16,SI=7,cv=256,o6=16,a6=17,s6=18,A2=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]),Ph=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]),NI=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l6=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),AI=512,qo=new Array((Af+2)*2);Vu(qo);const Xc=new Array(fu*2);Vu(Xc);const kf=new Array(AI);Vu(kf);const Ef=new Array(_I-xI+1);Vu(Ef);const fv=new Array(lv);Vu(fv);const yp=new Array(fu);Vu(yp);function O0(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let u6,c6,f6;function j0(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const d6=e=>e<256?kf[e]:kf[256+(e>>>7)],Lf=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Dr=(e,t,n)=>{e.bi_valid>I0-n?(e.bi_buf|=t<<e.bi_valid&65535,Lf(e,e.bi_buf),e.bi_buf=t>>I0-e.bi_valid,e.bi_valid+=n-I0):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},po=(e,t,n)=>{Dr(e,n[t*2],n[t*2+1])},h6=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},kI=e=>{e.bi_valid===16?(Lf(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)},EI=(e,t)=>{const n=t.dyn_tree,r=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 u,d,p,g,f,S,v=0;for(g=0;g<=Is;g++)e.bl_count[g]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<i6;u++)d=e.heap[u],g=n[n[d*2+1]*2+1]+1,g>l&&(g=l,v++),n[d*2+1]=g,!(d>r)&&(e.bl_count[g]++,f=0,d>=s&&(f=a[d-s]),S=n[d*2],e.opt_len+=S*(g+f),o&&(e.static_len+=S*(i[d*2+1]+f)));if(v!==0){do{for(g=l-1;e.bl_count[g]===0;)g--;e.bl_count[g]--,e.bl_count[g+1]+=2,e.bl_count[l]--,v-=2}while(v>0);for(g=l;g!==0;g--)for(d=e.bl_count[g];d!==0;)p=e.heap[--u],!(p>r)&&(n[p*2+1]!==g&&(e.opt_len+=(g-n[p*2+1])*n[p*2],n[p*2+1]=g),d--)}},p6=(e,t,n)=>{const r=new Array(Is+1);let i=0,o,a;for(o=1;o<=Is;o++)i=i+n[o-1]<<1,r[o]=i;for(a=0;a<=t;a++){let s=e[a*2+1];s!==0&&(e[a*2]=h6(r[s]++,s))}},LI=()=>{let e,t,n,r,i;const o=new Array(Is+1);for(n=0,r=0;r<lv-1;r++)for(fv[r]=n,e=0;e<1<<A2[r];e++)Ef[n++]=r;for(Ef[n-1]=r,i=0,r=0;r<16;r++)for(yp[r]=i,e=0;e<1<<Ph[r];e++)kf[i++]=r;for(i>>=7;r<fu;r++)for(yp[r]=i<<7,e=0;e<1<<Ph[r]-7;e++)kf[256+i++]=r;for(t=0;t<=Is;t++)o[t]=0;for(e=0;e<=143;)qo[e*2+1]=8,e++,o[8]++;for(;e<=255;)qo[e*2+1]=9,e++,o[9]++;for(;e<=279;)qo[e*2+1]=7,e++,o[7]++;for(;e<=287;)qo[e*2+1]=8,e++,o[8]++;for(p6(qo,Af+1,o),e=0;e<fu;e++)Xc[e*2+1]=5,Xc[e*2]=h6(e,5);u6=new O0(qo,A2,Hf+1,Af,Is),c6=new O0(Xc,Ph,0,fu,Is),f6=new O0(new Array(0),NI,0,uv,SI)},m6=e=>{let t;for(t=0;t<Af;t++)e.dyn_ltree[t*2]=0;for(t=0;t<fu;t++)e.dyn_dtree[t*2]=0;for(t=0;t<uv;t++)e.bl_tree[t*2]=0;e.dyn_ltree[cv*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},g6=e=>{e.bi_valid>8?Lf(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},hw=(e,t,n,r)=>{const i=t*2,o=n*2;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]},M0=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&hw(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!hw(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},pw=(e,t,n)=>{let r,i,o=0,a,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],r===0?po(e,i,t):(a=Ef[i],po(e,a+Hf+1,t),s=A2[a],s!==0&&(i-=fv[a],Dr(e,i,s)),r--,a=d6(r),po(e,a,n),s=Ph[a],s!==0&&(r-=yp[a],Dr(e,r,s)));while(o<e.sym_next);po(e,cv,t)},k2=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let a,s,l=-1,u;for(e.heap_len=0,e.heap_max=i6,a=0;a<o;a++)n[a*2]!==0?(e.heap[++e.heap_len]=l=a,e.depth[a]=0):n[a*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=l<2?++l:0,n[u*2]=1,e.depth[u]=0,e.opt_len--,i&&(e.static_len-=r[u*2+1]);for(t.max_code=l,a=e.heap_len>>1;a>=1;a--)M0(e,n,a);u=o;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],M0(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,n[u*2]=n[a*2]+n[s*2],e.depth[u]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,n[a*2+1]=n[s*2+1]=u,e.heap[1]=u++,M0(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],EI(e,t),p6(n,l,e.bl_count)},mw=(e,t,n)=>{let r,i=-1,o,a=t[0*2+1],s=0,l=7,u=4;for(a===0&&(l=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=a,a=t[(r+1)*2+1],!(++s<l&&o===a)&&(s<u?e.bl_tree[o*2]+=s:o!==0?(o!==i&&e.bl_tree[o*2]++,e.bl_tree[o6*2]++):s<=10?e.bl_tree[a6*2]++:e.bl_tree[s6*2]++,s=0,i=o,a===0?(l=138,u=3):o===a?(l=6,u=3):(l=7,u=4))},gw=(e,t,n)=>{let r,i=-1,o,a=t[0*2+1],s=0,l=7,u=4;for(a===0&&(l=138,u=3),r=0;r<=n;r++)if(o=a,a=t[(r+1)*2+1],!(++s<l&&o===a)){if(s<u)do po(e,o,e.bl_tree);while(--s!==0);else o!==0?(o!==i&&(po(e,o,e.bl_tree),s--),po(e,o6,e.bl_tree),Dr(e,s-3,2)):s<=10?(po(e,a6,e.bl_tree),Dr(e,s-3,3)):(po(e,s6,e.bl_tree),Dr(e,s-11,7));s=0,i=o,a===0?(l=138,u=3):o===a?(l=6,u=3):(l=7,u=4)}},CI=e=>{let t;for(mw(e,e.dyn_ltree,e.l_desc.max_code),mw(e,e.dyn_dtree,e.d_desc.max_code),k2(e,e.bl_desc),t=uv-1;t>=3&&e.bl_tree[l6[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},PI=(e,t,n,r)=>{let i;for(Dr(e,t-257,5),Dr(e,n-1,5),Dr(e,r-4,4),i=0;i<r;i++)Dr(e,e.bl_tree[l6[i]*2+1],3);gw(e,e.dyn_ltree,t-1),gw(e,e.dyn_dtree,n-1)},TI=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return fw;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return dw;for(n=32;n<Hf;n++)if(e.dyn_ltree[n*2]!==0)return dw;return fw};let vw=!1;const RI=e=>{vw||(LI(),vw=!0),e.l_desc=new j0(e.dyn_ltree,u6),e.d_desc=new j0(e.dyn_dtree,c6),e.bl_desc=new j0(e.bl_tree,f6),e.bi_buf=0,e.bi_valid=0,m6(e)},v6=(e,t,n,r)=>{Dr(e,(wI<<1)+(r?1:0),3),g6(e),Lf(e,n),Lf(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},II=e=>{Dr(e,r6<<1,3),po(e,cv,qo),kI(e)},OI=(e,t,n,r)=>{let i,o,a=0;e.level>0?(e.strm.data_type===yI&&(e.strm.data_type=TI(e)),k2(e,e.l_desc),k2(e,e.d_desc),a=CI(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&t!==-1?v6(e,t,n,r):e.strategy===vI||o===i?(Dr(e,(r6<<1)+(r?1:0),3),pw(e,qo,Xc)):(Dr(e,(bI<<1)+(r?1:0),3),PI(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),pw(e,e.dyn_ltree,e.dyn_dtree)),m6(e),r&&g6(e)},jI=(e,t,n)=>(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++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Ef[n]+Hf+1)*2]++,e.dyn_dtree[d6(t)*2]++),e.sym_next===e.sym_end);var MI=RI,FI=v6,DI=OI,BI=jI,zI=II,UI={_tr_init:MI,_tr_stored_block:FI,_tr_flush_block:DI,_tr_tally:BI,_tr_align:zI};const qI=(e,t,n,r)=>{let i=e&65535|0,o=e>>>16&65535|0,a=0;for(;n!==0;){a=n>2e3?2e3:n,n-=a;do i=i+t[r++]|0,o=o+i|0;while(--a);i%=65521,o%=65521}return i|o<<16|0};var Cf=qI;const $I=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},HI=new Uint32Array($I()),WI=(e,t,n,r)=>{const i=HI,o=r+n;e^=-1;for(let a=r;a<o;a++)e=e>>>8^i[(e^t[a])&255];return e^-1};var Wn=WI,Iu={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"},Wf={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:VI,_tr_stored_block:E2,_tr_flush_block:GI,_tr_tally:Ka,_tr_align:KI}=UI,{Z_NO_FLUSH:Ya,Z_PARTIAL_FLUSH:YI,Z_FULL_FLUSH:ZI,Z_FINISH:gi,Z_BLOCK:yw,Z_OK:nr,Z_STREAM_END:ww,Z_STREAM_ERROR:bo,Z_DATA_ERROR:XI,Z_BUF_ERROR:F0,Z_DEFAULT_COMPRESSION:QI,Z_FILTERED:JI,Z_HUFFMAN_ONLY:th,Z_RLE:eO,Z_FIXED:tO,Z_DEFAULT_STRATEGY:nO,Z_UNKNOWN:rO,Z_DEFLATED:n1}=Wf,iO=9,oO=15,aO=8,sO=29,lO=256,L2=lO+1+sO,uO=30,cO=19,fO=2*L2+1,dO=15,kt=3,Fa=258,xo=Fa+kt+1,hO=32,Ou=42,dv=57,C2=69,P2=73,T2=91,R2=103,Os=113,Mc=666,Lr=1,Gu=2,el=3,Ku=4,pO=3,js=(e,t)=>(e.msg=Iu[t],t),bw=e=>e*2-(e>4?9:0),La=e=>{let t=e.length;for(;--t>=0;)e[t]=0},mO=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)};let gO=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,Za=gO;const Xr=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},ni=(e,t)=>{GI(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Xr(e.strm)},Ft=(e,t)=>{e.pending_buf[e.pending++]=t},Pc=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},I2=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Cf(e.adler,t,i,n):e.state.wrap===2&&(e.adler=Wn(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},y6=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,o,a=e.prev_length,s=e.nice_match;const l=e.strstart>e.w_size-xo?e.strstart-(e.w_size-xo):0,u=e.window,d=e.w_mask,p=e.prev,g=e.strstart+Fa;let f=u[r+a-1],S=u[r+a];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,!(u[i+a]!==S||u[i+a-1]!==f||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&r<g);if(o=Fa-(g-r),r=g-Fa,o>a){if(e.match_start=t,a=o,o>=s)break;f=u[r+a-1],S=u[r+a]}}while((t=p[t&d])>l&&--n!==0);return a<=e.lookahead?a:e.lookahead},ju=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-xo)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),mO(e),r+=t),e.strm.avail_in===0)break;if(n=I2(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=kt)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Za(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Za(e,e.ins_h,e.window[i+kt-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<kt)););}while(e.lookahead<xo&&e.strm.avail_in!==0)},w6=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,o,a=0,s=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_out<o||(o=e.strm.avail_out-o,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>o&&(r=o),r<n&&(r===0&&t!==gi||t===Ya||r!==i+e.strm.avail_in)))break;a=t===gi&&r===i+e.strm.avail_in?1:0,E2(e,0,0,a),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Xr(e.strm),i&&(i>r&&(i=r),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,r-=i),r&&(I2(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}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?Ku:t!==Ya&&t!==gi&&e.strm.avail_in===0&&e.strstart===e.block_start?Gu:(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&&(I2(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,n=o>e.w_size?e.w_size:o,i=e.strstart-e.block_start,(i>=n||(i||t===gi)&&t!==Ya&&e.strm.avail_in===0&&i<=o)&&(r=i>o?o:i,a=t===gi&&e.strm.avail_in===0&&r===i?1:0,E2(e,e.block_start,r,a),e.block_start+=r,Xr(e.strm)),a?el:Lr)},D0=(e,t)=>{let n,r;for(;;){if(e.lookahead<xo){if(ju(e),e.lookahead<xo&&t===Ya)return Lr;if(e.lookahead===0)break}if(n=0,e.lookahead>=kt&&(e.ins_h=Za(e,e.ins_h,e.window[e.strstart+kt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-xo&&(e.match_length=y6(e,n)),e.match_length>=kt)if(r=Ka(e,e.strstart-e.match_start,e.match_length-kt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=kt){e.match_length--;do e.strstart++,e.ins_h=Za(e,e.ins_h,e.window[e.strstart+kt-1]),n=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=Za(e,e.ins_h,e.window[e.strstart+1]);else r=Ka(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(ni(e,!1),e.strm.avail_out===0))return Lr}return e.insert=e.strstart<kt-1?e.strstart:kt-1,t===gi?(ni(e,!0),e.strm.avail_out===0?el:Ku):e.sym_next&&(ni(e,!1),e.strm.avail_out===0)?Lr:Gu},Ml=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<xo){if(ju(e),e.lookahead<xo&&t===Ya)return Lr;if(e.lookahead===0)break}if(n=0,e.lookahead>=kt&&(e.ins_h=Za(e,e.ins_h,e.window[e.strstart+kt-1]),n=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=kt-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-xo&&(e.match_length=y6(e,n),e.match_length<=5&&(e.strategy===JI||e.match_length===kt&&e.strstart-e.match_start>4096)&&(e.match_length=kt-1)),e.prev_length>=kt&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-kt,r=Ka(e,e.strstart-1-e.prev_match,e.prev_length-kt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Za(e,e.ins_h,e.window[e.strstart+kt-1]),n=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=kt-1,e.strstart++,r&&(ni(e,!1),e.strm.avail_out===0))return Lr}else if(e.match_available){if(r=Ka(e,0,e.window[e.strstart-1]),r&&ni(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Lr}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Ka(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<kt-1?e.strstart:kt-1,t===gi?(ni(e,!0),e.strm.avail_out===0?el:Ku):e.sym_next&&(ni(e,!1),e.strm.avail_out===0)?Lr:Gu},vO=(e,t)=>{let n,r,i,o;const a=e.window;for(;;){if(e.lookahead<=Fa){if(ju(e),e.lookahead<=Fa&&t===Ya)return Lr;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=kt&&e.strstart>0&&(i=e.strstart-1,r=a[i],r===a[++i]&&r===a[++i]&&r===a[++i])){o=e.strstart+Fa;do;while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);e.match_length=Fa-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=kt?(n=Ka(e,1,e.match_length-kt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Ka(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ni(e,!1),e.strm.avail_out===0))return Lr}return e.insert=0,t===gi?(ni(e,!0),e.strm.avail_out===0?el:Ku):e.sym_next&&(ni(e,!1),e.strm.avail_out===0)?Lr:Gu},yO=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(ju(e),e.lookahead===0)){if(t===Ya)return Lr;break}if(e.match_length=0,n=Ka(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ni(e,!1),e.strm.avail_out===0))return Lr}return e.insert=0,t===gi?(ni(e,!0),e.strm.avail_out===0?el:Ku):e.sym_next&&(ni(e,!1),e.strm.avail_out===0)?Lr:Gu};function io(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const Fc=[new io(0,0,0,0,w6),new io(4,4,8,4,D0),new io(4,5,16,8,D0),new io(4,6,32,32,D0),new io(4,4,16,16,Ml),new io(8,16,32,32,Ml),new io(8,16,128,128,Ml),new io(8,32,128,256,Ml),new io(32,128,258,1024,Ml),new io(32,258,258,4096,Ml)],wO=e=>{e.window_size=2*e.w_size,La(e.head),e.max_lazy_match=Fc[e.level].max_lazy,e.good_match=Fc[e.level].good_length,e.nice_match=Fc[e.level].nice_length,e.max_chain_length=Fc[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=kt-1,e.match_available=0,e.ins_h=0};function bO(){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=n1,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(fO*2),this.dyn_dtree=new Uint16Array((2*uO+1)*2),this.bl_tree=new Uint16Array((2*cO+1)*2),La(this.dyn_ltree),La(this.dyn_dtree),La(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(dO+1),this.heap=new Uint16Array(2*L2+1),La(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L2+1),La(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 Vf=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Ou&&t.status!==dv&&t.status!==C2&&t.status!==P2&&t.status!==T2&&t.status!==R2&&t.status!==Os&&t.status!==Mc?1:0},b6=e=>{if(Vf(e))return js(e,bo);e.total_in=e.total_out=0,e.data_type=rO;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?dv:t.wrap?Ou:Os,e.adler=t.wrap===2?0:1,t.last_flush=-2,VI(t),nr},x6=e=>{const t=b6(e);return t===nr&&wO(e.state),t},xO=(e,t)=>Vf(e)||e.state.wrap!==2?bo:(e.state.gzhead=t,nr),_6=(e,t,n,r,i,o)=>{if(!e)return bo;let a=1;if(t===QI&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>iO||n!==n1||r<8||r>15||t<0||t>9||o<0||o>tO||r===8&&a!==1)return js(e,bo);r===8&&(r=9);const s=new bO;return e.state=s,s.strm=e,s.status=Ou,s.wrap=a,s.gzhead=null,s.w_bits=r,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+kt-1)/kt),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=n,x6(e)},_O=(e,t)=>_6(e,t,n1,oO,aO,nO),SO=(e,t)=>{if(Vf(e)||t>yw||t<0)return e?js(e,bo):bo;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===Mc&&t!==gi)return js(e,e.avail_out===0?F0:bo);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Xr(e),e.avail_out===0)return n.last_flush=-1,nr}else if(e.avail_in===0&&bw(t)<=bw(r)&&t!==gi)return js(e,F0);if(n.status===Mc&&e.avail_in!==0)return js(e,F0);if(n.status===Ou&&n.wrap===0&&(n.status=Os),n.status===Ou){let i=n1+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=th||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,i|=o<<6,n.strstart!==0&&(i|=hO),i+=31-i%31,Pc(n,i),n.strstart!==0&&(Pc(n,e.adler>>>16),Pc(n,e.adler&65535)),e.adler=1,n.status=Os,Xr(e),n.pending!==0)return n.last_flush=-1,nr}if(n.status===dv){if(e.adler=0,Ft(n,31),Ft(n,139),Ft(n,8),n.gzhead)Ft(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Ft(n,n.gzhead.time&255),Ft(n,n.gzhead.time>>8&255),Ft(n,n.gzhead.time>>16&255),Ft(n,n.gzhead.time>>24&255),Ft(n,n.level===9?2:n.strategy>=th||n.level<2?4:0),Ft(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Ft(n,n.gzhead.extra.length&255),Ft(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Wn(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=C2;else if(Ft(n,0),Ft(n,0),Ft(n,0),Ft(n,0),Ft(n,0),Ft(n,n.level===9?2:n.strategy>=th||n.level<2?4:0),Ft(n,pO),n.status=Os,Xr(e),n.pending!==0)return n.last_flush=-1,nr}if(n.status===C2){if(n.gzhead.extra){let i=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=s,Xr(e),n.pending!==0)return n.last_flush=-1,nr;i=0,o-=s}let a=new Uint8Array(n.gzhead.extra);n.pending_buf.set(a.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=P2}if(n.status===P2){if(n.gzhead.name){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i)),Xr(e),n.pending!==0)return n.last_flush=-1,nr;i=0}n.gzindex<n.gzhead.name.length?o=n.gzhead.name.charCodeAt(n.gzindex++)&255:o=0,Ft(n,o)}while(o!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=T2}if(n.status===T2){if(n.gzhead.comment){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i)),Xr(e),n.pending!==0)return n.last_flush=-1,nr;i=0}n.gzindex<n.gzhead.comment.length?o=n.gzhead.comment.charCodeAt(n.gzindex++)&255:o=0,Ft(n,o)}while(o!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Wn(e.adler,n.pending_buf,n.pending-i,i))}n.status=R2}if(n.status===R2){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Xr(e),n.pending!==0))return n.last_flush=-1,nr;Ft(n,e.adler&255),Ft(n,e.adler>>8&255),e.adler=0}if(n.status=Os,Xr(e),n.pending!==0)return n.last_flush=-1,nr}if(e.avail_in!==0||n.lookahead!==0||t!==Ya&&n.status!==Mc){let i=n.level===0?w6(n,t):n.strategy===th?yO(n,t):n.strategy===eO?vO(n,t):Fc[n.level].func(n,t);if((i===el||i===Ku)&&(n.status=Mc),i===Lr||i===el)return e.avail_out===0&&(n.last_flush=-1),nr;if(i===Gu&&(t===YI?KI(n):t!==yw&&(E2(n,0,0,!1),t===ZI&&(La(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Xr(e),e.avail_out===0))return n.last_flush=-1,nr}return t!==gi?nr:n.wrap<=0?ww:(n.wrap===2?(Ft(n,e.adler&255),Ft(n,e.adler>>8&255),Ft(n,e.adler>>16&255),Ft(n,e.adler>>24&255),Ft(n,e.total_in&255),Ft(n,e.total_in>>8&255),Ft(n,e.total_in>>16&255),Ft(n,e.total_in>>24&255)):(Pc(n,e.adler>>>16),Pc(n,e.adler&65535)),Xr(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?nr:ww)},NO=e=>{if(Vf(e))return bo;const t=e.state.status;return e.state=null,t===Os?js(e,XI):nr},AO=(e,t)=>{let n=t.length;if(Vf(e))return bo;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==Ou||r.lookahead)return bo;if(i===1&&(e.adler=Cf(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(La(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(n-r.w_size,n),0),t=l,n=r.w_size}const o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,ju(r);r.lookahead>=kt;){let l=r.strstart,u=r.lookahead-(kt-1);do r.ins_h=Za(r,r.ins_h,r.window[l+kt-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--u);r.strstart=l,r.lookahead=kt-1,ju(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=kt-1,r.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,r.wrap=i,nr};var kO=_O,EO=_6,LO=x6,CO=b6,PO=xO,TO=SO,RO=NO,IO=AO,OO="pako deflate (from Nodeca project)",Qc={deflateInit:kO,deflateInit2:EO,deflateReset:LO,deflateResetKeep:CO,deflateSetHeader:PO,deflate:TO,deflateEnd:RO,deflateSetDictionary:IO,deflateInfo:OO};const jO=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var MO=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)jO(n,r)&&(e[r]=n[r])}}return e},FO=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,o=e.length;r<o;r++){let a=e[r];n.set(a,i),i+=a.length}return n},r1={assign:MO,flattenChunks:FO};let S6=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{S6=!1}const Pf=new Uint8Array(256);for(let e=0;e<256;e++)Pf[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Pf[254]=Pf[254]=1;var DO=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,o,a=e.length,s=0;for(i=0;i<a;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<a&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),o=0,i=0;o<s;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<a&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t};const BO=(e,t)=>{if(t<65534&&e.subarray&&S6)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var zO=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const o=new Array(n*2);for(i=0,r=0;r<n;){let a=e[r++];if(a<128){o[i++]=a;continue}let s=Pf[a];if(s>4){o[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<n;)a=a<<6|e[r++]&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 BO(o,i)},UO=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Pf[e[n]]>t?n:t},Tf={string2buf:DO,buf2string:zO,utf8border:UO};function qO(){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 N6=qO;const A6=Object.prototype.toString,{Z_NO_FLUSH:$O,Z_SYNC_FLUSH:HO,Z_FULL_FLUSH:WO,Z_FINISH:VO,Z_OK:wp,Z_STREAM_END:GO,Z_DEFAULT_COMPRESSION:KO,Z_DEFAULT_STRATEGY:YO,Z_DEFLATED:ZO}=Wf;function hv(e){this.options=r1.assign({level:KO,method:ZO,chunkSize:16384,windowBits:15,memLevel:8,strategy:YO},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 N6,this.strm.avail_out=0;let n=Qc.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==wp)throw new Error(Iu[n]);if(t.header&&Qc.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Tf.string2buf(t.dictionary):A6.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Qc.deflateSetDictionary(this.strm,r),n!==wp)throw new Error(Iu[n]);this._dict_set=!0}}hv.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?VO:$O,typeof e=="string"?n.input=Tf.string2buf(e):A6.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===HO||o===WO)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Qc.deflate(n,o),i===GO)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Qc.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===wp;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};hv.prototype.onData=function(e){this.chunks.push(e)};hv.prototype.onEnd=function(e){e===wp&&(this.result=r1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const nh=16209,XO=16191;var QO=function(t,n){let r,i,o,a,s,l,u,d,p,g,f,S,v,x,y,b,_,A,M,Z,V,q,F,X;const P=t.state;r=t.next_in,F=t.input,i=r+(t.avail_in-5),o=t.next_out,X=t.output,a=o-(n-t.avail_out),s=o+(t.avail_out-257),l=P.dmax,u=P.wsize,d=P.whave,p=P.wnext,g=P.window,f=P.hold,S=P.bits,v=P.lencode,x=P.distcode,y=(1<<P.lenbits)-1,b=(1<<P.distbits)-1;e:do{S<15&&(f+=F[r++]<<S,S+=8,f+=F[r++]<<S,S+=8),_=v[f&y];t:for(;;){if(A=_>>>24,f>>>=A,S-=A,A=_>>>16&255,A===0)X[o++]=_&65535;else if(A&16){M=_&65535,A&=15,A&&(S<A&&(f+=F[r++]<<S,S+=8),M+=f&(1<<A)-1,f>>>=A,S-=A),S<15&&(f+=F[r++]<<S,S+=8,f+=F[r++]<<S,S+=8),_=x[f&b];n:for(;;){if(A=_>>>24,f>>>=A,S-=A,A=_>>>16&255,A&16){if(Z=_&65535,A&=15,S<A&&(f+=F[r++]<<S,S+=8,S<A&&(f+=F[r++]<<S,S+=8)),Z+=f&(1<<A)-1,Z>l){t.msg="invalid distance too far back",P.mode=nh;break e}if(f>>>=A,S-=A,A=o-a,Z>A){if(A=Z-A,A>d&&P.sane){t.msg="invalid distance too far back",P.mode=nh;break e}if(V=0,q=g,p===0){if(V+=u-A,A<M){M-=A;do X[o++]=g[V++];while(--A);V=o-Z,q=X}}else if(p<A){if(V+=u+p-A,A-=p,A<M){M-=A;do X[o++]=g[V++];while(--A);if(V=0,p<M){A=p,M-=A;do X[o++]=g[V++];while(--A);V=o-Z,q=X}}}else if(V+=p-A,A<M){M-=A;do X[o++]=g[V++];while(--A);V=o-Z,q=X}for(;M>2;)X[o++]=q[V++],X[o++]=q[V++],X[o++]=q[V++],M-=3;M&&(X[o++]=q[V++],M>1&&(X[o++]=q[V++]))}else{V=o-Z;do X[o++]=X[V++],X[o++]=X[V++],X[o++]=X[V++],M-=3;while(M>2);M&&(X[o++]=X[V++],M>1&&(X[o++]=X[V++]))}}else if(A&64){t.msg="invalid distance code",P.mode=nh;break e}else{_=x[(_&65535)+(f&(1<<A)-1)];continue n}break}}else if(A&64)if(A&32){P.mode=XO;break e}else{t.msg="invalid literal/length code",P.mode=nh;break e}else{_=v[(_&65535)+(f&(1<<A)-1)];continue t}break}}while(r<i&&o<s);M=S>>3,r-=M,S-=M<<3,f&=(1<<S)-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=o<s?257+(s-o):257-(o-s),P.hold=f,P.bits=S};const Fl=15,xw=852,_w=592,Sw=0,B0=1,Nw=2,JO=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]),ej=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]),tj=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]),nj=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]),rj=(e,t,n,r,i,o,a,s)=>{const l=s.bits;let u=0,d=0,p=0,g=0,f=0,S=0,v=0,x=0,y=0,b=0,_,A,M,Z,V,q=null,F;const X=new Uint16Array(Fl+1),P=new Uint16Array(Fl+1);let R=null,Y,B,ie;for(u=0;u<=Fl;u++)X[u]=0;for(d=0;d<r;d++)X[t[n+d]]++;for(f=l,g=Fl;g>=1&&X[g]===0;g--);if(f>g&&(f=g),g===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,s.bits=1,0;for(p=1;p<g&&X[p]===0;p++);for(f<p&&(f=p),x=1,u=1;u<=Fl;u++)if(x<<=1,x-=X[u],x<0)return-1;if(x>0&&(e===Sw||g!==1))return-1;for(P[1]=0,u=1;u<Fl;u++)P[u+1]=P[u]+X[u];for(d=0;d<r;d++)t[n+d]!==0&&(a[P[t[n+d]]++]=d);if(e===Sw?(q=R=a,F=20):e===B0?(q=JO,R=ej,F=257):(q=tj,R=nj,F=0),b=0,d=0,u=p,V=o,S=f,v=0,M=-1,y=1<<f,Z=y-1,e===B0&&y>xw||e===Nw&&y>_w)return 1;for(;;){Y=u-v,a[d]+1<F?(B=0,ie=a[d]):a[d]>=F?(B=R[a[d]-F],ie=q[a[d]-F]):(B=96,ie=0),_=1<<u-v,A=1<<S,p=A;do A-=_,i[V+(b>>v)+A]=Y<<24|B<<16|ie|0;while(A!==0);for(_=1<<u-1;b&_;)_>>=1;if(_!==0?(b&=_-1,b+=_):b=0,d++,--X[u]===0){if(u===g)break;u=t[n+a[d]]}if(u>f&&(b&Z)!==M){for(v===0&&(v=f),V+=p,S=u-v,x=1<<S;S+v<g&&(x-=X[S+v],!(x<=0));)S++,x<<=1;if(y+=1<<S,e===B0&&y>xw||e===Nw&&y>_w)return 1;M=b&Z,i[M]=f<<24|S<<16|V-o|0}}return b!==0&&(i[V+b]=u-v<<24|64<<16|0),s.bits=f,0};var Jc=rj;const ij=0,k6=1,E6=2,{Z_FINISH:Aw,Z_BLOCK:oj,Z_TREES:rh,Z_OK:tl,Z_STREAM_END:aj,Z_NEED_DICT:sj,Z_STREAM_ERROR:xi,Z_DATA_ERROR:L6,Z_MEM_ERROR:C6,Z_BUF_ERROR:lj,Z_DEFLATED:kw}=Wf,i1=16180,Ew=16181,Lw=16182,Cw=16183,Pw=16184,Tw=16185,Rw=16186,Iw=16187,Ow=16188,jw=16189,bp=16190,Do=16191,z0=16192,Mw=16193,U0=16194,Fw=16195,Dw=16196,Bw=16197,zw=16198,ih=16199,oh=16200,Uw=16201,qw=16202,$w=16203,Hw=16204,Ww=16205,q0=16206,Vw=16207,Gw=16208,cn=16209,P6=16210,T6=16211,uj=852,cj=592,fj=15,dj=fj,Kw=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function hj(){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 ll=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<i1||t.mode>T6?1:0},R6=e=>{if(ll(e))return xi;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=i1,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(uj),t.distcode=t.distdyn=new Int32Array(cj),t.sane=1,t.back=-1,tl},I6=e=>{if(ll(e))return xi;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,R6(e)},O6=(e,t)=>{let n;if(ll(e))return xi;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?xi:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,I6(e))},j6=(e,t)=>{if(!e)return xi;const n=new hj;e.state=n,n.strm=e,n.window=null,n.mode=i1;const r=O6(e,t);return r!==tl&&(e.state=null),r},pj=e=>j6(e,dj);let Yw=!0,$0,H0;const mj=e=>{if(Yw){$0=new Int32Array(512),H0=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(Jc(k6,e.lens,0,288,$0,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Jc(E6,e.lens,0,32,H0,0,e.work,{bits:5}),Yw=!1}e.lencode=$0,e.lenbits=9,e.distcode=H0,e.distbits=5},M6=(e,t,n,r)=>{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)),r>=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),r-=i,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0},gj=(e,t)=>{let n,r,i,o,a,s,l,u,d,p,g,f,S,v,x=0,y,b,_,A,M,Z,V,q;const F=new Uint8Array(4);let X,P;const R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ll(e)||!e.output||!e.input&&e.avail_in!==0)return xi;n=e.state,n.mode===Do&&(n.mode=z0),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,p=s,g=l,q=tl;e:for(;;)switch(n.mode){case i1:if(n.wrap===0){n.mode=z0;break}for(;d<16;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}if(n.wrap&2&&u===35615){n.wbits===0&&(n.wbits=15),n.check=0,F[0]=u&255,F[1]=u>>>8&255,n.check=Wn(n.check,F,2,0),u=0,d=0,n.mode=Ew;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=cn;break}if((u&15)!==kw){e.msg="unknown compression method",n.mode=cn;break}if(u>>>=4,d-=4,V=(u&15)+8,n.wbits===0&&(n.wbits=V),V>15||V>n.wbits){e.msg="invalid window size",n.mode=cn;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=u&512?jw:Do,u=0,d=0;break;case Ew:for(;d<16;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}if(n.flags=u,(n.flags&255)!==kw){e.msg="unknown compression method",n.mode=cn;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=cn;break}n.head&&(n.head.text=u>>8&1),n.flags&512&&n.wrap&4&&(F[0]=u&255,F[1]=u>>>8&255,n.check=Wn(n.check,F,2,0)),u=0,d=0,n.mode=Lw;case Lw:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}n.head&&(n.head.time=u),n.flags&512&&n.wrap&4&&(F[0]=u&255,F[1]=u>>>8&255,F[2]=u>>>16&255,F[3]=u>>>24&255,n.check=Wn(n.check,F,4,0)),u=0,d=0,n.mode=Cw;case Cw:for(;d<16;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}n.head&&(n.head.xflags=u&255,n.head.os=u>>8),n.flags&512&&n.wrap&4&&(F[0]=u&255,F[1]=u>>>8&255,n.check=Wn(n.check,F,2,0)),u=0,d=0,n.mode=Pw;case Pw:if(n.flags&1024){for(;d<16;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}n.length=u,n.head&&(n.head.extra_len=u),n.flags&512&&n.wrap&4&&(F[0]=u&255,F[1]=u>>>8&255,n.check=Wn(n.check,F,2,0)),u=0,d=0}else n.head&&(n.head.extra=null);n.mode=Tw;case Tw:if(n.flags&1024&&(f=n.length,f>s&&(f=s),f&&(n.head&&(V=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+f),V)),n.flags&512&&n.wrap&4&&(n.check=Wn(n.check,r,f,o)),s-=f,o+=f,n.length-=f),n.length))break e;n.length=0,n.mode=Rw;case Rw:if(n.flags&2048){if(s===0)break e;f=0;do V=r[o+f++],n.head&&V&&n.length<65536&&(n.head.name+=String.fromCharCode(V));while(V&&f<s);if(n.flags&512&&n.wrap&4&&(n.check=Wn(n.check,r,f,o)),s-=f,o+=f,V)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Iw;case Iw:if(n.flags&4096){if(s===0)break e;f=0;do V=r[o+f++],n.head&&V&&n.length<65536&&(n.head.comment+=String.fromCharCode(V));while(V&&f<s);if(n.flags&512&&n.wrap&4&&(n.check=Wn(n.check,r,f,o)),s-=f,o+=f,V)break e}else n.head&&(n.head.comment=null);n.mode=Ow;case Ow:if(n.flags&512){for(;d<16;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}if(n.wrap&4&&u!==(n.check&65535)){e.msg="header crc mismatch",n.mode=cn;break}u=0,d=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Do;break;case jw:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}e.adler=n.check=Kw(u),u=0,d=0,n.mode=bp;case bp:if(n.havedict===0)return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=d,sj;e.adler=n.check=1,n.mode=Do;case Do:if(t===oj||t===rh)break e;case z0:if(n.last){u>>>=d&7,d-=d&7,n.mode=q0;break}for(;d<3;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}switch(n.last=u&1,u>>>=1,d-=1,u&3){case 0:n.mode=Mw;break;case 1:if(mj(n),n.mode=ih,t===rh){u>>>=2,d-=2;break e}break;case 2:n.mode=Dw;break;case 3:e.msg="invalid block type",n.mode=cn}u>>>=2,d-=2;break;case Mw:for(u>>>=d&7,d-=d&7;d<32;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=cn;break}if(n.length=u&65535,u=0,d=0,n.mode=U0,t===rh)break e;case U0:n.mode=Fw;case Fw:if(f=n.length,f){if(f>s&&(f=s),f>l&&(f=l),f===0)break e;i.set(r.subarray(o,o+f),a),s-=f,o+=f,l-=f,a+=f,n.length-=f;break}n.mode=Do;break;case Dw:for(;d<14;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}if(n.nlen=(u&31)+257,u>>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=cn;break}n.have=0,n.mode=Bw;case Bw:for(;n.have<n.ncode;){for(;d<3;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}n.lens[R[n.have++]]=u&7,u>>>=3,d-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,X={bits:n.lenbits},q=Jc(ij,n.lens,0,19,n.lencode,0,n.work,X),n.lenbits=X.bits,q){e.msg="invalid code lengths set",n.mode=cn;break}n.have=0,n.mode=zw;case zw:for(;n.have<n.nlen+n.ndist;){for(;x=n.lencode[u&(1<<n.lenbits)-1],y=x>>>24,b=x>>>16&255,_=x&65535,!(y<=d);){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}if(_<16)u>>>=y,d-=y,n.lens[n.have++]=_;else{if(_===16){for(P=y+2;d<P;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}if(u>>>=y,d-=y,n.have===0){e.msg="invalid bit length repeat",n.mode=cn;break}V=n.lens[n.have-1],f=3+(u&3),u>>>=2,d-=2}else if(_===17){for(P=y+3;d<P;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}u>>>=y,d-=y,V=0,f=3+(u&7),u>>>=3,d-=3}else{for(P=y+7;d<P;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}u>>>=y,d-=y,V=0,f=11+(u&127),u>>>=7,d-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=cn;break}for(;f--;)n.lens[n.have++]=V}}if(n.mode===cn)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=cn;break}if(n.lenbits=9,X={bits:n.lenbits},q=Jc(k6,n.lens,0,n.nlen,n.lencode,0,n.work,X),n.lenbits=X.bits,q){e.msg="invalid literal/lengths set",n.mode=cn;break}if(n.distbits=6,n.distcode=n.distdyn,X={bits:n.distbits},q=Jc(E6,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,X),n.distbits=X.bits,q){e.msg="invalid distances set",n.mode=cn;break}if(n.mode=ih,t===rh)break e;case ih:n.mode=oh;case oh:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=d,QO(e,g),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,n.mode===Do&&(n.back=-1);break}for(n.back=0;x=n.lencode[u&(1<<n.lenbits)-1],y=x>>>24,b=x>>>16&255,_=x&65535,!(y<=d);){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}if(b&&!(b&240)){for(A=y,M=b,Z=_;x=n.lencode[Z+((u&(1<<A+M)-1)>>A)],y=x>>>24,b=x>>>16&255,_=x&65535,!(A+y<=d);){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}u>>>=A,d-=A,n.back+=A}if(u>>>=y,d-=y,n.back+=y,n.length=_,b===0){n.mode=Ww;break}if(b&32){n.back=-1,n.mode=Do;break}if(b&64){e.msg="invalid literal/length code",n.mode=cn;break}n.extra=b&15,n.mode=Uw;case Uw:if(n.extra){for(P=n.extra;d<P;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=qw;case qw:for(;x=n.distcode[u&(1<<n.distbits)-1],y=x>>>24,b=x>>>16&255,_=x&65535,!(y<=d);){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}if(!(b&240)){for(A=y,M=b,Z=_;x=n.distcode[Z+((u&(1<<A+M)-1)>>A)],y=x>>>24,b=x>>>16&255,_=x&65535,!(A+y<=d);){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}u>>>=A,d-=A,n.back+=A}if(u>>>=y,d-=y,n.back+=y,b&64){e.msg="invalid distance code",n.mode=cn;break}n.offset=_,n.extra=b&15,n.mode=$w;case $w:if(n.extra){for(P=n.extra;d<P;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=cn;break}n.mode=Hw;case Hw:if(l===0)break e;if(f=g-l,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=cn;break}f>n.wnext?(f-=n.wnext,S=n.wsize-f):S=n.wnext-f,f>n.length&&(f=n.length),v=n.window}else v=i,S=a-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do i[a++]=v[S++];while(--f);n.length===0&&(n.mode=oh);break;case Ww:if(l===0)break e;i[a++]=n.length,l--,n.mode=oh;break;case q0:if(n.wrap){for(;d<32;){if(s===0)break e;s--,u|=r[o++]<<d,d+=8}if(g-=l,e.total_out+=g,n.total+=g,n.wrap&4&&g&&(e.adler=n.check=n.flags?Wn(n.check,i,g,a-g):Cf(n.check,i,g,a-g)),g=l,n.wrap&4&&(n.flags?u:Kw(u))!==n.check){e.msg="incorrect data check",n.mode=cn;break}u=0,d=0}n.mode=Vw;case Vw:if(n.wrap&&n.flags){for(;d<32;){if(s===0)break e;s--,u+=r[o++]<<d,d+=8}if(n.wrap&4&&u!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=cn;break}u=0,d=0}n.mode=Gw;case Gw:q=aj;break e;case cn:q=L6;break e;case P6:return C6;case T6:default:return xi}return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=d,(n.wsize||g!==e.avail_out&&n.mode<cn&&(n.mode<q0||t!==Aw))&&M6(e,e.output,e.next_out,g-e.avail_out),p-=e.avail_in,g-=e.avail_out,e.total_in+=p,e.total_out+=g,n.total+=g,n.wrap&4&&g&&(e.adler=n.check=n.flags?Wn(n.check,i,g,e.next_out-g):Cf(n.check,i,g,e.next_out-g)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Do?128:0)+(n.mode===ih||n.mode===U0?256:0),(p===0&&g===0||t===Aw)&&q===tl&&(q=lj),q},vj=e=>{if(ll(e))return xi;let t=e.state;return t.window&&(t.window=null),e.state=null,tl},yj=(e,t)=>{if(ll(e))return xi;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,tl):xi},wj=(e,t)=>{const n=t.length;let r,i,o;return ll(e)||(r=e.state,r.wrap!==0&&r.mode!==bp)?xi:r.mode===bp&&(i=1,i=Cf(i,t,n,0),i!==r.check)?L6:(o=M6(e,t,n,n),o?(r.mode=P6,C6):(r.havedict=1,tl))};var bj=I6,xj=O6,_j=R6,Sj=pj,Nj=j6,Aj=gj,kj=vj,Ej=yj,Lj=wj,Cj="pako inflate (from Nodeca project)",$o={inflateReset:bj,inflateReset2:xj,inflateResetKeep:_j,inflateInit:Sj,inflateInit2:Nj,inflate:Aj,inflateEnd:kj,inflateGetHeader:Ej,inflateSetDictionary:Lj,inflateInfo:Cj};function Pj(){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 Tj=Pj;const F6=Object.prototype.toString,{Z_NO_FLUSH:Rj,Z_FINISH:Ij,Z_OK:Rf,Z_STREAM_END:W0,Z_NEED_DICT:V0,Z_STREAM_ERROR:Oj,Z_DATA_ERROR:Zw,Z_MEM_ERROR:jj}=Wf;function Gf(e){this.options=r1.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 N6,this.strm.avail_out=0;let n=$o.inflateInit2(this.strm,t.windowBits);if(n!==Rf)throw new Error(Iu[n]);if(this.header=new Tj,$o.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Tf.string2buf(t.dictionary):F6.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=$o.inflateSetDictionary(this.strm,t.dictionary),n!==Rf)))throw new Error(Iu[n])}Gf.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?Ij:Rj,F6.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=$o.inflate(n,a),o===V0&&i&&(o=$o.inflateSetDictionary(n,i),o===Rf?o=$o.inflate(n,a):o===Zw&&(o=V0));n.avail_in>0&&o===W0&&n.state.wrap>0&&e[n.next_in]!==0;)$o.inflateReset(n),o=$o.inflate(n,a);switch(o){case Oj:case Zw:case V0:case jj:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||o===W0))if(this.options.to==="string"){let l=Tf.utf8border(n.output,n.next_out),u=n.next_out-l,d=Tf.buf2
vendor: 9,507 bytes, line 169
169string(n.output,l);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(l,l+u),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===Rf&&s===0)){if(o===W0)return o=$o.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Gf.prototype.onData=function(e){this.chunks.push(e)};Gf.prototype.onEnd=function(e){e===Rf&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=r1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function pv(e,t){const n=new Gf(t);if(n.push(e),n.err)throw n.msg||Iu[n.err];return n.result}function Mj(e,t){return t=t||{},t.raw=!0,pv(e,t)}var Fj=Gf,Dj=pv,Bj=Mj,zj=pv,Uj=Wf,qj={Inflate:Fj,inflate:Dj,inflateRaw:Bj,ungzip:zj,constants:Uj};const{Inflate:$j,inflate:Hj,inflateRaw:v9,ungzip:y9}=qj;var Xw=$j,Wj=Hj;const D6=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;D6[e]=t}const Qw=4294967295;function Vj(e,t,n){let r=e;for(let i=0;i<n;i++)r=D6[(r^t[i])&255]^r>>>8;return r}function Gj(e,t){return(Vj(Qw,e,t)^Qw)>>>0}function Jw(e,t,n){const r=e.readUint32(),i=Gj(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function B6(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function z6(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function U6(e,t,n,r){let i=0;if(n.length===0)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function q6(e,t,n,r,i){let o=0;if(n.length===0){for(;o<i;o++)t[o]=e[o];for(;o<r;o++)t[o]=e[o]+(t[o-i]>>1)&255}else{for(;o<i;o++)t[o]=e[o]+(n[o]>>1)&255;for(;o<r;o++)t[o]=e[o]+(t[o-i]+n[o]>>1)&255}}function $6(e,t,n,r,i){let o=0;if(n.length===0){for(;o<i;o++)t[o]=e[o];for(;o<r;o++)t[o]=e[o]+t[o-i]&255}else{for(;o<i;o++)t[o]=e[o]+n[o]&255;for(;o<r;o++)t[o]=e[o]+Kj(t[o-i],n[o],n[o-i])&255}}function Kj(e,t,n){const r=e+t-n,i=Math.abs(r-e),o=Math.abs(r-t),a=Math.abs(r-n);return i<=o&&i<=a?e:o<=a?t:n}function Yj(e,t,n,r,i,o){switch(e){case 0:B6(t,n,i);break;case 1:z6(t,n,i,o);break;case 2:U6(t,n,r,i);break;case 3:q6(t,n,r,i,o);break;case 4:$6(t,n,r,i,o);break;default:throw new Error(`Unsupported filter: ${e}`)}}const Zj=new Uint16Array([255]),Xj=new Uint8Array(Zj.buffer),Qj=Xj[0]===255;function Jj(e){const{data:t,width:n,height:r,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(r*n*s);let u=0;for(let d=0;d<7;d++){const p=a[d],g=Math.ceil((n-p.x)/p.xStep),f=Math.ceil((r-p.y)/p.yStep);if(g<=0||f<=0)continue;const S=g*s,v=new Uint8Array(S);for(let x=0;x<f;x++){const y=t[u++],b=t.subarray(u,u+S);u+=S;const _=new Uint8Array(S);Yj(y,b,_,v,S,s),v.set(_);for(let A=0;A<g;A++){const M=p.x+A*p.xStep,Z=p.y+x*p.yStep;if(!(M>=n||Z>=r))for(let V=0;V<s;V++)l[(Z*n+M)*s+V]=_[A*s+V]}}}if(o===16){const d=new Uint16Array(l.buffer);if(Qj)for(let p=0;p<d.length;p++)d[p]=eM(d[p]);return d}else return l}function eM(e){return(e&255)<<8|e>>8&255}const tM=new Uint16Array([255]),nM=new Uint8Array(tM.buffer),rM=nM[0]===255,iM=new Uint8Array(0);function eb(e){const{data:t,width:n,height:r,channels:i,depth:o}=e,a=Math.ceil(o/8)*i,s=Math.ceil(o/8*i*n),l=new Uint8Array(r*s);let u=iM,d=0,p,g;for(let f=0;f<r;f++){switch(p=t.subarray(d+1,d+1+s),g=l.subarray(f*s,(f+1)*s),t[d]){case 0:B6(p,g,s);break;case 1:z6(p,g,s,a);break;case 2:U6(p,g,u,s);break;case 3:q6(p,g,u,s,a);break;case 4:$6(p,g,u,s,a);break;default:throw new Error(`Unsupported filter: ${t[d]}`)}u=g,d+=s+1}if(o===16){const f=new Uint16Array(l.buffer);if(rM)for(let S=0;S<f.length;S++)f[S]=oM(f[S]);return f}else return l}function oM(e){return(e&255)<<8|e>>8&255}const Th=Uint8Array.of(137,80,78,71,13,10,26,10);function tb(e){if(!aM(e.readBytes(Th.length)))throw new Error("wrong PNG signature")}function aM(e){if(e.length<Th.length)return!1;for(let t=0;t<Th.length;t++)if(e[t]!==Th[t])return!1;return!0}const sM="tEXt",lM=0,H6=new TextDecoder("latin1");function uM(e){if(fM(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const cM=/^[\u0000-\u00FF]*$/;function fM(e){if(!cM.test(e))throw new Error("invalid latin1 text")}function dM(e,t,n){const r=W6(t);e[r]=hM(t,n-r.length-1)}function W6(e){for(e.mark();e.readByte()!==lM;);const t=e.offset;e.reset();const n=H6.decode(e.readBytes(t-e.offset-1));return e.skip(1),uM(n),n}function hM(e,t){return H6.decode(e.readBytes(t))}const Zr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},G0={UNKNOWN:-1,DEFLATE:0},nb={UNKNOWN:-1,ADAPTIVE:0},K0={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},ah={NONE:0,BACKGROUND:1,PREVIOUS:2},Y0={SOURCE:0,OVER:1};class pM extends sv{constructor(n,r={}){super(n);zt(this,"_checkCrc");zt(this,"_inflator");zt(this,"_png");zt(this,"_apng");zt(this,"_end");zt(this,"_hasPalette");zt(this,"_palette");zt(this,"_hasTransparency");zt(this,"_transparency");zt(this,"_compressionMethod");zt(this,"_filterMethod");zt(this,"_interlaceMethod");zt(this,"_colorType");zt(this,"_isAnimated");zt(this,"_numberOfFrames");zt(this,"_numberOfPlays");zt(this,"_frames");zt(this,"_writingDataChunks");const{checkCrc:i=!1}=r;this._checkCrc=i,this._inflator=new Xw,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=G0.UNKNOWN,this._filterMethod=nb.UNKNOWN,this._interlaceMethod=K0.UNKNOWN,this._colorType=Zr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(tb(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeChunk(n,r)}return this.decodeImage(),this._png}decodeApng(){for(tb(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(n,r)}return this.decodeApngImage(),this._apng}decodeChunk(n,r){const i=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case sM:dM(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Jw(this,n+4,r):this.skip(4)}decodeApngChunk(n,r){const i=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,r),this.offset=i+n;break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Jw(this,n+4,r):this.skip(4)}decodeIHDR(){const n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=mM(this.readUint8());const r=this.readUint8();this._colorType=r;let i;switch(r){case Zr.GREYSCALE:i=1;break;case Zr.TRUECOLOUR:i=3;break;case Zr.INDEXED_COLOUR:i=1;break;case Zr.GREYSCALE_ALPHA:i=2;break;case Zr.TRUECOLOUR_ALPHA:i=4;break;case Zr.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==G0.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);const r=n/3;this._hasPalette=!0;const i=[];this._palette=i;for(let o=0;o<r;o++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;const r=n,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let r=n,i=this.offset+this.byteOffset;if(i+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case Zr.GREYSCALE:case Zr.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let r=0;r<n/2;r++)this._transparency[r]=this.readUint16();break}case Zr.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alph
169a values than there are palette colors (${n} vs ${this._palette.length})`);let r=0;for(;r<n;r++){const i=this.readByte();this._palette[r].push(i)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case Zr.UNKNOWN:case Zr.GREYSCALE_ALPHA:case Zr.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){const r=W6(this),i=this.readUint8();if(i!==G0.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const o=this.readBytes(n-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:Wj(o)}}decodepHYs(){const n=this.readUint32(),r=this.readUint32(),i=this.readByte();this._png.resolution={x:n,y:r,unit:i}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){const r={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},i=this._frames.at(n);if(i){if(i.data=eb({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)r.data=i.data;else{const o=this._apng.frames.at(n-1);this.disposeFrame(i,o,r),this.addFrameDataToCanvas(r,i)}this._apng.frames.push(r)}}return this._apng}disposeFrame(n,r,i){switch(n.disposeOp){case ah.NONE:break;case ah.BACKGROUND:for(let o=0;o<this._png.height;o++)for(let a=0;a<this._png.width;a++){const s=(o*n.width+a)*this._png.channels;for(let l=0;l<this._png.channels;l++)i.data[s+l]=0}break;case ah.PREVIOUS:i.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,r){const i=1<<this._png.depth,o=(a,s)=>{const l=((a+r.yOffset)*this._png.width+r.xOffset+s)*this._png.channels,u=(a*r.width+s)*this._png.channels;return{index:l,frameIndex:u}};switch(r.blendOp){case Y0.SOURCE:for(let a=0;a<r.height;a++)for(let s=0;s<r.width;s++){const{index:l,frameIndex:u}=o(a,s);for(let d=0;d<this._png.channels;d++)n.data[l+d]=r.data[u+d]}break;case Y0.OVER:for(let a=0;a<r.height;a++)for(let s=0;s<r.width;s++){const{index:l,frameIndex:u}=o(a,s);for(let d=0;d<this._png.channels;d++){const p=r.data[u+this._png.channels-1]/i,g=d%(this._png.channels-1)===0?1:r.data[u+d],f=Math.floor(p*g+(1-p)*n.data[l+d]);n.data[l+d]+=f}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const n=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==nb.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===K0.NO_INTERLACE)this._png.data=eb({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===K0.ADAM7)this._png.data=Jj({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const n=this._inflator.result,r=this._frames.at(-1);r?r.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:ah.NONE,blendOp:Y0.SOURCE,data:n}),this._inflator=new Xw,this._writingDataChunks=!1}}function mM(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var rb;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(rb||(rb={}));function gM(e,t){return new pM(e,t).decode()}var ot=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Z0(){ot.console&&typeof ot.console.log=="function"&&ot.console.log.apply(ot.console,arguments)}var Kt={log:Z0,warn:function(e){ot.console&&(typeof ot.console.warn=="function"?ot.console.warn.apply(ot.console,arguments):Z0.call(null,arguments))},error:function(e){ot.console&&(typeof ot.console.error=="function"?ot.console.error.apply(ot.console,arguments):Z0(e))}};function X0(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Ls(r.response,t,n
vendor: 3,701 bytes, lines 169-174
169)},r.onerror=function(){Kt.error("could not download file")},r.send()}function ib(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function sh(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Ls=ot.saveAs||((typeof window>"u"?"undefined":Ut(window))!=="object"||window!==ot?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=ot.URL||ot.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?ib(i.href)?X0(e,t,n):sh(i,i.target="_blank"):sh(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){sh(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(ib(e))X0(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){sh(r)})}else navigator.msSaveOrOpenBlob(function(i,o){return o===void 0?o={autoBom:!1}:Ut(o)!=="object"&&(Kt.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,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return X0(e,t,n);var i=e.type==="application/octet-stream",o=/constructor/i.test(ot.HTMLElement)||ot.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&o)&&(typeof FileReader>"u"?"undefined":Ut(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var d=s.result;d=a?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=d:location=d,r=null},s.readAsDataURL(e)}else{var l=ot.URL||ot.webkitURL,u=l.createObjectURL(e);r?r.location=u:location.href=u,r=null,setTimeout(function(){l.revokeObjectURL(u)},4e4)}});/** 170 * A class to parse color values 171 * @author Stoyan Stefanov <[email protected]> 172 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 173 * @license Use it if you like it 174 */function V6(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
1740",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].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),u=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),"#"+s+l+u}}var Rh=ot.atob.bind(ot),ob=ot.btoa.bind(ot);/** 175 * @license 176 * Joseph Myers does not specify a particular license for his work. 177 * 178 * Author: Joseph Myers 179 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 180 * 181 * Modified by: Owen Leong 182 */function Q0(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];n=hr(n,r,i,o,t[0],7,-680876936),o=hr(o,n,r,i,t[1],12,-389564586),i=hr(i,o,n,r,t[2],17,606105819),r=hr(r,i,o,n,t[3],22,-1044525330),n=hr(n,r,i,o,t[4],7,-176418897),o=hr(o,n,r,i,t[5],12,1200080426),i=hr(i,o,n,r,t[6],17,-1473231341),r=hr(r,i,o,n,t[7],22,-45705983),n=hr(n,r,i,o,t[8],7,1770035416),o=hr(o,n,r,i,t[9],12,-1958414417),i=hr(i,o,n,r,t[10],17,-42063),r=hr(r,i,o,n,t[11],22,-1990404162),n=hr(n,r,i,o,t[12],7,1804603682),o=hr(o,n,r,i,t[13],12,-40341101),i=hr(i,o,n,r,t[14],17,-1502002290),n=pr(n,r=hr(r,i,o,n,t[15],22,1236535329),i,o,t[1],5,-165796510),o=pr(o,n,r,i,t[6],9,-1069501632),i=pr(i,o,n,r,t[11],14,643717713),r=pr(r,i,o,n,t[0],20,-373897302),n=pr(n,r,i,o,t[5],5,-701558691),o=pr(o,n,r,i,t[10],9,38016083),i=pr(i,o,n,r,t[15],14,-660478335),r=pr(r,i,o,n,t[4],20,-405537848),n=pr(n,r,i,o,t[9],5,568446438),o=pr(o,n,r,i,t[14],9,-1019803690),i=pr(i,o,n,r,t[3],14,-187363961),r=pr(r,i,o,n,t[8],20,1163531501),n=pr(n,r,i,o,t[13],5,-1444681467),o=pr(o,n,r,i,t[2],9,-51403784),i=pr(i,o,n,r,t[7],14,1735328473),n=mr(n,r=pr(r,i,o,n,t[12],20,-1926607734),i,o,t[5],4,-378558),o=mr(o,n,r,i,t[8],11,-2022574463),i=mr(i,o,n,r,t[11],16,1839030562),r=mr(r,i,o,n,t[14],23,-35309556),n=mr(n,r,i,o,t[1],4,-1530992060),o=mr(o,n,r,i,t[4],11,1272893353),i=mr(i,o,n,r,t[7],16,-155497632),r=mr(r,i,o,n,t[10],23,-1094730640),n=mr(n,r,i,o,t[13],4,681279174),o=mr(o,n,r,i,t[0],11,-358537222),i=mr(i,o,n,r,t[3],16,-722521979),r=mr(r,i,o,n,t[6],23,76029189),n=mr(n,r,i,o,t[9],4,-640364487),o=mr(o,n,r,i,t[12],11,-421815835),i=mr(i,o,n,r,t[15],16,530742520),n=gr(n,r=mr(r,i,o,n,t[2],23,-995338651),i,o,t[0],6,-198630844),o=gr(o,n,r,i,t[7],10,1126891415),i=gr(i,o,n,r,t[14],15,-1416354905),r=gr(r,i,o,n,t[5],21,-57434055),n=gr(n,r,i,o,t[12],6,1700485571),o=gr(o,n,r,i,t[3],10,-1894986606),i=gr(i,o,n,r,t[10],15,-1051523),r=gr(r,i,o,n,t[1],21,-2054922799),n=gr(n,r,i,o,t[8],6,1873313359),o=gr(o,n,r,i,t[15],10,-30611744),i=gr(i,o,n,r,t[6],15,-1560198380),r=gr(r,i,o,n,t[13],21,1309151649),n=gr(n,r,i,o,t[4],6,-145523070),o=gr(o,n,r,i,t[11],10,-1120210379),i=gr(i,o,n,r,t[2],15,718787259),r=gr(r,i,o,n,t[9],21,-343485551),e[0]=Da(n,e[0]),e[1]=Da(r,e[1]),e[2]=Da(i,e[2]),e[3]=Da(o,e[3])}function o1(e,t,n,r,i,o){return t=Da(Da(t,e),Da(r,o)),Da(t<<i|t>>>32-i,n)}function hr(e,t,n,r,i,o,a){return o1(t&n|~t&r,e,t,i,o,a)}function pr(e,t,n,r,i,o,a){return o1(t&r|n&~r,e,t,i,o,a)}function mr(e,t,n,r,i,o,a){return o1(t^n^r,e,t,i,o,a)}function gr(e,t,n,r,i,o,a){return o1(n^(t|~r),e,t,i,o,a)}function G6(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Q0(r,vM(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(Q0(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,Q0(r,i),r}function vM(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var ab="0123456789abcdef".split("");function yM(e){for(var t="",n=0;n<4;n++)t+=ab[e>>8*n+4&15]+ab[e>>8*n&15];return t}function wM(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function O2(e){return G6(e).map(wM).join("")}var bM=function(e){for(var t=0;t<e.length;t++)e[t]=yM(e[t]);return e.join("")}(G6("hello"))!="5d41402abc4b2a76b9719d911017c592";function Da(e,t){if(bM){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/** 183 * @license 184 * FPDF is released under a permissive license: there is no usage restriction. 185 * You may embed it freely in your application (commercial or not), with or 186 * without modifications. 187 * 188 * Reference: http://www.fpdf.org/en/script/script37.php 189 */function j2(e,t){var n,r,i,o;if(e!==n){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 u=0;for(l=0;l<256;l++){var d=s[l];
vendor: 11,497 bytes, lines 189-199
189u=(u+d+a.charCodeAt(l))%256,s[l]=s[u],s[u]=d}n=e,r=s}else s=r;var p=t.length,g=0,f=0,S="";for(l=0;l<p;l++)f=(f+(d=s[g=(g+1)%256]))%256,s[g]=s[f],s[f]=d,a=s[(s[g]+s[f])%256],S+=String.fromCharCode(t.charCodeAt(l)^a);return S}/** 190 * @license 191 * Licensed under the MIT License. 192 * http://opensource.org/licenses/mit-license 193 * Author: Owen Leong (@owenl131) 194 * Date: 15 Oct 2020 195 * References: 196 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 197 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 198 * http://www.fpdf.org/en/script/script37.php 199 */var sb={print:4,modify:8,copy:16,"annot-forms":32};function Ul(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(s){if(sb.perm!==void 0)throw new Error("Invalid permission: "+s);i+=sb[s]}),this.padding="(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz";var o=(t+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=O2(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=j2(this.encryptionKey,this.padding)}function ql(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);t+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):e[r]}return t}function lb(e){if(Ut(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,r,i){if(i=i||!1,typeof n!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var o=Math.random().toString(35);return t[n][o]=[r,!!i],o},this.unsubscribe=function(n){for(var r in t)if(t[r][n])return delete t[r][n],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in t[n]){var a=t[n][o];try{a[0].apply(e,r)}catch(s){ot.console&&Kt.error("jsPDF PubSub Error",s.message,s)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function xp(e){if(!(this instanceof xp))return new xp(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function K6(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Cs(e,t,n,r,i){if(!(this instanceof Cs))return new Cs(e,t,n,r,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,K6.call(this,r,i)}function tu(e,t,n,r,i){if(!(this instanceof tu))return new tu(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,K6.call(this,r,i)}function Ye(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],o=arguments[3],a=[],s=1,l=16,u="S",d=null;Ut(e=e||{})==="object"&&(n=e.orientation,r=e.unit||r,i=e.format||i,o=e.compress||e.compressPdf||o,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),u=e.defaultPathOperation||"S"),a=e.filters||(o===!0?["FlateEncode"]:a),r=r||"mm",n=(""+(n||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,g={},f={internal:{},__private__:{}};f.__private__.PubSub=lb;var S="1.3",v=f.__private__.getPdfVersion=function(){return S};f.__private__.setPdfVersion=function(m){S=m};var x={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 x};var y=f.__private__.getPageFormat=function(m){return x[m]};i=i||"a4";var b="compat",_="advanced",A=b;function M(){this.saveGraphicsState(),U(new ze(rt,0,0,-rt,0,hs()*rt).toString()+" cm"),this.setFontSize(this.getFontSize()/rt),u="n",A=_}function Z(){this.restoreGraphicsState(),u="S",A=b}var V=f.__private__.combineFontStyleAndFontWeight=function(m,k){if(m=="bold"&&k=="normal"||m=="bold"&&k==400||m=="normal"&&k=="italic"||m=="bold"&&k=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return k&&(m=k==400||k==="normal"?m==="italic"?"italic":"normal":k!=700&&k!=="bold"||m!=="normal"?(k==700?"bold":k)+""+m:"bold"),m};f.advancedAPI=function(m){var k=A===b;return k&&M.call(this),typeof m!="function"||(m(this),k&&Z.call(this)),this},f.compatAPI=function(m){var k=A===_;return k&&Z.call(this),typeof m!="function"||(m(this),k&&M.call(this)),this},f.isAdvancedAPI=function(){return A===_};var q,F=function(m){if(A!==_)throw new Error(m+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},X=f.roundToPrecision=f.__private__.roundToPrecision=function(m,k){var H=t||k;if(isNaN(m)||isNaN(H))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return m.toFixed(H).replace(/0+$/,"")};q=f.hpf=f.__private__.hpf=typeof l=="number"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return X(m,l)}:l==="smart"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return X(m,m>-1&&m<1?16:5)}:function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return X(m,16)};var P=f.f2=f.__private__.f2=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f2");return X(m,2)},R=f.__private__.f3=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f3");return X(m,3)},Y=f.scale=f.__private__.scale=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.scale");return A===b?m*rt:A===_?m:void 0},B=function(m){return Y(function(k){return A===b?hs()-k:A===_?k:void 0}(m))};f.__private__.setPrecision=f.setPrecision=function(m){typeof parseInt(m,10)=="number"&&(t=parseInt(m,10))};var ie,oe="00000000000000000000000000000000",se=f.__private__.getFileId=function(){return oe},$=f.__private__.setFileId=function(m){return oe=m!==void 0&&/^[a-fA-F0-9]{32}$/.test(m)?m.toUpperCase():oe.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(Xn=new Ul(d.userPermissions,d.userPassword,d.ownerPassword,oe)),oe};f.setFileId=function(m){return $(m),this},f.getFileId=function(){return se()};var Q=f.__private__.convertDateToPDFDate=function(m){var k=m.getTimezoneOffset(),H=k<0?"+":"-",te=Math.floor(Math.abs(k/60)),le=Math.abs(k%60),ye=[H,W(te),"'",W(le),"'"].join("");return["D:",m.getFullYear(),W(m.getMonth()+1),W(m.getDate()),W(m.getHours()),W(m.getMinutes()),W(m.getSeconds()),ye].join("")},fe=f.__private__.convertPDFDateToDate=function(m){var k=parseInt(m.substr(2,4),10),H=parseInt(m.substr(6,2),10)-1,te=parseInt(m.substr(8,2),10),le=parseInt(m.substr(10,2),10),ye=parseInt(m.substr(12,2),10),Se=parseInt(m.substr(14,2),10);return new Date(k,H,te,le,ye,Se,0)},me=f.__private__.setCreationDate=function(m){var k;if(m===void 0&&(m=new Date),m instanceof Date)k=Q(m);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(m))throw new Error("Invalid argument passed to jsPDF.setCreationDate");k=m}return ie=k},C=f.__private__.getCreationDate=function(m){var k=ie;return m==="jsDate"&&(k=fe(ie)),k};f.setCreationDate=function(m){return me(m),this},f.getCreationDate=function(m){return C(m)};var z,W=f.__private__.padd2=function(m){return("0"+parseInt(m)).slice(-2)},ee=f.__private__.padd2Hex=function(m){return("00"+(m=m.toString())).substr(m.length)},ne=0,J=[],ce=[],pe=0,ge=[],ve=[],ke=!1,Ce=ce;f.__private__.setCustomOutputDestination=function(m){ke=!0,Ce=m};var Oe=function(m){ke||(Ce=m)};f.__private__.resetCustomOutputDestination=function(){ke=!1,Ce=ce};var U=f.__private__.out=function(m){return m=m.toString(),pe+=m.length+1,Ce.push(m),Ce},Te=f.__private__.write=function(m){return U(arguments.length===1?m.toString():Array.prototype.join.call(arguments," "))},nt=f.__private__.getArrayBuffer=function(m){for(var k=m.length,H=new ArrayBuffer(k),te=new Uint8Array(H);k--;)te[k]=m.charCodeAt(k);return H},Ke=[["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 Ke};var Ne=e.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(m){return Ne=A===_?m/rt:m,this};var Je,Ie=f.__private__.getFontSize=f.getFontSize=function(){return A===b?Ne:Ne*rt},Xe=e.R2L||!1;f.__private__.setR2L=f.setR2L=function(m){return Xe=m,this},f.__private__.getR2L=f.getR2L=function(){return Xe};var Be,It=f.__private__.setZoomMode=function(m){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(m))Je=m;else if(isNaN(m)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(m)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+m+'" is not recognized.');Je=m}else Je=parseInt(m,10)};f.__private__.getZoomMode=function(){return Je};var xt,Ze=f.__private__.setPageMode=function(m){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(m)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+m+'" is not recognized.');Be=m};f.__private__.getPageMode=function(){return Be};var pt=f.__private__.setLayoutMode=function(m){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(m)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+m+'" is not recognized.');xt=m};f.__private__.getLayoutMode=function(){return xt},f.__private__.setDisplayMode=f.setDisplayMode=function(m,k,H){return It(m),pt(k),Ze(H),this};var _t={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(m){if(Object.keys(_t).indexOf(m)===-1)throw new Error("Invalid argument passed to
199jsPDF.getDocumentProperty");return _t[m]},f.__private__.getDocumentProperties=function(){return _t},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(m){for(var k in _t)_t.hasOwnProperty(k)&&m[k]&&(_t[k]=m[k]);return this},f.__private__.setDocumentProperty=function(m,k){if(Object.keys(_t).indexOf(m)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _t[m]=k};var qe,rt,We,ln,St,at={},mt={},Mt=[],Qe={},$t={},et={},st={},Yt=null,gt=0,Ve=[],Ot=new lb(f),tt=e.hotfixes||[],lt={},Et={},vn=[],ze=function m(k,H,te,le,ye,Se){if(!(this instanceof m))return new m(k,H,te,le,ye,Se);isNaN(k)&&(k=1),isNaN(H)&&(H=0),isNaN(te)&&(te=0),isNaN(le)&&(le=1),isNaN(ye)&&(ye=0),isNaN(Se)&&(Se=0),this._matrix=[k,H,te,le,ye,Se]};Object.defineProperty(ze.prototype,"sx",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(ze.prototype,"shy",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(ze.prototype,"shx",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(ze.prototype,"sy",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(ze.prototype,"tx",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(ze.prototype,"ty",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(ze.prototype,"a",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(ze.prototype,"b",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(ze.prototype,"c",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(ze.prototype,"d",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(ze.prototype,"e",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(ze.prototype,"f",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(ze.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ze.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ze.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ze.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ze.prototype.join=function(m){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(q).join(m)},ze.prototype.multiply=function(m){var k=m.sx*this.sx+m.shy*this.shx,H=m.sx*this.shy+m.shy*this.sy,te=m.shx*this.sx+m.sy*this.shx,le=m.shx*this.shy+m.sy*this.sy,ye=m.tx*this.sx+m.ty*this.shx+this.tx,Se=m.tx*this.shy+m.ty*this.sy+this.ty;return new ze(k,H,te,le,ye,Se)},ze.prototype.decompose=function(){var m=this.sx,k=this.shy,H=this.shx,te=this.sy,le=this.tx,ye=this.ty,Se=Math.sqrt(m*m+k*k),Ue=(m/=Se)*H+(k/=Se)*te;H-=m*Ue,te-=k*Ue;var De=Math.sqrt(H*H+te*te);return Ue/=De,m*(te/=De)<k*(H/=De)&&(m=-m,k=-k,Ue=-Ue,Se=-Se),{scale:new ze(Se,0,0,De,0,0),translate:new ze(1,0,0,1,le,ye),rotate:new ze(m,k,-k,m,0,0),skew:new ze(1,0,Ue,1,0,0)}},ze.prototype.toString=function(m){return this.join(" ")},ze.prototype.inversed=function(){var m=this.sx,k=this.shy,H=this.shx,te=this.sy,le=this.tx,ye=this.ty,Se=1/(m*te-k*H),Ue=te*Se,De=-k*Se,ut=-H*Se,ft=m*Se;return new ze(Ue,De,ut,ft,-Ue*le-ut*ye,-De*le-ft*ye)},ze.prototype.applyToPoint=function(m){var k=m.x*this.sx+m.y*this.shx+this.tx,H=m.x*this.shy+m.y*this.sy+this.ty;return new ds(k,H)},ze.prototype.applyToRectangle=function(m){var k=this.applyToPoint(m),H=this.applyToPoint(new ds(m.x+m.w,m.y+m.h));return new rc(k.x,k.y,H.x-k.x,H.y-k.y)},ze.prototype.clone=function(){var m=this.sx,k=this.shy,H=this.shx,te=this.sy,le=this.tx,ye=this.ty;return new ze(m,k,H,te,le,ye)},f.Matrix=ze;var $n=f.matrixMult=function(m,k){return k.multiply(m)},Yn=new ze(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=Yn;var un=function(m,k){if(!$t[m]){var H=(k instanceof Cs?"Sh":"P")+(Object.keys(Qe).length+1).toString(10);k.id=H,$t[m]=H,Qe[H]=k,Ot.publish("addPattern",k)}};f.ShadingPattern=Cs,f.TilingPattern=tu,f.addShadingPattern=function(m,k){return F("addShadingPattern()"),un(m,k),this},f.beginTilingPattern=function(m){F("beginTilingPattern()"),ic(m.boundingBox[0],m.boundingBox[1],m.boundingBox[2]-m.boundingBox[0],m.boundingBox[3]-m.boundingBox[1],m.matrix)},f.endTilingPattern=function(m,k){F("endTilingPattern()"),k.stream=ve[z].join(`
200`),un(m,k),Ot.publish("endTilingPattern",k),vn.pop().restore()};var Nn,yn=f.__private__.newObject=function(){var m=Hn();return Zn(m,!0),m},Hn=f.__private__.newObjectDeferred=function(){return ne++,J[ne]=function(){return pe},ne},Zn=function(m,k){return k=typeof k=="boolean"&&k,J[m]=pe,k&&U(m+" 0 obj"),m},ls=f.__private__.newAdditionalObject=function(){var m={objId:Hn(),content:""};return ge.push(m),m},ta=Hn(),_i=Hn(),Ki=f.__private__.decodeColorString=function(m){var k=m.split(" ");if(k.length!==2||k[1]!=="g"&&k[1]!=="G")k.length!==5||k[4]!=="k"&&k[4]!=="K"||(k=[(1-k[0])*(1-k[3]),(1-k[1])*(1-k[3]),(1-k[2])*(1-k[3]),"r"]);else{var H=parseFloat(k[0]);k=[H,H,H,"r"]}for(var te="#",le=0;le<3;le++)te+=("0"+Math.floor(255*parseFloat(k[le])).toString(16)).slice(-2);return te},Si=f.__private__.encodeColorString=function(m){var k;typeof m=="string"&&(m={ch1:m});var H=m.ch1,te=m.ch2,le=m.ch3,ye=m.ch4,Se=m.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof H=="string"&&H.charAt(0)!=="#"){var Ue=new V6(H);if(Ue.ok)H=Ue.toHex();else if(!/^\d*\.?\d*$/.test(H))throw new Error('Invalid color "'+H+'" passed to jsPDF.encodeColorString.')}if(typeof H=="string"&&/^#[0-9A-Fa-f]{3}$/.test(H)&&(H="#"+H[1]+H[1]+H[2]+H[2]+H[3]+H[3]),typeof H=="string"&&/^#[0-9A-Fa-f]{6}$/.test(H)){var De=parseInt(H.substr(1),16);H=De>>16&255,te=De>>8&255,le=255&De}if(te===void 0||ye===void 0&&H===te&&te===le)k=typeof H=="string"?H+" "+Se[0]:m.precision===2?P(H/255)+" "+Se[0]:R(H/255)+" "+Se[0];else if(ye===void 0||Ut(ye)==="object"){if(ye&&!isNaN(ye.a)&&ye.a===0)return["1.","1.","1.",Se[1]].join(" ");k=typeof H=="string"?[H,te,le,Se[1]].join(" "):m.precision===2?[P(H/255),P(te/255),P(le/255),Se[1]].join(" "):[R(H/255),R(te/255),R(le/255),Se[1]].join(" ")}else k=typeof H=="string"?[H,te,le,ye,Se[2]].join(" "):m.precision===2?[P(H),P(te),P(le),P(ye),Se[2]].join(" "):[R(H),R(te),R(le),R(ye),Se[2]].join(" ");return k},Ni=f.__private__.getFilters=function(){return a},li=f.__private__.putStream=function(m){var k=(m=m||{}).data||"",H=m.filters||Ni(),te=m.alreadyAppliedFilters||[],le=m.addLength1||!1,ye=k.length,Se=m.objectId,Ue=function(en){return en};if(d!==null&&Se===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(Ue=Xn.encryptor(Se,0));var De={};H===!0&&(H=["FlateEncode"]);var ut=m.additionalKeyValues||[],ft=(De=Ye.API.processDataByFilters!==void 0?Ye.API.processDataByFilters(k,H):{data:k,reverseChain:[]}).reverseChain+(Array.isArray(te)?te.join(" "):te.toString());if(De.data.length!==0&&(ut.push({key:"Length",value:De.data.length}),le===!0&&ut.push({key:"Length1",value:ye})),ft.length!=0)if(ft.split("/").length-1==1)ut.push({key:"Filter",value:ft});else{ut.push({key:"Filter",value:"["+ft+"]"});for(var Lt=0;Lt<ut.length;Lt+=1)if(ut[Lt].key==="DecodeParms"){for(var In=[],Vt=0;Vt<De.reverseChain.split("/").length-1;Vt+=1)In.push("null");In.push(ut[Lt].value),ut[Lt].value="["+In.join(" ")+"]"}}U("<<");for(var Ht=0;Ht<ut.length;Ht++)U("/"+ut[Ht].key+" "+ut[Ht].value);U(">>"),De.data.length!==0&&(U("stream"),U(Ue(De.data)),U("endstream"))},us=f.__private__.putPage=function(m){var k=m.number,H=m.data,te=m.objId,le=m.contentsObjId;Zn(te,!0),U("<</Type /Page"),U("/Parent "+m.rootDictionaryObjId+" 0 R"),U("/Resources "+m.resourceDictionaryObjId+" 0 R"),U("/MediaBox ["+parseFloat(q(m.mediaBox.bottomLeftX))+" "+parseFloat(q(m.mediaBox.bottomLeftY))+" "+q(m.mediaBox.topRightX)+" "+q(m.mediaBox.topRightY)+"]"),m.cropBox!==null&&U("/CropBox ["+q(m.cropBox.bottomLeftX)+" "+q(m.cropBox.bottomLeftY)+" "+q(m.cropBox.topRightX)+" "+q(m.cropBox.topRightY)+"]"),m.bleedBox!==null&&U("/BleedBox ["+q(m.bleedBox.bottomLeftX)+" "+q(m.bleedBox.bottomLeftY)+" "+q(m.bleedBox.topRightX)+" "+q(m.bleedBox.topRightY)+"]"),m.trimBox!==null&&U("/TrimBox ["+q(m.trimBox.bottomLeftX)+" "+q(m.trimBox.bottomLeftY)+" "+q(m.trimBox.topRightX)+" "+q(m.trimBox.topRightY)+"]"),m.artBox!==null&&U("/ArtBox ["+q(m.artBox.bottomLeftX)+" "+q(m.artBox.bottomLeftY)+" "+q(m.artBox.topRightX)+" "+q(m.artBox.topRightY)+"]"),typeof m.userUnit=="number"&&m.userUnit!==1&&U("/UserUnit "+m.userUnit),Ot.publish("putPage",{objId:te,pageContext:Ve[k],pageNumber:k,page:H}),U("/Contents "+le+" 0 R"),U(">>"),U("endobj");var ye=H.join(` 201`);return A===_&&(ye+=` 202Q`),Zn(le,!0),li({data:ye,filters:Ni(),objectId:le}),U("endobj"),te},Yi=f.__private__.putPages=function(){var m,k,H=[];for(m=1;m<=gt;m++)Ve[m].objId=Hn(),Ve[m].contentsObjId=Hn();for(m=1;m<=gt;m++)H.push(us({number:m,data:ve[m],objId:Ve[m].objId,contentsObjId:Ve[m].contentsObjId,mediaBox:Ve[m].mediaBox,cropBox:Ve[m].cropBox,bleedBox:Ve[m].bleedBox,trimBox:Ve[m].trimBox,artBox:Ve[m].artBox,userUnit:Ve[m].userUnit,rootDictionaryObjId:ta,resourceDictionaryObjId:_i}));Zn(ta,!0),U("<</Type /Pages");var te="/Kids [";for(k=0;k<gt;k++)te+=H[k]+" 0 R ";U(te+"]"),U("/Count "+gt),U(">>"),U("endobj"),Ot.publish("postPutPages")},cs=function(m){Ot.publish("putFont",{font:m,out:U,newObject:yn,putStream:li}),m.isAlreadyPutted!==!0&&(m.objectNumber=yn(),U("<<"),U("/Type /Font"),U("/BaseFont /"+ql(m.postScriptName)),U("/Subtype /Type1"),typeof m.encoding=="string"&&U("/Encoding /"+m.encoding),U("/FirstChar 32"),U("/LastChar 255"),U(">>
202"),U("endobj"))},cl=function(m){m.objectNumber=yn();var k=[];k.push({key:"Type",value:"/XObject"}),k.push({key:"Subtype",value:"/Form"}),k.push({key:"BBox",value:"["+[q(m.x),q(m.y),q(m.x+m.width),q(m.y+m.height)].join(" ")+"]"}),k.push({key:"Matrix",value:"["+m.matrix.toString()+"]"});var H=m.pages[1].join(` 203`);li({data:H,additionalKeyValues:k,objectId:m.objectNumber}),U("endobj")},fl=function(m,k){k||(k=21);var H=yn(),te=function(Se,Ue){var De,ut=[],ft=1/(Ue-1);for(De=0;De<1;De+=ft)ut.push(De);if(ut.push(1),Se[0].offset!=0){var Lt={offset:0,color:Se[0].color};Se.unshift(Lt)}if(Se[Se.length-1].offset!=1){var In={offset:1,color:Se[Se.length-1].color};Se.push(In)}for(var Vt="",Ht=0,en=0;en<ut.length;en++){for(De=ut[en];De>Se[Ht+1].offset;)Ht++;var dn=Se[Ht].offset,hn=(De-dn)/(Se[Ht+1].offset-dn),ar=Se[Ht].color,Po=Se[Ht+1].color;Vt+=ee(Math.round((1-hn)*ar[0]+hn*Po[0]).toString(16))+ee(Math.round((1-hn)*ar[1]+hn*Po[1]).toString(16))+ee(Math.round((1-hn)*ar[2]+hn*Po[2]).toString(16))}return Vt.trim()}(m.colors,k),le=[];le.push({key:"FunctionType",value:"0"}),le.push({key:"Domain",value:"[0.0 1.0]"}),le.push({key:"Size",value:"["+k+"]"}),le.push({key:"BitsPerSample",value:"8"}),le.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),le.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),li({data:te,additionalKeyValues:le,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:H}),U("endobj"),m.objectNumber=yn(),U("<< /ShadingType "+m.type),U("/ColorSpace /DeviceRGB");var ye="/Coords ["+q(parseFloat(m.coords[0]))+" "+q(parseFloat(m.coords[1]))+" ";m.type===2?ye+=q(parseFloat(m.coords[2]))+" "+q(parseFloat(m.coords[3])):ye+=q(parseFloat(m.coords[2]))+" "+q(parseFloat(m.coords[3]))+" "+q(parseFloat(m.coords[4]))+" "+q(parseFloat(m.coords[5])),U(ye+="]"),m.matrix&&U("/Matrix ["+m.matrix.toString()+"]"),U("/Function "+H+" 0 R"),U("/Extend [true true]"),U(">>"),U("endobj")},dl=function(m,k){var H=Hn(),te=yn();k.push({resourcesOid:H,objectOid:te}),m.objectNumber=te;var le=[];le.push({key:"Type",value:"/Pattern"}),le.push({key:"PatternType",value:"1"}),le.push({key:"PaintType",value:"1"}),le.push({key:"TilingType",value:"1"}),le.push({key:"BBox",value:"["+m.boundingBox.map(q).join(" ")+"]"}),le.push({key:"XStep",value:q(m.xStep)}),le.push({key:"YStep",value:q(m.yStep)}),le.push({key:"Resources",value:H+" 0 R"}),m.matrix&&le.push({key:"Matrix",value:"["+m.matrix.toString()+"]"}),li({data:m.stream,additionalKeyValues:le,objectId:m.objectNumber}),U("endobj")},a1=function(m){for(var k in m.objectNumber=yn(),U("<<"),m)switch(k){case"opacity":U("/ca "+P(m[k]));break;case"stroke-opacity":U("/CA "+P(m[k]))}U(">>"),U("endobj")},Yu=function(m){Zn(m.resourcesOid,!0),U("<<"),U("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var k in U("/Font <<"),at)at.hasOwnProperty(k)&&(p===!1||p===!0&&g.hasOwnProperty(k))&&U("/"+k+" "+at[k].objectNumber+" 0 R");U(">>")}(),function(){if(Object.keys(Qe).length>0){for(var k in U("/Shading <<"),Qe)Qe.hasOwnProperty(k)&&Qe[k]instanceof Cs&&Qe[k].objectNumber>=0&&U("/"+k+" "+Qe[k].objectNumber+" 0 R");Ot.publish("putShadingPatternDict"),U(">>")}}(),function(k){if(Object.keys(Qe).length>0){for(var H in U("/Pattern <<"),Qe)Qe.hasOwnProperty(H)&&Qe[H]instanceof f.TilingPattern&&Qe[H].objectNumber>=0&&Qe[H].objectNumber<k&&U("/"+H+" "+Qe[H].objectNumber+" 0 R");Ot.publish("putTilingPatternDict"),U(">>")}}(m.objectOid),function(){if(Object.keys(et).length>0){var k;for(k in U("/ExtGState <<"),et)et.hasOwnProperty(k)&&et[k].objectNumber>=0&&U("/"+k+" "+et[k].objectNumber+" 0 R");Ot.publish("putGStateDict"),U(">>")}}(),function(){for(var k in U("/XObject <<"),lt)lt.hasOwnProperty(k)&<[k].objectNumber>=0&&U("/"+k+" "+lt[k].objectNumber+" 0 R");Ot.publish("putXobjectDict"),U(">>")}(),U(">>"),U("endobj")},Kf=function(m){mt[m.fontName]=mt[m.fontName]||{},mt[m.fontName][m.fontStyle]=m.id},Yf=function(m,k,H,te,le){var ye={id:"F"+(Object.keys(at).length+1).toString(10),postScriptName:m,fontName:k,fontStyle:H,encoding:te,isStandardFont:le||!1,metadata:{}};return Ot.publish("addFont",{font:ye,instance:this}),at[ye.id]=ye,Kf(ye),ye.id},ui=f.__private__.pdfEscape=f.pdfEscape=function(m,k){return function(H,te){var le,ye,Se,Ue,De,ut,ft,Lt,In;if(Se=(te=te||{}).sourceEncoding||"Unicode",De=te.outputEncoding,(te.autoencode||De)&&at[qe].metadata&&at[qe].metadata[Se]&&at[qe].metadata[Se].encoding&&(Ue=at[qe].metadata[Se].encoding,!De&&at[qe].encoding&&(De=at[qe].encoding),!De&&Ue.codePages&&(De=Ue.codePages[0]),typeof De=="string"&&(De=Ue[De]),De)){for(ft=!1,ut=[],le=0,ye=H.length;le<ye;le++)(Lt=De[H.charCodeAt(le)])?ut.push(String.fromCharCode(Lt)):ut.push(H[le]),ut[le].charCodeAt(0)>>8&&(ft=!0);H=ut.join("")}for(le=H.length;ft===void 0&&le!==0;
vendor: 8,440 bytes, lines 203-205
203)H.charCodeAt(le-1)>>8&&(ft=!0),le--;if(!ft)return H;for(ut=te.noBOM?[]:[254,255],le=0,ye=H.length;le<ye;le++){if((In=(Lt=H.charCodeAt(le))>>8)>>8)throw new Error("Character at position "+le+" of string '"+H+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ut.push(In),ut.push(Lt-(In<<8))}return String.fromCharCode.apply(void 0,ut)}(m,k).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Zu=f.__private__.beginPage=function(m){ve[++gt]=[],Ve[gt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(m[0]),topRightY:Number(m[1])}},Xf(gt),Oe(ve[z])},Zf=function(m,k){var H,te,le;switch(n=k||n,typeof m=="string"&&(H=y(m.toLowerCase()),Array.isArray(H)&&(te=H[0],le=H[1])),Array.isArray(m)&&(te=m[0]*rt,le=m[1]*rt),isNaN(te)&&(te=i[0],le=i[1]),(te>14400||le>14400)&&(Kt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),te=Math.min(14400,te),le=Math.min(14400,le)),i=[te,le],n.substr(0,1)){case"l":le>te&&(i=[le,te]);break;case"p":te>le&&(i=[le,te])}Zu(i),g1(it),U(yl),tc!==0&&U(tc+" J"),ia!==0&&U(ia+" j"),Ot.publish("addPage",{pageNumber:gt})},Xu=function(m){m>0&&m<=gt&&(ve.splice(m,1),Ve.splice(m,1),gt--,z>gt&&(z=gt),this.setPage(z))},Xf=function(m){m>0&&m<=gt&&(z=m)},Qf=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return ve.length-1},Jf=function(m,k,H){var te,le=void 0;return H=H||{},m=m!==void 0?m:at[qe].fontName,k=k!==void 0?k:at[qe].fontStyle,te=m.toLowerCase(),mt[te]!==void 0&&mt[te][k]!==void 0?le=mt[te][k]:mt[m]!==void 0&&mt[m][k]!==void 0?le=mt[m][k]:H.disableWarning===!1&&Kt.warn("Unable to look up font label for font '"+m+"', '"+k+"'. Refer to getFontList() for available fonts."),le||H.noFallback||(le=mt.times[k])==null&&(le=mt.times.normal),le},Zi=f.__private__.putInfo=function(){var m=yn(),k=function(te){return te};for(var H in d!==null&&(k=Xn.encryptor(m,0)),U("<<"),U("/Producer ("+ui(k("jsPDF "+Ye.version))+")"),_t)_t.hasOwnProperty(H)&&_t[H]&&U("/"+H.substr(0,1).toUpperCase()+H.substr(1)+" ("+ui(k(_t[H]))+")");U("/CreationDate ("+ui(k(ie))+")"),U(">>"),U("endobj")},hl=f.__private__.putCatalog=function(m){var k=(m=m||{}).rootDictionaryObjId||ta;switch(yn(),U("<<"),U("/Type /Catalog"),U("/Pages "+k+" 0 R"),Je||(Je="fullwidth"),Je){case"fullwidth":U("/OpenAction [3 0 R /FitH null]");break;case"fullheight":U("/OpenAction [3 0 R /FitV null]");break;case"fullpage":U("/OpenAction [3 0 R /Fit]");break;case"original":U("/OpenAction [3 0 R /XYZ null null 1]");break;default:var H=""+Je;H.substr(H.length-1)==="%"&&(Je=parseInt(Je)/100),typeof Je=="number"&&U("/OpenAction [3 0 R /XYZ null null "+P(Je)+"]")}switch(xt||(xt="continuous"),xt){case"continuous":U("/PageLayout /OneColumn");break;case"single":U("/PageLayout /SinglePage");break;case"two":case"twoleft":U("/PageLayout /TwoColumnLeft");break;case"tworight":U("/PageLayout /TwoColumnRight")}Be&&U("/PageMode /"+Be),Ot.publish("putCatalog"),U(">>"),U("endobj")},s1=f.__private__.putTrailer=function(){U("trailer"),U("<<"),U("/Size "+(ne+1)),U("/Root "+ne+" 0 R"),U("/Info "+(ne-1)+" 0 R"),d!==null&&U("/Encrypt "+Xn.oid+" 0 R"),U("/ID [ <"+oe+"> <"+oe+"> ]"),U(">>")},Rn=f.__private__.putHeader=function(){U("%PDF-"+S),U("%ºÃˆ ")},ed=f.__private__.putXRef=function(){var m="0000000000";U("xref"),U("0 "+(ne+1)),U("0000000000 65535 f ");for(var k=1;k<=ne;k++)typeof J[k]=="function"?U((m+J[k]()).slice(-10)+" 00000 n "):J[k]!==void 0?U((m+J[k]).slice(-10)+" 00000 n "):U("0000000000 00000 n ")},Xi=f.__private__.buildDocument=function(){var m;ne=0,pe=0,ce=[],J=[],ge=[],ta=Hn(),_i=Hn(),Oe(ce),Ot.publish("buildDocument"),Rn(),Yi(),function(){Ot.publish("putAdditionalObjects");for(var H=0;H<ge.length;H++){var te=ge[H];Zn(te.objId,!0),U(te.content),U("endobj")}Ot.publish("postPutAdditionalObjects")}(),m=[],function(){for(var H in at)at.hasOwnProperty(H)&&(p===!1||p===!0&&g.hasOwnProperty(H))&&cs(at[H])}(),function(){var H;for(H in et)et.hasOwnProperty(H)&&a1(et[H])}(),function(){for(var H in lt)lt.hasOwnProperty(H)&&cl(lt[H])}(),function(H){var te;for(te in Qe)Qe.hasOwnProperty(te)&&(Qe[te]instanceof Cs?fl(Qe[te]):Qe[te]instanceof tu&&dl(Qe[te],H))}(m),Ot.publish("putResources"),m.forEach(Yu),Yu({resourcesOid:_i,objectOid:Number.MAX_SAFE_INTEGER}),Ot.publish("postPutResources"),d!==null&&(Xn.oid=yn(),U("<<"),U("/Filter /Standard"),U("/V "+Xn.v),U("/R "+Xn.r),U("/U <"+Xn.toHexString(Xn.U)+">"),U("/O <"+Xn.toHexString(Xn.O)+">"),U("/P "+Xn.P),U(">>"),U("endobj")),Zi(),hl();var k=pe;return ed(),s1(),U("startxref"),U(""+k),U("%%EOF"),Oe(ve[z]),ce.join(` 204`)},pl=f.__private__.getBlob=function(m){return new Blob([nt(m)],{type:"application/pdf"})},Qu=function(m){for(;m.firstChild;)m.removeChild(m.firstChild)},$r=function(m){var k,H=m.document,te=H.documentElement,le=H.head,ye=H.body;return le||(le=H.createElement("head"),te.appendChild(le)),ye||(ye=H.createElement("body"),te.appendChild(ye)),Qu(le),Qu(ye),(k=H.createElement("style")).appendChild(H.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),le.appendChild(k),{document:H,body:ye}},ml=f.output=f.__private__.output=(Nn=function(m,k){switch(typeof(k=k||{})=="string"?k={filename:k}:k.filename=k.filename||"generated.pdf",m){case void 0:return Xi();case"save":f.save(k.filename);break;case"arraybuffer":return nt(Xi());case"blob":return pl(Xi());case"bloburi":case"bloburl":if(ot.URL!==void 0&&typeof ot.URL.createObjectURL=="function")return ot.URL&&ot.URL.createObjectURL(pl(Xi()))||void 0;Kt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var H="",te=Xi();try{H=ob(te)}catch{H=ob(unescape(encodeURIComponent(te)))}return"data:application/pdf;filename="+encodeURIComponent(k.filename)+";base64,"+H;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ot)==="[object Window]"){var le="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ye=!k.pdfObjectUrl;ye||(le=k.pdfObjectUrl);var Se=ot.open();if(Se!==null){var Ue=$r(Se),De=Ue.document.createElement("script"),ut=this;De.src=le,ye&&(De.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",De.crossOrigin="anonymous"),De.onload=function(){Se.PDFObject.embed(ut.output("dataurlstring"),k)},Ue.body.appendChild(De)}return Se}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ot)==="[object Window]"){var ft=k.pdfJsUrl||"examples/PDF.js/web/viewer.html",Lt=ot.open();if(Lt!==null){var In=$r(Lt),Vt=In.document.createElement("iframe"),Ht=ft.indexOf("?")===-1?"?":"&";ut=this,Vt.id="pdfViewer",Vt.width="500px",Vt.height="400px",Vt.src=ft+Ht+"file=&downloadName="+encodeURIComponent(k.filename),Vt.onload=function(){Lt.document.title=k.filename,Vt.contentWindow.PDFViewerApplication.open(ut.output("bloburl"))},In.body.appendChild(Vt)}return Lt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ot)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var en=ot.open();if(en!==null){var dn=$r(en),hn=dn.document.createElement("iframe");hn.src=this.output("datauristring",k),dn.body.appendChild(hn),en.document.title=k.filename}if(en||typeof safari>"u")return en;break;case"datauri":case"dataurl":return ot.document.location.href=this.output("datauristring",k);default:return null}},Nn.foo=function(){try{return Nn.apply(this,arguments)}catch(H){var m=H.stack||"";~m.indexOf(" at ")&&(m=m.split(" at ")[1]);var k="Error in function "+m.split(` 205`)[0].split("<")[0]+": "+H.message;if(!ot.console)throw new Error(k);ot.console.error(k,H),ot.alert&&alert(k)}},Nn.foo.bar=Nn,Nn.foo),Ao=function(m){return Array.isArray(tt)===!0&&tt.indexOf(m)>-1};switch(r){case"pt":rt=1;break;case"mm":rt=72/25.4;break;case"cm":rt=72/2.54;break;case"in":rt=72;break;case"px":rt=Ao("px_scaling")==1?.75:96/72;break;case"pc":case"em":rt=12;break;case"ex":rt=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);rt=r}var Xn=null;me(),$();var td=f.__private__.getPageInfo=f.getPageInfo=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to
205jsPDF.getPageInfo");return{objId:Ve[m].objId,pageNumber:m,pageContext:Ve[m]}},l1=f.__private__.getPageInfoByObjId=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var k in Ve)if(Ve[k].objId===m)break;return td(k)},u1=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:Ve[z].objId,pageNumber:z,pageContext:Ve[z]}};f.addPage=function(){return Zf.apply(this,arguments),this},f.setPage=function(){return Xf.apply(this,arguments),Oe.call(this,ve[z]),this},f.insertPage=function(m){return this.addPage(),this.movePage(z,m),this},f.movePage=function(m,k){var H,te;if(m>k){H=ve[m],te=Ve[m];for(var le=m;le>k;le--)ve[le]=ve[le-1],Ve[le]=Ve[le-1];ve[k]=H,Ve[k]=te,this.setPage(k)}else if(m<k){H=ve[m],te=Ve[m];for(var ye=m;ye<k;ye++)ve[ye]=ve[ye+1],Ve[ye]=Ve[ye+1];ve[k]=H,Ve[k]=te,this.setPage(k)}return this},f.deletePage=function(){return Xu.apply(this,arguments),this},f.__private__.text=f.text=function(m,k,H,te,le){var ye,Se,Ue,De,ut,ft,Lt,In,Vt,Ht=(te=te||{}).scope||this;if(typeof m=="number"&&typeof k=="number"&&(typeof H=="string"||Array.isArray(H))){var en=H;H=k,k=m,m=en}if(arguments[3]instanceof ze==0?(Ue=arguments[4],De=arguments[5],Ut(Lt=arguments[3])==="object"&&Lt!==null||(typeof Ue=="string"&&(De=Ue,Ue=null),typeof Lt=="string"&&(De=Lt,Lt=null),typeof Lt=="number"&&(Ue=Lt,Lt=null),te={flags:Lt,angle:Ue,align:De})):(F("The transform parameter of text() with a Matrix value"),Vt=le),isNaN(k)||isNaN(H)||m==null)throw new Error("Invalid arguments passed to jsPDF.text");if(m.length===0)return Ht;var dn,hn="",ar=typeof te.lineHeightFactor=="number"?te.lineHeightFactor:fs,Po=Ht.internal.scaleFactor;function oc(Zt){return Zt=Zt.split(" ").join(Array(te.TabLen||9).join(" ")),ui(Zt,Lt)}function ps(Zt){for(var Xt,An=Zt.concat(),Fn=[],Ro=An.length;Ro--;)typeof(Xt=An.shift())=="string"?Fn.push(Xt):Array.isArray(Zt)&&(Xt.length===1||Xt[1]===void 0&&Xt[2]===void 0)?Fn.push(Xt[0]):Fn.push([Xt[0],Xt[1],Xt[2]]);return Fn}function ms(Zt,Xt){var An;if(typeof Zt=="string")An=Xt(Zt)[0];else if(Array.isArray(Zt)){for(var Fn,Ro,fc=Zt.concat(),Pl=[],fd=fc.length;fd--;)typeof(Fn=fc.shift())=="string"?Pl.push(Xt(Fn)[0]):Array.isArray(Fn)&&typeof Fn[0]=="string"&&(Ro=Xt(Fn[0],Fn[1],Fn[2]),Pl.push([Ro[0],Ro[1],Ro[2]]));An=Pl}return An}var oa=!1,gs=!0;if(typeof m=="string")oa=!0;else if(Array.isArray(m)){var _l=m.concat();Se=[];for(var Sl,sr=_l.length;sr--;)(typeof(Sl=_l.shift())!="string"||Array.isArray(Sl)&&typeof Sl[0]!="string")&&(gs=!1);oa=gs}if(oa===!1)throw new Error('Type of text must be string or Array. "'+m+'" is not recognized.');typeof m=="string"&&(m=m.match(/[\r?\n]/)?m.split(/\r\n|\r|\n/g):[m]);var vs=Ne/Ht.internal.scaleFactor,ys=vs*(ar-1);switch(te.baseline){case"bottom":H-=ys;break;case"top":H+=vs-ys;break;case"hanging":H+=vs-2*ys;break;case"middle":H+=vs/2-ys}if((ft=te.maxWidth||0)>0&&(typeof m=="string"?m=Ht.splitTextToSize(m,ft):Object.prototype.toString.call(m)==="[object Array]"&&(m=m.reduce(function(Zt,Xt){return Zt.concat(Ht.splitTextToSize(Xt,ft))},[]))),ye={text:m,x:k,y:H,options:te,mutex:{pdfEscape:ui,activeFontKey:qe,fonts:at,activeFontSize:Ne}},Ot.publish("preProcessText",ye),m=ye.text,Ue=(te=ye.options).angle,Vt instanceof ze==0&&Ue&&typeof Ue=="number"){Ue*=Math.PI/180,te.rotationDirection===0&&(Ue=-Ue),A===_&&(Ue=-Ue);var ac=Math.cos(Ue),eo=Math.sin(Ue);Vt=new ze(ac,eo,-eo,ac,0,0)}else Ue&&Ue instanceof ze&&(Vt=Ue);A!==_||Vt||(Vt=Yn),(ut=te.charSpace||wl)!==void 0&&(hn+=q(Y(ut))+` Tc 206`,this.setCharSpace(this.getCharSpace()||0)),(In=te.horizontalScale)!==void 0&&(hn+=q(100*In)+` Tz 207`),te.lang;var br=-1,ud=te.renderingMode!==void 0?te.renderingMode:te.stroke,Nl=Ht.internal.getCurrentPageInfo().pageContext;switch(ud){case 0:case!1:case"fill":br=0;break;case 1:case!0:case"stroke":br=1;break;case 2:case"fillThenStroke":br=2;break;case 3:case"invisible":br=3;break;case 4:case"fillAndAddForClipping":br=4;break;case 5:case"strokeAndAddPathForClipping":br=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":br=6;break;case 7:case"addToPathForClipping":br=7}var cd=Nl.usedRenderingMode!==void 0?Nl.usedRenderingMode:-1;br!==-1?hn+=br+` Tr 208`:cd!==-1&&(hn+=`0 Tr 209`),br!==-1&&(Nl.usedRenderingMode=br),De=te.align||"left";var ci,ws=Ne*ar,sc=Ht.internal.pageSize.getWidth(),Al=at[qe];ut=te.charSpace||wl,ft=te.maxWidth||0,Lt=Object.assign({autoencode:!0,noBOM:!0},te.flags);var bs=[],lc=function(Zt){return Ht.getStringUnitWidth(Zt,{font:Al,charSpace:ut,fontSize:Ne,doKerning:!1})*Ne/Po};if(Object.prototype.toString.call(m)==="[object Array]"){var xr;Se=ps(m),De!=="left"&&(ci=Se.map(lc));var Rr,kl=0;if(De==="right"){k-=ci[0],m=[],sr=Se.length;for(var aa=0;aa<sr;aa++)aa===0?(Rr=ko(k),xr=Eo(H)):(Rr=Y(kl-ci[aa]),xr=-ws),m.push([Se[aa],Rr,xr]),kl=ci[aa]}else if(De==="center"){k-=ci[0]/2,m=[],sr=Se.length;for(var sa=0;sa<sr;sa++)sa===0?(Rr=ko(k),xr=Eo(H)):(Rr=Y((kl-ci[sa])/2),xr=-ws),m.push([Se[sa],Rr,xr]),kl=ci[sa]}else if(De==="left"){m=[],sr=Se.length;for(var El=0;El<sr;El++)m.push(Se[El])}else if(De==="justify"&&Al.encoding==="Identity-H"){m=[],sr=Se.length,ft=ft!==0?ft:sc;for(var xs=0,On=0;On<sr;On++)if(xr=On===0?Eo(H):-ws,Rr=On===0?ko(k):xs,On<sr-1){var N1=Y((ft-ci[On])/(Se[On].split(" ").length-1)),to=Se[On].split(" ");m.push([to[0]+" ",Rr,xr]),xs=0;for(var Ai=1;Ai<to.length;Ai++){var _s=(lc(to[Ai-1]+" "+to[Ai])-lc(to[Ai]))*Po+N1;Ai==to.length-1?m.push([to[Ai],_s,0]):m.push([to[Ai]+" ",_s,0]),xs-=_s}}else m.push([Se[On],Rr,xr]);m.push(["",xs,0])}else{if(De!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(m=[],sr=Se.length,ft=ft!==0?ft:sc,On=0;On<sr;On++){xr=On===0?Eo(H):-ws,Rr=On===0?ko(k):0;var uc=Se[On].split(" ").length-1,cc=uc>0?(ft-ci[On])/uc:0;On<sr-1?bs.push(q(Y(cc))):bs.push(0),m.push([Se[On],Rr,xr])}}}(typeof te.R2L=="boolean"?te.R2L:Xe)===!0&&(m=ms(m,function(Zt,Xt,An){return[Zt.split("").reverse().join(""),Xt,An]})),ye={text:m,x:k,y:H,options:te,mutex:{pdfEscape:ui,activeFontKey:qe,fonts:at,activeFontSize:Ne}},Ot.publish("postProcessText",ye),m=ye.text,dn=ye.mutex.isHex||!1;var Ll=at[qe].encoding;Ll!=="WinAnsiEncoding"&&Ll!=="StandardEncoding"||(m=ms(m,function(Zt,Xt,An){return[oc(Zt),Xt,An]})),Se=ps(m),m=[];for(var Ss,Ns,la,To=Array.isArray(Se[0])?1:0,ua="",Cl=function(Zt,Xt,An){var Fn="";return An instanceof ze?(An=typeof te.angle=="number"?$n(An,new ze(1,0,0,1,Zt,Xt)):$n(new ze(1,0,0,1,Zt,Xt),An),A===_&&(An=$n(new ze(1,0,0,-1,0,0),An)),Fn=An.join(" ")+` Tm 210`):Fn=q(Zt)+" "+q(Xt)+` Td 211`,Fn},lr=0;lr<Se.length;lr++){switch(ua="",To){case 1:la=(dn?"<":"(")+Se[lr][0]+(dn?">":")"),Ss=parseFloat(Se[lr][1]),Ns=parseFloat(Se[lr][2]);break;case 0:la=(dn?"<":"(")+Se[lr]+(dn?">":")"),Ss=ko(k),Ns=Eo(H)}bs!==void 0&&bs[lr]!==void 0&&(ua=bs[lr]+` Tw 212`),lr===0?m.push(ua+Cl(Ss,Ns,Vt)+la):To===0?m.push(ua+la):To===1&&m.push(ua+Cl(Ss,Ns,Vt)+la)}m=To===0?m.join(` Tj 213T* `):m.join(` Tj 214`),m+=` Tj 215`;var no=`BT 216/`;return no+=qe+" "+Ne+` Tf 217`,no+=q(Ne*ar)+` TL 218`,no+=Ji+`
219`,no+=hn,no+=m,U(no+="ET"),g[qe]=!0,Ht};var c1=f.__private__.clip=f.clip=function(m){return U(m==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return c1("evenodd")},f.__private__.discardPath=f.discardPath=function(){return U("n"),this};var Qi=f.__private__.isValidStyle=function(m){var k=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(m)!==-1&&(k=!0),k};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(m){return Qi(m)&&(u=m),this};var nd=f.__private__.getStyle=f.getStyle=function(m){var k=u;switch(m){case"D":case"S":k="S";break;case"F":k="f";break;case"FD":case"DF":k="B";break;case"f":case"f*":case"B":case"B*":k=m}return k},gl=f.close=function(){return U("h"),this};f.stroke=function(){return U("S"),this},f.fill=function(m){return vl("f",m),this},f.fillEvenOdd=function(m){return vl("f*",m),this},f.fillStroke=function(m){return vl("B",m),this},f.fillStrokeEvenOdd=function(m){return vl("B*",m),this};var vl=function(m,k){Ut(k)==="object"?d1(k,m):U(m)},Ju=function(m){m===null||A===_&&m===void 0||(m=nd(m),U(m))};function f1(m,k,H,te,le){var ye=new tu(k||this.boundingBox,H||this.xStep,te||this.yStep,this.gState,le||this.matrix);ye.stream=this.stream;var Se=m+"$$"+this.cloneIndex+++"$$";return un(Se,ye),ye}var d1=function(m,k){var H=$t[m.key],te=Qe[H];if(te instanceof Cs)U("q"),U(h1(k)),te.gState&&f.setGState(te.gState),U(m.matrix.toString()+" cm"),U("/"+H+" sh"),U("Q");else if(te instanceof tu){var le=new ze(1,0,0,-1,0,hs());m.matrix&&(le=le.multiply(m.matrix||Yn),H=f1.call(te,m.key,m.boundingBox,m.xStep,m.yStep,le).id),U("q"),U("/Pattern cs"),U("/"+H+" scn"),te.gState&&f.setGState(te.gState),U(k),U("Q")}},h1=function(m){switch(m){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"}},na=f.moveTo=function(m,k){return U(q(Y(m))+" "+q(B(k))+" m"),this},rd=f.lineTo=function(m,k){return U(q(Y(m))+" "+q(B(k))+" l"),this},ra=f.curveTo=function(m,k,H,te,le,ye){return U([q(Y(m)),q(B(k)),q(Y(H)),q(B(te)),q(Y(le)),q(B(ye)),"c"].join(" ")),this};f.__private__.line=f.line=function(m,k,H,te,le){if(isNaN(m)||isNaN(k)||isNaN(H)||isNaN(te)||!Qi(le))throw new Error("Invalid arguments passed to jsPDF.line");return A===b?this.lines([[H-m,te-k]],m,k,[1,1],le||"S"):this.lines([[H-m,te-k]],m,k,[1,1]).stroke()},f.__private__.lines=f.lines=function(m,k,H,te,le,ye){var Se,Ue,De,ut,ft,Lt,In,Vt,Ht,en,dn,hn;if(typeof m=="number"&&(hn=H,H=k,k=m,m=hn),te=te||[1,1],ye=ye||!1,isNaN(k)||isNaN(H)||!Array.isArray(m)||!Array.isArray(te)||!Qi(le)||typeof ye!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(na(k,H),Se=te[0],Ue=te[1],ut=m.length,en=k,dn=H,De=0;De<ut;De++)(ft=m[De]).length===2?(en=ft[0]*Se+en,dn=ft[1]*Ue+dn,rd(en,dn)):(Lt=ft[0]*Se+en,In=ft[1]*Ue+dn,Vt=ft[2]*Se+en,Ht=ft[3]*Ue+dn,en=ft[4]*Se+en,dn=ft[5]*Ue+dn,ra(Lt,In,Vt,Ht,en,dn));return ye&&gl(),Ju(le),this},f.path=function(m){for(var k=0;k<m.length;k++){var H=m[k],te=H.c;switch(H.op){case"m":na(te[0],te[1]);break;case"l":rd(te[0],te[1]);break;case"c":ra.apply(this,te);break;case"h":gl()}}return this},f.__private__.rect=f.rect=function(m,k,H,te,le){if(isNaN(m)||isNaN(k)||isNaN(H)||isNaN(te)||!Qi(le))throw new Error("Invalid arguments passed to jsPDF.rect");return A===b&&(te=-te),U([q(Y(m)),q(B(k)),q(Y(H)),q(Y(te)),"re"].join(" ")),Ju(le),this},f.__private__.triangle=f.triangle=function(m,k,H,te,le,ye,Se){if(isNaN(m)||isNaN(k)||isNaN(H)||isNaN(te)||isNaN(le)||isNaN(ye)||!Qi(Se))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[H-m,te-k],[le-H,ye-te],[m-le,k-ye]],m,k,[1,1],Se,!0),this},f.__private__.roundedRect=f.roundedRect=function(m,k,H,te,le,ye,Se){if(isNaN(m)||isNaN(k)||isNaN(H)||isNaN(te)||isNaN(le)||isNaN(ye)||!Qi(Se))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ue=4/3*(Math.SQRT2-1);return le=Math.min(le,.5*H),ye=Math.min(ye,.5*te),this.lines([[H-2*le,0],[le*Ue,0,le,ye-ye*Ue,le,ye],[0,te-2*ye],[0,ye*Ue,-le*Ue,ye,-le,ye],[2*le-H,0],[-le*Ue,0,-le,-ye*Ue,-le,-ye],[0,2*ye-te],[0,-ye*Ue,le*Ue,-ye,le,-ye]],m+le,k,[1,1],Se,!0),this},f.__private__.ellipse=f.ellipse=function(m,k,H,te,le){if(isNaN(m)||isNaN(k)||isNaN(H)||isNaN(te)||!Qi(le))throw new Error("Invalid arguments passed to
219jsPDF.ellipse");var ye=4/3*(Math.SQRT2-1)*H,Se=4/3*(Math.SQRT2-1)*te;return na(m+H,k),ra(m+H,k-Se,m+ye,k-te,m,k-te),ra(m-ye,k-te,m-H,k-Se,m-H,k),ra(m-H,k+Se,m-ye,k+te,m,k+te),ra(m+ye,k+te,m+H,k+Se,m+H,k),Ju(le),this},f.__private__.circle=f.circle=function(m,k,H,te){if(isNaN(m)||isNaN(k)||isNaN(H)||!Qi(te))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(m,k,H,H,te)},f.setFont=function(m,k,H){return H&&(k=V(k,H)),qe=Jf(m,k,{disableWarning:!1}),this};var p1=f.__private__.getFont=f.getFont=function(){return at[Jf.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var m,k,H={};for(m in mt)if(mt.hasOwnProperty(m))for(k in H[m]=[],mt[m])mt[m].hasOwnProperty(k)&&H[m].push(k);return H},f.addFont=function(m,k,H,te,le){var ye=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ye.indexOf(arguments[3])!==-1?le=arguments[3]:arguments[3]&&ye.indexOf(arguments[3])==-1&&(H=V(H,te)),Yf.call(this,m,k,H,le=le||"Identity-H")};var fs,it=e.lineWidth||.200025,m1=f.__private__.getLineWidth=f.getLineWidth=function(){return it},g1=f.__private__.setLineWidth=f.setLineWidth=function(m){return it=m,U(q(Y(m))+" w"),this};f.__private__.setLineDash=Ye.API.setLineDash=Ye.API.setLineDashPattern=function(m,k){if(m=m||[],k=k||0,isNaN(k)||!Array.isArray(m))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return m=m.map(function(H){return q(Y(H))}).join(" "),k=q(Y(k)),U("["+m+"] "+k+" d"),this};var v1=f.__private__.getLineHeight=f.getLineHeight=function(){return Ne*fs};f.__private__.getLineHeight=f.getLineHeight=function(){return Ne*fs};var y1=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(m){return typeof(m=m||1.15)=="number"&&(fs=m),this},w1=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return fs};y1(e.lineHeight);var ko=f.__private__.getHorizontalCoordinate=function(m){return Y(m)},Eo=f.__private__.getVerticalCoordinate=function(m){return A===_?m:Ve[z].mediaBox.topRightY-Ve[z].mediaBox.bottomLeftY-Y(m)},b1=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(m){return q(ko(m))},x1=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(m){return q(Eo(m))},yl=e.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return Ki(yl)},f.__private__.setStrokeColor=f.setDrawColor=function(m,k,H,te){return yl=Si({ch1:m,ch2:k,ch3:H,ch4:te,pdfColorType:"draw",precision:2}),U(yl),this};var ec=e.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return Ki(ec)},f.__private__.setFillColor=f.setFillColor=function(m,k,H,te){return ec=Si({ch1:m,ch2:k,ch3:H,ch4:te,pdfColorType:"fill",precision:2}),U(ec),this};var Ji=e.textColor||"0 g",_1=f.__private__.getTextColor=f.getTextColor=function(){return Ki(Ji)};f.__private__.setTextColor=f.setTextColor=function(m,k,H,te){return Ji=Si({ch1:m,ch2:k,ch3:H,ch4:te,pdfColorType:"text",precision:3}),this};var wl=e.charSpace,S1=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(wl||0)};f.__private__.setCharSpace=f.setCharSpace=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return wl=m,this};var tc=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(m){var k=f.CapJoinStyles[m];if(k===void 0)throw new Error("Line cap style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return tc=k,U(k+" J"),this};var ia=0;f.__private__.setLineJoin=f.setLineJoin=function(m){var k=f.CapJoinStyles[m];if(k===void 0)throw new Error("Line join style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ia=k,U(k+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(m){if(m=m||0,isNaN(m))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return U(q(Y(m))+" M"),this},f.GState=xp,f.setGState=function(m){(m=typeof m=="string"?et[st[m]]:nc(null,m)).equals(Yt)||(U("/"+m.id+" gs"),Yt=m)};var nc=function(m,k){if(!m||!st[m]){var H=!1;for(var te in et)if(et.hasOwnProperty(te)&&et[te].equals(k)){H=!0;break}if(H)k=et[te];else{var le="GS"+(Object.keys(et).length+1).toString(10);et[le]=k,k.id=le}return m&&(st[m]=k.id),Ot.publish("addGState",k),k}};f.addGState=function(m,k){return nc(m,k),this},f.saveGraphicsState=function(){return U("q"),Mt.push({key:qe,size:Ne,color:Ji}),this},f.restoreGraphicsState=function(){U("Q");var m=Mt.pop();return qe=m.key,Ne=m.size,Ji=m.color,Yt=null,this},f.setCurrentTransformationMatrix=function(m){return U(m.toString()+" cm"),this},f.comment=function(m){return U("#"+m),this};var ds=function(m,k){var H=m||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return H},set:function(ye){isNaN(ye)||(H=parseFloat(ye))}});var te=k||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return te},set:function(ye){isNaN(ye)||(te=parseFloat(ye))}});var le="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return le},set:function(ye){le=ye.toString()}}),this},rc=function(m,k,H,te){ds.call(this,m,k),this.type="rect";var le=H||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return le},set:function(Se){isNaN(Se)||(le=parseFloat(Se))}});var ye=te||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ye},set:function(Se){isNaN(Se)||(ye=parseFloat(Se))}}),this}
vendor: 43,378 bytes, lines 219-238
219,bl=function(){this.page=gt,this.currentPage=z,this.pages=ve.slice(0),this.pagesContext=Ve.slice(0),this.x=We,this.y=ln,this.matrix=St,this.width=id(z),this.height=Co(z),this.outputDestination=Ce,this.id="",this.objectNumber=-1};bl.prototype.restore=function(){gt=this.page,z=this.currentPage,Ve=this.pagesContext,ve=this.pages,We=this.x,ln=this.y,St=this.matrix,Lo(z,this.width),od(z,this.height),Ce=this.outputDestination};var ic=function(m,k,H,te,le){vn.push(new bl),gt=z=0,ve=[],We=m,ln=k,St=le,Zu([H,te])};for(var xl in f.beginFormObject=function(m,k,H,te,le){return ic(m,k,H,te,le),this},f.endFormObject=function(m){return function(k){if(Et[k])vn.pop().restore();else{var H=new bl,te="Xo"+(Object.keys(lt).length+1).toString(10);H.id=te,Et[k]=te,lt[te]=H,Ot.publish("addFormObject",H),vn.pop().restore()}}(m),this},f.doFormObject=function(m,k){var H=lt[Et[m]];return U("q"),U(k.toString()+" cm"),U("/"+H.id+" Do"),U("Q"),this},f.getFormObject=function(m){var k=lt[Et[m]];return{x:k.x,y:k.y,width:k.width,height:k.height,matrix:k.matrix}},f.save=function(m,k){return m=m||"generated.pdf",(k=k||{}).returnPromise=k.returnPromise||!1,k.returnPromise===!1?(Ls(pl(Xi()),m),typeof Ls.unload=="function"&&ot.setTimeout&&setTimeout(Ls.unload,911),this):new Promise(function(H,te){try{var le=Ls(pl(Xi()),m);typeof Ls.unload=="function"&&ot.setTimeout&&setTimeout(Ls.unload,911),H(le)}catch(ye){te(ye.message)}})},Ye.API)Ye.API.hasOwnProperty(xl)&&(xl==="events"&&Ye.API.events.length?function(m,k){var H,te,le;for(le=k.length-1;le!==-1;le--)H=k[le][0],te=k[le][1],m.subscribe.apply(m,[H].concat(typeof te=="function"?[te]:te))}(Ot,Ye.API.events):f[xl]=Ye.API[xl]);function id(m){return Ve[m].mediaBox.topRightX-Ve[m].mediaBox.bottomLeftX}function Lo(m,k){Ve[m].mediaBox.topRightX=k+Ve[m].mediaBox.bottomLeftX}function Co(m){return Ve[m].mediaBox.topRightY-Ve[m].mediaBox.bottomLeftY}function od(m,k){Ve[m].mediaBox.topRightY=k+Ve[m].mediaBox.bottomLeftY}var ad=f.getPageWidth=function(m){return id(m=m||z)/rt},sd=f.setPageWidth=function(m,k){Lo(m,k*rt)},hs=f.getPageHeight=function(m){return Co(m=m||z)/rt},ld=f.setPageHeight=function(m,k){od(m,k*rt)};return f.internal={pdfEscape:ui,getStyle:nd,getFont:p1,getFontSize:Ie,getCharSpace:S1,getTextColor:_1,getLineHeight:v1,getLineHeightFactor:w1,getLineWidth:m1,write:Te,getHorizontalCoordinate:ko,getVerticalCoordinate:Eo,getCoordinateString:b1,getVerticalCoordinateString:x1,collections:{},newObject:yn,newAdditionalObject:ls,newObjectDeferred:Hn,newObjectDeferredBegin:Zn,getFilters:Ni,putStream:li,events:Ot,scaleFactor:rt,pageSize:{getWidth:function(){return ad(z)},setWidth:function(m){sd(z,m)},getHeight:function(){return hs(z)},setHeight:function(m){ld(z,m)}},encryptionOptions:d,encryption:Xn,getEncryptor:function(m){return d!==null?Xn.encryptor(m,0):function(k){return k}},output:ml,getNumberOfPages:Qf,get pages(){return ve},out:U,f2:P,f3:R,getPageInfo:td,getPageInfoByObjId:l1,getCurrentPageInfo:u1,getPDFVersion:v,Point:ds,Rectangle:rc,Matrix:ze,hasHotfix:Ao},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return ad(z)},set:function(m){sd(z,m)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return hs(z)},set:function(m){ld(z,m)},enumerable:!0,configurable:!0}),(function(m){for(var k=0,H=Ke.length;k<H;k++){var te=Yf.call(this,m[k][0],m[k][1],m[k][2],Ke[k][3],!0);p===!1&&(g[te]=!0);var le=m[k][0].split("-");Kf({id:te,fontName:le[0],fontStyle:le[1]||""})}Ot.publish("addFonts",{fonts:at,dictionary:mt})}).call(f,Ke),qe="F1",Zf(i,n),Ot.publish("initialized"),f}Ul.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Ul.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ul.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},Ul.prototype.processOwnerPassword=function(e,t){return j2(O2(t).substr(0,5),e)},Ul.prototype.encryptor=function(e,t){var n=O2(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return j2(n,r)}},xp.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||Ut(e)!==Ut(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return r===0},Ye.API={events:[]},Ye.version="4.2.1";var _n=Ye.API,mv=1,ul=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Dl=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},nl=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var n=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(n.length===1?"0"+n:n)})},ct=function(e){return e.toFixed(2)},ba=function(e){return e.toFixed(5)};_n.__acroform__={};var qr=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},ub=function(e){return e*mv},ao=function(e){var t=new Z6,n=Fe.internal.getHeight(e)||0,r=Fe.internal.getWidth(e)||0;return t.BBox=[0,0,Number(ct(r)),Number(ct(n))],t},xM=_n.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},_M=_n.__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)},SM=_n.__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},Cn=_n.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return SM(e,t-1)},Pn=_n.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return xM(e,t-1)},Tn=_n.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return _M(e,t-1)},NM=_n.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],o=e[1],a=e[2],s=e[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(o+s)||0,l.upperRight_X=n(i+a)||0,l.upperRight_Y=r(o)||0,[Number(ct(l.lowerLeft_X)),Number(ct(l.lowerLeft_Y)),Number(ct(l.upperRight_X)),Number(ct(l.upperRight_Y))]},AM=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=M2(e,n),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+ct(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var o=ao(e);return o.scope=e.scope,o.stream=t.join(` 220`),o}},M2=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(P){return P.split(` 221`)}):i.map(function(P){return[P]});var o=n,a=Fe.internal.getHeight(e)||0;a=a<0?-a:a;var s=Fe.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(P,R,Y){if(P+1<i.length){var B=R+" "+i[P+1][0];return lh(B,e,Y).width<=s-4}return!1};o++;e:for(;o>0;){t="",o--;var u,d,p=lh("3",e,o).height,g=e.multiline?a-o:(a-p)/2,f=g+=2,S=0,v=0,x=0;if(o<=0){t=`(...) Tj 222`,t+="% Width of Text: "+lh(t,e,o=12).width+", FieldWidth:"+s+` 223`;break}for(var y="",b=0,_=0;_<i.length;_++)if(i.hasOwnProperty(_)){var A=!1;if(i[_].length!==1&&x!==i[_].length-1){if((p+2)*(b+2)+2>a)continue e;y+=i[_][x],A=!0,v=_,_--}else{y=(y+=i[_][x]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var M=parseInt(_),Z=l(M,y,o),V=_>=i.length-1;if(Z&&!V){y+=" ",x=0;continue}if(Z||V){if(V)v=M;else if(e.multiline&&(p+2)*(b+2)+2>a)continue e}else{if(!e.multiline||(p+2)*(b+2)+2>a)continue e;v=M}}for(var q="",F=S;F<=v;F++){var X=i[F];if(e.multiline){if(F===v){q+=X[x]+" ",x=(x+1)%X.length;continue}if(F===S){q+=X[X.length-1]+" ";continue}}q+=X[0]+" "}switch(q=q.substr(q.length-1)==" "?q.substr(0,q.length-1):q,d=lh(q,e,o).width,e.textAlign){case"right":u=s-d-2;break;case"center":u=(s-d)/2;break;default:u=2}t+=ct(u)+" "+ct(f)+` Td 224`,t+="("+ul(q)+`) Tj 225`,t+=-ct(u)+` 0 Td 226`,f=-(o+2),d=0,S=A?v:v+1,b++,y=""}break}return r.text=t,r.fontSize=o,r},lh=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},kM={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},EM=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===n.type&&r.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},LM=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(Vi.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(kM)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");mv=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new X6,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o.objId=void 0,o.hasAnnotation&&EM(o,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(r,i){var o=!r;for(var a in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(a)){var s=r[a],l=[],u=s.Rect;if(s.Rect&&(s.Rect=NM(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=Fe.createDefaultAppearanceStream(s),Ut(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=u,s.hasAppearanceStream&&!s.appearanceStreamContent){var d=AM(s);l.push({key:"AP",value:"<</N "+d+">>"}),i.internal.acroformPlugin.xForms.push(d)}if(s.appearanceStreamContent){var p="";for(var g in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(g)){var f=s.appearanceStreamContent[g];if(p+="/"+g+" ",p+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var a in f)if(f.hasOwnProperty(a)){var S=f[a];typeof S=="function"&&(S=S.call(i,s)),p+="/"+a+" "+S+" ",i.internal.acroformPlugin.xForms.indexOf(S)>=0||i.internal.acroformPlugin.xForms.push(S)}}else typeof(S=f)=="function"&&(S=S.call(i,s)),p+="/"+a+" "+S,i.internal.acroformPlugin.xForms.indexOf(S)>=0||i.internal.acroformPlugin.xForms.push(S);p+=">>"}l.push({key:"AP",value:`<< 227`+p+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:s.objId}),i.internal.out("endobj")}o&&function(v,x){for(var y in v)if(v.hasOwnProperty(y)){var b=y,_=v[y];x.internal.newObjectDeferredBegin(_.objId,!0),Ut(_)==="object"&&typeof _.putStream=="function"&&_.putStream(),delete v[b]}}(i.internal.acroformPlugin.xForms,i)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},Y6=_n.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(a){return a};if(Array.isArray(e)){for(var i="[",o=0;o<e.length;o++)switch(o!==0&&(i+=" "),Ut(e[o])){case"boolean":case"number":case"object":i+=e[o].toString();break;case"string":e[o].substr(0,1)==="/"?i+="/"+nl(e[o].substr(1)):(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),i+="("+ul(r(e[o].toString()))+")")}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},J0=function(e,t,n){var r=function(i){return i};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+ul(r(e))+")"},go=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})};go.prototype.toString=function(){return this.objId+" 0 R"},go.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},go.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 n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:Y6(i,this.objId,this.scope)}):i instanceof go?(i.scope=this.scope,e.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:r,value:i}))}return e};var Z6=function(){go.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};qr(Z6,go);var X6=function(){go.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var n=function(r){return r};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+ul(n(e))+")"}},set:function(n){e=n}})};qr(X6,go);var Vi=function e(){go.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Cn(t,3)},set:function(y){y?this.F=Pn(t,3):this.F=Tn(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');n=y}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(y){r=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(y){r[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(y){r[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(y){r[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(y){r[3]=y}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=y;break;default:throw new Error('Invalid value "'+y+'" 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 _p)return;o="FieldObject"+e.FieldNum++}var y=function(b){return b};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+ul(y(o))+")"},set:function(y){o=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(y){o=y}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(y){a=y}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(y){s=y}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return u===void 0?50/mv:u},set:function(y){u=y}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(y){d=y}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof _p||this instanceof Hs))return J0(p,this.objId,this.scope)},set:function(y){y=y.toString(),p=y}});var g=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof Gn==0?J0(g,this.objId,this.scope):g},set:function(y){y=y.toString(),g=this instanceof Gn==0?y.substr(0,1)==="("?Dl(y.substr(1,y.length-2)):Dl(y):y}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Gn==1?Dl(g.substr(1,g.length-1)):g},set:function(y){y=y.toString(),g=this instanceof Gn==1?"/"+nl(y):y}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Gn==0?J0(f,this.objId,this.scope):f},set:function(y){y=y.toString(),f=this instanceof Gn==0?y.substr(0,1)==="("?Dl(y.substr(1,y.length-2)):Dl(y):y}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Gn==1?Dl(f.substr(1,f.length-1)):f},set:function(y){y=y.toString(),f=this instanceof Gn==1?"/"+nl(y):y}}),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 S,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(y){y=!!y,v=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(S)return S},set:function(y){S=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,1)},set:function(y){y?this.Ff=Pn(this.Ff,1):this.Ff=Tn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,2)},set:function(y){y?this.Ff=Pn(this.Ff,2):this.Ff=Tn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,3)},set:function(y){y?this.Ff=Pn(this.Ff,3):this.Ff=Tn(this.Ff,3)}});var x=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(x!==null)return x},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');x=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(x){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:x=2;break;case"center":case 1:x=1;break;default:x=0}}})};qr(Vi,go);var du=function(){Vi.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Y6(t,this.objId,this.scope)},set:function(n){var r,i;i=[],typeof(r=n)=="string"&&(i=function(o,a,s){s||(s=1);for(var l,u=[];l=a.exec(o);)u.push(l[s]);return u}(r,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,r){for(r=r||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,18)},set:function(n){n?this.Ff=Pn(this.Ff,18):this.Ff=Tn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Pn(this.Ff,19):this.Ff=Tn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,20)},set:function(n){n?(this.Ff=Pn(this.Ff,20),t.sort()):this.Ff=Tn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,22)},set:function(n){n?this.Ff=Pn(this.Ff,22):this.Ff=Tn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,23)},set:function(n){n?this.Ff=Pn(this.Ff,23):this.Ff=Tn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,27)},set:function(n){n?this.Ff=Pn(this.Ff,27):this.Ff=Tn(this.Ff,27)}}),this.hasAppearanceStream=!1};qr(du,Vi);var hu=function(){du.call(this),this.fontName="helvetica",this.combo=!1};qr(hu,du);var pu=function(){hu.call(this),this.combo=!0};qr(pu,hu);var Ih=function(){pu.call(this),this.edit=!0};qr(Ih,pu);var Gn=function(){Vi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,15)},set:function(n){n?this.Ff=Pn(this.Ff,15):this.Ff=Tn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,16)},set:function(n){n?this.Ff=Pn(this.Ff,16):this.Ff=Tn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,17)},set:function(n){n?this.Ff=Pn(this.Ff,17):this.Ff=Tn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,26)},set:function(n){n?this.Ff=Pn(this.Ff,26):this.Ff=Tn(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(o){return o};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,i=[];for(r in i.push("<<"),t)i.push("/"+r+" ("+ul(n(t[r]))+")");return i.push(">>"),i.join(` 228`)}},set:function(n){Ut(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){var r=n==null?"":n.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),e="/"+nl(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+nl(n)}})};qr(Gn,Vi);var Oh=function(){Gn.call(this),this.pushButton=!0};qr(Oh,Gn);var mu=function(){Gn.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:[]}})};qr(mu,Gn);var _p=function(){var e,t;Vi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var o,a=[];for(o in a.push("<<"),r)a.push("/"+o+" ("+ul(i(r[o]))+")");return a.push(">>"),a.join(` 229`)},set:function(i){Ut(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){var o=i==null?"":i.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),n="/"+nl(o)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(i){var o=i==null?"":i.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),n="/"+nl(o)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Fe.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};qr(_p,Vi),mu.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},mu.prototype.createOption=function(e){var t=new _p;return t.Parent=this,t.optionName=e,this.Kids.push(t),CM.call(this.scope,t),t};var jh=function(){Gn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Fe.CheckBox.createAppearanceStream()};qr(jh,Gn);var Hs=function(){Vi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,13)},set:function(t){t?this.Ff=Pn(this.Ff,13):this.Ff=Tn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,21)},set:function(t){t?this.Ff=Pn(this.Ff,21):this.Ff=Tn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,23)},set:function(t){t?this.Ff=Pn(this.Ff,23):this.Ff=Tn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,24)},set:function(t){t?this.Ff=Pn(this.Ff,24):this.Ff=Tn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,25)},set:function(t){t?this.Ff=Pn(this.Ff,25):this.Ff=Tn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,26)},set:function(t){t?this.Ff=Pn(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}})};qr(Hs,Vi);var Mh=function(){Hs.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Cn(this.Ff,14)},set:function(e){e?this.Ff=Pn(this.Ff,14):this.Ff=Tn(this.Ff,14)}}),this.password=!0};qr(Mh,Hs);var Fe={CheckBox:{createAppearanceStream:function(){return{N:{On:Fe.CheckBox.YesNormal},D:{On:Fe.CheckBox.YesPushDown,Off:Fe.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=ao(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),o=M2(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+ct(Fe.internal.getWidth(e))+" "+ct(Fe.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+ct(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(` 230`),t},YesNormal:function(e){var t=ao(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],o=Fe.internal.getHeight(e),a=Fe.internal.getWidth(e),s=M2(e,e.caption);return i.push("1 g"),i.push("0 0 "+ct(a)+" "+ct(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+ct(a-1)+" "+ct(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+ct(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join(` 231`),t},OffPushDown:function(e){var t=ao(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ct(Fe.internal.getWidth(e))+" "+ct(Fe.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 232`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Fe.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Fe.RadioButton.Circle.YesNormal,t.D[e]=Fe.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=ao(e);t.scope=e.scope;var n=[],r=Fe.internal.getWidth(e)<=Fe.internal.getHeight(e)?Fe.internal.getWidth(e)/4:Fe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Fe.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+ba(Fe.internal.getWidth(e)/2)+" "+ba(Fe.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 233`),t},YesPushDown:function(e){var t=ao(e);t.scope=e.scope;var n=[],r=Fe.internal.getWidth(e)<=Fe.internal.getHeight(e)?Fe.internal.getWidth(e)/4:Fe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Fe.internal.Bezier_C).toFixed(5)),a=Number((r*Fe.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+ba(Fe.internal.getWidth(e)/2)+" "+ba(Fe.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+ba(Fe.internal.getWidth(e)/2)+" "+ba(Fe.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 234`),t},OffPushDown:function(e){var t=ao(e);t.scope=e.scope;var n=[],r=Fe.internal.getWidth(e)<=Fe.internal.getHeight(e)?Fe.internal.getWidth(e)/4:Fe.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Fe.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+ba(Fe.internal.getWidth(e)/2)+" "+ba(Fe.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 235`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Fe.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Fe.RadioButton.Cross.YesNormal,t.D[e]=Fe.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=ao(e);t.scope=e.scope;var n=[],r=Fe.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+ct(Fe.internal.getWidth(e)-2)+" "+ct(Fe.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(ct(r.x1.x)+" "+ct(r.x1.y)+" m"),n.push(ct(r.x2.x)+" "+ct(r.x2.y)+" l"),n.push(ct(r.x4.x)+" "+ct(r.x4.y)+" m"),n.push(ct(r.x3.x)+" "+ct(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` 236`),t},YesPushDown:function(e){var t=ao(e);t.scope=e.scope;var n=Fe.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+ct(Fe.internal.getWidth(e))+" "+ct(Fe.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ct(Fe.internal.getWidth(e)-2)+" "+ct(Fe.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ct(n.x1.x)+" "+ct(n.x1.y)+" m"),r.push(ct(n.x2.x)+" "+ct(n.x2.y)+" l"),r.push(ct(n.x4.x)+" "+ct(n.x4.y)+" m"),r.push(ct(n.x3.x)+" "+ct(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(` 237`),t},OffPushDown:function(e){var t=ao(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ct(Fe.internal.getWidth(e))+" "+ct(Fe.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 238`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Fe.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Fe.internal.getWidth(e),n=Fe.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},Fe.internal.getWidth=function(e){var t=0;return Ut(e)==="object"&&(t=ub(e.Rect[2])),t},Fe.internal.getHeight=function(e){var t=0;return Ut(e)==="object"&&(t=ub(e.Rect[3])),t};var CM=_n.addField=function(e){if(LM(this,e),!(e instanceof Vi))throw new Error("Invalid argument passed to jsPDF.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};_n.AcroFormChoiceField=du,_n.AcroFormListBox=hu,_n.AcroFormComboBox=pu,_n.AcroFormEditBox=Ih,_n.AcroFormButton=Gn,_n.AcroFormPushButton=Oh,_n.AcroFormRadioButton=mu,_n.AcroFormCheckBox=jh,_n.AcroFormTextField=Hs,_n.AcroFormPasswordField=Mh,_n.AcroFormAppearance=Fe,_n.AcroForm={ChoiceField:du,ListBox:hu,ComboBox:pu,EditBox:Ih,Button:Gn,PushButton:Oh,RadioButton:mu,CheckBox:jh,TextField:Hs,PasswordField:Mh,Appearance:Fe},Ye.AcroForm={ChoiceField:du,ListBox:hu,ComboBox:pu,EditBox:Ih,Button:Gn,PushButton:Oh,RadioButton:mu,CheckBox:jh,TextField:Hs,PasswordField:Mh,Appearance:Fe};function Q6(e){return e.reduce(function(t,n,r){return t[n]=r,t},{})}(function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(P,R){var Y,B,ie,oe,se,$=n;if((R=R||n)==="RGBA"||P.data!==void 0&&P.data instanceof Uint8ClampedArray&&"height"in P&&"width"in P)return"RGBA";if(Z(P))for(se in r)for(ie=r[se],Y=0;Y<ie.length;Y+=1){for(oe=!0,B=0;B<ie[Y].length;B+=1)if(ie[Y][B]!==void 0&&ie[Y][B]!==P[B]){oe=!1;break}if(oe===!0){$=se;break}}else for(se in r)for(ie=r[se],Y=0;Y<ie.length;Y+=1){for(oe=!0,B=0;B<ie[Y].length;B+=1)if(ie[Y][B]!==void 0&&ie[Y][B]!==P.charCodeAt(B)){oe=!1;break}if(oe===!0){$=se;break}}return $===n&&R!==n&&($=R),$},o=function P(R){for(var Y=this.internal.write,B=this.internal.putStream,ie=(0,this.internal.getFilters)();ie.indexOf("FlateEncode")!==-1;)ie.splice(ie.indexOf("FlateEncode"),1);R.objectId=this.internal.newObject();var oe=[];if(oe.push({key:"Type",value:"/XObject"}),oe.push({key:"Subtype",value:"/Image"}),oe.push({key:"Width",value:R.width}),oe.push({key:"Height",value:R.height}),R.colorSpace===y.INDEXED?oe.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(R.palette.length/3-1)+" "+("sMask"in R&&R.sMask!==void 0?R.objectId+2:R.objectId+1)+" 0 R]"}):(oe.push({key:"ColorSpace",value:"/"+R.colorSpace}),R.colorSpace===y.DEVICE_CMYK&&oe.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),oe.push({key:"BitsPerComponent",value:R.bitsPerComponent}),"decodeParameters"in R&&R.decodeParameters!==void 0&&oe.push({key:"DecodeParms",value:"<<"+R.decodeParameters+">>"}),"transparency"in R&&Array.isArray(R.transparency)&&R.transparency.length>0){for(var se="",$=0,Q=R.transparency.length;$<Q;$++)se+=R.transparency[$]+" "+R.transparency[$]+" ";oe.push({key:"Mask",value:"["+se+"]"})}R.sMask!==void 0&&oe.push({key:"SMask",value:R.objectId+1+" 0 R"});var fe=R.filter!==void 0?["/"+R.filter]:void 0;if(B({data:R.data,additionalKeyValues:oe,alreadyAppliedFilters:fe,objectId:R.objectId}),Y("endobj"),"sMask"in R&&R.sMask!==void 0){var me,C=(me=R.sMaskBitsPerComponent)!==null&&me!==void 0?me:R.bitsPerComponent,z={width:R.width,height:R.height,colorSpace:"DeviceGray",bitsPerComponent:C,data:R.sMask};"filter"in R&&(z.decodeParameters="/Predictor ".concat(R.predictor," /Colors 1 /BitsPerComponent ").concat(C," /Columns ").concat(R.width),z.filter=R.filter),P.call(this,z)}if(R.colorSpace===y.INDEXED){var W=this.internal.newObject();B({data:q(new Uint8Array(R.palette)),objectId:W}),Y("endobj")}},a=function(){var P=this.internal.collections[t+"images"];for(var R in P)o.call(this,P[R])},s=function(){var P,R=this.internal.collections[t+"images"],Y=this.internal.write;for(var B in R)Y("/I"+(P=R[B]).index,P.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))},u=function(){var P=this.internal.collections[t+"images"];return l.call(this),P},d=function(){return Object.keys(this.internal.collections[t+"images"]).length},p=function(P){return typeof e["process"+P.toUpperCase()]=="function"},g=function(P){return Ut(P)==="object"&&P.nodeType===1},f=function(P,R){if(P.nodeName==="IMG"&&P.hasAttribute("src")){var Y=""+P.getAttribute("src");if(Y.indexOf("data:image/")===0)return Rh(unescape(Y).split("base64,").pop());var B=e.loadFile(Y,!0);if(B!==void 0)return B}if(P.nodeName==="CANVAS"){if(P.width===0||P.height===0)throw new Error("Given canvas must have data. Canvas width: "+P.width+", height: "+P.height);var ie;switch(R){case"PNG":ie="image/png";break;case"WEBP":ie="image/webp";break;default:ie="image/jpeg"}return Rh(P.toDataURL(ie,1).split("base64,").pop())}},S=function(P){var R=this.internal.collections[t+"images"];if(R){for(var Y in R)if(P===R[Y].alias)return R[Y]}},v=function(P,R,Y){return P||R||(P=-96,R=-96),P<0&&(P=-1*Y.width*72/P/this.internal.scaleFactor),R<0&&(R=-1*Y.height*72/R/this.internal.scaleFactor),P===0&&(P=R*Y.width/Y.height),R===0&&(R=P*Y.height/Y.width),[P,R]},x=function(P,R,Y,B,ie,oe){var se=v.call(this,Y,B,ie),$=this.internal.getCoordinateString,Q=this.internal.getVerticalCoordinateString,fe=u.call(this);if(Y=se[0],B=se[1],fe[ie.index]=ie,oe){oe*=Math.PI/180;var me=Math.cos(oe),C=Math.sin(oe),z=function(ee){return ee.toFixed(4)},W=[z(me),z(C),z(-1*C),z(me),0,0,"cm"]}this.internal.write("q"),oe?(this.internal.write([1,"0","0",1,$(P),Q(R+B),"cm"].join(" ")),this.internal.write(W.join(" ")),this.internal.write([$(Y),"0","0",$(B),"0","0","cm"].join(" "))):this.internal.write([$(Y),"0","0",$(B),$(P),Q(R+B),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ie.index+" Do"),this.internal.write("Q")},y=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 b=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},_=e.__addimage__.sHashCode=function(P){var R,Y,B=0;if(typeof P=="string")for(Y=P.length,R=0;R<Y;R++)B=(B<<5)-B+P.charCodeAt(R),B|=0;else if(Z(P))for(Y=P.byteLength/2,R=0;R<Y;R++)B=(B<<5)-B+P[R],B|=0;return B},A=e.__addimage__.validateStringAsBase64=function(P){(P=P||"").toString().trim();var R=!0;return P.length===0&&(R=!1),P.length%4!=0&&(R=!1),/^[A-Za-z0-9+/]+$/.test(P.substr(0,P.length-2))===!1&&(R=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(P.substr(-2))===!1&&(R=!1),R},M=e.__addimage__.extractImageFromDataUrl=function(P){if(P==null||!(P=P.trim()).startsWith("data:"))return null;var R=P.indexOf(",");return R<0?null:P.substring(0,R).trim().endsWith("base64")?P.substring(R+1):null};e.__addimage__.isArrayBuffer=function(P){return P instanceof ArrayBuffer};var Z=e.__addimage__.isArrayBufferView=function(P){return P instanceof Int8Array||P instanceof Uint8Array||P instanceof Uint8ClampedArray||P instanceof Int16Array||P instanceof Uint16Array||P instanceof Int32Array||P instanceof Uint32Array||P instanceof Float32Array||P instanceof Float64Array},V=e.__addimage__.binaryStringToUint8Array=function(P){for(var R=P.length,Y=new Uint8Array(R),B=0;B<R;B++)Y[B]=P.charCodeAt(B);return Y},q=e.__addimage__.arrayBufferToBinaryString=function(P){for(var R="",Y=Z(P)?P:new Uint8Array(P),B=0;B<Y.length;B+=8192)R+=String.fromCharCode.apply(null,Y.subarray(B,B+8192));return R};e.addImage=function(){var P,R,Y,B,ie,oe,se,$,Q;if(typeof arguments[1]=="number"?(R=n,Y=arguments[1],B=arguments[2],ie=arguments[3],oe=arguments[4],se=arguments[5],$=arguments[6],Q=arguments[7]):(R=arguments[1],Y=arguments[2],B=arguments[3],ie=arguments[4],oe=arguments[5],se=arguments[6],$=arguments[7],Q=arguments[8]),Ut(P=arguments[0])==="object"&&!g(P)&&"imageData"in P){var fe=P;P=fe.imageData,R=fe.format||R||n,Y=fe.x||Y||0,B=fe.y||B||0,ie=fe.w||fe.width||ie,oe=fe.h||fe.height||oe,se=fe.alias||se,$=fe.compression||$,Q=fe.rotation||fe.angle||Q}var me=this.internal.getFilters();if($===void 0&&me.indexOf("FlateEncode")!==-1&&($="SLOW"),isNaN(Y)||isNaN(B))throw new Error("Invalid coordinates passed to
238jsPDF.addImage");l.call(this);var C=F.call(this,P,R,se,$);return x.call(this,Y,B,ie,oe,C,Q),this};var F=function(P,R,Y,B){var ie,oe,se;if(typeof P=="string"&&i(P)===n){P=unescape(P);var $=X(P,!1);($!==""||($=e.loadFile(P,!0))!==void 0)&&(P=$)}if(g(P)&&(P=f(P,R)),R=i(P,R),!p(R))throw new Error("addImage does not support files of type '"+R+"', please ensure that a plugin for '"+R+"' support is added.");if(((se=Y)==null||se.length===0)&&(Y=function(Q){return typeof Q=="string"||Z(Q)?_(Q):Z(Q.data)?_(Q.data):null}(P)),(ie=S.call(this,Y))||(P instanceof Uint8Array||R==="RGBA"||(oe=P,P=V(P)),ie=this["process"+R.toUpperCase()](P,d.call(this),Y,function(Q){return Q&&typeof Q=="string"&&(Q=Q.toUpperCase()),Q in e.image_compression?Q:b.NONE}(B),oe)),!ie)throw new Error("An unknown error occurred whilst processing the image.");return ie},X=e.__addimage__.convertBase64ToBinaryString=function(P,R){R=typeof R!="boolean"||R;var Y,B="";if(typeof P=="string"){var ie;Y=(ie=M(P))!==null&&ie!==void 0?ie:P;try{B=Rh(Y)}catch(oe){if(R)throw A(Y)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+oe.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return B};e.getImageProperties=function(P){var R,Y,B="";if(g(P)&&(P=f(P)),typeof P=="string"&&i(P)===n&&((B=X(P,!1))===""&&(B=e.loadFile(P)||""),P=B),Y=i(P),!p(Y))throw new Error("addImage does not support files of type '"+Y+"', please ensure that a plugin for '"+Y+"' support is added.");if(P instanceof Uint8Array||(P=V(P)),!(R=this["process"+Y.toUpperCase()](P)))throw new Error("An unknown error occurred whilst processing the image");return R.fileType=Y,R}})(Ye.API),function(e){var t=function(n){if(n!==void 0&&n!="")return!0};Ye.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var r,i,o,a=this.internal.getCoordinateString,
vendor: 25,139 bytes, lines 238-262
238s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(n.objId),u=n.pageContext.annotations,d=!1,p=0;p<u.length&&!d;p++)switch((r=u[p]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var g=0;g<u.length;g++){r=u[g];var f=this.internal.pdfEscape,S=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var v=this.internal.newAdditionalObject(),x=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(v.objId),b=r.title||"Note";o="<</Type /Annot /Subtype /Text "+(i="/Rect ["+a(r.bounds.x)+" "+s(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y)+"] ")+"/Contents ("+f(y(r.contents))+")",o+=" /Popup "+x.objId+" 0 R",o+=" /P "+l.objId+" 0 R",o+=" /T ("+f(y(b))+") >>",v.content=o;var _=v.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+a(r.bounds.x+30)+" "+s(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w+30)+" "+s(r.bounds.y)+"] ")+" /Parent "+_,r.open&&(o+=" /Open true"),o+=" >>",x.content=o,this.internal.write(v.objId,"0 R",x.objId,"0 R");break;case"freetext":i="/Rect ["+a(r.bounds.x)+" "+s(r.bounds.y)+" "+a(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y+r.bounds.h)+"] ";var A="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");o="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+f(S(r.contents))+")",o+=" /DS("+f(S(A))+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(r.options.name){var M=this.annotations._nameMap[r.options.name];r.options.pageNumber=M.page,r.options.top=M.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",o="",r.options.url)o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+f(S(r.options.url))+") >>";else if(r.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,o+=" /FitV "+r.options.left+"]";break;default:var Z=s(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),o+=" /XYZ "+r.options.left+" "+Z+" "+r.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var r=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":r.pageContext.annotations.push(n)}},e.link=function(n,r,i,o,a){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(n),y:u(r),w:l(n+i),h:u(r+o)},options:a,type:"link"})},e.textWithLink=function(n,r,i,o){var a,s,l=this.getTextWidth(n),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){s=o.maxWidth;var d=this.splitTextToSize(n,s).length;a=Math.ceil(u*d)}else s=l,a=u;return this.text(n,r,i,o),i+=.2*u,o.align==="center"&&(r-=l/2),o.align==="right"&&(r-=l),this.link(r,i-u,s,a,o),l},e.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}}(Ye.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(v){return t[v.charCodeAt(0)]!==void 0},a=e.__arabicParser__.isArabicLetter=function(v){return typeof v=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(v)},s=e.__arabicParser__.isArabicEndLetter=function(v){return a(v)&&o(v)&&t[v.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(v){return a(v)&&i.indexOf(v.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return a(v)&&o(v)&&t[v.charCodeAt(0)].length>=1};var u=e.__arabicParser__.arabicLetterHasFinalForm=function(v){return a(v)&&o(v)&&t[v.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(v){return a(v)&&o(v)&&t[v.charCodeAt(0)].length>=3};var d=e.__arabicParser__.arabicLetterHasMedialForm=function(v){return a(v)&&o(v)&&t[v.charCodeAt(0)].length==4},p=e.__arabicParser__.resolveLigatures=function(v){var x=0,y=n,b="",_=0;for(x=0;x<v.length;x+=1)y[v.charCodeAt(x)]!==void 0?(_++,typeof(y=y[v.charCodeAt(x)])=="number"&&(b+=String.fromCharCode(y),y=n,_=0),x===v.length-1&&(y=n,b+=v.charAt(x-(_-1)),x-=_-1,_=0)):(y=n,b+=v.charAt(x-_),x-=_,_=0);return b};e.__arabicParser__.isArabicDiacritic=function(v){return v!==void 0&&r[v.charCodeAt(0)]!==void 0};var g=e.__arabicParser__.getCorrectForm=function(v,x,y){return a(v)?o(v)===!1?-1:!u(v)||!a(x)&&!a(y)||!a(y)&&s(x)||s(v)&&!a(x)||s(v)&&l(x)||s(v)&&s(x)?0:d(v)&&a(x)&&!s(x)&&a(y)&&u(y)?3:s(v)||!a(y)?1:2:-1},f=function(v){var x=0,y=0,b=0,_="",A="",M="",Z=(v=v||"").split("\\s+"),V=[];for(x=0;x<Z.length;x+=1){for(V.push(""),y=0;y<Z[x].length;y+=1)_=Z[x][y],A=Z[x][y-1],M=Z[x][y+1],a(_)?(b=g(_,A,M),V[x]+=b!==-1?String.fromCharCode(t[_.charCodeAt(0)][b]):_):V[x]+=_;V[x]=p(V[x])}return V.join(" ")},S=e.__arabicParser__.processArabic=e.processArabic=function(){var v,x=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(x)){var b=0;for(y=[],b=0;b<x.length;b+=1)Array.isArray(x[b])?y.push([f(x[b][0]),x[b][1],x[b][2]]):y.push([f(x[b])]);v=y}else v=f(x);return typeof arguments[0]=="string"?v:(arguments[0].text=v,arguments[0])};e.events.push(["preProcessText",S])}(Ye.API),Ye.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},function(e){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(s){n=s}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var 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(n,r){var i;if((n=n||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Ye.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(v){l=v}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(v){u=v}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(v){d=v}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(v){p=v}});var g=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return g},set:function(v){g=v}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(v){f=v}});var S=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return S},set:function(v){S=v}}),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 r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,u){r.call(this);var d=(u=u||{}).fontSize||this.getFontSize(),p=u.font||this.getFont(),g=u.scaleFactor||this.internal.scaleFactor,f=0,S=0,v=0,x=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 y=u.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(_,A){return _.concat(x.splitTextToSize(A,y))},[])):l=Array.isArray(l)?l:[l];for(var b=0;b<l.length;b++)f<(v=this.getStringUnitWidth(l[b],{font:p})*d)&&(f=v);return f!==0&&(S=l.length),{w:f/=g,h:Math.max((S*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/g,0)}},e.cellAddPage=function(){r.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]),r.call(this);var u=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,p=this.internal.__cell__.margins||t,g=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===l.lineNumber?(l.x=(u.x||0)+(u.width||0),l.y=u.y||0):u.y+u.height+l.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=p.top,f&&g&&(this.printHeaderRow(l.lineNumber,!0),l.y+=g[0].height)):l.y=u.y+u.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,n===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-d,l.y+d,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+d,{align:"center",baseline:"top",maxWidth:l.width-d-d}):this.text(l.text,l.x+d,l.y+d,{align:"left",baseline:"top",maxWidth:l.width-d-d})),this.internal.__cell__.lastCell=l,this};e.table=function(l,u,d,p,g){if(r.call(this),!d)throw new Error("No data for PDF table.");var f,S,v,x,y=[],b=[],_=[],A={},M={},Z=[],V=[],q=(g=g||{}).autoSize||!1,F=g.printHeaders!==!1,X=g.css&&g.css["font-size"]!==void 0?16*g.css["font-size"]:g.fontSize||12,P=g.margins||Object.assign({width:this.getPageWidth()},t),R=typeof g.padding=="number"?g.padding:3,Y=g.headerBackgroundColor||"#c8c8c8",B=g.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=F,this.internal.__cell__.margins=P,this.internal.__cell__.table_font_size=X,this.internal.__cell__.padding=R,this.internal.__cell__.headerBackgroundColor=Y,this.internal.__cell__.headerTextColor=B,this.setFontSize(X),p==null)b=y=Object.keys(d[0]),_=y.map(function(){return"left"});else if(Array.isArray(p)&&Ut(p[0])==="object")for(y=p.map(function(fe){return fe.name}),b=p.map(function(fe){return fe.prompt||fe.name||""}),_=p.map(function(fe){return fe.align||"left"}),f=0;f<p.length;f+=1)M[p[f].name]=.7499990551181103*p[f].width;else Array.isArray(p)&&typeof p[0]=="string"&&(b=y=p,_=y.map(function(){return"left"}));if(q||Array.isArray(p)&&typeof p[0]=="string")for(f=0;f<y.length;f+=1){for(A[x=y[f]]=d.map(function(fe){return fe[x]}),this.setFont(void 0,"bold"),Z.push(this.getTextDimensions(b[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),S=A[x],this.setFont(void 0,"normal"),v=0;v<S.length;v+=1)Z.push(this.getTextDimensions(S[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);M[x]=Math.max.apply(null,Z)+R+R,Z=[]}if(F){var ie={};for(f=0;f<y.length;f+=1)ie[y[f]]={},ie[y[f]].text=b[f],ie[y[f]].align=_[f];var oe=s.call(this,ie,M);V=y.map(function(fe){return new o(l,u,M[fe],oe,ie[fe].text,void 0,ie[fe].align)}),this.setTableHeaderRow(V),this.printHeaderRow(1,!1)}var se=p.reduce(function(fe,me){return fe[me.name]=me.align,fe},{});for(f=0;f<d.length;f+=1){"rowStart"in g&&g.rowStart instanceof Function&&g.rowStart({row:f,data:d[f]},this);var $=s.call(this,d[f],M);for(v=0;v<y.length;v+=1){var Q=d[f][y[v]];"cellStart"in g&&g.cellStart instanceof Function&&g.cellStart({row:f,col:v,data:Q},this),a.call(this,new o(l,u,M[y[v]],$,Q,f+2,se[y[v]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=u,this};var s=function(l,u){var d=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,g=this.internal.scaleFactor;return Object.keys(l).map(function(f){var S=l[f];return this.splitTextToSize(S.hasOwnProperty("text")?S.text:S,u[f]-d-d)},this).map(function(f){return this.getLineHeightFactor()*f.length*p/g+d+d},this).reduce(function(f,S){return Math.max(f,S)},0)};e.setTableHeaderRow=function(l){r.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,u){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var g=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){d=this.internal.__cell__.tableHeaderRow[f].clone(),u&&(d.y=this.internal.__cell__.margins.top||0,g.push(d)),d.lineNumber=l;var S=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,d),this.setTextColor(S)}g.length>0&&this.setTableHeaderRow(g),this.setFont(void 0,"normal"),n=!1}}(Ye.API);var J6={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},e8=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],F2=Q6(e8),t8=[100,200,300,400,500,600,700,800,900],PM=Q6(t8);function em(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(o){return J6[o=o||"normal"]?o:"normal"}(e.style),r=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 F2[o=o||"normal"]=="number"?o:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(" ")}}}function cb(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var TM={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},fb={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function db(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function hb(e){return e.trimLeft()}function RM(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function IM(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 Bl,uh,pb,mb,gb,tm=["times"];function vb(e,t,n,r,i){var o=4,a=wb;switch(i){case Ye.API.image_compression.FAST:o=1,a=yb;break;case Ye.API.image_compression.MEDIUM:o=6,a=bb;break;case Ye.API.image_compression.SLOW:o=9,a=xb}e=function(l,u,d,p){for(var g,f=l.length/u,S=new Uint8Array(l.length+f),v=[OM,yb,wb,bb,xb],x=0;x<f;x+=1){var y=x*u,b=l.subarray(y,y+u);if(p)S.set(p(b,d,g),y+x);else{for(var _=v.length,A=[],M=0;M<_;M+=1)A[M]=v[M](b,d,g);var Z=MM(A.concat());S.set(A[Z],y+x)}g=b}return S}(e,t,Math.ceil(n*r/8),a);var s=N2(e,{level:o});return Ye.API.__addimage__.arrayBufferToBinaryString(s)}function OM(e){var t=Array.apply([],e);return t.unshift(0),t}function yb(e,t){var n=e.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var o=e[i-t]||0;r[i+1]=e[i]-o+256&255}return r}function wb(e,t,n){var r=e.length,i=[];i[0]=2;for(var o=0;o<r;o+=1){var a=n&&n[o]||0;i[o+1]=e[o]-a+256&255}return i}function bb(e,t,n){var r=e.length,i=[];i[0]=3;for(var o=0;o<r;o+=1){var a=e[o-t]||0,s=n&&n[o]||0;i[o+1]=e[o]+256-(a+s>>>1)&255}return i}function xb(e,t,n){var r=e.length,i=[];i[0]=4;for(var o=0;o<r;o+=1){var a=jM(e[o-t]||0,n&&n[o]||0,n&&n[o-t]||0);i[o+1]=e[o]-a+256&255}return i}function jM(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),i=Math.abs(e-n),o=Math.abs(e+t-n-n);return r<=i&&r<=o?e:i<=o?t:n}function MM(e){var t=e.map(function(n){return n.reduce(function(r,i){return r+Math.abs(i)},0)});return t.indexOf(Math.min.apply(null,t))}function nm(e,t,n){var r=t*n,i=Math.floor(r/8),o=16-(r-8*i+n),a=(1<<n)-1;return n8(e,i)>>o&a}function _b(e,t,n,r){var i=n*r,o=Math.floor(i/8),a=16-(i-8*o+r),s=(1<<r)-1,l=(t&s)<<a;(function(u,d,p){if(d+1<u.byteLength)u.setUint16(d,p,!1);else{var g=p>>8&255;u.setUint8(d,g)}})(e,o,n8(e,o)&~(s<<a)&65535|l)}function n8(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function FM(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],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 u=!0,d=[],p=0,g=null,f=0,S=null;for(this.width=n,this.height=r;u&&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,S=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((P=e[t++])>=0))throw Error("Invalid block size");if(P===0)break;t+=P}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];p=e[t++]|e[t++]<<8,g=e[t++],1&v||(g=null),f=v>>2&7,t++;break;case 254:for(;;){if(!((P=e[t++])>=0))throw Error("Invalid block size");if(P===0)break;t+=P}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var x=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,A=e[t++],M=A>>6&1,Z=1<<1+(7&A),V=s,q=l,F=!1;A>>7&&(F=!0,V=t,q=Z,t+=3*Z);var X=t;for(t++;;){var P;if(!((P=e[t++])>=0))throw Error("Invalid block size");if(P===0)break;t+=P}d.push({x,y,width:b,height:_,has_local_palette:F,palette_offset:V,palette_size:q,data_offset:X,data_length:t-X,transparent_index:g,interlaced:!!M,delay:p,disposal:f});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return S},this.frameInfo=function(R){if(R<0||R>=d.length)throw new Error("Frame index out of range.");return d[R]},this.decodeAndBlitFrameBGRA=function(R,Y){var B=this.frameInfo(R),ie=B.width*B.height;if(ie>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var oe=new Uint8Array(ie);Sb(e,B.data_offset,oe,ie);var se=B.palette_offset,$=B.transparent_index;$===null&&($=256);var Q=B.width,fe=n-Q,me=Q,C=4*(B.y*n+B.x),z=4*((B.y+B.height)*n+B.x),W=C,ee=4*fe;B.interlaced===!0&&(ee+=4*n*7);for(var ne=8,J=0,ce=oe.length;J<ce;++J){var pe=oe[J];if(me===0&&(me=Q,(W+=ee)>=z&&(ee=4*fe+4*n*(ne-1),W=C+(Q+fe)*(ne<<1),ne>>=1)),pe===$)W+=4;else{var ge=e[se+3*pe],ve=e[se+3*pe+1],ke=e[se+3*pe+2];Y[W++]=ke,Y[W++]=ve,Y[W++]=ge,Y[W++]=255}--me}},this.decodeAndBlitFrameRGBA=function(R,Y){var B=this.frameInfo(R),ie=B.width*B.height;if(ie>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var oe=new Uint8Array(ie);Sb(e,B.data_offset,oe,ie);var se=B.palette_offset,$=B.transparent_index;$===null&&($=256);var Q=B.width,fe=n-Q,me=Q,C=4*(B.y*n+B.x),z=4*((B.y+B.height)*n+B.x),W=C,ee=4*fe;B.interlaced===!0&&(ee+=4*n*7);for(var ne=8,J=0,ce=oe.length;J<ce;++J){var pe=oe[J];if(me===0&&(me=Q,(W+=ee)>=z&&(ee=4*fe+4*n*(ne-1),W=C+(Q+fe)*(ne<<1),ne>>=1)),pe===$)W+=4;else{var ge=e[se+3*pe],ve=e[se+3*pe+1],ke=e[se+3*pe+2];Y[W++]=ge,Y[W++]=ve,Y[W++]=ke,Y[W++]=255}--me}}}function Sb(e,t,n,r){for(var i=e[t++],o=1<<i,a=o+1,s=a+1,l=i+1,u=(1<<l)-1,d=0,p=0,g=0,f=e[t++],S=new Int32Array(4096),v=null;;){for(;d<16&&f!==0;)p|=e[t++]<<d,d+=8,f===1?f=e[t++]:--f;if(d<l)break;var x=p&u;if(p>>=l,d-=l,x!==o){if(x===a)break;for(var y=x<s?x:v,b=0,_=y;_>o;)_=S[_]>>8,++b;var A=_;if(g+b+(y!==x?1:0)>r)return void Kt.log("Warning, gif stream longer than expected.");n[g++]=A;var M=g+=b;for(y!==x&&(n[g++]=A),_=y;b--;)_=S[_],n[--M]=255&_,_>>=8;v!==null&&s<4096&&(S[s++]=v<<8|A,s>=u+1&&l<12&&(++l,u=u<<1|1)),v=x}else s=a+1,u=(1<<(l=i+1))-1,v=null}return g!==r&&Kt.log("Warning, gif stream shorter than expected."),n}/** 239 * @license 240 Copyright (c) 2008, Adobe Systems Incorporated 241 All rights reserved. 242 243 Redistribution and use in source and binary forms, with or without 244 modification, are permitted provided that the following conditions are 245 met: 246 247 * Redistributions of source code must retain the above copyright notice, 248 this list of conditions and the following disclaimer. 249 250 * Redistributions in binary form must reproduce the above copyright 251 notice, this list of conditions and the following disclaimer in the 252 documentation and/or other materials provided with the distribution. 253 254 * Neither the name of Adobe Systems Incorporated nor the names of its 255 contributors may be used to endorse or promote products derived from 256 this software without specific prior written permission. 257 258 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 259 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 260 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 261 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 262 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
vendor: 5,836 bytes, lines 263-269
263 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 264 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 265 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 266 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 267 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 268 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 269*/function rm(e){var t,n,r,i,o,a=Math.floor,s=new Array(64),l=new Array(64),u=new Array(64),d=new Array(64),p=new Array(65535),g=new Array(65535),f=new Array(64),S=new Array(64),v=[],x=0,y=7,b=new Array(64),_=new Array(64),A=new Array(64),M=new Array(256),Z=new Array(2048),V=[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],q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],X=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[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],R=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Y=[0,1,2,3,4,5,6,7,8,9,10,11],B=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ie=[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 oe(C,z){for(var W=0,ee=0,ne=new Array,J=1;J<=16;J++){for(var ce=1;ce<=C[J];ce++)ne[z[ee]]=[],ne[z[ee]][0]=W,ne[z[ee]][1]=J,ee++,W++;W*=2}return ne}function se(C){for(var z=C[0],W=C[1]-1;W>=0;)z&1<<W&&(x|=1<<y),W--,--y<0&&(x==255?($(255),$(0)):$(x),y=7,x=0)}function $(C){v.push(C)}function Q(C){$(C>>8&255),$(255&C)}function fe(C,z,W,ee,ne){for(var J,ce=ne[0],pe=ne[240],ge=function(Ne,Je){var Ie,Xe,Be,It,xt,Ze,pt,_t,qe,rt,We=0;for(qe=0;qe<8;++qe){Ie=Ne[We],Xe=Ne[We+1],Be=Ne[We+2],It=Ne[We+3],xt=Ne[We+4],Ze=Ne[We+5],pt=Ne[We+6];var ln=Ie+(_t=Ne[We+7]),St=Ie-_t,at=Xe+pt,mt=Xe-pt,Mt=Be+Ze,Qe=Be-Ze,$t=It+xt,et=It-xt,st=ln+$t,Yt=ln-$t,gt=at+Mt,Ve=at-Mt;Ne[We]=st+gt,Ne[We+4]=st-gt;var Ot=.707106781*(Ve+Yt);Ne[We+2]=Yt+Ot,Ne[We+6]=Yt-Ot;var tt=.382683433*((st=et+Qe)-(Ve=mt+St)),lt=.5411961*st+tt,Et=1.306562965*Ve+tt,vn=.707106781*(gt=Qe+mt),ze=St+vn,$n=St-vn;Ne[We+5]=$n+lt,Ne[We+3]=$n-lt,Ne[We+1]=ze+Et,Ne[We+7]=ze-Et,We+=8}for(We=0,qe=0;qe<8;++qe){Ie=Ne[We],Xe=Ne[We+8],Be=Ne[We+16],It=Ne[We+24],xt=Ne[We+32],Ze=Ne[We+40],pt=Ne[We+48];var Yn=Ie+(_t=Ne[We+56]),un=Ie-_t,Nn=Xe+pt,yn=Xe-pt,Hn=Be+Ze,Zn=Be-Ze,ls=It+xt,ta=It-xt,_i=Yn+ls,Ki=Yn-ls,Si=Nn+Hn,Ni=Nn-Hn;Ne[We]=_i+Si,Ne[We+32]=_i-Si;var li=.707106781*(Ni+Ki);Ne[We+16]=Ki+li,Ne[We+48]=Ki-li;var us=.382683433*((_i=ta+Zn)-(Ni=yn+un)),Yi=.5411961*_i+us,cs=1.306562965*Ni+us,cl=.707106781*(Si=Zn+yn),fl=un+cl,dl=un-cl;Ne[We+40]=dl+Yi,Ne[We+24]=dl-Yi,Ne[We+8]=fl+cs,Ne[We+56]=fl-cs,We++}for(qe=0;qe<64;++qe)rt=Ne[qe]*Je[qe],f[qe]=rt>0?rt+.5|0:rt-.5|0;return f}(C,z),ve=0;ve<64;++ve)S[V[ve]]=ge[ve];var ke=S[0]-W;W=S[0],ke==0?se(ee[0]):(se(ee[g[J=32767+ke]]),se(p[J]));for(var Ce=63;Ce>0&&S[Ce]==0;)Ce--;if(Ce==0)return se(ce),W;for(var Oe,U=1;U<=Ce;){for(var Te=U;S[U]==0&&U<=Ce;)++U;var nt=U-Te;if(nt>=16){Oe=nt>>4;for(var Ke=1;Ke<=Oe;++Ke)se(pe);nt&=15}J=32767+S[U],se(ne[(nt<<4)+g[J]]),se(p[J]),U++}return Ce!=63&&se(ce),W}function me(C){C=Math.min(Math.max(C,1),100),o!=C&&(function(z){for(var W=[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],ee=0;ee<64;ee++){var ne=a((W[ee]*z+50)/100);ne=Math.min(Math.max(ne,1),255),s[V[ee]]=ne}for(var J=[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],ce=0;ce<64;ce++){var pe=a((J[ce]*z+50)/100);pe=Math.min(Math.max(pe,1),255),l[V[ce]]=pe}for(var ge=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],ve=0,ke=0;ke<8;ke++)for(var Ce=0;Ce<8;Ce++)u[ve]=1/(s[V[ve]]*ge[ke]*ge[Ce]*8),d[ve]=1/(l[V[ve]]*ge[ke]*ge[Ce]*8),ve++}(C<50?Math.floor(5e3/C):Math.floor(200-2*C)),o=C)}this.encode=function(C,z){z&&me(z),v=new Array,x=0,y=7,Q(65496),Q(65504),Q(16),$(74),$(70),$(73),$(70),$(0),$(1),$(1),$(0),Q(1),Q(1),$(0),$(0),function(){Q(65499),Q(132),$(0);for(var Xe=0;Xe<64;Xe++)$(s[Xe]);$(1);for(var Be=0;Be<64;Be++)$(l[Be])}(),function(Xe,Be){Q(65472),Q(17),$(8),Q(Be),Q(Xe),$(3),$(1),$(17),$(0),$(2),$(17),$(1),$(3),$(17),$(1)}(C.width,C.height),function(){Q(65476),Q(418),$(0);for(var Xe=0;Xe<16;Xe++)$(q[Xe+1]);for(var Be=0;Be<=11;Be++)$(F[Be]);$(16);for(var It=0;It<16;It++)$(X[It+1]);for(var xt=0;xt<=161;xt++)$(P[xt]);$(1);for(var Ze=0;Ze<16;Ze++)$(R[Ze+1]);for(var pt=0;pt<=11;pt++)$(Y[pt]);$(17);for(var _t=0;_t<16;_t++)$(B[_t+1]);for(var qe=0;qe<=161;qe++)$(ie[qe])}(),Q(65498),Q(12),$(3),$(1),$(0),$(2),$(17),$(3),$(17),$(0),$(63),$(0);var W=0,ee=0,ne=0;
vendor: 47,085 bytes, lines 269-275
269x=0,y=7,this.encode.displayName="_encode_";for(var J,ce,pe,ge,ve,ke,Ce,Oe,U,Te=C.data,nt=C.width,Ke=C.height,Ne=4*nt,Je=0;Je<Ke;){for(J=0;J<Ne;){for(ve=Ne*Je+J,Ce=-1,Oe=0,U=0;U<64;U++)ke=ve+(Oe=U>>3)*Ne+(Ce=4*(7&U)),Je+Oe>=Ke&&(ke-=Ne*(Je+1+Oe-Ke)),J+Ce>=Ne&&(ke-=J+Ce-Ne+4),ce=Te[ke++],pe=Te[ke++],ge=Te[ke++],b[U]=(Z[ce]+Z[pe+256|0]+Z[ge+512|0]>>16)-128,_[U]=(Z[ce+768|0]+Z[pe+1024|0]+Z[ge+1280|0]>>16)-128,A[U]=(Z[ce+1280|0]+Z[pe+1536|0]+Z[ge+1792|0]>>16)-128;W=fe(b,u,W,t,r),ee=fe(_,d,ee,n,i),ne=fe(A,d,ne,n,i),J+=32}Je+=8}if(y>=0){var Ie=[];Ie[1]=y+1,Ie[0]=(1<<y+1)-1,se(Ie)}return Q(65497),new Uint8Array(v)},e=e||50,function(){for(var C=String.fromCharCode,z=0;z<256;z++)M[z]=C(z)}(),t=oe(q,F),n=oe(R,Y),r=oe(X,P),i=oe(B,ie),function(){for(var C=1,z=2,W=1;W<=15;W++){for(var ee=C;ee<z;ee++)g[32767+ee]=W,p[32767+ee]=[],p[32767+ee][1]=W,p[32767+ee][0]=ee;for(var ne=-(z-1);ne<=-C;ne++)g[32767+ne]=W,p[32767+ne]=[],p[32767+ne][1]=W,p[32767+ne][0]=z-1+ne;C<<=1,z<<=1}}(),function(){for(var C=0;C<256;C++)Z[C]=19595*C,Z[C+256|0]=38470*C,Z[C+512|0]=7471*C+32768,Z[C+768|0]=-11059*C,Z[C+1024|0]=-21709*C,Z[C+1280|0]=32768*C+8421375,Z[C+1536|0]=-27439*C,Z[C+1792|0]=-5329*C}(),me(e)}/** 270 * @license 271 * Copyright (c) 2017 Aras Abbasi 272 * 273 * Licensed under the MIT License. 274 * http://opensource.org/licenses/mit-license 275 */function Ti(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 Nb(e){function t(F){if(!F)throw Error("assert :P")}function n(F,X,P){for(var R=0;4>R;R++)if(F[X+R]!=P.charCodeAt(R))return!0;return!1}function r(F,X,P,R,Y){for(var B=0;B<Y;B++)F[X+B]=P[R+B]}function i(F,X,P,R){for(var Y=0;Y<R;Y++)F[X+Y]=P}function o(F){return new Int32Array(F)}function a(F,X){for(var P=[],R=0;R<F;R++)P.push(new X);return P}function s(F,X){var P=[];return function R(Y,B,ie){for(var oe=ie[B],se=0;se<oe&&(Y.push(ie.length>B+1?[]:new X),!(ie.length<B+1));se++)R(Y[se],B+1,ie)}(P,0,F),P}var l=function(){var F=this;function X(c,h){for(var w=1<<h-1>>>0;c&w;)w>>>=1;return w?(c&w-1)+w:c}function P(c,h,w,N,L){t(!(N%w));do c[h+(N-=w)]=L;while(0<N)}function R(c,h,w,N,L){if(t(2328>=L),512>=L)var T=o(512);else if((T=o(L))==null)return 0;return function(I,j,D,G,re,he){var K,ae,ue=j,we=1<<D,de=o(16),be=o(16);for(t(re!=0),t(G!=null),t(I!=null),t(0<D),ae=0;ae<re;++ae){if(15<G[ae])return 0;++de[G[ae]]}if(de[0]==re)return 0;for(be[1]=0,K=1;15>K;++K){if(de[K]>1<<K)return 0;be[K+1]=be[K]+de[K]}for(ae=0;ae<re;++ae)K=G[ae],0<G[ae]&&(he[be[K]++]=ae);if(be[15]==1)return(G=new Y).g=0,G.value=he[0],P(I,ue,1,we,G),we;var xe,Ee=-1,Ae=we-1,Ge=0,Me=1,yt=1,$e=1<<D;for(ae=0,K=1,re=2;K<=D;++K,re<<=1){if(Me+=yt<<=1,0>(yt-=de[K]))return 0;for(;0<de[K];--de[K])(G=new Y).g=K,G.value=he[ae++],P(I,ue+Ge,re,$e,G),Ge=X(Ge,K)}for(K=D+1,re=2;15>=K;++K,re<<=1){if(Me+=yt<<=1,0>(yt-=de[K]))return 0;for(;0<de[K];--de[K]){if(G=new Y,(Ge&Ae)!=Ee){for(ue+=$e,xe=1<<(Ee=K)-D;15>Ee&&!(0>=(xe-=de[Ee]));)++Ee,xe<<=1;we+=$e=1<<(xe=Ee-D),I[j+(Ee=Ge&Ae)].g=xe+D,I[j+Ee].value=ue-j-Ee}G.g=K-D,G.value=he[ae++],P(I,ue+(Ge>>D),re,$e,G),Ge=X(Ge,K)}}return Me!=2*be[15]-1?0:we}(c,h,w,N,L,T)}function Y(){this.value=this.g=0}function B(){this.value=this.g=0}function ie(){this.G=a(5,Y),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Al,B)}function oe(c,h,w,N){t(c!=null),t(h!=null),t(2147483648>N),c.Ca=254,c.I=0,c.b=-8,c.Ka=0,c.oa=h,c.pa=w,c.Jd=h,c.Yc=w+N,c.Zc=4<=N?w+N-4+1:w,ce(c)}function se(c,h){for(var w=0;0<h--;)w|=ge(c,128)<<h;return w}function $(c,h){var w=se(c,h);return pe(c)?-w:w}function Q(c,h,w,N){var L,T=0;for(t(c!=null),t(h!=null),t(4294967288>N),c.Sb=N,c.Ra=0,c.u=0,c.h=0,4<N&&(N=4),L=0;L<N;++L)T+=h[w+L]<<8*L;c.Ra=T,c.bb=N,c.oa=h,c.pa=w}function fe(c){for(;8<=c.u&&c.bb<c.Sb;)c.Ra>>>=8,c.Ra+=c.oa[c.pa+c.bb]<<xr-8>>>0,++c.bb,c.u-=8;ee(c)&&(c.h=1,c.u=0)}function me(c,h){if(t(0<=h),!c.h&&h<=lc){var w=W(c)&bs[h];return c.u+=h,fe(c),w}return c.h=1,c.u=0}function C(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function z(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function W(c){return c.Ra>>>(c.u&xr-1)>>>0}function ee(c){return t(c.bb<=c.Sb),c.h||c.bb==c.Sb&&c.u>xr}function ne(c,h){c.u=h,c.h=ee(c)}function J(c){c.u>=Rr&&(t(c.u>=Rr),fe(c))}function ce(c){t(c!=null&&c.oa!=null),c.pa<c.Zc?(c.I=(c.oa[c.pa++]|c.I<<8)>>>0,c.b+=8):(t(c!=null&&c.oa!=null),c.pa<c.Yc?(c.b+=8,c.I=c.oa[c.pa++]|c.I<<8):c.Ka?c.b=0:(c.I<<=8,c.b+=8,c.Ka=1))}function pe(c){return se(c,1)}function ge(c,h){var w=c.Ca;0>c.b&&ce(c);var N=c.b,L=w*h>>>8,T=(c.I>>>N>L)+0;for(T?(w-=L,c.I-=L+1<<N>>>0):w=L+1,N=w,L=0;256<=N;)L+=8,N>>=8;return N=7^L+kl[N],c.b-=N,c.Ca=(w<<N)-1,T}function ve(c,h,w){c[h+0]=w>>24&255,c[h+1]=w>>16&255,c[h+2]=w>>8&255,c[h+3]=255&w}function ke(c,h){return c[h+0]|c[h+1]<<8}function Ce(c,h){return ke(c,h)|c[h+2]<<16}function Oe(c,h){return ke(c,h)|ke(c,h+2)<<16}function U(c,h){var w=1<<h;return t(c!=null),t(0<h),c.X=o(w),c.X==null?0:(c.Mb=32-h,c.Xa=h,1)}function Te(c,h){t(c!=null),t(h!=null),t(c.Xa==h.Xa),r(h.X,0,c.X,0,1<<h.Xa)}function nt(){this.X=[],this.Xa=this.Mb=0}function Ke(c,h,w,N){t(w!=null),t(N!=null);var L=w[0],T=N[0];return L==0&&(L=(c*T+h/2)/h),T==0&&(T=(h*L+c/2)/c),0>=L||0>=T?0:(w[0]=L,N[0]=T,1)}function Ne(c,h){return c+(1<<h)-1>>>h}function Je(c,h){return((4278255360&c)+(4278255360&h)>>>0&4278255360)+((16711935&c)+(16711935&h)>>>0&16711935)>>>0}function Ie(c,h){F[h]=function(w,N,L,T,I,j,D){var G;for(G=0;G<I;++G){var re=F[c](j[D+G-1],L,T+G);j[D+G]=Je(w[N+G],re)}}}function Xe(){this.ud=this.hd=this.jd=0}function Be(c,h){return((4278124286&(c^h))>>>1)+(c&h)>>>0}function It(c){return 0<=c&&256>c?c:0>c?0:255<c?255:void 0}function xt(c,h){return It(c+(c-h+.5>>1))}function Ze(c,h,w){return Math.abs(h-w)-Math.abs(c-w)}function pt(c,h,w,N,L,T,I){for(N=T[I-1],w=0;w<L;++w)T[I+w]=N=Je(c[h+w],N)}function _t(c,h,w,N,L){var T;for(T=0;T<w;++T){var I=c[h+T],j=I>>8&255,D=16711935&(D=(D=16711935&I)+((j<<16)+j));N[L+T]=(4278255360&I)+D>>>0}}function qe(c,h){h.jd=255&c,h.hd=c>>8&255,h.ud=c>>16&255}function rt(c,h,w,N,L,T){var I;for(I=0;I<N;++I){var j=h[w+I],D=j>>>8,G=j,re=255&(re=(re=j>>>16)+((c.jd<<24>>24)*(D<<24>>24)>>>5));G=255&(G=(G+=(c.hd<<24>>24)*(D<<24>>24)>>>5)+((c.ud<<24>>24)*(re<<24>>24)>>>5)),L[T+I]=(4278255360&j)+(re<<16)+G}}function We(c,h,w,N,L){F[h]=function(T,I,j,D,G,re,he,K,ae){for(D=he;D<K;++D)for(he=0;he<ae;++he)G[re++]=L(j[N(T[I++])])},F[c]=function(T,I,j,D,G,re,he){var K=8>>T.b,ae=T.Ea,ue=T.K[0],we=T.w;if(8>K)for(T=(1<<T.b)-1,we=(1<<K)-1;I<j;++I){var de,be=0;for(de=0;de<ae;++de)de&T||(be=N(D[G++])),re[he++]=L(ue[be&we]),be>>=K}else F["VP8LMapColor"+w](D,G,ue,we,re,he,I,j,ae)}}function ln(c,h,w,N,L){for(w=h+w;h<w;){var T=c[h++];N[L++]=T>>16&255,N[L++]=T>>8&255,N[L++]=255&T}}function St(c,h,w,N,L){for(w=h+w;h<w;){var T=c[h++];N[L++]=T>>16&255,N[L++]=T>>8&255,N[L++]=255&T,N[L++]=T>>24&255}}function at(c,h,w,N,L){for(w=h+w;h<w;){var T=(I=c[h++])>>16&240|I>>12&15,I=240&I|I>>28&15;N[L++]=T,N[L++]=I}}function mt(c,h,w,N,L){for(w=h+w;h<w;){var T=(I=c[h++])>>16&248|I>>13&7,I=I>>5&224|I>>3&31;N[L++]=T,N[L++]=I}}function Mt(c,h,w,N,L){for(w=h+w;h<w;){var T=c[h++];N[L++]=255&T,N[L++]=T>>8&255,N[L++]=T>>16&255}}function Qe(c,h,w,N,L,T){if(T==0)for(w=h+w;h<w;)ve(N,((T=c[h++])[0]>>24|T[1]>>8&65280|T[2]<<8&16711680|T[3]<<24)>>>0),L+=32;else r(N,L,c,h,w)}function $t(c,h){F[h][0]=F[c+"0"],F[h][1]=F[c+"1"],F[h][2]=F[c+"2"],F[h][3]=F[c+"3"],F[h][4]=F[c+"4"],F[h][5]=F[c+"5"],F[h][6]=F[c+"6"],F[h][7]=F[c+"7"],F[h][8]=F[c+"8"],F[h][9]=F[c+"9"],F[h][10]=F[c+"10"],F[h][11]=F[c+"11"],F[h][12]=F[c+"12"],F[h][13]=F[c+"13"],F[h][14]=F[c+"0"],F[h][15]=F[c+"0"]}function et(c){return c==E1||c==L1||c==vd||c==C1}function st(){this.eb=[],this.size=this.A=this.fb=0}function Yt(){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 gt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new st,this.f.kb=new Yt,this.sd=null}function Ve(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Ot(){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 tt(c){return alert("todo:WebPSamplerProcessPlane"),c.T}function lt(c,h){var w=c.T,N=h.ba.f.RGBA,L=N.eb,T=N.fb+c.ka*N.A,I=di[h.ba.S],j=c.y,D=c.O,G=c.f,re=c.N,he=c.ea,K=c.W,ae=h.cc,ue=h.dc,we=h.Mc,de=h.Nc,be=c.ka,xe=c.ka+c.T,Ee=c.U,Ae=Ee+1>>1;for(be==0?I(j,D,null,null,G,re,he,K,G,re,he,K,L,T,null,null,Ee):(I(h.ec,h.fc,j,D,ae,ue,we,de,G,re,he,K,L,T-N.A,L,T,Ee),++w);be+2<xe;be+=2)ae=G,ue=re,we=he,de=K,re+=c.Rc,K+=c.Rc,T+=2*N.A,I(j,(D+=2*c.fa)-c.fa,j,D,ae,ue,we,de,G,re,he,K,L,T-N.A,L,T,Ee);return D+=c.fa,c.j+xe<c.o?(r(h.ec,h.fc,j,D,Ee),r(h.cc,h.dc,G,re,Ae),r(h.Mc,h.Nc,he,K,Ae),w--):1&xe||I(j,D,null,null,G,re,he,K,G,re,he,K,L,T+N.A,null,null,Ee),w}function Et(c,h,w){var N=c.F,L=[c.J];if(N!=null){var T=c.U,I=h.ba.S,j=I==gd||I==vd;h=h.ba.f.RGBA;var D=[0],G=c.ka;D[0]=c.T,c.Kb&&(G==0?--D[0]:(--G,L[0]-=c.width),c.j+c.ka+c.T==c.o&&(D[0]=c.o-c.j-G));var re=h.eb;G=h.fb+G*h.A,c=xv(N,L[0],c.width,T,D,re,G+(j?0:3),h.A),t(w==D),c&&et(I)&&dc(re,G,j,T,D,h.A)}return 0}function vn(c){var h=c.ma,w=h.ba.S,N=11>w,L=w==pd||w==md||w==gd||w==k1||w==12||et(w);if(h.memory=null,h.Ib=null,h.Jb=null,h.Nd=null,!ci(h.Oa,c,L?11:12))return 0;if(L&&et(w)&&Po(),c.da)alert("todo:use_scaling");else{if(N){if(h.Ib=tt,c.Kb){if(w=c.U+1>>1,h.memory=o(c.U+2*w),h.memory==null)return 0;h.ec=h.memory,h.fc=0,h.cc=h.ec,h.dc=h.fc+c.U,h.Mc=h.cc,h.Nc=h.dc+w,h.Ib=lt,Po()}}else alert("todo:EmitYUV");L&&(h.Jb=Et,N&&hn())}if(N&&!Dv){for(c=0;256>c;++c)S8[c]=89858*(c-128)+wd>>yd,k8[c]=-22014*(c-128)+wd,A8[c]=-45773*(c-128),N8[c]=113618*(c-128)+wd>>yd;for(c=pc;c<R1;++c)h=76283*(c-16)+wd>>yd,E8[c-pc]=Zi(h,255),L8[c-pc]=Zi(h+8>>4,15);Dv=1}return 1}function ze(c){var h=c.ma,w=c.U,N=c.T;return t(!(1&c.ka)),0>=w||0>=N?0:(w=h.Ib(c,h),h.Jb!=null&&h.Jb(c,h,w),h.Dc+=w,1)}function $n(c){c.ma.memory=null}function Yn(c,h,w,N){return me(c,8)!=47?0:(h[0]=me(c,14)+1,w[0]=me(c,14)+1,N[0]=me(c,1),me(c,3)!=0?0:!c.h)}function un(c,h){if(4>c)return c+1;var w=c-2>>1;return(2+(1&c)<<w)+me(h,w)+1}function Nn(c,h){return 120<h?h-120:1<=(w=((w=u8[h-1])>>4)*c+(8-(15&w)))?w:1;var w}function yn(c,h,w){var N=W(w),L=c[h+=255&N].g-8;return 0<L&&(ne(w,w.u+8),N=W(w),h+=c[h].value,h+=N&(1<<L)-1),ne(w,w.u+c[h].g),c[h].value}function Hn(c,h,w){return w.g+=c.g,w.value+=c.value<<h>>>0,t(8>=w.g),c.g}function Zn(c,h,w){var N=c.xc;return t((h=N==0?0:c.vc[c.md*(w>>N)+(h>>N)])<c.Wb),c.Ya[h]}function ls(c,h,w,N){var L=c.ab,T=c.c*h,I=c.C;h=I+h;var j=w,D=N;for(N=c.Ta,w=c.Ua;0<L--;){var G=c.gc[L],re=I,he=h,K=j,ae=D,ue=(D=N,j=w,G.Ea);switch(t(re<he),t(he<=G.nc),G.hc){case 2:El(K,ae,(he-re)*ue,D,j);break;case 0:var we=re,de=he,be=D,xe=j,Ee=($e=G).Ea;we==0&&(aa(K,ae,null,null,1,be,xe),pt(K,ae+1,0,0,Ee-1,be,xe+1),ae+=Ee,xe+=Ee,++we);for(var Ae=1<<$e.b,Ge=Ae-1,Me=Ne(Ee,$e.b),yt=$e.K,$e=$e.w+(we>>$e.b)*Me;we<de;){var At=yt,Dn=$e,wt=1;for(sa(K,ae,be,xe-Ee,1,be,xe);wt<Ee;){var He=(wt&~Ge)+Ae;He>Ee&&(He=Ee),(0,Ai[At[Dn++]>>8&15])(K,ae+ +wt,be,xe+wt-Ee,He-wt,be,xe+wt),wt=He}ae+=Ee,xe+=Ee,++we&Ge||($e+=Me)}he!=G.nc&&r(D,j-ue,D,j+(he-re-1)*ue,ue);break;case 1:for(ue=K,de=ae,Ee=(K=G.Ea)-(xe=K&~(be=(ae=1<<G.b)-1)),we=Ne(K,G.b),Ae=G.K,G=G.w+(re>>G.b)*we;re<he;){for(Ge=Ae,Me=G,yt=new Xe,$e=de+xe,At=de+K;de<$e;)qe(Ge[Me++],yt),_s(yt,ue,de,ae,D,j),de+=ae,j+=ae;de<At&&(qe(Ge[Me++],yt),_s(yt,ue,de,Ee,D,j),de+=Ee,j+=Ee),++re&be||(G+=we)}break;case 3:if(K==D&&ae==j&&0<G.b){for(de=D,K=ue=j+(he-re)*ue-(xe=(he-re)*Ne(G.Ea,G.b)),ae=D,be=j,we=[],xe=(Ee=xe)-1;0<=xe;--xe)we[xe]=ae[be+xe];for(xe=Ee-1;0<=xe;--xe)de[K+xe]=we[xe];xs(G,re,he,D,ue,D,j)}else xs(G,re,he,K,ae,D,j)}j=N,D=w}D!=w&&r(N,w,j,D,T)}function ta(c,h){var w=c.V,N=c.Ba+c.c*c.C,L=h-c.C;if(t(h<=c.l.o),t(16>=L),0<L){var T=c.l,I=c.Ta,j=c.Ua,D=T.width;if(ls(c,L,w,N),L=j=[j],t((w=c.C)<(N=h)),t(T.v<T.va),N>T.o&&(N=T.o),w<T.j){var G=T.j-w;w=T.j,L[0]+=G*D}if(w>=N?w=0:(L[0]+=4*T.v,T.ka=w-T.j,T.U=T.va-T.v,T.T=N-w,w=1),w){if(j=j[0],11>(w=c.ca).S){var re=w.f.RGBA,he=(N=w.S,L=T.U,T=T.T,G=re.eb,re.A),K=T;for(re=re.fb+c.Ma*re.A;0<K--;){var ae=I,ue=j,we=L,de=G,be=re;switch(N){case hd:uc(ae,ue,we,de,be);break;case pd:cc(ae,ue,we,de,be);break;case E1:cc(ae,ue,we,de,be),dc(de,be,0,we,1,0);break;case Lv:Ns(ae,ue,we,de,be);break;case md:Qe(ae,ue,we,de,be,1);break;case L1:Qe(ae,ue,we,de,be,1),dc(de,be,0,we,1,0);break;case gd:Qe(ae,ue,we,de,be,0);break;case vd:Qe(ae,ue,we,de,be,0),dc(de,be,1,we,1,0);break;case k1:Ll(ae,ue,we,de,be);break;case C1:Ll(ae,ue,we,de,be),bv(de,be,we,1,0);break;case Cv:Ss(ae,ue,we,de,be);break;default:t(0)}j+=D,re+=he}c.Ma+=T}else alert("todo:EmitRescaledRowsYUVA");t(c.Ma<=w.height)}}c.C=h,t(c.C<=c.i)}function _i(c){var h;if(0<c.ua)return 0;for(h=0;h<c.Wb;++h){var w=c.Ya[h].G,N=c.Ya[h].H;if(0<w[1][N[1]+0].g||0<w[2][N[2]+0].g||0<w[3][N[3]+0].g)return 0}return 1}function Ki(c,h,w,N,L,T){if(c.Z!=0){var I=c.qd,j=c.rd;for(t(fa[c.Z]!=null);h<w;++h)fa[c.Z](I,j,N,L,N,L,T),I=N,j=L,L+=T;c.qd=I,c.rd=j}}function Si(c,h){var w=c.l.ma,N=w.Z==0||w.Z==1?c.l.j:c.C;if(N=c.C<N?N:c.C,t(h<=c.l.o),h>N){var L=c.l.width,T=w.ca,I=w.tb+L*N,j=c.V,D=c.Ba+c.c*N,G=c.gc;t(c.ab==1),t(G[0].hc==3),N1(G[0],N,h,j,D,T,I),Ki(w,N,h,T,I,L)}c.C=c.Ma=h}function Ni(c,h,w,N,L,T,I){var j=c.$/N,D=c.$%N,G=c.m,re=c.s,he=w+c.$,K=he;L=w+N*L;var ae=w+N*T,ue=280+re.ua,we=c.Pb?j:16777216,de=0<re.ua?re.Wa:null,be=re.wc,xe=he<ae?Zn(re,D,j):null;t(c.C<T),t(ae<=L);var Ee=!1;e:for(;;){for(;Ee||he<ae;){var Ae=0;if(j>=we){var Ge=he-w;t((we=c).Pb),we.wd=we.m,we.xd=Ge,0<we.s.ua&&Te(we.s.Wa,we.s.vb),we=j+f8}if(D&be||(xe=Zn(re,D,j)),t(xe!=null),xe.Qb&&(h[he]=xe.qb,Ee=!0),!Ee)if(J(G),xe.jc){Ae=G,Ge=h;var Me=he,yt=xe.pd[W(Ae)&Al-1];t(xe.jc),256>yt.g?(ne(Ae,Ae.u+yt.g),Ge[Me]=yt.value,Ae=0):(ne(Ae,Ae.u+yt.g-256),t(256<=yt.value),Ae=yt.value),Ae==0&&(Ee=!0)}else Ae=yn(xe.G[0],xe.H[0],G);if(G.h)break;if(Ee||256>Ae){if(!Ee)if(xe.nd)h[he]=(xe.qb|Ae<<8)>>>0;else{if(J(G),Ee=yn(xe.G[1],xe.H[1],G),J(G),Ge=yn(xe.G[2],xe.H[2],G),Me=yn(xe.G[3],xe.H[3],G),G.h)break;h[he]=(Me<<24|Ee<<16|Ae<<8|Ge)>>>0}if(Ee=!1,++he,++D>=N&&(D=0,++j,I!=null&&j<=T&&!(j%16)&&I(c,j),de!=null))for(;K<he;)Ae=h[K++],de.X[(506832829*Ae&4294967295)>>>de.Mb]=Ae}else if(280>Ae){if(Ae=un(Ae-256,G),Ge=yn(xe.G[4],xe.H[4],G),J(G),Ge=Nn(N,Ge=un(Ge,G)),G.h)break;if(he-w<Ge||L-he<Ae)break e;for(Me=0;Me<Ae;++Me)h[he+Me]=h[he+Me-Ge];for(he+=Ae,D+=Ae;D>=N;)D-=N,++j,I!=null&&j<=T&&!(j%16)&&I(c,j);if(t(he<=L),D&be&&(xe=Zn(re,D,j)),de!=null)for(;K<he;)Ae=h[K++],de.X[(506832829*Ae&4294967295)>>>de.Mb]=Ae}else{if(!(Ae<ue))break e;for(Ee=Ae-280,t(de!=null);K<he;)Ae=h[K++],de.X[(506832829*Ae&4294967295)>>>de.Mb]=Ae;Ae=he,t(!(Ee>>>(Ge=de).Xa)),h[Ae]=Ge.X[Ee],Ee=!0}Ee||t(G.h==ee(G))}if(c.Pb&&G.h&&he<L)t(c.m.h),c.a=5,c.m=c.wd,c.$=c.xd,0<c.s.ua&&Te(c.s.vb,c.s.Wa);else{if(G.h)break e;I!=null&&I(c,j>T?T:j),c.a=0,c.$=he-w}return 1}return c.a=3,0}function li(c){t(c!=null),c.vc=null,c.yc=null,c.Ya=null;var h=c.Wa;h!=null&&(h.X=null),c.vb=null,t(c!=null)}function us(){var c=new Ue;return c==null?null:(c.a=0,c.xb=Rv,$t("Predictor","VP8LPredictors"),$t("Predictor","VP8LPredictors_C"),$t("PredictorAdd","VP8LPredictorsAdd"),$t("PredictorAdd","VP8LPredictorsAdd_C"),El=_t,_s=rt,uc=ln,cc=St,Ll=at,Ss=mt,Ns=Mt,F.VP8LMapColor32b=On,F.VP8LMapColor8b=to,c)}function Yi(c,h,w,N,L){var T=1,I=[c],j=[h],D=N.m,G=N.s,re=null,he=0;e:for(;;){if(w)for(;T&&me(D,1);){var K=I,ae=j,ue=N,we=1,de=ue.m,be=ue.gc[ue.ab],xe=me(de,2);if(ue.Oc&1<<xe)T=0;else{switch(ue.Oc|=1<<xe,be.hc=xe,be.Ea=K[0],be.nc=ae[0],be.K=[null],++ue.ab,t(4>=ue.ab),xe){case 0:case 1:be.b=me(de,3)+2,we=Yi(Ne(be.Ea,be.b),Ne(be.nc,be.b),0,ue,be.K),be.K=be.K[0];break;case 3:var Ee,Ae=me(de,8)+1,Ge=16<Ae?0:4<Ae?1:2<Ae?2:3;if(K[0]=Ne(be.Ea,Ge),be.b=Ge,Ee=we=Yi(Ae,1,0,ue,be.K)){var Me,yt=Ae,$e=be,At=1<<(8>>$e.b),Dn=o(At);if(Dn==null)Ee=0;else{var wt=$e.K[0],He=$e.w;for(Dn[0]=$e.K[0][0],Me=1;Me<1*yt;++Me)Dn[Me]=Je(wt[He+Me],Dn[Me-1]);for(;Me<4*At;++Me)Dn[Me]=0;$e.K[0]=null,$e.K[0]=Dn,Ee=1}}we=Ee;break;case 2:break;default:t(0)}T=we}}if(I=I[0],j=j[0],T&&me(D,1)&&!(T=1<=(he=me(D,4))&&11>=he)){N.a=3;break e}var Re;if(Re=T)t:{var kn,dt,Ct,tn=N,Qn=I,_r=j,wn=he,ur=w,Sr=tn.m,Bn=tn.s,Tt=[null],Dt=1,bn=0,Bt=c8[wn];n:for(;;){if(ur&&me(Sr,1)){var Jn=me(Sr,3)+2,Ei=Ne(Qn,Jn),En=Ne(_r,Jn),Ir=Ei*En;if(!Yi(Ei,En,0,tn,Tt))break n;for(Tt=Tt[0],Bn.xc=Jn,kn=0;kn<Ir;++kn){var Gt=Tt[kn]>>8&65535;Tt[kn]=Gt,Gt>=Dt&&(Dt=Gt+1)}}if(Sr.h)break n;for(dt=0;5>dt;++dt){var zn=Pv[dt];!dt&&0<wn&&(zn+=1<<wn),bn<zn&&(bn=zn)}var Wr=a(Dt*Bt,Y),Nr=Dt,Vr=a(Nr,ie);if(Vr==null)var Gr=null;else t(65536>=Nr),Gr=Vr;var Or=o(bn);if(Gr==null||Or==null||Wr==null){tn.a=1;break n}var Kr=Wr;for(kn=Ct=0;kn<Dt;++kn){var Qt=Gr[kn],Yr=Qt.G,Li=Qt.H,As=0,Oo=1,er=0;for(dt=0;5>dt;++dt){zn=Pv[dt],Yr[dt]=Kr,Li[dt]=Ct,!dt&&0<wn&&(zn+=1<<wn);i:{var xd,I1=zn,_d=tn,mc=Or,T8=Kr,R8=Ct,O1=0,da=_d.m,I8=me(da,1);if(i(mc,0,0,I1),I8){var O8=me(da,1)+1,j8=me(da,1),Uv=me(da,j8==0?1:8);mc[Uv]=1,O8==2&&(mc[Uv=me(da,8)]=1);var Sd=1}else{var qv=o(19),$v=me(da,4)+4;if(19<$v){_d.a=3;var Nd=0;break i}for(xd=0;xd<$v;++xd)qv[l8[xd]]=me(da,3);var j1=void 0,gc=void 0,Hv=_d,M8=qv,Ad=I1,Wv=mc,M1=0,ha=Hv.m,Vv=8,Gv=a(128,Y);r:for(;R(Gv,0,7,M8,19);){if(me(ha,1)){var F8=2+2*me(ha,3);if((j1=2+me(ha,F8))>Ad)break r}else j1=Ad;for(gc=0;gc<Ad&&j1--;){J(ha);var Kv=Gv[0+(127&W(ha))];ne(ha,ha.u+Kv.g);var Tl=Kv.value;if(16>Tl)Wv[gc++]=Tl,Tl!=0&&(Vv=Tl);else{var D8=Tl==16,Yv=Tl-16,B8=a8[Yv],Zv=me(ha,o8[Yv])+B8;if(gc+Zv>Ad)break r;for(var z8=D8?Vv:0;0<Zv--;)Wv[gc++]=z8}}M1=1;break r}M1||(Hv.a=3),Sd=M1}(Sd=Sd&&!da.h)&&(O1=R(T8,R8,8,mc,I1)),Sd&&O1!=0?Nd=O1:(_d.a=3,Nd=0)}if(Nd==0)break n;if(Oo&&s8[dt]==1&&(Oo=Kr[Ct].g==0),As+=Kr[Ct].g,Ct+=Nd,3>=dt){var vc,F1=Or[0];for(vc=1;vc<zn;++vc)Or[vc]>F1&&(F1=Or[vc]);er+=F1}}if(Qt.nd=Oo,Qt.Qb=0,Oo&&(Qt.qb=(Yr[3][Li[3]+0].value<<24|Yr[1][Li[1]+0].value<<16|Yr[2][Li[2]+0].value)>>>0,As==0&&256>Yr[0][Li[0]+0].value&&(Qt.Qb=1,Qt.qb+=Yr[0][Li[0]+0].value<<8)),Qt.jc=!Qt.Qb&&6>er,Qt.jc){var kd,jo=Qt;for(kd=0;kd<Al;++kd){var pa=kd,ma=jo.pd[pa],Ed=jo.G[0][jo.H[0]+pa];256<=Ed.value?(ma.g=Ed.g+256,ma.value=Ed.value):(ma.g=0,ma.value=0,pa>>=Hn(Ed,8,ma),pa>>=Hn(jo.G[1][jo.H[1]+pa],16,ma),pa>>=Hn(jo.G[2][jo.H[2]+pa],0,ma),Hn(jo.G[3][jo.H[3]+pa],24,ma))}}}Bn.vc=Tt,Bn.Wb=Dt,Bn.Ya=Gr,Bn.yc=Wr,Re=1;break t}Re=0}if(!(T=Re)){N.a=3;break e}if(0<he){if(G.ua=1<<he,!U(G.Wa,he)){N.a=1,T=0;break e}}else G.ua=0;var D1=N,Xv=I,U8=j,B1=D1.s,z1=B1.xc;if(D1.c=Xv,D1.i=U8,B1.md=Ne(Xv,z1),B1.wc=z1==0?-1:(1<<z1)-1,w){N.xb=y8;break e}if((re=o(I*j))==null){N.a=1,T=0;break e}T=(T=Ni(N,re,0,I,j,j,null))&&!D.h;break e}return T?(L!=null?L[0]=re:(t(re==null),t(w)),N.$=0,w||li(G)):li(G),T}function cs(c,h){var w=c.c*c.i,N=w+h+16*h;return t(c.c<=h),c.V=o(N),c.V==null?(c.Ta=null,c.Ua=0,c.a=1,0):(c.Ta=c.V,c.Ua=c.Ba+w+h,1)}function cl(c,h){var w=c.C,N=h-w,L=c.V,T=c.Ba+c.c*w;for(t(h<=c.l.o);0<N;){var I=16<N?16:N,j=c.l.ma,D=c.l.width,G=D*I,re=j.ca,he=j.tb+D*w,K=c.Ta,ae=c.Ua;ls(c,I,L,T),_v(K,ae,re,he,G),Ki(j,w,w+I,re,he,D),N-=I,L+=I*c.c,w+=I}t(w==h),c.C=c.Ma=h}function fl(){this.ub=this.yd=this.td=this.Rb=0}function dl(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function a1(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Yu(){this.Yb=function(){var c=[];return function h(w,N,L){for(var T=L[N],I=0;I<T&&(w.push(L.length>N+1?[]:0),!(L.length<N+1));I++)h(w[I],N+1,L)}(c,0,[3,11]),c}()}function Kf(){this.jb=o(3),this.Wc=s([4,8],Yu),this.Xc=s([4,17],Yu)}function Yf(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function ui(){this.ld=this.La=this.dd=this.tc=0}function Zu(){this.Na=this.la=0}function Zf(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Xu(){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 Xf(){this.uc=this.M=this.Nb=0,this.wa=Array(new ui),this.Y=0,this.ya=Array(new Xu),this.aa=0,this.l=new hl}function Qf(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Jf(){this.cb=this.a=0,this.sc="",this.m=new C,this.Od=new fl,this.Kc=new dl,this.ed=new Yf,this.Qa=new a1,this.Ic=this.$c=this.Aa=0,this.D=new Xf,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,C),this.ia=0,this.pb=a(4,Zf),this.Pa=new Kf,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Qf),this.Hd=0,this.rb=Array(new Zu),this.sb=0,this.wa=Array(new ui),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 Xu),this.L=this.aa=0,this.gd=s([4,2],ui),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 Zi(c,h){return 0>c?0:c>h?h:c}function hl(){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 s1(){var c=new Jf;return c!=null&&(c.a=0,c.sc="OK",c.cb=0,c.Xb=0,hc||(hc=pl)),c}function Rn(c,h,w){return c.a==0&&(c.a=h,c.sc=w,c.cb=0),0}function ed(c,h,w){return 3<=w&&c[h+0]==157&&c[h+1]==1&&c[h+2]==42}function Xi(c,h){if(c==null)return 0;if(c.a=0,c.sc="OK",h==null)return Rn(c,2,"null VP8Io passed to VP8GetHeaders()");var w=h.data,N=h.w,L=h.ha;if(4>L)return Rn(c,7,"Truncated header.");var T=w[N+0]|w[N+1]<<8|w[N+2]<<16,I=c.Od;if(I.Rb=!(1&T),I.td=T>>1&7,I.yd=T>>4&1,I.ub=T>>5,3<I.td)return Rn(c,3,"Incorrect keyframe parameters.");if(!I.yd)return Rn(c,4,"Frame not displayable.");N+=3,L-=3;var j=c.Kc;if(I.Rb){if(7>L)return Rn(c,7,"cannot parse picture header");if(!ed(w,N,L))return Rn(c,3,"Bad code word");j.c=16383&(w[N+4]<<8|w[N+3]),j.Td=w[N+4]>>6,j.i=16383&(w[N+6]<<8|w[N+5]),j.Ud=w[N+6]>>6,N+=7,L-=7,c.za=j.c+15>>4,c.Ub=j.i+15>>4,h.width=j.c,h.height=j.i,h.Da=0,h.j=0,h.v=0,h.va=h.width,h.o=h.height,h.da=0,h.ib=h.width,h.hb=h.height,h.U=h.width,h.T=h.height,i((T=c.Pa).jb,0,255,T.jb.length),t((T=c.Qa)!=null),T.Cb=0,T.Bb=0,T.Fb=1,i(T.Zb,0,0,T.Zb.length),i(T.Lb,0,0,T.Lb)}if(I.ub>L)return Rn(c,7,"bad partition length");oe(T=c.m,w,N,I.ub),N+=I.ub,L-=I.ub,I.Rb&&(j.Ld=pe(T),j.Kd=pe(T)),j=c.Qa;var D,G=c.Pa;if(t(T!=null),t(j!=null),j.Cb=pe(T),j.Cb){if(j.Bb=pe(T),pe(T)){for(j.Fb=pe(T),D=0;4>D;++D)j.Zb[D]=pe(T)?$(T,7):0;for(D=0;4>D;++D)j.Lb[D]=pe(T)?$(T,6):0}if(j.Bb)for(D=0;3>D;++D)G.jb[D]=pe(T)?se(T,8):255}else j.Bb=0;if(T.Ka)return Rn(c,3,"cannot parse segment header");if((j=c.ed).zd=pe(T),j.Tb=se(T,6),j.wb=se(T,3),j.Pc=pe(T),j.Pc&&pe(T)){for(G=0;4>G;++G)pe(T)&&(j.vd[G]=$(T,6));for(G=0;4>G;++G)pe(T)&&(j.od[G]=$(T,6))}if(c.L=j.Tb==0?0:j.zd?1:2,T.Ka)return Rn(c,3,"cannot parse filter header");var re=L;if(L=D=N,N=D+re,j=re,c.Xb=(1<<se(c.m,2))-1,re<3*(G=c.Xb))w=7;else{for(D+=3*G,j-=3*G,re=0;re<G;++re){var he=w[L+0]|w[L+1]<<8|w[L+2]<<16;he>j&&(he=j),oe(c.Jc[+re],w,D,he),D+=he,j-=he,L+=3}oe(c.Jc[+G],w,D,j),w=D<N?0:5}if(w!=0)return Rn(c,w,"cannot parse partitions");for(w=se(D=c.m,7),L=pe(D)?$(D,4):0,N=pe(D)?$(D,4):0,j=pe(D)?$(D,4):0,G=pe(D)?$(D,4):0,D=pe(D)?$(D,4):0,re=c.Qa,he=0;4>he;++he){if(re.Cb){var K=re.Zb[he];re.Fb||(K+=w)}else{if(0<he){c.pb[he]=c.pb[0];continue}K=w}var ae=c.pb[he];ae.Sc[0]=P1[Zi(K+L,127)],ae.Sc[1]=T1[Zi(K+0,127)],ae.Eb[0]=2*P1[Zi(K+N,127)],ae.Eb[1]=101581*T1[Zi(K+j,127)]>>16,8>ae.Eb[1]&&(ae.Eb[1]=8),ae.Qc[0]=P1[Zi(K+G,117)],ae.Qc[1]=T1[Zi(K+D,127)],ae.lc=K+D}if(!I.Rb)return Rn(c,4,"Not a key frame.");for(pe(T),I=c.Pa,w=0;4>w;++w){for(L=0;8>L;++L)for(N=0;3>N;++N)for(j=0;11>j;++j)G=ge(T,g8[w][L][N][j])?se(T,8):p8[w][L][N][j],I.Wc[w][L].Yb[N][j]=G;for(L=0;17>L;++L)I.Xc[w][L]=I.Wc[w][v8[L]]}return c.kc=pe(T),c.kc&&(c.Bd=se(T,8)),c.cb=1}function pl(c,h,w,N,L,T,I){var j=h[L].Yb[w];for(w=0;16>L;++L){if(!ge(c,j[w+0]))return L;for(;!ge(c,j[w+1]);)if(j=h[++L].Yb[0],w=0,L==16)return 16;var D=h[L+1].Yb;if(ge(c,j[w+2])){var G=c,re=0;if(ge(G,(K=j)[(he=w)+3]))if(ge(G,K[he+6])){for(j=0,he=2*(re=ge(G,K[he+8]))+(K=ge(G,K[he+9+re])),re=0,K=d8[he];K[j];++j)re+=re+ge(G,K[j]);re+=3+(8<<he)}else ge(G,K[he+7])?(re=7+2*ge(G,165),re+=ge(G,145)):re=5+ge(G,159);else re=ge(G,K[he+4])?3+ge(G,K[he+5]):2;j=D[2]}else re=1,j=D[1];D=I+h8[L],0>(G=c).b&&ce(G);var he,K=G.b,ae=(he=G.Ca>>1)-(G.I>>K)>>31;--G.b,G.Ca+=ae,G.Ca|=1,G.I-=(he+1&ae)<<K,T[D]=((re^ae)-ae)*N[(0<L)+0]}return 16}function Qu(c){var h=c.rb[c.sb-1];h.la=0,h.Na=0,i(c.zc,0,0,c.zc.length),c.ja=0}function $r(c,h,w,N,L){L=c[h+w+32*N]+(L>>3),c[h+w+32*N]=-256&L?0>L?0:255:L}function ml(c,h,w,N,L,T){$r(c,h,0,w,N+L),$r(c,h,1,w,N+T),$r(c,h,2,w,N-T),$r(c,h,3,w,N-L)}function Ao(c){return(20091*c>>16)+c}function Xn(c,h,w,N){var L,T=0,I=o(16);for(L=0;4>L;++L){var j=c[h+0]+c[h+8],D=c[h+0]-c[h+8],G=(35468*c[h+4]>>16)-Ao(c[h+12]),re=Ao(c[h+4])+(35468*c[h+12]>>16);I[T+0]=j+re,I[T+1]=D+G,I[T+2]=D-G,I[T+3]=j-re,T+=4,h++}for(L=T=0;4>L;++L)j=(c=I[T+0]+4)+I[T+8],D=c-I[T+8],G=(35468*I[T+4]>>16)-Ao(I[T+12]),$r(w,N,0,0,j+(re=Ao(I[T+4])+(35468*I[T+12]>>16))),$r(w,N,1,0,D+G),$r(w,N,2,0,D-G),$r(w,N,3,0,j-re),T++,N+=32}function td(c,h,w,N){var L=c[h+0]+4,T=35468*c[h+4]>>16,I=Ao(c[h+4]),j=35468*c[h+1]>>16;ml(w,N,0,L+I,c=Ao(c[h+1]),j),ml(w,N,1,L+T,c,j),ml(w,N,2,L-T,c,j),ml(w,N,3,L-I,c,j)}function l1(c,h,w,N,L){Xn(c,h,w,N),L&&Xn(c,h+16,w,N+4)}function u1(c,h,w,N){To(c,h+0,w,N,1),To(c,h+32,w,N+128,1)}function c1(c,h,w,N){var L;for(c=c[h+0]+4,L=0;4>L;++L)for(h=0;4>h;++h)$r(w,N,h,L,c)}function Qi(c,h,w,N){c[h+0]&&lr(c,h+0,w,N),c[h+16]&&lr(c,h+16,w,N+4),c[h+32]&&lr(c,h+32,w,N+128),c[h+48]&&lr(c,h+48,w,N+128+4)}function nd(c,h,w,N){var L,T=o(16);for(L=0;4>L;++L){var I=c[h+0+L]+c[h+12+L],j=c[h+4+L]+c[h+8+L],D=c[h+4+L]-c[h+8+L],G=c[h+0+L]-c[h+12+L];T[0+L]=I+j,T[8+L]=I-j,T[4+L]=G+D,T[12+L]=G-D}for(L=0;4>L;++L)I=(c=T[0+4*L]+3)+T[3+4*L],j=T[1+4*L]+T[2+4*L],D=T[1+4*L]-T[2+4*L],G=c-T[3+4*L],w[N+0]=I+j>>3,w[N+16]=G+D>>3,w[N+32]=I-j>>3,w[N+48]=G-D>>3,N+=64}function gl(c,h,w){var N,L=h-32,T=Hr,I=255-c[L-1];for(N=0;N<w;++N){var j,D=T,G=I+c[h-1];for(j=0;j<w;++j)c[h+j]=D[G+c[L+j]];h+=32}}function vl(c,h){gl(c,h,4)}function Ju(c,h){gl(c,h,8)}function f1(c,h){gl(c,h,16)}function d1(c,h){var w;for(w=0;16>w;++w)r(c,h+32*w,c,h-32,16)}function h1(c,h){var w;for(w=16;0<w;--w)i(c,h,c[h-1],16),h+=32}function na(c,h,w){var N;for(N=0;16>N;++N)i(h,w+32*N,c,16)}function rd(c,h){var w,N=16;for(w=0;16>w;++w)N+=c[h-1+32*w]+c[h+w-32];na(N>>5,c,h)}function ra(c,h){var w,N=8;for(w=0;16>w;++w)N+=c[h-1+32*w];na(N>>4,c,h)}function p1(c,h){var w,N=8;for(w=0;16>w;++w)N+=c[h+w-32];na(N>>4,c,h)}function fs(c,h){na(128,c,h)}function it(c,h,w){return c+2*h+w+2>>2}function m1(c,h){var w,N=h-32;for(N=new Uint8Array([it(c[N-1],c[N+0],c[N+1]),it(c[N+0],c[N+1],c[N+2]),it(c[N+1],c[N+2],c[N+3]),it(c[N+2],c[N+3],c[N+4])]),w=0;4>w;++w)r(c,h+32*w,N,0,N.length)}function g1(c,h){var w=c[h-1],N=c[h-1+32],L=c[h-1+64],T=c[h-1+96];ve(c,h+0,16843009*it(c[h-1-32],w,N)),ve(c,h+32,16843009*it(w,N,L)),ve(c,h+64,16843009*it(N,L,T)),ve(c,h+96,16843009*it(L,T,T))}function v1(c,h){var w,N=4;for(w=0;4>w;++w)N+=c[h+w-32]+c[h-1+32*w];for(N>>=3,w=0;4>w;++w)i(c,h+32*w,N,4)}function y1(c,h){var w=c[h-1+0],N=c[h-1+32],L=c[h-1+64],T=c[h-1-32],I=c[h+0-32],j=c[h+1-32],D=c[h+2-32],G=c[h+3-32];c[h+0+96]=it(N,L,c[h-1+96]),c[h+1+96]=c[h+0+64]=it(w,N,L),c[h+2+96]=c[h+1+64]=c[h+0+32]=it(T,w,N),c[h+3+96]=c[h+2+64]=c[h+1+32]=c[h+0+0]=it(I,T,w),c[h+3+64]=c[h+2+32]=c[h+1+0]=it(j,I,T),c[h+3+32]=c[h+2+0]=it(D,j,I),c[h+3+0]=it(G,D,j)}function w1(c,h){var w=c[h+1-32],N=c[h+2-32],L=c[h+3-32],T=c[h+4-32],I=c[h+5-32],j=c[h+6-32],D=c[h+7-32];c[h+0+0]=it(c[h+0-32],w,N),c[h+1+0]=c[h+0+32]=it(w,N,L),c[h+2+0]=c[h+1+32]=c[h+0+64]=it(N,L,T),c[h+3+0]=c[h+2+32]=c[h+1+64]=c[h+0+96]=it(L,T,I),c[h+3+32]=c[h+2+64]=c[h+1+96]=it(T,I,j),c[h+3+64]=c[h+2+96]=it(I,j,D),c[h+3+96]=it(j,D,D)}function ko(c,h){var w=c[h-1+0],N=c[h-1+32],L=c[h-1+64],T=c[h-1-32],I=c[h+0-32],j=c[h+1-32],D=c[h+2-32],G=c[h+3-32];c[h+0+0]=c[h+1+64]=T+I+1>>1,c[h+1+0]=c[h+2+64]=I+j+1>>1,c[h+2+0]=c[h+3+64]=j+D+1>>1,c[h+3+0]=D+G+1>>1,c[h+0+96]=it(L,N,w),c[h+0+64]=it(N,w,T),c[h+0+32]=c[h+1+96]=it(w,T,I),c[h+1+32]=c[h+2+96]=it(T,I,j),c[h+2+32]=c[h+3+96]=it(I,j,D),c[h+3+32]=it(j,D,G)}function Eo(c,h){var w=c[h+0-32],N=c[h+1-32],L=c[h+2-32],T=c[h+3-32],I=c[h+4-32],j=c[h+5-32],D=c[h+6-32],G=c[h+7-32];c[h+0+0]=w+N+1>>1,c[h+1+0]=c[h+0+64]=N+L+1>>1,c[h+2+0]=c[h+1+64]=L+T+1>>1,c[h+3+0]=c[h+2+64]=T+I+1>>1,c[h+0+32]=it(w,N,L),c[h+1+32]=c[h+0+96]=it(N,L,T),c[h+2+32]=c[h+1+96]=it(L,T,I),c[h+3+32]=c[h+2+96]=it(T,I,j),c[h+3+64]=it(I,j,D),c[h+3+96]=it(j,D,G)}function b1(c,h){var w=c[h-1+0],N=c[h-1+32],L=c[h-1+64],T=c[h-1+96];c[h+0+0]=w+N+1>>1,c[h+2+0]=c[h+0+32]=N+L+1>>1,c[h+2+32]=c[h+0+64]=L+T+1>>1,c[h+1+0]=it(w,N,L),c[h+3+0]=c[h+1+32]=it(N,L,T),c[h+3+32]=c[h+1+64]=it(L,T,T),c[h+3+64]=c[h+2+64]=c[h+0+96]=c[h+1+96]=c[h+2+96]=c[h+3+96]=T}function x1(c,h){var w=c[h-1+0],N=c[h-1+32],L=c[h-1+64],T=c[h-1+96],I=c[h-1-32],j=c[h+0-32],D=c[h+1-32],G=c[h+2-32];c[h+0+0]=c[h+2+32]=w+I+1>>1,c[h+0+32]=c[h+2+64]=N+w+1>>1,c[h+0+64]=c[h+2+96]=L+N+1>>1,c[h+0+96]=T+L+1>>1,c[h+3+0]=it(j,D,G),c[h+2+0]=it(I,j,D),c[h+1+0]=c[h+3+32]=it(w,I,j),c[h+1+32]=c[h+3+64]=it(N,w,I),c[h+1+64]=c[h+3+96]=it(L,N,w),c[h+1+96]=it(T,L,N)}function yl(c,h){var w;for(w=0;8>w;++w)r(c,h+32*w,c,h-32,8)}function ec(c,h){var w;for(w=0;8>w;++w)i(c,h,c[h-1],8),h+=32}function Ji(c,h,w){var N;for(N=0;8>N;++N)i(h,w+32*N,c,8)}function _1(c,h){var w,N=8;for(w=0;8>w;++w)N+=c[h+w-32]+c[h-1+32*w];Ji(N>>4,c,h)}function wl(c,h){var w,N=4;for(w=0;8>w;++w)N+=c[h+w-32];Ji(N>>3,c,h)}function S1(c,h){var w,N=4;for(w=0;8>w;++w)N+=c[h-1+32*w];Ji(N>>3,c,h)}function tc(c,h){Ji(128,c,h)}function ia(c,h,w){var N=c[h-w],L=c[h+0],T=3*(L-N)+A1[1020+c[h-2*w]-c[h+w]],I=dd[112+(T+4>>3)];c[h-w]=Hr[255+N+dd[112+(T+3>>3)]],c[h+0]=Hr[255+L-I]}function nc(c,h,w,N){var L=c[h+0],T=c[h+w];return fi[255+c[h-2*w]-c[h-w]]>N||fi[255+T-L]>N}function ds(c,h,w,N){return 4*fi[255+c[h-w]-c[h+0]]+fi[255+c[h-2*w]-c[h+w]]<=N}function rc(c,h,w,N,L){var T=c[h-3*w],I=c[h-2*w],j=c[h-w],D=c[h+0],G=c[h+w],re=c[h+2*w],he=c[h+3*w];return 4*fi[255+j-D]+fi[255+I-G]>N?0:fi[255+c[h-4*w]-T]<=L&&fi[255+T-I]<=L&&fi[255+I-j]<=L&&fi[255+he-re]<=L&&fi[255+re-G]<=L&&fi[255+G-D]<=L}function bl(c,h,w,N){var L=2*N+1;for(N=0;16>N;++N)ds(c,h+N,w,L)&&ia(c,h+N,w)}function ic(c,h,w,N){var L=2*N+1;for(N=0;16>N;++N)ds(c,h+N*w,1,L)&&ia(c,h+N*w,1)}function xl(c,h,w,N){var L;for(L=3;0<L;--L)bl(c,h+=4*w,w,N)}function id(c,h,w,N){var L;for(L=3;0<L;--L)ic(c,h+=4,w,N)}function Lo(c,h,w,N,L,T,I,j){for(T=2*T+1;0<L--;){if(rc(c,h,w,T,I))if(nc(c,h,w,j))ia(c,h,w);else{var D=c,G=h,re=w,he=D[G-2*re],K=D[G-re],ae=D[G+0],ue=D[G+re],we=D[G+2*re],de=27*(xe=A1[1020+3*(ae-K)+A1[1020+he-ue]])+63>>7,be=18*xe+63>>7,xe=9*xe+63>>7;D[G-3*re]=Hr[255+D[G-3*re]+xe],D[G-2*re]=Hr[255+he+be],D[G-re]=Hr[255+K+de],D[G+0]=Hr[255+ae-de],D[G+re]=Hr[255+ue-be],D[G+2*re]=Hr[255+we-xe]}h+=N}}function Co(c,h,w,N,L,T,I,j){for(T=2*T+1;0<L--;){if(rc(c,h,w,T,I))if(nc(c,h,w,j))ia(c,h,w);else{var D=c,G=h,re=w,he=D[G-re],K=D[G+0],ae=D[G+re],ue=dd[112+(4+(we=3*(K-he))>>3)],we=dd[112+(we+3>>3)],de=ue+1>>1;D[G-2*re]=Hr[255+D[G-2*re]+de],D[G-re]=Hr[255+he+we],D[G+0]=Hr[255+K-ue],D[G+re]=Hr[255+ae-de]}h+=N}}function od(c,h,w,N,L,T){Lo(c,h,w,1,16,N,L,T)}function ad(c,h,w,N,L,T){Lo(c,h,1,w,16,N,L,T)}function sd(c,h,w,N,L,T){var I;for(I=3;0<I;--I)Co(c,h+=4*w,w,1,16,N,L,T)}function hs(c,h,w,N,L,T){var I;for(I=3;0<I;--I)Co(c,h+=4,1,w,16,N,L,T)}function ld(c,h,w,N,L,T,I,j){Lo(c,h,L,1,8,T,I,j),Lo(w,N,L,1,8,T,I,j)}function m(c,h,w,N,L,T,I,j){Lo(c,h,1,L,8,T,I,j),Lo(w,N,1,L,8,T,I,j)}function k(c,h,w,N,L,T,I,j){Co(c,h+4*L,L,1,8,T,I,j),Co(w,N+4*L,L,1,8,T,I,j)}function H(c,h,w,N,L,T,I,j){Co(c,h+4,1,L,8,T,I,j),Co(w,N+4,1,L,8,T,I,j)}function te(){this.ba=new gt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ot,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function le(){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 ye(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Se(){this.ua=0,this.Wa=new nt,this.vb=new nt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ie,this.yc=new Y}function Ue(){this.xb=this.a=0,this.l=new hl,this.ca=new gt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new z,this.Pb=0,this.wd=new z,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Se,this.ab=0,this.gc=a(4,ye),this.Oc=0}function De(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new hl,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ut(c,h,w,N,L,T,I){for(c=c==null?0:c[h+0],h=0;h<I;++h)L[T+h]=c+w[N+h]&255,c=L[T+h]}function ft(c,h,w,N,L,T,I){var j;if(c==null)ut(null,null,w,N,L,T,I);else for(j=0;j<I;++j)L[T+j]=c[h+j]+w[N+j]&255}function Lt(c,h,w,N,L,T,I){if(c==null)ut(null,null,w,N,L,T,I);else{var j,D=c[h+0],G=D,re=D;for(j=0;j<I;++j)G=re+(D=c[h+j])-G,re=w[N+j]+(-256&G?0>G?0:255:G)&255,G=D,L[T+j]=re}}function In(c,h,w,N){var L=h.width,T=h.o;if(t(c!=null&&h!=null),0>w||0>=N||w+N>T)return null;if(!c.Cc){if(c.ga==null){var I;if(c.ga=new De,(I=c.ga==null)||(I=h.width*h.o,t(c.Gb.length==0),c.Gb=o(I),c.Uc=0,c.Gb==null?I=0:(c.mb=c.Gb,c.nb=c.Uc,c.rc=null,I=1),I=!I),!I){I=c.ga;var j=c.Fa,D=c.P,G=c.qc,re=c.mb,he=c.nb,K=D+1,ae=G-1,ue=I.l;if(t(j!=null&&re!=null&&h!=null),fa[0]=null,fa[1]=ut,fa[2]=ft,fa[3]=Lt,I.ca=re,I.tb=he,I.c=h.width,I.i=h.height,t(0<I.c&&0<I.i),1>=G)h=0;else if(I.$a=3&j[D+0],I.Z=j[D+0]>>2&3,I.Lc=j[D+0]>>4&3,D=j[D+0]>>6&3,0>I.$a||1<I.$a||4<=I.Z||1<I.Lc||D)h=0;else if(ue.put=ze,ue.ac=vn,ue.bc=$n,ue.ma=I,ue.width=h.width,ue.height=h.height,ue.Da=h.Da,ue.v=h.v,ue.va=h.va,ue.j=h.j,ue.o=h.o,I.$a)e:{t(I.$a==1),h=us();t:for(;;){if(h==null){h=0;break e}if(t(I!=null),I.mc=h,h.c=I.c,h.i=I.i,h.l=I.l,h.l.ma=I,h.l.width=I.c,h.l.height=I.i,h.a=0,Q(h.m,j,K,ae),!Yi(I.c,I.i,1,h,null)||(h.ab==1&&h.gc[0].hc==3&&_i(h.s)?(I.ic=1,j=h.c*h.i,h.Ta=null,h.Ua=0,h.V=o(j),h.Ba=0,h.V==null?(h.a=1,h=0):h=1):(I.ic=0,h=cs(h,I.c)),!h))break t;h=1;break e}I.mc=null,h=0}else h=ae>=I.c*I.i;I=!h}if(I)return null;c.ga.Lc!=1?c.Ga=0:N=T-w}t(c.ga!=null),t(w+N<=T);e:{if(h=(j=c.ga).c,T=j.l.o,j.$a==0){if(K=c.rc,ae=c.Vc,ue=c.Fa,D=c.P+1+w*h,G=c.mb,re=c.nb+w*h,t(D<=c.P+c.qc),j.Z!=0)for(t(fa[j.Z]!=null),I=0;I<N;++I)fa[j.Z](K,ae,ue,D,G,re,h),K=G,ae=re,re+=h,D+=h;else for(I=0;I<N;++I)r(G,re,ue,D,h),K=G,ae=re,re+=h,D+=h;c.rc=K,c.Vc=ae}else{if(t(j.mc!=null),h=w+N,t((I=j.mc)!=null),t(h<=I.i),I.C>=h)h=1;else if(j.ic||hn(),j.ic){j=I.V,K=I.Ba,ae=I.c;var we=I.i,de=(ue=1,D=I.$/ae,G=I.$%ae,re=I.m,he=I.s,I.$),be=ae*we,xe=ae*h,Ee=he.wc,Ae=de<xe?Zn(he,G,D):null;t(de<=be),t(h<=we),t(_i(he));t:for(;;){for(;!re.h&&de<xe;){if(G&Ee||(Ae=Zn(he,G,D)),t(Ae!=null),J(re),256>(we=yn(Ae.G[0],Ae.H[0],re)))j[K+de]=we,++de,++G>=ae&&(G=0,++D<=h&&!(D%16)&&Si(I,D));else{if(!(280>we)){ue=0;break t}we=un(we-256,re);var Ge,Me=yn(Ae.G[4],Ae.H[4],re);if(J(re),!(de>=(Me=Nn(ae,Me=un(Me,re)))&&be-de>=we)){ue=0;break t}for(Ge=0;Ge<we;++Ge)j[K+de+Ge]=j[K+de+Ge-Me];for(de+=we,G+=we;G>=ae;)G-=ae,++D<=h&&!(D%16)&&Si(I,D);de<xe&&G&Ee&&(Ae=Zn(he,G,D))}t(re.h==ee(re))}Si(I,D>h?h:D);break t}!ue||re.h&&de<be?(ue=0,I.a=re.h?5:3):I.$=de,h=ue}else h=Ni(I,I.V,I.Ba,I.c,I.i,h,cl);if(!h){N=0;break e}}w+N>=T&&(c.Cc=1),N=1}if(!N)return null;if(c.Cc&&((N=c.ga)!=null&&(N.mc=null),c.ga=null,0<c.Ga))return alert("todo:WebPDequantizeLevels"),null}return c.nb+w*L}function Vt(c,h,w,N,L,T){for(;0<L--;){var I,j=c,D=h+(w?1:0),G=c,re=h+(w?0:3);for(I=0;I<N;++I){var he=G[re+4*I];he!=255&&(he*=32897,j[D+4*I+0]=j[D+4*I+0]*he>>23,j[D+4*I+1]=j[D+4*I+1]*he>>23,j[D+4*I+2]=j[D+4*I+2]*he>>23)}h+=T}}function Ht(c,h,w,N,L){for(;0<N--;){var T;for(T=0;T<w;++T){var I=c[h+2*T+0],j=15&(G=c[h+2*T+1]),D=4369*j,G=(240&G|G>>4)*D>>16;c[h+2*T+0]=(240&I|I>>4)*D>>16&240|(15&I|I<<4)*D>>16>>4&15,c[h+2*T+1]=240&G|j}h+=L}}function en(c,h,w,N,L,T,I,j){var D,G,re=255;for(G=0;G<L;++G){for(D=0;D<N;++D){var he=c[h+D];T[I+4*D]=he,re&=he}h+=w,I+=j}return re!=255}function dn(c,h,w,N,L){var T;for(T=0;T<L;++T)w[N+T]=c[h+T]>>8}function hn(){dc=Vt,bv=Ht,xv=en,_v=dn}function ar(c,h,w){F[c]=function(N,L,T,I,j,D,G,re,he,K,ae,ue,we,de,be,xe,Ee){var Ae,Ge=Ee-1>>1,Me=j[D+0]|G[re+0]<<16,yt=he[K+0]|ae[ue+0]<<16;t(N!=null);var $e=3*Me+yt+131074>>2;for(h(N[L+0],255&$e,$e>>16,we,de),T!=null&&($e=3*yt+Me+131074>>2,h(T[I+0],255&$e,$e>>16,be,xe)),Ae=1;Ae<=Ge;++Ae){var At=j[D+Ae]|G[re+Ae]<<16,Dn=he[K+Ae]|ae[ue+Ae]<<16,wt=Me+At+yt+Dn+524296,He=wt+2*(At+yt)>>3;$e=He+Me>>1,Me=(wt=wt+2*(Me+Dn)>>3)+At>>1,h(N[L+2*Ae-1],255&$e,$e>>16,we,de+(2*Ae-1)*w),h(N[L+2*Ae-0],255&Me,Me>>16,we,de+(2*Ae-0)*w),T!=null&&($e=wt+yt>>1,Me=He+Dn>>1,h(T[I+2*Ae-1],255&$e,$e>>16,be,xe+(2*Ae-1)*w),h(T[I+2*Ae+0],255&Me,Me>>16,be,xe+(2*Ae+0)*w)),Me=At,yt=Dn}1&Ee||($e=3*Me+yt+131074>>2,h(N[L+Ee-1],255&$e,$e>>16,we,de+(Ee-1)*w),T!=null&&($e=3*yt+Me+131074>>2,h(T[I+Ee-1],255&$e,$e>>16,be,xe+(Ee-1)*w)))}}function Po(){di[hd]=w8,di[pd]=Iv,di[Lv]=b8,di[md]=Ov,di[gd]=jv,di[k1]=Mv,di[Cv]=x8,di[E1]=Iv,di[L1]=Ov,di[vd]=jv,di[C1]=Mv}function oc(c){return c&~_8?0>c?0:255:c>>Fv}function ps(c,h){return oc((19077*c>>8)+(26149*h>>8)-14234)}function ms(c,h,w){return oc((19077*c>>8)-(6419*h>>8)-(13320*w>>8)+8708)}function oa(c,h){return oc((19077*c>>8)+(33050*h>>8)-17685)}function gs(c,h,w,N,L){N[L+0]=ps(c,w),N[L+1]=ms(c,h,w),N[L+2]=oa(c,h)}function _l(c,h,w,N,L){N[L+0]=oa(c,h),N[L+1]=ms(c,h,w),N[L+2]=ps(c,w)}function Sl(c,h,w,N,L){var T=ms(c,h,w);h=T<<3&224|oa(c,h)>>3,N[L+0]=248&ps(c,w)|T>>5,N[L+1]=h}function sr(c,h,w,N,L){var T=240&oa(c,h)|15;N[L+0]=240&ps(c,w)|ms(c,h,w)>>4,N[L+1]=T}function vs(c,h,w,N,L){N[L+0]=255,gs(c,h,w,N,L+1)}function ys(c,h,w,N,L){_l(c,h,w,N,L),N[L+3]=255}function ac(c,h,w,N,L){gs(c,h,w,N,L),N[L+3]=255}function eo(c,h,w){F[c]=function(N,L,T,I,j,D,G,re,he){for(var K=re+(-2&he)*w;re!=K;)h(N[L+0],T[I+0],j[D+0],G,re),h(N[L+1],T[I+0],j[D+0],G,re+w),L+=2,++I,++D,re+=2*w;1&he&&h(N[L+0],T[I+0],j[D+0],G,re)}}function br(c,h,w){return w==0?c==0?h==0?6:5:h==0?4:0:w}function ud(c,h,w,N,L){switch(c>>>30){case 3:To(h,w,N,L,0);break;case 2:ua(h,w,N,L);break;case 1:lr(h,w,N,L)}}function Nl(c,h){var w,N,L=h.M,T=h.Nb,I=c.oc,j=c.pc+40,D=c.oc,G=c.pc+584,re=c.oc,he=c.pc+600;for(w=0;16>w;++w)I[j+32*w-1]=129;for(w=0;8>w;++w)D[G+32*w-1]=129,re[he+32*w-1]=129;for(0<L?I[j-1-32]=D[G-1-32]=re[he-1-32]=129:(i(I,j-32-1,127,21),i(D,G-32-1,127,9),i(re,he-32-1,127,9)),N=0;N<c.za;++N){var K=h.ya[h.aa+N];if(0<N){for(w=-1;16>w;++w)r(I,j+32*w-4,I,j+32*w+12,4);for(w=-1;8>w;++w)r(D,G+32*w-4,D,G+32*w+4,4),r(re,he+32*w-4,re,he+32*w+4,4)}var ae=c.Gd,ue=c.Hd+N,we=K.ad,de=K.Hc;if(0<L&&(r(I,j-32,ae[ue].y,0,16),r(D,G-32,ae[ue].f,0,8),r(re,he-32,ae[ue].ea,0,8)),K.Za){var be=I,xe=j-32+16;for(0<L&&(N>=c.za-1?i(be,xe,ae[ue].y[15],4):r(be,xe,ae[ue+1].y,0,4)),w=0;4>w;w++)be[xe+128+w]=be[xe+256+w]=be[xe+384+w]=be[xe+0+w];for(w=0;16>w;++w,de<<=2)be=I,xe=j+Bv[w],ki[K.Ob[w]](be,xe),ud(de,we,16*+w,be,xe)}else if(be=br(N,L,K.Ob[0]),ca[be](I,j),de!=0)for(w=0;16>w;++w,de<<=2)ud(de,we,16*+w,I,j+Bv[w]);for(w=K.Gc,be=br(N,L,K.Dd),Io[be](D,G),Io[be](re,he),de=we,be=D,xe=G,255&(K=0|w)&&(170&K?Cl(de,256,be,xe):no(de,256,be,xe)),K=re,de=he,255&(w>>=8)&&(170&w?Cl(we,320,K,de):no(we,320,K,de)),L<c.Ub-1&&(r(ae[ue].y,0,I,j+480,16),r(ae[ue].f,0,D,G+224,8),r(ae[ue].ea,0,re,he+224,8)),w=8*T*c.B,ae=c.sa,ue=c.ta+16*N+16*T*c.R,we=c.qa,K=c.ra+8*N+w,de=c.Ha,be=c.Ia+8*N+w,w=0;16>w;++w)r(ae,ue+w*c.R,I,j+32*w,16);for(w=0;8>w;++w)r(we,K+w*c.B,D,G+32*w,8),r(de,be+w*c.B,re,he+32*w,8)}}function cd(c,h,w,N,L,T,I,j,D){var G=[0],re=[0],he=0,K=D!=null?D.kd:0,ae=D??new le;if(c==null||12>w)return 7;ae.data=c,ae.w=h,ae.ha=w,h=[h],w=[w],ae.gb=[ae.gb];e:{var ue=h,we=w,de=ae.gb;if(t(c!=null),t(we!=null),t(de!=null),de[0]=0,12<=we[0]&&!n(c,ue[0],"RIFF")){if(n(c,ue[0]+8,"WEBP")){de=3;break e}var be=Oe(c,ue[0]+4);if(12>be||4294967286<be){de=3;break e}if(K&&be>we[0]-8){de=7;break e}de[0]=be,ue[0]+=12,we[0]-=12}de=0}if(de!=0)return de;for(be=0<ae.gb[0],w=w[0];;){e:{var xe=c;we=h,de=w;var Ee=G,Ae=re,Ge=ue=[0];if(($e=he=[he])[0]=0,8>de[0])de=7;else{if(!n(xe,we[0],"VP8X")){if(Oe(xe,we[0]+4)!=10){de=3;break e}if(18>de[0]){de=7;break e}var Me=Oe(xe,we[0]+8),yt=1+Ce(xe,we[0]+12);if(2147483648<=yt*(xe=1+Ce(xe,we[0]+15))){de=3;break e}Ge!=null&&(Ge[0]=Me),Ee!=null&&(Ee[0]=yt),Ae!=null&&(Ae[0]=xe),we[0]+=18,de[0]-=18,$e[0]=1}de=0}}if(he=he[0],ue=ue[0],de!=0)return de;if(we=!!(2&ue),!be&&he)return 3;if(T!=null&&(T[0]=!!(16&ue)),I!=null&&(I[0]=we),j!=null&&(j[0]=0),I=G[0],ue=re[0],he&&we&&D==null){de=0;break}if(4>w){de=7;break}if(be&&he||!be&&!he&&!n(c,h[0],"ALPH")){w=[w],ae.na=[ae.na],ae.P=[ae.P],ae.Sa=[ae.Sa];e:{Me=c,de=h,be=w;var $e=ae.gb;Ee=ae.na,Ae=ae.P,Ge=ae.Sa,yt=22,t(Me!=null),t(be!=null),xe=de[0];var At=be[0];for(t(Ee!=null),t(Ge!=null),Ee[0]=null,Ae[0]=null,Ge[0]=0;;){if(de[0]=xe,be[0]=At,8>At){de=7;break e}var Dn=Oe(Me,xe+4);if(4294967286<Dn){de=3;break e}var wt=8+Dn+1&-2;if(yt+=wt,0<$e&&yt>$e){de=3;break e}if(!n(Me,xe,"VP8 ")||!n(Me,xe,"VP8L")){de=0;break e}if(At[0]<wt){de=7;break e}n(Me,xe,"ALPH")||(Ee[0]=Me,Ae[0]=xe+8,Ge[0]=Dn),xe+=wt,At-=wt}}if(w=w[0],ae.na=ae.na[0],ae.P=ae.P[0],ae.Sa=ae.Sa[0],de!=0)break}w=[w],ae.Ja=[ae.Ja],ae.xa=[ae.xa];e:if($e=c,de=h,be=w,Ee=ae.gb[0],Ae=ae.Ja,Ge=ae.xa,Me=de[0],xe=!n($e,Me,"VP8 "),yt=!n($e,Me,"VP8L"),t($e!=null),t(be!=null),t(Ae!=null),t(Ge!=null),8>be[0])de=7;else{if(xe||yt){if($e=Oe($e,Me+4),12<=Ee&&$e>Ee-12){de=3;break e}if(K&&$e>be[0]-8){de=7;break e}Ae[0]=$e,de[0]+=8,be[0]-=8,Ge[0]=yt}else Ge[0]=5<=be[0]&&$e[Me+0]==47&&!($e[Me+4]>>5),Ae[0]=be[0];de=0}if(w=w[0],ae.Ja=ae.Ja[0],ae.xa=ae.xa[0],h=h[0],de!=0)break;if(4294967286<ae.Ja)return 3;if(j==null||we||(j[0]=ae.xa?2:1),I=[I],ue=[ue],ae.xa){if(5>w){de=7;break}j=I,K=ue,we=T,c==null||5>w?c=0:5<=w&&c[h+0]==47&&!(c[h+4]>>5)?(be=[0],$e=[0],Ee=[0],Q(Ae=new z,c,h,w),Yn(Ae,be,$e,Ee)?(j!=null&&(j[0]=be[0]),K!=null&&(K[0]=$e[0]),we!=null&&(we[0]=Ee[0]),c=1):c=0):c=0}else{if(10>w){de=7;break}j=ue,c==null||10>w||!ed(c,h+3,w-3)?c=0:(K=c[h+0]|c[h+1]<<8|c[h+2]<<16,we=16383&(c[h+7]<<8|c[h+6]),c=16383&(c[h+9]<<8|c[h+8]),1&K||3<(K>>1&7)||!(K>>4&1)||K>>5>=ae.Ja||!we||!c?c=0:(I&&(I[0]=we),j&&(j[0]=c),c=1))}if(!c||(I=I[0],ue=ue[0],he&&(G[0]!=I||re[0]!=ue)))return 3;D!=null&&(D[0]=ae,D.offset=h-D.w,t(4294967286>h-D.w),t(D.offset==D.ha-w));break}return de==0||de==7&&he&&D==null?(T!=null&&(T[0]|=ae.na!=null&&0<ae.na.length),N!=null&&(N[0]=I),L!=null&&(L[0]=ue),0):de}function ci(c,h,w){var N=h.width,L=h.height,T=0,I=0,j=N,D=L;if(h.Da=c!=null&&0<c.Da,h.Da&&(j=c.cd,D=c.bd,T=c.v,I=c.j,11>w||(T&=-2,I&=-2),0>T||0>I||0>=j||0>=D||T+j>N||I+D>L))return 0;if(h.v=T,h.j=I,h.va=T+j,h.o=I+D,h.U=j,h.T=D,h.da=c!=null&&0<c.da,h.da){if(!Ke(j,D,w=[c.ib],T=[c.hb]))return 0;h.ib=w[0],h.hb=T[0]}return h.ob=c!=null&&c.ob,h.Kb=c==null||!c.Sd,h.da&&(h.ob=h.ib<3*N/4&&h.hb<3*L/4,h.Kb=0),1}function ws(c){if(c==null)return 2;if(11>c.S){var h=c.f.RGBA;h.fb+=(c.height-1)*h.A,h.A=-h.A}else h=c.f.kb,c=c.height,h.O+=(c-1)*h.fa,h.fa=-h.fa,h.N+=(c-1>>1)*h.Ab,h.Ab=-h.Ab,h.W+=(c-1>>1)*h.Db,h.Db=-h.Db,h.F!=null&&(h.J+=(c-1)*h.lb,h.lb=-h.lb);return 0}function sc(c,h,w,N){if(N==null||0>=c||0>=h)return 2;if(w!=null){if(w.Da){var L=w.cd,T=w.bd,I=-2&w.v,j=-2&w.j;if(0>I||0>j||0>=L||0>=T||I+L>c||j+T>h)return 2;c=L,h=T}if(w.da){if(!Ke(c,h,L=[w.ib],T=[w.hb]))return 2;c=L[0],h=T[0]}}N.width=c,N.height=h;e:{var D=N.width,G=N.height;if(c=N.S,0>=D||0>=G||!(c>=hd&&13>c))c=2;else{if(0>=N.Rd&&N.sd==null){I=T=L=h=0;var re=(j=D*zv[c])*G;if(11>c||(T=(G+1)/2*(h=(D+1)/2),c==12&&(I=(L=D)*G)),(G=o(re+2*T+I))==null){c=1;break e}N.sd=G,11>c?((D=N.f.RGBA).eb=G,D.fb=0,D.A=j,D.size=re):((D=N.f.kb).y=G,D.O=0,D.fa=j,D.Fd=re,D.f=G,D.N=0+re,D.Ab=h,D.Cd=T,D.ea=G,D.W=0+re+T,D.Db=h,D.Ed=T,c==12&&(D.F=G,D.J=0+re+2*T),D.Tc=I,D.lb=L)}if(h=1,L=N.S,T=N.width,I=N.height,L>=hd&&13>L)if(11>L)c=N.f.RGBA,h&=(j=Math.abs(c.A))*(I-1)+T<=c.size,h&=j>=T*zv[L],h&=c.eb!=null;else{c=N.f.kb,j=(T+1)/2,re=(I+1)/2,D=Math.abs(c.fa),G=Math.abs(c.Ab);var he=Math.abs(c.Db),K=Math.abs(c.lb),ae=K*(I-1)+T;h&=D*(I-1)+T<=c.Fd,h&=G*(re-1)+j<=c.Cd,h=(h&=he*(re-1)+j<=c.Ed)&D>=T&G>=j&he>=j,h&=c.y!=null,h&=c.f!=null,h&=c.ea!=null,L==12&&(h&=K>=T,h&=ae<=c.Tc,h&=c.F!=null)}else h=0;c=h?0:2}}return c!=0||w!=null&&w.fd&&(c=ws(N)),c}var Al=64,bs=[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],lc=24,xr=32,Rr=8,kl=[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];Ie("Predictor0","PredictorAdd0"),F.Predictor0=function(){return 4278190080},F.Predictor1=function(c){return c},F.Predictor2=function(c,h,w){return h[w+0]},F.Predictor3=function(c,h,w){return h[w+1]},F.Predictor4=function(c,h,w){return h[w-1]},F.Predictor5=function(c,h,w){return Be(Be(c,h[w+1]),h[w+0])},F.Predictor6=function(c,h,w){return Be(c,h[w-1])},F.Predictor7=function(c,h,w){return Be(c,h[w+0])},F.Predictor8=function(c,h,w){return Be(h[w-1],h[w+0])},F.Predictor9=function(c,h,w){return Be(h[w+0],h[w+1])},F.Predictor10=function(c,h,w){return Be(Be(c,h[w-1]),Be(h[w+0],h[w+1]))},F.Predictor11=function(c,h,w){var N=h[w+0];return 0>=Ze(N>>24&255,c>>24&255,(h=h[w-1])>>24&255)+Ze(N>>16&255,c>>16&255,h>>16&255)+Ze(N>>8&255,c>>8&255,h>>8&255)+Ze(255&N,255&c,255&h)?N:c},F.Predictor12=function(c,h,w){var N=h[w+0];return(It((c>>24&255)+(N>>24&255)-((h=h[w-1])>>24&255))<<24|It((c>>16&255)+(N>>16&255)-(h>>16&255))<<16|It((c>>8&255)+(N>>8&255)-(h>>8&255))<<8|It((255&c)+(255&N)-(255&h)))>>>0},F.Predictor13=function(c,h,w){var N=h[w-1];return(xt((c=Be(c,h[w+0]))>>24&255,N>>24&255)<<24|xt(c>>16&255,N>>16&255)<<16|xt(c>>8&255,N>>8&255)<<8|xt(255&c,255&N))>>>0};var aa=F.PredictorAdd0;F.PredictorAdd1=pt,Ie("Predictor2","PredictorAdd2"),Ie("Predictor3","PredictorAdd3"),Ie("Predictor4","PredictorAdd4"),Ie("Predictor5","PredictorAdd5"),Ie("Predictor6","PredictorAdd6"),Ie("Predictor7","PredictorAdd7"),Ie("Predictor8","PredictorAdd8"),Ie("Predictor9","PredictorAdd9"),Ie("Predictor10","PredictorAdd10"),Ie("Predictor11","PredictorAdd11"),Ie("Predictor12","PredictorAdd12"),Ie("Predictor13","PredictorAdd13");var sa=F.PredictorAdd2;We("ColorIndexInverseTransform","MapARGB","32b",function(c){return c>>8&255},function(c){return c}),We("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(c){return c},function(c){return c>>8&255});var El,xs=F.ColorIndexInverseTransform,On=F.MapARGB,N1=F.VP8LColorIndexInverseTransformAlpha,to=F.MapAlpha,Ai=F.VP8LPredictorsAdd=[];Ai.length=16,(F.VP8LPredictors=[]).length=16,(F.VP8LPredictorsAdd_C=[]).length=16,(F.VP8LPredictors_C=[]).length=16;var _s,uc,cc,Ll,Ss,Ns,la,To,ua,Cl,lr,no,Zt,Xt,An,Fn,Ro,fc,Pl,fd,gv,vv,yv,wv,dc,bv,xv,_v,Sv=o(511),Nv=o(2041),Av=o(225),kv=o(
vendor: 4,687 bytes, line 275
275767),Ev=0,A1=Nv,dd=Av,Hr=kv,fi=Sv,hd=0,pd=1,Lv=2,md=3,gd=4,k1=5,Cv=6,E1=7,L1=8,vd=9,C1=10,o8=[2,3,7],a8=[3,3,11],Pv=[280,256,256,256,40],s8=[0,1,1,1,0],l8=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],u8=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],c8=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],f8=8,P1=[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],T1=[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],hc=null,d8=[[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]],h8=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Tv=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],p8=[[[[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
2755,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]]]],m8=[[[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,
2751,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]]],g8=[[[[255,255,255,255,255,255,255,255,255,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: 23,740 bytes, lines 275-299
2755,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]]]],v8=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ca=[],ki=[],Io=[],y8=1,Rv=2,fa=[],di=[];ar("UpsampleRgbLinePair",gs,3),ar("UpsampleBgrLinePair",_l,3),ar("UpsampleRgbaLinePair",ac,4),ar("UpsampleBgraLinePair",ys,4),ar("UpsampleArgbLinePair",vs,4),ar("UpsampleRgba4444LinePair",sr,2),ar("UpsampleRgb565LinePair",Sl,2);var w8=F.UpsampleRgbLinePair,b8=F.UpsampleBgrLinePair,Iv=F.UpsampleRgbaLinePair,Ov=F.UpsampleBgraLinePair,jv=F.UpsampleArgbLinePair,Mv=F.UpsampleRgba4444LinePair,x8=F.UpsampleRgb565LinePair,yd=16,wd=1<<yd-1,pc=-227,R1=482,Fv=6,_8=(256<<Fv)-1,Dv=0,S8=o(256),N8=o(256),A8=o(256),k8=o(256),E8=o(R1-pc),L8=o(R1-pc);eo("YuvToRgbRow",gs,3),eo("YuvToBgrRow",_l,3),eo("YuvToRgbaRow",ac,4),eo("YuvToBgraRow",ys,4),eo("YuvToArgbRow",vs,4),eo("YuvToRgba4444Row",sr,2),eo("YuvToRgb565Row",Sl,2);var Bv=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],bd=[0,2,8],C8=[8,7,6,4,4,2,2,2,1,1,1,1],P8=1;this.WebPDecodeRGBA=function(c,h,w,N,L){var T=pd,I=new te,j=new gt;I.ba=j,j.S=T,j.width=[j.width],j.height=[j.height];var D=j.width,G=j.height,re=new Ve;if(re==null||c==null)var he=2;else t(re!=null),he=cd(c,h,w,re.width,re.height,re.Pd,re.Qd,re.format,null);if(he!=0?D=0:(D!=null&&(D[0]=re.width[0]),G!=null&&(G[0]=re.height[0]),D=1),D){j.width=j.width[0],j.height=j.height[0],N!=null&&(N[0]=j.width),L!=null&&(L[0]=j.height);e:{if(N=new hl,(L=new le).data=c,L.w=h,L.ha=w,L.kd=1,h=[0],t(L!=null),((c=cd(L.data,L.w,L.ha,null,null,null,h,null,L))==0||c==7)&&h[0]&&(c=4),(h=c)==0){if(t(I!=null),N.data=L.data,N.w=L.w+L.offset,N.ha=L.ha-L.offset,N.put=ze,N.ac=vn,N.bc=$n,N.ma=I,L.xa){if((c=us())==null){I=1;break e}if(function(K,ae){var ue=[0],we=[0],de=[0];t:for(;;){if(K==null)return 0;if(ae==null)return K.a=2,0;if(K.l=ae,K.a=0,Q(K.m,ae.data,ae.w,ae.ha),!Yn(K.m,ue,we,de)){K.a=3;break t}if(K.xb=Rv,ae.width=ue[0],ae.height=we[0],!Yi(ue[0],we[0],1,K,null))break t;return 1}return t(K.a!=0),0}(c,N)){if(N=(h=sc(N.width,N.height,I.Oa,I.ba))==0){t:{N=c;n:for(;;){if(N==null){N=0;break t}if(t(N.s.yc!=null),t(N.s.Ya!=null),t(0<N.s.Wb),t((w=N.l)!=null),t((L=w.ma)!=null),N.xb!=0){if(N.ca=L.ba,N.tb=L.tb,t(N.ca!=null),!ci(L.Oa,w,md)){N.a=2;break n}if(!cs(N,w.width)||w.da)break n;if((w.da||et(N.ca.S))&&hn(),11>N.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),N.ca.f.kb.F!=null&&hn()),N.Pb&&0<N.s.ua&&N.s.vb.X==null&&!U(N.s.vb,N.s.Wa.Xa)){N.a=1;break n}N.xb=0}if(!Ni(N,N.V,N.Ba,N.c,N.i,w.o,ta))break n;L.Dc=N.Ma,N=1;break t}t(N.a!=0),N=0}N=!N}N&&(h=c.a)}else h=c.a}else{if((c=new s1)==null){I=1;break e}if(c.Fa=L.na,c.P=L.P,c.qc=L.Sa,Xi(c,N)){if((h=sc(N.width,N.height,I.Oa,I.ba))==0){if(c.Aa=0,w=I.Oa,t((L=c)!=null),w!=null){if(0<(D=0>(D=w.Md)?0:100<D?255:255*D/100)){for(G=re=0;4>G;++G)12>(he=L.pb[G]).lc&&(he.ia=D*C8[0>he.lc?0:he.lc]>>3),re|=he.ia;re&&(alert("todo:VP8InitRandom"),L.ia=1)}L.Ga=w.Id,100<L.Ga?L.Ga=100:0>L.Ga&&(L.Ga=0)}(function(K,ae){if(K==null)return 0;if(ae==null)return Rn(K,2,"NULL VP8Io parameter in VP8Decode().");if(!K.cb&&!Xi(K,ae))return 0;if(t(K.cb),ae.ac==null||ae.ac(ae)){ae.ob&&(K.L=0);var ue=bd[K.L];if(K.L==2?(K.yb=0,K.zb=0):(K.yb=ae.v-ue>>4,K.zb=ae.j-ue>>4,0>K.yb&&(K.yb=0),0>K.zb&&(K.zb=0)),K.Va=ae.o+15+ue>>4,K.Hb=ae.va+15+ue>>4,K.Hb>K.za&&(K.Hb=K.za),K.Va>K.Ub&&(K.Va=K.Ub),0<K.L){var we=K.ed;for(ue=0;4>ue;++ue){var de;if(K.Qa.Cb){var be=K.Qa.Lb[ue];K.Qa.Fb||(be+=we.Tb)}else be=we.Tb;for(de=0;1>=de;++de){var xe=K.gd[ue][de],Ee=be;if(we.Pc&&(Ee+=we.vd[0],de&&(Ee+=we.od[0])),0<(Ee=0>Ee?0:63<Ee?63:Ee)){var Ae=Ee;0<we.wb&&(Ae=4<we.wb?Ae>>2:Ae>>1)>9-we.wb&&(Ae=9-we.wb),1>Ae&&(Ae=1),xe.dd=Ae,xe.tc=2*Ee+Ae,xe.ld=40<=Ee?2:15<=Ee?1:0}else xe.tc=0;xe.La=de}}}ue=0}else Rn(K,6,"Frame setup failed"),ue=K.a;if(ue=ue==0){if(ue){K.$c=0,0<K.Aa||(K.Ic=P8);t:{ue=K.Ic,we=4*(Ae=K.za);var Ge=32*Ae,Me=Ae+1,yt=0<K.L?Ae*(0<K.Aa?2:1):0,$e=(K.Aa==2?2:1)*Ae;if((xe=we+832+(de=3*(16*ue+bd[K.L])/2*Ge)+(be=K.Fa!=null&&0<K.Fa.length?K.Kc.c*K.Kc.i:0))!=xe)ue=0;else{if(xe>K.Vb){if(K.Vb=0,K.Ec=o(xe),K.Fc=0,K.Ec==null){ue=Rn(K,1,"no memory during frame initialization.");break t}K.Vb=xe}xe=K.Ec,Ee=K.Fc,K.Ac=xe,K.Bc=Ee,Ee+=we,K.Gd=a(Ge,Qf),K.Hd=0,K.rb=a(Me+1,Zu),K.sb=1,K.wa=yt?a(yt,ui):null,K.Y=0,K.D.Nb=0,K.D.wa=K.wa,K.D.Y=K.Y,0<K.Aa&&(K.D.Y+=Ae),t(!0),K.oc=xe,K.pc=Ee,Ee+=832,K.ya=a($e,Xu),K.aa=0,K.D.ya=K.ya,K.D.aa=K.aa,K.Aa==2&&(K.D.aa+=Ae),K.R=16*Ae,K.B=8*Ae,Ae=(Ge=bd[K.L])*K.R,Ge=Ge/2*K.B,K.sa=xe,K.ta=Ee+Ae,K.qa=K.sa,K.ra=K.ta+16*ue*K.R+Ge,K.Ha=K.qa,K.Ia=K.ra+8*ue*K.B+Ge,K.$c=0,Ee+=de,K.mb=be?xe:null,K.nb=be?Ee:null,t(Ee+be<=K.Fc+K.Vb),Qu(K),i(K.Ac,K.Bc,0,we),ue=1}}if(ue){if(ae.ka=0,ae.y=K.sa,ae.O=K.ta,ae.f=K.qa,ae.N=K.ra,ae.ea=K.Ha,ae.Vd=K.Ia,ae.fa=K.R,ae.Rc=K.B,ae.F=null,ae.J=0,!Ev){for(ue=-255;255>=ue;++ue)Sv[255+ue]=0>ue?-ue:ue;for(ue=-1020;1020>=ue;++ue)Nv[1020+ue]=-128>ue?-128:127<ue?127:ue;for(ue=-112;112>=ue;++ue)Av[112+ue]=-16>ue?-16:15<ue?15:ue;for(ue=-255;510>=ue;++ue)kv[255+ue]=0>ue?0:255<ue?255:ue;Ev=1}la=nd,To=l1,Cl=u1,lr=c1,no=Qi,ua=td,Zt=od,Xt=ad,An=ld,Fn=m,Ro=sd,fc=hs,Pl=k,fd=H,gv=bl,vv=ic,yv=xl,wv=id,ki[0]=v1,ki[1]=vl,ki[2]=m1,ki[3]=g1,ki[4]=y1,ki[5]=ko,ki[6]=w1,ki[7]=Eo,ki[8]=x1,ki[9]=b1,ca[0]=rd,ca[1]=f1,ca[2]=d1,ca[3]=h1,ca[4]=ra,ca[5]=p1,ca[6]=fs,Io[0]=_1,Io[1]=Ju,Io[2]=yl,Io[3]=ec,Io[4]=S1,Io[5]=wl,Io[6]=tc,ue=1}else ue=0}ue&&(ue=function(At,Dn){for(At.M=0;At.M<At.Va;++At.M){var wt,He=At.Jc[At.M&At.Xb],Re=At.m,kn=At;for(wt=0;wt<kn.za;++wt){var dt=Re,Ct=kn,tn=Ct.Ac,Qn=Ct.Bc+4*wt,_r=Ct.zc,wn=Ct.ya[Ct.aa+wt];if(Ct.Qa.Bb?wn.$b=ge(dt,Ct.Pa.jb[0])?2+ge(dt,Ct.Pa.jb[2]):ge(dt,Ct.Pa.jb[1]):wn.$b=0,Ct.kc&&(wn.Ad=ge(dt,Ct.Bd)),wn.Za=!ge(dt,145)+0,wn.Za){var ur=wn.Ob,Sr=0;for(Ct=0;4>Ct;++Ct){var Bn,Tt=_r[0+Ct];for(Bn=0;4>Bn;++Bn){Tt=m8[tn[Qn+Bn]][Tt];for(var Dt=Tv[ge(dt,Tt[0])];0<Dt;)Dt=Tv[2*Dt+ge(dt,Tt[Dt])];Tt=-Dt,tn[Qn+Bn]=Tt}r(ur,Sr,tn,Qn,4),Sr+=4,_r[0+Ct]=Tt}}else Tt=ge(dt,156)?ge(dt,128)?1:3:ge(dt,163)?2:0,wn.Ob[0]=Tt,i(tn,Qn,Tt,4),i(_r,0,Tt,4);wn.Dd=ge(dt,142)?ge(dt,114)?ge(dt,183)?1:3:2:0}if(kn.m.Ka)return Rn(At,7,"Premature end-of-partition0 encountered.");for(;At.ja<At.za;++At.ja){if(kn=He,dt=(Re=At).rb[Re.sb-1],tn=Re.rb[Re.sb+Re.ja],wt=Re.ya[Re.aa+Re.ja],Qn=Re.kc?wt.Ad:0)dt.la=tn.la=0,wt.Za||(dt.Na=tn.Na=0),wt.Hc=0,wt.Gc=0,wt.ia=0;else{var bn,Bt;if(dt=tn,tn=kn,Qn=Re.Pa.Xc,_r=Re.ya[Re.aa+Re.ja],wn=Re.pb[_r.$b],Ct=_r.ad,ur=0,Sr=Re.rb[Re.sb-1],Tt=Bn=0,i(Ct,ur,0,384),_r.Za)var Jn=0,Ei=Qn[3];else{Dt=o(16);var En=dt.Na+Sr.Na;if(En=hc(tn,Qn[1],En,wn.Eb,0,Dt,0),dt.Na=Sr.Na=(0<En)+0,1<En)la(Dt,0,Ct,ur);else{var Ir=Dt[0]+3>>3;for(Dt=0;256>Dt;Dt+=16)Ct[ur+Dt]=Ir}Jn=1,Ei=Qn[0]}var Gt=15&dt.la,zn=15&Sr.la;for(Dt=0;4>Dt;++Dt){var Wr=1&zn;for(Ir=Bt=0;4>Ir;++Ir)Gt=Gt>>1|(Wr=(En=hc(tn,Ei,En=Wr+(1&Gt),wn.Sc,Jn,Ct,ur))>Jn)<<7,Bt=Bt<<2|(3<En?3:1<En?2:Ct[ur+0]!=0),ur+=16;Gt>>=4,zn=zn>>1|Wr<<7,Bn=(Bn<<8|Bt)>>>0}for(Ei=Gt,Jn=zn>>4,bn=0;4>bn;bn+=2){for(Bt=0,Gt=dt.la>>4+bn,zn=Sr.la>>4+bn,Dt=0;2>Dt;++Dt){for(Wr=1&zn,Ir=0;2>Ir;++Ir)En=Wr+(1&Gt),Gt=Gt>>1|(Wr=0<(En=hc(tn,Qn[2],En,wn.Qc,0,Ct,ur)))<<3,Bt=Bt<<2|(3<En?3:1<En?2:Ct[ur+0]!=0),ur+=16;Gt>>=2,zn=zn>>1|Wr<<5}Tt|=Bt<<4*bn,Ei|=Gt<<4<<bn,Jn|=(240&zn)<<bn}dt.la=Ei,Sr.la=Jn,_r.Hc=Bn,_r.Gc=Tt,_r.ia=43690&Tt?0:wn.ia,Qn=!(Bn|Tt)}if(0<Re.L&&(Re.wa[Re.Y+Re.ja]=Re.gd[wt.$b][wt.Za],Re.wa[Re.Y+Re.ja].La|=!Qn),kn.Ka)return Rn(At,7,"Premature end-of-file encountered.")}if(Qu(At),Re=Dn,kn=1,wt=(He=At).D,dt=0<He.L&&He.M>=He.zb&&He.M<=He.Va,He.Aa==0)t:{if(wt.M=He.M,wt.uc=dt,Nl(He,wt),kn=1,wt=(Bt=He.D).Nb,dt=(Tt=bd[He.L])*He.R,tn=Tt/2*He.B,Dt=16*wt*He.R,Ir=8*wt*He.B,Qn=He.sa,_r=He.ta-dt+Dt,wn=He.qa,Ct=He.ra-tn+Ir,ur=He.Ha,Sr=He.Ia-tn+Ir,zn=(Gt=Bt.M)==0,Bn=Gt>=He.Va-1,He.Aa==2&&Nl(He,Bt),Bt.uc)for(Wr=(En=He).D.M,t(En.D.uc),Bt=En.yb;Bt<En.Hb;++Bt){Jn=Bt,Ei=Wr;var Nr=(Vr=(er=En).D).Nb;bn=er.R;var Vr=Vr.wa[Vr.Y+Jn],Gr=er.sa,Or=er.ta+16*Nr*bn+16*Jn,Kr=Vr.dd,Qt=Vr.tc;if(Qt!=0)if(t(3<=Qt),er.L==1)0<Jn&&vv(Gr,Or,bn,Qt+4),Vr.La&&wv(Gr,Or,bn,Qt),0<Ei&&gv(Gr,Or,bn,Qt+4),Vr.La&&yv(Gr,Or,bn,Qt);else{var Yr=er.B,Li=er.qa,As=er.ra+8*Nr*Yr+8*Jn,Oo=er.Ha,er=er.Ia+8*Nr*Yr+8*Jn;Nr=Vr.ld,0<Jn&&(Xt(Gr,Or,bn,Qt+4,Kr,Nr),Fn(Li,As,Oo,er,Yr,Qt+4,Kr,Nr)),Vr.La&&(fc(Gr,Or,bn,Qt,Kr,Nr),fd(Li,As,Oo,er,Yr,Qt,Kr,Nr)),0<Ei&&(Zt(Gr,Or,bn,Qt+4,Kr,Nr),An(Li,As,Oo,er,Yr,Qt+4,Kr,Nr)),Vr.La&&(Ro(Gr,Or,bn,Qt,Kr,Nr),Pl(Li,As,Oo,er,Yr,Qt,Kr,Nr))}}if(He.ia&&alert("todo:DitherRow"),Re.put!=null){if(Bt=16*Gt,Gt=16*(Gt+1),zn?(Re.y=He.sa,Re.O=He.ta+Dt,Re.f=He.qa,Re.N=He.ra+Ir,Re.ea=He.Ha,Re.W=He.Ia+Ir):(Bt-=Tt,Re.y=Qn,Re.O=_r,Re.f=wn,Re.N=Ct,Re.ea=ur,Re.W=Sr),Bn||(Gt-=Tt),Gt>Re.o&&(Gt=Re.o),Re.F=null,Re.J=null,He.Fa!=null&&0<He.Fa.length&&Bt<Gt&&(Re.J=In(He,Re,Bt,Gt-Bt),Re.F=He.mb,Re.F==null&&Re.F.length==0)){kn=Rn(He,3,"Could not decode alpha data.");break t}Bt<Re.j&&(Tt=Re.j-Bt,Bt=Re.j,t(!(1&Tt)),Re.O+=He.R*Tt,Re.N+=He.B*(Tt>>1),Re.W+=He.B*(Tt>>1),Re.F!=null&&(Re.J+=Re.width*Tt)),Bt<Gt&&(Re.O+=Re.v,Re.N+=Re.v>>1,Re.W+=Re.v>>1,Re.F!=null&&(Re.J+=Re.v),Re.ka=Bt-Re.j,Re.U=Re.va-Re.v,Re.T=Gt-Bt,kn=Re.put(Re))}wt+1!=He.Ic||Bn||(r(He.sa,He.ta-dt,Qn,_r+16*He.R,dt),r(He.qa,He.ra-tn,wn,Ct+8*He.B,tn),r(He.Ha,He.Ia-tn,ur,Sr+8*He.B,tn))}if(!kn)return Rn(At,6,"Output aborted.")}return 1}(K,ae)),ae.bc!=null&&ae.bc(ae),ue&=1}return ue?(K.cb=0,ue):0})(c,N)||(h=c.a)}}else h=c.a}h==0&&I.Oa!=null&&I.Oa.fd&&(h=ws(I.ba))}I=h}T=I!=0?null:11>T?j.f.RGBA.eb:j.f.kb.y}else T=null;return T};var zv=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(F,X){for(var P="",R=0;R<4;R++)P+=String.fromCharCode(F[X++]);return P}function d(F,X){return F[X+0]|F[X+1]<<8}function p(F,X){return(F[X+0]|F[X+1]<<8|F[X+2]<<16)>>>0}function g(F,X){return(F[X+0]|F[X+1]<<8|F[X+2]<<16|F[X+3]<<24)>>>0}new l;var f=[0],S=[0],v=[],x=new l,y=e,b=function(F,X){var P={},R=0,Y=!1,B=0,ie=0;if(P.frames=[],!function(C,z){for(var W=0;W<4;W++)if(C[z+W]!="RIFF".charCodeAt(W))return!0;return!1}(F,X)){for(g(F,X+=4),X+=8;X<F.length;){var oe=u(F,X),se=g(F,X+=4);X+=4;var $=se+(1&se);switch(oe){case"VP8 ":case"VP8L":P.frames[R]===void 0&&(P.frames[R]={}),(me=P.frames[R]).src_off=Y?ie:X-8,me.src_size=B+se+8,R++,Y&&(Y=!1,B=0,ie=0);break;case"VP8X":(me=P.header={}).feature_flags=F[X];var Q=X+4;me.canvas_width=1+p(F,Q),Q+=3,me.canvas_height=1+p(F,Q),Q+=3;break;case"ALPH":Y=!0,B=$+8,ie=X-8;break;case"ANIM":(me=P.header).bgcolor=g(F,X),Q=X+4,me.loop_count=d(F,Q),Q+=2;break;case"ANMF":var fe,me;(me=P.frames[R]={}).offset_x=2*p(F,X),X+=3,me.offset_y=2*p(F,X),X+=3,me.width=1+p(F,X),X+=3,me.height=1+p(F,X),X+=3,me.duration=p(F,X),X+=3,fe=F[X++],me.dispose=1&fe,me.blend=fe>>1&1}oe!="ANMF"&&(X+=$)}return P}}(y,0);b.response=y,b.rgbaoutput=!0,b.dataurl=!1;var _=b.header?b.header:null,A=b.frames?b.frames:null;if(_){_.loop_counter=_.loop_count,f=[_.canvas_height],S=[_.canvas_width];for(var M=0;M<A.length&&A[M].blend!=0;M++);}var Z=A[0],V=x.WebPDecodeRGBA(y,Z.src_off,Z.src_size,S,f);Z.rgba=V,Z.imgwidth=S[0],Z.imgheight=f[0];for(var q=0;q<S[0]*f[0]*4;q++)v[q]=V[q];return this.width=S,this.height=f,this.data=v,this}/** ==================================================================== 276 * @license 277 * jsPDF XMP metadata plugin 278 * Copyright (c) 2016 Jussi Utunen, [email protected] 279 * 280 * Permission is hereby granted, free of charge, to any person obtaining 281 * a copy of this software and associated documentation files (the 282 * "Software"), to deal in the Software without restriction, including 283 * without limitation the rights to use, copy, modify, merge, publish, 284 * distribute, sublicense, and/or sell copies of the Software, and to 285 * permit persons to whom the Software is furnished to do so, subject to 286 * the following conditions: 287 * 288 * The above copyright notice and this permission notice shall be 289 * included in all copies or substantial portions of the Software. 290 * 291 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 292 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 293 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 294 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 295 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 296 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 297 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 298 * ==================================================================== 299 */function DM(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</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 BM(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,n,r,i,o,a,s,l,u,d=function(C){return C=C||{},this.isStrokeTransparent=C.isStrokeTransparent||!1,this.strokeOpacity=C.strokeOpacity||1,this.strokeStyle=C.strokeStyle||"#000000",this.fillStyle=C.fillStyle||"#000000",this.isFillTransparent=C.isFillTransparent||!1,this.fillOpacity=C.fillOpacity||1,this.font=C.font||"10px sans-serif",this.textBaseline=C.textBaseline||"alphabetic",this.textAlign=C.textAlign||"left",this.lineWidth=C.lineWidth||1,this.lineJoin=C.lineJoin||"miter",this.lineCap=C.lineCap||"butt",this.path=C.path||[],this.transform=C.transform!==void 0?C.transform.clone():new l,this.globalCompositeOperation=C.globalCompositeOperation||"normal",this.globalAlpha=C.globalAlpha||1,this.clip_path=C.clip_path||[],this.currentPoint=C.currentPoint||new a,this.miterLimit=C.miterLimit||10,this.lastPoint=C.lastPoint||new a,this.lineDashOffset=C.lineDashOffset||0,this.lineDash=C.lineDash||[],this.margin=C.margin||[0,0,0,0],this.prevPageLastElemOffset=C.prevPageLastElemOffset||0,this.ignoreClearRect=typeof C.ignoreClearRect!="boolean"||C.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new p(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,u=new d}]);var p=function(C){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var z=C;Object.defineProperty(this,"pdf",{get:function(){return z}});var W=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return W},set:function(U){W=!!U}});var ee=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return ee},set:function(U){ee=!!U}});var ne=0;Object.defineProperty(this,"posX",{get:function(){return ne},set:function(U){isNaN(U)||(ne=U)}});var J=0;Object.defineProperty(this,"posY",{get:function(){return J},set:function(U){isNaN(U)||(J=U)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(U){var Te;typeof U=="number"?Te=[U,U,U,U]:((Te=new Array(4))[0]=U[0],Te[1]=U.length>=2?U[1]:Te[0],Te[2]=U.length>=3?U[2]:Te[0],Te[3]=U.length>=4?U[3]:Te[1]),u.margin=Te}});var ce=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ce},set:function(U){ce=U}});var pe=0;Object.defineProperty(this,"lastBreak",{get:function(){return pe},set:function(U){pe=U}});var ge=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ge},set:function(U){ge=U}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(U){U instanceof d&&(u=U)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(U){u.path=U}});var ve=[];Object.defineProperty(this,"ctxStack",{get:function(){return ve},set:function(U){ve=U}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(U){var Te;Te=g(U),this.ctx.fillStyle=Te.style,this.ctx.isFillTransparent=Te.a===0,this.ctx.fillOpacity=Te.a,this.pdf.setFillColor(Te.r,Te.g,Te.b,{a:Te.a}),this.pdf.setTextColor(Te.r,Te.g,Te.b,{a:Te.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(U){var Te=g(U);this.ctx.strokeStyle=Te.style,this.ctx.isStrokeTransparent=Te.a===0,this.ctx.strokeOpacity=Te.a,Te.a===0?this.pdf.setDrawColor(255,255,255):(Te.a,this.pdf.setDrawColor(Te.r,Te.g,Te.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(U){["butt","round","square"].indexOf(U)!==-1&&(this.ctx.lineCap=U,this.pdf.setLineCap(U))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(U){isNaN(U)||(this.ctx.lineWidth=U,this.pdf.setLineWidth(U))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(U){["bevel","round","miter"].indexOf(U)!==-1&&(this.ctx.lineJoin=U,this.pdf.setLineJoin(U))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(U){isNaN(U)||(this.ctx.miterLimit=U,this.pdf.setMiterLimit(U))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(U){this.ctx.textBaseline=U}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(U){["right","end","center","left","start"].indexOf(U)!==-1&&(this.ctx.textAlign=U)}});var ke=null,Ce=null,Oe=null;Object.defineProperty(this,"fontFaces",{get:function(){return Oe},set:function(U){ke=null,Ce=null,Oe=U}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(U){var Te;if(this.ctx.font=U,(Te=/^\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(U))!==null){var nt=Te[1];Te[2];var Ke=Te[3],Ne=Te[4];Te[5];var Je=Te[6],Ie=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ne)[2];Ne=Math.floor(Ie==="px"?parseFloat(Ne)*this.pdf.internal.scaleFactor:Ie==="em"?parseFloat(Ne)*this.pdf.getFontSize():parseFloat(Ne)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ne);var Xe=function(We){var ln,St,at=[],mt=We.trim();if(mt==="")return tm;if(mt in fb)return[fb[mt]];for(;mt!=="";){switch(St=null,ln=(mt=hb(mt)).charAt(0)){case'"':case"'":St=RM(mt.substring(1),ln);break;default:St=IM(mt)}if(St===null||(at.push(St[0]),(mt=hb(St[1]))!==""&&mt.charAt(0)!==","))return tm;mt=mt.replace(/^,/,"")}return at}(Je);if(this.fontFaces){var Be=function(We,ln){var St=We.getFontList(),at=JSON.stringify(St);if(ke===null||Ce!==at){var mt=function(Mt){var Qe=[];return Object.keys(Mt).forEach(function($t){Mt[$t].forEach(function(et){var st=null;switch(et){case"bold":st={family:$t,weight:"bold"};break;case"italic":st={family:$t,style:"italic"};break;case"bolditalic":st={family:$t,weight:"bold",style:"italic"};break;case"":case"normal":st={family:$t}}st!==null&&(st.ref={name:$t,style:et},Qe.push(st))})}),Qe}(St);ke=function(Mt){for(var Qe={},$t=0;$t<Mt.length;++$t){var et=em(Mt[$t]),st=et.family,Yt=et.stretch,gt=et.style,Ve=et.weight;Qe[st]=Qe[st]||{},Qe[st][Yt]=Qe[st][Yt]||{},Qe[st][Yt][gt]=Qe[st][Yt][gt]||{},Qe[st][Yt][gt][Ve]=et}return Qe}(mt.concat(ln)),Ce=at}return ke}(this.pdf,this.fontFaces),It=Xe.map(function(We){return{family:We,stretch:"normal",weight:Ke,style:nt}}),xt=function(We,ln,St){for(var at=(St=St||{}).defaultFontFamily||"times",mt=Object.assign({},TM,St.genericFontFamilies||{}),Mt=null,Qe=null,$t=0;$t<ln.length;++$t)if(mt[(Mt=em(ln[$t])).family]&&(Mt.family=mt[Mt.family]),We.hasOwnProperty(Mt.family)){Qe=We[Mt.family];break}if(!(Qe=Qe||We[at]))throw new Error("Could not find a font-family for the rule '"+db(Mt)+"' and default family '"+at+"'.");if(Qe=function(et,st){if(st[et])return st[et];var Yt=F2[et],gt=Yt<=F2.normal?-1:1,Ve=cb(st,e8,Yt,gt);if(!Ve)throw new Error("Could not find a matching font-stretch value for "+et);return Ve}(Mt.stretch,Qe),Qe=function(et,st){if(st[et])return st[et];for(var Yt=J6[et],gt=0;gt<Yt.length;++gt)if(st[Yt[gt]])return st[Yt[gt]];throw new Error("Could not find a matching font-style for "+et)}(Mt.style,Qe),!(Qe=function(et,st){if(st[et])return st[et];if(et===400&&st[500])return st[500];if(et===500&&st[400])return st[400];var Yt=PM[et],gt=cb(st,t8,Yt,et<400?-1:1);if(!gt)throw new Error("Could not find a matching font-weight for value "+et);return gt}(Mt.weight,Qe)))throw new Error("Failed to resolve a font for the rule '"+db(Mt)+"'.");return Qe}(Be,It);this.pdf.setFont(xt.ref.name,xt.ref.style)}else{var Ze="";(Ke==="bold"||parseInt(Ke,10)>=700||nt==="bold")&&(Ze="bold"),nt==="italic"&&(Ze+="italic"),Ze.length===0&&(Ze="normal");for(var pt="",_t={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"},qe=0;qe<Xe.length;qe++){if(this.pdf.internal.getFont(Xe[qe],Ze,{noFallback:!0,disableWarning:!0})!==void 0){pt=Xe[qe];break}if(Ze==="bolditalic"&&this.pdf.internal.getFont(Xe[qe],"bold",{noFallback:!0,disableWarning:!0})!==void 0)pt=Xe[qe],Ze="bold";else if(this.pdf.internal.getFont(Xe[qe],"normal",{noFallback:!0,disableWarning:!0})!==void 0){pt=Xe[qe],Ze="normal";break}}if(pt===""){for(var rt=0;rt<Xe.length;rt++)if(_t[Xe[rt]]){pt=_t[Xe[rt]];break}}pt=pt===""?"Times":pt,this.pdf.setFont(pt,Ze)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(U){this.ctx.globalCompositeOperation=U}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(U){this.ctx.globalAlpha=U}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(U){this.ctx.lineDashOffset=U,me.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(U){this.ctx.lineDash=U,me.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(U){this.ctx.ignoreClearRect=!!U}})};p.prototype.setLineDash=function(C){this.lineDash=C},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){A.call(this,"fill",!1)},p.prototype.stroke=function(){A.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(C,z){if(isNaN(C)||isNaN(z))throw Kt.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to
299jsPDF.context2d.moveTo");var W=this.ctx.transform.applyToPoint(new a(C,z));this.path.push({type:"mt",x:W.x,y:W.y}),this.ctx.lastPoint=new a(C,z)},p.prototype.closePath=function(){var C=new a(0,0),z=0;for(z=this.path.length-1;z!==-1;z--)if(this.path[z].type==="begin"&&Ut(this.path[z+1])==="object"&&typeof this.path[z+1].x=="number"){C=new a(this.path[z+1].x,this.path[z+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(C.x,C.y)},p.prototype.lineTo=function(C,z){if(isNaN(C)||isNaN(z))throw Kt.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var W=this.ctx.transform.applyToPoint(new a(C,z));this.path.push({type:"lt",x:W.x,y:W.y}),this.ctx.lastPoint=new a(W.x,W.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},p.prototype.quadraticCurveTo=function(C,z,W,ee){if(isNaN(W)||isNaN(ee)||isNaN(C)||isNaN(z))throw Kt.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ne=this.ctx.transform.applyToPoint(new a(W,ee)),J=this.ctx.transform.applyToPoint(new a(C,z));this.path.push({type:"qct",x1:J.x,y1:J.y,x:ne.x,y:ne.y}),this.ctx.lastPoint=new a(ne.x,ne.y)},p.prototype.bezierCurveTo=function(C,z,W,ee,ne,J){if(isNaN(ne)||isNaN(J)||isNaN(C)||isNaN(z)||isNaN(W)||isNaN(ee))throw Kt.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ce=this.ctx.transform.applyToPoint(new a(ne,J)),pe=this.ctx.transform.applyToPoint(new a(C,z)),ge=this.ctx.transform.applyToPoint(new a(W,ee));this.path.push({type:"bct",x1:pe.x,y1:pe.y,x2:ge.x,y2:ge.y,x:ce.x,y:ce.y}),this.ctx.lastPoint=new a(ce.x,ce.y)},p.prototype.arc=function(C,z,W,ee,ne,J){if(isNaN(C)||isNaN(z)||isNaN(W)||isNaN(ee)||isNaN(ne))throw Kt.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(J=!!J,!this.ctx.transform.isIdentity){var ce=this.ctx.transform.applyToPoint(new a(C,z));C=ce.x,z=ce.y;var pe=this.ctx.transform.applyToPoint(new a(0,W)),ge=this.ctx.transform.applyToPoint(new a(0,0));W=Math.sqrt(Math.pow(pe.x-ge.x,2)+Math.pow(pe.y-ge.y,2))}Math.abs(ne-ee)>=2*Math.PI&&(ee=0,ne=2*Math.PI),this.path.push({type:"arc",x:C,y:z,radius:W,startAngle:ee,endAngle:ne,counterclockwise:J})},p.prototype.arcTo=function(C,z,W,ee,ne){throw new Error("arcTo not implemented.")},p.prototype.rect=function(C,z,W,ee){if(isNaN(C)||isNaN(z)||isNaN(W)||isNaN(ee))throw Kt.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(C,z),this.lineTo(C+W,z),this.lineTo(C+W,z+ee),this.lineTo(C,z+ee),this.lineTo(C,z),this.lineTo(C+W,z),this.lineTo(C,z)},p.prototype.fillRect=function(C,z,W,ee){if(isNaN(C)||isNaN(z)||isNaN(W)||isNaN(ee))throw Kt.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var ne={};this.lineCap!=="butt"&&(ne.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ne.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(C,z,W,ee),this.fill(),ne.hasOwnProperty("lineCap")&&(this.lineCap=ne.lineCap),ne.hasOwnProperty("lineJoin")&&(this.lineJoin=ne.lineJoin)}},p.prototype.strokeRect=function(C,z,W,ee){if(isNaN(C)||isNaN(z)||isNaN(W)||isNaN(ee))throw Kt.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");S.call(this)||(this.beginPath(),this.rect(C,z,W,ee),this.stroke())},p.prototype.clearRect=function(C,z,W,ee){if(isNaN(C)||isNaN(z)||isNaN(W)||isNaN(ee))throw Kt.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(C,z,W,ee))},p.prototype.save=function(C){C=typeof C!="boolean"||C;for(var z=this.pdf.internal.getCurrentPageInfo().pageNumber,W=0;W<this.pdf.internal.getNumberOfPages();W++)this.pdf.setPage(W+1),this.pdf.internal.out("q");
vendor: 45,756 bytes, lines 299-305
299if(this.pdf.setPage(z),C){this.ctx.fontSize=this.pdf.internal.getFontSize();var ee=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=ee}},p.prototype.restore=function(C){C=typeof C!="boolean"||C;for(var z=this.pdf.internal.getCurrentPageInfo().pageNumber,W=0;W<this.pdf.internal.getNumberOfPages();W++)this.pdf.setPage(W+1),this.pdf.internal.out("Q");this.pdf.setPage(z),C&&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)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(C){var z,W,ee,ne;if(C.isCanvasGradient===!0&&(C=C.getColor()),!C)return{r:0,g:0,b:0,a:0,style:C};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(C))z=0,W=0,ee=0,ne=0;else{var J=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(C);if(J!==null)z=parseInt(J[1]),W=parseInt(J[2]),ee=parseInt(J[3]),ne=1;else if((J=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(C))!==null)z=parseInt(J[1]),W=parseInt(J[2]),ee=parseInt(J[3]),ne=parseFloat(J[4]);else{if(ne=1,typeof C=="string"&&C.charAt(0)!=="#"){var ce=new V6(C);C=ce.ok?ce.toHex():"#000000"}C.length===4?(z=C.substring(1,2),z+=z,W=C.substring(2,3),W+=W,ee=C.substring(3,4),ee+=ee):(z=C.substring(1,3),W=C.substring(3,5),ee=C.substring(5,7)),z=parseInt(z,16),W=parseInt(W,16),ee=parseInt(ee,16)}}return{r:z,g:W,b:ee,a:ne,style:C}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},S=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(C,z,W,ee){if(isNaN(z)||isNaN(W)||typeof C!="string")throw Kt.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(ee=isNaN(ee)?void 0:ee,!f.call(this)){var ne=$(this.ctx.transform.rotation),J=this.ctx.transform.scaleX;R.call(this,{text:C,x:z,y:W,scale:J,angle:ne,align:this.textAlign,maxWidth:ee})}},p.prototype.strokeText=function(C,z,W,ee){if(isNaN(z)||isNaN(W)||typeof C!="string")throw Kt.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!S.call(this)){ee=isNaN(ee)?void 0:ee;var ne=$(this.ctx.transform.rotation),J=this.ctx.transform.scaleX;R.call(this,{text:C,x:z,y:W,scale:J,renderingMode:"stroke",angle:ne,align:this.textAlign,maxWidth:ee})}},p.prototype.measureText=function(C){if(typeof C!="string")throw Kt.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var z=this.pdf,W=this.pdf.internal.scaleFactor,ee=z.internal.getFontSize(),ne=z.getStringUnitWidth(C)*ee/z.internal.scaleFactor;return new function(J){var ce=(J=J||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ce}}),this}({width:ne*=Math.round(96*W/72*1e4)/1e4})},p.prototype.scale=function(C,z){if(isNaN(C)||isNaN(z))throw Kt.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var W=new l(C,0,0,z,0,0);this.ctx.transform=this.ctx.transform.multiply(W)},p.prototype.rotate=function(C){if(isNaN(C))throw Kt.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var z=new l(Math.cos(C),Math.sin(C),-Math.sin(C),Math.cos(C),0,0);this.ctx.transform=this.ctx.transform.multiply(z)},p.prototype.translate=function(C,z){if(isNaN(C)||isNaN(z))throw Kt.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var W=new l(1,0,0,1,C,z);this.ctx.transform=this.ctx.transform.multiply(W)},p.prototype.transform=function(C,z,W,ee,ne,J){if(isNaN(C)||isNaN(z)||isNaN(W)||isNaN(ee)||isNaN(ne)||isNaN(J))throw Kt.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ce=new l(C,z,W,ee,ne,J);this.ctx.transform=this.ctx.transform.multiply(ce)},p.prototype.setTransform=function(C,z,W,ee,ne,J){C=isNaN(C)?1:C,z=isNaN(z)?0:z,W=isNaN(W)?0:W,ee=isNaN(ee)?1:ee,ne=isNaN(ne)?0:ne,J=isNaN(J)?0:J,this.ctx.transform=new l(C,z,W,ee,ne,J)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(C,z,W,ee,ne,J,ce,pe,ge){var ve=this.pdf.getImageProperties(C),ke=1,Ce=1,Oe=1,U=1;ee!==void 0&&pe!==void 0&&(Oe=pe/ee,U=ge/ne,ke=ve.width/ee*pe/ee,Ce=ve.height/ne*ge/ne),J===void 0&&(J=z,ce=W,z=0,W=0),ee!==void 0&&pe===void 0&&(pe=ee,ge=ne),ee===void 0&&pe===void 0&&(pe=ve.width,ge=ve.height);var Te=this.ctx.transform.decompose(),nt=$(Te.rotate.shx),Ke=new l,Ne=(Ke=(Ke=(Ke=Ke.multiply(Te.translate)).multiply(Te.skew)).multiply(Te.scale)).applyToRectangle(new s(J-z*Oe,ce-W*U,ee*ke,ne*Ce));if(this.autoPaging){for(var Je,Ie=x.call(this,Ne),Xe=[],Be=0;Be<Ie.length;Be+=1)Xe.indexOf(Ie[Be])===-1&&Xe.push(Ie[Be]);_(Xe);for(var It=Xe[0],xt=Xe[Xe.length-1],Ze=It;Ze<xt+1;Ze++){this.pdf.setPage(Ze);var pt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],_t=Ze===1?this.posY+this.margin[0]:this.margin[0],qe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],rt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],We=Ze===1?0:qe+(Ze-2)*rt;if(this.ctx.clip_path.length!==0){var ln=this.path;Je=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(Je,this.posX+this.margin[3],-We+_t+this.ctx.prevPageLastElemOffset),M.call(this,"fill",!0),this.path=ln}var St=JSON.parse(JSON.stringify(Ne));St=b([St],this.posX+this.margin[3],-We+_t+this.ctx.prevPageLastElemOffset)[0];var at=(Ze>It||Ze<xt)&&v.call(this);at&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],pt,rt,null).clip().discardPath()),this.pdf.addImage(C,"JPEG",St.x,St.y,St.w,St.h,null,null,nt),at&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(C,"JPEG",Ne.x,Ne.y,Ne.w,Ne.h,null,null,nt)};var x=function(C,z,W){var ee=[];z=z||this.pdf.internal.pageSize.width,W=W||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ne=this.posY+this.ctx.prevPageLastElemOffset;switch(C.type){default:case"mt":case"lt":ee.push(Math.floor((C.y+ne)/W)+1);break;case"arc":ee.push(Math.floor((C.y+ne-C.radius)/W)+1),ee.push(Math.floor((C.y+ne+C.radius)/W)+1);break;case"qct":var J=Q(this.ctx.lastPoint.x,this.ctx.lastPoint.y,C.x1,C.y1,C.x,C.y);ee.push(Math.floor((J.y+ne)/W)+1),ee.push(Math.floor((J.y+J.h+ne)/W)+1);break;case"bct":var ce=fe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,C.x1,C.y1,C.x2,C.y2,C.x,C.y);ee.push(Math.floor((ce.y+ne)/W)+1),ee.push(Math.floor((ce.y+ce.h+ne)/W)+1);break;case"rect":ee.push(Math.floor((C.y+ne)/W)+1),ee.push(Math.floor((C.y+C.h+ne)/W)+1)}for(var pe=0;pe<ee.length;pe+=1)for(;this.pdf.internal.getNumberOfPages()<ee[pe];)y.call(this);return ee},y=function(){var C=this.fillStyle,z=this.strokeStyle,W=this.font,ee=this.lineCap,ne=this.lineWidth,J=this.lineJoin;this.pdf.addPage(),this.fillStyle=C,this.strokeStyle=z,this.font=W,this.lineCap=ee,this.lineWidth=ne,this.lineJoin=J},b=function(C,z,W){for(var ee=0;ee<C.length;ee++)switch(C[ee].type){case"bct":C[ee].x2+=z,C[ee].y2+=W;case"qct":C[ee].x1+=z,C[ee].y1+=W;default:C[ee].x+=z,C[ee].y+=W}return C},_=function(C){return C.sort(function(z,W){return z-W})},A=function(C,z){var W=this.fillStyle,ee=this.strokeStyle,ne=this.lineCap,J=this.lineWidth,ce=Math.abs(J*this.ctx.transform.scaleX),pe=this.lineJoin;if(this.autoPaging){for(var ge,ve,ke=JSON.parse(JSON.stringify(this.path)),Ce=JSON.parse(JSON.stringify(this.path)),Oe=[],U=0;U<Ce.length;U++)if(Ce[U].x!==void 0)for(var Te=x.call(this,Ce[U]),nt=0;nt<Te.length;nt+=1)Oe.indexOf(Te[nt])===-1&&Oe.push(Te[nt]);for(var Ke=0;Ke<Oe.length;Ke++)for(;this.pdf.internal.getNumberOfPages()<Oe[Ke];)y.call(this);_(Oe);for(var Ne=Oe[0],Je=Oe[Oe.length-1],Ie=Ne;Ie<Je+1;Ie++){this.pdf.setPage(Ie),this.fillStyle=W,this.strokeStyle=ee,this.lineCap=ne,this.lineWidth=ce,this.lineJoin=pe;var Xe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Be=Ie===1?this.posY+this.margin[0]:this.margin[0],It=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],xt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ze=Ie===1?0:It+(Ie-2)*xt;if(this.ctx.clip_path.length!==0){var pt=this.path;ge=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(ge,this.posX+this.margin[3],-Ze+Be+this.ctx.prevPageLastElemOffset),M.call(this,C,!0),this.path=pt}if(ve=JSON.parse(JSON.stringify(ke)),this.path=b(ve,this.posX+this.margin[3],-Ze+Be+this.ctx.prevPageLastElemOffset),z===!1||Ie===0){var _t=(Ie>Ne||Ie<Je)&&v.call(this);_t&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Xe,xt,null).clip().discardPath()),M.call(this,C,z),_t&&this.pdf.restoreGraphicsState()}this.lineWidth=J}this.path=ke}else this.lineWidth=ce,M.call(this,C,z),this.lineWidth=J},M=function(C,z){if((C!=="stroke"||z||!S.call(this))&&(C==="stroke"||z||!f.call(this))){for(var W,ee,ne=[],J=this.path,ce=0;ce<J.length;ce++){var pe=J[ce];switch(pe.type){case"begin":ne.push({begin:!0});break;case"close":ne.push({close:!0});break;case"mt":ne.push({start:pe,deltas:[],abs:[]});break;case"lt":var ge=ne.length;if(J[ce-1]&&!isNaN(J[ce-1].x)&&(W=[pe.x-J[ce-1].x,pe.y-J[ce-1].y],ge>0)){for(;ge>=0;ge--)if(ne[ge-1].close!==!0&&ne[ge-1].begin!==!0){ne[ge-1].deltas.push(W),ne[ge-1].abs.push(pe);break}}break;case"bct":W=[pe.x1-J[ce-1].x,pe.y1-J[ce-1].y,pe.x2-J[ce-1].x,pe.y2-J[ce-1].y,pe.x-J[ce-1].x,pe.y-J[ce-1].y],ne[ne.length-1].deltas.push(W);break;case"qct":var ve=J[ce-1].x+2/3*(pe.x1-J[ce-1].x),ke=J[ce-1].y+2/3*(pe.y1-J[ce-1].y),Ce=pe.x+2/3*(pe.x1-pe.x),Oe=pe.y+2/3*(pe.y1-pe.y),U=pe.x,Te=pe.y;W=[ve-J[ce-1].x,ke-J[ce-1].y,Ce-J[ce-1].x,Oe-J[ce-1].y,U-J[ce-1].x,Te-J[ce-1].y],ne[ne.length-1].deltas.push(W);break;case"arc":ne.push({deltas:[],abs:[],arc:!0}),Array.isArray(ne[ne.length-1].abs)&&ne[ne.length-1].abs.push(pe)}}ee=z?null:C==="stroke"?"stroke":"fill";for(var nt=!1,Ke=0;Ke<ne.length;Ke++)if(ne[Ke].arc)for(var Ne=ne[Ke].abs,Je=0;Je<Ne.length;Je++){var Ie=Ne[Je];Ie.type==="arc"?q.call(this,Ie.x,Ie.y,Ie.radius,Ie.startAngle,Ie.endAngle,Ie.counterclockwise,void 0,z,!nt):Y.call(this,Ie.x,Ie.y),nt=!0}else if(ne[Ke].close===!0)this.pdf.internal.out("h"),nt=!1;else if(ne[Ke].begin!==!0){var Xe=ne[Ke].start.x,Be=ne[Ke].start.y;B.call(this,ne[Ke].deltas,Xe,Be),nt=!0}ee&&F.call(this,ee),z&&X.call(this)}},Z=function(C){var z=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,W=z*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return C-W;case"top":return C+z-W;case"hanging":return C+z-2*W;case"middle":return C+z/2-W;default:return C}},V=function(C){return C+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var C=function(){};return C.colorStops=[],C.addColorStop=function(z,W){this.colorStops.push([z,W])},C.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},C.isCanvasGradient=!0,C},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var q=function(C,z,W,ee,ne,J,ce,pe,ge){for(var ve=oe.call(this,W,ee,ne,J),ke=0;ke<ve.length;ke++){var Ce=ve[ke];ke===0&&(ge?P.call(this,Ce.x1+C,Ce.y1+z):Y.call(this,Ce.x1+C,Ce.y1+z)),ie.call(this,C,z,Ce.x2,Ce.y2,Ce.x3,Ce.y3,Ce.x4,Ce.y4)}pe?X.call(this):F.call(this,ce)},F=function(C){switch(C){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},X=function(){this.pdf.clip(),this.pdf.discardPath()},P=function(C,z){this.pdf.internal.out(n(C)+" "+r(z)+" m")},R=function(C){var z;switch(C.align){case"right":case"end":z="right";break;case"center":z="center";break;default:z="left"}var W,ee,ne,J=this.pdf.getTextDimensions(C.text),ce=Z.call(this,C.y),pe=V.call(this,ce)-J.h,ge=this.ctx.transform.applyToPoint(new a(C.x,ce));if(this.autoPaging){var ve=this.ctx.transform.decompose(),ke=new l;ke=(ke=(ke=ke.multiply(ve.translate)).multiply(ve.skew)).multiply(ve.scale);for(var Ce=this.ctx.transform.applyToRectangle(new s(C.x,ce,J.w,J.h)),Oe=ke.applyToRectangle(new s(C.x,pe,J.w,J.h)),U=x.call(this,Oe),Te=[],nt=0;nt<U.length;nt+=1)Te.indexOf(U[nt])===-1&&Te.push(U[nt]);_(Te);for(var Ke=Te[0],Ne=Te[Te.length-1],Je=Ke;Je<Ne+1;Je++){this.pdf.setPage(Je);var Ie=Je===1?this.posY+this.margin[0]:this.margin[0],Xe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Be=this.pdf.internal.pageSize.height-this.margin[2],It=Be-this.margin[0],xt=this.pdf.internal.pageSize.width-this.margin[1],Ze=xt-this.margin[3],pt=Je===1?0:Xe+(Je-2)*It;if(this.ctx.clip_path.length!==0){var _t=this.path;W=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(W,this.posX+this.margin[3],-1*pt+Ie),M.call(this,"fill",!0),this.path=_t}var qe=b([JSON.parse(JSON.stringify(Oe))],this.posX+this.margin[3],-pt+Ie+this.ctx.prevPageLastElemOffset)[0];C.scale>=.01&&(ee=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ee*C.scale),ne=this.lineWidth,this.lineWidth=ne*C.scale);var rt=this.autoPaging!=="text";if(rt||qe.y+qe.h<=Be){if(rt||qe.y>=Ie&&qe.x<=xt){var We=rt?C.text:this.pdf.splitTextToSize(C.text,C.maxWidth||xt-qe.x)[0],ln=b([JSON.parse(JSON.stringify(Ce))],this.posX+this.margin[3],-pt+Ie+this.ctx.prevPageLastElemOffset)[0],St=rt&&(Je>Ke||Je<Ne)&&v.call(this);St&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ze,It,null).clip().discardPath()),this.pdf.text(We,ln.x,ln.y,{angle:C.angle,align:z,renderingMode:C.renderingMode}),St&&this.pdf.restoreGraphicsState()}}else qe.y<Be&&(this.ctx.prevPageLastElemOffset+=Be-qe.y);C.scale>=.01&&(this.pdf.setFontSize(ee),this.lineWidth=ne)}}else C.scale>=.01&&(ee=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ee*C.scale),ne=this.lineWidth,this.lineWidth=ne*C.scale),this.pdf.text(C.text,ge.x+this.posX,ge.y+this.posY,{angle:C.angle,align:z,renderingMode:C.renderingMode,maxWidth:C.maxWidth}),C.scale>=.01&&(this.pdf.setFontSize(ee),this.lineWidth=ne)},Y=function(C,z,W,ee){W=W||0,ee=ee||0,this.pdf.internal.out(n(C+W)+" "+r(z+ee)+" l")},B=function(C,z,W){return this.pdf.lines(C,z,W,null,null)},ie=function(C,z,W,ee,ne,J,ce,pe){this.pdf.internal.out([t(i(W+C)),t(o(ee+z)),t(i(ne+C)),t(o(J+z)),t(i(ce+C)),t(o(pe+z)),"c"].join(" "))},oe=function(C,z,W,ee){for(var ne=2*Math.PI,J=Math.PI/2;z>W;)z-=ne;var ce=Math.abs(W-z);ce<ne&&ee&&(ce=ne-ce);for(var pe=[],ge=ee?-1:1,ve=z;ce>1e-5;){var ke=ve+ge*Math.min(ce,J);pe.push(se.call(this,C,ve,ke)),ce-=Math.abs(ke-ve),ve=ke}return pe},se=function(C,z,W){var ee=(W-z)/2,ne=C*Math.cos(ee),J=C*Math.sin(ee),ce=ne,pe=-J,ge=ce*ce+pe*pe,ve=ge+ce*ne+pe*J,ke=4/3*(Math.sqrt(2*ge*ve)-ve)/(ce*J-pe*ne),Ce=ce-ke*pe,Oe=pe+ke*ce,U=Ce,Te=-Oe,nt=ee+z,Ke=Math.cos(nt),Ne=Math.sin(nt);return{x1:C*Math.cos(z),y1:C*Math.sin(z),x2:Ce*Ke-Oe*Ne,y2:Ce*Ne+Oe*Ke,x3:U*Ke-Te*Ne,y3:U*Ne+Te*Ke,x4:C*Math.cos(W),y4:C*Math.sin(W)}},$=function(C){return 180*C/Math.PI},Q=function(C,z,W,ee,ne,J){var ce=C+.5*(W-C),pe=z+.5*(ee-z),ge=ne+.5*(W-ne),ve=J+.5*(ee-J),ke=Math.min(C,ne,ce,ge),Ce=Math.max(C,ne,ce,ge),Oe=Math.min(z,J,pe,ve),U=Math.max(z,J,pe,ve);return new s(ke,Oe,Ce-ke,U-Oe)},fe=function(C,z,W,ee,ne,J,ce,pe){var ge,ve,ke,Ce,Oe,U,Te,nt,Ke,Ne,Je,Ie,Xe,Be,It=W-C,xt=ee-z,Ze=ne-W,pt=J-ee,_t=ce-ne,qe=pe-J;for(ve=0;ve<41;ve++)Ke=(Te=(ke=C+(ge=ve/40)*It)+ge*((Oe=W+ge*Ze)-ke))+ge*(Oe+ge*(ne+ge*_t-Oe)-Te),Ne=(nt=(Ce=z+ge*xt)+ge*((U=ee+ge*pt)-Ce))+ge*(U+ge*(J+ge*qe-U)-nt),ve==0?(Je=Ke,Ie=Ne,Xe=Ke,Be=Ne):(Je=Math.min(Je,Ke),Ie=Math.min(Ie,Ne),Xe=Math.max(Xe,Ke),Be=Math.max(Be,Ne));return new s(Math.round(Je),Math.round(Ie),Math.round(Xe-Je),Math.round(Be-Ie))},me=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var C,z,W=(C=this.ctx.lineDash,z=this.ctx.lineDashOffset,JSON.stringify({lineDash:C,lineDashOffset:z}));this.prevLineDash!==W&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=W)}}})(Ye.API),function(e){var t=function(a){var s,l,u,d,p,g,f,S,v,x;for(l=[],u=0,d=(a+=s="\0\0\0\0".slice(a.length%4||4)).length;d>u;u+=4)(p=(a.charCodeAt(u)<<24)+(a.charCodeAt(u+1)<<16)+(a.charCodeAt(u+2)<<8)+a.charCodeAt(u+3))!==0?(g=(p=((p=((p=((p=(p-(x=p%85))/85)-(v=p%85))/85)-(S=p%85))/85)-(f=p%85))/85)%85,l.push(g+33,f+33,S+33,v+33,x+33)):l.push(122);return function(y,b){for(var _=b;_>0;_--)y.pop()}(l,s.length),String.fromCharCode.apply(String,l)+"~>"},n=function(a){var s,l,u,d,p,g=String,f="length",S=255,v="charCodeAt",x="slice",y="replace";for(a[x](-2),a=a[x](0,-2)[y](/\s/g,"")[y]("z","!!!!!"),u=[],d=0,p=(a+=s="uuuuu"[x](a[f]%5||5))[f];p>d;d+=5)l=52200625*(a[v](d)-33)+614125*(a[v](d+1)-33)+7225*(a[v](d+2)-33)+85*(a[v](d+3)-33)+(a[v](d+4)-33),u.push(S&l>>24,S&l>>16,S&l>>8,S&l);return function(b,_){for(var A=_;A>0;A--)b.pop()}(u,s[f]),g.fromCharCode.apply(g,u)},r=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="",u=0;u<a.length;u+=2)l+=String.fromCharCode("0x"+(a[u]+a[u+1]));return l},o=function(a){for(var s=new Uint8Array(a.length),l=a.length;l--;)s[l]=a.charCodeAt(l);return(s=N2(s)).reduce(function(u,d){return u+String.fromCharCode(d)},"")};e.processDataByFilters=function(a,s){var l=0,u=a||"",d=[];for(typeof(s=s||[])=="string"&&(s=[s]),l=0;l<s.length;l+=1)switch(s[l]){case"ASCII85Decode":case"/ASCII85Decode":u=n(u),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=t(u),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=i(u),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=r(u),d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=o(u),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[l]+'" is not implemented')}return{data:u,reverseChain:d.reverse().join(" ")}}}(Ye.API),function(e){e.loadFile=function(t,n,r){return function(i,o,a){o=o!==!1,a=typeof a=="function"?a:function(){};var s=void 0;try{s=function(l,u,d){var p=new XMLHttpRequest,g=0,f=function(S){var v=S.length,x=[],y=String.fromCharCode;for(g=0;g<v;g+=1)x.push(y(255&S.charCodeAt(g)));return x.join("")};if(p.open("GET",l,!u),p.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(p.onload=function(){p.status===200?d(f(this.responseText)):d(void 0)}),p.send(null),u&&p.status===200)return f(p.responseText)}(i,o,a)}catch{}return s}(t,n,r)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(Ye.API),function(e){function t(){return(ot.html2canvas?Promise.resolve(ot.html2canvas):P0(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function n(){return(ot.DOMPurify?Promise.resolve(ot.DOMPurify):P0(()=>import("./purify.es-dhnUglUx.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var l=Ut(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 u=document.createElement(s);for(var d in l.className&&(u.className=l.className),l.innerHTML&&l.dompurify&&(u.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)u.style[d]=l.style[d];return u},o=function s(l,u){for(var d=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),p=l.firstChild;p;p=p.nextSibling)u!==!0&&p.nodeType===1&&p.nodeName==="SCRIPT"||d.appendChild(s(p,u));return l.nodeType===1&&(l.nodeName==="CANVAS"?(d.width=l.width,d.height=l.height,d.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(d.value=l.value),d.addEventListener("load",function(){d.scrollTop=l.scrollTop,d.scrollLeft=l.scrollLeft},!0)),d},a=function s(l){var u=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),d=s.convert(Promise.resolve(),u);return(d=d.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(u){switch(r(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s),l){case"string":return this.then(n).then(function(u){return this.set({src:i("div",{innerHTML:s,dompurify:u})})});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();case"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 u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,l(this.prop.container,u)}).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 u=this.opt.jsPDF,d=this.opt.fontFaces,p=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,g=Object.assign({async:!0,allowTaint:!0,scale:p,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 g.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=d,d)for(var f=0;f<d.length;++f){var S=d[f],v=S.src.find(function(x){return x.format==="truetype"});v&&u.addFont(v.url,S.ref.name,S.ref.style)}return g.windowHeight=g.windowHeight||0,g.windowHeight=g.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):g.windowHeight,u.context2d.save(!0),l(this.prop.container,g)}).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,u){return(u=u||"pdf").toLowerCase()==="img"||u.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(r(s)!=="object")return this;var l=Object.keys(s||{}).map(function(u){if(u in a.template.prop)return function(){this.prop[u]=s[u]};switch(u){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[u]=s[u]}}},this);return this.then(function(){return this.thenList(l)})},a.prototype.get=function(s,l){return this.then(function(){var u=s in a.template.prop?this.prop[s]:this.opt[s];return l?l(u):u})},a.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},a.prototype.setPageSize=function(s){function l(u,d){return Math.floor(u*d/72*96)}return this.then(function(){(s=s||Ye.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,u,d){return s!=null&&(this.progress.val=s),l!=null&&(this.progress.state=l),u!=null&&(this.progress.n=u),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(s,l,u,d){return this.setProgress(s?this.progress.val+s:null,l||null,u?this.progress.n+u:null,d?this.progress.stack.concat(d):null)},a.prototype.then=function(s,l){var u=this;return this.thenCore(s,l,function(d,p){return u.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(g){return u.updateProgress(null,d),g}).then(d,p).then(function(g){return u.updateProgress(1),g})})},a.prototype.thenCore=function(s,l,u){u=u||Promise.prototype.then;var d=this;s&&(s=s.bind(d)),l&&(l=l.bind(d));var p=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?d:a.convert(Object.assign({},d),Promise.prototype),g=u.call(p,s,l);return a.convert(g,d.__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(u){l=l.thenCore(u)}),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,Ye.getPageSize=function(s,l,u){if(Ut(s)==="object"){var d=s;s=d.orientation,l=d.unit||l,u=d.format||u}l=l||"mm",u=u||"a4",s=(""+(s||"P")).toLowerCase();var p,g=(""+u).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":p=1;break;case"mm":p=72/25.4;break;case"cm":p=72/2.54;break;case"in":p=72;break;case"px":p=.75;break;case"pc":case"em":p=12;break;case"ex":p=6;break;default:throw"Invalid unit: "+l}var S,v=0,x=0;if(f.hasOwnProperty(g))v=f[g][1]/p,x=f[g][0]/p;else try{v=u[1],x=u[0]}catch{throw new Error("Invalid format: "+u)}if(s==="p"||s==="portrait")s="p",x>v&&(S=x,x=v,v=S);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",v>x&&(S=x,x=v,v=S)}return{width:x,height:v,unit:l,k:p,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(em):null;var u=new a(l);return l.worker?u:u.from(s).doCallback()}}(Ye.API),Ye.API.addJS=function(e){var t,n,r=function(i){for(var o="",a=0;a<i.length;a++){var s=i[a];if(s==="("||s===")"){for(var l=0,u=a-1;u>=0&&i[u]==="\\";u--)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"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&n!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var n=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=n.outline.render().split(/\r\n/),o=0;o<i.length;o++){var a=i[o],s=r.exec(a);if(s!=null){var l=s[1];n.internal.newObjectDeferredBegin(l,!1)}n.internal.write(a)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,d=[];for(o=0;o<u;o++){var p=n.internal.newObject();d.push(p);var g=n.internal.getPageInfo(o+1);n.internal.write("<< /D["+g.objId+" 0 R /XYZ null null null]>> endobj")}var f=n.internal.newObject();for(n.internal.write("<< /Names [ "),o=0;o<d.length;o++)n.internal.write("(page_"+(o+1)+")"+d[o]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+f+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,i,o){var a={title:i,options:o,children:[]};return r==null&&(r=this.root),r.children.push(a),a},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<r.children.length;o++){var a=r.children[o];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(r)),o>0&&this.line("/Prev "+this.makeRef(r.children[o-1])),o<r.children.length-1&&this.line("/Next "+this.makeRef(r.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=n.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var u=0;u<r.children.length;u++)this.renderItems(r.children[u])},n.outline.line=function(r){this.ctx.val+=r+`\r 300`},n.outline.makeRef=function(r){return r.id+" 0 R"},n.outline.makeString=function(r){return"("+n.internal.pdfEscape(r)+")"},n.outline.objStart=function(r){this.ctx.val+=`\r 301`+r.id+` 0 obj\r 302<<\r 303`},n.outline.objEnd=function(){this.ctx.val+=`>> \r 304endobj\r 305`},n.outline.count_r=function(r,i){for(var o=0;o<i.children.length;o++)r.count++,this.count_r(r,i.children[o]);return r.count}}])}(Ye.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,o,a,s){var l,u=this.decode.DCT_DECODE,d=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=a||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,l=function(p){for(var g,f=256*p.charCodeAt(4)+p.charCodeAt(5),S=p.length,v={width:0,height:0,numcomponents:1},x=4;x<S;x+=2){if(x+=f,t.indexOf(p.charCodeAt(x+1))!==-1){g=256*p.charCodeAt(x+5)+p.charCodeAt(x+6),v={width:256*p.charCodeAt(x+7)+p.charCodeAt(x+8),height:g,numcomponents:p.charCodeAt(x+9)};break}f=256*p.charCodeAt(x+2)+p.charCodeAt(x+3)}return v}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),l.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}d={data:n,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:u,index:r,alias:i}}return d}}(Ye.API),Ye.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,o=gM(e,{checkCrc:!0}),a=o.width,s=o.height,l=o.channels,u=o.palette,d=o.depth;i=u&&l===1?function(q){for(var F=q.width,X=q.height,P=q.data,R=q.palette,Y=q.depth,B=!1,ie=[],oe=[],se=void 0,$=!1,Q=0,fe=0;fe<R.length;fe++){var me=uw(R[fe],4),C=me[0],z=me[1],W=me[2],ee=me[3];ie.push(C,z,W),ee!=null&&(ee===0?(Q++,oe.length<1&&oe.push(fe)):ee<255&&($=!0))}if($||Q>1){B=!0,oe=void 0;var ne=F*X;se=new Uint8Array(ne);for(var J=new DataView(P.buffer),ce=0;ce<ne;ce++){var pe=nm(J,ce,Y),ge=uw(R[pe],4)[3];se[ce]=ge}}else Q===0&&(oe=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:B?8:void 0,colorBytes:P,alphaBytes:se,needSMask:B,palette:ie,mask:oe}}(o):l===2||l===4?function(q){for(var F=q.data,X=q.width,P=q.height,R=q.channels,Y=q.depth,B=R===2?"DeviceGray":"DeviceRGB",ie=R-1,oe=X*P,se=ie,$=oe*se,Q=1*oe,fe=Math.ceil($*Y/8),me=Math.ceil(Q*Y/8),C=new Uint8Array(fe),z=new Uint8Array(me),W=new DataView(F.buffer),ee=new DataView(C.buffer),ne=new DataView(z.buffer),J=!1,ce=0;ce<oe;ce++){for(var pe=ce*R,ge=0;ge<se;ge++)_b(ee,nm(W,pe+ge,Y),ce*se+ge,Y);var ve=nm(W,pe+se,Y);ve<(1<<Y)-1&&(J=!0),_b(ne,ve,1*ce,Y)}return{colorSpace:B,colorsPerPixel:ie,sMaskBitsPerComponent:J?Y:void 0,colorBytes:C,alphaBytes:z,needSMask:J}}(o):function(q){var F=q.data,X=q.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:X,colorsPerPixel:X==="DeviceGray"?1:3,colorBytes:F instanceof Uint16Array?function(P){for(var R=P.length,Y=new Uint8Array(2*R),B=new DataView(Y.buffer,Y.byteOffset,Y.byteLength),ie=0;ie<R;ie++)B.setUint16(2*ie,P[ie],!1);return Y}(F):F,needSMask:!1}}(o);var p,g,f,S=i,v=S.colorSpace,x=S.colorsPerPixel,y=S.sMaskBitsPerComponent,b=S.colorBytes,_=S.alphaBytes,A=S.needSMask,M=S.palette,Z=S.mask,V=null;return r!==Ye.API.image_compression.NONE&&typeof N2=="function"?(V=function(q){var F;switch(q){case Ye.API.image_compression.FAST:F=11;break;case Ye.API.image_compression.MEDIUM:F=13;break;case Ye.API.image_compression.SLOW:F=14;break;default:F=12}return F}(r),p=this.decode.FLATE_DECODE,g="/Predictor ".concat(V," /Colors ").concat(x," /BitsPerComponent ").concat(d," /Columns ").concat(a),e=vb(b,Math.ceil(a*x*d/8),x,d,r),A&&(f=vb(_,Math.ceil(a*y/8),1,y,r))):(p=void 0,g=void 0,e=b,A&&(f=_)),(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:n,data:e,index:t,filter:p,decodeParameters:g,transparency:Z,palette:M,sMask:f,predictor:V,width:a,height:s,bitsPerComponent:d,sMaskBitsPerComponent:y,colorSpace:v}}},function(e){e.processGIF89A=function(t,n,r,i){var o=new FM(t),a=o.width,s=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:a,height:s},d=new rm(100).encode(u,100);return e.processJPEG.call(this,d,n,r,i)},e.processGIF87A=e.processGIF89A}(Ye.API),Ti.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ti.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(n){Kt.log("bit decode error:"+n)}},Ti.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=r*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}n!==0&&(this.pos+=4-n)}},Ti.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*i*4,s=o>>4,l=15&o,u=this.palette[s];if(this.data[a]=u.blue,this.data[a+1]=u.green,this.data[a+2]=u.red,this.data[a+3]=255,2*i+1>=this.width)break;u=this.palette[l],this.data[a+4]=u.blue,this.data[a+4+1]=u.green,this.data[a+4+2]=u.red,this.data[a+4+3]=255}t!==0&&(this.pos+=4-t)}},Ti.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;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)}},Ti.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var 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,u=o>>15?255:0,d=r*this.width*4+4*i;this.data[d]=l,this.data[d+1]=s,this.data[d+2]=a,this.data[d+3]=u}this.pos+=e}},Ti.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,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&n)/n*255|0,u=(a>>11)/t*255|0,d=i*this.width*4+4*o;this.data[d]=u,this.data[d+1]=l,this.data[d+2]=s,this.data[d+3]=255}this.pos+=e}},Ti.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},Ti.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=a}},Ti.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,i){var o=new Ti(t,!1),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},u=new rm(100).encode(l,100);return e.processJPEG.call(this,u,n,r,i)}}(Ye.API),Nb.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,i){var o=new Nb(t),a=o.width,s=o.height,l={data:o.getData(),width:a,height:s},u=new rm(100).encode(l,100);return e.processJPEG.call(this,u,n,r,i)}}(Ye.API),Ye.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,o=new Uint8Array(i/4*3),a=new Uint8Array(i/4),s=0,l=0,u=0;u<i;u+=4){var d=r[u],p=r[u+1],g=r[u+2],f=r[u+3];o[s++]=d,o[s++]=p,o[s++]=g,a[l++]=f}var S=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:S,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Ye.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
305a)","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},Bl=Ye.API,uh=Bl.getCharWidthsArray=function(e,t){var n,r,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,u=t.kerning?t.kerning:i.metadata.Unicode.kerning,d=u.fof?u.fof:1,p=t.doKerning!==!1,g=0,f=e.length,S=0,v=s[0]||l,x=[];for(n=0;n<f;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?x.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+a*(1e3/o)||0)/1e3):(g=p&&Ut(u[r])==="object"&&!isNaN(parseInt(u[r][S],10))?u[r][S]/d:0,x.push((s[r]||v)/l+g)),S=r;return x},pb=Bl.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Bl.processArabic&&(e=Bl.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:uh.apply(this,arguments).reduce(function(o,a){return o+a},0)},mb=function(e,t,n,r){for(var i=[],o=0,a=e.length,s=0;o!==a&&s+t[o]<n;)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 305-307
305r&&(i.push(e.slice(l,o)),s=0,l=o),s+=t[o],o++;return l!==o&&i.push(e.slice(l,o)),i},gb=function(e,t,n){n||(n={});var r,i,o,a,s,l,u,d=[],p=[d],g=n.textIndent||0,f=0,S=0,v=e.split(" "),x=uh.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?v[0].length+2:n.lineIndent||0){var y=Array(l).join(" "),b=[];v.map(function(A){(A=A.split(/\s*\n/)).length>1?b=b.concat(A.map(function(M,Z){return(Z&&M.length?` 306`:"")+M})):b.push(A[0])}),v=b,l=pb.apply(this,[y,n])}for(o=0,a=v.length;o<a;o++){var _=0;if(r=v[o],l&&r[0]==` 307`&&(r=r.substr(1),_=1),g+f+(S=(i=uh.apply(this,[r,n])).reduce(function(A,M){return A+M},0))>t||_){if(S>t){for(s=mb.apply(this,[r,i,t-(g+f),t]),d.push(s.shift()),d=[s.pop()];s.length;)p.push([s.shift()]);S=i.slice(r.length-(d[0]?d[0].length:0)).reduce(function(A,M){return A+M},0)}else d=[r];p.push(d),g=S+l,f=x}else d.push(r),g+=f+S,f=x}return u=l?function(A,M){return(M?y:"")+A.join(" ")}:function(A){return A.join(" ")},p.map(u)},Bl.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=(function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var p=this.internal.getFont(d.fontName,d.fontStyle),g="Unicode";return p.metadata[g]?{widths:p.metadata[g].widths||{0:1},kerning:p.metadata[g].kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,l,u=[];for(s=0,l=r.length;s<l;s++)u=u.concat(gb.apply(this,[r[s],a,o]));return u},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},o=0;o<16;o++)r[n[o]]=t[o],i[t[o]]=n[o];var a=function(g){return"0x"+parseInt(g,10).toString(16)},s=e.__fontmetrics__.compress=function(g){var f,S,v,x,y=["{"];for(var b in g){if(f=g[b],isNaN(parseInt(b,10))?S="'"+b+"'":(b=parseInt(b,10),S=(S=a(b).slice(2)).slice(0,-1)+i[S.slice(-1)]),typeof f=="number")f<0?(v=a(f).slice(3),x="-"):(v=a(f).slice(2),x=""),v=x+v.slice(0,-1)+i[v.slice(-1)];else{if(Ut(f)!=="object")throw new Error("Don't know what to do with value type "+Ut(f)+".");v=s(f)}y.push(S+v)}return y.push("}"),y.join("")},l=e.__fontmetrics__.uncompress=function(g){if(typeof g!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,S,v,x,y={},b=1,_=y,A=[],M="",Z="",V=g.length-1,q=1;q<V;q+=1)(x=g[q])=="'"?f?(v=f.join(""),f=void 0):f=[]:f?f.push(x):x=="{"?(A.push([_,v]),_={},v=void 0):x=="}"?((S=A.pop())[0][S[1]]=_,v=void 0,_=S[0]):x=="-"?b=-1:v===void 0?r.hasOwnProperty(x)?(M+=r[x],v=parseInt(M,16)*b,b=1,M=""):M+=x:r.hasOwnProperty(x)?(Z+=r[x],_[v]=parseInt(Z,16)*b,b=1,v=void 0,Z=""):Z+=x;return y},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},p
vendor: 14,727 bytes, line 307
307={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,660 bytes, lines 307-335
307g){var f=g.font,S=p.Unicode[f.postScriptName];S&&(f.metadata.Unicode={},f.metadata.Unicode.widths=S.widths,f.metadata.Unicode.kerning=S.kerning);var v=d.Unicode[f.postScriptName];v&&(f.metadata.Unicode.encoding=v,f.encoding=v.codePages[0])}])}(Ye.API),function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,o=n.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(r=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(Rh(s)),a.metadata=e.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(i,r)}}])}(Ye),Ye.API.addSvgAsImage=function(e,t,n,r,i,o,a,s){if(isNaN(t)||isNaN(n))throw Kt.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Kt.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var u=l.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,l.width,l.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return(ot.canvg?Promise.resolve(ot.canvg):P0(()=>import("./index.es-b4KdDPRi.js"),[])).catch(function(g){return Promise.reject(new Error("Could not load canvg: "+g))}).then(function(g){return g.default?g.default:g}).then(function(g){return g.fromString(u,e,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(g){return g.render(d)}).then(function(){p.addImage(l.toDataURL("image/jpeg",1),t,n,r,i,a,s)})},Ye.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},Ye.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,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=[],u=0,d=0,p=0;function g(S,v){var x,y=!1;for(x=0;x<S.length;x+=1)S[x]===v&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var f=s.length;for(p=0;p<f;p+=1)n[s[p]].value=n[s[p]].defaultValue,n[s[p]].explicitSet=!1}if(Ut(e)==="object"){for(i in e)if(o=e[i],g(s,i)&&o!==void 0){if(n[i].type==="boolean"&&typeof o=="boolean")n[i].value=o;else if(n[i].type==="name"&&g(n[i].valueSet,o))n[i].value=o;else if(n[i].type==="integer"&&Number.isInteger(o))n[i].value=o;else if(n[i].type==="array"){for(u=0;u<o.length;u+=1)if(r=!0,o[u].length===1&&typeof o[u][0]=="number")l.push(String(o[u]-1));else if(o[u].length>1){for(d=0;d<o[u].length;d+=1)typeof o[u][d]!="number"&&(r=!1);r===!0&&l.push([o[u][0]-1,o[u][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var S,v=[];for(S in n)n[S].explicitSet===!0&&(n[S].type==="name"?v.push("/"+S+" /"+n[S].value):v.push("/"+S+" "+n[S].value));v.length!==0&&this.internal.write(`/ViewerPreferences 308<< 309`+v.join(` 310`)+` 311>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Ye.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",BM),this.internal.events.subscribe("postPutResources",DM)),this},function(e){var t=e.API,n=t.pdfEscape16=function(o,a){for(var s,l=a.metadata.Unicode.widths,u=["","0","00","000","0000"],d=[""],p=0,g=o.length;p<g;++p){if(s=a.metadata.characterToGlyph(o.charCodeAt(p)),a.metadata.glyIdsUsed.push(s),a.metadata.toUnicode[s]=o.charCodeAt(p),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(a.metadata.widthOfGlyph(s),10)])),s=="0")return d.join("");s=s.toString(16),d.push(u[4-s.length],s)}return d.join("")},r=function(o){var a,s,l,u,d,p,g;for(d=`/CIDInit /ProcSet findresource begin 31212 dict begin 313begincmap 314/CIDSystemInfo << 315 /Registry (Adobe) 316 /Ordering (UCS) 317 /Supplement 0 318>> def 319/CMapName /Adobe-Identity-UCS def 320/CMapType 2 def 3211 begincodespacerange 322<0000><ffff> 323endcodespacerange`,l=[],p=0,g=(s=Object.keys(o).sort(function(f,S){return f-S})).length;p<g;p++)a=s[p],l.length>=100&&(d+=` 324`+l.length+` beginbfchar 325`+l.join(` 326`)+` 327endbfchar`,l=[]),o[a]!==void 0&&o[a]!==null&&typeof o[a].toString=="function"&&(u=("0000"+o[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),l.push("<"+a+"><"+u+">"));return l.length&&(d+=` 328`+l.length+` beginbfchar 329`+l.join(` 330`)+` 331endbfchar 332`),d+`endcmap 333CMapName currentdict /CMap defineresource pop 334end 335end`};t.events.push(["putFont",function(o){(function(a){var s=a.font,l=a.out,u=a.newObject,d=a.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var p=s.metadata.Unicode.widths,g=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),f="",S=0;S<g.length;S++)f+=String.fromCharCode(g[S]);var v=u();d({data:f,addLength1:!0,objectId:v}),l("endobj");var x=u();d({data:r(s.metadata.toUnicode),addLength1:!0,objectId:x}),l("endobj");var y=u();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+ql(s.fontName)),l("/FontFile2 "+v+" 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 b=u();l("<<"),l("/Type /Font"),l("/BaseFont /"+ql(s.fontName)),l("/FontDescriptor "+y+" 0 R"),l("/W "+e.API.PDFObject.convert(p)),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=u(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+x+" 0 R"),l("/BaseFont /"+ql(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+b+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(o)}]),t.events.push(["putFont",function(o){(function(a){var s=a.font,l=a.out,u=a.newObject,d=a.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var p=s.metadata.rawData,g="",f=0;f<p.length;f++)g+=String.fromCharCode(p[f]);var S=u();d({data:g,addLength1:!0,objectId:S}),l("endobj");var v=u();d({data:r(s.metadata.toUnicode),addLength1:!0,objectId:v}),l("endobj");var x=u();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/
335FontFile2 "+S+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+ql(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=u();for(var y=0;y<s.metadata.hmtx.widths.length;y++)s.metadata.hmtx.widths[y]=parseInt(s.metadata.hmtx.widths[y]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+v+" 0 R/BaseFont/"+ql(s.fontName)+"/FontDescriptor "+x+" 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,u=o.y,d=o.options||{},p=o.mutex||{},g=p.pdfEscape,f=p.activeFontKey,S=p.fonts,v=f,x="",y=0,b="",_=S[v].encoding;if(S[v].encoding!=="Identity-H")return{text:s,x:l,y:u,options:d,mutex:p};for(b=s,v=f,Array.isArray(s)&&(b=s[0]),y=0;y<b.length;y+=1)S[v].metadata.hasOwnProperty("cmap")&&(a=S[v].metadata.cmap.unicode.codeMap[b[y].charCodeAt(0)]),a||b[y].charCodeAt(0)<256&&S[v].metadata.hasOwnProperty("Unicode")?x+=b[y]:x+="";var A="";return parseInt(v.slice(1))<14||_==="WinAnsiEncoding"?A=g(x,v).split("").map(function(M){return M.charCodeAt(0).toString(16)}).join(""):_==="Identity-H"&&(A=n(x,S[v])),p.isHex=!0,{text:A,x:l,y:u,options:d,mutex:p}};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 u=0;for(u=0;u<a.length;u+=1)Array.isArray(a[u])&&a[u].length===3?s.push([i(Object.assign({},l,{text:a[u][0]})).text,a[u][1],a[u][2]]):s.push(i(Object.assign({},l,{text:a[u]})).text);o.text=s}else o.text=i(Object.assign({},l,{text:a})).text}])}(Ye),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,r){return t.call(this),this.internal.vFS[n]=r,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(Ye.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var i,o,a,s,l,u,d,p=t,g=[[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]],S={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},v={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},x=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","â¹","âº","â¹","â
","â","â
","â½","â¾","â½","â","â","â","â¤","â¥","â¤","â©","âª","â©","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","﹤","ï¹¥","﹤"],y=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)$/),b=!1,_=0;this.__bidiEngine__={};var A=function(P){var R=P.charCodeAt(),Y=R>>8,B=v[Y];return B!==void 0?p[256*B+(255&R)]:Y===252||Y===253?"AL":y.test(Y)?"L":Y===8?"R":"N"},M=function(P){for(var R,Y=0;Y<P.length;Y++){if((R=A(P.charAt(Y)))==="L")return!1;if(R==="R")return!0}return!1},Z=function(P,R,Y,B){var ie,oe,se,$,Q=R[B];switch(Q){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":b=!1;break;case"N":case"AN":break;case"EN":b&&(Q="AN");break;case"AL":b=!0,Q="R";break;case"WS":case"BN":Q="N";break;case"CS":B<1||B+1>=R.length||(ie=Y[B-1])!=="EN"&&ie!=="AN"||(oe=R[B+1])!=="EN"&&oe!=="AN"?Q="N":b&&(oe="AN"),Q=oe===ie?oe:"N";break;case"ES":Q=(ie=B>0?Y[B-1]:"B")==="EN"&&B+1<R.length&&R[B+1]==="EN"?"EN":"N";break;case"ET":if(B>0&&Y[B-1]==="EN"){Q="EN";break}if(b){Q="N";break}for(se=B+1,$=R.length;se<$&&R[se]==="ET";)se++;Q=se<$&&R[se]==="EN"?"EN":"N";break;case"NSM":if(a&&!s){for($=R.length,se=B+1;se<$&&R[se]==="NSM";)se++;if(se<$){var fe=P[B],me=fe>=1425&&fe<=2303||fe===64286;if(ie=R[se],me&&(ie==="R"||ie==="AL")){Q="R";break}}}Q=B<1||(ie=R[B-1])==="B"?"N":Y[B-1];break;case"B":b=!1,i=!0,Q=_;break;case"S":o=!0,Q="N"}return Q},V=function(P,R,Y){var B=P.split("");return Y&&q(B,Y,{hiLevel:_}),B.reverse(),R&&R.reverse(),B.join("")},q=function(P,R,Y){var B,ie,oe,se,$,Q=-1,fe=P.length,me=0,C=[],z=_?f:g,W=[];for(b=!1,i=!1,o=!1,ie=0;ie<fe;ie++)W[ie]=A(P[ie]);for(oe=0;oe<fe;oe++){if($=me,C[oe]=Z(P,W,C,oe),B=240&(me=z[$][S[C[oe]]]),me&=15,R[oe]=se=z[me][5],B>0)if(B===16){for(ie=Q;ie<oe;ie++)R[ie]=1;Q=-1}else Q=-1;if(z[me][6])Q===-1&&(Q=oe);else if(Q>-1){for(ie=Q;ie<oe;ie++)R[ie]=se;Q=-1}W[oe]==="B"&&(R[oe]=0),Y.hiLevel|=se}o&&function(ee,ne,J){for(var ce=0;ce<J;ce++)if(ee[ce]==="S"){ne[ce]=_;for(var pe=ce-1;pe>=0&&ee[pe]==="WS";pe--)ne[pe]=_}}(W,R,fe)},F=function(P,R,Y,B,ie){if(!(ie.hiLevel<P)){if(P===1&&_===1&&!i)return R.reverse(),void(Y&&Y.reverse());for(var oe,se,$,Q,fe=R.length,me=0;me<fe;){if(B[me]>=P){for($=me+1;$<fe&&B[$]>=P;)$++;for(Q=me,se=$-1;Q<se;Q++,se--)oe=R[Q],R[Q]=R[se],R[se]=oe,Y&&(oe=Y[Q],Y[Q]=Y[se],Y[se]=oe);me=$}me++}}},X=function(P,R,Y){var B=P.split(""),ie={hiLevel:_};return Y||(Y=[]),q(B,Y,ie),function(oe,se,$){if($.hiLevel!==0&&d)for(var Q,fe=0;fe<oe.length;fe++)se[fe]===1&&(Q=x.indexOf(oe[fe]))>=0&&(oe[fe]=x[Q+1])}(B,Y,ie),F(2,B,R,Y,ie),F(1,B,R,Y,ie),B.join("")};return this.__bidiEngine__.doBidiReorder=function(P,R,Y){if(function(ie,oe){if(oe)for(var se=0;se<ie.length;se++)oe[se]=se;s===void 0&&(s=M(ie)),u===void 0&&(u=M(ie))}(P,R),a||!l||u)if(a&&l&&s^u)_=s?1:0,P=V(P,R,Y);else if(!a&&l&&u)_=s?1:0,P=X(P,R,Y),P=V(P,R);else if(!a||s||l||u){if(a&&!l&&s^u)P=V(P,R),s?(_=0,P=X(P,R,Y)):(_=1,P=X(P,R,Y),P=V(P,R));else if(a&&s&&!l&&u)_=1,P=X(P,R,Y),P=V(P,R);else if(!a&&!l&&s^u){var B=d;s?(_=1,P=X(P,R,Y),_=0,d=!1,P=X(P,R,Y),d=B):(_=0,P=X(P,R,Y),P=V(P,R),_=1,d=!1,P=X(P,R,Y),d=B,P=V(P,R))}}else _=0,P=X(P,R,Y);else _=s?1:0,P=X(P,R,Y);return P},this.__bidiEngine__.setOptions=function(P){P&&(a=P.isInputVisual,l=P.isOutputVisual,s=P.isInputRtl,u=P.isOutputRtl,d=P.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var i=r.text;r.x,r.y;var o=r.options||{};r.mutex,o.lang;var a=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,n.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([n.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):a.push([n.doBidiReorder(i[s])]);r.text=a}else r.text=n.doBidiReorder(i);n.setOptions({isInputVisual:!0})}])}(Ye),Ye.API.TTFFont=function(){function e(t){var n;if(this.rawData=t,n=this.contents=new ts(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new e9(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new zM(this.contents),this.head=new qM(this),this.name=new GM(this),this.cmap=new r8(this),this.toUnicode={},
vendor: 18,901 bytes, line 335
335this.hhea=new $M(this),this.maxp=new KM(this),this.hmtx=new YM(this),this.post=new WM(this),this.os2=new HM(this),this.loca=new JM(this),this.glyf=new ZM(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,n,r,i,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var a,s,l,u;for(u=[],a=0,s=(l=this.bbox).length;a<s;a++)t=l[a],u.push(Math.round(t*this.scaleFactor));return u}).call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(n=i>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(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 n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,r){var i,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))+r*(1e3/n)||0;return a*(n/1e3)},e.prototype.lineHeight=function(t,n){var r;return n==null&&(n=!1),r=n?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},e}();var Gi,ts=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var n,r;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r[n]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(t){var n,r,i;for(i=[],n=0,r=t.length;0<=r?n<r:n>r;n=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(n)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,r,i,o,a,s,l;return t=this.readByte(),n=this.readByte(),r=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^n)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^o)+65536*(255^a)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*n+1099511627776*r+4294967296*i+16777216*o+65536*a+256*s+l},e.prototype.writeLongLong=function(t){var n,r;return n=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,r;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n.push(this.readByte());return n},e.prototype.write=function(t){var n,r,i,o;for(o=[],r=0,i=t.length;r<i;r++)n=t[r],o.push(this.writeByte(n));return o},e}(),zM=function(){var e;function t(n){var r,i,o;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},i=0,o=this.tableCount;0<=o?i<o:i>o;i=0<=o?++i:--i)r={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(n){var r,i,o,a,s,l,u,d,p,g,f,S,v;for(v in f=Object.keys(n).length,l=Math.log(2),p=16*Math.floor(Math.log(f)/l),a=Math.floor(p/l),d=16*f-p,(i=new ts).writeInt(this.scalarType),i.writeShort(f),i.writeShort(p),i.writeShort(a),i.writeShort(d),o=16*f,u=i.pos+o,s=null,S=[],n)for(g=n[v],i.writeString(v),i.writeInt(e(g)),i.writeInt(u),i.writeInt(g.length),S=S.concat(g),v==="head"&&(s=u),u+=g.length;u%4;)S.push(0),u++;return i.write(S),r=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(r),i.data},e=function(n){var r,i,o,a;for(n=i8.call(n);n.length%4;)n.push(0);for(o=new ts(n),i=0,r=0,a=n.length;r<a;r=r+=4)i+=o.readUInt32();return 4294967295&i},t}(),UM={}.hasOwnProperty,No=function(e,t){for(var n in t)UM.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};Gi=function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var qM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return No(e,Gi),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var n;return(n=new ts).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},e}(),Ab=function(){function e(t,n){var r,i,o,a,s,l,u,d,p,g,f,S,v,x,y,b,_;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),p=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(),g=f/2,t.pos+=6,o=function(){var A,M;for(M=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)M.push(t.readUInt16());return M}(),t.pos+=2,v=function(){var A,M;for(M=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)M.push(t.readUInt16());return M}(),u=function(){var A,M;for(M=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)M.push(t.readUInt16());return M}(),d=function(){var A,M;for(M=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)M.push(t.readUInt16());return M}(),i=(this.length-t.pos+this.offset)/2,s=function(){var A,M;for(M=[],l=A=0;0<=i?A<i:A>i;l=0<=i?++A:--A)M.push(t.readUInt16());return M}(),l=y=0,_=o.length;y<_;l=++y)for(x=o[l],r=b=S=v[l];S<=x?b<=x:b>=x;r=S<=x?++b:--b)d[l]===0?a=r+u[l]:(a=s[d[l]/2+(r-S)-(g-l)]||0)!==0&&(a+=u[l]),this.codeMap[r]=65535&a}t.pos=p}return e.encode=function(t,n){var r,i,o,a,s,l,u,d,p,g,f,S,v,x,y,b,_,A,M,Z,V,q,F,X,P,R,Y,B,ie,oe,se,$,Q,fe,me,C,z,W,ee,ne,J,ce,pe,ge,ve,ke;switch(B=new ts,a=Object.keys(t).sort(function(Ce,Oe){return Ce-Oe}),n){case"macroman":for(v=0,x=function(){var Ce=[];for(S=0;S<256;++S)Ce.push(0);return Ce}(),b={0:0},o={},ie=0,Q=a.length;ie<Q;ie++)b[pe=t[i=a[ie]]]==null&&(b[pe]=++v),o[i]={old:t[i],new:b[t[i]]},x[i]=b[t[i]];return B.writeUInt16(1),B.writeUInt16(0),B.writeUInt32(12),B.writeUInt16(0),B.writeUInt16(262),B.writeUInt16(0),B.write(x),{charMap:o,subtable:B.data,maxGlyphID:v+1};case"unicode":for(R=[],p=[],_=0,b={},r={},y=u=null,oe=0,fe=a.length;oe<fe;oe++)b[M=t[i=a[oe]]]==null&&(b[M]=++_),r[i]={old:M,new:b[M]},s=b[M]-i,y!=null&&s===u||(y&&p.push(y),R.push(i),u=s),y=i;for(y&&p.push(y),p.push(65535),R.push(65535),X=2*(F=R.length),q=2*Math.pow(Math.log(F)/Math.LN2,2),g=Math.log(q/2)/Math.LN2,V=2*F-q,l=[],Z=[],f=[],S=se=0,me=R.length;se<me;S=++se){if(P=R[S],d=p[S],P===65535){l.push(0),Z.push(0);break}if(P-(Y=r[P].new)>=32768)for(l.push(0),Z.push(2*(f.length+F-S)),i=$=P;P<=d?$<=d:$>=d;i=P<=d?++$:--$)f.push(r[i].new);else l.push(Y-P),Z.push(0)}for(B.writeUInt16(3),B.writeUInt16(1),B.writeUInt32(12),B.writeUInt16(4),B.writeUInt16(16+8*F+2*f.length),B.writeUInt16(0),B.writeUInt16(X),B.writeUInt16(q),B.writeUInt16(g),B.writeUInt16(V),J=0,C=p.length;J<C;J++)i=p[J],B.writeUInt16(i);for(B.writeUInt16(0),ce=0,z=R.length;ce<z;ce++)i=R[ce],B.writeUInt16(i);for(ge=0,W=l.length;ge<W;ge++)s=l[ge],B.writeUInt16(s);for(ve=0,ee=Z.length;ve<ee;ve++)A=Z[ve],B.writeUInt16(A);for(ke=0,ne=f.length;ke<ne;ke++)v=f[ke],B.writeUInt16(v);return{charMap:r,subtable:B.data,maxGlyphID:_+1}}},e}(),r8=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return No(e,Gi),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,r,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=i?r<i:r>i;r=0<=i?++r:--r)n=new Ab(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var r,i;return n==null&&(n="macroman"),r=Ab.encode(t,n),(i=new ts).writeUInt16(0),i.writeUInt16(1),r.table=i.data.concat(r.subtable),r},e}(),$M=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return No(e,Gi),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}(),HM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return No(e,Gi),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var n,r;for(r=[],n=0;n<10;++n)r.push(t.readByte());return r}(),this.charRange=function(){var n,r;for(r=[],n=0;n<4;++n)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var n,r;for(r=[],n=0;n<2;n=++n)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),WM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return No(e,Gi),e.prototype.tag="post",e.prototype.parse=function(t){var n,r,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(r=t.readUInt16(),this.glyphNameIndex=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)n=t.readByte(),i.push(this.names.push(t.readString(n)));return i;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var 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}(),VM=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},GM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return No(e,Gi),e.prototype.tag="name",e.prototype.parse=function(t){var n,r,i,o,a,s,l,u,d,p,g;for(t.pos=this.offset,t.readShort(),n=t.readShort(),s=t.readShort(),r=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+s+t.readShort()});for(l={},o=d=0,p=r.length;d<p;o=++d)i=r[o],t.pos=i.offset,u=t.readString(i.length),a=new VM(u,i),l[g=i.nameID]==null&&(l[g]=[]),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}(),KM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return No(e,Gi),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}(),YM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return No(e,Gi),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,r,i,o,a,s,l;for(t.pos=this.offset,this.metrics=[],n=0,s=this.file.hhea.numberOfMetrics;0<=s?n<s:n>s;n=0<=s?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,d;for(d=[],n=u=0;0<=i?u<i:u>i;n=0<=i?++u:--u)d.push(t.readInt16());return d}(),this.widths=(function(){var u,d,p,g;for(g=[],u=0,d=(p=this.metrics).length;u<d;u++)o=p[u],g.push(o.advance);return g}).call(this),r=this.widths[this.widths.length-1],l=[],n=a=0;0<=i?a<i:a>i;n=0<=i?++a:--a)l.push(this.widths.push(r));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),i8=[].slice,ZM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return No(e,Gi),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,r,i,o,a,s,l,u,d,p;return t in this.cache?this.cache[t]:(o=this.file.loca,n=this.file.contents,r=o.indexOf(t),(i=o.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+r,a=(s=new ts(n.read(i))).readShort(),u=s.readShort(),p=s.readShort(),l=s.readShort(),d=s.readShort(),this.cache[t]=a===-1?new QM(s,u,p,l,d):new XM(s,a,u,p,l,d),this.cache[t]))},e.prototype.encode=function(t,n,r){var i,o,a,s,l;for(a=[],o=[],s=0,l=n.length;s<l;s++)i=t[n[s]],o.push(a.length),i&&(a=a.concat(i.encode(r)));return o.push(a.length),{table:a,offsets:o}},e}(),XM=function(){function e(t,n,r,i,o,a){this.raw=t,this.numberOfContours=n,this.xMin=r,this.yMin=i,this.xMax=o,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),QM=function(){function e(t,n,r,i,o){var a,s;for(this.raw=t,this.xMin=n,this.yMin=r,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,n,r;for(n=new ts(i8.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)n.pos=this.glyphOffsets[t];return n.data},e}(),JM=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return No(e,Gi),e.prototype.tag="loca",e.prototype.parse=function(t){var n,r;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var i,o;for(o=[],r=0,i=this.length;r<i;r+=2)o.push(2*t.readUInt16());return o}).call(this):(function(){var i,o;for(o=[],r=0,i=this.length;r<i;r+=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]}
335,e.prototype.encode=function(t,n){for(var r=new Uint32Array(this.offsets.length),i=0,o=0,a=0;a<r.length;++a)if(r[a]=i,o<n.length&&n[o]==a){++o,r[a]=i;var s=this.offsets[a],l=this.offsets[a+1]-s;l>0&&(i+=l)}for(var u=new Array(4*r.length),d=0;d<r.length;++d)u[4*d+3]=255&r[d],u[4*d+2]=(65280&r[d])>>8,u[4*d+1]=(16711680&r[d])>>16,u[4*d]=(4278190080&r[d])>>24;return u},e}(),e9=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,r,i,o;for(n in i=this.font.cmap.tables[0].codeMap,t={},o=this.subset)r=o[n],t[n]=i[r];return t},e.prototype.glyphsFor=function(t){var n,r,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 n=[],i)(r=i[o])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(o in l=this.glyphsFor(n))r=l[o],i[o]=r;return i},e.prototype.encode=function(t,n){var r,i,o,a,s,l,u,d,p,g,f,S,v,x,y;for(i in r=r8.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},y=r.charMap)f[(l=y[i]).old]=l.new;for(S in g=r.maxGlyphID,a)S in f||(f[S]=g++);return d=function(b){var _,A;for(_ in A={},b)A[b[_]]=_;return A}(f),p=Object.keys(d).sort(function(b,_){return b-_}),v=function(){var b,_,A;for(A=[],b=0,_=p.length;b<_;b++)s=p[b],A.push(d[s]);return A}(),o=this.font.glyf.encode(a,v,f),u=this.font.loca.encode(o.offsets,v),x={cmap:this.font.cmap.raw(),glyf:o.table,loca:u,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(x["OS/2"]=this.font.os2.raw()),this.font.directory.encode(x)},e}();Ye.API.PDFObject=function(){var e;function t(){}return e=function(n,r){return(Array(r+1).join("0")+n).slice(-r)},t.convert=function(n){var r,i,o,a;if(Array.isArray(n))return"["+function(){var s,l,u;for(u=[],s=0,l=n.length;s<l;s++)r=n[s],u.push(t.convert(r));return u}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n!=null&&n.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(i in o=["<<"],n)a=n[i],o.push("/"+i+" "+t.convert(a));return o.push(">>"),o.join(` 336`)}return""+n},t}();function t9(e,t){const n=new Ye({orientation:"landscape",unit:"mm",format:"a4"}),r=n.internal.pageSize.getWidth(),i=n.internal.pageSize.getHeight();n.setFillColor(245,247,250),n.rect(0,0,r,i,"F"),n.setDrawColor(30,90,160),n.setLineWidth(2),n.rect(10,10,r-20,i-20),n.setLineWidth(.5),n.rect(13,13,r-26,i-26),n.setFont("helvetica","bold"),n.setFontSize(24),n.setTextColor(30,90,160),n.text("SET Bias Correction Certificate",r/2,34,{align:"center"}),n.setFontSize(9),n.setFont("helvetica","normal"),n.setTextColor(100,100,100),n.text("Student Evaluation of Teaching â Bias-Corrected Results",r/2,42,{align:"center"}),n.setDrawColor(30,90,160),n.setLineWidth(.5),n.line(40,47,r-40,47);let o=55;n.setFontSize(9),n.setFont("helvetica","bold"),n.setTextColor(30,30,30),n.text("Professor Profile",25,o),o+=5,n.setFont("helvetica","normal"),n.setFontSize(7.5),[`Gender: ${e.profGender===1?"Male":"Female"} | Age: ${e.profAge} | Status: ${e.fullTime===1?"Permanent":"Adjunct"} | Native Speaker: ${e.nativeSpeaker===1?"Yes":"No"}`,`Student Gender (prop. male): ${e.studentGender} | Student Age: ${e.studentAge} | Avg. Grade: ${e.studentGrade}/20 | Cultural Distance: ${e.culturalDistance}%`,`Current SET Score: ${e.currentSET}`].forEach(d=>{n.text(d,25,o),o+=4}),o+=3,n.setFont("helvetica","bold"),n.setFontSize(9),n.text("Bias Correction Results",25,o),o+=5,n.setFillColor(30,90,160),n.rect(25,o-3,r-50,5.5,"F"),n.setTextColor(255,255,255),n.setFontSize(7),n.text("Scenario",28,o),n.text("Correction",r-75,o,{align:"right"}),n.text("Corrected SET",r-28,o,{align:"right"}),o+=6,n.setTextColor(30,30,30),n.setFont("helvetica","normal"),n.setFontSize(7);let s=0;for(const d of t)for(const p of d.results){if(o>i-30)break;const g=`${p.percentage>=0?"+":""}${Math.round(p.percentage*100)}%`;s%2===0&&(n.setFillColor(235,240,248),n.rect(25,o-3,r-50,4.5,"F")),n.text(p.label,28,o),n.text(g,r-75,o,{align:"right"}),n.setFont("helvetica","bold"),n.text(p.correctedSET.toFixed(1),r-28,o,{align:"right"}),n.setFont("helvetica","normal"),o+=4.5,s++}n.setFontSize(6),n.setTextColor(120,120,120);const l=new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});n.text(`Generated on ${l}`,r/2,i-22,{align:"center"}),n.setFontSize(5.5),n.setTextColor(100,100,100);const u=n.splitTextToSize(`Source: ${YS}`,r-60);n.text(u,r/2,i-18,{align:"center"}),n.save("SET_Bias_Correction_Certificate.pdf")}const n9={culturalDistance:0,profGender:1,profAge:44,studentGender:.5,studentAge:22,studentGrade:14,fullTime:1,nativeSpeaker:0,currentSET
336:4};function r9(){const[e,t]=E.useState(n9),n=E.useMemo(()=>YR(e),[e]);return O.jsxs("div",{className:"min-h-screen bg-background",children:[O.jsxs("header",{className:"relative overflow-hidden py-14 sm:py-20",style:{background:"var(--hero-gradient)"},children:[O.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 20% 50%, white 1px, transparent 1px)",backgroundSize:"40px 40px"}}),O.jsxs("div",{className:"container relative z-10 text-center",children:[O.jsx("p",{className:"mb-2 text-sm font-medium uppercase tracking-widest text-primary-foreground/60",children:"Research-Based Tool"}),O.jsx("h1",{className:"text-3xl font-bold tracking-tight text-primary-foreground sm:text-4xl md:text-5xl",children:"SET Bias Correction Tool"}),O.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-base leading-relaxed text-primary-foreground/80",children:"Discover how demographic and contextual biases affect your Student Evaluation of Teaching scores. Adjust your profile and see counterfactual corrections in real time."}),O.jsxs("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-x-1 text-sm text-primary-foreground/70",children:[O.jsx("span",{children:"Based on the article by"}),C0.map((r,i)=>O.jsxs("span",{children:[O.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-primary-foreground underline decoration-primary-foreground/40 underline-offset-2 hover:
336decoration-primary-foreground",children:r.name}),i<C0.length-1&&(i===C0.length-2?" & ":", ")]},r.name))]}),O.jsxs("a",{href:KS,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-flex items-center gap-1.5 rounded-full border border-primary-foreground/20 bg-primary-foreground/10 px-4 py-1.5 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary-foreground/20",children:["Read the article ",O.jsx(xC,{className:"h-3 w-3"})]}),O.jsxs(h4,{to:"/about",className:"mt-3 ml-2 inline-flex items-center gap-1.5 rounded-full border border-primary-foreground/20 bg-primary-foreground/10 px-4 py-1.5 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary-foreground/20",children:["About & Legal ",O.jsx(SC,{className:"h-3 w-3"})]})]})]}),O.jsxs("main",{className:"container max-w-5xl py-10",children:[O.jsxs("div",{className:"grid gap-8 lg:grid-cols-2",children:[O.jsxs(f2,{className:"overflow-hidden border-0 shadow-lg",children:[O.jsxs("div",{className:"border-b bg-muted/50 px-6 py-4",children:[O.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Your Characteristics"}),O.jsx("p",{className:"text-xs text-muted-foreground",children:"Adjust the sliders and dropdowns to match your profile"})]}),O.jsx("div",{className:"p-6",children:O.jsx(HR,{inputs:e,onChange:t})})]}),O.jsxs(f2,{className:"overflow-hidden border-0 shadow-lg",children:[O.jsxs("div",{className:"border-b bg-muted/50 px-6 py-4",children:[O.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Bias Corrections"}),O.jsx("p",{className:"text-xs text-muted-foreground",children:"See how your SET would change under different scenarios"})]}),O.jsx("div",{className:"p-6",children:O.jsx(GR,{groups:n})})]})]}),O.jsx("div",{className:"mt-10 flex justify-center",children:O.jsxs(I_,{size:"lg",onClick:()=>t9(e,n),className:"gap-2 text-base shadow-md",children:[O.jsx(_C,{className:"h-5 w-5"}),"Download PDF Certificate"]})}),O.jsxs("div",{className:"mt-8 rounded-lg border bg-muted/30 px-6 py-4 text-xs leading-relaxed text-muted-foreground",children:[O.jsxs("p",{className:"mb-2",children:[O.jsx("strong",{children:"Note."})," The adjustments of your SET are based on the data presented in the article. While they can offer some direction, they are somewhat limited to the specific Business School context. The data set allowed corrections for male and female gender only."]}),O.jsxs("p",{children:[O.jsx("strong",{children:"Source."})," ",YS]})]})]})]})}function i9(){return O.jsxs("div",{className:"min-h-screen bg-background",children:[O.jsxs("header",{className:"relative overflow-hidden py-14 sm:py-20",style:{background:"var(--hero-gradient)"},children:[O.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 20% 50%, white 1px, transparent 1px)",backgroundSize:"40px 40px"}}),O.jsx("div",{className:"container relative z-10 text-center",children:O.jsx("h1",{className:"text-3xl font-bold tracking-tight text-primary-foreground sm:text-4xl md:text-5xl",children:"About"})})]}),O.jsxs("main",{className:"container max-w-3xl py-10 space-y-8",children:[O.jsxs(h4,{to:"/",className:"inline-flex items-center gap-1.5 text-sm font-medium text-primary hover:underline",children:[O.jsx(yC,{className:"h-4 w-4"})," Back to Tool"]}),O.jsxs("section",{className:"space-y-4 text-sm leading-relaxed text-foreground",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"About this webapp"}),O.jsxs("p",{children:["This webapp is an extension of the article"," ",O.jsx("em",{children:`"Do Business School Students Value Faculty Diversity? Insights from a Dyadic Analysis of Students' Evaluations of Teaching"`})," ","by Yashar Bashirzadeh, Luc Meunier, and Robert Mai. The manuscript was accepted at the journal"," ",O.jsx("em",{children:"Academy of Management Learning & Education"})," ","(",O.jsx("a",{href:KS,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline underline-offset-2 hover:text-primary/80",children:"https://doi.org/10.5465/amle.2023.0541"}),"). The data come from the analysis reported in the article."]})]}),O.jsxs("section",{className:"space-y-4 text-sm leading-relaxed text-foreground",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Legal Notice"}),O.jsx("p",{children:"This application is published for academic research purposes by the authors. This website is hosted on lovable.dev. This tool is provided exclusively for academic research and educational purposes. It is not intended for c
336ommercial use."}),O.jsx("p",{children:"This application processes anonymous aggregated research data. No personal data is collected from users. Connection logs may be temporarily stored by the hosting service for technical purposes only."}),O.jsx("p",{children:"The application code and visualizations are protected by copyright. The underlying research data is subject to the terms of the original dataset license."}),O.jsx("p",{children:'This application is provided "as is" for research purposes. While every effort has been made to ensure accuracy, we cannot guarantee the completeness or accuracy of the information presented. Users should refer to the original academic publication for definitive research findings.'}),O.jsx("p",{children:"For questions regarding this application or the underlying research, please contact the authors:"}),O.jsxs("ul",{className:"list-disc pl-6 space-y-1 text-muted-foreground",children:[O.jsx("li",{children:"yashar.bashirzadeh[at]grenoble-em.com"}),O.jsx("li",{children:"luc.meunier[at]essca.fr"}),O.jsx("li",{children:"robert.mai[at]grenoble-em.com"})]})]})]})]})}const o9=()=>{const e=Uf();return E.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),O.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:O.jsxs("div",{className:"text-center",children:[O.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),O.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),O.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},a9=new Dk,s9=()=>O.jsx(zk,{client:a9,children:O.jsxs(WP,{children:[O.jsx(a7,{}),O.jsx(yL,{}),O.jsx(FE,{children:O.jsxs(PE,{children:[O.jsx(_h,{path:"/",element:O.jsx(r9,{})}),O.jsx(_h,{path:"/about",element:O.jsx(i9,{})}),O.jsx(_h,{path:"*",element:O.jsx(o9,{})})]})})]})});K3(document.getElementById("root")).render(O.jsx(s9,{}));export{Ut as _,u9 as c,Ob 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.