vendor: 28,184 bytes, lines 1-9
1function Q_(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var yU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Om(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C0={exports:{}},Rd={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var H5;function $_(){if(H5)return Rd;H5=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return Rd.Fragment=t,Rd.jsx=n,Rd.jsxs=n,Rd}var q5;function X_(){return q5||(q5=1,C0.exports=$_()),C0.exports}var x=X_(),pu=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(){}},K_={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Z_=class{#t=K_;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},Zc=new Z_;function J_(e){setTimeout(e,0)}var tu=typeof window>"u"||"Deno"in globalThis;function Is(){}function e8(e,t){return typeof e=="function"?e(t):e}function R1(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ec(e,t){return typeof e=="function"?e(t):e}function ai(e,t){return typeof e=="function"?e(t):e}function G5(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==kv(l,t.options))return!1}else if(!rh(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function W5(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(tc(t.options.mutationKey)!==tc(o))return!1}else if(!rh(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function kv(e,t){return(t?.queryKeyHashFn||tc)(e)}function tc(e){return JSON.stringify(e,(t,n)=>D1(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function rh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>rh(e[n],t[n])):!1}var t8=Object.prototype.hasOwnProperty;function Fv(e,t){if(e===t)return e;const n=V5(e)&&V5(t);if(!n&&!(D1(e)&&D1(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),l=o.length,c=n?new Array(l):{};let f=0;for(let d=0;d<l;d++){const h=n?d:o[d],m=e[h],y=t[h];if(m===y){c[h]=m,(n?d<a:t8.call(e,h))&&f++;continue}if(m===null||y===null||typeof m!="object"||typeof y!="object"){c[h]=y;continue}const g=Fv(m,y);c[h]=g,g===m&&f++}return a===l&&f===a?e:c}function sh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function V5(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function D1(e){if(!Y5(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Y5(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Y5(e){return Object.prototype.toString.call(e)==="[object Object]"}function n8(e){return new Promise(t=>{Zc.setTimeout(t,e)})}function M1(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Fv(e,t):t}function r8(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function s8(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ia=Symbol();function e3(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ia?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function t3(e,t){return typeof e=="function"?e(...t):!!e}var a8=class extends pu{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!tu&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Iv=new a8;function k1(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var i8=J_;function o8(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=i8;const o=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||l()}return f},batchCalls:c=>(...f)=>{o(()=>{c(...f)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var Fr=o8(),l8=class extends pu{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!tu&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},sm=new l8;function c8(e){return Math.min(1e3*2**e,3e4)}function n3(e){return(e??"online")==="online"?sm.isOnline():!0}var F1=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function r3(e){let t=!1,n=0,r;const a=k1(),o=()=>a.status!=="pending",l=w=>{if(!o()){const E=new F1(w);y(E),e.onCancel?.(E)}},c=()=>{t=!0},f=()=>{t=!1},d=()=>Iv.isFocused()&&(e.networkMode==="always"||sm.isOnline())&&e.canRun(),h=()=>n3(e.networkMode)&&e.canRun(),m=w=>{o()||(r?.(),a.resolve(w))},y=w=>{o()||(r?.(),a.reject(w))},g=()=>new Promise(w=>{r=E=>{(o()||d())&&w(E)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),N=()=>{if(o())return;let w;const E=n===0?e.initialPromise:void 0;try{w=E??e.fn()}catch(_){w=Promise.reject(_)}Promise.resolve(w).then(m).catch(_=>{if(o())return;const z=e.retry??(tu?0:3),H=e.retryDelay??c8,k=typeof H=="function"?H(n,_):H,K=z===!0||typeof z=="number"&&n<z||typeof z=="function"&&z(n,_);if(t||!K){y(_);return}n++,e.onFail?.(n,_),n8(k).then(()=>d()?void 0:g()).then(()=>{t?y(_):N()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r?.(),a),cancelRetry:c,continueRetry:f,canStart:h,start:()=>(h()?N():g().then(N),a)}}var s3=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),R1(this.gcTime)&&(this.#t=Zc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(tu?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Zc.clearTimeout(this.#t),this.#t=void 0)}},u8=class extends s3{#t;#e;#n;#s;#r;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#n=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Q5(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Q5(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=M1(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Is).catch(Is):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>ai(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ia||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ec(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Jw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},a=()=>{const c=e3(this.options,t),d=(()=>{const h={client:this.#s,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#o=!1,this.options.persister?this.options.persister(c,d,this):c(d)},l=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:a};return r(c),c})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=r3({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:c=>{c instanceof F1&&c.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(c,f)=>{this.#i({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const c=await this.#r.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof F1){if(c.silent)return this.#r.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#i({type:"error",error:c}),this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...a3(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Fr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function a3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:n3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Q5(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 ph=class extends pu{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=k1(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#s=void 0;#r;#a;#o;#i;#h;#f;#d;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),$5(this.#e,this.options)?this.#p():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return I1(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return I1(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ai(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!sh(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&X5(this.#e,n,this.options,t)&&this.#p(),this.updateResult(),r&&(this.#e!==n||ai(this.options.enabled,this.#e)!==ai(t.enabled,this.#e)||ec(this.options.staleTime,this.#e)!==ec(t.staleTime,this.#e))&&this.#g();const a=this.#v();r&&(this.#e!==n||ai(this.options.enabled,this.#e)!==ai(t.enabled,this.#e)||a!==this.#l)&&this.#y(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return d8(this,n)&&(this.#s=n,this.#a=this.options,this.#r=this.#e.state),n}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#p(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Is)),t}#g(){this.#x();const e=ec(this.options.staleTime,this.#e);if(tu||this.#s.isStale||!R1(e))return;const n=Jw(this.#s.dataUpdatedAt,e)+1;this.#c=Zc.setTimeout(()=>{this.#s.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(tu||ai(this.options.enabled,this.#e)===!1||!R1(this.#l)||this.#l===0)&&(this.#u=Zc.setInterval(()=>{(this.options.refetchIntervalInBackground||Iv.isFocused())&&this.#p()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#c&&(Zc.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(Zc.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#s,o=this.#r,l=this.#a,f=e!==n?e.state:this.#n,{state:d}=e;let h={...d},m=!1,y;if(t._optimisticResults){const O=this.hasListeners(),R=!O&&$5(e,t),Q=O&&X5(e,n,t,r);(R||Q)&&(h={...h,...a3(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:g,errorUpdatedAt:N,status:w}=h;y=h.data;let E=!1;if(t.placeholderData!==void 0&&y===void 0&&w==="pending"){let O;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(O=a.data,E=!0):O=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,O!==void 0&&(w="success",y=M1(a?.data,O,t),m=!0)}if(t.select&&y!==void 0&&!E)if(a&&y===o?.data&&t.select===this.#h)y=this.#f;else try{this.#h=t.select,y=t.select(y),y=M1(a?.data,y,t),this.#f=y,this.#i=null}catch(O){this.#i=O}this.#i&&(g=this.#i,y=this.#f,N=Date.now(),w="error");const _=h.fetchStatus==="fetching",z=w==="pending",H=w==="error",k=z&&_,K=y!==void 0,G={status:w,fetchStatus:h.fetchStatus,isPending:z,isSuccess:w==="success",isError:H,isInitialLoading:k,isLoading:k,data:y,dataUpdatedAt:h.dataUpdatedAt,error:g,errorUpdatedAt:N,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>f.dataUpdateCount||h.errorUpdateCount>f.errorUpdateCount,isFetching:_,isRefetching:_&&!z,isLoadingError:H&&!K,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:H&&K,isStale:Uv(e,t),refetch:this.refetch,promise:this.#o,isEnabled:ai(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const O=j=>{G.status==="error"?j.reject(G.error):G.data!==void 0&&j.resolve(G.data)},R=()=>{const j=this.#o=G.promise=k1();O(j)},Q=this.#o;switch(Q.status){case"pending":e.queryHash===n.queryHash&&O(Q);break;case"fulfilled":(G.status==="error"||G.data!==Q.value)&&R();break;case"rejected":(G.status!=="error"||G.error!==Q.reason)&&R();break}}return G}updateResult(){const e=this.#s,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#a=this.options,this.#r.data!==void 0&&(this.#d=this.#e),sh(t,e))return;this.#s=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#m.size)return!0;const o=new Set(a??this.#m);return this.options.throwOnError&&o.add("error"),Object.keys(this.#s).some(l=>{const c=l;return this.#s[c]!==e[c]&&o.has(c)})};this.#A({listeners:n()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#A(e){Fr.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#s)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function f8(e,t){return ai(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function $5(e,t){return f8(e,t)||e.state.data!==void 0&&I1(e,t,t.refetchOnMount)}function I1(e,t,n){if(ai(t.enabled,e)!==!1&&ec(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Uv(e,t)}return!1}function X5(e,t,n,r){return(e!==t||ai(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Uv(e,n)}function Uv(e,t){return ai(t.enabled,e)!==!1&&e.isStaleByTime(ec(t.staleTime,e))}function d8(e,t){return!sh(e.getCurrentResult(),t)}function am(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},f=0;const d=async()=>{let h=!1;const m=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},y=e3(t.options,t.fetchOptions),g=async(N,w,E)=>{if(h)return Promise.reject();if(w==null&&N.pages.length)return Promise.resolve(N);const z=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:w,direction:E?"backward":"forward",meta:t.options.meta};return m(U),U})(),H=await y(z),{maxPages:k}=t.options,K=E?s8:r8;return{pages:K(N.pages,H,k),pageParams:K(N.pageParams,w,k)}};if(a&&o.length){const N=a==="backward",w=N?i3:U1,E={pages:o,pageParams:l},_=w(r,E);c=await g(E,_,N)}else{const N=e??o.length;do{const w=f===0?l[0]??r.initialPageParam:U1(r,c);if(f>0&&w==null)break;c=await g(c,w),f++}while(f<N)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function U1(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 i3(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function h8(e,t){return t?U1(e,t)!=null:!1}function p8(e,t){return!t||!e.getPreviousPageParam?!1:i3(e,t)!=null}var o3=class extends ph{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:am()})}getOptimisticResult(e){return e.behavior=am(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:a,isRefetching:o,isError:l,isRefetchError:c}=r,f=n.fetchMeta?.fetchMore?.direction,d=l&&f==="forward",h=a&&f==="forward",m=l&&f==="backward",y=a&&f==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:h8(t,n.data),hasPreviousPage:p8(t,n.data),isFetchNextPageError:d,isFetchingNextPage:h,isFetchPreviousPageError:m,isFetchingPreviousPage:y,isRefetchError:c&&!d&&!m,isRefetching:o&&!h&&!y}}},m8=class extends s3{#t;#e;#n;#s;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||l3(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=r3({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,l)=>{this.#r({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#s.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:a})}const o=await this.#s.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#n.config.onError?.(o,e,this.state.context,this,n),await this.options.onError?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,o,e,this.state.context,n),o}finally{this.#r({type:"error",error:o})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Fr.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function l3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var g8=class extends pu{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new m8({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=xp(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=xp(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=xp(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=xp(e);return typeof t=="string"?this.#e.get(t)?.find(r=>
vendor: 2,022 bytes, line 9
9r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Fr.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>W5(t,n))}findAll(e={}){return this.getAll().filter(t=>W5(e,t))}notify(e){Fr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Fr.batch(()=>Promise.all(e.map(t=>t.continue().catch(Is))))}};function xp(e){return e.options.scope?.id}var v8=class extends pu{#t;#e=void 0;#n;#s;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),sh(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&tc(n.mutationKey)!==tc(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#a(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#a()}mutate(t,n){return this.#s=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??l3();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){Fr.batch(()=>{if(this.#s&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context,a={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#s.onSuccess?.(t.data,n,r,a),this.#s.onSettled?.(t.data,null,
9n,r,a)):t?.type==="error"&&(this.#s.onError?.(t.error,n,r,a),this.#s.onSettled?.(void 0,t.error,n,r,a))}this.listeners.forEach(n=>{n(this.#e)})})}};function K5(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function y8(e,t,n){const r=e.slice(0);return r[t]=n,r}var b8=class extends pu{#t;#e;#n;#s;#r;#a;#o;#i;#h=[];constructor(e,t,n){super(),this.#t=e,this.#s=n,this.#n=[],this.#r=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#u(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#s=t,Fr.batch(()=>{const n=this.#r,r=this.#c(this.#n);this.#h=r,r.forEach(h=>h.observer.setOptions(h.defaultedQueryOptions));const a=r.map(h=>h.observer),o=a.map(h=>h.getCurrentResult()),l=n.length!==a.length,c=a.some((h,m)=>h!==n[m]),f=l||c,d=f?!0:o.some((h,m)=>{const y=this.#e[m];return!y||!sh(h,y)});!f&&!d||(f&&(this.#r=a),this.#e=o,this.hasListeners()&&(f&&(K5(n,a).forEach(h=>{h.destroy()}),K5(a,n).forEach(h=>{h.subscribe(m=>{this.#u(h,m)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const n=this.#c(e),r=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[r,a=>this.#d(a??r,t),()=>this.#f(r,n)]}#f(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,o=>{t.forEach(l=>{l.observer.trackProp(o)})})})}#d(e,t){return t?((!this.#a||this.#e!==this.#i||t!==this.#o)&&(this.#o=t,this.#i=this.#e,this.#a=Fv(this.#a,t(e))),this.#a):e}#c(e){const t=new Map(this.#r.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const a=this.#t.defaultQueryOptions(r),o=t.get(a.queryHash);o?n.push({defaultedQueryOptions:a,observer:o}):n.push({defaultedQueryOptions:a,observer:new ph(this.#t,a)})}),n}#u(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#e=y8(this.#e,n,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#a,t=this.#f(this.#e,this.#h),n=this.#d(t,this.#s?.combine);e!==n&&Fr.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},x8=class extends pu{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??kv(r,t);let o=this.get(a);return o||(o=new u8({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Fr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>G5(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>G5(e,n)):t}notify(e){Fr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Fr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Fr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},w8=class{#t;#e;#n;#s;#r;#a;#o;#i;constructor(e={}){this.#t=e.queryCache||new x8,this.#e=e.mutationCache||new g8,this.#n=e.defaultOptions||{},this.#s=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Iv.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=sm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ec(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#t.get(r.queryHash)?.state.data,l=e8(t,o);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}
vendor: 11,612 bytes, lines 9-17
9setQueriesData(e,t,n){return Fr.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Fr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Fr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Fr.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Is).catch(Is)}invalidateQueries(e,t={}){return Fr.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Fr.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Is)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Is)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(ec(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Is).catch(Is)}fetchInfiniteQuery(e){return e.behavior=am(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Is).catch(Is)}ensureInfiniteQueryData(e){return e.behavior=am(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return sm.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#s.set(tc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{rh(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(tc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{rh(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=kv(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===Ia&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},E0={exports:{}},rn={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Z5;function S8(){if(Z5)return rn;Z5=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),y=Symbol.iterator;function g(ee){return ee===null||typeof ee!="object"?null:(ee=y&&ee[y]||ee["@@iterator"],typeof ee=="function"?ee:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,E={};function _(ee,P,B){this.props=ee,this.context=P,this.refs=E,this.updater=B||N}_.prototype.isReactComponent={},_.prototype.setState=function(ee,P){if(typeof ee!="object"&&typeof ee!="function"&&ee!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,ee,P,"setState")},_.prototype.forceUpdate=function(ee){this.updater.enqueueForceUpdate(this,ee,"forceUpdate")};function z(){}z.prototype=_.prototype;function H(ee,P,B){this.props=ee,this.context=P,this.refs=E,this.updater=B||N}var k=H.prototype=new z;k.constructor=H,w(k,_.prototype),k.isPureReactComponent=!0;var K=Array.isArray;function U(){}var G={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function R(ee,P,B){var V=B.ref;return{$$typeof:e,type:ee,key:P,ref:V!==void 0?V:null,props:B}}function Q(ee,P){return R(ee.type,P,ee.props)}function j(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===e}function D(ee){var P={"=":"=0",":":"=2"};return"$"+ee.replace(/[=:]/g,function(B){return P[B]})}var $=/\/+/g;function W(ee,P){return typeof ee=="object"&&ee!==null&&ee.key!=null?D(""+ee.key):P.toString(36)}function te(ee){switch(ee.status){case"fulfilled":return ee.value;case"rejected":throw ee.reason;default:switch(typeof ee.status=="string"?ee.then(U,U):(ee.status="pending",ee.then(function(P){ee.status==="pending"&&(ee.status="fulfilled",ee.value=P)},function(P){ee.status==="pending"&&(ee.status="rejected",ee.reason=P)})),ee.status){case"fulfilled":return ee.value;case"rejected":throw ee.reason}}throw ee}function L(ee,P,B,V,Y){var oe=typeof ee;(oe==="undefined"||oe==="boolean")&&(ee=null);var le=!1;if(ee===null)le=!0;else switch(oe){case"bigint":case"string":case"number":le=!0;break;case"object":switch(ee.$$typeof){case e:case t:le=!0;break;case h:return le=ee._init,L(le(ee._payload),P,B,V,Y)}}if(le)return Y=Y(ee),le=V===""?"."+W(ee,0):V,K(Y)?(B="",le!=null&&(B=le.replace($,"$&/")+"/"),L(Y,P,B,"",function(Ae){return Ae})):Y!=null&&(j(Y)&&(Y=Q(Y,B+(Y.key==null||ee&&ee.key===Y.key?"":(""+Y.key).replace($,"$&/")+"/")+le)),P.push(Y)),1;le=0;var me=V===""?".":V+":";if(K(ee))for(var ge=0;ge<ee.length;ge++)V=ee[ge],oe=me+W(V,ge),le+=L(V,P,B,oe,Y);else if(ge=g(ee),typeof ge=="function")for(ee=ge.call(ee),ge=0;!(V=ee.next()).done;)V=V.value,oe=me+W(V,ge++),le+=L(V,P,B,oe,Y);else if(oe==="object"){if(typeof ee.then=="function")return L(te(ee),P,B,V,Y);throw P=String(ee),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(ee).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return le}function M(ee,P,B){if(ee==null)return ee;var V=[],Y=0;return L(ee,V,"","",function(oe){return P.call(B,oe,Y++)}),V}function X(ee){if(ee._status===-1){var P=ee._result;P=P(),P.then(function(B){(ee._status===0||ee._status===-1)&&(ee._status=1,ee._result=B)},function(B){(ee._status===0||ee._status===-1)&&(ee._status=2,ee._result=B)}),ee._status===-1&&(ee._status=0,ee._result=P)}if(ee._status===1)return ee._result.default;throw ee._result}var se=typeof reportError=="function"?reportError:function(ee){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof ee=="object"&&ee!==null&&typeof ee.message=="string"?String(ee.message):String(ee),error:ee});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",ee);return}console.error(ee)},pe={map:M,forEach:function(ee,P,B){M(ee,function(){P.apply(this,arguments)},B)},count:function(ee){var P=0;return M(ee,function(){P++}),P},toArray:function(ee){return M(ee,function(P){return P})||[]},only:function(ee){if(!j(ee))throw Error("React.Children.only expected to receive a single React element child.");return ee}};return rn.Activity=m,rn.Children=pe,rn.Component=_,rn.Fragment=n,rn.Profiler=a,rn.PureComponent=H,rn.StrictMode=r,rn.Suspense=f,rn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,rn.__COMPILER_RUNTIME={__proto__:null,c:function(ee){return G.H.useMemoCache(ee)}},rn.cache=function(ee){return function(){return ee.apply(null,arguments)}},rn.cacheSignal=function(){return null},rn.cloneElement=function(ee,P,B){if(ee==null)throw Error("The argument must be a React element, but you passed "+ee+".");var V=w({},ee.props),Y=ee.key;if(P!=null)for(oe in P.key!==void 0&&(Y=""+P.key),P)!O.call(P,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&P.ref===void 0||(V[oe]=P[oe]);var oe=arguments.length-2;if(oe===1)V.children=B;else if(1<oe){for(var le=Array(oe),me=0;me<oe;me++)le[me]=arguments[me+2];V.children=le}return R(ee.type,Y,V)},rn.createContext=function(ee){return ee={$$typeof:l,_currentValue:ee,_currentValue2:ee,_threadCount:0,Provider:null,Consumer:null},ee.Provider=ee,ee.Consumer={$$typeof:o,_context:ee},ee},rn.createElement=function(ee,P,B){var V,Y={},oe=null;if(P!=null)for(V in P.key!==void 0&&(oe=""+P.key),P)O.call(P,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(Y[V]=P[V]);var le=arguments.length-2;if(le===1)Y.children=B;else if(1<le){for(var me=Array(le),ge=0;ge<le;ge++)me[ge]=arguments[ge+2];Y.children=me}if(ee&&ee.defaultProps)for(V in le=ee.defaultProps,le)Y[V]===void 0&&(Y[V]=le[V]);return R(ee,oe,Y)},rn.createRef=function(){return{current:null}},rn.forwardRef=function(ee){return{$$typeof:c,render:ee}},rn.isValidElement=j,rn.lazy=function(ee){return{$$typeof:h,_payload:{_status:-1,_result:ee},_init:X}},rn.memo=function(ee,P){return{$$typeof:d,type:ee,compare:P===void 0?null:P}},rn.startTransition=function(ee){var P=G.T,B={};G.T=B;try{var V=ee(),Y=G.S;Y!==null&&Y(B,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(U,se)}catch(oe){se(oe)}finally{P!==null&&B.types!==null&&(P.types=B.types),G.T=P}},rn.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},rn.use=function(ee){return G.H.use(ee)},rn.useActionState=function(ee,P,B){return G.H.useActionState(ee,P,B)},rn.useCallback=function(ee,P){return G.H.useCallback(ee,P)},rn.useContext=function(ee){return G.H.useContext(ee)},rn.useDebugValue=function(){},rn.useDeferredValue=function(ee,P){return G.H.useDeferredValue(ee,P)},rn.useEffect=function(ee,P){return G.H.useEffect(ee,P)},rn.useEffectEvent=function(ee){return G.H.useEffectEvent(ee)},rn.useId=function(){return G.H.useId()},rn.useImperativeHandle=function(ee,P,B){return G.H.useImperativeHandle(ee,P,B)},rn.useInsertionEffect=function(ee,P){return G.H.useInsertionEffect(ee,P)},rn.useLayoutEffect=function(ee,P){return G.H.useLayoutEffect(ee,P)},rn.useMemo=function(ee,P){return G.H.useMemo(ee,P)},rn.useOptimistic=function(ee,P){return G.H.useOptimistic(ee,P)},rn.useReducer=function(ee,P,B){return G.H.useReducer(ee,P,B)},rn.useRef=function(ee){return G.H.useRef(ee)},rn.useState=function(ee){return G.H.useState(ee)},rn.useSyncExternalStore=function(ee,P,B){return G.H.useSyncExternalStore(ee,P,B)},rn.useTransition=function(){return G.H.useTransition()},rn.version="19.2.1",rn}var J5;function Lm(){return J5||(J5=1,E0.exports=S8()),E0.exports}var F=Lm();const Ze=Om(F),Rm=Q_({__proto__:null,default:Ze},[F]);var c3=F.createContext(void 0),mh=e=>{const t=F.useContext(c3);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},A8=({client:e,children:t})=>(F.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(c3.Provider,{value:e,children:t})),u3=F.createContext(!1),f3=()=>F.useContext(u3);u3.Provider;function N8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var _8=F.createContext(N8()),d3=()=>F.useContext(_8),h3=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOn
17Mount=!1))},p3=e=>{F.useEffect(()=>{e.clearReset()},[e])},m3=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||t3(n,[e.error,r])),Bv=(e,t)=>t.state.data===void 0,g3=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},v3=(e,t)=>e.isLoading&&e.isFetching&&!t,B1=(e,t)=>e?.suspense&&t.isPending,im=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function y3({queries:e,...t},n){const r=mh(n),a=f3(),o=d3(),l=F.useMemo(()=>e.map(w=>{const E=r.defaultQueryOptions(w);return E._optimisticResults=a?"isRestoring":"optimistic",E}),[e,r,a]);l.forEach(w=>{g3(w),h3(w,o)}),p3(o);const[c]=F.useState(()=>new b8(r,l,t)),[f,d,h]=c.getOptimisticResult(l,t.combine),m=!a&&t.subscribed!==!1;F.useSyncExternalStore(F.useCallback(w=>m?c.subscribe(Fr.batchCalls(w)):Is,[c,m]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),F.useEffect(()=>{c.setQueries(l,t)},[l,t,c]);const g=f.some((w,E)=>B1(l[E],w))?f.flatMap((w,E)=>{const _=l[E];if(_){const z=new ph(r,_);if(B1(_,w))return im(_,z,o);v3(w,a)&&im(_,z,o)}return[]}):[];if(g.length>0)throw Promise.all(g);const N=f.find((w,E)=>{const _=l[E];return _&&m3({result:w,errorResetBoundary:o,throwOnError:_.throwOnError,query:r.getQueryCache().get(_.queryHash),suspense:_.suspense})});if(N?.error)throw N.error;return d(h())}function Dm(e,t,n){const r=f3(),a=d3(),o=mh(n),l=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",g3(l),h3(l,a),p3(a);const c=!o.getQueryCache().get(l.queryHash),[f]=F.useState(()=>new t(o,l)),d=f.getOptimisticResult(l),h=!r&&e.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(m=>{const y=h?f.subscribe(Fr.batchCalls(m)):Is;return f.updateResult(),y},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),F.useEffect(()=>{f.setOptions(l)},[l,f]),B1(l,d))throw im(l,f,a);if(m3({result:d,errorResetBoundary:a,throwOnError:l.throwOnError,query:o.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(l,d),l.experimental_prefetchInRender&&!tu&&v3(d,r)&&(c?im(l,f,a):o.getQueryCache().get(l.queryHash)?.promise)?.catch(Is).finally(()=>{f.updateResult()}),l.notifyOnChangeProps?d:f.trackResult(d)}function C8(e,t){return Dm(e,ph,t)}function E8(e,t){return Dm({...e,enabled:!0,suspense:!0,throwOnError:Bv,placeholderData:void 0},ph,t)}function P8(e,t){return Dm({...e,enabled:!0,suspense:!0,throwOnError:Bv},o3,t)}function T8(e,t){return y3({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:Bv,enabled:!0,placeholderData:void 0}))},t)}function j8(e,t){const n=mh(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function O8(e,t){const n=mh(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function L8(e,t){const n=mh(t),[r]=F.useState(()=>new v8(n,e));F.useEffect(()=>{r.setOptions(e)},[r,e]);const a=F.useSyncExternalStore(F.useCallback(l=>r.subscribe(Fr.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=F.useCallback((l,c)=>{r.mutate(l,c).catch(Is)},[r]);if(a.error&&t3(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function R8(e,t){return Dm(e,o3,t)}function nu(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const D8=typeof Symbol=="function"&&!!Symbol.asyncIterator;function b3(e){return D8&&nu(e)&&Symbol.asyncIterator in e}var M8=Object.create,x3=Object.defineProperty,k8=Object.getOwnPropertyDescriptor,w3=Object.getOwnPropertyNames,F8=Object.getPrototypeOf,I8=Object.prototype.hasOwnProperty,gh=(e,t)=>function(){return t||(0,e[w3(e)[0]])((t={exports:{}}).exports,t),t.exports},U8=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=w3(t),o=0,l=a.length,c;o<l;o++)c=a[o],!I8.call(e,c)&&c!==n&&x3(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=k8(t,c))||r.enumerable});return e},Mm=(e,t,n)=>(n=e!=null?M8(F8(e)):{},U8(x3(n,"default",{value:e,enumerable:!0}),e));const S3=()=>{},eb=e=>{Object.freeze&&Object.freeze(e)};function A3(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy(S3,{get(o,l){if(!(typeof l!="string"||l==="then"))return A3(e,[...t,l],n)},apply(o,l,c){const f=t[t.length-1];let d={args:c,path:t};return f==="call"?d={args:c.length>=2?[c[1]]:[],path:t.slice(0,-1)}:f==="apply"&&(d={args:c.length>=2?c[1]:[],path:t.slice(0,-1)}),eb(d.args),eb(d.path),e(d)}})),n[a]}const km=e=>A3(e,[],Object.create(null)),zv=e=>new Proxy(S3,{get(t,n){if(n!=="then")return e(n)}});var N3=gh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a}
17,t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),B8=gh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=N3().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),z8=gh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=N3().default,r=B8();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),_3=gh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=z8();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Hv=gh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=_3();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);l&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),c.push.apply(c,f)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(f){n(o,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(c,f))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});Mm(Hv());Mm(_3());var wp=Mm(Hv());function H8(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,wp.default)((0,wp.default)({},e),{},{error:r})}}return{ok:!0,result:(0,wp.default)((0,wp.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var P0=class extends Error{constructor(){super("Unable to transform response from server")}};function C3(e,t){let n;try{n=H8(e,t)}catch{throw new P0}if(!n.ok&&(!nu(n.error.error)||typeof n.error.error.code!="number"))throw new P0;if(n.ok&&!nu(n.result))throw new P0;return n}Mm(Hv());function Gf(e){const t={subscribe(n){let r=null,a=!1,o=!1,l=!1;function c(){if(r===null){l=!0;return}o||(o=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(f){var d;a||(d=n.next)===null||d===void 0||d.call(n,f)},error(f){var d;a||(a=!0,(d=n.error)===null||d===void 0||d.call(n,f),c())},complete(){var f;a||(a=!0,(f=n.complete)===null||f===void 0||f.call(n),c())}}),l&&c(),{unsubscribe:c}},pipe(...n){return n.reduce(q8,t)}};return t}function q8(e,t){return t(e)}function G8(e){const t=new AbortController;return new Promise((r,a)=>{let o=!1;function l(){o||(o=!0,c.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const c=e.subscribe({next(f){o=!0,r(f),l()},error(f){a(f)},complete(){t.abort(),l()}})})}var W8=Object.create,E3=Object.defineProperty,V8=Object.getOwnPropertyDescriptor,P3=Object.getOwnPropertyNames,Y8=Object.getPrototypeOf,Q8=Object.prototype.hasOwnProperty,cc=(e,t)=>function(){return t||(0,e[P3(e)[0]])((t={exports:{}}).exports,t),t.exports},$8=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=P3(t),o=0,l=a.length,c;o<l;o++)c=a[o],!Q8.call(e,c)&&c!==n&&E3(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=V8(t,c))||r.enumerable});return e},mu=(e,t,n)=>(n=e!=null?W8(Y8(e)):{},$8(t||!e||!e.__esModule?E3(n,"default",{value:e,enumerable:!0}):n,e)),X8=cc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var o={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(a.includes(l))continue;o[l]=r[l]}return o}
17t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),K8=cc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=X8();function r(a,o){if(a==null)return{};var l,c,f=n(a,o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);for(c=0;c<d.length;c++)l=d[c],o.includes(l)||{}.propertyIsEnumerable.call(a,l)&&(f[l]=a[l])}return f}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),T3=cc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Z8=cc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=T3().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),J8=cc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=T3().default,r=Z8();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),eC=cc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=J8();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),vh=cc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=eC();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);l&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),c.push.apply(c,f)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(f){n(o,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(c,f))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),tC=mu(K8(),1),tb=mu(vh(),1);const nC=["cursor","direction"];function mo(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&nu(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:o}=t,l=(0,tC.default)(t,nC);return[r,{input:l,type:"infinite"}]}return[r,(0,tb.default)((0,tb.default)({},typeof t<"u"&&t!==Ia&&{input:t}),n&&n!=="any"&&{type:n})]}function qp(e){return mo(e,void 0,"any")}var rC=Object.create,j3=Object.defineProperty,sC=Object.getOwnPropertyDescriptor,O3=Object.getOwnPropertyNames,aC=Object.getPrototypeOf,iC=Object.prototype.hasOwnProperty,No=(e,t)=>function(){return t||(0,e[O3(e)[0]])((t={exports:{}}).exports,t),t.exports},oC=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=O3(t),o=0,l=a.length,c;o<l;o++)c=a[o],!iC.call(e,c)&&c!==n&&j3(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=sC(t,c))||r.enumerable});return e},Vr=(e,t,n)=>(n=e!=null?rC(aC(e)):{},oC(t||!e||!e.__esModule?j3(n,"default",{value:e,enumerable:!0}):n,e)),L3=No({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a}
17,t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),lC=No({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=L3().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),cC=No({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=L3().default,r=lC();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),gu=No({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=cC();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Bi=No({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=gu();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);l&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),c.push.apply(c,f)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(f){n(o,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(c,f))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function uC(e){return t=>{let n=0,r=null;const a=[];function o(){r||(r=t.subscribe({next(c){for(const d of a){var f;(f=d.next)===null||f===void 0||f.call(d,c)}},error(c){for(const d of a){var f;(f=d.error)===null||f===void 0||f.call(d,c)}},complete(){for(const f of a){var c;(c=f.complete)===null||c===void 0||c.call(f)}}}))}function l(){if(n===0&&r){const c=r;r=null,c.unsubscribe()}}return Gf(c=>(n++,a.push(c),o(),{unsubscribe(){n--,l();const f=a.findIndex(d=>d===c);f>-1&&a.splice(f,1)}}))}}function fC(e){let t=e;const n=[],r=l=>{t!==void 0&&l.next(t),n.push(l)},a=l=>{n.splice(n.indexOf(l),1)},o=Gf(l=>(r(l),()=>{a(l)}));return o.next=l=>{if(t!==l){t=l;for(const c of n)c.next(l)}},o.get=()=>t,o}function R3(e){return Gf(t=>{function n(a=0,o=e.op){const l=e.links[a];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:o,next(f){return n(a+1,f)}})}return n().subscribe(t)})}function nb(e){return Array.isArray(e)?e:[e]}function dC(e){return t=>{const n=nb(e.true).map(a=>a(t)),r=nb(e.false).map(a=>a(t));return a=>Gf(o=>{const l=e.condition(a.op)?n:r;return R3({op:a.op,links:l}).subscribe(o)})}}var Sp=Vr(gu(),1),uf=Vr(Bi(),1);function hC(e){return e instanceof wo}function pC(e){return nu(e)&&nu(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function mC(e,t){return typeof e=="string"?e:nu(e)&&typeof e.message=="string"?e.message:t}
17var wo=class Gp extends Error{constructor(t,n){var r,a;const o=n?.cause;super(t,{cause:o}),(0,Sp.default)(this,"cause",void 0),(0,Sp.default)(this,"shape",void 0),(0,Sp.default)(this,"data",void 0),(0,Sp.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=o,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Gp.prototype)}static from(t,n={}){const r=t;return hC(r)?(n.meta&&(r.meta=(0,uf.default)((0,uf.default)({},r.meta),n.meta)),r):pC(r)?new Gp(r.error.message,(0,uf.default)((0,uf.default)({},n),{},{result:r})):new Gp(mC(r,"Unknown error"),(0,uf.default)((0,uf.default)({},n),{},{cause:r}))}};function gC(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const rb=e=>typeof e=="function";function vC(e){if(e)return e;if(typeof window<"u"&&rb(window.fetch))return window.fetch;if(typeof globalThis<"u"&&rb(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var $d=Vr(Bi());function D3(e){return{url:e.url.toString(),fetch:e.fetch,transformer:gC(e.transformer),methodOverride:e.methodOverride}}function yC(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const bC={query:"GET",mutation:"POST",subscription:"PATCH"};function M3(e){return"input"in e?e.transformer.input.serialize(e.input):yC(e.inputs.map(t=>e.transformer.input.serialize(t)))}const om=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const a=[];if(t[1]&&a.push(t[1]),"inputs"in e&&a.push("batch=1"),e.type==="query"||e.type==="subscription"){const o=M3(e);o!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(o))}`)}return a.length&&(r+="?"+a.join("&")),r},xC=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=M3(e);return t!==void 0?JSON.stringify(t):void 0},k3=e=>z1((0,$d.default)((0,$d.default)({},e),{},{contentTypeHeader:"application/json",getUrl:om,getBody:xC}));var wC=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const SC=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new wC};async function AC(e){var t;SC(e.signal);const n=e.getUrl(e),r=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:bC[e.type],o=await(async()=>{const c=await e.headers();return Symbol.iterator in c?Object.fromEntries(c):c})(),l=(0,$d.default)((0,$d.default)((0,$d.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),o);return vC(e.fetch)(n,{method:a,signal:e.signal,body:r,headers:l})}async function z1(e){const t={},n=await AC(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}function NC(e){return e instanceof Uint8Array||e instanceof Blob}function _C(e){return e instanceof FormData}var Tf=Vr(Bi(),1);const CC=e=>{if("input"in e){const{input:t}=e;if(_C(t)){if(e.type!=="mutation"&&e.methodOverride!=="POST")throw new Error("FormData is only supported for mutations");return z1((0,Tf.default)((0,Tf.default)({},e),{},{contentTypeHeader:void 0,getUrl:om,getBody:()=>t}))}if(NC(t)){if(e.type!=="mutation"&&e.methodOverride!=="POST")throw new Error("Octet type input is only supported for mutations");return z1((0,Tf.default)((0,Tf.default)({},e),{},{contentTypeHeader:"application/octet-stream",getUrl:om,getBody:()=>t}))}}return k3(e)};function EC(e){const t=D3(e);return()=>n=>{const{op:r}=n;return Gf(a=>{const{path:o,input:l,type:c}=r;/* istanbul ignore if -- @preserve */if(c==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const f=CC((0,Tf.default)((0,Tf.default)({},t),{},{type:c,path:o,input:l,signal:r.signal,headers(){return e.headers?typeof e.headers=="function"?e.headers({op:r}):e.headers:{}}}));let d;return f.then(h=>{d=h.meta;const m=C3(h.json,t.transformer.output);if(!m.ok){a.error(wo.from(m.error,{meta:d}));return}a.next({context:h.meta,result:m.result}),a.complete()}).catch(h=>{a.error(wo.from(h,{meta:d}))}),()=>{}})}}const sb=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function ab(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(c){const f=[[]];let d=0;for(;;){const y=c[d];if(!y)break;const g=f[f.length-1];if(y.aborted){var h;(h=y.reject)===null||h===void 0||h.call(y,new Error("Aborted")),d++;continue}if(e.validate(g.concat(y).map(w=>w.key))){g.push(y),d++;continue}if(g.length===0){var m;(m=y.reject)===null||m===void 0||m.call(y,new Error("Input is too big for a single dispatch")),d++;continue}f.push([])}return f}function o(){const c=a(t);r();for(const f of c){if(!f.length)continue;const d={items:f};for(const m of f)m.batch=d;e.fetch(d.items.map(m=>m.key)).then(async m=>{await Promise.all(m.map(async(g,N)=>{const w=d.items[N];try{var E;const z=await Promise.resolve(g);(E=w.resolve)===null||E===void 0||E.call(w,z)}catch(z){var _;(_=w.reject)===null||_===void 0||_.call(w,z)}w.batch=null,w.reject=null,w.resolve=null}));for(const g of d.items){var y;(y=g.reject)===null||y===void 0||y.call(g,new Error("Missing result")),g.batch=null}}).catch(m=>{for(const g of d.items){var y;(y=g.reject)===null||y===void 0||y.call(g,m),g.batch=null}})}}function l(c){var f;const d={aborted:!1,key:c,batch:null,resolve:sb,reject:sb},h=new Promise((m,y)=>{var g;d.reject=y,d.resolve=m,(g=t)!==null&&g!==void 0||(t=[]),t.push(d)});return(f=n)!==null&&f!==void 0||(n=setTimeout(o)),h}return{load:l}}function PC(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const o of e)o?.aborted?a():o?.addEventListener("abort",a,{once:!0});return t.signal}var Ap=Vr(Bi(),1);function TC(e){var t,n;const r=D3(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,o=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const l=h=>({validate(m){if(a===1/0&&o===1/0)return!0;
17if(m.length>o)return!1;const y=m.map(w=>w.path).join(","),g=m.map(w=>w.input);return om((0,Ap.default)((0,Ap.default)({},r),{},{type:h,path:y,inputs:g,signal:null})).length<=a},async fetch(m){const y=m.map(z=>z.path).join(","),g=m.map(z=>z.input),N=PC(...m.map(z=>z.signal)),w=await k3((0,Ap.default)((0,Ap.default)({},r),{},{path:y,inputs:g,type:h,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:m}):e.headers:{}},signal:N}));return(Array.isArray(w.json)?w.json:m.map(()=>w.json)).map(z=>({meta:w.meta,json:z}))}}),c=ab(l("query")),f=ab(l("mutation")),d={query:c,mutation:f};return({op:h})=>Gf(m=>{/* istanbul ignore if -- @preserve */if(h.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const g=d[h.type].load(h);let N;return g.then(w=>{N=w;const E=C3(w.json,r.transformer.output);if(!E.ok){m.error(wo.from(E.error,{meta:w.meta}));return}m.next({context:w.meta,result:E.result}),m.complete()}).catch(w=>{m.error(wo.from(w,{meta:N?.meta}))}),()=>{}})}}Vr(Bi(),1);const F3=(e,...t)=>typeof e=="function"?e(...t):e;Vr(gu(),1);function jC(){let e,t;return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}}async function OC(e){const t=await F3(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function LC(e){const t={method:"connectionParams",data:await F3(e)};return JSON.stringify(t)}Vr(gu(),1);var Yc=Vr(gu(),1);function RC(e){const{promise:t,resolve:n,reject:r}=jC();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function DC(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function o(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function l(){clearTimeout(r),o()}function c(){clearTimeout(a),l()}e.addEventListener("open",o),e.addEventListener("message",({data:f})=>{clearTimeout(r),o(),f==="PONG"&&c()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var MC=class H1{constructor(t){var n;if((0,Yc.default)(this,"id",++H1.connectCount),(0,Yc.default)(this,"WebSocketPonyfill",void 0),(0,Yc.default)(this,"urlOptions",void 0),(0,Yc.default)(this,"keepAliveOpts",void 0),(0,Yc.default)(this,"wsObservable",fC(null)),(0,Yc.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++H1.connectCount;const n=OC(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&DC(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await RC(r),t.urlOptions.connectionParams&&r.send(await LC(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Yc.default)(MC,"connectCount",0);Vr(gu(),1);Vr(Bi(),1);var T0=Vr(gu(),1),ib=Vr(Bi(),1),Fm=class{constructor(e){(0,T0.default)(this,"links",void 0),(0,T0.default)(this,"runtime",void 0),(0,T0.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return R3({links:this.links,op:(0,ib.default)((0,ib.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(uC())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await G8(n)).result.data}catch(n){throw wo.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(a){switch(a.result.type){case"state":{var o;(o=n.onConnectionStateChange)===null||o===void 0||o.call(n,a.result);break}case"started":{var l;(l=n.onStarted)===null||l===void 0||l.call(n,{context:a.context});break}case"stopped":{var c;
17(c=n.onStopped)===null||c===void 0||c.call(n);break}case"data":case void 0:{var f;(f=n.onData)===null||f===void 0||f.call(n,a.result.data);break}}},error(a){var o;(o=n.onError)===null||o===void 0||o.call(n,a)},complete(){var a;(a=n.onComplete)===null||a===void 0||a.call(n)}})}};const I3=Symbol.for("trpc_untypedClient"),kC={query:"query",mutate:"mutation",subscribe:"subscription"},FC=e=>kC[e];function U3(e){const t=km(({path:n,args:r})=>{const a=[...n],o=FC(a.pop()),l=a.join(".");return e[o](l,...r)});return zv(n=>n===I3?e:t[n])}function IC(e){const t=new Fm(e);return U3(t)}function qv(e){return e[I3]}Vr(Bi(),1);Vr(Bi(),1);var UC=No({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var o,l,c,f=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,c=Symbol.iterator);f--;){if(l&&(o=a[l])!=null)return o.call(a);if(c&&(o=a[c])!=null)return new r(o.call(a));l="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function o(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var c=l.done;return Promise.resolve(l.value).then(function(f){return{value:f,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(c){var f=this.s.return;return f===void 0?Promise.resolve({value:c,done:!0}):o(f.apply(this.s,arguments))},throw:function(c){var f=this.s.return;return f===void 0?Promise.reject(c):o(f.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Vr(UC(),1);Vr(Bi(),1);var BC=No({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(c,f){var d=Error();return d.name="SuppressedError",d.error=c,d.suppressed=f,d},a={},o=[];function l(c,f){if(f!=null){if(Object(f)!==f)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(c)var d=f[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(d===void 0&&(d=f[Symbol.dispose||Symbol.for("Symbol.dispose")],c))var h=d;if(typeof d!="function")throw new TypeError("Object is not disposable.");h&&(d=function(){try{h.call(f)}catch(y){return Promise.reject(y)}}),o.push({v:f,d,a:c})}else c&&o.push({d:f,a:c});return f}return{e:a,u:l.bind(null,!1),a:l.bind(null,!0),d:function(){var f,d=this.e,h=0;function m(){for(;f=o.pop();)try{if(!f.a&&h===1)return h=0,o.push(f),Promise.resolve().then(m);if(f.d){var g=f.d.call(f.v);if(f.a)return h|=2,Promise.resolve(g).then(m,y)}else h|=1}catch(N){return y(N)}if(h===1)return d!==a?Promise.reject(d):Promise.resolve();if(d!==a)throw d}function y(g){return d=d!==a?new r(g,d):g,m()}return m()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),B3=No({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),zC=No({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=B3();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),HC=No({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=B3();function r(o){return function(){return new a(o.apply(this,arguments))}}function a(o){var l,c;function f(h,m){try{var y=o[h](m),g=y.value,N=g instanceof n;Promise.resolve(N?g.v:g).then(function(w){if(N){var E=h==="return"?"return":"next";if(!g.k||w.done)return f(E,w);w=o[E](w).value}d(y.done?"return":"normal",w)},function(w){f("throw",w)})}catch(w){d("throw",w)}}function d(h,m){switch(h){case"return":l.resolve({value:m,done:!0});break;case"throw":l.reject(m);break;default:l.resolve({value:m,done:!1})}(l=l.next)?f(l.key,l.arg):c=null}this._invoke=function(h,m){return new Promise(function(y,g){var N={key:h,arg:m,resolve:y,reject:g,next:null};c?c=c.next=N:(l=c=N,f(h,m))})},typeof o.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(o){return this._invoke("next",o)},a.prototype.throw=function(o){return this._invoke("throw",o)},a.prototype.return=function(o){return this._invoke("return",o)}
17,t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Vr(BC(),1);Vr(zC(),1);Vr(HC(),1);Vr(Bi(),1);function qC(e){return km(({path:t,args:n})=>{var r;const a=[...t],o=a.pop();if(o==="useMutation")return e[o](a,...n);if(o==="_def")return{path:a};const[l,...c]=n,f=(r=c[0])!==null&&r!==void 0?r:{};return e[o](a,l,f)})}var j0;const GC=["client","ssrContext","ssrState","abortOnUnmount"],WC=(j0=F.createContext)===null||j0===void 0?void 0:j0.call(Rm,null),VC=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function YC(e){return km(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],o=a.shift(),l=VC(r),c=mo(n,o,l);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,c,a[0]),queryOptions:()=>e.queryOptions(n,c,...a),fetch:()=>e.fetchQuery(c,...a),fetchInfinite:()=>e.fetchInfiniteQuery(c,a[0]),prefetch:()=>e.prefetchQuery(c,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(c,a[0]),ensureData:()=>e.ensureQueryData(c,...a),invalidate:()=>e.invalidateQueries(c,...a),reset:()=>e.resetQueries(c,...a),refetch:()=>e.refetchQueries(c,...a),cancel:()=>e.cancelQuery(c,...a),setData:()=>{e.setQueryData(c,a[0],a[1])},setQueriesData:()=>e.setQueriesData(c,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(c,a[0],a[1])},getData:()=>e.getQueryData(c),getInfiniteData:()=>e.getInfiniteQueryData(c),setMutationDefaults:()=>e.setMutationDefaults(qp(n),o),getMutationDefaults:()=>e.getMutationDefaults(qp(n)),isMutating:()=>e.isMutating({mutationKey:qp(n)})}[r]()})}function QC(e){const t=U3(e.client),n=YC(e);return zv(r=>{const a=r;return a==="client"?t:GC.includes(a)?e[a]:n[r]})}var $C=mu(vh(),1);function ob(e){const t=e instanceof Fm?e:qv(e);return km(n=>{const r=n.path,a=r.join("."),[o,l]=n.args;return(0,$C.default)({queryKey:mo(r,o,"query"),queryFn:()=>t.query(a,o,l?.trpc)},l)})}var O0=mu(vh(),1);function $s(e,t,n){var r;const a=e[0];let o=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var l;o=(0,O0.default)((0,O0.default)((0,O0.default)({},(l=o)!==null&&l!==void 0?l:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),o,t?.trpc]}var XC=cc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var o,l,c,f=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,c=Symbol.iterator);f--;){if(l&&(o=a[l])!=null)return o.call(a);if(c&&(o=a[c])!=null)return new r(o.call(a));l="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function o(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var c=l.done;return Promise.resolve(l.value).then(function(f){return{value:f,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(c){var f=this.s.return;return f===void 0?Promise.resolve({value:c,done:!0}):o(f.apply(this.s,arguments))},throw:function(c){var f=this.s.return;return f===void 0?Promise.reject(c):o(f.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),KC=mu(XC(),1);function q1(e){return{path:e.path.join(".")}}function Dd(e){const t=q1(e);return F.useMemo(()=>t,[t])}async function z3(e,t,n){const a=t.getQueryCache().build(t,{queryKey:n});a.setState({data:[],status:"success"});const o=[];var l=!1,c=!1,f;try{for(var d=(0,KC.default)(e),h;l=!(h=await d.next()).done;l=!1){const m=h.value;o.push(m),a.setState({data:[...o]})}}catch(m){c=!0,f=m}finally{try{l&&d.return!=null&&await d.return()}finally{if(c)throw f}}return o}var kn=mu(vh(),1);function ZC(e){const{client:t,queryClient:n}=e,r=t instanceof Fm?t:qv(t);return{infiniteQueryOptions:(a,o,l)=>{var c,f;const d=((c=o[1])===null||c===void 0?void 0:c.input)===Ia,h=async m=>{var y;const g=(0,kn.default)((0,kn.default)({},l),{},{trpc:(0,kn.default)((0,kn.default)({},l?.trpc),!(l==null||(y=l.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:m.signal}:{signal:null})});
17return await r.query(...$s(o,g,{direction:m.direction,pageParam:m.pageParam}))};return Object.assign((0,kn.default)((0,kn.default)({},l),{},{initialData:l?.initialData,queryKey:o,queryFn:d?Ia:h,initialPageParam:(f=l?.initialCursor)!==null&&f!==void 0?f:null}),{trpc:q1({path:a})})},queryOptions:(a,o,l)=>{var c;const f=((c=o[1])===null||c===void 0?void 0:c.input)===Ia,d=async h=>{var m;const y=(0,kn.default)((0,kn.default)({},l),{},{trpc:(0,kn.default)((0,kn.default)({},l?.trpc),!(l==null||(m=l.trpc)===null||m===void 0)&&m.abortOnUnmount?{signal:h.signal}:{signal:null})}),g=await r.query(...$s(o,y));return b3(g)?z3(g,n,o):g};return Object.assign((0,kn.default)((0,kn.default)({},l),{},{initialData:l?.initialData,queryKey:o,queryFn:f?Ia:d}),{trpc:q1({path:a})})},fetchQuery:(a,o)=>n.fetchQuery((0,kn.default)((0,kn.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...$s(a,o))})),fetchInfiniteQuery:(a,o)=>{var l;return n.fetchInfiniteQuery((0,kn.default)((0,kn.default)({},o),{},{queryKey:a,queryFn:({pageParam:c,direction:f})=>r.query(...$s(a,o,{pageParam:c,direction:f})),initialPageParam:(l=o?.initialCursor)!==null&&l!==void 0?l:null}))},prefetchQuery:(a,o)=>n.prefetchQuery((0,kn.default)((0,kn.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...$s(a,o))})),prefetchInfiniteQuery:(a,o)=>{var l;return n.prefetchInfiniteQuery((0,kn.default)((0,kn.default)({},o),{},{queryKey:a,queryFn:({pageParam:c,direction:f})=>r.query(...$s(a,o,{pageParam:c,direction:f})),initialPageParam:(l=o?.initialCursor)!==null&&l!==void 0?l:null}))},ensureQueryData:(a,o)=>n.ensureQueryData((0,kn.default)((0,kn.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...$s(a,o))})),invalidateQueries:(a,o,l)=>n.invalidateQueries((0,kn.default)((0,kn.default)({},o),{},{queryKey:a}),l),resetQueries:(a,o,l)=>n.resetQueries((0,kn.default)((0,kn.default)({},o),{},{queryKey:a}),l),refetchQueries:(a,o,l)=>n.refetchQueries((0,kn.default)((0,kn.default)({},o),{},{queryKey:a}),l),cancelQuery:(a,o)=>n.cancelQueries({queryKey:a},o),setQueryData:(a,o,l)=>n.setQueryData(a,o,l),setQueriesData:(a,o,l,c)=>n.setQueriesData((0,kn.default)((0,kn.default)({},o),{},{queryKey:a}),l,c),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,o,l)=>n.setQueryData(a,o,l),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,o)=>{const l=a[0],c=f=>r.mutation(...$s([l,{input:f}],e));return n.setMutationDefaults(a,typeof o=="function"?o({canonicalMutationFn:c}):o)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,kn.default)((0,kn.default)({},a),{},{exact:!0}))}}var ft=mu(vh());const lb=(e,t)=>new Proxy(e,{get(r,a){return t(a),r[a]}});function JC(e){var t,n;const r=(t=void 0)!==null&&t!==void 0?t:K=>K.originalFn(),a=(n=void 0)!==null&&n!==void 0?n:WC,o=IC,l=K=>{var U;const{abortOnUnmount:G=!1,queryClient:O,ssrContext:R}=K,[Q,j]=F.useState((U=K.ssrState)!==null&&U!==void 0?U:!1),D=K.client instanceof Fm?K.client:qv(K.client),$=F.useMemo(()=>ZC({client:D,queryClient:O}),[D,O]),W=F.useMemo(()=>(0,ft.default)({abortOnUnmount:G,queryClient:O,client:D,ssrContext:R??null,ssrState:Q},$),[G,D,$,O,R,Q]);return F.useEffect(()=>{j(te=>te?"mounted":!1)},[]),x.jsx(a.Provider,{value:W,children:K.children})};function c(){const K=F.useContext(a);if(!K)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return K}function f(K,U){var G;const{queryClient:O,ssrState:R}=c();return R&&R!=="mounted"&&((G=O.getQueryCache().find({queryKey:K}))===null||G===void 0?void 0:G.state.status)==="error"?(0,ft.default)({retryOnMount:!1},U):U}function d(K,U,G){var O,R,Q,j,D;const $=c(),{abortOnUnmount:W,client:te,ssrState:L,queryClient:M,prefetchQuery:X}=$,se=mo(K,U,"query"),pe=M.getQueryDefaults(se),ee=U===Ia;typeof window>"u"&&L==="prepass"&&(G==null||(O=G.trpc)===null||O===void 0?void 0:O.ssr)!==!1&&((R=G?.enabled)!==null&&R!==void 0?R:pe?.enabled)!==!1&&!ee&&!M.getQueryCache().find({queryKey:se})&&X(se,G);const P=f(se,(0,ft.default)((0,ft.default)({},pe),G)),B=(Q=(j=G==null||(D=G.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&j!==void 0?j:void 0)!==null&&Q!==void 0?Q:W,V=C8((0,ft.default)((0,ft.default)({},P),{},{queryKey:se,queryFn:ee?U:async Y=>{const oe=(0,ft.default)((0,ft.default)({},P),{},{trpc:(0,ft.default)((0,ft.default)({},P?.trpc),B?{signal:Y.signal}:{signal:null})}
17),le=await te.query(...$s(se,oe));return b3(le)?z3(le,M,se):le}}),M);return V.trpc=Dd({path:K}),V}function h(K,U,G){var O,R,Q;const j=c(),D=mo(K,U,"query"),$=U===Ia,W=(O=(R=G==null||(Q=G.trpc)===null||Q===void 0?void 0:Q.abortOnUnmount)!==null&&R!==void 0?R:void 0)!==null&&O!==void 0?O:j.abortOnUnmount;j8((0,ft.default)((0,ft.default)({},G),{},{queryKey:D,queryFn:$?U:te=>{const L={trpc:(0,ft.default)((0,ft.default)({},G?.trpc),W?{signal:te.signal}:{})};return j.client.query(...$s(D,L))}}))}function m(K,U,G){var O,R,Q;const j=c(),D=mo(K,U,"query"),$=(O=(R=G==null||(Q=G.trpc)===null||Q===void 0?void 0:Q.abortOnUnmount)!==null&&R!==void 0?R:void 0)!==null&&O!==void 0?O:j.abortOnUnmount,W=E8((0,ft.default)((0,ft.default)({},G),{},{queryKey:D,queryFn:te=>{const L=(0,ft.default)((0,ft.default)({},G),{},{trpc:(0,ft.default)((0,ft.default)({},G?.trpc),$?{signal:te.signal}:{signal:null})});return j.client.query(...$s(D,L))}}),j.queryClient);return W.trpc=Dd({path:K}),[W.data,W]}function y(K,U){const{client:G,queryClient:O}=c(),R=qp(K),Q=O.defaultMutationOptions(O.getMutationDefaults(R)),j=L8((0,ft.default)((0,ft.default)({},U),{},{mutationKey:R,mutationFn:D=>G.mutation(...$s([K,{input:D}],U)),onSuccess(...D){var $,W;return r({originalFn:()=>{var L,M,X;return(L=U==null||(M=U.onSuccess)===null||M===void 0?void 0:M.call(U,...D))!==null&&L!==void 0?L:Q==null||(X=Q.onSuccess)===null||X===void 0?void 0:X.call(Q,...D)},queryClient:O,meta:($=(W=U?.meta)!==null&&W!==void 0?W:Q?.meta)!==null&&$!==void 0?$:{}})}}),O);return j.trpc=Dd({path:K}),j}const g={data:void 0,error:null,status:"idle"},N={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function w(K,U,G){var O;const R=(O=G?.enabled)!==null&&O!==void 0?O:U!==Ia,Q=tc(mo(K,U,"any")),{client:j}=c(),D=F.useRef(G);F.useEffect(()=>{D.current=G});const[$]=F.useState(new Set([])),W=F.useCallback(ee=>{$.add(ee)},[$]),te=F.useRef(null),L=F.useCallback(ee=>{const P=X.current,B=X.current=ee(P);let V=!1;for(const Y of $)if(P[Y]!==B[Y]){V=!0;break}V&&pe(lb(B,W))},[W,$]),M=F.useCallback(()=>{var ee;if((ee=te.current)===null||ee===void 0||ee.unsubscribe(),!R){L(()=>(0,ft.default)((0,ft.default)({},g),{},{reset:M}));return}L(()=>(0,ft.default)((0,ft.default)({},N),{},{reset:M}));const P=j.subscription(K.join("."),U??void 0,{onStarted:()=>{var B,V;(B=(V=D.current).onStarted)===null||B===void 0||B.call(V),L(Y=>(0,ft.default)((0,ft.default)({},Y),{},{status:"pending",error:null}))},onData:B=>{var V,Y;(V=(Y=D.current).onData)===null||V===void 0||V.call(Y,B),L(oe=>(0,ft.default)((0,ft.default)({},oe),{},{status:"pending",data:B,error:null}))},onError:B=>{var V,Y;(V=(Y=D.current).onError)===null||V===void 0||V.call(Y,B),L(oe=>(0,ft.default)((0,ft.default)({},oe),{},{status:"error",error:B}))},onConnectionStateChange:B=>{L(V=>{switch(B.state){case"idle":return(0,ft.default)((0,ft.default)({},V),{},{status:B.state,error:null,data:void 0});case"connecting":return(0,ft.default)((0,ft.default)({},V),{},{error:B.error,status:B.state});case"pending":return V}})},onComplete:()=>{var B,V;(B=(V=D.current).onComplete)===null||B===void 0||B.call(V),L(Y=>(0,ft.default)((0,ft.default)({},Y),{},{status:"idle",error:null,data:void 0}))}});te.current=P},[j,Q,R,L]);F.useEffect(()=>(M(),()=>{var ee;(ee=te.current)===null||ee===void 0||ee.unsubscribe()}),[M]);const X=F.useRef(R?(0,ft.default)((0,ft.default)({},N),{},{reset:M}):(0,ft.default)((0,ft.default)({},g),{},{reset:M})),[se,pe]=F.useState(lb(X.current,W));return se}function E(K,U,G){var O,R,Q,j,D;const{client:$,ssrState:W,prefetchInfiniteQuery:te,queryClient:L,abortOnUnmount:M}=c(),X=mo(K,U,"infinite"),se=L.getQueryDefaults(X),pe=U===Ia;typeof window>"u"&&W==="prepass"&&(G==null||(O=G.trpc)===null||O===void 0?void 0:O.ssr)!==!1&&((R=G?.enabled)!==null&&R!==void 0?R:se?.enabled)!==!1&&!pe&&!L.getQueryCache().find({queryKey:X})&&te(X,(0,ft.default)((0,ft.default)({},se),G));const ee=f(X,(0,ft.default)((0,ft.default)({},se),G)),P=(Q=G==null||(j=G.trpc)===null||j===void 0?void 0:j.abortOnUnmount)!==null&&Q!==void 0?Q:M,B=R8((0,ft.default)((0,ft.default)({},ee),{},{initialPageParam:(D=G.initialCursor)!==null&&D!==void 0?D:null,persister:G.persister,queryKey:X,queryFn:pe?U:V=>{var Y;const oe=(0,ft.default)((0,ft.default)({},ee),{},{trpc:(0,ft.default)((0,ft.default)({},ee?.trpc),P?{signal:V.signal}:{signal:null})});
17return $.query(...$s(X,oe,{pageParam:(Y=V.pageParam)!==null&&Y!==void 0?Y:G.initialCursor,direction:V.direction}))}}),L);return B.trpc=Dd({path:K}),B}function _(K,U,G){var O,R,Q;const j=c(),D=mo(K,U,"infinite"),$=j.queryClient.getQueryDefaults(D),W=U===Ia,te=f(D,(0,ft.default)((0,ft.default)({},$),G)),L=(O=G==null||(R=G.trpc)===null||R===void 0?void 0:R.abortOnUnmount)!==null&&O!==void 0?O:j.abortOnUnmount;O8((0,ft.default)((0,ft.default)({},G),{},{initialPageParam:(Q=G.initialCursor)!==null&&Q!==void 0?Q:null,queryKey:D,queryFn:W?U:M=>{var X;const se=(0,ft.default)((0,ft.default)({},te),{},{trpc:(0,ft.default)((0,ft.default)({},te?.trpc),L?{signal:M.signal}:{})});return j.client.query(...$s(D,se,{pageParam:(X=M.pageParam)!==null&&X!==void 0?X:G.initialCursor,direction:M.direction}))}}))}function z(K,U,G){var O,R,Q;const j=c(),D=mo(K,U,"infinite"),$=j.queryClient.getQueryDefaults(D),W=f(D,(0,ft.default)((0,ft.default)({},$),G)),te=(O=G==null||(R=G.trpc)===null||R===void 0?void 0:R.abortOnUnmount)!==null&&O!==void 0?O:j.abortOnUnmount,L=P8((0,ft.default)((0,ft.default)({},G),{},{initialPageParam:(Q=G.initialCursor)!==null&&Q!==void 0?Q:null,queryKey:D,queryFn:M=>{var X;const se=(0,ft.default)((0,ft.default)({},W),{},{trpc:(0,ft.default)((0,ft.default)({},W?.trpc),te?{signal:M.signal}:{})});return j.client.query(...$s(D,se,{pageParam:(X=M.pageParam)!==null&&X!==void 0?X:G.initialCursor,direction:M.direction}))}}),j.queryClient);return L.trpc=Dd({path:K}),[L.data,L]}return{Provider:l,createClient:o,useContext:c,useUtils:c,useQuery:d,usePrefetchQuery:h,useSuspenseQuery:m,useQueries:(K,U)=>{const{ssrState:G,queryClient:O,prefetchQuery:R,client:Q}=c(),j=ob(Q),D=K(j);if(typeof window>"u"&&G==="prepass")for(const W of D){var $;const te=W;(($=te.trpc)===null||$===void 0?void 0:$.ssr)!==!1&&!O.getQueryCache().find({queryKey:te.queryKey})&&R(te.queryKey,te)}return y3({queries:D.map(W=>(0,ft.default)((0,ft.default)({},W),{},{queryKey:W.queryKey})),combine:U?.combine},O)},useSuspenseQueries:K=>{const{queryClient:U,client:G}=c(),O=ob(G),R=K(O),Q=T8({queries:R.map(j=>(0,ft.default)((0,ft.default)({},j),{},{queryFn:j.queryFn,queryKey:j.queryKey}))},U);return[Q.map(j=>j.data),Q]},useMutation:y,useSubscription:w,useInfiniteQuery:E,usePrefetchInfiniteQuery:_,useSuspenseInfiniteQuery:z}}function eE(e){const t=qC(e);return zv(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return F.useMemo(()=>QC(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function tE(e){const t=JC();return eE(t)}const Ir=tE(),nE="Please login (10001)";var L0={exports:{}},Md={},R0={exports:{}},D0={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var cb;function rE(){return cb||(cb=1,(function(e){function t(L,M){var X=L.length;L.push(M);e:for(;0<X;){var se=X-1>>>1,pe=L[se];if(0<a(pe,M))L[se]=M,L[X]=pe,X=se;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var M=L[0],X=L.pop();if(X!==M){L[0]=X;e:for(var se=0,pe=L.length,ee=pe>>>1;se<ee;){var P=2*(se+1)-1,B=L[P],V=P+1,Y=L[V];if(0>a(B,X))V<pe&&0>a(Y,B)?(L[se]=Y,L[V]=X,se=V):(L[se]=B,L[P]=X,se=P);else if(V<pe&&0>a(Y,X))L[se]=Y,L[V]=X,se=V;else break e}}return M}function a(L,M){var X=L.sortIndex-M.sortIndex;return X!==0?X:L.id-M.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],d=[],h=1,m=null,y=3,g=!1,N=!1,w=!1,E=!1,_=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function k(L){for(var M=n(d);M!==null;){if(M.callback===null)r(d);else if(M.startTime<=L)r(d),M.sortIndex=M.expirationTime,t(f,M);else break;M=n(d)}}function K(L){if(w=!1,k(L),!N)if(n(f)!==null)N=!0,U||(U=!0,D());else{var M=n(d);M!==null&&te(K,M.startTime-L)}}var U=!1,G=-1,O=5,R=-1;function Q(){return E?!0:!(e.unstable_now()-R<O)}function j(){if(E=!1,U){var L=e.unstable_now();R=L;var M=!0;try{e:{N=!1,w&&(w=!1,z(G),G=-1),g=!0;var X=y;try{t:{for(k(L),m=n(f);m!==null&&!(m.expirationTime>L&&Q());){var se=m.callback;if(typeof se=="function"){m.callback=null,y=m.priorityLevel;var pe=se(m.expirationTime<=L);
vendor: 10,946 bytes, lines 25-43
25if(L=e.unstable_now(),typeof pe=="function"){m.callback=pe,k(L),M=!0;break t}m===n(f)&&r(f),k(L)}else r(f);m=n(f)}if(m!==null)M=!0;else{var ee=n(d);ee!==null&&te(K,ee.startTime-L),M=!1}}break e}finally{m=null,y=X,g=!1}M=void 0}}finally{M?D():U=!1}}}var D;if(typeof H=="function")D=function(){H(j)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,W=$.port2;$.port1.onmessage=j,D=function(){W.postMessage(null)}}else D=function(){_(j,0)};function te(L,M){G=_(function(){L(e.unstable_now())},M)}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(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(L){switch(y){case 1:case 2:case 3:var M=3;break;default:M=y}var X=y;y=M;try{return L()}finally{y=X}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(L,M){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var X=y;y=L;try{return M()}finally{y=X}},e.unstable_scheduleCallback=function(L,M,X){var se=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?se+X:se):X=se,L){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=X+pe,L={id:h++,callback:M,priorityLevel:L,startTime:X,expirationTime:pe,sortIndex:-1},X>se?(L.sortIndex=X,t(d,L),n(f)===null&&L===n(d)&&(w?(z(G),G=-1):w=!0,te(K,X-se))):(L.sortIndex=pe,t(f,L),N||g||(N=!0,U||(U=!0,D()))),L},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(L){var M=y;return function(){var X=y;y=M;try{return L.apply(this,arguments)}finally{y=X}}}})(D0)),D0}var ub;function sE(){return ub||(ub=1,R0.exports=rE()),R0.exports}var M0={exports:{}},Rs={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var fb;function aE(){if(fb)return Rs;fb=1;var e=Lm();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)d+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(f,d,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:f,containerInfo:d,implementation:h}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Rs.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Rs.createPortal=function(f,d){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(f,d,null,h)},Rs.flushSync=function(f){var d=l.T,h=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=h,r.d.f()}},Rs.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},Rs.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Rs.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var h=d.as,m=c(h,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,g=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;h==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:y,fetchPriority:g}):h==="script"&&r.d.X(f,{crossOrigin:m,integrity:y,fetchPriority:g,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Rs.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var h=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},Rs.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var h=d.as,m=c(h,d.crossOrigin);r.d.L(f,h,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Rs.preloadModule=function(f,d){if(typeof f=="string")if(d){var h=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},Rs.requestFormReset=function(f){r.d.r(f)},Rs.unstable_batchedUpdates=function(f,d){return f(d)},Rs.useFormState=function(f,d,h){return l.H.useFormState(f,d,h)},Rs.useFormStatus=function(){return l.H.useHostTransitionStatus()},Rs.version="19.2.1",Rs}var db;function H3(){if(db)return M0.exports;db=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),M0.exports=aE(),M0.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var hb;function iE(){if(hb)return Md;hb=1;var e=sE(),t=Lm(),n=H3();function r(s){var i="https://react.dev/errors/"+s;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)i+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+s+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function o(s){var i=s,u=s;if(s.alternate)for(;i.return;)i=i.return;else{s=i;do i=s,(i.flags&4098)!==0&&(u=i.return),s=i.return;while(s)}return i.tag===3?u:null}function l(s){if(s.tag===13){var i=s.memoizedState;if(i===null&&(s=s.alternate,s!==null&&(i=s.memoizedState)),i!==null)return i.dehydrated}return null}function c(s){if(s.tag===31){var i=s.memoizedState;if(i===null&&(s=s.alternate,s!==null&&(i=s.memoizedState)),i!==null)return i.dehydrated}return null}function f(s){if(o(s)!==s)throw Error(r(188))}function d(s){var i=s.alternate;if(!i){if(i=o(s),i===null)throw Error(r(188));return i!==s?null:s}for(var u=s,p=i;;){var b=u.return;if(b===null)break;var A=b.alternate;if(A===null){if(p=b.return,p!==null){u=p;continue}break}if(b.child===A.child){for(A=b.child;A;){if(A===u)return f(b),s;if(A===p)return f(b),i;A=A.sibling}throw Error(r(188))}if(u.return!==p.return)u=b,p=A;else{for(var q=!1,ae=b.child;ae;){if(ae===u){q=!0,u=b,p=A;break}if(ae===p){q=!0,p=b,u=A;break}ae=ae.sibling}if(!q){for(ae=A.child;ae;){if(ae===u){q=!0,u=A,p=b;break}if(ae===p){q=!0,p=A,u=b;break}ae=ae.sibling}if(!q)throw Error(r(189))}}if(u.alternate!==p)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?s:i}function h(s){var i=s.tag;if(i===5||i===26||i===27||i===6)return s;for(s=s.child;s!==null;){if(i=h(s),i!==null)return i;s=s.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),H=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function D(s){return s===null||typeof s!="object"?null:(s=j&&s[j]||s["@@iterator"],typeof s=="function"?s:null)}var $=Symbol.for("react.client.reference");function W(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===$?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case w:return"Fragment";case _:return"Profiler";case E:return"StrictMode";case K:return"Suspense";case U:return"SuspenseList";case R:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case N:return"Portal";case H:return s.displayName||"Context";case z:return(s._context.displayName||"Context")+".Consumer";case k:var i=s.render;return s=s.displayName,s||(s=i.displayName||i.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case G:return i=s.displayName||null,i!==null?i:W(s.type)||"Memo";case O:i=s._payload,s=s._init;try{return W(s(i))}catch{}}return null}var te=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},se=[],pe=-1;function ee(s){return{current:s}}function P(s){0>pe||(s.current=se[pe],se[pe]=null,pe--)}function B(s,i){pe++,se[pe]=s.current,s.current=i}var V=ee(null),Y=ee(null),oe=ee(null),le=ee(null);function me(s,i){switch(B(oe,i),B(Y,s),B(V,null),i.nodeType){case 9:case 11:s=(s=i.documentElement)&&(s=s.namespaceURI)?f5(s):0;break;default:if(s=i.tagName,i=i.namespaceURI)i=f5(i),s=d5(i,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}P(V),B(V,s)}function ge(){P(V),P(Y),P(oe)}function Ae(s){s.memoizedState!==null&&B(le,s);var i=V.current,u=d5(i,s.type);i!==u&&(B(Y,s),B(V,u))}function Oe(s){Y.current===s&&(P(V),P(Y)),le.current===s&&(P(le),Td._currentValue=X)}var Fe,Qe;function Je(s){if(Fe===void 0)try{throw Error()}catch(u){var i=u.stack.trim().match(/\n( *(at )?)/);Fe=i&&i[1]||"",Qe=-1<u.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+Fe+s+Qe}var ce=!1;function Ve(s,i){if(!s||ce)return"";ce=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(i){var Ge=function(){throw Error()};if(Object.defineProperty(Ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ge,[])}catch(Re){var Le=Re}Reflect.construct(s,[],Ge)}
vendor: 11,032 bytes, lines 43-48
43else{try{Ge.call()}catch(Re){Le=Re}s.call(Ge.prototype)}}else{try{throw Error()}catch(Re){Le=Re}(Ge=s())&&typeof Ge.catch=="function"&&Ge.catch(function(){})}}catch(Re){if(Re&&Le&&typeof Re.stack=="string")return[Re.stack,Le.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=p.DetermineComponentFrameRoot(),q=A[0],ae=A[1];if(q&&ae){var ve=q.split(` 44`),je=ae.split(` 45`);for(b=p=0;p<ve.length&&!ve[p].includes("DetermineComponentFrameRoot");)p++;for(;b<je.length&&!je[b].includes("DetermineComponentFrameRoot");)b++;if(p===ve.length||b===je.length)for(p=ve.length-1,b=je.length-1;1<=p&&0<=b&&ve[p]!==je[b];)b--;for(;1<=p&&0<=b;p--,b--)if(ve[p]!==je[b]){if(p!==1||b!==1)do if(p--,b--,0>b||ve[p]!==je[b]){var Be=` 46`+ve[p].replace(" at new "," at ");return s.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",s.displayName)),Be}while(1<=p&&0<=b);break}}}finally{ce=!1,Error.prepareStackTrace=u}return(u=s?s.displayName||s.name:"")?Je(u):""}function it(s,i){switch(s.tag){case 26:case 27:case 5:return Je(s.type);case 16:return Je("Lazy");case 13:return s.child!==i&&i!==null?Je("Suspense Fallback"):Je("Suspense");case 19:return Je("SuspenseList");case 0:case 15:return Ve(s.type,!1);case 11:return Ve(s.type.render,!1);case 1:return Ve(s.type,!0);case 31:return Je("Activity");default:return""}}function et(s){try{var i="",u=null;do i+=it(s,u),u=s,s=s.return;while(s);return i}catch(p){return` 47Error generating stack: `+p.message+` 48`+p.stack}}var De=Object.prototype.hasOwnProperty,ot=e.unstable_scheduleCallback,Xe=e.unstable_cancelCallback,nt=e.unstable_shouldYield,tt=e.unstable_requestPaint,ct=e.unstable_now,Lt=e.unstable_getCurrentPriorityLevel,Ct=e.unstable_ImmediatePriority,Ht=e.unstable_UserBlockingPriority,vt=e.unstable_NormalPriority,lt=e.unstable_LowPriority,dt=e.unstable_IdlePriority,ut=e.log,Jt=e.unstable_setDisableYieldValue,Ft=null,mt=null;function Et(s){if(typeof ut=="function"&&Jt(s),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(Ft,s)}catch{}}var qt=Math.clz32?Math.clz32:yt,_t=Math.log,pn=Math.LN2;function yt(s){return s>>>=0,s===0?32:31-(_t(s)/pn|0)|0}var jt=256,wn=262144,ye=4194304;function Ue(s){var i=s&42;if(i!==0)return i;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Ie(s,i,u){var p=s.pendingLanes;if(p===0)return 0;var b=0,A=s.suspendedLanes,q=s.pingedLanes;s=s.warmLanes;var ae=p&134217727;return ae!==0?(p=ae&~A,p!==0?b=Ue(p):(q&=ae,q!==0?b=Ue(q):u||(u=ae&~s,u!==0&&(b=Ue(u))))):(ae=p&~A,ae!==0?b=Ue(ae):q!==0?b=Ue(q):u||(u=p&~s,u!==0&&(b=Ue(u)))),b===0?0:i!==0&&i!==b&&(i&A)===0&&(A=b&-b,u=i&-i,A>=u||A===32&&(u&4194048)!==0)?i:b}function at(s,i){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&i)===0}function rt(s,i){switch(s){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Rt(){var s=ye;return ye<<=1,(ye&62914560)===0&&(ye=4194304),s}function Bt(s){for(var i=[],u=0;31>u;u++)i.push(s);return i}function Ke(s,i){s.pendingLanes|=i,i!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Gt(s,i,u,p,b,A){var q=s.pendingLanes;s.pendingLanes=u,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=u,s.entangledLanes&=u,s.errorRecoveryDisabledLanes&=u,s.shellSuspendCounter=0;var ae=s.entanglements,ve=s.expirationTimes,je=s.hiddenUpdates;for(u=q&~u;0<u;){var Be=31-qt(u),Ge=1<<Be;ae[Be]=0,ve[Be]=-1;var Le=je[Be];if(Le!==null)for(je[Be]=null,Be=0;Be<Le.length;Be++){var Re=Le[Be];Re!==null&&(Re.lane&=-536870913)}u&=~Ge}p!==0&&on(s,p,0),A!==0&&b===0&&s.tag!==0&&(s.suspendedLanes|=A&~(q&~i))}function on(s,i,u){s.pendingLanes|=i,s.suspendedLanes&=~i;var p=31-qt(i);s.entangledLanes|=i,s.entanglements[p]=s.entanglements[p]|1073741824|u&261930}function en(s,i){var u=s.entangledLanes|=i;for(s=s.entanglements;u;){var p=31-qt(u),b=1<<p;b&i|s[p]&i&&(s[p]|=i),u&=~b}}function $t(s,i){var u=i&-i;return u=(u&42)!==0?1:Qt(u),(u&(s.suspendedLanes|i))!==0?0:u}function Qt(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function fn(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function jn(){var s=M.p;return s!==0?s:(s=window.event,s===void 0?32:M5(s.type))}function es(s,i){var u=M.p;try{return M.p=s,i()}finally{M.p=u}}var er=Math.random().toString(36).slice(2),dn="__reactFiber$"+er,Sn="__reactProps$"+er,tr="__reactContainer$"+er,or="__reactEvents$"+er,ts="__reactListeners$"+er,Ks="__reactHandles$"+er,hs="__reactResources$"+er,ns="__reactMarker$"+er;function za(s){delete s[dn],delete s[Sn],delete s[or],delete s[ts],delete s[Ks]}function Bs(s){var i=s[dn];if(i)return i;for(var u=s.parentNode;u;){if(i=u[tr]||u[dn]){if(u=i.alternate,i.child!==null||u!==null&&u.child!==null)for(s=b5(s);s!==null;){if(u=s[dn])return u;s=b5(s)}return i}s=u,u=s.parentNode}return null}function wa(s){if(s=s[dn]||s[tr]){var i=s.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return s}return null}function Eo(s){var i=s.tag;if(i===5||i===26||i===27||i===6)return s.stateNode;throw Error(r(33))}function Ha(s){var i=s[hs];return i||(i=s[hs]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function wr(s){s[ns]=!0}var hc=new Set,zs={};function Sa(s,i){oi(s,i),oi(s+"Capture",i)}function oi(s,i){for(zs[s]=i,s=0;s<i.length;s++)hc.add(i[s])}var pc=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),mc={},gc={};function bu(s){return De.call(gc,s)?!0:De.call(mc,s)?!1:pc.test(s)?gc[s]=!0:(mc[s]=!0,!1)}function Hs(s,i,u){if(bu(i))if(u===null)s.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":s.removeAttribute(i);return;case"boolean":var p=i.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){s.removeAttribute(i);return}}s.setAttribute(i,""+u)}}function li(s,i,u){if(u===null)s.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(i);return}s.setAttribute(i,""+u)}}function Aa(s,i,u,p){if(p===null)s.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(u);return}s.setAttributeNS(i,u,""+p)}}function On(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function vc(s){var i=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function qa(s,i,u){var p=Object.getOwnPropertyDescriptor(s.constructor.prototype,i);if(!s.hasOwnProperty(i)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var b=p.get,A=p.set;return Object.defineProperty(s,i,{configurable:!0,get:function(){return b.call(this)},set:function(q){u=""+q,A.call(this,q)}}),Object.defineProperty(s,i,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(q){u=""+q},stopTracking:function(){s._valueTracker=null,delete s[i]}}}}function Vi(s){if(!s._valueTracker){var i=vc(s)?"checked":"value";s._valueTracker=qa(s,i,""+s[i])}}function yc(s){if(!s)return!1;var i=s._valueTracker;if(!i)return!0;var u=i.getValue(),p="";return s&&(p=vc(s)?s.checked?"true":"false":s.value),s=p,s!==u?(i.setValue(s),!0):!1}function ws(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var Ur=/[\n"\\]/g;function Pr(s){return s.replace(Ur,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function dl(s,i,u,p,b,A,q,ae){s.name="",q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?s.type=q:s.removeAttribute("type"),i!=null?q==="number"?(i===0&&s.value===""||s.value!=i)&&(s.value=""+On(i)):s.value!==""+On(i)&&(s.value=""+On(i)):q!=="submit"&&q!=="reset"||s.removeAttribute("value"),i!=null?bc(s,q,On(i)):u!=null?bc(s,q,On(u)):p!=null&&s.removeAttribute("value"),b==null&&A!=null&&(s.defaultChecked=!!A),b!=null&&(s.checked=b&&typeof b!="function"&&typeof b!="symbol"),ae!=null&&typeof ae!="function"&&typeof ae!="symbol"&&typeof ae!="boolean"?s.name=""+On(ae):s.removeAttribute("name")}function xu(s,i,u,p,b,A,q,ae){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(s.type=A),i!=null||u!=null){if(!(A!=="submit"&&A!=="reset"||i!=null)){Vi(s);return}u=u!=null?""+On(u):"",i=i!=null?""+On(i):u,ae||i===s.value||(s.value=i),s.defaultValue=i}p=p??b,p=typeof p!="function"&&typeof p!="symbol"&&!!p,s.checked=ae?s.checked:!!p,s.defaultChecked=!!p,q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"&&(s.name=q),Vi(s)}function bc(s,i,u){i==="number"&&ws(s.ownerDocument)===s||s.defaultValue===""+u||(s.defaultValue=""+u)}function Ss(s,i,u,p){if(s=s.options,i){i={};for(var b=0;b<u.length;b++)i["$"+u[b]]=!0;for(u=0;u<s.length;u++)b=i.hasOwnProperty("$"+s[u].value),s[u].selected!==b&&(s[u].selected=b),b&&p&&(s[u].defaultSelected=!0)}else{for(u=""+On(u),i=null,b=0;b<s.length;b++){if(s[b].value===u){s[b].selected=!0,p&&(s[b].defaultSelected=!0);return}i!==null||s[b].disabled||(i=s[b])}i!==null&&(i.selected=!0)}}function xc(s,i,u){if(i!=null&&(i=""+On(i),i!==s.value&&(s.value=i),u==null)){s.defaultValue!==i&&(s.defaultValue=i);return}s.defaultValue=u!=null?""+On(u):""}function wc(s,i,u,p){if(i==null){if(p!=null){if(u!=null)throw Error(r(92));if(te(p)){if(1<p.length)throw Error(r(93));p=p[0]}u=p}u==null&&(u=""),i=u}u=On(i),s.defaultValue=u,p=s.textContent,p===u&&p!==""&&p!==null&&(s.value=p),Vi(s)}
vendor: 4,182 bytes, line 48
48function Na(s,i){if(i){var u=s.firstChild;if(u&&u===s.lastChild&&u.nodeType===3){u.nodeValue=i;return}}s.textContent=i}var Po=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wu(s,i,u){var p=i.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?s.setProperty(i,""):i==="float"?s.cssFloat="":s[i]="":p?s.setProperty(i,u):typeof u!="number"||u===0||Po.has(i)?i==="float"?s.cssFloat=u:s[i]=(""+u).trim():s[i]=u+"px"}function Su(s,i,u){if(i!=null&&typeof i!="object")throw Error(r(62));if(s=s.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||i!=null&&i.hasOwnProperty(p)||(p.indexOf("--")===0?s.setProperty(p,""):p==="float"?s.cssFloat="":s[p]="");for(var b in i)p=i[b],i.hasOwnProperty(b)&&u[b]!==p&&wu(s,b,p)}else for(var A in i)i.hasOwnProperty(A)&&wu(s,A,i[A])}function Sc(s){if(s.indexOf("-")===-1)return!1;switch(s){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 Ac=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
48-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Au=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function js(s){return Au.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function _a(){}var ci=null;function To(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Yi=null,It=null;function Nu(s){var i=wa(s);if(i&&(s=i.stateNode)){var u=s[Sn]||null;e:switch(s=i.stateNode,i.type){case"input":if(dl(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),i=u.name,u.type==="radio"&&i!=null){for(u=s;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Pr(""+i)+'"][type="radio"]'),i=0;i<u.length;i++){var p=u[i];if(p!==s&&p.form===s.form){var b=p[Sn]||null;if(!b)throw Error(r(90));dl(p,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(i=0;i<u.length;i++)p=u[i],p.form===s.form&&yc(p)}break e;case"textarea":xc(s,u.value,u.defaultValue);break e;case"select":i=u.value,i!=null&&Ss(s,!!u.multiple,i,!1)}}}var Nc=!1;function _u(s,i,u){if(Nc)return s(i,u);Nc=!0;try{var p=s(i);return p}finally{if(Nc=!1,(Yi!==null||It!==null)&&(Zh(),Yi&&(i=Yi,s=It,It=Yi=null,Nu(i),s)))for(i=0;i<s.length;i++)Nu(s[i])}}function qs(s,i){var u=s.stateNode;if(u===null)return null;var p=u[Sn]||null;if(p===null)return null;u=p[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(s=s.type,p=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!p;break e;default:s=!1}if(s)return null;if(u&&typeof u!="function")throw Error(r(231,i,typeof u));return u}var rs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_c=!1;if(rs)try{var jo={};Object.defineProperty(jo,"passive",{get:function(){_c=!0}}),window.addEventListener("test",jo,jo),window.removeEventListener("test",jo,jo)}catch{_c=!1}var Gs=null,Oo=null,Ga=null;function Cu(){if(Ga)return Ga;var s,i=Oo,u=i.length,p,b="value"in Gs?Gs.value:Gs.textContent,A=b.length;for(s=0;s<u&&i[s]===b[s];s++);var q=u-s;for(p=1;p<=q&&i[u-p]===b[A-p];p++);return Ga=b.slice(s,1<p?1-p:void 0)}function Zs(s){var i=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&i===13&&(s=13)):s=i,s===10&&(s=13),32<=s||s===13?s:0}function hl(){return!0}function pl(){return!1}function Yr(s){function i(u,p,b,A,q){this._reactName=u,this._targetInst=b,this.type=p,this.nativeEvent=A,this.target=q,this.currentTarget=null;for(var ae in s)s.hasOwnProperty(ae)&&(u=s[ae],this[ae]=u?u(A):A[ae]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?hl:pl,this.isPropagationStopped=pl,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=hl)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=hl)},persist:function(){},isPersistent:hl}),i}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Js=Yr(Wa),ui=m({},Wa,{view:0,detail:0}),ml=Yr(ui),Lo,fi,di,Ro=m({},ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wt,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==di&&(
vendor: 1,451 bytes, line 48
48di&&s.type==="mousemove"?(Lo=s.screenX-di.screenX,fi=s.screenY-di.screenY):fi=Lo=0,di=s),Lo)},movementY:function(s){return"movementY"in s?s.movementY:fi}}),Cc=Yr(Ro),hi=m({},Ro,{dataTransfer:0}),pi=Yr(hi),Eu=m({},ui,{relatedTarget:0}),mi=Yr(Eu),Pu=m({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),C=Yr(Pu),Z=m({},Wa,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),he=Yr(Z),be=m({},Wa,{data:0}),Ne=Yr(be),ze={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ye={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"},bt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pt(s){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(s):(s=bt[s])?!!i[s]:!1}function Wt(){return Pt}var tn=m({},ui,{key:function(s){if(s.key){var i=ze[s.key]||s.key;if(i!=="Unidentified")return i}return s.type==="keypress"?(s=Zs(s),s===13?"Enter":String.fromCharCode(s)):s.type==="
48keydown"||s.type==="keyup"?Ye[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wt,charCode:function(s){return s.type==="keypress"?Zs(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Zs(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),An=Yr(tn),cr=m({},Ro,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sr=Yr(cr),Qn=m({},ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wt}),Br=Yr(Qn),Tr=m({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),ss=Yr(Tr),gi=m({},Ro,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),Ca=Yr(gi),vi=m({},Wa,{newState:0,oldState:0}),Ec=Yr(vi),gl=[9,13,27,32],Va=rs&&"CompositionEvent"in window,Ea=null;rs&&"documentMode"in document&&(Ea=document.documentMode);var Do=rs&&"TextEvent"in window&&!Ea,yi=rs&&(!Va||Ea&&8<Ea&&11>=Ea),Qr=" ",Qi=!1;function $i(s,i){switch(s){case"keyup":return gl.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vl(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Ya=!1;function As(s,i){switch(s){case"compositionend":return vl(i);case"keypress":return i.which!==32?null:(Qi=!0,Qr);case"textInput":return s=i.data,s===Qr&&Qi?null:s;default:return null}}function bi(s,i){if(Ya)return s==="compositionend"||!Va&&$i(s,i)?(s=Cu(),Ga=Oo=Gs=null,Ya=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return yi&&i.locale!=="ko"?null:i.data;default:return null}}var yl={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 Pc(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i==="input"?!!yl[s.type]:i==="textarea"}function Ws(s,i,u,p){Yi?It?It.push(p):It=[p]:Yi=p,i=ap(i,"onChange"),0<i.length&&(u=new Js("onChange","change",null,u,p),s.push({event:u,listeners:i}))}var Pa=null,xi=null;function Tc(s){a5(s,0)}function Ta(s){var i=Eo(s);if(yc(i))return s}function Xi(s,i){if(s==="change")return i}var Os=!1;if(rs){var Ns;if(rs){var Qa="oninput"in document;if(!Qa){var $a=document.createElement("div");$a.setAttribute("oninput","return;"),Qa=typeof $a.oninput=="function"}Ns=Qa}else Ns=!1;Os=Ns&&(!document.documentMode||9<document.documentMode)}function wi(){Pa&&(Pa.detachEvent("onpropertychange",bl),xi=Pa=null)}function bl(s){if(s.propertyName==="value"&&Ta(xi)){var i=[];Ws(i,xi,s,To(s)),_u(Tc,i)}}function xl(s,i,u){s==="focusin"?(wi(),Pa=i,xi=u,Pa.attachEvent("onpropertychange",bl)):s==="focusout"&&wi()}function Ar(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Ta(xi)}function Tu(s,i){if(s==="click")return Ta(i)}function Xa(s,i){if(s==="input"||s==="change")return Ta(i)}function Ka(s,i){return s===i&&(s!==0||1/s===1/i)||s!==s&&i!==i}var as=typeof Object.is=="function"?Object.is:Ka;function Si(s,i){if(as(s,i))return!0;if(typeof s!="object"||s===null||typeof i!="object"||i===null)return!1;var u=Object.keys(s),p=Object.keys(i);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var b=u[p];if(!De.call(i,b)||!as(s[b],i[b]))return!1}return!0}function wl(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Sl(s,i){var u=wl(s);s=0;for(var p;u;){if(u.nodeType===3){if(p=s+u.textContent.length,s<=i&&p>=i)return{node:u,offset:i-s};s=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=wl(u)}}function Ai(s,i){return s&&i?s===i?!0:s&&s.nodeType===3?!1:i&&i.nodeType===3?Ai(s,i.parentNode):"contains"in s?s.contains(i):s.compareDocumentPosition?!!(s.compareDocumentPosition(i)&16):!1:!1}function Ni(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var i=ws(s.document);i instanceof s.HTMLIFrameElement;){try{var u=typeof i.contentWindow.location.href=="string"}catch{u=!1}if(u)s=i.contentWindow;else break;i=ws(s.document)}return i}function Za(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i&&(i==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||i==="textarea"||s.contentEditable==="true")}var Mo=rs&&"documentMode"in document&&11>=document.documentMode,Vs=null,_i=null,ps=null,ea=!1;function Ln(s,i,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;ea||Vs==null||Vs!==ws(p)||(p=Vs,"selectionStart"in p&&Za(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focu
vendor: 22,619 bytes, line 48
48sNode:p.focusNode,focusOffset:p.focusOffset}),ps&&Si(ps,p)||(ps=p,p=ap(_i,"onSelect"),0<p.length&&(i=new Js("onSelect","select",null,i,u),s.push({event:i,listeners:p}),i.target=Vs)))}function Nn(s,i){var u={};return u[s.toLowerCase()]=i.toLowerCase(),u["Webkit"+s]="webkit"+i,u["Moz"+s]="moz"+i,u}var $n={animationend:Nn("Animation","AnimationEnd"),animationiteration:Nn("Animation","AnimationIteration"),animationstart:Nn("Animation","AnimationStart"),transitionrun:Nn("Transition","TransitionRun"),transitionstart:Nn("Transition","TransitionStart"),transitioncancel:Nn("Transition","TransitionCancel"),transitionend:Nn("Transition","TransitionEnd")},Nr={},Ja={};rs&&(Ja=document.createElement("div").style,"AnimationEvent"in window||(delete $n.animationend.animation,delete $n.animationiteration.animation,delete $n.animationstart.animation),"TransitionEvent"in window||delete $n.transitionend.transition);function ja(s){if(Nr[s])return Nr[s];if(!$n[s])return s;var i=$n[s],u;for(u in i)if(i.hasOwnProperty(u)&&u in Ja)return Nr[s]=i[u];return s}var ko=ja("animationend"),jc=ja("animationiteration"),Zf=ja("animationstart"),Ph=ja("transitionrun"),Th=ja("transitionstart"),jh=ja("transitioncancel"),Jf=ja("transitionend"),ed=new Map,Fo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Fo.push("scrollEnd");function ta(s,i){ed.set(s,i),Sa(i,[s])}var Oc=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},Ys=[],Io=0,ju=0;function Lc(){for(var s=Io,i=ju=Io=0;i<s;){var u=Ys[i];Ys[i++]=null;var p=Ys[i];Ys[i++]=null;var b=Ys[i];Ys[i++]=null;var A=Ys[i];if(Ys[i++]=null,p!==null&&b!==null){var q=p.pending;q===null?b.next=b:(b.next=q.next,q.next=b),p.pending=b}A!==0&&Dc(u,b,A)}}function Rc(s,i,u,p){Ys[Io++]=s,Ys[Io++]=i,Ys[Io++]=u,Ys[Io++]=p,ju|=p,s.lanes|=p,s=s.alternate,s!==null&&(s.lanes|=p)}function Ou(s,i,u,p){return Rc(s,i,u,p),ms(s)}function Ci(s,i){return Rc(s,null,null,i),ms(s)}function Dc(s,i,u){s.lanes|=u;var p=s.alternate;p!==null&&(p.lanes|=u);for(var b=!1,A=s.return;A!==null;)A.childLanes|=u,p=A.alternate,p!==null&&(p.childLanes|=u),A.tag===22&&(s=A.stateNode,s===null||s._visibility&1||(b=!0)),s=A,A=A.return;return s.tag===3?(A=s.stateNode,b&&i!==null&&(b=31-qt(u),s=A.hiddenUpdates,p=s[b],p===null?s[b]=[i]:p.push(i),i.lane=u|536870912),A):null}function ms(s){if(50<Sd)throw Sd=0,Xg=null,Error(r(185));for(var i=s.return;i!==null;)s=i,i=s.return;return s.tag===3?s.stateNode:null}var is={};function Lu(s,i,u,p){this.tag=s,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gs(s,i,u,p){return new Lu(s,i,u,p)}function Ru(s){return s=s.prototype,!(!s||!s.isReactComponent)}function na(s,i){var u=s.alternate;return u===null?(u=gs(s.tag,i,s.key,s.mode),u.elementType=s.elementType,u.type=s.type,u.stateNode=s.stateNode,u.alternate=s,s.alternate=u):(u.pendingProps=i,u.type=s.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=s.flags&65011712,u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,i=s.dependencies,u.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},u.sibling=s.sibling,u.index=s.index,u.ref=s.ref,u.refCleanup=s.refCleanup,u}function Mc(s,i){s.flags&=65011714;var u=s.alternate;return u===null?(s.childLanes=0,s.lanes=i,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,i=u.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),s}function Al(s,i,u,p,b,A){var q=0;if(p=s,typeof s=="function")Ru(s)&&(q=1);else if(typeof s=="string")q=k_(s,u,V.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case R:return s=gs(31,u,i,b),s.elementType=R,s.lanes=A,s;case w:return Ki(u.children,b,A,i);case E:q=8,b|=24;break;case _:return s=gs(12,u,i,b|2),s.elementType=_,s.lanes=A,s;case K:return s=gs(13,u,i,b),s.elementType=K,s.lanes=A,s;case U:return s=gs(19,u,i,b),s.elementType=U,s.lanes=A,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case H:q=10;break e;case z:q=9;break e;case k:q=11;break e;case G:q=14;break e;case O:q=16,p=null;break e}q=29,u=Error(r(130,s===null?"null":typeof s,"")),p=null}return i=gs(q,u,i,b),i.elementType=s,i.type=p,i.lanes=A,i}function Ki(s,i,u,p){return s=gs(7,s,p,i),s.lanes=u,s}function kc(s,i,u){return s=gs(6,s,null,i),s.lanes=u,s}function Du(s){var i=gs(18,null,null,0);return i.stateNode=s,i}function Nl(s,i,u){return i=gs(4,s.children!==null?s.children:[],s.key,i),i.lanes=u,i.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},i}var Mu=new WeakMap;function ra(s,i){if(typeof s=="object"&&s!==null){var u=Mu.get(s);return u!==void 0?u:(i={value:s,source:i,stack:et(i)},Mu.set(s,i),i)}return{value:s,source:i,stack:et(i)}}var _l=[],Uo=0,ku=null,Fc=0,sa=[],aa=0,Zi=null,ia=1,oa="";function Qs(s,i){_l[Uo++]=Fc,_l[Uo++]=ku,ku=s,Fc=i}function Oh(s,i,u){sa[aa++]=ia,sa[aa++]=oa,sa[aa++]=Zi,Zi=s;var p=ia;s=oa;var b=32-qt(p)-1;p&=~(1<<b),u+=1;var A=32-qt(i)+b;if(30<A){var q=b-b%5;A=(p&(1<<q)-1).toString(32),p>>=q,b-=q,ia=1<<32-qt(i)+b|u<<b|p,oa=A+s}else ia=1<<A|u<<b|p,oa=s}function td(s){s.return!==null&&(Qs(s,1),Oh(s,1,0))}function Fu(s){for(;s===ku;)ku=_l[--Uo],_l[Uo]=null,Fc=_l[--Uo],_l[Uo]=null;for(;s===Zi;)Zi=sa[--aa],sa[aa]=null,oa=sa[--aa],sa[aa]=null,ia=sa[--aa],sa[aa]=null}function Lh(s,i){sa[aa++]=ia,sa[aa++]=oa,sa[aa++]=Zi,ia=i.id,oa=i.overflow,Zi=s}var os=null,nr=null,mn=!1,_s=null,gr=!1,Oa=Error(r(519));function Ji(s){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Cl(ra(i,s)),Oa}function nd(s){var i=s.stateNode,u=s.type,p=s.memoizedProps;switch(i[dn]=s,i[Sn]=p,u){case"dialog":vn("cancel",i),vn("close",i);break;case"iframe":case"object":case"embed":vn("load",i);break;case"video":case"audio":for(u=0;u<Nd.length;u++)vn(Nd[u],i);break;case"source":vn("error",i);break;case"img":case"image":case"link":vn("error",i),vn("load",i);break;case"details":vn("toggle",i);break;case"input":vn("invalid",i),xu(i,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":vn("invalid",i);break;case"textarea":vn("invalid",i),wc(i,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||i.textContent===""+u||p.suppressHydrationWarning===!0||c5(i.textContent,u)?(p.popover!=null&&(vn("beforetoggle",i),vn("toggle",i)),p.onScroll!=null&&vn("scroll",i),p.onScrollEnd!=null&&vn("scrollend",i),p.onClick!=null&&(i.onclick=_a),i=!0):i=!1,i||Ji(s,!0)}function Ei(s){for(os=s.return;os;)switch(os.tag){case 5:case 31:case 13:gr=!1;return;case 27:case 3:gr=!0;return;default:os=os.return}}function ls(s){if(s!==os)return!1;if(!mn)return Ei(s),mn=!0,!1;var i=s.tag,u;if((u=i!==3&&i!==27)&&((u=i===5)&&(u=s.type,u=!(u!=="form"&&u!=="button")||f0(s.type,s.memoizedProps)),u=!u),u&&nr&&Ji(s),Ei(s),i===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));nr=y5(s)}else if(i===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));nr=y5(s)}else i===27?(i=nr,Bl(s.type)?(s=g0,g0=null,nr=s):nr=i):nr=os?ri(s.stateNode.nextSibling):null;return!0}function Bo(){nr=os=null,mn=!1}function rd(){var s=_s;return s!==null&&(ha===null?ha=s:ha.push.apply(ha,s),_s=null),s}function Cl(s){_s===null?_s=[s]:_s.push(s)}var Iu=ee(null),eo=null,ei=null;function to(s,i,u){B(Iu,i._currentValue),i._currentValue=u}function la(s){s._currentValue=Iu.current,P(Iu)}function El(s,i,u){for(;s!==null;){var p=s.alternate;if((s.childLanes&i)!==i?(s.childLanes|=i,p!==null&&(p.childLanes|=i)):p!==null&&(p.childLanes&i)!==i&&(p.childLanes|=i),s===u)break;s=s.return}}function zo(s,i,u,p){var b=s.child;for(b!==null&&(b.return=s);b!==null;){var A=b.dependencies;if(A!==null){var q=b.child;A=A.firstContext;e:for(;A!==null;){var ae=A;A=b;for(var ve=0;ve<i.length;ve++)if(ae.context===i[ve]){A.lanes|=u,ae=A.alternate,ae!==null&&(ae.lanes|=u),El(A.return,u,s),p||(q=null);break e}A=ae.next}}else if(b.tag===18){if(q=b.return,q===null)throw Error(r(341));q.lanes|=u,A=q.alternate,A!==null&&(A.lanes|=u),El(q,u,s),q=null}else q=b.child;if(q!==null)q.return=b;else for(q=b;q!==null;){if(q===s){q=null;break}if(b=q.sibling,b!==null){b.return=q.return,q=b;break}q=q.return}b=q}}function no(s,i,u,p){s=null;for(var b=i,A=!1;b!==null;){if(!A){if((b.flags&524288)!==0)A=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var q=b.alternate;if(q===null)throw Error(r(387));if(q=q.memoizedProps,q!==null){var ae=b.type;as(b.pendingProps.value,q.value)||(s!==null?s.push(ae):s=[ae])}}else if(b===le.current){if(q=b.alternate,q===null)throw Error(r(387));q.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(s!==null?s.push(Td):s=[Td])}b=b.return}s!==null&&zo(i,s,u,p),i.flags|=262144}function Uu(s){for(s=s.firstContext;s!==null;){if(!as(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function ro(s){eo=s,ei=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function cs(s){return Rh(eo,s)}function Bu(s,i){return eo===null&&ro(s),Rh(s,i)}function Rh(s,i){var u=i._currentValue;if(i={context:i,memoizedValue:u,next:null},ei===null){if(s===null)throw Error(r(308));ei=i,s.dependencies={lanes:0,firstContext:i},s.flags|=524288}else ei=ei.next=i;return u}var mg=typeof AbortController<"u"?AbortController:function(){var s=[],i=this.signal={aborted:!1,addEventListener:function(u,p){s.push(p)}};this.abort=function(){i.aborted=!0,s.forEach(function(u){return u()})}},gg=e.unstable_scheduleCallback,vg=e.unstable_NormalPriority,_r={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pl(){return{controller:new mg,data:new Map,refCount:0}}function Ic(s){s.refCount--,s.refCount===0&&gg(vg,function(){s.controller.abort()})}var Uc=null,zu=0,v=0,S=null;function T(s,i){if(Uc===null){var u=Uc=[];zu=0,v=n0(),S={status:"pending",value:void 0,then:function(p){u.push(p)}}}return zu++,i.then(I,I),i}function I(){if(--zu===0&&Uc!==null){S!==null&&(S.status="fulfilled");var s=Uc;Uc=null,v=0,S=null;for(var i=0;i<s.length;i++)(0,s[i])()}}function J(s,i){var u=[],p={status:"pending",value:null,reason:null,then:function(b){u.push(b)}};return s.then(function(){p.status="fulfilled",p.value=i;for(var b=0;b<u.length;b++)(0,u[b])(i)},function(b){for(p.status="rejected",p.reason=b,b=0;b<u.length;b++)(0,u[b])(void 0)}),p}var ne=L.S;L.S=function(s,i){Ry=ct(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&T(s,i),ne!==null&&ne(s,i)};var re=ee(null);function ie(){var s=re.current;return s!==null?s:sr.pooledCache}function ue(s,i){i===null?B(re,re.current):B(re,i.pool)}function de(){var s=ie();return s===null?null:{parent:_r._currentValue,pool:s}}var xe=Error(r(460)),Pe=Error(r(474)),fe=Error(r(542)),Se={then:function(){}};function Ce(s){return s=s.status,s==="fulfilled"||s==="rejected"}function ke(s,i,u){switch(u=s[u],u===void 0?s.push(i):u!==i&&(i.then(_a,_a),i=u),i.status){case"fulfilled":return i.value;case"rejected":throw s=i.reason,$e(s),s;default:if(typeof i.status=="string")i.then(_a,_a);else{if(s=sr,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=i,s.status="pending",s.then(function(p){if(i.status==="pending"){var b=i;b.status="fulfilled",b.value=p}},function(p){if(i.status==="pending"){var b=i;b.status="rejected",b.reason=p}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw s=i.reason,$e(s),s}throw Me=i,xe}}function Ee(s){try{var i=s._init;return i(s._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Me=u,xe):u}}var Me=null;function He(){if(Me===null)throw Error(r(459));var s=Me;return Me=null,s}function $e(s){if(s===xe||s===fe)throw Error(r(483))}var We=null,wt=0;function ht(s){var i=wt;return wt+=1,We===null&&(We=[]),ke(We,s,i)}function Kt(s,i){i=i.props.ref,s.ref=i!==void 0?i:null}function gt(s,i){throw i.$$typeof===y?Error(r(525)):(s=Object.prototype.toString.call(i),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":s)))}function hn(s){function i(_e,we){if(s){var Te=_e.deletions;Te===null?(_e.deletions=[we],_e.flags|=16):Te.push(we)}}function u(_e,we){if(!s)return null;for(;we!==null;)i(_e,we),we=we.sibling;return null}function p(_e){for(var we=new Map;_e!==null;)_e.key!==null?we.set(_e.key,_e):we.set(_e.index,_e),_e=_e.sibling;return we}function b(_e,we){return _e=na(_e,we),_e.index=0,_e.sibling=null,_e}function A(_e,we,Te){return _e.index=Te,s?(Te=_e.alternate,Te!==null?(Te=Te.index,Te<we?(_e.flags|=67108866,we):Te):(_e.flags|=67108866,we)):(_e.flags|=1048576,we)}function q(_e){return s&&_e.alternate===null&&(_e.flags|=67108866),_e}function ae(_e,we,Te,qe){return we===null||we.tag!==6?(we=kc(Te,_e.mode,qe),we.return=_e,we):(we=b(we,Te),we.return=_e,we)}function ve(_e,we,Te,qe){var kt=Te.type;return kt===w?Be(_e,we,Te.props.children,qe,Te.key):we!==null&&(we.elementType===kt||typeof kt=="object"&&kt!==null&&kt.$$typeof===O&&Ee(kt)===we.type)?(we=b(we,Te.props),Kt(we,Te),we.return=_e,we):(we=Al(Te.type,Te.key,Te.props,null,_e.mode,qe),Kt(we,Te),we.return=_e,we)}function je(_e,we,Te,qe){return we===null||we.tag!==4||we.stateNode.containerInfo!==Te.containerInfo||we.stateNode.implementation!==Te.implementation?(we=Nl(Te,_e.mode,qe),we.return=_e,we):(we=b(we,Te.children||[]),we.return=_e,we)}function Be(_e,we,Te,qe,kt){return we===null||we.tag!==7?(we=Ki(Te,_e.mode,qe,kt),we.return=_e,we):(we=b(we,Te),we.return=_e,we)}function Ge(_e,we,Te){if(typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint")return we=kc(""+we,_e.mode,Te),we.return=_e,we;if(typeof we=="object"&&we!==null){switch(we.$$typeof){case g:return Te=Al(we.type,we.key,we.props,null,_e.mode,Te),Kt(Te,we),Te.return=_e,Te;case N:return we=Nl(we,_e.mode,Te),we.return=_e,we;case O:return we=Ee(we),Ge(_e,we,Te)}if(te(we)||D(we))return we=Ki(we,_e.mode,Te,null),we.return=_e,we;if(typeof we.then=="function")return Ge(_e,ht(we),Te);if(we.$$typeof===H)return Ge(_e,Bu(_e,we),Te);gt(_e,we)}return null}function Le(_e,we,Te,qe){var kt=we!==null?we.key:null;if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return kt!==null?null:ae(_e,we,""+Te,qe);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case g:return Te.key===kt?ve(_e,we,Te,qe):null;case N:return Te.key===kt?je(_e,we,Te,qe):null;case O:return Te=Ee(Te),Le(_e,we,Te,qe)}if(te(Te)||D(Te))return kt!==null?null:Be(_e,we,Te,qe,null);if(typeof Te.then=="function")return Le(_e,we,ht(Te),qe);if(Te.$$typeof===H)return Le(_e,we,Bu(_e,Te),qe);gt(_e,Te)}return null}function Re(_e,we,Te,qe,kt){if(typeof qe=="string"&&qe!==""||typeof qe=="number"||typeof qe=="bigint")return _e=_e.get(Te)||null,ae(we,_e,""+qe,kt);if(typeof qe=="object"&&qe!==null){switch(qe.$$typeof){case g:return _e=_e.get(qe.key===null?Te:qe.key)||null,ve(we,_e,qe,kt);case N:return _e=_e.get(qe.key===null?Te:qe.key)||null,je(we,_e,qe,kt);case O:return qe=Ee(qe),Re(_e,we,Te,qe,kt)}if(te(qe)||D(qe))return _e=_e.get(Te)||null,Be(we,_e,qe,kt,null);if(typeof qe.then=="function")return Re(_e,we,Te,ht(qe),kt);if(qe.$$typeof===H)return Re(_e,we,Te,Bu(we,qe),kt);gt(we,qe)}return null}function xt(_e,we,Te,qe){for(var kt=null,Dn=null,Tt=we,ln=we=0,xn=null;Tt!==null&&ln<Te.length;ln++){Tt.index>ln?(xn=Tt,Tt=null):xn=Tt.sibling;var Mn=Le(_e,Tt,Te[ln],qe);if(Mn===null){Tt===null&&(Tt=xn);break}s&&Tt&&Mn.alternate===null&&i(_e,Tt),we=A(Mn,we,ln),Dn===null?kt=Mn:Dn.sibling=Mn,Dn=Mn,Tt=xn}if(ln===Te.length)return u(_e,Tt),mn&&Qs(_e,ln),kt;if(Tt===null){for(;ln<Te.length;ln++)Tt=Ge(_e,Te[ln],qe),Tt!==null&&(we=A(Tt,we,ln),Dn===null?kt=Tt:Dn.sibling=Tt,Dn=Tt);return mn&&Qs(_e,ln),kt}for(Tt=p(Tt);ln<Te.length;ln++)xn=Re(Tt,_e,ln,Te[ln],qe),xn!==null&&(s&&xn.alternate!==null&&Tt.delete(xn.key===null?ln:xn.key),we=A(xn,we,ln),Dn===null?kt=xn:Dn.sibling=xn,Dn=xn);return s&&Tt.forEach(function(Wl){return i(_e,Wl)}),mn&&Qs(_e,ln),kt}function zt(_e,we,Te,qe){if(Te==null)throw Error(r(151));for(var kt=null,Dn=null,Tt=we,ln=we=0,xn=null,Mn=Te.next();Tt!==null&&!Mn.done;ln++,Mn=Te.next()){Tt.index>ln?(xn=Tt,Tt=null):xn=Tt.sibling;var Wl=Le(_e,Tt,Mn.value,qe);if(Wl===null){Tt===null&&(Tt=xn);break}s&&Tt&&Wl.alternate===null&&i(_e,Tt),we=A(Wl,we,ln),Dn===null?kt=Wl:Dn.sibling=Wl,Dn=Wl,Tt=xn}if(Mn.done)return u(_e,Tt),mn&&Qs(_e,ln),kt;if(Tt===null){for(;!Mn.done;ln++,Mn=Te.next())Mn=Ge(_e,Mn.value,qe),Mn!==null&&(we=A(Mn,we,ln),Dn===null?kt=Mn:Dn.sibling=Mn,Dn=Mn);return mn&&Qs(_e,ln),kt}for(Tt=p(Tt);!Mn.done;ln++,Mn=Te.next())Mn=Re(Tt,_e,ln,Mn.value,qe),Mn!==null&&(s&&Mn.alternate!==null&&Tt.delete(Mn.key===null?ln:Mn.key),we=A(Mn,we,ln),Dn===null?kt=Mn:Dn.sibling=Mn,Dn=Mn);return s&&Tt.forEach(function(Y_){return i(_e,Y_)}),mn&&Qs(_e,ln),kt}function Jn(_e,we,Te,qe){if(typeof Te=="object"&&Te!==null&&Te.type===w&&Te.key===null&&(Te=Te.props.children),typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case g:e:{for(var kt=Te.key;we!==null;){if(we.key===kt){if(kt=Te.type,kt===w){if(we.tag===7){u(_e,we.sibling),qe=b(we,Te.props.children),qe.return=_e,_e=qe;break e}}else if(we.elementType===kt||typeof kt=="object"&&kt!==null&&kt.$$typeof===O&&Ee(kt)===we.type){u(_e,we.sibling),qe=b(we,Te.props),Kt(qe,Te),qe.return=_e,_e=qe;break e}u(_e,we);break}else i(_e,we);we=we.sibling}Te.type===w?(qe=Ki(Te.props.children,_e.mode,qe,Te.key),qe.return=_e,_e=qe):(qe=Al(Te.type,Te.key,Te.props,null,_e.mode,qe),Kt(qe,Te),qe.return=_e,_e=qe)}return q(_e);case N:e:{for(kt=Te.key;we!==null;){if(we.key===kt)if(we.tag===4&&we.stateNode.containerInfo===Te.containerInfo&&we.stateNode.implementation===Te.implementation){u(_e,we.sibling),qe=b(we,Te.children||[]),qe.return=_e,_e=qe;break e}else{u(_e,we);break}else i(_e,we);we=we.sibling}qe=Nl(Te,_e.mode,qe),qe.return=_e,_e=qe}return q(_e);case O:return Te=Ee(Te),Jn(_e,we,Te,qe)}if(te(Te))return xt(_e,we,Te,qe);if(D(Te)){if(kt=D(Te),typeof kt!="function")throw Error(r(150));return Te=kt.call(Te),zt(_e,we,Te,qe)}if(typeof Te.then=="function")return Jn(_e,we,ht(Te),qe);if(Te.$$typeof===H)return Jn(_e,we,Bu(_e,Te),qe);gt(_e,Te)}return typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint"?(Te=""+Te,we!==null&&we.tag===6?(u(_e,we.sibling),qe=b(we,Te),qe.return=_e,_e=qe):(u(_e,we),qe=kc(Te,_e.mode,qe),qe.return=_e,_e=qe),q(_e)):u(_e,we)}return function(_e,we,Te,qe){try{wt=0;var kt=Jn(_e,we,Te,qe);return We=null,kt}catch(Tt){if(Tt===xe||Tt===fe)throw Tt;var Dn=gs(29,Tt,null,_e.mode);return Dn.lanes=qe,Dn.return=_e,Dn}finally{}}}var rr=hn(!0),nn=hn(!1),pt=!1;function st(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ur(s,i){s=s.updateQueue,i.updateQueue===s&&(i.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Ut(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function an(s,i,u){var p=s.updateQueue;if(p===null)return null;if(p=p.shared,(Un&2)!==0){var b=p.pending;return b===null?i.next=i:(i.next=b.next,b.next=i),p.pending=i,i=ms(s),Dc(s,null,u),i}return Rc(s,p,i,u),ms(s)}function Fn(s,i,u){if(i=i.updateQueue,i!==null&&(i=i.shared,(u&4194048)!==0)){var p=i.lanes;p&=s.pendingLanes,u|=p,i.lanes=u,en(s,u)}}function zr(s,i){var u=s.updateQueue,p=s.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var b=null,A=null;if(u=u.firstBaseUpdate,u!==null){do{var q={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};A===null?b=A=q:A=A.next=q,u=u.next}while(u!==null);A===null?b=A=i:A=A.next=i}else b=A=i;u={baseState:p.baseState,firstBaseUpdate:b,lastBaseUpdate:A,shared:p.shared,callbacks:p.callbacks},s.updateQueue=u;return}s=u.lastBaseUpdate,s===null?u.firstBaseUpdate=i:s.next=i,u.lastBaseUpdate=i}var us=!1;function Xn(){if(us){var s=S;if(s!==null)throw s}}function jr(s,i,u,p){us=!1;var b=s.updateQueue;pt=!1;var A=b.firstBaseUpdate,q=b.lastBaseUpdate,ae=b.shared.pending;if(ae!==null){b.shared.pending=null;var ve=ae,je=ve.next;ve.next=null,q===null?A=je:q.next=je,q=ve;var Be=s.alternate;Be!==null&&(Be=Be.updateQueue,ae=Be.lastBaseUpdate,ae!==q&&(ae===null?Be.firstBaseUpdate=je:ae.next=je,Be.lastBaseUpdate=ve))}if(A!==null){var Ge=b.baseState;q=0,Be=je=ve=null,ae=A;do{var Le=ae.lane&-536870913,Re=Le!==ae.lane;if(Re?(bn&Le)===Le:(p&Le)===Le){Le!==0&&Le===v&&(us=!0),Be!==null&&(Be=Be.next={lane:0,tag:ae.tag,payload:ae.payload,callback:null,next:null});e:{var xt=s,zt=ae;Le=i;var Jn=u;switch(zt.tag){case 1:if(xt=zt.payload,typeof xt=="function"){Ge=xt.call(Jn,Ge,Le);break e}Ge=xt;break e;case 3:xt.flags=xt.flags&-65537|128;case 0:if(xt=zt.payload,Le=typeof xt=="function"?xt.call(Jn,Ge,Le):xt,Le==null)break e;Ge=m({},Ge,Le);break e;case 2:pt=!0}}Le=ae.callback,Le!==null&&(s.flags|=64,Re&&(s.flags|=8192),Re=b.callbacks,Re===null?b.callbacks=[Le]:Re.push(Le))}else Re={lane:Le,tag:ae.tag,payload:ae.payload,callback:ae.callback,next:null},Be===null?(je=Be=Re,ve=Ge):Be=Be.next=Re,q|=Le;if(ae=ae.next,ae===null){if(ae=b.shared.pending,ae===null)break;Re=ae,ae=Re.next,Re.next=null,b.lastBaseUpdate=Re,b.shared.pending=null}}while(!0);
vendor: 4,268 bytes, line 48
48Be===null&&(ve=Ge),b.baseState=ve,b.firstBaseUpdate=je,b.lastBaseUpdate=Be,A===null&&(b.shared.lanes=0),Ml|=q,s.lanes=q,s.memoizedState=Ge}}function vs(s,i){if(typeof s!="function")throw Error(r(191,s));s.call(i)}function Or(s,i){var u=s.callbacks;if(u!==null)for(s.callbacks=null,s=0;s<u.length;s++)vs(u[s],i)}var cn=ee(null),En=ee(0);function fr(s,i){s=Ko,B(En,s),B(cn,i),Ko=s|i.baseLanes}function Rn(){B(En,Ko),B(cn,cn.current)}function Hr(){Ko=En.current,P(cn),P(En)}var dr=ee(null),Pn=null;function Cr(s){var i=s.alternate;B(_n,_n.current&1),B(dr,s),Pn===null&&(i===null||cn.current!==null||i.memoizedState!==null)&&(Pn=s)}function In(s){B(_n,_n.current),B(dr,s),Pn===null&&(Pn=s)}function Lr(s){s.tag===22?(B(_n,_n.current),B(dr,s),Pn===null&&(Pn=s)):Rr()}function Rr(){B(_n,_n.current),B(dr,dr.current)}function Hn(s){P(dr),Pn===s&&(Pn=null),P(_n)}var _n=ee(0);function ys(s){for(var i=s;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||p0(u)||m0(u)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var vr=0,Dt=null,Mt=null,Tn=null,Ls=!1,ca=!1,Cs=!1,Dr=0,so=0,ao=null,Hu=0;function Kn(){throw Error(r(321))}function sd(s,i){if(i===null)return!1;for(var u=0;u<i.length&&u<s.length;u++)if(!as(s[u],i[u]))return!1;return!0}function ad(s,i,u,p,b,A){return vr=A,Dt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,L.H=s===null||s.memoizedState===null?G2:_g,Cs=!1,A=u(p,b),Cs=!1,ca&&(A=Pi(i,u,p,b)),qu(s),A}function qu(s){L.H=hd;var i=Mt!==null&&Mt.next!==null;if(vr=0,Tn=Mt=Dt=null,Ls=!1,so=0,ao=null,i)throw Error(r(300));s===null||Xr||(s=s.dependencies,s!==null&&Uu(s)&&(Xr=!0))}function Pi(s,i,u,p){Dt=s;var b=0;do{if(ca&&(ao=null),so=0,ca=!1,25<=b)throw Error(r(301));if(b+=1,Tn=Mt=null,s.updateQueue!=null){var A=s.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}L.H=W2,A=i(u,p)}while(ca);return A}function yg(){var s=L.H,i=s.useState()[0];return i=typeof i.then=="function"?io(i):i,s=s.useState()[0],(Mt!==null?Mt.memoizedState:null)!==s&&(Dt.flags|=1024),i}function id(){var s=Dr!==0;return Dr=0,s}function od(s,i,u){i.updateQueue=s.updateQueue,i.flags&=-2053,s.lanes&=~u}function Gu(s){if(Ls){for(s=s.memoizedState;s!==null;){var i=s.queue;i!==null&&(i.pending=null),s=s.next}Ls=!1}vr=0,Tn=Mt=Dt=null,ca=!1,so=Dr=0,ao=null}function $r(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tn===null?Dt.memoizedState=Tn=s:Tn=Tn.next=s,Tn}function yr(){if(Mt===null){var s=Dt.alternate;s=s!==null?s.memoizedState:null}else s=Mt.next;var i=Tn===null?Dt.memoizedState:Tn.next;if(i!==null)Tn=i,Mt=s;else{if(s===null)throw Dt.alternate===null?Error(r(467)):Error(r(310));Mt=s,s={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Tn===null?Dt.memoizedState=Tn=s:Tn=Tn.next=s}return Tn}function Bc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function io(s){var i=so;return so+=1,ao===null&&(ao=[]),s=ke(ao,s,i),i=Dt,(Tn===null?i.memoizedState:Tn.next)===null&&(i=i.alternate,L.H=i===null||i.memoizedState===null?G2:_g),s}function Tl(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return io(s);if(s.$$typeof===H)return cs(s)}throw Error(r(438,String(s)))}function Ho(s){var i=null,u=Dt.updateQueue;if(u!==null&&(i=u.memoCache),i==null){var p=Dt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(i={data:p.data.map(function(b){return b.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),u===null&&(u=Bc(),Dt.updateQueue=u),u.memoCache=i,u=i.data[i.index],u===void 0)for(u=i.data[i.index]=Array(s),p=0;p<s;p++)u[p]=Q;return i.index++,u}function ti(s,i){return typeof i=="function"?i(s):i}function Wu(s){var i=yr();return jl(i,Mt,s)}function jl(s,i,u){var p=s.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=u;
vendor: 14,679 bytes, line 48
48var b=s.baseQueue,A=p.pending;if(A!==null){if(b!==null){var q=b.next;b.next=A.next,A.next=q}i.baseQueue=b=A,p.pending=null}if(A=s.baseState,b===null)s.memoizedState=A;else{i=b.next;var ae=q=null,ve=null,je=i,Be=!1;do{var Ge=je.lane&-536870913;if(Ge!==je.lane?(bn&Ge)===Ge:(vr&Ge)===Ge){var Le=je.revertLane;if(Le===0)ve!==null&&(ve=ve.next={lane:0,revertLane:0,gesture:null,action:je.action,hasEagerState:je.hasEagerState,eagerState:je.eagerState,next:null}),Ge===v&&(Be=!0);else if((vr&Le)===Le){je=je.next,Le===v&&(Be=!0);continue}else Ge={lane:0,revertLane:je.revertLane,gesture:null,action:je.action,hasEagerState:je.hasEagerState,eagerState:je.eagerState,next:null},ve===null?(ae=ve=Ge,q=A):ve=ve.next=Ge,Dt.lanes|=Le,Ml|=Le;Ge=je.action,Cs&&u(A,Ge),A=je.hasEagerState?je.eagerState:u(A,Ge)}else Le={lane:Ge,revertLane:je.revertLane,gesture:je.gesture,action:je.action,hasEagerState:je.hasEagerState,eagerState:je.eagerState,next:null},ve===null?(ae=ve=Le,q=A):ve=ve.next=Le,Dt.lanes|=Ge,Ml|=Ge;je=je.next}while(je!==null&&je!==i);if(ve===null?q=A:ve.next=ae,!as(A,s.memoizedState)&&(Xr=!0,Be&&(u=S,u!==null)))throw u;s.memoizedState=A,s.baseState=q,s.baseQueue=ve,p.lastRenderedState=A}return b===null&&(p.lanes=0),[s.memoizedState,p.dispatch]}function Vu(s){var i=yr(),u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=s;var p=u.dispatch,b=u.pending,A=i.memoizedState;if(b!==null){u.pending=null;var q=b=b.next;do A=s(A,q.action),q=q.next;while(q!==b);as(A,i.memoizedState)||(Xr=!0),i.memoizedState=A,i.baseQueue===null&&(i.baseState=A),u.lastRenderedState=A}return[A,p]}function Yu(s,i,u){var p=Dt,b=yr(),A=mn;if(A){if(u===void 0)throw Error(r(407));u=u()}else u=i();var q=!as((Mt||b).memoizedState,u);if(q&&(b.memoizedState=u,Xr=!0),b=b.queue,bg(cd.bind(null,p,b,s),[s]),b.getSnapshot!==i||q||Tn!==null&&Tn.memoizedState.tag&1){if(p.flags|=2048,Go(9,{destroy:void 0},ld.bind(null,p,b,u,i),null),sr===null)throw Error(r(349));A||(vr&127)!==0||Ti(p,i,u)}return u}function Ti(s,i,u){s.flags|=16384,s={getSnapshot:i,value:u},i=Dt.updateQueue,i===null?(i=Bc(),Dt.updateQueue=i,i.stores=[s]):(u=i.stores,u===null?i.stores=[s]:u.push(s))}function ld(s,i,u,p){i.value=u,i.getSnapshot=p,Dh(i)&&ud(s)}function cd(s,i,u){return u(function(){Dh(i)&&ud(s)})}function Dh(s){var i=s.getSnapshot;s=s.value;try{var u=i();return!as(s,u)}catch{return!0}}function ud(s){var i=Ci(s,2);i!==null&&pa(i,s,2)}function oo(s){var i=$r();if(typeof s=="function"){var u=s;if(s=u(),Cs){Et(!0);try{u()}finally{Et(!1)}}}return i.memoizedState=i.baseState=s,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:s},i}function Mh(s,i,u,p){return s.baseState=u,jl(s,Mt,typeof p=="function"?p:ti)}function kh(s,i,u,p,b){if(Bh(s))throw Error(r(485));if(s=i.action,s!==null){var A={payload:b,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(q){A.listeners.push(q)}};L.T!==null?u(!0):A.isTransition=!1,p(A),u=i.pending,u===null?(A.next=i.pending=A,Fh(i,A)):(A.next=u.next,i.pending=u.next=A)}}function Fh(s,i){var u=i.action,p=i.payload,b=s.state;if(i.isTransition){var A=L.T,q={};L.T=q;try{var ae=u(b,p),ve=L.S;ve!==null&&ve(q,ae),fd(s,i,ae)}catch(je){qo(s,i,je)}finally{A!==null&&q.types!==null&&(A.types=q.types),L.T=A}}else try{A=u(b,p),fd(s,i,A)}catch(je){qo(s,i,je)}}function fd(s,i,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){Ih(s,i,p)},function(p){return qo(s,i,p)}):Ih(s,i,u)}function Ih(s,i,u){i.status="fulfilled",i.value=u,Qu(i),s.state=u,i=s.pending,i!==null&&(u=i.next,u===i?s.pending=null:(u=u.next,i.next=u,Fh(s,u)))}function qo(s,i,u){var p=s.pending;if(s.pending=null,p!==null){p=p.next;do i.status="rejected",i.reason=u,Qu(i),i=i.next;while(i!==p)}s.action=null}function Qu(s){s=s.listeners;for(var i=0;i<s.length;i++)(0,s[i])()}function zc(s,i){return i}function ni(s,i){if(mn){var u=sr.formState;if(u!==null){e:{var p=Dt;if(mn){if(nr){t:{for(var b=nr,A=gr;b.nodeType!==8;){if(!A){b=null;break t}if(b=ri(b.nextSibling),b===null){b=null;break t}}A=b.data,b=A==="F!"||A==="F"?b:null}if(b){nr=ri(b.nextSibling),p=b.data==="F!";break e}}Ji(p)}p=!1}p&&(i=u[0])}}return u=$r(),u.memoizedState=u.baseState=i,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zc,lastRenderedState:i},u.queue=p,u=z2.bind(null,Dt,p),p.dispatch=u,p=oo(!1),A=Ng.bind(null,Dt,!1,p.queue),p=$r(),b={state:i,dispatch:null,action:s,pending:null},p.queue=b,u=kh.bind(null,Dt,b,A,u),b.dispatch=u,p.memoizedState=s,[i,u,!1]}function ji(s){var i=yr();return Oi(i,Mt,s)}function Oi(s,i,u){if(i=jl(s,i,zc)[0],s=Wu(ti)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var p=io(i)}catch(q){throw q===xe?fe:q}else p=i;i=yr();var b=i.queue,A=b.dispatch;return u!==i.memoizedState&&(Dt.flags|=2048,Go(9,{destroy:void 0},$u.bind(null,b,u),null)),[p,A,s]}function $u(s,i){s.action=i}function Xu(s){var i=yr(),u=Mt;if(u!==null)return Oi(i,u,s);yr(),i=i.memoizedState,u=yr();var p=u.queue.dispatch;return u.memoizedState=s,[i,p,!1]}function Go(s,i,u,p){return s={tag:s,create:u,deps:p,inst:i,next:null},i=Dt.updateQueue,i===null&&(i=Bc(),Dt.updateQueue=i),u=i.lastEffect,u===null?i.lastEffect=s.next=s:(p=u.next,u.next=s,s.next=p,i.lastEffect=s),s}function Uh(){return yr().memoizedState}function Ol(s,i,u,p){var b=$r();Dt.flags|=s,b.memoizedState=Go(1|i,{destroy:void 0},u,p===void 0?null:p)}function Ll(s,i,u,p){var b=yr();p=p===void 0?null:p;var A=b.memoizedState.inst;Mt!==null&&p!==null&&sd(p,Mt.memoizedState.deps)?b.memoizedState=Go(i,A,u,p):(Dt.flags|=s,b.memoizedState=Go(1|i,A,u,p))}function E2(s,i){Ol(8390656,8,s,i)}function bg(s,i){Ll(2048,8,s,i)}function zN(s){Dt.flags|=4;var i=Dt.updateQueue;if(i===null)i=Bc(),Dt.updateQueue=i,i.events=[s];else{var u=i.events;u===null?i.events=[s]:u.push(s)}}function P2(s){var i=yr().memoizedState;return zN({ref:i,nextImpl:s}),function(){if((Un&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function T2(s,i){return Ll(4,2,s,i)}function j2(s,i){return Ll(4,4,s,i)}function O2(s,i){if(typeof i=="function"){s=s();var u=i(s);return function(){typeof u=="function"?u():i(null)}}if(i!=null)return s=s(),i.current=s,function(){i.current=null}}function L2(s,i,u){u=u!=null?u.concat([s]):null,Ll(4,4,O2.bind(null,i,s),u)}function xg(){}function R2(s,i){var u=yr();i=i===void 0?null:i;var p=u.memoizedState;return i!==null&&sd(i,p[1])?p[0]:(u.memoizedState=[s,i],s)}function D2(s,i){var u=yr();i=i===void 0?null:i;var p=u.memoizedState;if(i!==null&&sd(i,p[1]))return p[0];if(p=s(),Cs){Et(!0);try{s()}finally{Et(!1)}}return u.memoizedState=[p,i],p}function wg(s,i,u){return u===void 0||(vr&1073741824)!==0&&(bn&261930)===0?s.memoizedState=i:(s.memoizedState=u,s=My(),Dt.lanes|=s,Ml|=s,u)}function M2(s,i,u,p){return as(u,i)?u:cn.current!==null?(s=wg(s,u,p),as(s,i)||(Xr=!0),s):(vr&42)===0||(vr&1073741824)!==0&&(bn&261930)===0?(Xr=!0,s.memoizedState=u):(s=My(),Dt.lanes|=s,Ml|=s,i)}function k2(s,i,u,p,b){var A=M.p;M.p=A!==0&&8>A?A:8;var q=L.T,ae={};L.T=ae,Ng(s,!1,i,u);try{var ve=b(),je=L.S;if(je!==null&&je(ae,ve),ve!==null&&typeof ve=="object"&&typeof ve.then=="function"){var Be=J(ve,p);dd(s,i,Be,Da(s))}else dd(s,i,p,Da(s))}catch(Ge){dd(s,i,{then:function(){},status:"rejected",reason:Ge},Da())}finally{M.p=A,q!==null&&ae.types!==null&&(q.types=ae.types),L.T=q}}function HN(){}function Sg(s,i,u,p){if(s.tag!==5)throw Error(r(476));var b=F2(s).queue;k2(s,b,i,X,u===null?HN:function(){return I2(s),u(p)})}function F2(s){var i=s.memoizedState;if(i!==null)return i;i={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:X},next:null};var u={};return i.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:u},next:null},s.memoizedState=i,s=s.alternate,s!==null&&(s.memoizedState=i),i}function I2(s){var i=F2(s);i.next===null&&(i=s.alternate.memoizedState),dd(s,i.next.queue,{},Da())}function Ag(){return cs(Td)}function U2(){return yr().memoizedState}function B2(){return yr().memoizedState}function qN(s){for(var i=s.return;i!==null;){switch(i.tag){case 24:case 3:var u=Da();s=Ut(u);var p=an(i,s,u);p!==null&&(pa(p,i,u),Fn(p,i,u)),i={cache:Pl()},s.payload=i;return}i=i.return}}function GN(s,i,u){var p=Da();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Bh(s)?H2(i,u):(u=Ou(s,i,u,p),u!==null&&(pa(u,s,p),q2(u,i,p)))}function z2(s,i,u){var p=Da();dd(s,i,u,p)}function dd(s,i,u,p){var b={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Bh(s))H2(i,b);else{var A=s.alternate;if(s.lanes===0&&(A===null||A.lanes===0)&&(A=i.lastRenderedReducer,A!==null))try{var q=i.lastRenderedState,ae=A(q,u);if(b.hasEagerState=!0,b.eagerState=ae,as(ae,q))return Rc(s,i,b,0),sr===null&&Lc(),!1}catch{}finally{}if(u=Ou(s,i,b,p),u!==null)return pa(u,s,p),q2(u,i,p),!0}return!1}function Ng(s,i,u,p){if(p={lane:2,revertLane:n0(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Bh(s)){if(i)throw Error(r(479))}else i=Ou(s,u,p,2),i!==null&&pa(i,s,2)}function Bh(s){var i=s.alternate;return s===Dt||i!==null&&i===Dt}function H2(s,i){ca=Ls=!0;var u=s.pending;u===null?i.next=i:(i.next=u.next,u.next=i),s.pending=i}function q2(s,i,u){if((u&4194048)!==0){var p=i.lanes;p&=s.pendingLanes,u|=p,i.lanes=u,en(s,u)}}var hd={readContext:cs,use:Tl,useCallback:Kn,useContext:Kn,useEffect:Kn,useImperativeHandle:Kn,useLayoutEffect:Kn,useInsertionEffect:Kn,useMemo:Kn,useReducer:Kn,useRef:Kn,useState:Kn,useDebugValue:Kn,useDeferredValue:Kn,useTransition:Kn,useSyncExternalStore:Kn,useId:Kn,useHostTransitionStatus:Kn,useFormState:Kn,useActionState:Kn,useOptimistic:Kn,useMemoCache:Kn,useCacheRefresh:Kn};hd.useEffectEvent=Kn;var G2={readContext:cs,use:Tl,useCallback:function(s,i){return $r().memoizedState=[s,i===void 0?null:i],s},useContext:cs,useEffect:E2,useImperativeHandle:function(s,i,u){u=u!=null?u.concat([s]):null,Ol(4194308,4,O2.bind(null,i,s),u)},useLayoutEffect:function(s,i){return Ol(4194308,4,s,i)},useInsertionEffect:function(s,i){Ol(4,2,s,i)},useMemo:function(s,i){var u=$r();i=i===void 0?null:i;var p=s();if(Cs){Et(!0);try{s()}finally{Et(!1)}}return u.memoizedState=[p,i],p},useReducer:function(s,i,u){var p=$r();if(u!==void 0){var b=u(i);if(Cs){Et(!0);try{u(i)}finally{Et(!1)}}}else b=i;return p.memoizedState=p.baseState=b,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:b},p.queue=s,s=s.dispatch=GN.bind(null,Dt,s),[p.memoizedState,s]},useRef:function(s){var i=$r();return s={current:s},i.memoizedState=s},useState:function(s){s=oo(s);var i=s.queue,u=z2.bind(null,Dt,i);return i.dispatch=u,[s.memoizedState,u]},useDebugValue:xg,useDeferredValue:function(s,i){var u=$r();return wg(u,s,i)},useTransition:function(){var s=oo(!1);return s=k2.bind(null,Dt,s.queue,!0,!1),$r().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,i,u){var p=Dt,b=$r();if(mn){if(u===void 0)throw Error(r(407));u=u()}else{if(u=i(),sr===null)throw Error(r(349));(bn&127)!==0||Ti(p,i,u)}b.memoizedState=u;var A={value:u,getSnapshot:i};return b.queue=A,E2(cd.bind(null,p,A,s),[s]),p.flags|=2048,Go(9,{destroy:void 0},ld.bind(null,p,A,u,i),null),u},useId:function(){var s=$r(),i=sr.identifierPrefix;if(mn){var u=oa,p=ia;u=(p&~(1<<32-qt(p)-1)).toString(32)+u,i="_"+i+"R_"+u,u=Dr++,0<u&&(i+="H"+u.toString(32)),i+="_"}else u=Hu++,i="_"+i+"r_"+u.toString(32)+"_";return s.memoizedState=i},useHostTransitionStatus:Ag,useFormState:ni,useActionState:ni,useOptimistic:function(s){var i=$r();i.memoizedState=i.baseState=s;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=u,i=Ng.bind(null,Dt,!0,u),u.dispatch=i,[s,i]},useMemoCache:Ho,useCacheRefresh:function(){return $r().memoizedState=qN.bind(null,Dt)},useEffectEvent:function(s){var i=$r(),u={impl:s};return i.memoizedState=u,function(){if((Un&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},_g={readContext:cs,use:Tl,useCallback:R2,useContext:cs,useEffect:bg,useImperativeHandle:L2,useInsertionEffect:T2,useLayoutEffect:j2,useMemo:D2,useReducer:Wu,useRef:Uh,useState:function(){return Wu(ti)},useDebugValue:xg,useDeferredValue:function(s,i){var u=yr();return M2(u,Mt.memoizedState,s,i)},useTransition:function(){var s=Wu(ti)[0],i=yr().memoizedState;return[typeof s=="boolean"?s:io(s),i]},useSyncExternalStore:Yu,useId:U2,useHostTransitionStatus:Ag,useFormState:ji,useActionState:ji,useOptimistic:function(s,i){var u=yr();return Mh(u,Mt,s,i)},useMemoCache:Ho,useCacheRefresh:B2};_g.useEffectEvent=P2;var W2={readContext:cs,use:Tl,useCallback:R2,useContext:cs,useEffect:bg,useImperativeHandle:L2,useInsertionEffect:T2,useLayoutEffect:j2,useMemo:D2,useReducer:Vu,useRef:Uh,useState:function(){return Vu(ti)},useDebugValue:xg,useDeferredValue:function(s,i){var u=yr();return Mt===null?wg(u,s,i):M2(u,Mt.memoizedState,s,i)},useTransition:function(){var s=Vu(ti)[0],i=yr().memoizedState;return[typeof s=="boolean"?s:io(s),i]},useSyncExternalStore:Yu,useId:U2,useHostTransitionStatus:Ag,useFormState:Xu,useActionState:Xu,useOptimistic:function(s,i){var u=yr();return Mt!==null?Mh(u,Mt,s,i):(u.baseState=s,[s,u.queue.dispatch])},useMemoCache:Ho,useCacheRefresh:B2};W2.useEffectEvent=P2;function Cg(s,i,u,p){i=s.memoizedState,u=u(p,i),u=u==null?i:m({},i,u),s.memoizedState=u,s.lanes===0&&(s.updateQueue.baseState=u)}var Eg={enqueueSetState:function(s,i,u){s=s._reactInternals;var p=Da(),b=Ut(p);b.payload=i,u!=null&&(b.callback=u),i=an(s,b,p),i!==null&&(pa(i,s,p),Fn(i,s,p))},enqueueReplaceState:function(s,i,u){s=s._reactInternals;var p=Da(),b=Ut(p);b.tag=1,b.payload=i,u!=null&&(b.callback=u),i=an(s,b,p),i!==null&&(pa(i,s,p),Fn(i,s,p))},enqueueForceUpdate:function(s,i){s=s._reactInternals;var u=Da(),p=Ut(u);p.tag=2,i!=null&&(p.callback=i),i=an(s,p,u),i!==null&&(pa(i,s,u),Fn(i,s,u))}};function V2(s,i,u,p,b,A,q){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(p,A,q):i.prototype&&i.prototype.isPureReactComponent?!Si(u,p)||!Si(b,A):!0}function Y2(s,i,u,p){s=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,p),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,p),i.state!==s&&Eg.enqueueReplaceState(i,i.state,null)}function Hc(s,i){var u=i;if("ref"in i){u={};for(var p in i)p!=="ref"&&(u[p]=i[p])}if(s=s.defaultProps){u===i&&(u=m({},u));for(var b in s)u[b]===void 0&&(u[b]=s[b])}return u}function Q2(s){Oc(s)}function $2(s){console.error(s)}function X2(s){Oc(s)}function zh(s,i){try{var u=s.onUncaughtError;u(i.value,{componentStack:i.stack})}
vendor: 17,187 bytes, line 48
48catch(p){setTimeout(function(){throw p})}}function K2(s,i,u){try{var p=s.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function Pg(s,i,u){return u=Ut(u),u.tag=3,u.payload={element:null},u.callback=function(){zh(s,i)},u}function Z2(s){return s=Ut(s),s.tag=3,s}function J2(s,i,u,p){var b=u.type.getDerivedStateFromError;if(typeof b=="function"){var A=p.value;s.payload=function(){return b(A)},s.callback=function(){K2(i,u,p)}}var q=u.stateNode;q!==null&&typeof q.componentDidCatch=="function"&&(s.callback=function(){K2(i,u,p),typeof b!="function"&&(kl===null?kl=new Set([this]):kl.add(this));var ae=p.stack;this.componentDidCatch(p.value,{componentStack:ae!==null?ae:""})})}function WN(s,i,u,p,b){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(i=u.alternate,i!==null&&no(i,u,b,!0),u=dr.current,u!==null){switch(u.tag){case 31:case 13:return Pn===null?Jh():u.alternate===null&&Mr===0&&(Mr=3),u.flags&=-257,u.flags|=65536,u.lanes=b,p===Se?u.flags|=16384:(i=u.updateQueue,i===null?u.updateQueue=new Set([p]):i.add(p),Jg(s,p,b)),!1;case 22:return u.flags|=65536,p===Se?u.flags|=16384:(i=u.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=i):(u=i.retryQueue,u===null?i.retryQueue=new Set([p]):u.add(p)),Jg(s,p,b)),!1}throw Error(r(435,u.tag))}return Jg(s,p,b),Jh(),!1}if(mn)return i=dr.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=b,p!==Oa&&(s=Error(r(422),{cause:p}),Cl(ra(s,u)))):(p!==Oa&&(i=Error(r(423),{cause:p}),Cl(ra(i,u))),s=s.current.alternate,s.flags|=65536,b&=-b,s.lanes|=b,p=ra(p,u),b=Pg(s.stateNode,p,b),zr(s,b),Mr!==4&&(Mr=2)),!1;var A=Error(r(520),{cause:p});if(A=ra(A,u),wd===null?wd=[A]:wd.push(A),Mr!==4&&(Mr=2),i===null)return!0;p=ra(p,u),u=i;do{switch(u.tag){case 3:return u.flags|=65536,s=b&-b,u.lanes|=s,s=Pg(u.stateNode,p,s),zr(u,s),!1;case 1:if(i=u.type,A=u.stateNode,(u.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(kl===null||!kl.has(A))))return u.flags|=65536,b&=-b,u.lanes|=b,b=Z2(b),J2(b,s,u,p),zr(u,b),!1}u=u.return}while(u!==null);return!1}var Tg=Error(r(461)),Xr=!1;function Es(s,i,u,p){i.child=s===null?nn(i,null,u,p):rr(i,s.child,u,p)}function ey(s,i,u,p,b){u=u.render;var A=i.ref;if("ref"in p){var q={};for(var ae in p)ae!=="ref"&&(q[ae]=p[ae])}else q=p;return ro(i),p=ad(s,i,u,q,A,b),ae=id(),s!==null&&!Xr?(od(s,i,b),Wo(s,i,b)):(mn&&ae&&td(i),i.flags|=1,Es(s,i,p,b),i.child)}function ty(s,i,u,p,b){if(s===null){var A=u.type;return typeof A=="function"&&!Ru(A)&&A.defaultProps===void 0&&u.compare===null?(i.tag=15,i.type=A,ny(s,i,A,p,b)):(s=Al(u.type,null,p,i,i.mode,b),s.ref=i.ref,s.return=i,i.child=s)}if(A=s.child,!Fg(s,b)){var q=A.memoizedProps;if(u=u.compare,u=u!==null?u:Si,u(q,p)&&s.ref===i.ref)return Wo(s,i,b)}return i.flags|=1,s=na(A,p),s.ref=i.ref,s.return=i,i.child=s}function ny(s,i,u,p,b){if(s!==null){var A=s.memoizedProps;if(Si(A,p)&&s.ref===i.ref)if(Xr=!1,i.pendingProps=p=A,Fg(s,b))(s.flags&131072)!==0&&(Xr=!0);else return i.lanes=s.lanes,Wo(s,i,b)}return jg(s,i,u,p,b)}function ry(s,i,u,p){var b=p.children,A=s!==null?s.memoizedState:null;if(s===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((i.flags&128)!==0){if(A=A!==null?A.baseLanes|u:u,s!==null){for(p=i.child=s.child,b=0;p!==null;)b=b|p.lanes|p.childLanes,p=p.sibling;p=b&~A}else p=0,i.child=null;return sy(s,i,A,u,p)}if((u&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},s!==null&&ue(i,A!==null?A.cachePool:null),A!==null?fr(i,A):Rn(),Lr(i);else return p=i.lanes=536870912,sy(s,i,A!==null?A.baseLanes|u:u,u,p)}else A!==null?(ue(i,A.cachePool),fr(i,A),Rr(),i.memoizedState=null):(s!==null&&ue(i,null),Rn(),Rr());return Es(s,i,b,u),i.child}function pd(s,i){return s!==null&&s.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function sy(s,i,u,p,b){var A=ie();return A=A===null?null:{parent:_r._currentValue,pool:A},i.memoizedState={baseLanes:u,cachePool:A},s!==null&&ue(i,null),Rn(),Lr(i),s!==null&&no(s,i,p,!0),i.childLanes=b,null}function Hh(s,i){return i=Gh({mode:i.mode,children:i.children},s.mode),i.ref=s.ref,s.child=i,i.return=s,i}function ay(s,i,u){return rr(i,s.child,null,u),s=Hh(i,i.pendingProps),s.flags|=2,Hn(i),i.memoizedState=null,s}function VN(s,i,u){var p=i.pendingProps,b=(i.flags&128)!==0;if(i.flags&=-129,s===null){if(mn){if(p.mode==="hidden")return s=Hh(i,p),i.lanes=536870912,pd(null,s);if(In(i),(s=nr)?(s=v5(s,gr),s=s!==null&&s.data==="&"?s:null,s!==null&&(i.memoizedState={dehydrated:s,treeContext:Zi!==null?{id:ia,overflow:oa}:null,retryLane:536870912,hydrationErrors:null},u=Du(s),u.return=i,i.child=u,os=i,nr=null)):s=null,s===null)throw Ji(i);return i.lanes=536870912,null}return Hh(i,p)}var A=s.memoizedState;if(A!==null){var q=A.dehydrated;if(In(i),b)if(i.flags&256)i.flags&=-257,i=ay(s,i,u);else if(i.memoizedState!==null)i.child=s.child,i.flags|=128,i=null;else throw Error(r(558));else if(Xr||no(s,i,u,!1),b=(u&s.childLanes)!==0,Xr||b){if(p=sr,p!==null&&(q=$t(p,u),q!==0&&q!==A.retryLane))throw A.retryLane=q,Ci(s,q),pa(p,s,q),Tg;Jh(),i=ay(s,i,u)}else s=A.treeContext,nr=ri(q.nextSibling),os=i,mn=!0,_s=null,gr=!1,s!==null&&Lh(i,s),i=Hh(i,p),i.flags|=4096;return i}return s=na(s.child,{mode:p.mode,children:p.children}),s.ref=i.ref,i.child=s,s.return=i,s}function qh(s,i){var u=i.ref;if(u===null)s!==null&&s.ref!==null&&(i.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(s===null||s.ref!==u)&&(i.flags|=4194816)}}function jg(s,i,u,p,b){return ro(i),u=ad(s,i,u,p,void 0,b),p=id(),s!==null&&!Xr?(od(s,i,b),Wo(s,i,b)):(mn&&p&&td(i),i.flags|=1,Es(s,i,u,b),i.child)}function iy(s,i,u,p,b,A){return ro(i),i.updateQueue=null,u=Pi(i,p,u,b),qu(s),p=id(),s!==null&&!Xr?(od(s,i,A),Wo(s,i,A)):(mn&&p&&td(i),i.flags|=1,Es(s,i,u,A),i.child)}function oy(s,i,u,p,b){if(ro(i),i.stateNode===null){var A=is,q=u.contextType;typeof q=="object"&&q!==null&&(A=cs(q)),A=new u(p,A),i.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=Eg,i.stateNode=A,A._reactInternals=i,A=i.stateNode,A.props=p,A.state=i.memoizedState,A.refs={},st(i),q=u.contextType,A.context=typeof q=="object"&&q!==null?cs(q):is,A.state=i.memoizedState,q=u.getDerivedStateFromProps,typeof q=="function"&&(Cg(i,u,q,p),A.state=i.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(q=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),q!==A.state&&Eg.enqueueReplaceState(A,A.state,null),jr(i,p,A,b),Xn(),A.state=i.memoizedState),typeof A.componentDidMount=="function"&&(i.flags|=4194308),p=!0}else if(s===null){A=i.stateNode;var ae=i.memoizedProps,ve=Hc(u,ae);A.props=ve;var je=A.context,Be=u.contextType;q=is,typeof Be=="object"&&Be!==null&&(q=cs(Be));var Ge=u.getDerivedStateFromProps;Be=typeof Ge=="function"||typeof A.getSnapshotBeforeUpdate=="function",ae=i.pendingProps!==ae,Be||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(ae||je!==q)&&Y2(i,A,p,q),pt=!1;var Le=i.memoizedState;A.state=Le,jr(i,p,A,b),Xn(),je=i.memoizedState,ae||Le!==je||pt?(typeof Ge=="function"&&(Cg(i,u,Ge,p),je=i.memoizedState),(ve=pt||V2(i,u,ve,p,Le,je,q))?(Be||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"&&(i.flags|=4194308)):(typeof A.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=p,i.memoizedState=je),A.props=p,A.state=je,A.context=q,p=ve):(typeof A.componentDidMount=="function"&&(i.flags|=4194308),p=!1)}else{A=i.stateNode,ur(s,i),q=i.memoizedProps,Be=Hc(u,q),A.props=Be,Ge=i.pendingProps,Le=A.context,je=u.contextType,ve=is,typeof je=="object"&&je!==null&&(ve=cs(je)),ae=u.getDerivedStateFromProps,(je=typeof ae=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(q!==Ge||Le!==ve)&&Y2(i,A,p,ve),pt=!1,Le=i.memoizedState,A.state=Le,jr(i,p,A,b),Xn();var Re=i.memoizedState;q!==Ge||Le!==Re||pt||s!==null&&s.dependencies!==null&&Uu(s.dependencies)?(typeof ae=="function"&&(Cg(i,u,ae,p),Re=i.memoizedState),(Be=pt||V2(i,u,Be,p,Le,Re,ve)||s!==null&&s.dependencies!==null&&Uu(s.dependencies))?(je||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(p,Re,ve),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(p,Re,ve)),typeof A.componentDidUpdate=="function"&&(i.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof A.componentDidUpdate!="function"||q===s.memoizedProps&&Le===s.memoizedState||(i.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||q===s.memoizedProps&&Le===s.memoizedState||(i.flags|=1024),i.memoizedProps=p,i.memoizedState=Re),A.props=p,A.state=Re,A.context=ve,p=Be):(typeof A.componentDidUpdate!="function"||q===s.memoizedProps&&Le===s.memoizedState||(i.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||q===s.memoizedProps&&Le===s.memoizedState||(i.flags|=1024),p=!1)}return A=p,qh(s,i),p=(i.flags&128)!==0,A||p?(A=i.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:A.render(),i.flags|=1,s!==null&&p?(i.child=rr(i,s.child,null,b),i.child=rr(i,null,u,b)):Es(s,i,u,b),i.memoizedState=A.state,s=i.child):s=Wo(s,i,b),s}function ly(s,i,u,p){return Bo(),i.flags|=256,Es(s,i,u,p),i.child}var Og={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lg(s){return{baseLanes:s,cachePool:de()}}function Rg(s,i,u){return s=s!==null?s.childLanes&~u:0,i&&(s|=Ra),s}function cy(s,i,u){var p=i.pendingProps,b=!1,A=(i.flags&128)!==0,q;if((q=A)||(q=s!==null&&s.memoizedState===null?!1:(_n.current&2)!==0),q&&(b=!0,i.flags&=-129),q=(i.flags&32)!==0,i.flags&=-33,s===null){if(mn){if(b?Cr(i):Rr(),(s=nr)?(s=v5(s,gr),s=s!==null&&s.data!=="&"?s:null,s!==null&&(i.memoizedState={dehydrated:s,treeContext:Zi!==null?{id:ia,overflow:oa}:null,retryLane:536870912,hydrationErrors:null},u=Du(s),u.return=i,i.child=u,os=i,nr=null)):s=null,s===null)throw Ji(i);return m0(s)?i.lanes=32:i.lanes=536870912,null}var ae=p.children;return p=p.fallback,b?(Rr(),b=i.mode,ae=Gh({mode:"hidden",children:ae},b),p=Ki(p,b,u,null),ae.return=i,p.return=i,ae.sibling=p,i.child=ae,p=i.child,p.memoizedState=Lg(u),p.childLanes=Rg(s,q,u),i.memoizedState=Og,pd(null,p)):(Cr(i),Dg(i,ae))}var ve=s.memoizedState;if(ve!==null&&(ae=ve.dehydrated,ae!==null)){if(A)i.flags&256?(Cr(i),i.flags&=-257,i=Mg(s,i,u)):i.memoizedState!==null?(Rr(),i.child=s.child,i.flags|=128,i=null):(Rr(),ae=p.fallback,b=i.mode,p=Gh({mode:"visible",children:p.children},b),ae=Ki(ae,b,u,null),ae.flags|=2,p.return=i,ae.return=i,p.sibling=ae,i.child=p,rr(i,s.child,null,u),p=i.child,p.memoizedState=Lg(u),p.childLanes=Rg(s,q,u),i.memoizedState=Og,i=pd(null,p));else if(Cr(i),m0(ae)){if(q=ae.nextSibling&&ae.nextSibling.dataset,q)var je=q.dgst;q=je,p=Error(r(419)),p.stack="",p.digest=q,Cl({value:p,source:null,stack:null}),i=Mg(s,i,u)}else if(Xr||no(s,i,u,!1),q=(u&s.childLanes)!==0,Xr||q){if(q=sr,q!==null&&(p=$t(q,u),p!==0&&p!==ve.retryLane))throw ve.retryLane=p,Ci(s,p),pa(q,s,p),Tg;p0(ae)||Jh(),i=Mg(s,i,u)}else p0(ae)?(i.flags|=192,i.child=s.child,i=null):(s=ve.treeContext,nr=ri(ae.nextSibling),os=i,mn=!0,_s=null,gr=!1,s!==null&&Lh(i,s),i=Dg(i,p.children),i.flags|=4096);return i}return b?(Rr(),ae=p.fallback,b=i.mode,ve=s.child,je=ve.sibling,p=na(ve,{mode:"hidden",children:p.children}),p.subtreeFlags=ve.subtreeFlags&65011712,je!==null?ae=na(je,ae):(ae=Ki(ae,b,u,null),ae.flags|=2),ae.return=i,p.return=i,p.sibling=ae,i.child=p,pd(null,p),p=i.child,ae=s.child.memoizedState,ae===null?ae=Lg(u):(b=ae.cachePool,b!==null?(ve=_r._currentValue,b=b.parent!==ve?{parent:ve,pool:ve}:b):b=de(),ae={baseLanes:ae.baseLanes|u,cachePool:b}),p.memoizedState=ae,p.childLanes=Rg(s,q,u),i.memoizedState=Og,pd(s.child,p)):(Cr(i),u=s.child,s=u.sibling,u=na(u,{mode:"visible",children:p.children}),u.return=i,u.sibling=null,s!==null&&(q=i.deletions,q===null?(i.deletions=[s],i.flags|=16):q.push(s)),i.child=u,i.memoizedState=null,u)}function Dg(s,i){return i=Gh({mode:"visible",children:i},s.mode),i.return=s,s.child=i}function Gh(s,i){return s=gs(22,s,null,i),s.lanes=0,s}function Mg(s,i,u){return rr(i,s.child,null,u),s=Dg(i,i.pendingProps.children),s.flags|=2,i.memoizedState=null,s}function uy(s,i,u){s.lanes|=i;var p=s.alternate;p!==null&&(p.lanes|=i),El(s.return,i,u)}function kg(s,i,u,p,b,A){var q=s.memoizedState;q===null?s.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:b,treeForkCount:A}:(q.isBackwards=i,q.rendering=null,q.renderingStartTime=0,q.last=p,q.tail=u,q.tailMode=b,q.treeForkCount=A)}function fy(s,i,u){var p=i.pendingProps,b=p.revealOrder,A=p.tail;p=p.children;var q=_n.current,ae=(q&2)!==0;if(ae?(q=q&1|2,i.flags|=128):q&=1,B(_n,q),Es(s,i,p,u),p=mn?Fc:0,!ae&&s!==null&&(s.flags&128)!==0)e:for(s=i.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&uy(s,u,i);else if(s.tag===19)uy(s,u,i);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(b){case"forwards":for(u=i.child,b=null;u!==null;)s=u.alternate,s!==null&&ys(s)===null&&(b=u),u=u.sibling;u=b,u===null?(b=i.child,i.child=null):(b=u.sibling,u.sibling=null),kg(i,!1,b,u,A,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,b=i.child,i.child=null;b!==null;){if(s=b.alternate,s!==null&&ys(s)===null){i.child=b;break}s=b.sibling,b.sibling=u,u=b,b=s}kg(i,!0,u,null,A,p);break;case"together":kg(i,!1,null,null,void 0,p);break;default:i.memoizedState=null}return i.child}function Wo(s,i,u){if(s!==null&&(i.dependencies=s.dependencies),Ml|=i.lanes,(u&i.childLanes)===0)if(s!==null){if(no(s,i,u,!1),(u&i.childLanes)===0)return null}else return null;if(s!==null&&i.child!==s.child)throw Error(r(153));if(i.child!==null){for(s=i.child,u=na(s,s.pendingProps),i.child=u,u.return=i;s.sibling!==null;)s=s.sibling,u=u.sibling=na(s,s.pendingProps),u.return=i;u.sibling=null}return i.child}function Fg(s,i){return(s.lanes&i)!==0?!0:(s=s.dependencies,!!(s!==null&&Uu(s)))}function YN(s,i,u){switch(i.tag){case 3:me(i,i.stateNode.containerInfo),to(i,_r,s.memoizedState.cache),Bo();break;case 27:case 5:Ae(i);break;case 4:me(i,i.stateNode.containerInfo);break;case 10:to(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,In(i),null;break;case 13:var p=i.memoizedState;if(p!==null)return p.dehydrated!==null?(Cr(i),i.flags|=128,null):(u&i.child.childLanes)!==0?cy(s,i,u):(Cr(i),s=Wo(s,i,u),s!==null?s.sibling:null);Cr(i);break;case 19:var b=(s.flags&128)!==0;if(p=(u&i.childLanes)!==0,p||(no(s,i,u,!1),p=(u&i.childLanes)!==0),b){if(p)return fy(s,i,u);i.flags|=128}if(b=i.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),B(_n,_n.current),p)break;return null;case 22:return i.lanes=0,ry(s,i,u,i.pendingProps);case 24:to(i,_r,s.memoizedState.cache)}return Wo(s,i,u)}function dy(s,i,u){if(s!==null)if(s.memoizedProps!==i.pendingProps)Xr=!0;else{if(!Fg(s,u)&&(i.flags&128)===0)return Xr=!1,YN(s,i,u);Xr=(s.flags&131072)!==0}else Xr=!1,mn&&(i.flags&1048576)!==0&&Oh(i,Fc,i.index);switch(i.lanes=0,i.tag){case 16:e:{var p=i.pendingProps;if(s=Ee(i.elementType),i.type=s,typeof s=="function")Ru(s)?(p=Hc(s,p),i.tag=1,i=oy(null,i,s,p,u)):(i.tag=0,i=jg(null,i,s,p,u));else{if(s!=null){var b=s.$$typeof;if(b===k){i.tag=11,i=ey(null,i,s,p,u);break e}else if(b===G){i.tag=14,i=ty(null,i,s,p,u);break e}}throw i=W(s)||s,Error(r(306,i,""))}}return i;case 0:return jg(s,i,i.type,i.pendingProps,u);case 1:return p=i.type,b=Hc(p,i.pendingProps),oy(s,i,p,b,u);case 3:e:{if(me(i,i.stateNode.containerInfo),s===null)throw Error(r(387));p=i.pendingProps;var A=i.memoizedState;b=A.element,ur(s,i),jr(i,p,null,u);var q=i.memoizedState;if(p=q.cache,to(i,_r,p),p!==A.cache&&zo(i,[_r],u,!0),Xn(),p=q.element,A.isDehydrated)if(A={element:p,isDehydrated:!1,cache:q.cache},i.updateQueue.baseState=A,i.memoizedState=A,i.flags&256){i=ly(s,i,p,u);break e}else if(p!==b){b=ra(Error(r(424)),i),Cl(b),i=ly(s,i,p,u);break e}else{switch(s=i.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(nr=ri(s.firstChild),os=i,mn=!0,_s=null,gr=!0,u=nn(i,null,p,u),i.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Bo(),p===b){i=Wo(s,i,u);break e}Es(s,i,p,u)}i=i.child}return i;case 26:return qh(s,i),s===null?(u=A5(i.type,null,i.pendingProps,null))?i.memoizedState=u:mn||
vendor: 3,211 bytes, line 48
48(u=i.type,s=i.pendingProps,p=ip(oe.current).createElement(u),p[dn]=i,p[Sn]=s,Ps(p,u,s),wr(p),i.stateNode=p):i.memoizedState=A5(i.type,s.memoizedProps,i.pendingProps,s.memoizedState),null;case 27:return Ae(i),s===null&&mn&&(p=i.stateNode=x5(i.type,i.pendingProps,oe.current),os=i,gr=!0,b=nr,Bl(i.type)?(g0=b,nr=ri(p.firstChild)):nr=b),Es(s,i,i.pendingProps.children,u),qh(s,i),s===null&&(i.flags|=4194304),i.child;case 5:return s===null&&mn&&((b=p=nr)&&(p=A_(p,i.type,i.pendingProps,gr),p!==null?(i.stateNode=p,os=i,nr=ri(p.firstChild),gr=!1,b=!0):b=!1),b||Ji(i)),Ae(i),b=i.type,A=i.pendingProps,q=s!==null?s.memoizedProps:null,p=A.children,f0(b,A)?p=null:q!==null&&f0(b,q)&&(i.flags|=32),i.memoizedState!==null&&(b=ad(s,i,yg,null,null,u),Td._currentValue=b),qh(s,i),Es(s,i,p,u),i.child;case 6:return s===null&&mn&&((s=u=nr)&&(u=N_(u,i.pendingProps,gr),u!==null?(i.stateNode=u,os=i,nr=null,s=!0):s=!1),s||Ji(i)),null;case 13:return cy(s,i,u);case 4:return me(i,i.stateNode.containerInfo),p=i.pendingProps,s===null?i.child=rr(i,null,p,u):Es(s,i,p,u),i.child;case 11:return ey(s,i,i.type,i.pendingProps,u);case 7:return Es(s,i,i.pendingProps,u),i.child;case 8:return Es(s,i,i.pendingProps.children,u),i.child;case 12:return Es(s,i,i.pendingProps.children,u),i.child;case 10:return p=i.pendingProps,to(i,i.type,p.value),Es(s,i,p.children,u),i.child;case 9:return b=i.type._context,p=i.pendingProps.children,ro(i),b=cs(b),p=p(b),i.flags|=1,Es(s,i,p,u),i.child;case 14:return ty(s,i,i.type,i.pendingProps,u);case 15:return ny(s,i,i.type,i.pendingProps,u);case 19:return fy(s,i,u);case 31:return VN(s,i,u);case 22:return ry(s,i,u,i.pendingProps);case 24:return ro(i),p=cs(_r),s===null?(b=ie(),b===null&&(b=sr,A=Pl(),b.pooledCache=A,A.refCount++,A!==null&&(b.pooledCacheLanes|=u),b=A),i.memoizedState={parent:p,cache:b},st(i),to(i,_r,b)):((s.lanes&u)!==0&&(ur(s,i),jr(i,null,null,u),Xn()),b=s.memoizedState,A=i.memoizedState,b.parent!==p?(b={parent:p,cache:p},i.memoizedState=b,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=b),to(i,_r,p)):(p=A.cache,to(i,_r,p),p!==b.cache&&zo(i,[_r],u,!0))),Es(s,i,i.pendingProps.children,u),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Vo(s){s.flags|=4}function Ig(s,i,u,p,b){if((i=(s.mode&32)!==0)&&(i=!1),i){if(s.flags|=16777216,(b&335544128)===b)if(s.stateNode.complete)s.flags|=8192;else if(Uy())s.flags|=8192;else throw Me=Se,Pe}else s.flags&=-16777217}function hy(s,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!P5(i))if(Uy())s.flags|=8192;else throw Me=Se,Pe}function Wh(s,i){i!==null&&(s.flags|=4),s.flags&16384&&(i=s.tag!==22?Rt():536870912,s.lanes|=i,ef|=i)}function md(s,i){if(!mn)switch(s.tailMode){case"hidden":i=s.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?s.tail=null:u.sibling=null;break;case"collapsed":u=s.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?i||s.tail===null?s.tail=null:s.tail.sibling=null:p.sibling=null}}function hr(s){var i=s.alternate!==null&&s.alternate.child===s.child,u=0,p=0;if(i)for(var b=s.child;b!==null;)u|=b.lanes|b.childLanes,p|=b.subtreeFlags&65011712,p|=b.flags&65011712,b.return=s,b=b.
vendor: 3,618 bytes, line 48
48sibling;else for(b=s.child;b!==null;)u|=b.lanes|b.childLanes,p|=b.subtreeFlags,p|=b.flags,b.return=s,b=b.sibling;return s.subtreeFlags|=p,s.childLanes=u,i}function QN(s,i,u){var p=i.pendingProps;switch(Fu(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hr(i),null;case 1:return hr(i),null;case 3:return u=i.stateNode,p=null,s!==null&&(p=s.memoizedState.cache),i.memoizedState.cache!==p&&(i.flags|=2048),la(_r),ge(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(s===null||s.child===null)&&(ls(i)?Vo(i):s===null||s.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,rd())),hr(i),null;case 26:var b=i.type,A=i.memoizedState;return s===null?(Vo(i),A!==null?(hr(i),hy(i,A)):(hr(i),Ig(i,b,null,p,u))):A?A!==s.memoizedState?(Vo(i),hr(i),hy(i,A)):(hr(i),i.flags&=-16777217):(s=s.memoizedProps,s!==p&&Vo(i),hr(i),Ig(i,b,s,p,u)),null;case 27:if(Oe(i),u=oe.current,b=i.type,s!==null&&i.stateNode!=null)s.memoizedProps!==p&&Vo(i);else{if(!p){if(i.stateNode===null)throw Error(r(166));return hr(i),null}s=V.current,ls(i)?nd(i):(s=x5(b,p,u),i.stateNode=s,Vo(i))}return hr(i),null;case 5:if(Oe(i),b=i.type,s!==null&&i.stateNode!=null)s.memoizedProps!==p&&Vo(i);else{if(!p){if(i.stateNode===null)throw Error(r(166));return hr(i),null}if(A=V.current,ls(i))nd(i);else{var q=ip(oe.current);switch(A){case 1:A=q.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:A=q.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":A=q.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":A=q.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":A=q.createElement("div"),A.innerHTML="<script><\/script>",A=A.removeChild(A.firstChild);break;case"select":A=typeof p.is=="string"?q.createElement("select",{is:p.is}):q.createElement("select"),p.multiple?A.multiple=!0:p.size&&(A.size=p.size);break;default:A=typeof p.is=="string"?q.createElement(b,{is:p.is}):q.createElement(b)}}A[dn]=i,A[Sn]=p;e:for(q=i.child;q!==null;){if(q.tag===5||q.tag===6)A.appendChild(q.stateNode);else if(q.tag!==4&&q.tag!==27&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===i)break e;for(;q.sibling===null;){if(q.return===null||q.return===i)break e;q=q.return}q.sibling.return=q.return,q=q.sibling}i.stateNode=A;e:switch(Ps(A,b,p),b){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&Vo(i)}}return hr(i),Ig(i,i.type,s===null?null:s.memoizedProps,i.pendingProps,u),null;case 6:if(s&&i.stateNode!=null)s.memoizedProps!==p&&Vo(i);else{if(typeof p!="string"&&i.stateNode===null)throw Error(r(166));if(s=oe.current,ls(i)){if(s=i.stateNode,u=i.memoizedProps,p=null,b=os,b!==null)switch(b.tag){case 27:case 5:p=b.memoizedProps}s[dn]=i,s=!!(s.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||c5(s.nodeValue,u)),s||Ji(i,!0)}else s=ip(s).createTextNode(p),s[dn]=i,i.stateNode=s}return hr(i),null;case 31:if(u=i.memoizedState,s===null||s.memoizedState!==null){if(p=ls(i),u!==null){if(s===null){if(!p)throw Error(r(318));if(s=i.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[dn]=i}else Bo(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;hr(i),s=!1}else u=rd(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=u),s=!0;if(!s)return i.flags&256?(Hn(i),i):(Hn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return hr(i),null;case 13:if(p=i.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(b=ls(i),p!==null&&p.dehydrated!==null){if(s===null){if(!b)throw Error(r(318));
vendor: 25,324 bytes, line 48
48if(b=i.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[dn]=i}else Bo(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;hr(i),b=!1}else b=rd(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=b),b=!0;if(!b)return i.flags&256?(Hn(i),i):(Hn(i),null)}return Hn(i),(i.flags&128)!==0?(i.lanes=u,i):(u=p!==null,s=s!==null&&s.memoizedState!==null,u&&(p=i.child,b=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(b=p.alternate.memoizedState.cachePool.pool),A=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(A=p.memoizedState.cachePool.pool),A!==b&&(p.flags|=2048)),u!==s&&u&&(i.child.flags|=8192),Wh(i,i.updateQueue),hr(i),null);case 4:return ge(),s===null&&i0(i.stateNode.containerInfo),hr(i),null;case 10:return la(i.type),hr(i),null;case 19:if(P(_n),p=i.memoizedState,p===null)return hr(i),null;if(b=(i.flags&128)!==0,A=p.rendering,A===null)if(b)md(p,!1);else{if(Mr!==0||s!==null&&(s.flags&128)!==0)for(s=i.child;s!==null;){if(A=ys(s),A!==null){for(i.flags|=128,md(p,!1),s=A.updateQueue,i.updateQueue=s,Wh(i,s),i.subtreeFlags=0,s=u,u=i.child;u!==null;)Mc(u,s),u=u.sibling;return B(_n,_n.current&1|2),mn&&Qs(i,p.treeForkCount),i.child}s=s.sibling}p.tail!==null&&ct()>Xh&&(i.flags|=128,b=!0,md(p,!1),i.lanes=4194304)}else{if(!b)if(s=ys(A),s!==null){if(i.flags|=128,b=!0,s=s.updateQueue,i.updateQueue=s,Wh(i,s),md(p,!0),p.tail===null&&p.tailMode==="hidden"&&!A.alternate&&!mn)return hr(i),null}else 2*ct()-p.renderingStartTime>Xh&&u!==536870912&&(i.flags|=128,b=!0,md(p,!1),i.lanes=4194304);p.isBackwards?(A.sibling=i.child,i.child=A):(s=p.last,s!==null?s.sibling=A:i.child=A,p.last=A)}return p.tail!==null?(s=p.tail,p.rendering=s,p.tail=s.sibling,p.renderingStartTime=ct(),s.sibling=null,u=_n.current,B(_n,b?u&1|2:u&1),mn&&Qs(i,p.treeForkCount),s):(hr(i),null);case 22:case 23:return Hn(i),Hr(),p=i.memoizedState!==null,s!==null?s.memoizedState!==null!==p&&(i.flags|=8192):p&&(i.flags|=8192),p?(u&536870912)!==0&&(i.flags&128)===0&&(hr(i),i.subtreeFlags&6&&(i.flags|=8192)):hr(i),u=i.updateQueue,u!==null&&Wh(i,u.retryQueue),u=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),p=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),p!==u&&(i.flags|=2048),s!==null&&P(re),null;case 24:return u=null,s!==null&&(u=s.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),la(_r),hr(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function $N(s,i){switch(Fu(i),i.tag){case 1:return s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 3:return la(_r),ge(),s=i.flags,(s&65536)!==0&&(s&128)===0?(i.flags=s&-65537|128,i):null;case 26:case 27:case 5:return Oe(i),null;case 31:if(i.memoizedState!==null){if(Hn(i),i.alternate===null)throw Error(r(340));Bo()}return s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 13:if(Hn(i),s=i.memoizedState,s!==null&&s.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Bo()}return s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 19:return P(_n),null;case 4:return ge(),null;case 10:return la(i.type),null;case 22:case 23:return Hn(i),Hr(),s!==null&&P(re),s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 24:return la(_r),null;case 25:return null;default:return null}}function py(s,i){switch(Fu(i),i.tag){case 3:la(_r),ge();break;case 26:case 27:case 5:Oe(i);break;case 4:ge();break;case 31:i.memoizedState!==null&&Hn(i);break;case 13:Hn(i);break;case 19:P(_n);break;case 10:la(i.type);break;case 22:case 23:Hn(i),Hr(),s!==null&&P(re);break;case 24:la(_r)}}function gd(s,i){try{var u=i.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var b=p.next;u=b;do{if((u.tag&s)===s){p=void 0;var A=u.create,q=u.inst;p=A(),q.destroy=p}u=u.next}while(u!==b)}}catch(ae){Gn(i,i.return,ae)}}function Rl(s,i,u){try{var p=i.updateQueue,b=p!==null?p.lastEffect:null;if(b!==null){var A=b.next;p=A;do{if((p.tag&s)===s){var q=p.inst,ae=q.destroy;if(ae!==void 0){q.destroy=void 0,b=i;var ve=u,je=ae;try{je()}catch(Be){Gn(b,ve,Be)}}}p=p.next}while(p!==A)}}catch(Be){Gn(i,i.return,Be)}}function my(s){var i=s.updateQueue;if(i!==null){var u=s.stateNode;try{Or(i,u)}catch(p){Gn(s,s.return,p)}}}function gy(s,i,u){u.props=Hc(s.type,s.memoizedProps),u.state=s.memoizedState;try{u.componentWillUnmount()}catch(p){Gn(s,i,p)}}function vd(s,i){try{var u=s.ref;if(u!==null){switch(s.tag){case 26:case 27:case 5:var p=s.stateNode;break;case 30:p=s.stateNode;break;default:p=s.stateNode}typeof u=="function"?s.refCleanup=u(p):u.current=p}}catch(b){Gn(s,i,b)}}function lo(s,i){var u=s.ref,p=s.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(b){Gn(s,i,b)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(b){Gn(s,i,b)}else u.current=null}function vy(s){var i=s.type,u=s.memoizedProps,p=s.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(b){Gn(s,s.return,b)}}function Ug(s,i,u){try{var p=s.stateNode;v_(p,s.type,u,i),p[Sn]=i}catch(b){Gn(s,s.return,b)}}function yy(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Bl(s.type)||s.tag===4}function Bg(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||yy(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Bl(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function zg(s,i,u){var p=s.tag;if(p===5||p===6)s=s.stateNode,i?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(s,i):(i=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,i.appendChild(s),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=_a));else if(p!==4&&(p===27&&Bl(s.type)&&(u=s.stateNode,i=null),s=s.child,s!==null))for(zg(s,i,u),s=s.sibling;s!==null;)zg(s,i,u),s=s.sibling}function Vh(s,i,u){var p=s.tag;if(p===5||p===6)s=s.stateNode,i?u.insertBefore(s,i):u.appendChild(s);else if(p!==4&&(p===27&&Bl(s.type)&&(u=s.stateNode),s=s.child,s!==null))for(Vh(s,i,u),s=s.sibling;s!==null;)Vh(s,i,u),s=s.sibling}function by(s){var i=s.stateNode,u=s.memoizedProps;try{for(var p=s.type,b=i.attributes;b.length;)i.removeAttributeNode(b[0]);Ps(i,p,u),i[dn]=s,i[Sn]=u}catch(A){Gn(s,s.return,A)}}var Yo=!1,Kr=!1,Hg=!1,xy=typeof WeakSet=="function"?WeakSet:Set,bs=null;function XN(s,i){if(s=s.containerInfo,c0=hp,s=Ni(s),Za(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{u=(u=s.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var b=p.anchorOffset,A=p.focusNode;p=p.focusOffset;try{u.nodeType,A.nodeType}catch{u=null;break e}var q=0,ae=-1,ve=-1,je=0,Be=0,Ge=s,Le=null;t:for(;;){for(var Re;Ge!==u||b!==0&&Ge.nodeType!==3||(ae=q+b),Ge!==A||p!==0&&Ge.nodeType!==3||(ve=q+p),Ge.nodeType===3&&(q+=Ge.nodeValue.length),(Re=Ge.firstChild)!==null;)Le=Ge,Ge=Re;for(;;){if(Ge===s)break t;if(Le===u&&++je===b&&(ae=q),Le===A&&++Be===p&&(ve=q),(Re=Ge.nextSibling)!==null)break;Ge=Le,Le=Ge.parentNode}Ge=Re}u=ae===-1||ve===-1?null:{start:ae,end:ve}}else u=null}u=u||{start:0,end:0}}else u=null;for(u0={focusedElem:s,selectionRange:u},hp=!1,bs=i;bs!==null;)if(i=bs,s=i.child,(i.subtreeFlags&1028)!==0&&s!==null)s.return=i,bs=s;else for(;bs!==null;){switch(i=bs,A=i.alternate,s=i.flags,i.tag){case 0:if((s&4)!==0&&(s=i.updateQueue,s=s!==null?s.events:null,s!==null))for(u=0;u<s.length;u++)b=s[u],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((s&1024)!==0&&A!==null){s=void 0,u=i,b=A.memoizedProps,A=A.memoizedState,p=u.stateNode;try{var xt=Hc(u.type,b);s=p.getSnapshotBeforeUpdate(xt,A),p.__reactInternalSnapshotBeforeUpdate=s}catch(zt){Gn(u,u.return,zt)}}break;case 3:if((s&1024)!==0){if(s=i.stateNode.containerInfo,u=s.nodeType,u===9)h0(s);else if(u===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":h0(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=i.sibling,s!==null){s.return=i.return,bs=s;break}bs=i.return}}function wy(s,i,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:$o(s,u),p&4&&gd(5,u);break;case 1:if($o(s,u),p&4)if(s=u.stateNode,i===null)try{s.componentDidMount()}catch(q){Gn(u,u.return,q)}else{var b=Hc(u.type,i.memoizedProps);i=i.memoizedState;try{s.componentDidUpdate(b,i,s.__reactInternalSnapshotBeforeUpdate)}catch(q){Gn(u,u.return,q)}}p&64&&my(u),p&512&&vd(u,u.return);break;case 3:if($o(s,u),p&64&&(s=u.updateQueue,s!==null)){if(i=null,u.child!==null)switch(u.child.tag){case 27:case 5:i=u.child.stateNode;break;case 1:i=u.child.stateNode}try{Or(s,i)}catch(q){Gn(u,u.return,q)}}break;case 27:i===null&&p&4&&by(u);case 26:case 5:$o(s,u),i===null&&p&4&&vy(u),p&512&&vd(u,u.return);break;case 12:$o(s,u);break;case 31:$o(s,u),p&4&&Ny(s,u);break;case 13:$o(s,u),p&4&&_y(s,u),p&64&&(s=u.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(u=a_.bind(null,u),__(s,u))));break;case 22:if(p=u.memoizedState!==null||Yo,!p){i=i!==null&&i.memoizedState!==null||Kr,b=Yo;var A=Kr;Yo=p,(Kr=i)&&!A?Xo(s,u,(u.subtreeFlags&8772)!==0):$o(s,u),Yo=b,Kr=A}break;case 30:break;default:$o(s,u)}}function Sy(s){var i=s.alternate;i!==null&&(s.alternate=null,Sy(i)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(i=s.stateNode,i!==null&&za(i)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var br=null,ua=!1;function Qo(s,i,u){for(u=u.child;u!==null;)Ay(s,i,u),u=u.sibling}function Ay(s,i,u){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Ft,u)}catch{}switch(u.tag){case 26:Kr||lo(u,i),Qo(s,i,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Kr||lo(u,i);var p=br,b=ua;Bl(u.type)&&(br=u.stateNode,ua=!1),Qo(s,i,u),Cd(u.stateNode),br=p,ua=b;break;case 5:Kr||lo(u,i);case 6:if(p=br,b=ua,br=null,Qo(s,i,u),br=p,ua=b,br!==null)if(ua)try{(br.nodeType===9?br.body:br.nodeName==="HTML"?br.ownerDocument.body:br).removeChild(u.stateNode)}catch(A){Gn(u,i,A)}else try{br.removeChild(u.stateNode)}catch(A){Gn(u,i,A)}break;case 18:br!==null&&(ua?(s=br,m5(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,u.stateNode),cf(s)):m5(br,u.stateNode));break;case 4:p=br,b=ua,br=u.stateNode.containerInfo,ua=!0,Qo(s,i,u),br=p,ua=b;break;case 0:case 11:case 14:case 15:Rl(2,u,i),Kr||Rl(4,u,i),Qo(s,i,u);break;case 1:Kr||(lo(u,i),p=u.stateNode,typeof p.componentWillUnmount=="function"&&gy(u,i,p)),Qo(s,i,u);break;case 21:Qo(s,i,u);break;case 22:Kr=(p=Kr)||u.memoizedState!==null,Qo(s,i,u),Kr=p;break;default:Qo(s,i,u)}}function Ny(s,i){if(i.memoizedState===null&&(s=i.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{cf(s)}catch(u){Gn(i,i.return,u)}}}function _y(s,i){if(i.memoizedState===null&&(s=i.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{cf(s)}catch(u){Gn(i,i.return,u)}}function KN(s){switch(s.tag){case 31:case 13:case 19:var i=s.stateNode;return i===null&&(i=s.stateNode=new xy),i;case 22:return s=s.stateNode,i=s._retryCache,i===null&&(i=s._retryCache=new xy),i;default:throw Error(r(435,s.tag))}}function Yh(s,i){var u=KN(s);i.forEach(function(p){if(!u.has(p)){u.add(p);var b=i_.bind(null,s,p);p.then(b,b)}})}function fa(s,i){var u=i.deletions;if(u!==null)for(var p=0;p<u.length;p++){var b=u[p],A=s,q=i,ae=q;e:for(;ae!==null;){switch(ae.tag){case 27:if(Bl(ae.type)){br=ae.stateNode,ua=!1;break e}break;case 5:br=ae.stateNode,ua=!1;break e;case 3:case 4:br=ae.stateNode.containerInfo,ua=!0;break e}ae=ae.return}if(br===null)throw Error(r(160));Ay(A,q,b),br=null,ua=!1,A=b.alternate,A!==null&&(A.return=null),b.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Cy(i,s),i=i.sibling}var Li=null;function Cy(s,i){var u=s.alternate,p=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:fa(i,s),da(s),p&4&&(Rl(3,s,s.return),gd(3,s),Rl(5,s,s.return));break;case 1:fa(i,s),da(s),p&512&&(Kr||u===null||lo(u,u.return)),p&64&&Yo&&(s=s.updateQueue,s!==null&&(p=s.callbacks,p!==null&&(u=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var b=Li;if(fa(i,s),da(s),p&512&&(Kr||u===null||lo(u,u.return)),p&4){var A=u!==null?u.memoizedState:null;if(p=s.memoizedState,u===null)if(p===null)if(s.stateNode===null){e:{p=s.type,u=s.memoizedProps,b=b.ownerDocument||b;t:switch(p){case"title":A=b.getElementsByTagName("title")[0],(!A||A[ns]||A[dn]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=b.createElement(p),b.head.insertBefore(A,b.querySelector("head > title"))),Ps(A,p,u),A[dn]=s,wr(A),p=A;break e;case"link":var q=C5("link","href",b).get(p+(u.href||""));if(q){for(var ae=0;ae<q.length;ae++)if(A=q[ae],A.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&A.getAttribute("rel")===(u.rel==null?null:u.rel)&&A.getAttribute("title")===(u.title==null?null:u.title)&&A.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){q.splice(ae,1);break t}}A=b.createElement(p),Ps(A,p,u),b.head.appendChild(A);break;case"meta":if(q=C5("meta","content",b).get(p+(u.content||""))){for(ae=0;ae<q.length;ae++)if(A=q[ae],A.getAttribute("content")===(u.content==null?null:""+u.content)&&A.getAttribute("name")===(u.name==null?null:u.name)&&A.getAttribute("property")===(u.property==null?null:u.property)&&A.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&A.getAttribute("charset")===(u.charSet==null?null:u.charSet)){q.splice(ae,1);break t}}A=b.createElement(p),Ps(A,p,u),b.head.appendChild(A);break;default:throw Error(r(468,p))}A[dn]=s,wr(A),p=A}s.stateNode=p}else E5(b,s.type,s.stateNode);else s.stateNode=_5(b,p,s.memoizedProps);else A!==p?(A===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):A.count--,p===null?E5(b,s.type,s.stateNode):_5(b,p,s.memoizedProps)):p===null&&s.stateNode!==null&&Ug(s,s.memoizedProps,u.memoizedProps)}break;case 27:fa(i,s),da(s),p&512&&(Kr||u===null||lo(u,u.return)),u!==null&&p&4&&Ug(s,s.memoizedProps,u.memoizedProps);break;case 5:if(fa(i,s),da(s),p&512&&(Kr||u===null||lo(u,u.return)),s.flags&32){b=s.stateNode;try{Na(b,"")}catch(xt){Gn(s,s.return,xt)}}p&4&&s.stateNode!=null&&(b=s.memoizedProps,Ug(s,b,u!==null?u.memoizedProps:b)),p&1024&&(Hg=!0);break;case 6:if(fa(i,s),da(s),p&4){if(s.stateNode===null)throw Error(r(162));p=s.memoizedProps,u=s.stateNode;try{u.nodeValue=p}catch(xt){Gn(s,s.return,xt)}}break;case 3:if(cp=null,b=Li,Li=op(i.containerInfo),fa(i,s),Li=b,da(s),p&4&&u!==null&&u.memoizedState.isDehydrated)try{cf(i.containerInfo)}catch(xt){Gn(s,s.return,xt)}Hg&&(Hg=!1,Ey(s));break;case 4:p=Li,Li=op(s.stateNode.containerInfo),fa(i,s),da(s),Li=p;break;case 12:fa(i,s),da(s);break;case 31:fa(i,s),da(s),p&4&&(p=s.updateQueue,p!==null&&(s.updateQueue=null,Yh(s,p)));break;case 13:fa(i,s),da(s),s.child.flags&8192&&s.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&($h=ct()),p&4&&(p=s.updateQueue,p!==null&&(s.updateQueue=null,Yh(s,p)));break;case 22:b=s.memoizedState!==null;var ve=u!==null&&u.memoizedState!==null,je=Yo,Be=Kr;if(Yo=je||b,Kr=Be||ve,fa(i,s),Kr=Be,Yo=je,da(s),p&8192)e:for(i=s.stateNode,i._visibility=b?i._visibility&-2:i._visibility|1,b&&(u===null||ve||Yo||Kr||qc(s)),u=null,i=s;;){if(i.tag===5||i.tag===26){if(u===null){ve=u=i;try{if(A=ve.stateNode,b)q=A.style,typeof q.setProperty=="function"?q.setProperty("display","none","important"):q.display="none";else{ae=ve.stateNode;var Ge=ve.memoizedProps.style,Le=Ge!=null&&Ge.hasOwnProperty("display")?Ge.display:null;ae.style.display=Le==null||typeof Le=="boolean"?"":(""+Le).trim()}}catch(xt){Gn(ve,ve.return,xt)}}}else if(i.tag===6){if(u===null){ve=i;try{ve.stateNode.nodeValue=b?"":ve.memoizedProps}catch(xt){Gn(ve,ve.return,xt)}}}else if(i.tag===18){if(u===null){ve=i;try{var Re=ve.stateNode;b?g5(Re,!0):g5(ve.stateNode,!1)}catch(xt){Gn(ve,ve.return,xt)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===s)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;u===i&&(u=null),i=i.return}u===i&&(u=null),i.sibling.return=i.return,i=i.sibling}p&4&&(p=s.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,Yh(s,u))));break;case 19:fa(i,s),da(s),p&4&&(p=s.updateQueue,p!==null&&(s.updateQueue=null,Yh(s,p)));break;case 30:break;case 21:break;default:fa(i,s),da(s)}}function da(s){var i=s.flags;if(i&2){try{for(var u,p=s.return;p!==null;){if(yy(p)){u=p;break}p=p.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var b=u.stateNode,A=Bg(s);Vh(s,A,b);break;case 5:var q=u.stateNode;u.flags&32&&(Na(q,""),u.flags&=-33);var ae=Bg(s);Vh(s,ae,q);break;case 3:case 4:var ve=u.stateNode.containerInfo,je=Bg(s);zg(s,je,ve);break;default:throw Error(r(161))}}catch(Be){Gn(s,s.return,Be)}s.flags&=-3}i&4096&&(s.flags&=-4097)}function Ey(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var i=s;Ey(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),s=s.sibling}}function $o(s,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)wy(s,i.alternate,i),i=i.sibling}function qc(s){for(s=s.child;s!==null;){var i=s;switch(i.tag){case 0:case 11:case 14:case 15:Rl(4,i,i.return),qc(i);break;case 1:lo(i,i.return);var u=i.stateNode;typeof u.componentWillUnmount=="function"&&gy(i,i.return,u),qc(i);break;case 27:Cd(i.stateNode);case 26:case 5:lo(i,i.return),qc(i);break;case 22:i.memoizedState===null&&qc(i);break;case 30:qc(i);break;default:qc(i)}s=s.sibling}}function Xo(s,i,u){for(u=u&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var p=i.alternate,b=s,A=i,q=A.flags;switch(A.tag){case 0:case 11:case 15:Xo(b,A,u),gd(4,A);break;case 1:if(Xo(b,A,u),p=A,b=p.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(je){Gn(p,p.return,je)}if(p=A,b=p.updateQueue,b!==null){var ae=p.stateNode;try{var ve=b.shared.hiddenCallbacks;if(ve!==null)for(b.shared.hiddenCallbacks=null,b=0;b<ve.length;b++)vs(ve[b],ae)}catch(je){Gn(p,p.return,je)}}u&&q&64&&my(A),vd(A,A.return);break;case 27:by(A);case 26:case 5:Xo(b,A,u),u&&p===null&&q&4&&vy(A),vd(A,A.return);break;case 12:Xo(b,A,u);break;case 31:Xo(b,A,u),u&&q&4&&Ny(b,A);break;case 13:Xo(b,A,u),u&&q&4&&_y(b,A);break;case 22:A.memoizedState===null&&Xo(b,A,u),vd(A,A.return);break;case 30:break;default:Xo(b,A,u)}i=i.sibling}}function qg(s,i){var u=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==u&&(s!=null&&s.refCount++,u!=null&&Ic(u))}function Gg(s,i){s=null,i.alternate!==null&&(s=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==s&&(i.refCount++,s!=null&&Ic(s))}function Ri(s,i,u,p){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Py(s,i,u,p),i=i.sibling}function Py(s,i,u,p){var b=i.flags;switch(i.tag){case 0:case 11:case 15:Ri(s,i,u,p),b&2048&&gd(9,i);break;case 1:Ri(s,i,u,p);break;case 3:Ri(s,i,u,p),b&2048&&(s=null,i.alternate!==null&&(s=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==s&&(i.refCount++,s!=null&&Ic(s)));break;case 12:if(b&2048){Ri(s,i,u,p),s=i.stateNode;try{var A=i.memoizedProps,q=A.id,ae=A.onPostCommit;typeof ae=="function"&&ae(q,i.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(ve){Gn(i,i.return,ve)}}else Ri(s,i,u,p);break;case 31:Ri(s,i,u,p);break;case 13:Ri(s,i,u,p);break;case 23:break;case 22:A=i.stateNode,q=i.alternate,i.memoizedState!==null?A._visibility&2?Ri(s,i,u,p):yd(s,i):A._visibility&2?Ri(s,i,u,p):(A._visibility|=2,Ku(s,i,u,p,(i.subtreeFlags&10256)!==0||!1)),b&2048&&qg(q,i);break;case 24:Ri(s,i,u,p),b&2048&&Gg(i.alternate,i);break;default:Ri(s,i,u,p)}}function Ku(s,i,u,p,b){for(b=b&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var A=s,q=i,ae=u,ve=p,je=q.flags;switch(q.tag){case 0:case 11:case 15:Ku(A,q,ae,ve,b),gd(8,q);break;case 23:break;case 22:var Be=q.stateNode;q.memoizedState!==null?Be._visibility&2?Ku(A,q,ae,ve,b):yd(A,q):(Be._visibility|=2,Ku(A,q,ae,ve,b)),b&&je&2048&&qg(q.alternate,q);break;case 24:Ku(A,q,ae,ve,b),b&&je&2048&&Gg(q.alternate,q);break;default:Ku(A,q,ae,ve,b)}i=i.sibling}}function yd(s,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var u=s,p=i,b=p.flags;switch(p.tag){case 22:yd(u,p),b&2048&&qg(p.alternate,p);break;case 24:yd(u,p),b&2048&&Gg(p.alternate,p);break;default:yd(u,p)}i=i.sibling}}var bd=8192;function Zu(s,i,u){if(s.subtreeFlags&bd)for(s=s.child;s!==null;)Ty(s,i,u),s=s.sibling}function Ty(s,i,u){switch(s.tag){case 26:Zu(s,i,u),s.flags&bd&&s.memoizedState!==null&&F_(u,Li,s.memoizedState,s.memoizedProps);break;case 5:Zu(s,i,u);break;case 3:case 4:var p=Li;Li=op(s.stateNode.containerInfo),Zu(s,i,u),Li=p;break;case 22:s.memoizedState===null&&(p=s.alternate,p!==null&&p.memoizedState!==null?(p=bd,bd=16777216,Zu(s,i,u),bd=p):Zu(s,i,u));break;default:Zu(s,i,u)}}function jy(s){var i=s.alternate;if(i!==null&&(s=i.child,s!==null)){i.child=null;do i=s.sibling,s.sibling=null,s=i;while(s!==null)}}function xd(s){var i=s.deletions;if((s.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var p=i[u];bs=p,Ly(p,s)}jy(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Oy(s),s=s.sibling}function Oy(s){switch(s.tag){case 0:case 11:case 15:xd(s),s.flags&2048&&Rl(9,s,s.return);break;case 3:xd(s);break;case 12:xd(s);break;case 22:var i=s.stateNode;s.memoizedState!==null&&i._visibility&2&&(s.return===null||s.return.tag!==13)?(i._visibility&=-3,Qh(s)):xd(s);break;default:xd(s)}}function Qh(s){var i=s.deletions;if((s.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var p=i[u];bs=p,Ly(p,s)}jy(s)}for(s=s.child;s!==null;){switch(i=s,i.tag){case 0:case 11:case 15:Rl(8,i,i.return),Qh(i);break;case 22:u=i.stateNode,u._visibility&2&&(u._visibility&=-3,Qh(i));break;default:Qh(i)}s=s.sibling}}function Ly(s,i){for(;bs!==null;){var u=bs;switch(u.tag){case 0:case 11:case 15:Rl(8,u,i);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Ic(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,bs=p;else e:for(u=s;bs!==null;){p=bs;var b=p.sibling,A=p.return;if(Sy(p),p===u){bs=null;break e}if(b!==null){b.return=A,bs=b;break e}bs=A}}}var ZN={getCacheForType:function(s){var i=cs(_r),u=i.data.get(s);return u===void 0&&(u=s(),i.data.set(s,u)),u},cacheSignal:function(){return cs(_r).controller.signal}},JN=typeof WeakMap=="function"?WeakMap:Map,Un=0,sr=null,gn=null,bn=0,qn=0,La=null,Dl=!1,Ju=!1,Wg=!1,Ko=0,Mr=0,Ml=0,Gc=0,Vg=0,Ra=0,ef=0,wd=null,ha=null,Yg=!1,$h=0,Ry=0,Xh=1/0,Kh=null,kl=null,fs=0,Fl=null,tf=null,Zo=0,Qg=0,$g=null,Dy=null,Sd=0,Xg=null;function Da(){return(Un&2)!==0&&bn!==0?bn&-bn:L.T!==null?n0():jn()}function My(){if(Ra===0)if((bn&536870912)===0||mn){var s=wn;wn<<=1,(wn&3932160)===0&&(wn=262144),Ra=s}else Ra=536870912;return s=dr.current,s!==null&&(s.flags|=32),Ra}function pa(s,i,u){(s===sr&&(qn===2||qn===9)||s.cancelPendingCommit!==null)&&(nf(s,0),Il(s,bn,Ra,!1)),Ke(s,u),((Un&2)===0||s!==sr)&&(s===sr&&((Un&2)===0&&(Gc|=u),Mr===4&&Il(s,bn,Ra,!1)),co(s))}function ky(s,i,u){if((Un&6)!==0)throw Error(r(327));var p=!u&&(i&127)===0&&(i&s.expiredLanes)===0||at(s,i),b=p?n_(s,i):Zg(s,i,!0),A=p;do{if(b===0){Ju&&!p&&Il(s,i,0,!1);break}else{if(u=s.current.alternate,A&&!e_(u)){b=Zg(s,i,!1),A=!1;continue}if(b===2){if(A=i,s.errorRecoveryDisabledLanes&A)var q=0;else q=s.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){i=q;e:{var ae=s;b=wd;var ve=ae.current.memoizedState.isDehydrated;if(ve&&(nf(ae,q).flags|=256),q=Zg(ae,q,!1),q!==2){if(Wg&&!ve){ae.errorRecoveryDisabledLanes|=A,Gc|=A,b=4;break e}A=ha,ha=b,A!==null&&(ha===null?ha=A:ha.push.apply(ha,A))}b=q}if(A=!1,b!==2)continue}}if(b===1){nf(s,0),Il(s,i,0,!0);break}e:{switch(p=s,A=b,A){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Il(p,i,Ra,!Dl);break e;case 2:ha=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(b=$h+300-ct(),10<b)){if(Il(p,i,Ra,!Dl),Ie(p,0,!0)!==0)break e;Zo=i,p.timeoutHandle=h5(Fy.bind(null,p,u,ha,Kh,Yg,i,Ra,Gc,ef,Dl,A,"Throttled",-0,0),b);break e}Fy(p,u,ha,Kh,Yg,i,Ra,Gc,ef,Dl,A,null,-0,0)}}break}while(!0);co(s)}function Fy(s,i,u,p,b,A,q,ae,ve,je,Be,Ge,Le,Re){if(s.timeoutHandle=-1,Ge=i.subtreeFlags,Ge&8192||(Ge&16785408)===16785408){Ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_a},Ty(i,A,Ge);var xt=(A&62914560)===A?$h-ct():(A&4194048)===A?Ry-ct():0;if(xt=I_(Ge,xt),xt!==null){Zo=A,s.cancelPendingCommit=xt(Wy.bind(null,s,i,A,u,p,b,q,ae,ve,Be,Ge,null,Le,Re)),Il(s,A,q,!je);return}}Wy(s,i,A,u,p,b,q,ae,ve)}function e_(s){for(var i=s;;){var u=i.tag;if((u===0||u===11||u===15)&&i.flags&16384&&(u=i.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var b=u[p],A=b.getSnapshot;b=b.value;try{if(!as(A(),b))return!1}catch{return!1}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return!0;
vendor: 13,258 bytes, line 48
48i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Il(s,i,u,p){i&=~Vg,i&=~Gc,s.suspendedLanes|=i,s.pingedLanes&=~i,p&&(s.warmLanes|=i),p=s.expirationTimes;for(var b=i;0<b;){var A=31-qt(b),q=1<<A;p[A]=-1,b&=~q}u!==0&&on(s,u,i)}function Zh(){return(Un&6)===0?(Ad(0),!1):!0}function Kg(){if(gn!==null){if(qn===0)var s=gn.return;else s=gn,ei=eo=null,Gu(s),We=null,wt=0,s=gn;for(;s!==null;)py(s.alternate,s),s=s.return;gn=null}}function nf(s,i){var u=s.timeoutHandle;u!==-1&&(s.timeoutHandle=-1,x_(u)),u=s.cancelPendingCommit,u!==null&&(s.cancelPendingCommit=null,u()),Zo=0,Kg(),sr=s,gn=u=na(s.current,null),bn=i,qn=0,La=null,Dl=!1,Ju=at(s,i),Wg=!1,ef=Ra=Vg=Gc=Ml=Mr=0,ha=wd=null,Yg=!1,(i&8)!==0&&(i|=i&32);var p=s.entangledLanes;if(p!==0)for(s=s.entanglements,p&=i;0<p;){var b=31-qt(p),A=1<<b;i|=s[b],p&=~A}return Ko=i,Lc(),u}function Iy(s,i){Dt=null,L.H=hd,i===xe||i===fe?(i=He(),qn=3):i===Pe?(i=He(),qn=4):qn=i===Tg?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,La=i,gn===null&&(Mr=1,zh(s,ra(i,s.current)))}function Uy(){var s=dr.current;return s===null?!0:(bn&4194048)===bn?Pn===null:(bn&62914560)===bn||(bn&536870912)!==0?s===Pn:!1}function By(){var s=L.H;return L.H=hd,s===null?hd:s}function zy(){var s=L.A;return L.A=ZN,s}function Jh(){Mr=4,Dl||(bn&4194048)!==bn&&dr.current!==null||(Ju=!0),(Ml&134217727)===0&&(Gc&134217727)===0||sr===null||Il(sr,bn,Ra,!1)}function Zg(s,i,u){var p=Un;Un|=2;var b=By(),A=zy();(sr!==s||bn!==i)&&(Kh=null,nf(s,i)),i=!1;var q=Mr;e:do try{if(qn!==0&&gn!==null){var ae=gn,ve=La;switch(qn){case 8:Kg(),q=6;break e;case 3:case 2:case 9:case 6:dr.current===null&&(i=!0);var je=qn;if(qn=0,La=null,rf(s,ae,ve,je),u&&Ju){q=0;break e}break;default:je=qn,qn=0,La=null,rf(s,ae,ve,je)}}t_(),q=Mr;break}catch(Be){Iy(s,Be)}while(!0);return i&&s.shellSuspendCounter++,ei=eo=null,Un=p,L.H=b,L.A=A,gn===null&&(sr=null,bn=0,Lc()),q}function t_(){for(;gn!==null;)Hy(gn)}function n_(s,i){var u=Un;Un|=2;var p=By(),b=zy();sr!==s||bn!==i?(Kh=null,Xh=ct()+500,nf(s,i)):Ju=at(s,i);e:do try{if(qn!==0&&gn!==null){i=gn;var A=La;t:switch(qn){case 1:qn=0,La=null,rf(s,i,A,1);break;case 2:case 9:if(Ce(A)){qn=0,La=null,qy(i);break}i=function(){qn!==2&&qn!==9||sr!==s||(qn=7),co(s)},A.then(i,i);break e;case 3:qn=7;break e;case 4:qn=5;break e;case 7:Ce(A)?(qn=0,La=null,qy(i)):(qn=0,La=null,rf(s,i,A,7));break;case 5:var q=null;switch(gn.tag){case 26:q=gn.memoizedState;case 5:case 27:var ae=gn;if(q?P5(q):ae.stateNode.complete){qn=0,La=null;var ve=ae.sibling;if(ve!==null)gn=ve;else{var je=ae.return;je!==null?(gn=je,ep(je)):gn=null}break t}}qn=0,La=null,rf(s,i,A,5);break;case 6:qn=0,La=null,rf(s,i,A,6);break;case 8:Kg(),Mr=6;break e;default:throw Error(r(462))}}r_();break}catch(Be){Iy(s,Be)}while(!0);return ei=eo=null,L.H=p,L.A=b,Un=u,gn!==null?0:(sr=null,bn=0,Lc(),Mr)}function r_(){for(;gn!==null&&!nt();)Hy(gn)}function Hy(s){var i=dy(s.alternate,s,Ko);s.memoizedProps=s.pendingProps,i===null?ep(s):gn=i}function qy(s){var i=s,u=i.alternate;switch(i.tag){case 15:case 0:i=iy(u,i,i.pendingProps,i.type,void 0,bn);break;case 11:i=iy(u,i,i.pendingProps,i.type.render,i.ref,bn);break;case 5:Gu(i);default:py(u,i),i=gn=Mc(i,Ko),i=dy(u,i,Ko)}s.memoizedProps=s.pendingProps,i===null?ep(s):gn=i}function rf(s,i,u,p){ei=eo=null,Gu(i),We=null,wt=0;var b=i.return;try{if(WN(s,b,i,u,bn)){Mr=1,zh(s,ra(u,s.current)),gn=null;return}}catch(A){if(b!==null)throw gn=b,A;Mr=1,zh(s,ra(u,s.current)),gn=null;return}i.flags&32768?(mn||p===1?s=!0:Ju||(bn&536870912)!==0?s=!1:(Dl=s=!0,(p===2||p===9||p===3||p===6)&&(p=dr.current,p!==null&&p.tag===13&&(p.flags|=16384))),Gy(i,s)):ep(i)}function ep(s){var i=s;do{if((i.flags&32768)!==0){Gy(i,Dl);return}s=i.return;var u=QN(i.alternate,i,Ko);if(u!==null){gn=u;return}if(i=i.sibling,i!==null){gn=i;return}gn=i=s}while(i!==null);Mr===0&&(Mr=5)}function Gy(s,i){do{var u=$N(s.alternate,s);if(u!==null){u.flags&=32767,gn=u;return}if(u=s.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!i&&(s=s.sibling,s!==null)){gn=s;return}gn=s=u}while(s!==null);Mr=6,gn=null}function Wy(s,i,u,p,b,A,q,ae,ve){s.cancelPendingCommit=null;do tp();while(fs!==0);if((Un&6)!==0)throw Error(r(327));if(i!==null){if(i===s.current)throw Error(r(177));if(A=i.lanes|i.childLanes,A|=ju,Gt(s,u,A,q,ae,ve),s===sr&&(gn=sr=null,bn=0),tf=i,Fl=s,Zo=u,Qg=A,$g=b,Dy=p,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,o_(vt,function(){return Xy(),null})):(s.callbackNode=null,s.callbackPriority=0),p=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||p){p=L.T,L.T=null,b=M.p,M.p=2,q=Un,Un|=4;try{XN(s,i,u)}finally{Un=q,M.p=b,L.T=p}}fs=1,Vy(),Yy(),Qy()}}function Vy(){if(fs===1){fs=0;var s=Fl,i=tf,u=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||u){u=L.T,L.T=null;var p=M.p;M.p=2;var b=Un;Un|=4;try{Cy(i,s);var A=u0,q=Ni(s.containerInfo),ae=A.focusedElem,ve=A.selectionRange;if(q!==ae&&ae&&ae.ownerDocument&&Ai(ae.ownerDocument.documentElement,ae)){if(ve!==null&&Za(ae)){var je=ve.start,Be=ve.end;if(Be===void 0&&(Be=je),"selectionStart"in ae)ae.selectionStart=je,ae.selectionEnd=Math.min(Be,ae.value.length);else{var Ge=ae.ownerDocument||document,Le=Ge&&Ge.defaultView||window;if(Le.getSelection){var Re=Le.getSelection(),xt=ae.textContent.length,zt=Math.min(ve.start,xt),Jn=ve.end===void 0?zt:Math.min(ve.end,xt);!Re.extend&&zt>Jn&&(q=Jn,Jn=zt,zt=q);var _e=Sl(ae,zt),we=Sl(ae,Jn);if(_e&&we&&(Re.rangeCount!==1||Re.anchorNode!==_e.node||Re.anchorOffset!==_e.offset||Re.focusNode!==we.node||Re.focusOffset!==we.offset)){var Te=Ge.createRange();Te.setStart(_e.node,_e.offset),Re.removeAllRanges(),zt>Jn?(Re.addRange(Te),Re.extend(we.node,we.offset)):(Te.setEnd(we.node,we.offset),Re.addRange(Te))}}}}for(Ge=[],Re=ae;Re=Re.parentNode;)Re.nodeType===1&&Ge.push({element:Re,left:Re.scrollLeft,top:Re.scrollTop});for(typeof ae.focus=="function"&&ae.focus(),ae=0;ae<Ge.length;ae++){var qe=Ge[ae];qe.element.scrollLeft=qe.left,qe.element.scrollTop=qe.top}}hp=!!c0,u0=c0=null}finally{Un=b,M.p=p,L.T=u}}s.current=i,fs=2}}function Yy(){if(fs===2){fs=0;var s=Fl,i=tf,u=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||u){u=L.T,L.T=null;var p=M.p;M.p=2;var b=Un;Un|=4;try{wy(s,i.alternate,i)}finally{Un=b,M.p=p,L.T=u}}fs=3}}function Qy(){if(fs===4||fs===3){fs=0,tt();var s=Fl,i=tf,u=Zo,p=Dy;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?fs=5:(fs=0,tf=Fl=null,$y(s,s.pendingLanes));var b=s.pendingLanes;if(b===0&&(kl=null),fn(u),i=i.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(Ft,i,void 0,(i.current.flags&128)===128)}catch{}if(p!==null){i=L.T,b=M.p,M.p=2,L.T=null;try{for(var A=s.onRecoverableError,q=0;q<p.length;q++){var ae=p[q];A(ae.value,{componentStack:ae.stack})}}finally{L.T=i,M.p=b}}(Zo&3)!==0&&tp(),co(s),b=s.pendingLanes,(u&261930)!==0&&(b&42)!==0?s===Xg?Sd++:(Sd=0,Xg=s):Sd=0,Ad(0)}}function $y(s,i){(s.pooledCacheLanes&=i)===0&&(i=s.pooledCache,i!=null&&(s.pooledCache=null,Ic(i)))}function tp(){return Vy(),Yy(),Qy(),Xy()}function Xy(){if(fs!==5)return!1;var s=Fl,i=Qg;Qg=0;var u=fn(Zo),p=L.T,b=M.p;try{M.p=32>u?32:u,L.T=null,u=$g,$g=null;var A=Fl,q=Zo;if(fs=0,tf=Fl=null,Zo=0,(Un&6)!==0)throw Error(r(331));var ae=Un;if(Un|=4,Oy(A.current),Py(A,A.current,q,u),Un=ae,Ad(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(Ft,A)}catch{}return!0}finally{M.p=b,L.T=p,$y(s,i)}}function Ky(s,i,u){i=ra(u,i),i=Pg(s.stateNode,i,2),s=an(s,i,2),s!==null&&(Ke(s,2),co(s))}function Gn(s,i,u){if(s.tag===3)Ky(s,s,u);else for(;i!==null;){if(i.tag===3){Ky(i,s,u);break}else if(i.tag===1){var p=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(kl===null||!kl.has(p))){s=ra(u,s),u=Z2(2),p=an(i,u,2),p!==null&&(J2(u,p,i,s),Ke(p,2),co(p));break}}i=i.return}}function Jg(s,i,u){var p=s.pingCache;if(p===null){p=s.pingCache=new JN;var b=new Set;p.set(i,b)}else b=p.get(i),b===void 0&&(b=new Set,p.set(i,b));b.has(u)||(Wg=!0,b.add(u),s=s_.bind(null,s,i,u),i.then(s,s))}function s_(s,i,u){var p=s.pingCache;p!==null&&p.delete(i),s.pingedLanes|=s.suspendedLanes&u,s.warmLanes&=~u,sr===s&&(bn&u)===u&&(Mr===4||Mr===3&&(bn&62914560)===bn&&300>ct()-$h?(Un&2)===0&&nf(s,0):Vg|=u,ef===bn&&(ef=0)),co(s)}function Zy(s,i){i===0&&(i=Rt()),s=Ci(s,i),s!==null&&(Ke(s,i),co(s))}function a_(s){var i=s.memoizedState,u=0;i!==null&&(u=i.retryLane),Zy(s,u)}function i_(s,i){var u=0;switch(s.tag){case 31:case 13:var p=s.stateNode,b=s.memoizedState;b!==null&&(u=b.retryLane);break;case 19:p=s.stateNode;break;case 22:p=s.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(i),Zy(s,u)}function o_(s,i){return ot(s,i)}var np=null,sf=null,e0=!1,rp=!1,t0=!1,Ul=0;function co(s){s!==sf&&s.next===null&&(sf===null?np=sf=s:sf=sf.next=s),rp=!0,e0||(e0=!0,c_())}function Ad(s,i){if(!t0&&rp){t0=!0;do for(var u=!1,p=np;p!==null;){if(s!==0){var b=p.pendingLanes;if(b===0)var A=0;else{var q=p.suspendedLanes,ae=p.pingedLanes;A=(1<<31-qt(42|s)+1)-1,A&=b&~(q&~ae),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(u=!0,n5(p,A))}else A=bn,A=Ie(p,p===sr?A:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(A&3)===0||at(p,A)||(u=!0,n5(p,A));p=p.next}while(u);t0=!1}}function l_(){Jy()}function Jy(){rp=e0=!1;var s=0;Ul!==0&&b_()&&(s=Ul);for(var i=ct(),u=null,p=np;p!==null;){var b=p.next,A=e5(p,i);A===0?(p.next=null,u===null?np=b:u.next=b,b===null&&(sf=u)):(u=p,(s!==0||(A&3)!==0)&&(rp=!0)),p=b}fs!==0&&fs!==5||Ad(s),Ul!==0&&(Ul=0)}function e5(s,i){for(var u=s.suspendedLanes,p=s.pingedLanes,b=s.expirationTimes,A=s.pendingLanes&-62914561;0<A;){var q=31-qt(A),ae=1<<q,ve=b[q];ve===-1?((ae&u)===0||(ae&p)!==0)&&(b[q]=rt(ae,i)):ve<=i&&(s.expiredLanes|=ae),A&=~ae}if(i=sr,u=bn,u=Ie(s,s===i?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),p=s.callbackNode,u===0||s===i&&(qn===2||qn===9)||s.cancelPendingCommit!==null)return p!==null&&p!==null&&Xe(p),s.callbackNode=null,s.callbackPriority=0;if((u&3)===0||at(s,u)){if(i=u&-u,i===s.callbackPriority)return i;switch(p!==null&&Xe(p),fn(u)){case 2:case 8:u=Ht;break;case 32:u=vt;break;case 268435456:u=dt;break;default:u=vt}return p=t5.bind(null,s),u=ot(u,p),s.callbackPriority=i,s.callbackNode=u,i}return p!==null&&p!==null&&Xe(p),s.callbackPriority=2,s.callbackNode=null,2}function t5(s,i){if(fs!==0&&fs!==5)return s.callbackNode=null,s.callbackPriority=0,null;var u=s.callbackNode;if(tp()&&s.callbackNode!==u)return null;var p=bn;return p=Ie(s,s===sr?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),p===0?null:(ky(s,p,i),e5(s,ct()),s.callbackNode!=null&&s.callbackNode===u?t5.bind(null,s):null)}function n5(s,i){if(tp())return null;ky(s,i,!0)}function c_(){w_(function(){(Un&6)!==0?ot(Ct,l_):Jy()})}function n0(){if(Ul===0){var s=v;s===0&&(s=jt,jt<<=1,(jt&261888)===0&&(jt=256)),Ul=s}return Ul}function r5(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:js(""+s)}function s5(s,i){var u=i.ownerDocument.createElement("input");return u.name=i.name,u.value=i.value,s.id&&u.setAttribute("form",s.id),i.parentNode.insertBefore(u,i),s=new FormData(s),u.parentNode.removeChild(u),s}function u_(s,i,u,p,b){if(i==="submit"&&u&&u.stateNode===b){var A=r5((b[Sn]||null).action),q=p.submitter;q&&(i=(i=q[Sn]||null)?r5(i.formAction):q.getAttribute("formAction"),i!==null&&(A=i,q=null));var ae=new Js("action","action",null,p,b);s.push({event:ae,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Ul!==0){var ve=q?s5(b,q):new FormData(b);Sg(u,{pending:!0,data:ve,method:b.method,action:A},null,ve)}}else typeof A=="function"&&(ae.preventDefault(),ve=q?s5(b,q):new FormData(b),Sg(u,{pending:!0,data:ve,method:b.method,action:A},A,ve))},currentTarget:b}]})}}for(var r0=0;r0<Fo.length;r0++){var s0=Fo[r0],f_=s0.toLowerCase(),d_=s0[0].toUpperCase()+s0.slice(1);ta(f_,"on"+d_)}ta(ko,"onAnimationEnd"),ta(jc,"onAnimationIteration"),ta(Zf,"onAnimationStart"),ta("dblclick","onDoubleClick"),ta("focusin","onFocus"),ta("focusout","onBlur"),ta(Ph,"onTransitionRun"),ta(Th,"onTransitionStart"),ta(jh,"onTransitionCancel"),ta(Jf,"onTransitionEnd"),oi("onMouseEnter",["mouseout","mouseover"]),oi("onMouseLeave",["mouseout","mouseover"]),oi("onPointerEnter",["pointerout","pointerover"]),oi("onPointerLeave",["pointerout","pointerover"]),Sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nd="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(" "),h_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nd));function a5(s,i){i=(i&4)!==0;for(var u=0;u<s.length;u++){var p=s[u],b=p.event;p=p.listeners;e:{var A=void 0;if(i)for(var q=p.length-1;0<=q;
vendor: 4,129 bytes, line 48
48q--){var ae=p[q],ve=ae.instance,je=ae.currentTarget;if(ae=ae.listener,ve!==A&&b.isPropagationStopped())break e;A=ae,b.currentTarget=je;try{A(b)}catch(Be){Oc(Be)}b.currentTarget=null,A=ve}else for(q=0;q<p.length;q++){if(ae=p[q],ve=ae.instance,je=ae.currentTarget,ae=ae.listener,ve!==A&&b.isPropagationStopped())break e;A=ae,b.currentTarget=je;try{A(b)}catch(Be){Oc(Be)}b.currentTarget=null,A=ve}}}}function vn(s,i){var u=i[or];u===void 0&&(u=i[or]=new Set);var p=s+"__bubble";u.has(p)||(i5(i,s,2,!1),u.add(p))}function a0(s,i,u){var p=0;i&&(p|=4),i5(u,s,p,i)}var sp="_reactListening"+Math.random().toString(36).slice(2);function i0(s){if(!s[sp]){s[sp]=!0,hc.forEach(function(u){u!=="selectionchange"&&(h_.has(u)||a0(u,!1,s),a0(u,!0,s))});var i=s.nodeType===9?s:s.ownerDocument;i===null||i[sp]||(i[sp]=!0,a0("selectionchange",!1,i))}}function i5(s,i,u,p){switch(M5(i)){case 2:var b=z_;break;case 8:b=H_;break;default:b=w0}u=b.bind(null,i,u,s),b=void 0,!_c||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(b=!0),p?b!==void 0?s.addEventListener(i,u,{capture:!0,passive:b}):s.addEventListener(i,u,!0):b!==void 0?s.addEventListener(i,u,{passive:b}):s.addEventListener(i,u,!1)}function o0(s,i,u,p,b){var A=p;if((i&1)===0&&(i&2)===0&&p!==null)e:for(;;){if(p===null)return;var q=p.tag;if(q===3||q===4){var ae=p.stateNode.containerInfo;if(ae===b)break;if(q===4)for(q=p.return;q!==null;){var ve=q.tag;if((ve===3||ve===4)&&q.stateNode.containerInfo===b)return;q=q.return}for(;ae!==null;){if(q=Bs(ae),q===null)return;if(ve=q.tag,ve===5||ve===6||ve===26||ve===27){p=A=q;continue e}ae=ae.parentNode}}p=p.return}_u(function(){var je=A,Be=To(u),Ge=[];e:{var Le=ed.get(s);if(Le!==void 0){var Re=Js,xt=s;switch(s){case"keypress":if(Zs(u)===0)break e;case"keydown":case"keyup":Re=An;break;case"focusin":xt="focus",Re=mi;break;case"focusout":xt="blur",Re=mi;break;case"beforeblur":case"afterblur":Re=mi;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=Cc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=pi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=Br;break;case ko:case jc:case Zf:Re=C;break;case Jf:Re=ss;break;case"scroll":case"scrollend":Re=ml;break;case"wheel":Re=Ca;break;case"copy":case"cut":case"paste":Re=he;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=Sr;break;case"toggle":case"beforetoggle":Re=Ec}var zt=(i&4)!==0,Jn=!zt&&(s==="scroll"||s==="scrollend"),_e=zt?Le!==null?Le+"Capture":null:Le;zt=[];for(var we=je,Te;we!==null;){var qe=we;if(Te=qe.stateNode,qe=qe.tag,qe!==5&&qe!==26&&qe!==27||Te===null||_e===null||(qe=qs(we,_e),qe!=null&&zt.push(_d(we,qe,Te))),Jn)break;we=we.return}0<zt.length&&(Le=new Re(Le,xt,null,u,Be),Ge.push({event:Le,listeners:zt}))}}if((i&7)===0){e:{if(Le=s==="mouseover"||s==="pointerover",Re=s==="mouseout"||s==="pointerout",Le&&u!==ci&&(xt=u.relatedTarget||u.fromElement)&&(Bs(xt)||xt[tr]))break e;if((Re||Le)&&(Le=Be.window===Be?Be:(Le=Be.ownerDocument)?Le.defaultView||Le.parentWindow:window,Re?(xt=u.relatedTarget||u.toElement,Re=je,xt=xt?Bs(xt):null,xt!==null&&(Jn=o(xt),zt=xt.tag,xt!==Jn||zt!==5&&zt!==27&&zt!==6)&&(xt=null)):(Re=null,xt=je),Re!==xt)){if(zt=Cc,qe="onMouseLeave",_e="onMouseEnter",we="mouse",(s==="pointerout"||s==="pointerover")&&(zt=Sr,qe="onPointerLeave",_e="onPointerEnter",we="pointer"),Jn=Re==null?Le:Eo(Re),Te=xt==null?Le:Eo(xt),Le=new zt(qe,we+"leave",Re,u,Be),Le.target=Jn,Le.relatedTarget=Te,qe=null,Bs(Be)===je&&(zt=new zt(_e,we+"enter",xt,u,Be),zt.target=Te,zt.relatedTarget=Jn,qe=zt),Jn=qe,Re&&xt)t:{for(zt=p_,_e=Re,we=xt,Te=0,qe=_e;qe;qe=zt(qe))Te++;qe=0;for(var kt=we;kt;kt=zt(kt))qe++;for(;0<Te-qe;)_e=zt(_e),Te--;for(;0<qe-Te;)we=zt(we),qe--;for(;Te--;){if(_e===we||we!==null&&_e===we.alternate){zt=_e;break t}_e=zt(_e),we=zt(we)}zt=null}else zt=null;Re!==null&&o5(Ge,Le,Re,zt,!1),xt!==null&&Jn!==null&&o5(Ge,Jn,xt,zt,!0)}}
vendor: 5,258 bytes, lines 48-49
48e:{if(Le=je?Eo(je):window,Re=Le.nodeName&&Le.nodeName.toLowerCase(),Re==="select"||Re==="input"&&Le.type==="file")var Dn=Xi;else if(Pc(Le))if(Os)Dn=Xa;else{Dn=Ar;var Tt=xl}else Re=Le.nodeName,!Re||Re.toLowerCase()!=="input"||Le.type!=="checkbox"&&Le.type!=="radio"?je&&Sc(je.elementType)&&(Dn=Xi):Dn=Tu;if(Dn&&(Dn=Dn(s,je))){Ws(Ge,Dn,u,Be);break e}Tt&&Tt(s,Le,je),s==="focusout"&&je&&Le.type==="number"&&je.memoizedProps.value!=null&&bc(Le,"number",Le.value)}switch(Tt=je?Eo(je):window,s){case"focusin":(Pc(Tt)||Tt.contentEditable==="true")&&(Vs=Tt,_i=je,ps=null);break;case"focusout":ps=_i=Vs=null;break;case"mousedown":ea=!0;break;case"contextmenu":case"mouseup":case"dragend":ea=!1,Ln(Ge,u,Be);break;case"selectionchange":if(Mo)break;case"keydown":case"keyup":Ln(Ge,u,Be)}var ln;if(Va)e:{switch(s){case"compositionstart":var xn="onCompositionStart";break e;case"compositionend":xn="onCompositionEnd";break e;case"compositionupdate":xn="onCompositionUpdate";break e}xn=void 0}else Ya?$i(s,u)&&(xn="onCompositionEnd"):s==="keydown"&&u.keyCode===229&&(xn="onCompositionStart");xn&&(yi&&u.locale!=="ko"&&(Ya||xn!=="onCompositionStart"?xn==="onCompositionEnd"&&Ya&&(ln=Cu()):(Gs=Be,Oo="value"in Gs?Gs.value:Gs.textContent,Ya=!0)),Tt=ap(je,xn),0<Tt.length&&(xn=new Ne(xn,s,null,u,Be),Ge.push({event:xn,listeners:Tt}),ln?xn.data=ln:(ln=vl(u),ln!==null&&(xn.data=ln)))),(ln=Do?As(s,u):bi(s,u))&&(xn=ap(je,"onBeforeInput"),0<xn.length&&(Tt=new Ne("onBeforeInput","beforeinput",null,u,Be),Ge.push({event:Tt,listeners:xn}),Tt.data=ln)),u_(Ge,s,je,u,Be)}a5(Ge,i)})}function _d(s,i,u){return{instance:s,listener:i,currentTarget:u}}function ap(s,i){for(var u=i+"Capture",p=[];s!==null;){var b=s,A=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||A===null||(b=qs(s,u),b!=null&&p.unshift(_d(s,b,A)),b=qs(s,i),b!=null&&p.push(_d(s,b,A))),s.tag===3)return p;s=s.return}return[]}function p_(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function o5(s,i,u,p,b){for(var A=i._reactName,q=[];u!==null&&u!==p;){var ae=u,ve=ae.alternate,je=ae.stateNode;if(ae=ae.tag,ve!==null&&ve===p)break;ae!==5&&ae!==26&&ae!==27||je===null||(ve=je,b?(je=qs(u,A),je!=null&&q.unshift(_d(u,je,ve))):b||(je=qs(u,A),je!=null&&q.push(_d(u,je,ve)))),u=u.return}q.length!==0&&s.push({event:i,listeners:q})}var m_=/\r\n?/g,g_=/\u0000|\uFFFD/g;function l5(s){return(typeof s=="string"?s:""+s).replace(m_,` 49`).replace(g_,"")}function c5(s,i){return i=l5(i),l5(s)===i}function Zn(s,i,u,p,b,A){switch(u){case"children":typeof p=="string"?i==="body"||i==="textarea"&&p===""||Na(s,p):(typeof p=="number"||typeof p=="bigint")&&i!=="body"&&Na(s,""+p);break;case"className":li(s,"class",p);break;case"tabIndex":li(s,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":li(s,u,p);break;case"style":Su(s,p,A);break;case"data":if(i!=="object"){li(s,"data",p);break}case"src":case"href":if(p===""&&(i!=="a"||u!=="href")){s.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){s.removeAttribute(u);break}p=js(""+p),s.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){s.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof A=="function"&&(u==="formAction"?(i!=="input"&&Zn(s,i,"name",b.name,b,null),Zn(s,i,"formEncType",b.formEncType,b,null),Zn(s,i,"formMethod",b.formMethod,b,null),Zn(s,i,"formTarget",b.formTarget,b,null)):(Zn(s,i,"encType",b.encType,b,null),Zn(s,i,"method",b.method,b,null),Zn(s,i,"target",b.target,b,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){s.removeAttribute(u);break}p=js(""+p),s.setAttribute(u,p);break;case"onClick":p!=null&&(s.onclick=_a);break;case"onScroll":p!=null&&vn("scroll",s);break;case"onScrollEnd":p!=null&&vn("scrollend",s);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(b.children!=null)throw Error(r(60));s.innerHTML=u}}break;case"multiple":s.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":s.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){s.removeAttribute("xlink:href");break}u=js(""+p),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?s.setAttribute(u,""+p):s.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?s.setAttribute(u,""):s.removeAttribute(u);break;case"capture":case"download":p===!0?s.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?s.setAttribute(u,p):s.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?s.setAttribute(u,p):s.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?s.removeAttribute(u):s.setAttribute(u,p);break;case"popover":vn("beforetoggle",s),vn("toggle",s),Hs(s,"popover",p);break;case"xlinkActuate":Aa(s,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Aa(s,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Aa(s,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Aa(s,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Aa(s,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Aa(s,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Aa(s,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Aa(s,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Aa(s,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Hs(s,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Ac.get(u)||u,Hs(s,u,p))}}function l0(s,i,u,p,b,A){switch(u){case"style":Su(s,p,A);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(b.children!=null)throw Error(r(60));s.innerHTML=u}}break;case"children":typeof p=="string"?Na(s,p):(typeof p=="number"||typeof p=="bigint")&&Na(s,""+p);break;case"onScroll":p!=null&&vn("scroll",s);break;case"onScrollEnd":p!=null&&vn("scrollend",s);break;case"onClick":p!=null&&(s.onclick=_a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zs.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(b=u.endsWith("Capture"),i=u.slice(2,b?u.length-7:void 0),A=s[Sn]||null,A=A!=null?A[u]:null,typeof A=="function"&&s.removeEventListener(i,A,b),typeof p=="function")){typeof A!="function"&&A!==null&&(u in s?s[u]=null:s.hasAttribute(u)&&s.removeAttribute(u)),s.addEventListener(i,p,b);break e}u in s?s[u]=p:p===!0?s.setAttribute(u,""):Hs(s,u,p)}}}function Ps(s,i,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vn("error",s),vn("load",s);var p=!1,b=!1,A;for(A in u)if(u.hasOwnProperty(A)){var q=u[A];if(q!=null)switch(A){case"src":p=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Zn(s,i,A,q,u,null)}}b&&Zn(s,i,"srcSet",u.srcSet,u,null),p&&Zn(s,i,"src",u.src,u,null);return;case"input":vn("invalid",s);var ae=A=q=b=null,ve=null,je=null;for(p in u)if(u.hasOwnProperty(p)){var Be=u[p];if(Be!=null)switch(p){case"name":b=Be;break;case"type":q=Be;break;case"checked":ve=Be;break;case"defaultChecked":je=Be;break;case"value":A=Be;break;case"defaultValue":ae=Be;break;case"children":case"dangerouslySetInnerHTML":if(Be!=null)throw Error(r(137,i));break;default:Zn(s,i,p,Be,u,null)}}xu(s,A,ae,ve,je,q,b,!1);return;case"select":vn("invalid",s),p=q=A=null;for(b in u)if(u.hasOwnProperty(b)&&(ae=u[b],ae!=null))switch(b){case"value":A=ae;break;case"defaultValue":q=ae;break;case"multiple":p=ae;default:Zn(s,i,b,ae,u,null)}i=A,u=q,s.multiple=!!p,i!=null?Ss(s,!!p,i,!1):u!=null&&Ss(s,!!p,u,!0);return;case"textarea":vn("invalid",s),A=b=p=null;for(q in u)if(u.hasOwnProperty(q)&&(ae=u[q],ae!=null))switch(q){case"value":p=ae;break;case"defaultValue":b=ae;break;case"children":A=ae;break;case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(91));break;default:Zn(s,i,q,ae,u,null)}wc(s,p,b,A);return;case"option":for(ve in u)if(u.hasOwnProperty(ve)&&(p=u[ve],p!=null))switch(ve){case"selected":s.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:Zn(s,i,ve,p,u,null)}return;case"dialog":vn("beforetoggle",s),vn("toggle",s),vn("cancel",s),vn("close",s
vendor: 4,207 bytes, line 49
49);break;case"iframe":case"object":vn("load",s);break;case"video":case"audio":for(p=0;p<Nd.length;p++)vn(Nd[p],s);break;case"image":vn("error",s),vn("load",s);break;case"details":vn("toggle",s);break;case"embed":case"source":case"link":vn("error",s),vn("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(je in u)if(u.hasOwnProperty(je)&&(p=u[je],p!=null))switch(je){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Zn(s,i,je,p,u,null)}return;default:if(Sc(i)){for(Be in u)u.hasOwnProperty(Be)&&(p=u[Be],p!==void 0&&l0(s,i,Be,p,u,void 0));return}}for(ae in u)u.hasOwnProperty(ae)&&(p=u[ae],p!=null&&Zn(s,i,ae,p,u,null))}function v_(s,i,u,p){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,A=null,q=null,ae=null,ve=null,je=null,Be=null;for(Re in u){var Ge=u[Re];if(u.hasOwnProperty(Re)&&Ge!=null)switch(Re){case"checked":break;case"value":break;case"defaultValue":ve=Ge;default:p.hasOwnProperty(Re)||Zn(s,i,Re,null,p,Ge)}}for(var Le in p){var Re=p[Le];if(Ge=u[Le],p.hasOwnProperty(Le)&&(Re!=null||Ge!=null))switch(Le){case"type":A=Re;break;case"name":b=Re;break;case"checked":je=Re;break;case"defaultChecked":Be=Re;break;case"value":q=Re;break;case"defaultValue":ae=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(r(137,i));break;default:Re!==Ge&&Zn(s,i,Le,Re,p,Ge)}}dl(s,q,ae,ve,je,Be,A,b);return;case"select":Re=q=ae=Le=null;for(A in u)if(ve=u[A],u.hasOwnProperty(A)&&ve!=null)switch(A){case"value":break;case"multiple":Re=ve;default:p.hasOwnProperty(A)||Zn(s,i,A,null,p,ve)}for(b in p)if(A=p[b],ve=u[b],p.hasOwnProperty(b)&&(A!=null||ve!=null))switch(b){case"value":Le=A;break;case"defaultValue":ae=A;break;case"multiple":q=A;default:A!==ve&&Zn(s,i,b,A,p,ve)}i=ae,u=q,p=Re,Le!=null?Ss(s,!!u,Le,!1):!!p!=!!u&&(i!=null?Ss(s,!!u,i,!0):Ss(s,!!u,u?[]:"",!1));return;case"textarea":Re=Le=null;for(ae in u)if(b=u[ae],u.hasOwnProperty(ae)&&b!=null&&!p.hasOwnProperty(ae))switch(ae){case"value":break;case"children":break;default:Zn(s,i,ae,null,p,b)}for(q in p)if(b=p[q],A=u[q],p.hasOwnProperty(q)&&(b!=null||A!=null))switch(q){case"value":Le=b;break;case"defaultValue":Re=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:b!==A&&Zn(s,i,q,b,p,A)}xc(s,Le,Re);return;case"option":for(var xt in u)if(Le=u[xt],u.hasOwnProperty(xt)&&Le!=null&&!p.hasOwnProperty(xt))switch(xt){case"selected":s.selected=!1;break;default:Zn(s,i,xt,null,p,Le)}for(ve in p)if(Le=p[ve],Re=u[ve],p.hasOwnProperty(ve)&&Le!==Re&&(Le!=null||Re!=null))switch(ve){case"selected":s.selected=Le&&typeof Le!="function"&&typeof Le!="symbol";break;default:Zn(s,i,ve,Le,p,Re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var zt in u)Le=u[zt],u.hasOwnProperty(zt)&&Le!=null&&!p.hasOwnProperty(zt)&&Zn(s,i,zt,null,p,Le);for(je in p)if(Le=p[je],Re=u[je],p.hasOwnProperty(je)&&Le!==Re&&(Le!=null||Re!=null))switch(je){case"children":case"dangerouslySetInnerHTML":if(Le!=null)throw Error(r(137,i));break;default:Zn(s,i,je,Le,p,Re)}return;default:if(Sc(i)){for(var Jn in u)Le=u[Jn],u.hasOwnProperty(Jn)&&Le!==void 0&&!p.hasOwnProperty(Jn)&&l0(s,i,Jn,void 0,p,Le);for(Be in p)Le=p[Be],Re=u[Be],!p.hasOwnProperty(Be)||Le===Re||Le===void 0&&Re===void 0||l0(s,i,Be,Le,p,Re);return}}for(var _e in u)Le=u[_e],u.hasOwnProperty(_e)&&Le!=null&&!p.hasOwnProperty(_e)&&Zn(s,i,_e,null,p,Le);for(Ge in p)Le=p[Ge],Re=u[Ge],!p.hasOwnProperty(Ge)||Le===Re||Le==null&&Re==null||Zn(s,i,Ge,Le,p,Re)}function u5(s){switch(s){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function y_(){if(typeof performance.getEntriesByType=="function"){for(var s=0,i=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var b=u[p],A=b.transferSize,q=b.initiatorType,ae=b.duration;if(A&&ae&&u5(q)){for(q=0,ae=b.responseEnd,p+=1;p<u.length;p++){var ve=u[p],je=ve.startTime;if(je>ae)break;var Be=ve.transferSize,Ge=ve.initiatorType;
vendor: 4,596 bytes, line 49
49Be&&u5(Ge)&&(ve=ve.responseEnd,q+=Be*(ve<ae?1:(ae-je)/(ve-je)))}if(--p,i+=8*(A+q)/(b.duration/1e3),s++,10<s)break}}if(0<s)return i/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s=="number")?s:5}var c0=null,u0=null;function ip(s){return s.nodeType===9?s:s.ownerDocument}function f5(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function d5(s,i){if(s===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&i==="foreignObject"?0:s}function f0(s,i){return s==="textarea"||s==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var d0=null;function b_(){var s=window.event;return s&&s.type==="popstate"?s===d0?!1:(d0=s,!0):(d0=null,!1)}var h5=typeof setTimeout=="function"?setTimeout:void 0,x_=typeof clearTimeout=="function"?clearTimeout:void 0,p5=typeof Promise=="function"?Promise:void 0,w_=typeof queueMicrotask=="function"?queueMicrotask:typeof p5<"u"?function(s){return p5.resolve(null).then(s).catch(S_)}:h5;function S_(s){setTimeout(function(){throw s})}function Bl(s){return s==="head"}function m5(s,i){var u=i,p=0;do{var b=u.nextSibling;if(s.removeChild(u),b&&b.nodeType===8)if(u=b.data,u==="/$"||u==="/&"){if(p===0){s.removeChild(b),cf(i);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")Cd(s.ownerDocument.documentElement);else if(u==="head"){u=s.ownerDocument.head,Cd(u);for(var A=u.firstChild;A;){var q=A.nextSibling,ae=A.nodeName;A[ns]||ae==="SCRIPT"||ae==="STYLE"||ae==="LINK"&&A.rel.toLowerCase()==="stylesheet"||u.removeChild(A),A=q}}else u==="body"&&Cd(s.ownerDocument.body);u=b}while(u);cf(i)}function g5(s,i){var u=s;s=0;do{var p=u.nextSibling;if(u.nodeType===1?i?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(i?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(s===0)break;s--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||s++;u=p}while(u)}function h0(s){var i=s.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var u=i;switch(i=i.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":h0(u),za(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}s.removeChild(u)}}function A_(s,i,u,p){for(;s.nodeType===1;){var b=u;if(s.nodeName.toLowerCase()!==i.toLowerCase()){if(!p&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(p){if(!s[ns])switch(i){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(A=s.getAttribute("rel"),A==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(A!==b.rel||s.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||s.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||s.getAttribute("title")!==(b.title==null?null:b.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(A=s.getAttribute("src"),(A!==(b.src==null?null:b.src)||s.getAttribute("type")!==(b.type==null?null:b.type)||s.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&A&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(i==="input"&&s.type==="hidden"){var A=b.name==null?null:""+b.name;if(b.type==="hidden"&&s.getAttribute("name")===A)return s}else return s;if(s=ri(s.nextSibling),s===null)break}return null}function N_(s,i,u){if(i==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!u||(s=ri(s.nextSibling),s===null))return null;return s}function v5(s,i){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!i||(s=ri(s.nextSibling),s===null))return null;return s}function p0(s){return s.data==="$?"||s.data==="$~"}function m0(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState!=="loading"}function __(s,i){var u=s.ownerDocument;if(s.data==="$~")s._reactRetry=i;else if(s.data!=="$?"||u.readyState!=="loading")i();else{var p=function(){i(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),s._reactRetry=p}}function ri(s){for(;s!=null;s=s.nextSibling){var i=s.nodeType;if(i===1||i===3)break;if(i===8){if(i=s.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;
vendor: 5,080 bytes, line 49
49if(i==="/$"||i==="/&")return null}}return s}var g0=null;function y5(s){s=s.nextSibling;for(var i=0;s;){if(s.nodeType===8){var u=s.data;if(u==="/$"||u==="/&"){if(i===0)return ri(s.nextSibling);i--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||i++}s=s.nextSibling}return null}function b5(s){s=s.previousSibling;for(var i=0;s;){if(s.nodeType===8){var u=s.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(i===0)return s;i--}else u!=="/$"&&u!=="/&"||i++}s=s.previousSibling}return null}function x5(s,i,u){switch(i=ip(u),s){case"html":if(s=i.documentElement,!s)throw Error(r(452));return s;case"head":if(s=i.head,!s)throw Error(r(453));return s;case"body":if(s=i.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function Cd(s){for(var i=s.attributes;i.length;)s.removeAttributeNode(i[0]);za(s)}var si=new Map,w5=new Set;function op(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Jo=M.d;M.d={f:C_,r:E_,D:P_,C:T_,L:j_,m:O_,X:R_,S:L_,M:D_};function C_(){var s=Jo.f(),i=Zh();return s||i}function E_(s){var i=wa(s);i!==null&&i.tag===5&&i.type==="form"?I2(i):Jo.r(s)}var af=typeof document>"u"?null:document;function S5(s,i,u){var p=af;if(p&&typeof i=="string"&&i){var b=Pr(i);b='link[rel="'+s+'"][href="'+b+'"]',typeof u=="string"&&(b+='[crossorigin="'+u+'"]'),w5.has(b)||(w5.add(b),s={rel:s,crossOrigin:u,href:i},p.querySelector(b)===null&&(i=p.createElement("link"),Ps(i,"link",s),wr(i),p.head.appendChild(i)))}}function P_(s){Jo.D(s),S5("dns-prefetch",s,null)}function T_(s,i){Jo.C(s,i),S5("preconnect",s,i)}function j_(s,i,u){Jo.L(s,i,u);var p=af;if(p&&s&&i){var b='link[rel="preload"][as="'+Pr(i)+'"]';i==="image"&&u&&u.imageSrcSet?(b+='[imagesrcset="'+Pr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(b+='[imagesizes="'+Pr(u.imageSizes)+'"]')):b+='[href="'+Pr(s)+'"]';var A=b;switch(i){case"style":A=of(s);break;case"script":A=lf(s)}si.has(A)||(s=m({rel:"preload",href:i==="image"&&u&&u.imageSrcSet?void 0:s,as:i},u),si.set(A,s),p.querySelector(b)!==null||i==="style"&&p.querySelector(Ed(A))||i==="script"&&p.querySelector(Pd(A))||(i=p.createElement("link"),Ps(i,"link",s),wr(i),p.head.appendChild(i)))}}function O_(s,i){Jo.m(s,i);var u=af;if(u&&s){var p=i&&typeof i.as=="string"?i.as:"script",b='link[rel="modulepreload"][as="'+Pr(p)+'"][href="'+Pr(s)+'"]',A=b;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=lf(s)}if(!si.has(A)&&(s=m({rel:"modulepreload",href:s},i),si.set(A,s),u.querySelector(b)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Pd(A)))return}p=u.createElement("link"),Ps(p,"link",s),wr(p),u.head.appendChild(p)}}}function L_(s,i,u){Jo.S(s,i,u);var p=af;if(p&&s){var b=Ha(p).hoistableStyles,A=of(s);i=i||"default";var q=b.get(A);if(!q){var ae={loading:0,preload:null};if(q=p.querySelector(Ed(A)))ae.loading=5;else{s=m({rel:"stylesheet",href:s,"data-precedence":i},u),(u=si.get(A))&&v0(s,u);var ve=q=p.createElement("link");wr(ve),Ps(ve,"link",s),ve._p=new Promise(function(je,Be){ve.onload=je,ve.onerror=Be}),ve.addEventListener("load",function(){ae.loading|=1}),ve.addEventListener("error",function(){ae.loading|=2}),ae.loading|=4,lp(q,i,p)}q={type:"stylesheet",instance:q,count:1,state:ae},b.set(A,q)}}}function R_(s,i){Jo.X(s,i);var u=af;if(u&&s){var p=Ha(u).hoistableScripts,b=lf(s),A=p.get(b);A||(A=u.querySelector(Pd(b)),A||(s=m({src:s,async:!0},i),(i=si.get(b))&&y0(s,i),A=u.createElement("script"),wr(A),Ps(A,"link",s),u.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},p.set(b,A))}}function D_(s,i){Jo.M(s,i);var u=af;if(u&&s){var p=Ha(u).hoistableScripts,b=lf(s),A=p.get(b);A||(A=u.querySelector(Pd(b)),A||(s=m({src:s,async:!0,type:"module"},i),(i=si.get(b))&&y0(s,i),A=u.createElement("script"),wr(A),Ps(A,"link",s),u.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},p.set(b,A))}}function A5(s,i,u,p){var b=(b=oe.current)?op(b):null;if(!b)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(i=of(u.href),u=Ha(b).hoistableStyles,p=u.get(i),p||(p={type:"style",instance:null,count:0,state:null},u.set(i,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){s=of(u.href);var A=Ha(b).hoistableStyles,q=A.get(s);if(q||(b=b.ownerDocument||b,q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(s,q),(A=b.querySelector(Ed(s)))&&!A._p&&(q.instance=A,q.state.loading=5),si.has(s)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},si.set(s,u),A||M_(b,s,u,q.state))),i&&p===null)throw Error(r(528,""));return q}if(i&&p!==null)throw Error(r(529,""));return null;case"script":return i=u.async,u=u.src,typeof u=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?
vendor: 6,986 bytes, line 49
49(i=lf(u),u=Ha(b).hoistableScripts,p=u.get(i),p||(p={type:"script",instance:null,count:0,state:null},u.set(i,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function of(s){return'href="'+Pr(s)+'"'}function Ed(s){return'link[rel="stylesheet"]['+s+"]"}function N5(s){return m({},s,{"data-precedence":s.precedence,precedence:null})}function M_(s,i,u,p){s.querySelector('link[rel="preload"][as="style"]['+i+"]")?p.loading=1:(i=s.createElement("link"),p.preload=i,i.addEventListener("load",function(){return p.loading|=1}),i.addEventListener("error",function(){return p.loading|=2}),Ps(i,"link",u),wr(i),s.head.appendChild(i))}function lf(s){return'[src="'+Pr(s)+'"]'}function Pd(s){return"script[async]"+s}function _5(s,i,u){if(i.count++,i.instance===null)switch(i.type){case"style":var p=s.querySelector('style[data-href~="'+Pr(u.href)+'"]');if(p)return i.instance=p,wr(p),p;var b=m({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(s.ownerDocument||s).createElement("style"),wr(p),Ps(p,"style",b),lp(p,u.precedence,s),i.instance=p;case"stylesheet":b=of(u.href);var A=s.querySelector(Ed(b));if(A)return i.state.loading|=4,i.instance=A,wr(A),A;p=N5(u),(b=si.get(b))&&v0(p,b),A=(s.ownerDocument||s).createElement("link"),wr(A);var q=A;return q._p=new Promise(function(ae,ve){q.onload=ae,q.onerror=ve}),Ps(A,"link",p),i.state.loading|=4,lp(A,u.precedence,s),i.instance=A;case"script":return A=lf(u.src),(b=s.querySelector(Pd(A)))?(i.instance=b,wr(b),b):(p=u,(b=si.get(A))&&(p=m({},u),y0(p,b)),s=s.ownerDocument||s,b=s.createElement("script"),wr(b),Ps(b,"link",p),s.head.appendChild(b),i.instance=b);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(p=i.instance,i.state.loading|=4,lp(p,u.precedence,s));return i.instance}function lp(s,i,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=p.length?p[p.length-1]:null,A=b,q=0;q<p.length;q++){var ae=p[q];if(ae.dataset.precedence===i)A=ae;else if(A!==b)break}A?A.parentNode.insertBefore(s,A.nextSibling):(i=u.nodeType===9?u.head:u,i.insertBefore(s,i.firstChild))}function v0(s,i){s.crossOrigin==null&&(s.crossOrigin=i.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=i.referrerPolicy),s.title==null&&(s.title=i.title)}function y0(s,i){s.crossOrigin==null&&(s.crossOrigin=i.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=i.referrerPolicy),s.integrity==null&&(s.integrity=i.integrity)}var cp=null;function C5(s,i,u){if(cp===null){var p=new Map,b=cp=new Map;b.set(u,p)}else b=cp,p=b.get(u),p||(p=new Map,b.set(u,p));if(p.has(s))return p;for(p.set(s,null),u=u.getElementsByTagName(s),b=0;b<u.length;b++){var A=u[b];if(!(A[ns]||A[dn]||s==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var q=A.getAttribute(i)||"";q=s+q;var ae=p.get(q);ae?ae.push(A):p.set(q,[A])}}return p}function E5(s,i,u){s=s.ownerDocument||s,s.head.insertBefore(u,i==="title"?s.querySelector("head > title"):null)}function k_(s,i,u){if(u===1||i.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return s=i.disabled,typeof i.precedence=="string"&&s==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function P5(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function F_(s,i,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var b=of(p.href),A=i.querySelector(Ed(b));if(A){i=A._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(s.count++,s=up.bind(s),i.then(s,s)),u.state.loading|=4,u.instance=A,wr(A);return}A=i.ownerDocument||i,p=N5(p),(b=si.get(b))&&v0(p,b),A=A.createElement("link"),wr(A);var q=A;q._p=new Promise(function(ae,ve){q.onload=ae,q.onerror=ve}),Ps(A,"link",p),u.instance=A}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(u,i),(i=u.state.preload)&&(u.state.loading&3)===0&&(s.count++,u=up.bind(s),i.addEventListener("load",u),i.addEventListener("error",u))}}var b0=0;function I_(s,i){return s.stylesheets&&s.count===0&&dp(s,s.stylesheets),0<s.count||0<s.imgCount?function(u){var p=setTimeout(function(){if(s.stylesheets&&dp(s,s.stylesheets),s.unsuspend){var A=s.unsuspend;s.unsuspend=null,A()}},6e4+i);0<s.imgBytes&&b0===0&&(b0=62500*y_());var b=setTimeout(function(){if(s.waitingForImages=!1,s.count===0&&(s.stylesheets&&dp(s,s.stylesheets),s.unsuspend)){var A=s.unsuspend;s.unsuspend=null,A()}},(s.imgBytes>b0?50:800)+i);return s.unsuspend=u,function(){s.unsuspend=null,clearTimeout(p),clearTimeout(b)}}:null}function up(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)dp(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var fp=null;function dp(s,i){s.stylesheets=null,s.unsuspend!==null&&(s.count++,fp=new Map,i.forEach(U_,s),fp=null,up.call(s))}function U_(s,i){if(!(i.state.loading&4)){var u=fp.get(s);if(u)var p=u.get(null);else{u=new Map,fp.set(s,u);for(var b=s.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<b.length;A++){var q=b[A];(q.nodeName==="LINK"||q.getAttribute("media")!=="not all")&&(u.set(q.dataset.precedence,q),p=q)}p&&u.set(null,p)}b=i.instance,q=b.getAttribute("data-precedence"),A=u.get(q)||p,A===p&&u.set(null,b),u.set(q,b),this.count++,p=up.bind(this),b.addEventListener("load",p),b.addEventListener("error",p),A?A.parentNode.insertBefore(b,A.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(b,s.firstChild)),i.state.loading|=4}}var Td={$$typeof:H,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function B_(s,i,u,p,b,A,q,ae,ve){this.tag=1,this.containerInfo=s,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.hiddenUpdates=Bt(null),this.identifierPrefix=p,this.onUncaughtError=b,this.onCaughtError=A,this.onRecoverableError=q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ve,this.incompleteTransitions=new Map}function T5(s,i,u,p,b,A,q,ae,ve,je,Be,Ge){return s=new B_(s,i,u,q,ve,je,Be,Ge,ae),i=1,A===!0&&(i|=24),A=gs(3,null,null,i),s.current=A,A.stateNode=s,i=Pl(),i.refCount++,s.pooledCache=i,i.refCount++,A.memoizedState={element:p,isDehydrated:u,cac
vendor: 10,816 bytes, line 49
49he:i},st(A),s}function j5(s){return s?(s=is,s):is}function O5(s,i,u,p,b,A){b=j5(b),p.context===null?p.context=b:p.pendingContext=b,p=Ut(i),p.payload={element:u},A=A===void 0?null:A,A!==null&&(p.callback=A),u=an(s,p,i),u!==null&&(pa(u,s,i),Fn(u,s,i))}function L5(s,i){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var u=s.retryLane;s.retryLane=u!==0&&u<i?u:i}}function x0(s,i){L5(s,i),(s=s.alternate)&&L5(s,i)}function R5(s){if(s.tag===13||s.tag===31){var i=Ci(s,67108864);i!==null&&pa(i,s,67108864),x0(s,67108864)}}function D5(s){if(s.tag===13||s.tag===31){var i=Da();i=Qt(i);var u=Ci(s,i);u!==null&&pa(u,s,i),x0(s,i)}}var hp=!0;function z_(s,i,u,p){var b=L.T;L.T=null;var A=M.p;try{M.p=2,w0(s,i,u,p)}finally{M.p=A,L.T=b}}function H_(s,i,u,p){var b=L.T;L.T=null;var A=M.p;try{M.p=8,w0(s,i,u,p)}finally{M.p=A,L.T=b}}function w0(s,i,u,p){if(hp){var b=S0(p);if(b===null)o0(s,i,p,pp,u),k5(s,p);else if(G_(b,s,i,u,p))p.stopPropagation();else if(k5(s,p),i&4&&-1<q_.indexOf(s)){for(;b!==null;){var A=wa(b);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var q=Ue(A.pendingLanes);if(q!==0){var ae=A;for(ae.pendingLanes|=2,ae.entangledLanes|=2;q;){var ve=1<<31-qt(q);ae.entanglements[1]|=ve,q&=~ve}co(A),(Un&6)===0&&(Xh=ct()+500,Ad(0))}}break;case 31:case 13:ae=Ci(A,2),ae!==null&&pa(ae,A,2),Zh(),x0(A,2)}if(A=S0(p),A===null&&o0(s,i,p,pp,u),A===b)break;b=A}b!==null&&p.stopPropagation()}else o0(s,i,p,null,u)}}function S0(s){return s=To(s),A0(s)}var pp=null;function A0(s){if(pp=null,s=Bs(s),s!==null){var i=o(s);if(i===null)s=null;else{var u=i.tag;if(u===13){if(s=l(i),s!==null)return s;s=null}else if(u===31){if(s=c(i),s!==null)return s;s=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;s=null}else i!==s&&(s=null)}}return pp=s,null}function M5(s){switch(s){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Lt()){case Ct:return 2;case Ht:return 8;case vt:case lt:return 32;case dt:return 268435456;default:return 32}default:return 32}}var N0=!1,zl=null,Hl=null,ql=null,jd=new Map,Od=new Map,Gl=[],q_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function k5(s,i){switch(s){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":Hl=null;break;case"mouseover":case"mouseout":ql=null;break;case"pointerover":case"pointerout":jd.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Od.delete(i.pointerId)}}function Ld(s,i,u,p,b,A){return s===null||s.nativeEvent!==A?(s={blockedOn:i,domEventName:u,eventSystemFlags:p,nativeEvent:A,targetContainers:[b]},i!==null&&(i=wa(i),i!==null&&R5(i)),s):(s.eventSystemFlags|=p,i=s.targetContainers,b!==null&&i.indexOf(b)===-1&&i.push(b),s)}function G_(s,i,u,p,b){switch(i){case"focusin":return zl=Ld(zl,s,i,u,p,b),!0;case"dragenter":return Hl=Ld(Hl,s,i,u,p,b),!0;case"mouseover":return ql=Ld(ql,s,i,u,p,b),!0;case"pointerover":var A=b.pointerId;return jd.set(A,Ld(jd.get(A)||null,s,i,u,p,b)),!0;case"gotpointercapture":return A=b.pointerId,Od.set(A,Ld(Od.get(A)||null,s,i,u,p,b)),!0}return!1}function F5(s){var i=Bs(s.target);if(i!==null){var u=o(i);if(u!==null){if(i=u.tag,i===13){if(i=l(u),i!==null){s.blockedOn=i,es(s.priority,function(){D5(u)});return}}else if(i===31){if(i=c(u),i!==null){s.blockedOn=i,es(s.priority,function(){D5(u)});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){s.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}s.blockedOn=null}function mp(s){if(s.blockedOn!==null)return!1;for(var i=s.targetContainers;0<i.length;){var u=S0(s.nativeEvent);if(u===null){u=s.nativeEvent;var p=new u.constructor(u.type,u);ci=p,u.target.dispatchEvent(p),ci=null}else return i=wa(u),i!==null&&R5(i),s.blockedOn=u,!1;i.shift()}return!0}function I5(s,i,u){mp(s)&&u.delete(i)}function W_(){N0=!1,zl!==null&&mp(zl)&&(zl=null),Hl!==null&&mp(Hl)&&(Hl=null),ql!==null&&mp(ql)&&(ql=null),jd.forEach(I5),Od.forEach(I5)}function gp(s,i){s.blockedOn===i&&(s.blockedOn=null,N0||(N0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,W_)))}var vp=null;function U5(s){vp!==s&&(vp=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){vp===s&&(vp=null);for(var i=0;i<s.length;i+=3){var u=s[i],p=s[i+1],b=s[i+2];if(typeof p!="function"){if(A0(p||u)===null)continue;break}var A=wa(u);A!==null&&(s.splice(i,3),i-=3,Sg(A,{pending:!0,data:b,method:u.method,action:p},p,b))}}))}function cf(s){function i(ve){return gp(ve,s)}zl!==null&&gp(zl,s),Hl!==null&&gp(Hl,s),ql!==null&&gp(ql,s),jd.forEach(i),Od.forEach(i);for(var u=0;u<Gl.length;u++){var p=Gl[u];p.blockedOn===s&&(p.blockedOn=null)}for(;0<Gl.length&&(u=Gl[0],u.blockedOn===null);)F5(u),u.blockedOn===null&&Gl.shift();if(u=(s.ownerDocument||s).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var b=u[p],A=u[p+1],q=b[Sn]||null;if(typeof A=="function")q||U5(u);else if(q){var ae=null;if(A&&A.hasAttribute("formAction")){if(b=A,q=A[Sn]||null)ae=q.formAction;else if(A0(b)!==null)continue}else ae=q.action;typeof ae=="function"?u[p+1]=ae:(u.splice(p,3),p-=3),U5(u)}}}function B5(){function s(A){A.canIntercept&&A.info==="react-transition"&&A.intercept({handler:function(){return new Promise(function(q){return b=q})},focusReset:"manual",scroll:"manual"})}function i(){b!==null&&(b(),b=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var A=navigation.currentEntry;A&&A.url!=null&&navigation.navigate(A.url,{state:A.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,b=null;return navigation.addEventListener("navigate",s),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",s),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),b!==null&&(b(),b=null)}}}function _0(s){this._internalRoot=s}yp.prototype.render=_0.prototype.render=function(s){var i=this._internalRoot;if(i===null)throw Error(r(409));var u=i.current,p=Da();O5(u,p,s,i,null,null)},yp.prototype.unmount=_0.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var i=s.containerInfo;O5(s.current,2,null,s,null,null),Zh(),i[tr]=null}};function yp(s){this._internalRoot=s}yp.prototype.unstable_scheduleHydration=function(s){if(s){var i=jn();s={blockedOn:null,target:s,priority:i};for(var u=0;u<Gl.length&&i!==0&&i<Gl[u].priority;u++);Gl.splice(u,0,s),u===0&&F5(s)}};var z5=t.version;if(z5!=="19.2.1")throw Error(r(527,z5,"19.2.1"));M.findDOMNode=function(s){var i=s._reactInternals;if(i===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=d(i),s=s!==null?h(s):null,s=s===null?null:s.stateNode,s};var V_={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bp.isDisabled&&bp.supportsFiber)try{Ft=bp.inject(V_),mt=bp}catch{}}return Md.createRoot=function(s,i){if(!a(s))throw Error(r(299));var u=!1,p="",b=Q2,A=$2,q=X2;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&(A=i.onCaughtError),i.onRecoverableError!==void 0&&(q=i.onRecoverableError)),i=T5(s,1,!1,null,null,u,p,null,b,A,q,B5),s[tr]=i.current,i0(s),new _0(i)},Md.hydrateRoot=function(s,i,u){if(!a(s))throw Error(r(299));var p=!1,b="",A=Q2,q=$2,ae=X2,ve=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onUncaughtError!==void 0&&(A=u.onUncaughtError),u.onCaughtError!==void 0&&(q=u.onCaughtError),u.onRecoverableError!==void 0&&(ae=u.onRecoverableError),u.formState!==void 0&&(ve=u.formState)),i=T5(s,1,!0,i,u??null,p,b,ve,A,q,ae,B5),i.context=j5(null),u=i.current,p=Da(),p=Qt(p),b=Ut(p),b.callback=null,an(u,b,p),u=p,i.current.lanes=u,Ke(i,u),co(i),s[tr]=i.current,i0(s),new yp(i)},Md.version="19.2.1",Md}var pb;function oE(){if(pb)return L0.exports;pb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),L0.exports=iE(),L0.exports}var lE=oE(),cE=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),q3=(function(){function e(t){this.generateIdentifier=t,this.kv=new cE}return e.prototype.register=function(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),uE=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
49t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),fE=(function(e){uE(t,e);function t(){var n=e.call(this,function(r){return r.name})||this;return n.classToAllowedProps=new Map,n}return t.prototype.register=function(n,r){typeof r=="object"?(r.allowProps&&this.classToAllowedProps.set(n,r.allowProps),e.prototype.register.call(this,n,r.identifier)):e.prototype.register.call(this,n,r)},t.prototype.getAllowedProps=function(n){return this.classToAllowedProps.get(n)},t})(q3),dE=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o};function hE(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function pE(e,t){var n=hE(e);if("find"in n)return n.find(t);for(var r=n,a=0;a<r.length;a++){var o=r[a];if(t(o))return o}}function Bf(e,t){Object.entries(e).forEach(function(n){var r=dE(n,2),a=r[0],o=r[1];return t(o,a)})}function Wp(e,t){return e.indexOf(t)!==-1}function mb(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var mE=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return pE(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),gE=function(e){return Object.prototype.toString.call(e).slice(8,-1)},G3=function(e){return typeof e>"u"},vE=function(e){return e===null},ah=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},G1=function(e){return ah(e)&&Object.keys(e).length===0},nc=function(e){return Array.isArray(e)},yE=function(e){return typeof e=="string"},bE=function(e){return typeof e=="number"&&!isNaN(e)},xE=function(e){return typeof e=="boolean"},wE=function(e){return e instanceof RegExp},ih=function(e){return e instanceof Map},oh=function(e){return e instanceof Set},W3=function(e){return gE(e)==="Symbol"},SE=function(e){return e instanceof Date&&!isNaN(e.valueOf())},AE=function(e){return e instanceof Error},gb=function(e){return typeof e=="number"&&isNaN(e)},NE=function(e){return xE(e)||vE(e)||G3(e)||bE(e)||yE(e)||W3(e)},_E=function(e){return typeof e=="bigint"},CE=function(e){return e===1/0||e===-1/0},EE=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},PE=function(e){return e instanceof URL},V3=function(e){return e.replace(/\./g,"\\.")},k0=function(e){return e.map(String).map(V3).join(".")},Xd=function(e){for(var t=[],n="",r=0;r<e.length;r++){var a=e.charAt(r),o=a==="\\"&&e.charAt(r+1)===".";if(o){n+=".",r++;continue}var l=a===".";if(l){t.push(n),n="";continue}n+=a}var c=n;return t.push(c),t},W1=function(){return W1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},W1.apply(this,arguments)},V1=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},Y1=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};function uo(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Y3=[uo(G3,"undefined",function(){return null},function(){}),uo(_E,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),uo(SE,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),uo(AE,"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n}),uo(wE,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}
49),uo(oh,"set",function(e){return Y1([],V1(e.values()))},function(e){return new Set(e)}),uo(ih,"map",function(e){return Y1([],V1(e.entries()))},function(e){return new Map(e)}),uo(function(e){return gb(e)||CE(e)},"number",function(e){return gb(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),uo(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),uo(PE,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Im(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Q3=Im(function(e,t){if(W3(e)){var n=!!t.symbolRegistry.getIdentifier(e);return n}return!1},function(e,t){var n=t.symbolRegistry.getIdentifier(e);return["symbol",n]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),TE=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),$3=Im(EE,function(e){return["typed-array",e.constructor.name]},function(e){return Y1([],V1(e))},function(e,t){var n=TE[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function X3(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var K3=Im(X3,function(e,t){var n=t.classRegistry.getIdentifier(e.constructor);return["class",n]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return W1({},e);var r={};return n.forEach(function(a){r[a]=e[a]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),Z3=Im(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return["custom",n.name]},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return n.serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),jE=[K3,Q3,Z3,$3],vb=function(e,t){var n=mb(jE,function(a){return a.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=mb(Y3,function(a){return a.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},J3={};Y3.forEach(function(e){J3[e.annotation]=e});var OE=function(e,t,n){if(nc(t))switch(t[0]){case"symbol":return Q3.untransform(e,t,n);case"class":return K3.untransform(e,t,n);case"custom":return Z3.untransform(e,t,n);case"typed-array":return $3.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=J3[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},jf=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function e4(e){if(Wp(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Wp(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Wp(e,"constructor"))throw new Error("constructor is not allowed as a property")}var LE=function(e,t){e4(t);for(var n=0;n<t.length;n++){var r=t[n];if(oh(e))e=jf(e,+r);else if(ih(e)){var a=+r,o=+t[++n]==0?"key":"value",l=jf(e,a);switch(o){case"key":e=l;break;case"value":e=e.get(l);break}}else e=e[r]}return e},Q1=function(e,t,n){if(e4(t),t.length===0)return n(e);for(var r=e,a=0;a<t.length-1;a++){var o=t[a];if(nc(r)){var l=+o;r=r[l]}else if(ah(r))r=r[o];else if(oh(r)){var c=+o;r=jf(r,c)}else if(ih(r)){var f=a===t.length-2;if(f)break;var c=+o,d=+t[++a]==0?"key":"value",h=jf(r,c);switch(d){case"key":r=h;break;case"value":r=r.get(h);break}}}var m=t[t.length-1];if(nc(r)?r[+m]=n(r[+m]):ah(r)&&(r[m]=n(r[m])),oh(r)){var y=jf(r,+m),g=n(y);y!==g&&(r.delete(y),r.add(g))}if(ih(r)){var c=+t[t.length-2],N=jf(r,c),d=+m==0?"key":"value";switch(d){case"key":{var w=n(N);r.set(w,r.get(N)),w!==N&&r.delete(N);break}case"value":{r.set(N,n(r.get(N)));break}}}return e},al=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},Zl=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};
49function $1(e,t,n){if(n===void 0&&(n=[]),!!e){if(!nc(e)){Bf(e,function(l,c){return $1(l,t,Zl(Zl([],al(n)),al(Xd(c))))});return}var r=al(e,2),a=r[0],o=r[1];o&&Bf(o,function(l,c){$1(l,t,Zl(Zl([],al(n)),al(Xd(c))))}),t(a,n)}}function RE(e,t,n){return $1(t,function(r,a){e=Q1(e,a,function(o){return OE(o,r,n)})}),e}function DE(e,t){function n(l,c){var f=LE(e,Xd(c));l.map(Xd).forEach(function(d){e=Q1(e,d,function(){return f})})}if(nc(t)){var r=al(t,2),a=r[0],o=r[1];a.forEach(function(l){e=Q1(e,Xd(l),function(){return e})}),o&&Bf(o,n)}else Bf(t,n);return e}var ME=function(e,t){return ah(e)||nc(e)||ih(e)||oh(e)||X3(e,t)};function kE(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}function FE(e,t){var n={},r=void 0;return e.forEach(function(a){if(!(a.length<=1)){t||(a=a.map(function(f){return f.map(String)}).sort(function(f,d){return f.length-d.length}));var o=al(a),l=o[0],c=o.slice(1);l.length===0?r=c.map(k0):n[k0(l)]=c.map(k0)}}),r?G1(n)?[r]:[r,n]:G1(n)?void 0:n}var t4=function(e,t,n,r,a,o,l){var c;a===void 0&&(a=[]),o===void 0&&(o=[]),l===void 0&&(l=new Map);var f=NE(e);if(!f){kE(e,a,t);var d=l.get(e);if(d)return r?{transformedValue:null}:d}if(!ME(e,n)){var h=vb(e,n),m=h?{transformedValue:h.value,annotations:[h.type]}:{transformedValue:e};return f||l.set(e,m),m}if(Wp(o,e))return{transformedValue:null};var y=vb(e,n),g=(c=y?.value)!==null&&c!==void 0?c:e,N=nc(g)?[]:{},w={};Bf(g,function(_,z){var H=t4(_,t,n,r,Zl(Zl([],al(a)),[z]),Zl(Zl([],al(o)),[e]),l);N[z]=H.transformedValue,nc(H.annotations)?w[z]=H.annotations:ah(H.annotations)&&Bf(H.annotations,function(k,K){w[V3(z)+"."+K]=k})});var E=G1(w)?{transformedValue:N,annotations:y?[y.type]:void 0}:{transformedValue:N,annotations:y?[y.type,w]:w};return f||l.set(e,E),E};function n4(e){return Object.prototype.toString.call(e).slice(8,-1)}function yb(e){return n4(e)==="Array"}function IE(e){if(n4(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function UE(e,t,n,r,a){const o={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";o==="enumerable"&&(e[t]=n),a&&o==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function X1(e,t={}){if(yb(e))return e.map(a=>X1(a,t));if(!IE(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((a,o)=>{if(yb(t.props)&&!t.props.includes(o))return a;const l=e[o],c=X1(l,t);return UE(a,o,c,e,t.nonenumerable),a},{})}var Xc=function(){return Xc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Xc.apply(this,arguments)},BE=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},zE=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},So=(function(){function e(t){var n=t===void 0?{}:t,r=n.dedupe,a=r===void 0?!1:r;this.classRegistry=new fE,this.symbolRegistry=new q3(function(o){var l;return(l=o.description)!==null&&l!==void 0?l:""}),this.customTransformerRegistry=new mE,this.allowedErrorProps=[],this.dedupe=a}return e.prototype.serialize=function(t){var n=new Map,r=t4(t,n,this,this.dedupe),a={json:r.transformedValue};r.annotations&&(a.meta=Xc(Xc({},a.meta),{values:r.annotations}));var o=FE(n,this.dedupe);return o&&(a.meta=Xc(Xc({},a.meta),{referentialEqualities:o})),a},e.prototype.deserialize=function(t){var n=t.json,r=t.meta,a=X1(n);return r?.values&&(a=RE(a,r.values,this)),r?.referentialEqualities&&(a=DE(a,r.referentialEqualities)),a},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,n){this.classRegistry.register(t,n)},e.prototype.registerSymbol=function(t,n){this.symbolRegistry.register(t,n)},e.prototype.registerCustom=function(t,n){this.customTransformerRegistry.register(Xc({name:n},t))},e.prototype.allowErrorProps=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];
49(t=this.allowedErrorProps).push.apply(t,zE([],BE(n)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();So.serialize;So.deserialize;So.stringify;So.parse;So.registerClass;So.registerCustom;So.registerSymbol;So.allowErrorProps;var HE=(e,t,n,r,a,o,l,c)=>{let f=document.documentElement,d=["light","dark"];function h(g){(Array.isArray(e)?e:[e]).forEach(N=>{let w=N==="class",E=w&&o?a.map(_=>o[_]||_):a;w?(f.classList.remove(...E),f.classList.add(o&&o[g]?o[g]:g)):f.setAttribute(N,g)}),m(g)}function m(g){c&&d.includes(g)&&(f.style.colorScheme=g)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)h(r);else try{let g=localStorage.getItem(t)||n,N=l&&g==="system"?y():g;h(N)}catch{}},qE=F.createContext(void 0),GE={setTheme:e=>{},themes:[]},WE=()=>{var e;return(e=F.useContext(qE))!=null?e:GE};F.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:o,value:l,themes:c,nonce:f,scriptProps:d})=>{let h=JSON.stringify([n,t,o,e,c,l,r,a]).slice(1,-1);return F.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${HE.toString()})(${h}
49)`}})});var yh=H3();const r4=Om(yh);function VE(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const YE=e=>{switch(e){case"success":return XE;case"info":return ZE;case"warning":return KE;case"error":return JE;default:return null}},QE=Array(12).fill(0),$E=({visible:e,className:t})=>Ze.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Ze.createElement("div",{className:"sonner-spinner"},QE.map((n,r)=>Ze.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),XE=Ze.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ze.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"})),KE=Ze.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Ze.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=Ze.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ze.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"})),JE=Ze.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ze.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"})),e7=Ze.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"},Ze.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Ze.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),t7=()=>{const[e,t]=Ze.useState(document.hidden);return Ze.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let K1=1;class n7{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const 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;const{message:r,...a}=t,o=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:K1++,l=this.toasts.find(f=>f.id===o),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),l?this.toasts=this.toasts.map(f=>f.id===o?(this.publish({...f,...t,id:o,title:r}
vendor: 3,177 bytes, line 49
49),{...f,...t,id:o,dismissible:c,title:r}):f):this.addToast({title:r,...a,dismissible:c,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,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}));const a=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,l;const c=a.then(async d=>{if(l=["resolve",d],Ze.isValidElement(d))o=!1,this.create({id:r,type:"default",message:d});else if(s7(d)&&!d.ok){o=!1;const m=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,y=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,N=typeof m=="object"&&!Ze.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:y,...N})}else if(d instanceof Error){o=!1;const m=typeof n.error=="function"?await n.error(d):n.error,y=typeof n.description=="function"?await n.description(d):n.description,N=typeof m=="object"&&!Ze.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:y,...N})}else if(n.success!==void 0){o=!1;const m=typeof n.success=="function"?await n.success(d):n.success,y=typeof n.description=="function"?await n.description(d):n.description,N=typeof m=="object"&&!Ze.isValidElement(m)?m:{message:m};this.create({id:r,type:"success",description:y,...N})}}).catch(async d=>{if(l=["reject",d],n.error!==void 0){o=!1;const h=typeof n.error=="function"?await n.error(d):n.error,m=typeof n.description=="function"?await n.description(d):n.description,g=typeof h=="object"&&!Ze.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:m,...g})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((d,h)=>c.then(()=>l[0]==="reject"?h(l[1]):d(l[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:f}:Object.assign(r,{unwrap:f})},this.custom=(t,n)=>{const r=n?.id||K1++;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}}const ga=new n7,r7=(e,t)=>{const n=t?.id||K1++;return ga.addToast({title:e,...t,id:n}),n},s7=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",a7=r7,i7=()=>ga.toasts,o7=()=>ga.getActiveToasts(),yn=Object.assign(a7,{success:ga.success,info:ga.info,warning:ga.warning,error:ga.error,custom:ga.custom,message:ga.message,promise:ga.promise,dismiss:ga.dismiss,loading:ga.loading},{getHistory:i7,getToasts:o7});VE
vendor: 14,873 bytes, line 49
49("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left: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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");function
vendor: 2,448 bytes, line 49
49Np(e){return e.label!==void 0}const l7=3,c7="24px",u7="16px",bb=4e3,f7=356,d7=14,h7=45,p7=200;function fo(...e){return e.filter(Boolean).join(" ")}function m7(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const g7=e=>{var t,n,r,a,o,l,c,f,d;const{invert:h,toast:m,unstyled:y,interacting:g,setHeights:N,visibleToasts:w,heights:E,index:_,toasts:z,expanded:H,removeToast:k,defaultRichColors:K,closeButton:U,style:G,cancelButtonStyle:O,actionButtonStyle:R,className:Q="",descriptionClassName:j="",duration:D,position:$,gap:W,expandByDefault:te,classNames:L,icons:M,closeButtonAriaLabel:X="Close toast"}=e,[se,pe]=Ze.useState(null),[ee,P]=Ze.useState(null),[B,V]=Ze.useState(!1),[Y,oe]=Ze.useState(!1),[le,me]=Ze.useState(!1),[ge,Ae]=Ze.useState(!1),[Oe,Fe]=Ze.useState(!1),[Qe,Je]=Ze.useState(0),[ce,Ve]=Ze.useState(0),it=Ze.useRef(m.duration||D||bb),et=Ze.useRef(null),De=Ze.useRef(null),ot=_===0,Xe=_+1<=w,nt=m.type,tt=m.dismissible!==!1,ct=m.className||"",Lt=m.descriptionClassName||"",Ct=Ze.useMemo(()=>E.findIndex(Ie=>Ie.toastId===m.id)||0,[E,m.id]),Ht=Ze.useMemo(()=>{var Ie;return(Ie=m.closeButton)!=null?Ie:U},[m.closeButton,U]),vt=Ze.useMemo(()=>m.duration||D||bb,[m.duration,D]),lt=Ze.useRef(0),dt=Ze.useRef(0),ut=Ze.useRef(0),Jt=Ze.useRef(null),[Ft,mt]=$.split("-"),Et=Ze.useMemo(()=>E.reduce((Ie,at,rt)=>rt>=Ct?Ie:Ie+at.height,0),[E,Ct]),qt=t7(),_t=m.invert||h,pn=nt==="loading";dt.current=Ze.useMemo(()=>Ct*W+Et,[Ct,Et]),Ze.useEffect(()=>{it.current=vt},[vt]),Ze.useEffect(()=>{V(!0)},[]),Ze.useEffect(()=>{const Ie=De.current;if(Ie){const at=Ie.getBoundingClientRect().height;return Ve(at),N(rt=>[{toastId:m.id,height:at,position:m.position},...rt]),()=>N(rt=>rt.filter(Rt=>Rt.toastId!==m.id))}},[N,m.id]),Ze.useLayoutEffect(()=>{if(!B)return;const Ie=De.current,at=Ie.style.height;Ie.style.height="auto";const rt=Ie.getBoundingClientRect().height;Ie.style.height=at,Ve(rt),N(Rt=>Rt.find(Ke=>Ke.toastId===m.id)?Rt.map(Ke=>Ke.toastId===m.id?{...Ke,height:rt}:Ke):[{toastId:m.id,height:rt,position:m.position},...Rt])},[B,m.title,m.description,N,m.id,m.jsx,m.action,m.cancel]);const yt=Ze.useCallback(()=>{oe(!0),Je(dt.current),N(Ie=>Ie.filter(at=>at.toastId!==m.id)),setTimeout(()=>{k(m)},p7)},[m,k,N,dt]);Ze.useEffect(()=>{if(m.promise&&nt==="loading"||m.duration===1/0||m.type==="loading")return;let Ie;return H||g||qt?(()=>{if(ut.current<lt.current){const Rt=new Date().getTime()-lt.current;it.current=it.current-Rt}
vendor: 20,717 bytes, line 49
49ut.current=new Date().getTime()})():(()=>{it.current!==1/0&&(lt.current=new Date().getTime(),Ie=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),yt()},it.current))})(),()=>clearTimeout(Ie)},[H,g,m,nt,qt,yt]),Ze.useEffect(()=>{m.delete&&(yt(),m.onDismiss==null||m.onDismiss.call(m,m))},[yt,m.delete]);function jt(){var Ie;if(M?.loading){var at;return Ze.createElement("div",{className:fo(L?.loader,m==null||(at=m.classNames)==null?void 0:at.loader,"sonner-loader"),"data-visible":nt==="loading"},M.loading)}return Ze.createElement($E,{className:fo(L?.loader,m==null||(Ie=m.classNames)==null?void 0:Ie.loader),visible:nt==="loading"})}const wn=m.icon||M?.[nt]||YE(nt);var ye,Ue;return Ze.createElement("li",{tabIndex:0,ref:De,className:fo(Q,ct,L?.toast,m==null||(t=m.classNames)==null?void 0:t.toast,L?.default,L?.[nt],m==null||(n=m.classNames)==null?void 0:n[nt]),"data-sonner-toast":"","data-rich-colors":(ye=m.richColors)!=null?ye:K,"data-styled":!(m.jsx||m.unstyled||y),"data-mounted":B,"data-promise":!!m.promise,"data-swiped":Oe,"data-removed":Y,"data-visible":Xe,"data-y-position":Ft,"data-x-position":mt,"data-index":_,"data-front":ot,"data-swiping":le,"data-dismissible":tt,"data-type":nt,"data-invert":_t,"data-swipe-out":ge,"data-swipe-direction":ee,"data-expanded":!!(H||te&&B),"data-testid":m.testId,style:{"--index":_,"--toasts-before":_,"--z-index":z.length-_,"--offset":`${Y?Qe:dt.current}px`,"--initial-height":te?"auto":`${ce}px`,...G,...m.style},onDragEnd:()=>{me(!1),pe(null),Jt.current=null},onPointerDown:Ie=>{Ie.button!==2&&(pn||!tt||(et.current=new Date,Je(dt.current),Ie.target.setPointerCapture(Ie.pointerId),Ie.target.tagName!=="BUTTON"&&(me(!0),Jt.current={x:Ie.clientX,y:Ie.clientY})))},onPointerUp:()=>{var Ie,at,rt;if(ge||!tt)return;Jt.current=null;const Rt=Number(((Ie=De.current)==null?void 0:Ie.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Bt=Number(((at=De.current)==null?void 0:at.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ke=new Date().getTime()-((rt=et.current)==null?void 0:rt.getTime()),Gt=se==="x"?Rt:Bt,on=Math.abs(Gt)/Ke;if(Math.abs(Gt)>=h7||on>.11){Je(dt.current),m.onDismiss==null||m.onDismiss.call(m,m),P(se==="x"?Rt>0?"right":"left":Bt>0?"down":"up"),yt(),Ae(!0);return}else{var en,$t;(en=De.current)==null||en.style.setProperty("--swipe-amount-x","0px"),($t=De.current)==null||$t.style.setProperty("--swipe-amount-y","0px")}Fe(!1),me(!1),pe(null)},onPointerMove:Ie=>{var at,rt,Rt;if(!Jt.current||!tt||((at=window.getSelection())==null?void 0:at.toString().length)>0)return;const Ke=Ie.clientY-Jt.current.y,Gt=Ie.clientX-Jt.current.x;var on;const en=(on=e.swipeDirections)!=null?on:m7($);!se&&(Math.abs(Gt)>1||Math.abs(Ke)>1)&&pe(Math.abs(Gt)>Math.abs(Ke)?"x":"y");let $t={x:0,y:0};const Qt=fn=>1/(1.5+Math.abs(fn)/20);if(se==="y"){if(en.includes("top")||en.includes("bottom"))if(en.includes("top")&&Ke<0||en.includes("bottom")&&Ke>0)$t.y=Ke;else{const fn=Ke*Qt(Ke);$t.y=Math.abs(fn)<Math.abs(Ke)?fn:Ke}}else if(se==="x"&&(en.includes("left")||en.includes("right")))if(en.includes("left")&&Gt<0||en.includes("right")&&Gt>0)$t.x=Gt;else{const fn=Gt*Qt(Gt);$t.x=Math.abs(fn)<Math.abs(Gt)?fn:Gt}(Math.abs($t.x)>0||Math.abs($t.y)>0)&&Fe(!0),(rt=De.current)==null||rt.style.setProperty("--swipe-amount-x",`${$t.x}px`),(Rt=De.current)==null||Rt.style.setProperty("--swipe-amount-y",`${$t.y}px`)}},Ht&&!m.jsx&&nt!=="loading"?Ze.createElement("button",{"aria-label":X,"data-disabled":pn,"data-close-button":!0,onClick:pn||!tt?()=>{}:()=>{yt(),m.onDismiss==null||m.onDismiss.call(m,m)},className:fo(L?.closeButton,m==null||(r=m.classNames)==null?void 0:r.closeButton)},(Ue=M?.close)!=null?Ue:e7):null,(nt||m.icon||m.promise)&&m.icon!==null&&(M?.[nt]!==null||m.icon)?Ze.createElement("div",{"data-icon":"",className:fo(L?.icon,m==null||(a=m.classNames)==null?void 0:a.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||jt():null,m.type!=="loading"?wn:null):null,Ze.createElement("div",{"data-content":"",className:fo(L?.content,m==null||(o=m.classNames)==null?void 0:o.content)},Ze.createElement("div",{"data-title":"",className:fo(L?.title,m==null||(l=m.classNames)==null?void 0:l.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?Ze.createElement("div",{"data-description":"",className:fo(j,Lt,L?.description,m==null||(c=m.classNames)==null?void 0:c.description)},typeof m.description=="function"?m.description():m.description):null),Ze.isValidElement(m.cancel)?m.cancel:m.cancel&&Np(m.cancel)?Ze.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||O,onClick:Ie=>{Np(m.cancel)&&tt&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,Ie),yt())},className:fo(L?.cancelButton,m==null||(f=m.classNames)==null?void 0:f.cancelButton)},m.cancel.label):null,Ze.isValidElement(m.action)?m.action:m.action&&Np(m.action)?Ze.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||R,onClick:Ie=>{Np(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,Ie),!Ie.defaultPrevented&&yt())},className:fo(L?.actionButton,m==null||(d=m.classNames)==null?void 0:d.actionButton)},m.action.label):null)};function xb(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function v7(e,t){const n={};return[e,t].forEach((r,a)=>{const o=a===1,l=o?"--mobile-offset":"--offset",c=o?u7:c7;function f(d){["top","right","bottom","left"].forEach(h=>{n[`${l}-${h}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?f(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${l}-${d}`]=c:n[`${l}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):f(c)}),n}const y7=Ze.forwardRef(function(t,n){const{id:r,invert:a,position:o="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:f,className:d,offset:h,mobileOffset:m,theme:y="light",richColors:g,duration:N,style:w,visibleToasts:E=l7,toastOptions:_,dir:z=xb(),gap:H=d7,icons:k,containerAriaLabel:K="Notifications"}=t,[U,G]=Ze.useState([]),O=Ze.useMemo(()=>r?U.filter(B=>B.toasterId===r):U.filter(B=>!B.toasterId),[U,r]),R=Ze.useMemo(()=>Array.from(new Set([o].concat(O.filter(B=>B.position).map(B=>B.position)))),[O,o]),[Q,j]=Ze.useState([]),[D,$]=Ze.useState(!1),[W,te]=Ze.useState(!1),[L,M]=Ze.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=Ze.useRef(null),se=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),pe=Ze.useRef(null),ee=Ze.useRef(!1),P=Ze.useCallback(B=>{G(V=>{var Y;return(Y=V.find(oe=>oe.id===B.id))!=null&&Y.delete||ga.dismiss(B.id),V.filter(({id:oe})=>oe!==B.id)})},[]);return Ze.useEffect(()=>ga.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{G(V=>V.map(Y=>Y.id===B.id?{...Y,delete:!0}:Y))});return}setTimeout(()=>{r4.flushSync(()=>{G(V=>{const Y=V.findIndex(oe=>oe.id===B.id);return Y!==-1?[...V.slice(0,Y),{...V[Y],...B},...V.slice(Y+1)]:[B,...V]})})})}),[U]),Ze.useEffect(()=>{if(y!=="system"){M(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?M("dark"):M("light")),typeof window>"u")return;const B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:V})=>{M(V?"dark":"light")})}catch{B.addListener(({matches:Y})=>{try{M(Y?"dark":"light")}catch(oe){console.error(oe)}})}},[y]),Ze.useEffect(()=>{U.length<=1&&$(!1)},[U]),Ze.useEffect(()=>{const B=V=>{var Y;if(l.every(me=>V[me]||V.code===me)){var le;$(!0),(le=X.current)==null||le.focus()}V.code==="Escape"&&(document.activeElement===X.current||(Y=X.current)!=null&&Y.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[l]),Ze.useEffect(()=>{if(X.current)return()=>{pe.current&&(pe.current.focus({preventScroll:!0}),pe.current=null,ee.current=!1)}},[X.current]),Ze.createElement("section",{ref:n,"aria-label":`${K} ${se}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((B,V)=>{var Y;const[oe,le]=B.split("-");return O.length?Ze.createElement("ol",{key:B,dir:z==="auto"?xb():z,tabIndex:-1,ref:X,className:d,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":oe,"data-x-position":le,style:{"--front-toast-height":`${((Y=Q[0])==null?void 0:Y.height)||0}px`,"--width":`${f7}px`,"--gap":`${H}px`,...w,...v7(h,m)},onBlur:me=>{ee.current&&!me.currentTarget.contains(me.relatedTarget)&&(ee.current=!1,pe.current&&(pe.current.focus({preventScroll:!0}),pe.current=null))},onFocus:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||ee.current||(ee.current=!0,pe.current=me.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{W||$(!1)},onDragEnd:()=>$(!1),onPointerDown:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||te(!0)},onPointerUp:()=>te(!1)},O.filter(me=>!me.position&&V===0||me.position===B).map((me,ge)=>{var Ae,Oe;return Ze.createElement(g7,{key:me.id,icons:k,index:ge,toast:me,defaultRichColors:g,duration:(Ae=_?.duration)!=null?Ae:N,className:_?.className,descriptionClassName:_?.descriptionClassName,invert:a,visibleToasts:E,closeButton:(Oe=_?.closeButton)!=null?Oe:f,interacting:W,position:B,style:_?.style,unstyled:_?.unstyled,classNames:_?.classNames,cancelButtonStyle:_?.cancelButtonStyle,actionButtonStyle:_?.actionButtonStyle,closeButtonAriaLabel:_?.closeButtonAriaLabel,removeToast:P,toasts:O.filter(Fe=>Fe.position==me.position),heights:Q.filter(Fe=>Fe.position==me.position),setHeights:j,expandByDefault:c,gap:H,expanded:D,swipeDirections:t.swipeDirections})})):null}))}),b7=({...e})=>{const{theme:t="system"}=WE();return x.jsx(y7,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function Xt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function wb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ru(...e){return t=>{let n=!1;const r=e.map(a=>{const o=wb(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():wb(e[a],null)}}}}function Vn(...e){return F.useCallback(ru(...e),e)}function x7(e,t){const n=F.createContext(t),r=o=>{const{children:l,...c}=o,f=F.useMemo(()=>c,Object.values(c));return x.jsx(n.Provider,{value:f,children:l})};r.displayName=e+"Provider";function a(o){const l=F.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,a]}function zi(e,t=[]){let n=[];function r(o,l){const c=F.createContext(l),f=n.length;n=[...n,l];const d=m=>{const{scope:y,children:g,...N}=m,w=y?.[e]?.[f]||c,E=F.useMemo(()=>N,Object.values(N));return x.jsx(w.Provider,{value:E,children:g})};d.displayName=o+"Provider";function h(m,y){const g=y?.[e]?.[f]||c,N=F.useContext(g);if(N)return N;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${o}\``)}return[d,h]}const a=()=>{const o=n.map(l=>F.createContext(l));return function(c){const f=c?.[e]||o;return F.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return a.scopeName=e,[r,w7(a,...t)]}function w7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const l=r.reduce((c,{useScope:f,scopeName:d})=>{const m=f(o)[`__scope${d}`];return{...c,...m}},{});return F.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function su(e){const t=S7(e),n=F.forwardRef((r,a)=>{const{children:o,...l}=r,c=F.Children.toArray(o),f=c.find(N7);if(f){const d=f.props.children,h=c.map(m=>m===f?F.Children.count(d)>1?F.Children.only(null):F.isValidElement(d)?d.props.children:null:m);return x.jsx(t,{...l,ref:a,children:F.isValidElement(d)?F.cloneElement(d,void 0,h):null})}return x.jsx(t,{...l,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}var s4=su("Slot");function S7(e){const t=F.forwardRef((n,r)=>{const{children:a,...o}=n;if(F.isValidElement(a)){const l=C7(a),c=_7(o,a.props);return a.type!==F.Fragment&&(c.ref=r?ru(r,l):l),F.cloneElement(a,c)}return F.Children.count(a)>1?F.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var a4=Symbol("radix.slottable");function A7(e){const t=({children:n})=>x.jsx(x.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=a4,t}function N7(e){return F.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===a4}function _7(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...c)=>{const f=o(...c);return a(...c),f}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function C7(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var E7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Yt=E7.reduce((e,t)=>{const n=su(`Primitive.${t}`),r=F.forwardRef((a,o)=>{const{asChild:l,...c}=a,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(f,{...c,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function P7(e,t){e&&yh.flushSync(()=>e.dispatchEvent(t))}function rc(e){const t=F.useRef(e);return F.useEffect(()=>{t.current=e}),F.useMemo(()=>(...n)=>t.current?.(...n),[])}function T7(e,t=globalThis?.document){const n=rc(e);F.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var j7="DismissableLayer",Z1="dismissableLayer.update",O7="dismissableLayer.pointerDownOutside",L7="dismissableLayer.focusOutside",Sb,i4=F.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bh=F.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:l,onDismiss:c,...f}=e,d=F.useContext(i4),[h,m]=F.useState(null),y=h?.ownerDocument??globalThis?.document,[,g]=F.useState({}),N=Vn(t,G=>m(G)),w=Array.from(d.layers),[E]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),_=w.indexOf(E),z=h?w.indexOf(h):-1,H=d.layersWithOutsidePointerEventsDisabled.size>0,k=z>=_,K=M7(G=>{const O=G.target,R=[...d.branches].some(Q=>Q.contains(O));!k||R||(a?.(G),l?.(G),G.defaultPrevented||c?.())},y),U=k7(G=>{const O=G.target;[...d.branches].some(Q=>Q.contains(O))||(o?.(G),l?.(G),G.defaultPrevented||c?.())},y);return T7(G=>{z===d.layers.size-1&&(r?.(G),!G.defaultPrevented&&c&&(G.preventDefault(),c()))},y),F.useEffect(()=>{if(h)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Sb=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),Ab(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=Sb)}},[h,y,n,d]),F.useEffect(()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),Ab())},[h,d]),F.useEffect(()=>{const G=()=>g({});return document.addEventListener(Z1,G),()=>document.removeEventListener(Z1,G)},[]),x.jsx(Yt.div,{...f,ref:N,style:{pointerEvents:H?k?"auto":"none":void 0,...e.style},onFocusCapture:Xt(e.onFocusCapture,U.onFocusCapture),onBlurCapture:Xt(e.onBlurCapture,U.onBlurCapture),onPointerDownCapture:Xt(e.onPointerDownCapture,K.onPointerDownCapture)})});bh.displayName=j7;var R7="DismissableLayerBranch",D7=F.forwardRef((e,t)=>{const n=F.useContext(i4),r=F.useRef(null),a=Vn(t,r);return F.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),x.jsx(Yt.div,{...e,ref:a})});D7.displayName=R7;function M7(e,t=globalThis?.document){const n=rc(e),r=F.useRef(!1),a=F.useRef(()=>{});return F.useEffect(()=>{const o=c=>{if(c.target&&!r.current){let f=function(){o4(O7,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function k7(e,t=globalThis?.document){const n=rc(e),r=F.useRef(!1);return F.useEffect(()=>{const a=o=>{o.target&&!r.current&&o4(L7,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ab(){const e=new CustomEvent(Z1);document.dispatchEvent(e)}function o4(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?P7(a,o):a.dispatchEvent(o)}var Us=globalThis?.document?F.useLayoutEffect:()=>{},F7=Rm[" useId ".trim().toString()]||(()=>{}),I7=0;function Xs(e){const[t,n]=F.useState(F7());return Us(()=>{n(r=>r??String(I7++))},[e]),e||(t?`radix-${t}`:"")}const U7=["top","right","bottom","left"],sc=Math.min,Fa=Math.max,lm=Math.round,_p=Math.floor,xo=e=>({x:e,y:e}),B7={left:"right",right:"left",bottom:"top",top:"bottom"},z7={start:"end",end:"start"};function J1(e,t,n){return Fa(e,sc(t,n))}function ll(e,t){return typeof e=="function"?e(t):e}function cl(e){return e.split("-")[0]}function Wf(e){return e.split("-")[1]}function Gv(e){return e==="x"?"y":"x"}function Wv(e){return e==="y"?"height":"width"}const H7=new Set(["top","bottom"]);function yo(e){return H7.has(cl(e))?"y":"x"}function Vv(e){return Gv(yo(e))}function q7(e,t,n){n===void 0&&(n=!1);const r=Wf(e),a=Vv(e),o=Wv(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=cm(l)),[l,cm(l)]}function G7(e){const t=cm(e);return[ev(e),t,ev(t)]}function ev(e){return e.replace(/start|end/g,t=>z7[t])}const Nb=["left","right"],_b=["right","left"],W7=["top","bottom"],V7=["bottom","top"];function Y7(e,t,n){switch(e){case"top":case"bottom":return n?t?_b:Nb:t?Nb:_b;case"left":case"right":return t?W7:V7;default:return[]}}function Q7(e,t,n,r){const a=Wf(e);let o=Y7(cl(e),n==="start",r);return a&&(o=o.map(l=>l+"-"+a),t&&(o=o.concat(o.map(ev)))),o}function cm(e){return e.replace(/left|right|bottom|top/g,t=>B7[t])}function $7(e){return{top:0,right:0,bottom:0,left:0,...e}}function l4(e){return typeof e!="number"?$7(e):{top:e,right:e,bottom:e,left:e}}function um(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Cb(e,t,n){let{reference:r,floating:a}=e;const o=yo(t),l=Vv(t),c=Wv(l),f=cl(t),d=o==="y",h=r.x+r.width/2-a.width/2,m=r.y+r.height/2-a.height/2,y=r[c]/2-a[c]/2;let g;switch(f){case"top":g={x:h,y:r.y-a.height};break;case"bottom":g={x:h,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:m};break;case"left":g={x:r.x-a.width,y:m};break;default:g={x:r.x,y:r.y}}switch(Wf(t)){case"start":g[l]-=y*(n&&d?-1:1);break;case"end":g[l]+=y*(n&&d?-1:1);break}return g}const X7=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:l}=n,c=o.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:h,y:m}=Cb(d,r,f),y=r,g={},N=0;for(let w=0;w<c.length;w++){const{name:E,fn:_}=c[w],{x:z,y:H,data:k,reset:K}=await _({x:h,y:m,initialPlacement:r,placement:y,strategy:a,middlewareData:g,rects:d,platform:l,elements:{reference:e,floating:t}});h=z??h,m=H??m,g={...g,[E]:{...g[E],...k}},K&&N<=50&&(N++,typeof K=="object"&&(K.placement&&(y=K.placement),K.rects&&(d=K.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):K.rects),{x:h,y:m}=Cb(d,y,f)),w=-1)}return{x:h,y:m,placement:y,strategy:a,middlewareData:g}};async function lh(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:l,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:y=!1,padding:g=0}=ll(t,e),N=l4(g),E=c[y?m==="floating"?"reference":"floating":m],_=um(await o.getClippingRect
vendor: 9,715 bytes, line 49
49({element:(n=await(o.isElement==null?void 0:o.isElement(E)))==null||n?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:f})),z=m==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,H=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),k=await(o.isElement==null?void 0:o.isElement(H))?await(o.getScale==null?void 0:o.getScale(H))||{x:1,y:1}:{x:1,y:1},K=um(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:z,offsetParent:H,strategy:f}):z);return{top:(_.top-K.top+N.top)/k.y,bottom:(K.bottom-_.bottom+N.bottom)/k.y,left:(_.left-K.left+N.left)/k.x,right:(K.right-_.right+N.right)/k.x}}const K7=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:l,elements:c,middlewareData:f}=t,{element:d,padding:h=0}=ll(e,t)||{};if(d==null)return{};const m=l4(h),y={x:n,y:r},g=Vv(a),N=Wv(g),w=await l.getDimensions(d),E=g==="y",_=E?"top":"left",z=E?"bottom":"right",H=E?"clientHeight":"clientWidth",k=o.reference[N]+o.reference[g]-y[g]-o.floating[N],K=y[g]-o.reference[g],U=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let G=U?U[H]:0;(!G||!await(l.isElement==null?void 0:l.isElement(U)))&&(G=c.floating[H]||o.floating[N]);const O=k/2-K/2,R=G/2-w[N]/2-1,Q=sc(m[_],R),j=sc(m[z],R),D=Q,$=G-w[N]-j,W=G/2-w[N]/2+O,te=J1(D,W,$),L=!f.arrow&&Wf(a)!=null&&W!==te&&o.reference[N]/2-(W<D?Q:j)-w[N]/2<0,M=L?W<D?W-D:W-$:0;return{[g]:y[g]+M,data:{[g]:te,centerOffset:W-te-M,...L&&{alignmentOffset:M}},reset:L}}}),Z7=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:l,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:w=!0,...E}=ll(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=cl(a),z=yo(c),H=cl(c)===c,k=await(f.isRTL==null?void 0:f.isRTL(d.floating)),K=y||(H||!w?[cm(c)]:G7(c)),U=N!=="none";!y&&U&&K.push(...Q7(c,w,N,k));const G=[c,...K],O=await lh(t,E),R=[];let Q=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&R.push(O[_]),m){const W=q7(a,l,k);R.push(O[W[0]],O[W[1]])}if(Q=[...Q,{placement:a,overflows:R}],!R.every(W=>W<=0)){var j,D;const W=(((j=o.flip)==null?void 0:j.index)||0)+1,te=G[W];if(te&&(!(m==="alignment"?z!==yo(te):!1)||Q.every(X=>yo(X.placement)===z?X.overflows[0]>0:!0)))return{data:{index:W,overflows:Q},reset:{placement:te}};let L=(D=Q.filter(M=>M.overflows[0]<=0).sort((M,X)=>M.overflows[1]-X.overflows[1])[0])==null?void 0:D.placement;if(!L)switch(g){case"bestFit":{var $;const M=($=Q.filter(X=>{if(U){const se=yo(X.placement);return se===z||se==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(se=>se>0).reduce((se,pe)=>se+pe,0)]).sort((X,se)=>X[1]-se[1])[0])==null?void 0:$[0];M&&(L=M);break}case"initialPlacement":L=c;break}if(a!==L)return{reset:{placement:L}}}return{}}}};function Eb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pb(e){return U7.some(t=>e[t]>=0)}const J7=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=ll(e,t);switch(r){case"referenceHidden":{const o=await lh(t,{...a,elementContext:"reference"}),l=Eb(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Pb(l)}}}case"escaped":{const o=await lh(t,{...a,altBoundary:!0}),l=Eb(o,n.floating);return{data:{escapedOffsets:l,escaped:Pb(l)}}}default:return{}}}}},c4=new Set(["left","top"]);async function eP(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=cl(n),c=Wf(n),f=yo(n)==="y",d=c4.has(l)?-1:1,h=o&&f?-1:1,m=ll(t,e);let{mainAxis:y,crossAxis:g,alignmentAxis:N}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof N=="number"&&(g=c==="end"?N*-1:N),f?{x:g*h,y:y*d}:{x:y*d,y:g*h}}const tP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:l,middlewareData:c}=t,f=await eP(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:a+f.x,y:o+f.y,data:{...f,placement:l}}}}},nP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:E=>{let{x:_,y:z}=E;return{x:_,y:z}}},...f}=ll(e,t),d={x:n,y:r},h=await lh(t,f),m=yo(cl(a)),y=Gv(m);let g=d[y],N=d[m];if(o){const E=y==="y"?"top":"left",_=y==="y"?"bottom":"right",z=g+h[E],H=g-h[_];g=J1(z,g,H)}if(l){const E=m==="y"?"top":"left",_=m==="y"?"bottom":"right",z=N+h[E],H=N-h[_];N=J1(z,N,H)}const w=c.fn({...t,[y]:g,[m]:N});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[y]:o,[m]:l}}}}}},rP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=ll(e,t),h={x:n,y:r},m=yo(a),y=Gv(m);let g=h[y],N=h[m];const w=ll(c,t),E=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){const H=y==="y"?"height":"width",k=o.reference[y]-o.floating[H]+E.mainAxis,K=o.reference[y]+o.reference[H]-E.mainAxis;g<k?g=k:g>K&&(g=K)}if(d){var _,z;const H=y==="y"?"width":"height",k=c4.has(cl(a)),K=o.reference[m]-o.floating[H]+(k&&((_=l.offset)==null?void 0:_[m])||0)+(k?0:E.crossAxis),U=o.reference[m]+o.reference[H]+(k?0:((z=l.offset)==null?void 0:z[m])||0)-(k?E.crossAxis:0);N<K?N=K:N>U&&(N=U)}return{[y]:g,[m]:N}}}},sP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:l,elements:c}=t,{apply:f=()=>{},...d}=ll(e,t),h=await lh(t,d),m=cl(a),y=Wf(a),g=yo(a)==="y",{width:N,height:w}=o.floating;let E,_;m==="top"||m==="bottom"?(E=m,_=y===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(_=m,E=y==="end"?"top":"bottom");const z=w-h.top-h.bottom,H=N-h.left-h.right,k=sc(w-h[E],z),K=sc(N-h[_],H),U=!t.middlewareData.shift;let G=k,O=K;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=H),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(G=z),U&&!y){const Q=Fa(h.left,0),j=Fa(h.right,0),D=Fa(h.top,0),$=Fa(h.bottom,0);g?O=N-2*(Q!==0||j!==0?Q+j:Fa(h.left,h.right)):G=w-2*(D!==0||$!==0?D+$:Fa(h.top,h.bottom))}await f({...t,availableWidth:O,availableHeight:G});const R=await l.getDimensions(c.floating);return N!==R.width||w!==R.height?{reset:{rects:!0}}:{}}}};function Um(){return typeof window<"u"}function Vf(e){return u4(e)?(e.nodeName||"").toLowerCase():"#document"}function Ba(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _o(e){var t;return(t=(u4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function u4(e){return Um()?e instanceof Node||e instanceof Ba(e).Node:!1}function Fi(e){return Um()?e instanceof Element||e instanceof Ba(e).Element:!1}function Ao(e){return Um()?e instanceof HTMLElement||e instanceof Ba(e).HTMLElement:!1}function Tb(e){return!Um()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ba(e).ShadowRoot}const aP=new Set(["inline","contents"]);function xh(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Ii(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!aP.has(a)}const iP=new Set(["table","td","th"]);function oP(e){return iP.has(Vf(e))}const lP=[":popover-open",":modal"];function Bm(e){return lP.some(t=>{try{return e.matches(t)}catch{return!1}})}const cP=["transform","translate","scale","rotate","perspective"],uP=["transform","translate","scale","rotate","perspective","filter"],fP=["paint","layout","strict","content"];function Yv(e){const t=Qv(),n=Fi(e)?Ii(e):e;return cP.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)||uP.some(r=>(n.willChange||"").includes(r))||fP.some(r=>(n.contain||"").includes(r))}function dP(e){let t=ac(e);for(;Ao(t)&&!zf(t);){if(Yv(t))return t;if(Bm(t))return null;t=ac(t)}return null}function Qv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hP=new Set(["html","body","#document"]);function zf(e){return hP.has(Vf(e))}function Ii(e){return Ba(e).getComputedStyle(e)}function zm(e){return Fi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ac(e){if(Vf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tb(e)&&e.host||_o(e);return Tb(t)?t.host:t}function f4(e){const t=ac(e);return zf(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ao(t)&&xh(t)?t:f4(t)}function ch(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=f4(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),l=Ba(a);if(o){const c=tv(l);return t.concat(l,l.visualViewport||[],xh(a)?a:[],c&&n?ch(c):[])}return t.concat(a,ch(a,[],n))}function tv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function d4(e){const t=Ii(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Ao(e),o=a?e.offsetWidth:n,l=a?e.offsetHeight:r,c=lm(n)!==o||lm(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function $v(e){return Fi(e)?e:e.contextElement}function Rf(e){const t=$v(e);if(!Ao(t))return xo(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=d4(t);let l=(o?lm(n.width):n.width)/r,c=(o?lm(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const pP=xo(0);function h4(e){const t=Ba(e);
vendor: 15,573 bytes, line 49
49return!Qv()||!t.visualViewport?pP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ba(e)?!1:t}function au(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=$v(e);let l=xo(1);t&&(r?Fi(r)&&(l=Rf(r)):l=Rf(e));const c=mP(o,n,r)?h4(o):xo(0);let f=(a.left+c.x)/l.x,d=(a.top+c.y)/l.y,h=a.width/l.x,m=a.height/l.y;if(o){const y=Ba(o),g=r&&Fi(r)?Ba(r):r;let N=y,w=tv(N);for(;w&&r&&g!==N;){const E=Rf(w),_=w.getBoundingClientRect(),z=Ii(w),H=_.left+(w.clientLeft+parseFloat(z.paddingLeft))*E.x,k=_.top+(w.clientTop+parseFloat(z.paddingTop))*E.y;f*=E.x,d*=E.y,h*=E.x,m*=E.y,f+=H,d+=k,N=Ba(w),w=tv(N)}}return um({width:h,height:m,x:f,y:d})}function Hm(e,t){const n=zm(e).scrollLeft;return t?t.left+n:au(_o(e)).left+n}function p4(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Hm(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function gP(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",l=_o(r),c=t?Bm(t.floating):!1;if(r===l||c&&o)return n;let f={scrollLeft:0,scrollTop:0},d=xo(1);const h=xo(0),m=Ao(r);if((m||!m&&!o)&&((Vf(r)!=="body"||xh(l))&&(f=zm(r)),Ao(r))){const g=au(r);d=Rf(r),h.x=g.x+r.clientLeft,h.y=g.y+r.clientTop}const y=l&&!m&&!o?p4(l,f):xo(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+h.x+y.x,y:n.y*d.y-f.scrollTop*d.y+h.y+y.y}}function vP(e){return Array.from(e.getClientRects())}function yP(e){const t=_o(e),n=zm(e),r=e.ownerDocument.body,a=Fa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Fa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Hm(e);const c=-n.scrollTop;return Ii(r).direction==="rtl"&&(l+=Fa(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:l,y:c}}const jb=25;function bP(e,t){const n=Ba(e),r=_o(e),a=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,c=0,f=0;if(a){o=a.width,l=a.height;const h=Qv();(!h||h&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}const d=Hm(r);if(d<=0){const h=r.ownerDocument,m=h.body,y=getComputedStyle(m),g=h.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,N=Math.abs(r.clientWidth-m.clientWidth-g);N<=jb&&(o-=N)}else d<=jb&&(o+=d);return{width:o,height:l,x:c,y:f}}const xP=new Set(["absolute","fixed"]);function wP(e,t){const n=au(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=Ao(e)?Rf(e):xo(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,f=a*o.x,d=r*o.y;return{width:l,height:c,x:f,y:d}}function Ob(e,t,n){let r;if(t==="viewport")r=bP(e,n);else if(t==="document")r=yP(_o(e));else if(Fi(t))r=wP(t,n);else{const a=h4(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return um(r)}function m4(e,t){const n=ac(e);return n===t||!Fi(n)||zf(n)?!1:Ii(n).position==="fixed"||m4(n,t)}function SP(e,t){const n=t.get(e);if(n)return n;let r=ch(e,[],!1).filter(c=>Fi(c)&&Vf(c)!=="body"),a=null;const o=Ii(e).position==="fixed";let l=o?ac(e):e;for(;Fi(l)&&!zf(l);){const c=Ii(l),f=Yv(l);!f&&c.position==="fixed"&&(a=null),(o?!f&&!a:!f&&c.position==="static"&&!!a&&xP.has(a.position)||xh(l)&&!f&&m4(e,l))?r=r.filter(h=>h!==l):a=c,l=ac(l)}return t.set(e,r),r}function AP(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Bm(t)?[]:SP(t,this._c):[].concat(n),r],c=l[0],f=l.reduce((d,h)=>{const m=Ob(t,h,a);return d.top=Fa(m.top,d.top),d.right=sc(m.right,d.right),d.bottom=sc(m.bottom,d.bottom),d.left=Fa(m.left,d.left),d},Ob(t,c,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function NP(e){const{width:t,height:n}=d4(e);return{width:t,height:n}}function _P(e,t,n){const r=Ao(t),a=_o(t),o=n==="fixed",l=au(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const f=xo(0);function d(){f.x=Hm(a)}if(r||!r&&!o)if((Vf(t)!=="body"||xh(a))&&(c=zm(t)),r){const g=au(t,!0,o,t);f.x=g.x+t.clientLeft,f.y=g.y+t.clientTop}else a&&d();o&&!r&&a&&d();const h=a&&!r&&!o?p4(a,c):xo(0),m=l.left+c.scrollLeft-f.x-h.x,y=l.top+c.scrollTop-f.y-h.y;return{x:m,y,width:l.width,height:l.height}}function F0(e){return Ii(e).position==="static"}function Lb(e,t){if(!Ao(e)||Ii(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _o(e)===n&&(n=n.ownerDocument.body),n}function g4(e,t){const n=Ba(e);if(Bm(e))return n;if(!Ao(e)){let a=ac(e);for(;a&&!zf(a);){if(Fi(a)&&!F0(a))return a;a=ac(a)}return n}let r=Lb(e,t);for(;r&&oP(r)&&F0(r);)r=Lb(r,t);return r&&zf(r)&&F0(r)&&!Yv(r)?n:r||dP(e)||n}const CP=async function(e){const t=this.getOffsetParent||g4,n=this.getDimensions,r=await n(e.floating);return{reference:_P(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function EP(e){return Ii(e).direction==="rtl"}const PP={convertOffsetParentRelativeRectToViewportRelativeRect:gP,getDocumentElement:_o,getClippingRect:AP,getOffsetParent:g4,getElementRects:CP,getClientRects:vP,getDimensions:NP,getScale:Rf,isElement:Fi,isRTL:EP};function v4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function TP(e,t){let n=null,r;const a=_o(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:y,height:g}=d;if(c||t(),!y||!g)return;const N=_p(m),w=_p(a.clientWidth-(h+y)),E=_p(a.clientHeight-(m+g)),_=_p(h),H={rootMargin:-N+"px "+-w+"px "+-E+"px "+-_+"px",threshold:Fa(0,sc(1,f))||1};let k=!0;function K(U){const G=U[0].intersectionRatio;if(G!==f){if(!k)return l();G?l(!1,G):r=setTimeout(()=>{l(!1,1e-7)},1e3)}G===1&&!v4(d,e.getBoundingClientRect())&&l(),k=!1}try{n=new IntersectionObserver(K,{...H,root:a.ownerDocument})}catch{n=new IntersectionObserver(K,H)}n.observe(e)}return l(!0),o}function jP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=$v(e),h=a||o?[...d?ch(d):[],...ch(t)]:[];h.forEach(_=>{a&&_.addEventListener("scroll",n,{passive:!0}),o&&_.addEventListener("resize",n)});const m=d&&c?TP(d,n):null;let y=-1,g=null;l&&(g=new ResizeObserver(_=>{let[z]=_;z&&z.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var H;(H=g)==null||H.observe(t)})),n()}),d&&!f&&g.observe(d),g.observe(t));let N,w=f?au(e):null;f&&E();function E(){const _=au(e);w&&!v4(w,_)&&n(),w=_,N=requestAnimationFrame(E)}return n(),()=>{var _;h.forEach(z=>{a&&z.removeEventListener("scroll",n),o&&z.removeEventListener("resize",n)}),m?.(),(_=g)==null||_.disconnect(),g=null,f&&cancelAnimationFrame(N)}}const OP=tP,LP=nP,RP=Z7,DP=sP,MP=J7,Rb=K7,kP=rP,FP=(e,t,n)=>{const r=new Map,a={platform:PP,...n},o={...a.platform,_c:r};return X7(e,t,{...a,platform:o})};var IP=typeof document<"u",UP=function(){},Vp=IP?F.useLayoutEffect:UP;function fm(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,a;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(!fm(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!fm(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function y4(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Db(e,t){const n=y4(e);return Math.round(t*n)/n}function I0(e){const t=F.useRef(e);return Vp(()=>{t.current=e}),t}function BP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[h,m]=F.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,g]=F.useState(r);fm(y,r)||g(r);const[N,w]=F.useState(null),[E,_]=F.useState(null),z=F.useCallback(X=>{X!==U.current&&(U.current=X,w(X))},[]),H=F.useCallback(X=>{X!==G.current&&(G.current=X,_(X))},[]),k=o||N,K=l||E,U=F.useRef(null),G=F.useRef(null),O=F.useRef(h),R=f!=null,Q=I0(f),j=I0(a),D=I0(d),$=F.useCallback(()=>{if(!U.current||!G.current)return;const X={placement:t,strategy:n,middleware:y};j.current&&(X.platform=j.current),FP(U.current,G.current,X).then(se=>{const pe={...se,isPositioned:D.current!==!1};W.current&&!fm(O.current,pe)&&(O.current=pe,yh.flushSync(()=>{m(pe)}))})},[y,t,n,j,D]);Vp(()=>{d===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,m(X=>({...X,isPositioned:!1})))},[d]);const W=F.useRef(!1);Vp(()=>(W.current=!0,()=>{W.current=!1}),[]),Vp(()=>{if(k&&(U.current=k),K&&(G.current=K),k&&K){if(Q.current)return Q.current(k,K,$);$()}},[k,K,$,Q,R]);const te=F.useMemo(()=>({reference:U,floating:G,setReference:z,setFloating:H}),[z,H]),L=F.useMemo(()=>({reference:k,floating:K}),[k,K]),M=F.useMemo(()=>{const X={position:n,left:0,top:0};if(!L.floating)return X;const se=Db(L.floating,h.x),pe=Db(L.floating,h.y);return c?{...X,transform:"translate("+se+"px, "+pe+"px)",...y4(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:pe}},[n,c,L.floating,h.x,h.y]);return F.useMemo(()=>({...h,update:$,refs:te,elements:L,floatingStyles:M}),[h,$,te,L,M])}const zP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Rb({element:r.current,padding:a}).fn(n):{}:r?Rb({element:r,padding:a}).fn(n):{}}}},HP=(e,t)=>({...OP(e),options:[e,t]}),qP=(e,t)=>({...LP(e),options:[e,t]}),GP=(e,t)=>({...kP(e),options:[e,t]}),WP=(e,t)=>({...RP(e),options:[e,t]}),VP=(e,t)=>({...DP(e),options:[e,t]}),YP=(e,t)=>({...MP(e),options:[e,t]}),QP=(e,t)=>({...zP(e),options:[e,t]});var $P="Arrow",b4=F.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return x.jsx(Yt.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});b4.displayName=$P;var XP=b4;function x4(e){const[t,n]=F.useState(void 0);return Us(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let l,c;if("borderBoxSize"in o){const f=o.borderBoxSize,d=Array.isArray(f)?f[0]:f;l=d.inlineSize,c=d.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Xv="Popper",[w4,Yf]=zi(Xv),[KP,S4]=w4(Xv),A4=e=>{const{__scopePopper:t,children:n}=e,[r,a]=F.useState(null);return x.jsx(KP,{scope:t,anchor:r,onAnchorChange:a,children:n})};A4.displayName=Xv;var N4="PopperAnchor",_4=F.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=S4(N4,n),l=F.useRef(null),c=Vn(t,l),f=F.useRef(null);return F.useEffect(()=>{const d=f.current;f.current=r?.current||l.current,d!==f.current&&o.onAnchorChange(f.current)}),r?null:x.jsx(Yt.div,{...a,ref:c})});_4.displayName=N4;var Kv="PopperContent",[ZP,JP]=w4(Kv),C4=F.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:o="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:y=!1,updatePositionStrategy:g="optimized",onPlaced:N,...w}=e,E=S4(Kv,n),[_,z]=F.useState(null),H=Vn(t,le=>z(le)),[k,K]=F.useState(null),U=x4(k),G=U?.width??0,O=U?.height??0,R=r+(o!=="center"?"-"+o:""),Q=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},j=Array.isArray(d)?d:[d],D=j.length>0,$={padding:Q,boundary:j.filter(tT),altBoundary:D},{refs:W,floatingStyles:te,placement:L,isPositioned:M,middlewareData:X}=BP({strategy:"fixed",placement:R,whileElementsMounted:(...le)=>jP(...le,{animationFrame:g==="always"}),elements:{reference:E.anchor},middleware:[HP({mainAxis:a+O,alignmentAxis:l}),f&&qP({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?GP():void 0,...$}),f&&WP({...$}),VP({...$,apply:({elements:le,rects:me,availableWidth:ge,availableHeight:Ae})=>{const{width:Oe,height:Fe}=me.reference,Qe=le.floating.style;Qe.setProperty("--radix-popper-available-width",`${ge}px`),Qe.setProperty("--radix-popper-available-height",`${Ae}px`),Qe.setProperty("--radix-popper-anchor-width",`${Oe}px`),Qe.setProperty("--radix-popper-anchor-height",`${Fe}px`)}}),k&&QP({element:k,padding:c}),nT({arrowWidth:G,arrowHeight:O}),y&&YP({strategy:"referenceHidden",...$})]}),[se,pe]=T4(L),ee=rc(N);Us(()=>{M&&ee?.()},[M,ee]);const P=X.arrow?.x,B=X.arrow?.y,V=X.arrow?.centerOffset!==0,[Y,oe]=F.useState();return Us(()=>{_&&oe(window.getComputedStyle(_).zIndex)},[_]),x.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:M?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(ZP,{scope:n,placedSide:se,onArrowChange:K,arrowX:P,arrowY:B,shouldHideArrow:V,children:x.jsx(Yt.div,{"data-side":se,"data-align":pe,...w,ref:H,style:{...w.style,animation:M?void 0:"none"}})})})});C4.displayName=Kv;var E4="PopperArrow",eT={top:"bottom",right:"left",bottom:"top",left:"right"},P4=F.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,o=JP(E4,r),l=eT[o.placedSide];return x.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]: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:x.jsx(XP,{...a,ref:n,style:{...a.style,display:"block"}})})});P4.displayName=E4;function tT(e){return e!==null}var nT=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,l=a.arrow?.centerOffset!==0,c=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[d,h]=T4(n),m={start:"0%",center:"50%",end:"100%"}[h],y=(a.arrow?.x??0)+c/2,g=(a.arrow?.y??0)+f/2;let N="",w="";return d==="bottom"?(N=l?m:`${y}px`,w=`${-f}px`):d==="top"?(N=l?m:`${y}px`,w=`${r.floating.height+f}px`):d==="right"?(N=`${-f}px`,w=l?m:`${g}px`):d==="left"&&(N=`${r.floating.width+f}px`,w=l?m:`${g}px`),{data:{x:N,y:w}}}});function T4(e){const[t,n="center"]=e.split("-");return[t,n]}var j4=A4,qm=_4,Zv=C4,Jv=P4,rT="Portal",Gm=F.forwardRef((e,t)=>{const{container:n,...r}=e,[a,o]=F.useState(!1);Us(()=>o(!0),[]);const l=n||a&&globalThis?.document?.body;return l?r4.createPortal(x.jsx(Yt.div,{...r,ref:t}),l):null});Gm.displayName=rT;function sT(e,t){return F.useReducer((n,r)=>t[n][r]??n,e)}var fl=e=>{const{present:t,children:n}=e,r=aT(t),a=typeof n=="function"?n({present:r.isPresent}):F.Children.only(n),o=Vn(r.ref,iT(a));return typeof n=="function"||r.isPresent?F.cloneElement(a,{ref:o}):null};fl.displayName="Presence";function aT(e){const[t,n]=F.useState(),r=F.useRef(null),a=F.useRef(e),o=F.useRef("none"),l=e?"mounted":"unmounted",[c,f]=sT(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return F.useEffect(()=>{const d=Cp(r.current);o.current=c==="mounted"?d:"none"},[c]),Us(()=>{const d=r.current,h=a.current;if(h!==e){const y=o.current,g=Cp(d);e?f("MOUNT"):g==="none"||d?.display==="none"?f("UNMOUNT"):f(h&&y!==g?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),Us(()=>
vendor: 4,346 bytes, line 49
49{if(t){let d;const h=t.ownerDocument.defaultView??window,m=g=>{const w=Cp(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&w&&(f("ANIMATION_END"),!a.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",d=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},y=g=>{g.target===t&&(o.current=Cp(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{h.clearTimeout(d),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:F.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Cp(e){return e?.animationName||"none"}function iT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oT=Rm[" useInsertionEffect ".trim().toString()]||Us;function iu({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,o,l]=lT({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:a;{const h=F.useRef(e!==void 0);F.useEffect(()=>{const m=h.current;m!==c&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${c?"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.`),h.current=c},[c,r])}const d=F.useCallback(h=>{if(c){const m=cT(h)?h(e):h;m!==e&&l.current?.(m)}else o(h)},[c,e,o,l]);return[f,d]}function lT({defaultProp:e,onChange:t}){const[n,r]=F.useState(e),a=F.useRef(n),o=F.useRef(t);return oT(()=>{o.current=t},[t]),F.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,r,o]}function cT(e){return typeof e=="function"}var O4=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"}),uT="VisuallyHidden",L4=F.forwardRef((e,t)=>x.jsx(Yt.span,{...e,ref:t,style:{...O4,...e.style}}));L4.displayName=uT;var fT=L4,[Wm]=zi("Tooltip",[Yf]),e2=Yf(),R4="TooltipProvider",dT=700,Mb="tooltip.open",[hT,D4]=Wm(R4),M4=e=>{const{__scopeTooltip:t,delayDuration:n=dT,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,l=F.useRef(!0),c=F.useRef(!1),f=F.useRef(0);return F.useEffect(()=>{const d=f.current;return()=>window.clearTimeout(d)},[]),x.jsx(hT,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:F.useCallback(()=>{window.clearTimeout(f.current),l.current=!1},[]),onClose:F.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:F.useCallback(d=>{c.current=d},[]),disableHoverableContent:a,children:o})};M4.displayName=R4;var k4="Tooltip",[xU,Vm]=Wm(k4),nv="TooltipTrigger",pT=F.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Vm(nv,n),o=D4(nv,n),l=e2(n),c=F.useRef(null),f=Vn(t,c,a.onTriggerChange),d=F.useRef(!1),h=F.useRef(!1),m=F.useCallback(()=>d.current=!1,[]);return F.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),x.jsx(qm,{asChild:!0,...l,children:x.jsx(Yt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:f,onPointerMove:Xt(e.onPointerMove,y=>{y.pointerType!=="touch"&&!h.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),h.current=!0)}),onPointerLeave:Xt(e.onPointerLeave,()=>{a.onTriggerLeave(),h.current=!1}),onPointerDown:Xt(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:Xt(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:Xt(e.onBlur,a.onClose),onClick:Xt(e.onClick,a.onClose)})})});pT.displayName=nv;var mT="TooltipPortal",[wU,gT]=Wm(mT,{forceMount:void 0}),Hf="TooltipContent",vT=F.forwardRef((e,t)=>{const n=gT(Hf,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,l=Vm(Hf,e.__scopeTooltip);return x.jsx(fl,{present:r||l.open,children:l.disableHoverableContent?x.jsx(F4,{side:a,...o,ref:t}):x.jsx(yT,{side:a,...o,ref:t})})}),yT=F.forwardRef((e,t)=>
vendor: 8,966 bytes, line 49
49{const n=Vm(Hf,e.__scopeTooltip),r=D4(Hf,e.__scopeTooltip),a=F.useRef(null),o=Vn(t,a),[l,c]=F.useState(null),{trigger:f,onClose:d}=n,h=a.current,{onPointerInTransitChange:m}=r,y=F.useCallback(()=>{c(null),m(!1)},[m]),g=F.useCallback((N,w)=>{const E=N.currentTarget,_={x:N.clientX,y:N.clientY},z=AT(_,E.getBoundingClientRect()),H=NT(_,z),k=_T(w.getBoundingClientRect()),K=ET([...H,...k]);c(K),m(!0)},[m]);return F.useEffect(()=>()=>y(),[y]),F.useEffect(()=>{if(f&&h){const N=E=>g(E,h),w=E=>g(E,f);return f.addEventListener("pointerleave",N),h.addEventListener("pointerleave",w),()=>{f.removeEventListener("pointerleave",N),h.removeEventListener("pointerleave",w)}}},[f,h,g,y]),F.useEffect(()=>{if(l){const N=w=>{const E=w.target,_={x:w.clientX,y:w.clientY},z=f?.contains(E)||h?.contains(E),H=!CT(_,l);z?y():H&&(y(),d())};return document.addEventListener("pointermove",N),()=>document.removeEventListener("pointermove",N)}},[f,h,l,d,y]),x.jsx(F4,{...e,ref:o})}),[bT,xT]=Wm(k4,{isInside:!1}),wT=A7("TooltipContent"),F4=F.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:l,...c}=e,f=Vm(Hf,n),d=e2(n),{onClose:h}=f;return F.useEffect(()=>(document.addEventListener(Mb,h),()=>document.removeEventListener(Mb,h)),[h]),F.useEffect(()=>{if(f.trigger){const m=y=>{y.target?.contains(f.trigger)&&h()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[f.trigger,h]),x.jsx(bh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:m=>m.preventDefault(),onDismiss:h,children:x.jsxs(Zv,{"data-state":f.stateAttribute,...d,...c,ref:t,style:{...c.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:[x.jsx(wT,{children:r}),x.jsx(bT,{scope:n,isInside:!0,children:x.jsx(fT,{id:f.contentId,role:"tooltip",children:a||r})})]})})});vT.displayName=Hf;var I4="TooltipArrow",ST=F.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=e2(n);return xT(I4,n).isInside?null:x.jsx(Jv,{...a,...r,ref:t})});ST.displayName=I4;function AT(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function NT(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 _T(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function CT(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o],f=t[l],d=c.x,h=c.y,m=f.x,y=f.y;h>r!=y>r&&n<(m-d)*(r-h)/(y-h)+d&&(a=!a)}return a}function ET(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),PT(t)}function PT(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const o=t[t.length-1],l=t[t.length-2];if((o.x-l.x)*(a.y-l.y)>=(o.y-l.y)*(a.x-l.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const o=n[n.length-1],l=n[n.length-2];if((o.x-l.x)*(a.y-l.y)>=(o.y-l.y)*(a.x-l.x))n.pop();else break}n.push(a)}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 TT=M4;function U4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=U4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function B4(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=U4(e))&&(r&&(r+=" "),r+=t);return r}const t2="-",jT=e=>{const t=LT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(t2);return c[0]===""&&c.length!==1&&c.shift(),z4(c,t)||OT(l)},getConflictingClassGroupIds:(l,c)=>{const f=n[l]||[];return c&&r[l]?[...f,...r[l]]:f}}},z4=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?z4(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(t2);return t.validators.find(({validator:l})=>l(o))?.classGroupId},kb=/^\[(.+)\]$/,OT=e=>{if(kb.test(e)){const t=kb.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},LT=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)rv(n[a],r,a,t);return r},rv=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:Fb(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(RT(a)){rv(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,l])=>{rv(l,Fb(t,o),n,r)})})},Fb=(e,t)=>{let n=e;return t.split(t2).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},RT=e=>e.isThemeGetter,DT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return a(o,l),l},set(o,l){n.has(o)?n.set(o,l):a(o,l)}}},sv="!",av=":",MT=av.length,kT=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const o=[];let l=0,c=0,f=0,d;for(let N=0;N<a.length;N++){let w=a[N];if(l===0&&c===0){if(w===av){o.push(a.slice(f,N)),f=N+MT;continue}if(w==="/"){d=N;continue}}w==="["?l++:w==="]"?l--:w==="("?c++:w===")"&&c--}const h=o.length===0?a:a.substring(f),m=FT(h),y=m!==h,g=d&&d>f?d-f:void 0;return{modifiers:o,hasImportantModifier:y,baseClassName:m,maybePostfixModifierPosition:g}};if(t){const a=t+av,o=r;r=l=>l.startsWith(a)?o(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},FT=e=>e.endsWith(sv)?e.substring(0,e.length-1):e.startsWith(sv)?e.substring(1):e,IT=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let o=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...o.sort(),l),o=[]):o.push(l)}),a.push(...o.sort()),a}},UT=e=>({cache:DT(e.cacheSize),parseClassName:kT(e),sortModifiers:IT(e),...jT(e)}),BT=/\s+/,zT=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],c=e.trim().split(BT);let f="";for(let d=c.length-1;d>=0;d-=1){const h=c[d],{isExternal:m,modifiers:y,hasImportantModifier:g,baseClassName:N,maybePostfixModifierPosition:w}=n(h);if(m){f=h+(f.length>0?" "+f:f);continue}let E=!!w,_=r(E?N.substring(0,w):N);if(!_){if(!E){f=h+(f.length>0?" "+f:f);continue}if(_=r(N),!_){f=h+(f.length>0?" "+f:f);continue}E=!1}const z=o(y).join(":"),H=g?z+sv:z,k=H+_;if(l.includes(k))continue;l.push(k);const K=a(_,E);for(let U=0;U<K.length;++U){const G=K[U];l.push(H+G)}f=h+(f.length>0?" "+f:f)}return f};function HT(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=H4(t))&&(r&&(r+=" "),r+=n);return r}const H4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=H4(e[r]))&&(n&&(n+=" "),n+=t);return n};function qT(e,...t){let n,r,a,o=l;function l(f){const d=t.reduce((h,m)=>m(h),e());return n=UT(d),r=n.cache.get,a=n.cache.set,o=c,c(f)}function c(f){const d=r(f);if(d)return d;const h=zT(f,n);return a(f,h),h}return function(){return o(HT.apply(null,arguments))}}const ds=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},q4=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,G4=/^\((?:(\w[\w-]*):)?(.+)\)$/i,GT=/^\d+\/\d+$/,WT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VT=/\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$/,YT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,QT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$T=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ff=e=>GT.test(e),un=e=>!!e&&!Number.isNaN(Number(e)),Vl=e=>!!e&&Number.isInteger(Number(e)),U0=e=>e.endsWith("%")&&un(e.slice(0,-1)),el=e=>WT.test(e),XT=()=>!0,KT=e=>VT.test(e)&&!YT.test(e),W4=()=>!1,ZT=e=>QT.test(e),JT=e=>$T.test(e),ej=e=>!St(e)&&!At(e),tj=e=>Qf(e,Q4,W4),St=e=>q4.test(e),Wc=e=>Qf(e,$4,KT),B0=e=>Qf(e,ij,un),Ib=e=>Qf(e,V4,W4),nj=e=>Qf(e,Y4,JT),Ep=e=>Qf(e,X4,ZT),At=e=>G4.test(e),kd=e=>$f(e,$4),rj=e=>$f(e,oj),Ub=e=>$f(e,V4),sj=e=>$f(e,Q4),aj=e=>$f(e,Y4),Pp=e=>
vendor: 4,518 bytes, line 49
49$f(e,X4,!0),Qf=(e,t,n)=>{const r=q4.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$f=(e,t,n=!1)=>{const r=G4.exec(e);return r?r[1]?t(r[1]):n:!1},V4=e=>e==="position"||e==="percentage",Y4=e=>e==="image"||e==="url",Q4=e=>e==="length"||e==="size"||e==="bg-size",$4=e=>e==="length",ij=e=>e==="number",oj=e=>e==="family-name",X4=e=>e==="shadow",lj=()=>{const e=ds("color"),t=ds("font"),n=ds("text"),r=ds("font-weight"),a=ds("tracking"),o=ds("leading"),l=ds("breakpoint"),c=ds("container"),f=ds("spacing"),d=ds("radius"),h=ds("shadow"),m=ds("inset-shadow"),y=ds("text-shadow"),g=ds("drop-shadow"),N=ds("blur"),w=ds("perspective"),E=ds("aspect"),_=ds("ease"),z=ds("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...k(),At,St],U=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],O=()=>[At,St,f],R=()=>[ff,"full","auto",...O()],Q=()=>[Vl,"none","subgrid",At,St],j=()=>["auto",{span:["full",Vl,At,St]},Vl,At,St],D=()=>[Vl,"auto",At,St],$=()=>["auto","min","max","fr",At,St],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...O()],M=()=>[ff,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],X=()=>[e,At,St],se=()=>[...k(),Ub,Ib,{position:[At,St]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",sj,tj,{size:[At,St]}],P=()=>[U0,kd,Wc],B=()=>["","none","full",d,At,St],V=()=>["",un,kd,Wc],Y=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[un,U0,Ub,Ib],me=()=>["","none",N,At,St],ge=()=>["none",un,At,St],Ae=()=>["none",un,At,St],Oe=()=>[un,At,St],Fe=()=>[ff,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[el],breakpoint:[el],color:[XT],container:[el],"drop-shadow":[el],ease:["in","out","in-out"],font:[ej],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[el],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[el],shadow:[el],spacing:["px",un],text:[el],"text-shadow":[el],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ff,St,At,E]}],container:["container"],columns:[{columns:[un,St,At,c]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:K()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[Vl,"auto",At,St]}],basis:[{basis:[ff,"full","auto",c,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[un,ff,"auto","initial","none",St]}],grow:[{grow:["",un,At,St]}],shrink:[{shrink:["",un,At,St]}],order:[{order:[Vl,"first","last","none",At,St]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":D()}
vendor: 11,043 bytes, line 49
49],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[c,"screen",...M()]}],"min-w":[{"min-w":[c,"screen","none",...M()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",n,kd,Wc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,At,B0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",U0,St]}],"font-family":[{font:[rj,St,t]}],"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:[a,At,St]}],"line-clamp":[{"line-clamp":[un,"none",At,B0]}],leading:[{leading:[o,...O()]}],"list-image":[{"list-image":["none",At,St]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",At,St]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[un,"from-font","auto",At,Wc]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[un,"auto",At,St]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",At,St]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",At,St]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Vl,At,St],radial:["",At,St],conic:[Vl,At,St]},aj,nj]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[un,At,St]}],"outline-w":[{outline:["",un,kd,Wc]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",h,Pp,Ep]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",m,Pp,Ep]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[un,Wc]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",y,Pp,Ep]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[un,At,St]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[un]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[At,St]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[un]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",At,St]}],filter:[{filter:["","none",At,St]}],blur:[{blur:me()}],brightness:[{brightness:[un,At,St]}],contrast:[{contrast:[un,At,St]}],"drop-shadow":[{"drop-shadow":["","none",g,Pp,Ep]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",un,At,St]}],"hue-rotate":[{"hue-rotate":[un,At,St]}],invert:[{invert:["",un,At,St]}],saturate:[{saturate:[un,At,St]}],sepia:[{sepia:["",un,At,St]}],"backdrop-filter":[{"backdrop-filter":["","none",At,St]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[un,At,St]}],"backdrop-contrast":[{"backdrop-contrast":[un,At,St]}],"backdrop-grayscale":[{"backdrop-grayscale":["",un,At,St]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[un,At,St]}],"backdrop-invert":[{"backdrop-invert":["",un,At,St]}],"backdrop-opacity":[{"backdrop-opacity":[un,At,St]}],"backdrop-saturate":[{"backdrop-saturate":[un,At,St]}],"backdrop-sepia":[{"backdrop-sepia":["",un,At,St]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",At,St]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[un,"initial",At,St]}],ease:[{ease:["linear","initial",_,At,St]}],delay:[{delay:[un,At,St]}],animate:[{animate:["none",z,At,St]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,At,St]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[At,St,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fe()}],"translate-x":[{"translate-x":Fe()}],"translate-y":[{"translate-y":Fe()}],"translate-z":[{"translate-z":Fe()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}
vendor: 12,548 bytes, lines 49-128
49],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",At,St]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",At,St]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[un,kd,Wc,B0]}],stroke:[{stroke:["none",...X()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},cj=qT(lj);function Yn(...e){return cj(B4(e))}function uj({delayDuration:e=0,...t}){return x.jsx(TT,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}const Bb=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zb=B4,K4=(e,t)=>n=>{var r;if(t?.variants==null)return zb(e,n?.class,n?.className);const{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(d=>{const h=n?.[d],m=o?.[d];if(h===null)return null;const y=Bb(h)||Bb(m);return a[d][y]}),c=n&&Object.entries(n).reduce((d,h)=>{let[m,y]=h;return y===void 0||(d[m]=y),d},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,h)=>{let{class:m,className:y,...g}=h;return Object.entries(g).every(N=>{let[w,E]=N;return Array.isArray(E)?E.includes({...o,...c}[w]):{...o,...c}[w]===E})?[...d,m,y]:d},[]);return zb(e,l,f,n?.class,n?.className)},fj=K4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Bn({className:e,variant:t,size:n,asChild:r=!1,...a}){const o=r?s4:"button";return x.jsx(o,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:Yn(fj({variant:t,size:n,className:e})),...a})}function Jr({className:e,...t}){return x.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:Yn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function wh({className:e,...t}){return x.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:20","data-slot":"card-header",className:Yn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Sh({className:e,...t}){return x.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:33","data-slot":"card-title",className:Yn("leading-none font-semibold",e),...t})}function Ym({className:e,...t}){return x.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:43","data-slot":"card-description",className:Yn("text-muted-foreground text-sm",e),...t})}function ba({className:e,...t}){return x.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:Yn("px-6",e),...t})}/** 50 * @license lucide-react v0.453.0 - ISC 51 * 52 * This source code is licensed under the ISC license. 53 * See the LICENSE file in the root directory of this source tree. 54 */const dj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Z4=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** 55 * @license lucide-react v0.453.0 - ISC 56 * 57 * This source code is licensed under the ISC license. 58 * See the LICENSE file in the root directory of this source tree. 59 */var hj={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"};/** 60 * @license lucide-react v0.453.0 - ISC 61 * 62 * This source code is licensed under the ISC license. 63 * See the LICENSE file in the root directory of this source tree. 64 */const pj=F.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...c},f)=>F.createElement("svg",{ref:f,...hj,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Z4("lucide",a),...c},[...l.map(([d,h])=>F.createElement(d,h)),...Array.isArray(o)?o:[o]]));/** 65 * @license lucide-react v0.453.0 - ISC 66 * 67 * This source code is licensed under the ISC license. 68 * See the LICENSE file in the root directory of this source tree. 69 */const Cn=(e,t)=>{const n=F.forwardRef(({className:r,...a},o)=>F.createElement(pj,{ref:o,iconNode:t,className:Z4(`lucide-${dj(e)}`,r),...a}));return n.displayName=`${e}`,n};/** 70 * @license lucide-react v0.453.0 - ISC 71 * 72 * This source code is licensed under the ISC license. 73 * See the LICENSE file in the root directory of this source tree. 74 */const iv=Cn("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 75 * @license lucide-react v0.453.0 - ISC 76 * 77 * This source code is licensed under the ISC license. 78 * See the LICENSE file in the root directory of this source tree. 79 */const J4=Cn("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 80 * @license lucide-react v0.453.0 - ISC 81 * 82 * This source code is licensed under the ISC license. 83 * See the LICENSE file in the root directory of this source tree. 84 */const dm=Cn("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 85 * @license lucide-react v0.453.0 - ISC 86 * 87 * This source code is licensed under the ISC license. 88 * See the LICENSE file in the root directory of this source tree. 89 */const n2=Cn("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 90 * @license lucide-react v0.453.0 - ISC 91 * 92 * This source code is licensed under the ISC license. 93 * See the LICENSE file in the root directory of this source tree. 94 */const Hb=Cn("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 95 * @license lucide-react v0.453.0 - ISC 96 * 97 * This source code is licensed under the ISC license. 98 * See the LICENSE file in the root directory of this source tree. 99 */const eS=Cn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 100 * @license lucide-react v0.453.0 - ISC 101 * 102 * This source code is licensed under the ISC license. 103 * See the LICENSE file in the root directory of this source tree. 104 */const mj=Cn("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 105 * @license lucide-react v0.453.0 - ISC 106 * 107 * This source code is licensed under the ISC license. 108 * See the LICENSE file in the root directory of this source tree. 109 */const gj=Cn("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 110 * @license lucide-react v0.453.0 - ISC 111 * 112 * This source code is licensed under the ISC license. 113 * See the LICENSE file in the root directory of this source tree. 114 */const vj=Cn("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 115 * @license lucide-react v0.453.0 - ISC 116 * 117 * This source code is licensed under the ISC license. 118 * See the LICENSE file in the root directory of this source tree. 119 */const yj=Cn("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 120 * @license lucide-react v0.453.0 - ISC 121 * 122 * This source code is licensed under the ISC license. 123 * See the LICENSE file in the root directory of this source tree. 124 */const bj=Cn("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 125 * @license lucide-react v0.453.0 - ISC 126 * 127 * This source code is licensed under the ISC license. 128 * See the LICENSE file in the root directory of this source tree.
129 */const xj=Cn("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 130 * @license lucide-react v0.453.0 - ISC 131 * 132 * This source code is licensed under the ISC license. 133 * See the LICENSE file in the root directory of this source tree. 134 */const wj=Cn("CloudSun",[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]]);/** 135 * @license lucide-react v0.453.0 - ISC 136 * 137 * This source code is licensed under the ISC license. 138 * See the LICENSE file in the root directory of this source tree. 139 */const hm=Cn("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 140 * @license lucide-react v0.453.0 - ISC 141 * 142 * This source code is licensed under the ISC license. 143 * See the LICENSE file in the root directory of this source tree. 144 */const Sj=Cn("Eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]);/** 145 * @license lucide-react v0.453.0 - ISC 146 * 147 * This source code is licensed under the ISC license. 148 * See the LICENSE file in the root directory of this source tree. 149 */const Yp=Cn("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 150 * @license lucide-react v0.453.0 - ISC 151 * 152 * This source code is licensed under the ISC license. 153 * See the LICENSE file in the root directory of this source tree. 154 */const Kd=Cn("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 155 * @license lucide-react v0.453.0 - ISC 156 * 157 * This source code is licensed under the ISC license. 158 * See the LICENSE file in the root directory of this source tree. 159 */const tS=Cn("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 160 * @license lucide-react v0.453.0 - ISC 161 * 162 * This source code is licensed under the ISC license. 163 * See the LICENSE file in the root directory of this source tree. 164 */const Aj=Cn("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 165 * @license lucide-react v0.453.0 - ISC 166 * 167 * This source code is licensed under the ISC license. 168 * See the LICENSE file in the root directory of this source tree. 169 */const ya=Cn("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 170 * @license lucide-react v0.453.0 - ISC 171 * 172 * This source code is licensed under the ISC license. 173 * See the LICENSE file in the root directory of this source tree. 174 */const Zd=Cn("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 175 * @license lucide-react v0.453.0 - ISC 176 * 177 * This source code is licensed under the ISC license. 178 * See the LICENSE file in the root directory of this source tree. 179 */const Nj=Cn("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 180 * @license lucide-react v0.453.0 - ISC 181 * 182 * This source code is licensed under the ISC license. 183 * See the LICENSE file in the root directory of this source tree. 184 */const r2=Cn("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 185 * @license lucide-react v0.453.0 - ISC 186 * 187 * This source code is licensed under the ISC license. 188 * See the LICENSE file in the root directory of this source tree. 189 */const _j=Cn("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 190 * @license lucide-react v0.453.0 - ISC 191 * 192 * This source code is licensed under the ISC license. 193 * See the LICENSE file in the root directory of this source tree. 194 */const Cj=Cn("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 195 * @license lucide-react v0.453.0 - ISC 196 * 197 * This source code is licensed under the ISC license. 198 * See the LICENSE file in the root directory of this source tree. 199 */const Ej=Cn("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 200 * @license lucide-react v0.453.0 - ISC 201 * 202 * This source code is licensed under the ISC license. 203 * See the LICENSE file in the root directory of this source tree. 204 */const Pj=Cn("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 205 * @license lucide-react v0.453.0 - ISC 206 * 207 * This source code is licensed under the ISC license. 208 * See the LICENSE file in the root directory of this source tree. 209 */const Tj=Cn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 210 * @license lucide-react v0.453.0 - ISC 211 * 212 * This source code is licensed under the ISC license. 213 * See the LICENSE file in the root directory of this source tree. 214 */const jj=Cn("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
214y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 215 * @license lucide-react v0.453.0 - ISC 216 * 217 * This source code is licensed under the ISC license. 218 * See the LICENSE file in the root directory of this source tree. 219 */const Oj=Cn("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 220 * @license lucide-react v0.453.0 - ISC 221 * 222 * This source code is licensed under the ISC license. 223 * See the LICENSE file in the root directory of this source tree. 224 */const Lj=Cn("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 225 * @license lucide-react v0.453.0 - ISC 226 * 227 * This source code is licensed under the ISC license. 228 * See the LICENSE file in the root directory of this source tree. 229 */const ov=Cn("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 230 * @license lucide-react v0.453.0 - ISC 231 * 232 * This source code is licensed under the ISC license. 233 * See the LICENSE file in the root directory of this source tree. 234 */const nS=Cn("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 235 * @license lucide-react v0.453.0 - ISC 236 * 237 * This source code is licensed under the ISC license. 238 * See the LICENSE file in the root directory of this source tree. 239 */const Rj=Cn("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 240 * @license lucide-react v0.453.0 - ISC 241 * 242 * This source code is licensed under the ISC license. 243 * See the LICENSE file in the root directory of this source tree. 244 */const s2=Cn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Dj(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,a,o,l=[],c="",f=e.split("/");for(f[0]||f.shift();a=f.shift();)n=a[0],n==="*"?(l.push(n),c+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=a.indexOf("?",1),o=a.indexOf(".",1),l.push(a.substring(1,~r?r:~o?o:a.length)),c+=~r&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(c+=(~r?"?":"")+"\\"+a.substring(o))):c+="/"+a;return{keys:l,pattern:new RegExp("^"+c+(t?"(?=$|/)":"/?$"),"i")}}var z0={exports:{}},H0={};/** 245 * @license React 246 * use-sync-external-store-shim.production.js 247 * 248 * Copyright (c) Meta Platforms, Inc. and affiliates. 249 * 250 * This source code is licensed under the MIT license found in the 251 * LICENSE file in the root directory of this source tree. 252 */var qb;function Mj(){if(qb)return H0;qb=1;var e=Lm();function t(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function c(m,y){var g=y(),N=r({inst:{value:g,getSnapshot:y}}),w=N[0].inst,E=N[1];return o(function(){w.value=g,w.getSnapshot=y,f(w)&&E({inst:w})},[m,g,y]),a(function(){return f(w)&&E({inst:w}),m(function(){f(w)&&E({inst:w})})},[m]),l(g),g}function f(m){var y=m.getSnapshot;m=m.value;try{var g=y();return!n(m,g)}catch{return!0}}function d(m,y){return y()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return H0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,H0}var Gb;function kj(){return Gb||(Gb=1,z0.exports=Mj()),z0.exports}var Fj=kj();const Ij=Rm.useInsertionEffect,Uj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Bj=Uj?F.useLayoutEffect:F.useEffect,zj=Ij||Bj,rS=e=>{const t=F.useRef([e,(...n)=>t[0](...n)]).current;return zj(()=>{t[0]=e}),t[1]},Hj="popstate",a2="pushState",i2="replaceState",qj="hashchange",Wb=[Hj,a2,i2,qj],Gj=e=>{for(const t of Wb)addEventListener(t,e);return()=>{for(const t of Wb)removeEventListener(t,e)}},sS=(e,t)=>Fj.useSyncExternalStore(Gj,e,t),Wj=()=>location.search,Vj=({ssrSearch:e=""}={})=>sS(Wj,()=>e),Vb=()=>location.pathname,Yj=({ssrPath:e}={})=>sS(Vb,e?()=>e:Vb),Qj=(e,{replace:t=!1,state:n=null}={})=>history[t?i2:a2](n,"",e),$j=(e={})=>[Yj(e),Qj],Yb=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Yb]>"u"){for(const e of[a2,i2]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,Yb,{value:!0})}const Xj=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",aS=(e="")=>e==="/"?"":e,Kj=(e,t)=>e[0]==="~"?e.slice(1):aS(t)+e,Zj=(e="",t)=>Xj(Qb(aS(e)),Qb(t)),Qb=e=>{try{return decodeURI(e)}catch{return e}},iS={hook:$j,searchHook:Vj,parser:Dj,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},oS=F.createContext(iS),Ah=()=>F.useContext(oS),lS={},cS=F.createContext(lS),Jj=()=>F.useContext(cS),Qm=e=>{const[t,n]=e.hook(e);return[Zj(e.base,t),rS((r,a)=>n(Kj(r,e.base),a))]},eO=()=>Qm(Ah()),uS=(e,t,n,r)=>{const{pattern:a,keys:o}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),l=a.exec(n)||[],[c,...f]=l;return c!==void 0?[!0,(()=>{const d=o!==!1?Object.fromEntries(o.map((m,y)=>[m,f[y]])):l.groups;let h={...f};return d&&Object.assign(h,d),h})(),...r?[c]:[]]:[!1,null]},tO=({children:e,...t})=>{const n=Ah(),r=t.hook?iS:n;let a=r;const[o,l]=t.ssrPath?.split("?")??[];l&&(t.ssrSearch=l,t.ssrPath=o),t.hrefs=t.hrefs??t.hook?.hrefs;let c=F.useRef({}),f=c.current,d=f;for(let h in r){const m=h==="base"?r[h]+(t[h]||""):t[h]||r[h];f===d&&m!==d[h]&&(c.current=d={...d}),d[h]=m,(m!==r[h]||m!==a[h])&&(a=d)}return F.createElement(oS.Provider,{value:a,children:e})},$b=({children:e,component:t},n)=>t?F.createElement(t,{params:n}):typeof e=="function"?e(n):e,nO=e=>{let t=F.useRef(lS);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,a])=>a!==n[r])?e:n},df=({path:e,nest:t,match:n,...r})=>{const a=Ah(),[o]=Qm(a),[l,c,f]=n??uS(a.parser,e,o,t),d=nO({...Jj(),...c});if(!l)return null;const h=f?F.createElement(tO,{base:f},$b(r,d)):$b(r,d);return F.createElement(cS.Provider,{value:d,children:h})};F.forwardRef((e,t)=>
252{const n=Ah(),[r,a]=Qm(n),{to:o="",href:l=o,onClick:c,asChild:f,children:d,className:h,replace:m,state:y,...g}=e,N=rS(E=>{E.ctrlKey||E.metaKey||E.altKey||E.shiftKey||E.button!==0||(c?.(E),E.defaultPrevented||(E.preventDefault(),a(l,e)))}),w=n.hrefs(l[0]==="~"?l.slice(1):n.base+l,n);return f&&F.isValidElement(d)?F.cloneElement(d,{onClick:N,href:w}):F.createElement("a",{...g,onClick:N,href:w,className:h?.call?h(r===l):h,children:d,ref:t})});const lv=e=>Array.isArray(e)?e.flatMap(t=>lv(t&&t.type===F.Fragment?t.props.children:t)):[e],rO=({children:e,location:t})=>{const n=Ah(),[r]=Qm(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),lv(e).forEach(o=>{if(F.isValidElement(o)&&o.props.path){const l=o.props.path;window.__WOUTER_ROUTES__.includes(l)||window.__WOUTER_ROUTES__.push(l)}}));for(const a of lv(e)){let o=0;if(F.isValidElement(a)&&(o=uS(n.parser,a.props.path,t||r,a.props.nest))[0])return F.cloneElement(a,{match:o})}return null};function Xb(){const[,e]=eO(),t=()=>{e("/")};return x.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:14",className:"min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",children:x.jsx(Jr,{"data-loc":"client/src/pages/NotFound.tsx:15",className:"w-full max-w-lg mx-4 shadow-lg border-0 bg-white/80 backdrop-blur-sm",children:x.jsxs(ba,{"data-loc":"client/src/pages/NotFound.tsx:16",className:"pt-8 pb-8 text-center",children:[x.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"flex justify-center mb-6",children:x.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"relative",children:[x.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"absolute inset-0 bg-red-100 rounded-full animate-pulse"}),x.jsx(gj,{"data-loc":"client/src/pages/NotFound.tsx:20",className:"relative h-16 w-16 text-red-500"})]})}),x.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:24",className:"text-4xl font-bold text-slate-900 mb-2",children:"404"}),x.jsx("h2",{"data-loc":"client/src/pages/NotFound.tsx:26",className:"text-xl font-semibold text-slate-700 mb-4",children:"Page Not Found"}),x.jsxs("p",{"data-loc":"client/src/pages/NotFound.tsx:30",className:"text-slate-600 mb-8 leading-relaxed",children:["Sorry, the page you are looking for doesn't exist.",x.jsx("br",{"data-loc":"client/src/pages/NotFound.tsx:32"}),"It may have been moved or deleted."]}),x.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:36",id:"not-found-button-group",className:"flex flex-col sm:flex-row gap-3 justify-center",children:x.jsxs(Bn,{"data-loc":"client/src/pages/NotFound.tsx:40",onClick:t,className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg",children:[x.jsx(Aj,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"}),"Go Home"]})})]})})})}
252class sO extends F.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?x.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:x.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[x.jsx(Lj,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),x.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),x.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:x.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),x.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:Yn("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[x.jsx(Pj,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const aO=F.createContext(void 0);function iO({children:e,defaultTheme:t="light",switchable:n=!1}){const[r,a]=F.useState(()=>n&&localStorage.getItem("theme")||t);F.useEffect(()=>{const l=document.documentElement;r==="dark"?l.classList.add("dark"):l.classList.remove("dark"),n&&localStorage.setItem("theme",r)},[r,n]);const o=n?()=>{a(l=>l==="light"?"dark":"light")}:void 0;return x.jsx(aO.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:r,toggleTheme:o,switchable:n},children:e})}var o2="Progress",l2=100,[oO]=zi(o2),[lO,cO]=oO(o2),fS=F.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:a,getValueLabel:o=uO,...l}=e;(a||a===0)&&!Kb(a)&&console.error(fO(`${a}`,"Progress"));const c=Kb(a)?a:l2;r!==null&&!Zb(r,c)&&console.error(dO(`${r}`,"Progress"));const f=Zb(r,c)?r:null,d=pm(f)?o(f,c):void 0;return x.jsx(lO,{scope:n,value:f,max:c,children:x.jsx(Yt.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":pm(f)?f:void 0,"aria-valuetext":d,role:"progressbar","data-state":pS(f,c),"data-value":f??void 0,"data-max":c,...l,ref:t})})});fS.displayName=o2;var dS="ProgressIndicator",hS=F.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,a=cO(dS,n);return x.jsx(Yt.div,{"data-state":pS(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...r,ref:t})});hS.displayName=dS;function uO(e,t){return`${Math.round(e/t*100)}%`}function pS(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function pm(e){return typeof e=="number"}function Kb(e){return pm(e)&&!isNaN(e)&&e>0}function Zb(e,t){return pm(e)&&!isNaN(e)&&e<=t&&e>=0}function fO(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${l2}\`.`}function dO(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 253 - a positive number 254 - less than the value passed to \`max\` (or ${l2} if no \`max\` prop is set) 255 - \`null\` or \`undefined\` if the progress is indeterminate. 256 257Defaulting to \`null\`.`}var hO=fS,pO=hS;function mO({className:e,value:t,...n}){return x.jsx(hO,{"data-loc":"client/src/components/ui/progress.tsx:12","data-slot":"progress",className:Yn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...n,children:x.jsx(pO,{"data-loc":"client/src/components/ui/progress.tsx:20","data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}var gO="Label",mS=F.forwardRef((e,t)=>x.jsx(Yt.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));mS.displayName=gO;var vO=mS;function Vt({className:e,...t}){return x.jsx(vO,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:Yn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function gS(e){const t=e+"CollectionProvider",[n,r]=zi(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:E,children:_}=w,z=Ze.useRef(null),H=Ze.useRef(new Map).current;
vendor: 8,926 bytes, line 257
257return x.jsx(a,{scope:E,itemMap:H,collectionRef:z,children:_})};l.displayName=t;const c=e+"CollectionSlot",f=su(c),d=Ze.forwardRef((w,E)=>{const{scope:_,children:z}=w,H=o(c,_),k=Vn(E,H.collectionRef);return x.jsx(f,{ref:k,children:z})});d.displayName=c;const h=e+"CollectionItemSlot",m="data-radix-collection-item",y=su(h),g=Ze.forwardRef((w,E)=>{const{scope:_,children:z,...H}=w,k=Ze.useRef(null),K=Vn(E,k),U=o(h,_);return Ze.useEffect(()=>(U.itemMap.set(k,{ref:k,...H}),()=>void U.itemMap.delete(k))),x.jsx(y,{[m]:"",ref:K,children:z})});g.displayName=h;function N(w){const E=o(e+"CollectionConsumer",w);return Ze.useCallback(()=>{const z=E.collectionRef.current;if(!z)return[];const H=Array.from(z.querySelectorAll(`[${m}]`));return Array.from(E.itemMap.values()).sort((U,G)=>H.indexOf(U.ref.current)-H.indexOf(G.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:l,Slot:d,ItemSlot:g},N,r]}var yO=F.createContext(void 0);function $m(e){const t=F.useContext(yO);return e||t||"ltr"}var q0="rovingFocusGroup.onEntryFocus",bO={bubbles:!1,cancelable:!0},Nh="RovingFocusGroup",[cv,vS,xO]=gS(Nh),[wO,Xm]=zi(Nh,[xO]),[SO,AO]=wO(Nh),yS=F.forwardRef((e,t)=>x.jsx(cv.Provider,{scope:e.__scopeRovingFocusGroup,children:x.jsx(cv.Slot,{scope:e.__scopeRovingFocusGroup,children:x.jsx(NO,{...e,ref:t})})}));yS.displayName=Nh;var NO=F.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:d,preventScrollOnEntryFocus:h=!1,...m}=e,y=F.useRef(null),g=Vn(t,y),N=$m(o),[w,E]=iu({prop:l,defaultProp:c??null,onChange:f,caller:Nh}),[_,z]=F.useState(!1),H=rc(d),k=vS(n),K=F.useRef(!1),[U,G]=F.useState(0);return F.useEffect(()=>{const O=y.current;if(O)return O.addEventListener(q0,H),()=>O.removeEventListener(q0,H)},[H]),x.jsx(SO,{scope:n,orientation:r,dir:N,loop:a,currentTabStopId:w,onItemFocus:F.useCallback(O=>E(O),[E]),onItemShiftTab:F.useCallback(()=>z(!0),[]),onFocusableItemAdd:F.useCallback(()=>G(O=>O+1),[]),onFocusableItemRemove:F.useCallback(()=>G(O=>O-1),[]),children:x.jsx(Yt.div,{tabIndex:_||U===0?-1:0,"data-orientation":r,...m,ref:g,style:{outline:"none",...e.style},onMouseDown:Xt(e.onMouseDown,()=>{K.current=!0}),onFocus:Xt(e.onFocus,O=>{const R=!K.current;if(O.target===O.currentTarget&&R&&!_){const Q=new CustomEvent(q0,bO);if(O.currentTarget.dispatchEvent(Q),!Q.defaultPrevented){const j=k().filter(L=>L.focusable),D=j.find(L=>L.active),$=j.find(L=>L.id===w),te=[D,$,...j].filter(Boolean).map(L=>L.ref.current);wS(te,h)}}K.current=!1}),onBlur:Xt(e.onBlur,()=>z(!1))})})}),bS="RovingFocusGroupItem",xS=F.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,children:l,...c}=e,f=Xs(),d=o||f,h=AO(bS,n),m=h.currentTabStopId===d,y=vS(n),{onFocusableItemAdd:g,onFocusableItemRemove:N,currentTabStopId:w}=h;return F.useEffect(()=>{if(r)return g(),()=>N()},[r,g,N]),x.jsx(cv.ItemSlot,{scope:n,id:d,focusable:r,active:a,children:x.jsx(Yt.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:Xt(e.onMouseDown,E=>{r?h.onItemFocus(d):E.preventDefault()}),onFocus:Xt(e.onFocus,()=>h.onItemFocus(d)),onKeyDown:Xt(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){h.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const _=EO(E,h.orientation,h.dir);if(_!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let H=y().filter(k=>k.focusable).map(k=>k.ref.current);if(_==="last")H.reverse();else if(_==="prev"||_==="next"){_==="prev"&&H.reverse();const k=H.indexOf(E.currentTarget);H=h.loop?PO(H,k+1):H.slice(k+1)}setTimeout(()=>wS(H))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:w!=null}):l})})});xS.displayName=bS;var _O={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CO(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function EO(e,t,n){const r=CO(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return _O[r]}function wS(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function PO(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var SS=yS,AS=xS;function NS(e){const t=F.useRef({value:e,previous:e});return F.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var c2="Radio",[TO,_S]=zi(c2),[jO,OO]=TO(c2),CS=F.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:a=!1,required:o,disabled:l,value:c="on",onCheck:f,form:d,...h}=e,[m,y]=F.useState(null),g=Vn(t,E=>y(E)),N=F.useRef(!1),w=m?d||!!m.closest("form"):!0;return x.jsxs(jO,{scope:n,checked:a,disabled:l,children:[x.jsx(Yt.button,{type:"button",role:"radio","aria-checked":a,"data-state":jS(a),"data-disabled":l?"":void 0,disabled:l,value:c,...h,ref:g,onClick:Xt(e.onClick,E=>{a||f?.(),w&&(N.current=E.isPropagationStopped(),N.current||E.stopPropagation())})}),w&&x.jsx(TS,{control:m,bubbles:!N.current,name:r,value:c,checked:a,required:o,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});CS.displayName=c2;var ES="RadioIndicator",PS=F.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...a}=e,o=OO(ES,n);return x.jsx(fl,{present:r||o.checked,children:x.jsx(Yt.span,{"data-state":jS(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})})});PS.displayName=ES;var LO="RadioBubbleInput",TS=F.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...a},o)=>{const l=F.useRef(null),c=Vn(l,o),f=NS(n),d=x4(t);return F.useEffect(()=>{const h=l.current;if(!h)return;const m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(f!==n&&g){const N=new Event("click",{bubbles:r});g.call(h,n),h.dispatchEvent(N)}},[f,n,r]),x.jsx(Yt.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});TS.displayName=LO;function jS(e){return e?"checked":"unchecked"}var RO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Km="RadioGroup",[DO]=zi(Km,[Xm,_S]),OS=Xm(),LS=_S(),[MO,kO]=DO(Km),RS=F.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:a,value:o,required:l=!1,disabled:c=!1,orientation:f,dir:d,loop:h=!0,onValueChange:m,...y}=e,g=OS(n),N=$m(d),[w,E]=iu({prop:o,defaultProp:a??null,onChange:m,caller:Km});return x.jsx(MO,{scope:n,name:r,required:l,disabled:c,value:w,onValueChange:E,children:x.jsx(SS,{asChild:!0,...g,orientation:f,dir:N,loop:h,children:x.jsx(Yt.div,{role:"radiogroup","aria-required":l,"aria-orientation":f,"data-disabled":c?"":void 0,dir:N,...y,ref:t})})})});RS.displayName=Km;var DS="RadioGroupItem",MS=F.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...a}=e,o=kO(DS,n),l=o.disabled||r,c=OS(n),f=LS(n),d=F.useRef(null),h=Vn(t,d),m=o.value===a.value,y=F.useRef(!1);return F.useEffect(()=>{const g=w=>{RO.includes(w.key)&&(y.current=!0)},N=()=>y.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",N),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",N)}},[]),x.jsx(AS,{asChild:!0,...c,focusable:!l,active:m,children:x.jsx(CS,{disabled:l,required:o.required,checked:m,...f,...a,name:o.name,ref:h,onCheck:()=>o.onValueChange(a.value),onKeyDown:Xt(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:Xt(a.onFocus,()=>{y.current&&d.current?.click()})})})});MS.displayName=DS;var FO="RadioGroupIndicator",kS=F.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,a=LS(n);return x.jsx(PS,{...a,...r,ref:t})});kS.displayName=FO;var IO=RS,UO=MS,BO=kS;function uv({className:e,...t}){return x.jsx(IO,{"data-loc":"client/src/components/ui/radio-group.tsx:12","data-slot":"radio-group",className:Yn("grid gap-3",e),...t})}function Jd({className:e,...t}){return x.jsx(UO,{"data-loc":"client/src/components/ui/radio-group.tsx:25","data-slot":"radio-group-item",className:Yn("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:x.jsx(BO,{"data-loc":"client/src/components/ui/radio-group.tsx:33","data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:x.jsx(bj,{"data-loc":"client/src/components/ui/radio-group.tsx:37",className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}var G0="focusScope.autoFocusOnMount",W0="focusScope.autoFocusOnUnmount",Jb={bubbles:!1,cancelable:!0},zO="FocusScope",Zm=F.forwardRef((e,t)=>
vendor: 10,751 bytes, lines 257-294
257{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...l}=e,[c,f]=F.useState(null),d=rc(a),h=rc(o),m=F.useRef(null),y=Vn(t,w=>f(w)),g=F.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;F.useEffect(()=>{if(r){let w=function(H){if(g.paused||!c)return;const k=H.target;c.contains(k)?m.current=k:Kl(m.current,{select:!0})},E=function(H){if(g.paused||!c)return;const k=H.relatedTarget;k!==null&&(c.contains(k)||Kl(m.current,{select:!0}))},_=function(H){if(document.activeElement===document.body)for(const K of H)K.removedNodes.length>0&&Kl(c)};document.addEventListener("focusin",w),document.addEventListener("focusout",E);const z=new MutationObserver(_);return c&&z.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",E),z.disconnect()}}},[r,c,g.paused]),F.useEffect(()=>{if(c){tx.add(g);const w=document.activeElement;if(!c.contains(w)){const _=new CustomEvent(G0,Jb);c.addEventListener(G0,d),c.dispatchEvent(_),_.defaultPrevented||(HO(YO(FS(c)),{select:!0}),document.activeElement===w&&Kl(c))}return()=>{c.removeEventListener(G0,d),setTimeout(()=>{const _=new CustomEvent(W0,Jb);c.addEventListener(W0,h),c.dispatchEvent(_),_.defaultPrevented||Kl(w??document.body,{select:!0}),c.removeEventListener(W0,h),tx.remove(g)},0)}}},[c,d,h,g]);const N=F.useCallback(w=>{if(!n&&!r||g.paused)return;const E=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,_=document.activeElement;if(E&&_){const z=w.currentTarget,[H,k]=qO(z);H&&k?!w.shiftKey&&_===k?(w.preventDefault(),n&&Kl(H,{select:!0})):w.shiftKey&&_===H&&(w.preventDefault(),n&&Kl(k,{select:!0})):_===z&&w.preventDefault()}},[n,r,g.paused]);return x.jsx(Yt.div,{tabIndex:-1,...l,ref:y,onKeyDown:N})});Zm.displayName=zO;function HO(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Kl(r,{select:t}),document.activeElement!==n)return}function qO(e){const t=FS(e),n=ex(t,e),r=ex(t.reverse(),e);return[n,r]}function FS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ex(e,t){for(const n of e)if(!GO(n,{upTo:t}))return n}function GO(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 WO(e){return e instanceof HTMLInputElement&&"select"in e}function Kl(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&WO(e)&&t&&e.select()}}var tx=VO();function VO(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=nx(e,t),e.unshift(t)},remove(t){e=nx(e,t),e[0]?.resume()}}}function nx(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function YO(e){return e.filter(t=>t.tagName!=="A")}var V0=0;function u2(){F.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rx()),document.body.insertAdjacentElement("beforeend",e[1]??rx()),V0++,()=>{V0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),V0--}},[])}function rx(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var vo=function(){return vo=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},vo.apply(this,arguments)};function IS(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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function QO(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;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 Qp="right-scroll-bar-position",$p="width-before-scroll-bar",$O="with-scroll-bars-hidden",XO="--removed-body-scroll-bar-size";function Y0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function KO(e,t){var n=F.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var ZO=typeof window<"u"?F.useLayoutEffect:F.useEffect,sx=new WeakMap;function JO(e,t){var n=KO(null,function(r){return e.forEach(function(a){return Y0(a,r)})});return ZO(function(){var r=sx.get(n);if(r){var a=new Set(r),o=new Set(e),l=n.current;a.forEach(function(c){o.has(c)||Y0(c,null)}),o.forEach(function(c){a.has(c)||Y0(c,l)})}sx.set(n,e)},[e]),n}function eL(e){return e}function tL(e,t){t===void 0&&(t=eL);var n=[],r=!1,a={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 l=t(o,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(o),l=n}var f=function(){var h=l;l=[],h.forEach(o)},d=function(){return Promise.resolve().then(f)};d(),n={push:function(h){l.push(h),d()},filter:function(h){return l=l.filter(h),n}}}};return a}function nL(e){e===void 0&&(e={});var t=tL(null);return t.options=vo({async:!0,ssr:!1},e),t}var US=function(e){var t=e.sideCar,n=IS(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 F.createElement(r,vo({},n))};US.isSideCarExport=!0;function rL(e,t){return e.useMedium(t),US}var BS=nL(),Q0=function(){},Jm=F.forwardRef(function(e,t){var n=F.useRef(null),r=F.useState({onScrollCapture:Q0,onWheelCapture:Q0,onTouchMoveCapture:Q0}),a=r[0],o=r[1],l=e.forwardProps,c=e.children,f=e.className,d=e.removeScrollBar,h=e.enabled,m=e.shards,y=e.sideCar,g=e.noRelative,N=e.noIsolation,w=e.inert,E=e.allowPinchZoom,_=e.as,z=_===void 0?"div":_,H=e.gapMode,k=IS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),K=y,U=JO([n,t]),G=vo(vo({},k),a);return F.createElement(F.Fragment,null,h&&F.createElement(K,{sideCar:BS,removeScrollBar:d,shards:m,noRelative:g,noIsolation:N,inert:w,setCallbacks:o,allowPinchZoom:!!E,lockRef:n,gapMode:H}),l?F.cloneElement(F.Children.only(c),vo(vo({},G),{ref:U})):F.createElement(z,vo({},G,{className:f,ref:U}),c))});Jm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jm.classNames={fullWidth:$p,zeroRight:Qp};var sL=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function aL(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sL();return t&&e.setAttribute("nonce",t),e}function iL(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oL(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var lL=function(){var e=0,t=null;return{add:function(n){e==0&&(t=aL())&&(iL(t,n),oL(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cL=function(){var e=lL();return function(t,n){F.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zS=function(){var e=cL(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},uL={left:0,top:0,right:0,gap:0},$0=function(e){return parseInt(e||"",10)||0},fL=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[$0(n),$0(r),$0(a)]},dL=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return uL;var t=fL(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])}},hL=zS(),Df="data-scroll-locked",pL=function(e,t,n,r){var a=e.left,o=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),` 258 .`.concat($O,` { 259 overflow: hidden `).concat(r,`; 260 padding-right: `).concat(c,"px ").concat(r,`; 261 } 262 body[`).concat(Df,`] { 263 overflow: hidden `).concat(r,`; 264 overscroll-behavior: contain; 265 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 266 padding-left: `.concat(a,`px; 267 padding-top: `).concat(o,`px; 268 padding-right: `).concat(l,`px; 269 margin-left:0; 270 margin-top:0; 271 margin-right: `).concat(c,"px ").concat(r,`; 272 `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),` 273 } 274 275 .`).concat(Qp,` { 276 right: `).concat(c,"px ").concat(r,`; 277 } 278 279 .`).concat($p,` { 280 margin-right: `).concat(c,"px ").concat(r,`; 281 } 282 283 .`).concat(Qp," .").concat(Qp,` { 284 right: 0 `).concat(r,`; 285 } 286 287 .`).concat($p," .").concat($p,` { 288 margin-right: 0 `).concat(r,`; 289 } 290 291 body[`).concat(Df,`] { 292 `).concat(XO,": ").concat(c,`px; 293 } 294`)},ax=function(){var e=parseInt(document.body.getAttribute(Df)||"0",10);return isFinite(e)?e:0},mL=function(){F.useEffect(function(){return document.body.setAttribute(Df,(ax()+1).toString()),function(){var e=ax()-1;e<=0?document.body.removeAttribute(Df):document.body.setAttribute(Df,e.toString())}},[])},gL=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;mL();var o=F.useMemo(function(){return dL(a)},[a]);return F.createElement(hL,{styles:pL(o,!t,a,n?"":"!important")})},fv=!1;if(typeof window<"u")try{var Tp=Object.defineProperty({},"passive",{get:function(){return fv=!0,!0}});window.addEventListener("test",Tp,Tp),window.removeEventListener("test",Tp,Tp)}catch{fv=!1}var hf=fv?{passive:!1}:!1,vL=function(e){return e.tagName==="TEXTAREA"},HS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vL(e)&&n[t]==="visible")},yL=function(e){return HS(e,"overflowY")},bL=function(e){return HS(e,"overflowX")},ix=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=qS(e,r);if(a){var o=GS(e,r),l=o[1],c=o[2];
vendor: 4,308 bytes, lines 294-297
294if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xL=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},wL=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},qS=function(e,t){return e==="v"?yL(t):bL(t)},GS=function(e,t){return e==="v"?xL(t):wL(t)},SL=function(e,t){return e==="h"&&t==="rtl"?-1:1},AL=function(e,t,n,r,a){var o=SL(e,window.getComputedStyle(t).direction),l=o*r,c=n.target,f=t.contains(c),d=!1,h=l>0,m=0,y=0;do{if(!c)break;var g=GS(e,c),N=g[0],w=g[1],E=g[2],_=w-E-o*N;(N||_)&&qS(e,c)&&(m+=_,y+=N);var z=c.parentNode;c=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(h&&Math.abs(m)<1||!h&&Math.abs(y)<1)&&(d=!0),d},jp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ox=function(e){return[e.deltaX,e.deltaY]},lx=function(e){return e&&"current"in e?e.current:e},NL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_L=function(e){return` 295 .block-interactivity-`.concat(e,` {pointer-events: none;} 296 .allow-interactivity-`).concat(e,` {pointer-events: all;} 297`)},CL=0,pf=[];function EL(e){var t=F.useRef([]),n=F.useRef([0,0]),r=F.useRef(),a=F.useState(CL++)[0],o=F.useState(zS)[0],l=F.useRef(e);F.useEffect(function(){l.current=e},[e]),F.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var w=QO([e.lockRef.current],(e.shards||[]).map(lx),!0).filter(Boolean);return w.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),w.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=F.useCallback(function(w,E){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!l.current.allowPinchZoom;var _=jp(w),z=n.current,H="deltaX"in w?w.deltaX:z[0]-_[0],k="deltaY"in w?w.deltaY:z[1]-_[1],K,U=w.target,G=Math.abs(H)>Math.abs(k)?"h":"v";if("touches"in w&&G==="h"&&U.type==="range")return!1;var O=ix(G,U);if(!O)return!0;if(O?K=G:(K=G==="v"?"h":"v",O=ix(G,U)),!O)return!1;if(!r.current&&"changedTouches"in w&&(H||k)&&(r.current=K),!K)return!0;var R=r.current||K;return AL(R,E,w,R==="h"?H:k)},[]),f=F.useCallback(function(w){var E=w;if(!(!pf.length||pf[pf.length-1]!==o)){var _="deltaY"in E?ox(E):jp(E),z=t.current.filter(function(K){return K.name===E.type&&(K.target===E.target||E.target===K.shadowParent)&&NL(K.delta,_)})[0];if(z&&z.should){E.cancelable&&E.preventDefault();return}if(!z){var H=(l.current.shards||[]).map(lx).filter(Boolean).filter(function(K){return K.contains(E.target)}),k=H.length>0?c(E,H[0]):!l.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),d=F.useCallback(function(w,E,_,z){var H={name:w,delta:E,target:_,should:z,shadowParent:PL(_)};t.current.push(H),setTimeout(function(){t.current=t.current.filter(function(k){return k!==H})},1)},[]),h=F.useCallback(function(w){n.current=jp(w),r.current=void 0},[]),m=F.useCallback(function(w){d(w.type,ox(w),w.target,c(w,e.lockRef.current))},[]),y=F.useCallback(function(w){d(w.type,jp(w),w.target,c(w,e.lockRef.current))},[]);F.useEffect(function(){return pf.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:y}),document.addEventListener("wheel",f,hf),document.addEventListener("touchmove",f,hf),document.addEventListener("touchstart",h,hf),function(){pf=pf.filter(function(w){return w!==o}),document.removeEventListener("wheel",f,hf),document.removeEventListener("touchmove",f,hf),document.removeEventListener("touchstart",h,hf)}},[]);var g=e.removeScrollBar,N=e.inert;return F.createElement(F.Fragment,null,N?F.createElement(o,{styles:_L(a)}):null,g?F.createElement(gL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function PL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const TL=rL(BS,EL);var eg=F.forwardRef(function(e,t){return F.createElement(Jm,vo({},e,{ref:t,sideCar:TL}))});eg.classNames=Jm.classNames;var jL=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mf=new WeakMap,Op=new WeakMap,Lp={},X0=0,WS=function(e){return e&&(e.host||WS(e.parentNode))}
vendor: 4,265 bytes, line 297
297,OL=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=WS(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})},LL=function(e,t,n,r){var a=OL(t,Array.isArray(e)?e:[e]);Lp[n]||(Lp[n]=new WeakMap);var o=Lp[n],l=[],c=new Set,f=new Set(a),d=function(m){!m||c.has(m)||(c.add(m),d(m.parentNode))};a.forEach(d);var h=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(y){if(c.has(y))h(y);else try{var g=y.getAttribute(r),N=g!==null&&g!=="false",w=(mf.get(y)||0)+1,E=(o.get(y)||0)+1;mf.set(y,w),o.set(y,E),l.push(y),w===1&&N&&Op.set(y,!0),E===1&&y.setAttribute(n,"true"),N||y.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",y,_)}})};return h(t),c.clear(),X0++,function(){l.forEach(function(m){var y=mf.get(m)-1,g=o.get(m)-1;mf.set(m,y),o.set(m,g),y||(Op.has(m)||m.removeAttribute(r),Op.delete(m)),g||m.removeAttribute(n)}),X0--,X0||(mf=new WeakMap,mf=new WeakMap,Op=new WeakMap,Lp={})}},f2=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=jL(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),LL(r,a,n,"aria-hidden")):function(){return null}},tg="Dialog",[VS]=zi(tg),[RL,Hi]=VS(tg),YS=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,c=F.useRef(null),f=F.useRef(null),[d,h]=iu({prop:r,defaultProp:a??!1,onChange:o,caller:tg});return x.jsx(RL,{scope:t,triggerRef:c,contentRef:f,contentId:Xs(),titleId:Xs(),descriptionId:Xs(),open:d,onOpenChange:h,onOpenToggle:F.useCallback(()=>h(m=>!m),[h]),modal:l,children:n})};YS.displayName=tg;var QS="DialogTrigger",DL=F.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Hi(QS,n),o=Vn(t,a.triggerRef);return x.jsx(Yt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":p2(a.open),...r,ref:o,onClick:Xt(e.onClick,a.onOpenToggle)})});DL.displayName=QS;var d2="DialogPortal",[ML,$S]=VS(d2,{forceMount:void 0}),XS=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Hi(d2,t);return x.jsx(ML,{scope:t,forceMount:n,children:F.Children.map(r,l=>x.jsx(fl,{present:n||o.open,children:x.jsx(Gm,{asChild:!0,container:a,children:l})}))})};XS.displayName=d2;var mm="DialogOverlay",KS=F.forwardRef((e,t)=>{const n=$S(mm,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Hi(mm,e.__scopeDialog);return o.modal?x.jsx(fl,{present:r||o.open,children:x.jsx(FL,{...a,ref:t})}):null});KS.displayName=mm;var kL=su("DialogOverlay.RemoveScroll"),FL=F.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Hi(mm,n);return x.jsx(eg,{as:kL,allowPinchZoom:!0,shards:[a.contentRef],children:x.jsx(Yt.div,{"data-state":p2(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ou="DialogContent",ZS=F.forwardRef((e,t)=>{const n=$S(ou,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Hi(ou,e.__scopeDialog);return x.jsx(fl,{present:r||o.open,children:o.modal?x.jsx(IL,{...a,ref:t}):x.jsx(UL,{...a,ref:t})})});ZS.displayName=ou;var IL=F.forwardRef((e,t)=>{const n=Hi(ou,e.__scopeDialog),r=F.useRef(null),a=Vn(t,n.contentRef,r);return F.useEffect(()=>{const o=r.current;if(o)return f2(o)},[]),x.jsx(JS,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xt(e.onCloseAutoFocus,o=>{o.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Xt(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&o.preventDefault()}),onFocusOutside:Xt(e.onFocusOutside,o=>o.preventDefault())})}),UL=F.forwardRef((e,t)=>{const n=Hi(ou,e.__scopeDialog),r=F.useRef(!1),a=F.useRef(!1);return x.jsx(JS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||n.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=o.target;n.triggerRef.current?.contains(l)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),JS=F.forwardRef((e,t)=>
297{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...l}=e,c=Hi(ou,n),f=F.useRef(null),d=Vn(t,f);return u2(),x.jsxs(x.Fragment,{children:[x.jsx(Zm,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:x.jsx(bh,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":p2(c.open),...l,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(qL,{titleId:c.titleId}),x.jsx(WL,{contentRef:f,descriptionId:c.descriptionId})]})]})}),h2="DialogTitle",BL=F.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Hi(h2,n);return x.jsx(Yt.h2,{id:a.titleId,...r,ref:t})});BL.displayName=h2;var e6="DialogDescription",zL=F.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Hi(e6,n);return x.jsx(Yt.p,{id:a.descriptionId,...r,ref:t})});zL.displayName=e6;var t6="DialogClose",HL=F.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Hi(t6,n);return x.jsx(Yt.button,{type:"button",...r,ref:t,onClick:Xt(e.onClick,()=>a.onOpenChange(!1))})});HL.displayName=t6;function p2(e){return e?"open":"closed"}var n6="DialogTitleWarning",[SU,r6]=x7(n6,{contentName:ou,titleName:h2,docsSlug:"dialog"}),qL=({titleId:e})=>{const t=r6(n6),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 298 299If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 300 301For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return F.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},GL="DialogDescriptionWarning",WL=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r6(GL).contentName}}.`;return F.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},VL=YS,YL=XS,QL=KS,$L=ZS;const XL=F.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),s6=()=>F.useContext(XL);function Rp(e){const t=F.useRef(e);t.current=e;const n=F.useRef(null);return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}function a6(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:r}=e,a=F.useRef(!1),o=F.useRef(null),l=F.useRef(null),c=Rp(m=>{o.current&&(clearTimeout(o.current),o.current=null),l.current&&(clearTimeout(l.current),l.current=null),a.current=!0,n?.(m)}),f=Rp(m=>{o.current=setTimeout(()=>{l.current=setTimeout(()=>{a.current=!1})}),r?.(m)}),d=Rp(m=>{if(a.current&&(m.key==="Escape"||m.key==="Enter"&&!m.shiftKey)){m.stopPropagation();return}t?.(m)}),h=Rp(()=>a.current);return{onCompositionStart:c,onCompositionEnd:f,onKeyDown:d,isComposing:h}}function lr({className:e,type:t,onKeyDown:n,onCompositionStart:r,onCompositionEnd:a,...o}){const l=s6(),{onCompositionStart:c,onCompositionEnd:f,onKeyDown:d}=a6({onKeyDown:h=>{const m=h.nativeEvent.isComposing||l.justEndedComposing();h.key==="Enter"&&m||n?.(h)},onCompositionStart:h=>{l.setComposing(!0),r?.(h)},onCompositionEnd:h=>{l.markCompositionEnd(),setTimeout(()=>{l.setComposing(!1)},100),a?.(h)}});return x.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:Yn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),onCompositionStart:c,onCompositionEnd:f,onKeyDown:d,...o})}function KL({data:e,onChange:t}){return x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:13",className:"space-y-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:14",className:"space-y-3",children:[x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:15",children:"Is this related to an insurance claim?"}),x.jsxs(uv,{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:16",value:e.isInsuranceClaim===void 0?"":e.isInsuranceClaim?"yes":"no",onValueChange:n=>t({isInsuranceClaim:n==="yes"}),children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:20",className:"flex items-center space-x-3 py-1",children:[x.jsx(Jd,{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:21",value:"yes",id:"claim-yes",className:"min-h-[20px] min-w-[20px]"}),x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:22",htmlFor:"claim-yes",className:"font-normal cursor-pointer text-base",children:"Yes"})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:26",className:"flex items-center space-x-3 py-1",children:[x.jsx(Jd,{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:27",value:"no",id:"claim-no",className:"min-h-[20px] min-w-[20px]"}),x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:28",htmlFor:"claim-no",className:"font-normal cursor-pointer text-base",children:"No"})]})]})]}),e.isInsuranceClaim&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:37",className:"space-y-2",children:[x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:38",htmlFor:"insuranceCarrier",children:"Insurance Carrier"}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:39",id:"insuranceCarrier",value:e.insuranceCarrier||"",onChange:n=>t({insuranceCarrier:n.target.value}),placeholder:"Enter insurance carrier name"})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:47",className:"space-y-2",children:[x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:48",htmlFor:"claimNumber",children:"Claim Number"}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:49",id:"claimNumber",value:e.claimNumber||"",onChange:n=>t({claimNumber:n.target.value}),placeholder:"Enter claim number"})]})]}),x.jsx("div",{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:59",className:"bg-muted/50 p-4 rounded-lg",children:x.jsxs("p",{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:60",className:"text-sm text-muted-foreground",children:[x.jsx("strong",{"data-loc":"client/src/pages/assessment-steps/Step1GeneralInfo.tsx:61",children:"Note:"})," This assessment follows the methodology outlined in the Building Experts Institute's Repairability Assessment of Asphalt Shingle Roofs course."]}
301)})]})}function ZL(e,t){return t.forEach((function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach((function(r){if(r!=="default"&&!(r in e)){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}}))})),Object.freeze(e)}function i6(e,t){return new Promise((function(n,r){let a;return JL(e).then((function(o){try{return a=o,n(new Blob([t.slice(0,2),a,t.slice(2)],{type:"image/jpeg"}))}catch(l){return r(l)}}),r)}))}const JL=e=>new Promise(((t,n)=>{const r=new FileReader;r.addEventListener("load",(({target:{result:a}})=>{const o=new DataView(a);let l=0;if(o.getUint16(l)!==65496)return n("not a valid JPEG");for(l+=2;;){const c=o.getUint16(l);if(c===65498)break;const f=o.getUint16(l+2);if(c===65505&&o.getUint32(l+4)===1165519206){const d=l+10;let h;switch(o.getUint16(d)){case 18761:h=!0;break;case 19789:h=!1;break;default:return n("TIFF header contains invalid endian")}if(o.getUint16(d+2,h)!==42)return n("TIFF header contains invalid version");const m=o.getUint32(d+4,h),y=d+m+2+12*o.getUint16(d+m,h);for(let g=d+m+2;g<y;g+=12)if(o.getUint16(g,h)==274){if(o.getUint16(g+2,h)!==3)return n("Orientation data type is invalid");if(o.getUint32(g+4,h)!==1)return n("Orientation data count is invalid");o.setUint16(g+8,1,h);break}return t(a.slice(l,l+2+f))}l+=2+f}return t(new Blob)})),r.readAsArrayBuffer(e)}));var gm={},eR={get exports(){return gm},set exports(e){gm=e}};(function(e){var t,n,r={};eR.exports=r,r.parse=function(a,o){for(var l=r.bin.readUshort,c=r.bin.readUint,f=0,d={},h=new Uint8Array(a),m=h.length-4;c(h,m)!=101010256;)m--;f=m,f+=4;var y=l(h,f+=4);l(h,f+=2);var g=c(h,f+=2),N=c(h,f+=4);f+=4,f=N;for(var w=0;w<y;w++){c(h,f),f+=4,f+=4,f+=4,c(h,f+=4),g=c(h,f+=4);var E=c(h,f+=4),_=l(h,f+=4),z=l(h,f+2),H=l(h,f+4);f+=6;var k=c(h,f+=8);f+=4,f+=_+z+H,r._readLocal(h,k,d,g,E,o)}return d},r._readLocal=function(a,o,l,c,f,d){var h=r.bin.readUshort,m=r.bin.readUint;m(a,o),h(a,o+=4),h(a,o+=2);var y=h(a,o+=2);m(a,o+=2),m(a,o+=4),o+=4;var g=h(a,o+=8),N=h(a,o+=2);o+=2;var w=r.bin.readUTF8(a,o,g);if(o+=g,o+=N,d)l[w]={size:f,csize:c};else{var E=new Uint8Array(a.buffer,o);if(y==0)l[w]=new Uint8Array(E.buffer.slice(o,o+c));else{if(y!=8)throw"unknown compression method: "+y;var _=new Uint8Array(f);r.inflateRaw(E,_),l[w]=_}}},r.inflateRaw=function(a,o){return r.F.inflate(a,o)},r.inflate=function(a,o){return a[0],a[1],r.inflateRaw(new Uint8Array(a.buffer,a.byteOffset+2,a.length-6),o)},r.deflate=function(a,o){o==null&&(o={level:6});var l=0,c=new Uint8Array(50+Math.floor(1.1*a.length));c[l]=120,c[l+1]=156,l+=2,l=r.F.deflateRaw(a,c,l,o.level);var f=r.adler(a,0,a.length);return c[l+0]=f>>>24&255,c[l+1]=f>>>16&255,c[l+2]=f>>>8&255,c[l+3]=f>>>0&255,new Uint8Array(c.buffer,0,l+4)},r.deflateRaw=function(a,o){o==null&&(o={level:6});var l=new Uint8Array(50+Math.floor(1.1*a.length)),c=r.F.deflateRaw(a,l,c,o.level);return new Uint8Array(l.buffer,0,c)},r.encode=function(a,o){o==null&&(o=!1);var l=0,c=r.bin.writeUint,f=r.bin.writeUshort,d={};for(var h in a){var m=!r._noNeed(h)&&!o,y=a[h],g=r.crc.crc(y,0,y.length);d[h]={cpr:m,usize:y.length,crc:g,file:m?r.deflateRaw(y):y}}for(var h in d)l+=d[h].file.length+30+46+2*r.bin.sizeUTF8(h);l+=22;var N=new Uint8Array(l),w=0,E=[];for(var h in d){var _=d[h];E.push(w),w=r._writeHeader(N,w,h,_,0)}var z=0,H=w;for(var h in d)_=d[h],E.push(w),w=r._writeHeader(N,w,h,_,1,E[z++]);var k=w-H;return c(N,w,101010256),w+=4,f(N,w+=4,z),f(N,w+=2,z),c(N,w+=2,k),c(N,w+=4,H),w+=4,w+=2,N.buffer},r._noNeed=function(a){var o=a.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(o)!=-1},r._writeHeader=function(a,o,l,c,f,d){var h=r.bin.writeUint,m=r.bin.writeUshort,y=c.file;return h(a,o,f==0?67324752:33639248),o+=4,f==1&&(o+=2),m(a,o,20),m(a,o+=2,0),m(a,o+=2,c.cpr?8:0),h(a,o+=2,0),h(a,o+=4,c.crc),h(a,o+=4,y.length),h(a,o+=4,c.usize),m(a,o+=4,r.bin.sizeUTF8(l)),m(a,o+=2,0),o+=2,f==1&&(o+=2,o+=2,h(a,o+=6,d),o+=4),o+=r.bin.writeUTF8(a,o,l),f==0&&(a.set(y,o),o+=y.length),o},r.crc={table:(function(){for(var a=new Uint32Array(256),o=0;o<256;o++){for(var l=o,c=0;c<8;c++)1&l?l=3988292384^l>>>1:l>>>=1;a[o]=l}return a})(),update:function(a,o,l,c){for(var f=0;f<c;f++)a=r.crc.table[255&(a^o[l+f])]^a>>>8;return a},crc:function(a,o,l){return 4294967295^r.crc.update(4294967295,a,o,l)}},r.adler=function(a,o,l){for(var c=1,f=0,d=o,h=o+l;d<h;){for(var m=Math.min(d+5552,h);d<m;)f+=c+=a[d++];c%=65521,f%=65521}return f<<16|c},r.bin={readUshort:function(a,o){return a[o]|a[o+1]<<8},writeUshort:function(a,o,l){a[o]=255&l,a[o+1]=l>>8&255},readUint:function(a,o){return 16777216*a[o+3]+(a[o+2]<<16|a[o+1]<<8|a[o])},writeUint:function(a,o,l){a[o]=255&l,a[o+1]=l>>8&255,a[o+2]=l>>16&255,a[o+3]=l>>24&255},readASCII:function(a,o,l){for(var c="",f=0;f<l;f++)c+=String.fromCharCode(a[o+f]);return c},writeASCII:function(a,o,l){for(var c=0;c<l.length;c++)a[o+c]=l.charCodeAt(c)},pad:function(a){return a.length<2?"0"+a:a},readUTF8:function(a,o,l){for(var c,f="",d=0;d<l;d++)f+="%"+r.bin.pad(a[o+d].toString(16));try{c=decodeURIComponent(f)}catch{return r.bin.readASCII(a,o,l)}return c},writeUTF8:function(a,o,l){for(var c=l.length,f=0,d=0;d<c;d++){var h=l.charCodeAt(d);if((4294967168&h)==0)a[o+f]=h,f++;else if((4294965248&h)==0)a[o+f]=192|h>>6,a[o+f+1]=128|h>>0&63,f+=2;else if((4294901760&h)==0)a[o+f]=224|h>>12,a[o+f+1]=128|h>>6&63,a[o+f+2]=128|h>>0&63,f+=3;else{if((4292870144&h)!=0)throw"e";a[o+f]=240|h>>18,a[o+f+1]=128|h>>12&63,a[o+f+2]=128|h>>6&63,a[o+f+3]=128|h>>0&63,f+=4}}return f},sizeUTF8:function(a){for(var o=a.length,l=0,c=0;c<o;
301c++){var f=a.charCodeAt(c);if((4294967168&f)==0)l++;else if((4294965248&f)==0)l+=2;else if((4294901760&f)==0)l+=3;else{if((4292870144&f)!=0)throw"e";l+=4}}return l}},r.F={},r.F.deflateRaw=function(a,o,l,c){var f=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][c],d=r.F.U,h=r.F._goodIndex;r.F._hash;var m=r.F._putsE,y=0,g=l<<3,N=0,w=a.length;if(c==0){for(;y<w;)m(o,g,y+(j=Math.min(65535,w-y))==w?1:0),g=r.F._copyExact(a,y,j,o,g+8),y+=j;return g>>>3}var E=d.lits,_=d.strt,z=d.prev,H=0,k=0,K=0,U=0,G=0,O=0;for(w>2&&(_[O=r.F._hash(a,0)]=0),y=0;y<w;y++){if(G=O,y+1<w-2){O=r.F._hash(a,y+1);var R=y+1&32767;z[R]=_[O],_[O]=R}if(N<=y){(H>14e3||k>26697)&&w-y>100&&(N<y&&(E[H]=y-N,H+=2,N=y),g=r.F._writeBlock(y==w-1||N==w?1:0,E,H,U,a,K,y-K,o,g),H=k=U=0,K=y);var Q=0;y<w-2&&(Q=r.F._bestMatch(a,y,z,G,Math.min(f[2],w-y),f[3]));var j=Q>>>16,D=65535&Q;if(Q!=0){D=65535&Q;var $=h(j=Q>>>16,d.of0);d.lhst[257+$]++;var W=h(D,d.df0);d.dhst[W]++,U+=d.exb[$]+d.dxb[W],E[H]=j<<23|y-N,E[H+1]=D<<16|$<<8|W,H+=2,N=y+j}else d.lhst[a[y]]++;k++}}for(K==y&&a.length!=0||(N<y&&(E[H]=y-N,H+=2,N=y),g=r.F._writeBlock(1,E,H,U,a,K,y-K,o,g),H=0,k=0,H=k=U=0,K=y);(7&g)!=0;)g++;return g>>>3},r.F._bestMatch=function(a,o,l,c,f,d){var h=32767&o,m=l[h],y=h-m+32768&32767;if(m==h||c!=r.F._hash(a,o-y))return 0;for(var g=0,N=0,w=Math.min(32767,o);y<=w&&--d!=0&&m!=h;){if(g==0||a[o+g]==a[o+g-y]){var E=r.F._howLong(a,o,y);if(E>g){if(N=y,(g=E)>=f)break;y+2<E&&(E=y+2);for(var _=0,z=0;z<E-2;z++){var H=o-y+z+32768&32767,k=H-l[H]+32768&32767;k>_&&(_=k,m=H)}}}y+=(h=m)-(m=l[h])+32768&32767}return g<<16|N},r.F._howLong=function(a,o,l){if(a[o]!=a[o-l]||a[o+1]!=a[o+1-l]||a[o+2]!=a[o+2-l])return 0;var c=o,f=Math.min(a.length,o+258);for(o+=3;o<f&&a[o]==a[o-l];)o++;return o-c},r.F._hash=function(a,o){return(a[o]<<8|a[o+1])+(a[o+2]<<4)&65535},r.saved=0,r.F._writeBlock=function(a,o,l,c,f,d,h,m,y){var g,N,w,E,_,z,H,k,K,U=r.F.U,G=r.F._putsF,O=r.F._putsE;U.lhst[256]++,N=(g=r.F.getTrees())[0],w=g[1],E=g[2],_=g[3],z=g[4],H=g[5],k=g[6],K=g[7];var R=32+((y+3&7)==0?0:8-(y+3&7))+(h<<3),Q=c+r.F.contSize(U.fltree,U.lhst)+r.F.contSize(U.fdtree,U.dhst),j=c+r.F.contSize(U.ltree,U.lhst)+r.F.contSize(U.dtree,U.dhst);j+=14+3*H+r.F.contSize(U.itree,U.ihst)+(2*U.ihst[16]+3*U.ihst[17]+7*U.ihst[18]);for(var D=0;D<286;D++)U.lhst[D]=0;for(D=0;D<30;D++)U.dhst[D]=0;for(D=0;D<19;D++)U.ihst[D]=0;var $=R<Q&&R<j?0:Q<j?1:2;if(G(m,y,a),G(m,y+1,$),y+=3,$==0){for(;(7&y)!=0;)y++;y=r.F._copyExact(f,d,h,m,y)}else{var W,te;if($==1&&(W=U.fltree,te=U.fdtree),$==2){r.F.makeCodes(U.ltree,N),r.F.revCodes(U.ltree,N),r.F.makeCodes(U.dtree,w),r.F.revCodes(U.dtree,w),r.F.makeCodes(U.itree,E),r.F.revCodes(U.itree,E),W=U.ltree,te=U.dtree,O(m,y,_-257),O(m,y+=5,z-1),O(m,y+=5,H-4),y+=4;for(var L=0;L<H;L++)O(m,y+3*L,U.itree[1+(U.ordr[L]<<1)]);y+=3*H,y=r.F._codeTiny(k,U.itree,m,y),y=r.F._codeTiny(K,U.itree,m,y)}for(var M=d,X=0;X<l;X+=2){for(var se=o[X],pe=se>>>23,ee=M+(8388607&se);M<ee;)y=r.F._writeLit(f[M++],W,m,y);if(pe!=0){var P=o[X+1],B=P>>16,V=P>>8&255,Y=255&P;O(m,y=r.F._writeLit(257+V,W,m,y),pe-U.of0[V]),y+=U.exb[V],G(m,y=r.F._writeLit(Y,te,m,y),B-U.df0[Y]),y+=U.dxb[Y],M+=pe}}y=r.F._writeLit(256,W,m,y)}return y},r.F._copyExact=function(a,o,l,c,f){var d=f>>>3;return c[d]=l,c[d+1]=l>>>8,c[d+2]=255-c[d],c[d+3]=255-c[d+1],d+=4,c.set(new Uint8Array(a.buffer,o,l),d),f+(l+4<<3)},r.F.getTrees=function(){for(var a=r.F.U,o=r.F._hufTree(a.lhst,a.ltree,15),l=r.F._hufTree(a.dhst,a.dtree,15),c=[],f=r.F._lenCodes(a.ltree,c),d=[],h=r.F._lenCodes(a.dtree,d),m=0;m<c.length;m+=2)a.ihst[c[m]]++;for(m=0;m<d.length;m+=2)a.ihst[d[m]]++;for(var y=r.F._hufTree(a.ihst,a.itree,7),g=19;g>4&&a.itree[1+(a.ordr[g-1]<<1)]==0;)g--;return[o,l,y,f,h,g,c,d]},r.F.getSecond=function(a){for(var o=[],l=0;l<a.length;l+=2)o.push(a[l+1]);return o},r.F.nonZero=function(a){for(var o="",l=0;l<a.length;l+=2)a[l+1]!=0&&(o+=(l>>1)+",");return o},r.F.contSize=function(a,o){for(var l=0,c=0;c<o.length;c++)l+=o[c]*a[1+(c<<1)];return l}
301,r.F._codeTiny=function(a,o,l,c){for(var f=0;f<a.length;f+=2){var d=a[f],h=a[f+1];c=r.F._writeLit(d,o,l,c);var m=d==16?2:d==17?3:7;d>15&&(r.F._putsE(l,c,h,m),c+=m)}return c},r.F._lenCodes=function(a,o){for(var l=a.length;l!=2&&a[l-1]==0;)l-=2;for(var c=0;c<l;c+=2){var f=a[c+1],d=c+3<l?a[c+3]:-1,h=c+5<l?a[c+5]:-1,m=c==0?-1:a[c-1];if(f==0&&d==f&&h==f){for(var y=c+5;y+2<l&&a[y+2]==f;)y+=2;(g=Math.min(y+1-c>>>1,138))<11?o.push(17,g-3):o.push(18,g-11),c+=2*g-2}else if(f==m&&d==f&&h==f){for(y=c+5;y+2<l&&a[y+2]==f;)y+=2;var g=Math.min(y+1-c>>>1,6);o.push(16,g-3),c+=2*g-2}else o.push(f,0)}return l>>>1},r.F._hufTree=function(a,o,l){var c=[],f=a.length,d=o.length,h=0;for(h=0;h<d;h+=2)o[h]=0,o[h+1]=0;for(h=0;h<f;h++)a[h]!=0&&c.push({lit:h,f:a[h]});var m=c.length,y=c.slice(0);if(m==0)return 0;if(m==1){var g=c[0].lit;return y=g==0?1:0,o[1+(g<<1)]=1,o[1+(y<<1)]=1,1}c.sort((function(k,K){return k.f-K.f}));var N=c[0],w=c[1],E=0,_=1,z=2;for(c[0]={lit:-1,f:N.f+w.f,l:N,r:w,d:0};_!=m-1;)N=E!=_&&(z==m||c[E].f<c[z].f)?c[E++]:c[z++],w=E!=_&&(z==m||c[E].f<c[z].f)?c[E++]:c[z++],c[_++]={lit:-1,f:N.f+w.f,l:N,r:w};var H=r.F.setDepth(c[_-1],0);for(H>l&&(r.F.restrictDepth(y,l,H),H=l),h=0;h<m;h++)o[1+(y[h].lit<<1)]=y[h].d;return H},r.F.setDepth=function(a,o){return a.lit!=-1?(a.d=o,o):Math.max(r.F.setDepth(a.l,o+1),r.F.setDepth(a.r,o+1))},r.F.restrictDepth=function(a,o,l){var c=0,f=1<<l-o,d=0;for(a.sort((function(m,y){return y.d==m.d?m.f-y.f:y.d-m.d})),c=0;c<a.length&&a[c].d>o;c++){var h=a[c].d;a[c].d=o,d+=f-(1<<l-h)}for(d>>>=l-o;d>0;)(h=a[c].d)<o?(a[c].d++,d-=1<<o-h-1):c++;for(;c>=0;c--)a[c].d==o&&d<0&&(a[c].d--,d++);d!=0&&console.log("debt left")},r.F._goodIndex=function(a,o){var l=0;return o[16|l]<=a&&(l|=16),o[8|l]<=a&&(l|=8),o[4|l]<=a&&(l|=4),o[2|l]<=a&&(l|=2),o[1|l]<=a&&(l|=1),l},r.F._writeLit=function(a,o,l,c){return r.F._putsF(l,c,o[a<<1]),c+o[1+(a<<1)]},r.F.inflate=function(a,o){var l=Uint8Array;
vendor: 5,094 bytes, line 301
301if(a[0]==3&&a[1]==0)return o||new l(0);var c=r.F,f=c._bitsF,d=c._bitsE,h=c._decodeTiny,m=c.makeCodes,y=c.codes2map,g=c._get17,N=c.U,w=o==null;w&&(o=new l(a.length>>>2<<3));for(var E,_,z=0,H=0,k=0,K=0,U=0,G=0,O=0,R=0,Q=0;z==0;)if(z=f(a,Q,1),H=f(a,Q+1,2),Q+=3,H!=0){if(w&&(o=r.F._check(o,R+(1<<17))),H==1&&(E=N.flmap,_=N.fdmap,G=511,O=31),H==2){k=d(a,Q,5)+257,K=d(a,Q+5,5)+1,U=d(a,Q+10,4)+4,Q+=14;for(var j=0;j<38;j+=2)N.itree[j]=0,N.itree[j+1]=0;var D=1;for(j=0;j<U;j++){var $=d(a,Q+3*j,3);N.itree[1+(N.ordr[j]<<1)]=$,$>D&&(D=$)}Q+=3*U,m(N.itree,D),y(N.itree,D,N.imap),E=N.lmap,_=N.dmap,Q=h(N.imap,(1<<D)-1,k+K,a,Q,N.ttree);var W=c._copyOut(N.ttree,0,k,N.ltree);G=(1<<W)-1;var te=c._copyOut(N.ttree,k,K,N.dtree);O=(1<<te)-1,m(N.ltree,W),y(N.ltree,W,E),m(N.dtree,te),y(N.dtree,te,_)}for(;;){var L=E[g(a,Q)&G];Q+=15&L;var M=L>>>4;if(!(M>>>8))o[R++]=M;else{if(M==256)break;var X=R+M-254;if(M>264){var se=N.ldef[M-257];X=R+(se>>>3)+d(a,Q,7&se),Q+=7&se}var pe=_[g(a,Q)&O];Q+=15&pe;var ee=pe>>>4,P=N.ddef[ee],B=(P>>>4)+f(a,Q,15&P);for(Q+=15&P,w&&(o=r.F._check(o,R+(1<<17)));R<X;)o[R]=o[R++-B],o[R]=o[R++-B],o[R]=o[R++-B],o[R]=o[R++-B];R=X}}}else{(7&Q)!=0&&(Q+=8-(7&Q));var V=4+(Q>>>3),Y=a[V-4]|a[V-3]<<8;w&&(o=r.F._check(o,R+Y)),o.set(new l(a.buffer,a.byteOffset+V,Y),R),Q=V+Y<<3,R+=Y}return o.length==R?o:o.slice(0,R)},r.F._check=function(a,o){var l=a.length;if(o<=l)return a;var c=new Uint8Array(Math.max(l<<1,o));return c.set(a,0),c},r.F._decodeTiny=function(a,o,l,c,f,d){for(var h=r.F._bitsE,m=r.F._get17,y=0;y<l;){var g=a[m(c,f)&o];f+=15&g;var N=g>>>4;if(N<=15)d[y]=N,y++;else{var w=0,E=0;N==16?(E=3+h(c,f,2),f+=2,w=d[y-1]):N==17?(E=3+h(c,f,3),f+=3):N==18&&(E=11+h(c,f,7),f+=7);for(var _=y+E;y<_;)d[y]=w,y++}}return f},r.F._copyOut=function(a,o,l,c){for(var f=0,d=0,h=c.length>>>1;d<l;){var m=a[d+o];c[d<<1]=0,c[1+(d<<1)]=m,m>f&&(f=m),d++}for(;d<h;)c[d<<1]=0,c[1+(d<<1)]=0,d++;return f},r.F.makeCodes=function(a,o){for(var l,c,f,d,h=r.F.U,m=a.length,y=h.bl_count,g=0;g<=o;g++)y[g]=0;for(g=1;g<m;g+=2)y[a[g]]++;var N=h.next_code;for(l=0,y[0]=0,c=1;c<=o;c++)l=l+y[c-1]<<1,N[c]=l;for(f=0;f<m;f+=2)(d=a[f+1])!=0&&(a[f]=N[d],N[d]++)},r.F.codes2map=function(a,o,l){for(var c=a.length,f=r.F.U.rev15,d=0;d<c;d+=2)if(a[d+1]!=0)for(var h=d>>1,m=a[d+1],y=h<<4|m,g=o-m,N=a[d]<<g,w=N+(1<<g);N!=w;)l[f[N]>>>15-o]=y,N++},r.F.revCodes=function(a,o){for(var l=r.F.U.rev15,c=15-o,f=0;f<a.length;f+=2){var d=a[f]<<o-a[f+1];a[f]=l[d]>>>c}},r.F._putsE=function(a,o,l){l<<=7&o;var c=o>>>3;a[c]|=l,a[c+1]|=l>>>8},r.F._putsF=function(a,o,l){l<<=7&o;var c=o>>>3;a[c]|=l,a[c+1]|=l>>>8,a[c+2]|=l>>>16},r.F._bitsE=function(a,o,l){return(a[o>>>3]|a[1+(o>>>3)]<<8)>>>(7&o)&(1<<l)-1},r.F._bitsF=function(a,o,l){return(a[o>>>3]|a[1+(o>>>3)]<<8|a[2+(o>>>3)]<<16)>>>(7&o)&(1<<l)-1},r.F._get17=function(a,o){return(a[o>>>3]|a[1+(o>>>3)]<<8|a[2+(o>>>3)]<<16)>>>(7&o)},r.F._get25=function(a,o){return(a[o>>>3]|a[1+(o>>>3)]<<8|a[2+(o>>>3)]<<16|a[3+(o>>>3)]<<24)>>>(7&o)},r.F.U=(t=Uint16Array,n=Uint32Array,{next_code:new t(16),bl_count:new t(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[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,999,999,999],exb:[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],ldef:new t(32),df0:[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,65535,65535],dxb:[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],ddef:new n(32),flmap:new t(512),fltree:[],fdmap:new t(32),fdtree:[],lmap:new t(32768),ltree:[],ttree:[],dmap:new t(32768),dtree:[],imap:new t(512),itree:[],rev15:new t(32768),lhst:new n(286),dhst:new n(30),ihst:new n(19),lits:new n(15e3),strt:new t(65536),prev:new t(32768)}),(function(){for(var a=r.F.U,o=0;o<32768;o++){var l=o;l=(4278255360&(l=(4042322160&(l=(3435973836&(l=(2863311530&l)>>>1|(1431655765&l)<<1))>>>2|(858993459&l)<<2))>>>4|(252645135&l)<<4))>>>8|(16711935&l)<<8,a.rev15[o]=(l>>>16|l<<16)>>>17}function c(f,d,h){for(;d--!=0;)f.push(0,h)}for(o=0;o<32;o++)a.ldef[o]=a.of0[o]<<3|a.exb[o],a.ddef[o]=a.df0[o]<<4|a.dxb[o];c(a.fltree,144,8),c(a.fltree,112,9),c(a.fltree,24,7),c(a.fltree,8,8),r.F.makeCodes(a.fltree,9),r.F.codes2map(a.fltree,9,a.flmap),r.F.revCodes(a.fltree,9),c(a.fdtree,32,5),r.F.makeCodes(a.fdtree,5),r.F.codes2map(a.fdtree,5,a.fdmap),r.F.revCodes(a.fdtree,5),c(a.itree,19,0),c(a.ltree,286,0),c(a.dtree,30,0),c(a.ttree,320,0)})()})();var tR=ZL({__proto__:null,default:gm},[gm]);const Mi=(function(){var e={nextZero(h,m){for(;h[m]!=0;)m++;return m},readUshort:(h,m)=>h[m]<<8|h[m+1],writeUshort(h,m,y){h[m]=y>>8&255,h[m+1]=255&y},readUint:(h,m)=>16777216*h[m]+(h[m+1]<<16|h[m+2]<<8|h[m+3]),writeUint(h,m,y){h[m]=y>>24&255,h[m+1]=y>>16&255,h[m+2]=y>>8&255,h[m+3]=255&y},readASCII(h,m,y){let g="";for(let N=0;N<y;N++)g+=String.fromCharCode(h[m+N]);return g},writeASCII(h,m,y){for(let g=0;g<y.length;g++)h[m+g]=y.charCodeAt(g)},readBytes(h,m,y){const g=[];for(let N=0;N<y;N++)g.push(h[m+N]);return g},pad:h=>h.length<2?`0${h}`:h,readUTF8(h,m,y){let g,N="";for(let w=0;w<y;w++)N+=`%${e.pad(h[m+w].toString(16))}`;
301try{g=decodeURIComponent(N)}catch{return e.readASCII(h,m,y)}return g}};function t(h,m,y,g){const N=m*y,w=o(g),E=Math.ceil(m*w/8),_=new Uint8Array(4*N),z=new Uint32Array(_.buffer),{ctype:H}=g,{depth:k}=g,K=e.readUshort;if(H==6){const se=N<<2;if(k==8)for(var U=0;U<se;U+=4)_[U]=h[U],_[U+1]=h[U+1],_[U+2]=h[U+2],_[U+3]=h[U+3];if(k==16)for(U=0;U<se;U++)_[U]=h[U<<1]}else if(H==2){const se=g.tabs.tRNS;if(se==null){if(k==8)for(U=0;U<N;U++){var G=3*U;z[U]=255<<24|h[G+2]<<16|h[G+1]<<8|h[G]}if(k==16)for(U=0;U<N;U++)G=6*U,z[U]=255<<24|h[G+4]<<16|h[G+2]<<8|h[G]}else{var O=se[0];const pe=se[1],ee=se[2];if(k==8)for(U=0;U<N;U++){var R=U<<2;G=3*U,z[U]=255<<24|h[G+2]<<16|h[G+1]<<8|h[G],h[G]==O&&h[G+1]==pe&&h[G+2]==ee&&(_[R+3]=0)}if(k==16)for(U=0;U<N;U++)R=U<<2,G=6*U,z[U]=255<<24|h[G+4]<<16|h[G+2]<<8|h[G],K(h,G)==O&&K(h,G+2)==pe&&K(h,G+4)==ee&&(_[R+3]=0)}}else if(H==3){const se=g.tabs.PLTE,pe=g.tabs.tRNS,ee=pe?pe.length:0;if(k==1)for(var Q=0;Q<y;Q++){var j=Q*E,D=Q*m;for(U=0;U<m;U++){R=D+U<<2;var $=3*(W=h[j+(U>>3)]>>7-((7&U)<<0)&1);_[R]=se[$],_[R+1]=se[$+1],_[R+2]=se[$+2],_[R+3]=W<ee?pe[W]:255}}if(k==2)for(Q=0;Q<y;Q++)for(j=Q*E,D=Q*m,U=0;U<m;U++)R=D+U<<2,$=3*(W=h[j+(U>>2)]>>6-((3&U)<<1)&3),_[R]=se[$],_[R+1]=se[$+1],_[R+2]=se[$+2],_[R+3]=W<ee?pe[W]:255;if(k==4)for(Q=0;Q<y;Q++)for(j=Q*E,D=Q*m,U=0;U<m;U++)R=D+U<<2,$=3*(W=h[j+(U>>1)]>>4-((1&U)<<2)&15),_[R]=se[$],_[R+1]=se[$+1],_[R+2]=se[$+2],_[R+3]=W<ee?pe[W]:255;if(k==8)for(U=0;U<N;U++){var W;R=U<<2,$=3*(W=h[U]),_[R]=se[$],_[R+1]=se[$+1],_[R+2]=se[$+2],_[R+3]=W<ee?pe[W]:255}}else if(H==4){if(k==8)for(U=0;U<N;U++){R=U<<2;var te=h[L=U<<1];_[R]=te,_[R+1]=te,_[R+2]=te,_[R+3]=h[L+1]}if(k==16)for(U=0;U<N;U++){var L;R=U<<2,te=h[L=U<<2],_[R]=te,_[R+1]=te,_[R+2]=te,_[R+3]=h[L+2]}}else if(H==0)for(O=g.tabs.tRNS?g.tabs.tRNS:-1,Q=0;Q<y;Q++){const se=Q*E,pe=Q*m;if(k==1)for(var M=0;M<m;M++){var X=(te=255*(h[se+(M>>>3)]>>>7-(7&M)&1))==255*O?0:255;z[pe+M]=X<<24|te<<16|te<<8|te}else if(k==2)for(M=0;M<m;M++)X=(te=85*(h[se+(M>>>2)]>>>6-((3&M)<<1)&3))==85*O?0:255,z[pe+M]=X<<24|te<<16|te<<8|te;else if(k==4)for(M=0;M<m;M++)X=(te=17*(h[se+(M>>>1)]>>>4-((1&M)<<2)&15))==17*O?0:255,z[pe+M]=X<<24|te<<16|te<<8|te;else if(k==8)for(M=0;M<m;M++)X=(te=h[se+M])==O?0:255,z[pe+M]=X<<24|te<<16|te<<8|te;else if(k==16)for(M=0;M<m;M++)te=h[se+(M<<1)],X=K(h,se+(M<<1))==O?0:255,z[pe+M]=X<<24|te<<16|te<<8|te}return _}function n(h,m,y,g){const N=o(h),w=Math.ceil(y*N/8),E=new Uint8Array((w+1+h.interlace)*g);return m=h.tabs.CgBI?a(m,E):r(m,E),h.interlace==0?m=l(m,h,0,y,g):h.interlace==1&&(m=(function(z,H){const k=H.width,K=H.height,U=o(H),G=U>>3,O=Math.ceil(k*U/8),R=new Uint8Array(K*O);let Q=0;const j=[0,0,4,0,2,0,1],D=[0,4,0,2,0,1,0],$=[8,8,8,4,4,2,2],W=[8,8,4,4,2,2,1];let te=0;for(;te<7;){const M=$[te],X=W[te];let se=0,pe=0,ee=j[te];for(;ee<K;)ee+=M,pe++;let P=D[te];for(;P<k;)P+=X,se++;const B=Math.ceil(se*U/8);l(z,H,Q,se,pe);let V=0,Y=j[te];for(;Y<K;){let oe=D[te],le=Q+V*B<<3;for(;oe<k;){var L;if(U==1&&(L=(L=z[le>>3])>>7-(7&le)&1,R[Y*O+(oe>>3)]|=L<<7-((7&oe)<<0)),U==2&&(L=(L=z[le>>3])>>6-(7&le)&3,R[Y*O+(oe>>2)]|=L<<6-((3&oe)<<1)),U==4&&(L=(L=z[le>>3])>>4-(7&le)&15,R[Y*O+(oe>>1)]|=L<<4-((1&oe)<<2)),U>=8){const me=Y*O+oe*G;for(let ge=0;ge<G;ge++)R[me+ge]=z[(le>>3)+ge]}le+=U,oe+=X}V++,Y+=M}se*pe!=0&&(Q+=pe*(1+B)),te+=1}return R})(m,h)),m}function r(h,m){return a(new Uint8Array(h.buffer,2,h.length-6),m)}var a=(function(){const h={H:{}};return h.H.N=function(m,y){const g=Uint8Array;let N,w,E=0,_=0,z=0,H=0,k=0,K=0,U=0,G=0,O=0;if(m[0]==3&&m[1]==0)return y||new g(0);const R=h.H,Q=R.b,j=R.e,D=R.R,$=R.n,W=R.A,te=R.Z,L=R.m,M=y==null;for(M&&(y=new g(m.length>>>2<<5));E==0;)if(E=Q(m,O,1),_=Q(m,O+1,2),O+=3,_!=0){if(M&&(y=h.H.W(y,G+(1<<17))),_==1&&(N=L.J,w=L.h,K=511,U=31),_==2){z=j(m,O,5)+257,H=j(m,O+5,5)+1,k=j(m,O+10,4)+4,O+=14;let se=1;for(var X=0;X<38;X+=2)L.Q[X]=0,L.Q[X+1]=0;for(X=0;X<k;X++){const P=j(m,O+3*X,3);L.Q[1+(L.X[X]<<1)]=P,P>se&&(se=P)}O+=3*k,$(L.Q,se),W(L.Q,se,L.u),N=L.w,w=L.d,O=D(L.u,(1<<se)-1,z+H,m,O,L.v);const pe=R.V(L.v,0,z,L.C);K=(1<<pe)-1;const ee=R.V(L.v,z,H,L.D);U=(1<<ee)-1,$(L.C,pe),W(L.C,pe,N),$(L.D,ee),W(L.D,ee,w)}for(;;){const se=N[te(m,O)&K];O+=15&se;const pe=se>>>4;if(!(pe>>>8))y[G++]=pe;else{if(pe==256)break;{let ee=G+pe-254;if(pe>264){const oe=L.q[pe-257];ee=G+(oe>>>3)+j(m,O,7&oe),O+=7&oe}const P=w[te(m,O)&U];O+=15&P;const B=P>>>4,V=L.c[B],Y=(V>>>4)+Q(m,O,15&V);for(O+=15&V;G<ee;)y[G]=y[G++-Y],y[G]=y[G++-Y],y[G]=y[G++-Y],y[G]=y[G++-Y];G=ee}}}}else{(7&O)!=0&&(O+=8-(7&O));const se=4+(O>>>3),pe=m[se-4]|m[se-3]<<8;M&&(y=h.H.W(y,G+pe)),y.set(new g(m.buffer,m.byteOffset+se,pe),G),O=se+pe<<3,G+=pe}return y.length==G?y:y.slice(0,G)},h.H.W=function(m,y){const g=m.length;if(y<=g)return m;const N=new Uint8Array(g<<1);return N.set(m,0),N},h.H.R=function(m,y,g,N,w,E){const _=h.H.e,z=h.H.Z;let H=0;for(;H<g;){const k=m[z(N,w)&y];w+=15&k;const K=k>>>4;if(K<=15)E[H]=K,H++;else{let U=0,G=0;K==16?(G=3+_(N,w,2),w+=2,U=E[H-1]):K==17?(G=3+_(N,w,3),w+=3):K==18&&(G=11+_(N,w,7),w+=7);const O=H+G;for(;H<O;)E[H]=U,H++}}return w},h.H.V=function(m,y,g,N){let w=0,E=0;const _=N.length>>>1;for(;E<g;){const z=m[E+y];N[E<<1]=0,N[1+(E<<1)]=z,z>w&&(w=z),E++}for(;E<_;)N[E<<1]=0,N[1+(E<<1)]=0,E++;return w},h.H.n=function(m,y){const g=h.H.m,N=m.length;let w,E,_,z;const H=g.j;for(var k=0;k<=y;k++)H[k]=0;for(k=1;k<N;k+=2)H[m[k]]++;const K=g.K;for(w=0,H[0]=0,E=1;E<=y;E++)w=w+H[E-1]<<1,K[E]=w;for(_=0;_<N;_+=2)z=m[_+1],z!=0&&(m[_]=K[z],K[z]++)},h.H.A=function(m,y,g){const N=m.length,w=h.H.m.r;for(let E=0;E<N;E+=2)if(m[E+1]!=0){const _=E>>1,z=m[E+1],H=_<<4|z,k=y-z;let K=m[E]<<k;const U=K+(1<<k);for(;K!=U;)g[w[K]>>>15-y]=H,K++}},h.H.l=function(m,y){const g=h.H.m.r,N=15-y;for(let w=0;w<m.length;w+=2){const E=m[w]<<y-m[w+1];m[w]=g[E]>>>N}},h.H.M=function(m,y,g){g<<=7&y;const N=y>>>3;m[N]|=g,m[N+1]|=g>>>8},h.H.I=function(m,y,g){g<<=7&y;const N=y>>>3;m[N]|=g,m[N+1]|=g>>>8,m[N+2]|=g>>>16},h.H.e=function(m,y,g){return(m[y>>>3]|m[1+(y>>>3)]<<8)>>>(7&y)&(1<<g)-1},h.H.b=function(m,y,g){return(m[y>>>3]|m[1+(y>>>3)]<<8|m[2+(y>>>3)]<<16)>>>(7&y)&(1<<g)-1},h.H.Z=function(m,y){return(m[y>>>3]|m[1+(y>>>3)]<<8|m[2+(y>>>3)]<<16)>>>(7&y)},h.H.i=function(m,y){return(m[y>>>3]|m[1+(y>>>3)]<<8|m[2+(y>>>3)]<<16|m[3+(y>>>3)]<<24)>>>(7&y)},h.H.m=(function(){const m=Uint16Array,y=Uint32Array;return{K:new m(16),j:new m(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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],q:new m(32),p:[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,65535,65535],z:[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],c:new y(32),J:new m(512),_:[],h:new m(32),$:[],w:new m(32768),C:[],v:[],d:new m(32768),D:[],u:new m(512),Q:[],r:new m(32768),s:new y(286),Y:new y(30),a:new y(19),t:new y(15e3),k:new m(65536),g:new m(32768)}})(),(function(){const m=h.H.m;
301for(var y=0;y<32768;y++){let N=y;N=(2863311530&N)>>>1|(1431655765&N)<<1,N=(3435973836&N)>>>2|(858993459&N)<<2,N=(4042322160&N)>>>4|(252645135&N)<<4,N=(4278255360&N)>>>8|(16711935&N)<<8,m.r[y]=(N>>>16|N<<16)>>>17}function g(N,w,E){for(;w--!=0;)N.push(0,E)}for(y=0;y<32;y++)m.q[y]=m.S[y]<<3|m.T[y],m.c[y]=m.p[y]<<4|m.z[y];g(m._,144,8),g(m._,112,9),g(m._,24,7),g(m._,8,8),h.H.n(m._,9),h.H.A(m._,9,m.J),h.H.l(m._,9),g(m.$,32,5),h.H.n(m.$,5),h.H.A(m.$,5,m.h),h.H.l(m.$,5),g(m.Q,19,0),g(m.C,286,0),g(m.D,30,0),g(m.v,320,0)})(),h.H.N})();function o(h){return[1,null,3,1,2,null,4][h.ctype]*h.depth}function l(h,m,y,g,N){let w=o(m);const E=Math.ceil(g*w/8);let _,z;w=Math.ceil(w/8);let H=h[y],k=0;if(H>1&&(h[y]=[0,0,1][H-2]),H==3)for(k=w;k<E;k++)h[k+1]=h[k+1]+(h[k+1-w]>>>1)&255;for(let K=0;K<N;K++)if(_=y+K*E,z=_+K+1,H=h[z-1],k=0,H==0)for(;k<E;k++)h[_+k]=h[z+k];else if(H==1){for(;k<w;k++)h[_+k]=h[z+k];for(;k<E;k++)h[_+k]=h[z+k]+h[_+k-w]}else if(H==2)for(;k<E;k++)h[_+k]=h[z+k]+h[_+k-E];else if(H==3){for(;k<w;k++)h[_+k]=h[z+k]+(h[_+k-E]>>>1);for(;k<E;k++)h[_+k]=h[z+k]+(h[_+k-E]+h[_+k-w]>>>1)}else{for(;k<w;k++)h[_+k]=h[z+k]+c(0,h[_+k-E],0);for(;k<E;k++)h[_+k]=h[z+k]+c(h[_+k-w],h[_+k-E],h[_+k-w-E])}return h}function c(h,m,y){const g=h+m-y,N=g-h,w=g-m,E=g-y;return N*N<=w*w&&N*N<=E*E?h:w*w<=E*E?m:y}function f(h,m,y){y.width=e.readUint(h,m),m+=4,y.height=e.readUint(h,m),m+=4,y.depth=h[m],m++,y.ctype=h[m],m++,y.compress=h[m],m++,y.filter=h[m],m++,y.interlace=h[m],m++}function d(h,m,y,g,N,w,E,_,z){const H=Math.min(m,N),k=Math.min(y,w);let K=0,U=0;for(let te=0;te<k;te++)for(let L=0;L<H;L++)if(E>=0&&_>=0?(K=te*m+L<<2,U=(_+te)*N+E+L<<2):(K=(-_+te)*m-E+L<<2,U=te*N+L<<2),z==0)g[U]=h[K],g[U+1]=h[K+1],g[U+2]=h[K+2],g[U+3]=h[K+3];else if(z==1){var G=h[K+3]*.00392156862745098,O=h[K]*G,R=h[K+1]*G,Q=h[K+2]*G,j=g[U+3]*(1/255),D=g[U]*j,$=g[U+1]*j,W=g[U+2]*j;const M=1-G,X=G+j*M,se=X==0?0:1/X;g[U+3]=255*X,g[U+0]=(O+D*M)*se,g[U+1]=(R+$*M)*se,g[U+2]=(Q+W*M)*se}else if(z==2)G=h[K+3],O=h[K],R=h[K+1],Q=h[K+2],j=g[U+3],D=g[U],$=g[U+1],W=g[U+2],G==j&&O==D&&R==$&&Q==W?(g[U]=0,g[U+1]=0,g[U+2]=0,g[U+3]=0):(g[U]=O,g[U+1]=R,g[U+2]=Q,g[U+3]=G);else if(z==3){if(G=h[K+3],O=h[K],R=h[K+1],Q=h[K+2],j=g[U+3],D=g[U],$=g[U+1],W=g[U+2],G==j&&O==D&&R==$&&Q==W)continue;if(G<220&&j>20)return!1}return!0}return{decode:function(m){const y=new Uint8Array(m);let g=8;const N=e,w=N.readUshort,E=N.readUint,_={tabs:{},frames:[]},z=new Uint8Array(y.length);let H,k=0,K=0;const U=[137,80,78,71,13,10,26,10];for(var G=0;G<8;G++)if(y[G]!=U[G])throw"The input is not a PNG file!";for(;g<y.length;){const te=N.readUint(y,g);g+=4;const L=N.readASCII(y,g,4);if(g+=4,L=="IHDR")f(y,g,_);else if(L=="iCCP"){for(var O=g;y[O]!=0;)O++;N.readASCII(y,g,O-g),y[O+1];const M=y.slice(O+2,g+te);let X=null;try{X=r(M)}catch{X=a(M)}_.tabs[L]=X}else if(L=="CgBI")_.tabs[L]=y.slice(g,g+4);else if(L=="IDAT"){for(G=0;G<te;G++)z[k+G]=y[g+G];k+=te}else if(L=="acTL")_.tabs[L]={num_frames:E(y,g),num_plays:E(y,g+4)},H=new Uint8Array(y.length);else if(L=="fcTL"){K!=0&&((W=_.frames[_.frames.length-1]).data=n(_,H.slice(0,K),W.rect.width,W.rect.height),K=0);const M={x:E(y,g+12),y:E(y,g+16),width:E(y,g+4),height:E(y,g+8)};let X=w(y,g+22);X=w(y,g+20)/(X==0?100:X);const se={rect:M,delay:Math.round(1e3*X),dispose:y[g+24],blend:y[g+25]};_.frames.push(se)}else if(L=="fdAT"){for(G=0;G<te-4;G++)H[K+G]=y[g+G+4];K+=te-4}else if(L=="pHYs")_.tabs[L]=[N.readUint(y,g),N.readUint(y,g+4),y[g+8]];else if(L=="cHRM")for(_.tabs[L]=[],G=0;G<8;G++)_.tabs[L].push(N.readUint(y,g+4*G));else if(L=="tEXt"||L=="zTXt"){_.tabs[L]==null&&(_.tabs[L]={});var R=N.nextZero(y,g),Q=N.readASCII(y,g,R-g),j=g+te-R-1;if(L=="tEXt")$=N.readASCII(y,R+1,j);else{var D=r(y.slice(R+2,R+2+j));$=N.readUTF8(D,0,D.length)}_.tabs[L][Q]=$}else if(L=="iTXt"){_.tabs[L]==null&&(_.tabs[L]={}),R=0,O=g,R=N.nextZero(y,O),Q=N.readASCII(y,O,R-O);const M=y[O=R+1];var $;y[O+1],O+=2,R=N.nextZero(y,O),N.readASCII(y,O,R-O),O=R+1,R=N.nextZero(y,O),N.readUTF8(y,O,R-O),j=te-((O=R+1)-g),M==0?$=N.readUTF8(y,O,j):(D=r(y.slice(O,O+j)),$=N.readUTF8(D,0,D.length)),_.tabs[L][Q]=$}else if(L=="PLTE")_.tabs[L]=N.readBytes(y,g,te);else if(L=="hIST"){const M=_.tabs.PLTE.length/3;for(_.tabs[L]=[],G=0;G<M;G++)_.tabs[L].push(w(y,g+2*G))}else if(L=="tRNS")_.ctype==3?_.tabs[L]=N.readBytes(y,g,te):_.ctype==0?_.tabs[L]=w(y,g):_.ctype==2&&(_.tabs[L]=[w(y,g),w(y,g+2),w(y,g+4)]);else if(L=="gAMA")_.tabs[L]=N.readUint(y,g)/1e5;else if(L=="sRGB")_.tabs[L]=y[g];else if(L=="bKGD")_.ctype==0||_.ctype==4?_.tabs[L]=[w(y,g)]:_.ctype==2||_.ctype==6?_.tabs[L]=[w(y,g),w(y,g+2),w(y,g+4)]:_.ctype==3&&(_.tabs[L]=y[g]);else if(L=="IEND")break;g+=te,N.readUint(y,g),g+=4}var W;return K!=0&&((W=_.frames[_.frames.length-1]).data=n(_,H.slice(0,K),W.rect.width,W.rect.height)),_.data=n(_,z,_.width,_.height),delete _.compress,delete _.interlace,delete _.filter,_},toRGBA8:function(m){const y=m.width,g=m.height;if(m.tabs.acTL==null)return[t(m.data,y,g,m).buffer];const N=[];m.frames[0].data==null&&(m.frames[0].data=m.data);const w=y*g*4,E=new Uint8Array(w),_=new Uint8Array(w),z=new Uint8Array(w);for(let k=0;k<m.frames.length;k++){const K=m.frames[k],U=K.rect.x,G=K.rect.y,O=K.rect.width,R=K.rect.height,Q=t(K.data,O,R,m);if(k!=0)for(var H=0;H<w;H++)z[H]=E[H];if(K.blend==0?d(Q,O,R,E,y,g,U,G,0):K.blend==1&&d(Q,O,R,E,y,g,U,G,1),N.push(E.buffer.slice(0)),K.dispose!=0){if(K.dispose==1)d(_,O,R,E,y,g,U,G,0);else if(K.dispose==2)for(H=0;H<w;H++)E[H]=z[H]}}return N},_paeth:c,_copyTile:d,_bin:e}})();(function(){const{_copyTile:e}=Mi,{_bin:t}=Mi,n=Mi._paeth;
301var r={table:(function(){const O=new Uint32Array(256);for(let R=0;R<256;R++){let Q=R;for(let j=0;j<8;j++)1&Q?Q=3988292384^Q>>>1:Q>>>=1;O[R]=Q}return O})(),update(O,R,Q,j){for(let D=0;D<j;D++)O=r.table[255&(O^R[Q+D])]^O>>>8;return O},crc:(O,R,Q)=>4294967295^r.update(4294967295,O,R,Q)};function a(O,R,Q,j){R[Q]+=O[0]*j>>4,R[Q+1]+=O[1]*j>>4,R[Q+2]+=O[2]*j>>4,R[Q+3]+=O[3]*j>>4}function o(O){return Math.max(0,Math.min(255,O))}function l(O,R){const Q=O[0]-R[0],j=O[1]-R[1],D=O[2]-R[2],$=O[3]-R[3];return Q*Q+j*j+D*D+$*$}function c(O,R,Q,j,D,$,W){W==null&&(W=1);const te=j.length,L=[];for(var M=0;M<te;M++){const Y=j[M];L.push([Y>>>0&255,Y>>>8&255,Y>>>16&255,Y>>>24&255])}for(M=0;M<te;M++){let Y=4294967295;for(var X=0,se=0;se<te;se++){var pe=l(L[M],L[se]);se!=M&&pe<Y&&(Y=pe,X=se)}}const ee=new Uint32Array(D.buffer),P=new Int16Array(R*Q*4),B=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(M=0;M<B.length;M++)B[M]=255*((B[M]+.5)/16-.5);for(let Y=0;Y<Q;Y++)for(let oe=0;oe<R;oe++){var V;M=4*(Y*R+oe),W!=2?V=[o(O[M]+P[M]),o(O[M+1]+P[M+1]),o(O[M+2]+P[M+2]),o(O[M+3]+P[M+3])]:(pe=B[4*(3&Y)+(3&oe)],V=[o(O[M]+pe),o(O[M+1]+pe),o(O[M+2]+pe),o(O[M+3]+pe)]),X=0;let le=16777215;for(se=0;se<te;se++){const Ae=l(V,L[se]);Ae<le&&(le=Ae,X=se)}const me=L[X],ge=[V[0]-me[0],V[1]-me[1],V[2]-me[2],V[3]-me[3]];W==1&&(oe!=R-1&&a(ge,P,M+4,7),Y!=Q-1&&(oe!=0&&a(ge,P,M+4*R-4,3),a(ge,P,M+4*R,5),oe!=R-1&&a(ge,P,M+4*R+4,1))),$[M>>2]=X,ee[M>>2]=j[X]}}function f(O,R,Q,j,D){D==null&&(D={});const{crc:$}=r,W=t.writeUint,te=t.writeUshort,L=t.writeASCII;let M=8;const X=O.frames.length>1;let se,pe=!1,ee=33+(X?20:0);if(D.sRGB!=null&&(ee+=13),D.pHYs!=null&&(ee+=21),D.iCCP!=null&&(se=pako.deflate(D.iCCP),ee+=21+se.length+4),O.ctype==3){for(var P=O.plte.length,B=0;B<P;B++)O.plte[B]>>>24!=255&&(pe=!0);ee+=8+3*P+4+(pe?8+1*P+4:0)}for(var V=0;V<O.frames.length;V++)X&&(ee+=38),ee+=(me=O.frames[V]).cimg.length+12,V!=0&&(ee+=4);ee+=12;const Y=new Uint8Array(ee),oe=[137,80,78,71,13,10,26,10];for(B=0;B<8;B++)Y[B]=oe[B];if(W(Y,M,13),M+=4,L(Y,M,"IHDR"),M+=4,W(Y,M,R),M+=4,W(Y,M,Q),M+=4,Y[M]=O.depth,M++,Y[M]=O.ctype,M++,Y[M]=0,M++,Y[M]=0,M++,Y[M]=0,M++,W(Y,M,$(Y,M-17,17)),M+=4,D.sRGB!=null&&(W(Y,M,1),M+=4,L(Y,M,"sRGB"),M+=4,Y[M]=D.sRGB,M++,W(Y,M,$(Y,M-5,5)),M+=4),D.iCCP!=null){const ge=13+se.length;W(Y,M,ge),M+=4,L(Y,M,"iCCP"),M+=4,L(Y,M,"ICC profile"),M+=11,M+=2,Y.set(se,M),M+=se.length,W(Y,M,$(Y,M-(ge+4),ge+4)),M+=4}if(D.pHYs!=null&&(W(Y,M,9),M+=4,L(Y,M,"pHYs"),M+=4,W(Y,M,D.pHYs[0]),M+=4,W(Y,M,D.pHYs[1]),M+=4,Y[M]=D.pHYs[2],M++,W(Y,M,$(Y,M-13,13)),M+=4),X&&(W(Y,M,8),M+=4,L(Y,M,"acTL"),M+=4,W(Y,M,O.frames.length),M+=4,W(Y,M,D.loop!=null?D.loop:0),M+=4,W(Y,M,$(Y,M-12,12)),M+=4),O.ctype==3){for(W(Y,M,3*(P=O.plte.length)),M+=4,L(Y,M,"PLTE"),M+=4,B=0;B<P;B++){const ge=3*B,Ae=O.plte[B],Oe=255&Ae,Fe=Ae>>>8&255,Qe=Ae>>>16&255;Y[M+ge+0]=Oe,Y[M+ge+1]=Fe,Y[M+ge+2]=Qe}if(M+=3*P,W(Y,M,$(Y,M-3*P-4,3*P+4)),M+=4,pe){for(W(Y,M,P),M+=4,L(Y,M,"tRNS"),M+=4,B=0;B<P;B++)Y[M+B]=O.plte[B]>>>24&255;M+=P,W(Y,M,$(Y,M-P-4,P+4)),M+=4}}let le=0;for(V=0;V<O.frames.length;V++){var me=O.frames[V];X&&(W(Y,M,26),M+=4,L(Y,M,"fcTL"),M+=4,W(Y,M,le++),M+=4,W(Y,M,me.rect.width),M+=4,W(Y,M,me.rect.height),M+=4,W(Y,M,me.rect.x),M+=4,W(Y,M,me.rect.y),M+=4,te(Y,M,j[V]),M+=2,te(Y,M,1e3),M+=2,Y[M]=me.dispose,M++,Y[M]=me.blend,M++,W(Y,M,$(Y,M-30,30)),M+=4);const ge=me.cimg;W(Y,M,(P=ge.length)+(V==0?0:4)),M+=4;const Ae=M;L(Y,M,V==0?"IDAT":"fdAT"),M+=4,V!=0&&(W(Y,M,le++),M+=4),Y.set(ge,M),M+=P,W(Y,M,$(Y,Ae,M-Ae)),M+=4}return W(Y,M,0),M+=4,L(Y,M,"IEND"),M+=4,W(Y,M,$(Y,M-4,4)),M+=4,Y.buffer}function d(O,R,Q){for(let j=0;j<O.frames.length;j++){const D=O.frames[j];D.rect.width;const $=D.rect.height,W=new Uint8Array($*D.bpl+$);D.cimg=g(D.img,$,D.bpp,D.bpl,W,R,Q)}}function h(O,R,Q,j,D){const $=D[0],W=D[1],te=D[2],L=D[3],M=D[4],X=D[5];let se=6,pe=8,ee=255;for(var P=0;P<O.length;P++){const Ve=new Uint8Array(O[P]);for(var B=Ve.length,V=0;V<B;V+=4)ee&=Ve[V+3]}const Y=ee!=255,oe=(function(it,et,De,ot,Xe,nt){const tt=[];for(var ct=0;ct<it.length;ct++){const dt=new Uint8Array(it[ct]),ut=new Uint32Array(dt.buffer);var Lt;let Jt=0,Ft=0,mt=et,Et=De,qt=ot?1:0;if(ct!=0){const _t=nt||ot||ct==1||tt[ct-2].dispose!=0?1:2;let pn=0,yt=1e9;for(let jt=0;jt<_t;jt++){var Ct=new Uint8Array(it[ct-1-jt]);const wn=new Uint32Array(it[ct-1-jt]);let ye=et,Ue=De,Ie=-1,at=-1;for(let Rt=0;Rt<De;Rt++)for(let Bt=0;Bt<et;Bt++)ut[vt=Rt*et+Bt]!=wn[vt]&&(Bt<ye&&(ye=Bt),Bt>Ie&&(Ie=Bt),Rt<Ue&&(Ue=Rt),Rt>at&&(at=Rt));
301Ie==-1&&(ye=Ue=Ie=at=0),Xe&&((1&ye)==1&&ye--,(1&Ue)==1&&Ue--);const rt=(Ie-ye+1)*(at-Ue+1);rt<yt&&(yt=rt,pn=jt,Jt=ye,Ft=Ue,mt=Ie-ye+1,Et=at-Ue+1)}Ct=new Uint8Array(it[ct-1-pn]),pn==1&&(tt[ct-1].dispose=2),Lt=new Uint8Array(mt*Et*4),e(Ct,et,De,Lt,mt,Et,-Jt,-Ft,0),qt=e(dt,et,De,Lt,mt,Et,-Jt,-Ft,3)?1:0,qt==1?y(dt,et,De,Lt,{x:Jt,y:Ft,width:mt,height:Et}):e(dt,et,De,Lt,mt,Et,-Jt,-Ft,0)}else Lt=dt.slice(0);tt.push({rect:{x:Jt,y:Ft,width:mt,height:Et},img:Lt,blend:qt,dispose:0})}if(ot)for(ct=0;ct<tt.length;ct++){if((lt=tt[ct]).blend==1)continue;const dt=lt.rect,ut=tt[ct-1].rect,Jt=Math.min(dt.x,ut.x),Ft=Math.min(dt.y,ut.y),mt={x:Jt,y:Ft,width:Math.max(dt.x+dt.width,ut.x+ut.width)-Jt,height:Math.max(dt.y+dt.height,ut.y+ut.height)-Ft};tt[ct-1].dispose=1,ct-1!=0&&m(it,et,De,tt,ct-1,mt,Xe),m(it,et,De,tt,ct,mt,Xe)}let Ht=0;if(it.length!=1)for(var vt=0;vt<tt.length;vt++){var lt;Ht+=(lt=tt[vt]).rect.width*lt.rect.height}return tt})(O,R,Q,$,W,te),le={},me=[],ge=[];if(j!=0){const Ve=[];for(V=0;V<oe.length;V++)Ve.push(oe[V].img.buffer);const it=(function(Xe){let nt=0;for(var tt=0;tt<Xe.length;tt++)nt+=Xe[tt].byteLength;const ct=new Uint8Array(nt);let Lt=0;for(tt=0;tt<Xe.length;tt++){const Ct=new Uint8Array(Xe[tt]),Ht=Ct.length;for(let vt=0;vt<Ht;vt+=4){let lt=Ct[vt],dt=Ct[vt+1],ut=Ct[vt+2];const Jt=Ct[vt+3];Jt==0&&(lt=dt=ut=0),ct[Lt+vt]=lt,ct[Lt+vt+1]=dt,ct[Lt+vt+2]=ut,ct[Lt+vt+3]=Jt}Lt+=Ht}return ct.buffer})(Ve),et=w(it,j);for(V=0;V<et.plte.length;V++)me.push(et.plte[V].est.rgba);let De=0;for(V=0;V<oe.length;V++){const ot=(Oe=oe[V]).img.length;var Ae=new Uint8Array(et.inds.buffer,De>>2,ot>>2);ge.push(Ae);const Xe=new Uint8Array(et.abuf,De,ot);X&&c(Oe.img,Oe.rect.width,Oe.rect.height,me,Xe,Ae),Oe.img.set(Xe),De+=ot}}else for(P=0;P<oe.length;P++){var Oe=oe[P];const Ve=new Uint32Array(Oe.img.buffer);var Fe=Oe.rect.width;for(B=Ve.length,Ae=new Uint8Array(B),ge.push(Ae),V=0;V<B;V++){const it=Ve[V];if(V!=0&&it==Ve[V-1])Ae[V]=Ae[V-1];else if(V>Fe&&it==Ve[V-Fe])Ae[V]=Ae[V-Fe];else{let et=le[it];if(et==null&&(le[it]=et=me.length,me.push(it),me.length>=300))break;Ae[V]=et}}}const Qe=me.length;for(Qe<=256&&M==0&&(pe=Qe<=2?1:Qe<=4?2:Qe<=16?4:8,pe=Math.max(pe,L)),P=0;P<oe.length;P++){(Oe=oe[P]).rect.x,Oe.rect.y,Fe=Oe.rect.width;const Ve=Oe.rect.height;let it=Oe.img;new Uint32Array(it.buffer);let et=4*Fe,De=4;if(Qe<=256&&M==0){et=Math.ceil(pe*Fe/8);var Je=new Uint8Array(et*Ve);const ot=ge[P];for(let Xe=0;Xe<Ve;Xe++){V=Xe*et;const nt=Xe*Fe;if(pe==8)for(var ce=0;ce<Fe;ce++)Je[V+ce]=ot[nt+ce];else if(pe==4)for(ce=0;ce<Fe;ce++)Je[V+(ce>>1)]|=ot[nt+ce]<<4-4*(1&ce);else if(pe==2)for(ce=0;ce<Fe;ce++)Je[V+(ce>>2)]|=ot[nt+ce]<<6-2*(3&ce);else if(pe==1)for(ce=0;ce<Fe;ce++)Je[V+(ce>>3)]|=ot[nt+ce]<<7-1*(7&ce)}it=Je,se=3,De=1}else if(Y==0&&oe.length==1){Je=new Uint8Array(Fe*Ve*3);const ot=Fe*Ve;for(V=0;V<ot;V++){const Xe=3*V,nt=4*V;Je[Xe]=it[nt],Je[Xe+1]=it[nt+1],Je[Xe+2]=it[nt+2]}it=Je,se=2,De=3,et=3*Fe}Oe.img=it,Oe.bpl=et,Oe.bpp=De}return{ctype:se,depth:pe,plte:me,frames:oe}}function m(O,R,Q,j,D,$,W){const te=Uint8Array,L=Uint32Array,M=new te(O[D-1]),X=new L(O[D-1]),se=D+1<O.length?new te(O[D+1]):null,pe=new te(O[D]),ee=new L(pe.buffer);let P=R,B=Q,V=-1,Y=-1;for(let le=0;le<$.height;le++)for(let me=0;me<$.width;me++){const ge=$.x+me,Ae=$.y+le,Oe=Ae*R+ge,Fe=ee[Oe];Fe==0||j[D-1].dispose==0&&X[Oe]==Fe&&(se==null||se[4*Oe+3]!=0)||(ge<P&&(P=ge),ge>V&&(V=ge),Ae<B&&(B=Ae),Ae>Y&&(Y=Ae))}V==-1&&(P=B=V=Y=0),W&&((1&P)==1&&P--,(1&B)==1&&B--),$={x:P,y:B,width:V-P+1,height:Y-B+1};const oe=j[D];oe.rect=$,oe.blend=1,oe.img=new Uint8Array($.width*$.height*4),j[D-1].dispose==0?(e(M,R,Q,oe.img,$.width,$.height,-$.x,-$.y,0),y(pe,R,Q,oe.img,$)):e(pe,R,Q,oe.img,$.width,$.height,-$.x,-$.y,0)}function y(O,R,Q,j,D){e(O,R,Q,j,D.width,D.height,-D.x,-D.y,2)}function g(O,R,Q,j,D,$,W){const te=[];let L,M=[0,1,2,3,4];$!=-1?M=[$]:(R*j>5e5||Q==1)&&(M=[0]),W&&(L={level:0});const X=tR;for(var se=0;se<M.length;se++){for(let P=0;P<R;P++)N(D,O,P,j,Q,M[se]);te.push(X.deflate(D,L))}let pe,ee=1e9;for(se=0;se<te.length;se++)te[se].length<ee&&(pe=se,ee=te[se].length);return te[pe]}function N(O,R,Q,j,D,$){const W=Q*j;let te=W+Q;if(O[te]=$,te++,$==0)if(j<500)for(var L=0;L<j;L++)O[te+L]=R[W+L];else O.set(new Uint8Array(R.buffer,W,j),te);else if($==1){for(L=0;L<D;L++)O[te+L]=R[W+L];for(L=D;L<j;L++)O[te+L]=R[W+L]-R[W+L-D]+256&255}else if(Q==0){for(L=0;L<D;L++)O[te+L]=R[W+L];if($==2)for(L=D;L<j;L++)O[te+L]=R[W+L];if($==3)for(L=D;L<j;L++)O[te+L]=R[W+L]-(R[W+L-D]>>1)+256&255;if($==4)for(L=D;L<j;L++)O[te+L]=R[W+L]-n(R[W+L-D],0,0)+256&255}else{if($==2)for(L=0;L<j;L++)O[te+L]=R[W+L]+256-R[W+L-j]&255;if($==3){for(L=0;L<D;L++)O[te+L]=R[W+L]+256-(R[W+L-j]>>1)&255;for(L=D;L<j;L++)O[te+L]=R[W+L]+256-(R[W+L-j]+R[W+L-D]>>1)&255}if($==4){for(L=0;L<D;L++)O[te+L]=R[W+L]+256-n(0,R[W+L-j],0)&255;for(L=D;L<j;L++)O[te+L]=R[W+L]+256-n(R[W+L-D],R[W+L-j],R[W+L-D-j])&255}}}function w(O,R){const Q=new Uint8Array(O),j=Q.slice(0),D=new Uint32Array(j.buffer),$=E(j,R),W=$[0],te=$[1],L=Q.length,M=new Uint8Array(L>>2);let X;if(Q.length<2e7)for(var se=0;se<L;se+=4)X=_(W,pe=Q[se]*(1/255),ee=Q[se+1]*(1/255),P=Q[se+2]*(1/255),B=Q[se+3]*(1/255)),M[se>>2]=X.ind,D[se>>2]=X.est.rgba;else for(se=0;se<L;se+=4){var pe=Q[se]*.00392156862745098,ee=Q[se+1]*(1/255),P=Q[se+2]*(1/255),B=Q[se+3]*(1/255);for(X=W;X.left;
vendor: 5,244 bytes, line 301
301)X=z(X.est,pe,ee,P,B)<=0?X.left:X.right;M[se>>2]=X.ind,D[se>>2]=X.est.rgba}return{abuf:j.buffer,inds:M,plte:te}}function E(O,R,Q){Q==null&&(Q=1e-4);const j=new Uint32Array(O.buffer),D={i0:0,i1:O.length,bst:null,est:null,tdst:0,left:null,right:null};D.bst=K(O,D.i0,D.i1),D.est=U(D.bst);const $=[D];for(;$.length<R;){let te=0,L=0;for(var W=0;W<$.length;W++)$[W].est.L>te&&(te=$[W].est.L,L=W);if(te<Q)break;const M=$[L],X=H(O,j,M.i0,M.i1,M.est.e,M.est.eMq255);if(M.i0>=X||M.i1<=X){M.est.L=0;continue}const se={i0:M.i0,i1:X,bst:null,est:null,tdst:0,left:null,right:null};se.bst=K(O,se.i0,se.i1),se.est=U(se.bst);const pe={i0:X,i1:M.i1,bst:null,est:null,tdst:0,left:null,right:null};for(pe.bst={R:[],m:[],N:M.bst.N-se.bst.N},W=0;W<16;W++)pe.bst.R[W]=M.bst.R[W]-se.bst.R[W];for(W=0;W<4;W++)pe.bst.m[W]=M.bst.m[W]-se.bst.m[W];pe.est=U(pe.bst),M.left=se,M.right=pe,$[L]=se,$.push(pe)}for($.sort(((te,L)=>L.bst.N-te.bst.N)),W=0;W<$.length;W++)$[W].ind=W;return[D,$]}function _(O,R,Q,j,D){if(O.left==null)return O.tdst=(function(se,pe,ee,P,B){const V=pe-se[0],Y=ee-se[1],oe=P-se[2],le=B-se[3];return V*V+Y*Y+oe*oe+le*le})(O.est.q,R,Q,j,D),O;const $=z(O.est,R,Q,j,D);let W=O.left,te=O.right;$>0&&(W=O.right,te=O.left);const L=_(W,R,Q,j,D);if(L.tdst<=$*$)return L;const M=_(te,R,Q,j,D);return M.tdst<L.tdst?M:L}function z(O,R,Q,j,D){const{e:$}=O;return $[0]*R+$[1]*Q+$[2]*j+$[3]*D-O.eMq}function H(O,R,Q,j,D,$){for(j-=4;Q<j;){for(;k(O,Q,D)<=$;)Q+=4;for(;k(O,j,D)>$;)j-=4;if(Q>=j)break;const W=R[Q>>2];R[Q>>2]=R[j>>2],R[j>>2]=W,Q+=4,j-=4}for(;k(O,Q,D)>$;)Q-=4;return Q+4}function k(O,R,Q){return O[R]*Q[0]+O[R+1]*Q[1]+O[R+2]*Q[2]+O[R+3]*Q[3]}function K(O,R,Q){const j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D=[0,0,0,0],$=Q-R>>2;for(let W=R;W<Q;W+=4){const te=O[W]*.00392156862745098,L=O[W+1]*(1/255),M=O[W+2]*(1/255),X=O[W+3]*(1/255);D[0]+=te,D[1]+=L,D[2]+=M,D[3]+=X,j[0]+=te*te,j[1]+=te*L,j[2]+=te*M,j[3]+=te*X,j[5]+=L*L,j[6]+=L*M,j[7]+=L*X,j[10]+=M*M,j[11]+=M*X,j[15]+=X*X}return j[4]=j[1],j[8]=j[2],j[9]=j[6],j[12]=j[3],j[13]=j[7],j[14]=j[11],{R:j,m:D,N:$}}function U(O){const{R}=O,{m:Q}=O,{N:j}=O,D=Q[0],$=Q[1],W=Q[2],te=Q[3],L=j==0?0:1/j,M=[R[0]-D*D*L,R[1]-D*$*L,R[2]-D*W*L,R[3]-D*te*L,R[4]-$*D*L,R[5]-$*$*L,R[6]-$*W*L,R[7]-$*te*L,R[8]-W*D*L,R[9]-W*$*L,R[10]-W*W*L,R[11]-W*te*L,R[12]-te*D*L,R[13]-te*$*L,R[14]-te*W*L,R[15]-te*te*L],X=M,se=G;let pe=[Math.random(),Math.random(),Math.random(),Math.random()],ee=0,P=0;if(j!=0)for(let V=0;V<16&&(pe=se.multVec(X,pe),P=Math.sqrt(se.dot(pe,pe)),pe=se.sml(1/P,pe),!(V!=0&&Math.abs(P-ee)<1e-9));V++)ee=P;const B=[D*L,$*L,W*L,te*L];return{Cov:M,q:B,e:pe,L:ee,eMq255:se.dot(se.sml(255,B),pe),eMq:se.dot(pe,B),rgba:(Math.round(255*B[3])<<24|Math.round(255*B[2])<<16|Math.round(255*B[1])<<8|Math.round(255*B[0])<<0)>>>0}}var G={multVec:(O,R)=>[O[0]*R[0]+O[1]*R[1]+O[2]*R[2]+O[3]*R[3],O[4]*R[0]+O[5]*R[1]+O[6]*R[2]+O[7]*R[3],O[8]*R[0]+O[9]*R[1]+O[10]*R[2]+O[11]*R[3],O[12]*R[0]+O[13]*R[1]+O[14]*R[2]+O[15]*R[3]],dot:(O,R)=>O[0]*R[0]+O[1]*R[1]+O[2]*R[2]+O[3]*R[3],sml:(O,R)=>[O*R[0],O*R[1],O*R[2],O*R[3]]};Mi.encode=function(R,Q,j,D,$,W,te){D==null&&(D=0),te==null&&(te=!1);const L=h(R,Q,j,D,[!1,!1,!1,0,te,!1]);return d(L,-1),f(L,Q,j,$,W)},Mi.encodeLL=function(R,Q,j,D,$,W,te,L){const M={ctype:0+(D==1?0:2)+($==0?0:4),depth:W,frames:[]},X=(D+$)*W,se=X*Q;for(let pe=0;pe<R.length;pe++)M.frames.push({rect:{x:0,y:0,width:Q,height:j},img:new Uint8Array(R[pe]),blend:0,dispose:1,bpp:Math.ceil(X/8),bpl:Math.ceil(se/8)});return d(M,0,!0),f(M,Q,j,te,L)},Mi.encode.compress=h,Mi.encode.dither=c,Mi.quantize=w,Mi.quantize.getKDtree=E,Mi.quantize.getNearest=_})();const o6={toArrayBuffer(e,t){const n=e.width,r=e.height,a=n<<2,o=e.getContext("2d").getImageData(0,0,n,r),l=new Uint32Array(o.data.buffer),c=(32*n+31)/32<<2,f=c*r,d=122+f,h=new ArrayBuffer(d),m=new DataView(h),y=1<<20;let g,N,w,E,_=y,z=0,H=0,k=0;function K(O){m.setUint16(H,O,!0),H+=2}function U(O){m.setUint32(H,O,!0),H+=4}function G(O){H+=O}K(19778),U(d),G(4),U(122),U(108),U(n),U(-r>>>0),K(1),K(32),U(3),U(f),U(2835),U(2835),G(8),U(16711680),U(65280),U(255),U(4278190080),U(1466527264),(function O(){for(;z<r&&_>0;){for(E=122+z*c,g=0;g<a;)_--,N=l[k++],w=N>>>24,m.setUint32(E+g,N<<8|w),g+=4;z++}k<l.length?(_=y,setTimeout(O,o6._dly)):t(h)})()},toBlob(e,t){this.toArrayBuffer(e,(n=>{t(new Blob([n],{type:"image/bmp"}))}))},_dly:9};var va={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},nR={[va.CHROME]:16384,[va.FIREFOX]:11180,[va.DESKTOP_SAFARI]:16384,[va.IE]:8192,[va.IOS]:4096,[va.ETC]:8192};const m2=typeof window<"u",l6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,vm=m2&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),rR=(m2||l6)&&(vm&&vm.getOriginalSymbol(window,"File")||typeof File<"u"&&File),c6=(m2||l6)&&(vm&&vm.getOriginalSymbol(window,"FileReader")||typeof FileReader<"u"&&FileReader);function g2(e,t,n=Date.now()){return new Promise((r=>{const a=e.split(","),o=a[0].match(/:(.*?);/)[1],l=globalThis.atob(a[1]);let c=l.length;const f=new Uint8Array(c);for(;c--;)f[c]=l.charCodeAt(c);const d=new Blob([f],{type:o});d.name=t,d.lastModified=n,r(d)}))}function u6(e){return new Promise(((t,n)=>{const r=new c6;r.onload=()=>t(r.result),r.onerror=a=>
301n(a),r.readAsDataURL(e)}))}function f6(e){return new Promise(((t,n)=>{const r=new Image;r.onload=()=>t(r),r.onerror=a=>n(a),r.src=e}))}function Jc(){if(Jc.cachedResult!==void 0)return Jc.cachedResult;let e=va.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?e=va.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?e=va.IOS:/Safari/i.test(t)?e=va.DESKTOP_SAFARI:/Firefox/i.test(t)?e=va.FIREFOX:(/MSIE/i.test(t)||document.documentMode)&&(e=va.IE),Jc.cachedResult=e,Jc.cachedResult}function d6(e,t){const n=Jc(),r=nR[n];let a=e,o=t,l=a*o;const c=a>o?o/a:a/o;for(;l>r*r;){const f=(r+a)/2,d=(r+o)/2;f<d?(o=d,a=d*c):(o=f*c,a=f),l=a*o}return{width:a,height:o}}function ng(e,t){let n,r;try{if(n=new OffscreenCanvas(e,t),r=n.getContext("2d"),r===null)throw new Error("getContext of OffscreenCanvas returns null")}catch{n=document.createElement("canvas"),r=n.getContext("2d")}return n.width=e,n.height=t,[n,r]}function h6(e,t){const{width:n,height:r}=d6(e.width,e.height),[a,o]=ng(n,r);return t&&/jpe?g/.test(t)&&(o.fillStyle="white",o.fillRect(0,0,a.width,a.height)),o.drawImage(e,0,0,a.width,a.height),a}function Xp(){return Xp.cachedResult!==void 0||(Xp.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&typeof document<"u"&&"ontouchend"in document),Xp.cachedResult}function ym(e,t={}){return new Promise((function(n,r){let a,o;var l=function(){try{return o=h6(a,t.fileType||e.type),n([a,o])}catch(f){return r(f)}},c=function(f){try{var d=function(h){try{throw h}catch(m){return r(m)}};try{let h;return u6(e).then((function(m){try{return h=m,f6(h).then((function(y){try{return a=y,(function(){try{return l()}catch(g){return r(g)}})()}catch(g){return d(g)}}),d)}catch(y){return d(y)}}),d)}catch(h){d(h)}}catch(h){return r(h)}};try{if(Xp()||[va.DESKTOP_SAFARI,va.MOBILE_SAFARI].includes(Jc()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then((function(f){try{return a=f,l()}catch{return c()}}),c)}catch{c()}}))}function bm(e,t,n,r,a=1){return new Promise((function(o,l){let c;if(t==="image/png"){let d,h,m;return d=e.getContext("2d"),{data:h}=d.getImageData(0,0,e.width,e.height),m=Mi.encode([h.buffer],e.width,e.height,4096*a),c=new Blob([m],{type:t}),c.name=n,c.lastModified=r,f.call(this)}{let d=function(){return f.call(this)};if(t==="image/bmp")return new Promise((h=>o6.toBlob(e,h))).then((function(h){try{return c=h,c.name=n,c.lastModified=r,d.call(this)}catch(m){return l(m)}}).bind(this),l);{let h=function(){return d.call(this)};if(typeof OffscreenCanvas=="function"&&e instanceof OffscreenCanvas)return e.convertToBlob({type:t,quality:a}).then((function(m){try{return c=m,c.name=n,c.lastModified=r,h.call(this)}catch(y){return l(y)}}).bind(this),l);{let m;return m=e.toDataURL(t,a),g2(m,n,r).then((function(y){try{return c=y,h.call(this)}catch(g){return l(g)}}).bind(this),l)}}}function f(){return o(c)}}))}function go(e){e.width=0,e.height=0}function Of(){return new Promise((function(e,t){let n,r,a,o;return Of.cachedResult!==void 0?e(Of.cachedResult):g2("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then((function(l){try{return n=l,ym(n).then((function(c){try{return r=c[1],bm(r,n.type,n.name,n.lastModified).then((function(f){try{return a=f,go(r),ym(a).then((function(d){try{return o=d[0],Of.cachedResult=o.width===1&&o.height===2,e(Of.cachedResult)}catch(h){return t(h)}}),t)}catch(d){return t(d)}}),t)}catch(f){return t(f)}}),t)}catch(c){return t(c)}}),t)}))}function p6(e){return new Promise(((t,n)=>{const r=new c6;r.onload=a=>{const o=new DataView(a.target.result);if(o.getUint16(0,!1)!=65496)return t(-2);const l=o.byteLength;let c=2;for(;c<l;){if(o.getUint16(c+2,!1)<=8)return t(-1);const f=o.getUint16(c,!1);if(c+=2,f==65505){if(o.getUint32(c+=2,!1)!=1165519206)return t(-1);const d=o.getUint16(c+=6,!1)==18761;c+=o.getUint32(c+4,d);const h=o.getUint16(c,d);c+=2;for(let m=0;m<h;m++)if(o.getUint16(c+12*m,d)==274)return t(o.getUint16(c+12*m+8,d))}else{if((65280&f)!=65280)break;c+=o.getUint16(c,!1)}}return t(-1)},r.onerror=a=>n(a),r.readAsArrayBuffer(e)}))}function m6(e,t){const{width:n}=e,{height:r}=e,{maxWidthOrHeight:a}=t;let o,l=e;return isFinite(a)&&(n>a||r>a)&&([l,o]=ng(n,r),n>r?(l.width=a,l.height=r/n*a):(l.width=n/r*a,l.height=a),o.drawImage(e,0,0,l.width,l.height),go(e)),l}function g6(e,t){const{width:n}=e,{height:r}=e,[a,o]=ng(n,r);switch(t>4&&t<9?(a.width=r,a.height=n):(a.width=n,a.height=r),t){case 2:o.transform(-1,0,0,1,n,0);break;case 3:o.transform(-1,0,0,-1,n,r);break;case 4:o.transform(1,0,0,-1,0,r);break;case 5:o.transform(0,1,1,0,0,0);break;case 6:o.transform(0,1,-1,0,r,0);break;case 7:o.transform(0,-1,-1,0,r,n);break;case 8:o.transform(0,-1,1,0,0,n)}return o.drawImage(e,0,0,n,r),go(e),a}function cx(e,t,n=0){return new Promise((function(r,a){let o,l,c,f,d,h,m,y,g,N,w,E,_,z,H,k,K,U,G,O;
301function R(j=5){if(t.signal&&t.signal.aborted)throw t.signal.reason;o+=j,t.onProgress(Math.min(o,100))}function Q(j){if(t.signal&&t.signal.aborted)throw t.signal.reason;o=Math.min(Math.max(j,o),100),t.onProgress(o)}return o=n,l=t.maxIteration||10,c=1024*t.maxSizeMB*1024,R(),ym(e,t).then((function(j){try{return[,f]=j,R(),d=m6(f,t),R(),new Promise((function(D,$){var W;if(!(W=t.exifOrientation))return p6(e).then((function(L){try{return W=L,te.call(this)}catch(M){return $(M)}}).bind(this),$);function te(){return D(W)}return te.call(this)})).then((function(D){try{return h=D,R(),Of().then((function($){try{return m=$?d:g6(d,h),R(),y=t.initialQuality||1,g=t.fileType||e.type,bm(m,g,e.name,e.lastModified,y).then((function(W){try{{let L=function(){if(l--&&(H>c||H>_)){let X,se;return X=O?.95*G.width:G.width,se=O?.95*G.height:G.height,[K,U]=ng(X,se),U.drawImage(G,0,0,X,se),y*=g==="image/png"?.85:.95,bm(K,g,e.name,e.lastModified,y).then((function(pe){try{return k=pe,go(G),G=K,H=k.size,Q(Math.min(99,Math.floor((z-H)/(z-c)*100))),L}catch(ee){return a(ee)}}),a)}return[1]},M=function(){return go(G),go(K),go(d),go(m),go(f),Q(100),r(k)};if(N=W,R(),w=N.size>c,E=N.size>e.size,!w&&!E)return Q(100),r(N);var te;return _=e.size,z=N.size,H=z,G=m,O=!t.alwaysKeepResolution&&w,(te=(function(X){for(;X;){if(X.then)return void X.then(te,a);try{if(X.pop){if(X.length)return X.pop()?M.call(this):X;X=L}else X=X.call(this)}catch(se){return a(se)}}}).bind(this))(L)}}catch(L){return a(L)}}).bind(this),a)}catch(W){return a(W)}}).bind(this),a)}catch($){return a($)}}).bind(this),a)}catch(D){return a(D)}}).bind(this),a)}))}const sR=` 302let scriptImported = false 303self.addEventListener('message', async (e) => { 304 const { file, id, imageCompressionLibUrl, options } = e.data 305 options.onProgress = (progress) => self.postMessage({ progress, id }) 306 try { 307 if (!scriptImported) { 308 // console.log('[worker] importScripts', imageCompressionLibUrl) 309 self.importScripts(imageCompressionLibUrl) 310 scriptImported = true 311 } 312 // console.log('[worker] self', self) 313 const compressedFile = await imageCompression(file, options) 314 self.postMessage({ file: compressedFile, id }) 315 } catch (e) { 316 // console.error('[worker] error', e) 317 self.postMessage({ error: e.message + '\\n' + e.stack, id }) 318 } 319}) 320`;let K0;function aR(e,t){return new Promise(((n,r)=>{K0||(K0=(function(l){const c=[];return c.push(l),URL.createObjectURL(new Blob(c))})(sR));const a=new Worker(K0);a.addEventListener("message",(function(l){if(t.signal&&t.signal.aborted)a.terminate();else if(l.data.progress===void 0){if(l.data.error)return r(new Error(l.data.error)),void a.terminate();n(l.data.file),a.terminate()}else t.onProgress(l.data.progress)})),a.addEventListener("error",r),t.signal&&t.signal.addEventListener("abort",(()=>{r(t.signal.reason),a.terminate()})),a.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})}))}function Ts(e,t){return new Promise((function(n,r){let a,o,l,c,f,d;if(a={...t},l=0,{onProgress:c}=a,a.maxSizeMB=a.maxSizeMB||Number.POSITIVE_INFINITY,f=typeof a.useWebWorker!="boolean"||a.useWebWorker,delete a.useWebWorker,a.onProgress=g=>{l=g,typeof c=="function"&&c(l)},!(e instanceof Blob||e instanceof rR))return r(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return r(new Error("The file given is not an image"));if(d=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!f||typeof Worker!="function"||d)return cx(e,a).then((function(g){try{return o=g,y.call(this)}catch(N){return r(N)}}).bind(this),r);var h=(function(){try{return y.call(this)}catch(g){return r(g)}}).bind(this),m=function(g){try{return cx(e,a).then((function(N){try{return o=N,h()}catch(w){return r(w)}}),r)}catch(N){return r(N)}};try{return a.libURL=a.libURL||"https://cdn.jsdelivr.net/npm/[email protected]/dist/browser-image-compression.js",aR(e,a).then((function(g){try{return o=g,h()}catch{return m()}}),m)}catch{m()}function y(){try{o.name=e.name,o.lastModified=e.lastModified}catch{}try{a.preserveExif&&e.type==="image/jpeg"&&(!a.fileType||a.fileType&&a.fileType===e.type)&&(o=i6(e,o))}catch{}return n(o)}}))}Ts.getDataUrlFromFile=u6,Ts.getFilefromDataUrl=g2,Ts.loadImage=f6,Ts.drawImageInCanvas=h6,Ts.drawFileInCanvas=ym,Ts.canvasToFile=bm,Ts.getExifOrientation=p6,Ts.handleMaxWidthOrHeight=m6,Ts.followExifOrientation=g6,Ts.cleanupCanvasMemory=go,Ts.isAutoOrientationInBrowser=Of,Ts.approximateBelowMaximumCanvasSizeOfBrowser=d6,Ts.copyExifWithoutOrientation=i6,Ts.getBrowserName=Jc,Ts.version="2.0.2";function iR(){return F.useMemo(()=>
320{if(typeof window>"u")return!1;const e=navigator.userAgent||"";return/Android|iPhone|iPad|iPod|webOS|BlackBerry|IEMobile|Opera Mini/i.test(e)},[])}function xm({label:e,value:t,onChange:n,required:r=!1,accept:a="image/*",maxSizeMB:o=2}){const[l,c]=F.useState(!1),[f,d]=F.useState(t),h=F.useRef(null),m=F.useRef(null),y=iR(),g=F.useRef(n);g.current=n,F.useEffect(()=>{d(t)},[t]);const N=Ir.assessment.uploadImage.useMutation(),w=F.useCallback(async H=>{const k=H.target.files?.[0];if(k)try{c(!0);let K;try{const O={maxSizeMB:o,maxWidthOrHeight:1920,useWebWorker:!0,fileType:k.type||"image/jpeg"};K=await Ts(k,O)}catch(O){console.warn("Image compression failed, using original file:",O),K=k}const U=await new Promise((O,R)=>{const Q=new FileReader;Q.onloadend=()=>O(Q.result),Q.onerror=R,Q.readAsDataURL(K)}),G=await N.mutateAsync({base64Data:U,filename:k.name||`photo_${Date.now()}.jpg`,contentType:K.type||k.type||"image/jpeg"});d(G.url),g.current(G.url),yn.success("Image uploaded successfully")}catch(K){console.error("Upload error:",K),yn.error("Failed to upload image. Please check your connection and try again.")}finally{c(!1),h.current&&(h.current.value=""),m.current&&(m.current.value="")}},[o,N]),E=F.useCallback(()=>{d(void 0),g.current(""),h.current&&(h.current.value=""),m.current&&(m.current.value="")},[]),_=F.useCallback(()=>{l||h.current?.click()},[l]),z=F.useCallback(()=>{l||m.current?.click()},[l]);return x.jsxs("div",{"data-loc":"client/src/components/ImageUpload.tsx:134",className:"space-y-2",children:[e&&x.jsxs(Vt,{"data-loc":"client/src/components/ImageUpload.tsx:136",children:[e," ",r&&x.jsx("span",{"data-loc":"client/src/components/ImageUpload.tsx:137",className:"text-destructive",children:"*"})]}),y&&x.jsx("input",{"data-loc":"client/src/components/ImageUpload.tsx:143",ref:h,type:"file",accept:a,capture:"environment",onChange:w,className:"hidden",disabled:l}),x.jsx("input",{"data-loc":"client/src/components/ImageUpload.tsx:155",ref:m,type:"file",accept:a,onChange:w,className:"hidden",disabled:l}),f?x.jsxs("div",{"data-loc":"client/src/components/ImageUpload.tsx:165",className:"relative",children:[x.jsx("img",{"data-loc":"client/src/components/ImageUpload.tsx:166",src:f,alt:e,className:"w-full h-48 object-contain rounded-lg border bg-muted/30"}),x.jsx(Bn,{"data-loc":"client/src/components/ImageUpload.tsx:171",type:"button",variant:"destructive",size:"icon",className:"absolute top-2 right-2",onClick:E,children:x.jsx(s2,{"data-loc":"client/src/components/ImageUpload.tsx:178",className:"h-4 w-4"})})]}):x.jsx("div",{"data-loc":"client/src/components/ImageUpload.tsx:182",className:"border-2 border-dashed border-border rounded-lg p-6 text-center transition-all duration-300 hover:border-gray-400 hover:shadow-[0_2px_8px_rgba(0,0,0,0.08)] hover:-translate-y-px",children:l?x.jsxs("div",{"data-loc":"client/src/components/ImageUpload.tsx:184",className:"flex flex-col items-center gap-2",children:[x.jsx(ya,{"data-loc":"client/src/components/ImageUpload.tsx:185",className:"h-8 w-8 animate-spin text-primary"}),x.jsx("p",{"data-loc":"client/src/components/ImageUpload.tsx:186",className:"text-sm text-muted-foreground",children:"Uploading..."})]}):x.jsxs("div",{"data-loc":"client/src/components/ImageUpload.tsx:189",className:"flex flex-col items-center gap-3",children:[x.jsxs("div",{"data-loc":"client/src/components/ImageUpload.tsx:190",className:"flex gap-3",children:[y&&x.jsxs(Bn,{"data-loc":"client/src/components/ImageUpload.tsx:193",type:"button",variant:"outline",onClick:H=>{H.stopPropagation(),_()},className:"flex items-center gap-2 min-h-[44px] min-w-[44px]",children:[x.jsx(J4,{"data-loc":"client/src/components/ImageUpload.tsx:202",className:"h-4 w-4"}),"Take Photo"]}),x.jsxs(Bn,{"data-loc":"client/src/components/ImageUpload.tsx:206",type:"button",variant:"outline",onClick:H=>{H.stopPropagation(),z()},className:"flex items-center gap-2 min-h-[44px] min-w-[44px]",children:[x.jsx(ov,{"data-loc":"client/src/components/ImageUpload.tsx:215",className:"h-4 w-4"}),y?"Upload":"Upload Image"]})]}),x.jsx("p",{"data-loc":"client/src/components/ImageUpload.tsx:219",className:"text-xs text-muted-foreground",children:y?"Take a photo or upload from gallery":"Select an image file to upload"})]})})]})}
320function oR({value:e,onChange:t,onAddressSelected:n,placeholder:r="Start typing an address...",id:a="addressAutocomplete",required:o=!1}){const[l,c]=F.useState([]),[f,d]=F.useState(!1),[h,m]=F.useState(-1),[y,g]=F.useState(""),[N,w]=F.useState(null),[E,_]=F.useState(!1),z=F.useRef(null),H=F.useRef(null),k=F.useRef(null),{data:K,error:U}=Ir.maps.autocomplete.useQuery({input:y},{enabled:y.length>=3,staleTime:3e4,retry:1}),{data:G}=Ir.maps.placeDetails.useQuery({placeId:N},{enabled:!!N,staleTime:6e4});F.useEffect(()=>{U&&_(!0)},[U]),F.useEffect(()=>{K&&y.length>=3&&(c(K),d(K.length>0),m(-1))},[K,y]),F.useEffect(()=>{G&&N&&(t(G.street),n(G),w(null))},[G,N,t,n]),F.useEffect(()=>{function j(D){H.current&&!H.current.contains(D.target)&&d(!1)}return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]);const O=j=>{const D=j.target.value;t(D),z.current&&clearTimeout(z.current),z.current=setTimeout(()=>{g(D)},300)},R=F.useCallback(j=>{d(!1),c([]),g(""),t(j.mainText),w(j.placeId)},[t]),Q=j=>{!f||l.length===0||(j.key==="ArrowDown"?(j.preventDefault(),m(D=>D<l.length-1?D+1:0)):j.key==="ArrowUp"?(j.preventDefault(),m(D=>D>0?D-1:l.length-1)):j.key==="Enter"?(j.preventDefault(),h>=0&&h<l.length&&R(l[h])):j.key==="Escape"&&d(!1))};return x.jsxs("div",{"data-loc":"client/src/components/AddressAutocomplete.tsx:157",ref:H,className:"relative",children:[x.jsx("input",{"data-loc":"client/src/components/AddressAutocomplete.tsx:158",ref:k,id:a,name:"search-address-field",type:"text",value:e,onChange:O,onKeyDown:Q,onFocus:()=>{l.length>0&&d(!0)},placeholder:E?"Type address manually":r,required:o,autoComplete:"off","data-lpignore":"true","data-form-type":"other",className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"}),E&&x.jsx("p",{"data-loc":"client/src/components/AddressAutocomplete.tsx:177",className:"text-xs text-amber-600 mt-1",children:"Address suggestions unavailable â please type the full address manually. The city, state, and zip will auto-fill when you select an address."}),f&&l.length>0&&x.jsxs("div",{"data-loc":"client/src/components/AddressAutocomplete.tsx:186",className:"absolute z-50 top-full left-0 right-0 mt-1 bg-popover border border-border rounded-md shadow-lg overflow-hidden",children:[l.map((j,D)=>x.jsxs("button",{"data-loc":"client/src/components/AddressAutocomplete.tsx:188",type:"button",className:`w-full text-left px-3 py-2.5 text-sm cursor-pointer transition-colors ${D===h?"bg-accent text-accent-foreground":"hover:bg-accent/50"}`,onMouseEnter:()=>m(D),onMouseDown:$=>{$.preventDefault(),R(j)},children:[x.jsx("span",{"data-loc":"client/src/components/AddressAutocomplete.tsx:203",className:"font-medium",children:j.mainText}),j.secondaryText&&x.jsx("span",{"data-loc":"client/src/components/AddressAutocomplete.tsx:205",className:"text-muted-foreground ml-1",children:j.secondaryText})]},j.placeId)),x.jsx("div",{"data-loc":"client/src/components/AddressAutocomplete.tsx:211",className:"px-3 py-1.5 text-xs text-muted-foreground border-t border-border bg-muted/30",children:"Powered by Google"})]})]})}function lR({data:e,onChange:t}){return x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:14",className:"space-y-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:15",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:16",htmlFor:"propertyName",children:["Property Name ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:17",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:19",id:"propertyName",name:"property-name-field",value:e.propertyName,onChange:n=>t({propertyName:n.target.value}),placeholder:"Enter property name",required:!0,autoComplete:"none"})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:30",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:31",htmlFor:"propertyAddress",children:["Address of Assessed Property ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:32",className:"text-destructive",children:"*"})]}),x.jsx(oR,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:34",id:"propertyAddress",value:e.propertyAddress,onChange:n=>t({propertyAddress:n}),onAddressSelected:n=>{t({propertyAddress:n.street,propertyCity:n.city,propertyState:n.state,propertyZip:n.zip})},placeholder:"Start typing an address...",required:!0}),x.jsx("p",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:49",className:"text-xs text-muted-foreground",children:"Start typing to search. The city, state, and zip will auto-fill when you select an address."})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:54",className:"space-y-2",children:[x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:55",htmlFor:"addr2Field",children:"Address Line 2"}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:56",id:"addr2Field",name:"addr2-field",value:e.propertyAddressLine2||"",onChange:n=>t({propertyAddressLine2:n.target.value}),placeholder:"Apt/Suite #",autoComplete:"none"})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:66",className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:67",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:68",htmlFor:"propCityField",children:["City ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:69",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:71",id:"propCityField",name:"prop-city-field",value:e.propertyCity,onChange:n=>t({propertyCity:n.target.value}),placeholder:"City",required:!0,autoComplete:"none"})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:82",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:83",htmlFor:"propStateField",children:["State ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:84",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:86",id:"propStateField",name:"prop-state-field",value:e.propertyState,onChange:n=>t({propertyState:n.target.value}),placeholder:"State",required:!0,autoComplete:"none"})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:97",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:98",htmlFor:"propZipField",children:["Zip Code ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:99",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:101",id:"propZipField",name:"prop-zip-field",value:e.propertyZip,onChange:n=>t({propertyZip:n.target.value}),placeholder:"Zip Code",required:!0,autoComplete:"none"})]})]}),x.jsx(xm,{"data-loc":"client/src/pages/assessment-steps/Step2PropertyData.tsx:113",label:"Front of Property Image",value:e.frontPropertyImageUrl,onChange:n=>t({frontPropertyImageUrl:n}),required:!0})]})}function ux(e,[t,n]){return Math.min(n,Math.max(t,e))}var cR=[" ","Enter","ArrowUp","ArrowDown"],uR=[" ","Enter"],lu="Select",[rg,sg,fR]=gS(lu),[Xf]=zi(lu,[fR,Yf]),ag=Yf(),[dR,uc]=Xf(lu),[hR,pR]=Xf(lu),v6=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:l,defaultValue:c,onValueChange:f,dir:d,name:h,autoComplete:m,disabled:y,required:g,form:N}=e,w=ag(t),[E,_]=F.useState(null),[z,H]=F.useState(null),[k,K]=F.useState(!1),U=$m(d),[G,O]=iu({prop:r,defaultProp:a??!1,onChange:o,caller:lu}),[R,Q]=iu({prop:l,defaultProp:c,onChange:f,caller:lu}),j=F.useRef(null),D=E?N||!!E.closest("form"):!0,[$,W]=F.useState(new Set),te=Array.from($).map(L=>L.props.value).join(";");return x.jsx(j4,{...w,children:x.jsxs(dR,{required:g,scope:t,trigger:E,onTriggerChange:_,valueNode:z,onValueNodeChange:H,valueNodeHasChildren:k,onValueNodeHasChildrenChange:K,contentId:Xs(),value:R,onValueChange:Q,open:G,onOpenChange:O,dir:U,triggerPointerDownPosRef:j,disabled:y,children:[x.jsx(rg.Provider,{scope:t,children:x.jsx(hR,{scope:e.__scopeSelect,onNativeOptionAdd:F.useCallback(L=>{W(M=>new Set(M).add(L))},[]),onNativeOptionRemove:F.useCallback(L=>{W(M=>{const X=new Set(M);return X.delete(L),X})},[]),children:n})}),D?x.jsxs(U6,{"aria-hidden":!0,required:g,tabIndex:-1,name:h,autoComplete:m,value:R,onChange:L=>Q(L.target.value),disabled:y,form:N,children:[R===void 0?x.jsx("option",{value:""}):null,Array.from($)]},te):null]})})};v6.displayName=lu;var y6="SelectTrigger",b6=F.forwardRef((e,t)=>
vendor: 13,467 bytes, line 320
320{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=ag(n),l=uc(y6,n),c=l.disabled||r,f=Vn(t,l.onTriggerChange),d=sg(n),h=F.useRef("touch"),[m,y,g]=z6(w=>{const E=d().filter(H=>!H.disabled),_=E.find(H=>H.value===l.value),z=H6(E,w,_);z!==void 0&&l.onValueChange(z.value)}),N=w=>{c||(l.onOpenChange(!0),g()),w&&(l.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return x.jsx(qm,{asChild:!0,...o,children:x.jsx(Yt.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":B6(l.value)?"":void 0,...a,ref:f,onClick:Xt(a.onClick,w=>{w.currentTarget.focus(),h.current!=="mouse"&&N(w)}),onPointerDown:Xt(a.onPointerDown,w=>{h.current=w.pointerType;const E=w.target;E.hasPointerCapture(w.pointerId)&&E.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(N(w),w.preventDefault())}),onKeyDown:Xt(a.onKeyDown,w=>{const E=m.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&y(w.key),!(E&&w.key===" ")&&cR.includes(w.key)&&(N(),w.preventDefault())})})})});b6.displayName=y6;var x6="SelectValue",w6=F.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:l="",...c}=e,f=uc(x6,n),{onValueNodeHasChildrenChange:d}=f,h=o!==void 0,m=Vn(t,f.onValueNodeChange);return Us(()=>{d(h)},[d,h]),x.jsx(Yt.span,{...c,ref:m,style:{pointerEvents:"none"},children:B6(f.value)?x.jsx(x.Fragment,{children:l}):o})});w6.displayName=x6;var mR="SelectIcon",S6=F.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return x.jsx(Yt.span,{"aria-hidden":!0,...a,ref:t,children:r||"â¼"})});S6.displayName=mR;var gR="SelectPortal",A6=e=>x.jsx(Gm,{asChild:!0,...e});A6.displayName=gR;var cu="SelectContent",N6=F.forwardRef((e,t)=>{const n=uc(cu,e.__scopeSelect),[r,a]=F.useState();if(Us(()=>{a(new DocumentFragment)},[]),!n.open){const o=r;return o?yh.createPortal(x.jsx(_6,{scope:e.__scopeSelect,children:x.jsx(rg.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),o):null}return x.jsx(C6,{...e,ref:t})});N6.displayName=cu;var ki=10,[_6,fc]=Xf(cu),vR="SelectContentImpl",yR=su("SelectContent.RemoveScroll"),C6=F.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:l,side:c,sideOffset:f,align:d,alignOffset:h,arrowPadding:m,collisionBoundary:y,collisionPadding:g,sticky:N,hideWhenDetached:w,avoidCollisions:E,..._}=e,z=uc(cu,n),[H,k]=F.useState(null),[K,U]=F.useState(null),G=Vn(t,le=>k(le)),[O,R]=F.useState(null),[Q,j]=F.useState(null),D=sg(n),[$,W]=F.useState(!1),te=F.useRef(!1);F.useEffect(()=>{if(H)return f2(H)},[H]),u2();const L=F.useCallback(le=>{const[me,...ge]=D().map(Fe=>Fe.ref.current),[Ae]=ge.slice(-1),Oe=document.activeElement;for(const Fe of le)if(Fe===Oe||(Fe?.scrollIntoView({block:"nearest"}),Fe===me&&K&&(K.scrollTop=0),Fe===Ae&&K&&(K.scrollTop=K.scrollHeight),Fe?.focus(),document.activeElement!==Oe))return},[D,K]),M=F.useCallback(()=>L([O,H]),[L,O,H]);F.useEffect(()=>{$&&M()},[$,M]);const{onOpenChange:X,triggerPointerDownPosRef:se}=z;F.useEffect(()=>{if(H){let le={x:0,y:0};const me=Ae=>{le={x:Math.abs(Math.round(Ae.pageX)-(se.current?.x??0)),y:Math.abs(Math.round(Ae.pageY)-(se.current?.y??0))}},ge=Ae=>{le.x<=10&&le.y<=10?Ae.preventDefault():H.contains(Ae.target)||X(!1),document.removeEventListener("pointermove",me),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",me),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",me),document.removeEventListener("pointerup",ge,{capture:!0})}}},[H,X,se]),F.useEffect(()=>{const le=()=>X(!1);return window.addEventListener("blur",le),window.addEventListener("resize",le),()=>{window.removeEventListener("blur",le),window.removeEventListener("resize",le)}},[X]);const[pe,ee]=z6(le=>{const me=D().filter(Oe=>!Oe.disabled),ge=me.find(Oe=>Oe.ref.current===document.activeElement),Ae=H6(me,le,ge);Ae&&setTimeout(()=>Ae.ref.current.focus())}),P=F.useCallback((le,me,ge)=>{const Ae=!te.current&&!ge;(z.value!==void 0&&z.value===me||Ae)&&(R(le),Ae&&(te.current=!0))},[z.value]),B=F.useCallback(()=>H?.focus(),[H]),V=F.useCallback((le,me,ge)=>{const Ae=!te.current&&!ge;(z.value!==void 0&&z.value===me||Ae)&&j(le)},[z.value]),Y=r==="popper"?dv:E6,oe=Y===dv?{side:c,sideOffset:f,align:d,alignOffset:h,arrowPadding:m,collisionBoundary:y,collisionPadding:g,sticky:N,hideWhenDetached:w,avoidCollisions:E}:{};return x.jsx(_6,{scope:n,content:H,viewport:K,onViewportChange:U,itemRefCallback:P,selectedItem:O,onItemLeave:B,itemTextRefCallback:V,focusSelectedItem:M,selectedItemText:Q,position:r,isPositioned:$,searchRef:pe,children:x.jsx(eg,{as:yR,allowPinchZoom:!0,children:x.jsx(Zm,{asChild:!0,trapped:z.open,onMountAutoFocus:le=>{le.preventDefault()},onUnmountAutoFocus:Xt(a,le=>{z.trigger?.focus({preventScroll:!0}),le.preventDefault()}),children:x.jsx(bh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:le=>le.preventDefault(),onDismiss:()=>z.onOpenChange(!1),children:x.jsx(Y,{role:"listbox",id:z.contentId,"data-state":z.open?"open":"closed",dir:z.dir,onContextMenu:le=>le.preventDefault(),..._,...oe,onPlaced:()=>W(!0),ref:G,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:Xt(_.onKeyDown,le=>{const me=le.ctrlKey||le.altKey||le.metaKey;if(le.key==="Tab"&&le.preventDefault(),!me&&le.key.length===1&&ee(le.key),["ArrowUp","ArrowDown","Home","End"].includes(le.key)){let Ae=D().filter(Oe=>!Oe.disabled).map(Oe=>Oe.ref.current);if(["ArrowUp","End"].includes(le.key)&&(Ae=Ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(le.key)){const Oe=le.target,Fe=Ae.indexOf(Oe);Ae=Ae.slice(Fe+1)}setTimeout(()=>L(Ae)),le.preventDefault()}})})})})})})});C6.displayName=vR;var bR="SelectItemAlignedPosition",E6=F.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=uc(cu,n),l=fc(cu,n),[c,f]=F.useState(null),[d,h]=F.useState(null),m=Vn(t,G=>h(G)),y=sg(n),g=F.useRef(!1),N=F.useRef(!0),{viewport:w,selectedItem:E,selectedItemText:_,focusSelectedItem:z}=l,H=F.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&d&&w&&E&&_){const G=o.trigger.getBoundingClientRect(),O=d.getBoundingClientRect(),R=o.valueNode.getBoundingClientRect(),Q=_.getBoundingClientRect();if(o.dir!=="rtl"){const Oe=Q.left-O.left,Fe=R.left-Oe,Qe=G.left-Fe,Je=G.width+Qe,ce=Math.max(Je,O.width),Ve=window.innerWidth-ki,it=ux(Fe,[ki,Math.max(ki,Ve-ce)]);c.style.minWidth=Je+"px",c.style.left=it+"px"}else{const Oe=O.right-Q.right,Fe=window.innerWidth-R.right-Oe,Qe=window.innerWidth-G.right-Fe,Je=G.width+Qe,ce=Math.max(Je,O.width),Ve=window.innerWidth-ki,it=ux(Fe,[ki,Math.max(ki,Ve-ce)]);c.style.minWidth=Je+"px",c.style.right=it+"px"}const j=y(),D=window.innerHeight-ki*2,$=w.scrollHeight,W=window.getComputedStyle(d),te=parseInt(W.borderTopWidth,10),L=parseInt(W.paddingTop,10),M=parseInt(W.borderBottomWidth,10),X=parseInt(W.paddingBottom,10),se=te+L+$+X+M,pe=Math.min(E.offsetHeight*5,se),ee=window.getComputedStyle(w),P=parseInt(ee.paddingTop,10),B=parseInt(ee.paddingBottom,10),V=G.top+G.height/2-ki,Y=D-V,oe=E.offsetHeight/2,le=E.offsetTop+oe,me=te+L+le,ge=se-me;if(me<=V){const Oe=j.length>0&&E===j[j.length-1].ref.current;c.style.bottom="0px";const Fe=d.clientHeight-w.offsetTop-w.offsetHeight,Qe=Math.max(Y,oe+(Oe?B:0)+Fe+M),Je=me+Qe;c.style.height=Je+"px"}else{const Oe=j.length>0&&E===j[0].ref.current;c.style.top="0px";const Qe=Math.max(V,te+w.offsetTop+(Oe?P:0)+oe)+ge;c.style.height=Qe+"px",w.scrollTop=me-V+w.offsetTop}c.style.margin=`${ki}px 0`,c.style.minHeight=pe+"px",c.style.maxHeight=D+"px",r?.(),requestAnimationFrame(()=>g.current=!0)}},[y,o.trigger,o.valueNode,c,d,w,E,_,o.dir,r]);Us(()=>H(),[H]);const[k,K]=F.useState();Us(()=>{d&&K(window.getComputedStyle(d).zIndex)},[d]);const U=F.useCallback(G=>{G&&N.current===!0&&(H(),z?.(),N.current=!1)},[H,z]);return x.jsx(wR,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:U,children:x.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:x.jsx(Yt.div,{...a,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});E6.displayName=bR;var xR="SelectPopperPosition",dv=F.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=ki,...o}=e,l=ag(n);return x.jsx(Zv,{...l,...o,ref:t,align:r,collisionPadding:a,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)"}})});dv.displayName=xR;var[wR,v2]=Xf(cu,{}),hv="SelectViewport",P6=F.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=fc(hv,n),l=v2(hv,n),c=Vn(t,o.onViewportChange),f=F.useRef(0);return x.jsxs(x.Fragment,{children:[x.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}),x.jsx(rg.Slot,{scope:n,children:x.jsx(Yt.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Xt(a.onScroll,d=>{const h=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:y}=l;if(y?.current&&m){const g=Math.abs(f.current-h.scrollTop);if(g>0){const N=window.innerHeight-ki*2,w=parseFloat(m.style.minHeight),E=parseFloat(m.style.height),_=Math.max(w,E);if(_<N){const z=_+g,H=Math.min(N,z),k=z-H;m.style.height=H+"px",m.style.bottom==="0px"&&(h.scrollTop=k>0?k:0,m.style.justifyContent="flex-end")}}}f.current=h.scrollTop})})})]})});P6.displayName=hv;var T6="SelectGroup",[SR,AR]=Xf(T6),NR=F.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Xs();return x.jsx(SR,{scope:n,id:a,children:x.jsx(Yt.div,{role:"group","aria-labelledby":a,...r,ref:t})})});NR.displayName=T6;var j6="SelectLabel",_R=F.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=AR(j6,n);return x.jsx(Yt.div,{id:a.id,...r,ref:t})});_R.displayName=j6;var wm="SelectItem",[CR,O6]=Xf(wm),L6=F.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...l}=e,c=uc(wm,n),f=fc(wm,n),d=c.value===r,[h,m]=F.useState(o??""),[y,g]=F.useState(!1),N=Vn(t,z=>f.itemRefCallback?.(z,r,a)),w=Xs(),E=F.useRef("touch"),_=()=>{a||(c.onValueChange(r),c.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 x.jsx(CR,{scope:n,value:r,disabled:a,textId:w,isSelected:d,onItemTextChange:F.useCallback(z=>{m(H=>H||(z?.textContent??"").trim())},[]),children:x.jsx(rg.ItemSlot,{scope:n,value:r,disabled:a,textValue:h,children:x.jsx(Yt.div,{role:"option","aria-labelledby":w,"data-highlighted":y?"":void 0,"aria-selected":d&&y,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:N,onFocus:Xt(l.onFocus,()=>g(!0)),onBlur:Xt(l.onBlur,()=>g(!1)),onClick:Xt(l.onClick,()=>{E.current!=="mouse"&&_()}),onPointerUp:Xt(l.onPointerUp,()=>{E.current==="mouse"&&_()}),onPointerDown:Xt(l.onPointerDown,z=>{E.current=z.pointerType}),onPointerMove:Xt(l.onPointerMove,z=>{E.current=z.pointerType,a?f.onItemLeave?.():E.current==="mouse"&&z.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Xt(l.onPointerLeave,z=>{z.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:Xt(l.onKeyDown,z=>{f.searchRef?.current!==""&&z.key===" "||(uR.includes(z.key)&&_(),z.key===" "&&z.preventDefault())})})})})});L6.displayName=wm;var Vd="SelectItemText",R6=F.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,l=uc(Vd,n),c=fc(Vd,n),f=O6(Vd,n),d=pR(Vd,n),[h,m]=F.useState(null),y=Vn(t,_=>m(_),f.onItemTextChange,_=>c.itemTextRefCallback?.(_,f.value,f.disabled)),g=h?.textContent,N=F.useMemo(()=>x.jsx("option",{value:f.value,disabled:f.disabled,children:g},f.value),[f.disabled,f.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:E}=d;return Us(()=>(w(N),()=>E(N)),[w,E,N]),x.jsxs(x.Fragment,{children:[x.jsx(Yt.span,{id:f.textId,...o,ref:y}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?yh.createPortal(o.children,l.valueNode):null]})});R6.displayName=Vd;var D6="SelectItemIndicator",M6=F.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return O6(D6,n).isSelected?x.jsx(Yt.span,{"aria-hidden":!0,...r,ref:t}):null});M6.displayName=D6;var pv="SelectScrollUpButton",k6=F.forwardRef((e,t)=>{const n=fc(pv,e.__scopeSelect),r=v2(pv,e.__scopeSelect),[a,o]=F.useState(!1),l=Vn(t,r.onScrollButtonChange);return Us(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollTop>0;o(d)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?x.jsx(I6,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});k6.displayName=pv;var mv="SelectScrollDownButton",F6=F.forwardRef((e,t)=>
vendor: 4,835 bytes, line 320
320{const n=fc(mv,e.__scopeSelect),r=v2(mv,e.__scopeSelect),[a,o]=F.useState(!1),l=Vn(t,r.onScrollButtonChange);return Us(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollHeight-f.clientHeight,h=Math.ceil(f.scrollTop)<d;o(h)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?x.jsx(I6,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});F6.displayName=mv;var I6=F.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=fc("SelectScrollButton",n),l=F.useRef(null),c=sg(n),f=F.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return F.useEffect(()=>()=>f(),[f]),Us(()=>{c().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),x.jsx(Yt.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Xt(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Xt(a.onPointerMove,()=>{o.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Xt(a.onPointerLeave,()=>{f()})})}),ER="SelectSeparator",PR=F.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return x.jsx(Yt.div,{"aria-hidden":!0,...r,ref:t})});PR.displayName=ER;var gv="SelectArrow",TR=F.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=ag(n),o=uc(gv,n),l=fc(gv,n);return o.open&&l.position==="popper"?x.jsx(Jv,{...a,...r,ref:t}):null});TR.displayName=gv;var jR="SelectBubbleInput",U6=F.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=F.useRef(null),o=Vn(r,a),l=NS(t);return F.useEffect(()=>{const c=a.current;if(!c)return;const f=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==t&&h){const m=new Event("change",{bubbles:!0});h.call(c,t),c.dispatchEvent(m)}},[l,t]),x.jsx(Yt.select,{...n,style:{...O4,...n.style},ref:o,defaultValue:t})});U6.displayName=jR;function B6(e){return e===""||e===void 0}function z6(e){const t=rc(e),n=F.useRef(""),r=F.useRef(0),a=F.useCallback(l=>{const c=n.current+l;t(c),(function f(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(c)},[t]),o=F.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return F.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,o]}function H6(e,t,n){const a=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=OR(e,Math.max(o,0));a.length===1&&(l=l.filter(d=>d!==n));const f=l.find(d=>d.textValue.toLowerCase().startsWith(a.toLowerCase()));return f!==n?f:void 0}function OR(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var LR=v6,RR=b6,DR=w6,MR=S6,kR=A6,FR=N6,IR=P6,UR=L6,BR=R6,zR=M6,HR=k6,qR=F6;function q6({...e}){return x.jsx(LR,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...e})}function G6({...e}){return x.jsx(DR,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...e})}function W6({className:e,size:t="default",children:n,...r}){return x.jsxs(RR,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:Yn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,x.jsx(MR,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:x.jsx(n2,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"})})]})}function V6({className:e,children:t,position:n="popper",align:r="center",...a}){return x.jsx(kR,{"data-loc":"client/src/components/ui/select.tsx:59",children:x.jsxs(FR,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:Yn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
320de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",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,align:r,...a,children:[x.jsx(GR,{"data-loc":"client/src/components/ui/select.tsx:72"}),x.jsx(IR,{"data-loc":"client/src/components/ui/select.tsx:73",className:Yn("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),x.jsx(WR,{"data-loc":"client/src/components/ui/select.tsx:82"})]})})}function Yd({className:e,children:t,...n}){return x.jsxs(UR,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:Yn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[x.jsx("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:x.jsx(zR,{"data-loc":"client/src/components/ui/select.tsx:116",children:x.jsx(dm,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"})})}),x.jsx(BR,{"data-loc":"client/src/components/ui/select.tsx:120",children:t})]})}function GR({className:e,...t}){return x.jsx(HR,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:Yn("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(mj,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"})})}function WR({className:e,...t}){return x.jsx(qR,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:Yn("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(n2,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"})})}function VR(e){return e<=10?"clear":e<=50?"partly-cloudy":e<=84?"mostly-cloudy":"overcast"}function YR(e,t){const n=Math.round(e);return t&&t>e+2?`${n}-${Math.round(t)} mph`:`${n} mph`}function QR(){const[e,t]=F.useState(null),[n,r]=F.useState(!0),[a,o]=F.useState(null);return F.useEffect(()=>{let l=!1;async function c(f,d){try{const h=`https://api.open-meteo.com/v1/forecast?latitude=${f}&longitude=${d}¤t=temperature_2m,wind_speed_10m,wind_gusts_10m,cloud_cover&temperature_unit=fahrenheit&wind_speed_unit=mph`,m=await fetch(h);if(!m.ok)throw new Error("Weather API request failed");const y=await m.json();if(l)return;const g=y.current;t({temperature:String(Math.round(g.temperature_2m)),windSpeed:YR(g.wind_speed_10m,g.wind_gusts_10m),cloudCover:VR(g.cloud_cover)})}catch(h){l||(o("Could not fetch weather data"),console.error("Weather fetch error:",h))}finally{l||r(!1)}}if(!navigator.geolocation){o("Geolocation not supported"),r(!1);return}return navigator.geolocation.getCurrentPosition(f=>{l||c(f.coords.latitude,f.coords.longitude)},f=>{if(!l){let d="Could not get location â please enter weather manually";f.code===1?d="Location access denied â please enter weather details below":f.code===2?d="Location unavailable â please enter weather details below":f.code===3&&(d="Location request timed out â please enter weather details below"),o(d),r(!1),console.warn("Geolocation error:",f.code,f.message)}},{timeout:1e4,maximumAge:3e5}),()=>{l=!0}},[]),{weather:e,loading:n,error:a}}function $R({data:e,onChange:t}){const{weather:n,loading:r,error:a}=QR(),o=F.useRef(!1);return F.useEffect(()=>{if(!n||o.current)return;o.current=!0;const l={};e.temperature||(l.temperature=n.temperature),e.windSpeed||(l.windSpeed=n.windSpeed),e.cloudCover||(l.cloudCover=n.cloudCover),Object.keys(l).length>0&&t(l)},[n]),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:41",className:"space-y-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:42",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:43",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:44",htmlFor:"assessmentDate",children:["Assessment Start Date ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:45",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:47",id:"assessmentDate",type:"date",value:e.assessmentDate,onChange:l=>t({assessmentDate:l.target.value}),required:!0})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:56",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:57",htmlFor:"assessmentTime",children:["Assessment Start Time ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:58",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:60",id:"assessmentTime",type:"time",value:e.assessmentTime,onChange:l=>t({assessmentTime:l.target.value}),required:!0})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:70",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:71",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:72",htmlFor:"assessorFirstName",children:["Assessor First Name ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:73",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:75",id:"assessorFirstName",value:e.assessorFirstName,onChange:l=>t({assessorFirstName:l.target.value}),placeholder:"First Name",required:!0})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:84",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:85",htmlFor:"assessorLastName",children:["Assessor Last Name ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:86",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:88",id:"assessorLastName",value:e.assessorLastName,onChange:l=>t({assessorLastName:l.target.value}),placeholder:"Last Name",required:!0})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:98",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:99",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:100",htmlFor:"assessorPhone",children:["Phone ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:101",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:103",id:"assessorPhone",type:"tel",value:e.assessorPhone,onChange:l=>t({assessorPhone:l.target.value}),placeholder:"Phone number",required:!0})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:113",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:114",htmlFor:"assessorEmail",children:["Email ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:115",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:117",id:"assessorEmail",type:"email",value:e.assessorEmail,onChange:l=>t({assessorEmail:l.target.value}),placeholder:"Email address",required:!0})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:128",className:"bg-primary/10 p-4 rounded-lg",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:129",className:"flex items-center justify-between mb-3",children:[x.jsx("h3",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:130",className:"font-semibold text-foreground",children:"Weather Conditions"}),r&&x.jsxs("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:132",className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[x.jsx(ya,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:133",className:"h-3 w-3 animate-spin"}),"Fetching weather..."]}),!r&&n&&x.jsxs("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:138",className:"flex items-center gap-1.5 text-xs text-primary",children:[x.jsx(wj,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:139",className:"h-3 w-3"}),"Auto-filled from your location"]}),!r&&a&&x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:144",className:"text-xs text-muted-foreground",children:a})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:149",className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:150",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:151",htmlFor:"temperature",children:["Outside Temperature (°F) ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:152",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:154",id:"temperature",type:"number",value:e.temperature,onChange:l=>t({temperature:l.target.value}),placeholder:r?"Loading...":"Temperature",required:!0})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:164",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:165",htmlFor:"windSpeed",children:["Wind Speed ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:166",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:168",id:"windSpeed",value:e.windSpeed,onChange:l=>t({windSpeed:l.target.value}),placeholder:r?"Loading...":"e.g., 5-10 mph",required:!0})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:177",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:178",htmlFor:"cloudCover",children:["Cloud Cover ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:179",className:"text-destructive",children:"*"})]}),x.jsxs(q6,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:181",value:e.cloudCover,onValueChange:l=>t({cloudCover:l}),children:[x.jsx(W6,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:185",children:x.jsx(G6,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:186",placeholder:r?"Loading...":"Select cloud cover"})}),x.jsxs(V6,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:188",children:[x.jsx(Yd,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:189",value:"clear",children:"Clear"}),x.jsx(Yd,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:190",value:"partly-cloudy",children:"Partly Cloudy"}),x.jsx(Yd,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:191",value:"mostly-cloudy",children:"Mostly Cloudy"}),x.jsx(Yd,{"data-loc":"client/src/pages/assessment-steps/Step3AssessmentData.tsx:192",value:"overcast",children:"Overcast"})]})]})]})]})]})]})}function Y6({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:r,...a}){const o=s6(),{onCompositionStart:l,onCompositionEnd:c,onKeyDown:f}=a6({onKeyDown:d=>{const h=d.nativeEvent.isComposing||o.justEndedComposing();
320d.key==="Enter"&&!d.shiftKey&&h||t?.(d)},onCompositionStart:d=>{o.setComposing(!0),n?.(d)},onCompositionEnd:d=>{o.markCompositionEnd(),setTimeout(()=>{o.setComposing(!1)},100),r?.(d)}});return x.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:Yn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onCompositionStart:l,onCompositionEnd:c,onKeyDown:f,...a})}function XR({data:e,onChange:t}){return x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:13",className:"space-y-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:14",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:15",htmlFor:"roofSlopeId",children:["Roof Slope ID ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:16",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:18",id:"roofSlopeId",value:e.roofSlopeId,onChange:n=>t({roofSlopeId:n.target.value}),placeholder:"e.g., Slope X, Slope AA, etc.",required:!0}),x.jsx("p",{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:25",className:"text-sm text-muted-foreground",children:"Identify the specific roof slope being assessed"})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:30",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:31",htmlFor:"slopeDirection",children:["Slope Direction ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:32",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:34",id:"slopeDirection",value:e.slopeDirection,onChange:n=>t({slopeDirection:n.target.value}),placeholder:"e.g., North, South, East, West",required:!0}),x.jsx("p",{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:41",className:"text-sm text-muted-foreground",children:"Compass direction the slope faces"})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:46",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:47",htmlFor:"assessmentLocation",children:["Assessment Location ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:48",className:"text-destructive",children:"*"})]}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:50",id:"assessmentLocation",value:e.assessmentLocation,onChange:n=>t({assessmentLocation:n.target.value}),placeholder:"e.g., Center of Facet, Right side near the hip, etc.",required:!0}),x.jsx("p",{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:57",className:"text-sm text-muted-foreground",children:"Specific location on the slope where assessment was conducted"})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:62",className:"space-y-2",children:[x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:63",htmlFor:"locationNotes",children:"Additional Notes (Optional)"}),x.jsx(Y6,{"data-loc":"client/src/pages/assessment-steps/Step4AssessmentLocation.tsx:64",id:"locationNotes",value:e.locationNotes||"",onChange:n=>t({locationNotes:n.target.value}),placeholder:"Any additional location details or observations...",rows:4})]})]})}var fx=1,KR=.9,ZR=.8,JR=.17,Z0=.1,J0=.999,eD=.9999,tD=.99,nD=/[\\\/_+.#"@\[\(\{&]/,rD=/[\\\/_+.#"@\[\(\{&]/g,sD=/[\s-]/,Q6=/[\s-]/g;function vv(e,t,n,r,a,o,l){if(o===t.length)return a===e.length?fx:tD;var c=`${a},${o}`;if(l[c]!==void 0)return l[c];for(var f=r.charAt(o),d=n.indexOf(f,a),h=0,m,y,g,N;d>=0;)m=vv(e,t,n,r,d+1,o+1,l),m>h&&(d===a?m*=fx:nD.test(e.charAt(d-1))?(m*=ZR,g=e.slice(a,d-1).match(rD),g&&a>0&&(m*=Math.pow(J0,g.length))):sD.test(e.charAt(d-1))?(m*=KR,N=e.slice(a,d-1).match(Q6),N&&a>0&&(m*=Math.pow(J0,N.length))):(m*=JR,a>0&&(m*=Math.pow(J0,d-a))),e.charAt(d)!==t.charAt(o)&&(m*=eD)),(m<Z0&&n.charAt(d-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(d-1)!==r.charAt(o))&&(y=vv(e,t,n,r,d+1,o+2,l),y*Z0>m&&(m=y*Z0)),m>h&&(h=m),d=n.indexOf(f,d+1);return l[c]=h,h}function dx(e){return e.toLowerCase().replace(Q6," ")}
vendor: 14,695 bytes, line 320
320function aD(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,vv(e,t,dx(e),dx(t),0,0,{})}var Fd='[cmdk-group=""]',e1='[cmdk-group-items=""]',iD='[cmdk-group-heading=""]',$6='[cmdk-item=""]',hx=`${$6}:not([aria-disabled="true"])`,yv="cmdk-item-select",Nf="data-value",oD=(e,t,n)=>aD(e,t,n),X6=F.createContext(void 0),_h=()=>F.useContext(X6),K6=F.createContext(void 0),y2=()=>F.useContext(K6),Z6=F.createContext(void 0),J6=F.forwardRef((e,t)=>{let n=_f(()=>{var P,B;return{search:"",value:(B=(P=e.value)!=null?P:e.defaultValue)!=null?B:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=_f(()=>new Set),a=_f(()=>new Map),o=_f(()=>new Map),l=_f(()=>new Set),c=eA(e),{label:f,children:d,value:h,onValueChange:m,filter:y,shouldFilter:g,loop:N,disablePointerSelection:w=!1,vimBindings:E=!0,..._}=e,z=Xs(),H=Xs(),k=Xs(),K=F.useRef(null),U=yD();uu(()=>{if(h!==void 0){let P=h.trim();n.current.value=P,G.emit()}},[h]),uu(()=>{U(6,$)},[]);let G=F.useMemo(()=>({subscribe:P=>(l.current.add(P),()=>l.current.delete(P)),snapshot:()=>n.current,setState:(P,B,V)=>{var Y,oe,le,me;if(!Object.is(n.current[P],B)){if(n.current[P]=B,P==="search")D(),Q(),U(1,j);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ge=document.getElementById(k);ge?ge.focus():(Y=document.getElementById(z))==null||Y.focus()}if(U(7,()=>{var ge;n.current.selectedItemId=(ge=W())==null?void 0:ge.id,G.emit()}),V||U(5,$),((oe=c.current)==null?void 0:oe.value)!==void 0){let ge=B??"";(me=(le=c.current).onValueChange)==null||me.call(le,ge);return}}G.emit()}},emit:()=>{l.current.forEach(P=>P())}}),[]),O=F.useMemo(()=>({value:(P,B,V)=>{var Y;B!==((Y=o.current.get(P))==null?void 0:Y.value)&&(o.current.set(P,{value:B,keywords:V}),n.current.filtered.items.set(P,R(B,V)),U(2,()=>{Q(),G.emit()}))},item:(P,B)=>(r.current.add(P),B&&(a.current.has(B)?a.current.get(B).add(P):a.current.set(B,new Set([P]))),U(3,()=>{D(),Q(),n.current.value||j(),G.emit()}),()=>{o.current.delete(P),r.current.delete(P),n.current.filtered.items.delete(P);let V=W();U(4,()=>{D(),V?.getAttribute("id")===P&&j(),G.emit()})}),group:P=>(a.current.has(P)||a.current.set(P,new Set),()=>{o.current.delete(P),a.current.delete(P)}),filter:()=>c.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:z,inputId:k,labelId:H,listInnerRef:K}),[]);function R(P,B){var V,Y;let oe=(Y=(V=c.current)==null?void 0:V.filter)!=null?Y:oD;return P?oe(P,n.current.search,B):0}function Q(){if(!n.current.search||c.current.shouldFilter===!1)return;let P=n.current.filtered.items,B=[];n.current.filtered.groups.forEach(Y=>{let oe=a.current.get(Y),le=0;oe.forEach(me=>{let ge=P.get(me);le=Math.max(ge,le)}),B.push([Y,le])});let V=K.current;te().sort((Y,oe)=>{var le,me;let ge=Y.getAttribute("id"),Ae=oe.getAttribute("id");return((le=P.get(Ae))!=null?le:0)-((me=P.get(ge))!=null?me:0)}).forEach(Y=>{let oe=Y.closest(e1);oe?oe.appendChild(Y.parentElement===oe?Y:Y.closest(`${e1} > *`)):V.appendChild(Y.parentElement===V?Y:Y.closest(`${e1} > *`))}),B.sort((Y,oe)=>oe[1]-Y[1]).forEach(Y=>{var oe;let le=(oe=K.current)==null?void 0:oe.querySelector(`${Fd}[${Nf}="${encodeURIComponent(Y[0])}"]`);le?.parentElement.appendChild(le)})}function j(){let P=te().find(V=>V.getAttribute("aria-disabled")!=="true"),B=P?.getAttribute(Nf);G.setState("value",B||void 0)}function D(){var P,B,V,Y;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let oe=0;for(let le of r.current){let me=(B=(P=o.current.get(le))==null?void 0:P.value)!=null?B:"",ge=(Y=(V=o.current.get(le))==null?void 0:V.keywords)!=null?Y:[],Ae=R(me,ge);n.current.filtered.items.set(le,Ae),Ae>0&&oe++}for(let[le,me]of a.current)for(let ge of me)if(n.current.filtered.items.get(ge)>0){n.current.filtered.groups.add(le);break}n.current.filtered.count=oe}function $(){var P,B,V;let Y=W();Y&&(((P=Y.parentElement)==null?void 0:P.firstChild)===Y&&((V=(B=Y.closest(Fd))==null?void 0:B.querySelector(iD))==null||V.scrollIntoView({block:"nearest"})),Y.scrollIntoView({block:"nearest"}))}function W(){var P;return(P=K.current)==null?void 0:P.querySelector(`${$6}[aria-selected="true"]`)}function te(){var P;return Array.from(((P=K.current)==null?void 0:P.querySelectorAll(hx))||[])}function L(P){let B=te()[P];B&&G.setState("value",B.getAttribute(Nf))}function M(P){var B;let V=W(),Y=te(),oe=Y.findIndex(me=>me===V),le=Y[oe+P];(B=c.current)!=null&&B.loop&&(le=oe+P<0?Y[Y.length-1]:oe+P===Y.length?Y[0]:Y[oe+P]),le&&G.setState("value",le.getAttribute(Nf))}function X(P){let B=W(),V=B?.closest(Fd),Y;for(;V&&!Y;)V=P>0?gD(V,Fd):vD(V,Fd),Y=V?.querySelector(hx);Y?G.setState("value",Y.getAttribute(Nf)):M(P)}let se=()=>L(te().length-1),pe=P=>{P.preventDefault(),P.metaKey?se():P.altKey?X(1):M(1)},ee=P=>{P.preventDefault(),P.metaKey?L(0):P.altKey?X(-1):M(-1)};return F.createElement(Yt.div,{ref:t,tabIndex:-1,..._,"cmdk-root":"",onKeyDown:P=>{var B;(B=_.onKeyDown)==null||B.call(_,P);let V=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||V))switch(P.key){case"n":case"j":{E&&P.ctrlKey&&pe(P);break}case"ArrowDown":{pe(P);break}case"p":case"k":{E&&P.ctrlKey&&ee(P);break}case"ArrowUp":{ee(P);break}case"Home":{P.preventDefault(),L(0);break}case"End":{P.preventDefault(),se();break}case"Enter":{P.preventDefault();let Y=W();if(Y){let oe=new Event(yv);Y.dispatchEvent(oe)}}}}},F.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:xD},f),og(e,P=>F.createElement(K6.Provider,{value:G},F.createElement(X6.Provider,{value:O},P))))}),lD=F.forwardRef((e,t)=>{var n,r;let a=Xs(),o=F.useRef(null),l=F.useContext(Z6),c=_h(),f=eA(e),d=(r=(n=f.current)==null?void 0:n.forceMount)!=null?r:l?.forceMount;uu(()=>{if(!d)return c.item(a,l?.id)},[d]);let h=tA(a,o,[e.value,e.children,o],e.keywords),m=y2(),y=ic(U=>U.value&&U.value===h.current),g=ic(U=>d||c.filter()===!1?!0:U.search?U.filtered.items.get(a)>0:!0);F.useEffect(()=>{let U=o.current;if(!(!U||e.disabled))return U.addEventListener(yv,N),()=>U.removeEventListener(yv,N)},[g,e.onSelect,e.disabled]);function N(){var U,G;w(),(G=(U=f.current).onSelect)==null||G.call(U,h.current)}function w(){m.setState("value",h.current,!0)}if(!g)return null;let{disabled:E,value:_,onSelect:z,forceMount:H,keywords:k,...K}=e;return F.createElement(Yt.div,{ref:ru(o,t),...K,id:a,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!y,"data-disabled":!!E,"data-selected":!!y,onPointerMove:E||c.getDisablePointerSelection()?void 0:w,onClick:E?void 0:N},e.children)}),cD=F.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...o}=e,l=Xs(),c=F.useRef(null),f=F.useRef(null),d=Xs(),h=_h(),m=ic(g=>a||h.filter()===!1?!0:g.search?g.filtered.groups.has(l):!0);uu(()=>h.group(l),[]),tA(l,c,[e.value,e.heading,f]);let y=F.useMemo(()=>({id:l,forceMount:a}),[a]);return F.createElement(Yt.div,{ref:ru(c,t),...o,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&F.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),og(e,g=>F.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},F.createElement(Z6.Provider,{value:y},g))))}),uD=F.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=F.useRef(null),o=ic(l=>!l.search);return!n&&!o?null:F.createElement(Yt.div,{ref:ru(a,t),...r,"cmdk-separator":"",role:"separator"})}),fD=F.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,o=y2(),l=ic(d=>d.search),c=ic(d=>d.selectedItemId),f=_h();return F.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),F.createElement(Yt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":c,id:f.inputId,type:"text",value:a?e.value:l,onChange:d=>{a||o.setState("search",d.target.value),n?.(d.target.value)}})}),dD=F.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,o=F.useRef(null),l=F.useRef(null),c=ic(d=>d.selectedItemId),f=_h();return F.useEffect(()=>{if(l.current&&o.current){let d=l.current,h=o.current,m,y=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let g=d.offsetHeight;h.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return y.observe(d),()=>{cancelAnimationFrame(m),y.unobserve(d)}}},[]),F.createElement(Yt.div,{ref:ru(o,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:f.listId},og(e,d=>F.createElement("div",{ref:ru(l,f.listInnerRef),"cmdk-list-sizer":""},d)))}),hD=F.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:l,...c}=e;return F.createElement(VL,{open:n,onOpenChange:r},F.createElement(YL,{container:l},F.createElement(QL,{"cmdk-overlay":"",className:a}),F.createElement($L,{"aria-label":e.label,"cmdk-dialog":"",className:o},F.createElement(J6,{ref:t,...c}))))}),pD=F.forwardRef((e,t)=>ic(n=>n.filtered.count===0)?F.createElement(Yt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),mD=F.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...o}=e;return F.createElement(Yt.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},og(e,l=>F.createElement("div",{"aria-hidden":!0},l)))}),ig=Object.assign(J6,{List:dD,Item:lD,Input:fD,Group:cD,Separator:uD,Dialog:hD,Empty:pD,Loading:mD});function gD(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function vD(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function eA(e){let t=F.useRef(e);return uu(()=>{t.current=e}),t}var uu=typeof window>"u"?F.useEffect:F.useLayoutEffect;function _f(e){let t=F.useRef();return t.current===void 0&&(t.current=e()),t}function ic(e){let t=y2(),n=()=>e(t.snapshot());return F.useSyncExternalStore(t.subscribe,n,n)}function tA(e,t,n,r=[]){let a=F.useRef(),o=_h();return uu(()=>{var l;let c=(()=>{var d;for(let h of n){if(typeof h=="string")return h.trim();if(typeof h=="object"&&"current"in h)return h.current?(d=h.current.textContent)==null?void 0:d.trim():a.current}})(),f=r.map(d=>d.trim());o.value(e,c,f),(l=t.current)==null||l.setAttribute(Nf,c),a.current=c}),a}var yD=()=>{let[e,t]=F.useState(),n=_f(()=>new Map);return uu(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function bD(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function og({asChild:e,children:t},n){return e&&F.isValidElement(t)?F.cloneElement(bD(t),{ref:t.ref},n(t.props.children)):n(t)}var xD={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function wD({className:e,...t}){return x.jsx(ig,{"data-loc":"client/src/components/ui/command.tsx:21","data-slot":"command",className:Yn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function SD({...e}){return x.jsx(ig.Empty,{"data-loc":"client/src/components/ui/command.tsx:105","data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function AD({className:e,...t}){return x.jsx(ig.Group,{"data-loc":"client/src/components/ui/command.tsx:118","data-slot":"command-group",className:Yn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function ND({className:e,...t}){return x.jsx(ig.Item,{"data-loc":"client/src/components/ui/command.tsx:147","data-slot":"command-item",className:Yn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var lg="Popover",[nA]=zi(lg,[Yf]),Ch=Yf(),[_D,dc]=nA(lg),rA=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:l=!1}=e,c=Ch(t),f=F.useRef(null),[d,h]=F.useState(!1),[m,y]=iu({prop:r,defaultProp:a??!1,onChange:o,caller:lg});return x.jsx(j4,{...c,children:x.jsx(_D,{scope:t,contentId:Xs(),triggerRef:f,open:m,onOpenChange:y,onOpenToggle:F.useCallback(()=>y(g=>!g),[y]),hasCustomAnchor:d,onCustomAnchorAdd:F.useCallback(()=>h(!0),[]),onCustomAnchorRemove:F.useCallback(()=>h(!1),[]),modal:l,children:n})})};rA.displayName=lg;var sA="PopoverAnchor",CD=F.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=dc(sA,n),o=Ch(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=a;return F.useEffect(()=>(l(),()=>c()),[l,c]),x.jsx(qm,{...o,...r,ref:t})});CD.displayName=sA;var aA="PopoverTrigger",iA=F.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=dc(aA,n),o=Ch(n),l=Vn(t,a.triggerRef),c=x.jsx(Yt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":fA(a.open),...r,ref:l,onClick:Xt(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?c:x.jsx(qm,{asChild:!0,...o,children:c})});iA.displayName=aA;var b2="PopoverPortal",[ED,PD]=nA(b2,{forceMount:void 0}),oA=e=>{const{__scopePopover:t,forceMount:n,children:r,container:a}=e,o=dc(b2,t);return x.jsx(ED,{scope:t,forceMount:n,children:x.jsx(fl,{present:n||o.open,children:x.jsx(Gm,{asChild:!0,container:a,children:r})})})};oA.displayName=b2;var qf="PopoverContent",lA=F.forwardRef((e,t)=>{const n=PD(qf,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,o=dc(qf,e.__scopePopover);return x.jsx(fl,{present:r||o.open,children:o.modal?x.jsx(jD,{...a,ref:t}):x.jsx(OD,{...a,ref:t})})});lA.displayName=qf;var TD=su("PopoverContent.RemoveScroll"),jD=F.forwardRef((e,t)=>{const n=dc(qf,e.__scopePopover),r=F.useRef(null),a=Vn(t,r),o=F.useRef(!1);return F.useEffect(()=>{const l=r.current;if(l)return f2(l)},[]),x.jsx(eg,{as:TD,allowPinchZoom:!0,children:x.jsx(cA,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xt(e.onCloseAutoFocus,l=>{l.preventDefault(),o.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Xt(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,d=c.button===2||f;o.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Xt(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),OD=F.forwardRef((e,t)=>
320{const n=dc(qf,e.__scopePopover),r=F.useRef(!1),a=F.useRef(!1);return x.jsx(cA,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||n.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=o.target;n.triggerRef.current?.contains(l)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),cA=F.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,...m}=e,y=dc(qf,n),g=Ch(n);return u2(),x.jsx(Zm,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:x.jsx(bh,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onDismiss:()=>y.onOpenChange(!1),children:x.jsx(Zv,{"data-state":fA(y.open),role:"dialog",id:y.contentId,...g,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),uA="PopoverClose",LD=F.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=dc(uA,n);return x.jsx(Yt.button,{type:"button",...r,ref:t,onClick:Xt(e.onClick,()=>a.onOpenChange(!1))})});LD.displayName=uA;var RD="PopoverArrow",DD=F.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Ch(n);return x.jsx(Jv,{...a,...r,ref:t})});DD.displayName=RD;function fA(e){return e?"open":"closed"}var MD=rA,kD=iA,FD=oA,ID=lA;function dA({...e}){return x.jsx(MD,{"data-loc":"client/src/components/ui/popover.tsx:9","data-slot":"popover",...e})}function hA({...e}){return x.jsx(kD,{"data-loc":"client/src/components/ui/popover.tsx:15","data-slot":"popover-trigger",...e})}function pA({className:e,align:t="center",sideOffset:n=4,...r}){return x.jsx(FD,{"data-loc":"client/src/components/ui/popover.tsx:25",children:x.jsx(ID,{"data-loc":"client/src/components/ui/popover.tsx:26","data-slot":"popover-content",align:t,sideOffset:n,className:Yn("bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...r})})}function mA({options:e,value:t,onChange:n,placeholder:r="Select options..."}){const[a,o]=F.useState(!1),l=f=>{const d=t.includes(f)?t.filter(h=>h!==f):[...t,f];n(d)},c=(f,d)=>{d.preventDefault(),d.stopPropagation(),n(t.filter(h=>h!==f))};return x.jsxs(dA,{"data-loc":"client/src/components/MultiSelect.tsx:46",open:a,onOpenChange:o,children:[x.jsx(hA,{"data-loc":"client/src/components/MultiSelect.tsx:47",asChild:!0,children:x.jsxs(Bn,{"data-loc":"client/src/components/MultiSelect.tsx:48",variant:"outline",role:"combobox","aria-expanded":a,className:"w-full justify-between min-h-[2.5rem] h-auto border-2 border-gray-200 bg-white text-gray-900 hover:border-gray-300 hover:shadow-[0_2px_8px_rgba(0,0,0,0.08)] hover:-translate-y-px transition-all duration-300 overflow-hidden",children:[x.jsx("div",{"data-loc":"client/src/components/MultiSelect.tsx:54",className:"flex gap-1 flex-wrap overflow-hidden flex-1 min-w-0",children:t.length>0?t.map(f=>x.jsxs("span",{"data-loc":"client/src/components/MultiSelect.tsx:57",className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-gray-100 text-xs font-medium text-gray-700 max-w-full",children:[x.jsx("span",{"data-loc":"client/src/components/MultiSelect.tsx:61",className:"truncate max-w-[150px] sm:max-w-[200px]",children:f}),x.jsx("span",{"data-loc":"client/src/components/MultiSelect.tsx:62",role:"button",tabIndex:0,className:"shrink-0 rounded-full p-0.5 hover:bg-gray-200 cursor-pointer",onMouseDown:d=>{d.preventDefault(),d.stopPropagation()},onClick:d=>c(f,d),onKeyDown:d=>{d.key==="Enter"&&c(f,d)},children:x.jsx(s2,{"data-loc":"client/src/components/MultiSelect.tsx:75",className:"h-3 w-3"})})]},f)):x.jsx("span",{"data-loc":"client/src/components/MultiSelect.tsx:80",className:"text-muted-foreground text-sm",children:r})}),x.jsx(n2,{"data-loc":"client/src/components/MultiSelect.tsx:83",className:"ml-2 h-4 w-4 shrink-0 opacity-50 hidden sm:block"})]})}),x.jsx(pA,{"data-loc":"client/src/components/MultiSelect.tsx:86",className:"w-full p-0",children:x.jsxs(wD,{"data-loc":"client/src/components/MultiSelect.tsx:87",children:[x.jsx(SD,{"data-loc":"client/src/components/MultiSelect.tsx:88",children:"No option found."}),x.jsx(AD,{"data-loc":"client/src/components/MultiSelect.tsx:89",className:"max-h-64 overflow-auto",children:e.map(f=>x.jsxs(ND,{"data-loc":"client/src/components/MultiSelect.tsx:91",value:f,onSelect:()=>l(f),children:[x.jsx(dm,{"data-loc":"client/src/components/MultiSelect.tsx:96",className:Yn("mr-2 h-4 w-4",t.includes(f)?"opacity-100":"opacity-0")}),f]},f))})]})})]})}function UD(){return F.useMemo(()=>
320{if(typeof window>"u")return!1;const e=navigator.userAgent||"";return/Android|iPhone|iPad|iPod|webOS|BlackBerry|IEMobile|Opera Mini/i.test(e)},[])}function il({label:e,value:t=[],onChange:n,required:r=!1,accept:a="image/*",maxSizeMB:o=2}){const[l,c]=F.useState(!1),f=F.useRef(null),d=F.useRef(null),h=UD(),m=F.useRef(n);m.current=n;const y=Ir.assessment.uploadImage.useMutation(),g=F.useCallback(async _=>{const z=_.target.files;if(!(!z||z.length===0))try{c(!0);const H=Array.from(z).map(async U=>{let G;try{const Q={maxSizeMB:o,maxWidthOrHeight:1920,useWebWorker:!0,fileType:U.type||"image/jpeg"};G=await Ts(U,Q)}catch(Q){console.warn("Image compression failed, using original file:",Q),G=U}const O=await new Promise((Q,j)=>{const D=new FileReader;D.onloadend=()=>Q(D.result),D.onerror=j,D.readAsDataURL(G)});return(await y.mutateAsync({base64Data:O,filename:U.name||`photo_${Date.now()}.jpg`,contentType:G.type||U.type||"image/jpeg"})).url}),k=await Promise.all(H),K=[...t,...k];m.current(K),yn.success(`${k.length} photo${k.length>1?"s":""} uploaded successfully`)}catch(H){console.error("Upload error:",H),yn.error("Failed to upload image. Please check your connection and try again.")}finally{c(!1),f.current&&(f.current.value=""),d.current&&(d.current.value="")}},[o,y,t]),N=F.useCallback(_=>{const z=t.filter((H,k)=>k!==_);m.current(z)},[t]),w=F.useCallback(()=>{l||f.current?.click()},[l]),E=F.useCallback(()=>{l||d.current?.click()},[l]);return x.jsxs("div",{"data-loc":"client/src/components/MultiImageUpload.tsx:116",className:"space-y-2",children:[e!==""&&e&&x.jsxs(Vt,{"data-loc":"client/src/components/MultiImageUpload.tsx:118",children:[e," ",r&&x.jsx("span",{"data-loc":"client/src/components/MultiImageUpload.tsx:119",className:"text-destructive",children:"*"})]}),h&&x.jsx("input",{"data-loc":"client/src/components/MultiImageUpload.tsx:125",ref:f,type:"file",accept:a,capture:"environment",onChange:g,className:"hidden",disabled:l}),x.jsx("input",{"data-loc":"client/src/components/MultiImageUpload.tsx:137",ref:d,type:"file",accept:a,multiple:!0,onChange:g,className:"hidden",disabled:l}),t.length>0&&x.jsx("div",{"data-loc":"client/src/components/MultiImageUpload.tsx:149",className:"grid grid-cols-2 sm:grid-cols-3 gap-2 mb-3",children:t.map((_,z)=>x.jsxs("div",{"data-loc":"client/src/components/MultiImageUpload.tsx:151",className:"relative group",children:[x.jsx("img",{"data-loc":"client/src/components/MultiImageUpload.tsx:152",src:_,alt:`${e} ${z+1}`,className:"w-full h-32 object-cover rounded-lg border bg-muted/30"}),x.jsx(Bn,{"data-loc":"client/src/components/MultiImageUpload.tsx:157",type:"button",variant:"destructive",size:"icon",className:"absolute top-1 right-1 h-6 w-6 opacity-80 group-hover:opacity-100",onClick:()=>N(z),children:x.jsx(s2,{"data-loc":"client/src/components/MultiImageUpload.tsx:164",className:"h-3 w-3"})})]},`${_}-${z}`))}),x.jsx("div",{"data-loc":"client/src/components/MultiImageUpload.tsx:172",className:"border-2 border-dashed border-border rounded-lg p-4 text-center transition-all duration-300 hover:border-gray-400 hover:shadow-[0_2px_8px_rgba(0,0,0,0.08)]",children:l?x.jsxs("div",{"data-loc":"client/src/components/MultiImageUpload.tsx:174",className:"flex flex-col items-center gap-2",children:[x.jsx(ya,{"data-loc":"client/src/components/MultiImageUpload.tsx:175",className:"h-8 w-8 animate-spin text-primary"}),x.jsx("p",{"data-loc":"client/src/components/MultiImageUpload.tsx:176",className:"text-sm text-muted-foreground",children:"Uploading..."})]}):x.jsxs("div",{"data-loc":"client/src/components/MultiImageUpload.tsx:179",className:"flex flex-col items-center gap-3",children:[x.jsxs("div",{"data-loc":"client/src/components/MultiImageUpload.tsx:180",className:"flex gap-3 flex-wrap justify-center",children:[h&&x.jsxs(Bn,{"data-loc":"client/src/components/MultiImageUpload.tsx:182",type:"button",variant:"outline",onClick:_=>{_.stopPropagation(),w()},className:"flex items-center gap-2 min-h-[44px] min-w-[44px]",children:[x.jsx(J4,{"data-loc":"client/src/components/MultiImageUpload.tsx:191",className:"h-4 w-4"}),"Take Photo"]}),x.jsxs(Bn,{"data-loc":"client/src/components/MultiImageUpload.tsx:195",type:"button",variant:"outline",onClick:_=>{_.stopPropagation(),E()},className:"flex items-center gap-2 min-h-[44px] min-w-[44px]",children:[x.jsx(Ej,{"data-loc":"client/src/components/MultiImageUpload.tsx:204",className:"h-4 w-4"}),t.length>0?"Add More":h?"Upload":"Upload Image"]})]}),x.jsx("p",{"data-loc":"client/src/components/MultiImageUpload.tsx:212",className:"text-xs text-muted-foreground",children:t.length>0?`${t.length} photo${t.length>
3201?"s":""} uploaded â add more as needed`:h?"Take a photo or upload from gallery":"Select image files to upload"})]})})]})}const BD=["Wind Damage","Hail Damage","Shingle Hinge / Fracture (Crease)","Shingle Tearing","Applique (Tooth) Delamination","Common Nail Strip Delamination","Granule Loss","Blistering","Curling","Cracking"];function zD({data:e,onChange:t}){const n=(r,a)=>{t({preExistingPhotos:{...e.preExistingPhotos,[r]:a}})};return x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:35",className:"space-y-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:37",className:"border rounded-lg p-3 bg-primary/5 border-primary/20",children:[x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:38",className:"text-sm font-semibold block mb-1",children:"Pre-Existing Condition of Target Shingle X"}),x.jsx("p",{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:41",className:"text-xs text-muted-foreground mb-2",children:"Select all damages that apply"}),x.jsx(mA,{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:42",options:BD,value:e.assessmentShingleDefects,onChange:r=>t({assessmentShingleDefects:r}),placeholder:"Select damages..."}),x.jsx("div",{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:48",className:"mt-3",children:x.jsx(il,{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:49",label:"Before Photo of Target Shingle X",value:e.preExistingPhotos?.targetShingleX||[],onChange:r=>n("targetShingleX",r)})})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:58",className:"border rounded-lg p-3",children:[x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:59",className:"text-sm font-semibold block mb-1",children:"Before Overview of Repair Assessment Area Outlined with Chalk"}),x.jsx(il,{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:62",label:"",value:e.preExistingPhotos?.overviewChalk||[],onChange:r=>n("overviewChalk",r)})]}),Array.from({length:8},(r,a)=>a+1).map(r=>x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:71",className:"border rounded-lg p-3",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:72",className:"text-sm font-semibold block mb-1",children:["Before Shingle ",r," â Pre-Existing Condition & Damage"]}),x.jsx(il,{"data-loc":"client/src/pages/assessment-steps/Step5PreExistingConditions.tsx:75",label:"",value:e.preExistingPhotos?.[`shingle${r}`]||[],onChange:a=>n(`shingle${r}`,a)})]},r))]})}const HD=["Shingle Hinge / Fracture (Crease)","Shingle Tearing","Applique (Tooth) Delamination","Common Nail Strip Delamination","Granule Loss","Blistering","Curling","Cracking","Matt Transfer"];function qD({data:e,onChange:t,validationErrors:n=[]}){const r=(l,c)=>{const f=[...e.shingles];f[l]={...f[l],...c},t({shingles:f})},a=e.assessmentPhotos||{overviewTargetRemoved:[],underlayment:[],targetShingleFrontBack:[],targetShingleMeasurements:[],controlShingle:[],afterOverview:[]},o=l=>{t({assessmentPhotos:{...a,...l}})};return x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:52",className:"space-y-4",children:[x.jsx("div",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:53",className:"space-y-3",children:e.shingles.map((l,c)=>x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:55",className:`border rounded-lg p-3 ${n.includes(c)?"border-red-500 bg-red-50/50":""}`,children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:56",className:"flex items-center gap-4",children:[x.jsxs("span",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:57",className:"text-sm font-semibold whitespace-nowrap",children:["Shingle ",c+1," damaged?"]}),x.jsxs("label",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:60",className:"flex items-center gap-1.5 cursor-pointer",children:[x.jsx("input",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:61",type:"radio",name:`shingleObs-${c}`,checked:l.damaged===!0,onChange:()=>r(c,{damaged:!0}),className:"w-4 h-4 accent-primary"}),x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:68",className:"text-sm",children:"Yes"})]}),x.jsxs("label",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:70",className:"flex items-center gap-1.5 cursor-pointer",children:[x.jsx("input",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:71",type:"radio",name:`shingleObs-${c}`,checked:l.damaged===!1,onChange:()=>r(c,{damaged:!1,defects:[],imageUrl:void 0}),className:"w-4 h-4 accent-primary"}),x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:78",className:"text-sm",children:"No"})]})]}),l.damaged&&x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:83",className:"mt-3 pl-3 border-l-2 border-primary/30 space-y-2",children:[x.jsx(mA,{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:84",options:HD,value:l.defects||[],onChange:f=>r(c,{defects:f}),placeholder:"Select defects..."}),n.includes(c)&&(!l.defects||l.defects.length===0)&&x.jsx("p",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:91",className:"text-xs text-red-600 font-medium",children:"â Please select at least one defect to continue"}),x.jsx(xm,{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:93",label:"",value:l.imageUrl,onChange:f=>r(c,{imageUrl:f}),required:!1})]})]},c))}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:106",className:"border rounded-lg p-3 bg-primary/5 border-primary/20",children:[x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:107",className:"text-sm font-semibold block mb-1",children:"After Overview Photo of Repair Assessment Area"}),x.jsx(il,{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:110",label:"",value:a.afterOverview,onChange:l=>o({afterOverview:l})})]}),x.jsx(Jr,{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:118",className:"p-4 bg-muted/50",children:x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:119",className:"flex justify-between items-center",children:[x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:120",className:"font-semibold text-sm",children:"Total Damaged Shingles:"}),x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step5ShingleObservations.tsx:121",className:"text-xl font-bold text-primary",children:e.shingles.filter(l=>l.damaged).length})]})})]})}function GD({data:e,onChange:t}){const n=e.assessmentPhotos||{overviewTargetRemoved:[],underlayment:[],targetShingleFrontBack:[],targetShingleMeasurements:[],controlShingle:[],afterOverview:[]}
320,r=a=>{t({assessmentPhotos:{...n,...a}})};return x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:30",className:"space-y-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:32",className:"border rounded-lg p-3 bg-primary/5 border-primary/20",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:33",className:"text-sm font-semibold block mb-1",children:["Overview Photo â Target Shingle X Removed ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:34",className:"text-destructive",children:"*"})]}),x.jsx(il,{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:36",label:"",value:n.overviewTargetRemoved,onChange:a=>r({overviewTargetRemoved:a}),required:!0})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:45",className:"border rounded-lg p-3",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:46",className:"text-sm font-semibold block mb-1",children:["Underlayment Photo ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:47",className:"text-muted-foreground font-normal",children:"(Optional)"})]}),x.jsx(il,{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:49",label:"",value:n.underlayment,onChange:a=>r({underlayment:a})})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:57",className:"border rounded-lg p-3",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:58",className:"text-sm font-semibold block mb-1",children:["Front & Back of Target Shingle X While Removed ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:59",className:"text-muted-foreground font-normal",children:"(Optional)"})]}),x.jsx(il,{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:61",label:"",value:n.targetShingleFrontBack,onChange:a=>r({targetShingleFrontBack:a})})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:69",className:"border rounded-lg p-3",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:70",className:"text-sm font-semibold block mb-1",children:["Measurement Photos â Height, Width & Exposure ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:71",className:"text-muted-foreground font-normal",children:"(Optional)"})]}),x.jsx(il,{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:73",label:"",value:n.targetShingleMeasurements,onChange:a=>r({targetShingleMeasurements:a})})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:81",className:"border rounded-lg p-3",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:82",className:"text-sm font-semibold block mb-1",children:["Control Shingle Photos ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:83",className:"text-muted-foreground font-normal",children:"(Optional)"})]}),x.jsx(il,{"data-loc":"client/src/pages/assessment-steps/Step6AssessmentPhotos.tsx:85",label:"",value:n.controlShingle,onChange:a=>r({controlShingle:a})})]})]})}function gf({title:e,value:t,onChange:n,options:r,note:a}){return x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:27",className:"space-y-3",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:28",className:"text-base font-semibold",children:[e," ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:29",className:"text-destructive",children:"*"})]}),a&&x.jsx("p",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:31",className:"text-sm text-muted-foreground italic",children:a}),x.jsxs(q6,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:32",value:t.toString(),onValueChange:o=>n(parseInt(o)),children:[x.jsx(W6,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:36",className:"w-full",children:x.jsx(G6,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:37",placeholder:"Select a score..."})}),x.jsx(V6,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:39",children:r.map(o=>x.jsx(Yd,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:41",value:o.value.toString(),children:o.label},o.value))})]})]})}function WD({data:e,onChange:t}){const n=[{value:0,label:"(0 pts) - Not Present"},{value:1,label:"(1 pts) - Present"},{value:2,label:"(2 pts) - Limiting"}],r=[{value:0,label:"(0 pts) - Not Present"},{value:2,label:"(2 pts) - Limiting"}],a=e.deteriorationScore+e.installationErrorsScore+e.previousRepairsScore+e.manufacturingDefectsScore+e.materialObsolescenceScore+e.visualIncompatibilityScore,o=e.shingles.filter(c=>c.damaged).length,l=a+o;return x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:75",className:"space-y-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:76",className:"bg-primary/10 p-4 rounded-lg",children:[x.jsx("h3",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:77",className:"font-semibold text-lg mb-2",children:"General Conditions by Type"}),x.jsx("p",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:78",className:"text-sm text-muted-foreground",children:"Score each condition based on its presence and impact on repairability"})]}),x.jsxs(Jr,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:83",className:"p-6 space-y-6",children:[x.jsx(gf,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:84",title:"1. Deterioration Related to Age/Materials",value:e.deteriorationScore,onChange:c=>t({deteriorationScore:c}),options:n}),x.jsx(gf,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:91",title:"2. Installation Errors",value:e.installationErrorsScore,onChange:c=>t({installationErrorsScore:c}),options:n,note:"Present: Installation errors present to 0-10% of shingles. Limiting: Installation errors present to more than 10% of shingles"}),x.jsx(gf,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:99",title:"3. History of Previous Repairs",value:e.previousRepairsScore,onChange:c=>t({previousRepairsScore:c}),options:r,note:"Based on removal and replacement of a test shingle"}),x.jsx(gf,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:107",title:"4. Manufacturing Defects",value:e.manufacturingDefectsScore,onChange:c=>t({manufacturingDefectsScore:c}),options:r}),x.jsx(gf,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:114",title:"5. Material Obsolescence (due to size)",value:e.materialObsolescenceScore,onChange:c=>t({materialObsolescenceScore:c}),options:r}),x.jsx(gf,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:121",title:"6. Visual Incompatibility",value:e.visualIncompatibilityScore,onChange:c=>t({visualIncompatibilityScore:c}),options:r})]}),x.jsxs(Jr,{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:130",className:"p-6 bg-primary/5 space-y-4",children:[x.jsx("h3",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:131",className:"font-semibold text-lg",children:"Score Summary"}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:133",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:134",className:"flex justify-between items-center p-3 bg-background rounded-lg",children:[x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:135",className:"font-medium",children:"General Conditions Total (1-6):"}),x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:136",className:"text-xl font-bold text-primary",children:a})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:139",className:"flex justify-between items-center p-3 bg-background rounded-lg",children:[x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:140",className:"font-medium",children:"Damage Rate:"}),x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:141",className:"text-xl font-bold text-primary",children:o})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:145",className:"p-4 bg-background rounded-lg border-2 border-primary",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:146",className:"flex justify-between items-center",children:[x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:147",className:"font-semibold text-lg",children:"Total Repairability Assessment:"}),x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:148",className:"text-3xl font-bold text-primary",children:l})]}),x.jsx("p",{"data-loc":"client/src/pages/assessment-steps/Step6GeneralConditions.tsx:150",className:"text-sm text-muted-foreground mt-2",children:"The assessor will select the final determination on the next step."})]})]})]})}function bv(){return bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bv.apply(null,arguments)}function VD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function YD(e,t){if(e==null)return{};var n,r,a=VD(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function zn(e){"@babel/helpers - typeof";return zn=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},zn(e)}
320function QD(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function $D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xv(e,t){return xv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xv(e,t)}function XD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xv(e,t)}function Sm(e){return Sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sm(e)}function gA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gA=function(){return!!e})()}function KD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZD(e,t){if(t&&(zn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KD(e)}function JD(e){var t=gA();return function(){var n,r=Sm(e);if(t){var a=Sm(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ZD(this,n)}}var t1={exports:{}},n1,px;function eM(){if(px)return n1;px=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return n1=e,n1}var r1,mx;function tM(){if(mx)return r1;mx=1;var e=eM();function t(){}function n(){}return n.resetWarningCache=t,r1=function(){function r(l,c,f,d,h,m){if(m!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},r1}var gx;function nM(){return gx||(gx=1,t1.exports=tM()()),t1.exports}var rM=nM();const Ma=Om(rM);/*! 321 * Signature Pad v2.3.2 322 * https://github.com/szimek/signature_pad 323 * 324 * Copyright 2017 Szymon Nowak 325 * Released under the MIT license 326 * 327 * The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from: 328 * http://corner.squareup.com/2012/07/smoother-signatures.html 329 * 330 * Implementation of interpolation using cubic Bézier curves is taken from: 331 * http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript 332 * 333 * Algorithm for approximated length of a Bézier curve is taken from: 334 * http://www.lemoda.net/maths/bezier-length/index.html 335 * 336 */function fu(e,t,n){this.x=e,this.y=t,this.time=n||new Date().getTime()}fu.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1};fu.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))};fu.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time};function x2(e,t,n,r){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=r}x2.prototype.length=function(){for(var e=10,t=0,n=void 0,r=void 0,a=0;a<=e;a+=1){var o=a/e,l=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),c=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(a>0){var f=l-n,d=c-r;t+=Math.sqrt(f*f+d*d)}n=l,r=c}return t};x2.prototype._point=function(e,t,n,r,a){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+a*e*e*e};function sM(e,t,n){var r,a,o,l=null,c=0;n||(n={});var f=function(){c=n.leading===!1?0:Date.now(),l=null,o=e.apply(r,a),l||(r=a=null)};return function(){var d=Date.now();!c&&n.leading===!1&&(c=d);var h=t-(d-c);return r=this,a=arguments,h<=0||h>t?(l&&(clearTimeout(l),l=null),c=d,o=e.apply(r,a),l||(r=a=null)):!l&&n.trailing!==!1&&(l=setTimeout(f,h)),o}}function ir(e,t){var n=this,r=t||{};this.velocityFilterWeight=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle="throttle"in r?r.throttle:16,this.minDistance="minDistance"in r?r.minDistance:5,this.throttle?this._strokeMoveUpdate=sM(ir.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=ir.prototype._strokeUpdate,this.dotSize=r.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=r.penColor||"black",this.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.onBegin=r.onBegin,this.onEnd=r.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(a){a.which===1&&(n._mouseButtonDown=!0,n._strokeBegin(a))},this._handleMouseMove=function(a){n._mouseButtonDown&&n._strokeMoveUpdate(a)},this._handleMouseUp=function(a){a.which===1&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(a))}
336,this._handleTouchStart=function(a){if(a.targetTouches.length===1){var o=a.changedTouches[0];n._strokeBegin(o)}},this._handleTouchMove=function(a){a.preventDefault();var o=a.targetTouches[0];n._strokeMoveUpdate(o)},this._handleTouchEnd=function(a){var o=a.target===n._canvas;o&&(a.preventDefault(),n._strokeEnd(a))},this.on()}ir.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0};ir.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Image,a=n.ratio||window.devicePixelRatio||1,o=n.width||this._canvas.width/a,l=n.height||this._canvas.height/a;this._reset(),r.src=e,r.onload=function(){t._ctx.drawImage(r,0,0,o,l)},this._isEmpty=!1};ir.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return(t=this._canvas).toDataURL.apply(t,[e].concat(r))}};ir.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()};ir.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)};ir.prototype.isEmpty=function(){return this._isEmpty};ir.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),typeof this.onBegin=="function"&&this.onBegin(e)};ir.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,r=this._createPoint(t,n),a=this._data[this._data.length-1],o=a&&a[a.length-1],l=o&&r.distanceTo(o)<this.minDistance;if(!(o&&l)){var c=this._addPoint(r),f=c.curve,d=c.widths;f&&d&&this._drawCurve(f,d.start,d.end),this._data[this._data.length-1].push({x:r.x,y:r.y,time:r.time,color:this.penColor})}};ir.prototype._strokeEnd=function(e){var t=this.points.length>2,n=this.points[0];if(!t&&n&&this._drawDot(n),n){var r=this._data[this._data.length-1],a=r[r.length-1];n.equals(a)||r.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}typeof this.onEnd=="function"&&this.onEnd(e)};ir.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)};ir.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)};ir.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor};ir.prototype._createPoint=function(e,t,n){var r=this._canvas.getBoundingClientRect();return new fu(e-r.left,t-r.top,n||new Date().getTime())};ir.prototype._addPoint=function(e){var t=this.points,n=void 0;if(t.push(e),t.length>2){t.length===3&&t.unshift(t[0]),n=this._calculateCurveControlPoints(t[0],t[1],t[2]);var r=n.c2;n=this._calculateCurveControlPoints(t[1],t[2],t[3]);var a=n.c1,o=new x2(t[1],r,a,t[2]),l=this._calculateCurveWidths(o);return t.shift(),{curve:o,widths:l}}return{}};ir.prototype._calculateCurveControlPoints=function(e,t,n){var r=e.x-t.x,a=e.y-t.y,o=t.x-n.x,l=t.y-n.y,c={x:(e.x+t.x)/2,y:(e.y+t.y)/2},f={x:(t.x+n.x)/2,y:(t.y+n.y)/2},d=Math.sqrt(r*r+a*a),h=Math.sqrt(o*o+l*l),m=c.x-f.x,y=c.y-f.y,g=h/(d+h),N={x:f.x+m*g,y:f.y+y*g},w=t.x-N.x,E=t.y-N.y;return{c1:new fu(c.x+w,c.y+E),c2:new fu(f.x+w,f.y+E)}};ir.prototype._calculateCurveWidths=function(e){var t=e.startPoint,n=e.endPoint,r={start:null,end:null},a=this.velocityFilterWeight*n.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(a);return r.start=this._lastWidth,r.end=o,this._lastVelocity=a,this._lastWidth=o,r};ir.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)};ir.prototype._drawPoint=function(e,t,n){var r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1};ir.prototype._drawCurve=function(e,t,n){var r=this._ctx,a=n-t,o=Math.floor(e.length());r.beginPath();for(var l=0;l<o;l+=1){var c=l/o,f=c*c,d=f*c,h=1-c,m=h*h,y=m*h,g=y*e.startPoint.x;g+=3*m*c*e.control1.x,g+=3*h*f*e.control2.x,g+=d*e.endPoint.x;var N=y*e.startPoint.y;N+=3*m*c*e.control1.y,N+=3*h*f*e.control2.y,N+=d*e.endPoint.y;var w=t+d*a;this._drawPoint(g,N,w)}r.closePath(),r.fill()};ir.prototype._drawDot=function(e){var t=this._ctx,n=typeof this.dotSize=="function"?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()};ir.prototype._fromData=function(e,t,n){for(var r=0;r<e.length;r+=1){var a=e[r];if(a.length>1)for(var o=0;o<a.length;o+=1){var l=a[o],c=new fu(l.x,l.y,l.time),f=l.color;if(o===0)this.penColor=f,this._reset(),this._addPoint(c);else if(o!==a.length-1){var d=this._addPoint(c),h=d.curve,m=d.widths;h&&m&&t(h,m,f)}}else{this._reset();var y=a[0];n(y)}}};ir.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,r=Math.max(window.devicePixelRatio||1,1),a=0,o=0,l=n.width/r,c=n.height/r,f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttributeNS(null,"width",n.width),f.setAttributeNS(null,"height",n.height),this._fromData(t,function(_,z,H){var k=document.createElement("path");if(!isNaN(_.control1.x)&&!isNaN(_.control1.y)&&!isNaN(_.control2.x)&&!isNaN(_.control2.y)){var K="M "+_.startPoint.x.toFixed(3)+","+_.startPoint.y.toFixed(3)+" "+("C "+_.control1.x.toFixed(3)+","+_.control1.y.toFixed(3)+" ")+(_.control2.x.toFixed(3)+","+_.control2.y.toFixed(3)+" ")+(_.endPoint.x.toFixed(3)+","+_.endPoint.y.toFixed(3));k.setAttribute("d",K),k.setAttribute("stroke-width",(z.end*2.25).toFixed(3)),k.setAttribute("stroke",H),k.setAttribute("fill","none"),k.setAttribute("stroke-linecap","round"),f.appendChild(k)}},function(_){var z=document.createElement("circle"),H=typeof e.dotSize=="function"?e.dotSize():e.dotSize;z.setAttribute("r",H),z.setAttribute("cx",_.x),z.setAttribute("cy",_.y),z.setAttribute("fill",_.color),f.appendChild(z)});var d="data:image/svg+xml;base64,",h='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"'+(' viewB
336ox="'+a+" "+o+" "+l+" "+c+'"')+(' width="'+l+'"')+(' height="'+c+'"')+">",m=f.innerHTML;if(m===void 0){var y=document.createElement("dummy"),g=f.childNodes;y.innerHTML="";for(var N=0;N<g.length;N+=1)y.appendChild(g[N].cloneNode(!0));m=y.innerHTML}var w="</svg>",E=h+m+w;return d+btoa(E)};ir.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,function(n,r){return t._drawCurve(n,r.start,r.end)},function(n){return t._drawDot(n)}),this._data=e};ir.prototype.toData=function(){return this._data};var Kp={exports:{}},aM=Kp.exports,vx;function iM(){return vx||(vx=1,(function(e,t){(function(n,r){e.exports=r()})(aM,function(){return(function(n){function r(o){if(a[o])return a[o].exports;var l=a[o]={exports:{},id:o,loaded:!1};return n[o].call(l.exports,l,l.exports,r),l.loaded=!0,l.exports}var a={};return r.m=n,r.c=a,r.p="",r(0)})([function(n,r){function a(d){var h=d.getContext("2d"),m=d.width,y=d.height,g=h.getImageData(0,0,m,y).data,N=c(!0,m,y,g),w=c(!1,m,y,g),E=f(!0,m,y,g),_=f(!1,m,y,g),z=_-E+1,H=w-N+1,k=h.getImageData(E,N,z,H);return d.width=z,d.height=H,h.clearRect(0,0,z,H),h.putImageData(k,0,0),d}function o(d,h,m,y){return{red:y[4*(m*h+d)],green:y[4*(m*h+d)+1],blue:y[4*(m*h+d)+2],alpha:y[4*(m*h+d)+3]}}function l(d,h,m,y){return o(d,h,m,y).alpha}function c(d,h,m,y){for(var g=d?1:-1,N=d?0:m-1,w=N;d?w<m:w>-1;w+=g)for(var E=0;E<h;E++)if(l(E,w,h,y))return w;return null}function f(d,h,m,y){for(var g=d?1:-1,N=d?0:h-1,w=N;d?w<h:w>-1;w+=g)for(var E=0;E<m;E++)if(l(w,E,h,y))return w;return null}Object.defineProperty(r,"__esModule",{value:!0}),r.default=a}])})})(Kp)),Kp.exports}var oM=iM();const lM=Om(oM);var cM=["canvasProps","clearOnResize"],cg=(function(e){XD(n,e);var t=JD(n);function n(){var r;$D(this,n);for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return r=t.call.apply(t,[this].concat(o)),r.staticThis=r.constructor,r._sigPad=null,r._canvas=null,r.setRef=function(c){r._canvas=c,r._canvas===null&&(r._sigPad=null)},r._excludeOurProps=function(){var c=r.props;c.canvasProps,c.clearOnResize;var f=YD(c,cM);return f},r.componentDidMount=function(){var c=r.getCanvas();r._sigPad=new ir(c,r._excludeOurProps()),r._resizeCanvas(),r.on()},r.componentWillUnmount=function(){r.off()},r.componentDidUpdate=function(){Object.assign(r._sigPad,r._excludeOurProps())},r.getCanvas=function(){if(r._canvas===null)throw r.staticThis.refNullError;return r._canvas},r.getTrimmedCanvas=function(){var c=r.getCanvas(),f=document.createElement("canvas");return f.width=c.width,f.height=c.height,f.getContext("2d").drawImage(c,0,0),lM(f)},r.getSignaturePad=function(){if(r._sigPad===null)throw r.staticThis.refNullError;return r._sigPad},r._checkClearOnResize=function(){r.props.clearOnResize&&r._resizeCanvas()},r._resizeCanvas=function(){var c,f,d=(c=r.props.canvasProps)!==null&&c!==void 0?c:{},h=d.width,m=d.height;if(!(typeof h<"u"&&typeof m<"u")){var y=r.getCanvas(),g=Math.max((f=window.devicePixelRatio)!==null&&f!==void 0?f:1,1);typeof h>"u"&&(y.width=y.offsetWidth*g),typeof m>"u"&&(y.height=y.offsetHeight*g),y.getContext("2d").scale(g,g),r.clear()}},r.render=function(){var c=r.props.canvasProps;return Ze.createElement("canvas",bv({ref:r.setRef},c))},r.on=function(){return window.addEventListener("resize",r._checkClearOnResize),r.getSignaturePad().on()},r.off=function(){return window.removeEventListener("resize",r._checkClearOnResize),r.getSignaturePad().off()},r.clear=function(){return r.getSignaturePad().clear()},r.isEmpty=function(){return r.getSignaturePad().isEmpty()},r.fromDataURL=function(c,f){return r.getSignaturePad().fromDataURL(c,f)},r.toDataURL=function(c,f){return r.getSignaturePad().toDataURL(c,f)},r.fromData=function(c){return r.getSignaturePad().fromData(c)},r.toData=function(){return r.getSignaturePad().toData()},r}return QD(n)})(F.Component);cg.propTypes={velocityFilterWeight:Ma.number,minWidth:Ma.number,maxWidth:Ma.number,minDistance:Ma.number,dotSize:Ma.oneOfType([Ma.number,Ma.func]),penColor:Ma.string,throttle:Ma.number,onEnd:Ma.func,onBegin:Ma.func,canvasProps:Ma.object,clearOnResize:Ma.bool};cg.defaultProps={clearOnResize:!0};cg.refNullError=new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.");function uM({onSave:e,existingSignature:t,isSaving:n}){const r=F.useRef(null),a=F.useRef(null),[o,l]=F.useState(!0),[c,f]=F.useState(!1),d=()=>{r.current?.clear(),l(!0)},h=()=>
336{if(r.current&&!r.current.isEmpty()){const y=r.current.toDataURL("image/png");e(y)}},m=()=>{l(!1)};return F.useEffect(()=>{if(t&&a.current){f(!0),setTimeout(()=>{a.current?.scrollIntoView({behavior:"smooth",block:"center"})},100);const y=setTimeout(()=>f(!1),3e3);return()=>clearTimeout(y)}},[t]),x.jsxs("div",{"data-loc":"client/src/components/SignaturePad.tsx:50",className:"space-y-4",children:[x.jsxs(Jr,{"data-loc":"client/src/components/SignaturePad.tsx:51",className:"p-4 bg-card",children:[x.jsx("div",{"data-loc":"client/src/components/SignaturePad.tsx:52",className:"mb-2",children:x.jsx("p",{"data-loc":"client/src/components/SignaturePad.tsx:53",className:"text-sm text-muted-foreground",children:"Draw your signature below using your finger or stylus"})}),x.jsx("div",{"data-loc":"client/src/components/SignaturePad.tsx:58",className:"border-2 border-dashed border-border rounded-lg bg-background overflow-hidden",children:x.jsx(cg,{"data-loc":"client/src/components/SignaturePad.tsx:59",ref:r,canvasProps:{className:"w-full h-40 touch-none",style:{touchAction:"none",backgroundColor:"white"}},backgroundColor:"white",penColor:"#1a1a2e",onBegin:m})}),x.jsxs("div",{"data-loc":"client/src/components/SignaturePad.tsx:71",className:"flex gap-2 mt-4",children:[x.jsxs(Bn,{"data-loc":"client/src/components/SignaturePad.tsx:72",type:"button",variant:"outline",onClick:d,disabled:o||n,className:"flex-1",children:[x.jsx(Sj,{"data-loc":"client/src/components/SignaturePad.tsx:79",className:"h-4 w-4 mr-2"}),"Clear"]}),x.jsxs(Bn,{"data-loc":"client/src/components/SignaturePad.tsx:82",type:"button",onClick:h,disabled:o||n,className:"flex-1",children:[n?x.jsx(ya,{"data-loc":"client/src/components/SignaturePad.tsx:89",className:"h-4 w-4 mr-2 animate-spin"}):x.jsx(dm,{"data-loc":"client/src/components/SignaturePad.tsx:91",className:"h-4 w-4 mr-2"}),n?"Saving...":"Save Signature"]})]})]}),t&&x.jsxs("div",{"data-loc":"client/src/components/SignaturePad.tsx:99",ref:a,className:`mt-4 transition-all duration-500 ${c?"ring-2 ring-primary ring-offset-2 rounded-lg":""}`,children:[x.jsxs("div",{"data-loc":"client/src/components/SignaturePad.tsx:107",className:"flex items-center gap-2 mb-2",children:[x.jsx(dm,{"data-loc":"client/src/components/SignaturePad.tsx:108",className:"h-4 w-4 text-primary"}),x.jsx("p",{"data-loc":"client/src/components/SignaturePad.tsx:109",className:"text-sm font-medium text-primary",children:"Signature saved successfully"})]}),x.jsx("div",{"data-loc":"client/src/components/SignaturePad.tsx:111",className:"border border-border rounded-lg p-4 bg-card",children:x.jsx("img",{"data-loc":"client/src/components/SignaturePad.tsx:112",src:t,alt:"Saved signature",className:"max-h-32 mx-auto"})})]})]})}var ug="Tabs",[fM]=zi(ug,[Xm]),vA=Xm(),[dM,w2]=fM(ug),yA=F.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:l="horizontal",dir:c,activationMode:f="automatic",...d}=e,h=$m(c),[m,y]=iu({prop:r,onChange:a,defaultProp:o??"",caller:ug});return x.jsx(dM,{scope:n,baseId:Xs(),value:m,onValueChange:y,orientation:l,dir:h,activationMode:f,children:x.jsx(Yt.div,{dir:h,"data-orientation":l,...d,ref:t})})});yA.displayName=ug;var bA="TabsList",xA=F.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,o=w2(bA,n),l=vA(n);return x.jsx(SS,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:r,children:x.jsx(Yt.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})});xA.displayName=bA;var wA="TabsTrigger",SA=F.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,l=w2(wA,n),c=vA(n),f=_A(l.baseId,r),d=CA(l.baseId,r),h=r===l.value;return x.jsx(AS,{asChild:!0,...c,focusable:!a,active:h,children:x.jsx(Yt.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":d,"data-state":h?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:f,...o,ref:t,onMouseDown:Xt(e.onMouseDown,m=>{!a&&m.button===0&&m.ctrlKey===!1?l.onValueChange(r):m.preventDefault()}),onKeyDown:Xt(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&l.onValueChange(r)}),onFocus:Xt(e.onFocus,()=>{const m=l.activationMode!=="manual";!h&&!a&&m&&l.onValueChange(r)})})})});SA.displayName=wA;var AA="TabsContent",NA=F.forwardRef((e,t)=>
336{const{__scopeTabs:n,value:r,forceMount:a,children:o,...l}=e,c=w2(AA,n),f=_A(c.baseId,r),d=CA(c.baseId,r),h=r===c.value,m=F.useRef(h);return F.useEffect(()=>{const y=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(y)},[]),x.jsx(fl,{present:a||h,children:({present:y})=>x.jsx(Yt.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!y,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:y&&o})})});NA.displayName=AA;function _A(e,t){return`${e}-trigger-${t}`}function CA(e,t){return`${e}-content-${t}`}var hM=yA,pM=xA,mM=SA,gM=NA;function vM({className:e,...t}){return x.jsx(hM,{"data-loc":"client/src/components/ui/tabs.tsx:11","data-slot":"tabs",className:Yn("flex flex-col gap-2",e),...t})}function yM({className:e,...t}){return x.jsx(pM,{"data-loc":"client/src/components/ui/tabs.tsx:24","data-slot":"tabs-list",className:Yn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function yx({className:e,...t}){return x.jsx(mM,{"data-loc":"client/src/components/ui/tabs.tsx:40","data-slot":"tabs-trigger",className:Yn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function bx({className:e,...t}){return x.jsx(gM,{"data-loc":"client/src/components/ui/tabs.tsx:56","data-slot":"tabs-content",className:Yn("flex-1 outline-none",e),...t})}const xx=[{value:"0-2",label:"0-2: Localized repair may be feasible depending on the overall conditions present and the availability of suitable and compatible materials."},{value:"2-4",label:"2-4: Repairability is limited but may be feasible on a case by case situation depending on the availability of suitable and compatible materials"},{value:"4+",label:"4 or More: Repairability is limited and localized repair is not recommended."}];function bM({data:e,onChange:t}){const n=Ir.assessment.uploadImage.useMutation(),r=e.deteriorationScore+e.installationErrorsScore+e.previousRepairsScore+e.manufacturingDefectsScore+e.materialObsolescenceScore+e.visualIncompatibilityScore+e.shingles.filter(o=>o.damaged).length,a=()=>e.finalDetermination?e.finalDetermination.startsWith("0-2:")?"0-2":e.finalDetermination.startsWith("2-4:")?"2-4":e.finalDetermination.startsWith("4 or More:")||e.finalDetermination.startsWith("4+:")?"4+":"":"";return x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:57",className:"space-y-6",children:[x.jsxs(Jr,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:58",className:"p-4 bg-primary/10",children:[x.jsx("h3",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:59",className:"font-semibold mb-2",children:"Recommended Structure for Final Notes:"}),x.jsxs("ol",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:60",className:"list-decimal list-inside space-y-1 text-sm text-muted-foreground",children:[x.jsx("li",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:61",children:"Describe what happened during the assessment"}),x.jsx("li",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:62",children:"Describe what would happen if repairs were made (based on what happened)"}),x.jsx("li",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:63",children:"Final Recommendations"})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:67",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:68",htmlFor:"finalNotes",children:["Final Notes ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:69",className:"text-destructive",children:"*"})]}),x.jsx(Y6,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:71",id:"finalNotes",value:e.finalNotes,onChange:o=>t({finalNotes:o.target.value}),placeholder:"Enter your detailed final notes following the recommended structure above...",rows:8,required:!0})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:82",className:"space-y-3",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:83",children:["Final Determination ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:84",className:"text-destructive",children:"*"})]}),x.jsxs("p",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:86",className:"text-sm text-muted-foreground",children:["Total Repairability Assessment Score: ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:87",className:"font-bold text-primary",children:r})]}),x.jsx(uv,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:89",value:a(),onValueChange:o=>{const l=xx.find(c=>c.value===o);l&&t({finalDetermination:l.label})},children:xx.map(o=>x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:99",className:"flex items-start space-x-3 py-2 px-3 rounded-lg border hover:bg-muted/50 transition-colors",children:[x.jsx(Jd,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:100",value:o.value,id:`determination-${o.value}`,className:"min-h-[20px] min-w-[20px] mt-0.5"}),x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:105",htmlFor:`determination-${o.value}`,className:"font-normal cursor-pointer text-sm leading-relaxed",children:o.label})]},o.value))})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:116",className:"space-y-3",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:117",children:["Are you a BEI Certified Repairability Assessor? ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:118",className:"text-destructive",children:"*"})]}),x.jsxs(uv,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:120",value:e.isCertified===void 0?"":e.isCertified?"yes":"no",onValueChange:o=>t({isCertified:o==="yes"}),children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:124",className:"flex items-center space-x-3 py-1",children:[x.jsx(Jd,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:125",value:"yes",id:"certified-yes",className:"min-h-[20px] min-w-[20px]"}),x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:126",htmlFor:"certified-yes",className:"font-normal cursor-pointer text-base",children:"Yes"})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:130",className:"flex items-center space-x-3 py-1",children:[x.jsx(Jd,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:131",value:"no",id:"certified-no",className:"min-h-[20px] min-w-[20px]"}),x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:132",htmlFor:"certified-no",className:"font-normal cursor-pointer text-base",children:"No"})]})]})]}),e.isCertified&&x.jsx(x.Fragment,{children:x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:141",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:142",className:"space-y-2",children:[x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:143",htmlFor:"certificationNumber",children:"Certification Number"}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:144",id:"certificationNumber",value:e.certificationNumber||"",onChange:o=>t({certificationNumber:o.target.value}),placeholder:"Enter certification number"})]}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:152",className:"space-y-2",children:[x.jsx(Vt,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:153",htmlFor:"certificationDate",children:"Certification Date"}),x.jsx(lr,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:154",id:"certificationDate",type:"date",value:e.certificationDate||"",onChange:o=>t({certificationDate:o.target.value})})]})]})}),x.jsx(xm,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:165",label:"Assessor/Company Logo",value:e.assessorLogoUrl,onChange:o=>t({assessorLogoUrl:o}),required:!1}),x.jsxs("div",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:172",className:"space-y-2",children:[x.jsxs(Vt,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:173",children:["Assessor Signature ",x.jsx("span",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:174",className:"text-destructive",children:"*"})]}),x.jsxs(vM,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:176",defaultValue:"draw",className:"w-full",children:[x.jsxs(yM,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:177",className:"grid w-full grid-cols-2",children:[x.jsx(yx,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:178",value:"draw",children:"Draw Signature"}),x.jsx(yx,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:179",value:"upload",children:"Upload Image"})]}),x.jsx(bx,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:181",value:"draw",className:"mt-4",children:x.jsx(uM,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:182",onSave:async o=>{try{const l=await n.mutateAsync({base64Data:o,filename:`signature_${Date.now()}.png`,contentType:"image/png"});t({assessorSignatureUrl:l.url})}catch(l){console.error("Error saving signature:",l),yn.error("Failed to save signature. Please try again.")}},existingSignature:e.assessorSignatureUrl,isSaving:n.isPending})}),x.jsx(bx,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:202",value:"upload",className:"mt-4",children:x.jsx(xm,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:203",label:"",value:e.assessorSignatureUrl,onChange:o=>t({assessorSignatureUrl:o}),required:!1})})]})]}),x.jsx(Jr,{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:213",className:"p-4 bg-muted/50",children:x.jsxs("p",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:214",className:"text-sm text-muted-foreground",children:[x.jsx("strong",{"data-loc":"client/src/pages/assessment-steps/Step7FinalNotes.tsx:215",children:"Note:"}),' Once you click "Generate PDF", your assessment report will be created instantly and available for download.']})})]})}const xM="modulepreload",wM=function(e){return"/"+e},wx={}
vendor: 4,567 bytes, line 336
336,s1=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let f=function(d){return Promise.all(d.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");a=f(n.map(d=>{if(d=wM(d),d in wx)return;wx[d]=!0;const h=d.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const y=document.createElement("link");if(y.rel=h?"stylesheet":xM,h||(y.as="script"),y.crossOrigin="",y.href=d,c&&y.setAttribute("nonce",c),document.head.appendChild(y),h)return new Promise((g,N)=>{y.addEventListener("load",g),y.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return a.then(l=>{for(const c of l||[])c.status==="rejected"&&o(c.reason);return t().catch(o)})};var Ui=Uint8Array,Ua=Uint16Array,S2=Int32Array,A2=new Ui([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]),N2=new Ui([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]),Sx=new Ui([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),EA=function(e,t){for(var n=new Ua(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var a=new S2(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)a[o]=o-n[r]<<5|r;return{b:n,r:a}},PA=EA(A2,2),SM=PA.b,wv=PA.r;SM[28]=258,wv[258]=28;var AM=EA(N2,0),Ax=AM.r,Sv=new Ua(32768);for(var mr=0;mr<32768;++mr){var Yl=(mr&43690)>>1|(mr&21845)<<1;Yl=(Yl&52428)>>2|(Yl&13107)<<2,Yl=(Yl&61680)>>4|(Yl&3855)<<4,Sv[mr]=((Yl&65280)>>8|(Yl&255)<<8)>>1}var eh=(function(e,t,n){for(var r=e.length,a=0,o=new Ua(t);a<r;++a)e[a]&&++o[e[a]-1];var l=new Ua(t);for(a=1;a<t;++a)l[a]=l[a-1]+o[a-1]<<1;var c;if(n){c=new Ua(1<<t);var f=15-t;for(a=0;a<r;++a)if(e[a])for(var d=a<<4|e[a],h=t-e[a],m=l[e[a]-1]++<<h,y=m|(1<<h)-1;m<=y;++m)c[Sv[m]>>f]=d}else for(c=new Ua(r),a=0;a<r;++a)e[a]&&(c[a]=Sv[l[e[a]-1]++]>>15-e[a]);return c}),du=new Ui(288);for(var mr=0;mr<144;++mr)du[mr]=8;for(var mr=144;mr<256;++mr)du[mr]=9;for(var mr=256;mr<280;++mr)du[mr]=7;for(var mr=280;mr<288;++mr)du[mr]=8;var Am=new Ui(32);for(var mr=0;mr<32;++mr)Am[mr]=5;var NM=eh(du,9,0),_M=eh(Am,5,0),TA=function(e){return(e+7)/8|0},CM=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new Ui(e.subarray(t,n))},tl=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Id=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},a1=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var a=n.length,o=n.slice();if(!a)return{t:OA,l:0};if(a==1){var l=new Ui(n[0].s+1);return l[n[0].s]=1,{t:l,l:1}}n.sort(function(K,U){return K.f-U.f}),n.push({s:-1,f:25001});var c=n[0],f=n[1],d=0,h=1,m=2;for(n[0]={s:-1,f:c.f+f.f,l:c,r:f};h!=a-1;)c=n[n[d].f<n[m].f?d++:m++],f=n[d!=h&&n[d].f<n[m].f?d++:m++],n[h++]={s:-1,f:c.f+f.f,l:c,r:f};for(var y=o[0].s,r=1;r<a;++r)o[r].s>y&&(y=o[r].s);var g=new Ua(y+1),N=Av(n[h-1],g,0);if(N>t){var r=0,w=0,E=N-t,_=1<<E;for(o.sort(function(U,G){return g[G.s]-g[U.s]||U.f-G.f});r<a;++r){var z=o[r].s;if(g[z]>t)w+=_-(1<<N-g[z]),g[z]=t;else break}for(w>>=E;w>0;){var H=o[r].s;g[H]<t?w-=1<<t-g[H]++-1:++r}for(;r>=0&&w;--r){var k=o[r].s;g[k]==t&&(--g[k],++w)}N=t}return{t:new Ui(g),l:N}},Av=function(e,t,n){return e.s==-1?Math.max(Av(e.l,t,n+1),Av(e.r,t,n+1)):t[e.s]=n},Nx=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Ua(++t),r=0,a=e[0],o=1,l=function(f){n[r++]=f},c=1;c<=t;++c)if(e[c]==a&&c!=t)++o;else{if(!a&&o>2){for(;o>138;o-=138)l(32754);o>2&&(l(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(l(a),--o;o>6;o-=6)l(8304);o>2&&(l(o-3<<5|8208),o=0)}for(;o--;)l(a);o=1,a=e[c]}return{c:n.subarray(0,r),n:t}},Ud=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},jA=function(e,t,n){var r=n.length,a=TA(t+2);e[a]=r&255,e[a+1]=r>>8,e[a+2]=e[a]^255,e[a+3]=e[a+1]^255;for(var o=0;o<r;++o)e[a+o+4]=n[o];return(a+4+r)*8},_x=function(e,t,n,r,a,o,l,c,f,d,h){tl(t,h++,n),++a[256];for(var m=a1(a,15),y=m.t,g=m.l,N=a1(o,15),w=N.t,E=N.l,_=Nx(y),z=_.c,H=_.n,k=Nx(w),K=k.c,U=k.n,G=new Ua(19),O=0;O<z.length;++O)++G[z[O]&31];for(var O=0;O<K.length;++O)++G[K[O]&31];for(var R=a1(G,7),Q=R.t,j=R.l,D=19;D>4&&!Q[Sx[D-1]];--D);var $=d+5<<3,W=Ud(a,du)+Ud(o,Am)+l,te=Ud(a,y)+Ud(o,w)+l+14+3*D+Ud(G,Q)+2*G[16]+3*G[17]+7*G[18];if(f>=0&&$<=W&&$<=te)return jA(t,h,e.subarray(f,f+d));var L,M,X,se;if(tl(t,h,1+(te<W)),h+=2,te<W){L=eh(y,g,0),M=y,X=eh(w,E,0),se=w;
vendor: 9,867 bytes, lines 336-337
336var pe=eh(Q,j,0);tl(t,h,H-257),tl(t,h+5,U-1),tl(t,h+10,D-4),h+=14;for(var O=0;O<D;++O)tl(t,h+3*O,Q[Sx[O]]);h+=3*D;for(var ee=[z,K],P=0;P<2;++P)for(var B=ee[P],O=0;O<B.length;++O){var V=B[O]&31;tl(t,h,pe[V]),h+=Q[V],V>15&&(tl(t,h,B[O]>>5&127),h+=B[O]>>12)}}else L=NM,M=du,X=_M,se=Am;for(var O=0;O<c;++O){var Y=r[O];if(Y>255){var V=Y>>18&31;Id(t,h,L[V+257]),h+=M[V+257],V>7&&(tl(t,h,Y>>23&31),h+=A2[V]);var oe=Y&31;Id(t,h,X[oe]),h+=se[oe],oe>3&&(Id(t,h,Y>>5&8191),h+=N2[oe])}else Id(t,h,L[Y]),h+=M[Y]}return Id(t,h,L[256]),h+M[256]},EM=new S2([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),OA=new Ui(0),PM=function(e,t,n,r,a,o){var l=o.z||e.length,c=new Ui(r+l+5*(1+Math.ceil(l/7e3))+a),f=c.subarray(r,c.length-a),d=o.l,h=(o.r||0)&7;if(t){h&&(f[0]=o.r>>3);for(var m=EM[t-1],y=m>>13,g=m&8191,N=(1<<n)-1,w=o.p||new Ua(32768),E=o.h||new Ua(N+1),_=Math.ceil(n/3),z=2*_,H=function(Je){return(e[Je]^e[Je+1]<<_^e[Je+2]<<z)&N},k=new S2(25e3),K=new Ua(288),U=new Ua(32),G=0,O=0,R=o.i||0,Q=0,j=o.w||0,D=0;R+2<l;++R){var $=H(R),W=R&32767,te=E[$];if(w[W]=te,E[$]=W,j<=R){var L=l-R;if((G>7e3||Q>24576)&&(L>423||!d)){h=_x(e,f,0,k,K,U,O,Q,D,R-D,h),Q=G=O=0,D=R;for(var M=0;M<286;++M)K[M]=0;for(var M=0;M<30;++M)U[M]=0}var X=2,se=0,pe=g,ee=W-te&32767;if(L>2&&$==H(R-ee))for(var P=Math.min(y,L)-1,B=Math.min(32767,R),V=Math.min(258,L);ee<=B&&--pe&&W!=te;){if(e[R+X]==e[R+X-ee]){for(var Y=0;Y<V&&e[R+Y]==e[R+Y-ee];++Y);if(Y>X){if(X=Y,se=ee,Y>P)break;for(var oe=Math.min(ee,Y-2),le=0,M=0;M<oe;++M){var me=R-ee+M&32767,ge=w[me],Ae=me-ge&32767;Ae>le&&(le=Ae,te=me)}}}W=te,te=w[W],ee+=W-te&32767}if(se){k[Q++]=268435456|wv[X]<<18|Ax[se];var Oe=wv[X]&31,Fe=Ax[se]&31;O+=A2[Oe]+N2[Fe],++K[257+Oe],++U[Fe],j=R+X,++G}else k[Q++]=e[R],++K[e[R]]}}for(R=Math.max(R,j);R<l;++R)k[Q++]=e[R],++K[e[R]];h=_x(e,f,d,k,K,U,O,Q,D,R-D,h),d||(o.r=h&7|f[h/8|0]<<3,h-=7,o.h=E,o.p=w,o.i=R,o.w=j)}else{for(var R=o.w||0;R<l+d;R+=65535){var Qe=R+65535;Qe>=l&&(f[h/8|0]=d,Qe=l),h=jA(f,h+1,e.subarray(R,Qe))}o.i=l}return CM(c,0,r+TA(h)+a)},LA=function(){var e=1,t=0;return{p:function(n){for(var r=e,a=t,o=n.length|0,l=0;l!=o;){for(var c=Math.min(l+2655,o);l<c;++l)a+=r+=n[l];r=(r&65535)+15*(r>>16),a=(a&65535)+15*(a>>16)}e=r,t=a},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},TM=function(e,t,n,r,a){if(!a&&(a={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),l=new Ui(o.length+e.length);l.set(o),l.set(e,o.length),e=l,a.w=o.length}return PM(e,t.level==null?6:t.level,t.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,a)},RA=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},jM=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 a=LA();a.p(t.dictionary),RA(e,2,a.d())}};function Nv(e,t){t||(t={});var n=LA();n.p(e);var r=TM(e,t,t.dictionary?6:2,4);return jM(r,t),RA(r,r.length-4,n.d()),r}var OM=typeof TextDecoder<"u"&&new TextDecoder,LM=0;try{OM.decode(OA,{stream:!0}),LM=1}catch{}function RM(e){if(Array.isArray(e))return e}function DM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(h){d=!0,a=h}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Cx(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 MM(e,t){if(e){if(typeof e=="string")return Cx(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)?Cx(e,t):void 0}}function kM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 337In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ex(e,t){return RM(e)||DM(e,t)||MM(e,t)||kM()}function Px(e,t="utf8"){return new TextDecoder(t).decode(e)}const FM=new TextEncoder;function IM(e){return FM.encode(e)}const UM=1024*8,BM=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),i1={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 _2{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=UM,n={}){let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const a=n.offset?n.offset>>>0:0,o=t.byteLength-a;let l=a;(ArrayBuffer.isView(t)||t instanceof _2)&&(t.byteLength!==t.buffer.byteLength&&(l=t.byteOffset+a),t=t.buffer),r?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=t,this.length=o,this.byteLength=o,this.byteOffset=l,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,l,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,a=new Uint8Array(r);a.set(new Uint8Array(this.buffer)),this.buffer=a.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=i1[n].BYTES_PER_ELEMENT*t,a=this.byteOffset+this.offset,o=this.buffer.slice(a,a+r);if(this.littleEndian===BM&&n!=="uint8"&&n!=="int8"){const c=new Uint8Array(this.buffer.slice(a,a+r));c.reverse();const f=new i1[n](c.buffer);return this.offset+=r,f.reverse(),f}const l=new i1[n](o);return this.offset+=r,l}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 Px(this.readBytes(t))}decodeText(t=1,n="utf8"){return Px(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(IM(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function Kf(e){let t=e.length;for(;--t>=0;)e[t]=0}const zM=3,HM=258,DA=29,qM=256,GM=qM+1+DA,MA=30,WM=512,VM=new Array((GM+2)*2);Kf(VM);const YM=new Array(MA*2);Kf(YM);const QM=new Array(WM);
vendor: 14,809 bytes, line 337
337Kf(QM);const $M=new Array(HM-zM+1);Kf($M);const XM=new Array(DA);Kf(XM);const KM=new Array(MA);Kf(KM);const ZM=(e,t,n,r)=>{let a=e&65535|0,o=e>>>16&65535|0,l=0;for(;n!==0;){l=n>2e3?2e3:n,n-=l;do a=a+t[r++]|0,o=o+a|0;while(--l);a%=65521,o%=65521}return a|o<<16|0};var _v=ZM;const JM=()=>{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},ek=new Uint32Array(JM()),tk=(e,t,n,r)=>{const a=ek,o=r+n;e^=-1;for(let l=r;l<o;l++)e=e>>>8^a[(e^t[l])&255];return e^-1};var ho=tk,Cv={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"},kA={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const nk=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var rk=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)nk(n,r)&&(e[r]=n[r])}}return e},sk=e=>{let t=0;for(let r=0,a=e.length;r<a;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,a=0,o=e.length;r<o;r++){let l=e[r];n.set(l,a),a+=l.length}return n},FA={assign:rk,flattenChunks:sk};let IA=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{IA=!1}const uh=new Uint8Array(256);for(let e=0;e<256;e++)uh[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;uh[254]=uh[254]=1;var ak=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,a,o,l=e.length,c=0;for(a=0;a<l;a++)n=e.charCodeAt(a),(n&64512)===55296&&a+1<l&&(r=e.charCodeAt(a+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),a++)),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(c),o=0,a=0;o<c;a++)n=e.charCodeAt(a),(n&64512)===55296&&a+1<l&&(r=e.charCodeAt(a+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),a++)),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 ik=(e,t)=>{if(t<65534&&e.subarray&&IA)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 ok=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,a;const o=new Array(n*2);for(a=0,r=0;r<n;){let l=e[r++];if(l<128){o[a++]=l;continue}let c=uh[l];if(c>4){o[a++]=65533,r+=c-1;continue}for(l&=c===2?31:c===3?15:7;c>1&&r<n;)l=l<<6|e[r++]&63,c--;if(c>1){o[a++]=65533;continue}l<65536?o[a++]=l:(l-=65536,o[a++]=55296|l>>10&1023,o[a++]=56320|l&1023)}return ik(o,a)},lk=(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+uh[e[n]]>t?n:t},Ev={string2buf:ak,buf2string:ok,utf8border:lk};function ck(){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 uk=ck;const Dp=16209,fk=16191;var dk=function(t,n){let r,a,o,l,c,f,d,h,m,y,g,N,w,E,_,z,H,k,K,U,G,O,R,Q;const j=t.state;r=t.next_in,R=t.input,a=r+(t.avail_in-5),o=t.next_out,Q=t.output,l=o-(n-t.avail_out),c=o+(t.avail_out-257),f=j.dmax,d=j.wsize,h=j.whave,m=j.wnext,y=j.window,g=j.hold,N=j.bits,w=j.lencode,E=j.distcode,_=(1<<j.lenbits)-1,z=(1<<j.distbits)-1;e:do{N<15&&(g+=R[r++]<<N,N+=8,g+=R[r++]<<N,N+=8),H=w[g&_];t:for(;;){if(k=H>>>24,g>>>=k,N-=k,k=H>>>16&255,k===0)Q[o++]=H&65535;else if(k&16){K=H&65535,k&=15,k&&(N<k&&(g+=R[r++]<<N,N+=8),K+=g&(1<<k)-1,g>>>=k,N-=k),N<15&&(g+=R[r++]<<N,N+=8,g+=R[r++]<<N,N+=8),H=E[g&z];n:for(;;){if(k=H>>>24,g>>>=k,N-=k,k=H>>>16&255,k&16){if(U=H&65535,k&=15,N<k&&(g+=R[r++]<<N,N+=8,N<k&&(g+=R[r++]<<N,N+=8)),U+=g&(1<<k)-1,U>f){t.msg="invalid distance too far back",j.mode=Dp;break e}if(g>>>=k,N-=k,k=o-l,U>k){if(k=U-k,k>h&&j.sane){t.msg="invalid distance too far back",j.mode=Dp;break e}if(G=0,O=y,m===0){if(G+=d-k,k<K){K-=k;do Q[o++]=y[G++];while(--k);G=o-U,O=Q}}else if(m<k){if(G+=d+m-k,k-=m,k<K){K-=k;do Q[o++]=y[G++];while(--k);if(G=0,m<K){k=m,K-=k;do Q[o++]=y[G++];while(--k);G=o-U,O=Q}}}else if(G+=m-k,k<K){K-=k;do Q[o++]=y[G++];while(--k);G=o-U,O=Q}for(;K>2;)Q[o++]=O[G++],Q[o++]=O[G++],Q[o++]=O[G++],K-=3;K&&(Q[o++]=O[G++],K>1&&(Q[o++]=O[G++]))}else{G=o-U;do Q[o++]=Q[G++],Q[o++]=Q[G++],Q[o++]=Q[G++],K-=3;while(K>2);K&&(Q[o++]=Q[G++],K>1&&(Q[o++]=Q[G++]))}}else if((k&64)===0){H=E[(H&65535)+(g&(1<<k)-1)];continue n}else{t.msg="invalid distance code",j.mode=Dp;break e}break}}else if((k&64)===0){H=w[(H&65535)+(g&(1<<k)-1)];continue t}else if(k&32){j.mode=fk;break e}else{t.msg="invalid literal/length code",j.mode=Dp;break e}break}}while(r<a&&o<c);K=N>>3,r-=K,N-=K<<3,g&=(1<<N)-1,t.next_in=r,t.next_out=o,t.avail_in=r<a?5+(a-r):5-(r-a),t.avail_out=o<c?257+(c-o):257-(o-c),j.hold=g,j.bits=N};const vf=15,Tx=852,jx=592,Ox=0,o1=1,Lx=2,hk=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]),pk=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]),mk=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]),gk=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]),vk=(e,t,n,r,a,o,l,c)=>{const f=c.bits;let d=0,h=0,m=0,y=0,g=0,N=0,w=0,E=0,_=0,z=0,H,k,K,U,G,O=null,R;const Q=new Uint16Array(vf+1),j=new Uint16Array(vf+1);let D=null,$,W,te;for(d=0;d<=vf;d++)Q[d]=0;for(h=0;h<r;h++)Q[t[n+h]]++;for(g=f,y=vf;y>=1&&Q[y]===0;y--);if(g>y&&(g=y),y===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,c.bits=1,0;for(m=1;m<y&&Q[m]===0;m++);for(g<m&&(g=m),E=1,d=1;d<=vf;d++)if(E<<=1,E-=Q[d],E<0)return-1;if(E>0&&(e===Ox||y!==1))return-1;for(j[1]=0,d=1;d<vf;d++)j[d+1]=j[d]+Q[d];for(h=0;h<r;h++)t[n+h]!==0&&(l[j[t[n+h]]++]=h);if(e===Ox?(O=D=l,R=20):e===o1?(O=hk,D=pk,R=257):(O=mk,D=gk,R=0),z=0,h=0,d=m,G=o,N=g,w=0,K=-1,_=1<<g,U=_-1,e===o1&&_>Tx||e===Lx&&_>jx)return 1;for(;;){$=d-w,l[h]+1<R?(W=0,te=l[h]):l[h]>=R?(W=D[l[h]-R],te=O[l[h]-R]):(W=96,te=0),H=1<<d-w,k=1<<N,m=k;do k-=H,a[G+(z>>w)+k]=$<<24|W<<16|te|0;while(k!==0);for(H=1<<d-1;z&H;)H>>=1;if(H!==0?(z&=H-1,z+=H):z=0,h++,--Q[d]===0){if(d===y)break;d=t[n+l[h]]}if(d>g&&(z&U)!==K){for(w===0&&(w=g),G+=m,N=d-w,E=1<<N;N+w<y&&(E-=Q[N+w],!(E<=0));)N++,E<<=1;if(_+=1<<N,e===o1&&_>Tx||e===Lx&&_>jx)return 1;K=z&U,a[K]=g<<24|N<<16|G-o|0}}return z!==0&&(a[G+z]=d-w<<24|64<<16|0),c.bits=g,0};var th=vk;const yk=0,UA=1,BA=2,{Z_FINISH:Rx,Z_BLOCK:bk,Z_TREES:Mp,Z_OK:hu,Z_STREAM_END:xk,Z_NEED_DICT:wk,Z_STREAM_ERROR:ii,Z_DATA_ERROR:zA,Z_MEM_ERROR:HA,Z_BUF_ERROR:Sk,Z_DEFLATED:Dx}=kA,fg=16180,Mx=16181,kx=16182,Fx=16183,Ix=16184,Ux=16185,Bx=16186,zx=16187,Hx=16188,qx=16189,Nm=16190,nl=16191,l1=16192,Gx=16193,c1=16194,Wx=16195,Vx=16196,Yx=16197,Qx=16198,kp=16199,Fp=16200,$x=16201,Xx=16202,Kx=16203,Zx=16204,Jx=16205,u1=16206,ew=16207,tw=16208,xr=16209,qA=16210,GA=16211,Ak=852,Nk=592,_k=15,Ck=_k,nw=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Ek(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const vu=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<fg||t.mode>GA?1:0},WA=e=>{if(vu(e))return ii;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=fg,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(Ak),t.distcode=t.distdyn=new Int32Array(Nk),t.sane=1,t.back=-1,hu},VA=e=>{if(vu(e))return ii;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,WA(e)},YA=(e,t)=>{let n;if(vu(e))return ii;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?ii:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,VA(e))},QA=(e,t)=>{if(!e)return ii;const n=new Ek;e.state=n,n.strm=e,n.window=null,n.mode=fg;const r=YA(e,t);return r!==hu&&(e.state=null),r},Pk=e=>QA(e,Ck);let rw=!0,f1,d1;const Tk=e=>{if(rw){f1=new Int32Array(512),d1=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(th(UA,e.lens,0,288,f1,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;th(BA,e.lens,0,32,d1,0,e.work,{bits:5}),rw=!1}e.lencode=f1,e.lenbits=9,e.distcode=d1,e.distbits=5},$A=(e,t,n,r)=>{let a;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):(a=o.wsize-o.wnext,a>r&&(a=r),o.window.set(t.subarray(n-r,n-r+a),o.wnext),r-=a,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0},jk=(e,t)=>{let n,r,a,o,l,c,f,d,h,m,y,g,N,w,E=0,_,z,H,k,K,U,G,O;const R=new Uint8Array(4);let Q,j;const D=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(vu(e)||!e.output||!e.input&&e.avail_in!==0)return ii;n=e.state,n.mode===nl&&(n.mode=l1),l=e.next_out,a=e.output,f=e.avail_out,o=e.next_in,r=e.input,c=e.avail_in,d=n.hold,h=n.bits,m=c,y=f,O=hu;e:for(;;)switch(n.mode){case fg:if(n.wrap===0){n.mode=l1;break}for(;h<16;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}if(n.wrap&2&&d===35615){n.wbits===0&&(n.wbits=15),n.check=0,R[0]=d&255,R[1]=d>>>8&255,n.check=ho(n.check,R,2,0),d=0,h=0,n.mode=Mx;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((d&255)<<8)+(d>>8))%31){e.msg="incorrect header check",n.mode=xr;break}if((d&15)!==Dx){e.msg="unknown compression method",n.mode=xr;break}if(d>>>=4,h-=4,G=(d&15)+8,n.wbits===0&&(n.wbits=G),G>15||G>n.wbits){e.msg="invalid window size",n.mode=xr;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=d&512?qx:nl,d=0,h=0;break;case Mx:for(;h<16;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}if(n.flags=d,(n.flags&255)!==Dx){e.msg="unknown compression method",n.mode=xr;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=xr;break}n.head&&(n.head.text=d>>8&1),n.flags&512&&n.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,n.check=ho(n.check,R,2,0)),d=0,h=0,n.mode=kx;case kx:for(;h<32;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}n.head&&(n.head.time=d),n.flags&512&&n.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,R[2]=d>>>16&255,R[3]=d>>>24&255,n.check=ho(n.check,R,4,0)),d=0,h=0,n.mode=Fx;case Fx:for(;h<16;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}n.head&&(n.head.xflags=d&255,n.head.os=d>>8),n.flags&512&&n.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,n.check=ho(n.check,R,2,0)),d=0,h=0,n.mode=Ix;case Ix:if(n.flags&1024){for(;h<16;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}n.length=d,n.head&&(n.head.extra_len=d),n.flags&512&&n.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,n.check=ho(n.check,R,2,0)),d=0,h=0}else n.head&&(n.head.extra=null);n.mode=Ux;case Ux:if(n.flags&1024&&(g=n.length,g>c&&(g=c),g&&(n.head&&(G=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+g),G)),n.flags&512&&n.wrap&4&&(n.check=ho(n.check,r,g,o)),c-=g,o+=g,n.length-=g),n.length))break e;n.length=0,n.mode=Bx;case Bx:if(n.flags&2048){if(c===0)break e;g=0;do G=r[o+g++],n.head&&G&&n.length<65536&&(n.head.name+=String.fromCharCode(G));while(G&&g<c);if(n.flags&512&&n.wrap&4&&(n.check=ho(n.check,r,g,o)),c-=g,o+=g,G)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=zx;case zx:if(n.flags&4096){if(c===0)break e;g=0;do G=r[o+g++],n.head&&G&&n.length<65536&&(n.head.comment+=String.fromCharCode(G));while(G&&g<c);if(n.flags&512&&n.wrap&4&&(n.check=ho(n.check,r,g,o)),c-=g,o+=g,G)break e}else n.head&&(n.head.comment=null);n.mode=Hx;case Hx:if(n.flags&512){for(;h<16;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}if(n.wrap&4&&d!==(n.check&65535)){e.msg="header crc mismatch",n.mode=xr;break}d=0,h=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=nl;break;case qx:for(;h<32;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}e.adler=n.check=nw(d),d=0,h=0,n.mode=Nm;case Nm:if(n.havedict===0)return e.next_out=l,e.avail_out=f,e.next_in=o,e.avail_in=c,n.hold=d,n.bits=h,wk;e.adler=n.check=1,n.mode=nl;case nl:if(t===bk||t===Mp)break e;case l1:if(n.last){d>>>=h&7,h-=h&7,n.mode=u1;break}for(;h<3;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}switch(n.last=d&1,d>>>=1,h-=1,d&3){case 0:n.mode=Gx;break;case 1:if(Tk(n),n.mode=kp,t===Mp){d>>>=2,h-=2;break e}break;case 2:n.mode=Vx;break;case 3:e.msg="invalid block type",n.mode=xr}d>>>=2,h-=2;break;case Gx:for(d>>>=h&7,h-=h&7;h<32;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}if((d&65535)!==(d>>>16^65535)){e.msg="invalid stored block lengths",n.mode=xr;break}if(n.length=d&65535,d=0,h=0,n.mode=c1,t===Mp)break e;case c1:n.mode=Wx;case Wx:if(g=n.length,g){if(g>c&&(g=c),g>f&&(g=f),g===0)break e;a.set(r.subarray(o,o+g),l),c-=g,o+=g,f-=g,l+=g,n.length-=g;break}n.mode=nl;break;case Vx:for(;h<14;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}if(n.nlen=(d&31)+257,d>>>=5,h-=5,n.ndist=(d&31)+1,d>>>=5,h-=5,n.ncode=(d&15)+4,d>>>=4,h-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=xr;break}n.have=0,n.mode=Yx;case Yx:for(;n.have<n.ncode;){for(;h<3;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}n.lens[D[n.have++]]=d&7,d>>>=3,h-=3}for(;n.have<19;)n.lens[D[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Q={bits:n.lenbits},O=th(yk,n.lens,0,19,n.lencode,0,n.work,Q),n.lenbits=Q.bits,O){e.msg="invalid code lengths set",n.mode=xr;break}n.have=0,n.mode=Qx;case Qx:for(;n.have<n.nlen+n.ndist;){for(;E=n.lencode[d&(1<<n.lenbits)-1],_=E>>>24,z=E>>>16&255,H=E&65535,!(_<=h);){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}if(H<16)d>>>=_,h-=_,n.lens[n.have++]=H;else{if(H===16){for(j=_+2;h<j;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}if(d>>>=_,h-=_,n.have===0){e.msg="invalid bit length repeat",n.mode=xr;break}G=n.lens[n.have-1],g=3+(d&3),d>>>=2,h-=2}else if(H===17){for(j=_+3;h<j;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}d>>>=_,h-=_,G=0,g=3+(d&7),d>>>=3,h-=3}else{for(j=_+7;h<j;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}d>>>=_,h-=_,G=0,g=11+(d&127),d>>>=7,h-=7}if(n.have+g>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=xr;break}for(;g--;)n.lens[n.have++]=G}}if(n.mode===xr)break;
vendor: 5,440 bytes, line 337
337if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=xr;break}if(n.lenbits=9,Q={bits:n.lenbits},O=th(UA,n.lens,0,n.nlen,n.lencode,0,n.work,Q),n.lenbits=Q.bits,O){e.msg="invalid literal/lengths set",n.mode=xr;break}if(n.distbits=6,n.distcode=n.distdyn,Q={bits:n.distbits},O=th(BA,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Q),n.distbits=Q.bits,O){e.msg="invalid distances set",n.mode=xr;break}if(n.mode=kp,t===Mp)break e;case kp:n.mode=Fp;case Fp:if(c>=6&&f>=258){e.next_out=l,e.avail_out=f,e.next_in=o,e.avail_in=c,n.hold=d,n.bits=h,dk(e,y),l=e.next_out,a=e.output,f=e.avail_out,o=e.next_in,r=e.input,c=e.avail_in,d=n.hold,h=n.bits,n.mode===nl&&(n.back=-1);break}for(n.back=0;E=n.lencode[d&(1<<n.lenbits)-1],_=E>>>24,z=E>>>16&255,H=E&65535,!(_<=h);){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}if(z&&(z&240)===0){for(k=_,K=z,U=H;E=n.lencode[U+((d&(1<<k+K)-1)>>k)],_=E>>>24,z=E>>>16&255,H=E&65535,!(k+_<=h);){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}d>>>=k,h-=k,n.back+=k}if(d>>>=_,h-=_,n.back+=_,n.length=H,z===0){n.mode=Jx;break}if(z&32){n.back=-1,n.mode=nl;break}if(z&64){e.msg="invalid literal/length code",n.mode=xr;break}n.extra=z&15,n.mode=$x;case $x:if(n.extra){for(j=n.extra;h<j;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}n.length+=d&(1<<n.extra)-1,d>>>=n.extra,h-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Xx;case Xx:for(;E=n.distcode[d&(1<<n.distbits)-1],_=E>>>24,z=E>>>16&255,H=E&65535,!(_<=h);){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}if((z&240)===0){for(k=_,K=z,U=H;E=n.distcode[U+((d&(1<<k+K)-1)>>k)],_=E>>>24,z=E>>>16&255,H=E&65535,!(k+_<=h);){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}d>>>=k,h-=k,n.back+=k}if(d>>>=_,h-=_,n.back+=_,z&64){e.msg="invalid distance code",n.mode=xr;break}n.offset=H,n.extra=z&15,n.mode=Kx;case Kx:if(n.extra){for(j=n.extra;h<j;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}n.offset+=d&(1<<n.extra)-1,d>>>=n.extra,h-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=xr;break}n.mode=Zx;case Zx:if(f===0)break e;if(g=y-f,n.offset>g){if(g=n.offset-g,g>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=xr;break}g>n.wnext?(g-=n.wnext,N=n.wsize-g):N=n.wnext-g,g>n.length&&(g=n.length),w=n.window}else w=a,N=l-n.offset,g=n.length;g>f&&(g=f),f-=g,n.length-=g;do a[l++]=w[N++];while(--g);n.length===0&&(n.mode=Fp);break;case Jx:if(f===0)break e;a[l++]=n.length,f--,n.mode=Fp;break;case u1:if(n.wrap){for(;h<32;){if(c===0)break e;c--,d|=r[o++]<<h,h+=8}if(y-=f,e.total_out+=y,n.total+=y,n.wrap&4&&y&&(e.adler=n.check=n.flags?ho(n.check,a,y,l-y):_v(n.check,a,y,l-y)),y=f,n.wrap&4&&(n.flags?d:nw(d))!==n.check){e.msg="incorrect data check",n.mode=xr;break}d=0,h=0}n.mode=ew;case ew:if(n.wrap&&n.flags){for(;h<32;){if(c===0)break e;c--,d+=r[o++]<<h,h+=8}if(n.wrap&4&&d!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=xr;break}d=0,h=0}n.mode=tw;case tw:O=xk;break e;case xr:O=zA;break e;case qA:return HA;case GA:default:return ii}return e.next_out=l,e.avail_out=f,e.next_in=o,e.avail_in=c,n.hold=d,n.bits=h,(n.wsize||y!==e.avail_out&&n.mode<xr&&(n.mode<u1||t!==Rx))&&$A(e,e.output,e.next_out,y-e.avail_out),m-=e.avail_in,y-=e.avail_out,e.total_in+=m,e.total_out+=y,n.total+=y,n.wrap&4&&y&&(e.adler=n.check=n.flags?ho(n.check,a,y,e.next_out-y):_v(n.check,a,y,e.next_out-y)),e.data_type=n.bits+(n.last?64:0)+(n.mode===nl?128:0)+(n.mode===kp||n.mode===c1?256:0),(m===0&&y===0||t===Rx)&&O===hu&&(O=Sk),O},Ok=e=>{if(vu(e))return ii;let t=e.state;return t.window&&(t.window=null),e.state=null,hu},Lk=(e,t)=>{if(vu(e))return ii;const n=e.state;return(n.wrap&2)===0?ii:(n.head=t,t.done=!1,hu)},Rk=(e,t)=>{const n=t.length;let r,a,o;return vu(e)||(r=e.state,r.wrap!==0&&r.mode!==Nm)?ii:r.mode===Nm&&(a=1,a=_v(a,t,n,0),a!==r.check)?zA:(o=$A(e,t,n,n),o?(r.mode=qA,HA):(r.havedict=1,hu))};var Dk=VA,Mk=YA,kk=WA,Fk=Pk,Ik=QA,Uk=jk,Bk=Ok,zk=Lk,Hk=Rk,qk="pako inflate (from Nodeca project)",sl={inflateReset:Dk,inflateReset2:Mk,inflateResetKeep:kk,inflateInit:Fk,inflateInit2:Ik,inflate:Uk,inflateEnd:Bk,inflateGetHeader:zk,inflateSetDictionary:Hk,inflateInfo:qk};function Gk(){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 Wk=Gk;const XA=Object.prototype.toString,{Z_NO_FLUSH:Vk,Z_FINISH:Yk,Z_OK:fh,Z_STREAM_END:h1,Z_NEED_DICT:p1,Z_STREAM_ERROR:Qk,Z_DATA_ERROR:sw,Z_MEM_ERROR:$k}=kA;function Eh(e){this.options=FA.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new uk,this.strm.avail_out=0;let n=sl.inflateInit2(this.strm,t.windowBits);if(n!==fh)throw new Error(Cv[n]);if(this.header=new Wk,sl.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Ev.string2buf(t.dictionary):XA.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=sl.inflateSetDictionary(this.strm,t.dictionary),n!==fh)))throw new Error(Cv[n])}Eh.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let o,l,c;if(this.ended)return!1;for(t===~~t?l=t:l=t===!0?Yk:Vk,XA.call(e)==="[object ArrayBuffer]"?n.input=new
vendor: 9,749 bytes, line 337
337Uint8Array(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=sl.inflate(n,l),o===p1&&a&&(o=sl.inflateSetDictionary(n,a),o===fh?o=sl.inflate(n,l):o===sw&&(o=p1));n.avail_in>0&&o===h1&&n.state.wrap>0&&e[n.next_in]!==0;)sl.inflateReset(n),o=sl.inflate(n,l);switch(o){case Qk:case sw:case p1:case $k:return this.onEnd(o),this.ended=!0,!1}if(c=n.avail_out,n.next_out&&(n.avail_out===0||o===h1))if(this.options.to==="string"){let f=Ev.utf8border(n.output,n.next_out),d=n.next_out-f,h=Ev.buf2string(n.output,f);n.next_out=d,n.avail_out=r-d,d&&n.output.set(n.output.subarray(f,f+d),0),this.onData(h)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===fh&&c===0)){if(o===h1)return o=sl.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Eh.prototype.onData=function(e){this.chunks.push(e)};Eh.prototype.onEnd=function(e){e===fh&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=FA.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xk(e,t){const n=new Eh(t);if(n.push(e),n.err)throw n.msg||Cv[n.err];return n.result}var Kk=Eh,Zk=Xk,Jk={Inflate:Kk,inflate:Zk};const{Inflate:e9,inflate:t9}=Jk;var aw=e9,n9=t9;const KA=[];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;KA[e]=t}const iw=4294967295;function r9(e,t,n){let r=e;for(let a=0;a<n;a++)r=KA[(r^t[a])&255]^r>>>8;return r}function s9(e,t){return(r9(iw,e,t)^iw)>>>0}function ow(e,t,n){const r=e.readUint32(),a=s9(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(a!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${a}`)}function ZA(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function JA(e,t,n,r){let a=0;for(;a<r;a++)t[a]=e[a];for(;a<n;a++)t[a]=e[a]+t[a-r]&255}function eN(e,t,n,r){let a=0;if(n.length===0)for(;a<r;a++)t[a]=e[a];else for(;a<r;a++)t[a]=e[a]+n[a]&255}function tN(e,t,n,r,a){let o=0;if(n.length===0){for(;o<a;o++)t[o]=e[o];for(;o<r;o++)t[o]=e[o]+(t[o-a]>>1)&255}else{for(;o<a;o++)t[o]=e[o]+(n[o]>>1)&255;for(;o<r;o++)t[o]=e[o]+(t[o-a]+n[o]>>1)&255}}function nN(e,t,n,r,a){let o=0;if(n.length===0){for(;o<a;o++)t[o]=e[o];for(;o<r;o++)t[o]=e[o]+t[o-a]&255}else{for(;o<a;o++)t[o]=e[o]+n[o]&255;for(;o<r;o++)t[o]=e[o]+a9(t[o-a],n[o],n[o-a])&255}}function a9(e,t,n){const r=e+t-n,a=Math.abs(r-e),o=Math.abs(r-t),l=Math.abs(r-n);return a<=o&&a<=l?e:o<=l?t:n}function i9(e,t,n,r,a,o){switch(e){case 0:ZA(t,n,a);break;case 1:JA(t,n,a,o);break;case 2:eN(t,n,r,a);break;case 3:tN(t,n,r,a,o);break;case 4:nN(t,n,r,a,o);break;default:throw new Error(`Unsupported filter: ${e}`)}}const o9=new Uint16Array([255]),l9=new Uint8Array(o9.buffer),c9=l9[0]===255;function u9(e){const{data:t,width:n,height:r,channels:a,depth:o}=e,l=[{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}],c=Math.ceil(o/8)*a,f=new Uint8Array(r*n*c);let d=0;for(let h=0;h<7;h++){const m=l[h],y=Math.ceil((n-m.x)/m.xStep),g=Math.ceil((r-m.y)/m.yStep);if(y<=0||g<=0)continue;const N=y*c,w=new Uint8Array(N);for(let E=0;E<g;E++){const _=t[d++],z=t.subarray(d,d+N);d+=N;const H=new Uint8Array(N);i9(_,z,H,w,N,c),w.set(H);for(let k=0;k<y;k++){const K=m.x+k*m.xStep,U=m.y+E*m.yStep;if(!(K>=n||U>=r))for(let G=0;G<c;G++)f[(U*n+K)*c+G]=H[k*c+G]}}}if(o===16){const h=new Uint16Array(f.buffer);if(c9)for(let m=0;m<h.length;m++)h[m]=f9(h[m]);return h}else return f}function f9(e){return(e&255)<<8|e>>8&255}const d9=new Uint16Array([255]),h9=new Uint8Array(d9.buffer),p9=h9[0]===255,m9=new Uint8Array(0);function lw(e){const{data:t,width:n,height:r,channels:a,depth:o}=e,l=Math.ceil(o/8)*a,c=Math.ceil(o/8*a*n),f=new Uint8Array(r*c);let d=m9,h=0,m,y;for(let g=0;g<r;g++){switch(m=t.subarray(h+1,h+1+c),y=f.subarray(g*c,(g+1)*c),t[h]){case 0:ZA(m,y,c);break;case 1:JA(m,y,c,l);break;case 2:eN(m,y,d,c);break;case 3:tN(m,y,d,c,l);break;case 4:nN(m,y,d,c,l);break;default:throw new Error(`Unsupported filter: ${t[h]}`)}d=y,h+=c+1}if(o===16){const g=new Uint16Array(f.buffer);if(p9)for(let N=0;N<g.length;N++)g[N]=g9(g[N]);return g}else return f}function g9(e){return(e&255)<<8|e>>8&255}const Zp=Uint8Array.of(137,80,78,71,13,10,26,10);function cw(e){if(!v9(e.readBytes(Zp.length)))throw new Error("wrong PNG signature")}function v9(e){if(e.length<Zp.length)return!1;for(let t=0;t<Zp.length;t++)if(e[t]!==Zp[t])return!1;return!0}const y9="tEXt",b9=0,rN=new TextDecoder("latin1");function x9(e){if(S9(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const w9=/^[\u0000-\u00FF]*$/;function S9(e){if(!w9.test(e))throw new Error("invalid latin1 text")}function A9(e,t,n){const r=sN(t);e[r]=N9(t,n-r.length-1)}function sN(e){for(e.mark();e.readByte()!==b9;);const t=e.offset;e.reset();const n=rN.decode(e.readBytes(t-e.offset-1));return e.skip(1),x9(n),n}function N9(e,t){return rN.decode(e.readBytes(t))}const ka={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},m1={UNKNOWN:-1,DEFLATE:0},uw={UNKNOWN:-1,ADAPTIVE:0},g1={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Ip={NONE:0,BACKGROUND:1,PREVIOUS:2},v1={SOURCE:0,OVER:1};class _9 extends _2{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,n={}){super(t);const{checkCrc:r=!1}=n;this._checkCrc=r,this._inflator=new aw,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=m1.UNKNOWN,this._filterMethod=uw.UNKNOWN,this._interlaceMethod=g1.UNKNOWN,this._colorType=ka.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(cw(this);!this._end;){const t=this.readUint32(),n=this.readChars(4);this.decodeChunk(t,n)}return this.decodeImage(),this._png}decodeApng(){for(cw(this);!this._end;){const t=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(t,n)}return this.decodeApngImage(),this._apng}decodeChunk(t,n){const r=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case y9:A9(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-r!==t)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?ow(this,t+4,n):this.skip(4)}decodeApngChunk(t,n){const r=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,n),this.offset=r+t;break}if(this.offset-r!==t)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?ow(this,t+4,n):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=C9(this.readUint8());const n=this.readUint8();this._colorType=n;let r;switch(n){case ka.GREYSCALE:r=1;break;case ka.TRUECOLOUR:r=3;break;case ka.INDEXED_COLOUR:r=1;break;case ka.GREYSCALE_ALPHA:r=2;break;case ka.TRUECOLOUR_ALPHA:r=4;break;case ka.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==m1.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 t={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(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const n=t/3;this._hasPalette=!0;const r=[];this._palette=r;for(let a=0;a<n;a++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const n=t,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let n=t,r=this.offset+this.byteOffset;if(r+=4,n-=4,this._inflator.push(new Uint8Array(this.buffer,r,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case ka.GREYSCALE:case ka.TRUECOLOUR:{if(t%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let n=0;n<t/2;n++)this._transparency[n]=this.readUint16();break}case ka.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alph
337a values than there are palette colors (${t} vs ${this._palette.length})`);let n=0;for(;n<t;n++){const r=this.readByte();this._palette[n].push(r)}for(;n<this._palette.length;n++)this._palette[n].push(255);break}case ka.UNKNOWN:case ka.GREYSCALE_ALPHA:case ka.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const n=sN(this),r=this.readUint8();if(r!==m1.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);const a=this.readBytes(t-n.length-2);this._png.iccEmbeddedProfile={name:n,profile:n9(a)}}decodepHYs(){const t=this.readUint32(),n=this.readUint32(),r=this.readByte();this._png.resolution={x:t,y:n,unit:r}}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 t=0;t<this._numberOfFrames;t++){const n={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].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)},r=this._frames.at(t);if(r){if(r.data=lw({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)n.data=r.data;else{const a=this._apng.frames.at(t-1);this.disposeFrame(r,a,n),this.addFrameDataToCanvas(n,r)}this._apng.frames.push(n)}}return this._apng}disposeFrame(t,n,r){switch(t.disposeOp){case Ip.NONE:break;case Ip.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let o=0;o<this._png.width;o++){const l=(a*t.width+o)*this._png.channels;for(let c=0;c<this._png.channels;c++)r.data[l+c]=0}break;case Ip.PREVIOUS:r.data.set(n.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,n){const r=1<<this._png.depth,a=(o,l)=>{const c=((o+n.yOffset)*this._png.width+n.xOffset+l)*this._png.channels,f=(o*n.width+l)*this._png.channels;return{index:c,frameIndex:f}};switch(n.blendOp){case v1.SOURCE:for(let o=0;o<n.height;o++)for(let l=0;l<n.width;l++){const{index:c,frameIndex:f}=a(o,l);for(let d=0;d<this._png.channels;d++)t.data[c+d]=n.data[f+d]}break;case v1.OVER:for(let o=0;o<n.height;o++)for(let l=0;l<n.width;l++){const{index:c,frameIndex:f}=a(o,l);for(let d=0;d<this._png.channels;d++){const h=n.data[f+this._png.channels-1]/r,m=d%(this._png.channels-1)===0?1:n.data[f+d],y=Math.floor(h*m+(1-h)*t.data[c+d]);t.data[c+d]+=y}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==uw.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===g1.NO_INTERLACE)this._png.data=lw({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===g1.ADAM7)this._png.data=u9({data:t,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 t=this._inflator.result,n=this._frames.at(-1);n?n.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Ip.NONE,blendOp:v1.SOURCE,data:t}),this._inflator=new aw,this._writingDataChunks=!1}}function C9(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var fw;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(fw||(fw={}));function E9(e,t){return new _9(e,t).decode()}var Zt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function y1(){Zt.console&&typeof Zt.console.log=="function"&&Zt.console.log.apply(Zt.console,arguments)}var ar={log:y1,warn:function(e){Zt.console&&(typeof Zt.console.warn=="function"?Zt.console.warn.apply(Zt.console,arguments):y1.call(null,arguments))},error:function(e){Zt.console&&(typeof Zt.console.error=="function"?Zt.console.error.apply(Zt.console,arguments):y1(e))}};
vendor: 3,822 bytes, lines 337-342
337function b1(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Qc(r.response,t,n)},r.onerror=function(){ar.error("could not download file")},r.send()}function dw(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Up(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 Qc=Zt.saveAs||((typeof window>"u"?"undefined":zn(window))!=="object"||window!==Zt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=Zt.URL||Zt.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener",typeof e=="string"?(a.href=e,a.origin!==location.origin?dw(a.href)?b1(e,t,n):Up(a,a.target="_blank"):Up(a)):(a.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(a.href)},4e4),setTimeout(function(){Up(a)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(dw(e))b1(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Up(r)})}else navigator.msSaveOrOpenBlob((function(a,o){return o===void 0?o={autoBom:!1}:zn(o)!=="object"&&(ar.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(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(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 b1(e,t,n);var a=e.type==="application/octet-stream",o=/constructor/i.test(Zt.HTMLElement)||Zt.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&o)&&(typeof FileReader>"u"?"undefined":zn(FileReader))==="object"){var c=new FileReader;c.onloadend=function(){var h=c.result;h=l?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=h:location=h,r=null},c.readAsDataURL(e)}else{var f=Zt.URL||Zt.webkitURL,d=f.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout(function(){f.revokeObjectURL(d)},4e4)}});/** 338 * A class to parse color values 339 * @author Stoyan Stefanov <[email protected]> 340 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 341 * @license Use it if you like it 342 */function aN(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
3420",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(c){return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}}],r=0;r<n.length;r++){var a=n[r].re,o=n[r].process,l=a.exec(e);l&&(t=o(l),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 c=this.r.toString(16),f=this.g.toString(16),d=this.b.toString(16);return c.length==1&&(c="0"+c),f.length==1&&(f="0"+f),d.length==1&&(d="0"+d),"#"+c+f+d}}var Jp=Zt.atob.bind(Zt),hw=Zt.btoa.bind(Zt);/** 343 * @license 344 * Joseph Myers does not specify a particular license for his work. 345 * 346 * Author: Joseph Myers 347 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 348 * 349 * Modified by: Owen Leong 350 */function x1(e,t){var n=e[0],r=e[1],a=e[2],o=e[3];n=Ds(n,r,a,o,t[0],7,-680876936),o=Ds(o,n,r,a,t[1],12,-389564586),a=Ds(a,o,n,r,t[2],17,606105819),r=Ds(r,a,o,n,t[3],22,-1044525330),n=Ds(n,r,a,o,t[4],7,-176418897),o=Ds(o,n,r,a,t[5],12,1200080426),a=Ds(a,o,n,r,t[6],17,-1473231341),r=Ds(r,a,o,n,t[7],22,-45705983),n=Ds(n,r,a,o,t[8],7,1770035416),o=Ds(o,n,r,a,t[9],12,-1958414417),a=Ds(a,o,n,r,t[10],17,-42063),r=Ds(r,a,o,n,t[11],22,-1990404162),n=Ds(n,r,a,o,t[12],7,1804603682),o=Ds(o,n,r,a,t[13],12,-40341101),a=Ds(a,o,n,r,t[14],17,-1502002290),n=Ms(n,r=Ds(r,a,o,n,t[15],22,1236535329),a,o,t[1],5,-165796510),o=Ms(o,n,r,a,t[6],9,-1069501632),a=Ms(a,o,n,r,t[11],14,643717713),r=Ms(r,a,o,n,t[0],20,-373897302),n=Ms(n,r,a,o,t[5],5,-701558691),o=Ms(o,n,r,a,t[10],9,38016083),a=Ms(a,o,n,r,t[15],14,-660478335),r=Ms(r,a,o,n,t[4],20,-405537848),n=Ms(n,r,a,o,t[9],5,568446438),o=Ms(o,n,r,a,t[14],9,-1019803690),a=Ms(a,o,n,r,t[3],14,-187363961),r=Ms(r,a,o,n,t[8],20,1163531501),n=Ms(n,r,a,o,t[13],5,-1444681467),o=Ms(o,n,r,a,t[2],9,-51403784),a=Ms(a,o,n,r,t[7],14,1735328473),n=ks(n,r=Ms(r,a,o,n,t[12],20,-1926607734),a,o,t[5],4,-378558),o=ks(o,n,r,a,t[8],11,-2022574463),a=ks(a,o,n,r,t[11],16,1839030562),r=ks(r,a,o,n,t[14],23,-35309556),n=ks(n,r,a,o,t[1],4,-1530992060),o=ks(o,n,r,a,t[4],11,1272893353),a=ks(a,o,n,r,t[7],16,-155497632),r=ks(r,a,o,n,t[10],23,-1094730640),n=ks(n,r,a,o,t[13],4,681279174),o=ks(o,n,r,a,t[0],11,-358537222),a=ks(a,o,n,r,t[3],16,-722521979),r=ks(r,a,o,n,t[6],23,76029189),n=ks(n,r,a,o,t[9],4,-640364487),o=ks(o,n,r,a,t[12],11,-421815835),a=ks(a,o,n,r,t[15],16,530742520),n=Fs(n,r=ks(r,a,o,n,t[2],23,-995338651),a,o,t[0],6,-198630844),o=Fs(o,n,r,a,t[7],10,1126891415),a=Fs(a,o,n,r,t[14],15,-1416354905),r=Fs(r,a,o,n,t[5],21,-57434055),n=Fs(n,r,a,o,t[12],6,1700485571),o=Fs(o,n,r,a,t[3],10,-1894986606),a=Fs(a,o,n,r,t[10],15,-1051523),r=Fs(r,a,o,n,t[1],21,-2054922799),n=Fs(n,r,a,o,t[8],6,1873313359),o=Fs(o,n,r,a,t[15],10,-30611744),a=Fs(a,o,n,r,t[6],15,-1560198380),r=Fs(r,a,o,n,t[13],21,1309151649),n=Fs(n,r,a,o,t[4],6,-145523070),o=Fs(o,n,r,a,t[11],10,-1120210379),a=Fs(a,o,n,r,t[2],15,718787259),r=Fs(r,a,o,n,t[9],21,-343485551),e[0]=Jl(n,e[0]),e[1]=Jl(r,e[1]),e[2]=Jl(a,e[2]),e[3]=Jl(o,e[3])}function dg(e,t,n,r,a,o){return t=Jl(Jl(t,e),Jl(r,o)),Jl(t<<a|t>>>32-a,n)}function Ds(e,t,n,r,a,o,l){return dg(t&n|~t&r,e,t,a,o,l)}function Ms(e,t,n,r,a,o,l){return dg(t&r|n&~r,e,t,a,o,l)}function ks(e,t,n,r,a,o,l){return dg(t^n^r,e,t,a,o,l)}function Fs(e,t,n,r,a,o,l){return dg(n^(t|~r),e,t,a,o,l)}function iN(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)x1(r,P9(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(x1(r,a),t=0;t<16;t++)a[t]=0;return a[14]=8*n,x1(r,a),r}function P9(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 pw="0123456789abcdef".split("");function T9(e){for(var t="",n=0;n<4;n++)t+=pw[e>>8*n+4&15]+pw[e>>8*n&15];return t}function j9(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Pv(e){return iN(e).map(j9).join("")}var O9=(function(e){for(var t=0;t<e.length;t++)e[t]=T9(e[t]);return e.join("")})(iN("hello"))!="5d41402abc4b2a76b9719d911017c592";function Jl(e,t){if(O9){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/** 351 * @license 352 * FPDF is released under a permissive license: there is no usage restriction. 353 * You may embed it freely in your application (commercial or not), with or 354 * without modifications. 355 * 356 * Reference: http://www.fpdf.org/en/script/script37.php 357 */function Tv(e,t){var n,r,a,o;if(e!==n){for(var l=(a=e,o=1+(256/e.length|0),new Array(o+1).join(a)),c=[],f=0;f<256;f++)c[f]=f;var d=0;for(f=0;f<256;f++){var h=c[f];d=(d+h+l.charCodeAt(f))%256,c[f]=c[d],c[d]=h}n=e,r=c}else c=r;var m=t.length,y=0,g=0,N="";for(f=0;f<m;f++)g=(g+(h=c[y=(y+1)%256]))%256,c[y]=c[g],c[g]=h,l=c[(c[y]+c[g])%256],N+=String.fromCharCode(t.charCodeAt(f)^l);return N}/** 358 * @license 359 * Licensed under the MIT License. 360 * http://opensource.org/licenses/mit-license 361 * Author: Owen Leong (@owenl131) 362 * Date: 15 Oct 2020 363 * References: 364 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 365 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 366 * http://www.fpdf.org/en/script/script37.php 367 */var mw={print:4,modify:8,copy:16,"annot-forms":32};function Cf(e,t,n,r){this.v=1,this.r=2;var a=192;e.forEach(function(c){if(mw.perm!==void 0)throw new Error("Invalid permission: "+c);a+=mw[c]}),this.padding="(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz";var o=(t+this.padding).substr(0,32),l=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,l),this.P=-(1+(255^a)),this.encryptionKey=Pv(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Tv(this.encryptionKey,this.padding)}function Ef(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 a=e.charCodeAt(r);t+=a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?"#"+("0"+a.toString(16)).slice(-2):e[r]}return t}function gw(e){if(zn(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};
vendor: 4,200 bytes, line 367
367this.subscribe=function(n,r,a){if(a=a||!1,typeof n!="string"||typeof r!="function"||typeof a!="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,!!a],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),a=[];for(var o in t[n]){var l=t[n][o];try{l[0].apply(e,r)}catch(c){Zt.console&&ar.error("jsPDF PubSub Error",c.message,c)}l[1]&&a.push(o)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function _m(e){if(!(this instanceof _m))return new _m(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 oN(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Kc(e,t,n,r,a){if(!(this instanceof Kc))return new Kc(e,t,n,r,a);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,oN.call(this,r,a)}function Lf(e,t,n,r,a){if(!(this instanceof Lf))return new Lf(e,t,n,r,a);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,oN.call(this,r,a)}function Ot(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],a=arguments[2],o=arguments[3],l=[],c=1,f=16,d="S",h=null;zn(e=e||{})==="object"&&(n=e.orientation,r=e.unit||r,a=e.format||a,o=e.compress||e.compressPdf||o,(h=e.encryption||null)!==null&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),c=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(f=e.floatPrecision),d=e.defaultPathOperation||"S"),l=e.filters||(o===!0?["FlateEncode"]:l),r=r||"mm",n=(""+(n||"P")).toLowerCase();var m=e.putOnlyUsedFonts||!1,y={},g={internal:{},__private__:{}};g.__private__.PubSub=gw;var N="1.3",w=g.__private__.getPdfVersion=function(){return N};g.__private__.setPdfVersion=function(C){N=C};var E={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]};g.__private__.getPageFormats=function(){return E};var _=g.__private__.getPageFormat=function(C){return E[C]};a=a||"a4";var z="compat",H="advanced",k=z;function K(){this.saveGraphicsState(),ce(new Ke(dt,0,0,-dt,0,mi()*dt).toString()+" cm"),this.setFontSize(this.getFontSize()/dt),d="n",k=H}function U(){this.restoreGraphicsState(),d="S",k=z}var G=g.__private__.combineFontStyleAndFontWeight=function(C,Z){if(C=="bold"&&Z=="normal"||C=="bold"&&Z==400||C=="normal"&&Z=="italic"||C=="bold"&&Z=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Z&&(C=Z==400||Z==="normal"?C==="italic"?"italic":"normal":Z!=700&&Z!=="bold"||C!=="normal"?(Z==700?"bold":Z)+""+C:"bold"),C};g.advancedAPI=function(C){var Z=k===z;return Z&&K.call(this),typeof C!="function"||(C(this),Z&&U.call(this)),this},g.compatAPI=function(C){var Z=k===H;return Z&&U.call(this),typeof C!="function"||(C(this),Z&&K.call(this)),this},g.isAdvancedAPI=function(){return k===H};var O,R=function(C){if(k!==H)throw new Error(C+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Q=g.roundToPrecision=g.__private__.roundToPrecision=function(C,Z){var he=t||Z;if(isNaN(C)||isNaN(he))throw new Error("Invalid argument passed to
367jsPDF.roundToPrecision");return C.toFixed(he).replace(/0+$/,"")};O=g.hpf=g.__private__.hpf=typeof f=="number"?function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(C,f)}:f==="smart"?function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(C,C>-1&&C<1?16:5)}:function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(C,16)};var j=g.f2=g.__private__.f2=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.f2");return Q(C,2)},D=g.__private__.f3=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.f3");return Q(C,3)},$=g.scale=g.__private__.scale=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.scale");return k===z?C*dt:k===H?C:void 0},W=function(C){return $((function(Z){return k===z?mi()-Z:k===H?Z:void 0})(C))};g.__private__.setPrecision=g.setPrecision=function(C){typeof parseInt(C,10)=="number"&&(t=parseInt(C,10))};var te,L="00000000000000000000000000000000",M=g.__private__.getFileId=function(){return L},X=g.__private__.setFileId=function(C){return L=C!==void 0&&/^[a-fA-F0-9]{32}$/.test(C)?C.toUpperCase():L.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),h!==null&&(Ur=new Cf(h.userPermissions,h.userPassword,h.ownerPassword,L)),L};g.setFileId=function(C){return X(C),this},g.getFileId=function(){return M()};var se=g.__private__.convertDateToPDFDate=function(C){var Z=C.getTimezoneOffset(),he=Z<0?"+":"-",be=Math.floor(Math.abs(Z/60)),Ne=Math.abs(Z%60),ze=[he,V(be),"'",V(Ne),"'"].join("");return["D:",C.getFullYear(),V(C.getMonth()+1),V(C.getDate()),V(C.getHours()),V(C.getMinutes()),V(C.getSeconds()),ze].join("")},pe=g.__private__.convertPDFDateToDate=function(C){var Z=parseInt(C.substr(2,4),10),he=parseInt(C.substr(6,2),10)-1,be=parseInt(C.substr(8,2),10),Ne=parseInt(C.substr(10,2),10),ze=parseInt(C.substr(12,2),10),Ye=parseInt(C.substr(14,2),10);return new Date(Z,he,be,Ne,ze,Ye,0)},ee=g.__private__.setCreationDate=function(C){var Z;if(C===void 0&&(C=new Date),C instanceof Date)Z=se(C);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(C))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Z=C}return te=Z},P=g.__private__.getCreationDate=function(C){var Z=te;return C==="jsDate"&&(Z=pe(te)),Z};g.setCreationDate=function(C){return ee(C),this},g.getCreationDate=function(C){return P(C)};var B,V=g.__private__.padd2=function(C){return("0"+parseInt(C)).slice(-2)},Y=g.__private__.padd2Hex=function(C){return("00"+(C=C.toString())).substr(C.length)},oe=0,le=[],me=[],ge=0,Ae=[],Oe=[],Fe=!1,Qe=me;g.__private__.setCustomOutputDestination=function(C){Fe=!0,Qe=C};var Je=function(C){Fe||(Qe=C)};g.__private__.resetCustomOutputDestination=function(){Fe=!1,Qe=me};var ce=g.__private__.out=function(C){return C=C.toString(),ge+=C.length+1,Qe.push(C),Qe},Ve=g.__private__.write=function(C){return ce(arguments.length===1?C.toString():Array.prototype.join.call(arguments," "))},it=g.__private__.getArrayBuffer=function(C){for(var Z=C.length,he=new ArrayBuffer(Z),be=new Uint8Array(he);Z--;)be[Z]=C.charCodeAt(Z);return he},et=[["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]];g.__private__.getStandardFonts=function(){return et};var De=e.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(C){return De=k===H?C/dt:C,this};var ot,Xe=g.__private__.getFontSize=g.getFontSize=function(){return k===z?De:De*dt},nt=e.R2L||!1;g.__private__.setR2L=g.setR2L=function(C){return nt=C,this},g.__private__.getR2L=g.getR2L=function(){return nt};
vendor: 6,036 bytes, line 367
367var tt,ct=g.__private__.setZoomMode=function(C){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(C))ot=C;else if(isNaN(C)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(C)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+C+'" is not recognized.');ot=C}else ot=parseInt(C,10)};g.__private__.getZoomMode=function(){return ot};var Lt,Ct=g.__private__.setPageMode=function(C){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(C)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+C+'" is not recognized.');tt=C};g.__private__.getPageMode=function(){return tt};var Ht=g.__private__.setLayoutMode=function(C){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(C)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+C+'" is not recognized.');Lt=C};g.__private__.getLayoutMode=function(){return Lt},g.__private__.setDisplayMode=g.setDisplayMode=function(C,Z,he){return ct(C),Ht(Z),Ct(he),this};var vt={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(C){if(Object.keys(vt).indexOf(C)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return vt[C]},g.__private__.getDocumentProperties=function(){return vt},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(C){for(var Z in vt)vt.hasOwnProperty(Z)&&C[Z]&&(vt[Z]=C[Z]);return this},g.__private__.setDocumentProperty=function(C,Z){if(Object.keys(vt).indexOf(C)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return vt[C]=Z};var lt,dt,ut,Jt,Ft,mt={},Et={},qt=[],_t={},pn={},yt={},jt={},wn=null,ye=0,Ue=[],Ie=new gw(g),at=e.hotfixes||[],rt={},Rt={},Bt=[],Ke=function C(Z,he,be,Ne,ze,Ye){if(!(this instanceof C))return new C(Z,he,be,Ne,ze,Ye);isNaN(Z)&&(Z=1),isNaN(he)&&(he=0),isNaN(be)&&(be=0),isNaN(Ne)&&(Ne=1),isNaN(ze)&&(ze=0),isNaN(Ye)&&(Ye=0),this._matrix=[Z,he,be,Ne,ze,Ye]};Object.defineProperty(Ke.prototype,"sx",{get:function(){return this._matrix[0]},set:function(C){this._matrix[0]=C}}),Object.defineProperty(Ke.prototype,"shy",{get:function(){return this._matrix[1]},set:function(C){this._matrix[1]=C}}),Object.defineProperty(Ke.prototype,"shx",{get:function(){return this._matrix[2]},set:function(C){this._matrix[2]=C}}),Object.defineProperty(Ke.prototype,"sy",{get:function(){return this._matrix[3]},set:function(C){this._matrix[3]=C}}),Object.defineProperty(Ke.prototype,"tx",{get:function(){return this._matrix[4]},set:function(C){this._matrix[4]=C}}),Object.defineProperty(Ke.prototype,"ty",{get:function(){return this._matrix[5]},set:function(C){this._matrix[5]=C}}),Object.defineProperty(Ke.prototype,"a",{get:function(){return this._matrix[0]},set:function(C){this._matrix[0]=C}}),Object.defineProperty(Ke.prototype,"b",{get:function(){return this._matrix[1]},set:function(C){this._matrix[1]=C}}),Object.defineProperty(Ke.prototype,"c",{get:function(){return this._matrix[2]},set:function(C){this._matrix[2]=C}}),Object.defineProperty(Ke.prototype,"d",{get:function(){return this._matrix[3]},set:function(C){this._matrix[3]=C}}),Object.defineProperty(Ke.prototype,"e",{get:function(){return this._matrix[4]},set:function(C){this._matrix[4]=C}}),Object.defineProperty(Ke.prototype,"f",{get:function(){return this._matrix[5]},set:function(C){this._matrix[5]=C}}),Object.defineProperty(Ke.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ke.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ke.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ke.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ke.prototype.join=function(C){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(C)},Ke.prototype.multiply=function(C){var Z=C.sx*this.sx+C.shy*this.shx,he=C.sx*this.shy+C.shy*this.sy,be=C.shx*this.sx+C.sy*this.shx,Ne=C.shx*this.shy+C.sy*this.sy,ze=C.tx*this.sx+C.ty*this.shx+this.tx,Ye=C.tx*this.shy+C.ty*this.sy+this.ty;return new Ke(Z,he,be,Ne,ze,Ye)},Ke.prototype.decompose=function(){var C=this.sx,Z=this.shy,he=this.shx,be=this.sy,Ne=this.tx,ze=this.ty,Ye=Math.sqrt(C*C+Z*Z),bt=(C/=Ye)*he+(Z/=Ye)*be;he-=C*bt,be-=Z*bt;var Pt=Math.sqrt(he*he+be*be);return bt/=Pt,C*(be/=Pt)<Z*(he/=Pt)&&(C=-C,Z=-Z,bt=-bt,Ye=-Ye),{scale:new Ke(Ye,0,0,Pt,0,0),translate:new Ke(1,0,0,1,Ne,ze),rotate:new Ke(C,Z,-Z,C,0,0),skew:new Ke(1,0,bt,1,0,0)}},Ke.prototype.toString=function(C){return this.join(" ")},Ke.prototype.inversed=function(){var C=this.sx,Z=this.shy,he=this.shx,be=this.sy,Ne=this.tx,ze=this.ty,Ye=1/(C*be-Z*he),bt=be*Ye,Pt=-Z*Ye,Wt=-he*Ye,tn=C*Ye;return new Ke(bt,Pt,Wt,tn,-bt*Ne-Wt*ze,-Pt*Ne-tn*ze)},Ke.prototype.applyToPoint=function(C){var Z=C.x*this.sx+C.y*this.shx+this.tx,he=C.x*this.shy+C.y*this.sy+this.ty;return new Js(Z,he)},Ke.prototype.applyToRectangle=function(C){var Z=this.applyToPoint(C),he=this.applyToPoint(new Js(C.x+C.w,C.y+C.h));return new ui(Z.x,Z.y,he.x-Z.x,he.y-Z.y)},Ke.prototype.clone=function(){var C=this.sx,Z=this.shy,he=this.shx,be=this.sy,Ne=this.tx,ze=this.ty;return new Ke(C,Z,he,be,Ne,ze)},g.Matrix=Ke;var Gt=g.matrixMult=function(C,Z){return Z.multiply(C)},on=new Ke(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=on;var en=function(C,Z){if(!pn[C]){var he=(Z instanceof Kc?"Sh":"P")+(Object.keys(_t).length+1).toString(10);Z.id=he,pn[C]=he,_t[he]=Z,Ie.publish("addPattern",Z)}};g.ShadingPattern=Kc,g.TilingPattern=Lf,g.addShadingPattern=function(C,Z){return R("addShadingPattern()"),en(C,Z),this},g.beginTilingPattern=function(C){R("beginTilingPattern()"),Lo(C.boundingBox[0],C.boundingBox[1],C.boundingBox[2]-C.boundingBox[0],C.boundingBox[3]-C.boundingBox[1],C.matrix)},g.endTilingPattern=function(C,Z){R("endTilingPattern()"),Z.stream=Oe[B].join(`
368`),en(C,Z),Ie.publish("endTilingPattern",Z),Bt.pop().restore()};var $t,Qt=g.__private__.newObject=function(){var C=fn();return jn(C,!0),C},fn=g.__private__.newObjectDeferred=function(){return oe++,le[oe]=function(){return ge},oe},jn=function(C,Z){return Z=typeof Z=="boolean"&&Z,le[C]=ge,Z&&ce(C+" 0 obj"),C},es=g.__private__.newAdditionalObject=function(){var C={objId:fn(),content:""};return Ae.push(C),C},er=fn(),dn=fn(),Sn=g.__private__.decodeColorString=function(C){var Z=C.split(" ");if(Z.length!==2||Z[1]!=="g"&&Z[1]!=="G")Z.length!==5||Z[4]!=="k"&&Z[4]!=="K"||(Z=[(1-Z[0])*(1-Z[3]),(1-Z[1])*(1-Z[3]),(1-Z[2])*(1-Z[3]),"r"]);else{var he=parseFloat(Z[0]);Z=[he,he,he,"r"]}for(var be="#",Ne=0;Ne<3;Ne++)be+=("0"+Math.floor(255*parseFloat(Z[Ne])).toString(16)).slice(-2);return be},tr=g.__private__.encodeColorString=function(C){var Z;typeof C=="string"&&(C={ch1:C});var he=C.ch1,be=C.ch2,Ne=C.ch3,ze=C.ch4,Ye=C.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof he=="string"&&he.charAt(0)!=="#"){var bt=new aN(he);if(bt.ok)he=bt.toHex();else if(!/^\d*\.?\d*$/.test(he))throw new Error('Invalid color "'+he+'" passed to jsPDF.encodeColorString.')}if(typeof he=="string"&&/^#[0-9A-Fa-f]{3}$/.test(he)&&(he="#"+he[1]+he[1]+he[2]+he[2]+he[3]+he[3]),typeof he=="string"&&/^#[0-9A-Fa-f]{6}$/.test(he)){var Pt=parseInt(he.substr(1),16);he=Pt>>16&255,be=Pt>>8&255,Ne=255&Pt}if(be===void 0||ze===void 0&&he===be&&be===Ne)Z=typeof he=="string"?he+" "+Ye[0]:C.precision===2?j(he/255)+" "+Ye[0]:D(he/255)+" "+Ye[0];else if(ze===void 0||zn(ze)==="object"){if(ze&&!isNaN(ze.a)&&ze.a===0)return["1.","1.","1.",Ye[1]].join(" ");Z=typeof he=="string"?[he,be,Ne,Ye[1]].join(" "):C.precision===2?[j(he/255),j(be/255),j(Ne/255),Ye[1]].join(" "):[D(he/255),D(be/255),D(Ne/255),Ye[1]].join(" ")}else Z=typeof he=="string"?[he,be,Ne,ze,Ye[2]].join(" "):C.precision===2?[j(he),j(be),j(Ne),j(ze),Ye[2]].join(" "):[D(he),D(be),D(Ne),D(ze),Ye[2]].join(" ");return Z},or=g.__private__.getFilters=function(){return l},ts=g.__private__.putStream=function(C){var Z=(C=C||{}).data||"",he=C.filters||or(),be=C.alreadyAppliedFilters||[],Ne=C.addLength1||!1,ze=Z.length,Ye=C.objectId,bt=function(Br){return Br};if(h!==null&&Ye===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");h!==null&&(bt=Ur.encryptor(Ye,0));var Pt={};he===!0&&(he=["FlateEncode"]);var Wt=C.additionalKeyValues||[],tn=(Pt=Ot.API.processDataByFilters!==void 0?Ot.API.processDataByFilters(Z,he):{data:Z,reverseChain:[]}).reverseChain+(Array.isArray(be)?be.join(" "):be.toString());
vendor: 16,155 bytes, lines 368-373
368if(Pt.data.length!==0&&(Wt.push({key:"Length",value:Pt.data.length}),Ne===!0&&Wt.push({key:"Length1",value:ze})),tn.length!=0)if(tn.split("/").length-1==1)Wt.push({key:"Filter",value:tn});else{Wt.push({key:"Filter",value:"["+tn+"]"});for(var An=0;An<Wt.length;An+=1)if(Wt[An].key==="DecodeParms"){for(var cr=[],Sr=0;Sr<Pt.reverseChain.split("/").length-1;Sr+=1)cr.push("null");cr.push(Wt[An].value),Wt[An].value="["+cr.join(" ")+"]"}}ce("<<");for(var Qn=0;Qn<Wt.length;Qn++)ce("/"+Wt[Qn].key+" "+Wt[Qn].value);ce(">>"),Pt.data.length!==0&&(ce("stream"),ce(bt(Pt.data)),ce("endstream"))},Ks=g.__private__.putPage=function(C){var Z=C.number,he=C.data,be=C.objId,Ne=C.contentsObjId;jn(be,!0),ce("<</Type /Page"),ce("/Parent "+C.rootDictionaryObjId+" 0 R"),ce("/Resources "+C.resourceDictionaryObjId+" 0 R"),ce("/MediaBox ["+parseFloat(O(C.mediaBox.bottomLeftX))+" "+parseFloat(O(C.mediaBox.bottomLeftY))+" "+O(C.mediaBox.topRightX)+" "+O(C.mediaBox.topRightY)+"]"),C.cropBox!==null&&ce("/CropBox ["+O(C.cropBox.bottomLeftX)+" "+O(C.cropBox.bottomLeftY)+" "+O(C.cropBox.topRightX)+" "+O(C.cropBox.topRightY)+"]"),C.bleedBox!==null&&ce("/BleedBox ["+O(C.bleedBox.bottomLeftX)+" "+O(C.bleedBox.bottomLeftY)+" "+O(C.bleedBox.topRightX)+" "+O(C.bleedBox.topRightY)+"]"),C.trimBox!==null&&ce("/TrimBox ["+O(C.trimBox.bottomLeftX)+" "+O(C.trimBox.bottomLeftY)+" "+O(C.trimBox.topRightX)+" "+O(C.trimBox.topRightY)+"]"),C.artBox!==null&&ce("/ArtBox ["+O(C.artBox.bottomLeftX)+" "+O(C.artBox.bottomLeftY)+" "+O(C.artBox.topRightX)+" "+O(C.artBox.topRightY)+"]"),typeof C.userUnit=="number"&&C.userUnit!==1&&ce("/UserUnit "+C.userUnit),Ie.publish("putPage",{objId:be,pageContext:Ue[Z],pageNumber:Z,page:he}),ce("/Contents "+Ne+" 0 R"),ce(">>"),ce("endobj");var ze=he.join(` 369`);return k===H&&(ze+=` 370Q`),jn(Ne,!0),ts({data:ze,filters:or(),objectId:Ne}),ce("endobj"),be},hs=g.__private__.putPages=function(){var C,Z,he=[];for(C=1;C<=ye;C++)Ue[C].objId=fn(),Ue[C].contentsObjId=fn();for(C=1;C<=ye;C++)he.push(Ks({number:C,data:Oe[C],objId:Ue[C].objId,contentsObjId:Ue[C].contentsObjId,mediaBox:Ue[C].mediaBox,cropBox:Ue[C].cropBox,bleedBox:Ue[C].bleedBox,trimBox:Ue[C].trimBox,artBox:Ue[C].artBox,userUnit:Ue[C].userUnit,rootDictionaryObjId:er,resourceDictionaryObjId:dn}));jn(er,!0),ce("<</Type /Pages");var be="/Kids [";for(Z=0;Z<ye;Z++)be+=he[Z]+" 0 R ";ce(be+"]"),ce("/Count "+ye),ce(">>"),ce("endobj"),Ie.publish("postPutPages")},ns=function(C){Ie.publish("putFont",{font:C,out:ce,newObject:Qt,putStream:ts}),C.isAlreadyPutted!==!0&&(C.objectNumber=Qt(),ce("<<"),ce("/Type /Font"),ce("/BaseFont /"+Ef(C.postScriptName)),ce("/Subtype /Type1"),typeof C.encoding=="string"&&ce("/Encoding /"+C.encoding),ce("/FirstChar 32"),ce("/LastChar 255"),ce(">>"),ce("endobj"))},za=function(C){C.objectNumber=Qt();var Z=[];Z.push({key:"Type",value:"/XObject"}),Z.push({key:"Subtype",value:"/Form"}),Z.push({key:"BBox",value:"["+[O(C.x),O(C.y),O(C.x+C.width),O(C.y+C.height)].join(" ")+"]"}),Z.push({key:"Matrix",value:"["+C.matrix.toString()+"]"});var he=C.pages[1].join(` 371`);ts({data:he,additionalKeyValues:Z,objectId:C.objectNumber}),ce("endobj")},Bs=function(C,Z){Z||(Z=21);var he=Qt(),be=(function(Ye,bt){var Pt,Wt=[],tn=1/(bt-1);for(Pt=0;Pt<1;Pt+=tn)Wt.push(Pt);if(Wt.push(1),Ye[0].offset!=0){var An={offset:0,color:Ye[0].color};Ye.unshift(An)}if(Ye[Ye.length-1].offset!=1){var cr={offset:1,color:Ye[Ye.length-1].color};Ye.push(cr)}for(var Sr="",Qn=0,Br=0;Br<Wt.length;Br++){for(Pt=Wt[Br];Pt>Ye[Qn+1].offset;)Qn++;var Tr=Ye[Qn].offset,ss=(Pt-Tr)/(Ye[Qn+1].offset-Tr),gi=Ye[Qn].color,Ca=Ye[Qn+1].color;Sr+=Y(Math.round((1-ss)*gi[0]+ss*Ca[0]).toString(16))+Y(Math.round((1-ss)*gi[1]+ss*Ca[1]).toString(16))+Y(Math.round((1-ss)*gi[2]+ss*Ca[2]).toString(16))}return Sr.trim()})(C.colors,Z),Ne=[];Ne.push({key:"FunctionType",value:"0"}),Ne.push({key:"Domain",value:"[0.0 1.0]"}),Ne.push({key:"Size",value:"["+Z+"]"}),Ne.push({key:"BitsPerSample",value:"8"}),Ne.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ne.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ts({data:be,additionalKeyValues:Ne,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:he}),ce("endobj"),C.objectNumber=Qt(),ce("<< /ShadingType "+C.type),ce("/ColorSpace /DeviceRGB");var ze="/Coords ["+O(parseFloat(C.coords[0]))+" "+O(parseFloat(C.coords[1]))+" ";C.type===2?ze+=O(parseFloat(C.coords[2]))+" "+O(parseFloat(C.coords[3])):ze+=O(parseFloat(C.coords[2]))+" "+O(parseFloat(C.coords[3]))+" "+O(parseFloat(C.coords[4]))+" "+O(parseFloat(C.coords[5])),ce(ze+="]"),C.matrix&&ce("/Matrix ["+C.matrix.toString()+"]"),ce("/Function "+he+" 0 R"),ce("/Extend [true true]"),ce(">>"),ce("endobj")},wa=function(C,Z){var he=fn(),be=Qt();Z.push({resourcesOid:he,objectOid:be}),C.objectNumber=be;var Ne=[];Ne.push({key:"Type",value:"/Pattern"}),Ne.push({key:"PatternType",value:"1"}),Ne.push({key:"PaintType",value:"1"}),Ne.push({key:"TilingType",value:"1"}),Ne.push({key:"BBox",value:"["+C.boundingBox.map(O).join(" ")+"]"}),Ne.push({key:"XStep",value:O(C.xStep)}),Ne.push({key:"YStep",value:O(C.yStep)}),Ne.push({key:"Resources",value:he+" 0 R"}),C.matrix&&Ne.push({key:"Matrix",value:"["+C.matrix.toString()+"]"}),ts({data:C.stream,additionalKeyValues:Ne,objectId:C.objectNumber}),ce("endobj")},Eo=function(C){for(var Z in C.objectNumber=Qt(),ce("<<"),C)switch(Z){case"opacity":ce("/ca "+j(C[Z]));break;case"stroke-opacity":ce("/CA "+j(C[Z]))}ce(">>"),ce("endobj")},Ha=function(C){jn(C.resourcesOid,!0),ce("<<"),ce("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var Z in ce("/Font <<"),mt)mt.hasOwnProperty(Z)&&(m===!1||m===!0&&y.hasOwnProperty(Z))&&ce("/"+Z+" "+mt[Z].objectNumber+" 0 R");ce(">>")})(),(function(){if(Object.keys(_t).length>0){for(var Z in ce("/Shading <<"),_t)_t.hasOwnProperty(Z)&&_t[Z]instanceof Kc&&_t[Z].objectNumber>=0&&ce("/"+Z+" "+_t[Z].objectNumber+" 0 R");Ie.publish("putShadingPatternDict"),ce(">>")}})(),(function(Z){if(Object.keys(_t).length>0){for(var he in ce("/Pattern <<"),_t)_t.hasOwnProperty(he)&&_t[he]instanceof g.TilingPattern&&_t[he].objectNumber>=0&&_t[he].objectNumber<Z&&ce("/"+he+" "+_t[he].objectNumber+" 0 R");Ie.publish("putTilingPatternDict"),ce(">>")}})(C.objectOid),(function(){if(Object.keys(yt).length>0){var Z;for(Z in ce("/ExtGState <<"),yt)yt.hasOwnProperty(Z)&&yt[Z].objectNumber>=0&&ce("/"+Z+" "+yt[Z].objectNumber+" 0 R");Ie.publish("putGStateDict"),ce(">>")}})(),(function(){for(var Z in ce("/XObject <<"),rt)rt.hasOwnProperty(Z)&&rt[Z].objectNumber>=0&&ce("/"+Z+" "+rt[Z].objectNumber+" 0 R");Ie.publish("putXobjectDict"),ce(">>")})(),ce(">>"),ce("endobj")},wr=function(C){Et[C.fontName]=Et[C.fontName]||{},Et[C.fontName][C.fontStyle]=C.id},hc=function(C,Z,he,be,Ne){var ze={id:"F"+(Object.keys(mt).length+1).toString(10),postScriptName:C,fontName:Z,fontStyle:he,encoding:be,isStandardFont:Ne||!1,metadata:{}};return Ie.publish("addFont",{font:ze,instance:this}),mt[ze.id]=ze,wr(ze),ze.id},zs=g.__private__.pdfEscape=g.pdfEscape=function(C,Z){return(function(he,be){var Ne,ze,Ye,bt,Pt,Wt,tn,An,cr;if(Ye=(be=be||{}).sourceEncoding||"Unicode",Pt=be.outputEncoding,(be.autoencode||Pt)&&mt[lt].metadata&&mt[lt].metadata[Ye]&&mt[lt].metadata[Ye].encoding&&(bt=mt[lt].metadata[Ye].encoding,!Pt&&mt[lt].encoding&&(Pt=mt[lt].encoding),!Pt&&bt.codePages&&(Pt=bt.codePages[0]),typeof Pt=="string"&&(Pt=bt[Pt]),Pt)){for(tn=!1,Wt=[],Ne=0,ze=he.length;Ne<ze;Ne++)(An=Pt[he.charCodeAt(Ne)])?Wt.push(String.fromCharCode(An)):Wt.push(he[Ne]),Wt[Ne].charCodeAt(0)>>8&&(tn=!0);he=Wt.join("")}for(Ne=he.length;tn===void 0&&Ne!==0;)he.charCodeAt(Ne-1)>>8&&(tn=!0),Ne--;if(!tn)return he;for(Wt=be.noBOM?[]:[254,255],Ne=0,ze=he.length;Ne<ze;Ne++){if((cr=(An=he.charCodeAt(Ne))>>8)>>8)throw new Error("Character at position "+Ne+" of string '"+he+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Wt.push(cr),Wt.push(An-(cr<<8))}return String.fromCharCode.apply(void 0,Wt)})(C,Z).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Sa=g.__private__.beginPage=function(C){Oe[++ye]=[],Ue[ye]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(C[0]),topRightY:Number(C[1])}},mc(ye),Je(Oe[B])},oi=function(C,Z){var he,be,Ne;switch(n=Z||n,typeof C=="string"&&(he=_(C.toLowerCase()),Array.isArray(he)&&(be=he[0],Ne=he[1])),Array.isArray(C)&&(be=C[0]*dt,Ne=C[1]*dt),isNaN(be)&&(be=a[0],Ne=a[1]),(be>14400||Ne>14400)&&(ar.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),be=Math.min(14400,be),Ne=Math.min(14400,Ne)),a=[be,Ne],n.substr(0,1)){case"l":Ne>be&&(a=[Ne,be]);break;case"p":be>Ne&&(a=[Ne,be])}Sa(a),It(To),ce(Gs),pl!==0&&ce(pl+" J"),Yr!==0&&ce(Yr+" j"),Ie.publish("addPage",{pageNumber:ye})},pc=function(C){C>0&&C<=ye&&(Oe.splice(C,1),Ue.splice(C,1),ye--,B>ye&&(B=ye),this.setPage(B))},mc=function(C){C>0&&C<=ye&&(B=C)},gc=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return Oe.length-1},bu=function(C,Z,he){var be,Ne=void 0;return he=he||{},C=C!==void 0?C:mt[lt].fontName,Z=Z!==void 0?Z:mt[lt].fontStyle,be=C.toLowerCase(),Et[be]!==void 0&&Et[be][Z]!==void 0?Ne=Et[be][Z]:Et[C]!==void 0&&Et[C][Z]!==void 0?Ne=Et[C][Z]:he.disableWarning===!1&&ar.warn("Unable to look up font label for font '"+C+"', '"+Z+"'. Refer to getFontList() for available fonts."),Ne||he.noFallback||(Ne=Et.times[Z])==null&&(Ne=Et.times.normal),Ne},Hs=g.__private__.putInfo=function(){var C=Qt(),Z=function(be){return be};for(var he in h!==null&&(Z=Ur.encryptor(C,0)),ce("<<"),ce("/Producer ("+zs(Z("jsPDF "+Ot.version))+")"),vt)vt.hasOwnProperty(he)&&vt[he]&&ce("/"+he.substr(0,1).toUpperCase()+he.substr(1)+" ("+zs(Z(vt[he]))+")");ce("/CreationDate ("+zs(Z(te))+")"),ce(">>"),ce("endobj")},li=g.__private__.putCatalog=function(C){var Z=(C=C||{}).rootDictionaryObjId||er;switch(Qt(),ce("<<"),ce("/Type /Catalog"),ce("/Pages "+Z+" 0 R"),ot||(ot="fullwidth"),ot){case"fullwidth":ce("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ce("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ce("/OpenAction [3 0 R /Fit]");break;case"original":ce("/OpenAction [3 0 R /XYZ null null 1]");break;default:var he=""+ot;he.substr(he.length-1)==="%"&&(ot=parseInt(ot)/100),typeof ot=="number"&&ce("/OpenAction [3 0 R /XYZ null null "+j(ot)+"]")}switch(Lt||(Lt="continuous"),Lt){case"continuous":ce("/PageLayout /OneColumn");break;case"single":ce("/PageLayout /SinglePage");break;case"two":case"twoleft":ce("/PageLayout /TwoColumnLeft");break;case"tworight":ce("/PageLayout /TwoColumnRight")}tt&&ce("/PageMode /"+tt),Ie.publish("putCatalog"),ce(">>"),ce("endobj")},Aa=g.__private__.putTrailer=function(){ce("trailer"),ce("<<"),ce("/Size "+(oe+1)),ce("/Root "+oe+" 0 R"),ce("/Info "+(oe-1)+" 0 R"),h!==null&&ce("/Encrypt "+Ur.oid+" 0 R"),ce("/ID [ <"+L+"> <"+L+"> ]"),ce(">>")},On=g.__private__.putHeader=function(){ce("%PDF-"+N),ce("%ºÃˆ ")},vc=g.__private__.putXRef=function(){var C="0000000000";ce("xref"),ce("0 "+(oe+1)),ce("0000000000 65535 f ");for(var Z=1;Z<=oe;Z++)typeof le[Z]=="function"?ce((C+le[Z]()).slice(-10)+" 00000 n "):le[Z]!==void 0?ce((C+le[Z]).slice(-10)+" 00000 n "):ce("0000000000 00000 n ")},qa=g.__private__.buildDocument=function(){var C;oe=0,ge=0,me=[],le=[],Ae=[],er=fn(),dn=fn(),Je(me),Ie.publish("buildDocument"),On(),hs(),(function(){Ie.publish("putAdditionalObjects");for(var he=0;he<Ae.length;he++){var be=Ae[he];jn(be.objId,!0),ce(be.content),ce("endobj")}Ie.publish("postPutAdditionalObjects")})(),C=[],(function(){for(var he in mt)mt.hasOwnProperty(he)&&(m===!1||m===!0&&y.hasOwnProperty(he))&&ns(mt[he])})(),(function(){var he;for(he in yt)yt.hasOwnProperty(he)&&Eo(yt[he])})(),(function(){for(var he in rt)rt.hasOwnProperty(he)&&za(rt[he])})(),(function(he){var be;for(be in _t)_t.hasOwnProperty(be)&&(_t[be]instanceof Kc?Bs(_t[be]):_t[be]instanceof Lf&&wa(_t[be],he))})(C),Ie.publish("putResources"),C.forEach(Ha),Ha({resourcesOid:dn,objectOid:Number.MAX_SAFE_INTEGER}),Ie.publish("postPutResources"),h!==null&&(Ur.oid=Qt(),ce("<<"),ce("/Filter /Standard"),ce("/V "+Ur.v),ce("/R "+Ur.r),ce("/U <"+Ur.toHexString(Ur.U)+">"),ce("/O <"+Ur.toHexString(Ur.O)+">"),ce("/P "+Ur.P),ce(">>"),ce("endobj")),Hs(),li();var Z=ge;return vc(),Aa(),ce("startxref"),ce(""+Z),ce("%%EOF"),Je(Oe[B]),me.join(` 372`)},Vi=g.__private__.getBlob=function(C){return new Blob([it(C)],{type:"application/pdf"})},yc=g.output=g.__private__.output=($t=function(C,Z){switch(typeof(Z=Z||{})=="string"?Z={filename:Z}:Z.filename=Z.filename||"generated.pdf",C){case void 0:return qa();case"save":g.save(Z.filename);break;case"arraybuffer":return it(qa());case"blob":return Vi(qa());case"bloburi":case"bloburl":if(Zt.URL!==void 0&&typeof Zt.URL.createObjectURL=="function")return Zt.URL&&Zt.URL.createObjectURL(Vi(qa()))||void 0;ar.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var he="",be=qa();try{he=hw(be)}catch{he=hw(unescape(encodeURIComponent(be)))}return"data:application/pdf;filename="+Z.filename+";base64,"+he;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Zt)==="[object Window]"){var Ne="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ze=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Z.pdfObjectUrl&&(Ne=Z.pdfObjectUrl,ze="");var Ye='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Ne+'"'+ze+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Z)+");<\/script></body></html>",bt=Zt.open();return bt!==null&&bt.document.write(Ye),bt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Zt)==="[object Window]"){var Pt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Z.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Z.filename+'" width="500px" height="400px" /></body></html>',Wt=Zt.open();if(Wt!==null){Wt.document.write(Pt);var tn=this;Wt.document.documentElement.querySelector("#pdfViewer").onload=function(){Wt.document.title=Z.filename,Wt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(tn.output("bloburl"))}}return Wt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Zt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var An='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Z)+'"></iframe></body></html>',cr=Zt.open();if(cr!==null&&(cr.document.write(An),cr.document.title=Z.filename),cr||typeof safari>"u")return cr;break;case"datauri":case"dataurl":return Zt.document.location.href=this.output("datauristring",Z);default:return null}},$t.foo=function(){try{return $t.apply(this,arguments)}catch(he){var C=he.stack||"";~C.indexOf(" at ")&&(C=C.split(" at ")[1]);var Z="Error in function "+C.split(` 373`)[0].split("<")[0]+": "+he.message;if(!Zt.console)throw new Error(Z);Zt.console.error(Z,he),Zt.alert&&alert(Z)}},$t.foo.bar=$t,$t.foo),ws=function(C){return Array.isArray(at)===!0&&at.indexOf(C)>-1};switch(r){case"pt":dt=1;break;case"mm":dt=72/25.4;break;case"cm":dt=72/2.54;break;case"in":dt=72;break;case"px":dt=ws("px_scaling")==1?.75:96/72;break;case"pc":case"em":dt=12;break;case"ex":dt=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);dt=r}var Ur=null;ee(),X();var Pr=g.__private__.getPageInfo=g.getPageInfo=function(C){if(isNaN(C)||C%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ue[C].objId,pageNumber:C,pageContext:Ue[C]}},dl=g.__private__.getPageInfoByObjId=function(C){if(isNaN(C)||C%1!=0)throw new Error("Invalid argument passed to
373jsPDF.getPageInfoByObjId");for(var Z in Ue)if(Ue[Z].objId===C)break;return Pr(Z)},xu=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:Ue[B].objId,pageNumber:B,pageContext:Ue[B]}};g.addPage=function(){return oi.apply(this,arguments),this},g.setPage=function(){return mc.apply(this,arguments),Je.call(this,Oe[B]),this},g.insertPage=function(C){return this.addPage(),this.movePage(B,C),this},g.movePage=function(C,Z){var he,be;if(C>Z){he=Oe[C],be=Ue[C];for(var Ne=C;Ne>Z;Ne--)Oe[Ne]=Oe[Ne-1],Ue[Ne]=Ue[Ne-1];Oe[Z]=he,Ue[Z]=be,this.setPage(Z)}else if(C<Z){he=Oe[C],be=Ue[C];for(var ze=C;ze<Z;ze++)Oe[ze]=Oe[ze+1],Ue[ze]=Ue[ze+1];Oe[Z]=he,Ue[Z]=be,this.setPage(Z)}return this},g.deletePage=function(){return pc.apply(this,arguments),this},g.__private__.text=g.text=function(C,Z,he,be,Ne){var ze,Ye,bt,Pt,Wt,tn,An,cr,Sr,Qn=(be=be||{}).scope||this;if(typeof C=="number"&&typeof Z=="number"&&(typeof he=="string"||Array.isArray(he))){var Br=he;he=Z,Z=C,C=Br}if(arguments[3]instanceof Ke==0?(bt=arguments[4],Pt=arguments[5],zn(An=arguments[3])==="object"&&An!==null||(typeof bt=="string"&&(Pt=bt,bt=null),typeof An=="string"&&(Pt=An,An=null),typeof An=="number"&&(bt=An,An=null),be={flags:An,angle:bt,align:Pt})):(R("The transform parameter of text() with a Matrix value"),Sr=Ne),isNaN(Z)||isNaN(he)||C==null)throw new Error("Invalid arguments passed to jsPDF.text");if(C.length===0)return Qn;var Tr,ss="",gi=typeof be.lineHeightFactor=="number"?be.lineHeightFactor:ci,Ca=Qn.internal.scaleFactor;function vi(Ln){return Ln=Ln.split(" ").join(Array(be.TabLen||9).join(" ")),zs(Ln,An)}function Ec(Ln){for(var Nn,$n=Ln.concat(),Nr=[],Ja=$n.length;Ja--;)typeof(Nn=$n.shift())=="string"?Nr.push(Nn):Array.isArray(Ln)&&(Nn.length===1||Nn[1]===void 0&&Nn[2]===void 0)?Nr.push(Nn[0]):Nr.push([Nn[0],Nn[1],Nn[2]]);return Nr}function gl(Ln,Nn){var $n;if(typeof Ln=="string")$n=Nn(Ln)[0];else if(Array.isArray(Ln)){for(var Nr,Ja,ja=Ln.concat(),ko=[],jc=ja.length;jc--;)typeof(Nr=ja.shift())=="string"?ko.push(Nn(Nr)[0]):Array.isArray(Nr)&&typeof Nr[0]=="string"&&(Ja=Nn(Nr[0],Nr[1],Nr[2]),ko.push([Ja[0],Ja[1],Ja[2]]));$n=ko}return $n}var Va=!1,Ea=!0;if(typeof C=="string")Va=!0;else if(Array.isArray(C)){var Do=C.concat();Ye=[];for(var yi,Qr=Do.length;Qr--;)(typeof(yi=Do.shift())!="string"||Array.isArray(yi)&&typeof yi[0]!="string")&&(Ea=!1);Va=Ea}if(Va===!1)throw new Error('Type of text must be string or Array. "'+C+'" is not recognized.');typeof C=="string"&&(C=C.match(/[\r?\n]/)?C.split(/\r\n|\r|\n/g):[C]);var Qi=De/Qn.internal.scaleFactor,$i=Qi*(gi-1);switch(be.baseline){case"bottom":he-=$i;break;case"top":he+=Qi-$i;break;case"hanging":he+=Qi-2*$i;break;case"middle":he+=Qi/2-$i}if((tn=be.maxWidth||0)>0&&(typeof C=="string"?C=Qn.splitTextToSize(C,tn):Object.prototype.toString.call(C)==="[object Array]"&&(C=C.reduce(function(Ln,Nn){return Ln.concat(Qn.splitTextToSize(Nn,tn))},[]))),ze={text:C,x:Z,y:he,options:be,mutex:{pdfEscape:zs,activeFontKey:lt,fonts:mt,activeFontSize:De}},Ie.publish("preProcessText",ze),C=ze.text,bt=(be=ze.options).angle,Sr instanceof Ke==0&&bt&&typeof bt=="number"){bt*=Math.PI/180,be.rotationDirection===0&&(bt=-bt),k===H&&(bt=-bt);var vl=Math.cos(bt),Ya=Math.sin(bt);Sr=new Ke(vl,Ya,-Ya,vl,0,0)}else bt&&bt instanceof Ke&&(Sr=bt);k!==H||Sr||(Sr=on),(Wt=be.charSpace||Zs)!==void 0&&(ss+=O($(Wt))+` Tc 374`,this.setCharSpace(this.getCharSpace()||0)),(cr=be.horizontalScale)!==void 0&&(ss+=O(100*cr)+` Tz 375`),be.lang;var As=-1,bi=be.renderingMode!==void 0?be.renderingMode:be.stroke,yl=Qn.internal.getCurrentPageInfo().pageContext;switch(bi){case 0:case!1:case"fill":As=0;break;case 1:case!0:case"stroke":As=1;break;case 2:case"fillThenStroke":As=2;break;case 3:case"invisible":As=3;break;case 4:case"fillAndAddForClipping":As=4;break;case 5:case"strokeAndAddPathForClipping":As=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":As=6;break;case 7:case"addToPathForClipping":As=7}var Pc=yl.usedRenderingMode!==void 0?yl.usedRenderingMode:-1;As!==-1?ss+=As+` Tr 376`:Pc!==-1&&(ss+=`0 Tr 377`),As!==-1&&(yl.usedRenderingMode=As),Pt=be.align||"left";var Ws,Pa=De*gi,xi=Qn.internal.pageSize.getWidth(),Tc=mt[lt];Wt=be.charSpace||Zs,tn=be.maxWidth||0,An=Object.assign({autoencode:!0,noBOM:!0},be.flags);var Ta=[],Xi=function(Ln){return Qn.getStringUnitWidth(Ln,{font:Tc,charSpace:Wt,fontSize:De,doKerning:!1})*De/Ca};if(Object.prototype.toString.call(C)==="[object Array]"){var Os;Ye=Ec(C),Pt!=="left"&&(Ws=Ye.map(Xi));var Ns,Qa=0;if(Pt==="right"){Z-=Ws[0],C=[],Qr=Ye.length;for(var $a=0;$a<Qr;$a++)$a===0?(Ns=qs(Z),Os=rs(he)):(Ns=$(Qa-Ws[$a]),Os=-Pa),C.push([Ye[$a],Ns,Os]),Qa=Ws[$a]}else if(Pt==="center"){Z-=Ws[0]/2,C=[],Qr=Ye.length;for(var wi=0;wi<Qr;wi++)wi===0?(Ns=qs(Z),Os=rs(he)):(Ns=$((Qa-Ws[wi])/2),Os=-Pa),C.push([Ye[wi],Ns,Os]),Qa=Ws[wi]}else if(Pt==="left"){C=[],Qr=Ye.length;for(var bl=0;bl<Qr;bl++)C.push(Ye[bl])}else if(Pt==="justify"&&Tc.encoding==="Identity-H"){C=[],Qr=Ye.length,tn=tn!==0?tn:xi;for(var xl=0,Ar=0;Ar<Qr;Ar++)if(Os=Ar===0?rs(he):-Pa,Ns=Ar===0?qs(Z):xl,Ar<Qr-1){var Tu=$((tn-Ws[Ar])/(Ye[Ar].split(" ").length-1)),Xa=Ye[Ar].split(" ");C.push([Xa[0]+" ",Ns,Os]),xl=0;for(var Ka=1;Ka<Xa.length;Ka++){var as=(Xi(Xa[Ka-1]+" "+Xa[Ka])-Xi(Xa[Ka]))*Ca+Tu;Ka==Xa.length-1?C.push([Xa[Ka],as,0]):C.push([Xa[Ka]+" ",as,0]),xl-=as}}else C.push([Ye[Ar],Ns,Os]);C.push(["",xl,0])}else{if(Pt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(C=[],Qr=Ye.length,tn=tn!==0?tn:xi,Ar=0;Ar<Qr;Ar++){Os=Ar===0?rs(he):-Pa,Ns=Ar===0?qs(Z):0;var Si=Ye[Ar].split(" ").length-1,wl=Si>0?(tn-Ws[Ar])/Si:0;Ar<Qr-1?Ta.push(O($(wl))):Ta.push(0),C.push([Ye[Ar],Ns,Os])}}}(typeof be.R2L=="boolean"?be.R2L:nt)===!0&&(C=gl(C,function(Ln,Nn,$n){return[Ln.split("").reverse().join(""),Nn,$n]})),ze={text:C,x:Z,y:he,options:be,mutex:{pdfEscape:zs,activeFontKey:lt,fonts:mt,activeFontSize:De}},Ie.publish("postProcessText",ze),C=ze.text,Tr=ze.mutex.isHex||!1;var Sl=mt[lt].encoding;Sl!=="WinAnsiEncoding"&&Sl!=="StandardEncoding"||(C=gl(C,function(Ln,Nn,$n){return[vi(Ln),Nn,$n]})),Ye=Ec(C),C=[];for(var Ai,Ni,Za,Mo=Array.isArray(Ye[0])?1:0,Vs="",_i=function(Ln,Nn,$n){var Nr="";return $n instanceof Ke?($n=typeof be.angle=="number"?Gt($n,new Ke(1,0,0,1,Ln,Nn)):Gt(new Ke(1,0,0,1,Ln,Nn),$n),k===H&&($n=Gt(new Ke(1,0,0,-1,0,0),$n)),Nr=$n.join(" ")+` Tm 378`):Nr=O(Ln)+" "+O(Nn)+` Td 379`,Nr},ps=0;ps<Ye.length;ps++){switch(Vs="",Mo){case 1:Za=(Tr?"<":"(")+Ye[ps][0]+(Tr?">":")"),Ai=parseFloat(Ye[ps][1]),Ni=parseFloat(Ye[ps][2]);break;case 0:Za=(Tr?"<":"(")+Ye[ps]+(Tr?">":")"),Ai=qs(Z),Ni=rs(he)}Ta!==void 0&&Ta[ps]!==void 0&&(Vs=Ta[ps]+` Tw
380`),ps===0?C.push(Vs+_i(Ai,Ni,Sr)+Za):Mo===0?C.push(Vs+Za):Mo===1&&C.push(Vs+_i(Ai,Ni,Sr)+Za)}C=Mo===0?C.join(` Tj 381T* `):C.join(` Tj 382`),C+=` Tj 383`;var ea=`BT 384/`;return ea+=lt+" "+De+` Tf 385`,ea+=O(De*gi)+` TL 386`,ea+=Ga+` 387`,ea+=ss,ea+=C,ce(ea+="ET"),y[lt]=!0,Qn};var bc=g.__private__.clip=g.clip=function(C){return ce(C==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return bc("evenodd")},g.__private__.discardPath=g.discardPath=function(){return ce("n"),this};var Ss=g.__private__.isValidStyle=function(C){var Z=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(C)!==-1&&(Z=!0),Z};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(C){return Ss(C)&&(d=C),this};var xc=g.__private__.getStyle=g.getStyle=function(C){var Z=d;switch(C){case"D":case"S":Z="S";break;case"F":Z="f";break;case"FD":case"DF":Z="B";break;case"f":case"f*":case"B":case"B*":Z=C}return Z},wc=g.close=function(){return ce("h"),this};g.stroke=function(){return ce("S"),this},g.fill=function(C){return Na("f",C),this},g.fillEvenOdd=function(C){return Na("f*",C),this},g.fillStroke=function(C){return Na("B",C),this},g.fillStrokeEvenOdd=function(C){return Na("B*",C),this};var Na=function(C,Z){zn(Z)==="object"?Su(Z,C):ce(C)},Po=function(C){C===null||k===H&&C===void 0||(C=xc(C),ce(C))};function wu(C,Z,he,be,Ne){var ze=new Lf(Z||this.boundingBox,he||this.xStep,be||this.yStep,this.gState,Ne||this.matrix);ze.stream=this.stream;var Ye=C+"$$"+this.cloneIndex+++"$$";return en(Ye,ze),ze}var Su=function(C,Z){var he=pn[C.key],be=_t[he];if(be instanceof Kc)ce("q"),ce(Sc(Z)),be.gState&&g.setGState(be.gState),ce(C.matrix.toString()+" cm"),ce("/"+he+" sh"),ce("Q");else if(be instanceof Lf){var Ne=new Ke(1,0,0,-1,0,mi());C.matrix&&(Ne=Ne.multiply(C.matrix||on),he=wu.call(be,C.key,C.boundingBox,C.xStep,C.yStep,Ne).id),ce("q"),ce("/Pattern cs"),ce("/"+he+" scn"),be.gState&&g.setGState(be.gState),ce(Z),ce("Q")}},Sc=function(C){switch(C){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Ac=g.moveTo=function(C,Z){return ce(O($(C))+" "+O(W(Z))+" m"),this},Au=g.lineTo=function(C,Z){return ce(O($(C))+" "+O(W(Z))+" l"),this},js=g.curveTo=function(C,Z,he,be,Ne,ze){return ce([O($(C)),O(W(Z)),O($(he)),O(W(be)),O($(Ne)),O(W(ze)),"c"].join(" ")),this};g.__private__.line=g.line=function(C,Z,he,be,Ne){if(isNaN(C)||isNaN(Z)||isNaN(he)||isNaN(be)||!Ss(Ne))throw new Error("Invalid arguments passed to jsPDF.line");return k===z?this.lines([[he-C,be-Z]],C,Z,[1,1],Ne||"S"):this.lines([[he-C,be-Z]],C,Z,[1,1]).stroke()},g.__private__.lines=g.lines=function(C,Z,he,be,Ne,ze){var Ye,bt,Pt,Wt,tn,An,cr,Sr,Qn,Br,Tr,ss;if(typeof C=="number"&&(ss=he,he=Z,Z=C,C=ss),be=be||[1,1],ze=ze||!1,isNaN(Z)||isNaN(he)||!Array.isArray(C)||!Array.isArray(be)||!Ss(Ne)||typeof ze!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ac(Z,he),Ye=be[0],bt=be[1],Wt=C.length,Br=Z,Tr=he,Pt=0;Pt<Wt;Pt++)(tn=C[Pt]).length===2?(Br=tn[0]*Ye+Br,Tr=tn[1]*bt+Tr,Au(Br,Tr)):(An=tn[0]*Ye+Br,cr=tn[1]*bt+Tr,Sr=tn[2]*Ye+Br,Qn=tn[3]*bt+Tr,Br=tn[4]*Ye+Br,Tr=tn[5]*bt+Tr,js(An,cr,Sr,Qn,Br,Tr));return ze&&wc(),Po(Ne),this},g.path=function(C){for(var Z=0;Z<C.length;Z++){var he=C[Z],be=he.c;switch(he.op){case"m":Ac(be[0],be[1]);break;case"l":Au(be[0],be[1]);break;case"c":js.apply(this,be);break;case"h":wc()}}return this},g.__private__.rect=g.rect=function(C,Z,he,be,Ne){if(isNaN(C)||isNaN(Z)||isNaN(he)||isNaN(be)||!Ss(Ne))throw new Error("Invalid arguments passed to jsPDF.rect");return k===z&&(be=-be),ce([O($(C)),O(W(Z)),O($(he)),O($(be)),"re"].join(" ")),Po(Ne),this},g.__private__.triangle=g.triangle=function(C,Z,he,be,Ne,ze,Ye){if(isNaN(C)||isNaN(Z)||isNaN(he)||isNaN(be)||isNaN(Ne)||isNaN(ze)||!Ss(Ye))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[he-C,be-Z],[Ne-he,ze-be],[C-Ne,Z-ze]],C,Z,[1,1],Ye,!0),this},g.__private__.roundedRect=g.roundedRect=function(C,Z,he,be,Ne,ze,Ye){if(isNaN(C)||isNaN(Z)||isNaN(he)||isNaN(be)||isNaN(Ne)||isNaN(ze)||!Ss(Ye))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var bt=4/3*(Math.SQRT2-1);return Ne=Math.min(Ne,.5*he),ze=Math.min(ze,.5*be),this.lines([[he-2*Ne,0],[Ne*bt,0,Ne,ze-ze*bt,Ne,ze],[0,be-2*ze],[0,ze*bt,-Ne*bt,ze,-Ne,ze],[2*Ne-he,0],[
vendor: 4,299 bytes, line 387
387-Ne*bt,0,-Ne,-ze*bt,-Ne,-ze],[0,2*ze-be],[0,-ze*bt,Ne*bt,-ze,Ne,-ze]],C+Ne,Z,[1,1],Ye,!0),this},g.__private__.ellipse=g.ellipse=function(C,Z,he,be,Ne){if(isNaN(C)||isNaN(Z)||isNaN(he)||isNaN(be)||!Ss(Ne))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ze=4/3*(Math.SQRT2-1)*he,Ye=4/3*(Math.SQRT2-1)*be;return Ac(C+he,Z),js(C+he,Z-Ye,C+ze,Z-be,C,Z-be),js(C-ze,Z-be,C-he,Z-Ye,C-he,Z),js(C-he,Z+Ye,C-ze,Z+be,C,Z+be),js(C+ze,Z+be,C+he,Z+Ye,C+he,Z),Po(Ne),this},g.__private__.circle=g.circle=function(C,Z,he,be){if(isNaN(C)||isNaN(Z)||isNaN(he)||!Ss(be))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(C,Z,he,he,be)},g.setFont=function(C,Z,he){return he&&(Z=G(Z,he)),lt=bu(C,Z,{disableWarning:!1}),this};var _a=g.__private__.getFont=g.getFont=function(){return mt[bu.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var C,Z,he={};for(C in Et)if(Et.hasOwnProperty(C))for(Z in he[C]=[],Et[C])Et[C].hasOwnProperty(Z)&&he[C].push(Z);return he},g.addFont=function(C,Z,he,be,Ne){var ze=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ze.indexOf(arguments[3])!==-1?Ne=arguments[3]:arguments[3]&&ze.indexOf(arguments[3])==-1&&(he=G(he,be)),hc.call(this,C,Z,he,Ne=Ne||"Identity-H")};var ci,To=e.lineWidth||.200025,Yi=g.__private__.getLineWidth=g.getLineWidth=function(){return To},It=g.__private__.setLineWidth=g.setLineWidth=function(C){return To=C,ce(O($(C))+" w"),this};g.__private__.setLineDash=Ot.API.setLineDash=Ot.API.setLineDashPattern=function(C,Z){if(C=C||[],Z=Z||0,isNaN(Z)||!Array.isArray(C))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return C=C.map(function(he){return O($(he))}).join(" "),Z=O($(Z)),ce("["+C+"] "+Z+" d"),this};var Nu=g.__private__.getLineHeight=g.getLineHeight=function(){return De*ci};g.__private__.getLineHeight=g.getLineHeight=function(){return De*ci};var Nc=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(C){return typeof(C=C||1.15)=="number"&&(ci=C),this},_u=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return ci};Nc(e.lineHeight);var qs=g.__private__.getHorizontalCoordinate=function(C){return $(C)},rs=g.__private__.getVerticalCoordinate=function(C){return k===H?C:Ue[B].mediaBox.topRightY-Ue[B].mediaBox.bottomLeftY-$(C)},_c=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(C){return O(qs(C))},jo=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(C){return O(rs(C))},Gs=e.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return Sn(Gs)},g.__private__.setStrokeColor=g.setDrawColor=function(C,Z,he,be){return Gs=tr({ch1:C,ch2:Z,ch3:he,ch4:be,pdfColorType:"draw",precision:2}),ce(Gs),this};var Oo=e.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return Sn(Oo)},g.__private__.setFillColor=g.setFillColor=function(C,Z,he,be){return Oo=tr({ch1:C,ch2:Z,ch3:he,ch4:be,pdfColorType:"fill",precision:2}),ce(Oo),this};var Ga=e.textColor||"0 g",Cu=g.__private__.getTextColor=g.getTextColor=function(){return Sn(Ga)};g.__private__.setTextColor=g.setTextColor=function(C,Z,he,be){return Ga=tr({ch1:C,ch2:Z,ch3:he,ch4:be,pdfColorType:"text",precision:3}),this};var Zs=e.charSpace,hl=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(Zs||0)};g.__private__.setCharSpace=g.setCharSpace=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Zs=C,this};var pl=0;g.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},g.__private__.setLineCap=g.setLineCap=function(C){var Z=g.CapJoinStyles[C];if(Z===void 0)throw new Error("Line cap style of '"+C+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return pl=Z,ce(Z+" J"),this};var Yr=0;g.__private__.setLineJoin=g.setLineJoin=function(C){var Z=g.CapJoinStyles[C];if(Z===void 0)throw new Error("Line join style of '"+C+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Yr=Z,ce(Z+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(C){if(C=C||0,isNaN(C))throw new Error("Invalid argument passed to
387jsPDF.setLineMiterLimit");return ce(O($(C))+" M"),this},g.GState=_m,g.setGState=function(C){(C=typeof C=="string"?yt[jt[C]]:Wa(null,C)).equals(wn)||(ce("/"+C.id+" gs"),wn=C)};var Wa=function(C,Z){if(!C||!jt[C]){var he=!1;for(var be in yt)if(yt.hasOwnProperty(be)&&yt[be].equals(Z)){he=!0;break}if(he)Z=yt[be];else{var Ne="GS"+(Object.keys(yt).length+1).toString(10);yt[Ne]=Z,Z.id=Ne}return C&&(jt[C]=Z.id),Ie.publish("addGState",Z),Z}};g.addGState=function(C,Z){return Wa(C,Z),this},g.saveGraphicsState=function(){return ce("q"),qt.push({key:lt,size:De,color:Ga}),this},g.restoreGraphicsState=function(){ce("Q");var C=qt.pop();return lt=C.key,De=C.size,Ga=C.color,wn=null,this},g.setCurrentTransformationMatrix=function(C){return ce(C.toString()+" cm"),this},g.comment=function(C){return ce("#"+C),this};var Js=function(C,Z){var he=C||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return he},set:function(ze){isNaN(ze)||(he=parseFloat(ze))}});var be=Z||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return be},set:function(ze){isNaN(ze)||(be=parseFloat(ze))}});var Ne="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ne},set:function(ze){Ne=ze.toString()}}),this},ui=function(C,Z,he,be){Js.call(this,C,Z),this.type="rect";var Ne=he||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ne},set:function(Ye){isNaN(Ye)||(Ne=parseFloat(Ye))}});var ze=be||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ze},set:function(Ye){isNaN(Ye)||(ze=parseFloat(Ye))}}),this},ml=function(){this.page=ye,this.currentPage=B,this.pages=Oe.slice(0),this.pagesContext=Ue.slice(0),this.x=ut,this.y=Jt,this.matrix=Ft,this.width=di(B),this.height=Cc(B),this.outputDestination=Qe,this.id="",this.objectNumber=-1};ml.prototype.restore=function(){ye=this.page,B=this.currentPage,Ue=this.pagesContext,Oe=this.pages,ut=this.x,Jt=this.y,Ft=this.matrix,Ro(B,this.width),hi(B,this.height),Qe=this.outputDestination};var Lo=function(C,Z,he,be,Ne){Bt.push(new ml),ye=B=0,Oe=[],ut=C,Jt=Z,Ft=Ne,Sa([he,be])};for(var fi in g.beginFormObject=function(C,Z,he,be,Ne){return Lo(C,Z,he,be,Ne),this},g.endFormObject=function(C){return(function(Z){if(Rt[Z])Bt.pop().restore();else{var he=new ml,be="Xo"+(Object.keys(rt).length+1).toString(10);he.id=be,Rt[Z]=be,rt[be]=he,Ie.publish("addFormObject",he),Bt.pop().restore()}})(C),this},g.doFormObject=function(C,Z){var he=rt[Rt[C]];return ce("q"),ce(Z.toString()+" cm"),ce("/"+he.id+" Do"),ce("Q"),this},g.getFormObject=function(C){var Z=rt[Rt[C]];return{x:Z.x,y:Z.y,width:Z.width,height:Z.height,matrix:Z.matrix}},g.save=function(C,Z){return C=C||"generated.pdf",(Z=Z||{}).returnPromise=Z.returnPromise||!1,Z.returnPromise===!1?(Qc(Vi(qa()),C),typeof Qc.unload=="function"&&Zt.setTimeout&&setTimeout(Qc.unload,911),this):new Promise(function(he,be){try{var Ne=Qc(Vi(qa()),C);typeof Qc.unload=="function"&&Zt.setTimeout&&setTimeout(Qc.unload,911),he(Ne)}catch(ze){be(ze.message)}})},Ot.API)Ot.API.hasOwnProperty(fi)&&(fi==="events"&&Ot.API.events.length?(function(C,Z){var he,be,Ne;for(Ne=Z.length-1;Ne!==-1;Ne--)he=Z[Ne][0],be=Z[Ne][1],C.subscribe.apply(C,[he].concat(typeof be=="function"?[be]:be))})(Ie,Ot.API.events):g[fi]=Ot.API[fi]);function di(C){return Ue[C].mediaBox.topRightX-Ue[C].mediaBox.bottomLeftX}function Ro(C,Z){Ue[C].mediaBox.topRightX=Z+Ue[C].mediaBox.bottomLeftX}function Cc(C){return Ue[C].mediaBox.topRightY-Ue[C].mediaBox.bottomLeftY}function hi(C,Z){Ue[C].mediaBox.topRightY=Z+Ue[C].mediaBox.bottomLeftY}var pi=g.getPageWidth=function(C){return di(C=C||B)/dt},Eu=g.setPageWidth=function(C,Z){Ro(C,Z*dt)},mi=g.getPageHeight=function(C){return Cc(C=C||B)/dt},Pu=g.setPageHeight=function(C,Z){hi(C,Z*dt)};return g.internal={pdfEscape:zs,getStyle:xc,getFont:_a,getFontSize:Xe,getCharSpace:hl,getTextColor:Cu,getLineHeight:Nu,getLineHeightFactor:_u,getLineWidth:Yi,write:Ve,getHorizontalCoordinate:qs,getVerticalCoordinate:rs,getCoordinateString:_c,getVerticalCoordinateString:jo,collections:{},newObject:Qt,newAdditionalObject:es,newObjectDeferred:fn,newObjectDeferredBegin:jn,getFilters:or,putStream:ts,events:Ie,scaleFactor:dt,pageSize:{getWidth:function(){return pi(B)},setWidth:function(C){Eu(B,C)},getHeight:function(){return mi(B)},setHeight:function(C){Pu(B,C)}},encryptionOptions:h,encryption:Ur,getEncryptor:function(C){return h!==null?Ur.encryptor(C,0):function(Z){return Z}},output:yc,getNumberOfPages:gc,get pages(){return Oe}
vendor: 4,649 bytes, lines 387-389
387,out:ce,f2:j,f3:D,getPageInfo:Pr,getPageInfoByObjId:dl,getCurrentPageInfo:xu,getPDFVersion:w,Point:Js,Rectangle:ui,Matrix:Ke,hasHotfix:ws},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return pi(B)},set:function(C){Eu(B,C)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return mi(B)},set:function(C){Pu(B,C)},enumerable:!0,configurable:!0}),(function(C){for(var Z=0,he=et.length;Z<he;Z++){var be=hc.call(this,C[Z][0],C[Z][1],C[Z][2],et[Z][3],!0);m===!1&&(y[be]=!0);var Ne=C[Z][0].split("-");wr({id:be,fontName:Ne[0],fontStyle:Ne[1]||""})}Ie.publish("addFonts",{fonts:mt,dictionary:Et})}).call(g,et),lt="F1",oi(a,n),Ie.publish("initialized"),g}Cf.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Cf.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Cf.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("")},Cf.prototype.processOwnerPassword=function(e,t){return Tv(Pv(t).substr(0,5),e)},Cf.prototype.encryptor=function(e,t){var n=Pv(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return Tv(n,r)}},_m.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||zn(e)!==zn(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},Ot.API={events:[]},Ot.version="3.0.4";var kr=Ot.API,C2=1,yu=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},yf=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},sn=function(e){return e.toFixed(2)},Ql=function(e){return e.toFixed(5)};kr.__acroform__={};var xa=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},vw=function(e){return e*C2},po=function(e){var t=new cN,n=Nt.internal.getHeight(e)||0,r=Nt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(sn(r)),Number(sn(n))],t},L9=kr.__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},R9=kr.__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)},D9=kr.__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},qr=kr.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return D9(e,t-1)},Gr=kr.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return L9(e,t-1)},Wr=kr.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return R9(e,t-1)},M9=kr.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,a=e[0],o=e[1],l=e[2],c=e[3],f={};return f.lowerLeft_X=n(a)||0,f.lowerLeft_Y=r(o+c)||0,f.upperRight_X=n(a+l)||0,f.upperRight_Y=r(o)||0,[Number(sn(f.lowerLeft_X)),Number(sn(f.lowerLeft_Y)),Number(sn(f.upperRight_X)),Number(sn(f.upperRight_Y))]},k9=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=jv(e,n),a=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("/"+a+" "+sn(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=po(e);return o.scope=e.scope,o.stream=t.join(` 388`),o}},jv=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},a=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");a=e.multiline?a.map(function(j){return j.split(` 389`)}):a.map(function(j){return[j]});var o=n,l=Nt.internal.getHeight(e)||0;l=l<0?-l:l;var c=Nt.internal.getWidth(e)||0;c=c<0?-c:c;var f=function(j,D,$){if(j+1<a.length){var W=D+" "+a[j+1][0];return Bp(W,e,$).width<=c-4}return!1};o++;e:for(;o>0;){t="",o--;var d,h,m=Bp("3",e,o).height,y=e.multiline?l-o:(l-m)/2,g=y+=2,N=0,w=0,E=0;if(o<=0){t=`(...) Tj
390`,t+="% Width of Text: "+Bp(t,e,o=12).width+", FieldWidth:"+c+` 391`;break}for(var _="",z=0,H=0;H<a.length;H++)if(a.hasOwnProperty(H)){var k=!1;if(a[H].length!==1&&E!==a[H].length-1){if((m+2)*(z+2)+2>l)continue e;_+=a[H][E],k=!0,w=H,H--}else{_=(_+=a[H][E]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var K=parseInt(H),U=f(K,_,o),G=H>=a.length-1;if(U&&!G){_+=" ",E=0;continue}if(U||G){if(G)w=K;else if(e.multiline&&(m+2)*(z+2)+2>l)continue e}else{if(!e.multiline||(m+2)*(z+2)+2>l)continue e;w=K}}for(var O="",R=N;R<=w;R++){var Q=a[R];if(e.multiline){if(R===w){O+=Q[E]+" ",E=(E+1)%Q.length;continue}if(R===N){O+=Q[Q.length-1]+" ";continue}}O+=Q[0]+" "}switch(O=O.substr(O.length-1)==" "?O.substr(0,O.length-1):O,h=Bp(O,e,o).width,e.textAlign){case"right":d=c-h-2;break;case"center":d=(c-h)/2;break;default:d=2}t+=sn(d)+" "+sn(g)+` Td 392`,t+="("+yu(O)+`) Tj 393`,t+=-sn(d)+` 0 Td 394`,g=-(o+2),h=0,N=k?w:w+1,z++,_=""}break}return r.text=t,r.fontSize=o,r},Bp=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),a=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:a}},F9={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},I9=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)},U9=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(qi.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(F9)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");C2=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new uN,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 a in r)if(r.hasOwnProperty(a)){var o=r[a];o.objId=void 0,o.hasAnnotation&&I9(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,a){var o=!r;for(var l in r||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(l)){var c=r[l],f=[],d=c.Rect;if(c.Rect&&(c.Rect=M9(c.Rect,a)),a.internal.newObjectDeferredBegin(c.objId,!0),c.DA=Nt.createDefaultAppearanceStream(c),zn(c)==="object"&&typeof c.getKeyValueListForStream=="function"&&(f=c.getKeyValueListForStream()),c.Rect=d,c.hasAppearanceStream&&!c.appearanceStreamContent){var h=k9(c);f.push({key:"AP",value:"<</N "+h+">>"}),a.internal.acroformPlugin.xForms.push(h)}if(c.appearanceStreamContent){var m="";for(var y in c.appearanceStreamContent)if(c.appearanceStreamContent.hasOwnProperty(y)){var g=c.appearanceStreamContent[y];if(m+="/"+y+" ",m+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var l in g)if(g.hasOwnProperty(l)){var N=g[l];typeof N=="function"&&(N=N.call(a,c)),m+="/"+l+" "+N+" ",a.internal.acroformPlugin.xForms.indexOf(N)>=0||a.internal.acroformPlugin.xForms.push(N)}}else typeof(N=g)=="function"&&(N=N.call(a,c)),m+="/"+l+" "+N,a.internal.acroformPlugin.xForms.indexOf(N)>=0||a.internal.acroformPlugin.xForms.push(N);m+=">>"}f.push({key:"AP",value:`<< 395`+m+">>"})}a.internal.putStream({additionalKeyValues:f,objectId:c.objId}),a.internal.out("endobj")}o&&(function(w,E){for(var _ in w)if(w.hasOwnProperty(_)){var z=_,H=w[_];E.internal.newObjectDeferredBegin(H.objId,!0),zn(H)==="object"&&typeof H.putStream=="function"&&H.putStream(),delete w[z]}})(a.internal.acroformPlugin.xForms,a)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},lN=kr.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(l){return l};if(Array.isArray(e)){for(var a="[",o=0;o<e.length;o++)switch(o!==0&&(a+=" "),zn(e[o])){case"boolean":case"number":case"object":a+=e[o].toString();break;case"string":e[o].substr(0,1)!=="/"?(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),a+="("+yu(r(e[o].toString()))+")"):a+=e[o].toString()}return a+"]"}
vendor: 21,637 bytes, lines 395-406
395throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},w1=function(e,t,n){var r=function(a){return a};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+yu(r(e))+")"},bo=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})};bo.prototype.toString=function(){return this.objId+" 0 R"},bo.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},bo.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],a=this[r];a&&(Array.isArray(a)?e.push({key:r,value:lN(a,this.objId,this.scope)}):a instanceof bo?(a.scope=this.scope,e.push({key:r,value:a.objId+" 0 R"})):typeof a!="function"&&e.push({key:r,value:a}))}return e};var cN=function(){bo.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}})};xa(cN,bo);var uN=function(){bo.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)),"("+yu(n(e))+")"}},set:function(n){e=n}})};xa(uN,bo);var qi=function e(){bo.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute F supplied.');t=_}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!qr(t,3)},set:function(_){_?this.F=Gr(t,3):this.F=Wr(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute Ff supplied.');n=_}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(_){r=_!==void 0?_:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(_){r[0]=_}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(_){r[1]=_}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(_){r[2]=_}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(_){r[3]=_}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(_){switch(_){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=_;break;default:throw new Error('Invalid value "'+_+'" 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 Cm)return;o="FieldObject"+e.FieldNum++}var _=function(z){return z};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+yu(_(o))+")"},set:function(_){o=_.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(_){o=_}});var l="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return l},set:function(_){l=_}});var c="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return c},set:function(_){c=_}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return f},set:function(_){f=_}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/C2:d},set:function(_){d=_}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(_){h=_}});var m="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!m||this instanceof Cm||this instanceof eu))return w1(m,this.objId,this.scope)},set:function(_){_=_.toString(),m=_}});var y=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(y)return this instanceof xs==0?w1(y,this.objId,this.scope):y},set:function(_){_=_.toString(),y=this instanceof xs==0?_.substr(0,1)==="("?yf(_.substr(1,_.length-2)):yf(_):_}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof xs==1?yf(y.substr(1,y.length-1)):y},set:function(_){_=_.toString(),y=this instanceof xs==1?"/"+_:_}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(_){this.V=_}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof xs==0?w1(g,this.objId,this.scope):g},set:function(_){_=_.toString(),g=this instanceof xs==0?_.substr(0,1)==="("?yf(_.substr(1,_.length-2)):yf(_):_}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof xs==1?yf(g.substr(1,g.length-1)):g},set:function(_){_=_.toString(),g=this instanceof xs==1?"/"+_:_}}),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 N,w=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return w},set:function(_){_=!!_,w=_}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(N)return N},set:function(_){N=_}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,1)},set:function(_){_?this.Ff=Gr(this.Ff,1):this.Ff=Wr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,2)},set:function(_){_?this.Ff=Gr(this.Ff,2):this.Ff=Wr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,3)},set:function(_){_?this.Ff=Gr(this.Ff,3):this.Ff=Wr(this.Ff,3)}});var E=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(E!==null)return E},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');E=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(E){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:E=2;break;case"center":case 1:E=1;break;default:E=0}}})};xa(qi,bo);var Mf=function(){qi.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 lN(t,this.objId,this.scope)},set:function(n){var r,a;a=[],typeof(r=n)=="string"&&(a=(function(o,l,c){c||(c=1);for(var f,d=[];f=l.exec(o);)d.push(f[c]);return d})(r,/\((.*?)\)/g)),t=a}}),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!!qr(this.Ff,18)},set:function(n){n?this.Ff=Gr(this.Ff,18):this.Ff=Wr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Gr(this.Ff,19):this.Ff=Wr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,20)},set:function(n){n?(this.Ff=Gr(this.Ff,20),t.sort()):this.Ff=Wr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,22)},set:function(n){n?this.Ff=Gr(this.Ff,22):this.Ff=Wr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,23)},set:function(n){n?this.Ff=Gr(this.Ff,23):this.Ff=Wr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,27)},set:function(n){n?this.Ff=Gr(this.Ff,27):this.Ff=Wr(this.Ff,27)}}),this.hasAppearanceStream=!1};xa(Mf,qi);var kf=function(){Mf.call(this),this.fontName="helvetica",this.combo=!1};xa(kf,Mf);var Ff=function(){kf.call(this),this.combo=!0};xa(Ff,kf);var em=function(){Ff.call(this),this.edit=!0};xa(em,Ff);var xs=function(){qi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,15)},set:function(n){n?this.Ff=Gr(this.Ff,15):this.Ff=Wr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,16)},set:function(n){n?this.Ff=Gr(this.Ff,16):this.Ff=Wr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,17)},set:function(n){n?this.Ff=Gr(this.Ff,17):this.Ff=Wr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,26)},set:function(n){n?this.Ff=Gr(this.Ff,26):this.Ff=Wr(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,a=[];for(r in a.push("<<"),t)a.push("/"+r+" ("+yu(n(t[r]))+")");return a.push(">>"),a.join(` 396`)}},set:function(n){zn(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){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}})};xa(xs,qi);var tm=function(){xs.call(this),this.pushButton=!0};xa(tm,xs);var If=function(){xs.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:[]}})};xa(If,xs);var Cm=function(){var e,t;qi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){e=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(a){t=a}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(c){return c};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var o,l=[];for(o in l.push("<<"),r)l.push("/"+o+" ("+yu(a(r[o]))+")");return l.push(">>"),l.join(` 397`)},set:function(a){zn(a)==="object"&&(r=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(a){typeof a=="string"&&(r.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(a){n="/"+a}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Nt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};xa(Cm,qi),If.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()}},If.prototype.createOption=function(e){var t=new Cm;return t.Parent=this,t.optionName=e,this.Kids.push(t),B9.call(this.scope,t),t};var nm=function(){xs.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Nt.CheckBox.createAppearanceStream()};xa(nm,xs);var eu=function(){qi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,13)},set:function(t){t?this.Ff=Gr(this.Ff,13):this.Ff=Wr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,21)},set:function(t){t?this.Ff=Gr(this.Ff,21):this.Ff=Wr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,23)},set:function(t){t?this.Ff=Gr(this.Ff,23):this.Ff=Wr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,24)},set:function(t){t?this.Ff=Gr(this.Ff,24):this.Ff=Wr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,25)},set:function(t){t?this.Ff=Gr(this.Ff,25):this.Ff=Wr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,26)},set:function(t){t?this.Ff=Gr(this.Ff,26):this.Ff=Wr(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}})};xa(eu,qi);var rm=function(){eu.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!qr(this.Ff,14)},set:function(e){e?this.Ff=Gr(this.Ff,14):this.Ff=Wr(this.Ff,14)}}),this.password=!0};xa(rm,eu);var Nt={CheckBox:{createAppearanceStream:function(){return{N:{On:Nt.CheckBox.YesNormal},D:{On:Nt.CheckBox.YesPushDown,Off:Nt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=po(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,a=e.scope.__private__.encodeColorString(e.color),o=jv(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+sn(Nt.internal.getWidth(e))+" "+sn(Nt.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+sn(o.fontSize)+" Tf "+a),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(` 398`),t},YesNormal:function(e){var t=po(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),a=[],o=Nt.internal.getHeight(e),l=Nt.internal.getWidth(e),c=jv(e,e.caption);return a.push("1 g"),a.push("0 0 "+sn(l)+" "+sn(o)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+sn(l-1)+" "+sn(o-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+n+" "+sn(c.fontSize)+" Tf "+r),a.push(c.text),a.push("ET"),a.push("Q"),t.stream=a.join(` 399`),t},OffPushDown:function(e){var t=po(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+sn(Nt.internal.getWidth(e))+" "+sn(Nt.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 400`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Nt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Nt.RadioButton.Circle.YesNormal,t.D[e]=Nt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=po(e);t.scope=e.scope;var n=[],r=Nt.internal.getWidth(e)<=Nt.internal.getHeight(e)?Nt.internal.getWidth(e)/4:Nt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var a=Nt.internal.Bezier_C,o=Number((r*a).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Ql(Nt.internal.getWidth(e)/2)+" "+Ql(Nt.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(` 401`),t},YesPushDown:function(e){var t=po(e);t.scope=e.scope;var n=[],r=Nt.internal.getWidth(e)<=Nt.internal.getHeight(e)?Nt.internal.getWidth(e)/4:Nt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),o=Number((a*Nt.internal.Bezier_C).toFixed(5)),l=Number((r*Nt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ql(Nt.internal.getWidth(e)/2)+" "+Ql(Nt.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),n.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),n.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),n.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Ql(Nt.internal.getWidth(e)/2)+" "+Ql(Nt.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+l+" "+l+" "+r+" 0 "+r+" c"),n.push("-"+l+" "+r+" -"+r+" "+l+" -"+r+" 0 c"),n.push("-"+r+" -"+l+" -"+l+" -"+r+" 0 -"+r+" c"),n.push(l+" -"+r+" "+r+" -"+l+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 402`),t},OffPushDown:function(e){var t=po(e);t.scope=e.scope;var n=[],r=Nt.internal.getWidth(e)<=Nt.internal.getHeight(e)?Nt.internal.getWidth(e)/4:Nt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),o=Number((a*Nt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ql(Nt.internal.getWidth(e)/2)+" "+Ql(Nt.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),n.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),n.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),n.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 403`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Nt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Nt.RadioButton.Cross.YesNormal,t.D[e]=Nt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=po(e);t.scope=e.scope;var n=[],r=Nt.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+sn(Nt.internal.getWidth(e)-2)+" "+sn(Nt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(sn(r.x1.x)+" "+sn(r.x1.y)+" m"),n.push(sn(r.x2.x)+" "+sn(r.x2.y)+" l"),n.push(sn(r.x4.x)+" "+sn(r.x4.y)+" m"),n.push(sn(r.x3.x)+" "+sn(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` 404`),t},YesPushDown:function(e){var t=po(e);t.scope=e.scope;var n=Nt.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+sn(Nt.internal.getWidth(e))+" "+sn(Nt.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+sn(Nt.internal.getWidth(e)-2)+" "+sn(Nt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(sn(n.x1.x)+" "+sn(n.x1.y)+" m"),r.push(sn(n.x2.x)+" "+sn(n.x2.y)+" l"),r.push(sn(n.x4.x)+" "+sn(n.x4.y)+" m"),r.push(sn(n.x3.x)+" "+sn(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(` 405`),t},OffPushDown:function(e){var t=po(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+sn(Nt.internal.getWidth(e))+" "+sn(Nt.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 406`),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}};Nt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Nt.internal.getWidth(e),n=Nt.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}}}},Nt.internal.getWidth=function(e){var t=0;return zn(e)==="object"&&(t=vw(e.Rect[2])),t},Nt.internal.getHeight=function(e){var t=0;return zn(e)==="object"&&(t=vw(e.Rect[3])),t};var B9=kr.addField=function(e){if(U9(this,e),!(e instanceof qi))throw new Error("Invalid argument passed to
406jsPDF.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};kr.AcroFormChoiceField=Mf,kr.AcroFormListBox=kf,kr.AcroFormComboBox=Ff,kr.AcroFormEditBox=em,kr.AcroFormButton=xs,kr.AcroFormPushButton=tm,kr.AcroFormRadioButton=If,kr.AcroFormCheckBox=nm,kr.AcroFormTextField=eu,kr.AcroFormPasswordField=rm,kr.AcroFormAppearance=Nt,kr.AcroForm={ChoiceField:Mf,ListBox:kf,ComboBox:Ff,EditBox:em,Button:xs,PushButton:tm,RadioButton:If,CheckBox:nm,TextField:eu,PasswordField:rm,Appearance:Nt},Ot.AcroForm={ChoiceField:Mf,ListBox:kf,ComboBox:Ff,EditBox:em,Button:xs,PushButton:tm,RadioButton:If,CheckBox:nm,TextField:eu,PasswordField:rm,Appearance:Nt};Ot.AcroForm;function fN(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]]},a=e.__addimage__.getImageFileTypeByImageData=function(j,D){var $,W,te,L,M,X=n;if((D=D||n)==="RGBA"||j.data!==void 0&&j.data instanceof Uint8ClampedArray&&"height"in j&&"width"in j)return"RGBA";if(U(j))for(M in r)for(te=r[M],$=0;$<te.length;$+=1){for(L=!0,W=0;W<te[$].length;W+=1)if(te[$][W]!==void 0&&te[$][W]!==j[W]){L=!1;break}if(L===!0){X=M;break}}else for(M in r)for(te=r[M],$=0;$<te.length;$+=1){for(L=!0,W=0;W<te[$].length;W+=1)if(te[$][W]!==void 0&&te[$][W]!==j.charCodeAt(W)){L=!1;break}if(L===!0){X=M;break}}return X===n&&D!==n&&(X=D),X},o=function j(D){for(var $=this.internal.write,W=this.internal.putStream,te=(0,this.internal.getFilters)();te.indexOf("FlateEncode")!==-1;)te.splice(te.indexOf("FlateEncode"),1);D.objectId=this.internal.newObject();var L=[];if(L.push({key:"Type",value:"/XObject"}),L.push({key:"Subtype",value:"/Image"}),L.push({key:"Width",value:D.width}),L.push({key:"Height",value:D.height}),D.colorSpace===_.INDEXED?L.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(D.palette.length/3-1)+" "+("sMask"in D&&D.sMask!==void 0?D.objectId+2:D.objectId+1)+" 0 R]"}):(L.push({key:"ColorSpace",value:"/"+D.colorSpace}),D.colorSpace===_.DEVICE_CMYK&&L.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),L.push({key:"BitsPerComponent",value:D.bitsPerComponent}),"decodeParameters"in D&&D.decodeParameters!==void 0&&L.push({key:"DecodeParms",value:"<<"+D.decodeParameters+">>"}),"transparency"in D&&Array.isArray(D.transparency)&&D.transparency.length>0){for(var M="",X=0,se=D.transparency.length;X<se;X++)M+=D.transparency[X]+" "+D.transparency[X]+" ";L.push({key:"Mask",value:"["+M+"]"})}D.sMask!==void 0&&L.push({key:"SMask",value:D.objectId+1+" 0 R"});var pe=D.filter!==void 0?["/"+D.filter]:void 0;if(W({data:D.data,additionalKeyValues:L,alreadyAppliedFilters:pe,objectId:D.objectId}),$("endobj"),"sMask"in D&&D.sMask!==void 0){var ee,P=(ee=D.sMaskBitsPerComponent)!==null&&ee!==void 0?ee:D.bitsPerComponent,B={width:D.width,height:D.height,colorSpace:"DeviceGray",bitsPerComponent:P,data:D.sMask};"filter"in D&&(B.decodeParameters="/Predictor ".concat(D.predictor," /Colors 1 /BitsPerComponent ").concat(P," /Columns ").concat(D.width),B.filter=D.filter),j.call(this,B)}
vendor: 63,345 bytes, lines 406-443
406if(D.colorSpace===_.INDEXED){var V=this.internal.newObject();W({data:O(new Uint8Array(D.palette)),objectId:V}),$("endobj")}},l=function(){var j=this.internal.collections[t+"images"];for(var D in j)o.call(this,j[D])},c=function(){var j,D=this.internal.collections[t+"images"],$=this.internal.write;for(var W in D)$("/I"+(j=D[W]).index,j.objectId,"0","R")},f=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",l),this.internal.events.subscribe("putXobjectDict",c))},d=function(){var j=this.internal.collections[t+"images"];return f.call(this),j},h=function(){return Object.keys(this.internal.collections[t+"images"]).length},m=function(j){return typeof e["process"+j.toUpperCase()]=="function"},y=function(j){return zn(j)==="object"&&j.nodeType===1},g=function(j,D){if(j.nodeName==="IMG"&&j.hasAttribute("src")){var $=""+j.getAttribute("src");if($.indexOf("data:image/")===0)return Jp(unescape($).split("base64,").pop());var W=e.loadFile($,!0);if(W!==void 0)return W}if(j.nodeName==="CANVAS"){if(j.width===0||j.height===0)throw new Error("Given canvas must have data. Canvas width: "+j.width+", height: "+j.height);var te;switch(D){case"PNG":te="image/png";break;case"WEBP":te="image/webp";break;default:te="image/jpeg"}return Jp(j.toDataURL(te,1).split("base64,").pop())}},N=function(j){var D=this.internal.collections[t+"images"];if(D){for(var $ in D)if(j===D[$].alias)return D[$]}},w=function(j,D,$){return j||D||(j=-96,D=-96),j<0&&(j=-1*$.width*72/j/this.internal.scaleFactor),D<0&&(D=-1*$.height*72/D/this.internal.scaleFactor),j===0&&(j=D*$.width/$.height),D===0&&(D=j*$.height/$.width),[j,D]},E=function(j,D,$,W,te,L){var M=w.call(this,$,W,te),X=this.internal.getCoordinateString,se=this.internal.getVerticalCoordinateString,pe=d.call(this);if($=M[0],W=M[1],pe[te.index]=te,L){L*=Math.PI/180;var ee=Math.cos(L),P=Math.sin(L),B=function(Y){return Y.toFixed(4)},V=[B(ee),B(P),B(-1*P),B(ee),0,0,"cm"]}this.internal.write("q"),L?(this.internal.write([1,"0","0",1,X(j),se(D+W),"cm"].join(" ")),this.internal.write(V.join(" ")),this.internal.write([X($),"0","0",X(W),"0","0","cm"].join(" "))):this.internal.write([X($),"0","0",X(W),X(j),se(D+W),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+te.index+" Do"),this.internal.write("Q")},_=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 z=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},H=e.__addimage__.sHashCode=function(j){var D,$,W=0;if(typeof j=="string")for($=j.length,D=0;D<$;D++)W=(W<<5)-W+j.charCodeAt(D),W|=0;else if(U(j))for($=j.byteLength/2,D=0;D<$;D++)W=(W<<5)-W+j[D],W|=0;return W},k=e.__addimage__.validateStringAsBase64=function(j){(j=j||"").toString().trim();var D=!0;return j.length===0&&(D=!1),j.length%4!=0&&(D=!1),/^[A-Za-z0-9+/]+$/.test(j.substr(0,j.length-2))===!1&&(D=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(j.substr(-2))===!1&&(D=!1),D},K=e.__addimage__.extractImageFromDataUrl=function(j){if(j==null||!(j=j.trim()).startsWith("data:"))return null;var D=j.indexOf(",");return D<0?null:j.substring(0,D).trim().endsWith("base64")?j.substring(D+1):null};e.__addimage__.isArrayBuffer=function(j){return j instanceof ArrayBuffer};var U=e.__addimage__.isArrayBufferView=function(j){return j instanceof Int8Array||j instanceof Uint8Array||j instanceof Uint8ClampedArray||j instanceof Int16Array||j instanceof Uint16Array||j instanceof Int32Array||j instanceof Uint32Array||j instanceof Float32Array||j instanceof Float64Array},G=e.__addimage__.binaryStringToUint8Array=function(j){for(var D=j.length,$=new Uint8Array(D),W=0;W<D;W++)$[W]=j.charCodeAt(W);return $},O=e.__addimage__.arrayBufferToBinaryString=function(j){for(var D="",$=U(j)?j:new Uint8Array(j),W=0;W<$.length;W+=8192)D+=String.fromCharCode.apply(null,$.subarray(W,W+8192));return D};e.addImage=function(){var j,D,$,W,te,L,M,X,se;if(typeof arguments[1]=="number"?(D=n,$=arguments[1],W=arguments[2],te=arguments[3],L=arguments[4],M=arguments[5],X=arguments[6],se=arguments[7]):(D=arguments[1],$=arguments[2],W=arguments[3],te=arguments[4],L=arguments[5],M=arguments[6],X=arguments[7],se=arguments[8]),zn(j=arguments[0])==="object"&&!y(j)&&"imageData"in j){var pe=j;j=pe.imageData,D=pe.format||D||n,$=pe.x||$||0,W=pe.y||W||0,te=pe.w||pe.width||te,L=pe.h||pe.height||L,M=pe.alias||M,X=pe.compression||X,se=pe.rotation||pe.angle||se}var ee=this.internal.getFilters();if(X===void 0&&ee.indexOf("FlateEncode")!==-1&&(X="SLOW"),isNaN($)||isNaN(W))throw new Error("Invalid coordinates passed to jsPDF.addImage");f.call(this);var P=R.call(this,j,D,M,X);return E.call(this,$,W,te,L,P,se),this};var R=function(j,D,$,W){var te,L,M;if(typeof j=="string"&&a(j)===n){j=unescape(j);var X=Q(j,!1);(X!==""||(X=e.loadFile(j,!0))!==void 0)&&(j=X)}if(y(j)&&(j=g(j,D)),D=a(j,D),!m(D))throw new Error("addImage does not support files of type '"+D+"', please ensure that a plugin for '"+D+"' support is added.");if(((M=$)==null||M.length===0)&&($=(function(se){return typeof se=="string"||U(se)?H(se):U(se.data)?H(se.data):null})(j)),(te=N.call(this,$))||(j instanceof Uint8Array||D==="RGBA"||(L=j,j=G(j)),te=this["process"+D.toUpperCase()](j,h.call(this),$,(function(se){return se&&typeof se=="string"&&(se=se.toUpperCase()),se in e.image_compression?se:z.NONE})(W),L)),!te)throw new Error("An unknown error occurred whilst processing the image.");return te},Q=e.__addimage__.convertBase64ToBinaryString=function(j,D){D=typeof D!="boolean"||D;var $,W="";if(typeof j=="string"){var te;$=(te=K(j))!==null&&te!==void 0?te:j;try{W=Jp($)}catch(L){if(D)throw k($)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+L.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return W};e.getImageProperties=function(j){var D,$,W="";if(y(j)&&(j=g(j)),typeof j=="string"&&a(j)===n&&((W=Q(j,!1))===""&&(W=e.loadFile(j)||""),j=W),$=a(j),!m($))throw new Error("addImage does not support files of type '"+$+"', please ensure that a plugin for '"+$+"' support is added.");if(j instanceof Uint8Array||(j=G(j)),!(D=this["process"+$.toUpperCase()](j)))throw new Error("An unknown error occurred whilst processing the image");return D.fileType=$,D}})(Ot.API),(function(e){var t=function(n){if(n!==void 0&&n!="")return!0};Ot.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var r,a,o,l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(n.objId),d=n.pageContext.annotations,h=!1,m=0;m<d.length&&!h;m++)switch((r=d[m]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(h=!0);break;case"reference":case"text":case"freetext":h=!0}if(h!=0){this.internal.write("/Annots [");for(var y=0;y<d.length;y++){r=d[y];var g=this.internal.pdfEscape,N=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var w=this.internal.newAdditionalObject(),E=this.internal.newAdditionalObject(),_=this.internal.getEncryptor(w.objId),z=r.title||"Note";o="<</Type /Annot /Subtype /Text "+(a="/Rect ["+l(r.bounds.x)+" "+c(r.bounds.y+r.bounds.h)+" "+l(r.bounds.x+r.bounds.w)+" "+c(r.bounds.y)+"] ")+"/Contents ("+g(_(r.contents))+")",o+=" /Popup "+E.objId+" 0 R",o+=" /P "+f.objId+" 0 R",o+=" /T ("+g(_(z))+") >>",w.content=o;var H=w.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+l(r.bounds.x+30)+" "+c(r.bounds.y+r.bounds.h)+" "+l(r.bounds.x+r.bounds.w+30)+" "+c(r.bounds.y)+"] ")+" /Parent "+H,r.open&&(o+=" /Open true"),o+=" >>",E.content=o,this.internal.write(w.objId,"0 R",E.objId,"0 R");break;case"freetext":a="/Rect ["+l(r.bounds.x)+" "+c(r.bounds.y)+" "+l(r.bounds.x+r.bounds.w)+" "+c(r.bounds.y+r.bounds.h)+"] ";var k=r.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+g(N(r.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+k+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(r.options.name){var K=this.annotations._nameMap[r.options.name];r.options.pageNumber=K.page,r.options.top=K.y}else r.options.top||(r.options.top=0);if(a="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",o="",r.options.url)o="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+g(N(r.options.url))+") >>";else if(r.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+a+"/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 U=c(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),o+=" /XYZ "+r.options.left+" "+U+" "+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,a,o,l){var c=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;c.pageContext.annotations.push({finalBounds:{x:f(n),y:d(r),w:f(n+a),h:d(r+o)},options:l,type:"link"})},e.textWithLink=function(n,r,a,o){var l,c,f=this.getTextWidth(n),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){c=o.maxWidth;var h=this.splitTextToSize(n,c).length;l=Math.ceil(d*h)}else c=f,l=d;return this.text(n,r,a,o),a+=.2*d,o.align==="center"&&(r-=f/2),o.align==="right"&&(r-=f),this.link(r,a-d,c,l,o),f},e.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}})(Ot.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},a=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(w){return t[w.charCodeAt(0)]!==void 0},l=e.__arabicParser__.isArabicLetter=function(w){return typeof w=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(w)},c=e.__arabicParser__.isArabicEndLetter=function(w){return l(w)&&o(w)&&t[w.charCodeAt(0)].length<=2},f=e.__arabicParser__.isArabicAlfLetter=function(w){return l(w)&&a.indexOf(w.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(w){return l(w)&&o(w)&&t[w.charCodeAt(0)].length>=1};var d=e.__arabicParser__.arabicLetterHasFinalForm=function(w){return l(w)&&o(w)&&t[w.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(w){return l(w)&&o(w)&&t[w.charCodeAt(0)].length>=3};var h=e.__arabicParser__.arabicLetterHasMedialForm=function(w){return l(w)&&o(w)&&t[w.charCodeAt(0)].length==4},m=e.__arabicParser__.resolveLigatures=function(w){var E=0,_=n,z="",H=0;for(E=0;E<w.length;E+=1)_[w.charCodeAt(E)]!==void 0?(H++,typeof(_=_[w.charCodeAt(E)])=="number"&&(z+=String.fromCharCode(_),_=n,H=0),E===w.length-1&&(_=n,z+=w.charAt(E-(H-1)),E-=H-1,H=0)):(_=n,z+=w.charAt(E-H),E-=H,H=0);return z};e.__arabicParser__.isArabicDiacritic=function(w){return w!==void 0&&r[w.charCodeAt(0)]!==void 0};var y=e.__arabicParser__.getCorrectForm=function(w,E,_){return l(w)?o(w)===!1?-1:!d(w)||!l(E)&&!l(_)||!l(_)&&c(E)||c(w)&&!l(E)||c(w)&&f(E)||c(w)&&c(E)?0:h(w)&&l(E)&&!c(E)&&l(_)&&d(_)?3:c(w)||!l(_)?1:2:-1},g=function(w){var E=0,_=0,z=0,H="",k="",K="",U=(w=w||"").split("\\s+"),G=[];for(E=0;E<U.length;E+=1){for(G.push(""),_=0;_<U[E].length;_+=1)H=U[E][_],k=U[E][_-1],K=U[E][_+1],l(H)?(z=y(H,k,K),G[E]+=z!==-1?String.fromCharCode(t[H.charCodeAt(0)][z]):H):G[E]+=H;G[E]=m(G[E])}return G.join(" ")},N=e.__arabicParser__.processArabic=e.processArabic=function(){var w,E=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(E)){var z=0;for(_=[],z=0;z<E.length;z+=1)Array.isArray(E[z])?_.push([g(E[z][0]),E[z][1],E[z][2]]):_.push([g(E[z])]);w=_}else w=g(E);return typeof arguments[0]=="string"?w:(arguments[0].text=w,arguments[0])};e.events.push(["preProcessText",N])})(Ot.API),Ot.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(c){n=c}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(c){r=isNaN(c)||Number.isInteger(c)===!1||c<0?150:c,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(c){a=isNaN(c)||Number.isInteger(c)===!1||c<0?300:c,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(c){o=c}});var l={};Object.defineProperty(this,"style",{get:function(){return l},set:function(c){l=c}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,r){var a;if((n=n||"2d")!=="2d")return null;for(a in r)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=r[a]);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}])})(Ot.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(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(w){f=w}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(w){d=w}});var h=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return h},set:function(w){h=w}});var m=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return m},set:function(w){m=w}});var y=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return y},set:function(w){y=w}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(w){g=w}});var N=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return N},set:function(w){N=w}}),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(f){return r.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},e.getTextDimensions=function(f,d){r.call(this);var h=(d=d||{}).fontSize||this.getFontSize(),m=d.font||this.getFont(),y=d.scaleFactor||this.internal.scaleFactor,g=0,N=0,w=0,E=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var _=d.maxWidth;_>0?typeof f=="string"?f=this.splitTextToSize(f,_):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(H,k){return H.concat(E.splitTextToSize(k,_))},[])):f=Array.isArray(f)?f:[f];for(var z=0;z<f.length;z++)g<(w=this.getStringUnitWidth(f[z],{font:m})*h)&&(g=w);return g!==0&&(N=f.length),{w:g/=y,h:Math.max((N*h*this.getLineHeightFactor()-h*(this.getLineHeightFactor()-1))/y,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var f=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var l=e.cell=function(){var f;f=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 d=this.internal.__cell__.lastCell,h=this.internal.__cell__.padding,m=this.internal.__cell__.margins||t,y=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===f.lineNumber?(f.x=(d.x||0)+(d.width||0),f.y=d.y||0):d.y+d.height+f.height+m.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=m.top,g&&y&&(this.printHeaderRow(f.lineNumber,!0),f.y+=y[0].height)):f.y=d.y+d.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,n===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-h,f.y+h,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+h,{align:"center",baseline:"top",maxWidth:f.width-h-h}):this.text(f.text,f.x+h,f.y+h,{align:"left",baseline:"top",maxWidth:f.width-h-h})),this.internal.__cell__.lastCell=f,this};e.table=function(f,d,h,m,y){if(r.call(this),!h)throw new Error("No data for PDF table.");var g,N,w,E,_=[],z=[],H=[],k={},K={},U=[],G=[],O=(y=y||{}).autoSize||!1,R=y.printHeaders!==!1,Q=y.css&&y.css["font-size"]!==void 0?16*y.css["font-size"]:y.fontSize||12,j=y.margins||Object.assign({width:this.getPageWidth()},t),D=typeof y.padding=="number"?y.padding:3,$=y.headerBackgroundColor||"#c8c8c8",W=y.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=R,this.internal.__cell__.margins=j,this.internal.__cell__.table_font_size=Q,this.internal.__cell__.padding=D,this.internal.__cell__.headerBackgroundColor=$,this.internal.__cell__.headerTextColor=W,this.setFontSize(Q),m==null)z=_=Object.keys(h[0]),H=_.map(function(){return"left"});else if(Array.isArray(m)&&zn(m[0])==="object")for(_=m.map(function(pe){return pe.name}),z=m.map(function(pe){return pe.prompt||pe.name||""}),H=m.map(function(pe){return pe.align||"left"}),g=0;g<m.length;g+=1)K[m[g].name]=.7499990551181103*m[g].width;else Array.isArray(m)&&typeof m[0]=="string"&&(z=_=m,H=_.map(function(){return"left"}));if(O||Array.isArray(m)&&typeof m[0]=="string")for(g=0;g<_.length;g+=1){for(k[E=_[g]]=h.map(function(pe){return pe[E]}),this.setFont(void 0,"bold"),U.push(this.getTextDimensions(z[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),N=k[E],this.setFont(void 0,"normal"),w=0;w<N.length;w+=1)U.push(this.getTextDimensions(N[w],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);K[E]=Math.max.apply(null,U)+D+D,U=[]}if(R){var te={};for(g=0;g<_.length;g+=1)te[_[g]]={},te[_[g]].text=z[g],te[_[g]].align=H[g];var L=c.call(this,te,K);G=_.map(function(pe){return new o(f,d,K[pe],L,te[pe].text,void 0,te[pe].align)}),this.setTableHeaderRow(G),this.printHeaderRow(1,!1)}var M=m.reduce(function(pe,ee){return pe[ee.name]=ee.align,pe},{});for(g=0;g<h.length;g+=1){"rowStart"in y&&y.rowStart instanceof Function&&y.rowStart({row:g,data:h[g]},this);var X=c.call(this,h[g],K);for(w=0;w<_.length;w+=1){var se=h[g][_[w]];"cellStart"in y&&y.cellStart instanceof Function&&y.cellStart({row:g,col:w,data:se},this),l.call(this,new o(f,d,K[_[w]],X,se,g+2,M[_[w]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=d,this};var c=function(f,d){var h=this.internal.__cell__.padding,m=this.internal.__cell__.table_font_size,y=this.internal.scaleFactor;return Object.keys(f).map(function(g){var N=f[g];return this.splitTextToSize(N.hasOwnProperty("text")?N.text:N,d[g]-h-h)},this).map(function(g){return this.getLineHeightFactor()*g.length*m/y+h+h},this).reduce(function(g,N){return Math.max(g,N)},0)};e.setTableHeaderRow=function(f){r.call(this),this.internal.__cell__.tableHeaderRow=f},e.printHeaderRow=function(f,d){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var h;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var m=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(m[0],m[1],m[2],m[3],void 0,-1)}this.setFont(void 0,"bold");for(var y=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){h=this.internal.__cell__.tableHeaderRow[g].clone(),d&&(h.y=this.internal.__cell__.margins.top||0,y.push(h)),h.lineNumber=f;var N=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),l.call(this,h),this.setTextColor(N)}y.length>0&&this.setTableHeaderRow(y),this.setFont(void 0,"normal"),n=!1}})(Ot.API);var dN={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},hN=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ov=fN(hN),pN=[100,200,300,400,500,600,700,800,900],z9=fN(pN);function S1(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=(function(o){return dN[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),a=(function(o){return typeof Ov[o=o||"normal"]=="number"?o:"normal"})(e.stretch);return{family:t,style:n,weight:r,stretch:a,src:e.src||[],ref:e.ref||{name:t,style:[a,n,r].join(" ")}}}function yw(e,t,n,r){var a;for(a=n;a>=0&&a<t.length;a+=r)if(e[t[a]])return e[t[a]];for(a=n;a>=0&&a<t.length;a-=r)if(e[t[a]])return e[t[a]]}var H9={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},bw={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function xw(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function ww(e){return e.trimLeft()}function q9(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 G9(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 zp,Sw,Aw,bf,Hp,Nw,_w,Cw,A1=["times"];function Ew(e,t,n,r,a){var o=4,l=Tw;switch(a){case Ot.API.image_compression.FAST:o=1,l=Pw;break;case Ot.API.image_compression.MEDIUM:o=6,l=jw;break;case Ot.API.image_compression.SLOW:o=9,l=Ow}e=(function(f,d,h,m){for(var y,g=f.length/d,N=new Uint8Array(f.length+g),w=[W9,Pw,Tw,jw,Ow],E=0;E<g;E+=1){var _=E*d,z=f.subarray(_,_+d);if(m)N.set(m(z,h,y),_+E);else{for(var H=w.length,k=[],K=0;K<H;K+=1)k[K]=w[K](z,h,y);var U=Y9(k.concat());N.set(k[U],_+E)}y=z}return N})(e,t,Math.ceil(n*r/8),l);var c=Nv(e,{level:o});return Ot.API.__addimage__.arrayBufferToBinaryString(c)}function W9(e){var t=Array.apply([],e);return t.unshift(0),t}function Pw(e,t){var n=e.length,r=[];r[0]=1;for(var a=0;a<n;a+=1){var o=e[a-t]||0;r[a+1]=e[a]-o+256&255}return r}function Tw(e,t,n){var r=e.length,a=[];a[0]=2;for(var o=0;o<r;o+=1){var l=n&&n[o]||0;a[o+1]=e[o]-l+256&255}return a}function jw(e,t,n){var r=e.length,a=[];a[0]=3;for(var o=0;o<r;o+=1){var l=e[o-t]||0,c=n&&n[o]||0;a[o+1]=e[o]+256-(l+c>>>1)&255}return a}function Ow(e,t,n){var r=e.length,a=[];a[0]=4;for(var o=0;o<r;o+=1){var l=V9(e[o-t]||0,n&&n[o]||0,n&&n[o-t]||0);a[o+1]=e[o]-l+256&255}return a}function V9(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),a=Math.abs(e-n),o=Math.abs(e+t-n-n);return r<=a&&r<=o?e:a<=o?t:n}function Y9(e){var t=e.map(function(n){return n.reduce(function(r,a){return r+Math.abs(a)},0)});return t.indexOf(Math.min.apply(null,t))}function N1(e,t,n){var r=t*n,a=Math.floor(r/8),o=16-(r-8*a+n),l=(1<<n)-1;return mN(e,a)>>o&l}function Lw(e,t,n,r){var a=n*r,o=Math.floor(a/8),l=16-(a-8*o+r),c=(1<<r)-1,f=(t&c)<<l;(function(d,h,m){if(h+1<d.byteLength)d.setUint16(h,m,!1);else{var y=m>>8&255;d.setUint8(h,y)}})(e,o,mN(e,o)&~(c<<l)&65535|f)}function mN(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function Q9(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,a=e[t++],o=a>>7,l=1<<1+(7&a);e[t++],e[t++];var c=null,f=null;o&&(c=t,f=l,t+=3*l);var d=!0,h=[],m=0,y=null,g=0,N=null;for(this.width=n,this.height=r;d&&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,N=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((j=e[t++])>=0))throw Error("Invalid block size");if(j===0)break;t+=j}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var w=e[t++];m=e[t++]|e[t++]<<8,y=e[t++],1&w||(y=null),g=w>>2&7,t++;break;case 254:for(;;){if(!((j=e[t++])>=0))throw Error("Invalid block size");if(j===0)break;t+=j}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var E=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,z=e[t++]|e[t++]<<8,H=e[t++]|e[t++]<<8,k=e[t++],K=k>>6&1,U=1<<1+(7&k),G=c,O=f,R=!1;k>>7&&(R=!0,G=t,O=U,t+=3*U);var Q=t;for(t++;;){var j;if(!((j=e[t++])>=0))throw Error("Invalid block size");if(j===0)break;t+=j}h.push({x:E,y:_,width:z,height:H,has_local_palette:R,palette_offset:G,palette_size:O,data_offset:Q,data_length:t-Q,transparent_index:y,interlaced:!!K,delay:m,disposal:g});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return N},this.frameInfo=function(D){if(D<0||D>=h.length)throw new Error("Frame index out of range.");return h[D]},this.decodeAndBlitFrameBGRA=function(D,$){var W=this.frameInfo(D),te=W.width*W.height,L=new Uint8Array(te);Rw(e,W.data_offset,L,te);var M=W.palette_offset,X=W.transparent_index;X===null&&(X=256);var se=W.width,pe=n-se,ee=se,P=4*(W.y*n+W.x),B=4*((W.y+W.height)*n+W.x),V=P,Y=4*pe;W.interlaced===!0&&(Y+=4*n*7);for(var oe=8,le=0,me=L.length;le<me;++le){var ge=L[le];if(ee===0&&(ee=se,(V+=Y)>=B&&(Y=4*pe+4*n*(oe-1),V=P+(se+pe)*(oe<<1),oe>>=1)),ge===X)V+=4;else{var Ae=e[M+3*ge],Oe=e[M+3*ge+1],Fe=e[M+3*ge+2];$[V++]=Fe,$[V++]=Oe,$[V++]=Ae,$[V++]=255}--ee}},this.decodeAndBlitFrameRGBA=function(D,$){var W=this.frameInfo(D),te=W.width*W.height,L=new Uint8Array(te);Rw(e,W.data_offset,L,te);var M=W.palette_offset,X=W.transparent_index;X===null&&(X=256);var se=W.width,pe=n-se,ee=se,P=4*(W.y*n+W.x),B=4*((W.y+W.height)*n+W.x),V=P,Y=4*pe;W.interlaced===!0&&(Y+=4*n*7);for(var oe=8,le=0,me=L.length;le<me;++le){var ge=L[le];if(ee===0&&(ee=se,(V+=Y)>=B&&(Y=4*pe+4*n*(oe-1),V=P+(se+pe)*(oe<<1),oe>>=1)),ge===X)V+=4;else{var Ae=e[M+3*ge],Oe=e[M+3*ge+1],Fe=e[M+3*ge+2];$[V++]=Ae,$[V++]=Oe,$[V++]=Fe,$[V++]=255}--ee}}}function Rw(e,t,n,r){for(var a=e[t++],o=1<<a,l=o+1,c=l+1,f=a+1,d=(1<<f)-1,h=0,m=0,y=0,g=e[t++],N=new Int32Array(4096),w=null;;){for(;h<16&&g!==0;)m|=e[t++]<<h,h+=8,g===1?g=e[t++]:--g;if(h<f)break;var E=m&d;if(m>>=f,h-=f,E!==o){if(E===l)break;for(var _=E<c?E:w,z=0,H=_;H>o;)H=N[H]>>8,++z;var k=H;if(y+z+(_!==E?1:0)>r)return void ar.log("Warning, gif stream longer than expected.");n[y++]=k;var K=y+=z;for(_!==E&&(n[y++]=k),H=_;z--;)H=N[H],n[--K]=255&H,H>>=8;w!==null&&c<4096&&(N[c++]=w<<8|k,c>=d+1&&f<12&&(++f,d=d<<1|1)),w=E}else c=l+1,d=(1<<(f=a+1))-1,w=null}return y!==r&&ar.log("Warning, gif stream shorter than expected."),n}/** 407 * @license 408 Copyright (c) 2008, Adobe Systems Incorporated 409 All rights reserved. 410 411 Redistribution and use in source and binary forms, with or without 412 modification, are permitted provided that the following conditions are 413 met: 414 415 * Redistributions of source code must retain the above copyright notice, 416 this list of conditions and the following disclaimer. 417 418 * Redistributions in binary form must reproduce the above copyright 419 notice, this list of conditions and the following disclaimer in the 420 documentation and/or other materials provided with the distribution. 421 422 * Neither the name of Adobe Systems Incorporated nor the names of its 423 contributors may be used to endorse or promote products derived from 424 this software without specific prior written permission. 425 426 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 427 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 428 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 429 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 430 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 431 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 432 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 433 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 434 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 435 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 436 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 437*/function _1(e){var t,n,r,a,o,l=Math.floor,c=new Array(64),f=new Array(64),d=new Array(64),h=new Array(64),m=new Array(65535),y=new Array(65535),g=new Array(64),N=new Array(64),w=[],E=0,_=7,z=new Array(64),H=new Array(64),k=new Array(64),K=new Array(256),U=new Array(2048),G=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],O=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],Q=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],j=[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],D=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],$=[0,1,2,3,4,5,6,7,8,9,10,11],W=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],te=[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 L(P,B){for(var V=0,Y=0,oe=new Array,le=1;le<=16;le++){for(var me=1;me<=P[le];me++)oe[B[Y]]=[],oe[B[Y]][0]=V,oe[B[Y]][1]=le,Y++,V++;V*=2}return oe}function M(P){for(var B=P[0],V=P[1]-1;V>=0;)B&1<<V&&(E|=1<<_),V--,--_<0&&(E==255?(X(255),X(0)):X(E),_=7,E=0)}function X(P){w.push(P)}function se(P){X(P>>8&255),X(255&P)}function pe(P,B,V,Y,oe){for(var le,me=oe[0],ge=oe[240],Ae=(function(De,ot){var Xe,nt,tt,ct,Lt,Ct,Ht,vt,lt,dt,ut=0;for(lt=0;lt<8;++lt){Xe=De[ut],nt=De[ut+1],tt=De[ut+2],ct=De[ut+3],Lt=De[ut+4],Ct=De[ut+5],Ht=De[ut+6];var Jt=Xe+(vt=De[ut+7]),Ft=Xe-vt,mt=nt+Ht,Et=nt-Ht,qt=tt+Ct,_t=tt-Ct,pn=ct+Lt,yt=ct-Lt,jt=Jt+pn,wn=Jt-pn,ye=mt+qt,Ue=mt-qt;De[ut]=jt+ye,De[ut+4]=jt-ye;var Ie=.707106781*(Ue+wn);De[ut+2]=wn+Ie,De[ut+6]=wn-Ie;var at=.382683433*((jt=yt+_t)-(Ue=Et+Ft)),rt=.5411961*jt+at,Rt=1.306562965*Ue+at,Bt=.707106781*(ye=_t+Et),Ke=Ft+Bt,Gt=Ft-Bt;De[ut+5]=Gt+rt,De[ut+3]=Gt-rt,De[ut+1]=Ke+Rt,De[ut+7]=Ke-Rt,ut+=8}for(ut=0,lt=0;lt<8;++lt){Xe=De[ut],nt=De[ut+8],tt=De[ut+16],ct=De[ut+24],Lt=De[ut+32],Ct=De[ut+40],Ht=De[ut+48];var on=Xe+(vt=De[ut+56]),en=Xe-vt,$t=nt+Ht,Qt=nt-Ht,fn=tt+Ct,jn=tt-Ct,es=ct+Lt,er=ct-Lt,dn=on+es,Sn=on-es,tr=$t+fn,or=$t-fn;De[ut]=dn+tr,De[ut+32]=dn-tr;var ts=.707106781*(or+Sn);De[ut+16]=Sn+ts,De[ut+48]=Sn-ts;var Ks=.382683433*((dn=er+jn)-(or=Qt+en)),hs=.5411961*dn+Ks,ns=1.306562965*or+Ks,za=.707106781*(tr=jn+Qt),Bs=en+za,wa=en-za;De[ut+40]=wa+hs,De[ut+24]=wa-hs,De[ut+8]=Bs+ns,De[ut+56]=Bs-ns,ut++}for(lt=0;lt<64;++lt)dt=De[lt]*ot[lt],g[lt]=dt>0?dt+.5|0:dt-.5|0;return g})(P,B),Oe=0;Oe<64;++Oe)N[G[Oe]]=Ae[Oe];var Fe=N[0]-V;V=N[0],Fe==0?M(Y[0]):(M(Y[y[le=32767+Fe]]),M(m[le]));for(var Qe=63;Qe>0&&N[Qe]==0;)Qe--;if(Qe==0)return M(me),V;for(var Je,ce=1;ce<=Qe;){for(var Ve=ce;N[ce]==0&&ce<=Qe;)++ce;var it=ce-Ve;if(it>=16){Je=it>>4;for(var et=1;et<=Je;++et)M(ge);it&=15}le=32767+N[ce],M(oe[(it<<4)+y[le]]),M(m[le]),ce++}return Qe!=63&&M(me),V}function ee(P){P=Math.min(Math.max(P,1),100),o!=P&&((function(B){for(var V=[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],Y=0;Y<64;Y++){var oe=l((V[Y]*B+50)/100);oe=Math.min(Math.max(oe,1),255),c[G[Y]]=oe}for(var le=[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],me=0;me<64;me++){var ge=l((le[me]*B+50)/100);ge=Math.min(Math.max(ge,1),255),f[G[me]]=ge}for(var Ae=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Oe=0,Fe=0;Fe<8;Fe++)for(var Qe=0;Qe<8;Qe++)d[Oe]=1/(c[G[Oe]]*Ae[Fe]*Ae[Qe]*8),h[Oe]=1/(f[G[Oe]]*Ae[Fe]*Ae[Qe]*8),Oe++})(P<50?Math.floor(5e3/P):Math.floor(200-2*P)),o=P)}this.encode=function(P,B){B&&ee(B),w=new Array,E=0,_=7,se(65496),se(65504),se(16),X(74),X(70),X(73),X(70),X(0),X(1),X(1),X(0),se(1),se(1),X(0),X(0),(function(){se(65499),se(132),X(0);for(var nt=0;nt<64;nt++)X(c[nt]);X(1);for(var tt=0;tt<64;tt++)X(f[tt])})(),(function(nt,tt){se(65472),se(17),X(8),se(tt),se(nt),X(3),X(1),X(17),X(0),X(2),X(17),X(1),X(3),X(17),X(1)})(P.width,P.height),(function(){se(65476),se(418),X(0);for(var nt=0;nt<16;nt++)X(O[nt+1]);for(var tt=0;tt<=11;tt++)X(R[tt]);X(16);for(var ct=0;ct<16;ct++)X(Q[ct+1]);for(var Lt=0;Lt<=161;Lt++)X(j[Lt]);X(1);for(var Ct=0;Ct<16;Ct++)X(D[Ct+1]);for(var Ht=0;Ht<=11;Ht++)X($[Ht]);X(17);for(var vt=0;vt<16;vt++)X(W[vt+1]);for(var lt=0;lt<=161;lt++)X(te[lt])})(),se(65498),se(12),X(3),X(1),X(0),X(2),X(17),X(3),X(17),X(0),X(63),X(0);var V=0,Y=0,oe=0;E=0,_=7,this.encode.displayName="_encode_";for(var le,me,ge,Ae,Oe,Fe,Qe,Je,ce,Ve=P.data,it=P.width,et=P.height,De=4*it,ot=0;ot<et;){for(le=0;le<De;){for(Oe=De*ot+le,Qe=-1,Je=0,ce=0;ce<64;ce++)Fe=Oe+(Je=ce>>3)*De+(Qe=4*(7&ce)),ot+Je>=et&&(Fe-=De*(ot+1+Je-et)),le+Qe>=De&&(Fe-=le+Qe-De+4),me=Ve[Fe++],ge=Ve[Fe++],Ae=Ve[Fe++],z[ce]=(U[me]+U[ge+256|0]+U[Ae+512|0]>>16)-128,H[ce]=(U[me+768|0]+U[ge+1024|0]+U[Ae+1280|0]>>16)-128,k[ce]=(U[me+1280|0]+U[ge+1536|0]+U[Ae+1792|0]>>16)-128;V=pe(z,d,V,t,r),Y=pe(H,h,Y,n,a),oe=pe(k,h,oe,n,a),le+=32}ot+=8}if(_>=0){var Xe=[];Xe[1]=_+1,Xe[0]=(1<<_+1)-1,M(Xe)}return se(65497),new Uint8Array(w)},e=e||50,(function(){for(var P=String.fromCharCode,B=0;B<256;B++)K[B]=P(B)})(),t=L(O,R),n=L(D,$),r=L(Q,j),a=L(W,te),(function(){for(var P=1,B=2,V=1;V<=15;V++){for(var Y=P;Y<B;Y++)y[32767+Y]=V,m[32767+Y]=[],m[32767+Y][1]=V,m[32767+Y][0]=Y;for(var oe=-(B-1);oe<=-P;oe++)y[32767+oe]=V,m[32767+oe]=[],m[32767+oe][1]=V,m[32767+oe][0]=B-1+oe;P<<=1,B<<=1}})(),(function(){for(var P=0;P<256;P++)U[P]=19595*P,U[P+256|0]=38470*P,U[P+512|0]=7471*P+32768,U[P+768|0]=-11059*P,U[P+1024|0]=-21709*P,U[P+1280|0]=32768*P+8421375,U[P+1536|0]=-27439*P,U[P+1792|0]=-5329*P})(),ee(e)}/** 438 * @license 439 * Copyright (c) 2017 Aras Abbasi 440 * 441 * Licensed under the MIT License. 442 * http://opensource.org/licenses/mit-license 443 */function Di(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 Dw(e){function t(R){if(!R)throw Error("assert :P")}function n(R,Q,j){for(var D=0;4>D;D++)if(R[Q+D]!=j.charCodeAt(D))return!0;return!1}function r(R,Q,j,D,$){for(var W=0;W<$;W++)R[Q+W]=j[D+W]}function a(R,Q,j,D){for(var $=0;$<D;$++)R[Q+$]=j}function o(R){return new Int32Array(R)}function l(R,Q){for(var j=[],D=0;D<R;D++)j.push(new Q);return j}function c(R,Q){var j=[];return(function D($,W,te){for(var L=te[W],M=0;M<L&&($.push(te.length>W+1?[]:new Q),!(te.length<W+1));M++)D($[M],W+1,te)})(j,0,R),j}var f=function(){var R=this;function Q(v,S){for(var T=1<<S-1>>>0;v&T;)T>>>=1;return T?(v&T-1)+T:v}function j(v,S,T,I,J){t(!(I%T));do v[S+(I-=T)]=J;while(0<I)}function D(v,S,T,I,J){if(t(2328>=J),512>=J)var ne=o(512);else if((ne=o(J))==null)return 0;return(function(re,ie,ue,de,xe,Pe){var fe,Se,Ce=ie,ke=1<<ue,Ee=o(16),Me=o(16);for(t(xe!=0),t(de!=null),t(re!=null),t(0<ue),Se=0;Se<xe;++Se){if(15<de[Se])return 0;++Ee[de[Se]]}if(Ee[0]==xe)return 0;for(Me[1]=0,fe=1;15>fe;++fe){if(Ee[fe]>1<<fe)return 0;Me[fe+1]=Me[fe]+Ee[fe]}for(Se=0;Se<xe;++Se)fe=de[Se],0<de[Se]&&(Pe[Me[fe]++]=Se);if(Me[15]==1)return(de=new $).g=0,de.value=Pe[0],j(re,Ce,1,ke,de),ke;var He,$e=-1,We=ke-1,wt=0,ht=1,Kt=1,gt=1<<ue;for(Se=0,fe=1,xe=2;fe<=ue;++fe,xe<<=1){if(ht+=Kt<<=1,0>(Kt-=Ee[fe]))return 0;for(;0<Ee[fe];--Ee[fe])(de=new $).g=fe,de.value=Pe[Se++],j(re,Ce+wt,xe,gt,de),wt=Q(wt,fe)}for(fe=ue+1,xe=2;15>=fe;++fe,xe<<=1){if(ht+=Kt<<=1,0>(Kt-=Ee[fe]))return 0;for(;0<Ee[fe];--Ee[fe]){if(de=new $,(wt&We)!=$e){for(Ce+=gt,He=1<<($e=fe)-ue;15>$e&&!(0>=(He-=Ee[$e]));)++$e,He<<=1;ke+=gt=1<<(He=$e-ue),re[ie+($e=wt&We)].g=He+ue,re[ie+$e].value=Ce-ie-$e}de.g=fe-ue,de.value=Pe[Se++],j(re,Ce+(wt>>ue),xe,gt,de),wt=Q(wt,fe)}}return ht!=2*Me[15]-1?0:ke})(v,S,T,I,J,ne)}function $(){this.value=this.g=0}function W(){this.value=this.g=0}function te(){this.G=l(5,$),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=l(Xi,W)}function L(v,S,T,I){t(v!=null),t(S!=null),t(2147483648>I),v.Ca=254,v.I=0,v.b=-8,v.Ka=0,v.oa=S,v.pa=T,v.Jd=S,v.Yc=T+I,v.Zc=4<=I?T+I-4+1:T,me(v)}function M(v,S){for(var T=0;0<S--;)T|=Ae(v,128)<<S;return T}function X(v,S){var T=M(v,S);return ge(v)?-T:T}function se(v,S,T,I){var J,ne=0;for(t(v!=null),t(S!=null),t(4294967288>I),v.Sb=I,v.Ra=0,v.u=0,v.h=0,4<I&&(I=4),J=0;J<I;++J)ne+=S[T+J]<<8*J;v.Ra=ne,v.bb=I,v.oa=S,v.pa=T}function pe(v){for(;8<=v.u&&v.bb<v.Sb;)v.Ra>>>=8,v.Ra+=v.oa[v.pa+v.bb]<<Qa-8>>>0,++v.bb,v.u-=8;Y(v)&&(v.h=1,v.u=0)}function ee(v,S){if(t(0<=S),!v.h&&S<=Ns){var T=V(v)&Os[S];return v.u+=S,pe(v),T}return v.h=1,v.u=0}function P(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function B(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function V(v){return v.Ra>>>(v.u&Qa-1)>>>0}function Y(v){return t(v.bb<=v.Sb),v.h||v.bb==v.Sb&&v.u>Qa}function oe(v,S){v.u=S,v.h=Y(v)}function le(v){v.u>=$a&&(t(v.u>=$a),pe(v))}function me(v){t(v!=null&&v.oa!=null),v.pa<v.Zc?(v.I=(v.oa[v.pa++]|v.I<<8)>>>0,v.b+=8):(t(v!=null&&v.oa!=null),v.pa<v.Yc?(v.b+=8,v.I=v.oa[v.pa++]|v.I<<8):v.Ka?v.b=0:(v.I<<=8,v.b+=8,v.Ka=1))}function ge(v){return M(v,1)}function Ae(v,S){var T=v.Ca;0>v.b&&me(v);var I=v.b,J=T*S>>>8,ne=(v.I>>>I>J)+0;for(ne?(T-=J,v.I-=J+1<<I>>>0):T=J+1,I=T,J=0;256<=I;)J+=8,I>>=8;return I=7^J+wi[I],v.b-=I,v.Ca=(T<<I)-1,ne}function Oe(v,S,T){v[S+0]=T>>24&255,v[S+1]=T>>16&255,v[S+2]=T>>8&255,v[S+3]=255&T}function Fe(v,S){return v[S+0]|v[S+1]<<8}function Qe(v,S){return Fe(v,S)|v[S+2]<<16}function Je(v,S){return Fe(v,S)|Fe(v,S+2)<<16}function ce(v,S){var T=1<<S;return t(v!=null),t(0<S),v.X=o(T),v.X==null?0:(v.Mb=32-S,v.Xa=S,1)}function Ve(v,S){t(v!=null),t(S!=null),t(v.Xa==S.Xa),r(S.X,0,v.X,0,1<<S.Xa)}function it(){this.X=[],this.Xa=this.Mb=0}function et(v,S,T,I){t(T!=null),t(I!=null);var J=T[0],ne=I[0];return J==0&&(J=(v*ne+S/2)/S),ne==0&&(ne=(S*J+v/2)/v),0>=J||0>=ne?0:(T[0]=J,I[0]=ne,1)}function De(v,S){return v+(1<<S)-1>>>S}function ot(v,S){return((4278255360&v)+(4278255360&S)>>>0&4278255360)+((16711935&v)+(16711935&S)>>>0&16711935)>>>0}function Xe(v,S){R[S]=function(T,I,J,ne,re,ie,ue){var de;for(de=0;de<re;++de){var xe=R[v](ie[ue+de-1],J,ne+de);ie[ue+de]=ot(T[I+de],xe)}}}function nt(){this.ud=this.hd=this.jd=0}function tt(v,S){return((4278124286&(v^S))>>>1)+(v&S)>>>0}function ct(v){return 0<=v&&256>v?v:0>v?0:255<v?255:void 0}function Lt(v,S){return ct(v+(v-S+.5>>1))}function Ct(v,S,T){return Math.abs(S-T)-Math.abs(v-T)}function Ht(v,S,T,I,J,ne,re){for(I=ne[re-1],T=0;T<J;++T)ne[re+T]=I=ot(v[S+T],I)}function vt(v,S,T,I,J){var ne;for(ne=0;ne<T;++ne){var re=v[S+ne],ie=re>>8&255,ue=16711935&(ue=(ue=16711935&re)+((ie<<16)+ie));I[J+ne]=(4278255360&re)+ue>>>0}}function lt(v,S){S.jd=255&v,S.hd=v>>8&255,S.ud=v>>16&255}function dt(v,S,T,I,J,ne){var re;for(re=0;re<I;++re){var ie=S[T+re],ue=ie>>>8,de=ie,xe=255&(xe=(xe=ie>>>16)+((v.jd<<24>>24)*(ue<<24>>24)>>>5));de=255&(de=(de+=(v.hd<<24>>24)*(ue<<24>>24)>>>5)+((v.ud<<24>>24)*(xe<<24>>24)>>>5)),J[ne+re]=(4278255360&ie)+(xe<<16)+de}}function ut(v,S,T,I,J){R[S]=function(ne,re,ie,ue,de,xe,Pe,fe,Se){for(ue=Pe;ue<fe;++ue)for(Pe=0;Pe<Se;++Pe)de[xe++]=J(ie[I(ne[re++])])},R[v]=function(ne,re,ie,ue,de,xe,Pe){var fe=8>>ne.b,Se=ne.Ea,Ce=ne.K[0],ke=ne.w;if(8>fe)for(ne=(1<<ne.b)-1,ke=(1<<fe)-1;re<ie;++re){var Ee,Me=0;for(Ee=0;Ee<Se;++Ee)Ee&ne||(Me=I(ue[de++])),xe[Pe++]=J(Ce[Me&ke]),Me>>=fe}else R["VP8LMapColor"+T](ue,de,Ce,ke,xe,Pe,re,ie,Se)}}function Jt(v,S,T,I,J){for(T=S+T;S<T;){var ne=v[S++];I[J++]=ne>>16&255,I[J++]=ne>>8&255,I[J++]=255&ne}}function Ft(v,S,T,I,J){for(T=S+T;S<T;){var ne=v[S++];I[J++]=ne>>16&255,I[J++]=ne>>8&255,I[J++]=255&ne,I[J++]=ne>>24&255}}function mt(v,S,T,I,J){for(T=S+T;S<T;){var ne=(re=v[S++])>>16&240|re>>12&15,re=240&re|re>>28&15;I[J++]=ne,I[J++]=re}}function Et(v,S,T,I,J){for(T=S+T;S<T;){var ne=(re=v[S++])>>16&248|re>>13&7,re=re>>5&224|re>>3&31;I[J++]=ne,I[J++]=re}}function qt(v,S,T,I,J){for(T=S+T;S<T;){var ne=v[S++];I[J++]=255&ne,I[J++]=ne>>8&255,I[J++]=ne>>16&255}}function _t(v,S,T,I,J,ne){if(ne==0)for(T=S+T;S<T;)Oe(I,((ne=v[S++])[0]>>24|ne[1]>>8&65280|ne[2]<<8&16711680|ne[3]<<24)>>>0),J+=32;else r(I,J,v,S,T)}function pn(v,S){R[S][0]=R[v+"0"],R[S][1]=R[v+"1"],R[S][2]=R[v+"2"],R[S][3]=R[v+"3"],R[S][4]=R[v+"4"],R[S][5]=R[v+"5"],R[S][6]=R[v+"6"],R[S][7]=R[v+"7"],R[S][8]=R[v+"8"],R[S][9]=R[v+"9"],R[S][10]=R[v+"10"],R[S][11]=R[v+"11"],R[S][12]=R[v+"12"],R[S][13]=R[v+"13"],R[S][14]=R[v+"0"],R[S][15]=R[v+"0"]}function yt(v){return v==kc||v==Du||v==Nl||v==Mu}function jt(){this.eb=[],this.size=this.A=this.fb=0}function wn(){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 ye(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new jt,this.f.kb=new wn,this.sd=null}function Ue(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Ie(){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 at(v){return alert("todo:WebPSamplerProcessPlane"),v.T}function rt(v,S){var T=v.T,I=S.ba.f.RGBA,J=I.eb,ne=I.fb+v.ka*I.A,re=ls[S.ba.S],ie=v.y,ue=v.O,de=v.f,xe=v.N,Pe=v.ea,fe=v.W,Se=S.cc,Ce=S.dc,ke=S.Mc,Ee=S.Nc,Me=v.ka,He=v.ka+v.T,$e=v.U,We=$e+1>>1;for(Me==0?re(ie,ue,null,null,de,xe,Pe,fe,de,xe,Pe,fe,J,ne,null,null,$e):(re(S.ec,S.fc,ie,ue,Se,Ce,ke,Ee,de,xe,Pe,fe,J,ne-I.A,J,ne,$e),++T);Me+2<He;Me+=2)Se=de,Ce=xe,ke=Pe,Ee=fe,xe+=v.Rc,fe+=v.Rc,ne+=2*I.A,re(ie,(ue+=2*v.fa)-v.fa,ie,ue,Se,Ce,ke,Ee,de,xe,Pe,fe,J,ne-I.A,J,ne,$e);return ue+=v.fa,v.j+He<v.o?(r(S.ec,S.fc,ie,ue,$e),r(S.cc,S.dc,de,xe,We),r(S.Mc,S.Nc,Pe,fe,We),T--):1&He||re(ie,ue,null,null,de,xe,Pe,fe,de,xe,Pe,fe,J,ne+I.A,null,null,$e),T}function Rt(v,S,T){var I=v.F,J=[v.J];if(I!=null){var ne=v.U,re=S.ba.S,ie=re==Mc||re==Nl;S=S.ba.f.RGBA;var ue=[0],de=v.ka;ue[0]=v.T,v.Kb&&(de==0?--ue[0]:(--de,J[0]-=v.width),v.j+v.ka+v.T==v.o&&(ue[0]=v.o-v.j-de));var xe=S.eb;de=S.fb+de*S.A,v=Oc(I,J[0],v.width,ne,ue,xe,de+(ie?0:3),S.A),t(T==ue),v&&yt(re)&&Fo(xe,de,ie,ne,ue,S.A)}return 0}function Bt(v){var S=v.ma,T=S.ba.S,I=11>T,J=T==gs||T==na||T==Mc||T==Al||T==12||yt(T);if(S.memory=null,S.Ib=null,S.Jb=null,S.Nd=null,!xi(S.Oa,v,J?11:12))return 0;if(J&&yt(T)&&Ec(),v.da)alert("todo:use_scaling");else{if(I){if(S.Ib=at,v.Kb){if(T=v.U+1>>1,S.memory=o(v.U+2*T),S.memory==null)return 0;S.ec=S.memory,S.fc=0,S.cc=S.ec,S.dc=S.fc+v.U,S.Mc=S.cc,S.Nc=S.dc+T,S.Ib=rt,Ec()}}else alert("todo:EmitYUV");J&&(S.Jb=Rt,I&&Ca())}if(I&&!ro){for(v=0;256>v;++v)cs[v]=89858*(v-128)+El>>la,mg[v]=-22014*(v-128)+El,Rh[v]=-45773*(v-128),Bu[v]=113618*(v-128)+El>>la;for(v=zo;v<no;++v)S=76283*(v-16)+El>>la,gg[v-zo]=Hs(S,255),vg[v-zo]=Hs(S+8>>4,15);ro=1}return 1}function Ke(v){var S=v.ma,T=v.U,I=v.T;return t(!(1&v.ka)),0>=T||0>=I?0:(T=S.Ib(v,S),S.Jb!=null&&S.Jb(v,S,T),S.Dc+=T,1)}function Gt(v){v.ma.memory=null}function on(v,S,T,I){return ee(v,8)!=47?0:(S[0]=ee(v,14)+1,T[0]=ee(v,14)+1,I[0]=ee(v,1),ee(v,3)!=0?0:!v.h)}function en(v,S){if(4>v)return v+1;var T=v-2>>1;return(2+(1&v)<<T)+ee(S,T)+1}function $t(v,S){return 120<S?S-120:1<=(T=((T=sa[S-1])>>4)*v+(8-(15&T)))?T:1;var T}function Qt(v,S,T){var I=V(T),J=v[S+=255&I].g-8;return 0<J&&(oe(T,T.u+8),I=V(T),S+=v[S].value,S+=I&(1<<J)-1),oe(T,T.u+v[S].g),v[S].value}function fn(v,S,T){return T.g+=v.g,T.value+=v.value<<S>>>0,t(8>=T.g),v.g}function jn(v,S,T){var I=v.xc;return t((S=I==0?0:v.vc[v.md*(T>>I)+(S>>I)])<v.Wb),v.Ya[S]}function es(v,S,T,I){var J=v.ab,ne=v.c*S,re=v.C;S=re+S;var ie=T,ue=I;for(I=v.Ta,T=v.Ua;0<J--;){var de=v.gc[J],xe=re,Pe=S,fe=ie,Se=ue,Ce=(ue=I,ie=T,de.Ea);switch(t(xe<Pe),t(Pe<=de.nc),de.hc){case 2:Ar(fe,Se,(Pe-xe)*Ce,ue,ie);break;case 0:var ke=xe,Ee=Pe,Me=ue,He=ie,$e=(gt=de).Ea;ke==0&&(bl(fe,Se,null,null,1,Me,He),Ht(fe,Se+1,0,0,$e-1,Me,He+1),Se+=$e,He+=$e,++ke);for(var We=1<<gt.b,wt=We-1,ht=De($e,gt.b),Kt=gt.K,gt=gt.w+(ke>>gt.b)*ht;ke<Ee;){var hn=Kt,rr=gt,nn=1;for(xl(fe,Se,Me,He-$e,1,Me,He);nn<$e;){var pt=(nn&~wt)+We;pt>$e&&(pt=$e),(0,Si[hn[rr++]>>8&15])(fe,Se+ +nn,Me,He+nn-$e,pt-nn,Me,He+nn),nn=pt}Se+=$e,He+=$e,++ke&wt||(gt+=ht)}Pe!=de.nc&&r(ue,ie-Ce,ue,ie+(Pe-xe-1)*Ce,Ce);break;case 1:for(Ce=fe,Ee=Se,$e=(fe=de.Ea)-(He=fe&~(Me=(Se=1<<de.b)-1)),ke=De(fe,de.b),We=de.K,de=de.w+(xe>>de.b)*ke;xe<Pe;){for(wt=We,ht=de,Kt=new nt,gt=Ee+He,hn=Ee+fe;Ee<gt;)lt(wt[ht++],Kt),wl(Kt,Ce,Ee,Se,ue,ie),Ee+=Se,ie+=Se;Ee<hn&&(lt(wt[ht++],Kt),wl(Kt,Ce,Ee,$e,ue,ie),Ee+=$e,ie+=$e),++xe&Me||(de+=ke)}break;case 3:if(fe==ue&&Se==ie&&0<de.b){for(Ee=ue,fe=Ce=ie+(Pe-xe)*Ce-(He=(Pe-xe)*De(de.Ea,de.b)),Se=ue,Me=ie,ke=[],He=($e=He)-1;0<=He;--He)ke[He]=Se[Me+He];for(He=$e-1;0<=He;--He)Ee[fe+He]=ke[He];Tu(de,xe,Pe,ue,Ce,ue,ie)}else Tu(de,xe,Pe,fe,Se,ue,ie)}ie=I,ue=T}ue!=T&&r(I,T,ie,ue,ne)}function er(v,S){var T=v.V,I=v.Ba+v.c*v.C,J=S-v.C;if(t(S<=v.l.o),t(16>=J),0<J){var ne=v.l,re=v.Ta,ie=v.Ua,ue=ne.width;if(es(v,J,T,I),J=ie=[ie],t((T=v.C)<(I=S)),t(ne.v<ne.va),I>ne.o&&(I=ne.o),T<ne.j){var de=ne.j-T;T=ne.j,J[0]+=de*ue}if(T>=I?T=0:(J[0]+=4*ne.v,ne.ka=T-ne.j,ne.U=ne.va-ne.v,ne.T=I-T,T=1),T){if(ie=ie[0],11>(T=v.ca).S){var xe=T.f.RGBA,Pe=(I=T.S,J=ne.U,ne=ne.T,de=xe.eb,xe.A),fe=ne;for(xe=xe.fb+v.Ma*xe.A;0<fe--;){var Se=re,Ce=ie,ke=J,Ee=de,Me=xe;switch(I){case Lu:Sl(Se,Ce,ke,Ee,Me);break;case gs:Ai(Se,Ce,ke,Ee,Me);break;case kc:Ai(Se,Ce,ke,Ee,Me),Fo(Ee,Me,0,ke,1,0);break;case Ru:Mo(Se,Ce,ke,Ee,Me);break;case na:_t(Se,Ce,ke,Ee,Me,1);break;case Du:_t(Se,Ce,ke,Ee,Me,1),Fo(Ee,Me,0,ke,1,0);break;case Mc:_t(Se,Ce,ke,Ee,Me,0);break;case Nl:_t(Se,Ce,ke,Ee,Me,0),Fo(Ee,Me,1,ke,1,0);break;case Al:Ni(Se,Ce,ke,Ee,Me);break;case Mu:Ni(Se,Ce,ke,Ee,Me),ta(Ee,Me,ke,1,0);break;case Ki:Za(Se,Ce,ke,Ee,Me);break;default:t(0)}ie+=ue,xe+=Pe}v.Ma+=ne}else alert("todo:EmitRescaledRowsYUVA");t(v.Ma<=T.height)}}v.C=S,t(v.C<=v.i)}function dn(v){var S;if(0<v.ua)return 0;for(S=0;S<v.Wb;++S){var T=v.Ya[S].G,I=v.Ya[S].H;if(0<T[1][I[1]+0].g||0<T[2][I[2]+0].g||0<T[3][I[3]+0].g)return 0}return 1}function Sn(v,S,T,I,J,ne){if(v.Z!=0){var re=v.qd,ie=v.rd;for(t(Ei[v.Z]!=null);S<T;++S)Ei[v.Z](re,ie,I,J,I,J,ne),re=I,ie=J,J+=ne;v.qd=re,v.rd=ie}}function tr(v,S){var T=v.l.ma,I=T.Z==0||T.Z==1?v.l.j:v.C;if(I=v.C<I?I:v.C,t(S<=v.l.o),S>I){var J=v.l.width,ne=T.ca,re=T.tb+J*I,ie=v.V,ue=v.Ba+v.c*I,de=v.gc;t(v.ab==1),t(de[0].hc==3),Ka(de[0],I,S,ie,ue,ne,re),Sn(T,I,S,ne,re,J)}v.C=v.Ma=S}function or(v,S,T,I,J,ne,re){var ie=v.$/I,ue=v.$%I,de=v.m,xe=v.s,Pe=T+v.$,fe=Pe;J=T+I*J;var Se=T+I*ne,Ce=280+xe.ua,ke=v.Pb?ie:16777216,Ee=0<xe.ua?xe.Wa:null,Me=xe.wc,He=Pe<Se?jn(xe,ue,ie):null;t(v.C<ne),t(Se<=J);var $e=!1;e:for(;;){for(;$e||Pe<Se;){var We=0;if(ie>=ke){var wt=Pe-T;t((ke=v).Pb),ke.wd=ke.m,ke.xd=wt,0<ke.s.ua&&Ve(ke.s.Wa,ke.s.vb),ke=ie+Zi}if(ue&Me||(He=jn(xe,ue,ie)),t(He!=null),He.Qb&&(S[Pe]=He.qb,$e=!0),!$e)if(le(de),He.jc){We=de,wt=S;var ht=Pe,Kt=He.pd[V(We)&Xi-1];t(He.jc),256>Kt.g?(oe(We,We.u+Kt.g),wt[ht]=Kt.value,We=0):(oe(We,We.u+Kt.g-256),t(256<=Kt.value),We=Kt.value),We==0&&($e=!0)}else We=Qt(He.G[0],He.H[0],de);if(de.h)break;if($e||256>We){if(!$e)if(He.nd)S[Pe]=(He.qb|We<<8)>>>0;else{if(le(de),$e=Qt(He.G[1],He.H[1],de),le(de),wt=Qt(He.G[2],He.H[2],de),ht=Qt(He.G[3],He.H[3],de),de.h)break;S[Pe]=(ht<<24|$e<<16|We<<8|wt)>>>0}if($e=!1,++Pe,++ue>=I&&(ue=0,++ie,re!=null&&ie<=ne&&!(ie%16)&&re(v,ie),Ee!=null))for(;fe<Pe;)We=S[fe++],Ee.X[(506832829*We&4294967295)>>>Ee.Mb]=We}else if(280>We){if(We=en(We-256,de),wt=Qt(He.G[4],He.H[4],de),le(de),wt=$t(I,wt=en(wt,de)),de.h)break;if(Pe-T<wt||J-Pe<We)break e;for(ht=0;ht<We;++ht)S[Pe+ht]=S[Pe+ht-wt];for(Pe+=We,ue+=We;ue>=I;)ue-=I,++ie,re!=null&&ie<=ne&&!(ie%16)&&re(v,ie);if(t(Pe<=J),ue&Me&&(He=jn(xe,ue,ie)),Ee!=null)for(;fe<Pe;)We=S[fe++],Ee.X[(506832829*We&4294967295)>>>Ee.Mb]=We}else{if(!(We<Ce))break e;for($e=We-280,t(Ee!=null);fe<Pe;)We=S[fe++],Ee.X[(506832829*We&4294967295)>>>Ee.Mb]=We;We=Pe,t(!($e>>>(wt=Ee).Xa)),S[We]=wt.X[$e],$e=!0}$e||t(de.h==Y(de))}if(v.Pb&&de.h&&Pe<J)t(v.m.h),v.a=5,v.m=v.wd,v.$=v.xd,0<v.s.ua&&Ve(v.s.vb,v.s.Wa);else{if(de.h)break e;re?.(v,ie>ne?ne:ie),v.a=0,v.$=Pe-T}return 1}return v.a=3,0}function ts(v){t(v!=null),v.vc=null,v.yc=null,v.Ya=null;var S=v.Wa;S!=null&&(S.X=null),v.vb=null,t(v!=null)}function Ks(){var v=new Wt;return v==null?null:(v.a=0,v.xb=nd,pn("Predictor","VP8LPredictors"),pn("Predictor","VP8LPredictors_C"),pn("PredictorAdd","VP8LPredictorsAdd"),pn("PredictorAdd","VP8LPredictorsAdd_C"),Ar=vt,wl=dt,Sl=Jt,Ai=Ft,Ni=mt,Za=Et,Mo=qt,R.VP8LMapColor32b=Xa,R.VP8LMapColor8b=as,v)}function hs(v,S,T,I,J){var ne=1,re=[v],ie=[S],ue=I.m,de=I.s,xe=null,Pe=0;e:for(;;){if(T)for(;ne&&ee(ue,1);){var fe=re,Se=ie,Ce=I,ke=1,Ee=Ce.m,Me=Ce.gc[Ce.ab],He=ee(Ee,2);if(Ce.Oc&1<<He)ne=0;else{switch(Ce.Oc|=1<<He,Me.hc=He,Me.Ea=fe[0],Me.nc=Se[0],Me.K=[null],++Ce.ab,t(4>=Ce.ab),He){case 0:case 1:Me.b=ee(Ee,3)+2,ke=hs(De(Me.Ea,Me.b),De(Me.nc,Me.b),0,Ce,Me.K),Me.K=Me.K[0];break;case 3:var $e,We=ee(Ee,8)+1,wt=16<We?0:4<We?1:2<We?2:3;if(fe[0]=De(Me.Ea,wt),Me.b=wt,$e=ke=hs(We,1,0,Ce,Me.K)){var ht,Kt=We,gt=Me,hn=1<<(8>>gt.b),rr=o(hn);if(rr==null)$e=0;else{var nn=gt.K[0],pt=gt.w;for(rr[0]=gt.K[0][0],ht=1;ht<1*Kt;++ht)rr[ht]=ot(nn[pt+ht],rr[ht-1]);for(;ht<4*hn;++ht)rr[ht]=0;gt.K[0]=null,gt.K[0]=rr,$e=1}}ke=$e;break;case 2:break;default:t(0)}ne=ke}}if(re=re[0],ie=ie[0],ne&&ee(ue,1)&&!(ne=1<=(Pe=ee(ue,4))&&11>=Pe)){I.a=3;break e}var st;if(st=ne)t:{var ur,Ut,an,Fn=I,zr=re,us=ie,Xn=Pe,jr=T,vs=Fn.m,Or=Fn.s,cn=[null],En=1,fr=0,Rn=aa[Xn];n:for(;;){if(jr&&ee(vs,1)){var Hr=ee(vs,3)+2,dr=De(zr,Hr),Pn=De(us,Hr),Cr=dr*Pn;if(!hs(dr,Pn,0,Fn,cn))break n;for(cn=cn[0],Or.xc=Hr,ur=0;ur<Cr;++ur){var In=cn[ur]>>8&65535;cn[ur]=In,In>=En&&(En=In+1)}}if(vs.h)break n;for(Ut=0;5>Ut;++Ut){var Lr=Uo[Ut];!Ut&&0<Xn&&(Lr+=1<<Xn),fr<Lr&&(fr=Lr)}var Rr=l(En*Rn,$),Hn=En,_n=l(Hn,te);if(_n==null)var ys=null;else t(65536>=Hn),ys=_n;var vr=o(fr);if(ys==null||vr==null||Rr==null){Fn.a=1;break n}var Dt=Rr;for(ur=an=0;ur<En;++ur){var Mt=ys[ur],Tn=Mt.G,Ls=Mt.H,ca=0,Cs=1,Dr=0;for(Ut=0;5>Ut;++Ut){Lr=Uo[Ut],Tn[Ut]=Dt,Ls[Ut]=an,!Ut&&0<Xn&&(Lr+=1<<Xn);s:{var so,ao=Lr,Hu=Fn,Kn=vr,sd=Dt,ad=an,qu=0,Pi=Hu.m,yg=ee(Pi,1);if(a(Kn,0,0,ao),yg){var id=ee(Pi,1)+1,od=ee(Pi,1),Gu=ee(Pi,od==0?1:8);Kn[Gu]=1,id==2&&(Kn[Gu=ee(Pi,8)]=1);var $r=1}else{var yr=o(19),Bc=ee(Pi,4)+4;if(19<Bc){Hu.a=3;var io=0;break s}for(so=0;so<Bc;++so)yr[Fc[so]]=ee(Pi,3);var Tl=void 0,Ho=void 0,ti=Hu,Wu=yr,jl=ao,Vu=Kn,Yu=0,Ti=ti.m,ld=8,cd=l(128,$);r:for(;D(cd,0,7,Wu,19);){if(ee(Ti,1)){var Dh=2+2*ee(Ti,3);if((Tl=2+ee(Ti,Dh))>jl)break r}else Tl=jl;for(Ho=0;Ho<jl&&Tl--;){le(Ti);var ud=cd[0+(127&V(Ti))];oe(Ti,Ti.u+ud.g);var oo=ud.value;if(16>oo)Vu[Ho++]=oo,oo!=0&&(ld=oo);else{var Mh=oo==16,kh=oo-16,Fh=_l[kh],fd=ee(Ti,ra[kh])+Fh;if(Ho+fd>jl)break r;for(var Ih=Mh?ld:0;0<fd--;)Vu[Ho++]=Ih}}Yu=1;break r}Yu||(ti.a=3),$r=Yu}($r=$r&&!Pi.h)&&(qu=D(sd,ad,8,Kn,ao)),$r&&qu!=0?io=qu:(Hu.a=3,io=0)}if(io==0)break n;if(Cs&&ku[Ut]==1&&(Cs=Dt[an].g==0),ca+=Dt[an].g,an+=io,3>=Ut){var qo,Qu=vr[0];for(qo=1;qo<Lr;++qo)vr[qo]>Qu&&(Qu=vr[qo]);Dr+=Qu}}if(Mt.nd=Cs,Mt.Qb=0,Cs&&(Mt.qb=(Tn[3][Ls[3]+0].value<<24|Tn[1][Ls[1]+0].value<<16|Tn[2][Ls[2]+0].value)>>>0,ca==0&&256>Tn[0][Ls[0]+0].value&&(Mt.Qb=1,Mt.qb+=Tn[0][Ls[0]+0].value<<8)),Mt.jc=!Mt.Qb&&6>Dr,Mt.jc){var zc,ni=Mt;for(zc=0;zc<Xi;++zc){var ji=zc,Oi=ni.pd[ji],$u=ni.G[0][ni.H[0]+ji];256<=$u.value?(Oi.g=$u.g+256,Oi.value=$u.value):(Oi.g=0,Oi.value=0,ji>>=fn($u,8,Oi),ji>>=fn(ni.G[1][ni.H[1]+ji],16,Oi),ji>>=fn(ni.G[2][ni.H[2]+ji],0,Oi),fn(ni.G[3][ni.H[3]+ji],24,Oi))}}}Or.vc=cn,Or.Wb=En,Or.Ya=ys,Or.yc=Rr,st=1;break t}st=0}if(!(ne=st)){I.a=3;break e}if(0<Pe){if(de.ua=1<<Pe,!ce(de.Wa,Pe)){I.a=1,ne=0;break e}}else de.ua=0;var Xu=I,Go=re,Uh=ie,Ol=Xu.s,Ll=Ol.xc;if(Xu.c=Go,Xu.i=Uh,Ol.md=De(Go,Ll),Ol.wc=Ll==0?-1:(1<<Ll)-1,T){I.xb=Ji;break e}if((xe=o(re*ie))==null){I.a=1,ne=0;break e}ne=(ne=or(I,xe,0,re,ie,ie,null))&&!ue.h;break e}return ne?(J!=null?J[0]=xe:(t(xe==null),t(T)),I.$=0,T||ts(de)):ts(de),ne}function ns(v,S){var T=v.c*v.i,I=T+S+16*S;return t(v.c<=S),v.V=o(I),v.V==null?(v.Ta=null,v.Ua=0,v.a=1,0):(v.Ta=v.V,v.Ua=v.Ba+T+S,1)}function za(v,S){var T=v.C,I=S-T,J=v.V,ne=v.Ba+v.c*T;for(t(S<=v.l.o);0<I;){var re=16<I?16:I,ie=v.l.ma,ue=v.l.width,de=ue*re,xe=ie.ca,Pe=ie.tb+ue*T,fe=v.Ta,Se=v.Ua;es(v,re,J,ne),Ys(fe,Se,xe,Pe,de),Sn(ie,T,T+re,xe,Pe,ue),I-=re,J+=re*v.c,T+=re}t(T==S),v.C=v.Ma=S}function Bs(){this.ub=this.yd=this.td=this.Rb=0}function wa(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Eo(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Ha(){this.Yb=(function(){var v=[];return(function S(T,I,J){for(var ne=J[I],re=0;re<ne&&(T.push(J.length>I+1?[]:0),!(J.length<I+1));re++)S(T[re],I+1,J)})(v,0,[3,11]),v})()}function wr(){this.jb=o(3),this.Wc=c([4,8],Ha),this.Xc=c([4,17],Ha)}function hc(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function zs(){this.ld=this.La=this.dd=this.tc=0}function Sa(){this.Na=this.la=0}function oi(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function pc(){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 mc(){this.uc=this.M=this.Nb=0,this.wa=Array(new zs),this.Y=0,this.ya=Array(new pc),this.aa=0,this.l=new li}function gc(){this.y=o(16),this.f=o(8),this.ea=o(8)}function bu(){this.cb=this.a=0,this.sc="",this.m=new P,this.Od=new Bs,this.Kc=new wa,this.ed=new hc,this.Qa=new Eo,this.Ic=this.$c=this.Aa=0,this.D=new mc,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=l(8,P),this.ia=0,this.pb=l(4,oi),this.Pa=new wr,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new gc),this.Hd=0,this.rb=Array(new Sa),this.sb=0,this.wa=Array(new zs),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 pc),this.L=this.aa=0,this.gd=c([4,2],zs),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 Hs(v,S){return 0>v?0:v>S?S:v}function li(){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 Aa(){var v=new bu;return v!=null&&(v.a=0,v.sc="OK",v.cb=0,v.Xb=0,Qs||(Qs=Vi)),v}function On(v,S,T){return v.a==0&&(v.a=S,v.sc=T,v.cb=0),0}function vc(v,S,T){return 3<=T&&v[S+0]==157&&v[S+1]==1&&v[S+2]==42}function qa(v,S){if(v==null)return 0;if(v.a=0,v.sc="OK",S==null)return On(v,2,"null VP8Io passed to VP8GetHeaders()");var T=S.data,I=S.w,J=S.ha;if(4>J)return On(v,7,"Truncated header.");var ne=T[I+0]|T[I+1]<<8|T[I+2]<<16,re=v.Od;if(re.Rb=!(1&ne),re.td=ne>>1&7,re.yd=ne>>4&1,re.ub=ne>>5,3<re.td)return On(v,3,"Incorrect keyframe parameters.");if(!re.yd)return On(v,4,"Frame not displayable.");I+=3,J-=3;var ie=v.Kc;if(re.Rb){if(7>J)return On(v,7,"cannot parse picture header");if(!vc(T,I,J))return On(v,3,"Bad code word");ie.c=16383&(T[I+4]<<8|T[I+3]),ie.Td=T[I+4]>>6,ie.i=16383&(T[I+6]<<8|T[I+5]),ie.Ud=T[I+6]>>6,I+=7,J-=7,v.za=ie.c+15>>4,v.Ub=ie.i+15>>4,S.width=ie.c,S.height=ie.i,S.Da=0,S.j=0,S.v=0,S.va=S.width,S.o=S.height,S.da=0,S.ib=S.width,S.hb=S.height,S.U=S.width,S.T=S.height,a((ne=v.Pa).jb,0,255,ne.jb.length),t((ne=v.Qa)!=null),ne.Cb=0,ne.Bb=0,ne.Fb=1,a(ne.Zb,0,0,ne.Zb.length),a(ne.Lb,0,0,ne.Lb)}if(re.ub>J)return On(v,7,"bad partition length");L(ne=v.m,T,I,re.ub),I+=re.ub,J-=re.ub,re.Rb&&(ie.Ld=ge(ne),ie.Kd=ge(ne)),ie=v.Qa;var ue,de=v.Pa;if(t(ne!=null),t(ie!=null),ie.Cb=ge(ne),ie.Cb){if(ie.Bb=ge(ne),ge(ne)){for(ie.Fb=ge(ne),ue=0;4>ue;++ue)ie.Zb[ue]=ge(ne)?X(ne,7):0;for(ue=0;4>ue;++ue)ie.Lb[ue]=ge(ne)?X(ne,6):0}if(ie.Bb)for(ue=0;3>ue;++ue)de.jb[ue]=ge(ne)?M(ne,8):255}else ie.Bb=0;if(ne.Ka)return On(v,3,"cannot parse segment header");if((ie=v.ed).zd=ge(ne),ie.Tb=M(ne,6),ie.wb=M(ne,3),ie.Pc=ge(ne),ie.Pc&&ge(ne)){for(de=0;4>de;++de)ge(ne)&&(ie.vd[de]=X(ne,6));for(de=0;4>de;++de)ge(ne)&&(ie.od[de]=X(ne,6))}if(v.L=ie.Tb==0?0:ie.zd?1:2,ne.Ka)return On(v,3,"cannot parse filter header");var xe=J;if(J=ue=I,I=ue+xe,ie=xe,v.Xb=(1<<M(v.m,2))-1,xe<3*(de=v.Xb))T=7;else{for(ue+=3*de,ie-=3*de,xe=0;xe<de;++xe){var Pe=T[J+0]|T[J+1]<<8|T[J+2]<<16;Pe>ie&&(Pe=ie),L(v.Jc[+xe],T,ue,Pe),ue+=Pe,ie-=Pe,J+=3}L(v.Jc[+de],T,ue,ie),T=ue<I?0:5}if(T!=0)return On(v,T,"cannot parse partitions");for(T=M(ue=v.m,7),J=ge(ue)?X(ue,4):0,I=ge(ue)?X(ue,4):0,ie=ge(ue)?X(ue,4):0,de=ge(ue)?X(ue,4):0,ue=ge(ue)?X(ue,4):0,xe=v.Qa,Pe=0;4>Pe;++Pe){if(xe.Cb){var fe=xe.Zb[Pe];xe.Fb||(fe+=T)}else{if(0<Pe){v.pb[Pe]=v.pb[0];continue}fe=T}var Se=v.pb[Pe];Se.Sc[0]=ia[Hs(fe+J,127)],Se.Sc[1]=oa[Hs(fe+0,127)],Se.Eb[0]=2*ia[Hs(fe+I,127)],Se.Eb[1]=101581*oa[Hs(fe+ie,127)]>>16,8>Se.Eb[1]&&(Se.Eb[1]=8),Se.Qc[0]=ia[Hs(fe+de,117)],Se.Qc[1]=oa[Hs(fe+ue,127)],Se.lc=fe+ue}if(!re.Rb)return On(v,4,"Not a key frame.");for(ge(ne),re=v.Pa,T=0;4>T;++T){for(J=0;8>J;++J)for(I=0;3>I;++I)for(ie=0;11>ie;++ie)de=Ae(ne,nr[T][J][I][ie])?M(ne,8):Lh[T][J][I][ie],re.Wc[T][J].Yb[I][ie]=de;for(J=0;17>J;++J)re.Xc[T][J]=re.Wc[T][mn[J]]}return v.kc=ge(ne),v.kc&&(v.Bd=M(ne,8)),v.cb=1}function Vi(v,S,T,I,J,ne,re){var ie=S[J].Yb[T];for(T=0;16>J;++J){if(!Ae(v,ie[T+0]))return J;for(;!Ae(v,ie[T+1]);)if(ie=S[++J].Yb[0],T=0,J==16)return 16;var ue=S[J+1].Yb;if(Ae(v,ie[T+2])){var de=v,xe=0;if(Ae(de,(fe=ie)[(Pe=T)+3]))if(Ae(de,fe[Pe+6])){for(ie=0,Pe=2*(xe=Ae(de,fe[Pe+8]))+(fe=Ae(de,fe[Pe+9+xe])),xe=0,fe=Oh[Pe];fe[ie];++ie)xe+=xe+Ae(de,fe[ie]);xe+=3+(8<<Pe)}else Ae(de,fe[Pe+7])?(xe=7+2*Ae(de,165),xe+=Ae(de,145)):xe=5+Ae(de,159);else xe=Ae(de,fe[Pe+4])?3+Ae(de,fe[Pe+5]):2;ie=ue[2]}else xe=1,ie=ue[1];ue=re+td[J],0>(de=v).b&&me(de);var Pe,fe=de.b,Se=(Pe=de.Ca>>1)-(de.I>>fe)>>31;--de.b,de.Ca+=Se,de.Ca|=1,de.I-=(Pe+1&Se)<<fe,ne[ue]=((xe^Se)-Se)*I[(0<J)+0]}return 16}function yc(v){var S=v.rb[v.sb-1];S.la=0,S.Na=0,a(v.zc,0,0,v.zc.length),v.ja=0}function ws(v,S,T,I,J){J=v[S+T+32*I]+(J>>3),v[S+T+32*I]=-256&J?0>J?0:255:J}
vendor: 5,362 bytes, line 443
443function Ur(v,S,T,I,J,ne){ws(v,S,0,T,I+J),ws(v,S,1,T,I+ne),ws(v,S,2,T,I-ne),ws(v,S,3,T,I-J)}function Pr(v){return(20091*v>>16)+v}function dl(v,S,T,I){var J,ne=0,re=o(16);for(J=0;4>J;++J){var ie=v[S+0]+v[S+8],ue=v[S+0]-v[S+8],de=(35468*v[S+4]>>16)-Pr(v[S+12]),xe=Pr(v[S+4])+(35468*v[S+12]>>16);re[ne+0]=ie+xe,re[ne+1]=ue+de,re[ne+2]=ue-de,re[ne+3]=ie-xe,ne+=4,S++}for(J=ne=0;4>J;++J)ie=(v=re[ne+0]+4)+re[ne+8],ue=v-re[ne+8],de=(35468*re[ne+4]>>16)-Pr(re[ne+12]),ws(T,I,0,0,ie+(xe=Pr(re[ne+4])+(35468*re[ne+12]>>16))),ws(T,I,1,0,ue+de),ws(T,I,2,0,ue-de),ws(T,I,3,0,ie-xe),ne++,I+=32}function xu(v,S,T,I){var J=v[S+0]+4,ne=35468*v[S+4]>>16,re=Pr(v[S+4]),ie=35468*v[S+1]>>16;Ur(T,I,0,J+re,v=Pr(v[S+1]),ie),Ur(T,I,1,J+ne,v,ie),Ur(T,I,2,J-ne,v,ie),Ur(T,I,3,J-re,v,ie)}function bc(v,S,T,I,J){dl(v,S,T,I),J&&dl(v,S+16,T,I+4)}function Ss(v,S,T,I){_i(v,S+0,T,I,1),_i(v,S+32,T,I+128,1)}function xc(v,S,T,I){var J;for(v=v[S+0]+4,J=0;4>J;++J)for(S=0;4>S;++S)ws(T,I,S,J,v)}function wc(v,S,T,I){v[S+0]&&Ln(v,S+0,T,I),v[S+16]&&Ln(v,S+16,T,I+4),v[S+32]&&Ln(v,S+32,T,I+128),v[S+48]&&Ln(v,S+48,T,I+128+4)}function Na(v,S,T,I){var J,ne=o(16);for(J=0;4>J;++J){var re=v[S+0+J]+v[S+12+J],ie=v[S+4+J]+v[S+8+J],ue=v[S+4+J]-v[S+8+J],de=v[S+0+J]-v[S+12+J];ne[0+J]=re+ie,ne[8+J]=re-ie,ne[4+J]=de+ue,ne[12+J]=de-ue}for(J=0;4>J;++J)re=(v=ne[0+4*J]+3)+ne[3+4*J],ie=ne[1+4*J]+ne[2+4*J],ue=ne[1+4*J]-ne[2+4*J],de=v-ne[3+4*J],T[I+0]=re+ie>>3,T[I+16]=de+ue>>3,T[I+32]=re-ie>>3,T[I+48]=de-ue>>3,I+=64}function Po(v,S,T){var I,J=S-32,ne=ms,re=255-v[J-1];for(I=0;I<T;++I){var ie,ue=ne,de=re+v[S-1];for(ie=0;ie<T;++ie)v[S+ie]=ue[de+v[J+ie]];S+=32}}function wu(v,S){Po(v,S,4)}function Su(v,S){Po(v,S,8)}function Sc(v,S){Po(v,S,16)}function Ac(v,S){var T;for(T=0;16>T;++T)r(v,S+32*T,v,S-32,16)}function Au(v,S){var T;for(T=16;0<T;--T)a(v,S,v[S-1],16),S+=32}function js(v,S,T){var I;for(I=0;16>I;++I)a(S,T+32*I,v,16)}function _a(v,S){var T,I=16;for(T=0;16>T;++T)I+=v[S-1+32*T]+v[S+T-32];js(I>>5,v,S)}function ci(v,S){var T,I=8;for(T=0;16>T;++T)I+=v[S-1+32*T];js(I>>4,v,S)}function To(v,S){var T,I=8;for(T=0;16>T;++T)I+=v[S+T-32];js(I>>4,v,S)}function Yi(v,S){js(128,v,S)}function It(v,S,T){return v+2*S+T+2>>2}function Nu(v,S){var T,I=S-32;for(I=new Uint8Array([It(v[I-1],v[I+0],v[I+1]),It(v[I+0],v[I+1],v[I+2]),It(v[I+1],v[I+2],v[I+3]),It(v[I+2],v[I+3],v[I+4])]),T=0;4>T;++T)r(v,S+32*T,I,0,I.length)}function Nc(v,S){var T=v[S-1],I=v[S-1+32],J=v[S-1+64],ne=v[S-1+96];Oe(v,S+0,16843009*It(v[S-1-32],T,I)),Oe(v,S+32,16843009*It(T,I,J)),Oe(v,S+64,16843009*It(I,J,ne)),Oe(v,S+96,16843009*It(J,ne,ne))}function _u(v,S){var T,I=4;for(T=0;4>T;++T)I+=v[S+T-32]+v[S-1+32*T];for(I>>=3,T=0;4>T;++T)a(v,S+32*T,I,4)}function qs(v,S){var T=v[S-1+0],I=v[S-1+32],J=v[S-1+64],ne=v[S-1-32],re=v[S+0-32],ie=v[S+1-32],ue=v[S+2-32],de=v[S+3-32];v[S+0+96]=It(I,J,v[S-1+96]),v[S+1+96]=v[S+0+64]=It(T,I,J),v[S+2+96]=v[S+1+64]=v[S+0+32]=It(ne,T,I),v[S+3+96]=v[S+2+64]=v[S+1+32]=v[S+0+0]=It(re,ne,T),v[S+3+64]=v[S+2+32]=v[S+1+0]=It(ie,re,ne),v[S+3+32]=v[S+2+0]=It(ue,ie,re),v[S+3+0]=It(de,ue,ie)}function rs(v,S){var T=v[S+1-32],I=v[S+2-32],J=v[S+3-32],ne=v[S+4-32],re=v[S+5-32],ie=v[S+6-32],ue=v[S+7-32];v[S+0+0]=It(v[S+0-32],T,I),v[S+1+0]=v[S+0+32]=It(T,I,J),v[S+2+0]=v[S+1+32]=v[S+0+64]=It(I,J,ne),v[S+3+0]=v[S+2+32]=v[S+1+64]=v[S+0+96]=It(J,ne,re),v[S+3+32]=v[S+2+64]=v[S+1+96]=It(ne,re,ie),v[S+3+64]=v[S+2+96]=It(re,ie,ue),v[S+3+96]=It(ie,ue,ue)}function _c(v,S){var T=v[S-1+0],I=v[S-1+32],J=v[S-1+64],ne=v[S-1-32],re=v[S+0-32],ie=v[S+1-32],ue=v[S+2-32],de=v[S+3-32];v[S+0+0]=v[S+1+64]=ne+re+1>>1,v[S+1+0]=v[S+2+64]=re+ie+1>>1,v[S+2+0]=v[S+3+64]=ie+ue+1>>1,v[S+3+0]=ue+de+1>>1,v[S+0+96]=It(J,I,T),v[S+0+64]=It(I,T,ne),v[S+0+32]=v[S+1+96]=It(T,ne,re),v[S+1+32]=v[S+2+96]=It(ne,re,ie),v[S+2+32]=v[S+3+96]=It(re,ie,ue),v[S+3+32]=It(ie,ue,de)}function jo(v,S){var T=v[S+0-32],I=v[S+1-32],J=v[S+2-32],ne=v[S+3-32],re=v[S+4-32],ie=v[S+5-32],ue=v[S+6-32],de=v[S+7-32];v[S+0+0]=T+I+1>>1,v[S+1+0]=v[S+0+64]=I+J+1>>1,v[S+2+0]=v[S+1+64]=J+ne+1>>1,v[S+3+0]=v[S+2+64]=ne+re+1>>1,v[S+0+32]=It(T,I,J),v[S+1+32]=v[S+0+96]=It(I,J,ne),v[S+2+32]=v[S+1+96]=It(J,ne,re),v[S+3+32]=v[S+2+96]=It(ne,re,ie),v[S+3+64]=It(re,ie,ue),v[S+3+96]=It(ie,ue,de)}function Gs(v,S){var T=v[S-1+0],I=v[S-1+32],J=v[S-1+64],ne=v[S-1+96];v[S+0+0]=T+I+1>>1,v[S+2+0]=v[S+0+32]=I+J+1>>1,v[S+2+32]=v[S+0+64]=J+ne+1>>1,v[S+1+0]=It(T,I,J),v[S+3+0]=v[S+1+32]=It(I,J,ne),v[S+3+32]=v[S+1+64]=It(J,ne,ne),v[S+3+64]=v[S+2+64]=v[S+0+96]=v[S+1+96]=v[S+2+96]=v[S+3+96]=ne}function Oo(v,S){var T=v[S-1+0],I=v[S-1+32],J=v[S-1+64],ne=v[S-1+96],re=v[S-1-32],ie=v[S+0-32],ue=v[S+1-32],de=v[S+2-32];v[S+0+0]=v[S+2+32]=T+re+1>>1,v[S+0+32]=v[S+2+64]=I+T+1>>1,v[S+0+64]=v[S+2+96]=J+I+1>>1,v[S+0+96]=ne+J+1>>1,v[S+3+0]=It(ie,ue,de),v[S+2+0]=It(re,ie,ue),v[S+1+0]=v[S+3+32]=It(T,re,ie),v[S+1+32]=v[S+3+64]=It(I,T,re),v[S+1+64]=v[S+3+96]=It(J,I,T),v[S+1+96]=It(ne,J,I)}function Ga(v,S){var T;for(T=0;8>T;++T)r(v,S+32*T,v,S-32,8)}function Cu(v,S){var T;for(T=0;8>T;++T)a(v,S,v[S-1],8),S+=32}function Zs(v,S,T){var I;for(I=0;8>I;++I)a(S,T+32*I,v,8)}function hl(v,S){var T,I=8;for(T=0;8>T;++T)I+=v[S+T-32]+v[S-1+32*T];Zs(I>>4,v,S)}function pl(v,S){var T,I=4;for(T=0;8>T;++T)I+=v[S+T-32];Zs(I>>3,v,S)}function Yr(v,S){var T,I=4;for(T=0;8>T;++T)I+=v[S-1+32*T];Zs(I>>3,v,S)}function Wa(v,S){Zs(128,v,S)}function Js(v,S,T){var I=v[S-T],J=v[S+0],ne=3*(J-I)+Ci[1020+v[S-2*T]-v[S+T]],re=Dc[112+(ne+4>>
vendor: 18,253 bytes, line 443
4433)];v[S-T]=ms[255+I+Dc[112+(ne+3>>3)]],v[S+0]=ms[255+J-re]}function ui(v,S,T,I){var J=v[S+0],ne=v[S+T];return is[255+v[S-2*T]-v[S-T]]>I||is[255+ne-J]>I}function ml(v,S,T,I){return 4*is[255+v[S-T]-v[S+0]]+is[255+v[S-2*T]-v[S+T]]<=I}function Lo(v,S,T,I,J){var ne=v[S-3*T],re=v[S-2*T],ie=v[S-T],ue=v[S+0],de=v[S+T],xe=v[S+2*T],Pe=v[S+3*T];return 4*is[255+ie-ue]+is[255+re-de]>I?0:is[255+v[S-4*T]-ne]<=J&&is[255+ne-re]<=J&&is[255+re-ie]<=J&&is[255+Pe-xe]<=J&&is[255+xe-de]<=J&&is[255+de-ue]<=J}function fi(v,S,T,I){var J=2*I+1;for(I=0;16>I;++I)ml(v,S+I,T,J)&&Js(v,S+I,T)}function di(v,S,T,I){var J=2*I+1;for(I=0;16>I;++I)ml(v,S+I*T,1,J)&&Js(v,S+I*T,1)}function Ro(v,S,T,I){var J;for(J=3;0<J;--J)fi(v,S+=4*T,T,I)}function Cc(v,S,T,I){var J;for(J=3;0<J;--J)di(v,S+=4,T,I)}function hi(v,S,T,I,J,ne,re,ie){for(ne=2*ne+1;0<J--;){if(Lo(v,S,T,ne,re))if(ui(v,S,T,ie))Js(v,S,T);else{var ue=v,de=S,xe=T,Pe=ue[de-2*xe],fe=ue[de-xe],Se=ue[de+0],Ce=ue[de+xe],ke=ue[de+2*xe],Ee=27*(He=Ci[1020+3*(Se-fe)+Ci[1020+Pe-Ce]])+63>>7,Me=18*He+63>>7,He=9*He+63>>7;ue[de-3*xe]=ms[255+ue[de-3*xe]+He],ue[de-2*xe]=ms[255+Pe+Me],ue[de-xe]=ms[255+fe+Ee],ue[de+0]=ms[255+Se-Ee],ue[de+xe]=ms[255+Ce-Me],ue[de+2*xe]=ms[255+ke-He]}S+=I}}function pi(v,S,T,I,J,ne,re,ie){for(ne=2*ne+1;0<J--;){if(Lo(v,S,T,ne,re))if(ui(v,S,T,ie))Js(v,S,T);else{var ue=v,de=S,xe=T,Pe=ue[de-xe],fe=ue[de+0],Se=ue[de+xe],Ce=Dc[112+(4+(ke=3*(fe-Pe))>>3)],ke=Dc[112+(ke+3>>3)],Ee=Ce+1>>1;ue[de-2*xe]=ms[255+ue[de-2*xe]+Ee],ue[de-xe]=ms[255+Pe+ke],ue[de+0]=ms[255+fe-Ce],ue[de+xe]=ms[255+Se-Ee]}S+=I}}function Eu(v,S,T,I,J,ne){hi(v,S,T,1,16,I,J,ne)}function mi(v,S,T,I,J,ne){hi(v,S,1,T,16,I,J,ne)}function Pu(v,S,T,I,J,ne){var re;for(re=3;0<re;--re)pi(v,S+=4*T,T,1,16,I,J,ne)}function C(v,S,T,I,J,ne){var re;for(re=3;0<re;--re)pi(v,S+=4,1,T,16,I,J,ne)}function Z(v,S,T,I,J,ne,re,ie){hi(v,S,J,1,8,ne,re,ie),hi(T,I,J,1,8,ne,re,ie)}function he(v,S,T,I,J,ne,re,ie){hi(v,S,1,J,8,ne,re,ie),hi(T,I,1,J,8,ne,re,ie)}function be(v,S,T,I,J,ne,re,ie){pi(v,S+4*J,J,1,8,ne,re,ie),pi(T,I+4*J,J,1,8,ne,re,ie)}function Ne(v,S,T,I,J,ne,re,ie){pi(v,S+4,1,J,8,ne,re,ie),pi(T,I+4,1,J,8,ne,re,ie)}function ze(){this.ba=new ye,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ie,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ye(){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 bt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Pt(){this.ua=0,this.Wa=new it,this.vb=new it,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new te,this.yc=new $}function Wt(){this.xb=this.a=0,this.l=new li,this.ca=new ye,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new B,this.Pb=0,this.wd=new B,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Pt,this.ab=0,this.gc=l(4,bt),this.Oc=0}function tn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new li,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function An(v,S,T,I,J,ne,re){for(v=v==null?0:v[S+0],S=0;S<re;++S)J[ne+S]=v+T[I+S]&255,v=J[ne+S]}function cr(v,S,T,I,J,ne,re){var ie;if(v==null)An(null,null,T,I,J,ne,re);else for(ie=0;ie<re;++ie)J[ne+ie]=v[S+ie]+T[I+ie]&255}function Sr(v,S,T,I,J,ne,re){if(v==null)An(null,null,T,I,J,ne,re);else{var ie,ue=v[S+0],de=ue,xe=ue;for(ie=0;ie<re;++ie)de=xe+(ue=v[S+ie])-de,xe=T[I+ie]+(-256&de?0>de?0:255:de)&255,de=ue,J[ne+ie]=xe}}function Qn(v,S,T,I){var J=S.width,ne=S.o;if(t(v!=null&&S!=null),0>T||0>=I||T+I>ne)return null;if(!v.Cc){if(v.ga==null){var re;if(v.ga=new tn,(re=v.ga==null)||(re=S.width*S.o,t(v.Gb.length==0),v.Gb=o(re),v.Uc=0,v.Gb==null?re=0:(v.mb=v.Gb,v.nb=v.Uc,v.rc=null,re=1),re=!re),!re){re=v.ga;var ie=v.Fa,ue=v.P,de=v.qc,xe=v.mb,Pe=v.nb,fe=ue+1,Se=de-1,Ce=re.l;if(t(ie!=null&&xe!=null&&S!=null),Ei[0]=null,Ei[1]=An,Ei[2]=cr,Ei[3]=Sr,re.ca=xe,re.tb=Pe,re.c=S.width,re.i=S.height,t(0<re.c&&0<re.i),1>=de)S=0;else if(re.$a=3&ie[ue+0],re.Z=ie[ue+0]>>2&3,re.Lc=ie[ue+0]>>4&3,ue=ie[ue+0]>>6&3,0>re.$a||1<re.$a||4<=re.Z||1<re.Lc||ue)S=0;else if(Ce.put=Ke,Ce.ac=Bt,Ce.bc=Gt,Ce.ma=re,Ce.width=S.width,Ce.height=S.height,Ce.Da=S.Da,Ce.v=S.v,Ce.va=S.va,Ce.j=S.j,Ce.o=S.o,re.$a)e:{t(re.$a==1),S=Ks();t:for(;;){if(S==null){S=0;break e}if(t(re!=null),re.mc=S,S.c=re.c,S.i=re.i,S.l=re.l,S.l.ma=re,S.l.width=re.c,S.l.height=re.i,S.a=0,se(S.m,ie,fe,Se),!hs(re.c,re.i,1,S,null)||(S.ab==1&&S.gc[0].hc==3&&dn(S.s)?(re.ic=1,ie=S.c*S.i,S.Ta=null,S.Ua=0,S.V=o(ie),S.Ba=0,S.V==null?(S.a=1,S=0):S=1):(re.ic=0,S=ns(S,re.c)),!S))break t;S=1;break e}re.mc=null,S=0}else S=Se>=re.c*re.i;re=!S}if(re)return null;v.ga.Lc!=1?v.Ga=0:I=ne-T}t(v.ga!=null),t(T+I<=ne);e:{if(S=(ie=v.ga).c,ne=ie.l.o,ie.$a==0){if(fe=v.rc,Se=v.Vc,Ce=v.Fa,ue=v.P+1+T*S,de=v.mb,xe=v.nb+T*S,t(ue<=v.P+v.qc),ie.Z!=0)for(t(Ei[ie.Z]!=null),re=0;re<I;++re)Ei[ie.Z](fe,Se,Ce,ue,de,xe,S),fe=de,Se=xe,xe+=S,ue+=S;else for(re=0;re<I;++re)r(de,xe,Ce,ue,S),fe=de,Se=xe,xe+=S,ue+=S;v.rc=fe,v.Vc=Se}else{if(t(ie.mc!=null),S=T+I,t((re=ie.mc)!=null),t(S<=re.i),re.C>=S)S=1;else if(ie.ic||Ca(),ie.ic){ie=re.V,fe=re.Ba,Se=re.c;var ke=re.i,Ee=(Ce=1,ue=re.$/Se,de=re.$%Se,xe=re.m,Pe=re.s,re.$),Me=Se*ke,He=Se*S,$e=Pe.wc,We=Ee<He?jn(Pe,de,ue):null;t(Ee<=Me),t(S<=ke),t(dn(Pe));t:for(;;){for(;!xe.h&&Ee<He;){if(de&$e||(We=jn(Pe,de,ue)),t(We!=null),le(xe),256>(ke=Qt(We.G[0],We.H[0],xe)))ie[fe+Ee]=ke,++Ee,++de>=Se&&(de=0,++ue<=S&&!(ue%16)&&tr(re,ue));else{if(!(280>ke)){Ce=0;break t}ke=en(ke-256,xe);var wt,ht=Qt(We.G[4],We.H[4],xe);if(le(xe),!(Ee>=(ht=$t(Se,ht=en(ht,xe)))&&Me-Ee>=ke)){Ce=0;break t}for(wt=0;wt<ke;++wt)ie[fe+Ee+wt]=ie[fe+Ee+wt-ht];for(Ee+=ke,de+=ke;de>=Se;)de-=Se,++ue<=S&&!(ue%16)&&tr(re,ue);Ee<He&&de&$e&&(We=jn(Pe,de,ue))}t(xe.h==Y(xe))}tr(re,ue>S?S:ue);break t}!Ce||xe.h&&Ee<Me?(Ce=0,re.a=xe.h?5:3):re.$=Ee,S=Ce}else S=or(re,re.V,re.Ba,re.c,re.i,S,za);if(!S){I=0;break e}}T+I>=ne&&(v.Cc=1),I=1}if(!I)return null;if(v.Cc&&((I=v.ga)!=null&&(I.mc=null),v.ga=null,0<v.Ga))return alert("todo:WebPDequantizeLevels"),null}return v.nb+T*J}function Br(v,S,T,I,J,ne){for(;0<J--;){var re,ie=v,ue=S+(T?1:0),de=v,xe=S+(T?0:3);for(re=0;re<I;++re){var Pe=de[xe+4*re];Pe!=255&&(Pe*=32897,ie[ue+4*re+0]=ie[ue+4*re+0]*Pe>>23,ie[ue+4*re+1]=ie[ue+4*re+1]*Pe>>23,ie[ue+4*re+2]=ie[ue+4*re+2]*Pe>>23)}S+=ne}}function Tr(v,S,T,I,J){for(;0<I--;){var ne;for(ne=0;ne<T;++ne){var re=v[S+2*ne+0],ie=15&(de=v[S+2*ne+1]),ue=4369*ie,de=(240&de|de>>4)*ue>>16;v[S+2*ne+0]=(240&re|re>>4)*ue>>16&240|(15&re|re<<4)*ue>>16>>4&15,v[S+2*ne+1]=240&de|ie}S+=J}}function ss(v,S,T,I,J,ne,re,ie){var ue,de,xe=255;for(de=0;de<J;++de){for(ue=0;ue<I;++ue){var Pe=v[S+ue];ne[re+4*ue]=Pe,xe&=Pe}S+=T,re+=ie}return xe!=255}function gi(v,S,T,I,J){var ne;for(ne=0;ne<J;++ne)T[I+ne]=v[S+ne]>>8}function Ca(){Fo=Br,ta=Tr,Oc=ss,Ys=gi}function vi(v,S,T){R[v]=function(I,J,ne,re,ie,ue,de,xe,Pe,fe,Se,Ce,ke,Ee,Me,He,$e){var We,wt=$e-1>>1,ht=ie[ue+0]|de[xe+0]<<16,Kt=Pe[fe+0]|Se[Ce+0]<<16;t(I!=null);var gt=3*ht+Kt+131074>>2;for(S(I[J+0],255>,gt>>16,ke,Ee),ne!=null&&(gt=3*Kt+ht+131074>>2,S(ne[re+0],255>,gt>>16,Me,He)),We=1;We<=wt;++We){var hn=ie[ue+We]|de[xe+We]<<16,rr=Pe[fe+We]|Se[Ce+We]<<16,nn=ht+hn+Kt+rr+524296,pt=nn+2*(hn+Kt)>>3;gt=pt+ht>>1,ht=(nn=nn+2*(ht+rr)>>3)+hn>>1,S(I[J+2*We-1],255>,gt>>16,ke,Ee+(2*We-1)*T),S(I[J+2*We-0],255&ht,ht>>16,ke,Ee+(2*We-0)*T),ne!=null&&(gt=nn+Kt>>1,ht=pt+rr>>1,S(ne[re+2*We-1],255>,gt>>16,Me,He+(2*We-1)*T),S(ne[re+2*We+0],255&ht,ht>>16,Me,He+(2*We+0)*T)),ht=hn,Kt=rr}1&$e||(gt=3*ht+Kt+131074>>2,S(I[J+$e-1],255>,gt>>16,ke,Ee+($e-1)*T),ne!=null&&(gt=3*Kt+ht+131074>>2,S(ne[re+$e-1],255>,gt>>16,Me,He+($e-1)*T)))}}function Ec(){ls[Lu]=Bo,ls[gs]=Cl,ls[Ru]=rd,ls[na]=Iu,ls[Mc]=eo,ls[Al]=ei,ls[Ki]=to,ls[kc]=Cl,ls[Du]=Iu,ls[Nl]=eo,ls[Mu]=ei}function gl(v){return v&-16384?0>v?0:255:v>>Uu}function Va(v,S){return gl((19077*v>>8)+(26149*S>>8)-14234)}function Ea(v,S,T){return gl((19077*v>>8)-(6419*S>>8)-(13320*T>>8)+8708)}function Do(v,S){return gl((19077*v>>8)+(33050*S>>8)-17685)}function yi(v,S,T,I,J){I[J+0]=Va(v,T),I[J+1]=Ea(v,S,T),I[J+2]=Do(v,S)}function Qr(v,S,T,I,J){I[J+0]=Do(v,S),I[J+1]=Ea(v,S,T),I[J+2]=Va(v,T)}function Qi(v,S,T,I,J){var ne=Ea(v,S,T);S=ne<<3&224|Do(v,S)>>3,I[J+0]=248&Va(v,T)|ne>>5,I[J+1]=S}function $i(v,S,T,I,J){var ne=240&Do(v,S)|15;I[J+0]=240&Va(v,T)|Ea(v,S,T)>>4,I[J+1]=ne}function vl(v,S,T,I,J){I[J+0]=255,yi(v,S,T,I,J+1)}function Ya(v,S,T,I,J){Qr(v,S,T,I,J),I[J+3]=255}function As(v,S,T,I,J){yi(v,S,T,I,J),I[J+3]=255}function bi(v,S,T){R[v]=function(I,J,ne,re,ie,ue,de,xe,Pe){for(var fe=xe+(-2&Pe)*T;xe!=fe;)S(I[J+0],ne[re+0],ie[ue+0],de,xe),S(I[J+1],ne[re+0],ie[ue+0],de,xe+T),J+=2,++re,++ue,xe+=2*T;1&Pe&&S(I[J+0],ne[re+0],ie[ue+0],de,xe)}}function yl(v,S,T){return T==0?v==0?S==0?6:5:S==0?4:0:T}function Pc(v,S,T,I,J){switch(v>>>30){case 3:_i(S,T,I,J,0);break;case 2:ps(S,T,I,J);break;case 1:Ln(S,T,I,J)}}function Ws(v,S){var T,I,J=S.M,ne=S.Nb,re=v.oc,ie=v.pc+40,ue=v.oc,de=v.pc+584,xe=v.oc,Pe=v.pc+600;for(T=0;16>T;++T)re[ie+32*T-1]=129;for(T=0;8>T;++T)ue[de+32*T-1]=129,xe[Pe+32*T-1]=129;for(0<J?re[ie-1-32]=ue[de-1-32]=xe[Pe-1-32]=129:(a(re,ie-32-1,127,21),a(ue,de-32-1,127,9),a(xe,Pe-32-1,127,9)),I=0;I<v.za;++I){var fe=S.ya[S.aa+I];if(0<I){for(T=-1;16>T;++T)r(re,ie+32*T-4,re,ie+32*T+12,4);for(T=-1;8>T;++T)r(ue,de+32*T-4,ue,de+32*T+4,4),r(xe,Pe+32*T-4,xe,Pe+32*T+4,4)}var Se=v.Gd,Ce=v.Hd+I,ke=fe.ad,Ee=fe.Hc;if(0<J&&(r(re,ie-32,Se[Ce].y,0,16),r(ue,de-32,Se[Ce].f,0,8),r(xe,Pe-32,Se[Ce].ea,0,8)),fe.Za){var Me=re,He=ie-32+16;for(0<J&&(I>=v.za-1?a(Me,He,Se[Ce].y[15],4):r(Me,He,Se[Ce+1].y,0,4)),T=0;4>T;T++)Me[He+128+T]=Me[He+256+T]=Me[He+384+T]=Me[He+0+T];for(T=0;16>T;++T,Ee<<=2)Me=re,He=ie+_r[T],gr[fe.Ob[T]](Me,He),Pc(Ee,ke,16*+T,Me,He)}else if(Me=yl(I,J,fe.Ob[0]),_s[Me](re,ie),Ee!=0)for(T=0;16>T;++T,Ee<<=2)Pc(Ee,ke,16*+T,re,ie+_r[T]);for(T=fe.Gc,Me=yl(I,J,fe.Dd),Oa[Me](ue,de),Oa[Me](xe,Pe),Ee=ke,Me=ue,He=de,255&(fe=0|T)&&(170&fe?ea(Ee,256,Me,He):Nn(Ee,256,Me,He)),fe=xe,Ee=Pe,255&(T>>=8)&&(170&T?ea(ke,320,fe,Ee):Nn(ke,320,fe,Ee)),J<v.Ub-1&&(r(Se[Ce].y,0,re,ie+480,16),r(Se[Ce].f,0,ue,de+224,8),r(Se[Ce].ea,0,xe,Pe+224,8)),T=8*ne*v.B,Se=v.sa,Ce=v.ta+16*I+16*ne*v.R,ke=v.qa,fe=v.ra+8*I+T,Ee=v.Ha,Me=v.Ia+8*I+T,T=0;16>T;++T)r(Se,Ce+T*v.R,re,ie+32*T,16);for(T=0;8>T;++T)r(ke,fe+T*v.B,ue,de+32*T,8),r(Ee,Me+T*v.B,xe,Pe+32*T,8)}}function Pa(v,S,T,I,J,ne,re,ie,ue){var de=[0],xe=[0],Pe=0,fe=ue!=null?ue.kd:0,Se=ue??new Ye;if(v==null||12>T)return 7;Se.data=v,Se.w=S,Se.ha=T,S=[S],T=[T],Se.gb=[Se.gb];e:{var Ce=S,ke=T,Ee=Se.gb;if(t(v!=null),t(ke!=null),t(Ee!=null),Ee[0]=0,12<=ke[0]&&!n(v,Ce[0],"RIFF")){if(n(v,Ce[0]+8,"WEBP")){Ee=3;break e}var Me=Je(v,Ce[0]+4);if(12>Me||4294967286<Me){Ee=3;break e}if(fe&&Me>ke[0]-8){Ee=7;break e}Ee[0]=Me,Ce[0]+=12,ke[0]-=12}Ee=0}if(Ee!=0)return Ee;for(Me=0<Se.gb[0],T=T[0];;){e:{var He=v;ke=S,Ee=T;var $e=de,We=xe,wt=Ce=[0];if((gt=Pe=[Pe])[0]=0,8>Ee[0])Ee=7;else{if(!n(He,ke[0],"VP8X")){if(Je(He,ke[0]+4)!=10){Ee=3;break e}if(18>Ee[0]){Ee=7;break e}var ht=Je(He,ke[0]+8),Kt=1+Qe(He,ke[0]+12);if(2147483648<=Kt*(He=1+Qe(He,ke[0]+15))){Ee=3;break e}wt!=null&&(wt[0]=ht),$e!=null&&($e[0]=Kt),We!=null&&(We[0]=He),ke[0]+=18,Ee[0]-=18,gt[0]=1}Ee=0}}if(Pe=Pe[0],Ce=Ce[0],Ee!=0)return Ee;if(ke=!!(2&Ce),!Me&&Pe)return 3;if(ne!=null&&(ne[0]=!!(16&Ce)),re!=null&&(re[0]=ke),ie!=null&&(ie[0]=0),re=de[0],Ce=xe[0],Pe&&ke&&ue==null){Ee=0;break}if(4>T){Ee=7;break}if(Me&&Pe||!Me&&!Pe&&!n(v,S[0],"ALPH")){T=[T],Se.na=[Se.na],Se.P=[Se.P],Se.Sa=[Se.Sa];e:{ht=v,Ee=S,Me=T;var gt=Se.gb;$e=Se.na,We=Se.P,wt=Se.Sa,Kt=22,t(ht!=null),t(Me!=null),He=Ee[0];var hn=Me[0];for(t($e!=null),t(wt!=null),$e[0]=null,We[0]=null,wt[0]=0;;){if(Ee[0]=He,Me[0]=hn,8>hn){Ee=7;break e}var rr=Je(ht,He+4);if(4294967286<rr){Ee=3;break e}var nn=8+rr+1&-2;if(Kt+=nn,0<gt&&Kt>gt){Ee=3;break e}if(!n(ht,He,"VP8 ")||!n(ht,He,"VP8L")){Ee=0;break e}if(hn[0]<nn){Ee=7;break e}n(ht,He,"ALPH")||($e[0]=ht,We[0]=He+8,wt[0]=rr),He+=nn,hn-=nn}}if(T=T[0],Se.na=Se.na[0],Se.P=Se.P[0],Se.Sa=Se.Sa[0],Ee!=0)break}T=[T],Se.Ja=[Se.Ja],Se.xa=[Se.xa];e:if(gt=v,Ee=S,Me=T,$e=Se.gb[0],We=Se.Ja,wt=Se.xa,ht=Ee[0],He=!n(gt,ht,"VP8 "),Kt=!n(gt,ht,"VP8L"),t(gt!=null),t(Me!=null),t(We!=null),t(wt!=null),8>Me[0])Ee=7;else{if(He||Kt){if(gt=Je(gt,ht+4),12<=$e&>>$e-12){Ee=3;break e}if(fe&>>Me[0]-8){Ee=7;break e}We[0]=gt,Ee[0]+=8,Me[0]-=8,wt[0]=Kt}else wt[0]=5<=Me[0]&>[ht+0]==47&&!(gt[ht+4]>>5),We[0]=Me[0];Ee=0}if(T=T[0],Se.Ja=Se.Ja[0],Se.xa=Se.xa[0],S=S[0],Ee!=0)break;if(4294967286<Se.Ja)return 3;if(ie==null||ke||(ie[0]=Se.xa?2:1),re=[re],Ce=[Ce],Se.xa){if(5>T){Ee=7;break}ie=re,fe=Ce,ke=ne,v==null||5>T?v=0:5<=T&&v[S+0]==47&&!(v[S+4]>>5)?(Me=[0],gt=[0],$e=[0],se(We=new B,v,S,T),on(We,Me,gt,$e)?(ie!=null&&(ie[0]=Me[0]),fe!=null&&(fe[0]=gt[0]),ke!=null&&(ke[0]=$e[0]),v=1):v=0):v=0}else{if(10>T){Ee=7;break}ie=Ce,v==null||10>T||!vc(v,S+3,T-3)?v=0:(fe=v[S+0]|v[S+1]<<8|v[S+2]<<16,ke=16383&(v[S+7]<<8|v[S+6]),v=16383&(v[S+9]<<8|v[S+8]),1&fe||3<(fe>>1&7)||!(fe>>4&1)||fe>>5>=Se.Ja||!ke||!v?v=0:(re&&(re[0]=ke),ie&&(ie[0]=v),v=1))}if(!v||(re=re[0],Ce=Ce[0],Pe&&(de[0]!=re||xe[0]!=Ce)))return 3;ue!=null&&(ue[0]=Se,ue.offset=S-ue.w,t(4294967286>S-ue.w),t(ue.offset==ue.ha-T));break}return Ee==0||Ee==7&&Pe&&ue==null?(ne!=null&&(ne[0]|=Se.na!=null&&0<Se.na.length),I!=null&&(I[0]=re),J!=null&&(J[0]=Ce),0):Ee}function xi(v,S,T){var I=S.width,J=S.height,ne=0,re=0,ie=I,ue=J;if(S.Da=v!=null&&0<v.Da,S.Da&&(ie=v.cd,ue=v.bd,ne=v.v,re=v.j,11>T||(ne&=-2,re&=-2),0>ne||0>re||0>=ie||0>=ue||ne+ie>I||re+ue>J))return 0;if(S.v=ne,S.j=re,S.va=ne+ie,S.o=re+ue,S.U=ie,S.T=ue,S.da=v!=null&&0<v.da,S.da){if(!et(ie,ue,T=[v.ib],ne=[v.hb]))return 0;S.ib=T[0],S.hb=ne[0]}return S.ob=v!=null&&v.ob,S.Kb=v==null||!v.Sd,S.da&&(S.ob=S.ib<3*I/4&&S.hb<3*J/4,S.Kb=0),1}function Tc(v){if(v==null)return 2;if(11>v.S){var S=v.f.RGBA;S.fb+=(v.height-1)*S.A,S.A=-S.A}else S=v.f.kb,v=v.height,S.O+=(v-1)*S.fa,S.fa=-S.fa,S.N+=(v-1>>1)*S.Ab,S.Ab=-S.Ab,S.W+=(v-1>>1)*S.Db,S.Db=-S.Db,S.F!=null&&(S.J+=(v-1)*S.lb,S.lb=-S.lb);return 0}function Ta(v,S,T,I){if(I==null||0>=v||0>=S)return 2;if(T!=null){if(T.Da){var J=T.cd,ne=T.bd,re=-2&T.v,ie=-2&T.j;if(0>re||0>ie||0>=J||0>=ne||re+J>v||ie+ne>S)return 2;v=J,S=ne}if(T.da){if(!et(v,S,J=[T.ib],ne=[T.hb]))return 2;v=J[0],S=ne[0]}}I.width=v,I.height=S;e:{var ue=I.width,de=I.height;if(v=I.S,0>=ue||0>=de||!(v>=Lu&&13>v))v=2;else{if(0>=I.Rd&&I.sd==null){re=ne=J=S=0;var xe=(ie=ue*zu[v])*de;if(11>v||(ne=(de+1)/2*(S=(ue+1)/2),v==12&&(re=(J=ue)*de)),(de=o(xe+2*ne+re))==null){v=1;break e}I.sd=de,11>v?((ue=I.f.RGBA).eb=de,ue.fb=0,ue.A=ie,ue.size=xe):((ue=I.f.kb).y=de,ue.O=0,ue.fa=ie,ue.Fd=xe,ue.f=de,ue.N=0+xe,ue.Ab=S,ue.Cd=ne,ue.ea=de,ue.W=0+xe+ne,ue.Db=S,ue.Ed=ne,v==12&&(ue.F=de,ue.J=0+xe+2*ne),ue.Tc=re,ue.lb=J)}if(S=1,J=I.S,ne=I.width,re=I.height,J>=Lu&&13>J)if(11>J)v=I.f.RGBA,S&=(ie=Math.abs(v.A))*(re-1)+ne<=v.size,S&=ie>=ne*zu[J],S&=v.eb!=null;else{v=I.f.kb,ie=(ne+1)/2,xe=(re+1)/2,ue=Math.abs(v.fa),de=Math.abs(v.Ab);var Pe=Math.abs(v.Db),fe=Math.abs(v.lb),Se=fe*(re-1)+ne;S&=ue*(re-1)+ne<=v.Fd,S&=de*(xe-1)+ie<=v.Cd,S=(S&=Pe*(xe-1)+ie<=v.Ed)&ue>=ne&de>=ie&Pe>=ie,S&=v.y!=null,S&=v.f!=null,S&=v.ea!=null,J==12&&(S&=fe>=ne,S&=Se<=v.Tc,S&=v.F!=null)}else S=0;v=S?0:2}}return v!=0||T!=null&&T.fd&&(v=Tc(I)),v}var Xi=64,Os=[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],Ns=24,Qa=32,$a=8,wi=[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];Xe("Predictor0","PredictorAdd0"),R.Predictor0=function(){return 4278190080},R.Predictor1=function(v){return v},R.Predictor2=function(v,S,T){return S[T+0]},R.Predictor3=function(v,S,T){return S[T+1]},R.Predictor4=function(v,S,T){return S[T-1]},R.Predictor5=function(v,S,T){return tt(tt(v,S[T+1]),S[T+0])},R.Predictor6=function(v,S,T){return tt(v,S[T-1])},R.Predictor7=function(v,S,T){return tt(v,S[T+0])},R.Predictor8=function(v,S,T){return tt(S[T-1],S[T+0])},R.Predictor9=function(v,S,T){return tt(S[T+0],S[T+1])},R.Predictor10=function(v,S,T){return tt(tt(v,S[T-1]),tt(S[T+0],S[T+1]))},R.Predictor11=function(v,S,T){var I=S[T+0];return 0>=Ct(I>>24&255,v>>24&255,(S=S[T-1])>>24&255)+Ct(I>>16&255,v>>16&255,S>>16&255)+Ct(I>>8&255,v>>8&255,S>>8&255)+Ct(255&I,255&v,255&S)?I:v},R.Predictor12=function(v,S,T){var I=S[T+0];return(ct((v>>24&255)+(I>>24&255)-((S=S[T-1])>>24&255))<<24|ct((v>>16&255)+(I>>16&255)-(S>>16&255))<<16|ct((v>>8&255)+(I>>8&255)-(S>>8&255))<<8|ct((255&v)+(255&I)-(255&S)))>>>0},R.Predictor13=function(v,S,T){var I=S[T-1];return(Lt((v=tt(v,S[T+0]))>>24&255,I>>24&255)<<24|Lt(v>>16&255,I>>16&255)<<16|Lt(v>>8&255,I>>8&255)<<8|Lt(255&v,255&I))>>>0};var bl=R.PredictorAdd0;R.PredictorAdd1=Ht,Xe("Predictor2","PredictorAdd2"),Xe("Predictor3","PredictorAdd3"),Xe("Predictor4","PredictorAdd4"),Xe("Predictor5","PredictorAdd5"),Xe("Predictor6","PredictorAdd6"),Xe("Predictor7","PredictorAdd7"),Xe("Predictor8","PredictorAdd8"),Xe("Predictor9","PredictorAdd9"),Xe("Predictor10","PredictorAdd10"),Xe("Predictor11","PredictorAdd11"),Xe("Predictor12","PredictorAdd12"),Xe("Predictor13","PredictorAdd13");var xl=R.PredictorAdd2;ut("ColorIndexInverseTransform","MapARGB","32b",function(v){return v>>8&255},function(v){return v}),ut("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(v){return v},function(v){return v>>8&255});var Ar,Tu=R.ColorIndexInverseTransform,Xa=R.MapARGB,Ka=R.VP8LColorIndexInverseTransformAlpha,as=R.MapAlpha,Si=R.VP8LPredictorsAdd=[];Si.length=16,(R.VP8LPredictors=[]).length=16,(R.VP8LPredictorsAdd_C=[]).length=16,(R.VP8LPredictors_C=[]).length=16;var wl,Sl,Ai,Ni,Za,Mo,Vs,_i,ps,ea,Ln,Nn,$n,Nr,Ja,ja,ko,jc,Zf,Ph,Th,jh,Jf,ed,Fo,ta,Oc,Ys,Io=o(511),ju=o(2041),Lc=o(225),Rc=o(767),Ou=0,Ci=ju,Dc=Lc,ms=Rc,is=Io,Lu=0,gs=1,Ru=2,na=3,Mc=4,Al=5,Ki=6,kc=7,Du=8,Nl=9,Mu=10,ra=[2,3,7],_l=[3,3,11],Uo=[280,256,256,256,40],ku=[0,1,1,1,0],Fc=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],sa=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,3
vendor: 4,386 bytes, line 443
4436,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],aa=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Zi=8,ia=[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],oa=[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],Qs=null,Oh=[[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]],td=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Fu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Lh=[[[[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
4435,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]]]],os=[[[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,
4431,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]]],nr=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 5,465 bytes, line 443
4435,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]]]],mn=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],_s=[],gr=[],Oa=[],Ji=1,nd=2,Ei=[],ls=[];vi("UpsampleRgbLinePair",yi,3),vi("UpsampleBgrLinePair",Qr,3),vi("UpsampleRgbaLinePair",As,4),vi("UpsampleBgraLinePair",Ya,4),vi("UpsampleArgbLinePair",vl,4),vi("UpsampleRgba4444LinePair",$i,2),vi("UpsampleRgb565LinePair",Qi,2);var Bo=R.UpsampleRgbLinePair,rd=R.UpsampleBgrLinePair,Cl=R.UpsampleRgbaLinePair,Iu=R.UpsampleBgraLinePair,eo=R.UpsampleArgbLinePair,ei=R.UpsampleRgba4444LinePair,to=R.UpsampleRgb565LinePair,la=16,El=1<<la-1,zo=-227,no=482,Uu=6,ro=0,cs=o(256),Bu=o(256),Rh=o(256),mg=o(256),gg=o(no-zo),vg=o(no-zo);bi("YuvToRgbRow",yi,3),bi("YuvToBgrRow",Qr,3),bi("YuvToRgbaRow",As,4),bi("YuvToBgraRow",Ya,4),bi("YuvToArgbRow",vl,4),bi("YuvToRgba4444Row",$i,2),bi("YuvToRgb565Row",Qi,2);var _r=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Pl=[0,2,8],Ic=[8,7,6,4,4,2,2,2,1,1,1,1],Uc=1;this.WebPDecodeRGBA=function(v,S,T,I,J){var ne=gs,re=new ze,ie=new ye;re.ba=ie,ie.S=ne,ie.width=[ie.width],ie.height=[ie.height];var ue=ie.width,de=ie.height,xe=new Ue;if(xe==null||v==null)var Pe=2;else t(xe!=null),Pe=Pa(v,S,T,xe.width,xe.height,xe.Pd,xe.Qd,xe.format,null);if(Pe!=0?ue=0:(ue!=null&&(ue[0]=xe.width[0]),de!=null&&(de[0]=xe.height[0]),ue=1),ue){ie.width=ie.width[0],ie.height=ie.height[0],I!=null&&(I[0]=ie.width),J!=null&&(J[0]=ie.height);e:{if(I=new li,(J=new Ye).data=v,J.w=S,J.ha=T,J.kd=1,S=[0],t(J!=null),((v=Pa(J.data,J.w,J.ha,null,null,null,S,null,J))==0||v==7)&&S[0]&&(v=4),(S=v)==0){if(t(re!=null),I.data=J.data,I.w=J.w+J.offset,I.ha=J.ha-J.offset,I.put=Ke,I.ac=Bt,I.bc=Gt,I.ma=re,J.xa){if((v=Ks())==null){re=1;break e}if((function(fe,Se){var Ce=[0],ke=[0],Ee=[0];t:for(;;){if(fe==null)return 0;if(Se==null)return fe.a=2,0;if(fe.l=Se,fe.a=0,se(fe.m,Se.data,Se.w,Se.ha),!on(fe.m,Ce,ke,Ee)){fe.a=3;break t}if(fe.xb=nd,Se.width=Ce[0],Se.height=ke[0],!hs(Ce[0],ke[0],1,fe,null))break t;return 1}return t(fe.a!=0),0})(v,I)){if(I=(S=Ta(I.width,I.height,re.Oa,re.ba))==0){t:{I=v;n:for(;;){if(I==null){I=0;break t}if(t(I.s.yc!=null),t(I.s.Ya!=null),t(0<I.s.Wb),t((T=I.l)!=null),t((J=T.ma)!=null),I.xb!=0){if(I.ca=J.ba,I.tb=J.tb,t(I.ca!=null),!xi(J.Oa,T,na)){I.a=2;break n}if(!ns(I,T.width)||T.da)break n;if((T.da||yt(I.ca.S))&&Ca(),11>I.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),I.ca.f.kb.F!=null&&Ca()),I.Pb&&0<I.s.ua&&I.s.vb.X==null&&!ce(I.s.vb,I.s.Wa.Xa)){I.a=1;break n}I.xb=0}if(!or(I,I.V,I.Ba,I.c,I.i,T.o,er))break n;J.Dc=I.Ma,I=1;break t}t(I.a!=0),I=0}I=!I}I&&(S=v.a)}else S=v.a}else{if((v=new Aa)==null){re=1;break e}if(v.Fa=J.na,v.P=J.P,v.qc=J.Sa,qa(v,I)){if((S=Ta(I.width,I.height,re.Oa,re.ba))==0){if(v.Aa=0,T=re.Oa,t((J=v)!=null),T!=null){if(0<(ue=0>(ue=T.Md)?0:100<ue?255:255*ue/100)){for(de=xe=0;4>de;++de)12>(Pe=J.pb[de]).lc&&(Pe.ia=ue*Ic[0>Pe.lc?0:Pe.lc]>>3),xe|=Pe.ia;xe&&(alert("todo:VP8InitRandom"),J.ia=1)}J.Ga=T.Id,100<J.Ga?J.Ga=100:0>J.Ga&&(J.Ga=0)}(function(fe,Se){if(fe==null)return 0;if(Se==null)return On(fe,2,"NULL VP8Io parameter in VP8Decode().");if(!fe.cb&&!qa(fe,Se))return 0;if(t(fe.cb),Se.ac==null||Se.ac(Se)){Se.ob&&(fe.L=0);var Ce=Pl[fe.L];if(fe.L==2?(fe.yb=0,fe.zb=0):(fe.yb=Se.v-Ce>>4,fe.zb=Se.j-Ce>>4,0>fe.yb&&(fe.yb=0),0>fe.zb&&(fe.zb=0)),fe.Va=Se.o+15+Ce>>4,fe.Hb=Se.va+15+Ce>>4,fe.Hb>fe.za&&(fe.Hb=fe.za),fe.Va>fe.Ub&&(fe.Va=fe.Ub),0<fe.L){var ke=fe.ed;for(Ce=0;4>Ce;++Ce){var Ee;if(fe.Qa.Cb){var Me=fe.Qa.Lb[Ce];fe.Qa.Fb||(Me+=ke.Tb)}else Me=ke.Tb;for(Ee=0;1>=Ee;++Ee){var He=fe.gd[Ce][Ee],$e=Me;if(ke.Pc&&($e+=ke.vd[0],Ee&&($e+=ke.od[0])),0<($e=0>$e?0:63<$e?63:$e)){var We=$e;0<ke.wb&&(We=4<ke.wb?We>>2:We>>1)>9-ke.wb&&(We=9-ke.wb),1>We&&(We=1),He.dd=We,He.tc=2*$e+We,He.ld=40<=$e?2:15<=$e?1:0}else He.tc=0;He.La=Ee}}}Ce=0}else On(fe,6,"Frame setup failed"),Ce=fe.a;if(Ce=Ce==0){if(Ce){fe.$c=0,0<fe.Aa||(fe.Ic=Uc);t:{Ce=fe.Ic,ke=4*(We=fe.za);var wt=32*We,ht=We+1,Kt=0<fe.L?We*(0<fe.Aa?2:1):0,gt=(fe.Aa==2?2:1)*We;if((He=ke+832+(Ee=3*(16*Ce+Pl[fe.L])/2*wt)+(Me=fe.Fa!=null&&0<fe.Fa.length?fe.Kc.c*fe.Kc.i:0))!=He)Ce=0;else{if(He>fe.Vb){if(fe.Vb=0,fe.Ec=o(He),fe.Fc=0,fe.Ec==null){Ce=On(fe,1,"no memory during frame initialization.");break t}fe.Vb=He}He=fe.Ec,$e=fe.Fc,fe.Ac=He,fe.Bc=$e,$e+=ke,fe.Gd=l(wt,gc),fe.Hd=0,fe.rb=l(ht+1,Sa),fe.sb=1,fe.wa=Kt?l(Kt,zs):null,fe.Y=0,fe.D.Nb=0,fe.D.wa=fe.wa,fe.D.Y=fe.Y,0<fe.Aa&&(fe.D.Y+=We),t(!0),fe.oc=He,fe.pc=$e,$e+=832,fe.ya=l(gt,pc),fe.aa=0,fe.D.ya=fe.ya,fe.D.aa=fe.aa,fe.Aa==2&&(fe.D.aa+=We),fe.R=16*We,fe.B=8*We,We=(wt=Pl[fe.L])*fe.R,wt=wt/2*fe.B,fe.sa=He,fe.ta=$e+We,fe.qa=fe.sa,fe.ra=fe.ta+16*Ce*fe.R+wt,fe.Ha=fe.qa,fe.Ia=fe.ra+8*Ce*fe.B+wt,fe.$c=0,$e+=Ee,fe.mb=Me?He:null,fe.nb=Me?$e:null,t($e+Me<=fe.Fc+fe.Vb),yc(fe),a(fe.Ac,fe.Bc,0,ke),Ce=1}}
vendor: 1,802 bytes, line 443
443if(Ce){if(Se.ka=0,Se.y=fe.sa,Se.O=fe.ta,Se.f=fe.qa,Se.N=fe.ra,Se.ea=fe.Ha,Se.Vd=fe.Ia,Se.fa=fe.R,Se.Rc=fe.B,Se.F=null,Se.J=0,!Ou){for(Ce=-255;255>=Ce;++Ce)Io[255+Ce]=0>Ce?-Ce:Ce;for(Ce=-1020;1020>=Ce;++Ce)ju[1020+Ce]=-128>Ce?-128:127<Ce?127:Ce;for(Ce=-112;112>=Ce;++Ce)Lc[112+Ce]=-16>Ce?-16:15<Ce?15:Ce;for(Ce=-255;510>=Ce;++Ce)Rc[255+Ce]=0>Ce?0:255<Ce?255:Ce;Ou=1}Vs=Na,_i=bc,ea=Ss,Ln=xc,Nn=wc,ps=xu,$n=Eu,Nr=mi,Ja=Z,ja=he,ko=Pu,jc=C,Zf=be,Ph=Ne,Th=fi,jh=di,Jf=Ro,ed=Cc,gr[0]=_u,gr[1]=wu,gr[2]=Nu,gr[3]=Nc,gr[4]=qs,gr[5]=_c,gr[6]=rs,gr[7]=jo,gr[8]=Oo,gr[9]=Gs,_s[0]=_a,_s[1]=Sc,_s[2]=Ac,_s[3]=Au,_s[4]=ci,_s[5]=To,_s[6]=Yi,Oa[0]=hl,Oa[1]=Su,Oa[2]=Ga,Oa[3]=Cu,Oa[4]=Yr,Oa[5]=pl,Oa[6]=Wa,Ce=1}else Ce=0}Ce&&(Ce=(function(hn,rr){for(hn.M=0;hn.M<hn.Va;++hn.M){var nn,pt=hn.Jc[hn.M&hn.Xb],st=hn.m,ur=hn;for(nn=0;nn<ur.za;++nn){var Ut=st,an=ur,Fn=an.Ac,zr=an.Bc+4*nn,us=an.zc,Xn=an.ya[an.aa+nn];if(an.Qa.Bb?Xn.$b=Ae(Ut,an.Pa.jb[0])?2+Ae(Ut,an.Pa.jb[2]):Ae(Ut,an.Pa.jb[1]):Xn.$b=0,an.kc&&(Xn.Ad=Ae(Ut,an.Bd)),Xn.Za=!Ae(Ut,145)+0,Xn.Za){var jr=Xn.Ob,vs=0;for(an=0;4>an;++an){var Or,cn=us[0+an];for(Or=0;4>Or;++Or){cn=os[Fn[zr+Or]][cn];for(var En=Fu[Ae(Ut,cn[0])];0<En;)En=Fu[2*En+Ae(Ut,cn[En])];cn=-En,Fn[zr+Or]=cn}r(jr,vs,Fn,zr,4),vs+=4,us[0+an]=cn}}else cn=Ae(Ut,156)?Ae(Ut,128)?1:3:Ae(Ut,163)?2:0,Xn.Ob[0]=cn,a(Fn,zr,cn,4),a(us,0,cn,4);Xn.Dd=Ae(Ut,142)?Ae(Ut,114)?Ae(Ut,183)?1:3:2:0}if(ur.m.Ka)return On(hn,7,"Premature end-of-partition0 encountered.");for(;hn.ja<hn.za;++hn.ja){if(ur=pt,Ut=(st=hn).rb[st.sb-1],Fn=st.rb[st.sb+st.ja],nn=st.ya[st.aa+st.ja],zr=st.kc?nn.Ad:0)Ut.la=Fn.la=0,nn.Za||(Ut.Na=Fn.Na=0),nn.Hc=0,nn.Gc=0,nn.ia=0;else{var fr,Rn;if(Ut=Fn,Fn=ur,zr=st.Pa.Xc,us=st.ya[st.aa+st.ja],Xn=st.pb[us.$b],an=us.ad,jr=0,vs=st.rb[st.sb-1],cn=Or=0,a(an,jr,0,384),us.Za)var Hr=0,dr=zr[3];else{En=o(16);
vendor: 14,493 bytes, line 443
443var Pn=Ut.Na+vs.Na;if(Pn=Qs(Fn,zr[1],Pn,Xn.Eb,0,En,0),Ut.Na=vs.Na=(0<Pn)+0,1<Pn)Vs(En,0,an,jr);else{var Cr=En[0]+3>>3;for(En=0;256>En;En+=16)an[jr+En]=Cr}Hr=1,dr=zr[0]}var In=15&Ut.la,Lr=15&vs.la;for(En=0;4>En;++En){var Rr=1&Lr;for(Cr=Rn=0;4>Cr;++Cr)In=In>>1|(Rr=(Pn=Qs(Fn,dr,Pn=Rr+(1&In),Xn.Sc,Hr,an,jr))>Hr)<<7,Rn=Rn<<2|(3<Pn?3:1<Pn?2:an[jr+0]!=0),jr+=16;In>>=4,Lr=Lr>>1|Rr<<7,Or=(Or<<8|Rn)>>>0}for(dr=In,Hr=Lr>>4,fr=0;4>fr;fr+=2){for(Rn=0,In=Ut.la>>4+fr,Lr=vs.la>>4+fr,En=0;2>En;++En){for(Rr=1&Lr,Cr=0;2>Cr;++Cr)Pn=Rr+(1&In),In=In>>1|(Rr=0<(Pn=Qs(Fn,zr[2],Pn,Xn.Qc,0,an,jr)))<<3,Rn=Rn<<2|(3<Pn?3:1<Pn?2:an[jr+0]!=0),jr+=16;In>>=2,Lr=Lr>>1|Rr<<5}cn|=Rn<<4*fr,dr|=In<<4<<fr,Hr|=(240&Lr)<<fr}Ut.la=dr,vs.la=Hr,us.Hc=Or,us.Gc=cn,us.ia=43690&cn?0:Xn.ia,zr=!(Or|cn)}if(0<st.L&&(st.wa[st.Y+st.ja]=st.gd[nn.$b][nn.Za],st.wa[st.Y+st.ja].La|=!zr),ur.Ka)return On(hn,7,"Premature end-of-file encountered.")}if(yc(hn),st=rr,ur=1,nn=(pt=hn).D,Ut=0<pt.L&&pt.M>=pt.zb&&pt.M<=pt.Va,pt.Aa==0)t:{if(nn.M=pt.M,nn.uc=Ut,Ws(pt,nn),ur=1,nn=(Rn=pt.D).Nb,Ut=(cn=Pl[pt.L])*pt.R,Fn=cn/2*pt.B,En=16*nn*pt.R,Cr=8*nn*pt.B,zr=pt.sa,us=pt.ta-Ut+En,Xn=pt.qa,an=pt.ra-Fn+Cr,jr=pt.Ha,vs=pt.Ia-Fn+Cr,Lr=(In=Rn.M)==0,Or=In>=pt.Va-1,pt.Aa==2&&Ws(pt,Rn),Rn.uc)for(Rr=(Pn=pt).D.M,t(Pn.D.uc),Rn=Pn.yb;Rn<Pn.Hb;++Rn){Hr=Rn,dr=Rr;var Hn=(_n=(Dr=Pn).D).Nb;fr=Dr.R;var _n=_n.wa[_n.Y+Hr],ys=Dr.sa,vr=Dr.ta+16*Hn*fr+16*Hr,Dt=_n.dd,Mt=_n.tc;if(Mt!=0)if(t(3<=Mt),Dr.L==1)0<Hr&&jh(ys,vr,fr,Mt+4),_n.La&&ed(ys,vr,fr,Mt),0<dr&&Th(ys,vr,fr,Mt+4),_n.La&&Jf(ys,vr,fr,Mt);else{var Tn=Dr.B,Ls=Dr.qa,ca=Dr.ra+8*Hn*Tn+8*Hr,Cs=Dr.Ha,Dr=Dr.Ia+8*Hn*Tn+8*Hr;Hn=_n.ld,0<Hr&&(Nr(ys,vr,fr,Mt+4,Dt,Hn),ja(Ls,ca,Cs,Dr,Tn,Mt+4,Dt,Hn)),_n.La&&(jc(ys,vr,fr,Mt,Dt,Hn),Ph(Ls,ca,Cs,Dr,Tn,Mt,Dt,Hn)),0<dr&&($n(ys,vr,fr,Mt+4,Dt,Hn),Ja(Ls,ca,Cs,Dr,Tn,Mt+4,Dt,Hn)),_n.La&&(ko(ys,vr,fr,Mt,Dt,Hn),Zf(Ls,ca,Cs,Dr,Tn,Mt,Dt,Hn))}}if(pt.ia&&alert("todo:DitherRow"),st.put!=null){if(Rn=16*In,In=16*(In+1),Lr?(st.y=pt.sa,st.O=pt.ta+En,st.f=pt.qa,st.N=pt.ra+Cr,st.ea=pt.Ha,st.W=pt.Ia+Cr):(Rn-=cn,st.y=zr,st.O=us,st.f=Xn,st.N=an,st.ea=jr,st.W=vs),Or||(In-=cn),In>st.o&&(In=st.o),st.F=null,st.J=null,pt.Fa!=null&&0<pt.Fa.length&&Rn<In&&(st.J=Qn(pt,st,Rn,In-Rn),st.F=pt.mb,st.F==null&&st.F.length==0)){ur=On(pt,3,"Could not decode alpha data.");break t}Rn<st.j&&(cn=st.j-Rn,Rn=st.j,t(!(1&cn)),st.O+=pt.R*cn,st.N+=pt.B*(cn>>1),st.W+=pt.B*(cn>>1),st.F!=null&&(st.J+=st.width*cn)),Rn<In&&(st.O+=st.v,st.N+=st.v>>1,st.W+=st.v>>1,st.F!=null&&(st.J+=st.v),st.ka=Rn-st.j,st.U=st.va-st.v,st.T=In-Rn,ur=st.put(st))}nn+1!=pt.Ic||Or||(r(pt.sa,pt.ta-Ut,zr,us+16*pt.R,Ut),r(pt.qa,pt.ra-Fn,Xn,an+8*pt.B,Fn),r(pt.Ha,pt.Ia-Fn,jr,vs+8*pt.B,Fn))}if(!ur)return On(hn,6,"Output aborted.")}return 1})(fe,Se)),Se.bc!=null&&Se.bc(Se),Ce&=1}return Ce?(fe.cb=0,Ce):0})(v,I)||(S=v.a)}}else S=v.a}S==0&&re.Oa!=null&&re.Oa.fd&&(S=Tc(re.ba))}re=S}ne=re!=0?null:11>ne?ie.f.RGBA.eb:ie.f.kb.y}else ne=null;return ne};var zu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(R,Q){for(var j="",D=0;D<4;D++)j+=String.fromCharCode(R[Q++]);return j}function h(R,Q){return R[Q+0]|R[Q+1]<<8}function m(R,Q){return(R[Q+0]|R[Q+1]<<8|R[Q+2]<<16)>>>0}function y(R,Q){return(R[Q+0]|R[Q+1]<<8|R[Q+2]<<16|R[Q+3]<<24)>>>0}new f;var g=[0],N=[0],w=[],E=new f,_=e,z=(function(R,Q){var j={},D=0,$=!1,W=0,te=0;if(j.frames=[],!(function(P,B){for(var V=0;V<4;V++)if(P[B+V]!="RIFF".charCodeAt(V))return!0;return!1})(R,Q)){for(y(R,Q+=4),Q+=8;Q<R.length;){var L=d(R,Q),M=y(R,Q+=4);Q+=4;var X=M+(1&M);switch(L){case"VP8 ":case"VP8L":j.frames[D]===void 0&&(j.frames[D]={}),(ee=j.frames[D]).src_off=$?te:Q-8,ee.src_size=W+M+8,D++,$&&($=!1,W=0,te=0);break;case"VP8X":(ee=j.header={}).feature_flags=R[Q];var se=Q+4;ee.canvas_width=1+m(R,se),se+=3,ee.canvas_height=1+m(R,se),se+=3;break;case"ALPH":$=!0,W=X+8,te=Q-8;break;case"ANIM":(ee=j.header).bgcolor=y(R,Q),se=Q+4,ee.loop_count=h(R,se),se+=2;break;case"ANMF":var pe,ee;(ee=j.frames[D]={}).offset_x=2*m(R,Q),Q+=3,ee.offset_y=2*m(R,Q),Q+=3,ee.width=1+m(R,Q),Q+=3,ee.height=1+m(R,Q),Q+=3,ee.duration=m(R,Q),Q+=3,pe=R[Q++],ee.dispose=1&pe,ee.blend=pe>>1&1}L!="ANMF"&&(Q+=X)}return j}})(_,0);z.response=_,z.rgbaoutput=!0,z.dataurl=!1;var H=z.header?z.header:null,k=z.frames?z.frames:null;if(H){H.loop_counter=H.loop_count,g=[H.canvas_height],N=[H.canvas_width];for(var K=0;K<k.length&&k[K].blend!=0;K++);}var U=k[0],G=E.WebPDecodeRGBA(_,U.src_off,U.src_size,N,g);U.rgba=G,U.imgwidth=N[0],U.imgheight=g[0];for(var O=0;O<N[0]*g[0]*4;O++)w[O]=G[O];return this.width=N,this.height=g,this.data=w,this}(function(e){var t,n,r,a,o,l,c,f,d,h=function(P){return P=P||{},this.isStrokeTransparent=P.isStrokeTransparent||!1,this.strokeOpacity=P.strokeOpacity||1,this.strokeStyle=P.strokeStyle||"#000000",this.fillStyle=P.fillStyle||"#000000",this.isFillTransparent=P.isFillTransparent||!1,this.fillOpacity=P.fillOpacity||1,this.font=P.font||"10px sans-serif",this.textBaseline=P.textBaseline||"alphabetic",this.textAlign=P.textAlign||"left",this.lineWidth=P.lineWidth||1,this.lineJoin=P.lineJoin||"miter",this.lineCap=P.lineCap||"butt",this.path=P.path||[],this.transform=P.transform!==void 0?P.transform.clone():new f,this.globalCompositeOperation=P.globalCompositeOperation||"normal",this.globalAlpha=P.globalAlpha||1,this.clip_path=P.clip_path||[],this.currentPoint=P.currentPoint||new l,this.miterLimit=P.miterLimit||10,this.lastPoint=P.lastPoint||new l,this.lineDashOffset=P.lineDashOffset||0,this.lineDash=P.lineDash||[],this.margin=P.margin||[0,0,0,0],this.prevPageLastElemOffset=P.prevPageLastElemOffset||0,this.ignoreClearRect=typeof P.ignoreClearRect!="boolean"||P.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new m(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,l=this.internal.Point,c=this.internal.Rectangle,f=this.internal.Matrix,d=new h}]);var m=function(P){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var B=P;Object.defineProperty(this,"pdf",{get:function(){return B}});var V=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return V},set:function(ce){V=!!ce}});var Y=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Y},set:function(ce){Y=!!ce}});var oe=0;Object.defineProperty(this,"posX",{get:function(){return oe},set:function(ce){isNaN(ce)||(oe=ce)}});var le=0;Object.defineProperty(this,"posY",{get:function(){return le},set:function(ce){isNaN(ce)||(le=ce)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(ce){var Ve;typeof ce=="number"?Ve=[ce,ce,ce,ce]:((Ve=new Array(4))[0]=ce[0],Ve[1]=ce.length>=2?ce[1]:Ve[0],Ve[2]=ce.length>=3?ce[2]:Ve[0],Ve[3]=ce.length>=4?ce[3]:Ve[1]),d.margin=Ve}});var me=!1;Object.defineProperty(this,"autoPaging",{get:function(){return me},set:function(ce){me=ce}});var ge=0;Object.defineProperty(this,"lastBreak",{get:function(){return ge},set:function(ce){ge=ce}});var Ae=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ae},set:function(ce){Ae=ce}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(ce){ce instanceof h&&(d=ce)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(ce){d.path=ce}});var Oe=[];Object.defineProperty(this,"ctxStack",{get:function(){return Oe},set:function(ce){Oe=ce}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ce){var Ve;Ve=y(ce),this.ctx.fillStyle=Ve.style,this.ctx.isFillTransparent=Ve.a===0,this.ctx.fillOpacity=Ve.a,this.pdf.setFillColor(Ve.r,Ve.g,Ve.b,{a:Ve.a}),this.pdf.setTextColor(Ve.r,Ve.g,Ve.b,{a:Ve.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ce){var Ve=y(ce);this.ctx.strokeStyle=Ve.style,this.ctx.isStrokeTransparent=Ve.a===0,this.ctx.strokeOpacity=Ve.a,Ve.a===0?this.pdf.setDrawColor(255,255,255):(Ve.a,this.pdf.setDrawColor(Ve.r,Ve.g,Ve.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ce){["butt","round","square"].indexOf(ce)!==-1&&(this.ctx.lineCap=ce,this.pdf.setLineCap(ce))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ce){isNaN(ce)||(this.ctx.lineWidth=ce,this.pdf.setLineWidth(ce))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ce){["bevel","round","miter"].indexOf(ce)!==-1&&(this.ctx.lineJoin=ce,this.pdf.setLineJoin(ce))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ce){isNaN(ce)||(this.ctx.miterLimit=ce,this.pdf.setMiterLimit(ce))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ce){this.ctx.textBaseline=ce}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ce){["right","end","center","left","start"].indexOf(ce)!==-1&&(this.ctx.textAlign=ce)}});var Fe=null,Qe=null,Je=null;Object.defineProperty(this,"fontFaces",{get:function(){return Je},set:function(ce){Fe=null,Qe=null,Je=ce}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ce){var Ve;if(this.ctx.font=ce,(Ve=/^\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(ce))!==null){var it=Ve[1];Ve[2];var et=Ve[3],De=Ve[4];Ve[5];var ot=Ve[6],Xe=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(De)[2];De=Math.floor(Xe==="px"?parseFloat(De)*this.pdf.internal.scaleFactor:Xe==="em"?parseFloat(De)*this.pdf.getFontSize():parseFloat(De)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(De);var nt=(function(ut){var Jt,Ft,mt=[],Et=ut.trim();if(Et==="")return A1;if(Et in bw)return[bw[Et]];for(;Et!=="";){switch(Ft=null,Jt=(Et=ww(Et)).charAt(0)){case'"':case"'":Ft=q9(Et.substring(1),Jt);break;default:Ft=G9(Et)}if(Ft===null||(mt.push(Ft[0]),(Et=ww(Ft[1]))!==""&&Et.charAt(0)!==","))return A1;Et=Et.replace(/^,/,"")}return mt})(ot);if(this.fontFaces){var tt=(function(ut,Jt){var Ft=ut.getFontList(),mt=JSON.stringify(Ft);if(Fe===null||Qe!==mt){var Et=(function(qt){var _t=[];return Object.keys(qt).forEach(function(pn){qt[pn].forEach(function(yt){var jt=null;switch(yt){case"bold":jt={family:pn,weight:"bold"};break;case"italic":jt={family:pn,style:"italic"};break;case"bolditalic":jt={family:pn,weight:"bold",style:"italic"};break;case"":case"normal":jt={family:pn}}jt!==null&&(jt.ref={name:pn,style:yt},_t.push(jt))})}),_t})(Ft);Fe=(function(qt){for(var _t={},pn=0;pn<qt.length;++pn){var yt=S1(qt[pn]),jt=yt.family,wn=yt.stretch,ye=yt.style,Ue=yt.weight;_t[jt]=_t[jt]||{},_t[jt][wn]=_t[jt][wn]||{},_t[jt][wn][ye]=_t[jt][wn][ye]||{},_t[jt][wn][ye][Ue]=yt}return _t})(Et.concat(Jt)),Qe=mt}return Fe})(this.pdf,this.fontFaces),ct=nt.map(function(ut){return{family:ut,stretch:"normal",weight:et,style:it}}),Lt=(function(ut,Jt,Ft){for(var mt=(Ft=Ft||{}).defaultFontFamily||"times",Et=Object.assign({},H9,Ft.genericFontFamilies||{}),qt=null,_t=null,pn=0;pn<Jt.length;++pn)if(Et[(qt=S1(Jt[pn])).family]&&(qt.family=Et[qt.family]),ut.hasOwnProperty(qt.family)){_t=ut[qt.family];break}if(!(_t=_t||ut[mt]))throw new Error("Could not find a font-family for the rule '"+xw(qt)+"' and default family '"+mt+"'.");if(_t=(function(yt,jt){if(jt[yt])return jt[yt];var wn=Ov[yt],ye=wn<=Ov.normal?-1:1,Ue=yw(jt,hN,wn,ye);if(!Ue)throw new Error("Could not find a matching font-stretch value for "+yt);return Ue})(qt.stretch,_t),_t=(function(yt,jt){if(jt[yt])return jt[yt];for(var wn=dN[yt],ye=0;ye<wn.length;++ye)if(jt[wn[ye]])return jt[wn[ye]];throw new Error("Could not find a matching font-style for "+yt)})(qt.style,_t),!(_t=(function(yt,jt){if(jt[yt])return jt[yt];if(yt===400&&jt[500])return jt[500];if(yt===500&&jt[400])return jt[400];var wn=z9[yt],ye=yw(jt,pN,wn,yt<400?-1:1);if(!ye)throw new Error("Could not find a matching font-weight for value "+yt);return ye})(qt.weight,_t)))throw new Error("Failed to resolve a font for the rule '"+xw(qt)+"'.");return _t})(tt,ct);this.pdf.setFont(Lt.ref.name,Lt.ref.style)}else{var Ct="";(et==="bold"||parseInt(et,10)>=700||it==="bold")&&(Ct="bold"),it==="italic"&&(Ct+="italic"),Ct.length===0&&(Ct="normal");for(var Ht="",vt={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"},lt=0;lt<nt.length;lt++){if(this.pdf.internal.getFont(nt[lt],Ct,{noFallback:!0,disableWarning:!0})!==void 0){Ht=nt[lt];break}if(Ct==="bolditalic"&&this.pdf.internal.getFont(nt[lt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Ht=nt[lt],Ct="bold";else if(this.pdf.internal.getFont(nt[lt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Ht=nt[lt],Ct="normal";break}}if(Ht===""){for(var dt=0;dt<nt.length;dt++)if(vt[nt[dt]]){Ht=vt[nt[dt]];break}}Ht=Ht===""?"Times":Ht,this.pdf.setFont(Ht,Ct)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ce){this.ctx.globalCompositeOperation=ce}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ce){this.ctx.globalAlpha=ce}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ce){this.ctx.lineDashOffset=ce,ee.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ce){this.ctx.lineDash=ce,ee.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ce){this.ctx.ignoreClearRect=!!ce}})};m.prototype.setLineDash=function(P){this.lineDash=P},m.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},m.prototype.fill=function(){k.call(this,"fill",!1)},m.prototype.stroke=function(){k.call(this,"stroke",!1)},m.prototype.beginPath=function(){this.path=[{type:"begin"}]},m.prototype.moveTo=function(P,B){if(isNaN(P)||isNaN(B))throw ar.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to
443jsPDF.context2d.moveTo");var V=this.ctx.transform.applyToPoint(new l(P,B));this.path.push({type:"mt",x:V.x,y:V.y}),this.ctx.lastPoint=new l(P,B)},m.prototype.closePath=function(){var P=new l(0,0),B=0;for(B=this.path.length-1;B!==-1;B--)if(this.path[B].type==="begin"&&zn(this.path[B+1])==="object"&&typeof this.path[B+1].x=="number"){P=new l(this.path[B+1].x,this.path[B+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new l(P.x,P.y)},m.prototype.lineTo=function(P,B){if(isNaN(P)||isNaN(B))throw ar.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var V=this.ctx.transform.applyToPoint(new l(P,B));this.path.push({type:"lt",x:V.x,y:V.y}),this.ctx.lastPoint=new l(V.x,V.y)},m.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),k.call(this,null,!0)},m.prototype.quadraticCurveTo=function(P,B,V,Y){if(isNaN(V)||isNaN(Y)||isNaN(P)||isNaN(B))throw ar.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var oe=this.ctx.transform.applyToPoint(new l(V,Y)),le=this.ctx.transform.applyToPoint(new l(P,B));this.path.push({type:"qct",x1:le.x,y1:le.y,x:oe.x,y:oe.y}),this.ctx.lastPoint=new l(oe.x,oe.y)},m.prototype.bezierCurveTo=function(P,B,V,Y,oe,le){if(isNaN(oe)||isNaN(le)||isNaN(P)||isNaN(B)||isNaN(V)||isNaN(Y))throw ar.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var me=this.ctx.transform.applyToPoint(new l(oe,le)),ge=this.ctx.transform.applyToPoint(new l(P,B)),Ae=this.ctx.transform.applyToPoint(new l(V,Y));this.path.push({type:"bct",x1:ge.x,y1:ge.y,x2:Ae.x,y2:Ae.y,x:me.x,y:me.y}),this.ctx.lastPoint=new l(me.x,me.y)},m.prototype.arc=function(P,B,V,Y,oe,le){if(isNaN(P)||isNaN(B)||isNaN(V)||isNaN(Y)||isNaN(oe))throw ar.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(le=!!le,!this.ctx.transform.isIdentity){var me=this.ctx.transform.applyToPoint(new l(P,B));P=me.x,B=me.y;var ge=this.ctx.transform.applyToPoint(new l(0,V)),Ae=this.ctx.transform.applyToPoint(new l(0,0));V=Math.sqrt(Math.pow(ge.x-Ae.x,2)+Math.pow(ge.y-Ae.y,2))}Math.abs(oe-Y)>=2*Math.PI&&(Y=0,oe=2*Math.PI),this.path.push({type:"arc",x:P,y:B,radius:V,startAngle:Y,endAngle:oe,counterclockwise:le})},m.prototype.arcTo=function(P,B,V,Y,oe){throw new Error("arcTo not implemented.")},m.prototype.rect=function(P,B,V,Y){if(isNaN(P)||isNaN(B)||isNaN(V)||isNaN(Y))throw ar.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(P,B),this.lineTo(P+V,B),this.lineTo(P+V,B+Y),this.lineTo(P,B+Y),this.lineTo(P,B),this.lineTo(P+V,B),this.lineTo(P,B)},m.prototype.fillRect=function(P,B,V,Y){if(isNaN(P)||isNaN(B)||isNaN(V)||isNaN(Y))throw ar.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var oe={};this.lineCap!=="butt"&&(oe.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(oe.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(P,B,V,Y),this.fill(),oe.hasOwnProperty("lineCap")&&(this.lineCap=oe.lineCap),oe.hasOwnProperty("lineJoin")&&(this.lineJoin=oe.lineJoin)}},m.prototype.strokeRect=function(P,B,V,Y){if(isNaN(P)||isNaN(B)||isNaN(V)||isNaN(Y))throw ar.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");N.call(this)||(this.beginPath(),this.rect(P,B,V,Y),this.stroke())},m.prototype.clearRect=function(P,B,V,Y){if(isNaN(P)||isNaN(B)||isNaN(V)||isNaN(Y))throw ar.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(P,B,V,Y))},m.prototype.save=function(P){P=typeof P!="boolean"||P;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,V=0;V<this.pdf.internal.getNumberOfPages();V++)this.pdf.setPage(V+1),this.pdf.internal.out("q");
vendor: 4,163 bytes, line 443
443if(this.pdf.setPage(B),P){this.ctx.fontSize=this.pdf.internal.getFontSize();var Y=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Y}},m.prototype.restore=function(P){P=typeof P!="boolean"||P;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,V=0;V<this.pdf.internal.getNumberOfPages();V++)this.pdf.setPage(V+1),this.pdf.internal.out("Q");this.pdf.setPage(B),P&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},m.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var y=function(P){var B,V,Y,oe;if(P.isCanvasGradient===!0&&(P=P.getColor()),!P)return{r:0,g:0,b:0,a:0,style:P};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(P))B=0,V=0,Y=0,oe=0;else{var le=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(P);if(le!==null)B=parseInt(le[1]),V=parseInt(le[2]),Y=parseInt(le[3]),oe=1;else if((le=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(P))!==null)B=parseInt(le[1]),V=parseInt(le[2]),Y=parseInt(le[3]),oe=parseFloat(le[4]);else{if(oe=1,typeof P=="string"&&P.charAt(0)!=="#"){var me=new aN(P);P=me.ok?me.toHex():"#000000"}P.length===4?(B=P.substring(1,2),B+=B,V=P.substring(2,3),V+=V,Y=P.substring(3,4),Y+=Y):(B=P.substring(1,3),V=P.substring(3,5),Y=P.substring(5,7)),B=parseInt(B,16),V=parseInt(V,16),Y=parseInt(Y,16)}}return{r:B,g:V,b:Y,a:oe,style:P}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},N=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};m.prototype.fillText=function(P,B,V,Y){if(isNaN(B)||isNaN(V)||typeof P!="string")throw ar.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Y=isNaN(Y)?void 0:Y,!g.call(this)){var oe=X(this.ctx.transform.rotation),le=this.ctx.transform.scaleX;D.call(this,{text:P,x:B,y:V,scale:le,angle:oe,align:this.textAlign,maxWidth:Y})}},m.prototype.strokeText=function(P,B,V,Y){if(isNaN(B)||isNaN(V)||typeof P!="string")throw ar.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!N.call(this)){Y=isNaN(Y)?void 0:Y;var oe=X(this.ctx.transform.rotation),le=this.ctx.transform.scaleX;D.call(this,{text:P,x:B,y:V,scale:le,renderingMode:"stroke",angle:oe,align:this.textAlign,maxWidth:Y})}},m.prototype.measureText=function(P){if(typeof P!="string")throw ar.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var B=this.pdf,V=this.pdf.internal.scaleFactor,Y=B.internal.getFontSize(),oe=B.getStringUnitWidth(P)*Y/B.internal.scaleFactor;return new function(le){var me=(le=le||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return me}}),this}({width:oe*=Math.round(96*V/72*1e4)/1e4})},m.prototype.scale=function(P,B){if(isNaN(P)||isNaN(B))throw ar.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var V=new f(P,0,0,B,0,0);this.ctx.transform=this.ctx.transform.multiply(V)},m.prototype.rotate=function(P){if(isNaN(P))throw ar.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var B=new f(Math.cos(P),Math.sin(P),-Math.sin(P),Math.cos(P),0,0);this.ctx.transform=this.ctx.transform.multiply(B)},m.prototype.translate=function(P,B){if(isNaN(P)||isNaN(B))throw ar.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var V=new f(1,0,0,1,P,B);this.ctx.transform=this.ctx.transform.multiply(V)},m.prototype.transform=function(P,B,V,Y,oe,le){if(isNaN(P)||isNaN(B)||isNaN(V)||isNaN(Y)||isNaN(oe)||isNaN(le))throw ar.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to
443jsPDF.context2d.transform");var me=new f(P,B,V,Y,oe,le);this.ctx.transform=this.ctx.transform.multiply(me)},m.prototype.setTransform=function(P,B,V,Y,oe,le){P=isNaN(P)?1:P,B=isNaN(B)?0:B,V=isNaN(V)?0:V,Y=isNaN(Y)?1:Y,oe=isNaN(oe)?0:oe,le=isNaN(le)?0:le,this.ctx.transform=new f(P,B,V,Y,oe,le)};var w=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};m.prototype.drawImage=function(P,B,V,Y,oe,le,me,ge,Ae){var Oe=this.pdf.getImageProperties(P),Fe=1,Qe=1,Je=1,ce=1;Y!==void 0&&ge!==void 0&&(Je=ge/Y,ce=Ae/oe,Fe=Oe.width/Y*ge/Y,Qe=Oe.height/oe*Ae/oe),le===void 0&&(le=B,me=V,B=0,V=0),Y!==void 0&&ge===void 0&&(ge=Y,Ae=oe),Y===void 0&&ge===void 0&&(ge=Oe.width,Ae=Oe.height);var Ve=this.ctx.transform.decompose(),it=X(Ve.rotate.shx),et=new f,De=(et=(et=(et=et.multiply(Ve.translate)).multiply(Ve.skew)).multiply(Ve.scale)).applyToRectangle(new c(le-B*Je,me-V*ce,Y*Fe,oe*Qe));if(this.autoPaging){for(var ot,Xe=E.call(this,De),nt=[],tt=0;tt<Xe.length;tt+=1)nt.indexOf(Xe[tt])===-1&&nt.push(Xe[tt]);H(nt);for(var ct=nt[0],Lt=nt[nt.length-1],Ct=ct;Ct<Lt+1;Ct++){this.pdf.setPage(Ct);var Ht=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],vt=Ct===1?this.posY+this.margin[0]:this.margin[0],lt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],dt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ut=Ct===1?0:lt+(Ct-2)*dt;if(this.ctx.clip_path.length!==0){var Jt=this.path;ot=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=z(ot,this.posX+this.margin[3],-ut+vt+this.ctx.prevPageLastElemOffset),K.call(this,"fill",!0),this.path=Jt}var Ft=JSON.parse(JSON.stringify(De));Ft=z([Ft],this.posX+this.margin[3],-ut+vt+this.ctx.prevPageLastElemOffset)[0];var mt=(Ct>ct||Ct<Lt)&&w.call(this);mt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ht,dt,null).clip().discardPath()),this.pdf.addImage(P,"JPEG",Ft.x,Ft.y,Ft.w,Ft.h,null,null,it),mt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(P,"JPEG",De.x,De.y,De.w,De.h,null,null,it)};var E=function(P,B,V){var Y=[];B=B||this.pdf.internal.pageSize.width,V=V||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var oe=this.posY+this.ctx.prevPageLastElemOffset;switch(P.type){default:case"mt":case"lt":Y.push(Math.floor((P.y+oe)/V)+1);break;case"arc":Y.push(Math.floor((P.y+oe-P.radius)/V)+1),Y.push(Math.floor((P.y+oe+P.radius)/V)+1);break;case"qct":var le=se(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x,P.y);Y.push(Math.floor((le.y+oe)/V)+1),Y.push(Math.floor((le.y+le.h+oe)/V)+1);break;case"bct":var me=pe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x2,P.y2,P.x,P.y);Y.push(Math.floor((me.y+oe)/V)+1),Y.push(Math.floor((me.y+me.h+oe)/V)+1);break;case"rect":Y.push(Math.floor((P.y+oe)/V)+1),Y.push(Math.floor((P.y+P.h+oe)/V)+1)}for(var ge=0;ge<Y.length;ge+=1)for(;this.pdf.internal.getNumberOfPages()<Y[ge];)_.call(this);return Y},_=function(){var P=this.fillStyle,B=this.strokeStyle,V=this.font,Y=this.lineCap,oe=this.lineWidth,le=this.lineJoin;this.pdf.addPage(),this.fillStyle=P,this.strokeStyle=B,this.font=V,this.lineCap=Y,this.lineWidth=oe,this.lineJoin=le},z=function(P,B,V){for(var Y=0;Y<P.length;Y++)switch(P[Y].type){case"bct":P[Y].x2+=B,P[Y].y2+=V;case"qct":P[Y].x1+=B,P[Y].y1+=V;default:P[Y].x+=B,P[Y].y+=V}return P},H=function(P){return P.sort(function(B,V){return B-V})},k=function(P,B){var V=this.fillStyle,Y=this.strokeStyle,oe=this.lineCap,le=this.lineWidth,me=Math.abs(le*this.ctx.transform.scaleX),ge=this.lineJoin;if(this.autoPaging){for(var Ae,Oe,Fe=JSON.parse(JSON.stringify(this.path)),Qe=JSON.parse(JSON.stringify(this.path)),Je=[],ce=0;ce<Qe.length;ce++)if(Qe[ce].x!==void 0)for(var Ve=E.call(this,Qe[ce]),it=0;it<Ve.length;it+=1)Je.indexOf(Ve[it])===-1&&Je.push(Ve[it]);for(var et=0;et<Je.length;et++)for(;this.pdf.internal.getNumberOfPages()<Je[et];)_.call(this);H(Je);for(var De=Je[0],ot=Je[Je.length-1],Xe=De;Xe<ot+1;Xe++){this.pdf.setPage(Xe),this.fillStyle=V,this.strokeStyle=Y,this.lineCap=oe,this.lineWidth=me,this.lineJoin=ge;var nt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],tt=Xe===1?this.posY+this.margin[0]:this.margin[0],ct=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Lt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ct=Xe===1?0:ct+(Xe-2)*Lt;if(this.ctx.clip_path.length!==0){var Ht=this.path;Ae=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=z(Ae,this.posX+this.margin[3],-Ct+tt+this.ctx.prevPageLastElemOffset),K.call(this,P,!0),this.path=Ht}if(Oe=JSON.parse(JSON.stringify(Fe)),this.path=z(Oe,this.posX+this.margin[3],-Ct+tt+this.ctx.prevPageLastElemOffset),B===!1||Xe===0){var vt=(Xe>De||Xe<ot)&&w.call(this);vt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],nt,Lt,null).clip().discardPath()),K.call(this,P,B),vt&&this.pdf.restoreGraphicsState()}this.lineWidth=le}this.path=Fe}else this.lineWidth=me,K.call(this,P,B),this.lineWidth=le},K=function(P,B){if((P!=="stroke"||B||!N.call(this))&&(P==="stroke"||B||!g.call(this))){for(var V,Y,oe
vendor: 36,268 bytes, lines 443-449
443=[],le=this.path,me=0;me<le.length;me++){var ge=le[me];switch(ge.type){case"begin":oe.push({begin:!0});break;case"close":oe.push({close:!0});break;case"mt":oe.push({start:ge,deltas:[],abs:[]});break;case"lt":var Ae=oe.length;if(le[me-1]&&!isNaN(le[me-1].x)&&(V=[ge.x-le[me-1].x,ge.y-le[me-1].y],Ae>0)){for(;Ae>=0;Ae--)if(oe[Ae-1].close!==!0&&oe[Ae-1].begin!==!0){oe[Ae-1].deltas.push(V),oe[Ae-1].abs.push(ge);break}}break;case"bct":V=[ge.x1-le[me-1].x,ge.y1-le[me-1].y,ge.x2-le[me-1].x,ge.y2-le[me-1].y,ge.x-le[me-1].x,ge.y-le[me-1].y],oe[oe.length-1].deltas.push(V);break;case"qct":var Oe=le[me-1].x+2/3*(ge.x1-le[me-1].x),Fe=le[me-1].y+2/3*(ge.y1-le[me-1].y),Qe=ge.x+2/3*(ge.x1-ge.x),Je=ge.y+2/3*(ge.y1-ge.y),ce=ge.x,Ve=ge.y;V=[Oe-le[me-1].x,Fe-le[me-1].y,Qe-le[me-1].x,Je-le[me-1].y,ce-le[me-1].x,Ve-le[me-1].y],oe[oe.length-1].deltas.push(V);break;case"arc":oe.push({deltas:[],abs:[],arc:!0}),Array.isArray(oe[oe.length-1].abs)&&oe[oe.length-1].abs.push(ge)}}Y=B?null:P==="stroke"?"stroke":"fill";for(var it=!1,et=0;et<oe.length;et++)if(oe[et].arc)for(var De=oe[et].abs,ot=0;ot<De.length;ot++){var Xe=De[ot];Xe.type==="arc"?O.call(this,Xe.x,Xe.y,Xe.radius,Xe.startAngle,Xe.endAngle,Xe.counterclockwise,void 0,B,!it):$.call(this,Xe.x,Xe.y),it=!0}else if(oe[et].close===!0)this.pdf.internal.out("h"),it=!1;else if(oe[et].begin!==!0){var nt=oe[et].start.x,tt=oe[et].start.y;W.call(this,oe[et].deltas,nt,tt),it=!0}Y&&R.call(this,Y),B&&Q.call(this)}},U=function(P){var B=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,V=B*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return P-V;case"top":return P+B-V;case"hanging":return P+B-2*V;case"middle":return P+B/2-V;default:return P}},G=function(P){return P+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};m.prototype.createLinearGradient=function(){var P=function(){};return P.colorStops=[],P.addColorStop=function(B,V){this.colorStops.push([B,V])},P.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},P.isCanvasGradient=!0,P},m.prototype.createPattern=function(){return this.createLinearGradient()},m.prototype.createRadialGradient=function(){return this.createLinearGradient()};var O=function(P,B,V,Y,oe,le,me,ge,Ae){for(var Oe=L.call(this,V,Y,oe,le),Fe=0;Fe<Oe.length;Fe++){var Qe=Oe[Fe];Fe===0&&(Ae?j.call(this,Qe.x1+P,Qe.y1+B):$.call(this,Qe.x1+P,Qe.y1+B)),te.call(this,P,B,Qe.x2,Qe.y2,Qe.x3,Qe.y3,Qe.x4,Qe.y4)}ge?Q.call(this):R.call(this,me)},R=function(P){switch(P){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Q=function(){this.pdf.clip(),this.pdf.discardPath()},j=function(P,B){this.pdf.internal.out(n(P)+" "+r(B)+" m")},D=function(P){var B;switch(P.align){case"right":case"end":B="right";break;case"center":B="center";break;default:B="left"}var V,Y,oe,le=this.pdf.getTextDimensions(P.text),me=U.call(this,P.y),ge=G.call(this,me)-le.h,Ae=this.ctx.transform.applyToPoint(new l(P.x,me));if(this.autoPaging){var Oe=this.ctx.transform.decompose(),Fe=new f;Fe=(Fe=(Fe=Fe.multiply(Oe.translate)).multiply(Oe.skew)).multiply(Oe.scale);for(var Qe=this.ctx.transform.applyToRectangle(new c(P.x,me,le.w,le.h)),Je=Fe.applyToRectangle(new c(P.x,ge,le.w,le.h)),ce=E.call(this,Je),Ve=[],it=0;it<ce.length;it+=1)Ve.indexOf(ce[it])===-1&&Ve.push(ce[it]);H(Ve);for(var et=Ve[0],De=Ve[Ve.length-1],ot=et;ot<De+1;ot++){this.pdf.setPage(ot);var Xe=ot===1?this.posY+this.margin[0]:this.margin[0],nt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],tt=this.pdf.internal.pageSize.height-this.margin[2],ct=tt-this.margin[0],Lt=this.pdf.internal.pageSize.width-this.margin[1],Ct=Lt-this.margin[3],Ht=ot===1?0:nt+(ot-2)*ct;if(this.ctx.clip_path.length!==0){var vt=this.path;V=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=z(V,this.posX+this.margin[3],-1*Ht+Xe),K.call(this,"fill",!0),this.path=vt}var lt=z([JSON.parse(JSON.stringify(Je))],this.posX+this.margin[3],-Ht+Xe+this.ctx.prevPageLastElemOffset)[0];P.scale>=.01&&(Y=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Y*P.scale),oe=this.lineWidth,this.lineWidth=oe*P.scale);var dt=this.autoPaging!=="text";if(dt||lt.y+lt.h<=tt){if(dt||lt.y>=Xe&<.x<=Lt){var ut=dt?P.text:this.pdf.splitTextToSize(P.text,P.maxWidth||Lt-lt.x)[0],Jt=z([JSON.parse(JSON.stringify(Qe))],this.posX+this.margin[3],-Ht+Xe+this.ctx.prevPageLastElemOffset)[0],Ft=dt&&(ot>et||ot<De)&&w.call(this);Ft&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ct,ct,null).clip().discardPath()),this.pdf.text(ut,Jt.x,Jt.y,{angle:P.angle,align:B,renderingMode:P.renderingMode}),Ft&&this.pdf.restoreGraphicsState()}}else lt.y<tt&&(this.ctx.prevPageLastElemOffset+=tt-lt.y);P.scale>=.01&&(this.pdf.setFontSize(Y),this.lineWidth=oe)}}else P.scale>=.01&&(Y=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Y*P.scale),oe=this.lineWidth,this.lineWidth=oe*P.scale),this.pdf.text(P.text,Ae.x+this.posX,Ae.y+this.posY,{angle:P.angle,align:B,renderingMode:P.renderingMode,maxWidth:P.maxWidth}),P.scale>=.01&&(this.pdf.setFontSize(Y),this.lineWidth=oe)},$=function(P,B,V,Y){V=V||0,Y=Y||0,this.pdf.internal.out(n(P+V)+" "+r(B+Y)+" l")},W=function(P,B,V){return this.pdf.lines(P,B,V,null,null)},te=function(P,B,V,Y,oe,le,me,ge){this.pdf.internal.out([t(a(V+P)),t(o(Y+B)),t(a(oe+P)),t(o(le+B)),t(a(me+P)),t(o(ge+B)),"c"].join(" "))},L=function(P,B,V,Y){for(var oe=2*Math.PI,le=Math.PI/2;B>V;)B-=oe;var me=Math.abs(V-B);me<oe&&Y&&(me=oe-me);for(var ge=[],Ae=Y?-1:1,Oe=B;me>1e-5;){var Fe=Oe+Ae*Math.min(me,le);ge.push(M.call(this,P,Oe,Fe)),me-=Math.abs(Fe-Oe),Oe=Fe}return ge},M=function(P,B,V){var Y=(V-B)/2,oe=P*Math.cos(Y),le=P*Math.sin(Y),me=oe,ge=-le,Ae=me*me+ge*ge,Oe=Ae+me*oe+ge*le,Fe=4/3*(Math.sqrt(2*Ae*Oe)-Oe)/(me*le-ge*oe),Qe=me-Fe*ge,Je=ge+Fe*me,ce=Qe,Ve=-Je,it=Y+B,et=Math.cos(it),De=Math.sin(it);return{x1:P*Math.cos(B),y1:P*Math.sin(B),x2:Qe*et-Je*De,y2:Qe*De+Je*et,x3:ce*et-Ve*De,y3:ce*De+Ve*et,x4:P*Math.cos(V),y4:P*Math.sin(V)}},X=function(P){return 180*P/Math.PI},se=function(P,B,V,Y,oe,le){var me=P+.5*(V-P),ge=B+.5*(Y-B),Ae=oe+.5*(V-oe),Oe=le+.5*(Y-le),Fe=Math.min(P,oe,me,Ae),Qe=Math.max(P,oe,me,Ae),Je=Math.min(B,le,ge,Oe),ce=Math.max(B,le,ge,Oe);return new c(Fe,Je,Qe-Fe,ce-Je)},pe=function(P,B,V,Y,oe,le,me,ge){var Ae,Oe,Fe,Qe,Je,ce,Ve,it,et,De,ot,Xe,nt,tt,ct=V-P,Lt=Y-B,Ct=oe-V,Ht=le-Y,vt=me-oe,lt=ge-le;for(Oe=0;Oe<41;Oe++)et=(Ve=(Fe=P+(Ae=Oe/40)*ct)+Ae*((Je=V+Ae*Ct)-Fe))+Ae*(Je+Ae*(oe+Ae*vt-Je)-Ve),De=(it=(Qe=B+Ae*Lt)+Ae*((ce=Y+Ae*Ht)-Qe))+Ae*(ce+Ae*(le+Ae*lt-ce)-it),Oe==0?(ot=et,Xe=De,nt=et,tt=De):(ot=Math.min(ot,et),Xe=Math.min(Xe,De),nt=Math.max(nt,et),tt=Math.max(tt,De));return new c(Math.round(ot),Math.round(Xe),Math.round(nt-ot),Math.round(tt-Xe))},ee=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var P,B,V=(P=this.ctx.lineDash,B=this.ctx.lineDashOffset,JSON.stringify({lineDash:P,lineDashOffset:B}));this.prevLineDash!==V&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=V)}}})(Ot.API),(function(e){var t=function(l){var c,f,d,h,m,y,g,N,w,E;for(f=[],d=0,h=(l+=c="\0\0\0\0".slice(l.length%4||4)).length;h>d;d+=4)(m=(l.charCodeAt(d)<<24)+(l.charCodeAt(d+1)<<16)+(l.charCodeAt(d+2)<<8)+l.charCodeAt(d+3))!==0?(y=(m=((m=((m=((m=(m-(E=m%85))/85)-(w=m%85))/85)-(N=m%85))/85)-(g=m%85))/85)%85,f.push(y+33,g+33,N+33,w+33,E+33)):f.push(122);return(function(_,z){for(var H=z;H>0;H--)_.pop()})(f,c.length),String.fromCharCode.apply(String,f)+"~>"},n=function(l){var c,f,d,h,m,y=String,g="length",N=255,w="charCodeAt",E="slice",_="replace";for(l[E](-2),l=l[E](0,-2)[_](/\s/g,"")[_]("z","!!!!!"),d=[],h=0,m=(l+=c="uuuuu"[E](l[g]%5||5))[g];m>h;h+=5)f=52200625*(l[w](h)-33)+614125*(l[w](h+1)-33)+7225*(l[w](h+2)-33)+85*(l[w](h+3)-33)+(l[w](h+4)-33),d.push(N&f>>24,N&f>>16,N&f>>8,N&f);return(function(z,H){for(var k=H;k>0;k--)z.pop()})(d,c[g]),y.fromCharCode.apply(y,d)},r=function(l){return l.split("").map(function(c){return("0"+c.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(l){var c=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((l=l.replace(/\s/g,"")).indexOf(">")!==-1&&(l=l.substr(0,l.indexOf(">"))),l.length%2&&(l+="0"),c.test(l)===!1)return"";for(var f="",d=0;d<l.length;d+=2)f+=String.fromCharCode("0x"+(l[d]+l[d+1]));return f},o=function(l){for(var c=new Uint8Array(l.length),f=l.length;f--;)c[f]=l.charCodeAt(f);return(c=Nv(c)).reduce(function(d,h){return d+String.fromCharCode(h)},"")};e.processDataByFilters=function(l,c){var f=0,d=l||"",h=[];for(typeof(c=c||[])=="string"&&(c=[c]),f=0;f<c.length;f+=1)switch(c[f]){case"ASCII85Decode":case"/ASCII85Decode":d=n(d),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":d=t(d),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":d=a(d),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":d=r(d),h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":d=o(d),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+c[f]+'" is not implemented')}return{data:d,reverseChain:h.reverse().join(" ")}}})(Ot.API),(function(e){e.loadFile=function(t,n,r){return(function(a,o,l){o=o!==!1,l=typeof l=="function"?l:function(){};var c=void 0;try{c=(function(f,d,h){var m=new XMLHttpRequest,y=0,g=function(N){var w=N.length,E=[],_=String.fromCharCode;for(y=0;y<w;y+=1)E.push(_(255&N.charCodeAt(y)));return E.join("")};if(m.open("GET",f,!d),m.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(m.onload=function(){m.status===200?h(g(this.responseText)):h(void 0)}),m.send(null),d&&m.status===200)return g(m.responseText)})(a,o,l)}catch{}return c})(t,n,r)},e.loadImageFile=e.loadFile})(Ot.API),(function(e){function t(){return(Zt.html2canvas?Promise.resolve(Zt.html2canvas):s1(()=>import("./html2canvas.esm-B0tyYwQk.js"),[])).catch(function(c){return Promise.reject(new Error("Could not load html2canvas: "+c))}).then(function(c){return c.default?c.default:c})}function n(){return(Zt.DOMPurify?Promise.resolve(Zt.DOMPurify):s1(()=>import("./purify.es-B6FQ9oRL.js"),[])).catch(function(c){return Promise.reject(new Error("Could not load dompurify: "+c))}).then(function(c){return c.default?c.default:c})}var r=function(c){var f=zn(c);return f==="undefined"?"undefined":f==="string"||c instanceof String?"string":f==="number"||c instanceof Number?"number":f==="function"||c instanceof Function?"function":c&&c.constructor===Array?"array":c&&c.nodeType===1?"element":f==="object"?"object":"unknown"},a=function(c,f){var d=document.createElement(c);for(var h in f.className&&(d.className=f.className),f.innerHTML&&f.dompurify&&(d.innerHTML=f.dompurify.sanitize(f.innerHTML)),f.style)d.style[h]=f.style[h];return d},o=function c(f,d){for(var h=f.nodeType===3?document.createTextNode(f.nodeValue):f.cloneNode(!1),m=f.firstChild;m;m=m.nextSibling)d!==!0&&m.nodeType===1&&m.nodeName==="SCRIPT"||h.appendChild(c(m,d));return f.nodeType===1&&(f.nodeName==="CANVAS"?(h.width=f.width,h.height=f.height,h.getContext("2d").drawImage(f,0,0)):f.nodeName!=="TEXTAREA"&&f.nodeName!=="SELECT"||(h.value=f.value),h.addEventListener("load",function(){h.scrollTop=f.scrollTop,h.scrollLeft=f.scrollLeft},!0)),h},l=function c(f){var d=Object.assign(c.convert(Promise.resolve()),JSON.parse(JSON.stringify(c.template))),h=c.convert(Promise.resolve(),d);return(h=h.setProgress(1,c,1,[c])).set(f)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(c,f){return c.__proto__=f||l.prototype,c},l.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"}},l.prototype.from=function(c,f){return this.then(function(){switch(f=f||(function(d){switch(r(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(c),f){case"string":return this.then(n).then(function(d){return this.set({src:a("div",{innerHTML:c,dompurify:d})})});case"element":return this.set({src:c});case"canvas":return this.set({canvas:c});case"img":return this.set({img:c});default:return this.error("Unknown source type.")}})},l.prototype.to=function(c){switch(c){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.")}},l.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 c={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},f=o(this.prop.src,this.opt.html2canvas.javascriptEnabled);f.tagName==="BODY"&&(c.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:c}),this.prop.container.appendChild(f),this.prop.container.firstChild.appendChild(a("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"})},l.prototype.toCanvas=function(){var c=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(c).then(t).then(function(f){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,f(this.prop.container,d)}).then(function(f){(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},l.prototype.toContext2d=function(){var c=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(c).then(t).then(function(f){var d=this.opt.jsPDF,h=this.opt.fontFaces,m=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,y=Object.assign({async:!0,allowTaint:!0,scale:m,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 y.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=h,h)for(var g=0;g<h.length;++g){var N=h[g],w=N.src.find(function(E){return E.format==="truetype"});w&&d.addFont(w.url,N.ref.name,N.ref.style)}return y.windowHeight=y.windowHeight||0,y.windowHeight=y.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):y.windowHeight,d.context2d.save(!0),f(this.prop.container,y)}).then(function(f){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var c=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=c})},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},l.prototype.output=function(c,f,d){return(d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(c,f):this.outputPdf(c,f)},l.prototype.outputPdf=function(c,f){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(c,f)})},l.prototype.outputImg=function(c){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(c){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 "'+c+'" is not supported.'}})},l.prototype.save=function(c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(c?{filename:c}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},l.prototype.set=function(c){if(r(c)!=="object")return this;var f=Object.keys(c||{}).map(function(d){if(d in l.template.prop)return function(){this.prop[d]=c[d]};switch(d){case"margin":return this.setMargin.bind(this,c.margin);case"jsPDF":return function(){return this.opt.jsPDF=c.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,c.pageSize);default:return function(){this.opt[d]=c[d]}}},this);return this.then(function(){return this.thenList(f)})},l.prototype.get=function(c,f){return this.then(function(){var d=c in l.template.prop?this.prop[c]:this.opt[c];return f?f(d):d})},l.prototype.setMargin=function(c){return this.then(function(){switch(r(c)){case"number":c=[c,c,c,c];case"array":if(c.length===2&&(c=[c[0],c[1],c[0],c[1]]),c.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=c}).then(this.setPageSize)},l.prototype.setPageSize=function(c){function f(d,h){return Math.floor(d*h/72*96)}return this.then(function(){(c=c||Ot.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(c.inner={width:c.width-this.opt.margin[1]-this.opt.margin[3],height:c.height-this.opt.margin[0]-this.opt.margin[2]},c.inner.px={width:f(c.inner.width,c.k),height:f(c.inner.height,c.k)},c.inner.ratio=c.inner.height/c.inner.width),this.prop.pageSize=c})},l.prototype.setProgress=function(c,f,d,h){return c!=null&&(this.progress.val=c),f!=null&&(this.progress.state=f),d!=null&&(this.progress.n=d),h!=null&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(c,f,d,h){return this.setProgress(c?this.progress.val+c:null,f||null,d?this.progress.n+d:null,h?this.progress.stack.concat(h):null)},l.prototype.then=function(c,f){var d=this;return this.thenCore(c,f,function(h,m){return d.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(y){return d.updateProgress(null,h),y}).then(h,m).then(function(y){return d.updateProgress(1),y})})},l.prototype.thenCore=function(c,f,d){d=d||Promise.prototype.then;var h=this;c&&(c=c.bind(h)),f&&(f=f.bind(h));var m=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?h:l.convert(Object.assign({},h),Promise.prototype),y=d.call(m,c,f);return l.convert(y,h.__proto__)},l.prototype.thenExternal=function(c,f){return Promise.prototype.then.call(this,c,f)},l.prototype.thenList=function(c){var f=this;return c.forEach(function(d){f=f.thenCore(d)}),f},l.prototype.catch=function(c){c&&(c=c.bind(this));var f=Promise.prototype.catch.call(this,c);return l.convert(f,this)},l.prototype.catchExternal=function(c){return Promise.prototype.catch.call(this,c)},l.prototype.error=function(c){return this.then(function(){throw new Error(c)})},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,Ot.getPageSize=function(c,f,d){if(zn(c)==="object"){var h=c;c=h.orientation,f=h.unit||f,d=h.format||d}f=f||"mm",d=d||"a4",c=(""+(c||"P")).toLowerCase();var m,y=(""+d).toLowerCase(),g={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(f){case"pt":m=1;break;case"mm":m=72/25.4;break;case"cm":m=72/2.54;break;case"in":m=72;break;case"px":m=.75;break;case"pc":case"em":m=12;break;case"ex":m=6;break;default:throw"Invalid unit: "+f}var N,w=0,E=0;if(g.hasOwnProperty(y))w=g[y][1]/m,E=g[y][0]/m;else try{w=d[1],E=d[0]}catch{throw new Error("Invalid format: "+d)}if(c==="p"||c==="portrait")c="p",E>w&&(N=E,E=w,w=N);else{if(c!=="l"&&c!=="landscape")throw"Invalid orientation: "+c;c="l",w>E&&(N=E,E=w,w=N)}return{width:E,height:w,unit:f,k:m,orientation:c}},e.html=function(c,f){(f=f||{}).callback=f.callback||function(){},f.html2canvas=f.html2canvas||{},f.html2canvas.canvas=f.html2canvas.canvas||this.canvas,f.jsPDF=f.jsPDF||this,f.fontFaces=f.fontFaces?f.fontFaces.map(S1):null;var d=new l(f);return f.worker?d:d.from(c).doCallback()}})(Ot.API),Ot.API.addJS=function(e){return Aw=e,this.internal.events.subscribe("postPutResources",function(){zp=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(zp+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Sw=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Aw+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){zp!==void 0&&Sw!==void 0&&this.internal.out("/Names <</JavaScript "+zp+" 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 a=n.outline.render().split(/\r\n/),o=0;o<a.length;o++){var l=a[o],c=r.exec(l);if(c!=null){var f=c[1];n.internal.newObjectDeferredBegin(f,!1)}n.internal.write(l)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,h=[];for(o=0;o<d;o++){var m=n.internal.newObject();h.push(m);var y=n.internal.getPageInfo(o+1);n.internal.write("<< /D["+y.objId+" 0 R /XYZ null null null]>> endobj")}var g=n.internal.newObject();for(n.internal.write("<< /Names [ "),o=0;o<h.length;o++)n.internal.write("(page_"+(o+1)+")"+h[o]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+g+" 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,a,o){var l={title:a,options:o,children:[]};return r==null&&(r=this.root),r.children.push(l),l},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 a=0;a<r.children.length;a++)this.genIds_r(r.children[a])},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 a=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<r.children.length;o++){var l=r.children[o];this.objStart(l),this.line("/Title "+this.makeString(l.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])),l.children.length>0&&(this.line("/First "+this.makeRef(l.children[0])),this.line("/Last "+this.makeRef(l.children[l.children.length-1])));var c=this.count=this.count_r({count:0},l);if(c>0&&this.line("/Count "+c),l.options&&l.options.pageNumber){var f=n.internal.getPageInfo(l.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d])},n.outline.line=function(r){this.ctx.val+=r+`\r 444`},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 445`+r.id+` 0 obj\r 446<<\r 447`},n.outline.objEnd=function(){this.ctx.val+=`>> \r 448endobj\r 449`},n.outline.count_r=function(r,a){for(var o=0;o<a.children.length;o++)r.count++,this.count_r(r,a.children[o]);return r.count}}])})(Ot.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,a,o,l,c){var f,d=this.decode.DCT_DECODE,h=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=l||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,f=(function(m){for(var y,g=256*m.charCodeAt(4)+m.charCodeAt(5),N=m.length,w={width:0,height:0,numcomponents:1},E=4;E<N;E+=2){if(E+=g,t.indexOf(m.charCodeAt(E+1))!==-1){y=256*m.charCodeAt(E+5)+m.charCodeAt(E+6),w={width:256*m.charCodeAt(E+7)+m.charCodeAt(E+8),height:y,numcomponents:m.charCodeAt(E+9)};break}g=256*m.charCodeAt(E+2)+m.charCodeAt(E+3)}return w})(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),f.numcomponents){case 1:c=this.color_spaces.DEVICE_GRAY;break;case 4:c=this.color_spaces.DEVICE_CMYK;break;case 3:c=this.color_spaces.DEVICE_RGB}h={data:n,width:f.width,height:f.height,colorSpace:c,bitsPerComponent:8,filter:d,index:r,alias:a}}return h}})(Ot.API),Ot.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var a,o=E9(e,{checkCrc:!0}),l=o.width,c=o.height,f=o.channels,d=o.palette,h=o.depth;a=d&&f===1?(function(O){for(var R=O.width,Q=O.height,j=O.data,D=O.palette,$=O.depth,W=!1,te=[],L=[],M=void 0,X=!1,se=0,pe=0;pe<D.length;pe++){var ee=Ex(D[pe],4),P=ee[0],B=ee[1],V=ee[2],Y=ee[3];te.push(P,B,V),Y!=null&&(Y===0?(se++,L.length<1&&L.push(pe)):Y<255&&(X=!0))}if(X||se>1){W=!0,L=void 0;var oe=R*Q;M=new Uint8Array(oe);for(var le=new DataView(j.buffer),me=0;me<oe;me++){var ge=N1(le,me,$),Ae=Ex(D[ge],4)[3];M[me]=Ae}}else se===0&&(L=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:W?8:void 0,colorBytes:j,alphaBytes:M,needSMask:W,palette:te,mask:L}})(o):f===2||f===4?(function(O){for(var R=O.data,Q=O.width,j=O.height,D=O.channels,$=O.depth,W=D===2?"DeviceGray":"DeviceRGB",te=D-1,L=Q*j,M=te,X=L*M,se=1*L,pe=Math.ceil(X*$/8),ee=Math.ceil(se*$/8),P=new Uint8Array(pe),B=new Uint8Array(ee),V=new DataView(R.buffer),Y=new DataView(P.buffer),oe=new DataView(B.buffer),le=!1,me=0;me<L;me++){for(var ge=me*D,Ae=0;Ae<M;Ae++)Lw(Y,N1(V,ge+Ae,$),me*M+Ae,$);var Oe=N1(V,ge+M,$);Oe<(1<<$)-1&&(le=!0),Lw(oe,Oe,1*me,$)}return{colorSpace:W,colorsPerPixel:te,sMaskBitsPerComponent:le?$:void 0,colorBytes:P,alphaBytes:B,needSMask:le}})(o):(function(O){var R=O.data,Q=O.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Q,colorsPerPixel:Q==="DeviceGray"?1:3,colorBytes:R instanceof Uint16Array?(function(j){for(var D=j.length,$=new Uint8Array(2*D),W=new DataView($.buffer,$.byteOffset,$.byteLength),te=0;te<D;te++)W.setUint16(2*te,j[te],!1);return $})(R):R,needSMask:!1}})(o);var m,y,g,N=a,w=N.colorSpace,E=N.colorsPerPixel,_=N.sMaskBitsPerComponent,z=N.colorBytes,H=N.alphaBytes,k=N.needSMask,K=N.palette,U=N.mask,G=null;return r!==Ot.API.image_compression.NONE&&typeof Nv=="function"?(G=(function(O){var R;switch(O){case Ot.API.image_compression.FAST:R=11;break;case Ot.API.image_compression.MEDIUM:R=13;break;case Ot.API.image_compression.SLOW:R=14;break;default:R=12}return R})(r),m=this.decode.FLATE_DECODE,y="/Predictor ".concat(G," /Colors ").concat(E," /BitsPerComponent ").concat(h," /Columns ").concat(l),e=Ew(z,Math.ceil(l*E*h/8),E,h,r),k&&(g=Ew(H,Math.ceil(l*_/8),1,_,r))):(m=void 0,y=void 0,e=z,k&&(g=H)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(g&&this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),{alias:n,data:e,index:t,filter:m,decodeParameters:y,transparency:U,palette:K,sMask:g,predictor:G,width:l,height:c,bitsPerComponent:h,sMaskBitsPerComponent:_,colorSpace:w}}},(function(e){e.processGIF89A=function(t,n,r,a){var o=new Q9(t),l=o.width,c=o.height,f=[];o.decodeAndBlitFrameRGBA(0,f);var d={data:f,width:l,height:c},h=new _1(100).encode(d,100);return e.processJPEG.call(this,h,n,r,a)},e.processGIF87A=e.processGIF89A})(Ot.API),Di.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),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Di.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(n){ar.log("bit decode error:"+n)}},Di.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,a=0;a<t;a++)for(var o=this.datav.getUint8(this.pos++,!0),l=r*this.width*4+8*a*4,c=0;c<8&&8*a+c<this.width;c++){var f=this.palette[o>>7-c&1];this.data[l+4*c]=f.blue,this.data[l+4*c+1]=f.green,this.data[l+4*c+2]=f.red,this.data[l+4*c+3]=255}n!==0&&(this.pos+=4-n)}},Di.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,a=0;a<e;a++){var o=this.datav.getUint8(this.pos++,!0),l=r*this.width*4+2*a*4,c=o>>4,f=15&o,d=this.palette[c];if(this.data[l]=d.blue,this.data[l+1]=d.green,this.data[l+2]=d.red,this.data[l+3]=255,2*a+1>=this.width)break;d=this.palette[f],this.data[l+4]=d.blue,this.data[l+4+1]=d.green,this.data[l+4+2]=d.red,this.data[l+4+3]=255}t!==0&&(this.pos+=4-t)}},Di.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 a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(a<this.palette.length){var l=this.palette[a];this.data[o]=l.red,this.data[o+1]=l.green,this.data[o+2]=l.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)}},Di.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,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(o&t)/t*255|0,c=(o>>5&t)/t*255|0,f=(o>>10&t)/t*255|0,d=o>>15?255:0,h=r*this.width*4+4*a;this.data[h]=f,this.data[h+1]=c,this.data[h+2]=l,this.data[h+3]=d}this.pos+=e}},Di.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 a=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var l=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(l&t)/t*255|0,f=(l>>5&n)/n*255|0,d=(l>>11)/t*255|0,h=a*this.width*4+4*o;this.data[h]=d,this.data[h+1]=f,this.data[h+2]=c,this.data[h+3]=255}this.pos+=e}},Di.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),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*n;this.data[l]=o,this.data[l+1]=a,this.data[l+2]=r,this.data[l+3]=255}this.pos+=this.width%4}},Di.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),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),c=t*this.width*4+4*n;this.data[c]=o,this.data[c+1]=a,this.data[c+2]=r,this.data[c+3]=l}},Di.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,n,r,a){var o=new Di(t,!1),l=o.width,c=o.height,f={data:o.getData(),width:l,height:c},d=new _1(100).encode(f,100);return e.processJPEG.call(this,d,n,r,a)}})(Ot.API),Dw.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,n,r,a){var o=new Dw(t),l=o.width,c=o.height,f={data:o.getData(),width:l,height:c},d=new _1(100).encode(f,100);return e.processJPEG.call(this,d,n,r,a)}})(Ot.API),Ot.API.processRGBA=function(e,t,n){for(var r=e.data,a=r.length,o=new Uint8Array(a/4*3),l=new Uint8Array(a/4),c=0,f=0,d=0;d<a;d+=4){var h=r[d],m=r[d+1],y=r[d+2],g=r[d+3];o[c++]=h,o[c++]=m,o[c++]=y,l[f++]=g}var N=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(l),data:N,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Ot.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
449a)","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},bf=Ot.API,Hp=bf.getCharWidthsArray=function(e,t){var n,r,a=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),l=t.charSpace||this.internal.getCharSpace(),c=t.widths?t.widths:a.metadata.Unicode.widths,f=c.fof?c.fof:1,d=t.kerning?t.kerning:a.metadata.Unicode.kerning,h=d.fof?d.fof:1,m=t.doKerning!==!1,y=0,g=e.length,N=0,w=c[0]||f,E=[];for(n=0;n<g;n++)r=e.charCodeAt(n),typeof a.metadata.widthOfString=="function"?E.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(r))+l*(1e3/o)||0)/1e3):(y=m&&zn(d[r])==="object"&&!isNaN(parseInt(d[r][N],10))?d[r][N]/h:0,E.push((c[r]||w)/f+y)),N=r;return E},Nw=bf.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return bf.processArabic&&(e=bf.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,a)/n:Hp.apply(this,arguments).reduce(function(o,l){return o+l},0)},_w=function(e,t,n,r){for(var a=[],o=0,l=e.length,c=0;o!==l&&c+t[o]<n;)c+=t[o],o++;a.push(e.slice(0,o));var f=o;for(c=0;o!==l;)c+t[o]>r&&(a.push(e.slice(f,o)),c=0,f=o),c+=t[o],o++;return f!==o&&a.push(e.slice(f,o)),a},Cw=function(e,t,n){n||(n={});var r,a,o,l,c,f,d,h=[],m=[h],y=n.textIndent||0,g=0,N=0,w=e.split(" "),E=Hp.apply(this,[" ",n])[0];if(f=n.lineIndent===-1?w[0].length+2:n.lineIndent||0){var _=Array(f).join(" "),z=[];w.map(function(k){(k=k.split(/\s*\n/)).length>1?z=z.concat(k.map(function(K,U){return(U&&K.length?` 450`:"")+K})):z.push(k[0])}),w=z,f=Nw.apply(this,[_,n])}for(o=0,l=w.length;o<l;o++){var H=0;
vendor: 4,139 bytes, lines 450-451
450if(r=w[o],f&&r[0]==` 451`&&(r=r.substr(1),H=1),y+g+(N=(a=Hp.apply(this,[r,n])).reduce(function(k,K){return k+K},0))>t||H){if(N>t){for(c=_w.apply(this,[r,a,t-(y+g),t]),h.push(c.shift()),h=[c.pop()];c.length;)m.push([c.shift()]);N=a.slice(r.length-(h[0]?h[0].length:0)).reduce(function(k,K){return k+K},0)}else h=[r];m.push(h),y=N+f,g=E}else h.push(r),y+=g+N,g=E}return d=f?function(k,K){return(K?_:"")+k.join(" ")}:function(k){return k.join(" ")},m.map(d)},bf.splitTextToSize=function(e,t,n){var r,a=(n=n||{}).fontSize||this.internal.getFontSize(),o=(function(h){if(h.widths&&h.kerning)return{widths:h.widths,kerning:h.kerning};var m=this.internal.getFont(h.fontName,h.fontStyle),y="Unicode";return m.metadata[y]?{widths:m.metadata[y].widths||{0:1},kerning:m.metadata[y].kerning||{}}:{font:m.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var l=1*this.internal.scaleFactor*t/a;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/a:0,o.lineIndent=n.lineIndent;var c,f,d=[];for(c=0,f=r.length;c<f;c++)d=d.concat(Cw.apply(this,[r[c],l,o]));return d},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},a={},o=0;o<16;o++)r[n[o]]=t[o],a[t[o]]=n[o];var l=function(y){return"0x"+parseInt(y,10).toString(16)},c=e.__fontmetrics__.compress=function(y){var g,N,w,E,_=["{"];for(var z in y){if(g=y[z],isNaN(parseInt(z,10))?N="'"+z+"'":(z=parseInt(z,10),N=(N=l(z).slice(2)).slice(0,-1)+a[N.slice(-1)]),typeof g=="number")g<0?(w=l(g).slice(3),E="-"):(w=l(g).slice(2),E=""),w=E+w.slice(0,-1)+a[w.slice(-1)];else{if(zn(g)!=="object")throw new Error("Don't know what to do with value type "+zn(g)+".");w=c(g)}_.push(N+w)}return _.push("}"),_.join("")},f=e.__fontmetrics__.uncompress=function(y){if(typeof y!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,N,w,E,_={},z=1,H=_,k=[],K="",U="",G=y.length-1,O=1;O<G;O+=1)(E=y[O])=="'"?g?(w=g.join(""),g=void 0):g=[]:g?g.push(E):E=="{"?(k.push([H,w]),H={},w=void 0):E=="}"?((N=k.pop())[0][N[1]]=H,w=void 0,H=N[0]):E=="-"?z=-1:w===void 0?r.hasOwnProperty(E)?(K+=r[E],w=parseInt(K,16)*z,z=1,K=""):K+=E:r.hasOwnProperty(E)?(U+=r[E],H[w]=parseInt(U,16)*z,z=1,w=void 0,U=""):U+=E;return _},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:f("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},m={Unicode:{"Courier-Oblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":f("{'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}
4515r{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":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
451dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":f("{'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:f("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
451dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
451dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:f("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":f("{'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}
451fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":f("{'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":f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
451dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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(y){var g=y.font,N=m.Unicode[g.postScriptName];N&&(g.metadata.Unicode={},g.metadata.Unicode.widths=N.widths,g.metadata.Unicode.kerning=N.kerning);var w=h.Unicode[g.postScriptName];w&&(g.metadata.Unicode.encoding=w,g.encoding=w.codePages[0])}])})(Ot.API),(function(e){var t=function(n){for(var r=n.length,a=new Uint8Array(r),o=0;o<r;o++)a[o]=n.charCodeAt(o);return a};e.API.events.push(["addFont",function(n){var r=void 0,a=n.font,o=n.instance;if(!a.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(r=o.existsFileInVFS(a.postScriptName)===!1?o.loadFile(a.postScriptName):o.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(l,c){c=/^\x00\x01\x00\x00/.test(c)?t(c):t(Jp(c)),l.metadata=e.API.TTFFont.open(c),l.metadata.Unicode=l.metadata.Unicode||{encoding:{},kerning:{},widths:[]},l.metadata.glyIdsUsed=[0]})(a,r)}}])})(Ot),Ot.API.addSvgAsImage=function(e,t,n,r,a,o,l,c){if(isNaN(t)||isNaN(n))throw ar.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(a))throw ar.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var f=document.createElement("canvas");f.width=r,f.height=a;var d=f.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,f.width,f.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},m=this;return(Zt.canvg?Promise.resolve(Zt.canvg):s1(()=>import("./index.es-CowHJ15N.js"),[])).catch(function(y){return Promise.reject(new Error("Could not load canvg: "+y))}).then(function(y){return y.default?y.default:y}).then(function(y){return y.fromString(d,e,h)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(y){return y.render(h)}).then(function(){m.addImage(f.toDataURL("image/jpeg",1),t,n,r,a,l,c)})},Ot.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 a=0;a<this.internal.pages[r].length;a++)this.internal.pages[r][a]=this.internal.pages[r][a].replace(t,n);return this},Ot.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,a,o,l={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}},c=Object.keys(l),f=[],d=0,h=0,m=0;function y(N,w){var E,_=!1;for(E=0;E<N.length;E+=1)N[E]===w&&(_=!0);return _}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(l)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var g=c.length;for(m=0;m<g;m+=1)n[c[m]].value=n[c[m]].defaultValue,n[c[m]].explicitSet=!1}if(zn(e)==="object"){for(a in e)if(o=e[a],y(c,a)&&o!==void 0){if(n[a].type==="boolean"&&typeof o=="boolean")n[a].value=o;else if(n[a].type==="name"&&y(n[a].valueSet,o))n[a].value=o;else if(n[a].type==="integer"&&Number.isInteger(o))n[a].value=o;else if(n[a].type==="array"){for(d=0;d<o.length;d+=1)if(r=!0,o[d].length===1&&typeof o[d][0]=="number")f.push(String(o[d]-1));else if(o[d].length>1){for(h=0;h<o[d].length;h+=1)typeof o[d][h]!="number"&&(r=!1);r===!0&&f.push([o[d][0]-1,o[d][1]-1].join(" "))}n[a].value="["+f.join(" ")+"]"}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var N,w=[];for(N in n)n[N].explicitSet===!0&&(n[N].type==="name"?w.push("/"+N+" /"+n[N].value):w.push("/"+N+" "+n[N].value));w.length!==0&&this.internal.write(`/ViewerPreferences 452<< 453`+w.join(` 454`)+` 455>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},(function(e){var t=function(){var r='<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>',a=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(r)),l=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),c=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),f=unescape(encodeURIComponent("</x:xmpmeta>")),d=o.length+l.length+c.length+a.length+f.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+d+" >>"),this.internal.write("stream"),this.internal.write(a+o+l+c+f),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(r,a){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:a||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}})(Ot.API),(function(e){var t=e.API,n=t.pdfEscape16=function(o,l){for(var c,f=l.metadata.Unicode.widths,d=["","0","00","000","0000"],h=[""],m=0,y=o.length;m<y;
vendor: 34,130 bytes, lines 455-479
455++m){if(c=l.metadata.characterToGlyph(o.charCodeAt(m)),l.metadata.glyIdsUsed.push(c),l.metadata.toUnicode[c]=o.charCodeAt(m),f.indexOf(c)==-1&&(f.push(c),f.push([parseInt(l.metadata.widthOfGlyph(c),10)])),c=="0")return h.join("");c=c.toString(16),h.push(d[4-c.length],c)}return h.join("")},r=function(o){var l,c,f,d,h,m,y;for(h=`/CIDInit /ProcSet findresource begin 45612 dict begin 457begincmap 458/CIDSystemInfo << 459 /Registry (Adobe) 460 /Ordering (UCS) 461 /Supplement 0 462>> def 463/CMapName /Adobe-Identity-UCS def 464/CMapType 2 def 4651 begincodespacerange 466<0000><ffff> 467endcodespacerange`,f=[],m=0,y=(c=Object.keys(o).sort(function(g,N){return g-N})).length;m<y;m++)l=c[m],f.length>=100&&(h+=` 468`+f.length+` beginbfchar 469`+f.join(` 470`)+` 471endbfchar`,f=[]),o[l]!==void 0&&o[l]!==null&&typeof o[l].toString=="function"&&(d=("0000"+o[l].toString(16)).slice(-4),l=("0000"+(+l).toString(16)).slice(-4),f.push("<"+l+"><"+d+">"));return f.length&&(h+=` 472`+f.length+` beginbfchar 473`+f.join(` 474`)+` 475endbfchar 476`),h+`endcmap 477CMapName currentdict /CMap defineresource pop 478end 479end`};t.events.push(["putFont",function(o){(function(l){var c=l.font,f=l.out,d=l.newObject,h=l.putStream;if(c.metadata instanceof e.API.TTFFont&&c.encoding==="Identity-H"){for(var m=c.metadata.Unicode.widths,y=c.metadata.subset.encode(c.metadata.glyIdsUsed,1),g="",N=0;N<y.length;N++)g+=String.fromCharCode(y[N]);var w=d();h({data:g,addLength1:!0,objectId:w}),f("endobj");var E=d();h({data:r(c.metadata.toUnicode),addLength1:!0,objectId:E}),f("endobj");var _=d();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+Ef(c.fontName)),f("/FontFile2 "+w+" 0 R"),f("/FontBBox "+e.API.PDFObject.convert(c.metadata.bbox)),f("/Flags "+c.metadata.flags),f("/StemV "+c.metadata.stemV),f("/ItalicAngle "+c.metadata.italicAngle),f("/Ascent "+c.metadata.ascender),f("/Descent "+c.metadata.decender),f("/CapHeight "+c.metadata.capHeight),f(">>"),f("endobj");var z=d();f("<<"),f("/Type /Font"),f("/BaseFont /"+Ef(c.fontName)),f("/FontDescriptor "+_+" 0 R"),f("/W "+e.API.PDFObject.convert(m)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+c.encoding+")"),f(">>"),f(">>"),f("endobj"),c.objectNumber=d(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+E+" 0 R"),f("/BaseFont /"+Ef(c.fontName)),f("/Encoding /"+c.encoding),f("/DescendantFonts ["+z+" 0 R]"),f(">>"),f("endobj"),c.isAlreadyPutted=!0}})(o)}]),t.events.push(["putFont",function(o){(function(l){var c=l.font,f=l.out,d=l.newObject,h=l.putStream;if(c.metadata instanceof e.API.TTFFont&&c.encoding==="WinAnsiEncoding"){for(var m=c.metadata.rawData,y="",g=0;g<m.length;g++)y+=String.fromCharCode(m[g]);var N=d();h({data:y,addLength1:!0,objectId:N}),f("endobj");var w=d();h({data:r(c.metadata.toUnicode),addLength1:!0,objectId:w}),f("endobj");var E=d();f("<<"),f("/Descent "+c.metadata.decender),f("/CapHeight "+c.metadata.capHeight),f("/StemV "+c.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+N+" 0 R"),f("/Flags 96"),f("/FontBBox "+e.API.PDFObject.convert(c.metadata.bbox)),f("/FontName /"+Ef(c.fontName)),f("/ItalicAngle "+c.metadata.italicAngle),f("/Ascent "+c.metadata.ascender),f(">>"),f("endobj"),c.objectNumber=d();for(var _=0;_<c.metadata.hmtx.widths.length;_++)c.metadata.hmtx.widths[_]=parseInt(c.metadata.hmtx.widths[_]*(1e3/c.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+w+" 0 R/BaseFont/"+Ef(c.fontName)+"/FontDescriptor "+E+" 0 R/Encoding/"+c.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(c.metadata.hmtx.widths)+">>"),f("endobj"),c.isAlreadyPutted=!0}})(o)}]);var a=function(o){var l,c=o.text||"",f=o.x,d=o.y,h=o.options||{},m=o.mutex||{},y=m.pdfEscape,g=m.activeFontKey,N=m.fonts,w=g,E="",_=0,z="",H=N[w].encoding;if(N[w].encoding!=="Identity-H")return{text:c,x:f,y:d,options:h,mutex:m};for(z=c,w=g,Array.isArray(c)&&(z=c[0]),_=0;_<z.length;_+=1)N[w].metadata.hasOwnProperty("cmap")&&(l=N[w].metadata.cmap.unicode.codeMap[z[_].charCodeAt(0)]),l||z[_].charCodeAt(0)<256&&N[w].metadata.hasOwnProperty("Unicode")?E+=z[_]:E+="";var k="";return parseInt(w.slice(1))<14||H==="WinAnsiEncoding"?k=y(E,w).split("").map(function(K){return K.charCodeAt(0).toString(16)}).join(""):H==="Identity-H"&&(k=n(E,N[w])),m.isHex=!0,{text:k,x:f,y:d,options:h,mutex:m}};t.events.push(["postProcessText",function(o){var l=o.text||"",c=[],f={text:l,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(l)){var d=0;for(d=0;d<l.length;d+=1)Array.isArray(l[d])&&l[d].length===3?c.push([a(Object.assign({},f,{text:l[d][0]})).text,l[d][1],l[d][2]]):c.push(a(Object.assign({},f,{text:l[d]})).text);o.text=c}else o.text=a(Object.assign({},f,{text:l})).text}])})(Ot),(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}})(Ot.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var a,o,l,c,f,d,h,m=t,y=[[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]],g=[[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]],N={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},w={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},E=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","â¹","âº","â¹","â ","â","â ","â½","â¾","â½","â","â","â","â¤","â¥","â¤","â©","âª","â©","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","﹤","ï¹¥","﹤"],_=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)$/),z=!1,H=0;this.__bidiEngine__={};var k=function(j){var D=j.charCodeAt(),$=D>>8,W=w[$];return W!==void 0?m[256*W+(255&D)]:$===252||$===253?"AL":_.test($)?"L":$===8?"R":"N"},K=function(j){for(var D,$=0;$<j.length;$++){if((D=k(j.charAt($)))==="L")return!1;if(D==="R")return!0}return!1},U=function(j,D,$,W){var te,L,M,X,se=D[W];switch(se){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":z=!1;break;case"N":case"AN":break;case"EN":z&&(se="AN");break;case"AL":z=!0,se="R";break;case"WS":case"BN":se="N";break;case"CS":W<1||W+1>=D.length||(te=$[W-1])!=="EN"&&te!=="AN"||(L=D[W+1])!=="EN"&&L!=="AN"?se="N":z&&(L="AN"),se=L===te?L:"N";break;case"ES":se=(te=W>0?$[W-1]:"B")==="EN"&&W+1<D.length&&D[W+1]==="EN"?"EN":"N";break;case"ET":if(W>0&&$[W-1]==="EN"){se="EN";break}if(z){se="N";break}for(M=W+1,X=D.length;M<X&&D[M]==="ET";)M++;se=M<X&&D[M]==="EN"?"EN":"N";break;case"NSM":if(l&&!c){for(X=D.length,M=W+1;M<X&&D[M]==="NSM";)M++;if(M<X){var pe=j[W],ee=pe>=1425&&pe<=2303||pe===64286;if(te=D[M],ee&&(te==="R"||te==="AL")){se="R";break}}}se=W<1||(te=D[W-1])==="B"?"N":$[W-1];break;case"B":z=!1,a=!0,se=H;break;case"S":o=!0,se="N"}return se},G=function(j,D,$){var W=j.split("");return $&&O(W,$,{hiLevel:H}),W.reverse(),D&&D.reverse(),W.join("")},O=function(j,D,$){var W,te,L,M,X,se=-1,pe=j.length,ee=0,P=[],B=H?g:y,V=[];for(z=!1,a=!1,o=!1,te=0;te<pe;te++)V[te]=k(j[te]);for(L=0;L<pe;L++){if(X=ee,P[L]=U(j,V,P,L),W=240&(ee=B[X][N[P[L]]]),ee&=15,D[L]=M=B[ee][5],W>0)if(W===16){for(te=se;te<L;te++)D[te]=1;se=-1}else se=-1;if(B[ee][6])se===-1&&(se=L);else if(se>-1){for(te=se;te<L;te++)D[te]=M;se=-1}V[L]==="B"&&(D[L]=0),$.hiLevel|=M}o&&(function(Y,oe,le){for(var me=0;me<le;me++)if(Y[me]==="S"){oe[me]=H;for(var ge=me-1;ge>=0&&Y[ge]==="WS";ge--)oe[ge]=H}})(V,D,pe)},R=function(j,D,$,W,te){if(!(te.hiLevel<j)){if(j===1&&H===1&&!a)return D.reverse(),void($&&$.reverse());for(var L,M,X,se,pe=D.length,ee=0;ee<pe;){if(W[ee]>=j){for(X=ee+1;X<pe&&W[X]>=j;)X++;for(se=ee,M=X-1;se<M;se++,M--)L=D[se],D[se]=D[M],D[M]=L,$&&(L=$[se],$[se]=$[M],$[M]=L);ee=X}ee++}}},Q=function(j,D,$){var W=j.split(""),te={hiLevel:H};return $||($=[]),O(W,$,te),(function(L,M,X){if(X.hiLevel!==0&&h)for(var se,pe=0;pe<L.length;pe++)M[pe]===1&&(se=E.indexOf(L[pe]))>=0&&(L[pe]=E[se+1])})(W,$,te),R(2,W,D,$,te),R(1,W,D,$,te),W.join("")};return this.__bidiEngine__.doBidiReorder=function(j,D,$){if((function(te,L){if(L)for(var M=0;M<te.length;M++)L[M]=M;c===void 0&&(c=K(te)),d===void 0&&(d=K(te))})(j,D),l||!f||d)if(l&&f&&c^d)H=c?1:0,j=G(j,D,$);else if(!l&&f&&d)H=c?1:0,j=Q(j,D,$),j=G(j,D);else if(!l||c||f||d){if(l&&!f&&c^d)j=G(j,D),c?(H=0,j=Q(j,D,$)):(H=1,j=Q(j,D,$),j=G(j,D));else if(l&&c&&!f&&d)H=1,j=Q(j,D,$),j=G(j,D);else if(!l&&!f&&c^d){var W=h;c?(H=1,j=Q(j,D,$),H=0,h=!1,j=Q(j,D,$),h=W):(H=0,j=Q(j,D,$),j=G(j,D),H=1,h=!1,j=Q(j,D,$),h=W,j=G(j,D))}}else H=0,j=Q(j,D,$);else H=c?1:0,j=Q(j,D,$);return j},this.__bidiEngine__.setOptions=function(j){j&&(l=j.isInputVisual,f=j.isOutputVisual,c=j.isInputRtl,d=j.isOutputRtl,h=j.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 a=r.text;r.x,r.y;var o=r.options||{};r.mutex,o.lang;var l=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,n.setOptions(o),Object.prototype.toString.call(a)==="[object Array]"){var c=0;for(l=[],c=0;c<a.length;c+=1)Object.prototype.toString.call(a[c])==="[object Array]"?l.push([n.doBidiReorder(a[c][0]),a[c][1],a[c][2]]):l.push([n.doBidiReorder(a[c])]);r.text=l}else r.text=n.doBidiReorder(a);n.setOptions({isInputVisual:!0})}])})(Ot),Ot.API.TTFFont=(function(){function e(t){var n;if(this.rawData=t,n=this.contents=new oc(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new cF(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new $9(this.contents),this.head=new K9(this),this.name=new nF(this),this.cmap=new gN(this),this.toUnicode={},this.hhea=new Z9(this),this.maxp=new rF(this),this.hmtx=new sF(this),this.post=new eF(this),this.os2=new J9(this),this.loca=new lF(this),this.glyf=new aF(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,a,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var l,c,f,d;for(d=[],l=0,c=(f=this.bbox).length;l<c;l++)t=f[l],d.push(Math.round(t*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(r=255&(a=this.post.italic_angle),32768&(n=a>>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 a,o,l,c;for(l=0,o=0,c=(t=""+t).length;0<=c?o<c:o>c;o=0<=c?++o:--o)a=t.charCodeAt(o),l+=this.widthOfGlyph(this.characterToGlyph(a))+r*(1e3/n)||0;return l*(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,oc=(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,a;for(a=[],n=0,r=t.length;0<=r?n<r:n>r;n=0<=r?++n:--n)a.push(this.writeByte(t.charCodeAt(n)));return a},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,r,a,o,l,c,f;return t=this.readByte(),n=this.readByte(),r=this.readByte(),a=this.readByte(),o=this.readByte(),l=this.readByte(),c=this.readByte(),f=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^n)+1099511627776*(255^r)+4294967296*(255^a)+16777216*(255^o)+65536*(255^l)+256*(255^c)+(255^f)+1):72057594037927940*t+281474976710656*n+1099511627776*r+4294967296*a+16777216*o+65536*l+256*c+f},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,a,o;for(o=[],r=0,a=t.length;r<a;r++)n=t[r],o.push(this.writeByte(n));return o},e})(),$9=(function(){var e;function t(n){var r,a,o;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},a=0,o=this.tableCount;0<=o?a<o:a>o;a=0<=o?++a:--a)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,a,o,l,c,f,d,h,m,y,g,N,w;for(w in g=Object.keys(n).length,f=Math.log(2),m=16*Math.floor(Math.log(g)/f),l=Math.floor(m/f),h=16*g-m,(a=new oc).writeInt(this.scalarType),a.writeShort(g),a.writeShort(m),a.writeShort(l),a.writeShort(h),o=16*g,d=a.pos+o,c=null,N=[],n)for(y=n[w],a.writeString(w),a.writeInt(e(y)),a.writeInt(d),a.writeInt(y.length),N=N.concat(y),w==="head"&&(c=d),d+=y.length;d%4;)N.push(0),d++;return a.write(N),r=2981146554-e(a.data),a.pos=c+8,a.writeUInt32(r),a.data},e=function(n){var r,a,o,l;for(n=vN.call(n);n.length%4;)n.push(0);for(o=new oc(n),a=0,r=0,l=n.length;r<l;r=r+=4)a+=o.readUInt32();return 4294967295&a},t})(),X9={}.hasOwnProperty,Co=function(e,t){for(var n in t)X9.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 K9=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Co(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 oc).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})(),Mw=(function(){function e(t,n){var r,a,o,l,c,f,d,h,m,y,g,N,w,E,_,z,H;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),m=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(f=0;f<256;++f)this.codeMap[f]=t.readByte();break;case 4:for(g=t.readUInt16(),y=g/2,t.pos+=6,o=(function(){var k,K;for(K=[],f=k=0;0<=y?k<y:k>y;f=0<=y?++k:--k)K.push(t.readUInt16());return K})(),t.pos+=2,w=(function(){var k,K;for(K=[],f=k=0;0<=y?k<y:k>y;f=0<=y?++k:--k)K.push(t.readUInt16());return K})(),d=(function(){var k,K;for(K=[],f=k=0;0<=y?k<y:k>y;f=0<=y?++k:--k)K.push(t.readUInt16());return K})(),h=(function(){var k,K;for(K=[],f=k=0;0<=y?k<y:k>y;f=0<=y?++k:--k)K.push(t.readUInt16());return K})(),a=(this.length-t.pos+this.offset)/2,c=(function(){var k,K;for(K=[],f=k=0;0<=a?k<a:k>a;f=0<=a?++k:--k)K.push(t.readUInt16());return K})(),f=_=0,H=o.length;_<H;f=++_)for(E=o[f],r=z=N=w[f];N<=E?z<=E:z>=E;r=N<=E?++z:--z)h[f]===0?l=r+d[f]:(l=c[h[f]/2+(r-N)-(y-f)]||0)!==0&&(l+=d[f]),this.codeMap[r]=65535&l}t.pos=m}return e.encode=function(t,n){var r,a,o,l,c,f,d,h,m,y,g,N,w,E,_,z,H,k,K,U,G,O,R,Q,j,D,$,W,te,L,M,X,se,pe,ee,P,B,V,Y,oe,le,me,ge,Ae,Oe,Fe;switch(W=new oc,l=Object.keys(t).sort(function(Qe,Je){return Qe-Je}),n){case"macroman":for(w=0,E=(function(){var Qe=[];for(N=0;N<256;++N)Qe.push(0);return Qe})(),z={0:0},o={},te=0,se=l.length;te<se;te++)z[ge=t[a=l[te]]]==null&&(z[ge]=++w),o[a]={old:t[a],new:z[t[a]]},E[a]=z[t[a]];return W.writeUInt16(1),W.writeUInt16(0),W.writeUInt32(12),W.writeUInt16(0),W.writeUInt16(262),W.writeUInt16(0),W.write(E),{charMap:o,subtable:W.data,maxGlyphID:w+1};case"unicode":for(D=[],m=[],H=0,z={},r={},_=d=null,L=0,pe=l.length;L<pe;L++)z[K=t[a=l[L]]]==null&&(z[K]=++H),r[a]={old:K,new:z[K]},c=z[K]-a,_!=null&&c===d||(_&&m.push(_),D.push(a),d=c),_=a;for(_&&m.push(_),m.push(65535),D.push(65535),Q=2*(R=D.length),O=2*Math.pow(Math.log(R)/Math.LN2,2),y=Math.log(O/2)/Math.LN2,G=2*R-O,f=[],U=[],g=[],N=M=0,ee=D.length;M<ee;N=++M){if(j=D[N],h=m[N],j===65535){f.push(0),U.push(0);break}if(j-($=r[j].new)>=32768)for(f.push(0),U.push(2*(g.length+R-N)),a=X=j;j<=h?X<=h:X>=h;a=j<=h?++X:--X)g.push(r[a].new);else f.push($-j),U.push(0)}for(W.writeUInt16(3),W.writeUInt16(1),W.writeUInt32(12),W.writeUInt16(4),W.writeUInt16(16+8*R+2*g.length),W.writeUInt16(0),W.writeUInt16(Q),W.writeUInt16(O),W.writeUInt16(y),W.writeUInt16(G),le=0,P=m.length;le<P;le++)a=m[le],W.writeUInt16(a);for(W.writeUInt16(0),me=0,B=D.length;me<B;me++)a=D[me],W.writeUInt16(a);for(Ae=0,V=f.length;Ae<V;Ae++)c=f[Ae],W.writeUInt16(c);for(Oe=0,Y=U.length;Oe<Y;Oe++)k=U[Oe],W.writeUInt16(k);for(Fe=0,oe=g.length;Fe<oe;Fe++)w=g[Fe],W.writeUInt16(w);return{charMap:r,subtable:W.data,maxGlyphID:H+1}}},e})(),gN=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Co(e,Gi),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,r,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=a?r<a:r>a;r=0<=a?++r:--r)n=new Mw(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var r,a;return n==null&&(n="macroman"),r=Mw.encode(t,n),(a=new oc).writeUInt16(0),a.writeUInt16(1),r.table=a.data.concat(r.subtable),r},e})(),Z9=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Co(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})(),J9=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Co(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})(),eF=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Co(e,Gi),e.prototype.tag="post",e.prototype.parse=function(t){var n,r,a;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=[],a=[];t.pos<this.offset+this.length;)n=t.readByte(),a.push(this.names.push(t.readString(n)));return a;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var l,c,f;for(f=[],o=l=0,c=this.file.maxp.numGlyphs;0<=c?l<c:l>c;o=0<=c?++l:--l)f.push(t.readUInt32());return f}).call(this)}},e})(),tF=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},nF=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Co(e,Gi),e.prototype.tag="name",e.prototype.parse=function(t){var n,r,a,o,l,c,f,d,h,m,y;for(t.pos=this.offset,t.readShort(),n=t.readShort(),c=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+c+t.readShort()});for(f={},o=h=0,m=r.length;h<m;o=++h)a=r[o],t.pos=a.offset,d=t.readString(a.length),l=new tF(d,a),f[y=a.nameID]==null&&(f[y]=[]),f[a.nameID].push(l);this.strings=f,this.copyright=f[0],this.fontFamily=f[1],this.fontSubfam
479ily=f[2],this.uniqueSubfamily=f[3],this.fontName=f[4],this.version=f[5];try{this.postscriptName=f[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=f[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=f[7],this.manufacturer=f[8],this.designer=f[9],this.description=f[10],this.vendorUrl=f[11],this.designerUrl=f[12],this.license=f[13],this.licenseUrl=f[14],this.preferredFamily=f[15],this.preferredSubfamily=f[17],this.compatibleFull=f[18],this.sampleText=f[19]},e})(),rF=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Co(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})(),sF=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Co(e,Gi),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,r,a,o,l,c,f;for(t.pos=this.offset,this.metrics=[],n=0,c=this.file.hhea.numberOfMetrics;0<=c?n<c:n>c;n=0<=c?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var d,h;for(h=[],n=d=0;0<=a?d<a:d>a;n=0<=a?++d:--d)h.push(t.readInt16());return h})(),this.widths=(function(){var d,h,m,y;for(y=[],d=0,h=(m=this.metrics).length;d<h;d++)o=m[d],y.push(o.advance);return y}).call(this),r=this.widths[this.widths.length-1],f=[],n=l=0;0<=a?l<a:l>a;n=0<=a?++l:--l)f.push(this.widths.push(r));return f},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})(),vN=[].slice,aF=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Co(e,Gi),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,r,a,o,l,c,f,d,h,m;return t in this.cache?this.cache[t]:(o=this.file.loca,n=this.file.contents,r=o.indexOf(t),(a=o.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+r,l=(c=new oc(n.read(a))).readShort(),d=c.readShort(),m=c.readShort(),f=c.readShort(),h=c.readShort(),this.cache[t]=l===-1?new oF(c,d,m,f,h):new iF(c,l,d,m,f,h),this.cache[t]))},e.prototype.encode=function(t,n,r){var a,o,l,c,f;for(l=[],o=[],c=0,f=n.length;c<f;c++)a=t[n[c]],o.push(l.length),a&&(l=l.concat(a.encode(r)));return o.push(l.length),{table:l,offsets:o}},e})(),iF=(function(){function e(t,n,r,a,o,l){this.raw=t,this.numberOfContours=n,this.xMin=r,this.yMin=a,this.xMax=o,this.yMax=l,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),oF=(function(){function e(t,n,r,a,o){var l,c;for(this.raw=t,this.xMin=n,this.yMin=r,this.xMax=a,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],l=this.raw;c=l.readShort(),this.glyphOffsets.push(l.pos),this.glyphIDs.push(l.readUInt16()),32&c;)l.pos+=1&c?4:2,128&c?l.pos+=8:64&c?l.pos+=4:8&c&&(l.pos+=2)}return e.prototype.encode=function(){var t,n,r;for(n=new oc(vN.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)n.pos=this.glyphOffsets[t];return n.data},e})(),lF=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Co(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 a,o;for(o=[],r=0,a=this.length;r<a;r+=2)o.push(2*t.readUInt16());return o}).call(this):(function(){var a,o;for(o=[],r=0,a=this.length;r<a;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]}
479,e.prototype.encode=function(t,n){for(var r=new Uint32Array(this.offsets.length),a=0,o=0,l=0;l<r.length;++l)if(r[l]=a,o<n.length&&n[o]==l){++o,r[l]=a;var c=this.offsets[l],f=this.offsets[l+1]-c;f>0&&(a+=f)}for(var d=new Array(4*r.length),h=0;h<r.length;++h)d[4*h+3]=255&r[h],d[4*h+2]=(65280&r[h])>>8,d[4*h+1]=(16711680&r[h])>>16,d[4*h]=(4278190080&r[h])>>24;return d},e})(),cF=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,r,a,o;for(n in a=this.font.cmap.tables[0].codeMap,t={},o=this.subset)r=o[n],t[n]=a[r];return t},e.prototype.glyphsFor=function(t){var n,r,a,o,l,c,f;for(a={},l=0,c=t.length;l<c;l++)a[o=t[l]]=this.font.glyf.glyphFor(o);for(o in n=[],a)(r=a[o])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(o in f=this.glyphsFor(n))r=f[o],a[o]=r;return a},e.prototype.encode=function(t,n){var r,a,o,l,c,f,d,h,m,y,g,N,w,E,_;for(a in r=gN.encode(this.generateCmap(),"unicode"),l=this.glyphsFor(t),g={0:0},_=r.charMap)g[(f=_[a]).old]=f.new;for(N in y=r.maxGlyphID,l)N in g||(g[N]=y++);return h=(function(z){var H,k;for(H in k={},z)k[z[H]]=H;return k})(g),m=Object.keys(h).sort(function(z,H){return z-H}),w=(function(){var z,H,k;for(k=[],z=0,H=m.length;z<H;z++)c=m[z],k.push(h[c]);return k})(),o=this.font.glyf.encode(l,w,g),d=this.font.loca.encode(o.offsets,w),E={cmap:this.font.cmap.raw(),glyf:o.table,loca:d,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&&(E["OS/2"]=this.font.os2.raw()),this.font.directory.encode(E)},e})();Ot.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,a,o,l;if(Array.isArray(n))return"["+(function(){var c,f,d;for(d=[],c=0,f=n.length;c<f;c++)r=n[c],d.push(t.convert(r));return d})().join(" ")+"]";if(typeof n=="string")return"/"+n;if(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(a in o=["<<"],n)l=n[a],o.push("/"+a+" "+t.convert(l));return o.push(">>"),o.join(` 480`)}return""+n},t})();function yN(e,t,n,r,a){r=r||{};var o=1.15,l=a.internal.scaleFactor,c=a.internal.getFontSize()/l,f=a.getLineHeightFactor?a.getLineHeightFactor():o,d=c*f,h=/\r\n|\r|\n/g,m="",y=1;if((r.valign==="middle"||r.valign==="bottom"||r.halign==="center"||r.halign==="right")&&(m=typeof e=="string"?e.split(h):e,y=m.length||1),n+=c*(2-o),r.valign==="middle"?n-=y/2*d:r.valign==="bottom"&&(n-=y*d),r.halign==="center"||r.halign==="right"){var g=c;if(r.halign==="center"&&(g*=.5),m&&y>=1){for(var N=0;N<m.length;N++)a.text(m[N],t-a.getStringUnitWidth(m[N])*g,n),n+=d;return a}t-=a.getStringUnitWidth(e)*g}return r.halign==="justify"?a.text(e,t,n,{maxWidth:r.maxWidth||100,align:"justify"}):a.text(e,t,n),a}var kw={},Uf=(function(){function e(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName,lineWidth:t.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:t.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return e.setDefaults=function(t,n){n===void 0&&(n=null),n?n.__autoTableDocumentDefaults=t:kw=t},e.unifyColor=function(t){return Array.isArray(t)?t:typeof t=="number"?[t,t,t]:typeof t=="string"?[t]:null},e.prototype.applyStyles=function(t,n){var r,a,o;n===void 0&&(n=!1),t.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(t.fontStyle);var l=this.jsPDFDocument.internal.getFont(),c=l.fontStyle,f=l.fontName;if(t.font&&(f=t.font),t.fontStyle){c=t.fontStyle;var d=this.getFontList()[f];d&&d.indexOf(c)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(d[0]),c=d[0])}if(this.jsPDFDocument.setFont(f,c),t.fontSize&&this.jsPDFDocument.setFontSize(t.fontSize),!n){var h=e.unifyColor(t.fillColor);h&&(r=this.jsPDFDocument).setFillColor.apply(r,h),h=e.unifyColor(t.textColor),h&&(a=this.jsPDFDocument).setTextColor.apply(a,h),h=e.unifyColor(t.lineColor),h&&(o=this.jsPDFDocument).setDrawColor.apply(o,h),typeof t.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(t.lineWidth)}},e.prototype.splitTextToSize=function(t,n,r){return this.jsPDFDocument.splitTextToSize(t,n,r)},e.prototype.rect=function(t,n,r,a,o){return this.jsPDFDocument.rect(t,n,r,a,o)},e.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},e.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},e.prototype.getDocument=function(){return this.jsPDFDocument},e.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},e.prototype.addPage=function(){return this.jsPDFDocument.addPage()},e.prototype.getFontList=function(){return this.jsPDFDocument.getFontList(
480)},e.prototype.getGlobalOptions=function(){return kw||{}},e.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},e.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return t.width==null&&(t={width:t.getWidth(),height:t.getHeight()}),t},e.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},e.prototype.getLineHeightFactor=function(){var t=this.jsPDFDocument;return t.getLineHeightFactor?t.getLineHeightFactor():1.15},e.prototype.getLineHeight=function(t){return t/this.scaleFactor()*this.getLineHeightFactor()},e.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},e})(),Lv=function(e,t){return Lv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Lv(e,t)};function bN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var xN=(function(e){bN(t,e);function t(n){var r=e.call(this)||this;return r._element=n,r}return t})(Array);function uF(e){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/e,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function fF(e){var t={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return t[e]}function Em(e,t,n){n.applyStyles(t,!0);var r=Array.isArray(e)?e:[e],a=r.map(function(o){return n.getTextWidth(o)}).reduce(function(o,l){return Math.max(o,l)},0);return a}function wN(e,t,n,r){var a=t.settings.tableLineWidth,o=t.settings.tableLineColor;e.applyStyles({lineWidth:a,lineColor:o});var l=SN(a,!1);l&&e.rect(n.x,n.y,t.getWidth(e.pageSize().width),r.y-n.y,l)}function SN(e,t){var n=e>0,r=t||t===0;return n&&r?"DF":n?"S":r?"F":null}function hg(e,t){var n,r,a,o;if(e=e||t,Array.isArray(e)){if(e.length>=4)return{top:e[0],right:e[1],bottom:e[2],left:e[3]};if(e.length===3)return{top:e[0],right:e[1],bottom:e[2],left:e[1]};if(e.length===2)return{top:e[0],right:e[1],bottom:e[0],left:e[1]};e.length===1?e=e[0]:e=t}return typeof e=="object"?(typeof e.vertical=="number"&&(e.top=e.vertical,e.bottom=e.vertical),typeof e.horizontal=="number"&&(e.right=e.horizontal,e.left=e.horizontal),{left:(n=e.left)!==null&&n!==void 0?n:t,top:(r=e.top)!==null&&r!==void 0?r:t,right:(a=e.right)!==null&&a!==void 0?a:t,bottom:(o=e.bottom)!==null&&o!==void 0?o:t}):(typeof e!="number"&&(e=t),{top:e,right:e,bottom:e,left:e})}function AN(e,t){var n=hg(t.settings.margin,0);return e.pageSize().width-(n.left+n.right)}function dF(e,t,n,r,a){var o={},l=1.3333333333333333,c=C1(t,function(H){return a.getComputedStyle(H).backgroundColor});c!=null&&(o.fillColor=c);var f=C1(t,function(H){return a.getComputedStyle(H).color});f!=null&&(o.textColor=f);var d=pF(r,n);d&&(o.cellPadding=d);var h="borderTopColor",m=l*n,y=r.borderTopWidth;if(r.borderBottomWidth===y&&r.borderRightWidth===y&&r.borderLeftWidth===y){var g=(parseFloat(y)||0)/m;g&&(o.lineWidth=g)}else o.lineWidth={top:(parseFloat(r.borderTopWidth)||0)/m,right:(parseFloat(r.borderRightWidth)||0)/m,bottom:(parseFloat(r.borderBottomWidth)||0)/m,left:(parseFloat(r.borderLeftWidth)||0)/m},o.lineWidth.top||(o.lineWidth.right?h="borderRightColor":o.lineWidth.bottom?h="borderBottomColor":o.lineWidth.left&&(h="borderLeftColor"));var N=C1(t,function(H){return a.getComputedStyle(H)[h]});N!=null&&(o.lineColor=N);var w=["left","right","center","justify"];w.indexOf(r.textAlign)!==-1&&(o.halign=r.textAlign),w=["middle","bottom","top"],w.indexOf(r.verticalAlign)!==-1&&(o.valign=r.verticalAlign);var E=parseInt(r.fontSize||"");isNaN(E)||(o.fontSize=E/l);var _=hF(r);_&&(o.fontStyle=_);var z=(r.fontFamily||"").toLowerCase();return e.indexOf(z)!==-1&&(o.font=z),o}function hF(e){var t="";return(e.fontWeight==="bold"||e.fontWeight==="bolder"||parseInt(e.fontWeight)>=700)&&(t="bold"),(e.fontStyle==="italic"||e.fontStyle==="oblique")&&(t+="italic"),t}function C1(e,t){var n=NN(e,t);if(!n)return null;var r=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!r||!Array.isArray(r))return null;var a=[parseInt(r[1]),parseInt(r[2]),parseInt(r[3])],o=parseInt(r[4]);return o===0||isNaN(a[0])||isNaN(a[1])||isNaN(a[2])?null:a}function NN(e,t){var n=t(e);return n==="rgba(0, 0, 0, 0)"||n==="transparent"||n==="initial"||n==="inherit"?e.parentElement==null?null:NN(e.parentElement,t):n}function pF(e,t){var n=[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft],r=96/(72/t),a=(parseInt(e.lineHeight)-parseInt(e.fontSize))/t/2,o=n.map(function(c){return parseInt(c||"0")/r}),l=hg(o,0);return a>l.top&&(l.top=a),a>l.bottom&&(l.bottom=a),l}function _N(e,t,n,r,a){var o,l;r===void 0&&(r=!1),a===void 0&&(a=!1);var c;typeof t=="string"?c=n.document.querySelector(t):c=t;
480var f=Object.keys(e.getFontList()),d=e.scaleFactor(),h=[],m=[],y=[];if(!c)return console.error("Html table could not be found with input: ",t),{head:h,body:m,foot:y};for(var g=0;g<c.rows.length;g++){var N=c.rows[g],w=(l=(o=N?.parentElement)===null||o===void 0?void 0:o.tagName)===null||l===void 0?void 0:l.toLowerCase(),E=mF(f,d,n,N,r,a);E&&(w==="thead"?h.push(E):w==="tfoot"?y.push(E):m.push(E))}return{head:h,body:m,foot:y}}function mF(e,t,n,r,a,o){for(var l=new xN(r),c=0;c<r.cells.length;c++){var f=r.cells[c],d=n.getComputedStyle(f);if(a||d.display!=="none"){var h=void 0;o&&(h=dF(e,f,t,d,n)),l.push({rowSpan:f.rowSpan,colSpan:f.colSpan,styles:h,_element:f,content:gF(f)})}}var m=n.getComputedStyle(r);if(l.length>0&&(a||m.display!=="none"))return l}function gF(e){var t=e.cloneNode(!0);return t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/ +/g," "),t.innerHTML=t.innerHTML.split(/<br.*?>/).map(function(n){return n.trim()}).join(` 481`),t.innerText||t.textContent||""}function vF(e,t,n){for(var r=0,a=[e,t,n];r<a.length;r++){var o=a[r];o&&typeof o!="object"&&console.error("The options parameter should be of type object, is: "+typeof o),o.startY&&typeof o.startY!="number"&&(console.error("Invalid value for startY option",o.startY),delete o.startY)}}function ol(e,t,n,r,a){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),l=1;l<arguments.length;l++){var c=arguments[l];if(c!=null)for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(o[f]=c[f])}return o}function CN(e,t){var n=new Uf(e),r=n.getDocumentOptions(),a=n.getGlobalOptions();vF(a,r,t);var o=ol({},a,r,t),l;typeof window<"u"&&(l=window);var c=yF(a,r,t),f=bF(a,r,t),d=xF(n,o),h=SF(n,o,l);return{id:t.tableId,content:h,hooks:f,styles:c,settings:d}}function yF(e,t,n){for(var r={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},a=function(f){if(f==="columnStyles"){var d=e[f],h=t[f],m=n[f];r.columnStyles=ol({},d,h,m)}else{var y=[e,t,n],g=y.map(function(N){return N[f]||{}});r[f]=ol({},g[0],g[1],g[2])}},o=0,l=Object.keys(r);o<l.length;o++){var c=l[o];a(c)}return r}function bF(e,t,n){for(var r=[e,t,n],a={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},o=0,l=r;o<l.length;o++){var c=l[o];c.didParseCell&&a.didParseCell.push(c.didParseCell),c.willDrawCell&&a.willDrawCell.push(c.willDrawCell),c.didDrawCell&&a.didDrawCell.push(c.didDrawCell),c.willDrawPage&&a.willDrawPage.push(c.willDrawPage),c.didDrawPage&&a.didDrawPage.push(c.didDrawPage)}return a}function xF(e,t){var n,r,a,o,l,c,f,d,h,m,y,g,N=hg(t.margin,40/e.scaleFactor()),w=(n=wF(e,t.startY))!==null&&n!==void 0?n:N.top,E;t.showFoot===!0?E="everyPage":t.showFoot===!1?E="never":E=(r=t.showFoot)!==null&&r!==void 0?r:"everyPage";var _;t.showHead===!0?_="everyPage":t.showHead===!1?_="never":_=(a=t.showHead)!==null&&a!==void 0?a:"everyPage";var z=(o=t.useCss)!==null&&o!==void 0?o:!1,H=t.theme||(z?"plain":"striped"),k=!!t.horizontalPageBreak,K=(l=t.horizontalPageBreakRepeat)!==null&&l!==void 0?l:null;return{includeHiddenHtml:(c=t.includeHiddenHtml)!==null&&c!==void 0?c:!1,useCss:z,theme:H,startY:w,margin:N,pageBreak:(f=t.pageBreak)!==null&&f!==void 0?f:"auto",rowPageBreak:(d=t.rowPageBreak)!==null&&d!==void 0?d:"auto",tableWidth:(h=t.tableWidth)!==null&&h!==void 0?h:"auto",showHead:_,showFoot:E,tableLineWidth:(m=t.tableLineWidth)!==null&&m!==void 0?m:0,tableLineColor:(y=t.tableLineColor)!==null&&y!==void 0?y:200,horizontalPageBreak:k,horizontalPageBreakRepeat:K,horizontalPageBreakBehaviour:(g=t.horizontalPageBreakBehaviour)!==null&&g!==void 0?g:"afterAllRows"}}function wF(e,t){var n=e.getLastAutoTable(),r=e.scaleFactor(),a=e.pageNumber(),o=!1;if(n&&n.startPageNumber){var l=n.startPageNumber+n.pageNumber-1;o=l===a}return typeof t=="number"?t:(t==null||t===!1)&&o&&n?.finalY!=null?n.finalY+20/r:null}function SF(e,t,n){var r=t.head||[],a=t.body||[],o=t.foot||[];if(t.html){var l=t.includeHiddenHtml;if(n){var c=_N(e,t.html,n,l,t.useCss)||{};r=c.head||r,a=c.body||r,o=c.foot||r}else console.error("Cannot parse html in non browser environment")}var f=t.columns||AF(r,a,o);return{columns:f,head:r,body:a,foot:o}}function AF(e,t,n){var r=e[0]||t[0]||n[0]||[],a=[];return Object.keys(r).filter(function(o){return o!=="_element"}
481).forEach(function(o){var l=1,c;Array.isArray(r)?c=r[parseInt(o)]:c=r[o],typeof c=="object"&&!Array.isArray(c)&&(l=c?.colSpan||1);for(var f=0;f<l;f++){var d=void 0;Array.isArray(r)?d=a.length:d=o+(f>0?"_".concat(f):"");var h={dataKey:d};a.push(h)}}),a}var Rv=(function(){function e(t,n,r){this.table=n,this.pageNumber=n.pageNumber,this.settings=n.settings,this.cursor=r,this.doc=t.getDocument()}return e})(),NF=(function(e){bN(t,e);function t(n,r,a,o,l,c){var f=e.call(this,n,r,c)||this;return f.cell=a,f.row=o,f.column=l,f.section=o.section,f}return t})(Rv),_F=(function(){function e(t,n){this.pageNumber=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=n.columns,this.head=n.head,this.body=n.body,this.foot=n.foot}return e.prototype.getHeadHeight=function(t){return this.head.reduce(function(n,r){return n+r.getMaxCellHeight(t)},0)},e.prototype.getFootHeight=function(t){return this.foot.reduce(function(n,r){return n+r.getMaxCellHeight(t)},0)},e.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},e.prototype.callCellHooks=function(t,n,r,a,o,l){for(var c=0,f=n;c<f.length;c++){var d=f[c],h=new NF(t,this,r,a,o,l),m=d(h)===!1;if(r.text=Array.isArray(r.text)?r.text:[r.text],m)return!1}return!0},e.prototype.callEndPageHooks=function(t,n){t.applyStyles(t.userStyles);for(var r=0,a=this.hooks.didDrawPage;r<a.length;r++){var o=a[r];o(new Rv(t,this,n))}},e.prototype.callWillDrawPageHooks=function(t,n){for(var r=0,a=this.hooks.willDrawPage;r<a.length;r++){var o=a[r];o(new Rv(t,this,n))}},e.prototype.getWidth=function(t){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var n=this.columns.reduce(function(a,o){return a+o.wrappedWidth},0);return n}else{var r=this.settings.margin;return t-r.left-r.right}},e})(),EN=(function(){function e(t,n,r,a,o){o===void 0&&(o=!1),this.height=0,this.raw=t,t instanceof xN&&(this.raw=t._element,this.element=t._element),this.index=n,this.section=r,this.cells=a,this.spansMultiplePages=o}return e.prototype.getMaxCellHeight=function(t){var n=this;return t.reduce(function(r,a){var o;return Math.max(r,((o=n.cells[a.index])===null||o===void 0?void 0:o.height)||0)},0)},e.prototype.hasRowSpan=function(t){var n=this;return t.filter(function(r){var a=n.cells[r.index];return a?a.rowSpan>1:!1}).length>0},e.prototype.canEntireRowFit=function(t,n){return this.getMaxCellHeight(n)<=t},e.prototype.getMinimumRowHeight=function(t,n){var r=this;return t.reduce(function(a,o){var l=r.cells[o.index];if(!l)return 0;var c=n.getLineHeight(l.styles.fontSize),f=l.padding("vertical"),d=f+c;return d>a?d:a},0)},e})(),PN=(function(){function e(t,n,r){var a;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=n,this.section=r,this.raw=t;var o=t;t!=null&&typeof t=="object"&&!Array.isArray(t)?(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,o=(a=t.content)!==null&&a!==void 0?a:t,t._element&&(this.raw=t._element)):(this.rowSpan=1,this.colSpan=1);var l=o!=null?""+o:"",c=/\r\n|\r|\n/g;this.text=l.split(c)}return e.prototype.getTextPos=function(){var t;if(this.styles.valign==="top")t=this.y+this.padding("top");else if(this.styles.valign==="bottom")t=this.y+this.height-this.padding("bottom");else{var n=this.height-this.padding("vertical");t=this.y+n/2+this.padding("top")}var r;if(this.styles.halign==="right")r=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var a=this.width-this.padding("horizontal");r=this.x+a/2+this.padding("left")}else r=this.x+this.padding("left");return{x:r,y:t}},e.prototype.getContentHeight=function(t,n){n===void 0&&(n=1.15);var r=Array.isArray(this.text)?this.text.length:1,a=this.styles.fontSize/t*n,o=r*a+this.padding("vertical");return Math.max(o,this.styles.minCellHeight)},e.prototype.padding=function(t){var n=hg(this.styles.cellPadding,0);return t==="vertical"?n.top+n.bottom:t==="horizontal"?n.left+n.right:n[t]},e})(),CF=(function(){function e(t,n,r){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=n,this.index=r}return e.prototype.getMaxCustomCellWidth=function(t){for(var n=0,r=0,a=t.allRows();r<a.length;r++){var o=a[r],l=o.cells[this.index];l&&typeof l.styles.cellWidth=="number"&&(n=Math.max(n,l.styles.cellWidth))}return n},e})();function EF(e,t){PF(e,t);var n=[],r=0;t.columns.forEach(function(o){var l=o.getMaxCustomCellWidth(t);l?o.width=l:(o.width=o.wrappedWidth,n.push(o)),r+=o.width});var a=t.getWidth(e.pageSize().width)-r;a&&(a=Dv(n,a,function(o){return Math.max(o.minReadableWidth,o.minWidth)})),a&&(a=Dv(n,a,function(o){return o.minWidth})),a=Math.abs(a),!t.settings.horizontalPageBreak&&a>.1/e.scaleFactor()&&(a=a<1?a:Math.round(a),console.warn("Of the table content, ".concat(a," units width could not fit page"))),jF(t),OF(t,e),TF(t)}function PF(e,t){var n=e.scaleFactor(),r=t.settings.horizontalPageBreak,a=AN(e,t);
481t.allRows().forEach(function(o){for(var l=0,c=t.columns;l<c.length;l++){var f=c[l],d=o.cells[f.index];if(d){var h=t.hooks.didParseCell;t.callCellHooks(e,h,d,o,f,null);var m=d.padding("horizontal");d.contentWidth=Em(d.text,d.styles,e)+m;var y=Em(d.text.join(" ").split(/[^\S\u00A0]+/),d.styles,e);if(d.minReadableWidth=y+d.padding("horizontal"),typeof d.styles.cellWidth=="number")d.minWidth=d.styles.cellWidth,d.wrappedWidth=d.styles.cellWidth;else if(d.styles.cellWidth==="wrap"||r===!0)d.contentWidth>a?(d.minWidth=a,d.wrappedWidth=a):(d.minWidth=d.contentWidth,d.wrappedWidth=d.contentWidth);else{var g=10/n;d.minWidth=d.styles.minCellWidth||g,d.wrappedWidth=d.contentWidth,d.minWidth>d.wrappedWidth&&(d.wrappedWidth=d.minWidth)}}}}),t.allRows().forEach(function(o){for(var l=0,c=t.columns;l<c.length;l++){var f=c[l],d=o.cells[f.index];if(d&&d.colSpan===1)f.wrappedWidth=Math.max(f.wrappedWidth,d.wrappedWidth),f.minWidth=Math.max(f.minWidth,d.minWidth),f.minReadableWidth=Math.max(f.minReadableWidth,d.minReadableWidth);else{var h=t.styles.columnStyles[f.dataKey]||t.styles.columnStyles[f.index]||{},m=h.cellWidth||h.minCellWidth;m&&typeof m=="number"&&(f.minWidth=m,f.wrappedWidth=m)}d&&(d.colSpan>1&&!f.minWidth&&(f.minWidth=d.minWidth),d.colSpan>1&&!f.wrappedWidth&&(f.wrappedWidth=d.minWidth))}})}function Dv(e,t,n){for(var r=t,a=e.reduce(function(g,N){return g+N.wrappedWidth},0),o=0;o<e.length;o++){var l=e[o],c=l.wrappedWidth/a,f=r*c,d=l.width+f,h=n(l),m=d<h?h:d;t-=m-l.width,l.width=m}if(t=Math.round(t*1e10)/1e10,t){var y=e.filter(function(g){return t<0?g.width>n(g):!0});y.length&&(t=Dv(y,t,n))}return t}function TF(e){for(var t={},n=1,r=e.allRows(),a=0;a<r.length;a++)for(var o=r[a],l=0,c=e.columns;l<c.length;l++){var f=c[l],d=t[f.index];if(n>1)n--,delete o.cells[f.index];else if(d)d.cell.height+=o.height,n=d.cell.colSpan,delete o.cells[f.index],d.left--,d.left<=1&&delete t[f.index];else{var h=o.cells[f.index];if(!h)continue;if(h.height=o.height,h.rowSpan>1){var m=r.length-a,y=h.rowSpan>m?m:h.rowSpan;t[f.index]={cell:h,left:y,row:o}}}}}function jF(e){for(var t=e.allRows(),n=0;n<t.length;n++)for(var r=t[n],a=null,o=0,l=0,c=0;c<e.columns.length;c++){var f=e.columns[c];if(l-=1,l>1&&e.columns[c+1])o+=f.width,delete r.cells[f.index];else if(a){var d=a;delete r.cells[f.index],a=null,d.width=f.width+o}else{var d=r.cells[f.index];if(!d)continue;if(l=d.colSpan,o=0,d.colSpan>1){a=d,o+=f.width;continue}d.width=f.width+o}}}function OF(e,t){for(var n={count:0,height:0},r=0,a=e.allRows();r<a.length;r++){for(var o=a[r],l=0,c=e.columns;l<c.length;l++){var f=c[l],d=o.cells[f.index];if(d){t.applyStyles(d.styles,!0);var h=d.width-d.padding("horizontal");if(d.styles.overflow==="linebreak")d.text=t.splitTextToSize(d.text,h+1/t.scaleFactor(),{fontSize:d.styles.fontSize});else if(d.styles.overflow==="ellipsize")d.text=Fw(d.text,h,d.styles,t,"...");else if(d.styles.overflow==="hidden")d.text=Fw(d.text,h,d.styles,t,"");else if(typeof d.styles.overflow=="function"){var m=d.styles.overflow(d.text,h);typeof m=="string"?d.text=[m]:d.text=m}d.contentHeight=d.getContentHeight(t.scaleFactor(),t.getLineHeightFactor());var y=d.contentHeight/d.rowSpan;d.rowSpan>1&&n.count*n.height<y*d.rowSpan?n={height:y,count:d.rowSpan}:n&&n.count>0&&n.height>y&&(y=n.height),y>o.height&&(o.height=y)}}n.count--}}function Fw(e,t,n,r,a){return e.map(function(o){return LF(o,t,n,r,a)})}function LF(e,t,n,r,a){var o=1e4*r.scaleFactor();if(t=Math.ceil(t*o)/o,t>=Em(e,n,r))return e;for(;t<Em(e+a,n,r)&&!(e.length<=1);)e=e.substring(0,e.length-1);return e.trim()+a}function TN(e,t){var n=new Uf(e),r=RF(t,n.scaleFactor()),a=new _F(t,r);return EF(n,a),n.applyStyles(n.userStyles),a}function RF(e,t){var n=e.content,r=MF(n.columns);if(n.head.length===0){var a=Iw(r,"head");a&&n.head.push(a)}if(n.foot.length===0){var a=Iw(r,"foot");a&&n.foot.push(a)}var o=e.settings.theme,l=e.styles;return{columns:r,head:E1("head",n.head,r,l,o,t),body:E1("body",n.body,r,l,o,t),foot:E1("foot",n.foot,r,l,o,t)}}function E1(e,t,n,r,a,o){var l={},c=t.map(function(f,d){for(var h=0,m={},y=0,g=0,N=0,w=n;N<w.length;N++){var E=w[N];if(l[E.index]==null||l[E.index].left===0)if(g===0){var _=void 0;Array.isArray(f)?_=f[E.index-y-h]:_=f[E.dataKey];var z={};typeof _=="object"&&!Array.isArray(_)&&(z=_?.styles||{});var H=kF(e,E,d,a,r,o,z),k=new PN(_,H,e);m[E.dataKey]=k,m[E.index]=k,g=k.colSpan-1,l[E.index]={left:k.rowSpan-1,times:g}}else g--,y++;else l[E.index].left--,g=l[E.index].times,h++}return new EN(f,d,e,m)});return c}function Iw(e,t){var n={};return e.forEach(function(r){if(r.raw!=null){var a=DF(t,r.raw);a!=null&&(n[r.dataKey]=a)}}),Object.keys(n).length>0?n:null}function DF(e,t){if(e==="head"){if(typeof t=="object")return t.header||null;if(typeof t=="string"||typeof t=="number")return t}else if(e==="foot"&&typeof t=="object")return t.footer;return null}function MF(e){return e.map(function(t,n){var r,a;return typeof t=="object"?a=(r=t.dataKey)!==null&&r!==void 0?r:n:a=n,new CF(a,t,n)})}function kF(e,t,n,r,a,o,l){var c=fF(r),f;e==="head"?f=a.headStyles:e==="body"?f=a.bodyStyles:e==="foot"&&(f=a.footStyles);var d=ol({},c.table,c[e],a.styles,f),h=a.columnStyles[t.dataKey]||a.columnStyles[t.index]||{},m=e==="body"?h:{},y=e==="body"&&n%2===0?ol({},c.alternateRow,a.alternateRowStyles):{},g=uF(o),N=ol({},g,d,y,m);return ol(N,l)}function FF(e,t,n){var r;n===void 0&&(n={});var a=AN(e,t),o=new Map,l=[],c=[],f=[];Array.isArray(t.settings.horizontalPageBreakRepeat)?f=t.settings.horizontalPageBreakRepeat:(typeof t.settings.horizontalPageBreakRepeat=="string"||typeof t.settings.horizontalPageBreakRepeat=="number")&&(f=[t.settings.horizontalPageBreakRepeat]),f.forEach(function(y){var g=t.columns.find(function(N){return N.dataKey===y||N.index===y});g&&!o.has(g.index)&&(o.set(g.index,!0),l.push(g.index),c.push(t.columns[g.index]),a-=g.wrappedWidth)});for(var d=!0,h=(r=n?.start)!==null&&r!==void 0?r:0;h<t.columns.length;){if(o.has(h)){h++;continue}var m=t.columns[h].wrappedWidth;
481if(d||a>=m)d=!1,l.push(h),c.push(t.columns[h]),a-=m;else break;h++}return{colIndexes:l,columns:c,lastIndex:h-1}}function IF(e,t){for(var n=[],r=0;r<t.columns.length;r++){var a=FF(e,t,{start:r});a.columns.length&&(n.push(a),r=a.lastIndex)}return n}function jN(e,t){var n=t.settings,r=n.startY,a=n.margin,o={x:a.left,y:r},l=t.getHeadHeight(t.columns)+t.getFootHeight(t.columns),c=r+a.bottom+l;if(n.pageBreak==="avoid"){var f=t.body,d=f.reduce(function(y,g){return y+g.height},0);c+=d}var h=new Uf(e);(n.pageBreak==="always"||n.startY!=null&&c>h.pageSize().height)&&(LN(h),o.y=a.top),t.callWillDrawPageHooks(h,o);var m=ol({},o);t.startPageNumber=h.pageNumber(),n.horizontalPageBreak?UF(h,t,m,o):(h.applyStyles(h.userStyles),(n.showHead==="firstPage"||n.showHead==="everyPage")&&t.head.forEach(function(y){return ul(h,t,y,o,t.columns)}),h.applyStyles(h.userStyles),t.body.forEach(function(y,g){var N=g===t.body.length-1;Pm(h,t,y,N,m,o,t.columns)}),h.applyStyles(h.userStyles),(n.showFoot==="lastPage"||n.showFoot==="everyPage")&&t.foot.forEach(function(y){return ul(h,t,y,o,t.columns)})),wN(h,t,m,o),t.callEndPageHooks(h,o),t.finalY=o.y,e.lastAutoTable=t,h.applyStyles(h.userStyles)}function UF(e,t,n,r){var a=IF(e,t),o=t.settings;if(o.horizontalPageBreakBehaviour==="afterAllRows")a.forEach(function(d,h){e.applyStyles(e.userStyles),h>0?nh(e,t,n,r,d.columns,!0):Uw(e,t,r,d.columns),BF(e,t,n,r,d.columns),P1(e,t,r,d.columns)});else for(var l=-1,c=a[0],f=function(){var d=l;if(c){e.applyStyles(e.userStyles);var h=c.columns;l>=0?nh(e,t,n,r,h,!0):Uw(e,t,r,h),d=Bw(e,t,l+1,r,h),P1(e,t,r,h)}var m=d-l;a.slice(1).forEach(function(y){e.applyStyles(e.userStyles),nh(e,t,n,r,y.columns,!0),Bw(e,t,l+1,r,y.columns,m),P1(e,t,r,y.columns)}),l=d};l<t.body.length-1;)f()}function Uw(e,t,n,r){var a=t.settings;e.applyStyles(e.userStyles),(a.showHead==="firstPage"||a.showHead==="everyPage")&&t.head.forEac
481h(function(o){return ul(e,t,o,n,r)})}function BF(e,t,n,r,a){e.applyStyles(e.userStyles),t.body.forEach(function(o,l){var c=l===t.body.length-1;Pm(e,t,o,c,n,r,a)})}function Bw(e,t,n,r,a,o){e.applyStyles(e.userStyles),o=o??t.body.length;var l=Math.min(n+o,t.body.length),c=-1;return t.body.slice(n,l).forEach(function(f,d){var h=n+d===t.body.length-1,m=ON(e,t,h,r);f.canEntireRowFit(m,a)&&(ul(e,t,f,r,a),c=n+d)}),c}function P1(e,t,n,r){var a=t.settings;e.applyStyles(e.userStyles),(a.showFoot==="lastPage"||a.showFoot==="everyPage")&&t.foot.forEach(function(o){return ul(e,t,o,n,r)})}function zF(e,t,n){var r=n.getLineHeight(e.styles.fontSize),a=e.padding("vertical"),o=Math.floor((t-a)/r);return Math.max(0,o)}function HF(e,t,n,r){var a={};e.spansMultiplePages=!0,e.height=0;for(var o=0,l=0,c=n.columns;l<c.length;l++){var f=c[l],d=e.cells[f.index];if(d){Array.isArray(d.text)||(d.text=[d.text]);var h=new PN(d.raw,d.styles,d.section);h=ol(h,d),h.text=[];var m=zF(d,t,r);d.text.length>m&&(h.text=d.text.splice(m,d.text.length));var y=r.scaleFactor(),g=r.getLineHeightFactor();d.contentHeight=d.getContentHeight(y,g),d.contentHeight>=t&&(d.contentHeight=t,h.styles.minCellHeight-=t),d.contentHeight>e.height&&(e.height=d.contentHeight),h.contentHeight=h.getContentHeight(y,g),h.contentHeight>o&&(o=h.contentHeight),a[f.index]=h}}var N=new EN(e.raw,-1,e.section,a,!0);N.height=o;for(var w=0,E=n.columns;w<E.length;w++){var f=E[w],h=N.cells[f.index];h&&(h.height=N.height);var d=e.cells[f.index];d&&(d.height=e.height)}return N}function qF(e,t,n,r){var a=e.pageSize().height,o=r.settings.margin,l=o.top+o.bottom,c=a-l;t.section==="body"&&(c-=r.getHeadHeight(r.columns)+r.getFootHeight(r.columns));var f=t.getMinimumRowHeight(r.columns,e),d=f<n;if(f>c)return console.error("Will not be able to print row ".concat(t.index," correctly since it's minimum height is larger than page height")),!0;if(!d)return!1;var h=t.hasRowSpan(r.columns),m=t.getMaxCellHeight(r.columns)>c;return m?(h&&console.error("The content of row ".concat(t.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(h||r.settings.rowPageBreak==="avoid")}function Pm(e,t,n,r,a,o,l){var c=ON(e,t,r,o);if(n.canEntireRowFit(c,l))ul(e,t,n,o,l);else if(qF(e,n,c,t)){var f=HF(n,c,t,e);ul(e,t,n,o,l),nh(e,t,a,o,l),Pm(e,t,f,r,a,o,l)}else nh(e,t,a,o,l),Pm(e,t,n,r,a,o,l)}function ul(e,t,n,r,a){r.x=t.settings.margin.left;for(var o=0,l=a;o<l.length;o++){var c=l[o],f=n.cells[c.index];if(!f){r.x+=c.width;continue}e.applyStyles(f.styles),f.x=r.x,f.y=r.y;var d=t.callCellHooks(e,t.hooks.willDrawCell,f,n,c,r);if(d===!1){r.x+=c.width;continue}GF(e,f,r);var h=f.getTextPos();yN(f.text,h.x,h.y,{halign:f.styles.halign,valign:f.styles.valign,maxWidth:Math.ceil(f.width-f.padding("left")-f.padding("right"))},e.getDocument()),t.callCellHooks(e,t.hooks.didDrawCell,f,n,c,r),r.x+=c.width}r.y+=n.height}function GF(e,t,n){var r=t.styles;if(e.getDocument().setFillColor(e.getDocument().getFillColor()),typeof r.lineWidth=="number"){var a=SN(r.lineWidth,r.fillColor);a&&e.rect(t.x,n.y,t.width,t.height,a)}else typeof r.lineWidth=="object"&&(r.fillColor&&e.rect(t.x,n.y,t.width,t.height,"F"),WF(e,t,n,r.lineWidth))}function WF(e,t,n,r){var a,o,l,c;r.top&&(a=n.x,o=n.y,l=n.x+t.width,c=n.y,r.right&&(l+=.5*r.right),r.left&&(a-=.5*r.left),f(r.top,a,o,l,c)),r.bottom&&(a=n.x,o=n.y+t.height,l=n.x+t.width,c=n.y+t.height,r.right&&(l+=.5*r.right),r.left&&(a-=.5*r.left),f(r.bottom,a,o,l,c)),r.left&&(a=n.x,o=n.y,l=n.x,c=n.y+t.height,r.top&&(o-=.5*r.top),r.bottom&&(c+=.5*r.bottom),f(r.left,a,o,l,c)),r.right&&(a=n.x+t.width,o=n.y,l=n.x+t.width,c=n.y+t.height,r.top&&(o-=.5*r.top),r.bottom&&(c+=.5*r.bottom),f(r.right,a,o,l,c));function f(d,h,m,y,g){e.getDocument().setLineWidth(d),e.getDocument().line(h,m,y,g,"S")}}function ON(e,t,n,r){var a=t.settings.margin.bottom,o=t.settings.showFoot;return(o==="everyPage"||o==="lastPage"&&n)&&(a+=t.getFootHeight(t.columns)),e.pageSize().height-r.y-a}function nh(e,t,n,r,a,o){a===void 0&&(a=[]),o===void 0&&(o=!1),e.applyStyles(e.userStyles),t.settings.showFoot==="everyPage"&&!
481o&&t.foot.forEach(function(c){return ul(e,t,c,r,a)}),t.callEndPageHooks(e,r);var l=t.settings.margin;wN(e,t,n,r),LN(e),t.pageNumber++,r.x=l.left,r.y=l.top,n.y=l.top,t.callWillDrawPageHooks(e,r),t.settings.showHead==="everyPage"&&(t.head.forEach(function(c){return ul(e,t,c,r,a)}),e.applyStyles(e.userStyles))}function LN(e){var t=e.pageNumber();e.setPage(t+1);var n=e.pageNumber();return n===t?(e.addPage(),!0):!1}function VF(e){e.API.autoTable=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0],a=CN(this,r),o=TN(this,a);return jN(this,o),this},e.API.lastAutoTable=!1,e.API.autoTableText=function(t,n,r,a){yN(t,n,r,a,this)},e.API.autoTableSetDefaults=function(t){return Uf.setDefaults(t,this),this},e.autoTableSetDefaults=function(t,n){Uf.setDefaults(t,n)},e.API.autoTableHtmlToJson=function(t,n){var r;if(n===void 0&&(n=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var a=new Uf(this),o=_N(a,t,window,n,!1),l=o.head,c=o.body,f=((r=l[0])===null||r===void 0?void 0:r.map(function(d){return d.content}))||[];return{columns:f,rows:c,data:c}}}var T1;function Vc(e,t){var n=CN(e,t),r=TN(e,n);jN(e,r)}try{if(typeof window<"u"&&window){var zw=window,Hw=zw.jsPDF||((T1=zw.jspdf)===null||T1===void 0?void 0:T1.jsPDF);Hw&&VF(Hw)}}catch(e){console.error("Could not apply autoTable plugin",e)}const YF=["January","February","March","April","May","June","July","August","September","October","November","December"];function QF(e){const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return e;const n=Number(t[1]),r=Number(t[2]),a=Number(t[3]),o=YF[r-1];return!o||a<1||a>31?e:`${o} ${a}, ${n}`}const Zr=[12,31,75],Er=[44,150,91],ma=[248,249,250],xf=[156,163,175],pr=[55,65,81],$l=[255,255,255];async function dh(e){const t=new Ot({orientation:"portrait",unit:"mm",format:"letter"}),n=t.internal.pageSize.getWidth(),r=t.internal.pageSize.getHeight(),a=20,o=n-2*a,l=async ye=>{try{const Ie=await(await fetch(ye)).blob();return new Promise(at=>{const rt=new Image;rt.crossOrigin="anonymous";const Rt=setTimeout(()=>{URL.revokeObjectURL(rt.src),at("")},1e4);rt.onload=()=>{clearTimeout(Rt);const Bt=document.createElement("canvas"),Ke=800;let Gt=rt.width,on=rt.height;(Gt>Ke||on>Ke)&&(Gt>on?(on=Math.round(on*(Ke/Gt)),Gt=Ke):(Gt=Math.round(Gt*(Ke/on)),on=Ke)),Bt.width=Gt,Bt.height=on;const en=Bt.getContext("2d");if(en)en.drawImage(rt,0,0,Gt,on),at(Bt.toDataURL("image/jpeg",.65));else{const $t=new FileReader;$t.onloadend=()=>at($t.result),$t.onerror=()=>at(""),$t.readAsDataURL(Ie)}URL.revokeObjectURL(rt.src)},rt.onerror=()=>{clearTimeout(Rt),URL.revokeObjectURL(rt.src),at("")},rt.src=URL.createObjectURL(Ie)})}catch(Ue){return console.error("Error loading image:",Ue),""}},c=async ye=>{const Ue=new Map,Ie=Array.from(new Set(ye.filter(rt=>rt))),at=await Promise.all(Ie.map(rt=>l(rt)));return Ie.forEach((rt,Rt)=>{at[Rt]&&Ue.set(rt,at[Rt])}),Ue},f=[];e.assessorLogoUrl&&f.push(e.assessorLogoUrl),e.frontPropertyImageUrl&&f.push(e.frontPropertyImageUrl),e.assessorSignatureUrl&&f.push(e.assessorSignatureUrl),e.preExistingPhotos&&Object.values(e.preExistingPhotos).forEach(ye=>{Array.isArray(ye)&&f.push(...ye)}),e.assessmentPhotos&&Object.values(e.assessmentPhotos).forEach(ye=>{Array.isArray(ye)&&f.push(...ye)}),e.shingles&&e.shingles.forEach(ye=>{ye.imageUrl&&ye.damaged&&f.push(ye.imageUrl)});const d=await c(f),h=async ye=>{if(!ye)return"";const Ue=d.get(ye);return Ue||l(ye)},m=[],y=(ye,Ue)=>{const Ie=t.getNumberOfPages();m.push({pdfPage:Ie,logicalPage:ye}),t.setFillColor(...Er),t.rect(0,0,n,8,"F"),t.setFontSize(9),t.setTextColor(...pr),t.setFont("helvetica","normal"),t.text("Asphalt Shingle Repairability Assessment",a,14),t.setDrawColor(...xf),t.setLineWidth(.3),t.line(a,17,n-a,17)},g=()=>{t.setFontSize(8),t.setTextColor(...xf),t.setFont("helvetica","italic"),t.text("Building Experts Institute | Repairability Assessment",n/2,r-10,{align:"center"}),t.setDrawColor(...Er),t.setLineWidth(.5),t.line(a,r-15,n-a,r-15)},N=(ye,Ue)=>(t.setFillColor(...Er),t.rect(a,Ue,4,8,"F"),t.setFontSize(14),t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text(ye,a+7,Ue+6),Ue+12);let w=50;if(t.setFontSize(10),t.setFont("helvetica","bold"),t.setTextColor(...Er),t.text("BUILDING EXPERTS INSTITUTE",n/2,w,{align:"center"}),w+=10,t.setFontSize(32),t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text("Asphalt Shingle",n/2,w,{align:"center"}),w+=12,t.text("Repairability Assessment",n/2,w,{align:"center"}),w+=14,e.assessorLogoUrl)try{const ye=await h(e.assessorLogoUrl);if(ye){const Ue=o*.85,Ie=75,at=t.getImageProperties(ye),rt=at.width/at.height;let Rt=Ue,Bt=Rt/rt;Bt>Ie&&(Bt=Ie,Rt=Bt*rt);const Ke=(n-Rt)/2;t.addImage(ye,"JPEG",Ke,w,Rt,Bt),w+=Bt+8}}catch(ye){console.error("Error adding logo image:",ye),w+=10}else w+=10;const E=e.propertyAddress.trim(),_=`${e.propertyCity}, ${e.propertyState} ${e.propertyZip}`,z=E.toLowerCase().includes(e.propertyCity.toLowerCase())&&e.propertyCity.length>0;let H;z?H=`${E.split(",")[0].trim()}${e.propertyAddressLine2?", "+e.propertyAddressLine2:""}, ${_}`:H=`${E}${e.propertyAddressLine2?", "+e.propertyAddressLine2:""}, ${_}`,t.setFontSize(10);const k=o-10,K=`Address: ${H}`,U=t.splitTextToSize(K,k),G=U.length,R=14+(2+(G-1)+(e.insuranceCarrier?1:0)+(e.claimNumber?1:0))*6;t.setFillColor(...ma),t.roundedRect(a,w,o,R,3,3,"F"),w+=8,t.setFontSize(11),t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text("PROPERTY INFORMATION",a+5,w),w+=8,t.setFontSize(10),t.setFont("helvetica","normal"),t.setTextColor(...pr),t.text(`Property: ${e.propertyName}`,a+5,w),w+=6,t.text(U,a+5,w),w+=6*G,e.insuranceCarrier&&(t.text(`Insurer: ${e.insuranceCarrier}`,a+5,w),w+=6),e.claimNumber&&(t.text(`Claim #: ${e.claimNumber}`,a+5,w),w+=6);const Q=r-55,j=Math.max(w+10,Q);t.setDrawColor(...Er),t.setLineWidth(.5),t.line(a,j,n-a,j),t.setFontSize(12),t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text("Assessor",n/2,j+8,{align:"center"}),t.setFontSize(16),t.setFont("helvetica","bold"),t.setTextColor(...Er),t.text(`${e.assessorFirstName} ${e.assessorLastName}`,n/2,j+16,{align:"center"}),t.setFontSize(11),t.setFont("helvetica","normal"),t.setTextColor(...pr);const D=QF(e.assessmentDate);if(t.text(D,n/2,j+24,{align:"center"}),t.setFontSize(8),t.setTextColor(...xf),t.setFont("helvetica","italic"),t.addPage(),y(0),w=25,t.setFontSize(18),t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text("Property Data",a,w+6),w+=14,t.setFontSize(13),t.setFont("helvetica","bold"),t.setTextColor(...Er),t.text("Front Image of Property:",a,w),w+=6,e.frontPropertyImageUrl)try{const ye=await h(e.frontPropertyImageUrl);if(ye){const Ue=o,Ie=80,at=t.getImageProperties(ye),rt=at.width/at.height;let Rt=Ue,Bt=Rt/rt;Bt>Ie&&(Bt=Ie,Rt=Bt*rt),t.addImage(ye,"JPEG",a,w,Rt,Bt),w+=Bt+8}}catch(ye){console.error("Error adding front property image:",ye)}const $=e.propertyAddress.trim(),W=`${e.propertyCity}, ${e.propertyState}, ${e.propertyZip}`,te=$.toLowerCase().includes(e.propertyCity.toLowerCase())&&e.propertyCity.length>0;let L;te?L=`${$.split(",")[0].trim()}${e.propertyAddressLine2?` 482`+e.propertyAddressLine2:""} 483${W}`:L=`${$}${e.propertyAddressLine2?` 484`+e.propertyAddressLine2:""} 485${W}`;const M=[["Property Name:",e.propertyName],["Property Address:",L]];Vc(t,{startY:w,body:M,theme:"grid",styles:{fontSize:9,cellPadding:3,lineColor:[200,200,200],lineWidth:.3},columnStyles:{0:{cellWidth:50,fontStyle:"bold",textColor:Zr},1:{cellWidth:o-50,textColor:pr}},margin:{left:a,right:a,bottom:22,top:20},didParseCell:ye=>{ye.section==="body"&&ye.row.index%2===0&&(ye.cell.styles.fillColor=ma)}}),w=t.lastAutoTable.finalY+8,r-20-w<75&&(t.addPage(),y(0),w=25),w=N("Repairability Assessment Data",w),Vc(t,{startY:w,body:[["Date (Time):",`${D}, ${(()=>{const[ye,Ue]=(e.assessmentTime||"00:00").split(":"),Ie=parseInt(ye,10),at=Ie>=12?"PM":"AM";return`${Ie%12||12}:${Ue} ${at}`})()}`],["Assessor Name:",`${e.assessorFirstName} ${e.assessorLastName}`],["BEI Certified:",e.isCertified?"Yes":"No"],[`Certification Date 486(If Applicable):`,e.certificationDate||"N/A"],["Temperature:",`${e.temperature}`],["Wind Speed:",e.windSpeed],["Cloud Cover:",e.cloudCover]],theme:"grid",styles:{fontSize:9,cellPadding:3,lineColor:[200,200,200],lineWidth:.3},columnStyles:{0:{cellWidth:50,fontStyle:"bold",textColor:Zr},1:{cellWidth:o-50,textColor:pr}},margin:{left:a,right:a,bottom:20},didParseCell:ye=>{ye.section==="body"&&ye.row.index%2===0&&(ye.cell.styles.fillColor=ma)},didDrawPage:ye=>{ye.pageNumber>1&&(y(0),g())}}),w=t.lastAutoTable.finalY+8,r-20-w<48&&(t.addPage(),y(0),w=25),w=N("Repairability Assessment Location",w);const P=[["Roof Slope ID:",e.roofSlopeId||"N/A"],["Slope Direction:",e.slopeDirection||"N/A"],["Assessment Location:",e.assessmentLocation||"N/A"]],B=e.finalNotes||e.locationNotes||"";B&&P.push([{content:B,colSpan:2}]),Vc(t,{startY:w,body:P,theme:"grid",styles:{fontSize:9,cellPadding:3,lineColor:[200,200,200],lineWidth:.3},columnStyles:{0:{cellWidth:50,fontStyle:"bold",textColor:Zr},1:{cellWidth:o-50,textColor:pr}},margin:{left:a,right:a,bottom:20},didDrawPage:ye=>{ye.pageNumber>1&&(y(0),g())},didParseCell:ye=>{ye.section==="body"&&!(B&&ye.row.index===3)&&ye.row.index%2===0&&(ye.cell.styles.fillColor=ma),B&&ye.section==="body"&&ye.row.index===3&&(ye.cell.styles.textColor=pr,ye.cell.styles.fontStyle="normal",ye.cell.styles.cellPadding={top:10,left:3,right:3,bottom:3})},didDrawCell:ye=>{if(B&&ye.section==="body"&&ye.row.index===3&&ye.column.index===0){const Ue=ye.cell.x,Ie=ye.cell.y;ye.cell.height>=10&&Ie+7<r-22&&(t.setFontSize(11),t.setFont("helvetica","bold"),t.setTextColor(...Er),t.text("Notes:",Ue+3,Ie+7))}}}),w=t.lastAutoTable.finalY+3,w+=5,w>r-80&&(t.addPage(),y(0),w=25),w=N("Repairability Assessment Observations",w);const Y=[["Assessment Shingle",e.assessmentShingleDefects.length>0?e.assessmentShingleDefects.join(", "):"",""]];
486e.shingles.forEach((ye,Ue)=>{const Ie=ye.defects.length>0?ye.defects.join(", "):"",at=ye.damaged?"Yes":"No";Y.push([`Shingle ${Ue+1}`,Ie,at])});const oe=e.shingles.filter(ye=>ye.damaged).length;Y.push([{content:"Total",colSpan:2,styles:{halign:"right"}},oe.toString()]),Vc(t,{startY:w,head:[["","Shingle Defect(s)",`Shingle Damage 487Count`]],body:Y,theme:"grid",styles:{fontSize:9,cellPadding:3,lineColor:[200,200,200],lineWidth:.3},headStyles:{fillColor:$l,textColor:Zr,fontStyle:"bold",fontSize:9,cellPadding:3},columnStyles:{0:{cellWidth:35,fontStyle:"bold",textColor:Zr},1:{cellWidth:o-75,textColor:pr},2:{cellWidth:40,halign:"left",textColor:pr}},margin:{left:a,right:a,bottom:22,top:20},showHead:"everyPage",didDrawPage:ye=>{ye.pageNumber>1&&(y(0),g())},didParseCell:ye=>{const Ue=ye.column.index;Ue===2&&ye.section==="head"&&(ye.cell.styles.fillColor=ma),Ue===2&&ye.section==="body"&&(ye.row.index===Y.length-1?ye.cell.styles.fillColor=$l:ye.cell.styles.fillColor=ma),ye.row.index===Y.length-1&&ye.section==="body"&&(ye.cell.styles.fontStyle="bold",ye.cell.styles.textColor=Zr)}}),w=t.lastAutoTable.finalY+15,w>r-80&&(t.addPage(),y(0),w=25),w=N("Additional Assessment Factors",w);const le=e.deteriorationScore+e.installationErrorsScore+e.previousRepairsScore+e.manufacturingDefectsScore+e.materialObsolescenceScore+e.visualIncompatibilityScore,me=(ye,Ue)=>ye===0?"Not Present":ye===1?"Present":ye===2?"Limiting":ye.toString();Vc(t,{startY:w,head:[[{content:"GENERAL CONDITIONS BY TYPE",styles:{halign:"left"}},{content:"Score",styles:{halign:"center"}}]],body:[[{content:"",styles:{cellPadding:2}},{content:"(0 pts) - Not Present; (1 pts) - Present; (2 pts) - Limiting",styles:{fontSize:7,fontStyle:"bold",halign:"center",cellPadding:1}}],["Deterioration Related to Age/Materials",me(e.deteriorationScore,!1)],["Installation Errors",me(e.installationErrorsScore,!1)],["History of Previous Repairs *",me(e.previousRepairsScore,!0)],["Manufacturing Defects *",me(e.manufacturingDefectsScore,!0)],["Material Obsolescence (due to size) *",me(e.materialObsolescenceScore,!0)],["Visual Incompatibility *",me(e.visualIncompatibilityScore,!0)],["Total",le.toString()],[{content:`NOTES: 4881 - The following provides a guide on scoring for this 489Present - Installation errors present to 0-10% of shingles 490Limiting - Installation errors present to more than 10% of shingles 4912 - Based on removal and replacement of a test shingle 4923 - Sum of "General Conditions" and "Damage Rate" 493* Condition is present (2 Points) or is not present (0 Points)`,colSpan:2,styles:{fontSize:8,cellPadding:{top:3,bottom:3,left:3,right:3}}}]],theme:"grid",styles:{fontSize:9,cellPadding:3,lineColor:[200,200,200],lineWidth:.3,textColor:pr},headStyles:{fillColor:$l,textColor:Er,fontStyle:"bold",fontSize:10,cellPadding:3},columnStyles:{0:{cellWidth:o*.6},1:{cellWidth:o*.4,halign:"center",fontStyle:"bold"}},margin:{left:a,right:a,bottom:22,top:20},didDrawPage:ye=>{ye.pageNumber>1&&(y(0),g())},didParseCell:ye=>{const Ue=ye.row.index,Ie=ye.column.index;ye.section==="head"&&Ie===1&&(ye.cell.styles.fillColor=ma),ye.section==="body"&&(Ue===0?(ye.cell.styles.textColor=pr,ye.cell.styles.fillColor=$l):Ue>=1&&Ue<=6?(ye.cell.styles.textColor=pr,Ie===1?ye.cell.styles.fillColor=ma:ye.cell.styles.fillColor=$l):Ue===7?(ye.cell.styles.textColor=Er,ye.cell.styles.fontStyle="bold",ye.cell.styles.fontSize=12,Ie===1?ye.cell.styles.fillColor=ma:ye.cell.styles.fillColor=$l):Ue===8&&(ye.cell.styles.fillColor=$l,ye.cell.styles.textColor=pr,ye.cell.styles.fontStyle="normal"))}}),w=t.lastAutoTable.finalY+8;const Ae=oe,Oe=le+Ae;w+100>r-20&&(g(),t.addPage(),y(0),w=25),w=N("Score Summary",w);const Qe=e.finalDetermination||(Oe>=4?"4 or More: Repairability is limited and localized repair is not recommended.":Oe>=2?"2-4: Repairability is limited but may be feasible on a case by case situation depending on the availability of suitable and compatible materials":"0-2: Localized repair may be feasible depending on the overall conditions present and the availability of suitable and compatible materials.");Vc(t,{startY:w,body:[[{content:`DAMAGE RATE 494Number of shingles damaged during field replacement efforts (1-Point per damaged shingle)`,styles:{cellPadding:{top:3,bottom:3,left:3,right:3}}},{content:Ae.toString(),styles:{halign:"center",valign:"middle",fontSize:12,fontStyle:"bold"}}],[{content:`TOTAL REPAIRABILITY ASSESSMENT 3
495`+`0-2: Localized repair may be feasible depending on the overall conditions present and the availability of suitable and compatible materials. 4962-4: Repairability is limited but may be feasible on a case by case situation depending on the availability of suitable and compatible materials 4974 or More: Repairability is limited and localized repair is not recommended.`,styles:{cellPadding:{top:3,bottom:3,left:3,right:3}}},{content:Oe.toString(),styles:{halign:"center",valign:"middle",fontSize:12,fontStyle:"bold"}}],[{content:`Final Determination: 498`+Qe,colSpan:2,styles:{cellPadding:{top:3,bottom:3,left:3,right:3}}}]],theme:"grid",styles:{fontSize:9,cellPadding:3,lineColor:[200,200,200],lineWidth:.3,textColor:pr},columnStyles:{0:{cellWidth:o*.75},1:{cellWidth:o*.25,fillColor:ma}},margin:{left:a,right:a,bottom:22,top:20},rowPageBreak:"avoid",didDrawPage:ye=>{ye.pageNumber>1&&(y(0),g())},didParseCell:ye=>{if(ye.section==="body"){const Ue=ye.row.index,Ie=ye.column.index;Ie===0&&(ye.cell.styles.textColor=$l,ye.cell.text=[""],Ue===0&&(ye.cell.styles.minCellHeight=22),Ue===1&&(ye.cell.styles.minCellHeight=32),Ue===2&&(ye.cell.styles.minCellHeight=22)),Ie===1&&(ye.cell.styles.textColor=Er,ye.cell.styles.fillColor=ma,ye.cell.styles.fontSize=12)}},didDrawCell:ye=>{if(ye.section==="body"){const Ue=ye.row.index,Ie=ye.column.index,at=ye.cell.x,rt=ye.cell.y,Rt=ye.cell.height,Bt=r-22;if(Rt<10||rt+Rt>Bt+5)return;if(Ie===0){const Ke=ye.cell.width-6,Gt=3.5;if(Ue===0){t.setFontSize(10),t.setFont("helvetica","bold"),t.setTextColor(...Er),t.text("DAMAGE RATE",at+3,rt+7),t.setFontSize(9),t.setFont("helvetica","normal"),t.setTextColor(...pr);const on=t.splitTextToSize("Number of shingles damaged during field replacement efforts (1-Point per damaged shingle)",Ke);t.text(on,at+3,rt+13)}else if(Ue===1){t.setFontSize(10),t.setFont("helvetica","bold"),t.setTextColor(...Er),t.text("TOTAL REPAIRABILITY ASSESSMENT ",at+3,rt+7),t.setFontSize(10);const on=t.getTextWidth("TOTAL REPAIRABILITY ASSESSMENT ");t.setFontSize(7),t.text("3",at+3+on,rt+4.5),t.setFontSize(9),t.setFont("helvetica","normal"),t.setTextColor(...pr);const en="0-2: Localized repair may be feasible depending on the overall conditions present and the availability of suitable and compatible materials.",$t="2-4: Repairability is limited but may be feasible on a case by case situation depending on the availability of suitable and compatible materials",Qt="4 or More: Repairability is limited and localized repair is not recommended.",fn=t.splitTextToSize(en,Ke),jn=t.splitTextToSize($t,Ke),es=t.splitTextToSize(Qt,Ke);let er=rt+13;t.text(fn,at+3,er),er+=fn.length*Gt+1,t.text(jn,at+3,er),er+=jn.length*Gt+1,t.text(es,at+3,er)}else if(Ue===2){t.setFontSize(10),t.setFont("helvetica","bold"),t.setTextColor(...Er),t.text("Final Determination:",at+3,rt+7),t.setFontSize(9),t.setFont("helvetica","normal"),t.setTextColor(...pr);const on=t.splitTextToSize(Qe,Ke);t.text(on,at+3,rt+13)}}}}}),g(),w=t.lastAutoTable.finalY+10,w+132>r-20&&(t.addPage(),y(0),w=25),w=N("Assessor Information",w);const Ve=[["Assessor:",`${e.assessorFirstName} ${e.assessorLastName}`]];if(e.certificationNumber&&Ve.push(["Cert #:",e.certificationNumber]),Ve.push(["Date:",D]),e.assessorPhone&&Ve.push(["Phone:",e.assessorPhone]),e.assessorEmail&&Ve.push(["Email:",e.assessorEmail]),Vc(t,{startY:w,body:Ve,theme:"grid",styles:{fontSize:9,cellPadding:3,lineColor:[200,200,200],lineWidth:.3},columnStyles:{0:{cellWidth:35,fontStyle:"bold",textColor:Zr},1:{cellWidth:o-35,textColor:pr}},margin:{left:a,right:a,bottom:22,top:20},didParseCell:ye=>{ye.section==="body"&&ye.row.index%2===0&&(ye.cell.styles.fillColor=ma)}}),w=t.lastAutoTable.finalY+8,t.setDrawColor(...Er),t.setLineWidth(.5),t.rect(a,w,o,40),t.setFontSize(9),t.setTextColor(...xf),t.text("Assessor Signature",n/2,w+5,{align:"center"}),w+=10,e.assessorSignatureUrl)try{const ye=await h(e.assessorSignatureUrl);ye&&t.addImage(ye,"PNG",(n-80)/2,w,80,25)}catch(ye){console.error("Error adding signature:",ye)}w+=38,t.setFontSize(9),t.setFont("helvetica","italic"),t.setTextColor(...pr);const et=t.splitTextToSize("I hereby certify that the information contained in this report is accurate and based on my professional assessment conducted at the property listed above. This assessment was performed in accordance with Building Experts Institute standards and methodologies for asphalt shingle repairability evaluation.",o);t.text(et,a,w),w+=et.length*4+8,g();const De=async(ye,Ue)=>{const Ie=Ue.filter(at=>at.urls&&at.urls.length>0);if(Ie.length!==0){t.addPage(),y(0),w=25,w=N(ye,w);for(const at of Ie){const Bt=r-18;w+67>Bt&&(g(),t.addPage(),y(0),w=25),t.setFontSize(10),t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text(at.label,a,w),w+=3;const Gt=2,on=6,en=(o-on)/Gt;let $t=0,Qt=w;const jn=55+4;for(let es=0;es<at.urls.length;es++){const er=at.urls[es];$t===0&&Qt+jn>Bt&&(g(),t.addPage(),y(0),w=25,t.setFontSize(10),t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text(at.label+" (cont.)",a,w),w+=3,Qt=w);const dn=a+$t*(en+on);try{const Sn=await h(er);
498if(Sn){t.setFillColor(...ma),t.roundedRect(dn,Qt,en,55,2,2,"F"),t.setDrawColor(...Er),t.setLineWidth(.3),t.rect(dn+2,Qt+2,en-4,51);const tr=en-6,or=49;try{const ts=t.getImageProperties(Sn),Ks=ts.width/ts.height;let hs=tr,ns=hs/Ks;ns>or&&(ns=or,hs=ns*Ks);const za=dn+3+(tr-hs)/2,Bs=Qt+3+(or-ns)/2;t.addImage(Sn,"JPEG",za,Bs,hs,ns)}catch{t.addImage(Sn,"JPEG",dn+3,Qt+3,tr,or)}}}catch(Sn){console.error("Error adding photo:",Sn)}t.setFontSize(8),t.setFont("helvetica","normal"),t.setTextColor(...xf),t.text(`Photo ${es+1}`,dn+en/2,Qt+55+3,{align:"center"}),$t++,$t>=Gt&&($t=0,Qt+=jn+3)}$t>0&&(Qt+=jn+3),w=Qt+8}g()}},ot=[];if(e.preExistingPhotos){e.preExistingPhotos.targetShingleX?.length>0&&ot.push({label:"Before Photo of Target Shingle X",urls:e.preExistingPhotos.targetShingleX}),e.preExistingPhotos.overviewChalk?.length>0&&ot.push({label:"Before Overview of Repair Assessment Area Outlined with Chalk",urls:e.preExistingPhotos.overviewChalk});for(let ye=1;ye<=8;ye++){const Ue=`shingle${ye}`;e.preExistingPhotos[Ue]?.length>0&&ot.push({label:`Before Shingle ${ye} â Pre-Existing Condition & Damage`,urls:e.preExistingPhotos[Ue]})}}await De("Pre-Existing Condition Photos",ot);const Xe=[];if(e.assessmentPhotos&&(e.assessmentPhotos.overviewTargetRemoved?.length>0&&Xe.push({label:"Overview Photo â Target Shingle X Removed",urls:e.assessmentPhotos.overviewTargetRemoved}),e.assessmentPhotos.underlayment?.length>0&&Xe.push({label:"Underlayment Photo",urls:e.assessmentPhotos.underlayment}),e.assessmentPhotos.targetShingleFrontBack?.length>0&&Xe.push({label:"Front & Back of Target Shingle X",urls:e.assessmentPhotos.targetShingleFrontBack}),e.assessmentPhotos.targetShingleMeasurements?.length>0&&Xe.push({label:"Measurement Photos â Height, Width & Exposure",urls:e.assessmentPhotos.targetShingleMeasurements}),e.assessmentPhotos.controlShingle?.length>0&&Xe.push({label:"Control Shingle Photos",urls:e.assessmentPhotos.controlShingle}),e.assessmentPhotos.afterOverview?.length>0&&Xe.push({label:"After Overview Photo of Repair Assessment Area",urls:e.assessmentPhotos.afterOverview})),await De("Assessment Photos",Xe),e.shingles.filter((ye,Ue)=>ye.imageUrl&&ye.damaged).length>0){t.addPage(),y(0),w=25,w=N("Shingle Damage Photo Gallery",w),t.setFontSize(9),t.setFont("helvetica","italic"),t.setTextColor(...xf),t.text("Photographic documentation of damaged shingles observed during field assessment",a,w),w+=8;const ye=2,Ue=8,Ie=(o-Ue)/ye,at=75,rt=3,Rt=at+22,Bt=6;let Ke=0,Gt=w;for(let on=0;on<e.shingles.length;on++){const en=e.shingles[on];if(!en.imageUrl||!en.damaged)continue;Ke===0&&Gt+Rt+5>r-25&&(g(),t.addPage(),y(0),Gt=25,w=Gt);const $t=a+Ke*(Ie+Ue);try{const Qt=await h(en.imageUrl);if(Qt){t.setFillColor(...ma),t.roundedRect($t,Gt,Ie,Rt,2,2,"F"),t.setDrawColor(...Er),t.setLineWidth(.5),t.rect($t+rt,Gt+rt,Ie-2*rt,at-2*rt);const fn=Ie-2*rt-1,jn=at-2*rt-1;try{const dn=t.getImageProperties(Qt),Sn=dn.width/dn.height;let tr=fn,or=tr/Sn;or>jn&&(or=jn,tr=or*Sn);const ts=$t+rt+.5+(fn-tr)/2,Ks=Gt+rt+.5+(jn-or)/2;t.addImage(Qt,"JPEG",ts,Ks,tr,or)}catch{t.addImage(Qt,"JPEG",$t+rt+.5,Gt+rt+.5,fn,jn)}t.setFontSize(9),t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text(`Shingle ${on+1}`,$t+Ie/2,Gt+at+4,{align:"center"}),t.setFontSize(7),t.setFont("helvetica","normal"),t.setTextColor(...pr);const es=en.defects.length>0?en.defects.join(", "):"Damaged",er=t.splitTextToSize(es,Ie-8);t.text(er,$t+Ie/2,Gt+at+9,{align:"center"})}}catch(Qt){console.error(`Error adding shingle ${on+1} photo:`,Qt)}Ke++,Ke>=ye&&(Ke=0,Gt+=Rt+Bt)}g()}t.addPage(),y(0),w=25,t.setFontSize(18),t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text("Methodology and Additional Resources",a,w+6),w+=18,t.setFontSize(14),t.setFont("helvetica","bold"),t.setTextColor(...Er),t.text("Research-Based Methodology",a,w),w+=8,t.setFontSize(10),t.setFont("helvetica","normal"),t.setTextColor(...pr);const ct=t.splitTextToSize("The Repairability Assessment Scorecard used in this report is based on the research and methodology outlined in the following peer-reviewed article:",o);t.text(ct,a,w),w+=ct.length*5+6,t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text("Article Title: ",a,w);const Lt=a+t.getTextWidth("Article Title: ");t.setFont("helvetica","bolditalic");const Ht=t.splitTextToSize("Use of the Repairability Assessment Method for Evaluating Asphalt-Composition Shingle Roof Repairs",o-(Lt-a));if(t.text(Ht[0],Lt,w),Ht.length>1)for(let ye=1;ye<Ht.length;ye++)w+=5,t.text(Ht[ye],a,w);w+=8,t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text("Link: ",a,w);const vt=a+t.getTextWidth("Link: "),lt="https://journal.nafe.org/ojs/index.php/nafe/article/view/94/835";t.setFont("helvetica","normal"),t.setTextColor(...Er),t.textWithLink(lt,vt,w,{url:lt});const dt=t.getTextWidth(lt);t.setDrawColor(...Er),t.setLineWidth(.3),t.line(vt,w+1,vt+dt,w+1),w+=8,t.setFont("helvetica","normal"),t.setTextColor(...pr);const Jt=t.splitTextToSize("This article provides the scientific foun
498dation and credibility for our assessment process. For those interested in understanding the methodology in greater detail, we encourage you to review the research.",o);t.text(Jt,a,w),w+=Jt.length*5+12,t.setFontSize(14),t.setFont("helvetica","bold"),t.setTextColor(...Er),t.text("Repairability Certified Technicians",a,w),w+=8,t.setFontSize(10),t.setFont("helvetica","normal"),t.setTextColor(...pr);const mt=t.splitTextToSize("To find a certified technician in your area, visit our Online Directory of Repairability Certified Technicians:",o);t.text(mt,a,w),w+=mt.length*5+6;const Et="https://www.buildingexperts.institute/directory-repairability-assessors";t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text("Visit Our Directory ",a,w);const qt=a+t.getTextWidth("Visit Our Directory ");t.setTextColor(...Er),t.textWithLink("HERE",qt,w,{url:Et});const _t=t.getTextWidth("HERE");t.setDrawColor(...Er),t.setLineWidth(.3),t.line(qt,w+1,qt+_t,w+1),t.setFont("helvetica","bold"),t.setTextColor(...Zr),t.text(".",qt+_t,w),w+=8,t.setFont("helvetica","normal"),t.setTextColor(...pr);const yt=t.splitTextToSize("Our directory connects you with professionals who have been trained and certified in the repairability assessment process, ensuring high-quality and reliable service.",o);t.text(yt,a,w),g();const jt=m.length;for(let ye=0;ye<m.length;ye++){const{pdfPage:Ue}=m[ye];t.setPage(Ue),t.setFillColor(255,255,255),t.rect(n-a-40,9,40,7,"F"),t.setFontSize(9),t.setTextColor(...pr),t.setFont("helvetica","normal"),t.text(`Page ${ye+1} of ${jt}`,n-a,14,{align:"right"})}const wn=t.output("arraybuffer");return new Blob([wn],{type:"application/pdf"})}function RN({propertyName:e,onStartNew:t,onDownloadPDF:n}){const r=F.useRef(null);return F.useEffect(()=>{const a=()=>{window.scrollTo(0,0),document.documentElement.scrollTop=0,document.body.scrollTop=0,r.current&&r.current.scrollIntoView({block:"start",behavior:"instant"}),window.parent!==window&&window.parent.postMessage({type:"bei-directory-scroll-to-top"},"*")};a();const o=setTimeout(a,50),l=setTimeout(a,150),c=setTimeout(a,300),f=setTimeout(a,600);return()=>{clearTimeout(o),clearTimeout(l),clearTimeout(c),clearTimeout(f)}},[]),F.useEffect(()=>{const a=()=>{const h=r.current?r.current.offsetHeight+32:600;window.parent!==window&&window.parent.postMessage({type:"bei-directory-height",height:h},"*")};a();const o=setTimeout(a,100),l=setTimeout(a,300),c=setTimeout(a,500),f=setTimeout(a,1e3),d=setTimeout(a,2e3);return()=>{clearTimeout(o),clearTimeout(l),clearTimeout(c),clearTimeout(f),clearTimeout(d)}},[]),x.jsx("div",{"data-loc":"client/src/pages/SuccessScreen.tsx:87",ref:r,className:"py-16 px-4",children:x.jsx("div",{"data-loc":"client/src/pages/SuccessScreen.tsx:88",className:"max-w-2xl mx-auto",children:x.jsx(Jr,{"data-loc":"client/src/pages/SuccessScreen.tsx:89",className:"text-center",children:x.jsxs(ba,{"data-loc":"client/src/pages/SuccessScreen.tsx:90",className:"pt-10 pb-8 px-6",children:[x.jsx("div",{"data-loc":"client/src/pages/SuccessScreen.tsx:91",className:"flex justify-center mb-5",children:x.jsx(vj,{"data-loc":"client/src/pages/SuccessScreen.tsx:92",className:"h-18 w-18 text-primary"})}),x.jsx("h1",{"data-loc":"client/src/pages/SuccessScreen.tsx:95",className:"text-3xl font-bold text-foreground mb-3",children:"Assessment Complete!"}),x.jsxs("p",{"data-loc":"client/src/pages/SuccessScreen.tsx:99",className:"text-lg text-muted-foreground mb-6",children:["Your repairability assessment for ",x.jsx("strong",{"data-loc":"client/src/pages/SuccessScreen.tsx:100",children:e})," has been successfully generated and is ready for download."]}),x.jsx("div",{"data-loc":"client/src/pages/SuccessScreen.tsx:104",className:"mb-6",children:x.jsxs("div",{"data-loc":"client/src/pages/SuccessScreen.tsx:105",onClick:n,role:"button",tabIndex:0,onKeyDown:a=>a.key==="Enter"&&n(),className:"flex flex-col items-center p-4 bg-primary/10 rounded-lg hover:bg-primary/20 transition-colors cursor-pointer",children:[x.jsx(hm,{"data-loc":"client/src/pages/SuccessScreen.tsx:112",className:"h-8 w-8 text-primary mb-2"}),x.jsx("p",{"data-loc":"client/src/pages/SuccessScreen.tsx:113",className:"text-sm font-semibold",children:"Download PDF"}),x.jsx("p",{"data-loc":"client/src/pages/SuccessScreen.tsx:114",className:"text-xs text-muted-foreground",children:"Click to download again"})]})}),x.jsxs("div",{"data-loc":"client/src/pages/SuccessScreen.tsx:118",className:"bg-muted/50 p-4 rounded-lg mb-6",children:[x.jsx("h3",{"data-loc":"client/src/pages/SuccessScreen.tsx:119",className:"font-semibold mb-2",children:"What's Next?"}),x.jsxs("ul",{"data-loc":"client/src/pages/SuccessScreen.tsx:120",className:"text-sm text-muted-foreground space-y-2 text-left",children:[x.jsx("li",{"data-loc":"client/src/pages/SuccessScreen.tsx:121",children:"⢠Review the PDF report for accuracy"}),x.jsx("li",{"data-loc":"client/src/pages/SuccessScreen.tsx:122",children:"⢠Share the report with relevant stakeholders"}),x.jsx("li",{"data-loc":"client/src/pages/SuccessScreen.tsx:123",children:"⢠Keep a copy for your records"}),x.jsx("li",{"data-loc":"client/src/pages/SuccessScreen.tsx:124",children:"⢠Contact Building Experts Institute for any questions"})]})]}),x.jsx(Bn,{"data-loc":"client/src/pages/SuccessScreen.tsx:128",onClick:()=>{window.parent!==window?(window.parent.postMessage({type:"bei-directory-navigate",url:"https://www.buildingexperts.institute/repairability-assessment-form"},"*"),window.top?.location.assign("https://www.buildingexperts.institute/repairability-assessment-form")):window.location.href="https://www.buildingexperts.institute/repairability-assessment-form"},size:"lg",className:"w-full md:w-auto",children:"Start New Assessment"})]})})})})}const DN=()=>{const e="https://manus.im",t="4e3og5F9tjR2ESDuxzpbiA",n=`${window.location.origin}/api/oauth/callback`,r=btoa(n),a=new URL(`${e}/app-auth`);return a.searchParams.set("appId",t),a.searchParams.set("redirectUri",n),a.searchParams.set("state",r),a.searchParams.set("type","signIn"),a.toString()};function $F(e){const{redirectOnUnauthenticated:t=!1,redirectPath:n=DN()}={},r=Ir.useUtils(),a=Ir.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),o=Ir.auth.logout.useMutation({onSuccess:()=>{r.auth.me.setData(void 0,null)}}),l=F.useCallback(async()=>{try{await o.mutateAsync()}catch(f){if(f instanceof wo&&f.data?.code==="UNAUTHORIZED")return;throw f}
498finally{r.auth.me.setData(void 0,null),await r.auth.me.invalidate()}},[o,r]),c=F.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(a.data)),{user:a.data??null,loading:a.isLoading||o.isPending,error:a.error??o.error??null,isAuthenticated:!!a.data}),[a.data,a.error,a.isLoading,o.error,o.isPending]);return F.useEffect(()=>{t&&(a.isLoading||o.isPending||c.user||typeof window>"u"||window.location.pathname!==n&&(window.location.href=n))},[t,n,o.isPending,a.isLoading,c.user]),{...c,refresh:()=>a.refetch(),logout:l}}const Qd=window.parent!==window;Qd&&document.documentElement.setAttribute("data-in-iframe","true");function MN(){const e=F.useRef(0),t=F.useCallback(()=>{if(!Qd)return;const a=document.getElementById("root"),o=a?a.scrollHeight:document.documentElement.scrollHeight;e.current=o,window.parent.postMessage({type:"bei-directory-height",height:o},"*")},[]),n=F.useCallback(()=>{if(!Qd)return;[0,50,100,200,400,800].forEach(o=>{setTimeout(()=>{t()},o)})},[t]),r=F.useCallback(()=>{if(!Qd){window.scrollTo({top:0,behavior:"instant"});return}window.scrollTo(0,0),document.documentElement.scrollTop=0,document.body.scrollTop=0,[0,50,100,200,400].forEach(o=>{setTimeout(()=>{window.scrollTo(0,0),document.documentElement.scrollTop=0,document.body.scrollTop=0,window.parent.postMessage({type:"bei-directory-scroll-to-top"},"*")},o)})},[]);return F.useEffect(()=>{if(!Qd)return;setTimeout(t,100),setTimeout(t,500),window.addEventListener("resize",t);const a=new ResizeObserver(()=>{setTimeout(t,50)});a.observe(document.body);const o=document.getElementById("root");o&&a.observe(o);const l=new MutationObserver(()=>{setTimeout(t,50),setTimeout(t,200)});return l.observe(document.body,{childList:!0,subtree:!0}),()=>{window.removeEventListener("resize",t),a.disconnect(),l.disconnect()}},[t]),{postHeight:t,scrollToTop:r,forceHeightRecalc:n}}const rl=[{title:"General Info",description:"Insurance and claim details"},{title:"Property Data",description:"Property information and photo"},{title:"Assessment Data",description:"Assessor and weather conditions"},{title:"Assessment Location",description:"Roof location details"},{title:"Pre-Existing Condition Photos",description:"Before photos and target shingle condition"},{title:"Assessment Photos",description:"During-assessment documentation"},{title:"Shingle Observations",description:"8 shingle assessments"},{title:"General Conditions",description:"Scoring factors"},{title:"Final Notes",description:"Summary and signature"}];function XF(){$F();const[e,t]=F.useState(0),[n,r]=F.useState(!1),[a,o]=F.useState(!1),[l,c]=F.useState([]),f=Ir.assessment.create.useMutation(),d=Ir.assessment.uploadPdf.useMutation(),[h,m]=F.useState({propertyName:"",propertyAddress:"",propertyCity:"",propertyState:"",propertyZip:"",assessmentDate:(()=>{const k=new Date;return`${k.getFullYear()}-${String(k.getMonth()+1).padStart(2,"0")}-${String(k.getDate()).padStart(2,"0")}`})(),assessmentTime:(()=>{const k=new Date;return`${String(k.getHours()).padStart(2,"0")}:${String(k.getMinutes()).padStart(2,"0")}`})(),assessorFirstName:"",assessorLastName:"",assessorPhone:"",assessorEmail:"",temperature:"",windSpeed:"",cloudCover:"",roofSlopeId:"",slopeDirection:"",assessmentLocation:"",assessmentShingleDefects:[],preExistingPhotos:{targetShingleX:[],overviewChalk:[],shingle1:[],shingle2:[],shingle3:[],shingle4:[],shingle5:[],shingle6:[],shingle7:[],shingle8:[]},assessmentPhotos:{overviewTargetRemoved:[],underlayment:[],targetShingleFrontBack:[],targetShingleMeasurements:[],controlShingle:[],afterOverview:[]},shingles:Array(8).fill(null).map(()=>({damaged:void 0,defects:[]})),deteriorationScore:0,installationErrorsScore:0,previousRepairsScore:0,manufacturingDefectsScore:0,materialObsolescenceScore:0,visualIncompatibilityScore:0,finalDetermination:"",finalNotes:"",isCertified:void 0}),y=k=>{m(K=>({...K,...k})),k.shingles&&l.length>0&&c([])},g=(e+1)/rl.length*100,{scrollToTop:N,forceHeightRecalc:w}=MN(),E=()=>{if(e===6){const k=h.shingles.map((K,U)=>({...K,index:U})).filter(K=>K.damaged&&(!K.defects||K.defects.length===0)).map(K=>K.index);if(k.length>0){c(k);const K=k.map(U=>U+1).join(", ");yn.error(`Shingle${k.length>
4981?"s":""} ${K}: Please select at least one defect for each damaged shingle.`);return}c([])}e<rl.length-1&&(t(e+1),requestAnimationFrame(()=>{N(),w()}))},_=()=>{e>0&&(t(e-1),requestAnimationFrame(()=>{N(),w()}))},z=async()=>{try{if(r(!0),yn.info("Generating your PDF report..."),window.scrollTo({top:0,behavior:"smooth"}),window.parent!==window&&window.parent.postMessage({type:"bei-directory-scroll-to-top"},"*"),!h.propertyName||!h.assessorFirstName||!h.assessorEmail){yn.error("Please fill in all required fields"),r(!1);return}const k=h.shingles.filter(j=>j.damaged).length,K=h.deteriorationScore+h.installationErrorsScore+h.previousRepairsScore+h.manufacturingDefectsScore+h.materialObsolescenceScore+h.visualIncompatibilityScore,U=K+k;let G=h.finalDetermination;G||(U<=2?G="0-2: Localized repair may be feasible depending on the overall conditions present and the availability of suitable and compatible materials.":U<=4?G="2-4: Repairability is limited but may be feasible on a case by case situation depending on the availability of suitable and compatible materials.":G="4 or More: Repairability is limited and localized repair is not recommended.",y({finalDetermination:G}));let O=null;try{O=(await f.mutateAsync({isInsuranceClaim:h.isInsuranceClaim,insuranceCarrier:h.insuranceCarrier,claimNumber:h.claimNumber,propertyName:h.propertyName,propertyAddress:h.propertyAddress,propertyAddressLine2:h.propertyAddressLine2,propertyCity:h.propertyCity,propertyState:h.propertyState,propertyZip:h.propertyZip,frontPropertyImageUrl:h.frontPropertyImageUrl,assessmentDate:h.assessmentDate,assessmentTime:h.assessmentTime,assessorFirstName:h.assessorFirstName,assessorLastName:h.assessorLastName,assessorPhone:h.assessorPhone,assessorEmail:h.assessorEmail,temperature:h.temperature,windSpeed:h.windSpeed,cloudCover:h.cloudCover,roofSlopeId:h.roofSlopeId,slopeDirection:h.slopeDirection,assessmentLocation:h.assessmentLocation,locationNotes:h.locationNotes,assessmentShingleDefects:h.assessmentShingleDefects,preExistingPhotos:h.preExistingPhotos,assessmentPhotos:h.assessmentPhotos,shingles:h.shingles,deteriorationScore:h.deteriorationScore,installationErrorsScore:h.installationErrorsScore,previousRepairsScore:h.previousRepairsScore,manufacturingDefectsScore:h.manufacturingDefectsScore,materialObsolescenceScore:h.materialObsolescenceScore,visualIncompatibilityScore:h.visualIncompatibilityScore,totalDamagedShingles:k,generalConditionsTotal:K,damageRate:k,totalRepairabilityScore:U,finalDetermination:G,finalNotes:h.finalNotes,isCertified:h.isCertified??!1,certificationNumber:h.certificationNumber,certificationDate:h.certificationDate,assessorLogoUrl:h.assessorLogoUrl,assessorSignatureUrl:h.assessorSignatureUrl})).id,console.log("Assessment saved to database successfully, id:",O)}catch(j){console.error("Error saving assessment to database:",j),yn.error("Warning: Assessment data could not be saved. Your PDF will still be generated.")}const R=await dh(h),Q=`Repairability_Assessment_${h.propertyName.replace(/\s+/g,"_")}_${new Date().toISOString().split("T")[0]}.pdf`;try{const j=URL.createObjectURL(R),D=document.createElement("a");D.href=j,D.download=Q,D.style.display="none",document.body.appendChild(D),D.click(),setTimeout(()=>{document.body.removeChild(D),URL.revokeObjectURL(j)},1e3)}catch(j){console.warn("Standard download failed, trying fallback:",j);try{const D=URL.createObjectURL(R);window.open(D,"_blank"),setTimeout(()=>URL.revokeObjectURL(D),1e4)}catch(D){console.error("All download methods failed:",D),yn.error("Could not download PDF automatically. The report has been saved â you can download it from the Assessment History page.")}}if(O){const j=new FileReader,$=await new Promise(te=>{j.onloadend=()=>{const L=j.result,M=L.split(",")[1]||L;te(M)},j.readAsDataURL(R)});let W=!1;for(let te=1;te<=3;te++)try{await d.mutateAsync({id:O,base64Data:$,filename:`assessment_${O}.pdf`}),console.log("PDF uploaded to S3 and URL saved to database"),W=!0;break}catch(L){console.error(`PDF upload attempt ${te} failed:`,L),te<3&&await new Promise(M=>setTimeout(M,te*1e3))}W||yn.error("PDF could not be stored to the server. Please use the upload button in Assessment History to store it later.")}yn.success("PDF generated successfully!"),r(!1),window.scrollTo(0,0),document.documentElement.scrollTop=0,document.body.scrollTop=0,window.parent!==window&&window.parent.postMessage({type:"bei-directory-scroll-to-top"},"*"),o(!0)}catch(k){console.error("Error generating PDF:",k),yn.error("Failed to generate PDF. Please try again."),r(!1)}},H=()=>{switch(e){case 0:return x.jsx(KL,{"data-loc":"client/src/pages/AssessmentForm.tsx:423",data:h,onChange:y});case 1:return x.jsx(lR,{"data-loc":"client/src/pages/AssessmentForm.tsx:425",data:h,onChange:y});case 2:return x.jsx($R,{"data-loc":"client/src/pages/AssessmentForm.tsx:427",data:h,onChange:y});case 3:return x.jsx(XR,{"data-loc":"client/src/pages/AssessmentForm.tsx:429",data:h,onChange:y});case 4:return x.jsx(zD,{"data-loc":"client/src/pages/AssessmentForm.tsx:431",data:h,onChange:y});case 5:return x.jsx(GD,{"data-loc":"client/src/pages/AssessmentForm.tsx:433",data:h,onChange:y});case 6:return x.jsx(qD,{"data-loc":"client/src/pages/AssessmentForm.tsx:435",data:h,onChange:y,validationErrors:l});case 7:return x.jsx(WD,{"data-loc":"client/src/pages/AssessmentForm.tsx:437",data:h,onChange:y});case 8:return x.jsx(bM,{"data-loc":"client/src/pages/AssessmentForm.tsx:439",data:h,onChange:y,onSubmit:z});default:return null}};return a?x.jsx(RN,{"data-loc":"client/src/pages/AssessmentForm.tsx:447",propertyName:h.propertyName,asse
498ssorEmail:h.assessorEmail,onDownloadPDF:async()=>{try{const k=await dh(h),K=`Repairability_Assessment_${h.propertyName.replace(/\s+/g,"_")}_${new Date().toISOString().split("T")[0]}.pdf`;try{const U=URL.createObjectURL(k),G=document.createElement("a");G.href=U,G.download=K,G.style.display="none",document.body.appendChild(G),G.click(),setTimeout(()=>{document.body.removeChild(G),URL.revokeObjectURL(U)},1e3)}catch{const U=URL.createObjectURL(k);window.open(U,"_blank"),setTimeout(()=>URL.revokeObjectURL(U),1e4)}yn.success("PDF downloaded successfully!")}catch(k){console.error("Error downloading PDF:",k),yn.error("Failed to download PDF. Please try again.")}},onEmailPDF:async()=>{},onStartNew:()=>{window.parent!==window?(window.parent.postMessage({type:"bei-directory-navigate",url:"https://www.buildingexperts.institute/repairability-assessment-form"},"*"),window.top?.location.assign("https://www.buildingexperts.institute/repairability-assessment-form")):window.location.href="https://www.buildingexperts.institute/repairability-assessment-form"}}):x.jsx(x.Fragment,{children:x.jsxs("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:497",className:"min-h-screen bg-[#0a1628] relative",children:[e===0?x.jsxs("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:500",className:"relative overflow-hidden min-h-[500px]",children:[x.jsx("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:502",className:"absolute inset-0",children:x.jsx("img",{"data-loc":"client/src/pages/AssessmentForm.tsx:503",src:"https://files.manuscdn.com/user_upload_by_module/session_file/310519663243764723/GfvJXJcZdEIjpfKx.jpg",alt:"Roofing assessment",className:"w-full h-full object-cover"})}),x.jsx("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:510",className:"absolute inset-0 bg-gradient-to-b from-[#0a1628]/90 via-[#0a1628]/80 to-[#0a1628]"}),x.jsx("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:513",className:"relative z-10 container py-12",children:x.jsxs("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:514",className:"text-center max-w-4xl mx-auto",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentForm.tsx:516",className:"text-primary font-semibold tracking-widest text-sm mb-3",children:"BUILDING EXPERTS INSTITUTE"}),x.jsx("h1",{"data-loc":"client/src/pages/AssessmentForm.tsx:519",className:"text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-4",children:"Repairability Assessment Scorecard"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentForm.tsx:522",className:"text-lg text-white/90 mb-6",children:"Repairability Assessment Method for Evaluating Asphalt Shingle Roof Repairs"})]})})]}):x.jsxs("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:529",className:"relative overflow-hidden",children:[x.jsx("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:530",className:"absolute inset-0 bg-[#0a1628]"}),x.jsx("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:531",className:"relative z-10 container py-3",children:x.jsx("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:532",className:"relative flex items-center justify-center max-w-4xl mx-auto",children:x.jsxs("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:533",className:"flex items-center gap-3",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentForm.tsx:534",className:"text-primary font-semibold tracking-widest text-xs",children:"BUILDING EXPERTS INSTITUTE"}),x.jsx("span",{"data-loc":"client/src/pages/AssessmentForm.tsx:537",className:"text-white/40",children:"|"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentForm.tsx:538",className:"text-white/80 text-sm font-medium",children:"Repairability Assessment"})]})})})]}),x.jsx("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:549",className:`container max-w-4xl relative z-20 pb-12 overflow-hidden ${e===0?"-mt-32":"mt-4"}`,children:n?x.jsx(Jr,{"data-loc":"client/src/pages/AssessmentForm.tsx:552",className:"mb-6",children:x.jsx(ba,{"data-loc":"client/src/pages/AssessmentForm.tsx:553",className:"py-16 px-6",children:x.jsxs("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:554",className:"text-center",children:[x.jsx(ya,{"data-loc":"client/src/pages/AssessmentForm.tsx:555",className:"h-12 w-12 animate-spin text-primary mx-auto mb-4"}),x.jsx("h3",{"data-loc":"client/src/pages/AssessmentForm.tsx:556",className:"text-xl font-semibold text-foreground mb-2",children:"Generating Your Report"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentForm.tsx:557",className:"text-muted-foreground text-sm",children:"Your assessment report is being prepared. This may take a moment while we process your photos."}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentForm.tsx:560",className:"text-muted-foreground
498/70 text-xs mt-3",children:"Please do not close or refresh this page."})]})})}):x.jsxs(x.Fragment,{children:[x.jsx(Jr,{"data-loc":"client/src/pages/AssessmentForm.tsx:569",className:"mb-6",children:x.jsxs(ba,{"data-loc":"client/src/pages/AssessmentForm.tsx:570",className:"py-4 px-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:571",className:"flex justify-between text-sm text-muted-foreground mb-2",children:[x.jsxs("span",{"data-loc":"client/src/pages/AssessmentForm.tsx:572",children:["Step ",e+1," of ",rl.length]}),x.jsxs("span",{"data-loc":"client/src/pages/AssessmentForm.tsx:573",children:[Math.round(g),"% Complete"]})]}),x.jsx(mO,{"data-loc":"client/src/pages/AssessmentForm.tsx:575",value:g,className:"h-2"}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:576",className:"text-center mt-3",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentForm.tsx:577",className:"font-semibold text-foreground",children:rl[e].title}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentForm.tsx:578",className:"text-sm text-muted-foreground",children:rl[e].description})]})]})}),x.jsxs(Jr,{"data-loc":"client/src/pages/AssessmentForm.tsx:584",className:"overflow-hidden",children:[x.jsxs(wh,{"data-loc":"client/src/pages/AssessmentForm.tsx:585",children:[x.jsx(Sh,{"data-loc":"client/src/pages/AssessmentForm.tsx:586",children:rl[e].title}),x.jsx(Ym,{"data-loc":"client/src/pages/AssessmentForm.tsx:587",children:rl[e].description})]}),x.jsx(ba,{"data-loc":"client/src/pages/AssessmentForm.tsx:589",className:"overflow-hidden",children:H()})]}),e<rl.length-1&&x.jsxs("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:596",className:"flex justify-between mt-6",children:[x.jsxs(Bn,{"data-loc":"client/src/pages/AssessmentForm.tsx:597",variant:"outline",onClick:_,disabled:e===0,className:"bg-background min-h-[44px] min-w-[44px]",children:[x.jsx(Hb,{"data-loc":"client/src/pages/AssessmentForm.tsx:603",className:"h-4 w-4 mr-2"}),"Previous"]}),x.jsxs(Bn,{"data-loc":"client/src/pages/AssessmentForm.tsx:606",onClick:E,className:"min-h-[44px] min-w-[44px]",children:["Next",x.jsx(eS,{"data-loc":"client/src/pages/AssessmentForm.tsx:608",className:"h-4 w-4 ml-2"})]})]}),e===rl.length-1&&x.jsxs("div",{"data-loc":"client/src/pages/AssessmentForm.tsx:615",className:"flex justify-between mt-6",children:[x.jsxs(Bn,{"data-loc":"client/src/pages/AssessmentForm.tsx:616",variant:"outline",onClick:_,className:"bg-background min-h-[44px] min-w-[44px]",children:[x.jsx(Hb,{"data-loc":"client/src/pages/AssessmentForm.tsx:621",className:"h-4 w-4 mr-2"}),"Previous"]}),x.jsx(Bn,{"data-loc":"client/src/pages/AssessmentForm.tsx:624",onClick:z,disabled:n,size:"lg",className:"bg-primary hover:bg-primary/90 min-h-[44px]",children:n?x.jsxs(x.Fragment,{children:[x.jsx(ya,{"data-loc":"client/src/pages/AssessmentForm.tsx:632",className:"h-4 w-4 mr-2 animate-spin"}),"Generating..."]}):"Generate PDF Report"})]})]})})]})})}function KF(){return x.jsx(XF,{"data-loc":"client/src/pages/Home.tsx:4"})}const ZF=K4("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Pf({className:e,variant:t,asChild:n=!1,...r}){const a=n?s4:"span";return x.jsx(a,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:Yn(ZF({variant:t}),e),...r})}const kN=6048e5,JF=864e5,qw=Symbol.for("constructDateFrom");function lc(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&qw in e?e[qw](t):e instanceof Date?new e.constructor(t):new Date(t)}function Wi(e,t){return lc(t||e,e)}let eI={};function pg(){return eI}function hh(e,t){const n=pg(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Wi(e,t?.in),o=a.getDay(),l=(o<r?7:0)+o-r;return a.setDate(a.getDate()-l),a.setHours(0,0,0,0),a}function Tm(e,t){return hh(e,{...t,weekStartsOn:1}
vendor: 18,839 bytes, line 498
498)}function FN(e,t){const n=Wi(e,t?.in),r=n.getFullYear(),a=lc(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const o=Tm(a),l=lc(n,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const c=Tm(l);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Gw(e){const t=Wi(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function tI(e,...t){const n=lc.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Ww(e,t){const n=Wi(e,t?.in);return n.setHours(0,0,0,0),n}function nI(e,t,n){const[r,a]=tI(n?.in,e,t),o=Ww(r),l=Ww(a),c=+o-Gw(o),f=+l-Gw(l);return Math.round((c-f)/JF)}function rI(e,t){const n=FN(e,t),r=lc(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Tm(r)}function sI(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function aI(e){return!(!sI(e)&&typeof e!="number"||isNaN(+Wi(e)))}function iI(e,t){const n=Wi(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const oI={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lI=(e,t,n)=>{let r;const a=oI[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function j1(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const cI={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uI={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fI={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dI={date:j1({formats:cI,defaultWidth:"full"}),time:j1({formats:uI,defaultWidth:"full"}),dateTime:j1({formats:fI,defaultWidth:"full"})},hI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pI=(e,t,n,r)=>hI[e];function Bd(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):l;a=e.formattingValues[c]||e.formattingValues[l]}else{const l=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;a=e.values[c]||e.values[l]}const o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}const mI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gI={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vI={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yI={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},xI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wI=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},SI={ordinalNumber:wI,era:Bd({values:mI,defaultWidth:"wide"}),quarter:Bd({values:gI,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Bd({values:vI,defaultWidth:"wide"}),day:Bd({values:yI,defaultWidth:"wide"}),dayPeriod:Bd({values:bI,defaultWidth:"wide",formattingValues:xI,defaultFormattingWidth:"wide"})};function zd(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const l=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?NI(c,m=>m.test(l)):AI(c,m=>m.test(l));let d;d=e.valueCallback?e.valueCallback(f):f,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(l.length);return{value:d,rest:h}}}function AI(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function NI(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function _I(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],o=t.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];l=n.valueCallback?n.valueCallback(l):l;const c=t.slice(a.length);return{value:l,rest:c}}}const CI=/^(\d+)(th|st|nd|rd)?/i,EI=/\d+/i,PI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},TI={any:[/^b/i,/^(a|c)/i]},jI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},OI={any:[/1/i,/2/i,/3/i,/4/i]},LI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},RI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},DI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},MI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},FI={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},II={ordinalNumber:_I({matchPattern:CI,parsePattern:EI,valueCallback:e=>parseInt(e,10)}),era:zd({matchPatterns:PI,defaultMatchWidth:"wide",parsePatterns:TI,defaultParseWidth:"any"}),quarter:zd({matchPatterns:jI,defaultMatchWidth:"wide",parsePatterns:OI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:zd({matchPatterns:LI,defaultMatchWidth:"wide",parsePatterns:RI,defaultParseWidth:"any"}),day:zd({matchPatterns:DI,defaultMatchWidth:"wide",parsePatterns:MI,defaultParseWidth:"any"}),dayPeriod:zd({matchPatterns:kI,defaultMatchWidth:"any",parsePatterns:FI,defaultParseWidth:"any"})},UI={code:"en-US",formatDistance:lI,formatLong:dI,formatRelative:pI,localize:SI,match:II,options:{weekStartsOn:0,firstWeekContainsDate:1}};function BI(e,t){const n=Wi(e,t?.in);return nI(n,iI(n))+1}function zI(e,t){const n=Wi(e,t?.in),r=+Tm(n)-+rI(n);return Math.round(r/kN)+1}function IN(e,t){const n=Wi(e,t?.in),r=n.getFullYear(),a=pg(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=lc(t?.in||e,0);l.setFullYear(r+1,0,o),l.setHours(0,0,0,0);const c=hh(l,t),f=lc(t?.in||e,0);f.setFullYear(r,0,o),f.setHours(0,0,0,0);const d=hh(f,t);return+n>=+c?r+1:+n>=+d?r:r-1}function HI(e,t){const n=pg(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=IN(e,t),o=lc(t?.in||e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),hh(o,t)}function qI(e,t){const n=Wi(e,t?.in),r=+hh(n,t)-+HI(n,t);return Math.round(r/kN)+1}function Wn(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Xl={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Wn(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Wn(n+1,2)},d(e,t){return Wn(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Wn(e.getHours()%12||12,t.length)},H(e,t){return Wn(e.getHours(),t.length)},m(e,t){return Wn(e.getMinutes(),t.length)},s(e,t){return Wn(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return Wn(a,t.length)}},wf={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Vw={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return Xl.y(e,t)},Y:function(e,t,n,r){const a=IN(e,r),o=a>0?a:1-a;if(t==="YY"){const l=o%100;return Wn(l,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Wn(o,t.length)},R:function(e,t){const n=FN(e);return Wn(n,t.length)},u:function(e,t){const n=e.getFullYear();return Wn(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Wn(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Wn(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Xl.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Wn(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=qI(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):Wn(a,t.length)},I:function(e,t,n){const r=zI(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Wn(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Xl.d(e,t)},D:function(e,t,n){const r=BI(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Wn(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Wn(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Wn(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return Wn(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=wf.noon:r===0?a=wf.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=wf.evening:r>=12?a=wf.afternoon:r>=4?a=wf.morning:a=wf.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Xl.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Xl.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Wn(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Wn(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Xl.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Xl.s(e,t)},S:function(e,t){return Xl.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Qw(r);case"XXXX":case"XX":return $c(r);case"XXXXX":case"XXX":default:return $c(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Qw(r);case"xxxx":case"xx":return $c(r);case"xxxxx":case"xxx":default:return $c(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Yw(r,":");case"OOOO":default:return"GMT"+$c(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Yw(r,":");case"zzzz":default:return"GMT"+$c(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Wn(r,t.length)},T:function(e,t,n){return Wn(+e,t.length)}};function Yw(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return o===0?n+String(a):n+String(a)+t+Wn(o,2)}function Qw(e,t){return e%60===0?(e>0?"-":"+")+Wn(Math.abs(e)/60,2):$c(e,t)}function $c(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Wn(Math.trunc(r/60),2),o=Wn(r%60,2);return n+a+t+o}const $w=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},UN=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},GI=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return $w(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",$w(r,t)).replace("{{time}}",UN(a,t))},WI={p:UN,P:GI},VI=/^D+$/,YI=/^Y+$/,QI=["D","DD","YY","YYYY"];function $I(e){return VI.test(e)}function XI(e){return YI.test(e)}function KI(e,t,n){const r=ZI(e,t,n);if(console.warn(r),QI.includes(e))throw new RangeError(r)}function ZI(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const JI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tU=/^'([^]*?)'?$/,nU=/''/g,rU=/[a-zA-Z]/;function Mv(e,t,n){const r=pg(),a=r.locale??UI,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,l=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,c=Wi(e,n?.in);if(!aI(c))throw new RangeError("Invalid time value");let f=t.match(eU).map(h=>{const m=h[0];if(m==="p"||m==="P"){const y=WI[m];return y(h,a.formatLong)}return h}).join("").match(JI).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const m=h[0];if(m==="'")return{isToken:!1,value:sU(h)};if(Vw[m])return{isToken:!0,value:h};
498if(m.match(rU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:h}});a.localize.preprocessor&&(f=a.localize.preprocessor(c,f));const d={firstWeekContainsDate:o,weekStartsOn:l,locale:a};return f.map(h=>{if(!h.isToken)return h.value;const m=h.value;(XI(m)||$I(m))&&KI(m,t,String(e));const y=Vw[m[0]];return y(c,m,a.localize,d)}).join("")}function sU(e){const t=e.match(tU);return t?t[1].replace(nU,"'"):e}function Xw(e){return{isInsuranceClaim:e.isInsuranceClaim,insuranceCarrier:e.insuranceCarrier||"",claimNumber:e.claimNumber||"",propertyName:e.propertyName,propertyAddress:e.propertyAddress,propertyAddressLine2:e.propertyAddressLine2||"",propertyCity:e.propertyCity,propertyState:e.propertyState,propertyZip:e.propertyZip,frontPropertyImageUrl:e.frontPropertyImageUrl||"",assessmentDate:e.assessmentDate,assessmentTime:e.assessmentTime,assessorFirstName:e.assessorFirstName,assessorLastName:e.assessorLastName,assessorPhone:e.assessorPhone,assessorEmail:e.assessorEmail,temperature:e.temperature,windSpeed:e.windSpeed,cloudCover:e.cloudCover,roofSlopeId:e.roofSlopeId,slopeDirection:e.slopeDirection,assessmentLocation:e.assessmentLocation,locationNotes:e.locationNotes||"",assessmentShingleDefects:e.assessmentShingleDefects||[],preExistingPhotos:e.preExistingPhotos||{targetShingleX:[],overviewChalk:[],shingle1:[],shingle2:[],shingle3:[],shingle4:[],shingle5:[],shingle6:[],shingle7:[],shingle8:[]},assessmentPhotos:e.assessmentPhotos||{overviewTargetRemoved:[],underlayment:[],targetShingleFrontBack:[],targetShingleMeasurements:[],controlShingle:[],afterOverview:[]},shingles:e.shingles,deteriorationScore:e.deteriorationScore,installationErrorsScore:e.installationErrorsScore,previousRepairsScore:e.previousRepairsScore,manufacturingDefectsScore:e.manufacturingDefectsScore,materialObsolescenceScore:e.materialObsolescenceScore,visualIncompatibilityScore:e.visualIncompatibilityScore,finalDetermination:e.finalDetermination,finalNotes:e.finalNotes,isCertified:e.isCertified,certificationNumber:e.certificationNumber||"",certificationDate:e.certificationDate||"",assessorLogoUrl:e.assessorLogoUrl||"",assessorSignatureUrl:e.assessorSignatureUrl||""}}function aU({onLoginSuccess:e}){const[t,n]=F.useState(""),[r,a]=F.useState(""),[o,l]=F.useState(!1),c=Ir.portal.login.useMutation({onSuccess:d=>{d.token&&localStorage.setItem("portal_token",d.token),yn.success("Login successful"),e()},onError:d=>{yn.error(d.message||"Invalid email or password")}}),f=d=>{if(d.preventDefault(),!t.trim()||!r.trim()){yn.error("Please enter both email and password");return}c.mutate({email:t.trim(),password:r})};return x.jsx("div",{"data-loc":"client/src/pages/PortalLogin.tsx:43",className:"min-h-screen bg-[#0B1120] flex items-center justify-center p-4",children:x.jsxs(Jr,{"data-loc":"client/src/pages/PortalLogin.tsx:44",className:"w-full max-w-md bg-white border-0 shadow-2xl",children:[x.jsxs(wh,{"data-loc":"client/src/pages/PortalLogin.tsx:45",className:"text-center pb-2",children:[x.jsx("div",{"data-loc":"client/src/pages/PortalLogin.tsx:46",className:"mx-auto w-14 h-14 bg-emerald-100 rounded-full flex items-center justify-center mb-3",children:x.jsx(Zd,{"data-loc":"client/src/pages/PortalLogin.tsx:47",className:"w-7 h-7 text-emerald-600"})}),x.jsx(Sh,{"data-loc":"client/src/pages/PortalLogin.tsx:49",className:"text-2xl font-bold text-gray-900",children:"Assessment Portal"}),x.jsx(Ym,{"data-loc":"client/src/pages/PortalLogin.tsx:52",className:"text-gray-500 mt-1",children:"Sign in to view and download assessment reports"})]}),x.jsxs(ba,{"data-loc":"client/src/pages/PortalLogin.tsx:56",className:"pt-4",children:[x.jsxs("form",{"data-loc":"client/src/pages/PortalLogin.tsx:57",onSubmit:f,className:"space-y-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/PortalLogin.tsx:58",className:"space-y-2",children:[x.jsx(Vt,{"data-loc":"client/src/pages/PortalLogin.tsx:59",htmlFor:"email",className:"text-gray-700 font-medium",children:"Email Address"}),x.jsxs("div",{"data-loc":"client/src/pages/PortalLogin.tsx:62",className:"relative",children:[x.jsx(r2,{"data-loc":"client/src/pages/PortalLogin.tsx:63",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),x.jsx(lr,{"data-loc":"client/src/pages/PortalLogin.tsx:64",id:"email",type:"email",placeholder:"Enter your email",value:t,onChange:d=>n(d.target.value),className:"pl-10 h-11 bg-gray-50 border-gray-200 focus:bg-white",autoComplete:"email",autoFocus:!0})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/PortalLogin.tsx:77",className:"space-y-2",children:[x.jsx(Vt,{"data-loc":"client/src/pages/PortalLogin.tsx:78",htmlFor:"password",className:"text-gray-700 font-medium",children:"Password"}),x.jsxs("div",{"data-loc":"client/src/pages/PortalLogin.tsx:81",className:"relative",children:[x.jsx(Zd,{"data-loc":"client/src/pages/PortalLogin.tsx:82",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),x.jsx(lr,{"data-loc":"client/src/pages/PortalLogin.tsx:83",id:"password",type:o?"text":"password",placeholder:"Enter your password",value:r,onChange:d=>
498a(d.target.value),className:"pl-10 pr-10 h-11 bg-gray-50 border-gray-200 focus:bg-white",autoComplete:"current-password"}),x.jsx("button",{"data-loc":"client/src/pages/PortalLogin.tsx:92",type:"button",onClick:()=>l(!o),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",tabIndex:-1,children:o?x.jsx(Yp,{"data-loc":"client/src/pages/PortalLogin.tsx:98",className:"w-4 h-4"}):x.jsx(Kd,{"data-loc":"client/src/pages/PortalLogin.tsx:98",className:"w-4 h-4"})})]})]}),x.jsx(Bn,{"data-loc":"client/src/pages/PortalLogin.tsx:103",type:"submit",className:"w-full h-11 bg-emerald-600 hover:bg-emerald-700 text-white font-medium",disabled:c.isPending,children:c.isPending?"Signing in...":"Sign In"})]}),x.jsx("p",{"data-loc":"client/src/pages/PortalLogin.tsx:112",className:"text-center text-xs text-gray-400 mt-6",children:"Contact your administrator for access credentials"})]})]})})}function iU({userName:e,onPasswordChanged:t}){const[n,r]=F.useState(""),[a,o]=F.useState(""),[l,c]=F.useState(""),[f,d]=F.useState(!1),[h,m]=F.useState(!1),[y,g]=F.useState(!1),N=Ir.portal.changePassword.useMutation({onSuccess:()=>{yn.success("Password changed successfully!"),t()},onError:E=>{yn.error(E.message||"Failed to change password")}}),w=E=>{if(E.preventDefault(),!n.trim()){yn.error("Please enter your current password");return}if(!a.trim()){yn.error("Please enter a new password");return}if(a.length<6){yn.error("New password must be at least 6 characters");return}if(a!==l){yn.error("New passwords do not match");return}if(n===a){yn.error("New password must be different from your current password");return}N.mutate({currentPassword:n,newPassword:a})};return x.jsx("div",{"data-loc":"client/src/components/ChangePassword.tsx:64",className:"min-h-screen bg-[#0B1120] flex items-center justify-center p-4",children:x.jsxs(Jr,{"data-loc":"client/src/components/ChangePassword.tsx:65",className:"w-full max-w-md bg-white border-0 shadow-2xl",children:[x.jsxs(wh,{"data-loc":"client/src/components/ChangePassword.tsx:66",className:"text-center pb-2",children:[x.jsx("div",{"data-loc":"client/src/components/ChangePassword.tsx:67",className:"mx-auto w-14 h-14 bg-amber-100 rounded-full flex items-center justify-center mb-3",children:x.jsx(jj,{"data-loc":"client/src/components/ChangePassword.tsx:68",className:"w-7 h-7 text-amber-600"})}),x.jsx(Sh,{"data-loc":"client/src/components/ChangePassword.tsx:70",className:"text-2xl font-bold text-gray-900",children:"Set Your Password"}),x.jsxs(Ym,{"data-loc":"client/src/components/ChangePassword.tsx:73",className:"text-gray-500 mt-1",children:[e?`Welcome, ${e}!`:"Welcome!"," Please set a new password to continue."]})]}),x.jsxs(ba,{"data-loc":"client/src/components/ChangePassword.tsx:77",className:"pt-4",children:[x.jsxs("form",{"data-loc":"client/src/components/ChangePassword.tsx:78",onSubmit:w,className:"space-y-5",children:[x.jsxs("div",{"data-loc":"client/src/components/ChangePassword.tsx:80",className:"space-y-2",children:[x.jsx(Vt,{"data-loc":"client/src/components/ChangePassword.tsx:81",htmlFor:"currentPassword",className:"text-gray-700 font-medium",children:"Current Password"}),x.jsxs("div",{"data-loc":"client/src/components/ChangePassword.tsx:84",className:"relative",children:[x.jsx(Zd,{"data-loc":"client/src/components/ChangePassword.tsx:85",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),x.jsx(lr,{"data-loc":"client/src/components/ChangePassword.tsx:86",id:"currentPassword",type:f?"text":"password",placeholder:"Enter your current password",value:n,onChange:E=>r(E.target.value),className:"pl-10 pr-10 h-11 bg-gray-50 border-gray-200 focus:bg-white",autoComplete:"current-password",autoFocus:!0}),x.jsx("button",{"data-loc":"client/src/components/ChangePassword.tsx:96",type:"button",onClick:()=>d(!f),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",tabIndex:-1,children:f?x.jsx(Yp,{"data-loc":"client/src/components/ChangePassword.tsx:102",className:"w-4 h-4"}):x.jsx(Kd,{"data-loc":"client/src/components/ChangePassword.tsx:102",className:"w-4 h-4"})})]}),x.jsx("p",{"data-loc":"client/src/components/ChangePassword.tsx:105",className:"text-xs text-gray-400",children:"Enter the temporary password you were given"})]}),x.jsxs("div",{"data-loc":"client/src/components/ChangePassword.tsx:111",className:"space-y-2",children:[x.jsx(Vt,{"data-loc":"client/src/components/ChangePassword.tsx:112",htmlFor:"newPassword",className:"text-gray-700 font-medium",children:"New Password"}),x.jsxs("div",{"data-loc":"client/src/components/ChangePassword.tsx:115",className:"relative",children:[x.jsx(Zd,{"data-loc":"client/src/components/ChangePassword.tsx:116",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),x.jsx(lr,{"data-loc":"client/src/components/ChangePassword.tsx:117",id:"newPassword",type:h?"text":"password",placeholder:"Choose a new password",value:a,onChange:E=>o(E.target.value),className:"pl-10 pr-10 h-11 bg-gray-50 border-gray-200 focus:bg-white",autoComplete:"new-password"}),x.jsx("button",{"data-loc":"client/src/components/ChangePassword.tsx:126",type:"button",onClick:()=>m(!h),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",tabIndex:-1,
498children:h?x.jsx(Yp,{"data-loc":"client/src/components/ChangePassword.tsx:132",className:"w-4 h-4"}):x.jsx(Kd,{"data-loc":"client/src/components/ChangePassword.tsx:132",className:"w-4 h-4"})})]}),x.jsx("p",{"data-loc":"client/src/components/ChangePassword.tsx:135",className:"text-xs text-gray-400",children:"Must be at least 6 characters"})]}),x.jsxs("div",{"data-loc":"client/src/components/ChangePassword.tsx:141",className:"space-y-2",children:[x.jsx(Vt,{"data-loc":"client/src/components/ChangePassword.tsx:142",htmlFor:"confirmPassword",className:"text-gray-700 font-medium",children:"Confirm New Password"}),x.jsxs("div",{"data-loc":"client/src/components/ChangePassword.tsx:145",className:"relative",children:[x.jsx(Zd,{"data-loc":"client/src/components/ChangePassword.tsx:146",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),x.jsx(lr,{"data-loc":"client/src/components/ChangePassword.tsx:147",id:"confirmPassword",type:y?"text":"password",placeholder:"Re-enter your new password",value:l,onChange:E=>c(E.target.value),className:"pl-10 pr-10 h-11 bg-gray-50 border-gray-200 focus:bg-white",autoComplete:"new-password"}),x.jsx("button",{"data-loc":"client/src/components/ChangePassword.tsx:156",type:"button",onClick:()=>g(!y),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",tabIndex:-1,children:y?x.jsx(Yp,{"data-loc":"client/src/components/ChangePassword.tsx:162",className:"w-4 h-4"}):x.jsx(Kd,{"data-loc":"client/src/components/ChangePassword.tsx:162",className:"w-4 h-4"})})]})]}),x.jsx(Bn,{"data-loc":"client/src/components/ChangePassword.tsx:167",type:"submit",className:"w-full h-11 bg-amber-600 hover:bg-amber-700 text-white font-medium",disabled:N.isPending,children:N.isPending?"Updating Password...":"Set New Password"})]}),x.jsx("p",{"data-loc":"client/src/components/ChangePassword.tsx:176",className:"text-center text-xs text-gray-400 mt-6",children:"You must change your password before accessing the portal"})]})]})})}function oU({email:e,name:t,onBack:n}){const{data:r,isLoading:a,refetch:o}=Ir.assessment.byEmail.useQuery({email:e}),[l,c]=F.useState(null),[f,d]=F.useState(null),[h,m]=F.useState(null),[y,g]=F.useState(null),[N,w]=F.useState(!1),E=Ir.assessment.delete.useMutation({onSuccess:()=>{yn.success("Assessment deleted successfully"),o(),d(null)},onError:()=>{yn.error("Failed to delete assessment")}}),_=Ir.assessment.uploadPdf.useMutation(),z=U=>U<=2?"bg-green-500/20 text-green-500 border-green-500/50":U<=4?"bg-yellow-500/20 text-yellow-500 border-yellow-500/50":"bg-red-500/20 text-red-500 border-red-500/50",H=async U=>{try{if(m(U.id),U.pdfUrl){const j=document.createElement("a");j.href=U.pdfUrl,j.download=`Repairability_Assessment_${U.propertyName?.replace(/\s+/g,"_")||U.id}.pdf`,j.target="_blank",document.body.appendChild(j),j.click(),document.body.removeChild(j),yn.success("Downloading PDF...");return}yn.info("Generating PDF...");const G=Xw(U),O=await dh(G),R=URL.createObjectURL(O),Q=document.createElement("a");Q.href=R,Q.download=`Repairability_Assessment_${U.propertyName.replace(/\s+/g,"_")}_${U.assessmentDate}.pdf`,document.body.appendChild(Q),Q.click(),document.body.removeChild(Q),URL.revokeObjectURL(R),yn.success("PDF downloaded successfully!")}catch(G){console.error("Error generating PDF:",G),yn.error("Failed to generate PDF")}finally{m(null)}},k=async U=>{try{g(U.id),yn.info("Generating and storing PDF...");const G=Xw(U),O=await dh(G),R=new FileReader,j=await new Promise(D=>{R.onloadend=()=>{const $=R.result,W=$.split(",")[1]||$;D(W)},R.readAsDataURL(O)});await _.mutateAsync({id:U.id,base64Data:j,filename:`assessment_${U.id}.pdf`}),yn.success("PDF stored successfully!"),o()}catch(G){console.error("Error backfilling PDF:",G),yn.error("Failed to store PDF")}finally{g(null)}};if(r?.filter(U=>!U.pdfUrl).length,a)return x.jsx("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:190",className:"flex items-center justify-center py-12",children:x.jsx(ya,{"data-loc":"client/src/pages/AssessmentHistory.tsx:191",className:"h-8 w-8 animate-spin text-primary"})});const K=r?.[0];return x.jsxs(x.Fragment,{children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:201",className:"mb-6",children:[x.jsxs(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:202",variant:"outline",size:"sm",onClick:n,className:"mb-4",children:[x.jsx(iv,{"data-loc":"client/src/pages/AssessmentHistory.tsx:203",className:"h-4 w-4 mr-1"}),"All Contacts"]}),x.jsx(Jr,{"data-loc":"client/src/pages/AssessmentHistory.tsx:206",className:"bg-primary/5 border-primary/20",children:x.jsx(ba,{"data-loc":"client/src/pages/AssessmentHistory.tsx:207",className:"py-6",children:x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:208",className:"flex items-start gap-4",children:[x.jsx("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:209",className:"h-14 w-14 roun
498ded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:x.jsx(nS,{"data-loc":"client/src/pages/AssessmentHistory.tsx:210",className:"h-7 w-7 text-primary"})}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:212",className:"flex-1 min-w-0",children:[x.jsx("h2",{"data-loc":"client/src/pages/AssessmentHistory.tsx:213",className:"text-2xl font-bold text-foreground",children:t}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:214",className:"flex flex-col sm:flex-row sm:items-center gap-1 sm:gap-4 mt-1",children:[x.jsxs("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:215",className:"text-sm text-muted-foreground flex items-center gap-1.5",children:[x.jsx(r2,{"data-loc":"client/src/pages/AssessmentHistory.tsx:216",className:"h-3.5 w-3.5"}),e]}),K?.assessorPhone&&x.jsxs("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:220",className:"text-sm text-muted-foreground flex items-center gap-1.5",children:[x.jsx(Cj,{"data-loc":"client/src/pages/AssessmentHistory.tsx:221",className:"h-3.5 w-3.5"}),K.assessorPhone]})]}),x.jsxs("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:226",className:"text-sm text-muted-foreground mt-2",children:[r?.length||0," assessment",(r?.length||0)!==1?"s":""," submitted"]})]})]})})})]}),l?null:r&&r.length===0?x.jsx(Jr,{"data-loc":"client/src/pages/AssessmentHistory.tsx:239",children:x.jsxs(ba,{"data-loc":"client/src/pages/AssessmentHistory.tsx:240",className:"py-12 text-center",children:[x.jsx(tS,{"data-loc":"client/src/pages/AssessmentHistory.tsx:241",className:"h-12 w-12 mx-auto mb-4 text-muted-foreground"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:242",className:"text-lg font-semibold mb-2",children:"No assessments found"})]})}):x.jsx("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:246",className:"space-y-3",children:r?.map(U=>x.jsx(Jr,{"data-loc":"client/src/pages/AssessmentHistory.tsx:248",className:"hover:shadow-md transition-shadow",children:x.jsx(ba,{"data-loc":"client/src/pages/AssessmentHistory.tsx:249",className:"py-4 px-5",children:x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:250",className:"flex items-center justify-between gap-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:251",className:"flex-1 min-w-0",children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:252",className:"flex items-center gap-2 mb-1",children:[x.jsx("h3",{"data-loc":"client/src/pages/AssessmentHistory.tsx:253",className:"font-semibold text-base truncate",children:U.propertyName}),x.jsxs(Pf,{"data-loc":"client/src/pages/AssessmentHistory.tsx:254",className:`${z(U.totalRepairabilityScore)} flex-shrink-0 text-xs`,children:["Score: ",U.totalRepairabilityScore]}),U.pdfUrl?x.jsxs(Pf,{"data-loc":"client/src/pages/AssessmentHistory.tsx:258",variant:"outline",className:"text-xs text-green-600 border-green-300 bg-green-50 flex-shrink-0",children:[x.jsx(yj,{"data-loc":"client/src/pages/AssessmentHistory.tsx:259",className:"h-3 w-3 mr-1"}),"PDF Stored"]}):x.jsx(Pf,{"data-loc":"client/src/pages/AssessmentHistory.tsx:263",variant:"outline",className:"text-xs text-amber-600 border-amber-300 bg-amber-50 flex-shrink-0",children:"No PDF"})]}),x.jsxs("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:268",className:"text-sm text-muted-foreground flex items-center gap-1 truncate",children:[x.jsx(_j,{"data-loc":"client/src/pages/AssessmentHistory.tsx:269",className:"h-3 w-3 flex-shrink-0"}),U.propertyAddress,", ",U.propertyCity,", ",U.propertyState," ",U.propertyZip]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:272",className:"flex items-center gap-4 mt-1.5 text-xs text-muted-foreground",children:[x.jsxs("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:273",className:"flex items-center gap-1",children:[x.jsx(xj,{"data-loc":"client/src/pages/AssessmentHistory.tsx:274",className:"h-3 w-3"}),Mv(new Date(U.createdAt),"MMM d, yyyy")]}),x.jsxs("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:277",children:["Damaged: ",U.totalDamagedShingles," shingles"]}),U.isInsuranceClaim&&x.jsx(Pf,{"data-loc":"client/src/pages/AssessmentHistory.tsx:279",variant:"outline",className:"text-xs py-0",children:"Insurance Claim"})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:283",className:"flex items-center gap-2 flex-shrink-0",children:[x.jsx(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:284",variant:"outline",size:"sm",onClick:()=>{c(U),window.scrollTo({top:0,behavior:"smooth"}),window.parent.postMessage({type:"bei-directory-scroll-to-top"},"*")},children:x.jsx(Kd,{"data-loc":"client/src/pages/AssessmentHistory.tsx:293",className:"h-4 w-4"})}),x.jsx(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:295",variant:"outline",size:"sm",onClick:()=>H(U),disabled:h===U.id,title:U.pdfUrl?"Download PDF":"Generate & download PDF",children:h===U.id?x.jsx(ya,{"data-loc":"client/src/pages/AssessmentHistory.tsx:303",className:"h-4 w-4 animate-spin"}):x.jsx(hm,{"data-loc":"client/src/pages/AssessmentHistory.tsx:305",className:"h-4 w-4"})}),!U.pdfUrl&&x.jsx(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:309",variant:"outline",size:"sm",onClick:()=>k(U),disabled:y===U.id||N,title:"Generate & store PDF to S3",children:y===U.id?x.jsx(ya,{"data-loc":"client/src/pages/AssessmentHistory.tsx:317",className:"h-4 w-4 animate-spin"}):x.jsx(ov,{"data-loc":"client/src/pages/AssessmentHistory.tsx:319",className:"h-4 w-4"})}),x.jsxs(dA,{"data-loc":"client/src/pages/AssessmentHistory.tsx:323",open:f===U.id,onOpenChange:G=>{G||d(null)},children:[x.jsx(hA,{"data-loc":"client/src/pages/AssessmentHistory.tsx:327",asChild:!0,children:x.jsx(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:328",variant:"outline",size:"sm",onClick:()=>d(U.id),children:x.jsx(Oj,{"data-loc":"client/src/pages/AssessmentHistory.tsx:333",className:"h-4 w-4"})})}),x.jsx(pA,{"data-loc":"client/src/pages/AssessmentHistory.tsx:336",align:"end",className:"w-72",children:x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:337",className:"space-y-3",children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:338",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:339",className:"font-semibold text-sm",children:"Delete Assessment"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:340",className:"text-xs text-muted-foreground mt-1",children:"Are you sure? This action cannot be undone."})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:344",className:"flex justify-end gap-2",children:[x.jsx(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:345",variant:"outline",size:"sm",onClick:()=>d(null),children:"Cancel"}),x.jsx(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:352",variant:"destructive",size:"sm",onClick:()=>f&&E.mutate({id:f}),children:"Delete"})]})]})})]})]})]})})},U.id))}),l&&x.jsxs(Jr,{"data-loc":"client/src/pages/AssessmentHistory.tsx:373",className:"mt-4",children:[x.jsxs(wh,{"data-loc":"client/src/pages/AssessmentHistory.tsx:374",className:"pb-4",children:[x.jsx("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:375",className:"flex items-center gap-2 mb-2",children:x.jsxs(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:376",variant:"outline",size:"sm",onClick:()=>c(null),children:[x.jsx(iv,{"data-loc":"client/src/pages/AssessmentHistory.tsx:377",className:"h-4 w-4 mr-1"}),"Back to List"]})}),x.jsx(Sh,{"data-loc":"client/src/pages/AssessmentHistory.tsx:381",children:l.propertyName}),x.jsxs(Ym,{"data-loc":"client/src/pages/AssessmentHistory.tsx:382",children:["Assessment completed on ",Mv(new Date(l.createdAt),"MMMM d, yyyy 'at' h:mm a")]})]}),x.jsxs(ba,{"data-loc":"client/src/pages/AssessmentHistory.tsx:386",className:"space-y-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:387",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:388",className:"space-y-1",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:389",className:"text-sm font-semibold text-muted-foreground",children:"Property Address"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:390",children:l.propertyAddress}),l.propertyAddressLine2&&x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:392",children:l.propertyAddressLine2}),x.jsxs("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:394",children:[l.propertyCity,", ",l.propertyState," ",l.propertyZip]})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:396",className:"space-y-1",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:397",className:"text-sm font-semibold text-muted-foreground",children:"Assessor"}),x.jsxs("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:398",className:"font-medium",children:[l.assessorFirstName," ",l.assessorLastName]}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:399",className:"text-sm text-muted-foreground",children:l.assessorEmail}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:400",className:"text-sm text-muted-foreground",children:l.assessorPhone})]})]}),l.isInsuranceClaim&&x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:404",className:"p-3 bg-muted/50 rounded-lg",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:405",className:"text-sm font-semibold text-muted-foreground mb-1",children:"Insurance Claim"}),x.jsxs("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:406",className:"text-sm",children:["Carrier: ",l.insuranceCarrier||"N/A"]}),x.jsxs("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:407",className:"text-sm",children:["Claim #: ",l.claimNumber||"N/A"]})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:410",className:"grid grid-cols-3 gap-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:411",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:412",className:"text-xs font-semibold text-muted-foreground",children:"Date"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:413",className:"text-sm",children:l.assessmentDate})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:415",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:416",className:"text-xs font-semibold text-muted-foreground",children:"Temperature"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:417",className:"text-sm",children:l.temperature})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:419",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:420",className:"text-xs font-semibold text-muted-foreground",children:"Wind Speed"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:421",className:"text-sm",children:l.windSpeed})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:424",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:425",className:"text-sm font-semibold text-muted-foreground mb-2",children:"Condition Scores"}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:426",className:"grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm",children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:427",className:"flex justify-between",children:[x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:428",children:"Deterioration:"}),x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:429",className:"font-medium",children:l.deteriorationScore})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:431",className:"flex justify-between",children:[x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:432",children:"Installation Errors:"}),x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:433",className:"font-medium",children:l.installationErrorsScore})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:435",className:"flex justify-between",children:[x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:436",children:"Previous Repairs:"}),x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:437",className:"font-medium",children:l.previousRepairsScore})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:439",className:"flex justify-between",children:[x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:440",children:"Manufacturing Defects:"}),x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:441",className:"font-medium",children:l.manufacturingDefectsScore})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:443",className:"flex justify-between",children:[x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:444",children:"Material Obsolescence:"}),x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:445",className:"font-medium",children:l.materialObsolescenceScore})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:447",className:"flex justify-between",children:[x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:448",children:"Visual Incompatibility:"}),x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:449",className:"font-medium",children:l.visualIncompatibilityScore})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:452",className:"mt-4 pt-4 border-t flex justify-between items-center",children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:453",children:[x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:454",className:"font-semibold",children:"Total Repairability Score:"}),x.jsxs("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:455",className:"text-sm text-muted-foreground ml-2",children:["(Damaged: ",l.totalDamagedShingles," + Conditions: ",l.generalConditionsTotal,")"]})]}),x.jsx(Pf,{"data-loc":"client/src/pages/AssessmentHistory.tsx:459",className:z(l.totalRepairabilityScore),children:l.totalRepairabilityScore})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:464",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:465",className:"text-sm font-semibold text-muted-foreground mb-2",children:"Final Determination"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:466",className:"text-sm",children:l.finalDetermination})]}),l.finalNotes&&x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:469",children:[x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:470",className:"text-sm font-semibold text-muted-foreground mb-2",children:"Final Notes"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:471",className:"text-sm whitespace-pre-wrap",children:l.finalNotes})]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:474",className:"flex gap-2 pt-2",children:[x.jsxs(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:475",onClick:()=>H(l),className:"flex-1",disabled:h===l.id,children:[h===l.id?x.jsx(ya,{"data-loc":"client/src/pages/AssessmentHistory.tsx:481",className:"h-4 w-4 mr-2 animate-spin"}):x.jsx(hm,{"data-loc":"client/src/pages/AssessmentHistory.tsx:483",className:"h-4 w-4 mr-2"}),"Download PDF Report"]}),!l.pdfUrl&&x.jsxs(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:488",variant:"outline",onClick:()=>k(l),disabled:y===l.id,children:[y===l.id?x.jsx(ya,{"data-loc":"client/src/pages/AssessmentHistory.tsx:494",className:"h-4 w-4 mr-2 animate-spin"}):x.jsx(ov,{"data-loc":"client/src/pages/AssessmentHistory.tsx:496",className:"h-4 w-4 mr-2"}),"Store PDF"]})]})]})]})]})}function lU(){const{data:e,isLoading:t,refetch:n}=Ir.portal.me.useQuery(),r=Ir.portal.logout.useMutation({onSuccess:()=>{localStorage.removeItem("portal_token"),n()}}),a=F.useCallback(()=>{n(),window.scrollTo({top:0,behavior:"smooth"}),window.parent.postMessage({type:"bei-directory-scroll-to-top"},"*")},[n]);return t?x.jsx("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:532",className:"min-h-screen bg-[#0B1120] flex items-center justify-center",children:x.jsx(ya,{"data-loc":"client/src/pages/AssessmentHistory.tsx:533",className:"h-8 w-8 animate-spin text-emerald-50
4980"})}):e?e.mustChangePassword?x.jsx(iU,{"data-loc":"client/src/pages/AssessmentHistory.tsx:545",userName:e.name,onPasswordChanged:()=>n()}):x.jsx(cU,{"data-loc":"client/src/pages/AssessmentHistory.tsx:552",portalUser:e,onLogout:()=>r.mutate()}):x.jsx(aU,{"data-loc":"client/src/pages/AssessmentHistory.tsx:539",onLoginSuccess:a})}function cU({portalUser:e,onLogout:t}){const[n,r]=F.useState(""),[a,o]=F.useState(null),{data:l,isLoading:c}=Ir.assessment.contacts.useQuery(),{data:f,refetch:d}=Ir.assessment.list.useQuery(),[h,m]=F.useState(!1),[y,g]=F.useState({done:0,total:0});Ir.assessment.uploadPdf.useMutation(),F.useMemo(()=>(f||[]).filter(E=>!E.pdfUrl).length,[f]);const N=F.useMemo(()=>{if(!l)return[];if(!n.trim())return l;const E=n.toLowerCase();return l.filter(_=>_.assessorFirstName.toLowerCase().includes(E)||_.assessorLastName.toLowerCase().includes(E)||_.assessorEmail.toLowerCase().includes(E)||_.assessorPhone.toLowerCase().includes(E)||`${_.assessorFirstName} ${_.assessorLastName}`.toLowerCase().includes(E))},[l,n]),w=F.useMemo(()=>(l||[]).reduce((E,_)=>E+_.submissionCount,0),[l]);return c?x.jsx("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:650",className:"min-h-screen bg-background flex items-center justify-center",children:x.jsx(ya,{"data-loc":"client/src/pages/AssessmentHistory.tsx:651",className:"h-8 w-8 animate-spin text-primary"})}):x.jsx("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:657",className:"min-h-screen bg-background py-8",children:x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:658",className:"container max-w-7xl",children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:660",className:"mb-8",children:[a&&x.jsx("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:662",className:"flex items-center gap-3 mb-4",children:x.jsxs(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:663",variant:"outline",size:"sm",onClick:()=>o(null),children:[x.jsx(iv,{"data-loc":"client/src/pages/AssessmentHistory.tsx:664",className:"h-4 w-4 mr-1"}),"All Contacts"]})}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:669",className:"flex items-center justify-between",children:[x.jsx("h1",{"data-loc":"client/src/pages/AssessmentHistory.tsx:670",className:"text-4xl font-bold text-foreground mb-2",children:"Assessment History"}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:671",className:"flex items-center gap-3",children:[x.jsx("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:672",className:"text-sm text-muted-foreground",children:e.name||e.email}),x.jsxs(Bn,{"data-loc":"client/src/pages/AssessmentHistory.tsx:675",variant:"outline",size:"sm",onClick:t,children:[x.jsx(Nj,{"data-loc":"client/src/pages/AssessmentHistory.tsx:676",className:"h-4 w-4 mr-1"}),"Sign Out"]})]})]}),x.jsxs("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:681",className:"text-muted-foreground",children:[l?.length||0," assessor",(l?.length||0)!==1?"s":""," · ",w," total submission",w!==1?"s":""]})]}),a?x.jsx(oU,{"data-loc":"client/src/pages/AssessmentHistory.tsx:688",email:a.email,name:a.name,onBack:()=>o(null)}):x.jsxs(x.Fragment,{children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:696",className:"mb-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:697",className:"relative",children:[x.jsx(Tj,{"data-loc":"client/src/pages/AssessmentHistory.tsx:698",className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),x.jsx(lr,{"data-loc":"client/src/pages/AssessmentHistory.tsx:699",placeholder:"Search by assessor name, email, or phone...",value:n,onChange:E=>r(E.target.value),className:"pl-10 h-12 text-base"})]}),n&&N&&x.jsxs("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:707",className:"text-sm text-muted-foreground mt-2",children:["Found ",N.length," contact",N.length!==1?"s":""," for â",n,"â"]})]}),N.length===0?x.jsx(Jr,{"data-loc":"client/src/pages/AssessmentHistory.tsx:715",children:x.jsxs(ba,{"data-loc":"client/src/pages/AssessmentHistory.tsx:716",className:"py-12 text-center",children:[x.jsx(Rj,{"data-loc":"client/src/pages/AssessmentHistory.tsx:717",className:"h-12 w-12 mx-auto mb-4 text-muted-foreground"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:718",className:"text-lg font-semibold mb-2",children:"No contacts found"}),x.jsx("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:719",className:"text-muted-foreground",children:n?"Try adjusting your search criteria":"Complete your first assessment to see contacts here"})]})}):x.jsx("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:727",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:N.map(E=>{const _=`${E.assessorFirstName} ${E.assessorLastName}`;return x.jsx(Jr,{"data-loc":"client/src/pages/AssessmentHistory.tsx:731",className:"hover:shadow-lg hover:border-primary/30 transition-all cursor-pointer group",onClick:()=>o({email:E.assessorEmail,name:_}),children:x.jsx(ba,{"data-loc":"client/src/pages/AssessmentHistory.tsx:736",className:"py-5 px-5",children:x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:737",className:"flex items-center gap-4",children:[x.jsx("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:738",className:"h-12 w-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0 group-hover:bg-primary/20 transition-colors",children:x.jsx(nS,{"data-loc":"client/src/pages/AssessmentHistory.tsx:739",className:"h-6 w-6 text-primary"})}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:741",className:"flex-1 min-w-0",children:[x.jsx("h3",{"data-loc":"client/src/pages/AssessmentHistory.tsx:742",className:"font-semibold text-base truncate group-hover:text-primary transition-colors",children:_}),x.jsxs("p",{"data-loc":"client/src/pages/AssessmentHistory.tsx:745",className:"text-sm text-muted-foreground truncate flex items-center gap-1",children:[x.jsx(r2,{"data-loc":"client/src/pages/AssessmentHistory.tsx:746",className:"h-3 w-3 flex-shrink-0"}),E.assessorEmail]}),x.jsxs("div",{"data-loc":"client/src/pages/AssessmentHistory.tsx:749",className:"flex items-center gap-3 mt-1.5",children:[x.jsxs(Pf,{"data-loc":"client/src/pages/AssessmentHistory.tsx:750",variant:"secondary",className:"text-xs",children:[E.submissionCount," submission",E.submissionCount!==1?"s":""]}),x.jsxs("span",{"data-loc":"client/src/pages/AssessmentHistory.tsx:753",className:"text-xs text-muted-foreground",children:["Last: ",Mv(new Date(E.latestSubmission),"MMM d, yyyy")]})]})]}),x.jsx(eS,{"data-loc":"client/src/pages/AssessmentHistory.tsx:758",className:"h-5 w-5 text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0"})]})})},E.assessorEmail)})})]})]})})}const Sf="/manus-storage/roof_hail_damage_cae8e3e9.jpg",Hd="/manus-storage/roof_damage_overview_fab0c48d.jpg",qd="/manus-storage/shingle_scuffs_34e27ed1.jpg",Gd="/manus-storage/assessment_shingle_883e5c88.jpg",Af="/manus-storage/roof_inspection_61b759cf.jpg",Wd="/manus-storage/roof_storm_damage_8a9cccf9.jpg",uU="/manus-storage/underlayment_exposed_e3335919.jpg",fU="/manus-storage/underlayment_install_e9d36281.jpg",Kw="/manus-storage/chalk_outline_da7cc267.jpg",O1="/manus-storage/assessment_process_3f116d29.jpg",L1="/manus-storage/shingle_repair_test_e4d5a457.jpg",dU="/manus-storage/underlayment_detail_3a5068d4.jpg",hU={isInsuranceClaim:!0,insuranceCarrier:"State Farm Insurance",claimNumber:"SF-2024-123456",propertyName:"Johnson Residence",propertyAddress:"1234 Oak Street",propertyAddressLine2:"Unit 5B",propertyCity:"Austin",propertyState:"TX",propertyZip:"78701",frontPropertyImageUrl:Wd,assessmentDate:"2024-01-15",assessmentTime:"10:30",asse
498ssorFirstName:"Michael",assessorLastName:"Thompson",assessorPhone:"(512) 555-0123",assessorEmail:"[email protected]",temperature:"72",windSpeed:"5-10 mph",cloudCover:"Partly Cloudy",roofSlopeId:"North Slope A",slopeDirection:"North",assessmentLocation:"Primary roof section above main entrance",locationNotes:"Easy access from ladder. Area receives minimal direct sunlight.",assessmentShingleDefects:["Wind Damage","Granule Loss"],preExistingPhotos:{targetShingleX:[Sf,qd],overviewChalk:[Kw,Hd],shingle1:[Gd,Af],shingle2:[qd,Sf,Wd],shingle3:[Af],shingle4:[Sf,Hd],shingle5:[Gd],shingle6:[qd,Wd],shingle7:[Sf],shingle8:[Af,Gd]},assessmentPhotos:{overviewTargetRemoved:[Hd,O1,L1],underlayment:[uU,fU,dU],targetShingleFrontBack:[qd,Sf],targetShingleMeasurements:[Gd,Af,L1],controlShingle:[Wd,Hd],afterOverview:[Kw,O1,Af]},shingles:[{damaged:!1,defects:[]},{damaged:!0,defects:["Shingle Hinge / Fracture (Crease)","Applique (Tooth) Delamination","Granule Loss"],imageUrl:Sf},{damaged:!1,defects:[]},{damaged:!0,defects:["Shingle Tearing","Applique (Tooth) Delamination","Common Nail Strip Delamination"],imageUrl:qd},{damaged:!0,defects:["Applique (Tooth) Delamination","Common Nail Strip Delamination","Granule Loss","Blistering"],imageUrl:Gd},{damaged:!0,defects:["Shingle Tearing","Applique (Tooth) Delamination","Granule Loss"],imageUrl:Af},{damaged:!0,defects:["Applique (Tooth) Delamination","Shingle Tearing","Shingle Hinge / Fracture (Crease)"],imageUrl:Wd},{damaged:!0,defects:["Shingle Tearing","Applique (Tooth) Delamination","Granule Loss"],imageUrl:Hd}],deteriorationScore:2,installationErrorsScore:1,previousRepairsScore:0,manufacturingDefectsScore:1,materialObsolescenceScore:2,visualIncompatibilityScore:1,finalDetermination:"4 or More: Repairability is limited and localized repair is not recommended.",finalNotes:`MGC was hired to complete a repair assessment for our client, Amy Poindexter. The Repairability Assessment took place on the rear elevation due to Tree damage on shingle X. It is important to note that the sealant on these shingles is fully activated. To access shingle X, we had to separate the seal on the perimeter shingles, allowing access to the fasteners. Once the fasteners were removed from shingle X, we then removed the fasteners for shingles 5 & 6 as these shingles were correctly installed above shingles X. To access those fasteners, we had to separate the seal on shingles 7 & 8. During the separation of the seal, mat transfer and applique tooth delamination took place and resulted in damage to shingle 5 and shingle 8. If a repair is conducted on this roof, shingle X, 5, & 8 must be removed and replaced. At that point, the perimeter shingles of 5 and shingle 8 must be taken into account. When replacing those shingles, the seals on the perimeter shingles will be separated and there is a high probability of additional Mat Transfer. 499 500Replacement Recommendation: 501Based on the results of this assessment, it is not feasible to repair this roof. The amount of unintended damage that will take place during a repair of this roof validates a full replacement.`,isCertified:!0,certificationNumber:"BEI-2024-001",certificationDate:"2024-01-01",assessorLogoUrl:O1,assessorSignatureUrl:L1};function pU(){const[e,t]=F.useState(!1),n=async()=>{try{t(!0),yn.info("Generating preview PDF with all photo sections..."),console.log("[PDF] Starting PDF generation...");const r=await dh(hU);if(console.log("[PDF] Blob generated, size:",r.size,"type:",r.type),!r||r.size===0)throw new Error("PDF blob is empty (0 bytes)");const a=await r.arrayBuffer(),o=new Uint8Array(a);let l="";const c=8192;for(let m=0;m<o.length;m+=c){const y=o.subarray(m,m+c);l+=String.fromCharCode.apply(null,Array.from(y))}const d=`data:application/pdf;base64,${btoa(l)}`,h=document.createElement("a");h.href=d,h.download=`Preview_Assessment_${Date.now()}.pdf`,document.body.appendChild(h),h.click(),document.body.removeChild(h),yn.success("Preview PDF generated successfully!")}catch(r){console.error("[PDF] Error generating preview PDF:",r),yn.error(`Failed to generate preview PDF: ${r instanceof Error?r.message:"Unknown error"}`)}finally{t(!1)}};return x.jsx("div",{"data-loc":"client/src/pages/PDFPreview.tsx:190",className:"min-h-screen bg-[#0a1628] py-12",children:x.jsx("div",{"data-loc":"client/src/pages/PDFPreview.tsx:191",className:"container max-w-4xl",children:x.jsxs(Jr,{"data-loc":"client/src/pages/PDFPreview.tsx:192",className:"shadow-xl",children:[x.jsxs(wh,{"data-loc":"client/src/pages/PDFPreview.tsx:193",className:"text-center border-b bg-gradient-to-r from-[#0c1f4b] to-[#2c965b] text-white",children:[x.jsxs("div",{"data-loc":"client/src/pages/PDFPreview.tsx:194",className:"flex items-center justify-center gap-3 mb-2",children:[x.jsx(tS,{"data-loc":"client/src/pages/PDFPreview.tsx:195",className:"h-8 w-8"}),x.jsx(Sh,{"data-loc":"client/src/pages/PDFPreview.tsx:196",className:"text-2xl font-bold",children:"PDF Preview Generator"})]}),x.jsx("p",{"data-loc":"client/src/pages/PDFPreview.tsx:198",className:"text-white/90 text-sm",children:"Generate a sample PDF with all photo sections populated to preview the full report layout"})]}),x.jsxs(ba,{"data-loc":"client/src/pages/PDFPreview.tsx:203",className:"pt-8 pb-8 space-y-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/PDFPreview.tsx:204",className:"bg-muted/50 p-6 rounded-lg",children:[x.jsx("h3",{"data-loc":"client/src/pages/PDFPreview.tsx:205",className:"font-semibold text-lg mb-3",children:"Sample Data Included:"}),x.jsxs("ul",{"data-loc":"client/src/pages/PDFPreview.tsx:206",className:"space-y-2 text-sm text-muted-foreground",children:[x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:207",children:"â Complete property and insurance information"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:208",children:"â Assessor details with certification"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:209",children:"â Weather conditions and assessment location"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:210",children:"â 6 damaged shingles with photos and defects"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:211",children:"â General conditions scoring (Total: 7 points)"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:212",children:"â Final notes and determination"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:213",children:"â Signature placeholder"})]}),x.jsx("h4",{"data-loc":"client/src/pages/PDFPreview.tsx:215",className:"font-semibold mt-4 mb-2",children:"Photo Sections (all populated):"}),x.jsxs("ul",{"data-loc":"client/src/pages/PDFPreview.tsx:216",className:"space-y-2 text-sm text-muted-foreground",children:[x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:217",children:"â Pre-Existing Condition Photos â Target Shingle X (2 photos)"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:218",children:"â Pre-Existing Condition Photos â Overview with Chalk (2 photos)"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:219",children:"â Pre-Existing Condition Photos â Shingles 1-8 (1-3 photos each)"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:220",children:"â Assessment Photos â Overview Target Removed (3 photos)"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:221",children:"â Assessment Photos â Underlayment (3 photos)"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:222",children:"â Assessment Photos â Front & Back Target Shingle (2 photos)"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:223",children:"â Assessment Photos â Measurements (3 photos)"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:224",children:"â Assessment Photos â Control Shingle (2 photos)"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:225",children:"â Assessment Photos â After Overview (3 photos)"}),x.jsx("li",{"data-loc":"client/src/pages/PDFPreview.tsx:226",children:"â Shingle Observations Gallery â 6 damaged shingle photos"})]})]}),x.jsx("div",{"data-loc":"client/src/pages/PDFPreview.tsx:230",className:"bg-primary/10 p-4 rounded-lg border border-primary/20",children:x.jsxs("p",{"data-loc":"client/src/pages/PDFPreview.tsx:231",className:"text-sm text-center",children:[x.jsx("strong",{"data-loc":"client/src/pages/PDFPreview.tsx:232",children:"Total Repairability Score:"})," 13 points (6 damaged shingles + 7 general conditions)"]})}),x.jsx(Bn,{"data-loc":"client/src/pages/PDFPreview.tsx:236",onClick:n,disabled:e,size:"lg",className:"w-full",children:e?x.jsxs(x.Fragment,{children:[x.jsx(ya,{"data-loc":"client/src/pages/PDFPreview.tsx:244",className:"h-5 w-5 mr-2 animate-spin"}),"Generating Preview (loading images)..."]}):x.jsxs(x.Fragment,{children:[x.jsx(hm,{"data-loc":"client/src/pages/PDFPreview.tsx:249",className:"h-5 w-5 mr-2"}),"Generate & Download Preview PDF"]})}),x.jsxs("div",{"data-loc":"client/src/pages/PDFPreview.tsx:255",className:"text-center text-sm text-muted-foreground",children:[x.jsx("p",{"data-loc":"client/src/pages/PDFPreview.tsx:256",children:"This preview uses sample roofing images to demonstrate the full report layout."}),x.jsx("p",{"data-loc":"client/src/pages/PDFPreview.tsx:257",children:"The actual PDF will use your uploaded photos with their associated labels."})]})]})]})})})}function mU(){return x.jsxs(rO,{"data-loc":"client/src/App.tsx:16",children:[x.jsx(df,{"data-loc":"client/src/App.tsx:17",path:"/",component:KF}),x.jsx(df,{"data-loc":"client/src/App.tsx:18",path:"/history",component:lU}),x.jsx(df,{"data-loc":"client/src/App.tsx:19",path:"/preview",component:pU}),x.jsx(df,{"data-loc":"client/src/App.tsx:20",path:"/success-preview",children:()=>x.jsx(RN,{"data-loc":"client/src/App.tsx:20",propertyName:"Sample Property",assessorEmail:"[email protected]",onStartNew:()=>{},onDownloadPDF:()=>{},onEmailPDF:()=>{}})}),x.jsx(df,{"data-loc":"client/src/App.tsx:21",path:"/404",component:Xb}),x.jsx(df,{"data-loc":"client/src/App.tsx:23",component:Xb})]})}function gU(){return MN(),x.jsx(sO,{"data-loc":"client/src/App.tsx:36",children:x.jsx(iO,{"data-loc":"client/src/App.tsx:37",defaultTheme:"light",children:x.jsxs(uj,{"data-loc":"client/src/App.tsx:40",children:[x.jsx(b7,{"data-loc":"client/src/App.tsx:41",position:"top-center"}),x.jsx(mU,{"data-loc":"client/src/App.tsx:42"})]})})})}const jm=new w8({defaultOptions:{queries:{retry:(e,t)=>{if(t instanceof wo){const n=t.data?.code;if(n==="UNAUTHORIZED"||n==="FORBIDDEN")return!1}return t instanceof wo&&t.message==="Failed to fetch"?e<3:e<1},retryDelay:e=>Math.min(1e3*2**e,1e4)}}}
501),BN=e=>{!(e instanceof wo)||typeof window>"u"||!(e.message===nE)||(window.location.href=DN())};jm.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;BN(t),console.error("[API Query Error]",t)}});jm.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;BN(t),console.error("[API Mutation Error]",t)}});function Zw(e,t){const n=localStorage.getItem("portal_token"),r=new Headers(t?.headers);return n&&r.set("Authorization",`Bearer ${n}`),globalThis.fetch(e,{...t??{},headers:r,credentials:"include"})}const vU=Ir.createClient({links:[dC({condition(e){return e.path==="assessment.uploadPdf"||e.path==="assessment.uploadImage"},true:EC({url:"/api/trpc",transformer:So,fetch:Zw}),false:TC({url:"/api/trpc",transformer:So,fetch:Zw})})]});lE.createRoot(document.getElementById("root")).render(x.jsx(Ir.Provider,{"data-loc":"client/src/main.tsx:95",client:vU,queryClient:jm,children:x.jsx(A8,{"data-loc":"client/src/main.tsx:96",client:jm,children:x.jsx(gU,{"data-loc":"client/src/main.tsx:97"})})}));export{zn as _,yU as c,Om 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.