PageSourceSearch

https://scoutai.manus.space/assets/index-CQPSl4b8.js

js scoutai.manus.space collected 2026-10-03 05:04:48 UTC 1,910,393 bytes, 985 lines download raw bytes

vendor: 21,668 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-DVc8C-J4.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-C8NyazO9.js","assets/r-DiinP2Uv.js","assets/latex-BUKiar2Z.js","assets/tex-Cppo0RY3.js","assets/liquid-DYVedYrR.js","assets/marko-CPi9NSCl.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-WgofotgN.js","assets/csharp-CX12Zw3r.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-3Dk4HxPD.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-CCoi5OLL.js","assets/vue-html-DAAvJJDi.js","assets/vue-vine-_Ih-lPRR.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
2function Fee(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[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"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var Sg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o4={exports:{}},Id={};/**
3 * @license React
4 * react-jsx-runtime.production.js
5 *
6 * Copyright (c) Meta Platforms, Inc. and affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var C9;function Uee(){if(C9)return Id;C9=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var o in a)o!=="key"&&(i[o]=a[o])}else i=a;return a=i.ref,{$$typeof:e,type:n,key:s,ref:a!==void 0?a:null,props:i}}return Id.Fragment=t,Id.jsx=r,Id.jsxs=r,Id}var O9;function Hee(){return O9||(O9=1,o4.exports=Uee()),o4.exports}var x=Hee(),Ju=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(){}},qee={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Vee=class{#t=qee;#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)}},xu=new Vee;function Gee(e){setTimeout(e,0)}var Ru=typeof window>"u"||"Deno"in globalThis;function $n(){}function Wee(e,t){return typeof e=="function"?e(t):e}function N5(e){return typeof e=="number"&&e>=0&&e!==1/0}function z$(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bl(e,t){return typeof e=="function"?e(t):e}function li(e,t){return typeof e=="function"?e(t):e}function k9(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:i,queryKey:s,stale:o}=e;if(s){if(n){if(t.queryHash!==CT(s,t.options))return!1}else if(!Ph(t.queryKey,s))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||i&&!i(t))}function N9(e,t){const{exact:r,status:n,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(_l(t.options.mutationKey)!==_l(i))return!1}else if(!Ph(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function CT(e,t){return(t?.queryKeyHashFn||_l)(e)}function _l(e){return JSON.stringify(e,(t,r)=>R5(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function Ph(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Ph(e[r],t[r])):!1}var Yee=Object.prototype.hasOwnProperty;function OT(e,t){if(e===t)return e;const r=R9(e)&&R9(t);if(!r&&!(R5(e)&&R5(t)))return t;const a=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),s=i.length,o=r?new Array(s):{};let u=0;for(let c=0;c<s;c++){const h=r?c:i[c],d=e[h],m=t[h];if(d===m){o[h]=d,(r?c<a:Yee.call(e,h))&&u++;continue}if(d===null||m===null||typeof d!="object"||typeof m!="object"){o[h]=m;continue}const v=OT(d,m);o[h]=v,v===d&&u++}return a===s&&u===a?e:o}function Ih(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function R9(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function R5(e){if(!M9(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!M9(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function M9(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xee(e){return new Promise(t=>{xu.setTimeout(t,e)})}function M5(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?OT(e,t):t}function Kee(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Qee(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var $a=Symbol();function $$(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===$a?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function F$(e,t){return typeof e=="function"?e(...t):!!e}var Zee=class extends Ju{#t;#e;#r;constructor(){super(),this.#r=e=>{if(!Ru&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=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"}},kT=new Zee;function P5(){let e,t;const r=new Promise((a,i)=>{e=a,t=i});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}var Jee=Gee;function ete(){let e=[],t=0,r=o=>{o()},n=o=>{o()},a=Jee;const i=o=>{t?e.push(o):a(()=>{r(o)})},s=()=>{const o=e;e=[],o.length&&a(()=>{n(()=>{o.forEach(u=>{r(u)})})})};return{batch:o=>{let u;t++;try{u=o()}finally{t--,t||s()}return u},batchCalls:o=>(...u)=>{i(()=>{o(...u)})},schedule:i,setNotifyFunction:o=>{r=o},setBatchNotifyFunction:o=>{n=o},setScheduler:o=>{a=o}}}var Dr=ete(),tte=class extends Ju{#t=!0;#e;#r;constructor(){super(),this.#r=e=>{if(!Ru&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},j1=new tte;function rte(e){return Math.min(1e3*2**e,3e4)}function U$(e){return(e??"online")==="online"?j1.isOnline():!0}var I5=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function H$(e){let t=!1,r=0,n;const a=P5(),i=()=>a.status!=="pending",s=b=>{if(!i()){const E=new I5(b);m(E),e.onCancel?.(E)}},o=()=>{t=!0},u=()=>{t=!1},c=()=>kT.isFocused()&&(e.networkMode==="always"||j1.isOnline())&&e.canRun(),h=()=>U$(e.networkMode)&&e.canRun(),d=b=>{i()||(n?.(),a.resolve(b))},m=b=>{i()||(n?.(),a.reject(b))},v=()=>new Promise(b=>{n=E=>{(i()||c())&&b(E)},e.onPause?.()}).then(()=>{n=void 0,i()||e.onContinue?.()}),y=()=>{if(i())return;let b;const E=r===0?e.initialPromise:void 0;try{b=E??e.fn()}catch(_){b=Promise.reject(_)}Promise.resolve(b).then(d).catch(_=>{if(i())return;const T=e.retry??(Ru?0:3),C=e.retryDelay??rte,P=typeof C=="function"?C(r,_):C,O=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,_);if(t||!O){m(_);return}r++,e.onFail?.(r,_),Xee(P).then(()=>c()?void 0:v()).then(()=>{t?m(_):y()})})};return{promise:a,status:()=>a.status,cancel:s,continue:()=>(n?.(),a),cancelRetry:o,continueRetry:u,canStart:h,start:()=>(h()?y():v().then(y),a)}}var q$=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),N5(this.gcTime)&&(this.#t=xu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ru?1/0:300*1e3))}clearGcTimeout(){this.#t&&(xu.clearTimeout(this.#t),this.#t=void 0)}},nte=class extends q${#t;#e;#r;#a;#n;#i;#o;constructor(e){super(),this.#o=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#r=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=P9(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=P9(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.#r.remove(this)}setData(e,t){const r=M5(this.state.data,e,this.options);return this.#s({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then($n).catch($n):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>li(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$a||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>bl(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:!z$(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.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.#n&&(this.#o?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const o=this.observers.find(u=>u.options.queryFn);o&&this.setOptions(o.options)}const r=new AbortController,n=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},a=()=>{const o=$$(this.options,t),c=(()=>{const h={client:this.#a,queryKey:this.queryKey,meta:this.meta};return n(h),h})();return this.#o=!1,this.options.persister?this.options.persister(o,c,this):o(c)},s=(()=>{const o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:a};return n(o),o})();this.options.behavior?.onFetch(s,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#s({type:"fetch",meta:s.fetchOptions?.meta}),this.#n=H$({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:o=>{o instanceof I5&&o.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},onFail:(o,u)=>{this.#s({type:"failed",failureCount:o,error:u})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const o=await this.#n.start();if(o===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#r.config.onSuccess?.(o,this),this.#r.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof I5){if(o.silent)return this.#n.promise;if(o.revert){if(this.state.data===void 0)throw o;return this.state.data}}throw this.#s({type:"error",error:o}),this.#r.config.onError?.(o,this),this.#r.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#s(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...V$(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,data:e.data,dataUpdateCount:r.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?n:void 0,n;case"error":const a=e.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),Dr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function V$(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:U$(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function P9(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Mp=class extends Ju{constructor(e,t){super(),this.options=t,this.#t=e,this.#s=null,this.#o=P5(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#r=void 0;#a=void 0;#n;#i;#o;#s;#h;#f;#d;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),I9(this.#e,this.options)?this.#p():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return D5(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return D5(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#E(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=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 li(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!Ih(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const n=this.hasListeners();n&&D9(this.#e,r,this.options,t)&&this.#p(),this.updateResult(),n&&(this.#e!==r||li(this.options.enabled,this.#e)!==li(t.enabled,this.#e)||bl(this.options.staleTime,this.#e)!==bl(t.staleTime,this.#e))&&this.#g();const a=this.#v();n&&(this.#e!==r||li(this.options.enabled,this.#e)!==li(t.enabled,this.#e)||a!==this.#l)&&this.#y(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return ite(this,r)&&(this.#a=r,this.#i=this.options,this.#n=this.#e.state),r}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t?.(n),n==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#p(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch($n)),t}#g(){this.#x();const e=bl(this.options.staleTime,this.#e);if(Ru||this.#a.isStale||!N5(e))return;const r=z$(this.#a.dataUpdatedAt,e)+1;this.#u=xu.setTimeout(()=>{this.#a.isStale||this.updateResult()},r)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#E(),this.#l=e,!(Ru||li(this.options.enabled,this.#e)===!1||!N5(this.#l)||this.#l===0)&&(this.#c=xu.setInterval(()=>{(this.options.refetchIntervalInBackground||kT.isFocused())&&this.#p()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#u&&(xu.clearTimeout(this.#u),this.#u=void 0)}#E(){this.#c&&(xu.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const r=this.#e,n=this.options,a=this.#a,i=this.#n,s=this.#i,u=e!==r?e.state:this.#r,{state:c}=e;let h={...c},d=!1,m;if(t._optimisticResults){const j=this.hasListeners(),z=!j&&I9(e,t),$=j&&D9(e,r,t,n);(z||$)&&(h={...h,...V$(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:b}=h;m=h.data;let E=!1;if(t.placeholderData!==void 0&&m===void 0&&b==="pending"){let j;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(j=a.data,E=!0):j=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,j!==void 0&&(b="success",m=M5(a?.data,j,t),d=!0)}if(t.select&&m!==void 0&&!E)if(a&&m===i?.data&&t.select===this.#h)m=this.#f;
10else try{this.#h=t.select,m=t.select(m),m=M5(a?.data,m,t),this.#f=m,this.#s=null}catch(j){this.#s=j}this.#s&&(v=this.#s,m=this.#f,y=Date.now(),b="error");const _=h.fetchStatus==="fetching",T=b==="pending",C=b==="error",P=T&&_,O=m!==void 0,M={status:b,fetchStatus:h.fetchStatus,isPending:T,isSuccess:b==="success",isError:C,isInitialLoading:P,isLoading:P,data:m,dataUpdatedAt:h.dataUpdatedAt,error:v,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:_,isRefetching:_&&!T,isLoadingError:C&&!O,isPaused:h.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:C&&O,isStale:NT(e,t),refetch:this.refetch,promise:this.#o,isEnabled:li(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const j=F=>{M.status==="error"?F.reject(M.error):M.data!==void 0&&F.resolve(M.data)},z=()=>{const F=this.#o=M.promise=P5();j(F)},$=this.#o;switch($.status){case"pending":e.queryHash===r.queryHash&&j($);break;case"fulfilled":(M.status==="error"||M.data!==$.value)&&z();break;case"rejected":(M.status!=="error"||M.error!==$.reason)&&z();break}}return M}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#i=this.options,this.#n.data!==void 0&&(this.#d=this.#e),Ih(t,e))return;this.#a=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,a=typeof n=="function"?n():n;if(a==="all"||!a&&!this.#m.size)return!0;const i=new Set(a??this.#m);return this.options.throwOnError&&i.add("error"),Object.keys(this.#a).some(s=>{const o=s;return this.#a[o]!==e[o]&&i.has(o)})};this.#_({listeners:r()})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(e){Dr.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function ate(e,t){return li(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function I9(e,t){return ate(e,t)||e.state.data!==void 0&&D5(e,t,t.refetchOnMount)}function D5(e,t,r){if(li(t.enabled,e)!==!1&&bl(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&NT(e,t)}return!1}function D9(e,t,r,n){return(e!==t||li(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&NT(e,r)}function NT(e,t){return li(t.enabled,e)!==!1&&e.isStaleByTime(bl(t.staleTime,e))}function ite(e,t){return!Ih(e.getCurrentResult(),t)}function B1(e){return{onFetch:(t,r)=>{const n=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let o={pages:[],pageParams:[]},u=0;const c=async()=>{let h=!1;const d=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},m=$$(t.options,t.fetchOptions),v=async(y,b,E)=>{if(h)return Promise.reject();if(b==null&&y.pages.length)return Promise.resolve(y);const T=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:b,direction:E?"backward":"forward",meta:t.options.meta};return d(k),k})(),C=await m(T),{maxPages:P}=t.options,O=E?Qee:Kee;return{pages:O(y.pages,C,P),pageParams:O(y.pageParams,b,P)}};if(a&&i.length){const y=a==="backward",b=y?G$:L5,E={pages:i,pageParams:s},_=b(n,E);o=await v(E,_,y)}else{const y=e??i.length;do{const b=u===0?s[0]??n.initialPageParam:L5(n,o);if(u>0&&b==null)break;o=await v(o,b),u++}while(u<y)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function L5(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function G$(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function ste(e,t){return t?L5(e,t)!=null:!1}function ote(e,t){return!t||!e.getPreviousPageParam?!1:G$(e,t)!=null}var W$=class extends Mp{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:B1()})}getOptimisticResult(e){return e.behavior=B1(),super.getOptimisticResult(e)}
10fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,n=super.createResult(e,t),{isFetching:a,isRefetching:i,isError:s,isRefetchError:o}=n,u=r.fetchMeta?.fetchMore?.direction,c=s&&u==="forward",h=a&&u==="forward",d=s&&u==="backward",m=a&&u==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:ste(t,r.data),hasPreviousPage:ote(t,r.data),isFetchNextPageError:c,isFetchingNextPage:h,isFetchPreviousPageError:d,isFetchingPreviousPage:m,isRefetchError:o&&!c&&!d,isRefetching:i&&!h&&!m}}},lte=class extends q${#t;#e;#r;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#e=[],this.state=e.state||Y$(),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.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=H$({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(i,s)=>{this.#n({type:"failed",failureCount:i,error:s})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n=this.state.status==="pending",a=!this.#a.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:a}),await this.#r.config.onMutate?.(e,this,r);const s=await this.options.onMutate?.(e,r);s!==this.state.context&&this.#n({type:"pending",context:s,variables:e,isPaused:a})}const i=await this.#a.start();return await this.#r.config.onSuccess?.(i,e,this.state.context,this,r),await this.options.onSuccess?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,e,this.state.context,r),this.#n({type:"success",data:i}),i}catch(i){try{throw await this.#r.config.onError?.(i,e,this.state.context,this,r),await this.options.onError?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,i,e,this.state.context,r),i}finally{this.#n({type:"error",error:i})}}finally{this.#r.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Dr.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function Y$(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ute=class extends Ju{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#r=0}#t;#e;#r;build(e,t,r){const n=new lte({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#t.add(e);const t=Tg(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Tg(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Tg(e);if(typeof t=="string"){const n=this.#e.get(t)?.find(a=>a.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=Tg(e);return typeof t=="string"?this.#e.get(t)?.find(n=>
10n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Dr.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(r=>N9(t,r))}findAll(e={}){return this.getAll().filter(t=>N9(e,t))}notify(e){Dr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Dr.batch(()=>Promise.all(e.map(t=>t.continue().catch($n))))}};function Tg(e){return e.options.scope?.id}var cte=class extends Ju{#t;#e=void 0;#r;#a;constructor(t,r){super(),this.#t=t,this.setOptions(r),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#t.defaultMutationOptions(t),Ih(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),r?.mutationKey&&this.options.mutationKey&&_l(r.mutationKey)!==_l(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(t){this.#n(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#i()}mutate(t,r){return this.#a=r,this.#r?.removeObserver(this),this.#r=this.#t.getMutationCache().build(this.#t,this.options),this.#r.addObserver(this),this.#r.execute(t)}#n(){const t=this.#r?.state??Y$();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}}#i(t){Dr.batch(()=>{if(this.#a&&this.hasListeners()){const r=this.#e.variables,n=this.#e.context,a={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#a.onSuccess?.(t.data,r,n,a),this.#a.onSettled?.(t.data,null,r,n,a)):t?.type==="error"&&(this.#a.onError?.(t.error,r,n,a),this.#a.onSettled?.(void 0,t.error,r,n,a))}this.listeners.forEach(r=>{r(this.#e)})})}};function L9(e,t){const r=new Set(t);return e.filter(n=>!r.has(n))}function fte(e,t,r){const n=e.slice(0);return n[t]=r,n}var dte=class extends Ju{#t;#e;#r;#a;#n;#i;#o;#s;#h=[];constructor(e,t,r){super(),this.#t=e,this.#a=r,this.#r=[],this.#n=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#a=t,Dr.batch(()=>{const r=this.#n,n=this.#u(this.#r);this.#h=n,n.forEach(h=>h.observer.setOptions(h.defaultedQueryOptions));const a=n.map(h=>h.observer),i=a.map(h=>h.getCurrentResult()),s=r.length!==a.length,o=a.some((h,d)=>h!==r[d]),u=s||o,c=u?!0:i.some((h,d)=>{const m=this.#e[d];return!m||!Ih(h,m)});!u&&!c||(u&&(this.#n=a),this.#e=i,this.hasListeners()&&(u&&(L9(r,a).forEach(h=>{h.destroy()}),L9(a,r).forEach(h=>{h.subscribe(d=>{this.#c(h,d)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#n.map(e=>e.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(e,t){const r=this.#u(e),n=r.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[n,a=>this.#d(a??n,t),()=>this.#f(n,r)]}#f(e,t){return t.map((r,n)=>{const a=e[n];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,i=>{t.forEach(s=>{s.observer.trackProp(i)})})})}#d(e,t){return t?((!this.#i||this.#e!==this.#s||t!==this.#o)&&(this.#o=t,this.#s=this.#e,this.#i=OT(this.#i,t(e))),this.#i):e}#u(e){const t=new Map(this.#n.map(n=>[n.options.queryHash,n])),r=[];return e.forEach(n=>{const a=this.#t.defaultQueryOptions(n),i=t.get(a.queryHash);i?r.push({defaultedQueryOptions:a,observer:i}):r.push({defaultedQueryOptions:a,observer:new Mp(this.#t,a)})}),r}#c(e,t){const r=this.#n.indexOf(e);r!==-1&&(this.#e=fte(this.#e,r,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#i,t=this.#f(this.#e,this.#h),r=this.#d(t,this.#a?.combine);e!==r&&Dr.batch(()=>
vendor: 5,454 bytes, lines 10-18
10{this.listeners.forEach(n=>{n(this.#e)})})}}},hte=class extends Ju{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const n=t.queryKey,a=t.queryHash??CT(n,t);let i=this.get(a);return i||(i=new nte({client:e,queryKey:n,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}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(){Dr.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(r=>k9(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>k9(e,r)):t}notify(e){Dr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Dr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Dr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},pte=class{#t;#e;#r;#a;#n;#i;#o;#s;constructor(e={}){this.#t=e.queryCache||new hte,this.#e=e.mutationCache||new ute,this.#r=e.defaultOptions||{},this.#a=new Map,this.#n=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=kT.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=j1.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=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),r=this.#t.build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(bl(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(n.queryHash)?.state.data,s=Wee(t,i);if(s!==void 0)return this.#t.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Dr.batch(()=>this.#t.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Dr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return Dr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Dr.batch(()=>this.#t.findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then($n).catch($n)}invalidateQueries(e,t={}){return Dr.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Dr.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,r);return r.throwOnError||(i=i.catch($n)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then($n)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(bl(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($n).catch($n)}fetchInfiniteQuery(e){return e.behavior=B1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($n).catch($n)}ensureInfiniteQueryData(e){return e.behavior=B1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return j1.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#a.set(_l(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],r={};return t.forEach(n=>{Ph(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#n.set(_l(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(n=>{Ph(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=CT(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===$a&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},l4={exports:{}},dt={};/**
11 * @license React
12 * react.production.js
13 *
14 * Copyright (c) Meta Platforms, Inc. and affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var j9;function mte(){if(j9)return dt;
vendor: 7,651 bytes, line 18
18j9=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),m=Symbol.iterator;function v(Y){return Y===null||typeof Y!="object"?null:(Y=m&&Y[m]||Y["@@iterator"],typeof Y=="function"?Y:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,E={};function _(Y,W,L){this.props=Y,this.context=W,this.refs=E,this.updater=L||y}_.prototype.isReactComponent={},_.prototype.setState=function(Y,W){if(typeof Y!="object"&&typeof Y!="function"&&Y!=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,Y,W,"setState")},_.prototype.forceUpdate=function(Y){this.updater.enqueueForceUpdate(this,Y,"forceUpdate")};function T(){}T.prototype=_.prototype;function C(Y,W,L){this.props=Y,this.context=W,this.refs=E,this.updater=L||y}var P=C.prototype=new T;P.constructor=C,b(P,_.prototype),P.isPureReactComponent=!0;var O=Array.isArray;function k(){}var M={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function z(Y,W,L){var le=L.ref;return{$$typeof:e,type:Y,key:W,ref:le!==void 0?le:null,props:L}}function $(Y,W){return z(Y.type,W,Y.props)}function F(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function q(Y){var W={"=":"=0",":":"=2"};return"$"+Y.replace(/[=:]/g,function(L){return W[L]})}var Q=/\/+/g;function X(Y,W){return typeof Y=="object"&&Y!==null&&Y.key!=null?q(""+Y.key):W.toString(36)}function te(Y){switch(Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason;default:switch(typeof Y.status=="string"?Y.then(k,k):(Y.status="pending",Y.then(function(W){Y.status==="pending"&&(Y.status="fulfilled",Y.value=W)},function(W){Y.status==="pending"&&(Y.status="rejected",Y.reason=W)})),Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason}}throw Y}function U(Y,W,L,le,fe){var Se=typeof Y;(Se==="undefined"||Se==="boolean")&&(Y=null);var ye=!1;if(Y===null)ye=!0;else switch(Se){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(Y.$$typeof){case e:case t:ye=!0;break;case h:return ye=Y._init,U(ye(Y._payload),W,L,le,fe)}}if(ye)return fe=fe(Y),ye=le===""?"."+X(Y,0):le,O(fe)?(L="",ye!=null&&(L=ye.replace(Q,"$&/")+"/"),U(fe,W,L,"",function(Pe){return Pe})):fe!=null&&(F(fe)&&(fe=$(fe,L+(fe.key==null||Y&&Y.key===fe.key?"":(""+fe.key).replace(Q,"$&/")+"/")+ye)),W.push(fe)),1;ye=0;var Ne=le===""?".":le+":";if(O(Y))for(var xe=0;xe<Y.length;xe++)le=Y[xe],Se=Ne+X(le,xe),ye+=U(le,W,L,Se,fe);else if(xe=v(Y),typeof xe=="function")for(Y=xe.call(Y),xe=0;!(le=Y.next()).done;)le=le.value,Se=Ne+X(le,xe++),ye+=U(le,W,L,Se,fe);else if(Se==="object"){if(typeof Y.then=="function")return U(te(Y),W,L,le,fe);throw W=String(Y),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return ye}function J(Y,W,L){if(Y==null)return Y;var le=[],fe=0;return U(Y,le,"","",function(Se){return W.call(L,Se,fe++)}),le}function ee(Y){if(Y._status===-1){var W=Y._result;W=W(),W.then(function(L){(Y._status===0||Y._status===-1)&&(Y._status=1,Y._result=L)},function(L){(Y._status===0||Y._status===-1)&&(Y._status=2,Y._result=L)}),Y._status===-1&&(Y._status=0,Y._result=W)}if(Y._status===1)return Y._result.default;throw Y._result}var de=typeof reportError=="function"?reportError:function(Y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Y=="object"&&Y!==null&&typeof Y.message=="string"?String(Y.message):String(Y),error:Y});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Y);return}console.error(Y)},G={map:J,forEach:function(Y,W,L){J(Y,function(){W.apply(this,arguments)},L)},count:function(Y){var W=0;return J(Y,function(){W++}),W},toArray:function(Y){return J(Y,function(W){return W})||[]},only:function(Y){if(!F(Y))throw Error("React.Children.only expected to receive a single React element child.");return Y}};return dt.Activity=d,dt.Children=G,dt.Component=_,dt.Fragment=r,dt.Profiler=a,dt.PureComponent=C,dt.StrictMode=n,dt.Suspense=u,dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,dt.__COMPILER_RUNTIME={__proto__:null,c:function(Y){return M.H.useMemoCache(Y)}},dt.cache=function(Y){return function(){return Y.apply(null,arguments)}},dt.cacheSignal=function(){return null},dt.cloneElement=function(Y,W,L){if(Y==null)throw Error("The argument must be a React element, but you passed "+Y+".");var le=b({},Y.props),fe=Y.key;if(W!=null)for(Se in W.key!==void 0&&(fe=""+W.key),W)!j.call(W,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&W.ref===void 0||(le[Se]=W[Se]);var Se=arguments.length-2;if(Se===1)le.children=L;else if(1<Se){for(var ye=Array(Se),Ne=0;Ne<Se;Ne++)ye[Ne]=arguments[Ne+2];le.children=ye}return z(Y.type,fe,le)},dt.createContext=function(Y){return Y={$$typeof:s,_currentValue:Y,_currentValue2:Y,_threadCount:0,Provider:null,Consumer:null},Y.Provider=Y,Y.Consumer={$$typeof:i,_context:Y},Y},dt.createElement=function(Y,W,L){var le,fe={},Se=null;if(W!=null)for(le in W.key!==void 0&&(Se=""+W.key),W)j.call(W,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(fe[le]=W[le]);var ye=arguments.length-2;if(ye===1)fe.children=L;else if(1<ye){for(var Ne=Array(ye),xe=0;xe<ye;xe++)Ne[xe]=arguments[xe+2];fe.children=Ne}if(Y&&Y.defaultProps)for(le in ye=Y.defaultProps,ye)fe[le]===void 0&&(fe[le]=ye[le]);return z(Y,Se,fe)},dt.createRef=function(){return{current:null}},dt.forwardRef=function(Y){return{$$typeof:o,render:Y}},dt.isValidElement=F,dt.lazy=function(Y){return{$$typeof:h,_payload:{_status:-1,_result:Y},_init:ee}},dt.memo=function(Y,W){return{$$typeof:c,type:Y,compare:W===void 0?null:W}},dt.startTransition=function(Y){var W=M.T,L={};M.T=L;try{var le=Y(),fe=M.S;fe!==null&&fe(L,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(k,de)}catch(Se){de(Se)}finally{W!==null&&L.types!==null&&(W.types=L.types),M.T=W}},dt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},dt.use=function(Y){return M.H.use(Y)},dt.useActionState=function(Y,W,L){return M.H.useActionState(Y,W,L)},dt.useCallback=function(Y,W){return M.H.useCallback(Y,W)},dt.useContext=function(Y){return M.H.useContext(Y)},dt.useDebugValue=function(){},dt.useDeferredValue=function(Y,W){return M.H.useDeferredValue(Y,W)},dt.useEffect=function(Y,W){return M.H.useEffect(Y,W)},dt.useEffectEvent=function(Y){return M.H.useEffectEvent(Y)},dt.useId=function(){return M.H.useId()},dt.useImperativeHandle=function(Y,W,L){return M.H.useImperativeHandle(Y,W,L)},dt.useInsertionEffect=function(Y,W){return M.H.useInsertionEffect(Y,W)},dt.useLayoutEffect=function(Y,W){return M.H.useLayoutEffect(Y,W)},dt.useMemo=function(Y,W){return M.H.useMemo(Y,W)},dt.useOptimistic=function(Y,W){return M.H.useOptimistic(Y,W)},dt.useReducer=function(Y,W,L){return M.H.useReducer(Y,W,L)},dt.useRef=function(Y){return M.H.useRef(Y)},dt.useState=function(Y){return M.H.useState(Y)},dt.useSyncExternalStore=function(Y,W,L){return M.H.useSyncExternalStore(Y,W,L)},dt.useTransition=function(){return M.H.useTransition()}
18,dt.version="19.2.1",dt}var B9;function yy(){return B9||(B9=1,l4.exports=mte()),l4.exports}var N=yy();const re=er(N),by=Fee({__proto__:null,default:re},[N]);var X$=N.createContext(void 0),Pp=e=>{const t=N.useContext(X$);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},gte=({client:e,children:t})=>(N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(X$.Provider,{value:e,children:t})),K$=N.createContext(!1),Q$=()=>N.useContext(K$);K$.Provider;function vte(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var yte=N.createContext(vte()),Z$=()=>N.useContext(yte),J$=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},eF=e=>{N.useEffect(()=>{e.clearReset()},[e])},tF=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||F$(r,[e.error,n])),RT=(e,t)=>t.state.data===void 0,rF=e=>{if(e.suspense){const r=a=>a==="static"?a:Math.max(a??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...a)=>r(n(...a)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},nF=(e,t)=>e.isLoading&&e.isFetching&&!t,j5=(e,t)=>e?.suspense&&t.isPending,z1=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function aF({queries:e,...t},r){const n=Pp(r),a=Q$(),i=Z$(),s=N.useMemo(()=>e.map(b=>{const E=n.defaultQueryOptions(b);return E._optimisticResults=a?"isRestoring":"optimistic",E}),[e,n,a]);s.forEach(b=>{rF(b),J$(b,i)}),eF(i);const[o]=N.useState(()=>new dte(n,s,t)),[u,c,h]=o.getOptimisticResult(s,t.combine),d=!a&&t.subscribed!==!1;N.useSyncExternalStore(N.useCallback(b=>d?o.subscribe(Dr.batchCalls(b)):$n,[o,d]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),N.useEffect(()=>{o.setQueries(s,t)},[s,t,o]);const v=u.some((b,E)=>j5(s[E],b))?u.flatMap((b,E)=>{const _=s[E];if(_){const T=new Mp(n,_);if(j5(_,b))return z1(_,T,i);nF(b,a)&&z1(_,T,i)}return[]}):[];if(v.length>0)throw Promise.all(v);const y=u.find((b,E)=>{const _=s[E];return _&&tF({result:b,errorResetBoundary:i,throwOnError:_.throwOnError,query:n.getQueryCache().get(_.queryHash),suspense:_.suspense})});if(y?.error)throw y.error;return c(h())}function xy(e,t,r){const n=Q$(),a=Z$(),i=Pp(r),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=n?"isRestoring":"optimistic",rF(s),J$(s,a),eF(a);const o=!i.getQueryCache().get(s.queryHash),[u]=N.useState(()=>new t(i,s)),c=u.getOptimisticResult(s),h=!n&&e.subscribed!==!1;if(N.useSyncExternalStore(N.useCallback(d=>{const m=h?u.subscribe(Dr.batchCalls(d)):$n;return u.updateResult(),m},[u,h]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),N.useEffect(()=>{u.setOptions(s)},[s,u]),j5(s,c))throw z1(s,u,a);if(tF({result:c,errorResetBoundary:a,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!Ru&&nF(c,n)&&(o?z1(s,u,a):i.getQueryCache().get(s.queryHash)?.promise)?.catch($n).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?c:u.trackResult(c)}function bte(e,t){return xy(e,Mp,t)}function xte(e,t){return xy({...e,enabled:!0,suspense:!0,throwOnError:RT,placeholderData:void 0},Mp,t)}function Ete(e,t){return xy({...e,enabled:!0,suspense:!0,throwOnError:RT},W$,t)}function wte(e,t){return aF({...e,queries:e.queries.map(r=>({...r,suspense:!0,throwOnError:RT,enabled:!0,placeholderData:void 0}))},t)}function _te(e,t){const r=Pp(t);r.getQueryState(e.queryKey)||r.prefetchQuery(e)}function Ste(e,t){const r=Pp(t);r.getQueryState(e.queryKey)||r.prefetchInfiniteQuery(e)}function Tte(e,t){const r=Pp(t),[n]=N.useState(()=>new cte(r,e));N.useEffect(()=>{n.setOptions(e)},[n,e]);const a=N.useSyncExternalStore(N.useCallback(s=>n.subscribe(Dr.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=N.useCallback((s,o)=>{n.mutate(s,o).catch($n)},[n]);if(a.error&&F$(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}function Ate(e,t){return xy(e,W$,t)}function Mu(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const Cte=typeof Symbol=="function"&&!!Symbol.asyncIterator;function iF(e){return Cte&&Mu(e)&&Symbol.asyncIterator in e}var Ote=Object.create,sF=Object.defineProperty,kte=Object.getOwnPropertyDescriptor,oF=Object.getOwnPropertyNames,Nte=Object.getPrototypeOf,Rte=Object.prototype.hasOwnProperty,Ip=(e,t)=>function(){return t||(0,e[oF(e)[0]])((t={exports:{}}).exports,t),t.exports},Mte=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=oF(t),i=0,s=a.length,o;i<s;i++)o=a[i],!Rte.call(e,o)&&o!==r&&sF(e,o,{get:(u=>t[u]).bind(null,o),enumerable:!(n=kte(t,o))||n.enumerable});return e},Ey=(e,t,r)=>(r=e!=null?Ote(Nte(e)):{},Mte(sF(r,"default",{value:e,enumerable:!0}),e));const lF=()=>{},z9=e=>{Object.freeze&&Object.freeze(e)};function uF(e,t,r){var n;const a=t.join(".");return(n=r[a])!==null&&n!==void 0||(r[a]=new Proxy(lF,{get(i,s){if
18(!(typeof s!="string"||s==="then"))return uF(e,[...t,s],r)},apply(i,s,o){const u=t[t.length-1];let c={args:o,path:t};return u==="call"?c={args:o.length>=2?[o[1]]:[],path:t.slice(0,-1)}:u==="apply"&&(c={args:o.length>=2?o[1]:[],path:t.slice(0,-1)}),z9(c.args),z9(c.path),e(c)}})),r[a]}const wy=e=>uF(e,[],Object.create(null)),MT=e=>new Proxy(lF,{get(t,r){if(r!=="then")return e(r)}});var cF=Ip({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=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,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Pte=Ip({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=cF().default;function n(a,i){if(r(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var o=s.call(a,i||"default");if(r(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ite=Ip({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=cF().default,n=Pte();function a(i){var s=n(i,"string");return r(s)=="symbol"?s:s+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),fF=Ip({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=Ite();function n(a,i,s){return(i=r(i))in a?Object.defineProperty(a,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[i]=s,a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),PT=Ip({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=fF();function n(i,s){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);s&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),o.push.apply(o,u)}return o}function a(i){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?n(Object(o),!0).forEach(function(u){r(i,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(o,u))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});Ey(PT());Ey(fF());var Ag=Ey(PT());function Dte(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,Ag.default)((0,Ag.default)({},e),{},{error:n})}}return{ok:!0,result:(0,Ag.default)((0,Ag.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var u4=class extends Error{constructor(){super("Unable to transform response from server")}};function Lte(e,t){let r;try{r=Dte(e,t)}catch{throw new u4}if(!r.ok&&(!Mu(r.error.error)||typeof r.error.error.code!="number"))throw new u4;if(r.ok&&!Mu(r.result))throw new u4;return r}Ey(PT());function _y(e){const t={subscribe(r){let n=null,a=!1,i=!1,s=!1;function o(){if(n===null){s=!0;return}i||(i=!0,typeof n=="function"?n():n&&n.unsubscribe())}return n=e({next(u){var c;a||(c=r.next)===null||c===void 0||c.call(r,u)},error(u){var c;a||(a=!0,(c=r.error)===null||c===void 0||c.call(r,u),o())},complete(){var u;a||(a=!0,(u=r.complete)===null||u===void 0||u.call(r),o())}}),s&&o(),{unsubscribe:o}},pipe(...r){return r.reduce(jte,t)}};return t}function jte(e,t){return t(e)}function Bte(e){const t=new AbortController;return new Promise((n,a)=>{let i=!1;function s(){i||(i=!0,o.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const o=e.subscribe({next(u){i=!0,n(u),s()},error(u){a(u)},complete(){t.abort(),s()}})})}var zte=Object.create,dF=Object.defineProperty,$te=Object.getOwnPropertyDescriptor,hF=Object.getOwnPropertyNames,Fte=Object.getPrototypeOf,Ute=Object.prototype.hasOwnProperty,Rl=(e,t)=>function(){return t||(0,e[hF(e)[0]])((t={exports:{}}).exports,t),t.exports},Hte=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=hF(t),i=0,s=a.length,o;i<s;i++)o=a[i],!Ute.call(e,o)&&o!==r&&dF(e,o,{get:(u=>t[u]).bind(null,o),enumerable:!(n=$te(t,o))||n.enumerable});return e},ec=(e,t,r)=>(r=e!=null?zte(Fte(e)):{},Hte(t||!e||!e.__esModule?dF(r,"default",{value:e,enumerable:!0}):r,e)),qte=Rl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function r(n,a){if(n==null)return{};var i={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(a.includes(s))continue;i[s]=n[s]}return i}
18t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Vte=Rl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var r=qte();function n(a,i){if(a==null)return{};var s,o,u=r(a,i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);for(o=0;o<c.length;o++)s=c[o],i.includes(s)||{}.propertyIsEnumerable.call(a,s)&&(u[s]=a[s])}return u}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),pF=Rl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=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,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gte=Rl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=pF().default;function n(a,i){if(r(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var o=s.call(a,i||"default");if(r(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Wte=Rl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=pF().default,n=Gte();function a(i){var s=n(i,"string");return r(s)=="symbol"?s:s+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Yte=Rl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=Wte();function n(a,i,s){return(i=r(i))in a?Object.defineProperty(a,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[i]=s,a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Dp=Rl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=Yte();function n(i,s){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);s&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),o.push.apply(o,u)}return o}function a(i){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?n(Object(o),!0).forEach(function(u){r(i,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(o,u))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Xte=ec(Vte(),1),$9=ec(Dp(),1);const Kte=["cursor","direction"];function ss(e,t,r){const n=e.flatMap(a=>a.split("."));if(!t&&(!r||r==="any"))return n.length?[n]:[];if(r==="infinite"&&Mu(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:i}=t,s=(0,Xte.default)(t,Kte);return[n,{input:s,type:"infinite"}]}return[n,(0,$9.default)((0,$9.default)({},typeof t<"u"&&t!==$a&&{input:t}),r&&r!=="any"&&{type:r})]}function S1(e){return ss(e,void 0,"any")}var Qte=Object.create,mF=Object.defineProperty,Zte=Object.getOwnPropertyDescriptor,gF=Object.getOwnPropertyNames,Jte=Object.getPrototypeOf,ere=Object.prototype.hasOwnProperty,Es=(e,t)=>function(){return t||(0,e[gF(e)[0]])((t={exports:{}}).exports,t),t.exports},tre=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=gF(t),i=0,s=a.length,o;i<s;i++)o=a[i],!ere.call(e,o)&&o!==r&&mF(e,o,{get:(u=>t[u]).bind(null,o),enumerable:!(n=Zte(t,o))||n.enumerable});return e},Vr=(e,t,r)=>(r=e!=null?Qte(Jte(e)):{},tre(t||!e||!e.__esModule?mF(r,"default",{value:e,enumerable:!0}):r,e)),vF=Es({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=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}
18,t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),rre=Es({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=vF().default;function n(a,i){if(r(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var o=s.call(a,i||"default");if(r(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),nre=Es({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=vF().default,n=rre();function a(i){var s=n(i,"string");return r(s)=="symbol"?s:s+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),tc=Es({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=nre();function n(a,i,s){return(i=r(i))in a?Object.defineProperty(a,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[i]=s,a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Hi=Es({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=tc();function n(i,s){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);s&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),o.push.apply(o,u)}return o}function a(i){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?n(Object(o),!0).forEach(function(u){r(i,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(o,u))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function are(e){return t=>{let r=0,n=null;const a=[];function i(){n||(n=t.subscribe({next(o){for(const c of a){var u;(u=c.next)===null||u===void 0||u.call(c,o)}},error(o){for(const c of a){var u;(u=c.error)===null||u===void 0||u.call(c,o)}},complete(){for(const u of a){var o;(o=u.complete)===null||o===void 0||o.call(u)}}}))}function s(){if(r===0&&n){const o=n;n=null,o.unsubscribe()}}return _y(o=>(r++,a.push(o),i(),{unsubscribe(){r--,s();const u=a.findIndex(c=>c===o);u>-1&&a.splice(u,1)}}))}}function ire(e){let t=e;const r=[],n=s=>{t!==void 0&&s.next(t),r.push(s)},a=s=>{r.splice(r.indexOf(s),1)},i=_y(s=>(n(s),()=>{a(s)}));return i.next=s=>{if(t!==s){t=s;for(const o of r)o.next(s)}},i.get=()=>t,i}function sre(e){return _y(t=>{function r(a=0,i=e.op){const s=e.links[a];if(!s)throw new Error("No more links to execute - did you forget to add an ending link?");return s({op:i,next(u){return r(a+1,u)}})}return r().subscribe(t)})}var Cg=Vr(tc(),1),tf=Vr(Hi(),1);function ore(e){return e instanceof Bf}function lre(e){return Mu(e)&&Mu(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function ure(e,t){return typeof e=="string"?e:Mu(e)&&typeof e.message=="string"?e.message:t}var Bf=class T1 extends Error{constructor(t,r){var n,a;const i=r?.cause;super(t,{cause:i}),(0,Cg.default)(this,"cause",void 0),(0,Cg.default)(this,"shape",void 0),(0,Cg.default)(this,"data",void 0),(0,Cg.default)(this,"meta",void 0),this.meta=r?.meta,this.cause=i,this.shape=r==null||(n=r.result)===null||n===void 0?void 0:n.error,this.data=r==null||(a=r.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,T1.prototype)}static from(t,r={}){const n=t;return ore(n)?(r.meta&&(n.meta=(0,tf.default)((0,tf.default)({},n.meta),r.meta)),n):lre(n)?new T1(n.error.message,(0,tf.default)((0,tf.default)({},r),{},{result:n})):new T1(ure(n,"Unknown error"),(0,tf.default)((0,tf.default)({},r),{},{cause:n}))}};function cre(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:r=>r,deserialize:r=>r},output:{serialize:r=>r,deserialize:r=>r}}}const F9=e=>typeof e=="function";function fre(e){if(e)return e;if(typeof window<"u"&&F9(window.fetch))return window.fetch;if(typeof globalThis<"u"&&F9(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var hh=Vr(Hi());function dre(e){return{url:e.url.toString(),fetch:e.fetch,transformer:cre(e.transformer),methodOverride:e.methodOverride}}function hre(e){const t={};for(let r=0;r<e.length;r++){const n=e[r];t[r]=n}return t}const pre={query:"GET",mutation:"POST",subscription:"PATCH"};function yF(e){return"input"in e?e.transformer.input.serialize(e.input):
18hre(e.inputs.map(t=>e.transformer.input.serialize(t)))}const bF=e=>{const t=e.url.split("?");let n=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 i=yF(e);i!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return a.length&&(n+="?"+a.join("&")),n},mre=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=yF(e);return t!==void 0?JSON.stringify(t):void 0},gre=e=>xre((0,hh.default)((0,hh.default)({},e),{},{contentTypeHeader:"application/json",getUrl:bF,getBody:mre}));var vre=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const yre=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 vre};async function bre(e){var t;yre(e.signal);const r=e.getUrl(e),n=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:pre[e.type],i=await(async()=>{const o=await e.headers();return Symbol.iterator in o?Object.fromEntries(o):o})(),s=(0,hh.default)((0,hh.default)((0,hh.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return fre(e.fetch)(r,{method:a,signal:e.signal,body:n,headers:s})}async function xre(e){const t={},r=await bre(e);t.response=r;const n=await r.json();return t.responseJSON=n,{json:n,meta:t}}Vr(Hi(),1);const U9=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function H9(e){let t=null,r=null;const n=()=>{clearTimeout(r),r=null,t=null};function a(o){const u=[[]];let c=0;for(;;){const m=o[c];if(!m)break;const v=u[u.length-1];if(m.aborted){var h;(h=m.reject)===null||h===void 0||h.call(m,new Error("Aborted")),c++;continue}if(e.validate(v.concat(m).map(b=>b.key))){v.push(m),c++;continue}if(v.length===0){var d;(d=m.reject)===null||d===void 0||d.call(m,new Error("Input is too big for a single dispatch")),c++;continue}u.push([])}return u}function i(){const o=a(t);n();for(const u of o){if(!u.length)continue;const c={items:u};for(const d of u)d.batch=c;e.fetch(c.items.map(d=>d.key)).then(async d=>{await Promise.all(d.map(async(v,y)=>{const b=c.items[y];try{var E;const T=await Promise.resolve(v);(E=b.resolve)===null||E===void 0||E.call(b,T)}catch(T){var _;(_=b.reject)===null||_===void 0||_.call(b,T)}b.batch=null,b.reject=null,b.resolve=null}));for(const v of c.items){var m;(m=v.reject)===null||m===void 0||m.call(v,new Error("Missing result")),v.batch=null}}).catch(d=>{for(const v of c.items){var m;(m=v.reject)===null||m===void 0||m.call(v,d),v.batch=null}})}}function s(o){var u;const c={aborted:!1,key:o,batch:null,resolve:U9,reject:U9},h=new Promise((d,m)=>{var v;c.reject=m,c.resolve=d,(v=t)!==null&&v!==void 0||(t=[]),t.push(c)});return(u=r)!==null&&u!==void 0||(r=setTimeout(i)),h}return{load:s}}function Ere(...e){const t=new AbortController,r=e.length;let n=0;const a=()=>{++n===r&&t.abort()};for(const i of e)i?.aborted?a():i?.addEventListener("abort",a,{once:!0});return t.signal}var Og=Vr(Hi(),1);function wre(e){var t,r;const n=dre(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(r=e.maxItems)!==null&&r!==void 0?r:1/0;return()=>{const s=h=>({validate(d){if(a===1/0&&i===1/0)return!0;if(d.length>i)return!1;const m=d.map(b=>b.path).join(","),v=d.map(b=>b.input);return bF((0,Og.default)((0,Og.default)({},n),{},{type:h,path:m,inputs:v,signal:null})).length<=a},async fetch(d){const m=d.map(T=>T.path).join(","),v=d.map(T=>T.input),y=Ere(...d.map(T=>T.signal)),b=await gre((0,Og.default)((0,Og.default)({},n),{},{path:m,inputs:v,type:h,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:d}):e.headers:{}},signal:y}));return(Array.isArray(b.json)?b.json:d.map(()=>b.json)).map(T=>({meta:b.meta,json:T}))}}),o=H9(s("query")),u=H9(s("mutation")),c={query:o,mutation:u};return({op:h})=>_y(d=>{/* istanbul ignore if -- @preserve */if(h.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const v=c[h.type].load(h);let y;return v.then(b=>{y=b;const E=Lte(b.json,n.transformer.output);if(!E.ok){d.error(Bf.from(E.error,{meta:b.meta}));return}d.next({context:b.meta,result:E.result}),d.complete()}).catch(b=>{d.error(Bf.from(b,{meta:y?.meta}))}),()=>{}})}}Vr(Hi(),1);
18const xF=(e,...t)=>typeof e=="function"?e(...t):e;Vr(tc(),1);function _re(){let e,t;return{promise:new Promise((n,a)=>{e=n,t=a}),resolve:e,reject:t}}async function Sre(e){const t=await xF(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function Tre(e){const t={method:"connectionParams",data:await xF(e)};return JSON.stringify(t)}Vr(tc(),1);var hu=Vr(tc(),1);function Are(e){const{promise:t,resolve:r,reject:n}=_re();return e.addEventListener("open",()=>{e.removeEventListener("error",n),r()}),e.addEventListener("error",n),t}function Cre(e,{intervalMs:t,pongTimeoutMs:r}){let n,a;function i(){n=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},r)},t)}function s(){clearTimeout(n),i()}function o(){clearTimeout(a),s()}e.addEventListener("open",i),e.addEventListener("message",({data:u})=>{clearTimeout(n),i(),u==="PONG"&&o()}),e.addEventListener("close",()=>{clearTimeout(n),clearTimeout(a)})}var Ore=class B5{constructor(t){var r;if((0,hu.default)(this,"id",++B5.connectCount),(0,hu.default)(this,"WebSocketPonyfill",void 0),(0,hu.default)(this,"urlOptions",void 0),(0,hu.default)(this,"keepAliveOpts",void 0),(0,hu.default)(this,"wsObservable",ire(null)),(0,hu.default)(this,"openPromise",null),this.WebSocketPonyfill=(r=t.WebSocketPonyfill)!==null&&r!==void 0?r: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=++B5.connectCount;const r=Sre(t.urlOptions).then(n=>new t.WebSocketPonyfill(n));t.openPromise=r.then(async n=>{t.ws=n,n.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&Cre(n,t.keepAliveOpts),n.addEventListener("close",()=>{t.ws===n&&(t.ws=null)}),await Are(n),t.urlOptions.connectionParams&&n.send(await Tre(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var r;(r=t.ws)===null||r===void 0||r.close()}}};(0,hu.default)(Ore,"connectCount",0);Vr(tc(),1);Vr(Hi(),1);var c4=Vr(tc(),1),q9=Vr(Hi(),1),Sy=class{constructor(e){(0,c4.default)(this,"links",void 0),(0,c4.default)(this,"runtime",void 0),(0,c4.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return sre({links:this.links,op:(0,q9.default)((0,q9.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(are())}async requestAsPromise(e){var t=this;try{const r=t.$request(e);return(await Bte(r)).result.data}catch(r){throw Bf.from(r)}}query(e,t,r){return this.requestAsPromise({type:"query",path:e,input:t,context:r?.context,signal:r?.signal})}mutation(e,t,r){return this.requestAsPromise({type:"mutation",path:e,input:t,context:r?.context,signal:r?.signal})}subscription(e,t,r){return this.$request({type:"subscription",path:e,input:t,context:r.context,signal:r.signal}).subscribe({next(a){switch(a.result.type){case"state":{var i;(i=r.onConnectionStateChange)===null||i===void 0||i.call(r,a.result);break}case"started":{var s;(s=r.onStarted)===null||s===void 0||s.call(r,{context:a.context});break}case"stopped":{var o;(o=r.onStopped)===null||o===void 0||o.call(r);break}case"data":case void 0:{var u;(u=r.onData)===null||u===void 0||u.call(r,a.result.data);break}}},error(a){var i;(i=r.onError)===null||i===void 0||i.call(r,a)},complete(){var a;(a=r.onComplete)===null||a===void 0||a.call(r)}})}};const EF=Symbol.for("trpc_untypedClient"),kre={query:"query",mutate:"mutation",subscribe:"subscription"},Nre=e=>kre[e];function wF(e){const t=wy(({path:r,args:n})=>{const a=[...r],i=Nre(a.pop()),s=a.join(".");
18return e[i](s,...n)});return MT(r=>r===EF?e:t[r])}function Rre(e){const t=new Sy(e);return wF(t)}function IT(e){return e[EF]}Vr(Hi(),1);Vr(Hi(),1);var Mre=Es({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(a){var i,s,o,u=2;for(typeof Symbol<"u"&&(s=Symbol.asyncIterator,o=Symbol.iterator);u--;){if(s&&(i=a[s])!=null)return i.call(a);if(o&&(i=a[o])!=null)return new n(i.call(a));s="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function n(a){function i(s){if(Object(s)!==s)return Promise.reject(new TypeError(s+" is not an object."));var o=s.done;return Promise.resolve(s.value).then(function(u){return{value:u,done:o}})}return n=function(o){this.s=o,this.n=o.next},n.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(o){var u=this.s.return;return u===void 0?Promise.resolve({value:o,done:!0}):i(u.apply(this.s,arguments))},throw:function(o){var u=this.s.return;return u===void 0?Promise.reject(o):i(u.apply(this.s,arguments))}},new n(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Vr(Mre(),1);Vr(Hi(),1);var Pre=Es({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function r(){var n=typeof SuppressedError=="function"?SuppressedError:function(o,u){var c=Error();return c.name="SuppressedError",c.error=o,c.suppressed=u,c},a={},i=[];function s(o,u){if(u!=null){if(Object(u)!==u)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(o)var c=u[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(c===void 0&&(c=u[Symbol.dispose||Symbol.for("Symbol.dispose")],o))var h=c;if(typeof c!="function")throw new TypeError("Object is not disposable.");h&&(c=function(){try{h.call(u)}catch(m){return Promise.reject(m)}}),i.push({v:u,d:c,a:o})}else o&&i.push({d:u,a:o});return u}return{e:a,u:s.bind(null,!1),a:s.bind(null,!0),d:function(){var u,c=this.e,h=0;function d(){for(;u=i.pop();)try{if(!u.a&&h===1)return h=0,i.push(u),Promise.resolve().then(d);if(u.d){var v=u.d.call(u.v);if(u.a)return h|=2,Promise.resolve(v).then(d,m)}else h|=1}catch(y){return m(y)}if(h===1)return c!==a?Promise.reject(c):Promise.resolve();if(c!==a)throw c}function m(v){return c=c!==a?new n(v,c):v,d()}return d()}}}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),_F=Es({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function r(n,a){this.v=n,this.k=a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ire=Es({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var r=_F();function n(a){return new r(a,0)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Dre=Es({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var r=_F();function n(i){return function(){return new a(i.apply(this,arguments))}}function a(i){var s,o;function u(h,d){try{var m=i[h](d),v=m.value,y=v instanceof r;Promise.resolve(y?v.v:v).then(function(b){if(y){var E=h==="return"?"return":"next";if(!v.k||b.done)return u(E,b);b=i[E](b).value}c(m.done?"return":"normal",b)},function(b){u("throw",b)})}catch(b){c("throw",b)}}function c(h,d){switch(h){case"return":s.resolve({value:d,done:!0});break;case"throw":s.reject(d);break;default:s.resolve({value:d,done:!1})}(s=s.next)?u(s.key,s.arg):o=null}this._invoke=function(h,d){return new Promise(function(m,v){var y={key:h,arg:d,resolve:m,reject:v,next:null};o?o=o.next=y:(s=o=y,u(h,d))})},typeof i.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(i){return this._invoke("next",i)},a.prototype.throw=function(i){return this._invoke("throw",i)},a.prototype.return=function(i){return this._invoke("return",i)}
18,t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Vr(Pre(),1);Vr(Ire(),1);Vr(Dre(),1);Vr(Hi(),1);function Lre(e){return wy(({path:t,args:r})=>{var n;const a=[...t],i=a.pop();if(i==="useMutation")return e[i](a,...r);if(i==="_def")return{path:a};const[s,...o]=r,u=(n=o[0])!==null&&n!==void 0?n:{};return e[i](a,s,u)})}var f4;const jre=["client","ssrContext","ssrState","abortOnUnmount"],Bre=(f4=N.createContext)===null||f4===void 0?void 0:f4.call(by,null),zre=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 $re(e){return wy(t=>{const r=[...t.path],n=r.pop(),a=[...t.args],i=a.shift(),s=zre(n),o=ss(r,i,s);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(r,o,a[0]),queryOptions:()=>e.queryOptions(r,o,...a),fetch:()=>e.fetchQuery(o,...a),fetchInfinite:()=>e.fetchInfiniteQuery(o,a[0]),prefetch:()=>e.prefetchQuery(o,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(o,a[0]),ensureData:()=>e.ensureQueryData(o,...a),invalidate:()=>e.invalidateQueries(o,...a),reset:()=>e.resetQueries(o,...a),refetch:()=>e.refetchQueries(o,...a),cancel:()=>e.cancelQuery(o,...a),setData:()=>{e.setQueryData(o,a[0],a[1])},setQueriesData:()=>e.setQueriesData(o,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(o,a[0],a[1])},getData:()=>e.getQueryData(o),getInfiniteData:()=>e.getInfiniteQueryData(o),setMutationDefaults:()=>e.setMutationDefaults(S1(r),i),getMutationDefaults:()=>e.getMutationDefaults(S1(r)),isMutating:()=>e.isMutating({mutationKey:S1(r)})}[n]()})}function Fre(e){const t=wF(e.client),r=$re(e);return MT(n=>{const a=n;return a==="client"?t:jre.includes(a)?e[a]:r[n]})}var Ure=ec(Dp(),1);function V9(e){const t=e instanceof Sy?e:IT(e);return wy(r=>{const n=r.path,a=n.join("."),[i,s]=r.args;return(0,Ure.default)({queryKey:ss(n,i,"query"),queryFn:()=>t.query(a,i,s?.trpc)},s)})}var d4=ec(Dp(),1);function Qn(e,t,r){var n;const a=e[0];let i=(n=e[1])===null||n===void 0?void 0:n.input;if(r){var s;i=(0,d4.default)((0,d4.default)((0,d4.default)({},(s=i)!==null&&s!==void 0?s:{}),r.pageParam?{cursor:r.pageParam}:{}),{},{direction:r.direction})}return[a.join("."),i,t?.trpc]}var Hre=Rl({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(a){var i,s,o,u=2;for(typeof Symbol<"u"&&(s=Symbol.asyncIterator,o=Symbol.iterator);u--;){if(s&&(i=a[s])!=null)return i.call(a);if(o&&(i=a[o])!=null)return new n(i.call(a));s="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function n(a){function i(s){if(Object(s)!==s)return Promise.reject(new TypeError(s+" is not an object."));var o=s.done;return Promise.resolve(s.value).then(function(u){return{value:u,done:o}})}return n=function(o){this.s=o,this.n=o.next},n.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(o){var u=this.s.return;return u===void 0?Promise.resolve({value:o,done:!0}):i(u.apply(this.s,arguments))},throw:function(o){var u=this.s.return;return u===void 0?Promise.reject(o):i(u.apply(this.s,arguments))}},new n(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),qre=ec(Hre(),1);function z5(e){return{path:e.path.join(".")}}function Dd(e){const t=z5(e);return N.useMemo(()=>t,[t])}async function SF(e,t,r){const a=t.getQueryCache().build(t,{queryKey:r});a.setState({data:[],status:"success"});const i=[];var s=!1,o=!1,u;try{for(var c=(0,qre.default)(e),h;s=!(h=await c.next()).done;s=!1){const d=h.value;i.push(d),a.setState({data:[...i]})}}catch(d){o=!0,u=d}finally{try{s&&c.return!=null&&await c.return()}finally{if(o)throw u}}return i}var Gt=ec(Dp(),1);function Vre(e){const{client:t,queryClient:r}=e,n=t instanceof Sy?t:IT(t);return{infiniteQueryOptions:(a,i,s)=>{var o,u;const c=((o=i[1])===null||o===void 0?void 0:o.input)===$a,h=async d=>{var m;const v=(0,Gt.default)((0,Gt.default)({},s),{},{trpc:(0,Gt.default)((0,Gt.default)({},s?.trpc),!(s==null||(m=s.trpc)===null||m===void 0)&&m.abortOnUnmount?{signal:d.signal}:{signal:null})});return await n.query(...Qn(i,v,{direction:d.direction,pageParam:d.pageParam}))};return Object.assign((0,Gt.default)((0,Gt.default)({},s),{},{initialData:s?.initialData,queryKey:i,queryFn:c?$a:h,initialPageParam:(u=s?.initialCursor)!==null&&u!==void 0?u:null}),{trpc:z5({path:a})})},queryOptions:(a,i,s)=>{var o;const u=((o=i[1])===null||o===void 0?void 0:o.input)===$a,c=async h=>{var d;const m=(0,Gt.default)((0,Gt.default)({},s),{},{trpc:(0,Gt.default)((0,Gt.default)({},s?.trpc),!(s==null||(d=s.trpc)===null||d===void 0)&&d.abortOnUnmount?{signal:h.signal}:{signal:null})}),v=await n.query(...Qn(i,m));return iF(v)?SF(v,r,i):v};return Object.assign((0,Gt.default)((0,Gt.default)({},s),{},{initialData:s?.initialData,queryKey:i,queryFn:u?$a:c}),{trpc:z5({path:a})})},fetchQuery:(a,i)=>r.fetchQuery((0,Gt.default)((0,Gt.default)({},i),{},{queryKey:a,queryFn:()=>n.query(...Qn(a,i))})),fetchInfiniteQuery:(a,i)=>{var s;return r.fetchInfiniteQuery((0,Gt.default)((0,Gt.default)({},i),{},{queryKey:a,queryFn:({pageParam:o,direction:u})=>n.query(...Qn(a,i,{pageParam:o,direction:u})),initialPageParam:(s=i?.initialCursor)!==null&&s!==void 0?s:null}))},prefetchQuery:(a,i)=>r.prefetchQuery((0,Gt.default)((0,Gt.default)({},i),{},{queryKey:a,queryFn:()=>n.query(...Qn(a,i))})),prefetchInfiniteQuery:(a,i)=>{var s;return r.prefetchInfiniteQuery((0,Gt.default)((0,Gt.default)({},i),{},{queryKey:a,queryFn:({pageParam:o,direction:u})=>n.query(...Qn(a,i,{pageParam:o,direction:u})),initialPageParam:(s=i?.initialCursor)!==null&&s!==void 0?s:null}))},ensureQueryData:(a,i)=>r.ensureQueryData((0,Gt.default)((0,Gt.default)({},i),{},{queryKey:a,queryFn:()=>n.query(...Qn(a,i))})),invalidateQueries:(a,i,s)=>
18r.invalidateQueries((0,Gt.default)((0,Gt.default)({},i),{},{queryKey:a}),s),resetQueries:(a,i,s)=>r.resetQueries((0,Gt.default)((0,Gt.default)({},i),{},{queryKey:a}),s),refetchQueries:(a,i,s)=>r.refetchQueries((0,Gt.default)((0,Gt.default)({},i),{},{queryKey:a}),s),cancelQuery:(a,i)=>r.cancelQueries({queryKey:a},i),setQueryData:(a,i,s)=>r.setQueryData(a,i,s),setQueriesData:(a,i,s,o)=>r.setQueriesData((0,Gt.default)((0,Gt.default)({},i),{},{queryKey:a}),s,o),getQueryData:a=>r.getQueryData(a),setInfiniteQueryData:(a,i,s)=>r.setQueryData(a,i,s),getInfiniteQueryData:a=>r.getQueryData(a),setMutationDefaults:(a,i)=>{const s=a[0],o=u=>n.mutation(...Qn([s,{input:u}],e));return r.setMutationDefaults(a,typeof i=="function"?i({canonicalMutationFn:o}):i)},getMutationDefaults:a=>r.getMutationDefaults(a),isMutating:a=>r.isMutating((0,Gt.default)((0,Gt.default)({},a),{},{exact:!0}))}}var qe=ec(Dp());const G9=(e,t)=>new Proxy(e,{get(n,a){return t(a),n[a]}});function Gre(e){var t,r;const n=(t=void 0)!==null&&t!==void 0?t:O=>O.originalFn(),a=(r=void 0)!==null&&r!==void 0?r:Bre,i=Rre,s=O=>{var k;const{abortOnUnmount:M=!1,queryClient:j,ssrContext:z}=O,[$,F]=N.useState((k=O.ssrState)!==null&&k!==void 0?k:!1),q=O.client instanceof Sy?O.client:IT(O.client),Q=N.useMemo(()=>Vre({client:q,queryClient:j}),[q,j]),X=N.useMemo(()=>(0,qe.default)({abortOnUnmount:M,queryClient:j,client:q,ssrContext:z??null,ssrState:$},Q),[M,q,Q,j,z,$]);return N.useEffect(()=>{F(te=>te?"mounted":!1)},[]),x.jsx(a.Provider,{value:X,children:O.children})};function o(){const O=N.useContext(a);if(!O)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return O}function u(O,k){var M;const{queryClient:j,ssrState:z}=o();return z&&z!=="mounted"&&((M=j.getQueryCache().find({queryKey:O}))===null||M===void 0?void 0:M.state.status)==="error"?(0,qe.default)({retryOnMount:!1},k):k}function c(O,k,M){var j,z,$,F,q;const Q=o(),{abortOnUnmount:X,client:te,ssrState:U,queryClient:J,prefetchQuery:ee}=Q,de=ss(O,k,"query"),G=J.getQueryDefaults(de),Y=k===$a;typeof window>"u"&&U==="prepass"&&(M==null||(j=M.trpc)===null||j===void 0?void 0:j.ssr)!==!1&&((z=M?.enabled)!==null&&z!==void 0?z:G?.enabled)!==!1&&!Y&&!J.getQueryCache().find({queryKey:de})&&ee(de,M);const W=u(de,(0,qe.default)((0,qe.default)({},G),M)),L=($=(F=M==null||(q=M.trpc)===null||q===void 0?void 0:q.abortOnUnmount)!==null&&F!==void 0?F:void 0)!==null&&$!==void 0?$:X,le=bte((0,qe.default)((0,qe.default)({},W),{},{queryKey:de,queryFn:Y?k:async fe=>{const Se=(0,qe.default)((0,qe.default)({},W),{},{trpc:(0,qe.default)((0,qe.default)({},W?.trpc),L?{signal:fe.signal}:{signal:null})}),ye=await te.query(...Qn(de,Se));return iF(ye)?SF(ye,J,de):ye}}),J);return le.trpc=Dd({path:O}),le}function h(O,k,M){var j,z,$;const F=o(),q=ss(O,k,"query"),Q=k===$a,X=(j=(z=M==null||($=M.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&z!==void 0?z:void 0)!==null&&j!==void 0?j:F.abortOnUnmount;_te((0,qe.default)((0,qe.default)({},M),{},{queryKey:q,queryFn:Q?k:te=>{const U={trpc:(0,qe.default)((0,qe.default)({},M?.trpc),X?{signal:te.signal}:{})};return F.client.query(...Qn(q,U))}}))}function d(O,k,M){var j,z,$;const F=o(),q=ss(O,k,"query"),Q=(j=(z=M==null||($=M.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&z!==void 0?z:void 0)!==null&&j!==void 0?j:F.abortOnUnmount,X=xte((0,qe.default)((0,qe.default)({},M),{},{queryKey:q,queryFn:te=>{const U=(0,qe.default)((0,qe.default)({},M),{},{trpc:(0,qe.default)((0,qe.default)({},M?.trpc),Q?{signal:te.signal}:{signal:null})});return F.client.query(...Qn(q,U))}}),F.queryClient);return X.trpc=Dd({path:O}),[X.data,X]}function m(O,k){const{client:M,queryClient:j}=o(),z=S1(O),$=j.defaultMutationOptions(j.getMutationDefaults(z)),F=Tte((0,qe.default)((0,qe.default)({},k),{},{mutationKey:z,mutationFn:q=>
18M.mutation(...Qn([O,{input:q}],k)),onSuccess(...q){var Q,X;return n({originalFn:()=>{var U,J,ee;return(U=k==null||(J=k.onSuccess)===null||J===void 0?void 0:J.call(k,...q))!==null&&U!==void 0?U:$==null||(ee=$.onSuccess)===null||ee===void 0?void 0:ee.call($,...q)},queryClient:j,meta:(Q=(X=k?.meta)!==null&&X!==void 0?X:$?.meta)!==null&&Q!==void 0?Q:{}})}}),j);return F.trpc=Dd({path:O}),F}const v={data:void 0,error:null,status:"idle"},y={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function b(O,k,M){var j;const z=(j=M?.enabled)!==null&&j!==void 0?j:k!==$a,$=_l(ss(O,k,"any")),{client:F}=o(),q=N.useRef(M);N.useEffect(()=>{q.current=M});const[Q]=N.useState(new Set([])),X=N.useCallback(Y=>{Q.add(Y)},[Q]),te=N.useRef(null),U=N.useCallback(Y=>{const W=ee.current,L=ee.current=Y(W);let le=!1;for(const fe of Q)if(W[fe]!==L[fe]){le=!0;break}le&&G(G9(L,X))},[X,Q]),J=N.useCallback(()=>{var Y;if((Y=te.current)===null||Y===void 0||Y.unsubscribe(),!z){U(()=>(0,qe.default)((0,qe.default)({},v),{},{reset:J}));return}U(()=>(0,qe.default)((0,qe.default)({},y),{},{reset:J}));const W=F.subscription(O.join("."),k??void 0,{onStarted:()=>{var L,le;(L=(le=q.current).onStarted)===null||L===void 0||L.call(le),U(fe=>(0,qe.default)((0,qe.default)({},fe),{},{status:"pending",error:null}))},onData:L=>{var le,fe;(le=(fe=q.current).onData)===null||le===void 0||le.call(fe,L),U(Se=>(0,qe.default)((0,qe.default)({},Se),{},{status:"pending",data:L,error:null}))},onError:L=>{var le,fe;(le=(fe=q.current).onError)===null||le===void 0||le.call(fe,L),U(Se=>(0,qe.default)((0,qe.default)({},Se),{},{status:"error",error:L}))},onConnectionStateChange:L=>{U(le=>{switch(L.state){case"idle":return(0,qe.default)((0,qe.default)({},le),{},{status:L.state,error:null,data:void 0});case"connecting":return(0,qe.default)((0,qe.default)({},le),{},{error:L.error,status:L.state});case"pending":return le}})},onComplete:()=>{var L,le;(L=(le=q.current).onComplete)===null||L===void 0||L.call(le),U(fe=>(0,qe.default)((0,qe.default)({},fe),{},{status:"idle",error:null,data:void 0}))}});te.current=W},[F,$,z,U]);N.useEffect(()=>(J(),()=>{var Y;(Y=te.current)===null||Y===void 0||Y.unsubscribe()}),[J]);const ee=N.useRef(z?(0,qe.default)((0,qe.default)({},y),{},{reset:J}):(0,qe.default)((0,qe.default)({},v),{},{reset:J})),[de,G]=N.useState(G9(ee.current,X));return de}function E(O,k,M){var j,z,$,F,q;const{client:Q,ssrState:X,prefetchInfiniteQuery:te,queryClient:U,abortOnUnmount:J}=o(),ee=ss(O,k,"infinite"),de=U.getQueryDefaults(ee),G=k===$a;typeof window>"u"&&X==="prepass"&&(M==null||(j=M.trpc)===null||j===void 0?void 0:j.ssr)!==!1&&((z=M?.enabled)!==null&&z!==void 0?z:de?.enabled)!==!1&&!G&&!U.getQueryCache().find({queryKey:ee})&&te(ee,(0,qe.default)((0,qe.default)({},de),M));const Y=u(ee,(0,qe.default)((0,qe.default)({},de),M)),W=($=M==null||(F=M.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&$!==void 0?$:J,L=Ate((0,qe.default)((0,qe.default)({},Y),{},{initialPageParam:(q=M.initialCursor)!==null&&q!==void 0?q:null,persister:M.persister,queryKey:ee,queryFn:G?k:le=>{var fe;const Se=(0,qe.default)((0,qe.default)({},Y),{},{trpc:(0,qe.default)((0,qe.default)({},Y?.trpc),W?{signal:le.signal}:{signal:null})});return Q.query(...Qn(ee,Se,{pageParam:(fe=le.pageParam)!==null&&fe!==void 0?fe:M.initialCursor,direction:le.direction}))}}),U);return L.trpc=Dd({path:O}),L}function _(O,k,M){var j,z,$;const F=o(),q=ss(O,k,"infinite"),Q=F.queryClient.getQueryDefaults(q),X=k===$a,te=u(q,(0,qe.default)((0,qe.default)({},Q),M)),U=(j=M==null||(z=M.trpc)===null||z===void 0?void 0:z.abortOnUnmount)!==null&&j!==void 0?j:F.abortOnUnmount;Ste((0,qe.default)((0,qe.default)({},M),{},{initialPageParam:($=M.initialCursor)!==null&&$!==void 0?$:null,queryKey:q,queryFn:X?k:J=>{var ee;const de=(0,qe.default)((0,qe.default)({},te),{},{trpc:(0,qe.default)((0,qe.default)({},te?.trpc),U?{signal:J.signal}:{})});return F.client.query(...Qn(q,de,{pageParam:(ee=J.pageParam)!==null&&ee!==void 0?ee:M.initialCursor,direction:J.direction}))}}))}function T(O,k,M){var j,z,$;const F=o(),q=ss(O,k,"infinite"),Q=F.queryClient.getQueryDefaults(q),X=u(q,(0,qe.default)((0,qe.default)({},Q),M)),te=(j=M==null||(z=M.trpc)===null||z===void 0?void 0:z.abortOnUnmount)!==null&&j!==void 0?j:F.abortOnUnmount,U=Ete((0,qe.default)((0,qe.default)({},M),{},{initialPageParam:($=M.initialCursor)!==null&&$!==void 0?$:null,queryKey:q,queryFn:J=>{var ee;const de=(0,qe.default)((0,qe.default)({},X),{},{trpc:(0,qe.default)((0,qe.default)({},X?.trpc),te?{signal:J.signal}:{})});return F.client.query(...Qn(q,de,{pageParam:(ee=J.pageParam)!==null&&ee!==void 0?ee:M.initialCursor,direction:J.direction}))}}),F.queryClient);return U.trpc=Dd({path:O}),[U.data,U]}return{Provider:s,createClient:i,useContext:o,useUtils:o,useQuery:c,usePrefetchQuery:h,use
vendor: 6,077 bytes, lines 18-34
18SuspenseQuery:d,useQueries:(O,k)=>{const{ssrState:M,queryClient:j,prefetchQuery:z,client:$}=o(),F=V9($),q=O(F);if(typeof window>"u"&&M==="prepass")for(const X of q){var Q;const te=X;((Q=te.trpc)===null||Q===void 0?void 0:Q.ssr)!==!1&&!j.getQueryCache().find({queryKey:te.queryKey})&&z(te.queryKey,te)}return aF({queries:q.map(X=>(0,qe.default)((0,qe.default)({},X),{},{queryKey:X.queryKey})),combine:k?.combine},j)},useSuspenseQueries:O=>{const{queryClient:k,client:M}=o(),j=V9(M),z=O(j),$=wte({queries:z.map(F=>(0,qe.default)((0,qe.default)({},F),{},{queryFn:F.queryFn,queryKey:F.queryKey}))},k);return[$.map(F=>F.data),$]},useMutation:m,useSubscription:b,useInfiniteQuery:E,usePrefetchInfiniteQuery:_,useSuspenseInfiniteQuery:T}}function Wre(e){const t=Lre(e);return MT(r=>r==="useContext"||r==="useUtils"?()=>{const n=e.useUtils();return N.useMemo(()=>Fre(n),[n])}:e.hasOwnProperty(r)?e[r]:t[r])}function Yre(e){const t=Gre();return Wre(t)}const Je=Yre(),Xre="app_session_id",Kre="Please login (10001)",Qre="__Host-oauth_state",Zre=e=>btoa(JSON.stringify(e));var h4={exports:{}},Ld={},p4={exports:{}},m4={};/**
19 * @license React
20 * scheduler.production.js
21 *
22 * Copyright (c) Meta Platforms, Inc. and affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */var W9;function Jre(){return W9||(W9=1,(function(e){function t(U,J){var ee=U.length;U.push(J);e:for(;0<ee;){var de=ee-1>>>1,G=U[de];if(0<a(G,J))U[de]=J,U[ee]=G,ee=de;else break e}}function r(U){return U.length===0?null:U[0]}function n(U){if(U.length===0)return null;var J=U[0],ee=U.pop();if(ee!==J){U[0]=ee;e:for(var de=0,G=U.length,Y=G>>>1;de<Y;){var W=2*(de+1)-1,L=U[W],le=W+1,fe=U[le];if(0>a(L,ee))le<G&&0>a(fe,L)?(U[de]=fe,U[le]=ee,de=le):(U[de]=L,U[W]=ee,de=W);else if(le<G&&0>a(fe,ee))U[de]=fe,U[le]=ee,de=le;else break e}}return J}function a(U,J){var ee=U.sortIndex-J.sortIndex;return ee!==0?ee:U.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var u=[],c=[],h=1,d=null,m=3,v=!1,y=!1,b=!1,E=!1,_=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function P(U){for(var J=r(c);J!==null;){if(J.callback===null)n(c);else if(J.startTime<=U)n(c),J.sortIndex=J.expirationTime,t(u,J);else break;J=r(c)}}function O(U){if(b=!1,P(U),!y)if(r(u)!==null)y=!0,k||(k=!0,q());else{var J=r(c);J!==null&&te(O,J.startTime-U)}}var k=!1,M=-1,j=5,z=-1;function $(){return E?!0:!(e.unstable_now()-z<j)}function F(){if(E=!1,k){var U=e.unstable_now();z=U;var J=!0;try{e:{y=!1,b&&(b=!1,T(M),M=-1),v=!0;var ee=m;try{t:{for(P(U),d=r(u);d!==null&&!(d.expirationTime>U&&$());){var de=d.callback;if(typeof de=="function"){d.callback=null,m=d.priorityLevel;var G=de(d.expirationTime<=U);if(U=e.unstable_now(),typeof G=="function"){d.callback=G,P(U),J=!0;break t}d===r(u)&&n(u),P(U)}else n(u);d=r(u)}if(d!==null)J=!0;else{var Y=r(c);Y!==null&&te(O,Y.startTime-U),J=!1}}break e}finally{d=null,m=ee,v=!1}J=void 0}}finally{J?q():k=!1}}}var q;if(typeof C=="function")q=function(){C(F)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,X=Q.port2;Q.port1.onmessage=F,q=function(){X.postMessage(null)}}else q=function(){_(F,0)};function te(U,J){M=_(function(){U(e.unstable_now())},J)}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(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(U){switch(m){case 1:case 2:case 3:var J=3;break;default:J=m}var ee=m;m=J;try{return U()}finally{m=ee}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(U,J){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ee=m;m=U;try{return J()}finally{m=ee}},e.unstable_scheduleCallback=function(U,J,ee){var de=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?de+ee:de):ee=de,U){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=ee+G,U={id:h++,callback:J,priorityLevel:U,startTime:ee,expirationTime:G,sortIndex:-1},ee>de?(U.sortIndex=ee,t(c,U),r(u)===null&&U===r(c)&&(b?(T(M),M=-1):b=!0,te(O,ee-de))):(U.sortIndex=G,t(u,U),y||v||(y=!0,k||(k=!0,q()))),U},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(U){var J=m;return function(){var ee=m;m=J;try{return U.apply(this,arguments)}finally{m=ee}}}})(m4)),m4}var Y9;function ene(){return Y9||(Y9=1,p4.exports=Jre()),p4.exports}var g4={exports:{}},jn={};/**
27 * @license React
28 * react-dom.production.js
29 *
30 * Copyright (c) Meta Platforms, Inc. and affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var X9;function tne(){if(X9)return jn;X9=1;var e=yy();function t(u){var c="https://react.dev/errors/"+u;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)c+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+u+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(u,c,h){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:d==null?null:""+d,children:u,containerInfo:c,implementation:h}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
vendor: 7,216 bytes, lines 34-42
34function o(u,c){if(u==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return jn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,jn.createPortal=function(u,c){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return i(u,c,null,h)},jn.flushSync=function(u){var c=s.T,h=n.p;try{if(s.T=null,n.p=2,u)return u()}finally{s.T=c,n.p=h,n.d.f()}},jn.preconnect=function(u,c){typeof u=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,n.d.C(u,c))},jn.prefetchDNS=function(u){typeof u=="string"&&n.d.D(u)},jn.preinit=function(u,c){if(typeof u=="string"&&c&&typeof c.as=="string"){var h=c.as,d=o(h,c.crossOrigin),m=typeof c.integrity=="string"?c.integrity:void 0,v=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;h==="style"?n.d.S(u,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:d,integrity:m,fetchPriority:v}):h==="script"&&n.d.X(u,{crossOrigin:d,integrity:m,fetchPriority:v,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},jn.preinitModule=function(u,c){if(typeof u=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var h=o(c.as,c.crossOrigin);n.d.M(u,{crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&n.d.M(u)},jn.preload=function(u,c){if(typeof u=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var h=c.as,d=o(h,c.crossOrigin);n.d.L(u,h,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},jn.preloadModule=function(u,c){if(typeof u=="string")if(c){var h=o(c.as,c.crossOrigin);n.d.m(u,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else n.d.m(u)},jn.requestFormReset=function(u){n.d.r(u)},jn.unstable_batchedUpdates=function(u,c){return u(c)},jn.useFormState=function(u,c,h){return s.H.useFormState(u,c,h)},jn.useFormStatus=function(){return s.H.useHostTransitionStatus()},jn.version="19.2.1",jn}var K9;function TF(){if(K9)return g4.exports;K9=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(),g4.exports=tne(),g4.exports}/**
35 * @license React
36 * react-dom-client.production.js
37 *
38 * Copyright (c) Meta Platforms, Inc. and affiliates.
39 *
40 * This source code is licensed under the MIT license found in the
41 * LICENSE file in the root directory of this source tree.
42 */var Q9;function rne(){if(Q9)return Ld;Q9=1;var e=ene(),t=yy(),r=TF();function n(l){var f="https://react.dev/errors/"+l;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+l+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function i(l){var f=l,p=l;if(l.alternate)for(;f.return;)f=f.return;else{l=f;do f=l,(f.flags&4098)!==0&&(p=f.return),l=f.return;while(l)}return f.tag===3?p:null}function s(l){if(l.tag===13){var f=l.memoizedState;if(f===null&&(l=l.alternate,l!==null&&(f=l.memoizedState)),f!==null)return f.dehydrated}return null}function o(l){if(l.tag===31){var f=l.memoizedState;if(f===null&&(l=l.alternate,l!==null&&(f=l.memoizedState)),f!==null)return f.dehydrated}return null}function u(l){if(i(l)!==l)throw Error(n(188))}function c(l){var f=l.alternate;if(!f){if(f=i(l),f===null)throw Error(n(188));return f!==l?null:l}for(var p=l,g=f;;){var w=p.return;if(w===null)break;var S=w.alternate;if(S===null){if(g=w.return,g!==null){p=g;continue}break}if(w.child===S.child){for(S=w.child;S;){if(S===p)return u(w),l;if(S===g)return u(w),f;S=S.sibling}throw Error(n(188))}if(p.return!==g.return)p=w,g=S;else{for(var D=!1,H=w.child;H;){if(H===p){D=!0,p=w,g=S;break}if(H===g){D=!0,g=w,p=S;break}H=H.sibling}if(!D){for(H=S.child;H;){if(H===p){D=!0,p=S,g=w;break}if(H===g){D=!0,g=S,p=w;break}H=H.sibling}if(!D)throw Error(n(189))}}if(p.alternate!==g)throw Error(n(190))}if(p.tag!==3)throw Error(n(188));return p.stateNode.current===p?l:f}function h(l){var f=l.tag;if(f===5||f===26||f===27||f===6)return l;for(l=l.child;l!==null;){if(f=h(l),f!==null)return f;l=l.sibling}return null}var d=Object.assign,m=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),C=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function q(l){return l===null||typeof l!="object"?null:(l=F&&l[F]||l["@@iterator"],typeof l=="function"?l:null)}var Q=Symbol.for("react.client.reference");function X(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Q?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case b:return"Fragment";case _:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case k:return"SuspenseList";case z:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case y:return"Portal";case C:return l.displayName||"Context";case T:return(l._context.displayName||"Context")+".Consumer";case P:var f=l.render;return l=l.displayName,l||(l=f.displayName||f.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case M:return f=l.displayName||null,f!==null?f:X(l.type)||"Memo";case j:f=l._payload,l=l._init;try{return X(l(f))}catch{}}return null}var te=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},de=[],G=-1;function Y(l){return{current:l}}function W(l){0>G||(l.current=de[G],de[G]=null,G--)}function L(l,f){G++,de[G]=l.current,l.current=f}var le=Y(null),fe=Y(null),Se=Y(null),ye=Y(null);function Ne(l,f){switch(L(Se,f),L(fe,l),L(le,null),f.nodeType){case 9:case 11:l=(l=f.documentElement)&&(l=l.namespaceURI)?Kk(l):0;break;default:if(l=f.tagName,f=f.namespaceURI)f=Kk(f),l=Qk(f,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}W(le),L(le,l)}function xe(){W(le),W(fe),W(Se)}function Pe(l){l.memoizedState!==null&&L(ye,l);var f=le.current,p=Qk(f,l.type);f!==p&&(L(fe,l),L(le,p))}function ze(l){fe.current===l&&(W(le),W(fe)),ye.current===l&&(W(ye),Nd._currentValue=ee)}
vendor: 11,693 bytes, lines 42-49
42var we,ft;function Qe(l){if(we===void 0)try{throw Error()}catch(p){var f=p.stack.trim().match(/\n( *(at )?)/);we=f&&f[1]||"",ft=-1<p.stack.indexOf(`
43    at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
44`+we+l+ft}var zt=!1;function Pt(l,f){if(!l||zt)return"";zt=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(f){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(Ee){var be=Ee}Reflect.construct(l,[],ke)}else{try{ke.call()}catch(Ee){be=Ee}l.call(ke.prototype)}}else{try{throw Error()}catch(Ee){be=Ee}(ke=l())&&typeof ke.catch=="function"&&ke.catch(function(){})}}catch(Ee){if(Ee&&be&&typeof Ee.stack=="string")return[Ee.stack,be.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=g.DetermineComponentFrameRoot(),D=S[0],H=S[1];if(D&&H){var oe=D.split(`
45`),ve=H.split(`
46`);for(w=g=0;g<oe.length&&!oe[g].includes("DetermineComponentFrameRoot");)g++;for(;w<ve.length&&!ve[w].includes("DetermineComponentFrameRoot");)w++;if(g===oe.length||w===ve.length)for(g=oe.length-1,w=ve.length-1;1<=g&&0<=w&&oe[g]!==ve[w];)w--;for(;1<=g&&0<=w;g--,w--)if(oe[g]!==ve[w]){if(g!==1||w!==1)do if(g--,w--,0>w||oe[g]!==ve[w]){var Te=`
47`+oe[g].replace(" at new "," at ");return l.displayName&&Te.includes("<anonymous>")&&(Te=Te.replace("<anonymous>",l.displayName)),Te}while(1<=g&&0<=w);break}}}finally{zt=!1,Error.prepareStackTrace=p}return(p=l?l.displayName||l.name:"")?Qe(p):""}function Ut(l,f){switch(l.tag){case 26:case 27:case 5:return Qe(l.type);case 16:return Qe("Lazy");case 13:return l.child!==f&&f!==null?Qe("Suspense Fallback"):Qe("Suspense");case 19:return Qe("SuspenseList");case 0:case 15:return Pt(l.type,!1);case 11:return Pt(l.type.render,!1);case 1:return Pt(l.type,!0);case 31:return Qe("Activity");default:return""}}function jr(l){try{var f="",p=null;do f+=Ut(l,p),p=l,l=l.return;while(l);return f}catch(g){return`
48Error generating stack: `+g.message+`
49`+g.stack}}var ar=Object.prototype.hasOwnProperty,Aa=e.unstable_scheduleCallback,Wn=e.unstable_cancelCallback,yr=e.unstable_shouldYield,aa=e.unstable_requestPaint,Gr=e.unstable_now,Mo=e.unstable_getCurrentPriorityLevel,Ae=e.unstable_ImmediatePriority,$e=e.unstable_UserBlockingPriority,nt=e.unstable_NormalPriority,vt=e.unstable_LowPriority,Ct=e.unstable_IdlePriority,In=e.log,Dn=e.unstable_setDisableYieldValue,Tn=null,Br=null;function An(l){if(typeof In=="function"&&Dn(l),Br&&typeof Br.setStrictMode=="function")try{Br.setStrictMode(Tn,l)}catch{}}var Qt=Math.clz32?Math.clz32:Yi,Wi=Math.log,Yn=Math.LN2;function Yi(l){return l>>>=0,l===0?32:31-(Wi(l)/Yn|0)|0}var pc=256,mc=262144,Ul=4194304;function Xi(l){var f=l&42;if(f!==0)return f;switch(l&-l){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 l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function lt(l,f,p){var g=l.pendingLanes;if(g===0)return 0;var w=0,S=l.suspendedLanes,D=l.pingedLanes;l=l.warmLanes;var H=g&134217727;return H!==0?(g=H&~S,g!==0?w=Xi(g):(D&=H,D!==0?w=Xi(D):p||(p=H&~l,p!==0&&(w=Xi(p))))):(H=g&~S,H!==0?w=Xi(H):D!==0?w=Xi(D):p||(p=g&~l,p!==0&&(w=Xi(p)))),w===0?0:f!==0&&f!==w&&(f&S)===0&&(S=w&-w,p=f&-f,S>=p||S===32&&(p&4194048)!==0)?f:w}function wr(l,f){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&f)===0}function mn(l,f){switch(l){case 1:case 2:case 4:case 8:case 64:return f+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 f+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 Ln(){var l=Ul;return Ul<<=1,(Ul&62914560)===0&&(Ul=4194304),l}function Po(l){for(var f=[],p=0;31>p;p++)f.push(l);return f}function Or(l,f){l.pendingLanes|=f,f!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function ia(l,f,p,g,w,S){var D=l.pendingLanes;l.pendingLanes=p,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=p,l.entangledLanes&=p,l.errorRecoveryDisabledLanes&=p,l.shellSuspendCounter=0;var H=l.entanglements,oe=l.expirationTimes,ve=l.hiddenUpdates;for(p=D&~p;0<p;){var Te=31-Qt(p),ke=1<<Te;H[Te]=0,oe[Te]=-1;var be=ve[Te];if(be!==null)for(ve[Te]=null,Te=0;Te<be.length;Te++){var Ee=be[Te];Ee!==null&&(Ee.lane&=-536870913)}p&=~ke}g!==0&&Hl(l,g,0),S!==0&&w===0&&l.tag!==0&&(l.suspendedLanes|=S&~(D&~f))}function Hl(l,f,p){l.pendingLanes|=f,l.suspendedLanes&=~f;var g=31-Qt(f);l.entangledLanes|=f,l.entanglements[g]=l.entanglements[g]|1073741824|p&261930}function sa(l,f){var p=l.entangledLanes|=f;for(l=l.entanglements;p;){var g=31-Qt(p),w=1<<g;w&f|l[g]&f&&(l[g]|=f),p&=~w}}function oa(l,f){var p=f&-f;return p=(p&42)!==0?1:gc(p),(p&(l.suspendedLanes|f))!==0?0:p}function gc(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Ti(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function Qb(){var l=J.p;return l!==0?l:(l=window.event,l===void 0?32:x9(l.type))}function L7(l,f){var p=J.p;try{return J.p=l,f()}finally{J.p=p}}var Io=Math.random().toString(36).slice(2),Cn="__reactFiber$"+Io,la="__reactProps$"+Io,vc="__reactContainer$"+Io,Zb="__reactEvents$"+Io,NZ="__reactListeners$"+Io,RZ="__reactHandles$"+Io,j7="__reactResources$"+Io,V0="__reactMarker$"+Io;function Jb(l){delete l[Cn],delete l[la],delete l[Zb],delete l[NZ],delete l[RZ]}function yc(l){var f=l[Cn];if(f)return f;for(var p=l.parentNode;p;){if(f=p[vc]||p[Cn]){if(p=f.alternate,f.child!==null||p!==null&&p.child!==null)for(l=a9(l);l!==null;){if(p=l[Cn])return p;l=a9(l)}return f}l=p,p=l.parentNode}return null}function bc(l){if(l=l[Cn]||l[vc]){var f=l.tag;if(f===5||f===6||f===13||f===31||f===26||f===27||f===3)return l}return null}function G0(l){var f=l.tag;if(f===5||f===26||f===27||f===6)return l.stateNode;throw Error(n(33))}function xc(l){var f=l[j7];return f||(f=l[j7]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function gn(l){l[V0]=!0}var B7=new Set,z7={};function ql(l,f){Ec(l,f),Ec(l+"Capture",f)}function Ec(l,f){for(z7[l]=f,l=0;l<f.length;l++)B7.add(f[l])}var MZ=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]*$"),$7={},F7={};function PZ(l){return ar.call(F7,l)?!0:ar.call($7,l)?!1:MZ.test(l)?F7[l]=!0:($7[l]=!0,!1)}function dm(l,f,p){if(PZ(f))if(p===null)l.removeAttribute(f);else{switch(typeof p){case"undefined":case"function":case"symbol":l.removeAttribute(f);return;case"boolean":var g=f.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){l.removeAttribute(f);return}}l.setAttribute(f,""+p)}}function hm(l,f,p){if(p===null)l.removeAttribute(f);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(f);return}l.setAttribute(f,""+p)}}function Ns(l,f,p,g){if(g===null)l.removeAttribute(p);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(p);return}l.setAttributeNS(f,p,""+g)}}function Ya(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function U7(l){var f=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function IZ(l,f,p){var g=Object.getOwnPropertyDescriptor(l.constructor.prototype,f);if(!l.hasOwnProperty(f)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var w=g.get,S=g.set;return Object.defineProperty(l,f,{configurable:!0,get:function(){return w.call(this)},set:function(D){p=""+D,S.call(this,D)}}),Object.defineProperty(l,f,{enumerable:g.enumerable}),{getValue:function(){return p},setValue:function(D){p=""+D},stopTracking:function(){l._valueTracker=null,delete l[f]}}}}function e2(l){if(!l._valueTracker){var f=U7(l)?"checked":"value";l._valueTracker=IZ(l,f,""+l[f])}}function H7(l){if(!l)return!1;var f=l._valueTracker;if(!f)return!0;var p=f.getValue(),g="";return l&&(g=U7(l)?l.checked?"true":"false":l.value),l=g,l!==p?(f.setValue(l),!0):!1}function pm(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var DZ=/[\n"\\]/g;function Xa(l){return l.replace(DZ,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function t2(l,f,p,g,w,S,D,H){l.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?l.type=D:l.removeAttribute("type"),f!=null?D==="number"?(f===0&&l.value===""||l.value!=f)&&(l.value=""+Ya(f)):l.value!==""+Ya(f)&&(l.value=""+Ya(f)):D!=="submit"&&D!=="reset"||l.removeAttribute("value"),f!=null?r2(l,D,Ya(f)):p!=null?r2(l,D,Ya(p)):g!=null&&l.removeAttribute("value"),w==null&&S!=null&&(l.defaultChecked=!!S),w!=null&&(l.checked=w&&typeof w!="function"&&typeof w!="symbol"),H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"?l.name=""+Ya(H):l.removeAttribute("name")}function q7(l,f,p,g,w,S,D,H){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(l.type=S),f!=null||p!=null){if(!(S!=="submit"&&S!=="reset"||f!=null)){e2(l);return}p=p!=null?""+Ya(p):"",f=f!=null?""+Ya(f):p,H||f===l.value||(l.value=f),l.defaultValue=f}g=g??w,g=typeof g!="function"&&typeof g!="symbol"&&!!g,l.checked=H?l.checked:!!g,l.defaultChecked=!!g,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(l.name=D),e2(l)}function r2(l,f,p){f==="number"&&pm(l.ownerDocument)===l||l.defaultValue===""+p||(l.defaultValue=""+p)}function wc(l,f,p,g){if(l=l.options,f){f={};for(var w=0;w<p.length;w++)f["$"+p[w]]=!0;for(p=0;p<l.length;p++)w=f.hasOwnProperty("$"+l[p].value),l[p].selected!==w&&(l[p].selected=w),w&&g&&(l[p].defaultSelected=!0)}else{for(p=""+Ya(p),f=null,w=0;w<l.length;w++){if(l[w].value===p){l[w].selected=!0,g&&(l[w].defaultSelected=!0);return}f!==null||l[w].disabled||(f=l[w])}f!==null&&(f.selected=!0)}}function V7(l,f,p){if(f!=null&&(f=""+Ya(f),f!==l.value&&(l.value=f),p==null)){l.defaultValue!==f&&(l.defaultValue=f);return}l.defaultValue=p!=null?""+Ya(p):""}function G7(l,f,p,g){if(f==null){if(g!=null){if(p!=null)throw Error(n(92));if(te(g)){if(1<g.length)throw Error(n(93));g=g[0]}p=g}p==null&&(p=""),f=p}p=Ya(f),l.defaultValue=p,g=l.textContent,g===p&&g!==""&&g!==null&&(l.value=g),e2(l)}function _c(l,f){if(f){var p=l.firstChild;
vendor: 4,140 bytes, line 49
49if(p&&p===l.lastChild&&p.nodeType===3){p.nodeValue=f;return}}l.textContent=f}var LZ=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 W7(l,f,p){var g=f.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?g?l.setProperty(f,""):f==="float"?l.cssFloat="":l[f]="":g?l.setProperty(f,p):typeof p!="number"||p===0||LZ.has(f)?f==="float"?l.cssFloat=p:l[f]=(""+p).trim():l[f]=p+"px"}function Y7(l,f,p){if(f!=null&&typeof f!="object")throw Error(n(62));if(l=l.style,p!=null){for(var g in p)!p.hasOwnProperty(g)||f!=null&&f.hasOwnProperty(g)||(g.indexOf("--")===0?l.setProperty(g,""):g==="float"?l.cssFloat="":l[g]="");for(var w in f)g=f[w],f.hasOwnProperty(w)&&p[w]!==g&&W7(l,w,g)}else for(var S in f)f.hasOwnProperty(S)&&W7(l,S,f[S])}function n2(l){if(l.indexOf("-")===-1)return!1;switch(l){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 jZ=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
49-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"]]),BZ=/^[\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 mm(l){return BZ.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function Rs(){}var a2=null;function i2(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Sc=null,Tc=null;function X7(l){var f=bc(l);if(f&&(l=f.stateNode)){var p=l[la]||null;e:switch(l=f.stateNode,f.type){case"input":if(t2(l,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),f=p.name,p.type==="radio"&&f!=null){for(p=l;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+Xa(""+f)+'"][type="radio"]'),f=0;f<p.length;f++){var g=p[f];if(g!==l&&g.form===l.form){var w=g[la]||null;if(!w)throw Error(n(90));t2(g,w.value,w.defaultValue,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name)}}for(f=0;f<p.length;f++)g=p[f],g.form===l.form&&H7(g)}break e;case"textarea":V7(l,p.value,p.defaultValue);break e;case"select":f=p.value,f!=null&&wc(l,!!p.multiple,f,!1)}}}var s2=!1;function K7(l,f,p){if(s2)return l(f,p);s2=!0;try{var g=l(f);return g}finally{if(s2=!1,(Sc!==null||Tc!==null)&&(rg(),Sc&&(f=Sc,l=Tc,Tc=Sc=null,X7(f),l)))for(f=0;f<l.length;f++)X7(l[f])}}function W0(l,f){var p=l.stateNode;if(p===null)return null;var g=p[la]||null;if(g===null)return null;p=g[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(l=l.type,g=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!g;break e;default:l=!1}if(l)return null;if(p&&typeof p!="function")throw Error(n(231,f,typeof p));return p}var Ms=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),o2=!1;if(Ms)try{var Y0={};Object.defineProperty(Y0,"passive",{get:function(){o2=!0}}),window.addEventListener("test",Y0,Y0),window.removeEventListener("test",Y0,Y0)}catch{o2=!1}var Do=null,l2=null,gm=null;function Q7(){if(gm)return gm;var l,f=l2,p=f.length,g,w="value"in Do?Do.value:Do.textContent,S=w.length;for(l=0;l<p&&f[l]===w[l];l++);var D=p-l;for(g=1;g<=D&&f[p-g]===w[S-g];g++);return gm=w.slice(l,1<g?1-g:void 0)}function vm(l){var f=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&f===13&&(l=13)):l=f,l===10&&(l=13),32<=l||l===13?l:0}function ym(){return!0}function Z7(){return!1}function ua(l){function f(p,g,w,S,D){this._reactName=p,this._targetInst=w,this.type=g,this.nativeEvent=S,this.target=D,this.currentTarget=null;for(var H in l)l.hasOwnProperty(H)&&(p=l[H],this[H]=p?p(S):S[H]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?ym:Z7,this.isPropagationStopped=Z7,this}return d(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=ym)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=ym)},persist:function(){},isPersistent:ym}),f}var Vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bm=ua(Vl),X0=d({},Vl,{view:0,detail:0}),zZ=ua(X0),u2,c2,K0,xm=d({},X0,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:d2,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==K0&&(K0&&l.type==="mousemove"?(u2=l.screenX-K0.screenX,c2=l.screenY-K0.screenY):c2=u2=0,K0=l),u2)},movementY:function(l){return"movementY"in l?l.movementY:c2}}),J7=ua(xm),$Z=d({},xm,{dataTransfer:0}),FZ=ua($Z),UZ=d({},X0,{relatedTarget:0}),f2=ua(UZ),HZ=d({},Vl,{animationName:0,elapsedTime:0,pseudoElement:0}),qZ=ua(HZ),VZ=d({},Vl,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),GZ=ua(VZ),WZ=d({},Vl,{data:0}),eC=ua(WZ),YZ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XZ={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"},KZ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function QZ(l){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(l):(l=KZ[l])?!!f[l]:!1}function d2(){return QZ}var ZZ=d({},X0,{key:function(l){if(l.key){var f=YZ[l.key]||l.key;if(f!=="Unidentified")return f}
vendor: 5,019 bytes, line 49
49return l.type==="keypress"?(l=vm(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?XZ[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:d2,charCode:function(l){return l.type==="keypress"?vm(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?vm(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),JZ=ua(ZZ),eJ=d({},xm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tC=ua(eJ),tJ=d({},X0,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:d2}),rJ=ua(tJ),nJ=d({},Vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),aJ=ua(nJ),iJ=d({},xm,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),sJ=ua(iJ),oJ=d({},Vl,{newState:0,oldState:0}),lJ=ua(oJ),uJ=[9,13,27,32],h2=Ms&&"CompositionEvent"in window,Q0=null;Ms&&"documentMode"in document&&(Q0=document.documentMode);var cJ=Ms&&"TextEvent"in window&&!Q0,rC=Ms&&(!h2||Q0&&8<Q0&&11>=Q0),nC=" ",aC=!1;function iC(l,f){switch(l){case"keyup":return uJ.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sC(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Ac=!1;function fJ(l,f){switch(l){case"compositionend":return sC(f);case"keypress":return f.which!==32?null:(aC=!0,nC);case"textInput":return l=f.data,l===nC&&aC?null:l;default:return null}}function dJ(l,f){if(Ac)return l==="compositionend"||!h2&&iC(l,f)?(l=Q7(),gm=l2=Do=null,Ac=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return rC&&f.locale!=="ko"?null:f.data;default:return null}}var hJ={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 oC(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f==="input"?!!hJ[l.type]:f==="textarea"}function lC(l,f,p,g){Sc?Tc?Tc.push(g):Tc=[g]:Sc=g,f=ug(f,"onChange"),0<f.length&&(p=new bm("onChange","change",null,p,g),l.push({event:p,listeners:f}))}var Z0=null,J0=null;function pJ(l){qk(l,0)}function Em(l){var f=G0(l);if(H7(f))return l}function uC(l,f){if(l==="change")return f}var cC=!1;if(Ms){var p2;if(Ms){var m2="oninput"in document;if(!m2){var fC=document.createElement("div");fC.setAttribute("oninput","return;"),m2=typeof fC.oninput=="function"}p2=m2}else p2=!1;cC=p2&&(!document.documentMode||9<document.documentMode)}function dC(){Z0&&(Z0.detachEvent("onpropertychange",hC),J0=Z0=null)}function hC(l){if(l.propertyName==="value"&&Em(J0)){var f=[];lC(f,J0,l,i2(l)),K7(pJ,f)}}function mJ(l,f,p){l==="focusin"?(dC(),Z0=f,J0=p,Z0.attachEvent("onpropertychange",hC)):l==="focusout"&&dC()}function gJ(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Em(J0)}function vJ(l,f){if(l==="click")return Em(f)}function yJ(l,f){if(l==="input"||l==="change")return Em(f)}function bJ(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var Ca=typeof Object.is=="function"?Object.is:bJ;function ed(l,f){if(Ca(l,f))return!0;if(typeof l!="object"||l===null||typeof f!="object"||f===null)return!1;var p=Object.keys(l),g=Object.keys(f);if(p.length!==g.length)return!1;for(g=0;g<p.length;g++){var w=p[g];if(!ar.call(f,w)||!Ca(l[w],f[w]))return!1}return!0}function pC(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function mC(l,f){var p=pC(l);l=0;for(var g;p;){if(p.nodeType===3){if(g=l+p.textContent.length,l<=f&&g>=f)return{node:p,offset:f-l};l=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=pC(p)}}function gC(l,f){return l&&f?l===f?!0:l&&l.nodeType===3?!1:f&&f.nodeType===3?gC(l,f.parentNode):"contains"in l?l.contains(f):l.compareDocumentPosition?!!(l.compareDocumentPosition(f)&16):!1:!1}function vC(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var f=pm(l.document);f instanceof l.HTMLIFrameElement;){try{var p=typeof f.contentWindow.location.href=="string"}catch{p=!1}if(p)l=f.contentWindow;else break;f=pm(l.document)}return f}function g2(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f&&(f==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||f==="textarea"||l.contentEditable==="true")}var xJ=Ms&&"documentMode"in document&&11>=document.documentMode,Cc=null,v2=null,td=null,y2=!1;function yC(l,f,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;y2||Cc==null||Cc!==pm(g)||(g=Cc,"selectionStart"in g&&g2(g)?g={start:g.
vendor: 21,443 bytes, line 49
49selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),td&&ed(td,g)||(td=g,g=ug(v2,"onSelect"),0<g.length&&(f=new bm("onSelect","select",null,f,p),l.push({event:f,listeners:g}),f.target=Cc)))}function Gl(l,f){var p={};return p[l.toLowerCase()]=f.toLowerCase(),p["Webkit"+l]="webkit"+f,p["Moz"+l]="moz"+f,p}var Oc={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionrun:Gl("Transition","TransitionRun"),transitionstart:Gl("Transition","TransitionStart"),transitioncancel:Gl("Transition","TransitionCancel"),transitionend:Gl("Transition","TransitionEnd")},b2={},bC={};Ms&&(bC=document.createElement("div").style,"AnimationEvent"in window||(delete Oc.animationend.animation,delete Oc.animationiteration.animation,delete Oc.animationstart.animation),"TransitionEvent"in window||delete Oc.transitionend.transition);function Wl(l){if(b2[l])return b2[l];if(!Oc[l])return l;var f=Oc[l],p;for(p in f)if(f.hasOwnProperty(p)&&p in bC)return b2[l]=f[p];return l}var xC=Wl("animationend"),EC=Wl("animationiteration"),wC=Wl("animationstart"),EJ=Wl("transitionrun"),wJ=Wl("transitionstart"),_J=Wl("transitioncancel"),_C=Wl("transitionend"),SC=new Map,x2="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(" ");x2.push("scrollEnd");function Ai(l,f){SC.set(l,f),ql(f,[l])}var wm=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},Ka=[],kc=0,E2=0;function _m(){for(var l=kc,f=E2=kc=0;f<l;){var p=Ka[f];Ka[f++]=null;var g=Ka[f];Ka[f++]=null;var w=Ka[f];Ka[f++]=null;var S=Ka[f];if(Ka[f++]=null,g!==null&&w!==null){var D=g.pending;D===null?w.next=w:(w.next=D.next,D.next=w),g.pending=w}S!==0&&TC(p,w,S)}}function Sm(l,f,p,g){Ka[kc++]=l,Ka[kc++]=f,Ka[kc++]=p,Ka[kc++]=g,E2|=g,l.lanes|=g,l=l.alternate,l!==null&&(l.lanes|=g)}function w2(l,f,p,g){return Sm(l,f,p,g),Tm(l)}function Yl(l,f){return Sm(l,null,null,f),Tm(l)}function TC(l,f,p){l.lanes|=p;var g=l.alternate;g!==null&&(g.lanes|=p);for(var w=!1,S=l.return;S!==null;)S.childLanes|=p,g=S.alternate,g!==null&&(g.childLanes|=p),S.tag===22&&(l=S.stateNode,l===null||l._visibility&1||(w=!0)),l=S,S=S.return;return l.tag===3?(S=l.stateNode,w&&f!==null&&(w=31-Qt(p),l=S.hiddenUpdates,g=l[w],g===null?l[w]=[f]:g.push(f),f.lane=p|536870912),S):null}function Tm(l){if(50<_d)throw _d=0,Rx=null,Error(n(185));for(var f=l.return;f!==null;)l=f,f=l.return;return l.tag===3?l.stateNode:null}var Nc={};function SJ(l,f,p,g){this.tag=l,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oa(l,f,p,g){return new SJ(l,f,p,g)}function _2(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Ps(l,f){var p=l.alternate;return p===null?(p=Oa(l.tag,f,l.key,l.mode),p.elementType=l.elementType,p.type=l.type,p.stateNode=l.stateNode,p.alternate=l,l.alternate=p):(p.pendingProps=f,p.type=l.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=l.flags&65011712,p.childLanes=l.childLanes,p.lanes=l.lanes,p.child=l.child,p.memoizedProps=l.memoizedProps,p.memoizedState=l.memoizedState,p.updateQueue=l.updateQueue,f=l.dependencies,p.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},p.sibling=l.sibling,p.index=l.index,p.ref=l.ref,p.refCleanup=l.refCleanup,p}function AC(l,f){l.flags&=65011714;var p=l.alternate;return p===null?(l.childLanes=0,l.lanes=f,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=p.childLanes,l.lanes=p.lanes,l.child=p.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=p.memoizedProps,l.memoizedState=p.memoizedState,l.updateQueue=p.updateQueue,l.type=p.type,f=p.dependencies,l.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),l}function Am(l,f,p,g,w,S){var D=0;if(g=l,typeof l=="function")_2(l)&&(D=1);else if(typeof l=="string")D=kee(l,p,le.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case z:return l=Oa(31,p,f,w),l.elementType=z,l.lanes=S,l;case b:return Xl(p.children,w,S,f);case E:D=8,w|=24;break;case _:return l=Oa(12,p,f,w|2),l.elementType=_,l.lanes=S,l;case O:return l=Oa(13,p,f,w),l.elementType=O,l.lanes=S,l;case k:return l=Oa(19,p,f,w),l.elementType=k,l.lanes=S,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case C:D=10;break e;case T:D=9;break e;case P:D=11;break e;case M:D=14;break e;case j:D=16,g=null;break e}D=29,p=Error(n(130,l===null?"null":typeof l,"")),g=null}return f=Oa(D,p,f,w),f.elementType=l,f.type=g,f.lanes=S,f}function Xl(l,f,p,g){return l=Oa(7,l,g,f),l.lanes=p,l}function S2(l,f,p){return l=Oa(6,l,null,f),l.lanes=p,l}function CC(l){var f=Oa(18,null,null,0);return f.stateNode=l,f}function T2(l,f,p){return f=Oa(4,l.children!==null?l.children:[],l.key,f),f.lanes=p,f.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},f}var OC=new WeakMap;function Qa(l,f){if(typeof l=="object"&&l!==null){var p=OC.get(l);return p!==void 0?p:(f={value:l,source:f,stack:jr(f)},OC.set(l,f),f)}return{value:l,source:f,stack:jr(f)}}var Rc=[],Mc=0,Cm=null,rd=0,Za=[],Ja=0,Lo=null,Ki=1,Qi="";function Is(l,f){Rc[Mc++]=rd,Rc[Mc++]=Cm,Cm=l,rd=f}function kC(l,f,p){Za[Ja++]=Ki,Za[Ja++]=Qi,Za[Ja++]=Lo,Lo=l;var g=Ki;l=Qi;var w=32-Qt(g)-1;g&=~(1<<w),p+=1;var S=32-Qt(f)+w;if(30<S){var D=w-w%5;S=(g&(1<<D)-1).toString(32),g>>=D,w-=D,Ki=1<<32-Qt(f)+w|p<<w|g,Qi=S+l}else Ki=1<<S|p<<w|g,Qi=l}function A2(l){l.return!==null&&(Is(l,1),kC(l,1,0))}function C2(l){for(;l===Cm;)Cm=Rc[--Mc],Rc[Mc]=null,rd=Rc[--Mc],Rc[Mc]=null;for(;l===Lo;)Lo=Za[--Ja],Za[Ja]=null,Qi=Za[--Ja],Za[Ja]=null,Ki=Za[--Ja],Za[Ja]=null}function NC(l,f){Za[Ja++]=Ki,Za[Ja++]=Qi,Za[Ja++]=Lo,Ki=f.id,Qi=f.overflow,Lo=l}var On=null,br=null,$t=!1,jo=null,ei=!1,O2=Error(n(519));function Bo(l){var f=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nd(Qa(f,l)),O2}function RC(l){var f=l.stateNode,p=l.type,g=l.memoizedProps;switch(f[Cn]=l,f[la]=g,p){case"dialog":kt("cancel",f),kt("close",f);break;case"iframe":case"object":case"embed":kt("load",f);break;case"video":case"audio":for(p=0;p<Td.length;p++)kt(Td[p],f);break;case"source":kt("error",f);break;case"img":case"image":case"link":kt("error",f),kt("load",f);break;case"details":kt("toggle",f);break;case"input":kt("invalid",f),q7(f,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0);break;case"select":kt("invalid",f);break;case"textarea":kt("invalid",f),G7(f,g.value,g.defaultValue,g.children)}p=g.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||f.textContent===""+p||g.suppressHydrationWarning===!0||Yk(f.textContent,p)?(g.popover!=null&&(kt("beforetoggle",f),kt("toggle",f)),g.onScroll!=null&&kt("scroll",f),g.onScrollEnd!=null&&kt("scrollend",f),g.onClick!=null&&(f.onclick=Rs),f=!0):f=!1,f||Bo(l,!0)}function MC(l){for(On=l.return;On;)switch(On.tag){case 5:case 31:case 13:ei=!1;return;case 27:case 3:ei=!0;return;default:On=On.return}}function Pc(l){if(l!==On)return!1;if(!$t)return MC(l),$t=!0,!1;var f=l.tag,p;if((p=f!==3&&f!==27)&&((p=f===5)&&(p=l.type,p=!(p!=="form"&&p!=="button")||Gx(l.type,l.memoizedProps)),p=!p),p&&br&&Bo(l),MC(l),f===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));br=n9(l)}else if(f===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));br=n9(l)}else f===27?(f=br,Zo(l.type)?(l=Qx,Qx=null,br=l):br=f):br=On?ri(l.stateNode.nextSibling):null;return!0}function Kl(){br=On=null,$t=!1}function k2(){var l=jo;return l!==null&&(ha===null?ha=l:ha.push.apply(ha,l),jo=null),l}function nd(l){jo===null?jo=[l]:jo.push(l)}var N2=Y(null),Ql=null,Ds=null;function zo(l,f,p){L(N2,f._currentValue),f._currentValue=p}function Ls(l){l._currentValue=N2.current,W(N2)}function R2(l,f,p){for(;l!==null;){var g=l.alternate;if((l.childLanes&f)!==f?(l.childLanes|=f,g!==null&&(g.childLanes|=f)):g!==null&&(g.childLanes&f)!==f&&(g.childLanes|=f),l===p)break;l=l.return}}function M2(l,f,p,g){var w=l.child;for(w!==null&&(w.return=l);w!==null;){var S=w.dependencies;if(S!==null){var D=w.child;S=S.firstContext;e:for(;S!==null;){var H=S;S=w;for(var oe=0;oe<f.length;oe++)if(H.context===f[oe]){S.lanes|=p,H=S.alternate,H!==null&&(H.lanes|=p),R2(S.return,p,l),g||(D=null);break e}S=H.next}}else if(w.tag===18){if(D=w.return,D===null)throw Error(n(341));D.lanes|=p,S=D.alternate,S!==null&&(S.lanes|=p),R2(D,p,l),D=null}else D=w.child;if(D!==null)D.return=w;else for(D=w;D!==null;){if(D===l){D=null;break}if(w=D.sibling,w!==null){w.return=D.return,D=w;break}D=D.return}w=D}}function Ic(l,f,p,g){l=null;for(var w=f,S=!1;w!==null;){if(!S){if((w.flags&524288)!==0)S=!0;else if((w.flags&262144)!==0)break}if(w.tag===10){var D=w.alternate;if(D===null)throw Error(n(387));if(D=D.memoizedProps,D!==null){var H=w.type;Ca(w.pendingProps.value,D.value)||(l!==null?l.push(H):l=[H])}}else if(w===ye.current){if(D=w.alternate,D===null)throw Error(n(387));D.memoizedState.memoizedState!==w.memoizedState.memoizedState&&(l!==null?l.push(Nd):l=[Nd])}w=w.return}l!==null&&M2(f,l,p,g),f.flags|=262144}function Om(l){for(l=l.firstContext;l!==null;){if(!Ca(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function Zl(l){Ql=l,Ds=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function kn(l){return PC(Ql,l)}function km(l,f){return Ql===null&&Zl(l),PC(l,f)}function PC(l,f){var p=f._currentValue;if(f={context:f,memoizedValue:p,next:null},Ds===null){if(l===null)throw Error(n(308));Ds=f,l.dependencies={lanes:0,firstContext:f},l.flags|=524288}else Ds=Ds.next=f;return p}var TJ=typeof AbortController<"u"?AbortController:function(){var l=[],f=this.signal={aborted:!1,addEventListener:function(p,g){l.push(g)}};this.abort=function(){f.aborted=!0,l.forEach(function(p){return p()})}},AJ=e.unstable_scheduleCallback,CJ=e.unstable_NormalPriority,Wr={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function P2(){return{controller:new TJ,data:new Map,refCount:0}}function ad(l){l.refCount--,l.refCount===0&&AJ(CJ,function(){l.controller.abort()})}var id=null,I2=0,Dc=0,Lc=null;function OJ(l,f){if(id===null){var p=id=[];I2=0,Dc=jx(),Lc={status:"pending",value:void 0,then:function(g){p.push(g)}}}return I2++,f.then(IC,IC),f}function IC(){if(--I2===0&&id!==null){Lc!==null&&(Lc.status="fulfilled");var l=id;id=null,Dc=0,Lc=null;for(var f=0;f<l.length;f++)(0,l[f])()}}function kJ(l,f){var p=[],g={status:"pending",value:null,reason:null,then:function(w){p.push(w)}};return l.then(function(){g.status="fulfilled",g.value=f;for(var w=0;w<p.length;w++)(0,p[w])(f)},function(w){for(g.status="rejected",g.reason=w,w=0;w<p.length;w++)(0,p[w])(void 0)}),g}var DC=U.S;U.S=function(l,f){yk=Gr(),typeof f=="object"&&f!==null&&typeof f.then=="function"&&OJ(l,f),DC!==null&&DC(l,f)};var Jl=Y(null);function D2(){var l=Jl.current;return l!==null?l:cr.pooledCache}function Nm(l,f){f===null?L(Jl,Jl.current):L(Jl,f.pool)}function LC(){var l=D2();return l===null?null:{parent:Wr._currentValue,pool:l}}var jc=Error(n(460)),L2=Error(n(474)),Rm=Error(n(542)),Mm={then:function(){}};function jC(l){return l=l.status,l==="fulfilled"||l==="rejected"}function BC(l,f,p){switch(p=l[p],p===void 0?l.push(f):p!==f&&(f.then(Rs,Rs),f=p),f.status){case"fulfilled":return f.value;case"rejected":throw l=f.reason,$C(l),l;default:if(typeof f.status=="string")f.then(Rs,Rs);else{if(l=cr,l!==null&&100<l.shellSuspendCounter)throw Error(n(482));l=f,l.status="pending",l.then(function(g){if(f.status==="pending"){var w=f;w.status="fulfilled",w.value=g}},function(g){if(f.status==="pending"){var w=f;w.status="rejected",w.reason=g}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw l=f.reason,$C(l),l}throw tu=f,jc}}function eu(l){try{var f=l._init;return f(l._payload)}catch(p){throw p!==null&&typeof p=="object"&&typeof p.then=="function"?(tu=p,jc):p}}var tu=null;function zC(){if(tu===null)throw Error(n(459));var l=tu;return tu=null,l}function $C(l){if(l===jc||l===Rm)throw Error(n(483))}var Bc=null,sd=0;function Pm(l){var f=sd;return sd+=1,Bc===null&&(Bc=[]),BC(Bc,l,f)}function od(l,f){f=f.props.ref,l.ref=f!==void 0?f:null}function Im(l,f){throw f.$$typeof===m?Error(n(525)):(l=Object.prototype.toString.call(f),Error(n(31,l==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":l)))}function FC(l){function f(he,ue){if(l){var me=he.deletions;me===null?(he.deletions=[ue],he.flags|=16):me.push(ue)}}function p(he,ue){if(!l)return null;for(;ue!==null;)f(he,ue),ue=ue.sibling;return null}function g(he){for(var ue=new Map;he!==null;)he.key!==null?ue.set(he.key,he):ue.set(he.index,he),he=he.sibling;return ue}function w(he,ue){return he=Ps(he,ue),he.index=0,he.sibling=null,he}function S(he,ue,me){return he.index=me,l?(me=he.alternate,me!==null?(me=me.index,me<ue?(he.flags|=67108866,ue):me):(he.flags|=67108866,ue)):(he.flags|=1048576,ue)}function D(he){return l&&he.alternate===null&&(he.flags|=67108866),he}function H(he,ue,me,Oe){return ue===null||ue.tag!==6?(ue=S2(me,he.mode,Oe),ue.return=he,ue):(ue=w(ue,me),ue.return=he,ue)}function oe(he,ue,me,Oe){var et=me.type;return et===b?Te(he,ue,me.props.children,Oe,me.key):ue!==null&&(ue.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===j&&eu(et)===ue.type)?(ue=w(ue,me.props),od(ue,me),ue.return=he,ue):(ue=Am(me.type,me.key,me.props,null,he.mode,Oe),od(ue,me),ue.return=he,ue)}function ve(he,ue,me,Oe){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==me.containerInfo||ue.stateNode.implementation!==me.implementation?(ue=T2(me,he.mode,Oe),ue.return=he,ue):(ue=w(ue,me.children||[]),ue.return=he,ue)}function Te(he,ue,me,Oe,et){return ue===null||ue.tag!==7?(ue=Xl(me,he.mode,Oe,et),ue.return=he,ue):(ue=w(ue,me),ue.return=he,ue)}function ke(he,ue,me){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return ue=S2(""+ue,he.mode,me),ue.return=he,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case v:return me=Am(ue.type,ue.key,ue.props,null,he.mode,me),od(me,ue),me.return=he,me;case y:return ue=T2(ue,he.mode,me),ue.return=he,ue;case j:return ue=eu(ue),ke(he,ue,me)}if(te(ue)||q(ue))return ue=Xl(ue,he.mode,me,null),ue.return=he,ue;if(typeof ue.then=="function")return ke(he,Pm(ue),me);if(ue.$$typeof===C)return ke(he,km(he,ue),me);Im(he,ue)}return null}function be(he,ue,me,Oe){var et=ue!==null?ue.key:null;if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return et!==null?null:H(he,ue,""+me,Oe);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case v:return me.key===et?oe(he,ue,me,Oe):null;case y:return me.key===et?ve(he,ue,me,Oe):null;case j:return me=eu(me),be(he,ue,me,Oe)}if(te(me)||q(me))return et!==null?null:Te(he,ue,me,Oe,null);if(typeof me.then=="function")return be(he,ue,Pm(me),Oe);if(me.$$typeof===C)return be(he,ue,km(he,me),Oe);Im(he,me)}return null}function Ee(he,ue,me,Oe,et){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return he=he.get(me)||null,H(ue,he,""+Oe,et);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case v:return he=he.get(Oe.key===null?me:Oe.key)||null,oe(ue,he,Oe,et);case y:return he=he.get(Oe.key===null?me:Oe.key)||null,ve(ue,he,Oe,et);case j:return Oe=eu(Oe),Ee(he,ue,me,Oe,et)}if(te(Oe)||q(Oe))return he=he.get(me)||null,Te(ue,he,Oe,et,null);if(typeof Oe.then=="function")return Ee(he,ue,me,Pm(Oe),et);if(Oe.$$typeof===C)return Ee(he,ue,me,km(ue,Oe),et);Im(ue,Oe)}return null}function We(he,ue,me,Oe){for(var et=null,qt=null,Ke=ue,yt=ue=0,Dt=null;Ke!==null&&yt<me.length;yt++){Ke.index>yt?(Dt=Ke,Ke=null):Dt=Ke.sibling;var Vt=be(he,Ke,me[yt],Oe);if(Vt===null){Ke===null&&(Ke=Dt);break}l&&Ke&&Vt.alternate===null&&f(he,Ke),ue=S(Vt,ue,yt),qt===null?et=Vt:qt.sibling=Vt,qt=Vt,Ke=Dt}if(yt===me.length)return p(he,Ke),$t&&Is(he,yt),et;if(Ke===null){for(;yt<me.length;yt++)Ke=ke(he,me[yt],Oe),Ke!==null&&(ue=S(Ke,ue,yt),qt===null?et=Ke:qt.sibling=Ke,qt=Ke);return $t&&Is(he,yt),et}for(Ke=g(Ke);yt<me.length;yt++)Dt=Ee(Ke,he,yt,me[yt],Oe),Dt!==null&&(l&&Dt.alternate!==null&&Ke.delete(Dt.key===null?yt:Dt.key),ue=S(Dt,ue,yt),qt===null?et=Dt:qt.sibling=Dt,qt=Dt);return l&&Ke.forEach(function(nl){return f(he,nl)}),$t&&Is(he,yt),et}function at(he,ue,me,Oe){if(me==null)throw Error(n(151));for(var et=null,qt=null,Ke=ue,yt=ue=0,Dt=null,Vt=me.next();Ke!==null&&!Vt.done;yt++,Vt=me.next()){Ke.index>yt?(Dt=Ke,Ke=null):Dt=Ke.sibling;var nl=be(he,Ke,Vt.value,Oe);if(nl===null){Ke===null&&(Ke=Dt);break}l&&Ke&&nl.alternate===null&&f(he,Ke),ue=S(nl,ue,yt),qt===null?et=nl:qt.sibling=nl,qt=nl,Ke=Dt}if(Vt.done)return p(he,Ke),$t&&Is(he,yt),et;if(Ke===null){for(;!Vt.done;yt++,Vt=me.next())Vt=ke(he,Vt.value,Oe),Vt!==null&&(ue=S(Vt,ue,yt),qt===null?et=Vt:qt.sibling=Vt,qt=Vt);return $t&&Is(he,yt),et}for(Ke=g(Ke);!Vt.done;yt++,Vt=me.next())Vt=Ee(Ke,he,yt,Vt.value,Oe),Vt!==null&&(l&&Vt.alternate!==null&&Ke.delete(Vt.key===null?yt:Vt.key),ue=S(Vt,ue,yt),qt===null?et=Vt:qt.sibling=Vt,qt=Vt);return l&&Ke.forEach(function($ee){return f(he,$ee)}),$t&&Is(he,yt),et}function or(he,ue,me,Oe){if(typeof me=="object"&&me!==null&&me.type===b&&me.key===null&&(me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case v:e:{for(var et=me.key;ue!==null;){if(ue.key===et){if(et=me.type,et===b){if(ue.tag===7){p(he,ue.sibling),Oe=w(ue,me.props.children),Oe.return=he,he=Oe;break e}}else if(ue.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===j&&eu(et)===ue.type){p(he,ue.sibling),Oe=w(ue,me.props),od(Oe,me),Oe.return=he,he=Oe;break e}p(he,ue);break}else f(he,ue);ue=ue.sibling}me.type===b?(Oe=Xl(me.props.children,he.mode,Oe,me.key),Oe.return=he,he=Oe):(Oe=Am(me.type,me.key,me.props,null,he.mode,Oe),od(Oe,me),Oe.return=he,he=Oe)}return D(he);case y:e:{for(et=me.key;ue!==null;){if(ue.key===et)if(ue.tag===4&&ue.stateNode.containerInfo===me.containerInfo&&ue.stateNode.implementation===me.implementation){p(he,ue.sibling),Oe=w(ue,me.children||[]),Oe.return=he,he=Oe;break e}else{p(he,ue);break}else f(he,ue);ue=ue.sibling}Oe=T2(me,he.mode,Oe),Oe.return=he,he=Oe}return D(he);case j:return me=eu(me),or(he,ue,me,Oe)}if(te(me))return We(he,ue,me,Oe);if(q(me)){if(et=q(me),typeof et!="function")throw Error(n(150));return me=et.call(me),at(he,ue,me,Oe)}if(typeof me.then=="function")return or(he,ue,Pm(me),Oe);if(me.$$typeof===C)return or(he,ue,km(he,me),Oe);Im(he,me)}return typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint"?(me=""+me,ue!==null&&ue.tag===6?(p(he,ue.sibling),Oe=w(ue,me),Oe.return=he,he=Oe):(p(he,ue),Oe=S2(me,he.mode,Oe),Oe.return=he,he=Oe),D(he)):p(he,ue)}return function(he,ue,me,Oe){try{sd=0;var et=or(he,ue,me,Oe);return Bc=null,et}catch(Ke){if(Ke===jc||Ke===Rm)throw Ke;var qt=Oa(29,Ke,null,he.mode);return qt.lanes=Oe,qt.return=he,qt}finally{}}}var ru=FC(!0),UC=FC(!1),$o=!1;function j2(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function B2(l,f){l=l.updateQueue,f.updateQueue===l&&(f.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function Fo(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Uo(l,f,p){var g=l.updateQueue;if(g===null)return null;if(g=g.shared,(Kt&2)!==0){var w=g.pending;return w===null?f.next=f:(f.next=w.next,w.next=f),g.pending=f,f=Tm(l),TC(l,null,p),f}return Sm(l,g,f,p),Tm(l)}function ld(l,f,p){if(f=f.updateQueue,f!==null&&(f=f.shared,(p&4194048)!==0)){var g=f.lanes;g&=l.pendingLanes,p|=g,f.lanes=p,sa(l,p)}}function z2(l,f){var p=l.updateQueue,g=l.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var w=null,S=null;if(p=p.firstBaseUpdate,p!==null){do{var D={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};S===null?w=S=D:S=S.next=D,p=p.next}while(p!==null);S===null?w=S=f:S=S.next=f}else w=S=f;p={baseState:g.baseState,firstBaseUpdate:w,lastBaseUpdate:S,shared:g.shared,callbacks:g.callbacks},l.updateQueue=p;return}l=p.lastBaseUpdate,l===null?p.firstBaseUpdate=f:l.next=f,p.lastBaseUpdate=f}
vendor: 6,599 bytes, line 49
49var $2=!1;function ud(){if($2){var l=Lc;if(l!==null)throw l}}function cd(l,f,p,g){$2=!1;var w=l.updateQueue;$o=!1;var S=w.firstBaseUpdate,D=w.lastBaseUpdate,H=w.shared.pending;if(H!==null){w.shared.pending=null;var oe=H,ve=oe.next;oe.next=null,D===null?S=ve:D.next=ve,D=oe;var Te=l.alternate;Te!==null&&(Te=Te.updateQueue,H=Te.lastBaseUpdate,H!==D&&(H===null?Te.firstBaseUpdate=ve:H.next=ve,Te.lastBaseUpdate=oe))}if(S!==null){var ke=w.baseState;D=0,Te=ve=oe=null,H=S;do{var be=H.lane&-536870913,Ee=be!==H.lane;if(Ee?(It&be)===be:(g&be)===be){be!==0&&be===Dc&&($2=!0),Te!==null&&(Te=Te.next={lane:0,tag:H.tag,payload:H.payload,callback:null,next:null});e:{var We=l,at=H;be=f;var or=p;switch(at.tag){case 1:if(We=at.payload,typeof We=="function"){ke=We.call(or,ke,be);break e}ke=We;break e;case 3:We.flags=We.flags&-65537|128;case 0:if(We=at.payload,be=typeof We=="function"?We.call(or,ke,be):We,be==null)break e;ke=d({},ke,be);break e;case 2:$o=!0}}be=H.callback,be!==null&&(l.flags|=64,Ee&&(l.flags|=8192),Ee=w.callbacks,Ee===null?w.callbacks=[be]:Ee.push(be))}else Ee={lane:be,tag:H.tag,payload:H.payload,callback:H.callback,next:null},Te===null?(ve=Te=Ee,oe=ke):Te=Te.next=Ee,D|=be;if(H=H.next,H===null){if(H=w.shared.pending,H===null)break;Ee=H,H=Ee.next,Ee.next=null,w.lastBaseUpdate=Ee,w.shared.pending=null}}while(!0);Te===null&&(oe=ke),w.baseState=oe,w.firstBaseUpdate=ve,w.lastBaseUpdate=Te,S===null&&(w.shared.lanes=0),Wo|=D,l.lanes=D,l.memoizedState=ke}}function HC(l,f){if(typeof l!="function")throw Error(n(191,l));l.call(f)}function qC(l,f){var p=l.callbacks;if(p!==null)for(l.callbacks=null,l=0;l<p.length;l++)HC(p[l],f)}var zc=Y(null),Dm=Y(0);function VC(l,f){l=Vs,L(Dm,l),L(zc,f),Vs=l|f.baseLanes}function F2(){L(Dm,Vs),L(zc,zc.current)}function U2(){Vs=Dm.current,W(zc),W(Dm)}var ka=Y(null),ti=null;function Ho(l){var f=l.alternate;L(zr,zr.current&1),L(ka,l),ti===null&&(f===null||zc.current!==null||f.memoizedState!==null)&&(ti=l)}function H2(l){L(zr,zr.current),L(ka,l),ti===null&&(ti=l)}function GC(l){l.tag===22?(L(zr,zr.current),L(ka,l),ti===null&&(ti=l)):qo()}function qo(){L(zr,zr.current),L(ka,ka.current)}function Na(l){W(ka),ti===l&&(ti=null),W(zr)}var zr=Y(0);function Lm(l){for(var f=l;f!==null;){if(f.tag===13){var p=f.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||Xx(p)||Kx(p)))return f}else if(f.tag===19&&(f.memoizedProps.revealOrder==="forwards"||f.memoizedProps.revealOrder==="backwards"||f.memoizedProps.revealOrder==="unstable_legacy-backwards"||f.memoizedProps.revealOrder==="together")){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var js=0,mt=null,ir=null,Yr=null,jm=!1,$c=!1,nu=!1,Bm=0,fd=0,Fc=null,NJ=0;function Rr(){throw Error(n(321))}function q2(l,f){if(f===null)return!1;for(var p=0;p<f.length&&p<l.length;p++)if(!Ca(l[p],f[p]))return!1;return!0}function V2(l,f,p,g,w,S){return js=S,mt=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,U.H=l===null||l.memoizedState===null?kO:sx,nu=!1,S=p(g,w),nu=!1,$c&&(S=YC(f,p,g,w)),WC(l),S}function WC(l){U.H=pd;var f=ir!==null&&ir.next!==null;if(js=0,Yr=ir=mt=null,jm=!1,fd=0,Fc=null,f)throw Error(n(300));l===null||Xr||(l=l.dependencies,l!==null&&Om(l)&&(Xr=!0))}function YC(l,f,p,g){mt=l;var w=0;do{if($c&&(Fc=null),fd=0,$c=!1,25<=w)throw Error(n(301));if(w+=1,Yr=ir=null,l.updateQueue!=null){var S=l.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}U.H=NO,S=f(p,g)}while($c);return S}function RJ(){var l=U.H,f=l.useState()[0];return f=typeof f.then=="function"?dd(f):f,l=l.useState()[0],(ir!==null?ir.memoizedState:null)!==l&&(mt.flags|=1024),f}function G2(){var l=Bm!==0;return Bm=0,l}function W2(l,f,p){f.updateQueue=l.updateQueue,f.flags&=-2053,l.lanes&=~p}function Y2(l){if(jm){for(l=l.memoizedState;l!==null;){var f=l.queue;f!==null&&(f.pending=null),l=l.next}jm=!1}js=0,Yr=ir=mt=null,$c=!1,fd=Bm=0,Fc=null}function Xn(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yr===null?mt.memoizedState=Yr=l:Yr=Yr.next=l,Yr}function $r(){if(ir===null){var l=mt.alternate;l=l!==null?l.memoizedState:null}else l=ir.next;var f=Yr===null?mt.memoizedState:Yr.next;if(f!==null)Yr=f,ir=l;else{if(l===null)throw mt.alternate===null?Error(n(467)):Error(n(310));ir=l,l={memoizedState:ir.memoizedState,baseState:ir.baseState,baseQueue:ir.baseQueue,queue:ir.queue,next:null},Yr===null?mt.memoizedState=Yr=l:Yr=Yr.next=l}return Yr}function zm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dd(l){var f=fd;return fd+=1,Fc===null&&(Fc=[]),l=BC(Fc,l,f),f=mt,(Yr===null?f.memoizedState:Yr.next)===null&&(f=f.alternate,U.H=f===null||f.memoizedState===null?kO:sx),l}function $m(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return dd(l);if(l.$$typeof===C)return kn(l)}throw Error(n(438,String(l)))}function X2(l){var f=null,p=mt.updateQueue;if(p!==null&&(f=p.memoCache),f==null){var g=mt.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(f={data:g.data.map(function(w){return w.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),p===null&&(p=zm(),mt.updateQueue=p),p.memoCache=f,p=f.data[f.index],p===void 0)for(p=f.data[f.index]=Array(l),g=0;g<l;g++)p[g]=$;return f.index++,p}function Bs(l,f){return typeof f=="function"?f(l):f}function Fm(l){var f=$r();return K2(f,ir,l)}function K2(l,f,p){var g=l.queue;if(g===null)throw Error(n(311));g.lastRenderedReducer=p;var w=l.baseQueue,S=g.pending;if(S!==null){if(w!==null){var D=w.next;w.next=S.next,S.next=D}f.baseQueue=w=S,g.pending=null}if(S=l.baseState,w===null)l.memoizedState=S;else{f=w.next;var H=D=null,oe=null,ve=f,Te=!1;do{var ke=ve.lane&-536870913;if(ke!==ve.lane?(It&ke)===ke:(js&ke)===ke){var be=ve.revertLane;if(be===0)oe!==null&&(oe=oe.next={lane:0,revertLane:0,gesture:null,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null}),ke===Dc&&(Te=!0);else if((js&be)===be){ve=ve.next,be===Dc&&(Te=!0);continue}else ke={lane:0,revertLane:ve.revertLane,gesture:null,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null},oe===null?(H=oe=ke,D=S):oe=oe.next=ke,mt.lanes|=be,Wo|=be;ke=ve.action,nu&&p(S,ke),S=ve.hasEagerState?ve.eagerState:p(S,ke)}else be={lane:ke,revertLane:ve.revertLane,gesture:ve.gesture,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null},oe===null?(H=oe=be,D=S):oe=oe.next=be,mt.lanes|=ke,Wo|=ke;ve=ve.next}
vendor: 16,692 bytes, line 49
49while(ve!==null&&ve!==f);if(oe===null?D=S:oe.next=H,!Ca(S,l.memoizedState)&&(Xr=!0,Te&&(p=Lc,p!==null)))throw p;l.memoizedState=S,l.baseState=D,l.baseQueue=oe,g.lastRenderedState=S}return w===null&&(g.lanes=0),[l.memoizedState,g.dispatch]}function Q2(l){var f=$r(),p=f.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=l;var g=p.dispatch,w=p.pending,S=f.memoizedState;if(w!==null){p.pending=null;var D=w=w.next;do S=l(S,D.action),D=D.next;while(D!==w);Ca(S,f.memoizedState)||(Xr=!0),f.memoizedState=S,f.baseQueue===null&&(f.baseState=S),p.lastRenderedState=S}return[S,g]}function XC(l,f,p){var g=mt,w=$r(),S=$t;if(S){if(p===void 0)throw Error(n(407));p=p()}else p=f();var D=!Ca((ir||w).memoizedState,p);if(D&&(w.memoizedState=p,Xr=!0),w=w.queue,ex(ZC.bind(null,g,w,l),[l]),w.getSnapshot!==f||D||Yr!==null&&Yr.memoizedState.tag&1){if(g.flags|=2048,Uc(9,{destroy:void 0},QC.bind(null,g,w,p,f),null),cr===null)throw Error(n(349));S||(js&127)!==0||KC(g,f,p)}return p}function KC(l,f,p){l.flags|=16384,l={getSnapshot:f,value:p},f=mt.updateQueue,f===null?(f=zm(),mt.updateQueue=f,f.stores=[l]):(p=f.stores,p===null?f.stores=[l]:p.push(l))}function QC(l,f,p,g){f.value=p,f.getSnapshot=g,JC(f)&&eO(l)}function ZC(l,f,p){return p(function(){JC(f)&&eO(l)})}function JC(l){var f=l.getSnapshot;l=l.value;try{var p=f();return!Ca(l,p)}catch{return!0}}function eO(l){var f=Yl(l,2);f!==null&&pa(f,l,2)}function Z2(l){var f=Xn();if(typeof l=="function"){var p=l;if(l=p(),nu){An(!0);try{p()}finally{An(!1)}}}return f.memoizedState=f.baseState=l,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:l},f}function tO(l,f,p,g){return l.baseState=p,K2(l,ir,typeof g=="function"?g:Bs)}function MJ(l,f,p,g,w){if(qm(l))throw Error(n(485));if(l=f.action,l!==null){var S={payload:w,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){S.listeners.push(D)}};U.T!==null?p(!0):S.isTransition=!1,g(S),p=f.pending,p===null?(S.next=f.pending=S,rO(f,S)):(S.next=p.next,f.pending=p.next=S)}}function rO(l,f){var p=f.action,g=f.payload,w=l.state;if(f.isTransition){var S=U.T,D={};U.T=D;try{var H=p(w,g),oe=U.S;oe!==null&&oe(D,H),nO(l,f,H)}catch(ve){J2(l,f,ve)}finally{S!==null&&D.types!==null&&(S.types=D.types),U.T=S}}else try{S=p(w,g),nO(l,f,S)}catch(ve){J2(l,f,ve)}}function nO(l,f,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(g){aO(l,f,g)},function(g){return J2(l,f,g)}):aO(l,f,p)}function aO(l,f,p){f.status="fulfilled",f.value=p,iO(f),l.state=p,f=l.pending,f!==null&&(p=f.next,p===f?l.pending=null:(p=p.next,f.next=p,rO(l,p)))}function J2(l,f,p){var g=l.pending;if(l.pending=null,g!==null){g=g.next;do f.status="rejected",f.reason=p,iO(f),f=f.next;while(f!==g)}l.action=null}function iO(l){l=l.listeners;for(var f=0;f<l.length;f++)(0,l[f])()}function sO(l,f){return f}function oO(l,f){if($t){var p=cr.formState;if(p!==null){e:{var g=mt;if($t){if(br){t:{for(var w=br,S=ei;w.nodeType!==8;){if(!S){w=null;break t}if(w=ri(w.nextSibling),w===null){w=null;break t}}S=w.data,w=S==="F!"||S==="F"?w:null}if(w){br=ri(w.nextSibling),g=w.data==="F!";break e}}Bo(g)}g=!1}g&&(f=p[0])}}return p=Xn(),p.memoizedState=p.baseState=f,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sO,lastRenderedState:f},p.queue=g,p=AO.bind(null,mt,g),g.dispatch=p,g=Z2(!1),S=ix.bind(null,mt,!1,g.queue),g=Xn(),w={state:f,dispatch:null,action:l,pending:null},g.queue=w,p=MJ.bind(null,mt,w,S,p),w.dispatch=p,g.memoizedState=l,[f,p,!1]}function lO(l){var f=$r();return uO(f,ir,l)}function uO(l,f,p){if(f=K2(l,f,sO)[0],l=Fm(Bs)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var g=dd(f)}catch(D){throw D===jc?Rm:D}else g=f;f=$r();var w=f.queue,S=w.dispatch;return p!==f.memoizedState&&(mt.flags|=2048,Uc(9,{destroy:void 0},PJ.bind(null,w,p),null)),[g,S,l]}function PJ(l,f){l.action=f}function cO(l){var f=$r(),p=ir;if(p!==null)return uO(f,p,l);$r(),f=f.memoizedState,p=$r();var g=p.queue.dispatch;return p.memoizedState=l,[f,g,!1]}function Uc(l,f,p,g){return l={tag:l,create:p,deps:g,inst:f,next:null},f=mt.updateQueue,f===null&&(f=zm(),mt.updateQueue=f),p=f.lastEffect,p===null?f.lastEffect=l.next=l:(g=p.next,p.next=l,l.next=g,f.lastEffect=l),l}function fO(){return $r().memoizedState}function Um(l,f,p,g){var w=Xn();mt.flags|=l,w.memoizedState=Uc(1|f,{destroy:void 0},p,g===void 0?null:g)}function Hm(l,f,p,g){var w=$r();g=g===void 0?null:g;var S=w.memoizedState.inst;ir!==null&&g!==null&&q2(g,ir.memoizedState.deps)?w.memoizedState=Uc(f,S,p,g):(mt.flags|=l,w.memoizedState=Uc(1|f,S,p,g))}function dO(l,f){Um(8390656,8,l,f)}function ex(l,f){Hm(2048,8,l,f)}function IJ(l){mt.flags|=4;var f=mt.updateQueue;if(f===null)f=zm(),mt.updateQueue=f,f.events=[l];else{var p=f.events;p===null?f.events=[l]:p.push(l)}}function hO(l){var f=$r().memoizedState;return IJ({ref:f,nextImpl:l}),function(){if((Kt&2)!==0)throw Error(n(440));return f.impl.apply(void 0,arguments)}}function pO(l,f){return Hm(4,2,l,f)}function mO(l,f){return Hm(4,4,l,f)}function gO(l,f){if(typeof f=="function"){l=l();var p=f(l);return function(){typeof p=="function"?p():f(null)}}if(f!=null)return l=l(),f.current=l,function(){f.current=null}}function vO(l,f,p){p=p!=null?p.concat([l]):null,Hm(4,4,gO.bind(null,f,l),p)}function tx(){}function yO(l,f){var p=$r();f=f===void 0?null:f;var g=p.memoizedState;return f!==null&&q2(f,g[1])?g[0]:(p.memoizedState=[l,f],l)}function bO(l,f){var p=$r();f=f===void 0?null:f;var g=p.memoizedState;if(f!==null&&q2(f,g[1]))return g[0];if(g=l(),nu){An(!0);try{l()}finally{An(!1)}}return p.memoizedState=[g,f],g}function rx(l,f,p){return p===void 0||(js&1073741824)!==0&&(It&261930)===0?l.memoizedState=f:(l.memoizedState=p,l=xk(),mt.lanes|=l,Wo|=l,p)}function xO(l,f,p,g){return Ca(p,f)?p:zc.current!==null?(l=rx(l,p,g),Ca(l,f)||(Xr=!0),l):(js&42)===0||(js&1073741824)!==0&&(It&261930)===0?(Xr=!0,l.memoizedState=p):(l=xk(),mt.lanes|=l,Wo|=l,f)}function EO(l,f,p,g,w){var S=J.p;J.p=S!==0&&8>S?S:8;var D=U.T,H={};U.T=H,ix(l,!1,f,p);try{var oe=w(),ve=U.S;if(ve!==null&&ve(H,oe),oe!==null&&typeof oe=="object"&&typeof oe.then=="function"){var Te=kJ(oe,g);hd(l,f,Te,Pa(l))}else hd(l,f,g,Pa(l))}catch(ke){hd(l,f,{then:function(){},status:"rejected",reason:ke},Pa())}finally{J.p=S,D!==null&&H.types!==null&&(D.types=H.types),U.T=D}}function DJ(){}function nx(l,f,p,g){if(l.tag!==5)throw Error(n(476));var w=wO(l).queue;EO(l,w,f,ee,p===null?DJ:function(){return _O(l),p(g)})}function wO(l){var f=l.memoizedState;if(f!==null)return f;f={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:ee},next:null};var p={};return f.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:p},next:null},l.memoizedState=f,l=l.alternate,l!==null&&(l.memoizedState=f),f}function _O(l){var f=wO(l);f.next===null&&(f=l.alternate.memoizedState),hd(l,f.next.queue,{},Pa())}function ax(){return kn(Nd)}function SO(){return $r().memoizedState}function TO(){return $r().memoizedState}function LJ(l){for(var f=l.return;f!==null;){switch(f.tag){case 24:case 3:var p=Pa();l=Fo(p);var g=Uo(f,l,p);g!==null&&(pa(g,f,p),ld(g,f,p)),f={cache:P2()},l.payload=f;return}f=f.return}}function jJ(l,f,p){var g=Pa();p={lane:g,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},qm(l)?CO(f,p):(p=w2(l,f,p,g),p!==null&&(pa(p,l,g),OO(p,f,g)))}function AO(l,f,p){var g=Pa();hd(l,f,p,g)}function hd(l,f,p,g){var w={lane:g,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};if(qm(l))CO(f,w);else{var S=l.alternate;if(l.lanes===0&&(S===null||S.lanes===0)&&(S=f.lastRenderedReducer,S!==null))try{var D=f.lastRenderedState,H=S(D,p);if(w.hasEagerState=!0,w.eagerState=H,Ca(H,D))return Sm(l,f,w,0),cr===null&&_m(),!1}catch{}finally{}if(p=w2(l,f,w,g),p!==null)return pa(p,l,g),OO(p,f,g),!0}return!1}function ix(l,f,p,g){if(g={lane:2,revertLane:jx(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},qm(l)){if(f)throw Error(n(479))}else f=w2(l,p,g,2),f!==null&&pa(f,l,2)}function qm(l){var f=l.alternate;return l===mt||f!==null&&f===mt}function CO(l,f){$c=jm=!0;var p=l.pending;p===null?f.next=f:(f.next=p.next,p.next=f),l.pending=f}function OO(l,f,p){if((p&4194048)!==0){var g=f.lanes;g&=l.pendingLanes,p|=g,f.lanes=p,sa(l,p)}}var pd={readContext:kn,use:$m,useCallback:Rr,useContext:Rr,useEffect:Rr,useImperativeHandle:Rr,useLayoutEffect:Rr,useInsertionEffect:Rr,useMemo:Rr,useReducer:Rr,useRef:Rr,useState:Rr,useDebugValue:Rr,useDeferredValue:Rr,useTransition:Rr,useSyncExternalStore:Rr,useId:Rr,useHostTransitionStatus:Rr,useFormState:Rr,useActionState:Rr,useOptimistic:Rr,useMemoCache:Rr,useCacheRefresh:Rr};pd.useEffectEvent=Rr;var kO={readContext:kn,use:$m,useCallback:function(l,f){return Xn().memoizedState=[l,f===void 0?null:f],l},useContext:kn,useEffect:dO,useImperativeHandle:function(l,f,p){p=p!=null?p.concat([l]):null,Um(4194308,4,gO.bind(null,f,l),p)},useLayoutEffect:function(l,f){return Um(4194308,4,l,f)},useInsertionEffect:function(l,f){Um(4,2,l,f)},useMemo:function(l,f){var p=Xn();f=f===void 0?null:f;var g=l();if(nu){An(!0);try{l()}finally{An(!1)}}return p.memoizedState=[g,f],g},useReducer:function(l,f,p){var g=Xn();if(p!==void 0){var w=p(f);if(nu){An(!0);try{p(f)}finally{An(!1)}}}else w=f;return g.memoizedState=g.baseState=w,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:w},g.queue=l,l=l.dispatch=jJ.bind(null,mt,l),[g.memoizedState,l]},useRef:function(l){var f=Xn();return l={current:l},f.memoizedState=l},useState:function(l){l=Z2(l);var f=l.queue,p=AO.bind(null,mt,f);return f.dispatch=p,[l.memoizedState,p]},useDebugValue:tx,useDeferredValue:function(l,f){var p=Xn();return rx(p,l,f)},useTransition:function(){var l=Z2(!1);return l=EO.bind(null,mt,l.queue,!0,!1),Xn().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,f,p){var g=mt,w=Xn();if($t){if(p===void 0)throw Error(n(407));p=p()}else{if(p=f(),cr===null)throw Error(n(349));(It&127)!==0||KC(g,f,p)}w.memoizedState=p;var S={value:p,getSnapshot:f};return w.queue=S,dO(ZC.bind(null,g,S,l),[l]),g.flags|=2048,Uc(9,{destroy:void 0},QC.bind(null,g,S,p,f),null),p},useId:function(){var l=Xn(),f=cr.identifierPrefix;if($t){var p=Qi,g=Ki;p=(g&~(1<<32-Qt(g)-1)).toString(32)+p,f="_"+f+"R_"+p,p=Bm++,0<p&&(f+="H"+p.toString(32)),f+="_"}else p=NJ++,f="_"+f+"r_"+p.toString(32)+"_";return l.memoizedState=f},useHostTransitionStatus:ax,useFormState:oO,useActionState:oO,useOptimistic:function(l){var f=Xn();f.memoizedState=f.baseState=l;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=p,f=ix.bind(null,mt,!0,p),p.dispatch=f,[l,f]},useMemoCache:X2,useCacheRefresh:function(){return Xn().memoizedState=LJ.bind(null,mt)},useEffectEvent:function(l){var f=Xn(),p={impl:l};return f.memoizedState=p,function(){if((Kt&2)!==0)throw Error(n(440));return p.impl.apply(void 0,arguments)}}},sx={readContext:kn,use:$m,useCallback:yO,useContext:kn,useEffect:ex,useImperativeHandle:vO,useInsertionEffect:pO,useLayoutEffect:mO,useMemo:bO,useReducer:Fm,useRef:fO,useState:function(){return Fm(Bs)},useDebugValue:tx,useDeferredValue:function(l,f){var p=$r();return xO(p,ir.memoizedState,l,f)},useTransition:function(){var l=Fm(Bs)[0],f=$r().memoizedState;return[typeof l=="boolean"?l:dd(l),f]},useSyncExternalStore:XC,useId:SO,useHostTransitionStatus:ax,useFormState:lO,useActionState:lO,useOptimistic:function(l,f){var p=$r();return tO(p,ir,l,f)},useMemoCache:X2,useCacheRefresh:TO};sx.useEffectEvent=hO;var NO={readContext:kn,use:$m,useCallback:yO,useContext:kn,useEffect:ex,useImperativeHandle:vO,useInsertionEffect:pO,useLayoutEffect:mO,useMemo:bO,useReducer:Q2,useRef:fO,useState:function(){return Q2(Bs)},useDebugValue:tx,useDeferredValue:function(l,f){var p=$r();return ir===null?rx(p,l,f):xO(p,ir.memoizedState,l,f)},useTransition:function(){var l=Q2(Bs)[0],f=$r().memoizedState;return[typeof l=="boolean"?l:dd(l),f]},useSyncExternalStore:XC,useId:SO,useHostTransitionStatus:ax,useFormState:cO,useActionState:cO,useOptimistic:function(l,f){var p=$r();return ir!==null?tO(p,ir,l,f):(p.baseState=l,[l,p.queue.dispatch])},useMemoCache:X2,useCacheRefresh:TO};NO.useEffectEvent=hO;function ox(l,f,p,g){f=l.memoizedState,p=p(g,f),p=p==null?f:d({},f,p),l.memoizedState=p,l.lanes===0&&(l.updateQueue.baseState=p)}var lx={enqueueSetState:function(l,f,p){l=l._reactInternals;var g=Pa(),w=Fo(g);w.payload=f,p!=null&&(w.callback=p),f=Uo(l,w,g),f!==null&&(pa(f,l,g),ld(f,l,g))},enqueueReplaceState:function(l,f,p){l=l._reactInternals;var g=Pa(),w=Fo(g);w.tag=1,w.payload=f,p!=null&&(w.callback=p),f=Uo(l,w,g),f!==null&&(pa(f,l,g),ld(f,l,g))},enqueueForceUpdate:function(l,f){l=l._reactInternals;var p=Pa(),g=Fo(p);g.tag=2,f!=null&&(g.callback=f),f=Uo(l,g,p),f!==null&&(pa(f,l,p),ld(f,l,p))}};function RO(l,f,p,g,w,S,D){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(g,S,D):f.prototype&&f.prototype.isPureReactComponent?!ed(p,g)||!ed(w,S):!0}function MO(l,f,p,g){l=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(p,g),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(p,g),f.state!==l&&lx.enqueueReplaceState(f,f.state,null)}function au(l,f){var p=f;if("ref"in f){p={};for(var g in f)g!=="ref"&&(p[g]=f[g])}if(l=l.defaultProps){p===f&&(p=d({},p));for(var w in l)p[w]===void 0&&(p[w]=l[w])}return p}function PO(l){wm(l)}function IO(l){console.error(l)}function DO(l){wm(l)}function Vm(l,f){try{var p=l.onUncaughtError;p(f.value,{componentStack:f.stack})}catch(g){setTimeout(function(){throw g})}}function LO(l,f,p){try{var g=l.onCaughtError;g(p.value,{componentStack:p.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(w){setTimeout(function(){throw w})}}function ux(l,f,p){return p=Fo(p),p.tag=3,p.payload={element:null},p.callback=function(){Vm(l,f)},p}function jO(l){return l=Fo(l),l.tag=3,l}function BO(l,f,p,g){var w=p.type.getDerivedStateFromError;if(typeof w=="function"){var S=g.value;l.payload=function(){return w(S)},l.callback=function(){LO(f,p,g)}}var D=p.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(l.callback=function(){LO(f,p,g),typeof w!="function"&&(Yo===null?Yo=new Set([this]):Yo.add(this));var H=g.stack;this.componentDidCatch(g.value,{componentStack:H!==null?H:""})})}function BJ(l,f,p,g,w){if(p.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(f=p.alternate,f!==null&&Ic(f,p,w,!0),p=ka.current,p!==null){switch(p.tag){case 31:case 13:return ti===null?ng():p.alternate===null&&Mr===0&&(Mr=3),p.flags&=-257,p.flags|=65536,p.lanes=w,g===Mm?p.flags|=16384:(f=p.updateQueue,f===null?p.updateQueue=new Set([g]):f.add(g),Ix(l,g,w)),!1;case 22:return p.flags|=65536,g===Mm?p.flags|=16384:(f=p.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([g])},p.updateQueue=f):(p=f.retryQueue,p===null?f.retryQueue=new Set([g]):p.add(g)),Ix(l,g,w)),!1}throw Error(n(435,p.tag))}return Ix(l,g,w),ng(),!1}if($t)return f=ka.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=w,g!==O2&&(l=Error(n(422),{cause:g}),nd(Qa(l,p)))):(g!==O2&&(f=Error(n(423),{cause:g}),nd(Qa(f,p))),l=l.current.alternate,l.flags|=65536,w&=-w,l.lanes|=w,g=Qa(g,p),w=ux(l.stateNode,g,w),z2(l,w),Mr!==4&&(Mr=2)),!1;var S=Error(n(520),{cause:g});if(S=Qa(S,p),wd===null?wd=[S]:wd.push(S),Mr!==4&&(Mr=2),f===null)return!0;g=Qa(g,p),p=f;do{switch(p.tag){case 3:return p.flags|=65536,l=w&-w,p.lanes|=l,l=ux(p.stateNode,g,l),z2(p,l),!1;case 1:if(f=p.type,S=p.stateNode,(p.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Yo===null||!Yo.has(S))))return p.flags|=65536,w&=-w,p.lanes|=w,w=jO(w),BO(w,l,p,g),z2(p,w),!1}p=p.return}while(p!==null);return!1}var cx=Error(n(461)),Xr=!1;function Nn(l,f,p,g){f.child=l===null?UC(f,null,p,g):ru(f,l.child,p,g)}function zO(l,f,p,g,w){p=p.render;var S=f.ref;if("ref"in g){var D={};for(var H in g)H!=="ref"&&(D[H]=g[H])}else D=g;return Zl(f),g=V2(l,f,p,D,S,w),H=G2(),l!==null&&!Xr?(W2(l,f,w),zs(l,f,w)):($t&&H&&A2(f),f.flags|=1,Nn(l,f,g,w),f.child)}function $O(l,f,p,g,w){if(l===null){var S=p.type;return typeof S=="function"&&!_2(S)&&S.defaultProps===void 0&&p.compare===null?(f.tag=15,f.type=S,FO(l,f,S,g,w)):(l=Am(p.type,null,g,f,f.mode,w),l.ref=f.ref,l.return=f,f.child=l)}if(S=l.child,!yx(l,w)){var D=S.memoizedProps;if(p=p.compare,p=p!==null?p:ed,p(D,g)&&l.ref===f.ref)return zs(l,f,w)}return f.flags|=1,l=Ps(S,g),l.ref=f.ref,l.return=f,f.child=l}function FO(l,f,p,g,w){if(l!==null){var S=l.memoizedProps;
vendor: 11,634 bytes, line 49
49if(ed(S,g)&&l.ref===f.ref)if(Xr=!1,f.pendingProps=g=S,yx(l,w))(l.flags&131072)!==0&&(Xr=!0);else return f.lanes=l.lanes,zs(l,f,w)}return fx(l,f,p,g,w)}function UO(l,f,p,g){var w=g.children,S=l!==null?l.memoizedState:null;if(l===null&&f.stateNode===null&&(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.mode==="hidden"){if((f.flags&128)!==0){if(S=S!==null?S.baseLanes|p:p,l!==null){for(g=f.child=l.child,w=0;g!==null;)w=w|g.lanes|g.childLanes,g=g.sibling;g=w&~S}else g=0,f.child=null;return HO(l,f,S,p,g)}if((p&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},l!==null&&Nm(f,S!==null?S.cachePool:null),S!==null?VC(f,S):F2(),GC(f);else return g=f.lanes=536870912,HO(l,f,S!==null?S.baseLanes|p:p,p,g)}else S!==null?(Nm(f,S.cachePool),VC(f,S),qo(),f.memoizedState=null):(l!==null&&Nm(f,null),F2(),qo());return Nn(l,f,w,p),f.child}function md(l,f){return l!==null&&l.tag===22||f.stateNode!==null||(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.sibling}function HO(l,f,p,g,w){var S=D2();return S=S===null?null:{parent:Wr._currentValue,pool:S},f.memoizedState={baseLanes:p,cachePool:S},l!==null&&Nm(f,null),F2(),GC(f),l!==null&&Ic(l,f,g,!0),f.childLanes=w,null}function Gm(l,f){return f=Ym({mode:f.mode,children:f.children},l.mode),f.ref=l.ref,l.child=f,f.return=l,f}function qO(l,f,p){return ru(f,l.child,null,p),l=Gm(f,f.pendingProps),l.flags|=2,Na(f),f.memoizedState=null,l}function zJ(l,f,p){var g=f.pendingProps,w=(f.flags&128)!==0;if(f.flags&=-129,l===null){if($t){if(g.mode==="hidden")return l=Gm(f,g),f.lanes=536870912,md(null,l);if(H2(f),(l=br)?(l=r9(l,ei),l=l!==null&&l.data==="&"?l:null,l!==null&&(f.memoizedState={dehydrated:l,treeContext:Lo!==null?{id:Ki,overflow:Qi}:null,retryLane:536870912,hydrationErrors:null},p=CC(l),p.return=f,f.child=p,On=f,br=null)):l=null,l===null)throw Bo(f);return f.lanes=536870912,null}return Gm(f,g)}var S=l.memoizedState;if(S!==null){var D=S.dehydrated;if(H2(f),w)if(f.flags&256)f.flags&=-257,f=qO(l,f,p);else if(f.memoizedState!==null)f.child=l.child,f.flags|=128,f=null;else throw Error(n(558));else if(Xr||Ic(l,f,p,!1),w=(p&l.childLanes)!==0,Xr||w){if(g=cr,g!==null&&(D=oa(g,p),D!==0&&D!==S.retryLane))throw S.retryLane=D,Yl(l,D),pa(g,l,D),cx;ng(),f=qO(l,f,p)}else l=S.treeContext,br=ri(D.nextSibling),On=f,$t=!0,jo=null,ei=!1,l!==null&&NC(f,l),f=Gm(f,g),f.flags|=4096;return f}return l=Ps(l.child,{mode:g.mode,children:g.children}),l.ref=f.ref,f.child=l,l.return=f,l}function Wm(l,f){var p=f.ref;if(p===null)l!==null&&l.ref!==null&&(f.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(n(284));(l===null||l.ref!==p)&&(f.flags|=4194816)}}function fx(l,f,p,g,w){return Zl(f),p=V2(l,f,p,g,void 0,w),g=G2(),l!==null&&!Xr?(W2(l,f,w),zs(l,f,w)):($t&&g&&A2(f),f.flags|=1,Nn(l,f,p,w),f.child)}function VO(l,f,p,g,w,S){return Zl(f),f.updateQueue=null,p=YC(f,g,p,w),WC(l),g=G2(),l!==null&&!Xr?(W2(l,f,S),zs(l,f,S)):($t&&g&&A2(f),f.flags|=1,Nn(l,f,p,S),f.child)}function GO(l,f,p,g,w){if(Zl(f),f.stateNode===null){var S=Nc,D=p.contextType;typeof D=="object"&&D!==null&&(S=kn(D)),S=new p(g,S),f.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=lx,f.stateNode=S,S._reactInternals=f,S=f.stateNode,S.props=g,S.state=f.memoizedState,S.refs={},j2(f),D=p.contextType,S.context=typeof D=="object"&&D!==null?kn(D):Nc,S.state=f.memoizedState,D=p.getDerivedStateFromProps,typeof D=="function"&&(ox(f,p,D,g),S.state=f.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(D=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),D!==S.state&&lx.enqueueReplaceState(S,S.state,null),cd(f,g,S,w),ud(),S.state=f.memoizedState),typeof S.componentDidMount=="function"&&(f.flags|=4194308),g=!0}else if(l===null){S=f.stateNode;var H=f.memoizedProps,oe=au(p,H);S.props=oe;var ve=S.context,Te=p.contextType;D=Nc,typeof Te=="object"&&Te!==null&&(D=kn(Te));var ke=p.getDerivedStateFromProps;Te=typeof ke=="function"||typeof S.getSnapshotBeforeUpdate=="function",H=f.pendingProps!==H,Te||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(H||ve!==D)&&MO(f,S,g,D),$o=!1;var be=f.memoizedState;S.state=be,cd(f,g,S,w),ud(),ve=f.memoizedState,H||be!==ve||$o?(typeof ke=="function"&&(ox(f,p,ke,g),ve=f.memoizedState),(oe=$o||RO(f,p,oe,g,be,ve,D))?(Te||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(f.flags|=4194308)):(typeof S.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=g,f.memoizedState=ve),S.props=g,S.state=ve,S.context=D,g=oe):(typeof S.componentDidMount=="function"&&(f.flags|=4194308),g=!1)}else{S=f.stateNode,B2(l,f),D=f.memoizedProps,Te=au(p,D),S.props=Te,ke=f.pendingProps,be=S.context,ve=p.contextType,oe=Nc,typeof ve=="object"&&ve!==null&&(oe=kn(ve)),H=p.getDerivedStateFromProps,(ve=typeof H=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(D!==ke||be!==oe)&&MO(f,S,g,oe),$o=!1,be=f.memoizedState,S.state=be,cd(f,g,S,w),ud();var Ee=f.memoizedState;D!==ke||be!==Ee||$o||l!==null&&l.dependencies!==null&&Om(l.dependencies)?(typeof H=="function"&&(ox(f,p,H,g),Ee=f.memoizedState),(Te=$o||RO(f,p,Te,g,be,Ee,oe)||l!==null&&l.dependencies!==null&&Om(l.dependencies))?(ve||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(g,Ee,oe),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(g,Ee,oe)),typeof S.componentDidUpdate=="function"&&(f.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof S.componentDidUpdate!="function"||D===l.memoizedProps&&be===l.memoizedState||(f.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||D===l.memoizedProps&&be===l.memoizedState||(f.flags|=1024),f.memoizedProps=g,f.memoizedState=Ee),S.props=g,S.state=Ee,S.context=oe,g=Te):(typeof S.componentDidUpdate!="function"||D===l.memoizedProps&&be===l.memoizedState||(f.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||D===l.memoizedProps&&be===l.memoizedState||(f.flags|=1024),g=!1)}return S=g,Wm(l,f),g=(f.flags&128)!==0,S||g?(S=f.stateNode,p=g&&typeof p.getDerivedStateFromError!="function"?null:S.render(),f.flags|=1,l!==null&&g?(f.child=ru(f,l.child,null,w),f.child=ru(f,null,p,w)):Nn(l,f,p,w),f.memoizedState=S.state,l=f.child):l=zs(l,f,w),l}function WO(l,f,p,g){return Kl(),f.flags|=256,Nn(l,f,p,g),f.child}var dx={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hx(l){return{baseLanes:l,cachePool:LC()}}function px(l,f,p){return l=l!==null?l.childLanes&~p:0,f&&(l|=Ma),l}function YO(l,f,p){var g=f.pendingProps,w=!1,S=(f.flags&128)!==0,D;if((D=S)||(D=l!==null&&l.memoizedState===null?!1:(zr.current&2)!==0),D&&(w=!0,f.flags&=-129),D=(f.flags&32)!==0,f.flags&=-33,l===null){if($t){if(w?Ho(f):qo(),(l=br)?(l=r9(l,ei),l=l!==null&&l.data!=="&"?l:null,l!==null&&(f.memoizedState={dehydrated:l,treeContext:Lo!==null?{id:Ki,overflow:Qi}:null,retryLane:536870912,hydrationErrors:null},p=CC(l),p.return=f,f.child=p,On=f,br=null)):l=null,l===null)throw Bo(f);return Kx(l)?f.lanes=32:f.lanes=536870912,null}var H=g.children;return g=g.fallback,w?(qo(),w=f.mode,H=Ym({mode:"hidden",children:H},w),g=Xl(g,w,p,null),H.return=f,g.return=f,H.sibling=g,f.child=H,g=f.child,g.memoizedState=hx(p),g.childLanes=px(l,D,p),f.memoizedState=dx,md(null,g)):(Ho(f),mx(f,H))}var oe=l.memoizedState;if(oe!==null&&(H=oe.dehydrated,H!==null)){if(S)f.flags&256?(Ho(f),f.flags&=-257,f=gx(l,f,p)):f.memoizedState!==null?(qo(),f.child=l.child,f.flags|=128,f=null):(qo(),H=g.fallback,w=f.mode,g=Ym({mode:"visible",children:g.children},w),H=Xl(H,w,p,null),H.flags|=2,g.return=f,H.return=f,g.sibling=H,f.child=g,ru(f,l.child,null,p),g=f.child,g.memoizedState=hx(p),g.childLanes=px(l,D,p),f.memoizedState=dx,f=md(null,g));else if(Ho(f),Kx(H)){if(D=H.nextSibling&&H.nextSibling.dataset,D)var ve=D.dgst;D=ve,g=Error(n(419)),g.stack="",g.digest=D,nd({value:g,source:null,stack:null}),f=gx(l,f,p)}else if(Xr||Ic(l,f,p,!1),D=(p&l.childLanes)!==0,Xr||D){if(D=cr,D!==null&&(g=oa(D,p),g!==0&&g!==oe.retryLane))throw oe.retryLane=g,Yl(l,g),pa(D,l,g),cx;Xx(H)||ng(),f=gx(l,f,p)}else Xx(H)?(f.flags|=192,f.child=l.child,f=null):(l=oe.treeContext,br=ri(H.nextSibling),On=f,$t=!0,jo=null,ei=!1,l!==null&&NC(f,l),f=mx(f,g.children),f.flags|=4096);return f}return w?(qo(),H=g.fallback,w=f.mode,oe=l.child,ve=oe.sibling,g=Ps(oe,{mode:"hidden",children:g.children}),g.subtreeFlags=oe.subtreeFlags&65011712,ve!==null?H=Ps(ve,H):(H=Xl(H,w,p,null),H.flags|=2),H.return=f,g.return=f,g.sibling=H,f.child=g,md(null,g),g=f.child,H=l.child.memoizedState,H===null?H=hx(p):(w=H.cachePool,w!==null?(oe=Wr._currentValue,w=w.parent!==oe?{parent:oe,pool:oe}:w):w=LC(),H={baseLanes:H.baseLanes|p,cachePool:w}),g.memoizedState=H,g.childLanes=px(l,D,p),f.memoizedState=dx,md(l.child,g)):(Ho(f),p=l.child,l=p.sibling,p=Ps(p,{mode:"visible",children:g.children}),p.return=f,p.sibling=null,l!==null&&(D=f.deletions,D===null?(f.deletions=[l],f.flags|=16):D.push(l)),f.child=p,f.memoizedState=null,p)}function mx(l,f){return f=Ym({mode:"visible",children:f},l.mode),f.return=l,l.child=f}function Ym(l,f){return l=Oa(22,l,null,f),l.lanes=0,l}function gx(l,f,p){return ru(f,l.child,null,p),l=mx(f,f.pendingProps.children),l.flags|=2,f.memoizedState=null,l}function XO(l,f,p){l.lanes|=f;var g=l.alternate;g!==null&&(g.lanes|=f),R2(l.return,f,p)}function vx(l,f,p,g,w,S){var D=l.memoizedState;D===null?l.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:w,treeForkCount:S}:(D.isBackwards=f,D.rendering=null,D.renderingStartTime=0,D.last=g,D.tail=p,D.tailMode=w,D.treeForkCount=S)}function KO(l,f,p){var g=f.pendingProps,w=g.revealOrder,S=g.tail;g=g.children;var D=zr.current,H=(D&2)!==0;if(H?(D=D&1|2,f.flags|=128):D&=1,L(zr,D),Nn(l,f,g,p),g=$t?rd:0,!H&&l!==null&&(l.flags&128)!==0)e:for(l=f.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&XO(l,p,f);else if(l.tag===19)XO(l,p,f);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===f)break e;for(;l.sibling===null;){if(l.return===null||l.return===f)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(w){case"forwards":for(p=f.child,w=null;p!==null;)l=p.alternate,l!==null&&Lm(l)===null&&(w=p),p=p.sibling;p=w,p===null?(w=f.child,f.child=null):(w=p.sibling,p.sibling=null),vx(f,!1,w,p,S,g);break;case"backwards":case"unstable_legacy-backwards":for(p=null,w=f.child,f.child=null;w!==null;){if(l=w.alternate,l!==null&&Lm(l)===null){f.child=w;break}l=w.sibling,w.sibling=p,p=w,w=l}vx(f,!0,p,null,S,g);break;case"together":vx(f,!1,null,null,void 0,g);break;default:f.memoizedState=null}return f.child}function zs(l,f,p){if(l!==null&&(f.dependencies=l.dependencies),Wo|=f.lanes,(p&f.childLanes)===0)if(l!==null){if(Ic(l,f,p,!1),(p&f.childLanes)===0)return null}else return null;if(l!==null&&f.child!==l.child)throw Error(n(153));if(f.child!==null){for(l=f.child,p=Ps(l,l.pendingProps),f.child=p,p.return=f;l.sibling!==null;)l=l.sibling,p=p.sibling=Ps(l,l.pendingProps),p.return=f;p.sibling=null}return f.child}
vendor: 5,239 bytes, line 49
49function yx(l,f){return(l.lanes&f)!==0?!0:(l=l.dependencies,!!(l!==null&&Om(l)))}function $J(l,f,p){switch(f.tag){case 3:Ne(f,f.stateNode.containerInfo),zo(f,Wr,l.memoizedState.cache),Kl();break;case 27:case 5:Pe(f);break;case 4:Ne(f,f.stateNode.containerInfo);break;case 10:zo(f,f.type,f.memoizedProps.value);break;case 31:if(f.memoizedState!==null)return f.flags|=128,H2(f),null;break;case 13:var g=f.memoizedState;if(g!==null)return g.dehydrated!==null?(Ho(f),f.flags|=128,null):(p&f.child.childLanes)!==0?YO(l,f,p):(Ho(f),l=zs(l,f,p),l!==null?l.sibling:null);Ho(f);break;case 19:var w=(l.flags&128)!==0;if(g=(p&f.childLanes)!==0,g||(Ic(l,f,p,!1),g=(p&f.childLanes)!==0),w){if(g)return KO(l,f,p);f.flags|=128}if(w=f.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),L(zr,zr.current),g)break;return null;case 22:return f.lanes=0,UO(l,f,p,f.pendingProps);case 24:zo(f,Wr,l.memoizedState.cache)}return zs(l,f,p)}function QO(l,f,p){if(l!==null)if(l.memoizedProps!==f.pendingProps)Xr=!0;else{if(!yx(l,p)&&(f.flags&128)===0)return Xr=!1,$J(l,f,p);Xr=(l.flags&131072)!==0}else Xr=!1,$t&&(f.flags&1048576)!==0&&kC(f,rd,f.index);switch(f.lanes=0,f.tag){case 16:e:{var g=f.pendingProps;if(l=eu(f.elementType),f.type=l,typeof l=="function")_2(l)?(g=au(l,g),f.tag=1,f=GO(null,f,l,g,p)):(f.tag=0,f=fx(null,f,l,g,p));else{if(l!=null){var w=l.$$typeof;if(w===P){f.tag=11,f=zO(null,f,l,g,p);break e}else if(w===M){f.tag=14,f=$O(null,f,l,g,p);break e}}throw f=X(l)||l,Error(n(306,f,""))}}return f;case 0:return fx(l,f,f.type,f.pendingProps,p);case 1:return g=f.type,w=au(g,f.pendingProps),GO(l,f,g,w,p);case 3:e:{if(Ne(f,f.stateNode.containerInfo),l===null)throw Error(n(387));g=f.pendingProps;var S=f.memoizedState;w=S.element,B2(l,f),cd(f,g,null,p);var D=f.memoizedState;if(g=D.cache,zo(f,Wr,g),g!==S.cache&&M2(f,[Wr],p,!0),ud(),g=D.element,S.isDehydrated)if(S={element:g,isDehydrated:!1,cache:D.cache},f.updateQueue.baseState=S,f.memoizedState=S,f.flags&256){f=WO(l,f,g,p);break e}else if(g!==w){w=Qa(Error(n(424)),f),nd(w),f=WO(l,f,g,p);break e}else{switch(l=f.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(br=ri(l.firstChild),On=f,$t=!0,jo=null,ei=!0,p=UC(f,null,g,p),f.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(Kl(),g===w){f=zs(l,f,p);break e}Nn(l,f,g,p)}f=f.child}return f;case 26:return Wm(l,f),l===null?(p=l9(f.type,null,f.pendingProps,null))?f.memoizedState=p:$t||(p=f.type,l=f.pendingProps,g=cg(Se.current).createElement(p),g[Cn]=f,g[la]=l,Rn(g,p,l),gn(g),f.stateNode=g):f.memoizedState=l9(f.type,l.memoizedProps,f.pendingProps,l.memoizedState),null;case 27:return Pe(f),l===null&&$t&&(g=f.stateNode=i9(f.type,f.pendingProps,Se.current),On=f,ei=!0,w=br,Zo(f.type)?(Qx=w,br=ri(g.firstChild)):br=w),Nn(l,f,f.pendingProps.children,p),Wm(l,f),l===null&&(f.flags|=4194304),f.child;case 5:return l===null&&$t&&((w=g=br)&&(g=gee(g,f.type,f.pendingProps,ei),g!==null?(f.stateNode=g,On=f,br=ri(g.firstChild),ei=!1,w=!0):w=!1),w||Bo(f)),Pe(f),w=f.type,S=f.pendingProps,D=l!==null?l.memoizedProps:null,g=S.children,Gx(w,S)?g=null:D!==null&&Gx(w,D)&&(f.flags|=32),f.memoizedState!==null&&(w=V2(l,f,RJ,null,null,p),Nd._currentValue=w),Wm(l,f),Nn(l,f,g,p),f.child;case 6:return l===null&&$t&&((l=p=br)&&(p=vee(p,f.pendingProps,ei),p!==null?(f.stateNode=p,On=f,br=null,l=!0):l=!1),l||Bo(f)),null;case 13:return YO(l,f,p);case 4:return Ne(f,f.stateNode.containerInfo),g=f.pendingProps,l===null?f.child=ru(f,null,g,p):Nn(l,f,g,p),f.child;case 11:return zO(l,f,f.type,f.pendingProps,p);case 7:return Nn(l,f,f.pendingProps,p),f.child;case 8:return Nn(l,f,f.pendingProps.children,p),f.child;case 12:return Nn(l,f,f.pendingProps.children,p),f.child;case 10:return g=f.pendingProps,zo(f,f.type,g.value),Nn(l,f,g.children,p),f.child;case 9:return w=f.type._context,g=f.pendingProps.children,Zl(f),w=kn(w),g=g(w),f.flags|=1,Nn(l,f,g,p),f.child;case 14:return $O(l,f,f.type,f.pendingProps,p);case 15:return FO(l,f,f.type,f.pendingProps,p);case 19:return KO(l,f,p);case 31:return zJ(l,f,p);case 22:return UO(l,f,p,f.pendingProps);case 24:return Zl(f),g=kn(Wr),l===null?(w=D2(),w===null&&(w=cr,S=P2(),w.pooledCache=S,S.refCount++,S!==null&&(w.pooledCacheLanes|=p),w=S),f.memoizedState={parent:g,cache:w},j2(f),zo(f,Wr,w)):((l.lanes&p)!==0&&(B2(l,f),cd(f,null,null,p),ud()),w=l.memoizedState,S=f.memoizedState,w.parent!==g?(w={parent:g,cache:g},f.memoizedState=w,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=w),zo(f,Wr,g)):(g=S.cache,zo(f,Wr,g),g!==w.cache&&M2(f,[Wr],p,!0))),Nn(l,f,f.pendingProps.children,p),f.child;case 29:throw f.pendingProps}throw Error(n(156,f.tag))}function $s(l){l.flags|=4}function bx(l,f,p,g,w){if((f=(l.mode&32)!==0)&&(f=!1),f){if(l.flags|=16777216,(w&335544128)===w)if(l.stateNode.complete)l.flags|=8192;else if(Sk())l.flags|=8192;else throw tu=Mm,L2}else l.flags&=-16777217}function ZO(l,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!h9(f))if(Sk())l.flags|=8192;else throw tu=Mm,L2}function Xm(l,f){f!==null&&(l.flags|=4),l.flags&16384&&(f=l.tag!==22?Ln():536870912,l.lanes|=f,Gc|=f)}function gd(l,f){if(!$t)switch(l.tailMode){case"hidden":f=l.tail;for(var p=null;f!==null;
vendor: 5,750 bytes, line 49
49)f.alternate!==null&&(p=f),f=f.sibling;p===null?l.tail=null:p.sibling=null;break;case"collapsed":p=l.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?f||l.tail===null?l.tail=null:l.tail.sibling=null:g.sibling=null}}function xr(l){var f=l.alternate!==null&&l.alternate.child===l.child,p=0,g=0;if(f)for(var w=l.child;w!==null;)p|=w.lanes|w.childLanes,g|=w.subtreeFlags&65011712,g|=w.flags&65011712,w.return=l,w=w.sibling;else for(w=l.child;w!==null;)p|=w.lanes|w.childLanes,g|=w.subtreeFlags,g|=w.flags,w.return=l,w=w.sibling;return l.subtreeFlags|=g,l.childLanes=p,f}function FJ(l,f,p){var g=f.pendingProps;switch(C2(f),f.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xr(f),null;case 1:return xr(f),null;case 3:return p=f.stateNode,g=null,l!==null&&(g=l.memoizedState.cache),f.memoizedState.cache!==g&&(f.flags|=2048),Ls(Wr),xe(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(l===null||l.child===null)&&(Pc(f)?$s(f):l===null||l.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,k2())),xr(f),null;case 26:var w=f.type,S=f.memoizedState;return l===null?($s(f),S!==null?(xr(f),ZO(f,S)):(xr(f),bx(f,w,null,g,p))):S?S!==l.memoizedState?($s(f),xr(f),ZO(f,S)):(xr(f),f.flags&=-16777217):(l=l.memoizedProps,l!==g&&$s(f),xr(f),bx(f,w,l,g,p)),null;case 27:if(ze(f),p=Se.current,w=f.type,l!==null&&f.stateNode!=null)l.memoizedProps!==g&&$s(f);else{if(!g){if(f.stateNode===null)throw Error(n(166));return xr(f),null}l=le.current,Pc(f)?RC(f):(l=i9(w,g,p),f.stateNode=l,$s(f))}return xr(f),null;case 5:if(ze(f),w=f.type,l!==null&&f.stateNode!=null)l.memoizedProps!==g&&$s(f);else{if(!g){if(f.stateNode===null)throw Error(n(166));return xr(f),null}if(S=le.current,Pc(f))RC(f);else{var D=cg(Se.current);switch(S){case 1:S=D.createElementNS("http://www.w3.org/2000/svg",w);break;case 2:S=D.createElementNS("http://www.w3.org/1998/Math/MathML",w);break;default:switch(w){case"svg":S=D.createElementNS("http://www.w3.org/2000/svg",w);break;case"math":S=D.createElementNS("http://www.w3.org/1998/Math/MathML",w);break;case"script":S=D.createElement("div"),S.innerHTML="<script><\/script>",S=S.removeChild(S.firstChild);break;case"select":S=typeof g.is=="string"?D.createElement("select",{is:g.is}):D.createElement("select"),g.multiple?S.multiple=!0:g.size&&(S.size=g.size);break;default:S=typeof g.is=="string"?D.createElement(w,{is:g.is}):D.createElement(w)}}S[Cn]=f,S[la]=g;e:for(D=f.child;D!==null;){if(D.tag===5||D.tag===6)S.appendChild(D.stateNode);else if(D.tag!==4&&D.tag!==27&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===f)break e;for(;D.sibling===null;){if(D.return===null||D.return===f)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}f.stateNode=S;e:switch(Rn(S,w,g),w){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}g&&$s(f)}}return xr(f),bx(f,f.type,l===null?null:l.memoizedProps,f.pendingProps,p),null;case 6:if(l&&f.stateNode!=null)l.memoizedProps!==g&&$s(f);else{if(typeof g!="string"&&f.stateNode===null)throw Error(n(166));if(l=Se.current,Pc(f)){if(l=f.stateNode,p=f.memoizedProps,g=null,w=On,w!==null)switch(w.tag){case 27:case 5:g=w.memoizedProps}l[Cn]=f,l=!!(l.nodeValue===p||g!==null&&g.suppressHydrationWarning===!0||Yk(l.nodeValue,p)),l||Bo(f,!0)}else l=cg(l).createTextNode(g),l[Cn]=f,f.stateNode=l}return xr(f),null;case 31:if(p=f.memoizedState,l===null||l.memoizedState!==null){if(g=Pc(f),p!==null){if(l===null){if(!g)throw Error(n(318));if(l=f.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(557));l[Cn]=f}else Kl(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;xr(f),l=!1}else p=k2(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=p),l=!0;if(!l)return f.flags&256?(Na(f),f):(Na(f),null);if((f.flags&128)!==0)throw Error(n(558))}return xr(f),null;case 13:if(g=f.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(w=Pc(f),g!==null&&g.dehydrated!==null){if(l===null){if(!w)throw Error(n(318));if(w=f.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(n(317));w[Cn]=f}else Kl(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;xr(f),w=!1}else w=k2(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=w),w=!0;if(!w)return f.flags&256?(Na(f),f):(Na(f),null)}return Na(f),(f.flags&128)!==0?(f.lanes=p,f):(p=g!==null,l=l!==null&&l.memoizedState!==null,p&&(g=f.child,w=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(w=g.alternate.memoizedState.cachePool.pool),S=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(S=g.memoizedState.cachePool.pool),S!==w&&(g.flags|=2048)),p!==l&&p&&(f.child.flags|=8192),Xm(f,f.updateQueue),xr(f),null);case 4:return xe(),l===null&&Fx(f.stateNode.containerInfo),xr(f),null;case 10:return Ls(f.type),xr(f),null;case 19:if(W(zr),g=f.memoizedState,g===null)return xr(f),null;if(w=(f.flags&128)!==0,S=g.rendering,S===null)if(w)gd(g,!1);else{if(Mr!==0||l!==null&&(l.flags&128)!==0)for(l=f.child;l!==null;){if(S=Lm(l),S!==null){for(f.flags|=128,gd(g,!1),l=S.updateQueue,f.updateQueue=l,Xm(f,l),f.subtreeFlags=0,l=p,p=f.child;p!==null;)AC(p,l),p=p.sibling;return L(zr,zr.current&1|2),$t&&Is(f,g.treeForkCount),f.child}l=l.sibling}g.tail!==null&&Gr()>eg&&(f.flags|=128,w=!0,gd(g,!1),f.lanes=4194304)}else{if(!w)if(l=Lm(S),l!==null){if(f.flags|=128,w=!0,l=l.updateQueue,f.updateQueue=l,Xm(f,l),gd(g,!0),g.tail===null&&g.tailMode==="hidden"&&!S.alternate&&!$t)return xr(f),null}else 2*Gr()-g.renderingStartTime>eg&&p!==536870912&&(f.flags|=128,w=!0,gd(g,!1),f.lanes=4194304);g.isBackwards?(S.sibling=f.child,f.child=S):(l=g.last,l!==null?l.sibling=S:f.child=S,g.last=S)}
vendor: 22,794 bytes, line 49
49return g.tail!==null?(l=g.tail,g.rendering=l,g.tail=l.sibling,g.renderingStartTime=Gr(),l.sibling=null,p=zr.current,L(zr,w?p&1|2:p&1),$t&&Is(f,g.treeForkCount),l):(xr(f),null);case 22:case 23:return Na(f),U2(),g=f.memoizedState!==null,l!==null?l.memoizedState!==null!==g&&(f.flags|=8192):g&&(f.flags|=8192),g?(p&536870912)!==0&&(f.flags&128)===0&&(xr(f),f.subtreeFlags&6&&(f.flags|=8192)):xr(f),p=f.updateQueue,p!==null&&Xm(f,p.retryQueue),p=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),g=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(g=f.memoizedState.cachePool.pool),g!==p&&(f.flags|=2048),l!==null&&W(Jl),null;case 24:return p=null,l!==null&&(p=l.memoizedState.cache),f.memoizedState.cache!==p&&(f.flags|=2048),Ls(Wr),xr(f),null;case 25:return null;case 30:return null}throw Error(n(156,f.tag))}function UJ(l,f){switch(C2(f),f.tag){case 1:return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 3:return Ls(Wr),xe(),l=f.flags,(l&65536)!==0&&(l&128)===0?(f.flags=l&-65537|128,f):null;case 26:case 27:case 5:return ze(f),null;case 31:if(f.memoizedState!==null){if(Na(f),f.alternate===null)throw Error(n(340));Kl()}return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 13:if(Na(f),l=f.memoizedState,l!==null&&l.dehydrated!==null){if(f.alternate===null)throw Error(n(340));Kl()}return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 19:return W(zr),null;case 4:return xe(),null;case 10:return Ls(f.type),null;case 22:case 23:return Na(f),U2(),l!==null&&W(Jl),l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 24:return Ls(Wr),null;case 25:return null;default:return null}}function JO(l,f){switch(C2(f),f.tag){case 3:Ls(Wr),xe();break;case 26:case 27:case 5:ze(f);break;case 4:xe();break;case 31:f.memoizedState!==null&&Na(f);break;case 13:Na(f);break;case 19:W(zr);break;case 10:Ls(f.type);break;case 22:case 23:Na(f),U2(),l!==null&&W(Jl);break;case 24:Ls(Wr)}}function vd(l,f){try{var p=f.updateQueue,g=p!==null?p.lastEffect:null;if(g!==null){var w=g.next;p=w;do{if((p.tag&l)===l){g=void 0;var S=p.create,D=p.inst;g=S(),D.destroy=g}p=p.next}while(p!==w)}}catch(H){rr(f,f.return,H)}}function Vo(l,f,p){try{var g=f.updateQueue,w=g!==null?g.lastEffect:null;if(w!==null){var S=w.next;g=S;do{if((g.tag&l)===l){var D=g.inst,H=D.destroy;if(H!==void 0){D.destroy=void 0,w=f;var oe=p,ve=H;try{ve()}catch(Te){rr(w,oe,Te)}}}g=g.next}while(g!==S)}}catch(Te){rr(f,f.return,Te)}}function ek(l){var f=l.updateQueue;if(f!==null){var p=l.stateNode;try{qC(f,p)}catch(g){rr(l,l.return,g)}}}function tk(l,f,p){p.props=au(l.type,l.memoizedProps),p.state=l.memoizedState;try{p.componentWillUnmount()}catch(g){rr(l,f,g)}}function yd(l,f){try{var p=l.ref;if(p!==null){switch(l.tag){case 26:case 27:case 5:var g=l.stateNode;break;case 30:g=l.stateNode;break;default:g=l.stateNode}typeof p=="function"?l.refCleanup=p(g):p.current=g}}catch(w){rr(l,f,w)}}function Zi(l,f){var p=l.ref,g=l.refCleanup;if(p!==null)if(typeof g=="function")try{g()}catch(w){rr(l,f,w)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(w){rr(l,f,w)}else p.current=null}function rk(l){var f=l.type,p=l.memoizedProps,g=l.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":p.autoFocus&&g.focus();break e;case"img":p.src?g.src=p.src:p.srcSet&&(g.srcset=p.srcSet)}}catch(w){rr(l,l.return,w)}}function xx(l,f,p){try{var g=l.stateNode;cee(g,l.type,p,f),g[la]=f}catch(w){rr(l,l.return,w)}}function nk(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Zo(l.type)||l.tag===4}function Ex(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||nk(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&Zo(l.type)||l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function wx(l,f,p){var g=l.tag;if(g===5||g===6)l=l.stateNode,f?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(l,f):(f=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,f.appendChild(l),p=p._reactRootContainer,p!=null||f.onclick!==null||(f.onclick=Rs));else if(g!==4&&(g===27&&Zo(l.type)&&(p=l.stateNode,f=null),l=l.child,l!==null))for(wx(l,f,p),l=l.sibling;l!==null;)wx(l,f,p),l=l.sibling}function Km(l,f,p){var g=l.tag;if(g===5||g===6)l=l.stateNode,f?p.insertBefore(l,f):p.appendChild(l);else if(g!==4&&(g===27&&Zo(l.type)&&(p=l.stateNode),l=l.child,l!==null))for(Km(l,f,p),l=l.sibling;l!==null;)Km(l,f,p),l=l.sibling}function ak(l){var f=l.stateNode,p=l.memoizedProps;try{for(var g=l.type,w=f.attributes;w.length;)f.removeAttributeNode(w[0]);Rn(f,g,p),f[Cn]=l,f[la]=p}catch(S){rr(l,l.return,S)}}var Fs=!1,Kr=!1,_x=!1,ik=typeof WeakSet=="function"?WeakSet:Set,vn=null;function HJ(l,f){if(l=l.containerInfo,qx=vg,l=vC(l),g2(l)){if("selectionStart"in l)var p={start:l.selectionStart,end:l.selectionEnd};else e:{p=(p=l.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var w=g.anchorOffset,S=g.focusNode;g=g.focusOffset;try{p.nodeType,S.nodeType}catch{p=null;break e}var D=0,H=-1,oe=-1,ve=0,Te=0,ke=l,be=null;t:for(;;){for(var Ee;ke!==p||w!==0&&ke.nodeType!==3||(H=D+w),ke!==S||g!==0&&ke.nodeType!==3||(oe=D+g),ke.nodeType===3&&(D+=ke.nodeValue.length),(Ee=ke.firstChild)!==null;)be=ke,ke=Ee;for(;;){if(ke===l)break t;if(be===p&&++ve===w&&(H=D),be===S&&++Te===g&&(oe=D),(Ee=ke.nextSibling)!==null)break;ke=be,be=ke.parentNode}ke=Ee}p=H===-1||oe===-1?null:{start:H,end:oe}}else p=null}p=p||{start:0,end:0}}else p=null;for(Vx={focusedElem:l,selectionRange:p},vg=!1,vn=f;vn!==null;)if(f=vn,l=f.child,(f.subtreeFlags&1028)!==0&&l!==null)l.return=f,vn=l;else for(;vn!==null;){switch(f=vn,S=f.alternate,l=f.flags,f.tag){case 0:if((l&4)!==0&&(l=f.updateQueue,l=l!==null?l.events:null,l!==null))for(p=0;p<l.length;p++)w=l[p],w.ref.impl=w.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&S!==null){l=void 0,p=f,w=S.memoizedProps,S=S.memoizedState,g=p.stateNode;try{var We=au(p.type,w);l=g.getSnapshotBeforeUpdate(We,S),g.__reactInternalSnapshotBeforeUpdate=l}catch(at){rr(p,p.return,at)}}break;case 3:if((l&1024)!==0){if(l=f.stateNode.containerInfo,p=l.nodeType,p===9)Yx(l);else if(p===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Yx(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(n(163))}if(l=f.sibling,l!==null){l.return=f.return,vn=l;break}vn=f.return}}function sk(l,f,p){var g=p.flags;switch(p.tag){case 0:case 11:case 15:Hs(l,p),g&4&&vd(5,p);break;case 1:if(Hs(l,p),g&4)if(l=p.stateNode,f===null)try{l.componentDidMount()}catch(D){rr(p,p.return,D)}else{var w=au(p.type,f.memoizedProps);f=f.memoizedState;try{l.componentDidUpdate(w,f,l.__reactInternalSnapshotBeforeUpdate)}catch(D){rr(p,p.return,D)}}g&64&&ek(p),g&512&&yd(p,p.return);break;case 3:if(Hs(l,p),g&64&&(l=p.updateQueue,l!==null)){if(f=null,p.child!==null)switch(p.child.tag){case 27:case 5:f=p.child.stateNode;break;case 1:f=p.child.stateNode}try{qC(l,f)}catch(D){rr(p,p.return,D)}}break;case 27:f===null&&g&4&&ak(p);case 26:case 5:Hs(l,p),f===null&&g&4&&rk(p),g&512&&yd(p,p.return);break;case 12:Hs(l,p);break;case 31:Hs(l,p),g&4&&uk(l,p);break;case 13:Hs(l,p),g&4&&ck(l,p),g&64&&(l=p.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(p=ZJ.bind(null,p),yee(l,p))));break;case 22:if(g=p.memoizedState!==null||Fs,!g){f=f!==null&&f.memoizedState!==null||Kr,w=Fs;var S=Kr;Fs=g,(Kr=f)&&!S?qs(l,p,(p.subtreeFlags&8772)!==0):Hs(l,p),Fs=w,Kr=S}break;case 30:break;default:Hs(l,p)}}function ok(l){var f=l.alternate;f!==null&&(l.alternate=null,ok(f)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(f=l.stateNode,f!==null&&Jb(f)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var _r=null,ca=!1;function Us(l,f,p){for(p=p.child;p!==null;)lk(l,f,p),p=p.sibling}function lk(l,f,p){if(Br&&typeof Br.onCommitFiberUnmount=="function")try{Br.onCommitFiberUnmount(Tn,p)}catch{}switch(p.tag){case 26:Kr||Zi(p,f),Us(l,f,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:Kr||Zi(p,f);var g=_r,w=ca;Zo(p.type)&&(_r=p.stateNode,ca=!1),Us(l,f,p),Cd(p.stateNode),_r=g,ca=w;break;case 5:Kr||Zi(p,f);case 6:if(g=_r,w=ca,_r=null,Us(l,f,p),_r=g,ca=w,_r!==null)if(ca)try{(_r.nodeType===9?_r.body:_r.nodeName==="HTML"?_r.ownerDocument.body:_r).removeChild(p.stateNode)}catch(S){rr(p,f,S)}else try{_r.removeChild(p.stateNode)}catch(S){rr(p,f,S)}break;case 18:_r!==null&&(ca?(l=_r,e9(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,p.stateNode),ef(l)):e9(_r,p.stateNode));break;case 4:g=_r,w=ca,_r=p.stateNode.containerInfo,ca=!0,Us(l,f,p),_r=g,ca=w;break;case 0:case 11:case 14:case 15:Vo(2,p,f),Kr||Vo(4,p,f),Us(l,f,p);break;case 1:Kr||(Zi(p,f),g=p.stateNode,typeof g.componentWillUnmount=="function"&&tk(p,f,g)),Us(l,f,p);break;case 21:Us(l,f,p);break;case 22:Kr=(g=Kr)||p.memoizedState!==null,Us(l,f,p),Kr=g;break;default:Us(l,f,p)}}function uk(l,f){if(f.memoizedState===null&&(l=f.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{ef(l)}catch(p){rr(f,f.return,p)}}}function ck(l,f){if(f.memoizedState===null&&(l=f.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{ef(l)}catch(p){rr(f,f.return,p)}}function qJ(l){switch(l.tag){case 31:case 13:case 19:var f=l.stateNode;return f===null&&(f=l.stateNode=new ik),f;case 22:return l=l.stateNode,f=l._retryCache,f===null&&(f=l._retryCache=new ik),f;default:throw Error(n(435,l.tag))}}function Qm(l,f){var p=qJ(l);f.forEach(function(g){if(!p.has(g)){p.add(g);var w=JJ.bind(null,l,g);g.then(w,w)}})}function fa(l,f){var p=f.deletions;if(p!==null)for(var g=0;g<p.length;g++){var w=p[g],S=l,D=f,H=D;e:for(;H!==null;){switch(H.tag){case 27:if(Zo(H.type)){_r=H.stateNode,ca=!1;break e}break;case 5:_r=H.stateNode,ca=!1;break e;case 3:case 4:_r=H.stateNode.containerInfo,ca=!0;break e}H=H.return}if(_r===null)throw Error(n(160));lk(S,D,w),_r=null,ca=!1,S=w.alternate,S!==null&&(S.return=null),w.return=null}if(f.subtreeFlags&13886)for(f=f.child;f!==null;)fk(f,l),f=f.sibling}var Ci=null;function fk(l,f){var p=l.alternate,g=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:fa(f,l),da(l),g&4&&(Vo(3,l,l.return),vd(3,l),Vo(5,l,l.return));break;case 1:fa(f,l),da(l),g&512&&(Kr||p===null||Zi(p,p.return)),g&64&&Fs&&(l=l.updateQueue,l!==null&&(g=l.callbacks,g!==null&&(p=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=p===null?g:p.concat(g))));break;case 26:var w=Ci;if(fa(f,l),da(l),g&512&&(Kr||p===null||Zi(p,p.return)),g&4){var S=p!==null?p.memoizedState:null;if(g=l.memoizedState,p===null)if(g===null)if(l.stateNode===null){e:{g=l.type,p=l.memoizedProps,w=w.ownerDocument||w;t:switch(g){case"title":S=w.getElementsByTagName("title")[0],(!S||S[V0]||S[Cn]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=w.createElement(g),w.head.insertBefore(S,w.querySelector("head > title"))),Rn(S,g,p),S[Cn]=l,gn(S),g=S;break e;case"link":var D=f9("link","href",w).get(g+(p.href||""));if(D){for(var H=0;H<D.length;H++)if(S=D[H],S.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&S.getAttribute("rel")===(p.rel==null?null:p.rel)&&S.getAttribute("title")===(p.title==null?null:p.title)&&S.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){D.splice(H,1);break t}}S=w.createElement(g),Rn(S,g,p),w.head.appendChild(S);break;case"meta":if(D=f9("meta","content",w).get(g+(p.content||""))){for(H=0;H<D.length;H++)if(S=D[H],S.getAttribute("content")===(p.content==null?null:""+p.content)&&S.getAttribute("name")===(p.name==null?null:p.name)&&S.getAttribute("property")===(p.property==null?null:p.property)&&S.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&S.getAttribute("charset")===(p.charSet==null?null:p.charSet)){D.splice(H,1);break t}}S=w.createElement(g),Rn(S,g,p),w.head.appendChild(S);break;default:throw Error(n(468,g))}S[Cn]=l,gn(S),g=S}l.stateNode=g}else d9(w,l.type,l.stateNode);else l.stateNode=c9(w,g,l.memoizedProps);else S!==g?(S===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):S.count--,g===null?d9(w,l.type,l.stateNode):c9(w,g,l.memoizedProps)):g===null&&l.stateNode!==null&&xx(l,l.memoizedProps,p.memoizedProps)}break;case 27:fa(f,l),da(l),g&512&&(Kr||p===null||Zi(p,p.return)),p!==null&&g&4&&xx(l,l.memoizedProps,p.memoizedProps);break;case 5:if(fa(f,l),da(l),g&512&&(Kr||p===null||Zi(p,p.return)),l.flags&32){w=l.stateNode;try{_c(w,"")}catch(We){rr(l,l.return,We)}}g&4&&l.stateNode!=null&&(w=l.memoizedProps,xx(l,w,p!==null?p.memoizedProps:w)),g&1024&&(_x=!0);break;case 6:if(fa(f,l),da(l),g&4){if(l.stateNode===null)throw Error(n(162));g=l.memoizedProps,p=l.stateNode;try{p.nodeValue=g}catch(We){rr(l,l.return,We)}}break;case 3:if(hg=null,w=Ci,Ci=fg(f.containerInfo),fa(f,l),Ci=w,da(l),g&4&&p!==null&&p.memoizedState.isDehydrated)try{ef(f.containerInfo)}catch(We){rr(l,l.return,We)}_x&&(_x=!1,dk(l));break;case 4:g=Ci,Ci=fg(l.stateNode.containerInfo),fa(f,l),da(l),Ci=g;break;case 12:fa(f,l),da(l);break;case 31:fa(f,l),da(l),g&4&&(g=l.updateQueue,g!==null&&(l.updateQueue=null,Qm(l,g)));break;case 13:fa(f,l),da(l),l.child.flags&8192&&l.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(Jm=Gr()),g&4&&(g=l.updateQueue,g!==null&&(l.updateQueue=null,Qm(l,g)));break;case 22:w=l.memoizedState!==null;var oe=p!==null&&p.memoizedState!==null,ve=Fs,Te=Kr;if(Fs=ve||w,Kr=Te||oe,fa(f,l),Kr=Te,Fs=ve,da(l),g&8192)e:for(f=l.stateNode,f._visibility=w?f._visibility&-2:f._visibility|1,w&&(p===null||oe||Fs||Kr||iu(l)),p=null,f=l;;){if(f.tag===5||f.tag===26){if(p===null){oe=p=f;try{if(S=oe.stateNode,w)D=S.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{H=oe.stateNode;var ke=oe.memoizedProps.style,be=ke!=null&&ke.hasOwnProperty("display")?ke.display:null;H.style.display=be==null||typeof be=="boolean"?"":(""+be).trim()}}catch(We){rr(oe,oe.return,We)}}}else if(f.tag===6){if(p===null){oe=f;try{oe.stateNode.nodeValue=w?"":oe.memoizedProps}catch(We){rr(oe,oe.return,We)}}}else if(f.tag===18){if(p===null){oe=f;try{var Ee=oe.stateNode;w?t9(Ee,!0):t9(oe.stateNode,!1)}catch(We){rr(oe,oe.return,We)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===l)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===l)break e;for(;f.sibling===null;){if(f.return===null||f.return===l)break e;p===f&&(p=null),f=f.return}p===f&&(p=null),f.sibling.return=f.return,f=f.sibling}g&4&&(g=l.updateQueue,g!==null&&(p=g.retryQueue,p!==null&&(g.retryQueue=null,Qm(l,p))));break;case 19:fa(f,l),da(l),g&4&&(g=l.updateQueue,g!==null&&(l.updateQueue=null,Qm(l,g)));break;case 30:break;case 21:break;default:fa(f,l),da(l)}}function da(l){var f=l.flags;if(f&2){try{for(var p,g=l.return;g!==null;){if(nk(g)){p=g;break}g=g.return}if(p==null)throw Error(n(160));switch(p.tag){case 27:var w=p.stateNode,S=Ex(l);Km(l,S,w);break;case 5:var D=p.stateNode;p.flags&32&&(_c(D,""),p.flags&=-33);var H=Ex(l);Km(l,H,D);break;case 3:case 4:var oe=p.stateNode.containerInfo,ve=Ex(l);wx(l,ve,oe);break;default:throw Error(n(161))}}catch(Te){rr(l,l.return,Te)}l.flags&=-3}f&4096&&(l.flags&=-4097)}function dk(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var f=l;dk(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),l=l.sibling}}function Hs(l,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)sk(l,f.alternate,f),f=f.sibling}function iu(l){for(l=l.child;l!==null;){var f=l;switch(f.tag){case 0:case 11:case 14:case 15:Vo(4,f,f.return),iu(f);break;case 1:Zi(f,f.return);var p=f.stateNode;typeof p.componentWillUnmount=="function"&&tk(f,f.return,p),iu(f);break;case 27:Cd(f.stateNode);case 26:case 5:Zi(f,f.return),iu(f);break;case 22:f.memoizedState===null&&iu(f);break;case 30:iu(f);break;default:iu(f)}l=l.sibling}}function qs(l,f,p){for(p=p&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var g=f.alternate,w=l,S=f,D=S.flags;switch(S.tag){case 0:case 11:case 15:qs(w,S,p),vd(4,S);break;case 1:if(qs(w,S,p),g=S,w=g.stateNode,typeof w.componentDidMount=="function")try{w.componentDidMount()}catch(ve){rr(g,g.return,ve)}if(g=S,w=g.updateQueue,w!==null){var H=g.stateNode;try{var oe=w.shared.hiddenCallbacks;if(oe!==null)for(w.shared.hiddenCallbacks=null,w=0;w<oe.length;w++)HC(oe[w],H)}catch(ve){rr(g,g.return,ve)}}p&&D&64&&ek(S),yd(S,S.return);break;case 27:ak(S);case 26:case 5:qs(w,S,p),p&&g===null&&D&4&&rk(S),yd(S,S.return);break;case 12:qs(w,S,p);break;case 31:qs(w,S,p),p&&D&4&&uk(w,S);break;case 13:qs(w,S,p),p&&D&4&&ck(w,S);break;case 22:S.memoizedState===null&&qs(w,S,p),yd(S,S.return);break;case 30:break;default:qs(w,S,p)}f=f.sibling}}function Sx(l,f){var p=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),l=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(l=f.memoizedState.cachePool.pool),l!==p&&(l!=null&&l.refCount++,p!=null&&ad(p))}function Tx(l,f){l=null,f.alternate!==null&&(l=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==l&&(f.refCount++,l!=null&&ad(l))}function Oi(l,f,p,g){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)hk(l,f,p,g),f=f.sibling}function hk(l,f,p,g){var w=f.flags;switch(f.tag){case 0:case 11:case 15:Oi(l,f,p,g),w&2048&&vd(9,f);break;case 1:Oi(l,f,p,g);break;case 3:Oi(l,f,p,g),w&2048&&(l=null,f.alternate!==null&&(l=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==l&&(f.refCount++,l!=null&&ad(l)));break;case 12:if(w&2048){Oi(l,f,p,g),l=f.stateNode;try{var S=f.memoizedProps,D=S.id,H=S.onPostCommit;typeof H=="function"&&H(D,f.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(oe){rr(f,f.return,oe)}}else Oi(l,f,p,g);break;case 31:Oi(l,f,p,g);break;case 13:Oi(l,f,p,g);break;case 23:break;case 22:S=f.stateNode,D=f.alternate,f.memoizedState!==null?S._visibility&2?Oi(l,f,p,g):bd(l,f):S._visibility&2?Oi(l,f,p,g):(S._visibility|=2,Hc(l,f,p,g,(f.subtreeFlags&10256)!==0||!1)),w&2048&&Sx(D,f);break;case 24:Oi(l,f,p,g),w&2048&&Tx(f.alternate,f);break;default:Oi(l,f,p,g)}}function Hc(l,f,p,g,w){for(w=w&&((f.subtreeFlags&10256)!==0||!1),f=f.child;f!==null;){var S=l,D=f,H=p,oe=g,ve=D.flags;switch(D.tag){case 0:case 11:case 15:Hc(S,D,H,oe,w),vd(8,D);break;case 23:break;case 22:var Te=D.stateNode;D.memoizedState!==null?Te._visibility&2?Hc(S,D,H,oe,w):bd(S,D):(Te._visibility|=2,Hc(S,D,H,oe,w)),w&&ve&2048&&Sx(D.alternate,D);break;case 24:Hc(S,D,H,oe,w),w&&ve&2048&&Tx(D.alternate,D);break;default:Hc(S,D,H,oe,w)}f=f.sibling}}function bd(l,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var p=l,g=f,w=g.flags;switch(g.tag){case 22:bd(p,g),w&2048&&Sx(g.alternate,g);break;case 24:bd(p,g),w&2048&&Tx(g.alternate,g);break;default:bd(p,g)}f=f.sibling}}var xd=8192;function qc(l,f,p){if(l.subtreeFlags&xd)for(l=l.child;l!==null;)pk(l,f,p),l=l.sibling}function pk(l,f,p){switch(l.tag){case 26:qc(l,f,p),l.flags&xd&&l.memoizedState!==null&&Nee(p,Ci,l.memoizedState,l.memoizedProps);break;case 5:qc(l,f,p);break;case 3:case 4:var g=Ci;Ci=fg(l.stateNode.containerInfo),qc(l,f,p),Ci=g;break;case 22:l.memoizedState===null&&(g=l.alternate,g!==null&&g.memoizedState!==null?(g=xd,xd=16777216,qc(l,f,p),xd=g):qc(l,f,p));break;default:qc(l,f,p)}}function mk(l){var f=l.alternate;if(f!==null&&(l=f.child,l!==null)){f.child=null;do f=l.sibling,l.sibling=null,l=f;while(l!==null)}}function Ed(l){var f=l.deletions;if((l.flags&16)!==0){if(f!==null)for(var p=0;p<f.length;p++){var g=f[p];vn=g,vk(g,l)}mk(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)gk(l),l=l.sibling}function gk(l){switch(l.tag){case 0:case 11:case 15:Ed(l),l.flags&2048&&Vo(9,l,l.return);break;case 3:Ed(l);break;case 12:Ed(l);break;case 22:var f=l.stateNode;l.memoizedState!==null&&f._visibility&2&&(l.return===null||l.return.tag!==13)?(f._visibility&=-3,Zm(l)):Ed(l);break;default:Ed(l)}}function Zm(l){var f=l.deletions;if((l.flags&16)!==0){if(f!==null)for(var p=0;p<f.length;p++){var g=f[p];vn=g,vk(g,l)}mk(l)}for(l=l.child;l!==null;){switch(f=l,f.tag){case 0:case 11:case 15:Vo(8,f,f.return),Zm(f);break;case 22:p=f.stateNode,p._visibility&2&&(p._visibility&=-3,Zm(f));break;default:Zm(f)}l=l.sibling}}function vk(l,f){for(;vn!==null;){var p=vn;switch(p.tag){case 0:case 11:case 15:Vo(8,p,f);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var g=p.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:ad(p.memoizedState.cache)}if(g=p.child,g!==null)g.return=p,vn=g;else e:for(p=l;vn!==null;){g=vn;var w=g.sibling,S=g.return;if(ok(g),g===p){vn=null;break e}if(w!==null){w.return=S,vn=w;break e}vn=S}}}var VJ={getCacheForType:function(l){var f=kn(Wr),p=f.data.get(l);return p===void 0&&(p=l(),f.data.set(l,p)),p},cacheSignal:function(){return kn(Wr).controller.signal}},GJ=typeof WeakMap=="function"?WeakMap:Map,Kt=0,cr=null,Ot=null,It=0,tr=0,Ra=null,Go=!1,Vc=!1,Ax=!1,Vs=0,Mr=0,Wo=0,su=0,Cx=0,Ma=0,Gc=0,wd=null,ha=null,Ox=!1,Jm=0,yk=0,eg=1/0,tg=null,Yo=null,an=0,Xo=null,Wc=null,Gs=0,kx=0,Nx=null,bk=null,_d=0,Rx=null;function Pa(){return(Kt&2)!==0&&It!==0?It&-It:U.T!==null?jx():Qb()}function xk(){if(Ma===0)if((It&536870912)===0||$t){var l=mc;mc<<=1,(mc&3932160)===0&&(mc=262144),Ma=l}else Ma=536870912;return l=ka.current,l!==null&&(l.flags|=32),Ma}function pa(l,f,p){(l===cr&&(tr===2||tr===9)||l.cancelPendingCommit!==null)&&(Yc(l,0),Ko(l,It,Ma,!1)),Or(l,p),((Kt&2)===0||l!==cr)&&(l===cr&&((Kt&2)===0&&(su|=p),Mr===4&&Ko(l,It,Ma,!1)),Ji(l))}function Ek(l,f,p){if((Kt&6)!==0)throw Error(n(327));var g=!p&&(f&127)===0&&(f&l.expiredLanes)===0||wr(l,f),w=g?XJ(l,f):Px(l,f,!0),S=g;do{if(w===0){Vc&&!g&&Ko(l,f,0,!1);break}else{if(p=l.current.alternate,S&&!WJ(p)){w=Px(l,f,!1),S=!1;continue}if(w===2){if(S=f,l.errorRecoveryDisabledLanes&S)var D=0;else D=l.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){f=D;e:{var H=l;w=wd;var oe=H.current.memoizedState.isDehydrated;if(oe&&(Yc(H,D).flags|=256),D=Px(H,D,!1),D!==2){if(Ax&&!oe){H.errorRecoveryDisabledLanes|=S,su|=S,w=4;break e}S=ha,ha=w,S!==null&&(ha===null?ha=S:ha.push.apply(ha,S))}w=D}if(S=!1,w!==2)continue}}if(w===1){Yc(l,0),Ko(l,f,0,!0);break}e:{switch(g=l,S=w,S){case 0:case 1:throw Error(n(345));case 4:if((f&4194048)!==f)break;case 6:Ko(g,f,Ma,!Go);break e;case 2:ha=null;break;case 3:case 5:break;default:throw Error(n(329))}if((f&62914560)===f&&(w=Jm+300-Gr(),10<w)){if(Ko(g,f,Ma,!Go),lt(g,0,!0)!==0)break e;Gs=f,g.timeoutHandle=Zk(wk.bind(null,g,p,ha,tg,Ox,f,Ma,su,Gc,Go,S,"Throttled",-0,0),w);break e}wk(g,p,ha,tg,Ox,f,Ma,su,Gc,Go,S,null,-0,0)}}break}while(!0);Ji(l)}function wk(l,f,p,g,w,S,D,H,oe,ve,Te,ke,be,Ee){if(l.timeoutHandle=-1,ke=f.
vendor: 18,916 bytes, line 49
49subtreeFlags,ke&8192||(ke&16785408)===16785408){ke={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rs},pk(f,S,ke);var We=(S&62914560)===S?Jm-Gr():(S&4194048)===S?yk-Gr():0;if(We=Ree(ke,We),We!==null){Gs=S,l.cancelPendingCommit=We(Nk.bind(null,l,f,S,p,g,w,D,H,oe,Te,ke,null,be,Ee)),Ko(l,S,D,!ve);return}}Nk(l,f,S,p,g,w,D,H,oe)}function WJ(l){for(var f=l;;){var p=f.tag;if((p===0||p===11||p===15)&&f.flags&16384&&(p=f.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var g=0;g<p.length;g++){var w=p[g],S=w.getSnapshot;w=w.value;try{if(!Ca(S(),w))return!1}catch{return!1}}if(p=f.child,f.subtreeFlags&16384&&p!==null)p.return=f,f=p;else{if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function Ko(l,f,p,g){f&=~Cx,f&=~su,l.suspendedLanes|=f,l.pingedLanes&=~f,g&&(l.warmLanes|=f),g=l.expirationTimes;for(var w=f;0<w;){var S=31-Qt(w),D=1<<S;g[S]=-1,w&=~D}p!==0&&Hl(l,p,f)}function rg(){return(Kt&6)===0?(Sd(0),!1):!0}function Mx(){if(Ot!==null){if(tr===0)var l=Ot.return;else l=Ot,Ds=Ql=null,Y2(l),Bc=null,sd=0,l=Ot;for(;l!==null;)JO(l.alternate,l),l=l.return;Ot=null}}function Yc(l,f){var p=l.timeoutHandle;p!==-1&&(l.timeoutHandle=-1,hee(p)),p=l.cancelPendingCommit,p!==null&&(l.cancelPendingCommit=null,p()),Gs=0,Mx(),cr=l,Ot=p=Ps(l.current,null),It=f,tr=0,Ra=null,Go=!1,Vc=wr(l,f),Ax=!1,Gc=Ma=Cx=su=Wo=Mr=0,ha=wd=null,Ox=!1,(f&8)!==0&&(f|=f&32);var g=l.entangledLanes;if(g!==0)for(l=l.entanglements,g&=f;0<g;){var w=31-Qt(g),S=1<<w;f|=l[w],g&=~S}return Vs=f,_m(),p}function _k(l,f){mt=null,U.H=pd,f===jc||f===Rm?(f=zC(),tr=3):f===L2?(f=zC(),tr=4):tr=f===cx?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,Ra=f,Ot===null&&(Mr=1,Vm(l,Qa(f,l.current)))}function Sk(){var l=ka.current;return l===null?!0:(It&4194048)===It?ti===null:(It&62914560)===It||(It&536870912)!==0?l===ti:!1}function Tk(){var l=U.H;return U.H=pd,l===null?pd:l}function Ak(){var l=U.A;return U.A=VJ,l}function ng(){Mr=4,Go||(It&4194048)!==It&&ka.current!==null||(Vc=!0),(Wo&134217727)===0&&(su&134217727)===0||cr===null||Ko(cr,It,Ma,!1)}function Px(l,f,p){var g=Kt;Kt|=2;var w=Tk(),S=Ak();(cr!==l||It!==f)&&(tg=null,Yc(l,f)),f=!1;var D=Mr;e:do try{if(tr!==0&&Ot!==null){var H=Ot,oe=Ra;switch(tr){case 8:Mx(),D=6;break e;case 3:case 2:case 9:case 6:ka.current===null&&(f=!0);var ve=tr;if(tr=0,Ra=null,Xc(l,H,oe,ve),p&&Vc){D=0;break e}break;default:ve=tr,tr=0,Ra=null,Xc(l,H,oe,ve)}}YJ(),D=Mr;break}catch(Te){_k(l,Te)}while(!0);return f&&l.shellSuspendCounter++,Ds=Ql=null,Kt=g,U.H=w,U.A=S,Ot===null&&(cr=null,It=0,_m()),D}function YJ(){for(;Ot!==null;)Ck(Ot)}function XJ(l,f){var p=Kt;Kt|=2;var g=Tk(),w=Ak();cr!==l||It!==f?(tg=null,eg=Gr()+500,Yc(l,f)):Vc=wr(l,f);e:do try{if(tr!==0&&Ot!==null){f=Ot;var S=Ra;t:switch(tr){case 1:tr=0,Ra=null,Xc(l,f,S,1);break;case 2:case 9:if(jC(S)){tr=0,Ra=null,Ok(f);break}f=function(){tr!==2&&tr!==9||cr!==l||(tr=7),Ji(l)},S.then(f,f);break e;case 3:tr=7;break e;case 4:tr=5;break e;case 7:jC(S)?(tr=0,Ra=null,Ok(f)):(tr=0,Ra=null,Xc(l,f,S,7));break;case 5:var D=null;switch(Ot.tag){case 26:D=Ot.memoizedState;case 5:case 27:var H=Ot;if(D?h9(D):H.stateNode.complete){tr=0,Ra=null;var oe=H.sibling;if(oe!==null)Ot=oe;else{var ve=H.return;ve!==null?(Ot=ve,ag(ve)):Ot=null}break t}}tr=0,Ra=null,Xc(l,f,S,5);break;case 6:tr=0,Ra=null,Xc(l,f,S,6);break;case 8:Mx(),Mr=6;break e;default:throw Error(n(462))}}KJ();break}catch(Te){_k(l,Te)}while(!0);return Ds=Ql=null,U.H=g,U.A=w,Kt=p,Ot!==null?0:(cr=null,It=0,_m(),Mr)}function KJ(){for(;Ot!==null&&!yr();)Ck(Ot)}function Ck(l){var f=QO(l.alternate,l,Vs);l.memoizedProps=l.pendingProps,f===null?ag(l):Ot=f}function Ok(l){var f=l,p=f.alternate;switch(f.tag){case 15:case 0:f=VO(p,f,f.pendingProps,f.type,void 0,It);break;case 11:f=VO(p,f,f.pendingProps,f.type.render,f.ref,It);break;case 5:Y2(f);default:JO(p,f),f=Ot=AC(f,Vs),f=QO(p,f,Vs)}l.memoizedProps=l.pendingProps,f===null?ag(l):Ot=f}function Xc(l,f,p,g){Ds=Ql=null,Y2(f),Bc=null,sd=0;var w=f.return;try{if(BJ(l,w,f,p,It)){Mr=1,Vm(l,Qa(p,l.current)),Ot=null;return}}catch(S){if(w!==null)throw Ot=w,S;Mr=1,Vm(l,Qa(p,l.current)),Ot=null;return}f.flags&32768?($t||g===1?l=!0:Vc||(It&536870912)!==0?l=!1:(Go=l=!0,(g===2||g===9||g===3||g===6)&&(g=ka.current,g!==null&&g.tag===13&&(g.flags|=16384))),kk(f,l)):ag(f)}function ag(l){var f=l;do{if((f.flags&32768)!==0){kk(f,Go);return}l=f.return;var p=FJ(f.alternate,f,Vs);if(p!==null){Ot=p;return}if(f=f.sibling,f!==null){Ot=f;return}Ot=f=l}while(f!==null);Mr===0&&(Mr=5)}function kk(l,f){do{var p=UJ(l.alternate,l);if(p!==null){p.flags&=32767,Ot=p;return}if(p=l.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!f&&(l=l.sibling,l!==null)){Ot=l;return}Ot=l=p}while(l!==null);Mr=6,Ot=null}function Nk(l,f,p,g,w,S,D,H,oe){l.cancelPendingCommit=null;do ig();while(an!==0);if((Kt&6)!==0)throw Error(n(327));if(f!==null){if(f===l.current)throw Error(n(177));if(S=f.lanes|f.childLanes,S|=E2,ia(l,p,S,D,H,oe),l===cr&&(Ot=cr=null,It=0),Wc=f,Xo=l,Gs=p,kx=S,Nx=w,bk=g,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,eee(nt,function(){return Dk(),null})):(l.callbackNode=null,l.callbackPriority=0),g=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||g){g=U.T,U.T=null,w=J.p,J.p=2,D=Kt,Kt|=4;try{HJ(l,f,p)}finally{Kt=D,J.p=w,U.T=g}}an=1,Rk(),Mk(),Pk()}}function Rk(){if(an===1){an=0;var l=Xo,f=Wc,p=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||p){p=U.T,U.T=null;var g=J.p;J.p=2;var w=Kt;Kt|=4;try{fk(f,l);var S=Vx,D=vC(l.containerInfo),H=S.focusedElem,oe=S.selectionRange;if(D!==H&&H&&H.ownerDocument&&gC(H.ownerDocument.documentElement,H)){if(oe!==null&&g2(H)){var ve=oe.start,Te=oe.end;if(Te===void 0&&(Te=ve),"selectionStart"in H)H.selectionStart=ve,H.selectionEnd=Math.min(Te,H.value.length);else{var ke=H.ownerDocument||document,be=ke&&ke.defaultView||window;if(be.getSelection){var Ee=be.getSelection(),We=H.textContent.length,at=Math.min(oe.start,We),or=oe.end===void 0?at:Math.min(oe.end,We);!Ee.extend&&at>or&&(D=or,or=at,at=D);var he=mC(H,at),ue=mC(H,or);if(he&&ue&&(Ee.rangeCount!==1||Ee.anchorNode!==he.node||Ee.anchorOffset!==he.offset||Ee.focusNode!==ue.node||Ee.focusOffset!==ue.offset)){var me=ke.createRange();me.setStart(he.node,he.offset),Ee.removeAllRanges(),at>or?(Ee.addRange(me),Ee.extend(ue.node,ue.offset)):(me.setEnd(ue.node,ue.offset),Ee.addRange(me))}}}}for(ke=[],Ee=H;Ee=Ee.parentNode;)Ee.nodeType===1&&ke.push({element:Ee,left:Ee.scrollLeft,top:Ee.scrollTop});for(typeof H.focus=="function"&&H.focus(),H=0;H<ke.length;H++){var Oe=ke[H];Oe.element.scrollLeft=Oe.left,Oe.element.scrollTop=Oe.top}}vg=!!qx,Vx=qx=null}finally{Kt=w,J.p=g,U.T=p}}l.current=f,an=2}}function Mk(){if(an===2){an=0;var l=Xo,f=Wc,p=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||p){p=U.T,U.T=null;var g=J.p;J.p=2;var w=Kt;Kt|=4;try{sk(l,f.alternate,f)}finally{Kt=w,J.p=g,U.T=p}}an=3}}function Pk(){if(an===4||an===3){an=0,aa();var l=Xo,f=Wc,p=Gs,g=bk;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?an=5:(an=0,Wc=Xo=null,Ik(l,l.pendingLanes));var w=l.pendingLanes;if(w===0&&(Yo=null),Ti(p),f=f.stateNode,Br&&typeof Br.onCommitFiberRoot=="function")try{Br.onCommitFiberRoot(Tn,f,void 0,(f.current.flags&128)===128)}catch{}if(g!==null){f=U.T,w=J.p,J.p=2,U.T=null;try{for(var S=l.onRecoverableError,D=0;D<g.length;D++){var H=g[D];S(H.value,{componentStack:H.stack})}}finally{U.T=f,J.p=w}}(Gs&3)!==0&&ig(),Ji(l),w=l.pendingLanes,(p&261930)!==0&&(w&42)!==0?l===Rx?_d++:(_d=0,Rx=l):_d=0,Sd(0)}}function Ik(l,f){(l.pooledCacheLanes&=f)===0&&(f=l.pooledCache,f!=null&&(l.pooledCache=null,ad(f)))}function ig(){return Rk(),Mk(),Pk(),Dk()}function Dk(){if(an!==5)return!1;var l=Xo,f=kx;kx=0;var p=Ti(Gs),g=U.T,w=J.p;try{J.p=32>p?32:p,U.T=null,p=Nx,Nx=null;var S=Xo,D=Gs;if(an=0,Wc=Xo=null,Gs=0,(Kt&6)!==0)throw Error(n(331));var H=Kt;if(Kt|=4,gk(S.current),hk(S,S.current,D,p),Kt=H,Sd(0,!1),Br&&typeof Br.onPostCommitFiberRoot=="function")try{Br.onPostCommitFiberRoot(Tn,S)}catch{}return!0}finally{J.p=w,U.T=g,Ik(l,f)}}function Lk(l,f,p){f=Qa(p,f),f=ux(l.stateNode,f,2),l=Uo(l,f,2),l!==null&&(Or(l,2),Ji(l))}function rr(l,f,p){if(l.tag===3)Lk(l,l,p);else for(;f!==null;){if(f.tag===3){Lk(f,l,p);break}else if(f.tag===1){var g=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(Yo===null||!Yo.has(g))){l=Qa(p,l),p=jO(2),g=Uo(f,p,2),g!==null&&(BO(p,g,f,l),Or(g,2),Ji(g));break}}f=f.return}}function Ix(l,f,p){var g=l.pingCache;if(g===null){g=l.pingCache=new GJ;var w=new Set;g.set(f,w)}else w=g.get(f),w===void 0&&(w=new Set,g.set(f,w));w.has(p)||(Ax=!0,w.add(p),l=QJ.bind(null,l,f,p),f.then(l,l))}function QJ(l,f,p){var g=l.pingCache;g!==null&&g.delete(f),l.pingedLanes|=l.suspendedLanes&p,l.warmLanes&=~p,cr===l&&(It&p)===p&&(Mr===4||Mr===3&&(It&62914560)===It&&300>Gr()-Jm?(Kt&2)===0&&Yc(l,0):Cx|=p,Gc===It&&(Gc=0)),Ji(l)}function jk(l,f){f===0&&(f=Ln()),l=Yl(l,f),l!==null&&(Or(l,f),Ji(l))}function ZJ(l){var f=l.memoizedState,p=0;f!==null&&(p=f.retryLane),jk(l,p)}function JJ(l,f){var p=0;switch(l.tag){case 31:case 13:var g=l.stateNode,w=l.memoizedState;w!==null&&(p=w.retryLane);break;case 19:g=l.stateNode;break;case 22:g=l.stateNode._retryCache;break;default:throw Error(n(314))}g!==null&&g.delete(f),jk(l,p)}function eee(l,f){return Aa(l,f)}var sg=null,Kc=null,Dx=!1,og=!1,Lx=!1,Qo=0;function Ji(l){l!==Kc&&l.next===null&&(Kc===null?sg=Kc=l:Kc=Kc.next=l),og=!0,Dx||(Dx=!0,ree())}function Sd(l,f){if(!Lx&&og){Lx=!0;do for(var p=!1,g=sg;g!==null;){if(l!==0){var w=g.pendingLanes;if(w===0)var S=0;else{var D=g.suspendedLanes,H=g.pingedLanes;S=(1<<31-Qt(42|l)+1)-1,S&=w&~(D&~H),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(p=!0,Fk(g,S))}else S=It,S=lt(g,g===cr?S:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(S&3)===0||wr(g,S)||(p=!0,Fk(g,S));g=g.next}while(p);Lx=!1}}function tee(){Bk()}function Bk(){og=Dx=!1;var l=0;Qo!==0&&dee()&&(l=Qo);for(var f=Gr(),p=null,g=sg;g!==null;){var w=g.next,S=zk(g,f);S===0?(g.next=null,p===null?sg=w:p.next=w,w===null&&(Kc=p)):(p=g,(l!==0||(S&3)!==0)&&(og=!0)),g=w}an!==0&&an!==5||Sd(l),Qo!==0&&(Qo=0)}function zk(l,f){for(var p=l.suspendedLanes,g=l.pingedLanes,w=l.expirationTimes,S=l.pendingLanes&-62914561;0<S;){var D=31-Qt(S),H=1<<D,oe=w[D];oe===-1?((H&p)===0||(H&g)!==0)&&(w[D]=mn(H,f)):oe<=f&&(l.expiredLanes|=H),S&=~H}if(f=cr,p=It,p=lt(l,l===f?p:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),g=l.callbackNode,p===0||l===f&&(tr===2||tr===9)||l.cancelPendingCommit!==null)return g!==null&&g!==null&&Wn(g),l.callbackNode=null,l.callbackPriority=0;if((p&3)===0||wr(l,p)){if(f=p&-p,f===l.callbackPriority)return f;switch(g!==null&&Wn(g),Ti(p)){case 2:case 8:p=$e;break;case 32:p=nt;break;case 268435456:p=Ct;break;default:p=nt}return g=$k.bind(null,l),p=Aa(p,g),l.callbackPriority=f,l.callbackNode=p,f}return g!==null&&g!==null&&Wn(g),l.callbackPriority=2,l.callbackNode=null,2}function $k(l,f){if(an!==0&&an!==5)return l.callbackNode=null,l.callbackPriority=0,null;var p=l.callbackNode;if(ig()&&l.callbackNode!==p)return null;var g=It;return g=lt(l,l===cr?g:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),g===0?null:(Ek(l,g,f),zk(l,Gr()),l.callbackNode!=null&&l.callbackNode===p?$k.bind(null,l):null)}function Fk(l,f){if(ig())return null;Ek(l,f,!0)}function ree(){pee(function(){(Kt&6)!==0?Aa(Ae,tee):Bk()})}function jx(){if(Qo===0){var l=Dc;l===0&&(l=pc,pc<<=1,(pc&261888)===0&&(pc=256)),Qo=l}return Qo}function Uk(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:mm(""+l)}function Hk(l,f){var p=f.ownerDocument.createElement("input");return p.name=f.name,p.value=f.value,l.id&&p.setAttribute("form",l.id),f.parentNode.insertBefore(p,f),l=new FormData(l),p.parentNode.removeChild(p),l}function nee(l,f,p,g,w){if(f==="submit"&&p&&p.stateNode===w){var S=Uk((w[la]||null).action),D=g.submitter;D&&(f=(f=D[la]||null)?Uk(f.formAction):D.getAttribute("formAction"),f!==null&&(S=f,D=null));var H=new bm("action","action",null,g,w);l.push({event:H,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(Qo!==0){var oe=D?Hk(w,D):new FormData(w);nx(p,{pending:!0,data:oe,method:w.method,action:S},null,oe)}}else typeof S=="function"&&(H.preventDefault(),oe=D?Hk(w,D):new FormData(w),nx(p,{pending:!0,data:oe,method:w.method,action:S},S,oe))},currentTarget:w}]})}}for(var Bx=0;Bx<x2.length;Bx++){var zx=x2[Bx],aee=zx.toLowerCase(),iee=zx[0].toUpperCase()+zx.slice(1);Ai(aee,"on"+iee)}Ai(xC,"onAnimationEnd"),Ai(EC,"onAnimationIteration"),Ai(wC,"onAnimationStart"),Ai("dblclick","onDoubleClick"),Ai("focusin","onFocus"),Ai("focusout","onBlur"),Ai(EJ,"onTransitionRun"),Ai(wJ,"onTransitionStart"),Ai(_J,"onTransitionCancel"),Ai(_C,"onTransitionEnd"),Ec("onMouseEnter",["mouseout","mouseover"]),Ec("onMouseLeave",["mouseout","mouseover"]),Ec("onPointerEnter",["pointerout","pointerover"]),Ec("onPointerLeave",["pointerout","pointerover"]),ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Td="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(" "),see=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Td));function qk(l,f){f=(f&4)!==0;for(var p=0;p<l.length;p++){var g=l[p],w=g.event;g=g.listeners;e:{var S=void 0;if(f)for(var D=g.length-1;0<=D;D--){var H=g[D],oe=H.instance,ve=H.currentTarget;if(H=H.listener,oe!==S&&w.isPropagationStopped())break e;S=H,w.currentTarget=ve;try{S(w)}catch(Te){wm(Te)}w.currentTarget=null,S=oe}else for(D=0;D<g.length;D++){if(H=g[D],oe=H.instance,ve=H.currentTarget,H=H.listener,oe!==S&&w.isPropagationStopped())break e;S=H,w.currentTarget=ve;try{S(w)}catch(Te){wm(Te)}w.currentTarget=null,S=oe}}}}function kt(l,f){var p=f[Zb];p===void 0&&(p=f[Zb]=new Set);var g=l+"__bubble";p.has(g)||(Vk(f,l,2,!1),p.add(g))}function $x(l,f,p){var g=0;f&&(g|=4),Vk(p,l,g,f)}var lg="_reactListening"+Math.random().toString(36).slice(2);function Fx(l){if(!l[lg]){l[lg]=!0,B7.forEach(function(p){p!=="selectionchange"&&(see.has(p)||$x(p,!1,l),$x(p,!0,l))});var f=l.nodeType===9?l:l.ownerDocument;f===null||f[lg]||(f[lg]=!0,$x("selectionchange",!1,f))}}function Vk(l,f,p,g){switch(x9(f)){case 2:var w=Iee;break;case 8:w=Dee;break;default:w=r4}p=w.bind(null,f,p,l),w=void 0,!o2||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(w=!0),g?w!==void 0?l.addEventListener(f,p,{capture:!0,passive:w}):l.addEventListener(f,p,!0):w!==void 0?l.addEventListener(f,p,{passive:w}):l.addEventListener(f,p,!1)}function Ux(l,f,p,g,w){var S=g;if((f&1)===0&&(f&2)===0&&g!==null)e:for(;;){if(g===null)return;var D=g.tag;if(D===3||D===4){var H=g.stateNode.containerInfo;if(H===w)break;if(D===4)for(D=g.return;D!==null;){var oe=D.tag;if((oe===3||oe===4)&&D.stateNode.containerInfo===w)return;D=D.return}for(;H!==null;){if(D=yc(H),D===null)return;if(oe=D.tag,oe===5||oe===6||oe===26||oe===27){g=S=D;continue e}H=H.parentNode}}g=g.return}K7(function(){var ve=S,Te=i2(p),ke=[];e:{var be=SC.get(l);if(be!==void 0){var Ee=bm,We=l;switch(l){case"keypress":if(vm(p)===0)break e;case"keydown":case"keyup":Ee=JZ;break;case"focusin":We="focus",Ee=f2;break;case"focusout":We="blur",Ee=f2;break;case"beforeblur":case"afterblur":Ee=f2;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ee=J7;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ee=FZ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ee=rJ;break;case xC:case EC:case wC:Ee=qZ;break;case _C:Ee=aJ;break;case"scroll":case"scrollend":Ee=zZ;break;case"wheel":Ee=sJ;break;case"copy":case"cut":case"paste":Ee=GZ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ee=tC;break;case"toggle":case"beforetoggle":Ee=lJ}var at=(f&4)!==0,or=!at&&(l==="scroll"||l==="scrollend"),he=at?be!==null?be+"Capture":null:be;at=[];for(var ue=ve,me;ue!==null;){var Oe=ue;if(me=Oe.stateNode,Oe=Oe.tag,Oe!==5&&Oe!==26&&Oe!==27||me===null||he===null||(Oe=W0(ue,he),Oe!=null&&at.push(Ad(ue,Oe,me))),or)break;ue=ue.return}0<at.length&&(be=new Ee(be,We,null,p,Te),ke.push({event:be,listeners:at}))}}if((f&7)===0){e:{if(be=l==="mouseover"||l==="pointerover",Ee=l==="mouseout"||l==="pointerout",be&&p!==a2&&(We=p.relatedTarget||p.fromElement)&&(yc(We)||We[vc]))break e;if((Ee||be)&&(be=Te.window===Te?Te:(be=Te.ownerDocument)?be.defaultView||be.parentWindow:window,Ee?(We=p.relatedTarget||p.toElement,Ee=ve,We=We?yc(We):null,We!==null&&(or=i(We),at=We.tag,We!==or||at!==5&&at!==27&&at!==6)&&(We=null)):(Ee=null,We=ve),Ee!==We)){if(at=J7,Oe="onMouseLeave",he="onMouseEnter",ue="mouse",(l==="pointerout"||l==="pointerover")&&(at=tC,Oe="onPointerLeave",he="onPointerEnter",ue="pointer"),or=Ee==null?be:G0(Ee),me=We==null?be:G0(We),be=new at(Oe,ue+"leave",Ee,p,Te),be.target=or,be.relatedTarget=me,Oe=null,yc(Te)===ve&&(at=new at(he,ue+"enter",We,p,Te),at.target=me,at.relatedTarget=or,Oe=at),or=Oe,Ee&&We)t:{for(at=oee,he=Ee,ue=We,me=0,Oe=he;Oe;Oe=at(Oe))me++;Oe=0;for(var et=ue;et;et=at(et))Oe++;for(;0<me-Oe;)he=at(he),me--;for(;0<Oe-me;)ue=at(ue),Oe--;for(;me--;){if(he===ue||ue!==null&&he===ue.alternate){at=he;break t}he=at(he),ue=at(ue)}at=null}else at=null;Ee!==null&&Gk(ke,be,Ee,at,!1),We!==null&&or!==null&&Gk(ke,or,We,at,!0)}}e:{if(be=ve?G0(ve):window,Ee=be.nodeName&&be.nodeName.toLowerCase(),Ee==="select"||Ee==="input"&&be.type==="file")var qt=uC;else if(oC(be))if(cC)qt=yJ;else{qt=gJ;var Ke=mJ}else Ee=be.nodeName,!Ee||Ee.toLowerCase()!=="input"||be.type!=="checkbox"&&be.type!=="radio"?ve&&n2(ve.elementType)&&(qt=uC):qt=vJ;if(qt&&(qt=qt(l,ve))){lC(ke,qt,p,Te);break e}Ke&&Ke(l,be,ve),l==="focusout"&&ve&&be.type==="number"&&ve.memoizedProps.value!=null&&r2(be,"number",be.value)}switch(Ke=ve?G0(ve):window,l){case"focusin":(oC(Ke)||Ke.contentEditable==="true")&&(Cc=Ke,v2=ve,td=null);break;case"focusout":td=v2=Cc=null;break;case"mousedown":y2=!0;break;case"contextmenu":case"mouseup":case"dragend":y2=!1,yC(ke,p,Te);break;case"selectionchange":if(xJ)break;case"keydown":case"keyup":yC(ke,p,Te)}var yt;
vendor: 4,474 bytes, lines 49-50
49if(h2)e:{switch(l){case"compositionstart":var Dt="onCompositionStart";break e;case"compositionend":Dt="onCompositionEnd";break e;case"compositionupdate":Dt="onCompositionUpdate";break e}Dt=void 0}else Ac?iC(l,p)&&(Dt="onCompositionEnd"):l==="keydown"&&p.keyCode===229&&(Dt="onCompositionStart");Dt&&(rC&&p.locale!=="ko"&&(Ac||Dt!=="onCompositionStart"?Dt==="onCompositionEnd"&&Ac&&(yt=Q7()):(Do=Te,l2="value"in Do?Do.value:Do.textContent,Ac=!0)),Ke=ug(ve,Dt),0<Ke.length&&(Dt=new eC(Dt,l,null,p,Te),ke.push({event:Dt,listeners:Ke}),yt?Dt.data=yt:(yt=sC(p),yt!==null&&(Dt.data=yt)))),(yt=cJ?fJ(l,p):dJ(l,p))&&(Dt=ug(ve,"onBeforeInput"),0<Dt.length&&(Ke=new eC("onBeforeInput","beforeinput",null,p,Te),ke.push({event:Ke,listeners:Dt}),Ke.data=yt)),nee(ke,l,ve,p,Te)}qk(ke,f)})}function Ad(l,f,p){return{instance:l,listener:f,currentTarget:p}}function ug(l,f){for(var p=f+"Capture",g=[];l!==null;){var w=l,S=w.stateNode;if(w=w.tag,w!==5&&w!==26&&w!==27||S===null||(w=W0(l,p),w!=null&&g.unshift(Ad(l,w,S)),w=W0(l,f),w!=null&&g.push(Ad(l,w,S))),l.tag===3)return g;l=l.return}return[]}function oee(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Gk(l,f,p,g,w){for(var S=f._reactName,D=[];p!==null&&p!==g;){var H=p,oe=H.alternate,ve=H.stateNode;if(H=H.tag,oe!==null&&oe===g)break;H!==5&&H!==26&&H!==27||ve===null||(oe=ve,w?(ve=W0(p,S),ve!=null&&D.unshift(Ad(p,ve,oe))):w||(ve=W0(p,S),ve!=null&&D.push(Ad(p,ve,oe)))),p=p.return}D.length!==0&&l.push({event:f,listeners:D})}var lee=/\r\n?/g,uee=/\u0000|\uFFFD/g;function Wk(l){return(typeof l=="string"?l:""+l).replace(lee,`
50`).replace(uee,"")}function Yk(l,f){return f=Wk(f),Wk(l)===f}function sr(l,f,p,g,w,S){switch(p){case"children":typeof g=="string"?f==="body"||f==="textarea"&&g===""||_c(l,g):(typeof g=="number"||typeof g=="bigint")&&f!=="body"&&_c(l,""+g);break;case"className":hm(l,"class",g);break;case"tabIndex":hm(l,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":hm(l,p,g);break;case"style":Y7(l,g,S);break;case"data":if(f!=="object"){hm(l,"data",g);break}case"src":case"href":if(g===""&&(f!=="a"||p!=="href")){l.removeAttribute(p);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){l.removeAttribute(p);break}g=mm(""+g),l.setAttribute(p,g);break;case"action":case"formAction":if(typeof g=="function"){l.setAttribute(p,"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 S=="function"&&(p==="formAction"?(f!=="input"&&sr(l,f,"name",w.name,w,null),sr(l,f,"formEncType",w.formEncType,w,null),sr(l,f,"formMethod",w.formMethod,w,null),sr(l,f,"formTarget",w.formTarget,w,null)):(sr(l,f,"encType",w.encType,w,null),sr(l,f,"method",w.method,w,null),sr(l,f,"target",w.target,w,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){l.removeAttribute(p);break}g=mm(""+g),l.setAttribute(p,g);break;case"onClick":g!=null&&(l.onclick=Rs);break;case"onScroll":g!=null&&kt("scroll",l);break;case"onScrollEnd":g!=null&&kt("scrollend",l);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(n(61));if(p=g.__html,p!=null){if(w.children!=null)throw Error(n(60));l.innerHTML=p}}break;case"multiple":l.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":l.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){l.removeAttribute("xlink:href");break}p=mm(""+g),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?l.setAttribute(p,""+g):l.removeAttribute(p);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
50ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":g&&typeof g!="function"&&typeof g!="symbol"?l.setAttribute(p,""):l.removeAttribute(p);break;case"capture":case"download":g===!0?l.setAttribute(p,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?l.setAttribute(p,g):l.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?l.setAttribute(p,g):l.removeAttribute(p);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?l.removeAttribute(p):l.setAttribute(p,g);break;case"popover":kt("beforetoggle",l),kt("toggle",l),dm(l,"popover",g);break;case"xlinkActuate":Ns(l,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":Ns(l,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":Ns(l,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":Ns(l,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":Ns(l,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":Ns(l,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":Ns(l,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":Ns(l,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":Ns(l,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":dm(l,"is",g);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=jZ.get(p)||p,dm(l,p,g))}}function Hx(l,f,p,g,w,S){switch(p){case"style":Y7(l,g,S);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(n(61));if(p=g.__html,p!=null){if(w.children!=null)throw Error(n(60));l.innerHTML=p}}break;case"children":typeof g=="string"?_c(l,g):(typeof g=="number"||typeof g=="bigint")&&_c(l,""+g);break;case"onScroll":g!=null&&kt("scroll",l);break;case"onScrollEnd":g!=null&&kt("scrollend",l);break;case"onClick":g!=null&&(l.onclick=Rs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!z7.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(w=p.endsWith("Capture"),f=p.slice(2,w?p.length-7:void 0),S=l[la]||null,S=S!=null?S[p]:null,typeof S=="function"&&l.removeEventListener(f,S,w),typeof g=="function")){typeof S!="function"&&S!==null&&(p in l?l[p]=null:l.hasAttribute(p)&&l.removeAttribute(p)),l.addEventListener(f,g,w);break e}p in l?l[p]=g:g===!0?l.setAttribute(p,""):dm(l,p,g)}}}function Rn(l,f,p){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":kt("error",l),kt("load",l);var g=!1,w=!1,S;for(S in p)if(p.hasOwnProperty(S)){var D=p[S];if(D!=null)switch(S){case"src":g=!0;break;case"srcSet":w=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,f));default:sr(l,f,S,D,p,null)}}w&&sr(l,f,"srcSet",p.srcSet,p,null),g&&sr(l,f,"src",p.src,p,null);return;case"input":kt("invalid",l);var H=S=D=w=null,oe=null,ve=null;for(g in p)if(p.hasOwnProperty(g)){var Te=p[g];if(Te!=null)switch(g){case"name":w=Te;break;case"type":D=Te;break;case"checked":oe=Te;break;case"defaultChecked":ve=Te;break;case"value":S=Te;break;case"defaultValue":H=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(n(137,f));break;default:sr(l,f,g,Te,p,null)}}q7(l,S,H,oe,ve,D,w,!1);return;case"select":kt("invalid",l),g=D=S=null;for(w in p)if(p.hasOwnProperty(w)&&(H=p[w],H!=null))switch(w){case"value":S=H;break;case"defaultValue":D=H;break;case"multiple":g=H;default:sr(l,f,w,H,p,null)}f=S,p=D,l.multiple=!!g,f!=null?wc(l,!!g,f,!1):p!=null&&wc(l,!!g,p,!0);return;case"textarea":kt("invalid",l),S=w=g=null;for(D in p)if(p.hasOwnProperty(D)&&(H=p[D],H!=null))switch(D){case"value":g=H;break;case"defaultValue":w=H;break;case"children":S=H;break;case"dangerouslySetInnerHTML":if(H!=null)throw Error(n(91));break;default:sr(l,f,D,H,p,null)}G7(l,g,w,S);return;case"option":for(oe in p)if(p.hasOwnProperty(oe)&&(g=p[oe],g!=null))switch(oe){case"selected":l.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:sr(l,f,oe,g,p,null)}return;case"dialog":kt("beforetoggle",l),kt("toggle",l),kt("cancel",l),kt("close",l);break;case"iframe":case"object":kt("load",l);break;case"video":case"audio":for(g=0;g<Td.length;g++)kt(Td[g],l);break;case"image":kt("error",l),kt("load",l);break;case"details":kt("toggle",l);break;case"embed":case"source":case"link":kt("error",l),kt("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ve in p)if(p.hasOwnProperty(ve)&&(g=p[ve],g!=null))switch(ve){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,f));default:sr(l,f,ve,g,p,null)}return;default:if(n2(f)){for(Te in p)p.hasOwnProperty(Te)&&(g=p[Te],g!==void 0&&Hx(l,f,Te,g,p,void 0));return}}for(H in p)p.hasOwnProperty(H)&&(g=p[H],g!=null&&sr(l,f,H,g,p,null))}function cee(l,f,p,g){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var w=null,S=null,D=null,H=null,oe=null,ve=null,Te=null;for(Ee in p){var ke=p[Ee];if(p.hasOwnProperty(Ee)&&ke!=null)switch(Ee){case"checked":break;case"value":break;case"defaultValue":oe=ke;default:g.hasOwnProperty(Ee)||sr(l,f,Ee,null,g,ke)}}for(var be in g){var Ee=g[be];
vendor: 4,748 bytes, line 50
50if(ke=p[be],g.hasOwnProperty(be)&&(Ee!=null||ke!=null))switch(be){case"type":S=Ee;break;case"name":w=Ee;break;case"checked":ve=Ee;break;case"defaultChecked":Te=Ee;break;case"value":D=Ee;break;case"defaultValue":H=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(n(137,f));break;default:Ee!==ke&&sr(l,f,be,Ee,g,ke)}}t2(l,D,H,oe,ve,Te,S,w);return;case"select":Ee=D=H=be=null;for(S in p)if(oe=p[S],p.hasOwnProperty(S)&&oe!=null)switch(S){case"value":break;case"multiple":Ee=oe;default:g.hasOwnProperty(S)||sr(l,f,S,null,g,oe)}for(w in g)if(S=g[w],oe=p[w],g.hasOwnProperty(w)&&(S!=null||oe!=null))switch(w){case"value":be=S;break;case"defaultValue":H=S;break;case"multiple":D=S;default:S!==oe&&sr(l,f,w,S,g,oe)}f=H,p=D,g=Ee,be!=null?wc(l,!!p,be,!1):!!g!=!!p&&(f!=null?wc(l,!!p,f,!0):wc(l,!!p,p?[]:"",!1));return;case"textarea":Ee=be=null;for(H in p)if(w=p[H],p.hasOwnProperty(H)&&w!=null&&!g.hasOwnProperty(H))switch(H){case"value":break;case"children":break;default:sr(l,f,H,null,g,w)}for(D in g)if(w=g[D],S=p[D],g.hasOwnProperty(D)&&(w!=null||S!=null))switch(D){case"value":be=w;break;case"defaultValue":Ee=w;break;case"children":break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(n(91));break;default:w!==S&&sr(l,f,D,w,g,S)}V7(l,be,Ee);return;case"option":for(var We in p)if(be=p[We],p.hasOwnProperty(We)&&be!=null&&!g.hasOwnProperty(We))switch(We){case"selected":l.selected=!1;break;default:sr(l,f,We,null,g,be)}for(oe in g)if(be=g[oe],Ee=p[oe],g.hasOwnProperty(oe)&&be!==Ee&&(be!=null||Ee!=null))switch(oe){case"selected":l.selected=be&&typeof be!="function"&&typeof be!="symbol";break;default:sr(l,f,oe,be,g,Ee)}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 at in p)be=p[at],p.hasOwnProperty(at)&&be!=null&&!g.hasOwnProperty(at)&&sr(l,f,at,null,g,be);for(ve in g)if(be=g[ve],Ee=p[ve],g.hasOwnProperty(ve)&&be!==Ee&&(be!=null||Ee!=null))switch(ve){case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(n(137,f));break;default:sr(l,f,ve,be,g,Ee)}return;default:if(n2(f)){for(var or in p)be=p[or],p.hasOwnProperty(or)&&be!==void 0&&!g.hasOwnProperty(or)&&Hx(l,f,or,void 0,g,be);for(Te in g)be=g[Te],Ee=p[Te],!g.hasOwnProperty(Te)||be===Ee||be===void 0&&Ee===void 0||Hx(l,f,Te,be,g,Ee);return}}for(var he in p)be=p[he],p.hasOwnProperty(he)&&be!=null&&!g.hasOwnProperty(he)&&sr(l,f,he,null,g,be);for(ke in g)be=g[ke],Ee=p[ke],!g.hasOwnProperty(ke)||be===Ee||be==null&&Ee==null||sr(l,f,ke,be,g,Ee)}function Xk(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fee(){if(typeof performance.getEntriesByType=="function"){for(var l=0,f=0,p=performance.getEntriesByType("resource"),g=0;g<p.length;g++){var w=p[g],S=w.transferSize,D=w.initiatorType,H=w.duration;if(S&&H&&Xk(D)){for(D=0,H=w.responseEnd,g+=1;g<p.length;g++){var oe=p[g],ve=oe.startTime;if(ve>H)break;var Te=oe.transferSize,ke=oe.initiatorType;Te&&Xk(ke)&&(oe=oe.responseEnd,D+=Te*(oe<H?1:(H-ve)/(oe-ve)))}if(--g,f+=8*(S+D)/(w.duration/1e3),l++,10<l)break}}if(0<l)return f/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var qx=null,Vx=null;function cg(l){return l.nodeType===9?l:l.ownerDocument}function Kk(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qk(l,f){if(l===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&f==="foreignObject"?0:l}function Gx(l,f){return l==="textarea"||l==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var Wx=null;function dee(){var l=window.event;return l&&l.type==="popstate"?l===Wx?!1:(Wx=l,!0):(Wx=null,!1)}var Zk=typeof setTimeout=="function"?setTimeout:void 0,hee=typeof clearTimeout=="function"?clearTimeout:void 0,Jk=typeof Promise=="function"?Promise:void 0,pee=typeof queueMicrotask=="function"?queueMicrotask:typeof Jk<"u"?function(l){return Jk.resolve(null).then(l).catch(mee)}:Zk;function mee(l){setTimeout(function(){throw l})}function Zo(l){return l==="head"}function e9(l,f){var p=f,g=0;do{var w=p.nextSibling;if(l.removeChild(p),w&&w.nodeType===8)if(p=w.data,p==="/$"||p==="/&"){if(g===0){l.removeChild(w),ef(f);return}g--}else if(p==="$"||p==="$?"||p==="$~"||p==="$!"||p==="&")g++;else if(p==="html")Cd(l.ownerDocument.documentElement);else if(p==="head"){p=l.ownerDocument.head,Cd(p);for(var S=p.firstChild;S;){var D=S.nextSibling,H=S.nodeName;
vendor: 12,620 bytes, line 50
50S[V0]||H==="SCRIPT"||H==="STYLE"||H==="LINK"&&S.rel.toLowerCase()==="stylesheet"||p.removeChild(S),S=D}}else p==="body"&&Cd(l.ownerDocument.body);p=w}while(p);ef(f)}function t9(l,f){var p=l;l=0;do{var g=p.nextSibling;if(p.nodeType===1?f?(p._stashedDisplay=p.style.display,p.style.display="none"):(p.style.display=p._stashedDisplay||"",p.getAttribute("style")===""&&p.removeAttribute("style")):p.nodeType===3&&(f?(p._stashedText=p.nodeValue,p.nodeValue=""):p.nodeValue=p._stashedText||""),g&&g.nodeType===8)if(p=g.data,p==="/$"){if(l===0)break;l--}else p!=="$"&&p!=="$?"&&p!=="$~"&&p!=="$!"||l++;p=g}while(p)}function Yx(l){var f=l.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var p=f;switch(f=f.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":Yx(p),Jb(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}l.removeChild(p)}}function gee(l,f,p,g){for(;l.nodeType===1;){var w=p;if(l.nodeName.toLowerCase()!==f.toLowerCase()){if(!g&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(g){if(!l[V0])switch(f){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(S=l.getAttribute("rel"),S==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(S!==w.rel||l.getAttribute("href")!==(w.href==null||w.href===""?null:w.href)||l.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin)||l.getAttribute("title")!==(w.title==null?null:w.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(S=l.getAttribute("src"),(S!==(w.src==null?null:w.src)||l.getAttribute("type")!==(w.type==null?null:w.type)||l.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin))&&S&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(f==="input"&&l.type==="hidden"){var S=w.name==null?null:""+w.name;if(w.type==="hidden"&&l.getAttribute("name")===S)return l}else return l;if(l=ri(l.nextSibling),l===null)break}return null}function vee(l,f,p){if(f==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!p||(l=ri(l.nextSibling),l===null))return null;return l}function r9(l,f){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!f||(l=ri(l.nextSibling),l===null))return null;return l}function Xx(l){return l.data==="$?"||l.data==="$~"}function Kx(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function yee(l,f){var p=l.ownerDocument;if(l.data==="$~")l._reactRetry=f;else if(l.data!=="$?"||p.readyState!=="loading")f();else{var g=function(){f(),p.removeEventListener("DOMContentLoaded",g)};p.addEventListener("DOMContentLoaded",g),l._reactRetry=g}}function ri(l){for(;l!=null;l=l.nextSibling){var f=l.nodeType;if(f===1||f===3)break;if(f===8){if(f=l.data,f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"||f==="F!"||f==="F")break;if(f==="/$"||f==="/&")return null}}return l}var Qx=null;function n9(l){l=l.nextSibling;for(var f=0;l;){if(l.nodeType===8){var p=l.data;if(p==="/$"||p==="/&"){if(f===0)return ri(l.nextSibling);f--}else p!=="$"&&p!=="$!"&&p!=="$?"&&p!=="$~"&&p!=="&"||f++}l=l.nextSibling}return null}function a9(l){l=l.previousSibling;for(var f=0;l;){if(l.nodeType===8){var p=l.data;if(p==="$"||p==="$!"||p==="$?"||p==="$~"||p==="&"){if(f===0)return l;f--}else p!=="/$"&&p!=="/&"||f++}l=l.previousSibling}return null}function i9(l,f,p){switch(f=cg(p),l){case"html":if(l=f.documentElement,!l)throw Error(n(452));return l;case"head":if(l=f.head,!l)throw Error(n(453));return l;case"body":if(l=f.body,!l)throw Error(n(454));return l;default:throw Error(n(451))}}function Cd(l){for(var f=l.attributes;f.length;)l.removeAttributeNode(f[0]);Jb(l)}var ni=new Map,s9=new Set;function fg(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var Ws=J.d;J.d={f:bee,r:xee,D:Eee,C:wee,L:_ee,m:See,X:Aee,S:Tee,M:Cee};function bee(){var l=Ws.f(),f=rg();return l||f}function xee(l){var f=bc(l);f!==null&&f.tag===5&&f.type==="form"?_O(f):Ws.r(l)}var Qc=typeof document>"u"?null:document;function o9(l,f,p){var g=Qc;if(g&&typeof f=="string"&&f){var w=Xa(f);w='link[rel="'+l+'"][href="'+w+'"]',typeof p=="string"&&(w+='[crossorigin="'+p+'"]'),s9.has(w)||(s9.add(w),l={rel:l,crossOrigin:p,href:f},g.querySelector(w)===null&&(f=g.createElement("link"),Rn(f,"link",l),gn(f),g.head.appendChild(f)))}}function Eee(l){Ws.D(l),o9("dns-prefetch",l,null)}function wee(l,f){Ws.C(l,f),o9("preconnect",l,f)}function _ee(l,f,p){Ws.L(l,f,p);var g=Qc;if(g&&l&&f){var w='link[rel="preload"][as="'+Xa(f)+'"]';f==="image"&&p&&p.imageSrcSet?(w+='[imagesrcset="'+Xa(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(w+='[imagesizes="'+Xa(p.imageSizes)+'"]')):w+='[href="'+Xa(l)+'"]';var S=w;switch(f){case"style":S=Zc(l);break;case"script":S=Jc(l)}ni.has(S)||(l=d({rel:"preload",href:f==="image"&&p&&p.imageSrcSet?void 0:l,as:f},p),ni.set(S,l),g.querySelector(w)!==null||f==="style"&&g.querySelector(Od(S))||f==="script"&&g.querySelector(kd(S))||(f=g.createElement("link"),Rn(f,"link",l),gn(f),g.head.appendChild(f)))}}function See(l,f){Ws.m(l,f);var p=Qc;if(p&&l){var g=f&&typeof f.as=="string"?f.as:"script",w='link[rel="modulepreload"][as="'+Xa(g)+'"][href="'+Xa(l)+'"]',S=w;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=Jc(l)}if(!ni.has(S)&&(l=d({rel:"modulepreload",href:l},f),ni.set(S,l),p.querySelector(w)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(kd(S)))return}g=p.createElement("link"),Rn(g,"link",l),gn(g),p.head.appendChild(g)}}}function Tee(l,f,p){Ws.S(l,f,p);var g=Qc;if(g&&l){var w=xc(g).hoistableStyles,S=Zc(l);f=f||"default";var D=w.get(S);if(!D){var H={loading:0,preload:null};if(D=g.querySelector(Od(S)))H.loading=5;else{l=d({rel:"stylesheet",href:l,"data-precedence":f},p),(p=ni.get(S))&&Zx(l,p);var oe=D=g.createElement("link");gn(oe),Rn(oe,"link",l),oe._p=new Promise(function(ve,Te){oe.onload=ve,oe.onerror=Te}),oe.addEventListener("load",function(){H.loading|=1}),oe.addEventListener("error",function(){H.loading|=2}),H.loading|=4,dg(D,f,g)}D={type:"stylesheet",instance:D,count:1,state:H},w.set(S,D)}}}function Aee(l,f){Ws.X(l,f);var p=Qc;if(p&&l){var g=xc(p).hoistableScripts,w=Jc(l),S=g.get(w);S||(S=p.querySelector(kd(w)),S||(l=d({src:l,async:!0},f),(f=ni.get(w))&&Jx(l,f),S=p.createElement("script"),gn(S),Rn(S,"link",l),p.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},g.set(w,S))}}function Cee(l,f){Ws.M(l,f);var p=Qc;if(p&&l){var g=xc(p).hoistableScripts,w=Jc(l),S=g.get(w);S||(S=p.querySelector(kd(w)),S||(l=d({src:l,async:!0,type:"module"},f),(f=ni.get(w))&&Jx(l,f),S=p.createElement("script"),gn(S),Rn(S,"link",l),p.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},g.set(w,S))}}function l9(l,f,p,g){var w=(w=Se.current)?fg(w):null;if(!w)throw Error(n(446));switch(l){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(f=Zc(p.href),p=xc(w).hoistableStyles,g=p.get(f),g||(g={type:"style",instance:null,count:0,state:null},p.set(f,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){l=Zc(p.href);var S=xc(w).hoistableStyles,D=S.get(l);if(D||(w=w.ownerDocument||w,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(l,D),(S=w.querySelector(Od(l)))&&!S._p&&(D.instance=S,D.state.loading=5),ni.has(l)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},ni.set(l,p),S||Oee(w,l,p,D.state))),f&&g===null)throw Error(n(528,""));return D}if(f&&g!==null)throw Error(n(529,""));return null;case"script":return f=p.async,p=p.src,typeof p=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=Jc(p),p=xc(w).hoistableScripts,g=p.get(f),g||(g={type:"script",instance:null,count:0,state:null},p.set(f,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,l))}}function Zc(l){return'href="'+Xa(l)+'"'}function Od(l){return'link[rel="stylesheet"]['+l+"]"}function u9(l){return d({},l,{"data-precedence":l.precedence,precedence:null})}function Oee(l,f,p,g){l.querySelector('link[rel="preload"][as="style"]['+f+"]")?g.loading=1:(f=l.createElement("link"),g.preload=f,f.addEventListener("load",function(){return g.loading|=1}),f.addEventListener("error",function(){return g.loading|=2}),Rn(f,"link",p),gn(f),l.head.appendChild(f))}function Jc(l){return'[src="'+Xa(l)+'"]'}function kd(l){return"script[async]"+l}function c9(l,f,p){if(f.count++,f.instance===null)switch(f.type){case"style":var g=l.querySelector('style[data-href~="'+Xa(p.href)+'"]');if(g)return f.instance=g,gn(g),g;var w=d({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return g=(l.ownerDocument||l).createElement("style"),gn(g),Rn(g,"style",w),dg(g,p.precedence,l),f.instance=g;case"stylesheet":w=Zc(p.href);var S=l.querySelector(Od(w));if(S)return f.state.loading|=4,f.instance=S,gn(S),S;g=u9(p),(w=ni.get(w))&&Zx(g,w),S=(l.ownerDocument||l).createElement("link"),gn(S);var D=S;return D._p=new Promise(function(H,oe){D.onload=H,D.onerror=oe}),Rn(S,"link",g),f.state.loading|=4,dg(S,p.precedence,l),f.instance=S;case"script":return S=Jc(p.src),(w=l.querySelector(kd(S)))?(f.instance=w,gn(w),w):(g=p,(w=ni.get(S))&&(g=d({},p),Jx(g,w)),l=l.ownerDocument||l,w=l.createElement("script"),gn(w),Rn(w,"link",g),l.head.appendChild(w),f.instance=w);case"void":return null;default:throw Error(n(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(g=f.instance,f.state.loading|=4,dg(g,p.precedence,l));return f.instance}function dg(l,f,p){for(var g=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),w=g.length?g[g.length-1]:null,S=w,D=0;D<g.length;D++){var H=g[D];if(H.dataset.precedence===f)S=H;else if(S!==w)break}S?S.parentNode.insertBefore(l,S.nextSibling):(f=p.nodeType===9?p.head:p,f.insertBefore(l,f.firstChild))}function Zx(l,f){l.crossOrigin==null&&(l.crossOrigin=f.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=f.referrerPolicy),l.title==null&&(l.title=f.title)}function Jx(l,f){l.crossOrigin==null&&(l.crossOrigin=f.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=f.referrerPolicy),l.integrity==null&&(l.integrity=f.integrity)}var hg=null;function f9(l,f,p){if(hg===null){var g=new Map,w=hg=new Map;w.set(p,g)}else w=hg,g=w.get(p),g||(g=new Map,w.set(p,g));if(g.has(l))return g;for(g.set(l,null),p=p.getElementsByTagName(l),w=0;w<p.length;w++){var S=p[w];if(!(S[V0]||S[Cn]||l==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var D=S.getAttribute(f)||"";D=l+D;var H=g.get(D);H?H.push(S):g.set(D,[S])}}return g}function d9(l,f,p){l=l.ownerDocument||l,l.head.insertBefore(p,f==="title"?l.querySelector("head > title"):null)}function kee(l,f,p){if(p===1||f.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;switch(f.rel){case"stylesheet":return l=f.disabled,typeof f.precedence=="string"&&l==null;default:return!0}case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function h9(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function Nee(l,f,p,g){if(p.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(p.state.loading&4)===0){if(p.instance===null){var w=Zc(g.href),S=f.querySelector(Od(w));if(S){f=S._p,f!==null&&typeof f=="object"&&typeof f.then=="function"&&(l.count++,l=pg.bind(l),f.then(l,l)),p.state.loading|=4,p.instance=S,gn(S);return}S=f.ownerDocument||f,g=u9(g),(w=ni.get(w))&&Zx(g,w),S=S.createElement("link"),gn(S);var D=S;D._p=new Promise(function(H,oe){D.onload=H,D.onerror=oe}),Rn(S,"link",g),p.instance=S}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(p,f),(f=p.state.preload)&&(p.state.loading&3)===0&&(l.count++,p=pg.bind(l),f.addEventListener("load",p),f.addEventListener("error",p))}}var e4=0;function Ree(l,f){return l.stylesheets&&l.count===0&&gg(l,l.stylesheets),0<l.count||0<l.imgCount?function(p){var g=setTimeout(function(){if(l.stylesheets&&gg(l,l.stylesheets),l.unsu
vendor: 10,555 bytes, line 50
50spend){var S=l.unsuspend;l.unsuspend=null,S()}},6e4+f);0<l.imgBytes&&e4===0&&(e4=62500*fee());var w=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&gg(l,l.stylesheets),l.unsuspend)){var S=l.unsuspend;l.unsuspend=null,S()}},(l.imgBytes>e4?50:800)+f);return l.unsuspend=p,function(){l.unsuspend=null,clearTimeout(g),clearTimeout(w)}}:null}function pg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gg(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var mg=null;function gg(l,f){l.stylesheets=null,l.unsuspend!==null&&(l.count++,mg=new Map,f.forEach(Mee,l),mg=null,pg.call(l))}function Mee(l,f){if(!(f.state.loading&4)){var p=mg.get(l);if(p)var g=p.get(null);else{p=new Map,mg.set(l,p);for(var w=l.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<w.length;S++){var D=w[S];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(p.set(D.dataset.precedence,D),g=D)}g&&p.set(null,g)}w=f.instance,D=w.getAttribute("data-precedence"),S=p.get(D)||g,S===g&&p.set(null,w),p.set(D,w),this.count++,g=pg.bind(this),w.addEventListener("load",g),w.addEventListener("error",g),S?S.parentNode.insertBefore(w,S.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(w,l.firstChild)),f.state.loading|=4}}var Nd={$$typeof:C,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Pee(l,f,p,g,w,S,D,H,oe){this.tag=1,this.containerInfo=l,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=Po(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Po(0),this.hiddenUpdates=Po(null),this.identifierPrefix=g,this.onUncaughtError=w,this.onCaughtError=S,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=oe,this.incompleteTransitions=new Map}function p9(l,f,p,g,w,S,D,H,oe,ve,Te,ke){return l=new Pee(l,f,p,D,oe,ve,Te,ke,H),f=1,S===!0&&(f|=24),S=Oa(3,null,null,f),l.current=S,S.stateNode=l,f=P2(),f.refCount++,l.pooledCache=f,f.refCount++,S.memoizedState={element:g,isDehydrated:p,cache:f},j2(S),l}function m9(l){return l?(l=Nc,l):Nc}function g9(l,f,p,g,w,S){w=m9(w),g.context===null?g.context=w:g.pendingContext=w,g=Fo(f),g.payload={element:p},S=S===void 0?null:S,S!==null&&(g.callback=S),p=Uo(l,g,f),p!==null&&(pa(p,l,f),ld(p,l,f))}function v9(l,f){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var p=l.retryLane;l.retryLane=p!==0&&p<f?p:f}}function t4(l,f){v9(l,f),(l=l.alternate)&&v9(l,f)}function y9(l){if(l.tag===13||l.tag===31){var f=Yl(l,67108864);f!==null&&pa(f,l,67108864),t4(l,67108864)}}function b9(l){if(l.tag===13||l.tag===31){var f=Pa();f=gc(f);var p=Yl(l,f);p!==null&&pa(p,l,f),t4(l,f)}}var vg=!0;function Iee(l,f,p,g){var w=U.T;U.T=null;var S=J.p;try{J.p=2,r4(l,f,p,g)}finally{J.p=S,U.T=w}}function Dee(l,f,p,g){var w=U.T;U.T=null;var S=J.p;try{J.p=8,r4(l,f,p,g)}finally{J.p=S,U.T=w}}function r4(l,f,p,g){if(vg){var w=n4(g);if(w===null)Ux(l,f,g,yg,p),E9(l,g);else if(jee(w,l,f,p,g))g.stopPropagation();else if(E9(l,g),f&4&&-1<Lee.indexOf(l)){for(;w!==null;){var S=bc(w);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var D=Xi(S.pendingLanes);if(D!==0){var H=S;for(H.pendingLanes|=2,H.entangledLanes|=2;D;){var oe=1<<31-Qt(D);H.entanglements[1]|=oe,D&=~oe}Ji(S),(Kt&6)===0&&(eg=Gr()+500,Sd(0))}}break;case 31:case 13:H=Yl(S,2),H!==null&&pa(H,S,2),rg(),t4(S,2)}if(S=n4(g),S===null&&Ux(l,f,g,yg,p),S===w)break;w=S}w!==null&&g.stopPropagation()}else Ux(l,f,g,null,p)}}function n4(l){return l=i2(l),a4(l)}var yg=null;function a4(l){if(yg=null,l=yc(l),l!==null){var f=i(l);if(f===null)l=null;else{var p=f.tag;if(p===13){if(l=s(f),l!==null)return l;l=null}else if(p===31){if(l=o(f),l!==null)return l;l=null}else if(p===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;l=null}else f!==l&&(l=null)}}return yg=l,null}function x9(l){switch(l){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(Mo()){case Ae:return 2;case $e:return 8;case nt:case vt:return 32;case Ct:return 268435456;default:return 32}default:return 32}}var i4=!1,Jo=null,el=null,tl=null,Rd=new Map,Md=new Map,rl=[],Lee="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 E9(l,f){switch(l){case"focusin":case"focusout":Jo=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":Rd.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":Md.delete(f.pointerId)}}function Pd(l,f,p,g,w,S){return l===null||l.nativeEvent!==S?(l={blockedOn:f,domEventName:p,eventSystemFlags:g,nativeEvent:S,targetContainers:[w]},f!==null&&(f=bc(f),f!==null&&y9(f)),l):(l.eventSystemFlags|=g,f=l.targetContainers,w!==null&&f.indexOf(w)===-1&&f.push(w),l)}function jee(l,f,p,g,w){switch(f){case"focusin":return Jo=Pd(Jo,l,f,p,g,w),!0;case"dragenter":return el=Pd(el,l,f,p,g,w),!0;case"mouseover":return tl=Pd(tl,l,f,p,g,w),!0;case"pointerover":var S=w.pointerId;return Rd.set(S,Pd(Rd.get(S)||null,l,f,p,g,w)),!0;case"gotpointercapture":return S=w.pointerId,Md.set(S,Pd(Md.get(S)||null,l,f,p,g,w)),!0}return!1}function w9(l){var f=yc(l.target);if(f!==null){var p=i(f);if(p!==null){if(f=p.tag,f===13){if(f=s(p),f!==null){l.blockedOn=f,L7(l.priority,function(){b9(p)});return}}else if(f===31){if(f=o(p),f!==null){l.blockedOn=f,L7(l.priority,function(){b9(p)});return}}else if(f===3&&p.stateNode.current.memoizedState.isDehydrated){l.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}l.blockedOn=null}function bg(l){if(l.blockedOn!==null)return!1;for(var f=l.targetContainers;0<f.length;){var p=n4(l.nativeEvent);if(p===null){p=l.nativeEvent;var g=new p.constructor(p.type,p);a2=g,p.target.dispatchEvent(g),a2=null}else return f=bc(p),f!==null&&y9(f),l.blockedOn=p,!1;f.shift()}return!0}function _9(l,f,p){bg(l)&&p.delete(f)}function Bee(){i4=!1,Jo!==null&&bg(Jo)&&(Jo=null),el!==null&&bg(el)&&(el=null),tl!==null&&bg(tl)&&(tl=null),Rd.forEach(_9),Md.forEach(_9)}function xg(l,f){l.blockedOn===f&&(l.blockedOn=null,i4||(i4=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Bee)))}var Eg=null;function S9(l){Eg!==l&&(Eg=l,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Eg===l&&(Eg=null);for(var f=0;f<l.length;f+=3){var p=l[f],g=l[f+1],w=l[f+2];if(typeof g!="function"){if(a4(g||p)===null)continue;break}var S=bc(p);S!==null&&(l.splice(f,3),f-=3,nx(S,{pending:!0,data:w,method:p.method,action:g},g,w))}}))}function ef(l){function f(oe){return xg(oe,l)}Jo!==null&&xg(Jo,l),el!==null&&xg(el,l),tl!==null&&xg(tl,l),Rd.forEach(f),Md.forEach(f);for(var p=0;p<rl.length;p++){var g=rl[p];g.blockedOn===l&&(g.blockedOn=null)}for(;0<rl.length&&(p=rl[0],p.blockedOn===null);)w9(p),p.blockedOn===null&&rl.shift();if(p=(l.ownerDocument||l).$$reactFormReplay,p!=null)for(g=0;g<p.length;g+=3){var w=p[g],S=p[g+1],D=w[la]||null;if(typeof S=="function")D||S9(p);else if(D){var H=null;if(S&&S.hasAttribute("formAction")){if(w=S,D=S[la]||null)H=D.formAction;else if(a4(w)!==null)continue}else H=D.action;typeof H=="function"?p[g+1]=H:(p.splice(g,3),g-=3),S9(p)}}}function T9(){function l(S){S.canIntercept&&S.info==="react-transition"&&S.intercept({handler:function(){return new Promise(function(D){return w=D})},focusReset:"manual",scroll:"manual"})}function f(){w!==null&&(w(),w=null),g||setTimeout(p,20)}function p(){if(!g&&!navigation.transition){var S=navigation.currentEntry;S&&S.url!=null&&navigation.navigate(S.url,{state:S.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var g=!1,w=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",f),navigation.addEventListener("navigateerror",f),setTimeout(p,100),function(){g=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",f),navigation.removeEventListener("navigateerror",f),w!==null&&(w(),w=null)}}}function s4(l){this._internalRoot=l}wg.prototype.render=s4.prototype.render=function(l){var f=this._internalRoot;if(f===null)throw Error(n(409));var p=f.current,g=Pa();g9(p,g,l,f,null,null)},wg.prototype.unmount=s4.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var f=l.containerInfo;g9(l.current,2,null,l,null,null),rg(),f[vc]=null}};function wg(l){this._internalRoot=l}wg.prototype.unstable_scheduleHydration=function(l){if(l){var f=Qb();l={blockedOn:null,target:l,priority:f};for(var p=0;p<rl.length&&f!==0&&f<rl[p].priority;p++);rl.splice(p,0,l),p===0&&w9(l)}};var A9=t.version;if(A9!=="19.2.1")throw Error(n(527,A9,"19.2.1"));J.findDOMNode=function(l){var f=l._reactInternals;if(f===void 0)throw typeof l.render=="function"?Error(n(188)):(l=Object.keys(l).join(","),Error(n(268,l)));return l=c(f),l=l!==null?h(l):null,l=l===null?null:l.stateNode,l};var zee={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.1"};
50if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _g=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_g.isDisabled&&_g.supportsFiber)try{Tn=_g.inject(zee),Br=_g}catch{}}return Ld.createRoot=function(l,f){if(!a(l))throw Error(n(299));var p=!1,g="",w=PO,S=IO,D=DO;return f!=null&&(f.unstable_strictMode===!0&&(p=!0),f.identifierPrefix!==void 0&&(g=f.identifierPrefix),f.onUncaughtError!==void 0&&(w=f.onUncaughtError),f.onCaughtError!==void 0&&(S=f.onCaughtError),f.onRecoverableError!==void 0&&(D=f.onRecoverableError)),f=p9(l,1,!1,null,null,p,g,null,w,S,D,T9),l[vc]=f.current,Fx(l),new s4(f)},Ld.hydrateRoot=function(l,f,p){if(!a(l))throw Error(n(299));var g=!1,w="",S=PO,D=IO,H=DO,oe=null;return p!=null&&(p.unstable_strictMode===!0&&(g=!0),p.identifierPrefix!==void 0&&(w=p.identifierPrefix),p.onUncaughtError!==void 0&&(S=p.onUncaughtError),p.onCaughtError!==void 0&&(D=p.onCaughtError),p.onRecoverableError!==void 0&&(H=p.onRecoverableError),p.formState!==void 0&&(oe=p.formState)),f=p9(l,1,!0,f,p??null,g,w,oe,S,D,H,T9),f.context=m9(null),p=f.current,g=Pa(),g=gc(g),w=Fo(g),w.callback=null,Uo(p,w,g),p=g,f.current.lanes=p,Or(f,p),Ji(f),l[vc]=f.current,Fx(l),new wg(f)},Ld.version="19.2.1",Ld}var Z9;function nne(){if(Z9)return h4.exports;Z9=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(),h4.exports=rne(),h4.exports}var ane=nne(),ine=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,r){this.keyToValue.set(t,r),this.valueToKey.set(r,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})(),AF=(function(){function e(t){this.generateIdentifier=t,this.kv=new ine}return e.prototype.register=function(t,r){this.kv.getByValue(t)||(r||(r=this.generateIdentifier(t)),this.kv.set(r,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})(),sne=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),one=(function(e){sne(t,e);function t(){var r=e.call(this,function(n){return n.name})||this;return r.classToAllowedProps=new Map,r}return t.prototype.register=function(r,n){typeof n=="object"?(n.allowProps&&this.classToAllowedProps.set(r,n.allowProps),e.prototype.register.call(this,r,n.identifier)):e.prototype.register.call(this,r,n)},t.prototype.getAllowedProps=function(r){return this.classToAllowedProps.get(r)},t})(AF),lne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i};function une(e){if("values"in Object)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}function cne(e,t){var r=une(e);if("find"in r)return r.find(t);for(var n=r,a=0;a<n.length;a++){var i=n[a];if(t(i))return i}}function zf(e,t){Object.entries(e).forEach(function(r){var n=lne(r,2),a=n[0],i=n[1];return t(i,a)})}function A1(e,t){return e.indexOf(t)!==-1}function J9(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n))return n}}var fne=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return cne(this.transfomers,function(r){return r.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),dne=function(e){return Object.prototype.toString.call(e).slice(8,-1)},CF=function(e){return typeof e>"u"},hne=function(e){return e===null},Dh=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},$5=function(e){return Dh(e)&&Object.keys(e).length===0},Sl=function(e){return Array.isArray(e)},pne=function(e){return typeof e=="string"},mne=function(e){return typeof e=="number"&&!isNaN(e)},gne=function(e){return typeof e=="boolean"},vne=function(e){return e instanceof RegExp},Lh=function(e){return e instanceof Map},jh=function(e){return e instanceof Set},OF=function(e){return dne(e)==="Symbol"},yne=function(e){return e instanceof Date&&!isNaN(e.valueOf())},bne=function(e){return e instanceof Error},eN=function(e){return typeof e=="number"&&isNaN(e)},xne=function(e){return gne(e)||hne(e)||CF(e)||mne(e)||pne(e)||OF(e)},Ene=function(e){return typeof e=="bigint"},wne=function(e){return e===1/0||e===-1/0},_ne=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},Sne=function(e){return e instanceof URL},kF=function(e){return e.replace(/\./g,"\\.")},v4=function(e){return e.map(String).map(kF).join(".")},ph=function(e){for(var t=[],r="",n=0;n<e.length;n++){var a=e.charAt(n),i=a==="\\"&&e.charAt(n+1)===".";if(i){r+=".",n++;continue}var s=a===".";if(s){t.push(r),r="";
50continue}r+=a}var o=r;return t.push(o),t},F5=function(){return F5=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},F5.apply(this,arguments)},U5=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},H5=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};function es(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var NF=[es(CF,"undefined",function(){return null},function(){}),es(Ene,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),es(yne,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),es(bne,"Error",function(e,t){var r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(n){r[n]=e[n]}),r},function(e,t){var r=new Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(function(n){r[n]=e[n]}),r}),es(vne,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),r=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,r)}),es(jh,"set",function(e){return H5([],U5(e.values()))},function(e){return new Set(e)}),es(Lh,"map",function(e){return H5([],U5(e.entries()))},function(e){return new Map(e)}),es(function(e){return eN(e)||wne(e)},"number",function(e){return eN(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),es(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),es(Sne,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Ty(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var RF=Ty(function(e,t){if(OF(e)){var r=!!t.symbolRegistry.getIdentifier(e);return r}return!1},function(e,t){var r=t.symbolRegistry.getIdentifier(e);return["symbol",r]},function(e){return e.description},function(e,t,r){var n=r.symbolRegistry.getValue(t[1]);if(!n)throw new Error("Trying to deserialize unknown symbol");return n}),Tne=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),MF=Ty(_ne,function(e){return["typed-array",e.constructor.name]},function(e){return H5([],U5(e))},function(e,t){var r=Tne[t[1]];if(!r)throw new Error("Trying to deserialize unknown typed array");return new r(e)});function PF(e,t){if(e?.constructor){var r=!!t.classRegistry.getIdentifier(e.constructor);return r}return!1}var IF=Ty(PF,function(e,t){var r=t.classRegistry.getIdentifier(e.constructor);return["class",r]},function(e,t){var r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return F5({},e);var n={};return r.forEach(function(a){n[a]=e[a]}),n},function(e,t,r){var n=r.classRegistry.getValue(t[1]);if(!n)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),e)}),DF=Ty(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var r=t.customTransformerRegistry.findApplicable(e);return["custom",r.name]},function(e,t){var r=t.customTransformerRegistry.findApplicable(e);return r.serialize(e)},function(e,t,r){var n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw new Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),Ane=[IF,RF,DF,MF],tN=function(e,t){var r=J9(Ane,function(a){return a.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};var n=J9(NF,function(a){return a.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation}},LF={};NF.forEach(function(e){LF[e.annotation]=e});var Cne=function(e,t,r){if(Sl(t))switch(t[0]){case"symbol":return RF.untransform(e,t,r);case"class":return IF.untransform(e,t,r);
50case"custom":return DF.untransform(e,t,r);case"typed-array":return MF.untransform(e,t,r);default:throw new Error("Unknown transformation: "+t)}else{var n=LF[t];if(!n)throw new Error("Unknown transformation: "+t);return n.untransform(e,r)}},Ef=function(e,t){for(var r=e.keys();t>0;)r.next(),t--;return r.next().value};function jF(e){if(A1(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(A1(e,"prototype"))throw new Error("prototype is not allowed as a property");if(A1(e,"constructor"))throw new Error("constructor is not allowed as a property")}var One=function(e,t){jF(t);for(var r=0;r<t.length;r++){var n=t[r];if(jh(e))e=Ef(e,+n);else if(Lh(e)){var a=+n,i=+t[++r]==0?"key":"value",s=Ef(e,a);switch(i){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[n]}return e},q5=function(e,t,r){if(jF(t),t.length===0)return r(e);for(var n=e,a=0;a<t.length-1;a++){var i=t[a];if(Sl(n)){var s=+i;n=n[s]}else if(Dh(n))n=n[i];else if(jh(n)){var o=+i;n=Ef(n,o)}else if(Lh(n)){var u=a===t.length-2;if(u)break;var o=+i,c=+t[++a]==0?"key":"value",h=Ef(n,o);switch(c){case"key":n=h;break;case"value":n=n.get(h);break}}}var d=t[t.length-1];if(Sl(n)?n[+d]=r(n[+d]):Dh(n)&&(n[d]=r(n[d])),jh(n)){var m=Ef(n,+d),v=r(m);m!==v&&(n.delete(m),n.add(v))}if(Lh(n)){var o=+t[t.length-2],y=Ef(n,o),c=+d==0?"key":"value";switch(c){case"key":{var b=r(y);n.set(b,n.get(y)),b!==y&&n.delete(y);break}case"value":{n.set(y,r(n.get(y)));break}}}return e},eo=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},ml=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};function V5(e,t,r){if(r===void 0&&(r=[]),!!e){if(!Sl(e)){zf(e,function(s,o){return V5(s,t,ml(ml([],eo(r)),eo(ph(o))))});return}var n=eo(e,2),a=n[0],i=n[1];i&&zf(i,function(s,o){V5(s,t,ml(ml([],eo(r)),eo(ph(o))))}),t(a,r)}}function kne(e,t,r){return V5(t,function(n,a){e=q5(e,a,function(i){return Cne(i,n,r)})}),e}function Nne(e,t){function r(s,o){var u=One(e,ph(o));s.map(ph).forEach(function(c){e=q5(e,c,function(){return u})})}if(Sl(t)){var n=eo(t,2),a=n[0],i=n[1];a.forEach(function(s){e=q5(e,ph(s),function(){return e})}),i&&zf(i,r)}else zf(t,r);return e}var Rne=function(e,t){return Dh(e)||Sl(e)||Lh(e)||jh(e)||PF(e,t)};function Mne(e,t,r){var n=r.get(e);n?n.push(t):r.set(e,[t])}function Pne(e,t){var r={},n=void 0;return e.forEach(function(a){if(!(a.length<=1)){t||(a=a.map(function(u){return u.map(String)}).sort(function(u,c){return u.length-c.length}));var i=eo(a),s=i[0],o=i.slice(1);s.length===0?n=o.map(v4):r[v4(s)]=o.map(v4)}}),n?$5(r)?[n]:[n,r]:$5(r)?void 0:r}var BF=function(e,t,r,n,a,i,s){var o;a===void 0&&(a=[]),i===void 0&&(i=[]),s===void 0&&(s=new Map);var u=xne(e);if(!u){Mne(e,a,t);var c=s.get(e);if(c)return n?{transformedValue:null}:c}if(!Rne(e,r)){var h=tN(e,r),d=h?{transformedValue:h.value,annotations:[h.type]}:{transformedValue:e};return u||s.set(e,d),d}if(A1(i,e))return{transformedValue:null};var m=tN(e,r),v=(o=m?.value)!==null&&o!==void 0?o:e,y=Sl(v)?[]:{},b={};zf(v,function(_,T){var C=BF(_,t,r,n,ml(ml([],eo(a)),[T]),ml(ml([],eo(i)),[e]),s);y[T]=C.transformedValue,Sl(C.annotations)?b[T]=C.annotations:Dh(C.annotations)&&zf(C.annotations,function(P,O){b[kF(T)+"."+O]=P})});var E=$5(b)?{transformedValue:y,annotations:m?[m.type]:void 0}:{transformedValue:y,annotations:m?[m.type,b]:b};return u||s.set(e,E),E};function zF(e){return Object.prototype.toString.call(e).slice(8,-1)}function rN(e){return zF(e)==="Array"}function Ine(e){if(zF(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Dne(e,t,r,n,a){const i={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=r),a&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}function G5(e,t={}){if(rN(e))return e.map(a=>G5(a,t));if(!Ine(e))return e;const r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols(e);return[...r,...n].reduce((a,i)=>{if(rN(t.props)&&!t.props.includes(i))return a;const s=e[i],o=G5(s,t);return Dne(a,i,o,e,t.nonenumerable),a},{})}var vu=function(){return vu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},vu.apply(this,arguments)},Lne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},jne=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e},To=(function(){function e(t){var r=t===void 0?{}:t,n=r.dedupe,a=n===void 0?!1:n;this.classRegistry=new one,this.symbolRegistry=new AF(function(i){var s;return(s=i.description)!==null&&s!==void 0?s:""}),this.customTransformerRegistry=new fne,this.allowedErrorProps=[],this.dedupe=a}return e.prototype.serialize=function(t){var r=new Map,n=BF(t,r,this,this.dedupe),a={json:n.transformedValue};n.annotations&&(a.meta=vu(vu({},a.meta),{values:n.annotations}));var i=Pne(r,this.dedupe);return i&&(a.meta=vu(vu({},a.meta),{referentialEqualities:i})),a},e.prototype.deserialize=function(t){var r=t.json,n=t.meta,a=G5(r);return n?.values&&(a=kne(a,n.values,this)),n?.referentialEqualities&&(a=Nne(a,n.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,r){this.classRegistry.register(t,r)},e.prototype.registerSymbol=function(t,r){this.symbolRegistry.register(t,r)},e.prototype.registerCustom=function(t,r){this.customTransformerRegistry.register(vu({name:r},t))},e.prototype.allowErrorProps=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];(t=this.allowedErrorProps).push.apply(t,jne([],Lne(r)))},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})();
vendor: 1,083 bytes, line 50
50To.serialize;To.deserialize;To.stringify;To.parse;To.registerClass;To.registerCustom;To.registerSymbol;To.allowErrorProps;var Bne=(e,t,r,n,a,i,s,o)=>{let u=document.documentElement,c=["light","dark"];function h(v){(Array.isArray(e)?e:[e]).forEach(y=>{let b=y==="class",E=b&&i?a.map(_=>i[_]||_):a;b?(u.classList.remove(...E),u.classList.add(i&&i[v]?i[v]:v)):u.setAttribute(y,v)}),d(v)}function d(v){o&&c.includes(v)&&(u.style.colorScheme=v)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)h(n);else try{let v=localStorage.getItem(t)||r,y=s&&v==="system"?m():v;h(y)}catch{}},zne=N.createContext(void 0),$ne={setTheme:e=>{},themes:[]},Fne=()=>{var e;return(e=N.useContext(zne))!=null?e:$ne};N.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:a,defaultTheme:i,value:s,themes:o,nonce:u,scriptProps:c})=>{let h=JSON.stringify([r,t,i,e,o,s,n,a]).slice(1,-1);return N.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(${Bne.toString()})(${h}
50)`}})});var Lp=TF();const $F=er(Lp);function Une(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const Hne=e=>{switch(e){case"success":return Gne;case"info":return Yne;case"warning":return Wne;case"error":return Xne;default:return null}},qne=Array(12).fill(0),Vne=({visible:e,className:t})=>re.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},re.createElement("div",{className:"sonner-spinner"},qne.map((r,n)=>re.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Gne=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.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"})),Wne=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},re.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"})),Yne=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.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"})),Xne=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.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"})),Kne=re.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"},re.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),re.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Qne=()=>{const[e,t]=re.useState(document.hidden);return re.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let W5=1;class Zne{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...a}=t,i=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:W5++,s=this.toasts.find(u=>u.id===i),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(u=>u.id===i?(this.publish({...u,...t,id:i,title:n}),{...u,...t,id:i,dismissible:o,title:n}):u):this.addToast({title:n,...a,dismissible:o,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=n!==void 0,s;const o=a.then(async c=>{if(s=["resolve",c],re.isValidElement(c))i=!1,this.create({id:n,type:"default",message:c});else if(eae(c)&&!c.ok){i=!1;const d=typeof r.error=="function"?await r.error(`HTTP error! status: ${c.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${c.status}`):r.description,y=typeof d=="object"&&!re.isValidElement(d)?d:{message:d};this.create({id:n,type:"error",description:m,...y})}else if(c instanceof Error){i=!1;const d=typeof r.error=="function"?await r.error(c):r.error,m=typeof r.description=="function"?await r.description(c):r.description,y=typeof d=="object"&&!re.isValidElement(d)?d:{message:d};this.create({id:n,type:"error",description:m,...y})}else if(r.success!==void 0){i=!1;const d=typeof r.success=="function"?await r.success(c):r.success,m=typeof r.description=="function"?await r.description(c):r.description,y=typeof d=="object"&&!re.isValidElement(d)?d:{message:d};this.create({id:n,type:"success",description:m,...y})}}).catch(async c=>{if(s=["reject",c],r.error!==void 0){i=!1;const h=typeof r.error=="function"?await r.error(c):r.error,d=typeof r.description=="function"?await r.description(c):r.description,v=typeof h=="object"&&!re.isValidElement(h)?h:{message:h};this.create({id:n,type:"error",description:d,...v})}}).finally(()=>
vendor: 929 bytes, line 50
50{i&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),u=()=>new Promise((c,h)=>o.then(()=>s[0]==="reject"?h(s[1]):c(s[1])).catch(h));return typeof n!="string"&&typeof n!="number"?{unwrap:u}:Object.assign(n,{unwrap:u})},this.custom=(t,r)=>{const n=r?.id||W5++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ya=new Zne,Jne=(e,t)=>{const r=t?.id||W5++;return ya.addToast({title:e,...t,id:r}),r},eae=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",tae=Jne,rae=()=>ya.toasts,nae=()=>ya.getActiveToasts(),_t=Object.assign(tae,{success:ya.success,info:ya.info,warning:ya.warning,error:ya.error,custom:ya.custom,message:ya.message,promise:ya.promise,dismiss:ya.dismiss,loading:ya.loading},{getHistory:rae,getToasts:nae});Un
vendor: 14,874 bytes, line 50
50e("[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,461 bytes, line 50
50kg(e){return e.label!==void 0}const aae=3,iae="24px",sae="16px",nN=4e3,oae=356,lae=14,uae=45,cae=200;function ts(...e){return e.filter(Boolean).join(" ")}function fae(e){const[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}const dae=e=>{var t,r,n,a,i,s,o,u,c;const{invert:h,toast:d,unstyled:m,interacting:v,setHeights:y,visibleToasts:b,heights:E,index:_,toasts:T,expanded:C,removeToast:P,defaultRichColors:O,closeButton:k,style:M,cancelButtonStyle:j,actionButtonStyle:z,className:$="",descriptionClassName:F="",duration:q,position:Q,gap:X,expandByDefault:te,classNames:U,icons:J,closeButtonAriaLabel:ee="Close toast"}=e,[de,G]=re.useState(null),[Y,W]=re.useState(null),[L,le]=re.useState(!1),[fe,Se]=re.useState(!1),[ye,Ne]=re.useState(!1),[xe,Pe]=re.useState(!1),[ze,we]=re.useState(!1),[ft,Qe]=re.useState(0),[zt,Pt]=re.useState(0),Ut=re.useRef(d.duration||q||nN),jr=re.useRef(null),ar=re.useRef(null),Aa=_===0,Wn=_+1<=b,yr=d.type,aa=d.dismissible!==!1,Gr=d.className||"",Mo=d.descriptionClassName||"",Ae=re.useMemo(()=>E.findIndex(lt=>lt.toastId===d.id)||0,[E,d.id]),$e=re.useMemo(()=>{var lt;return(lt=d.closeButton)!=null?lt:k},[d.closeButton,k]),nt=re.useMemo(()=>d.duration||q||nN,[d.duration,q]),vt=re.useRef(0),Ct=re.useRef(0),In=re.useRef(0),Dn=re.useRef(null),[Tn,Br]=Q.split("-"),An=re.useMemo(()=>E.reduce((lt,wr,mn)=>mn>=Ae?lt:lt+wr.height,0),[E,Ae]),Qt=Qne(),Wi=d.invert||h,Yn=yr==="loading";Ct.current=re.useMemo(()=>Ae*X+An,[Ae,An]),re.useEffect(()=>{Ut.current=nt},[nt]),re.useEffect(()=>{le(!0)},[]),re.useEffect(()=>{const lt=ar.current;if(lt){const wr=lt.getBoundingClientRect().height;return Pt(wr),y(mn=>[{toastId:d.id,height:wr,position:d.position},...mn]),()=>y(mn=>mn.filter(Ln=>Ln.toastId!==d.id))}},[y,d.id]),re.useLayoutEffect(()=>{if(!L)return;const lt=ar.current,wr=lt.style.height;lt.style.height="auto";const mn=lt.getBoundingClientRect().height;lt.style.height=wr,Pt(mn),y(Ln=>Ln.find(Or=>Or.toastId===d.id)?Ln.map(Or=>Or.toastId===d.id?{...Or,height:mn}:Or):[{toastId:d.id,height:mn,position:d.position},...Ln])},[L,d.title,d.description,y,d.id,d.jsx,d.action,d.cancel]);const Yi=re.useCallback(()=>{Se(!0),Qe(Ct.current),y(lt=>lt.filter(wr=>wr.toastId!==d.id)),setTimeout(()=>{P(d)},cae)},[d,P,y,Ct]);re.useEffect(()=>{if(d.promise&&yr==="loading"||d.duration===1/0||d.type==="loading")return;let lt;return C||v||Qt?(()=>{if(In.current<vt.current){const Ln=new Date().getTime()-vt.current;Ut.current=Ut.current-Ln}
vendor: 13,554 bytes, line 50
50In.current=new Date().getTime()})():(()=>{Ut.current!==1/0&&(vt.current=new Date().getTime(),lt=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),Yi()},Ut.current))})(),()=>clearTimeout(lt)},[C,v,d,yr,Qt,Yi]),re.useEffect(()=>{d.delete&&(Yi(),d.onDismiss==null||d.onDismiss.call(d,d))},[Yi,d.delete]);function pc(){var lt;if(J?.loading){var wr;return re.createElement("div",{className:ts(U?.loader,d==null||(wr=d.classNames)==null?void 0:wr.loader,"sonner-loader"),"data-visible":yr==="loading"},J.loading)}return re.createElement(Vne,{className:ts(U?.loader,d==null||(lt=d.classNames)==null?void 0:lt.loader),visible:yr==="loading"})}const mc=d.icon||J?.[yr]||Hne(yr);var Ul,Xi;return re.createElement("li",{tabIndex:0,ref:ar,className:ts($,Gr,U?.toast,d==null||(t=d.classNames)==null?void 0:t.toast,U?.default,U?.[yr],d==null||(r=d.classNames)==null?void 0:r[yr]),"data-sonner-toast":"","data-rich-colors":(Ul=d.richColors)!=null?Ul:O,"data-styled":!(d.jsx||d.unstyled||m),"data-mounted":L,"data-promise":!!d.promise,"data-swiped":ze,"data-removed":fe,"data-visible":Wn,"data-y-position":Tn,"data-x-position":Br,"data-index":_,"data-front":Aa,"data-swiping":ye,"data-dismissible":aa,"data-type":yr,"data-invert":Wi,"data-swipe-out":xe,"data-swipe-direction":Y,"data-expanded":!!(C||te&&L),"data-testid":d.testId,style:{"--index":_,"--toasts-before":_,"--z-index":T.length-_,"--offset":`${fe?ft:Ct.current}px`,"--initial-height":te?"auto":`${zt}px`,...M,...d.style},onDragEnd:()=>{Ne(!1),G(null),Dn.current=null},onPointerDown:lt=>{lt.button!==2&&(Yn||!aa||(jr.current=new Date,Qe(Ct.current),lt.target.setPointerCapture(lt.pointerId),lt.target.tagName!=="BUTTON"&&(Ne(!0),Dn.current={x:lt.clientX,y:lt.clientY})))},onPointerUp:()=>{var lt,wr,mn;if(xe||!aa)return;Dn.current=null;const Ln=Number(((lt=ar.current)==null?void 0:lt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Po=Number(((wr=ar.current)==null?void 0:wr.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Or=new Date().getTime()-((mn=jr.current)==null?void 0:mn.getTime()),ia=de==="x"?Ln:Po,Hl=Math.abs(ia)/Or;if(Math.abs(ia)>=uae||Hl>.11){Qe(Ct.current),d.onDismiss==null||d.onDismiss.call(d,d),W(de==="x"?Ln>0?"right":"left":Po>0?"down":"up"),Yi(),Pe(!0);return}else{var sa,oa;(sa=ar.current)==null||sa.style.setProperty("--swipe-amount-x","0px"),(oa=ar.current)==null||oa.style.setProperty("--swipe-amount-y","0px")}we(!1),Ne(!1),G(null)},onPointerMove:lt=>{var wr,mn,Ln;if(!Dn.current||!aa||((wr=window.getSelection())==null?void 0:wr.toString().length)>0)return;const Or=lt.clientY-Dn.current.y,ia=lt.clientX-Dn.current.x;var Hl;const sa=(Hl=e.swipeDirections)!=null?Hl:fae(Q);!de&&(Math.abs(ia)>1||Math.abs(Or)>1)&&G(Math.abs(ia)>Math.abs(Or)?"x":"y");let oa={x:0,y:0};const gc=Ti=>1/(1.5+Math.abs(Ti)/20);if(de==="y"){if(sa.includes("top")||sa.includes("bottom"))if(sa.includes("top")&&Or<0||sa.includes("bottom")&&Or>0)oa.y=Or;else{const Ti=Or*gc(Or);oa.y=Math.abs(Ti)<Math.abs(Or)?Ti:Or}}else if(de==="x"&&(sa.includes("left")||sa.includes("right")))if(sa.includes("left")&&ia<0||sa.includes("right")&&ia>0)oa.x=ia;else{const Ti=ia*gc(ia);oa.x=Math.abs(Ti)<Math.abs(ia)?Ti:ia}(Math.abs(oa.x)>0||Math.abs(oa.y)>0)&&we(!0),(mn=ar.current)==null||mn.style.setProperty("--swipe-amount-x",`${oa.x}px`),(Ln=ar.current)==null||Ln.style.setProperty("--swipe-amount-y",`${oa.y}px`)}},$e&&!d.jsx&&yr!=="loading"?re.createElement("button",{"aria-label":ee,"data-disabled":Yn,"data-close-button":!0,onClick:Yn||!aa?()=>{}:()=>{Yi(),d.onDismiss==null||d.onDismiss.call(d,d)},className:ts(U?.closeButton,d==null||(n=d.classNames)==null?void 0:n.closeButton)},(Xi=J?.close)!=null?Xi:Kne):null,(yr||d.icon||d.promise)&&d.icon!==null&&(J?.[yr]!==null||d.icon)?re.createElement("div",{"data-icon":"",className:ts(U?.icon,d==null||(a=d.classNames)==null?void 0:a.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||pc():null,d.type!=="loading"?mc:null):null,re.createElement("div",{"data-content":"",className:ts(U?.content,d==null||(i=d.classNames)==null?void 0:i.content)},re.createElement("div",{"data-title":"",className:ts(U?.title,d==null||(s=d.classNames)==null?void 0:s.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?re.createElement("div",{"data-description":"",className:ts(F,Mo,U?.description,d==null||(o=d.classNames)==null?void 0:o.description)},typeof d.description=="function"?d.description():d.description):null),re.isValidElement(d.cancel)?d.cancel:d.cancel&&kg(d.cancel)?re.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||j,onClick:lt=>{kg(d.cancel)&&aa&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,lt),Yi())},className:ts(U?.cancelButton,d==null||(u=d.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,re.isValidElement(d.action)?d.action:d.action&&kg(d.action)?re.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||z,onClick:lt=>{kg(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,lt),!lt.defaultPrevented&&Yi())},className:ts(U?.actionButton,d==null||(c=d.classNames)==null?void 0:c.actionButton)},d.action.label):null)};function aN(){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 hae(e,t){const r={};return[e,t].forEach((n,a)=>{const i=a===1,s=i?"--mobile-offset":"--offset",o=i?sae:iae;function u(c){["top","right","bottom","left"].forEach(h=>{r[`${s}-${h}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?u(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${s}-${c}`]=o:r[`${s}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):u(o)}),r}const pae=re.forwardRef(function(t,r){const{id:n,invert:a,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:u,className:c,offset:h,mobileOffset:d,theme:m="light",richColors:v,duration:y,style:b,visibleToasts:E=aae,toastOptions:_,dir:T=aN(),gap:C=lae,icons:P,containerAriaLabel:O="Notifications"}=t,[k,M]=re.useState([]),j=re.useMemo(()=>n?k.filter(L=>L.toasterId===n):k.filter(L=>!L.toasterId),[k,n]),z=re.useMemo(()=>Array.from(new Set([i].concat(j.filter(L=>L.position).map(L=>L.position)))),[j,i]),[$,F]=re.useState([]),[q,Q]=re.useState(!1),[X,te]=re.useState(!1),[U,J]=re.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ee=re.useRef(null),de=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),G=re.useRef(null),Y=re.useRef(!1),W=re.useCallback(L=>{M(le=>{var fe;return(fe=le.find(Se=>Se.id===L.id))!=null&&fe.delete||ya.dismiss(L.id),le.filter(({id:Se})=>Se!==L.id)})},[]);return re.useEffect(()=>ya.subscribe(L=>{if(L.dismiss){requestAnimationFrame(()=>{M(le=>le.map(fe=>fe.id===L.id?{...fe,delete:!0}:fe))});return}setTimeout(()=>{$F.flushSync(()=>{M(le=>{const fe=le.findIndex(Se=>Se.id===L.id);return fe!==-1?[...le.slice(0,fe),{...le[fe],...L},...le.slice(fe+1)]:[L,...le]})})})}),[k]),re.useEffect(()=>{if(m!=="system"){J(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?J("dark"):J("light")),typeof window>"u")return;const L=window.matchMedia("(prefers-color-scheme: dark)");try{L.addEventListener("change",({matches:le})=>{J(le?"dark":"light")})}catch{L.addListener(({matches:fe})=>{try{J(fe?"dark":"light")}catch(Se){console.error(Se)}})}},[m]),re.useEffect(()=>{k.length<=1&&Q(!1)},[k]),re.useEffect(()=>{const L=le=>{var fe;if(s.every(Ne=>le[Ne]||le.code===Ne)){var ye;Q(!0),(ye=ee.current)==null||ye.focus()}le.code==="Escape"&&(document.activeElement===ee.current||(fe=ee.current)!=null&&fe.contains(document.activeElement))&&Q(!1)};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[s]),re.useEffect(()=>{if(ee.current)return()=>{G.current&&(G.current.focus({preventScroll:!0}),G.current=null,Y.current=!1)}},[ee.current]),re.createElement("section",{ref:r,"aria-label":`${O} ${de}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},z.map((L,le)=>{var fe;const[Se,ye]=L.split("-");return j.length?re.createElement("ol",{key:L,dir:T==="auto"?aN():T,tabIndex:-1,ref:ee,className:c,"data-sonner-toaster":!0,"data-sonner-theme":U,"data-y-position":Se,"data-x-position":ye,style:{"--front-toast-height":`${((fe=$[0])==null?void 0:fe.height)||0}px`,"--width":`${oae}px`,"--gap":`${C}px`,...b,...hae(h,d)},onBlur:Ne=>{Y.current&&!Ne.currentTarget.contains(Ne.relatedTarget)&&(Y.current=!1,G.current&&(G.current.focus({preventScroll:!0}),G.current=null))},onFocus:Ne=>{Ne.target instanceof HTMLElement&&Ne.target.dataset.dismissible==="false"||Y.current||(Y.current=!0,G.current=Ne.relatedTarget)},onMouseEnter:()=>Q(!0),onMouseMove:()=>Q(!0),onMouseLeave:()=>{X||Q(!1)},onDragEnd:()=>Q(!1),onPointerDown:Ne=>{Ne.target instanceof HTMLElement&&Ne.target.dataset.dismissible==="false"||te(!0)},onPointerUp:()=>te(!1)},j.filter(Ne=>!Ne.position&&le===0||Ne.position===L).map((Ne,xe)=>{var Pe,ze;return re.createElement(dae,{key:Ne.id,icons:P,index:xe,toast:Ne,defaultRichColors:v,duration:(Pe=_?.duration)!=null?Pe:y,className:_?.className,descriptionClassName:_?.descriptionClassName,invert:a,visibleToasts:E,closeButton:(ze=_?.closeButton)!=null?ze:u,interacting:X,position:L,style:_?.style,unstyled:_?.unstyled,classNames:_?.classNames,cancelButtonStyle:_?.cancelButtonStyle,actionButtonStyle:_?.actionButtonStyle,closeButtonAriaLabel:_?.closeButtonAriaLabel,removeToast:W,toasts:j.filter(we=>we.position==Ne.position),heights:$.filter(we=>we.position==Ne.position),setHeights:F,expandByDefault:o,gap:C,expanded:q,swipeDirections:t.swipeDirections})})):null}))}),mae=({...e})=>{const{theme:t="system"}=Fne();return x.jsx(pae,{"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 Tt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}function iN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pu(...e){return t=>{let r=!1;const n=e.map(a=>{const i=iN(a,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():iN(e[a],null)}}}}function nr(...e){return N.useCallback(Pu(...e),e)}function gae(e,t){const r=N.createContext(t),n=i=>{const{children:s,...o}=i,u=N.useMemo(()=>o,Object.values(o));return x.jsx(r.Provider,{value:u,children:s})};n.displayName=e+"Provider";function a(i){const s=N.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,a]}function rc(e,t=[]){let r=[];function n(i,s){const o=N.createContext(s),u=r.length;r=[...r,s];const c=d=>{const{scope:m,children:v,...y}=d,b=m?.[e]?.[u]||o,E=N.useMemo(()=>y,Object.values(y));return x.jsx(b.Provider,{value:E,children:v})};c.displayName=i+"Provider";function h(d,m){const v=m?.[e]?.[u]||o,y=N.useContext(v);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,h]}const a=()=>{const i=r.map(s=>N.createContext(s));return function(o){const u=o?.[e]||i;return N.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return a.scopeName=e,[n,vae(a,...t)]}function vae(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const s=n.reduce((o,{useScope:u,scopeName:c})=>{const d=u(i)[`__scope${c}`];return{...o,...d}},{});return N.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function $f(e){const t=yae(e),r=N.forwardRef((n,a)=>{const{children:i,...s}=n,o=N.Children.toArray(i),u=o.find(xae);if(u){const c=u.props.children,h=o.map(d=>d===u?N.Children.count(c)>1?N.Children.only(null):N.isValidElement(c)?c.props.children:null:d);return x.jsx(t,{...s,ref:a,children:N.isValidElement(c)?N.cloneElement(c,void 0,h):null})}return x.jsx(t,{...s,ref:a,children:i})});return r.displayName=`${e}.Slot`,r}var FF=$f("Slot");function yae(e){const t=N.forwardRef((r,n)=>{const{children:a,...i}=r;if(N.isValidElement(a)){const s=wae(a),o=Eae(i,a.props);return a.type!==N.Fragment&&(o.ref=n?Pu(n,s):s),N.cloneElement(a,o)}return N.Children.count(a)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var UF=Symbol("radix.slottable");function bae(e){const t=({children:r})=>x.jsx(x.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=UF,t}function xae(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===UF}function Eae(e,t){const r={...t};for(const n in t){const a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...o)=>{const u=i(...o);return a(...o),u}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function wae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var _ae=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ht=_ae.reduce((e,t)=>
vendor: 4,282 bytes, line 50
50{const r=$f(`Primitive.${t}`),n=N.forwardRef((a,i)=>{const{asChild:s,...o}=a,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(u,{...o,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Sae(e,t){e&&Lp.flushSync(()=>e.dispatchEvent(t))}function Zn(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),N.useMemo(()=>(...r)=>t.current?.(...r),[])}function Tae(e,t=globalThis?.document){const r=Zn(e);N.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Aae="DismissableLayer",Y5="dismissableLayer.update",Cae="dismissableLayer.pointerDownOutside",Oae="dismissableLayer.focusOutside",sN,HF=N.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ay=N.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:o,...u}=e,c=N.useContext(HF),[h,d]=N.useState(null),m=h?.ownerDocument??globalThis?.document,[,v]=N.useState({}),y=nr(t,M=>d(M)),b=Array.from(c.layers),[E]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),_=b.indexOf(E),T=h?b.indexOf(h):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,P=T>=_,O=Rae(M=>{const j=M.target,z=[...c.branches].some($=>$.contains(j));!P||z||(a?.(M),s?.(M),M.defaultPrevented||o?.())},m),k=Mae(M=>{const j=M.target;[...c.branches].some($=>$.contains(j))||(i?.(M),s?.(M),M.defaultPrevented||o?.())},m);return Tae(M=>{T===c.layers.size-1&&(n?.(M),!M.defaultPrevented&&o&&(M.preventDefault(),o()))},m),N.useEffect(()=>{if(h)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(sN=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(h)),c.layers.add(h),oN(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=sN)}},[h,m,r,c]),N.useEffect(()=>()=>{h&&(c.layers.delete(h),c.layersWithOutsidePointerEventsDisabled.delete(h),oN())},[h,c]),N.useEffect(()=>{const M=()=>v({});return document.addEventListener(Y5,M),()=>document.removeEventListener(Y5,M)},[]),x.jsx(ht.div,{...u,ref:y,style:{pointerEvents:C?P?"auto":"none":void 0,...e.style},onFocusCapture:Tt(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Tt(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Tt(e.onPointerDownCapture,O.onPointerDownCapture)})});Ay.displayName=Aae;var kae="DismissableLayerBranch",Nae=N.forwardRef((e,t)=>{const r=N.useContext(HF),n=N.useRef(null),a=nr(t,n);return N.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),x.jsx(ht.div,{...e,ref:a})});Nae.displayName=kae;function Rae(e,t=globalThis?.document){const r=Zn(e),n=N.useRef(!1),a=N.useRef(()=>{});return N.useEffect(()=>{const i=o=>{if(o.target&&!n.current){let u=function(){qF(Cae,r,c,{discrete:!0})};const c={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=u,t.addEventListener("click",a.current,{once:!0})):u()}else t.removeEventListener("click",a.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Mae(e,t=globalThis?.document){const r=Zn(e),n=N.useRef(!1);return N.useEffect(()=>{const a=i=>{i.target&&!n.current&&qF(Oae,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function oN(){const e=new CustomEvent(Y5);document.dispatchEvent(e)}function qF(e,t,r,{discrete:n}){const a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Sae(a,i):a.dispatchEvent(i)}var rn=globalThis?.document?N.useLayoutEffect:()=>{},Pae=by[" useId ".trim().toString()]||(()=>{}),Iae=0;function gi(e){const[t,r]=N.useState(Pae());return rn(()=>{r(n=>n??String(Iae++))},[e]),t?`radix-${t}`:""}const Dae=["top","right","bottom","left"],Tl=Math.min,za=Math.max,$1=Math.round,Ng=Math.floor,gs=e=>({x:e,y:e}
vendor: 18,276 bytes, line 50
50),Lae={left:"right",right:"left",bottom:"top",top:"bottom"},jae={start:"end",end:"start"};function X5(e,t,r){return za(e,Tl(t,r))}function mo(e,t){return typeof e=="function"?e(t):e}function go(e){return e.split("-")[0]}function x0(e){return e.split("-")[1]}function DT(e){return e==="x"?"y":"x"}function LT(e){return e==="y"?"height":"width"}const Bae=new Set(["top","bottom"]);function cs(e){return Bae.has(go(e))?"y":"x"}function jT(e){return DT(cs(e))}function zae(e,t,r){r===void 0&&(r=!1);const n=x0(e),a=jT(e),i=LT(a);let s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=F1(s)),[s,F1(s)]}function $ae(e){const t=F1(e);return[K5(e),t,K5(t)]}function K5(e){return e.replace(/start|end/g,t=>jae[t])}const lN=["left","right"],uN=["right","left"],Fae=["top","bottom"],Uae=["bottom","top"];function Hae(e,t,r){switch(e){case"top":case"bottom":return r?t?uN:lN:t?lN:uN;case"left":case"right":return t?Fae:Uae;default:return[]}}function qae(e,t,r,n){const a=x0(e);let i=Hae(go(e),r==="start",n);return a&&(i=i.map(s=>s+"-"+a),t&&(i=i.concat(i.map(K5)))),i}function F1(e){return e.replace(/left|right|bottom|top/g,t=>Lae[t])}function Vae(e){return{top:0,right:0,bottom:0,left:0,...e}}function VF(e){return typeof e!="number"?Vae(e):{top:e,right:e,bottom:e,left:e}}function U1(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function cN(e,t,r){let{reference:n,floating:a}=e;const i=cs(t),s=jT(t),o=LT(s),u=go(t),c=i==="y",h=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,m=n[o]/2-a[o]/2;let v;switch(u){case"top":v={x:h,y:n.y-a.height};break;case"bottom":v={x:h,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:d};break;case"left":v={x:n.x-a.width,y:d};break;default:v={x:n.x,y:n.y}}switch(x0(t)){case"start":v[s]-=m*(r&&c?-1:1);break;case"end":v[s]+=m*(r&&c?-1:1);break}return v}const Gae=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,o=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:h,y:d}=cN(c,n,u),m=n,v={},y=0;for(let b=0;b<o.length;b++){const{name:E,fn:_}=o[b],{x:T,y:C,data:P,reset:O}=await _({x:h,y:d,initialPlacement:n,placement:m,strategy:a,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});h=T??h,d=C??d,v={...v,[E]:{...v[E],...P}},O&&y<=50&&(y++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(c=O.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):O.rects),{x:h,y:d}=cN(c,m,u)),b=-1)}return{x:h,y:d,placement:m,strategy:a,middlewareData:v}};async function Bh(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:i,rects:s,elements:o,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:m=!1,padding:v=0}=mo(t,e),y=VF(v),E=o[m?d==="floating"?"reference":"floating":d],_=U1(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(E)))==null||r?E:E.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:h,strategy:u})),T=d==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),P=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},O=U1(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:T,offsetParent:C,strategy:u}):T);return{top:(_.top-O.top+y.top)/P.y,bottom:(O.bottom-_.bottom+y.bottom)/P.y,left:(_.left-O.left+y.left)/P.x,right:(O.right-_.right+y.right)/P.x}}const Wae=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:i,platform:s,elements:o,middlewareData:u}=t,{element:c,padding:h=0}=mo(e,t)||{};if(c==null)return{};const d=VF(h),m={x:r,y:n},v=jT(a),y=LT(v),b=await s.getDimensions(c),E=v==="y",_=E?"top":"left",T=E?"bottom":"right",C=E?"clientHeight":"clientWidth",P=i.reference[y]+i.reference[v]-m[v]-i.floating[y],O=m[v]-i.reference[v],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let M=k?k[C]:0;(!M||!await(s.isElement==null?void 0:s.isElement(k)))&&(M=o.floating[C]||i.floating[y]);const j=P/2-O/2,z=M/2-b[y]/2-1,$=Tl(d[_],z),F=Tl(d[T],z),q=$,Q=M-b[y]-F,X=M/2-b[y]/2+j,te=X5(q,X,Q),U=!u.arrow&&x0(a)!=null&&X!==te&&i.reference[y]/2-(X<q?$:F)-b[y]/2<0,J=U?X<q?X-q:X-Q:0;return{[v]:m[v]+J,data:{[v]:te,centerOffset:X-te-J,...U&&{alignmentOffset:J}},reset:U}}}),Yae=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:i,rects:s,initialPlacement:o,platform:u,elements:c}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...E}=mo(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const _=go(a),T=cs(o),C=go(o)===o,P=await(u.isRTL==null?void 0:u.isRTL(c.floating)),O=m||(C||!b?[F1(o)]:$ae(o)),k=y!=="none";!m&&k&&O.push(...qae(o,b,y,P));const M=[o,...O],j=await Bh(t,E),z=[];let $=((n=i.flip)==null?void 0:n.overflows)||[];if(h&&z.push(j[_]),d){const X=zae(a,s,P);z.push(j[X[0]],j[X[1]])}if($=[...$,{placement:a,overflows:z}],!z.every(X=>X<=0)){var F,q;const X=(((F=i.flip)==null?void 0:F.index)||0)+1,te=M[X];if(te&&(!(d==="alignment"?T!==cs(te):!1)||$.every(ee=>cs(ee.placement)===T?ee.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:te}};let U=(q=$.filter(J=>J.overflows[0]<=0).sort((J,ee)=>J.overflows[1]-ee.overflows[1])[0])==null?void 0:q.placement;if(!U)switch(v){case"bestFit":{var Q;const J=(Q=$.filter(ee=>{if(k){const de=cs(ee.placement);return de===T||de==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(de=>de>0).reduce((de,G)=>de+G,0)]).sort((ee,de)=>ee[1]-de[1])[0])==null?void 0:Q[0];J&&(U=J);break}case"initialPlacement":U=o;break}if(a!==U)return{reset:{placement:U}}}return{}}}};function fN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dN(e){return Dae.some(t=>e[t]>=0)}const Xae=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=mo(e,t);switch(n){case"referenceHidden":{const i=await Bh(t,{...a,elementContext:"reference"}),s=fN(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:dN(s)}}}case"escaped":{const i=await Bh(t,{...a,altBoundary:!0}),s=fN(i,r.floating);return{data:{escapedOffsets:s,escaped:dN(s)}}}default:return{}}}}},GF=new Set(["left","top"]);async function Kae(e,t){const{placement:r,platform:n,elements:a}=e,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),s=go(r),o=x0(r),u=cs(r)==="y",c=GF.has(s)?-1:1,h=i&&u?-1:1,d=mo(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&typeof y=="number"&&(v=o==="end"?y*-1:y),u?{x:v*h,y:m*c}:{x:m*c,y:v*h}}const Qae=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:i,placement:s,middlewareData:o}=t,u=await Kae(t,e);return s===((r=o.offset)==null?void 0:r.placement)&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:a+u.x,y:i+u.y,data:{...u,placement:s}}}}},Zae=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:o={fn:E=>{let{x:_,y:T}=E;return{x:_,y:T}}},...u}=mo(e,t),c={x:r,y:n},h=await Bh(t,u),d=cs(go(a)),m=DT(d);let v=c[m],y=c[d];if(i){const E=m==="y"?"top":"left",_=m==="y"?"bottom":"right",T=v+h[E],C=v-h[_];v=X5(T,v,C)}if(s){const E=d==="y"?"top":"left",_=d==="y"?"bottom":"right",T=y+h[E],C=y-h[_];y=X5(T,y,C)}const b=o.fn({...t,[m]:v,[d]:y});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[m]:i,[d]:s}}}}}},Jae=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:i,middlewareData:s}=t,{offset:o=0,mainAxis:u=!0,crossAxis:c=!0}=mo(e,t),h={x:r,y:n},d=cs(a),m=DT(d);let v=h[m],y=h[d];const b=mo(o,t),E=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(u){const C=m==="y"?"height":"width",P=i.reference[m]-i.floating[C]+E.mainAxis,O=i.reference[m]+i.reference[C]-E.mainAxis;v<P?v=P:v>O&&(v=O)}if(c){var _,T;const C=m==="y"?"width":"height",P=GF.has(go(a)),O=i.reference[d]-i.floating[C]+(P&&((_=s.offset)==null?void 0:_[d])||0)+(P?0:E.crossAxis),k=i.reference[d]+i.reference[C]+(P?0:((T=s.offset)==null?void 0:T[d])||0)-(P?E.crossAxis:0);y<O?y=O:y>k&&(y=k)}return{[m]:v,[d]:y}}}},eie=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:i,platform:s,elements:o}=t,{apply:u=()=>{},...c}=mo(e,t),h=await Bh(t,c),d=go(a),m=x0(a),v=cs(a)==="y",{width:y,height:b}=i.floating;let E,_;d==="top"||d==="bottom"?(E=d,_=m===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(_=d,E=m==="end"?"top":"bottom");const T=b-h.top-h.bottom,C=y-h.left-h.right,P=Tl(b-h[E],T),O=Tl(y-h[_],C),k=!t.middlewareData.shift;let M=P,j=O;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(M=T),k&&!m){const $=za(h.left,0),F=za(h.right,0),q=za(h.top,0),Q=za(h.bottom,0);v?j=y-2*($!==0||F!==0?$+F:za(h.left,h.right)):M=b-2*(q!==0||Q!==0?q+Q:za(h.top,h.bottom))}await u({...t,availableWidth:j,availableHeight:M});const z=await s.getDimensions(o.floating);return y!==z.width||b!==z.height?{reset:{rects:!0}}:{}}}};function Cy(){return typeof window<"u"}function E0(e){return WF(e)?(e.nodeName||"").toLowerCase():"#document"}function Ha(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ws(e){var t;return(t=(WF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function WF(e){return Cy()?e instanceof Node||e instanceof Ha(e).Node:!1}function Fi(e){return Cy()?e instanceof Element||e instanceof Ha(e).Element:!1}function bs(e){return Cy()?e instanceof HTMLElement||e instanceof Ha(e).HTMLElement:!1}function hN(e){return!Cy()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ha(e).ShadowRoot}const tie=new Set(["inline","contents"]);function jp(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Ui(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!tie.has(a)}const rie=new Set(["table","td","th"]);function nie(e){return rie.has(E0(e))}const aie=[":popover-open",":modal"];function Oy(e){return aie.some(t=>{try{return e.matches(t)}catch{return!1}})}const iie=["transform","translate","scale","rotate","perspective"],sie=["transform","translate","scale","rotate","perspective","filter"],oie=["paint","layout","strict","content"];function BT(e){const t=zT(),r=Fi(e)?Ui(e):e;return iie.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||sie.some(n=>(r.willChange||"").includes(n))||oie.some(n=>(r.contain||"").includes(n))}function lie(e){let t=Al(e);for(;bs(t)&&!Ff(t);){if(BT(t))return t;if(Oy(t))return null;t=Al(t)}return null}function zT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const uie=new Set(["html","body","#document"]);function Ff(e){return uie.has(E0(e))}function Ui(e){return Ha(e).getComputedStyle(e)}function ky(e){return Fi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Al(e){if(E0(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hN(e)&&e.host||ws(e);return hN(t)?t.host:t}function YF(e){const t=Al(e);return Ff(t)?e.ownerDocument?e.ownerDocument.body:e.body:bs(t)&&jp(t)?t:YF(t)}function zh(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=YF(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=Ha(a);if(i){const o=Q5(s);return t.concat(s,s.visualViewport||[],jp(a)?a:[],o&&r?zh(o):[])}return t.concat(a,zh(a,[],r))}function Q5(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function XF(e){const t=Ui(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=bs(e),i=a?e.offsetWidth:r,s=a?e.offsetHeight:n,o=$1(r)!==i||$1(n)!==s;return o&&(r=i,n=s),{width:r,height:n,$:o}}function $T(e){return Fi(e)?e:e.contextElement}function Of(e){const t=$T(e);if(!bs(t))return gs(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=XF(t);let s=(i?$1(r.width):r.width)/n,o=(i?$1(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const cie=gs(0);function KF(e){const t=Ha(e);return!zT()||!t.visualViewport?cie:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fie(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ha(e)?!1:t}function Iu(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=$T(e);let s=gs(1);t&&(n?Fi(n)&&(s=Of(n)):s=Of(e));const o=fie(i,r,n)?KF(i):gs(0);let u=(a.left+o.x)/s.x,c=(a.top+o.y)/s.y,h=a.width/s.x,d=a.height/s.y;if(i){const m=Ha(i),v=n&&Fi(n)?Ha(n):n;let y=m,b=Q5(y);for(;b&&n&&v!==y;){const E=Of(b),_=b.getBoundingClientRect(),T=Ui(b),C=_.left+(b.clientLeft+parseFloat(T.paddingLeft))*E.x,P=_.top+(b.clientTop+parseFloat(T.paddingTop))*E.y;u*=E.x,c*=E.y,h*=E.x,d*=E.y,u+=C,c+=P,y=Ha(b),b=Q5(y)}}return U1({width:h,height:d,x:u,y:c})}function Ny(e,t){const r=ky(e).scrollLeft;return t?t.left+r:Iu(ws(e)).left+r}function QF(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ny(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function die(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const i=a==="fixed",s=ws(n),o=t?Oy(t.floating):!1;if(n===s||o&&i)return r;let u={scrollLeft:0,scrollTop:0},c=gs(1);const h=gs(0),d=bs(n);if((d||!d&&!i)&&((E0(n)!=="body"||jp(s))&&(u=ky(n)),bs(n))){const v=Iu(n);c=Of(n),h.x=v.x+n.clientLeft,h.y=v.y+n.clientTop}const m=s&&!d&&!i?QF(s,u):gs(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+h.x+m.x,y:r.y*c.y-u.scrollTop*c.y+h.y+m.y}}function hie(e){return Array.from(e.getClientRects())}function pie(e){const t=ws(e),r=ky(e),n=e.ownerDocument.body,a=za(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=za(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Ny(e);const o=-r.scrollTop;return Ui(n).direction==="rtl"&&(s+=za(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:o}}const pN=25;function mie(e,t){const r=Ha(e),n=ws(e),a=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,o=0,u=0;if(a){i=a.width,s=a.height;const h=zT();(!h||h&&t==="fixed")&&(o=a.offsetLeft,u=a.offsetTop)}const c=Ny(n);if(c<=0){const h=n.ownerDocument,d=h.body,m=getComputedStyle(d),v=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(n.clientWidth-d.clientWidth-v);y<=pN&&(i-=y)}else c<=pN&&(i+=c);return{width:i,height:s,x:o,y:u}}const gie=new Set(["absolute","fixed"]);function vie(e,t){const r=Iu(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=bs(e)?Of(e):gs(1),s=e.clientWidth*i.x,o=e.clientHeight*i.y,u=a*i.x,c=n*i.y;return{width:s,height:o,x:u,y:c}}function mN(e,t,r){let n;if(t==="viewport")n=mie(e,r);else if(t==="document")n=pie(ws(e));else if(Fi(t))n=vie(t,r);else{const a=KF(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return U1(n)}function ZF(e,t){const r=Al(e);return r===t||!Fi(r)||Ff(r)?!1:Ui(r).position==="fixed"||ZF(r,t)}function yie(e,t){const r=t.get(e);if(r)return r;let n=zh(e,[],!1).filter(o=>Fi(o)&&E0(o)!=="body"),a=null;const i=Ui(e).position==="fixed";let s=i?Al(e):e;for(;Fi(s)&&!Ff(s);){const o=Ui(s),u=BT(s);!u&&o.position==="fixed"&&(a=null),(i?!u&&!a:!u&&o.position==="static"&&!!a&&gie.has(a.position)||jp(s)&&!u&&ZF(e,s))?n=n.filter(h=>h!==s):a=o,s=Al(s)}return t.set(e,n),n}function bie(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const s=[...r==="clippingAncestors"?Oy(t)?[]:yie(t,this._c):[].concat(r),n],o=s[0],u=s.reduce((c,h)=>{const d=mN(t,h,a);return c.top=za(d.top,c.top),c.right=Tl(d.right,c.right),c.bottom=Tl(d.bottom,c.bottom),c.left=za(d.left,c.left),c},mN(t,o,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function xie(e){const{width:t,height:r}=XF(e);return{width:t,height:r}}function Eie(e,t,r){const n=bs(t),a=ws(t),i=r==="fixed",s=Iu(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const u=gs(0);function c(){u.x=Ny(a)}if(n||!n&&!i)if((E0(t)!=="body"||jp(a))&&(o=ky(t)),n){const v=Iu(t,!0,i,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else a&&c();i&&!n&&a&&c();const h=a&&!n&&!i?QF(a,o):gs(0),d=s.left+o.scrollLeft-u.x-h.x,m=s.top+o.scrollTop-u.y-h.y;return{x:d,y:m,width:s.width,height:s.height}}function y4(e){return Ui(e).position==="static"}function gN(e,t){if(!bs(e)||Ui(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ws(e)===r&&(r=r.ownerDocument.body),r}function JF(e,t){const r=Ha(e);if(Oy(e))return r;if(!bs(e)){let a=Al(e);for(;a&&!Ff(a);){if(Fi(a)&&!y4(a))return a;a=Al(a)}return r}let n=gN(e,t);for(;n&&nie(n)&&y4(n);)n=gN(n,t);return n&&Ff(n)&&y4(n)&&!BT(n)?r:n||lie(e)||r}const wie=async function(e){const t=this.getOffsetParent||JF,r=this.getDimensions,n=await r(e.floating);return{reference:Eie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function _ie(e){return Ui(e).direction==="rtl"}const Sie={convertOffsetParentRelativeRectToViewportRelativeRect:die,getDocumentElement:ws,getClippingRect:bie,getOffsetParent:JF,getElementRects:wie,getClientRects:hie,getDimensions:xie,getScale:Of,isElement:Fi,isRTL:_ie};function eU(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Tie(e,t){let r=null,n;const a=ws(e);function i(){var o;clearTimeout(n),(o=r)==null||o.disconnect(),r=null}function s(o,u){o===void 0&&(o=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:h,top:d,width:m,height:v}=c;if(o||t(),!m||!v)return;const y=Ng(d),b=Ng(a.clientWidth-(h+m)),E=Ng(a.clientHeight-(d+v)),_=Ng(h),C={rootMargin:-y+"px "+-b+"px "+-E+"px "+-_+"px",threshold:za(0,Tl(1,u))||1};let P=!0;function O(k){const M=k[0].intersectionRatio;if(M!==u){if(!P)return s();
vendor: 9,106 bytes, line 50
50M?s(!1,M):n=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!eU(c,e.getBoundingClientRect())&&s(),P=!1}try{r=new IntersectionObserver(O,{...C,root:a.ownerDocument})}catch{r=new IntersectionObserver(O,C)}r.observe(e)}return s(!0),i}function Aie(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=$T(e),h=a||i?[...c?zh(c):[],...zh(t)]:[];h.forEach(_=>{a&&_.addEventListener("scroll",r,{passive:!0}),i&&_.addEventListener("resize",r)});const d=c&&o?Tie(c,r):null;let m=-1,v=null;s&&(v=new ResizeObserver(_=>{let[T]=_;T&&T.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=v)==null||C.observe(t)})),r()}),c&&!u&&v.observe(c),v.observe(t));let y,b=u?Iu(e):null;u&&E();function E(){const _=Iu(e);b&&!eU(b,_)&&r(),b=_,y=requestAnimationFrame(E)}return r(),()=>{var _;h.forEach(T=>{a&&T.removeEventListener("scroll",r),i&&T.removeEventListener("resize",r)}),d?.(),(_=v)==null||_.disconnect(),v=null,u&&cancelAnimationFrame(y)}}const Cie=Qae,Oie=Zae,kie=Yae,Nie=eie,Rie=Xae,vN=Wae,Mie=Jae,Pie=(e,t,r)=>{const n=new Map,a={platform:Sie,...r},i={...a.platform,_c:n};return Gae(e,t,{...a,platform:i})};var Iie=typeof document<"u",Die=function(){},C1=Iie?N.useLayoutEffect:Die;function H1(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!H1(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&e.$$typeof)&&!H1(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function tU(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yN(e,t){const r=tU(e);return Math.round(t*r)/r}function b4(e){const t=N.useRef(e);return C1(()=>{t.current=e}),t}function Lie(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:s}={},transform:o=!0,whileElementsMounted:u,open:c}=e,[h,d]=N.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=N.useState(n);H1(m,n)||v(n);const[y,b]=N.useState(null),[E,_]=N.useState(null),T=N.useCallback(ee=>{ee!==k.current&&(k.current=ee,b(ee))},[]),C=N.useCallback(ee=>{ee!==M.current&&(M.current=ee,_(ee))},[]),P=i||y,O=s||E,k=N.useRef(null),M=N.useRef(null),j=N.useRef(h),z=u!=null,$=b4(u),F=b4(a),q=b4(c),Q=N.useCallback(()=>{if(!k.current||!M.current)return;const ee={placement:t,strategy:r,middleware:m};F.current&&(ee.platform=F.current),Pie(k.current,M.current,ee).then(de=>{const G={...de,isPositioned:q.current!==!1};X.current&&!H1(j.current,G)&&(j.current=G,Lp.flushSync(()=>{d(G)}))})},[m,t,r,F,q]);C1(()=>{c===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,d(ee=>({...ee,isPositioned:!1})))},[c]);const X=N.useRef(!1);C1(()=>(X.current=!0,()=>{X.current=!1}),[]),C1(()=>{if(P&&(k.current=P),O&&(M.current=O),P&&O){if($.current)return $.current(P,O,Q);Q()}},[P,O,Q,$,z]);const te=N.useMemo(()=>({reference:k,floating:M,setReference:T,setFloating:C}),[T,C]),U=N.useMemo(()=>({reference:P,floating:O}),[P,O]),J=N.useMemo(()=>{const ee={position:r,left:0,top:0};if(!U.floating)return ee;const de=yN(U.floating,h.x),G=yN(U.floating,h.y);return o?{...ee,transform:"translate("+de+"px, "+G+"px)",...tU(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:de,top:G}},[r,o,U.floating,h.x,h.y]);return N.useMemo(()=>({...h,update:Q,refs:te,elements:U,floatingStyles:J}),[h,Q,te,U,J])}const jie=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?vN({element:n.current,padding:a}).fn(r):{}:n?vN({element:n,padding:a}).fn(r):{}}}},Bie=(e,t)=>({...Cie(e),options:[e,t]}),zie=(e,t)=>({...Oie(e),options:[e,t]}),$ie=(e,t)=>({...Mie(e),options:[e,t]}),Fie=(e,t)=>({...kie(e),options:[e,t]}),Uie=(e,t)=>({...Nie(e),options:[e,t]}),Hie=(e,t)=>({...Rie(e),options:[e,t]}),qie=(e,t)=>({...jie(e),options:[e,t]});var Vie="Arrow",rU=N.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...i}=e;return x.jsx(ht.svg,{...i,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});rU.displayName=Vie;var Gie=rU;function Wie(e){const[t,r]=N.useState(void 0);return rn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let s,o;if("borderBoxSize"in i){const u=i.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,o=c.blockSize}else s=e.offsetWidth,o=e.offsetHeight;r({width:s,height:o})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var FT="Popper",[nU,Ry]=rc(FT),[Yie,aU]=nU(FT),iU=e=>{const{__scopePopper:t,children:r}=e,[n,a]=N.useState(null);return x.jsx(Yie,{scope:t,anchor:n,onAnchorChange:a,children:r})};iU.displayName=FT;var sU="PopperAnchor",oU=N.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,i=aU(sU,r),s=N.useRef(null),o=nr(t,s),u=N.useRef(null);return N.useEffect(()=>{const c=u.current;u.current=n?.current||s.current,c!==u.current&&i.onAnchorChange(u.current)}),n?null:x.jsx(ht.div,{...a,ref:o})});oU.displayName=sU;var UT="PopperContent",[Xie,Kie]=nU(UT),lU=N.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:h=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:y,...b}=e,E=aU(UT,r),[_,T]=N.useState(null),C=nr(t,ye=>T(ye)),[P,O]=N.useState(null),k=Wie(P),M=k?.width??0,j=k?.height??0,z=n+(i!=="center"?"-"+i:""),$=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},F=Array.isArray(c)?c:[c],q=F.length>0,Q={padding:$,boundary:F.filter(Zie),altBoundary:q},{refs:X,floatingStyles:te,placement:U,isPositioned:J,middlewareData:ee}=Lie({strategy:"fixed",placement:z,whileElementsMounted:(...ye)=>Aie(...ye,{animationFrame:v==="always"}),elements:{reference:E.anchor},middleware:[Bie({mainAxis:a+j,alignmentAxis:s}),u&&zie({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?$ie():void 0,...Q}),u&&Fie({...Q}),Uie({...Q,apply:({elements:ye,rects:Ne,availableWidth:xe,availableHeight:Pe})=>{const{width:ze,height:we}=Ne.reference,ft=ye.floating.style;ft.setProperty("--radix-popper-available-width",`${xe}px`),ft.setProperty("--radix-popper-available-height",`${Pe}px`),ft.setProperty("--radix-popper-anchor-width",`${ze}px`),ft.setProperty("--radix-popper-anchor-height",`${we}px`)}}),P&&qie({element:P,padding:o}),Jie({arrowWidth:M,arrowHeight:j}),m&&Hie({strategy:"referenceHidden",...Q})]}),[de,G]=fU(U),Y=Zn(y);rn(()=>{J&&Y?.()},[J,Y]);const W=ee.arrow?.x,L=ee.arrow?.y,le=ee.arrow?.centerOffset!==0,[fe,Se]=N.useState();return rn(()=>{_&&Se(window.getComputedStyle(_).zIndex)},[_]),x.jsx("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:J?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[ee.transformOrigin?.x,ee.transformOrigin?.y].join(" "),...ee.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(Xie,{scope:r,placedSide:de,onArrowChange:O,arrowX:W,arrowY:L,shouldHideArrow:le,children:x.jsx(ht.div,{"data-side":de,"data-align":G,...b,ref:C,style:{...b.style,animation:J?void 0:"none"}})})})});lU.displayName=UT;var uU="PopperArrow",Qie={top:"bottom",right:"left",bottom:"top",left:"right"},cU=N.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,i=Kie(uU,n),s=Qie[i.placedSide];return x.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:x.jsx(Gie,{...a,ref:r,style:{...a.style,display:"block"}})})});cU.displayName=uU;function Zie(e){return e!==null}var Jie=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:a}=t,s=a.arrow?.centerOffset!==0,o=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,h]=fU(r),d={start:"0%",center:"50%",end:"100%"}[h],m=(a.arrow?.x??0)+o/2,v=(a.arrow?.y??0)+u/2;let y="",b="";return c==="bottom"?(y=s?d:`${m}px`,b=`${-u}px`):c==="top"?(y=s?d:`${m}px`,b=`${n.floating.height+u}px`):c==="right"?(y=`${-u}px`,b=s?d:`${v}px`):c==="left"&&(y=`${n.floating.width+u}px`,b=s?d:`${v}px`),{data:{x:y,y:b}}}});function fU(e){const[t,r="center"]=e.split("-");return[t,r]}var ese=iU,dU=oU,hU=lU,pU=cU,tse="Portal",HT=N.forwardRef((e,t)=>
vendor: 4,178 bytes, line 50
50{const{container:r,...n}=e,[a,i]=N.useState(!1);rn(()=>i(!0),[]);const s=r||a&&globalThis?.document?.body;return s?$F.createPortal(x.jsx(ht.div,{...n,ref:t}),s):null});HT.displayName=tse;function rse(e,t){return N.useReducer((r,n)=>t[r][n]??r,e)}var Ao=e=>{const{present:t,children:r}=e,n=nse(t),a=typeof r=="function"?r({present:n.isPresent}):N.Children.only(r),i=nr(n.ref,ase(a));return typeof r=="function"||n.isPresent?N.cloneElement(a,{ref:i}):null};Ao.displayName="Presence";function nse(e){const[t,r]=N.useState(),n=N.useRef(null),a=N.useRef(e),i=N.useRef("none"),s=e?"mounted":"unmounted",[o,u]=rse(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const c=Rg(n.current);i.current=o==="mounted"?c:"none"},[o]),rn(()=>{const c=n.current,h=a.current;if(h!==e){const m=i.current,v=Rg(c);e?u("MOUNT"):v==="none"||c?.display==="none"?u("UNMOUNT"):u(h&&m!==v?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,u]),rn(()=>{if(t){let c;const h=t.ownerDocument.defaultView??window,d=v=>{const b=Rg(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&b&&(u("ANIMATION_END"),!a.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",c=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},m=v=>{v.target===t&&(i.current=Rg(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{h.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:N.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Rg(e){return e?.animationName||"none"}function ase(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ise=by[" useInsertionEffect ".trim().toString()]||rn;function Z5({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[a,i,s]=sse({defaultProp:t,onChange:r}),o=e!==void 0,u=o?e:a;{const h=N.useRef(e!==void 0);N.useEffect(()=>{const d=h.current;d!==o&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${o?"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=o},[o,n])}const c=N.useCallback(h=>{if(o){const d=ose(h)?h(e):h;d!==e&&s.current?.(d)}else i(h)},[o,e,i,s]);return[u,c]}function sse({defaultProp:e,onChange:t}){const[r,n]=N.useState(e),a=N.useRef(r),i=N.useRef(t);return ise(()=>{i.current=t},[t]),N.useEffect(()=>{a.current!==r&&(i.current?.(r),a.current=r)},[r,a]),[r,n,i]}function ose(e){return typeof e=="function"}var mU=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"}),lse="VisuallyHidden",gU=N.forwardRef((e,t)=>x.jsx(ht.span,{...e,ref:t,style:{...mU,...e.style}}));gU.displayName=lse;var use=gU,[My]=rc("Tooltip",[Ry]),qT=Ry(),vU="TooltipProvider",cse=700,bN="tooltip.open",[fse,yU]=My(vU),bU=e=>{const{__scopeTooltip:t,delayDuration:r=cse,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:i}=e,s=N.useRef(!0),o=N.useRef(!1),u=N.useRef(0);return N.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),x.jsx(fse,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:N.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:N.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:o,onPointerInTransitChange:N.useCallback(c=>{o.current=c},[]),disableHoverableContent:a,children:i})};bU.displayName=vU;var xU="Tooltip",[cje,Py]=My(xU),J5="TooltipTrigger",dse=N.forwardRef((e,t)=>
vendor: 10,328 bytes, line 50
50{const{__scopeTooltip:r,...n}=e,a=Py(J5,r),i=yU(J5,r),s=qT(r),o=N.useRef(null),u=nr(t,o,a.onTriggerChange),c=N.useRef(!1),h=N.useRef(!1),d=N.useCallback(()=>c.current=!1,[]);return N.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),x.jsx(dU,{asChild:!0,...s,children:x.jsx(ht.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:u,onPointerMove:Tt(e.onPointerMove,m=>{m.pointerType!=="touch"&&!h.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),h.current=!0)}),onPointerLeave:Tt(e.onPointerLeave,()=>{a.onTriggerLeave(),h.current=!1}),onPointerDown:Tt(e.onPointerDown,()=>{a.open&&a.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Tt(e.onFocus,()=>{c.current||a.onOpen()}),onBlur:Tt(e.onBlur,a.onClose),onClick:Tt(e.onClick,a.onClose)})})});dse.displayName=J5;var hse="TooltipPortal",[fje,pse]=My(hse,{forceMount:void 0}),Uf="TooltipContent",mse=N.forwardRef((e,t)=>{const r=pse(Uf,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...i}=e,s=Py(Uf,e.__scopeTooltip);return x.jsx(Ao,{present:n||s.open,children:s.disableHoverableContent?x.jsx(EU,{side:a,...i,ref:t}):x.jsx(gse,{side:a,...i,ref:t})})}),gse=N.forwardRef((e,t)=>{const r=Py(Uf,e.__scopeTooltip),n=yU(Uf,e.__scopeTooltip),a=N.useRef(null),i=nr(t,a),[s,o]=N.useState(null),{trigger:u,onClose:c}=r,h=a.current,{onPointerInTransitChange:d}=n,m=N.useCallback(()=>{o(null),d(!1)},[d]),v=N.useCallback((y,b)=>{const E=y.currentTarget,_={x:y.clientX,y:y.clientY},T=Ese(_,E.getBoundingClientRect()),C=wse(_,T),P=_se(b.getBoundingClientRect()),O=Tse([...C,...P]);o(O),d(!0)},[d]);return N.useEffect(()=>()=>m(),[m]),N.useEffect(()=>{if(u&&h){const y=E=>v(E,h),b=E=>v(E,u);return u.addEventListener("pointerleave",y),h.addEventListener("pointerleave",b),()=>{u.removeEventListener("pointerleave",y),h.removeEventListener("pointerleave",b)}}},[u,h,v,m]),N.useEffect(()=>{if(s){const y=b=>{const E=b.target,_={x:b.clientX,y:b.clientY},T=u?.contains(E)||h?.contains(E),C=!Sse(_,s);T?m():C&&(m(),c())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[u,h,s,c,m]),x.jsx(EU,{...e,ref:i})}),[vse,yse]=My(xU,{isInside:!1}),bse=bae("TooltipContent"),EU=N.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:s,...o}=e,u=Py(Uf,r),c=qT(r),{onClose:h}=u;return N.useEffect(()=>(document.addEventListener(bN,h),()=>document.removeEventListener(bN,h)),[h]),N.useEffect(()=>{if(u.trigger){const d=m=>{m.target?.contains(u.trigger)&&h()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[u.trigger,h]),x.jsx(Ay,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:h,children:x.jsxs(hU,{"data-state":u.stateAttribute,...c,...o,ref:t,style:{...o.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(bse,{children:n}),x.jsx(vse,{scope:r,isInside:!0,children:x.jsx(use,{id:u.contentId,role:"tooltip",children:a||n})})]})})});mse.displayName=Uf;var wU="TooltipArrow",xse=N.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=qT(r);return yse(wU,r).isInside?null:x.jsx(pU,{...a,...n,ref:t})});xse.displayName=wU;function Ese(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,a,i)){case i:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function wse(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function _se(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}function Sse(e,t){const{x:r,y:n}=e;let a=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const o=t[i],u=t[s],c=o.x,h=o.y,d=u.x,m=u.y;h>n!=m>n&&r<(d-c)*(n-h)/(m-h)+c&&(a=!a)}return a}function Tse(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ase(t)}function Ase(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(a.y-s.y)>=(i.y-s.y)*(a.x-s.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;r.length>=2;){const i=r[r.length-1],s=r[r.length-2];if((i.x-s.x)*(a.y-s.y)>=(i.y-s.y)*(a.x-s.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Cse=bU;function _U(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=_U(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Lt(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=_U(e))&&(n&&(n+=" "),n+=t);return n}const VT="-",Ose=e=>{const t=Nse(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const o=s.split(VT);return o[0]===""&&o.length!==1&&o.shift(),SU(o,t)||kse(s)},getConflictingClassGroupIds:(s,o)=>{const u=r[s]||[];return o&&n[s]?[...u,...n[s]]:u}}},SU=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?SU(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(VT);return t.validators.find(({validator:s})=>s(i))?.classGroupId},xN=/^\[(.+)\]$/,kse=e=>{if(xN.test(e)){const t=xN.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Nse=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const a in r)e_(r[a],n,a,t);return n},e_=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:EN(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(Rse(a)){e_(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,s])=>{e_(s,EN(t,i),r,n)})})},EN=(e,t)=>{let r=e;return t.split(VT).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Rse=e=>e.isThemeGetter,Mse=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return a(i,s),s},set(i,s){r.has(i)?r.set(i,s):a(i,s)}}},t_="!",r_=":",Pse=r_.length,Ise=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=a=>{const i=[];let s=0,o=0,u=0,c;for(let y=0;y<a.length;y++){let b=a[y];if(s===0&&o===0){if(b===r_){i.push(a.slice(u,y)),u=y+Pse;continue}if(b==="/"){c=y;continue}}b==="["?s++:b==="]"?s--:b==="("?o++:b===")"&&o--}const h=i.length===0?a:a.substring(u),d=Dse(h),m=d!==h,v=c&&c>u?c-u:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:v}};if(t){const a=t+r_,i=n;n=s=>s.startsWith(a)?i(s.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const a=n;n=i=>r({className:i,parseClassName:a})}return n},Dse=e=>e.endsWith(t_)?e.substring(0,e.length-1):e.startsWith(t_)?e.substring(1):e,Lse=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const a=[];let i=[];return n.forEach(s=>{s[0]==="["||t[s]?(a.push(...i.sort(),s),i=[]):i.push(s)}),a.push(...i.sort()),a}},jse=e=>({cache:Mse(e.cacheSize),parseClassName:Ise(e),sortModifiers:Lse(e),...Ose(e)}),Bse=/\s+/,zse=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:i}=t,s=[],o=e.trim().split(Bse);let u="";for(let c=o.length-1;c>=0;c-=1){const h=o[c],{isExternal:d,modifiers:m,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:b}=r(h);if(d){u=h+(u.length>0?" "+u:u);continue}let E=!!b,_=n(E?y.substring(0,b):y);if(!_){if(!E){u=h+(u.length>0?" "+u:u);continue}if(_=n(y),!_){u=h+(u.length>0?" "+u:u);continue}E=!1}const T=i(m).join(":"),C=v?T+t_:T,P=C+_;if(s.includes(P))continue;s.push(P);const O=a(_,E);for(let k=0;k<O.length;++k){const M=O[k];s.push(C+M)}u=h+(u.length>0?" "+u:u)}return u};function $se(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=TU(t))&&(n&&(n+=" "),n+=r);return n}const TU=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=TU(e[n]))&&(r&&(r+=" "),r+=t);return r};function Fse(e,...t){let r,n,a,i=s;function s(u){const c=t.reduce((h,d)=>d(h),e());return r=jse(c),n=r.cache.get,a=r.cache.set,i=o,o(u)}function o(u){const c=n(u);if(c)return c;const h=zse(u,r);return a(u,h),h}return function(){return i($se.apply(null,arguments))}}const sn=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},AU=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,CU=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Use=/^\d+\/\d+$/,Hse=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qse=/\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$/,Vse=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gse=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wse=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rf=e=>Use.test(e),Et=e=>!!e&&!Number.isNaN(Number(e)),al=e=>!!e&&Number.isInteger(Number(e)),x4=e=>e.endsWith("%")&&Et(e.slice(0,-1)),Ys=e=>Hse.test(e),Yse=()=>!0,Xse=e=>qse.test(e)&&!Vse.test(e),OU=()=>!1,Kse=e=>Gse.test(e),Qse=e=>Wse.test(e),Zse=e=>!Ye(e)&&!Xe(e),Jse=e=>w0(e,RU,OU),Ye=e=>AU.test(e),ou=e=>w0(e,MU,Xse),E4=e=>w0(e,aoe,Et),wN=e=>w0(e,kU,OU),eoe=e=>w0(e,NU,Qse),Mg=e=>w0(e,PU,Kse),Xe=e=>CU.test(e),jd=e=>_0(e,MU),toe=e=>_0(e,ioe),_N=e=>_0(e,kU),roe=e=>_0(e,RU),noe=e=>_0(e,NU),Pg=e=>_0(e,PU,!0),w0=(e,t,r)=>{const n=AU.exec(e);
vendor: 4,482 bytes, line 50
50return n?n[1]?t(n[1]):r(n[2]):!1},_0=(e,t,r=!1)=>{const n=CU.exec(e);return n?n[1]?t(n[1]):r:!1},kU=e=>e==="position"||e==="percentage",NU=e=>e==="image"||e==="url",RU=e=>e==="length"||e==="size"||e==="bg-size",MU=e=>e==="length",aoe=e=>e==="number",ioe=e=>e==="family-name",PU=e=>e==="shadow",soe=()=>{const e=sn("color"),t=sn("font"),r=sn("text"),n=sn("font-weight"),a=sn("tracking"),i=sn("leading"),s=sn("breakpoint"),o=sn("container"),u=sn("spacing"),c=sn("radius"),h=sn("shadow"),d=sn("inset-shadow"),m=sn("text-shadow"),v=sn("drop-shadow"),y=sn("blur"),b=sn("perspective"),E=sn("aspect"),_=sn("ease"),T=sn("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...P(),Xe,Ye],k=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],j=()=>[Xe,Ye,u],z=()=>[rf,"full","auto",...j()],$=()=>[al,"none","subgrid",Xe,Ye],F=()=>["auto",{span:["full",al,Xe,Ye]},al,Xe,Ye],q=()=>[al,"auto",Xe,Ye],Q=()=>["auto","min","max","fr",Xe,Ye],X=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...j()],J=()=>[rf,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],ee=()=>[e,Xe,Ye],de=()=>[...P(),_N,wN,{position:[Xe,Ye]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",roe,Jse,{size:[Xe,Ye]}],W=()=>[x4,jd,ou],L=()=>["","none","full",c,Xe,Ye],le=()=>["",Et,jd,ou],fe=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[Et,x4,_N,wN],Ne=()=>["","none",y,Xe,Ye],xe=()=>["none",Et,Xe,Ye],Pe=()=>["none",Et,Xe,Ye],ze=()=>[Et,Xe,Ye],we=()=>[rf,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ys],breakpoint:[Ys],color:[Yse],container:[Ys],"drop-shadow":[Ys],ease:["in","out","in-out"],font:[Zse],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ys],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ys],shadow:[Ys],spacing:["px",Et],text:[Ys],"text-shadow":[Ys],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rf,Ye,Xe,E]}],container:["container"],columns:[{columns:[Et,Ye,Xe,o]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:O()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[al,"auto",Xe,Ye]}],basis:[{basis:[rf,"full","auto",o,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Et,rf,"auto","initial","none",Ye]}],grow:[{grow:["",Et,Xe,Ye]}],shrink:[{shrink:["",Et,Xe,Ye]}],order:[{order:[al,"first","last","none",Xe,Ye]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":q()}
vendor: 11,104 bytes, line 50
50],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[o,"screen",...J()]}],"min-w":[{"min-w":[o,"screen","none",...J()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",r,jd,ou]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Xe,E4]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",x4,Ye]}],"font-family":[{font:[toe,Ye,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,Xe,Ye]}],"line-clamp":[{"line-clamp":[Et,"none",Xe,E4]}],leading:[{leading:[i,...j()]}],"list-image":[{"list-image":["none",Xe,Ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Xe,Ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ee()}],"text-color":[{text:ee()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Et,"from-font","auto",Xe,ou]}],"text-decoration-color":[{decoration:ee()}],"underline-offset":[{"underline-offset":[Et,"auto",Xe,Ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Xe,Ye]}],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",Xe,Ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},al,Xe,Ye],radial:["",Xe,Ye],conic:[al,Xe,Ye]},noe,eoe]}],"bg-color":[{bg:ee()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:ee()}],"gradient-via":[{via:ee()}],"gradient-to":[{to:ee()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:ee()}],"border-color-x":[{"border-x":ee()}],"border-color-y":[{"border-y":ee()}],"border-color-s":[{"border-s":ee()}],"border-color-e":[{"border-e":ee()}],"border-color-t":[{"border-t":ee()}],"border-color-r":[{"border-r":ee()}],"border-color-b":[{"border-b":ee()}],"border-color-l":[{"border-l":ee()}],"divide-color":[{divide:ee()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Et,Xe,Ye]}],"outline-w":[{outline:["",Et,jd,ou]}],"outline-color":[{outline:ee()}],shadow:[{shadow:["","none",h,Pg,Mg]}],"shadow-color":[{shadow:ee()}],"inset-shadow":[{"inset-shadow":["none",d,Pg,Mg]}],"inset-shadow-color":[{"inset-shadow":ee()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ee()}],"ring-offset-w":[{"ring-offset":[Et,ou]}],"ring-offset-color":[{"ring-offset":ee()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":ee()}],"text-shadow":[{"text-shadow":["none",m,Pg,Mg]}],"text-shadow-color":[{"text-shadow":ee()}],opacity:[{opacity:[Et,Xe,Ye]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"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":[Et]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":ee()}],"mask-image-linear-to-color":[{"mask-linear-to":ee()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":ee()}],"mask-image-t-to-color":[{"mask-t-to":ee()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":ee()}],"mask-image-r-to-color":[{"mask-r-to":ee()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":ee()}],"mask-image-b-to-color":[{"mask-b-to":ee()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":ee()}],"mask-image-l-to-color":[{"mask-l-to":ee()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":ee()}],"mask-image-x-to-color":[{"mask-x-to":ee()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":ee()}],"mask-image-y-to-color":[{"mask-y-to":ee()}],"mask-image-radial":[{"mask-radial":[Xe,Ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":ee()}],"mask-image-radial-to-color":[{"mask-radial-to":ee()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[Et]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":ee()}],"mask-image-conic-to-color":[{"mask-conic-to":ee()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Xe,Ye]}],filter:[{filter:["","none",Xe,Ye]}],blur:[{blur:Ne()}],brightness:[{brightness:[Et,Xe,Ye]}],contrast:[{contrast:[Et,Xe,Ye]}],"drop-shadow":[{"drop-shadow":["","none",v,Pg,Mg]}],"drop-shadow-color":[{"drop-shadow":ee()}],grayscale:[{grayscale:["",Et,Xe,Ye]}],"hue-rotate":[{"hue-rotate":[Et,Xe,Ye]}],invert:[{invert:["",Et,Xe,Ye]}],saturate:[{saturate:[Et,Xe,Ye]}],sepia:[{sepia:["",Et,Xe,Ye]}],"backdrop-filter":[{"backdrop-filter":["","none",Xe,Ye]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[Et,Xe,Ye]}],"backdrop-contrast":[{"backdrop-contrast":[Et,Xe,Ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Et,Xe,Ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Et,Xe,Ye]}],"backdrop-invert":[{"backdrop-invert":["",Et,Xe,Ye]}],"backdrop-opacity":[{"backdrop-opacity":[Et,Xe,Ye]}],"backdrop-saturate":[{"backdrop-saturate":[Et,Xe,Ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Et,Xe,Ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Xe,Ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Et,"initial",Xe,Ye]}],ease:[{ease:["linear","initial",_,Xe,Ye]}],delay:[{delay:[Et,Xe,Ye]}],animate:[{animate:["none",T,Xe,Ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Xe,Ye]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Pe()}],"scale-x":[{"scale-x":Pe()}],"scale-y":[{"scale-y":Pe()}],"scale-z":[{"scale-z":Pe()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[Xe,Ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],accent:[{accent:ee()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ee()}
vendor: 6,758 bytes, line 50
50],"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",Xe,Ye]}],"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":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",Xe,Ye]}],fill:[{fill:["none",...ee()]}],"stroke-w":[{stroke:[Et,jd,ou,E4]}],stroke:[{stroke:["none",...ee()]}],"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"]}},IU=Fse(soe);function Nt(...e){return IU(Lt(e))}function ooe({delayDuration:e=0,...t}){return x.jsx(Cse,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}const SN=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,TN=Lt,DU=(e,t)=>r=>{var n;if(t?.variants==null)return TN(e,r?.class,r?.className);const{variants:a,defaultVariants:i}=t,s=Object.keys(a).map(c=>{const h=r?.[c],d=i?.[c];if(h===null)return null;const m=SN(h)||SN(d);return a[c][m]}),o=r&&Object.entries(r).reduce((c,h)=>{let[d,m]=h;return m===void 0||(c[d]=m),c},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,h)=>{let{class:d,className:m,...v}=h;return Object.entries(v).every(y=>{let[b,E]=y;return Array.isArray(E)?E.includes({...i,...o}[b]):{...i,...o}[b]===E})?[...c,d,m]:c},[]);return TN(e,s,u,r?.class,r?.className)},loe=DU("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 jt({className:e,variant:t,size:r,asChild:n=!1,...a}){const i=n?FF:"button";return x.jsx(i,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:Nt(loe({variant:t,size:r,className:e})),...a}
vendor: 7,139 bytes, lines 50-145
50)}function ut({className:e,...t}){return x.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:Nt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function ct({className:e,...t}){return x.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:Nt("px-6",e),...t})}/**
51 * @license lucide-react v0.453.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const uoe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),LU=(...e)=>e.filter((t,r,n)=>!!t&&n.indexOf(t)===r).join(" ");/**
56 * @license lucide-react v0.453.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */var coe={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"};/**
61 * @license lucide-react v0.453.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const foe=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:s,...o},u)=>N.createElement("svg",{ref:u,...coe,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:LU("lucide",a),...o},[...s.map(([c,h])=>N.createElement(c,h)),...Array.isArray(i)?i:[i]]));/**
66 * @license lucide-react v0.453.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const ot=(e,t)=>{const r=N.forwardRef(({className:n,...a},i)=>N.createElement(foe,{ref:i,iconNode:t,className:LU(`lucide-${uoe(e)}`,n),...a}));return r.displayName=`${e}`,r};/**
71 * @license lucide-react v0.453.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const doe=ot("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
76 * @license lucide-react v0.453.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const hoe=ot("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
81 * @license lucide-react v0.453.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const poe=ot("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
86 * @license lucide-react v0.453.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const n_=ot("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
91 * @license lucide-react v0.453.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const jU=ot("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
96 * @license lucide-react v0.453.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const moe=ot("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
101 * @license lucide-react v0.453.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const goe=ot("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
106 * @license lucide-react v0.453.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const GT=ot("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
111 * @license lucide-react v0.453.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const BU=ot("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
116 * @license lucide-react v0.453.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const voe=ot("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
121 * @license lucide-react v0.453.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const yoe=ot("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
126 * @license lucide-react v0.453.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const WT=ot("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"}]]);/**
131 * @license lucide-react v0.453.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const boe=ot("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
136 * @license lucide-react v0.453.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const zU=ot("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
141 * @license lucide-react v0.453.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const xoe=ot("Contact",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}
145],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]);/**
146 * @license lucide-react v0.453.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const Eoe=ot("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
151 * @license lucide-react v0.453.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const $U=ot("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
156 * @license lucide-react v0.453.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const woe=ot("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"}]]);/**
161 * @license lucide-react v0.453.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const wf=ot("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"}]]);/**
166 * @license lucide-react v0.453.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const _oe=ot("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
171 * @license lucide-react v0.453.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const AN=ot("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/**
176 * @license lucide-react v0.453.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const Soe=ot("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"}]]);/**
181 * @license lucide-react v0.453.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const Toe=ot("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
186 * @license lucide-react v0.453.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const a_=ot("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
191 * @license lucide-react v0.453.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const Aoe=ot("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/**
196 * @license lucide-react v0.453.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const Coe=ot("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"}]]);/**
201 * @license lucide-react v0.453.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const CN=ot("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
206 * @license lucide-react v0.453.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const Ooe=ot("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
211 * @license lucide-react v0.453.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const koe=ot("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
216 * @license lucide-react v0.453.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const Noe=ot("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"}]]);/**
221 * @license lucide-react v0.453.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const Roe=ot("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
226 * @license lucide-react v0.453.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const Moe=ot("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
231 * @license lucide-react v0.453.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const Poe=ot("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"}]]);/**
236 * @license lucide-react v0.453.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const YT=ot("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
241 * @license lucide-react v0.453.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const Ioe=ot("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
246 * @license lucide-react v0.453.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const Doe=ot("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
251 * @license lucide-react v0.453.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const FU=ot("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
255y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
256 * @license lucide-react v0.453.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const so=ot("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
261 * @license lucide-react v0.453.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const UU=ot("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
266 * @license lucide-react v0.453.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const XT=ot("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
271 * @license lucide-react v0.453.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const Loe=ot("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"}]]);/**
276 * @license lucide-react v0.453.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const joe=ot("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
281 * @license lucide-react v0.453.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const Boe=ot("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"}]]);/**
286 * @license lucide-react v0.453.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const zoe=ot("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
291 * @license lucide-react v0.453.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const $oe=ot("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"}]]);/**
296 * @license lucide-react v0.453.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const Foe=ot("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"}]]);/**
301 * @license lucide-react v0.453.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const Uoe=ot("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/**
306 * @license lucide-react v0.453.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const Hoe=ot("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
310],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function qoe(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,n,a,i,s=[],o="",u=e.split("/");for(u[0]||u.shift();a=u.shift();)r=a[0],r==="*"?(s.push(r),o+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):r===":"?(n=a.indexOf("?",1),i=a.indexOf(".",1),s.push(a.substring(1,~n?n:~i?i:a.length)),o+=~n&&!~i?"(?:/([^/]+?))?":"/([^/]+?)",~i&&(o+=(~n?"?":"")+"\\"+a.substring(i))):o+="/"+a;return{keys:s,pattern:new RegExp("^"+o+(t?"(?=$|/)":"/?$"),"i")}}var w4={exports:{}},_4={};/**
311 * @license React
312 * use-sync-external-store-shim.production.js
313 *
314 * Copyright (c) Meta Platforms, Inc. and affiliates.
315 *
316 * This source code is licensed under the MIT license found in the
317 * LICENSE file in the root directory of this source tree.
318 */var ON;function Voe(){if(ON)return _4;ON=1;var e=yy();function t(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function o(d,m){var v=m(),y=n({inst:{value:v,getSnapshot:m}}),b=y[0].inst,E=y[1];return i(function(){b.value=v,b.getSnapshot=m,u(b)&&E({inst:b})},[d,v,m]),a(function(){return u(b)&&E({inst:b}),d(function(){u(b)&&E({inst:b})})},[d]),s(v),v}function u(d){var m=d.getSnapshot;d=d.value;try{var v=m();return!r(d,v)}catch{return!0}}function c(d,m){return m()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:o;return _4.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,_4}var kN;function Goe(){return kN||(kN=1,w4.exports=Voe()),w4.exports}var HU=Goe();const Woe=by.useInsertionEffect,Yoe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xoe=Yoe?N.useLayoutEffect:N.useEffect,Koe=Woe||Xoe,qU=e=>{const t=N.useRef([e,(...r)=>t[0](...r)]).current;return Koe(()=>{t[0]=e}),t[1]},Qoe="popstate",KT="pushState",QT="replaceState",Zoe="hashchange",NN=[Qoe,KT,QT,Zoe],Joe=e=>{for(const t of NN)addEventListener(t,e);return()=>{for(const t of NN)removeEventListener(t,e)}},VU=(e,t)=>HU.useSyncExternalStore(Joe,e,t),ele=()=>location.search,tle=({ssrSearch:e=""}={})=>VU(ele,()=>e),RN=()=>location.pathname,rle=({ssrPath:e}={})=>VU(RN,e?()=>e:RN),nle=(e,{replace:t=!1,state:r=null}={})=>history[t?QT:KT](r,"",e),ale=(e={})=>[rle(e),nle],MN=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[MN]>"u"){for(const e of[KT,QT]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}Object.defineProperty(window,MN,{value:!0})}const ile=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",GU=(e="")=>e==="/"?"":e,sle=(e,t)=>e[0]==="~"?e.slice(1):GU(t)+e,ole=(e="",t)=>ile(PN(GU(e)),PN(t)),PN=e=>{try{return decodeURI(e)}catch{return e}},WU={hook:ale,searchHook:tle,parser:qoe,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},YU=N.createContext(WU),Bp=()=>N.useContext(YU),XU={},KU=N.createContext(XU),lle=()=>N.useContext(KU),Iy=e=>{const[t,r]=e.hook(e);return[ole(e.base,t),qU((n,a)=>r(sle(n,e.base),a))]},Dy=()=>Iy(Bp()),QU=(e,t,r,n)=>{const{pattern:a,keys:i}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",n),s=a.exec(r)||[],[o,...u]=s;return o!==void 0?[!0,(()=>{const c=i!==!1?Object.fromEntries(i.map((d,m)=>[d,u[m]])):s.groups;let h={...u};return c&&Object.assign(h,c),h})(),...n?[o]:[]]:[!1,null]},ule=({children:e,...t})=>{const r=Bp(),n=t.hook?WU:r;let a=n;const[i,s]=t.ssrPath?.split("?")??[];s&&(t.ssrSearch=s,t.ssrPath=i),t.hrefs=t.hrefs??t.hook?.hrefs;let o=N.useRef({}),u=o.current,c=u;for(let h in n){const d=h==="base"?n[h]+(t[h]||""):t[h]||n[h];u===c&&d!==c[h]&&(o.current=c={...c}),c[h]=d,(d!==n[h]||d!==a[h])&&(a=c)}return N.createElement(YU.Provider,{value:a,children:e})},IN=({children:e,component:t},r)=>t?N.createElement(t,{params:r}):typeof e=="function"?e(r):e,cle=e=>{let t=N.useRef(XU);const r=t.current;return t.current=Object.keys(e).length!==Object.keys(r).length||Object.entries(e).some(([n,a])=>a!==r[n])?e:r},yn=({path:e,nest:t,match:r,...n})=>{const a=Bp(),[i]=Iy(a),[s,o,u]=r??QU(a.parser,e,i,t),c=cle({...lle(),...o});if(!s)return null;const h=u?N.createElement(ule,{base:u},IN(n,c)):IN(n,c);return N.createElement(KU.Provider,{value:c,children:h})};N.forwardRef((e,t)=>
318{const r=Bp(),[n,a]=Iy(r),{to:i="",href:s=i,onClick:o,asChild:u,children:c,className:h,replace:d,state:m,...v}=e,y=qU(E=>{E.ctrlKey||E.metaKey||E.altKey||E.shiftKey||E.button!==0||(o?.(E),E.defaultPrevented||(E.preventDefault(),a(s,e)))}),b=r.hrefs(s[0]==="~"?s.slice(1):r.base+s,r);return u&&N.isValidElement(c)?N.cloneElement(c,{onClick:y,href:b}):N.createElement("a",{...v,onClick:y,href:b,className:h?.call?h(n===s):h,children:c,ref:t})});const i_=e=>Array.isArray(e)?e.flatMap(t=>i_(t&&t.type===N.Fragment?t.props.children:t)):[e],fle=({children:e,location:t})=>{const r=Bp(),[n]=Iy(r);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),i_(e).forEach(i=>{if(N.isValidElement(i)&&i.props.path){const s=i.props.path;window.__WOUTER_ROUTES__.includes(s)||window.__WOUTER_ROUTES__.push(s)}}));for(const a of i_(e)){let i=0;if(N.isValidElement(a)&&(i=QU(r.parser,a.props.path,t||n,a.props.nest))[0])return N.cloneElement(a,{match:i})}return null};function DN(){const[,e]=Dy(),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(ut,{"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(ct,{"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(WT,{"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(jt,{"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(Soe,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"}),"Go Home"]})})]})})})}class dle extends N.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(Boe,{"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:Nt("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[x.jsx(Poe,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const ZT=()=>{const e="https://manus.im",t="AgoNFaCHEstXAwPcEWFpvW",r=`${window.location.origin}/api/oauth/callback`,n=crypto.randomUUID();document.cookie=`${Qre}=${n}; Path=/; Max-Age=600; SameSite=None; Secure`;const a=Zre({redirectUri:r,nonce:n}),i=new URL(`${e}/app-auth`);i.searchParams.set("appId",t),i.searchParams.set("redirectUri",r),i.searchParams.set("state",a),i.searchParams.set("type","signIn"),window.location.href=i.toString()};function hle(e){const{redirectOnUnauthenticated:t=!1,redirectPath:r}={},n=Je.useUtils(),a=Je.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),i=Je.auth.logout.useMutation({onSuccess:()=>{n.auth.me.setData(void 0,null)}}),s=N.useCallback(async()=>{try{await i.mutateAsync()}catch(u){if(u instanceof Bf&&u.data?.code==="UNAUTHORIZED")return;throw u}finally{try{sessionStorage.removeItem("manus-cookie")}catch{}
318n.auth.me.setData(void 0,null),await n.auth.me.invalidate()}},[i,n]),o=N.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(a.data)),{user:a.data??null,loading:a.isLoading||i.isPending,error:a.error??i.error??null,isAuthenticated:!!a.data}),[a.data,a.error,a.isLoading,i.error,i.isPending]);return N.useEffect(()=>{t&&(a.isLoading||i.isPending||o.user||typeof window>"u"||r&&window.location.pathname===r||(r?window.location.href=r:ZT()))},[t,r,i.isPending,a.isLoading,o.user]),{...o,refresh:()=>a.refetch(),logout:s}}var LN=1,ple=.9,mle=.8,gle=.17,S4=.1,T4=.999,vle=.9999,yle=.99,ble=/[\\\/_+.#"@\[\(\{&]/,xle=/[\\\/_+.#"@\[\(\{&]/g,Ele=/[\s-]/,ZU=/[\s-]/g;function s_(e,t,r,n,a,i,s){if(i===t.length)return a===e.length?LN:yle;var o=`${a},${i}`;if(s[o]!==void 0)return s[o];for(var u=n.charAt(i),c=r.indexOf(u,a),h=0,d,m,v,y;c>=0;)d=s_(e,t,r,n,c+1,i+1,s),d>h&&(c===a?d*=LN:ble.test(e.charAt(c-1))?(d*=mle,v=e.slice(a,c-1).match(xle),v&&a>0&&(d*=Math.pow(T4,v.length))):Ele.test(e.charAt(c-1))?(d*=ple,y=e.slice(a,c-1).match(ZU),y&&a>0&&(d*=Math.pow(T4,y.length))):(d*=gle,a>0&&(d*=Math.pow(T4,c-a))),e.charAt(c)!==t.charAt(i)&&(d*=vle)),(d<S4&&r.charAt(c-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&r.charAt(c-1)!==n.charAt(i))&&(m=s_(e,t,r,n,c+1,i+2,s),m*S4>d&&(d=m*S4)),d>h&&(h=d),c=r.indexOf(u,c+1);return s[o]=h,h}function jN(e){return e.toLowerCase().replace(ZU," ")}function wle(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,s_(e,t,jN(e),jN(t),0,0,{})}var A4="focusScope.autoFocusOnMount",C4="focusScope.autoFocusOnUnmount",BN={bubbles:!1,cancelable:!0},_le="FocusScope",JT=N.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...s}=e,[o,u]=N.useState(null),c=Zn(a),h=Zn(i),d=N.useRef(null),m=nr(t,b=>u(b)),v=N.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;N.useEffect(()=>{if(n){let b=function(C){if(v.paused||!o)return;const P=C.target;o.contains(P)?d.current=P:ll(d.current,{select:!0})},E=function(C){if(v.paused||!o)return;const P=C.relatedTarget;P!==null&&(o.contains(P)||ll(d.current,{select:!0}))},_=function(C){if(document.activeElement===document.body)for(const O of C)O.removedNodes.length>0&&ll(o)};document.addEventListener("focusin",b),document.addEventListener("focusout",E);const T=new MutationObserver(_);return o&&T.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",E),T.disconnect()}}},[n,o,v.paused]),N.useEffect(()=>{if(o){$N.add(v);const b=document.activeElement;if(!o.contains(b)){const _=new CustomEvent(A4,BN);o.addEventListener(A4,c),o.dispatchEvent(_),_.defaultPrevented||(Sle(kle(JU(o)),{select:!0}),document.activeElement===b&&ll(o))}return()=>{o.removeEventListener(A4,c),setTimeout(()=>{const _=new CustomEvent(C4,BN);o.addEventListener(C4,h),o.dispatchEvent(_),_.defaultPrevented||ll(b??document.body,{select:!0}),o.removeEventListener(C4,h),$N.remove(v)},0)}}},[o,c,h,v]);const y=N.useCallback(b=>{if(!r&&!n||v.paused)return;const E=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,_=document.activeElement;if(E&&_){const T=b.currentTarget,[C,P]=Tle(T);C&&P?!b.shiftKey&&_===P?(b.preventDefault(),r&&ll(C,{select:!0})):b.shiftKey&&_===C&&(b.preventDefault(),r&&ll(P,{select:!0})):_===T&&b.preventDefault()}},[r,n,v.paused]);return x.jsx(ht.div,{tabIndex:-1,...s,ref:m,onKeyDown:y})});JT.displayName=_le;function Sle(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ll(n,{select:t}),document.activeElement!==r)return}function Tle(e){const t=JU(e),r=zN(t,e),n=zN(t.reverse(),e);return[r,n]}function JU(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function zN(e,t){for(const r of e)if(!Ale(r,{upTo:t}))return r}function Ale(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 Cle(e){return e instanceof HTMLInputElement&&"select"in e}function ll(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Cle(e)&&t&&e.select()}}var $N=Ole();function Ole(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=FN(e,t),e.unshift(t)},remove(t){e=FN(e,t),e[0]?.resume()}}}function FN(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function kle(e){return e.filter(t=>t.tagName!=="A")}var O4=0;function eH(){N.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??UN()),document.body.insertAdjacentElement("beforeend",e[1]??UN()),O4++,()=>{O4===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),O4--}},[])}function UN(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,687 bytes, lines 318-333
318style.position="fixed",e.style.pointerEvents="none",e}var us=function(){return us=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},us.apply(this,arguments)};function tH(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Nle(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var O1="right-scroll-bar-position",k1="width-before-scroll-bar",Rle="with-scroll-bars-hidden",Mle="--removed-body-scroll-bar-size";function k4(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ple(e,t){var r=N.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var Ile=typeof window<"u"?N.useLayoutEffect:N.useEffect,HN=new WeakMap;function Dle(e,t){var r=Ple(null,function(n){return e.forEach(function(a){return k4(a,n)})});return Ile(function(){var n=HN.get(r);if(n){var a=new Set(n),i=new Set(e),s=r.current;a.forEach(function(o){i.has(o)||k4(o,null)}),i.forEach(function(o){a.has(o)||k4(o,s)})}HN.set(r,e)},[e]),r}function Lle(e){return e}function jle(e,t){t===void 0&&(t=Lle);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(o){return o!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(o){return i(o)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var o=r;r=[],o.forEach(i),s=r}var u=function(){var h=s;s=[],h.forEach(i)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(h){s.push(h),c()},filter:function(h){return s=s.filter(h),r}}}};return a}function Ble(e){e===void 0&&(e={});var t=jle(null);return t.options=us({async:!0,ssr:!1},e),t}var rH=function(e){var t=e.sideCar,r=tH(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return N.createElement(n,us({},r))};rH.isSideCarExport=!0;function zle(e,t){return e.useMedium(t),rH}var nH=Ble(),N4=function(){},Ly=N.forwardRef(function(e,t){var r=N.useRef(null),n=N.useState({onScrollCapture:N4,onWheelCapture:N4,onTouchMoveCapture:N4}),a=n[0],i=n[1],s=e.forwardProps,o=e.children,u=e.className,c=e.removeScrollBar,h=e.enabled,d=e.shards,m=e.sideCar,v=e.noRelative,y=e.noIsolation,b=e.inert,E=e.allowPinchZoom,_=e.as,T=_===void 0?"div":_,C=e.gapMode,P=tH(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=m,k=Dle([r,t]),M=us(us({},P),a);return N.createElement(N.Fragment,null,h&&N.createElement(O,{sideCar:nH,removeScrollBar:c,shards:d,noRelative:v,noIsolation:y,inert:b,setCallbacks:i,allowPinchZoom:!!E,lockRef:r,gapMode:C}),s?N.cloneElement(N.Children.only(o),us(us({},M),{ref:k})):N.createElement(T,us({},M,{className:u,ref:k}),o))});Ly.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ly.classNames={fullWidth:k1,zeroRight:O1};var $le=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Fle(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$le();return t&&e.setAttribute("nonce",t),e}function Ule(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hle(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qle=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Fle())&&(Ule(t,r),Hle(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vle=function(){var e=qle();return function(t,r){N.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},aH=function(){var e=Vle(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},Gle={left:0,top:0,right:0,gap:0},R4=function(e){return parseInt(e||"",10)||0},Wle=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[R4(r),R4(n),R4(a)]},Yle=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gle;var t=Wle(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Xle=aH(),kf="data-scroll-locked",Kle=function(e,t,r,n){var a=e.left,i=e.top,s=e.right,o=e.gap;return r===void 0&&(r="margin"),`
319  .`.concat(Rle,` {
320   overflow: hidden `).concat(n,`;
321   padding-right: `).concat(o,"px ").concat(n,`;
322  }
323  body[`).concat(kf,`] {
324    overflow: hidden `).concat(n,`;
325    overscroll-behavior: contain;
326    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
327    padding-left: `.concat(a,`px;
328    padding-top: `).concat(i,`px;
329    padding-right: `).concat(s,`px;
330    margin-left:0;
331    margin-top:0;
332    margin-right: `).concat(o,"px ").concat(n,`;
333    `),r==="padding"&&"padding-right: ".concat(o,"px ").concat(n,";
333")].filter(Boolean).join(""),`
334  }
335  
336  .`).concat(O1,` {
337    right: `).concat(o,"px ").concat(n,`;
338  }
339  
340  .`).concat(k1,` {
341    margin-right: `).concat(o,"px ").concat(n,`;
342  }
343  
344  .`).concat(O1," .").concat(O1,` {
345    right: 0 `).concat(n,`;
346  }
347  
348  .`).concat(k1," .").concat(k1,` {
349    margin-right: 0 `).concat(n,`;
350  }
351  
352  body[`).concat(kf,`] {
353    `).concat(Mle,": ").concat(o,`px;
354  }
355`)},qN=function(){var e=parseInt(document.body.getAttribute(kf)||"0",10);return isFinite(e)?e:0},Qle=function(){N.useEffect(function(){return document.body.setAttribute(kf,(qN()+1).toString()),function(){var e=qN()-1;e<=0?document.body.removeAttribute(kf):document.body.setAttribute(kf,e.toString())}},[])},Zle=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;Qle();var i=N.useMemo(function(){return Yle(a)},[a]);return N.createElement(Xle,{styles:Kle(i,!t,a,r?"":"!important")})},o_=!1;if(typeof window<"u")try{var Ig=Object.defineProperty({},"passive",{get:function(){return o_=!0,!0}});window.addEventListener("test",Ig,Ig),window.removeEventListener("test",Ig,Ig)}catch{o_=!1}var nf=o_?{passive:!1}:!1,Jle=function(e){return e.tagName==="TEXTAREA"},iH=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Jle(e)&&r[t]==="visible")},eue=function(e){return iH(e,"overflowY")},tue=function(e){return iH(e,"overflowX")},VN=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=sH(e,n);if(a){var i=oH(e,n),s=i[1],o=i[2];if(s>o)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},rue=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},nue=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},sH=function(e,t){return e==="v"?eue(t):tue(t)},oH=function(e,t){return e==="v"?rue(t):nue(t)},aue=function(e,t){return e==="h"&&t==="rtl"?-1:1},iue=function(e,t,r,n,a){var i=aue(e,window.getComputedStyle(t).direction),s=i*n,o=r.target,u=t.contains(o),c=!1,h=s>0,d=0,m=0;do{if(!o)break;var v=oH(e,o),y=v[0],b=v[1],E=v[2],_=b-E-i*y;(y||_)&&sH(e,o)&&(d+=_,m+=y);var T=o.parentNode;o=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!u&&o!==document.body||u&&(t.contains(o)||t===o));return(h&&Math.abs(d)<1||!h&&Math.abs(m)<1)&&(c=!0),c},Dg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},GN=function(e){return[e.deltaX,e.deltaY]},WN=function(e){return e&&"current"in e?e.current:e},sue=function(e,t){return e[0]===t[0]&&e[1]===t[1]},oue=function(e){return`
356  .block-interactivity-`.concat(e,` {pointer-events: none;}
357  .allow-interactivity-`).concat(e,` {pointer-events: all;}
358`)},lue=0,af=[];function uue(e){var t=N.useRef([]),r=N.useRef([0,0]),n=N.useRef(),a=N.useState(lue++)[0],i=N.useState(aH)[0],s=N.useRef(e);N.useEffect(function(){s.current=e},[e]),N.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var b=Nle([e.lockRef.current],(e.shards||[]).map(WN),!0).filter(Boolean);return b.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),b.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var o=N.useCallback(function(b,E){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!s.current.allowPinchZoom;var _=Dg(b),T=r.current,C="deltaX"in b?b.deltaX:T[0]-_[0],P="deltaY"in b?b.deltaY:T[1]-_[1],O,k=b.target,M=Math.abs(C)>Math.abs(P)?"h":"v";if("touches"in b&&M==="h"&&k.type==="range")return!1;var j=VN(M,k);if(!j)return!0;if(j?O=M:(O=M==="v"?"h":"v",j=VN(M,k)),!j)return!1;if(!n.current&&"changedTouches"in b&&(C||P)&&(n.current=O),!O)return!0;var z=n.current||O;return iue(z,E,b,z==="h"?C:P)},[]),u=N.useCallback(function(b){var E=b;if(!(!af.length||af[af.length-1]!==i)){var _="deltaY"in E?GN(E):Dg(E),T=t.current.filter(function(O){return O.name===E.type&&(O.target===E.target||E.target===O.shadowParent)&&sue(O.delta,_)}
vendor: 8,377 bytes, lines 358-362
358)[0];if(T&&T.should){E.cancelable&&E.preventDefault();return}if(!T){var C=(s.current.shards||[]).map(WN).filter(Boolean).filter(function(O){return O.contains(E.target)}),P=C.length>0?o(E,C[0]):!s.current.noIsolation;P&&E.cancelable&&E.preventDefault()}}},[]),c=N.useCallback(function(b,E,_,T){var C={name:b,delta:E,target:_,should:T,shadowParent:cue(_)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(P){return P!==C})},1)},[]),h=N.useCallback(function(b){r.current=Dg(b),n.current=void 0},[]),d=N.useCallback(function(b){c(b.type,GN(b),b.target,o(b,e.lockRef.current))},[]),m=N.useCallback(function(b){c(b.type,Dg(b),b.target,o(b,e.lockRef.current))},[]);N.useEffect(function(){return af.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",u,nf),document.addEventListener("touchmove",u,nf),document.addEventListener("touchstart",h,nf),function(){af=af.filter(function(b){return b!==i}),document.removeEventListener("wheel",u,nf),document.removeEventListener("touchmove",u,nf),document.removeEventListener("touchstart",h,nf)}},[]);var v=e.removeScrollBar,y=e.inert;return N.createElement(N.Fragment,null,y?N.createElement(i,{styles:oue(a)}):null,v?N.createElement(Zle,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cue(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fue=zle(nH,uue);var eA=N.forwardRef(function(e,t){return N.createElement(Ly,us({},e,{ref:t,sideCar:fue}))});eA.classNames=Ly.classNames;var due=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},sf=new WeakMap,Lg=new WeakMap,jg={},M4=0,lH=function(e){return e&&(e.host||lH(e.parentNode))},hue=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=lH(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},pue=function(e,t,r,n){var a=hue(t,Array.isArray(e)?e:[e]);jg[r]||(jg[r]=new WeakMap);var i=jg[r],s=[],o=new Set,u=new Set(a),c=function(d){!d||o.has(d)||(o.add(d),c(d.parentNode))};a.forEach(c);var h=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(m){if(o.has(m))h(m);else try{var v=m.getAttribute(n),y=v!==null&&v!=="false",b=(sf.get(m)||0)+1,E=(i.get(m)||0)+1;sf.set(m,b),i.set(m,E),s.push(m),b===1&&y&&Lg.set(m,!0),E===1&&m.setAttribute(r,"true"),y||m.setAttribute(n,"true")}catch(_){console.error("aria-hidden: cannot operate on ",m,_)}})};return h(t),o.clear(),M4++,function(){s.forEach(function(d){var m=sf.get(d)-1,v=i.get(d)-1;sf.set(d,m),i.set(d,v),m||(Lg.has(d)||d.removeAttribute(n),Lg.delete(d)),v||d.removeAttribute(r)}),M4--,M4||(sf=new WeakMap,sf=new WeakMap,Lg=new WeakMap,jg={})}},uH=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=due(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),pue(n,a,r,"aria-hidden")):function(){return null}},jy="Dialog",[cH]=rc(jy),[mue,qi]=cH(jy),fH=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,o=N.useRef(null),u=N.useRef(null),[c,h]=Z5({prop:n,defaultProp:a??!1,onChange:i,caller:jy});return x.jsx(mue,{scope:t,triggerRef:o,contentRef:u,contentId:gi(),titleId:gi(),descriptionId:gi(),open:c,onOpenChange:h,onOpenToggle:N.useCallback(()=>h(d=>!d),[h]),modal:s,children:r})};fH.displayName=jy;var dH="DialogTrigger",gue=N.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=qi(dH,r),i=nr(t,a.triggerRef);return x.jsx(ht.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":nA(a.open),...n,ref:i,onClick:Tt(e.onClick,a.onOpenToggle)})});gue.displayName=dH;var tA="DialogPortal",[vue,hH]=cH(tA,{forceMount:void 0}),pH=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:a}=e,i=qi(tA,t);return x.jsx(vue,{scope:t,forceMount:r,children:N.Children.map(n,s=>x.jsx(Ao,{present:r||i.open,children:x.jsx(HT,{asChild:!0,container:a,children:s})}))})};pH.displayName=tA;var q1="DialogOverlay",mH=N.forwardRef((e,t)=>{const r=hH(q1,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=qi(q1,e.__scopeDialog);return i.modal?x.jsx(Ao,{present:n||i.open,children:x.jsx(bue,{...a,ref:t})}):null});mH.displayName=q1;var yue=$f("DialogOverlay.RemoveScroll"),bue=N.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=qi(q1,r);return x.jsx(eA,{as:yue,allowPinchZoom:!0,shards:[a.contentRef],children:x.jsx(ht.div,{"data-state":nA(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Du="DialogContent",gH=N.forwardRef((e,t)=>{const r=hH(Du,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=qi(Du,e.__scopeDialog);return x.jsx(Ao,{present:n||i.open,children:i.modal?x.jsx(xue,{...a,ref:t}):x.jsx(Eue,{...a,ref:t})})});gH.displayName=Du;var xue=N.forwardRef((e,t)=>{const r=qi(Du,e.__scopeDialog),n=N.useRef(null),a=nr(t,r.contentRef,n);return N.useEffect(()=>{const i=n.current;if(i)return uH(i)},[]),x.jsx(vH,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Tt(e.onCloseAutoFocus,i=>{i.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Tt(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,o=s.button===0&&s.ctrlKey===!0;(s.button===2||o)&&i.preventDefault()}),onFocusOutside:Tt(e.onFocusOutside,i=>i.preventDefault())})}),Eue=N.forwardRef((e,t)=>{const r=qi(Du,e.__scopeDialog),n=N.useRef(!1),a=N.useRef(!1);return x.jsx(vH,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const s=i.target;r.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),vH=N.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,...s}=e,o=qi(Du,r),u=N.useRef(null),c=nr(t,u);return eH(),x.jsxs(x.Fragment,{children:[x.jsx(JT,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i,children:x.jsx(Ay,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":nA(o.open),...s,ref:c,onDismiss:()=>o.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(Tue,{titleId:o.titleId}),x.jsx(Cue,{contentRef:u,descriptionId:o.descriptionId})]})]})}),rA="DialogTitle",wue=N.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=qi(rA,r);return x.jsx(ht.h2,{id:a.titleId,...n,ref:t})});wue.displayName=rA;var yH="DialogDescription",_ue=N.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=qi(yH,r);return x.jsx(ht.p,{id:a.descriptionId,...n,ref:t})});_ue.displayName=yH;var bH="DialogClose",Sue=N.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=qi(bH,r);return x.jsx(ht.button,{type:"button",...n,ref:t,onClick:Tt(e.onClick,()=>a.onOpenChange(!1))})});Sue.displayName=bH;function nA(e){return e?"open":"closed"}var xH="DialogTitleWarning",[dje,EH]=gae(xH,{contentName:Du,titleName:rA,docsSlug:"dialog"}),Tue=({titleId:e})=>{const t=EH(xH),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
359
360If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
361
362For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return N.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Aue="DialogDescriptionWarning",Cue=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${EH(Aue).contentName}}.`;return N.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Oue=fH,kue=pH,Nue=mH,Rue=gH,Bd='[cmdk-group=""]',P4='[cmdk-group-items=""]',Mue='[cmdk-group-heading=""]',wH='[cmdk-item=""]',YN=`${wH}:not([aria-disabled="true"])`,l_="cmdk-item-select",gf="data-value",Pue=(e,t,r)=>wle(e,t,r),_H=N.createContext(void 0),zp=()=>N.useContext(_H),SH=N.createContext(void 0),aA=()=>N.useContext(SH),TH=N.createContext(void 0),AH=N.forwardRef((e,t)=>
vendor: 9,599 bytes, line 362
362{let r=vf(()=>{var W,L;return{search:"",value:(L=(W=e.value)!=null?W:e.defaultValue)!=null?L:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=vf(()=>new Set),a=vf(()=>new Map),i=vf(()=>new Map),s=vf(()=>new Set),o=CH(e),{label:u,children:c,value:h,onValueChange:d,filter:m,shouldFilter:v,loop:y,disablePointerSelection:b=!1,vimBindings:E=!0,..._}=e,T=gi(),C=gi(),P=gi(),O=N.useRef(null),k=que();Lu(()=>{if(h!==void 0){let W=h.trim();r.current.value=W,M.emit()}},[h]),Lu(()=>{k(6,Q)},[]);let M=N.useMemo(()=>({subscribe:W=>(s.current.add(W),()=>s.current.delete(W)),snapshot:()=>r.current,setState:(W,L,le)=>{var fe,Se,ye,Ne;if(!Object.is(r.current[W],L)){if(r.current[W]=L,W==="search")q(),$(),k(1,F);else if(W==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let xe=document.getElementById(P);xe?xe.focus():(fe=document.getElementById(T))==null||fe.focus()}if(k(7,()=>{var xe;r.current.selectedItemId=(xe=X())==null?void 0:xe.id,M.emit()}),le||k(5,Q),((Se=o.current)==null?void 0:Se.value)!==void 0){let xe=L??"";(Ne=(ye=o.current).onValueChange)==null||Ne.call(ye,xe);return}}M.emit()}},emit:()=>{s.current.forEach(W=>W())}}),[]),j=N.useMemo(()=>({value:(W,L,le)=>{var fe;L!==((fe=i.current.get(W))==null?void 0:fe.value)&&(i.current.set(W,{value:L,keywords:le}),r.current.filtered.items.set(W,z(L,le)),k(2,()=>{$(),M.emit()}))},item:(W,L)=>(n.current.add(W),L&&(a.current.has(L)?a.current.get(L).add(W):a.current.set(L,new Set([W]))),k(3,()=>{q(),$(),r.current.value||F(),M.emit()}),()=>{i.current.delete(W),n.current.delete(W),r.current.filtered.items.delete(W);let le=X();k(4,()=>{q(),le?.getAttribute("id")===W&&F(),M.emit()})}),group:W=>(a.current.has(W)||a.current.set(W,new Set),()=>{i.current.delete(W),a.current.delete(W)}),filter:()=>o.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:T,inputId:P,labelId:C,listInnerRef:O}),[]);function z(W,L){var le,fe;let Se=(fe=(le=o.current)==null?void 0:le.filter)!=null?fe:Pue;return W?Se(W,r.current.search,L):0}function $(){if(!r.current.search||o.current.shouldFilter===!1)return;let W=r.current.filtered.items,L=[];r.current.filtered.groups.forEach(fe=>{let Se=a.current.get(fe),ye=0;Se.forEach(Ne=>{let xe=W.get(Ne);ye=Math.max(xe,ye)}),L.push([fe,ye])});let le=O.current;te().sort((fe,Se)=>{var ye,Ne;let xe=fe.getAttribute("id"),Pe=Se.getAttribute("id");return((ye=W.get(Pe))!=null?ye:0)-((Ne=W.get(xe))!=null?Ne:0)}).forEach(fe=>{let Se=fe.closest(P4);Se?Se.appendChild(fe.parentElement===Se?fe:fe.closest(`${P4} > *`)):le.appendChild(fe.parentElement===le?fe:fe.closest(`${P4} > *`))}),L.sort((fe,Se)=>Se[1]-fe[1]).forEach(fe=>{var Se;let ye=(Se=O.current)==null?void 0:Se.querySelector(`${Bd}[${gf}="${encodeURIComponent(fe[0])}"]`);ye?.parentElement.appendChild(ye)})}function F(){let W=te().find(le=>le.getAttribute("aria-disabled")!=="true"),L=W?.getAttribute(gf);M.setState("value",L||void 0)}function q(){var W,L,le,fe;if(!r.current.search||o.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Se=0;for(let ye of n.current){let Ne=(L=(W=i.current.get(ye))==null?void 0:W.value)!=null?L:"",xe=(fe=(le=i.current.get(ye))==null?void 0:le.keywords)!=null?fe:[],Pe=z(Ne,xe);r.current.filtered.items.set(ye,Pe),Pe>0&&Se++}for(let[ye,Ne]of a.current)for(let xe of Ne)if(r.current.filtered.items.get(xe)>0){r.current.filtered.groups.add(ye);break}r.current.filtered.count=Se}function Q(){var W,L,le;let fe=X();fe&&(((W=fe.parentElement)==null?void 0:W.firstChild)===fe&&((le=(L=fe.closest(Bd))==null?void 0:L.querySelector(Mue))==null||le.scrollIntoView({block:"nearest"})),fe.scrollIntoView({block:"nearest"}))}function X(){var W;return(W=O.current)==null?void 0:W.querySelector(`${wH}[aria-selected="true"]`)}function te(){var W;return Array.from(((W=O.current)==null?void 0:W.querySelectorAll(YN))||[])}function U(W){let L=te()[W];L&&M.setState("value",L.getAttribute(gf))}function J(W){var L;let le=X(),fe=te(),Se=fe.findIndex(Ne=>Ne===le),ye=fe[Se+W];(L=o.current)!=null&&L.loop&&(ye=Se+W<0?fe[fe.length-1]:Se+W===fe.length?fe[0]:fe[Se+W]),ye&&M.setState("value",ye.getAttribute(gf))}function ee(W){let L=X(),le=L?.closest(Bd),fe;for(;le&&!fe;)le=W>0?Uue(le,Bd):Hue(le,Bd),fe=le?.querySelector(YN);fe?M.setState("value",fe.getAttribute(gf)):J(W)}let de=()=>U(te().length-1),G=W=>{W.preventDefault(),W.metaKey?de():W.altKey?ee(1):J(1)},Y=W=>{W.preventDefault(),W.metaKey?U(0):W.altKey?ee(-1):J(-1)};return N.createElement(ht.div,{ref:t,tabIndex:-1,..._,"cmdk-root":"",onKeyDown:W=>{var L;(L=_.onKeyDown)==null||L.call(_,W);let le=W.nativeEvent.isComposing||W.keyCode===229;if(!(W.defaultPrevented||le))switch(W.key){case"n":case"j":{E&&W.ctrlKey&&G(W);break}case"ArrowDown":{G(W);break}case"p":case"k":{E&&W.ctrlKey&&Y(W);break}case"ArrowUp":{Y(W);break}case"Home":{W.preventDefault(),U(0);break}case"End":{W.preventDefault(),de();break}case"Enter":{W.preventDefault();let fe=X();if(fe){let Se=new Event(l_);fe.dispatchEvent(Se)}}}}},N.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:Gue},u),By(e,W=>N.createElement(SH.Provider,{value:M},N.createElement(_H.Provider,{value:j},W))))}),Iue=N.forwardRef((e,t)=>{var r,n;let a=gi(),i=N.useRef(null),s=N.useContext(TH),o=zp(),u=CH(e),c=(n=(r=u.current)==null?void 0:r.forceMount)!=null?n:s?.forceMount;Lu(()=>{if(!c)return o.item(a,s?.id)},[c]);let h=OH(a,i,[e.value,e.children,i],e.keywords),d=aA(),m=Cl(k=>k.value&&k.value===h.current),v=Cl(k=>c||o.filter()===!1?!0:k.search?k.filtered.items.get(a)>0:!0);N.useEffect(()=>{let k=i.current;if(!(!k||e.disabled))return k.addEventListener(l_,y),()=>k.removeEventListener(l_,y)},[v,e.onSelect,e.disabled]);function y(){var k,M;b(),(M=(k=u.current).onSelect)==null||M.call(k,h.current)}function b(){d.setState("value",h.current,!0)}if(!v)return null;let{disabled:E,value:_,onSelect:T,forceMount:C,keywords:P,...O}=e;return N.createElement(ht.div,{ref:Pu(i,t),...O,id:a,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!m,"data-disabled":!!E,"data-selected":!!m,onPointerMove:E||o.getDisablePointerSelection()?void 0:b,onClick:E?void 0:y},e.children)}),Due=N.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:a,...i}=e,s=gi(),o=N.useRef(null),u=N.useRef(null),c=gi(),h=zp(),d=Cl(v=>a||h.filter()===!1?!0:v.search?v.filtered.groups.has(s):!0);Lu(()=>h.group(s),[]),OH(s,o,[e.value,e.heading,u]);let m=N.useMemo(()=>({id:s,forceMount:a}),[a]);return N.createElement(ht.div,{ref:Pu(o,t),...i,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},r&&N.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),By(e,v=>N.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},N.createElement(TH.Provider,{value:m},v))))}),Lue=N.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,a=N.useRef(null),i=Cl(s=>!s.search);return!r&&!i?null:N.createElement(ht.div,{ref:Pu(a,t),...n,"cmdk-separator":"",role:"separator"})}),jue=N.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,a=e.value!=null,i=aA(),s=Cl(c=>c.search),o=Cl(c=>c.selectedItemId),u=zp();return N.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),N.createElement(ht.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":o,id:u.inputId,type:"text",value:a?e.value:s,onChange:c=>{a||i.setState("search",c.target.value),r?.(c.target.value)}})}),Bue=N.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...a}=e,i=N.useRef(null),s=N.useRef(null),o=Cl(c=>c.selectedItemId),u=zp();return N.useEffect(()=>{if(s.current&&i.current){let c=s.current,h=i.current,d,m=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let v=c.offsetHeight;h.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return m.observe(c),()=>{cancelAnimationFrame(d),m.unobserve(c)}}},[]),N.createElement(ht.div,{ref:Pu(i,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":n,id:u.listId},By(e,c=>N.createElement("div",{ref:Pu(s,u.listInnerRef),"cmdk-list-sizer":""},c)))}),zue=N.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:i,container:s,...o}=e;return N.createElement(Oue,{open:r,onOpenChange:n},N.createElement(kue,{container:s},N.createElement(Nue,{"cmdk-overlay":"",className:a}),N.createElement(Rue,{"aria-label":e.label,"cmdk-dialog":"",className:i},N.createElement(AH,{ref:t,...o}))))}),$ue=N.forwardRef((e,t)=>Cl(r=>r.filtered.count===0)?N.createElement(ht.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Fue=N.forwardRef((e,t)=>{let{progress:r,children:n,label:a="Loading...",...i}=e;return N.createElement(ht.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},By(e,s=>N.createElement("div",{"aria-hidden":!0},s)))}),S0=Object.assign(AH,{List:Bue,Item:Iue,Input:jue,Group:Due,Separator:Lue,Dialog:zue,Empty:$ue,Loading:Fue});function Uue(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Hue(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function CH(e){let t=N.useRef(e);return Lu(()=>{t.current=e}),t}var Lu=typeof window>"u"?N.useEffect:N.useLayoutEffect;function vf(e){let t=N.useRef();return t.current===void 0&&(t.current=e()),t}
362function Cl(e){let t=aA(),r=()=>e(t.snapshot());return N.useSyncExternalStore(t.subscribe,r,r)}function OH(e,t,r,n=[]){let a=N.useRef(),i=zp();return Lu(()=>{var s;let o=(()=>{var c;for(let h of r){if(typeof h=="string")return h.trim();if(typeof h=="object"&&"current"in h)return h.current?(c=h.current.textContent)==null?void 0:c.trim():a.current}})(),u=n.map(c=>c.trim());i.value(e,o,u),(s=t.current)==null||s.setAttribute(gf,o),a.current=o}),a}var que=()=>{let[e,t]=N.useState(),r=vf(()=>new Map);return Lu(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,a)=>{r.current.set(n,a),t({})}};function Vue(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function By({asChild:e,children:t},r){return e&&N.isValidElement(t)?N.cloneElement(Vue(t),{ref:t.ref},r(t.props.children)):r(t)}var Gue={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Wue=N.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),kH=()=>N.useContext(Wue);function Yue({className:e,...t}){return x.jsx(S0,{"data-loc":"client/src/components/ui/command.tsx:21","data-slot":"command",className:Nt("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Xue({className:e,...t}){return x.jsxs("div",{"data-loc":"client/src/components/ui/command.tsx:68","data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[x.jsx(YT,{"data-loc":"client/src/components/ui/command.tsx:72",className:"size-4 shrink-0 opacity-50"}),x.jsx(S0.Input,{"data-loc":"client/src/components/ui/command.tsx:73","data-slot":"command-input",className:Nt("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Kue({className:e,...t}){return x.jsx(S0.List,{"data-loc":"client/src/components/ui/command.tsx:90","data-slot":"command-list",className:Nt("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Que({...e}){return x.jsx(S0.Empty,{"data-loc":"client/src/components/ui/command.tsx:105","data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function XN({className:e,...t}){return x.jsx(S0.Group,{"data-loc":"client/src/components/ui/command.tsx:118","data-slot":"command-group",className:Nt("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 KN({className:e,...t}){return x.jsx(S0.Item,{"data-loc":"client/src/components/ui/command.tsx:147","data-slot":"command-item",className:Nt("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})}function Zue(){const[e,t]=N.useState(""),[,r]=Dy(),n=Je.useUtils(),a=Je.crm.tasks.create.useMutation({onSuccess:()=>{_t.success("Task created from command bar."),t(""),n.crm.tasks.list.invalidate(),n.workspace.dashboard.invalidate()},onError:c=>_t.error(c.message)}),i=Je.workspace.search.useQuery({query:e},{enabled:e.trim().length>=2,staleTime:15e3}),s=e.trim().toLowerCase(),o=/^create\s+(a\s+)?task\s+(for\s+)?(.+)/i.exec(e)?.[3]?.trim(),u=[...o?[{label:`Create task: ${o}`,run:()=>a.mutate({title:o,priority:"medium",source:"manual"})}]:[],...s.startsWith("show leads")||s.startsWith("show high-value leads")?[{label:"Open Lead workspace",run:()=>{r("/leads"),t("")}}]:[],...s.startsWith("show deals")||s.includes("at risk")||s.includes("pipeline")?[{label:"Open Deal workspace",run:()=>{r("/deals"),t("")}}]:[],...s.startsWith("ask scout")||s.startsWith("summarize")||s.startsWith("analyze")?[{label:"Open Scout Copilot",run:()=>{r("/copilot"),t("")}}]:[]];return x.jsx("div",{"data-loc":"client/src/components/CommandPalette.tsx:22",className:"relative max-w-xl",children:x.jsxs(Yue,{"data-loc":"client/src/components/CommandPalette.tsx:22",className:"overflow-visible rounded-xl border border-slate-200 bg-white shadow-sm",children:[x.jsxs("div",{"data-loc":"client/src/components/CommandPalette.tsx:22",className:"flex items-center gap-2 px-3",children:[x.jsx(YT,{"data-loc":"client/src/components/CommandPalette.tsx:22",className:"size-4 text-slate-400"}),x.jsx(Xue,{"data-loc":"client/src/components/CommandPalette.tsx:22",value:e,onValueChange:t,placeholder:"Search or type “Create task follow up with Acme”…",className:"h-10 border-0 px-0 text-sm outline-none"})]}),e.trim().length>=2?x.jsxs(Kue,{"data-loc":"client/src/components/CommandPalette.tsx:22",className:"absolute left-0 right-0 top-[45px] z-40 max-h-72 rounded-xl border border-slate-200 bg-white p-1 shadow-xl",children:[x.jsx(XN,{"data-loc":"client/src/components/CommandPalette.tsx:22",heading:"Commands",children:u.map(c=>x.jsx(KN,{"data-loc":"client/src/components/CommandPalette.tsx:22",onSelect:c.run,className:"cursor-pointer",children:x.jsx("span",{"data-loc":"client/src/components/CommandPalette.tsx:22",className:"font-medium text-indigo-700",children:c.label})},c.label))}),x.jsx(Que,{"data-loc":"client/src/components/CommandPalette.tsx:22",children:i.isLoading?"Searching live data…":"No matching records or commands."}),x.jsx(XN,{"data-loc":"client/src/components/CommandPalette.tsx:22",heading:"Workspace results",children:i.data?.map(c=>x.jsxs(KN,{"data-loc":"client/src/components/CommandPalette.tsx:22",value:`${c.type}-${c.label}`,className:"cursor-default",children:[x.jsx("span",{"data-loc":"client/src/components/CommandPalette.tsx:22",className:"mr-2 capitalize text-indigo-600",children:c.type}),x.jsx("span",{"data-loc":"client/src/components/CommandPalette.tsx:22",children:c.label}),x.jsx("span",{"data-loc":"client/src/components/CommandPalette.tsx:22",className:"ml-auto truncate text-xs text-slate-400",children:String(c.detail??"")})]},`${c.type}-${c.id}`))})]}):null]})})}function Jue(){return HU.useSyncExternalStore(ece,()=>!0,()=>!1)}function ece(){return()=>{}}var iA="Avatar",[tce]=rc(iA),[rce,NH]=tce(iA),RH=N.forwardRef((e,t)=>
362{const{__scopeAvatar:r,...n}=e,[a,i]=N.useState("idle");return x.jsx(rce,{scope:r,imageLoadingStatus:a,onImageLoadingStatusChange:i,children:x.jsx(ht.span,{...n,ref:t})})});RH.displayName=iA;var MH="AvatarImage",nce=N.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:a=()=>{},...i}=e,s=NH(MH,r),o=ace(n,i),u=Zn(c=>{a(c),s.onImageLoadingStatusChange(c)});return rn(()=>{o!=="idle"&&u(o)},[o,u]),o==="loaded"?x.jsx(ht.img,{...i,ref:t,src:n}):null});nce.displayName=MH;var PH="AvatarFallback",IH=N.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...a}=e,i=NH(PH,r),[s,o]=N.useState(n===void 0);return N.useEffect(()=>{if(n!==void 0){const u=window.setTimeout(()=>o(!0),n);return()=>window.clearTimeout(u)}},[n]),s&&i.imageLoadingStatus!=="loaded"?x.jsx(ht.span,{...a,ref:t}):null});IH.displayName=PH;function QN(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function ace(e,{referrerPolicy:t,crossOrigin:r}){const n=Jue(),a=N.useRef(null),i=n?(a.current||(a.current=new window.Image),a.current):null,[s,o]=N.useState(()=>QN(i,e));return rn(()=>{o(QN(i,e))},[i,e]),rn(()=>{const u=d=>()=>{o(d)};if(!i)return;const c=u("loaded"),h=u("error");return i.addEventListener("load",c),i.addEventListener("error",h),t&&(i.referrerPolicy=t),typeof r=="string"&&(i.crossOrigin=r),()=>{i.removeEventListener("load",c),i.removeEventListener("error",h)}},[i,r,t]),s}var ice=RH,sce=IH;function oce({className:e,...t}){return x.jsx(ice,{"data-loc":"client/src/components/ui/avatar.tsx:11","data-slot":"avatar",className:Nt("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function lce({className:e,...t}){return x.jsx(sce,{"data-loc":"client/src/components/ui/avatar.tsx:40","data-slot":"avatar-fallback",className:Nt("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const uce=[{label:"My Scout",path:"/app",icon:Toe},{label:"Leads",path:"/leads",icon:XT},{label:"Accounts",path:"/accounts",icon:jU},{label:"Contacts",path:"/contacts",icon:xoe},{label:"Deals",path:"/deals",icon:koe},{label:"Tasks",path:"/tasks",icon:UU},{label:"Activity",path:"/activities",icon:doe},{label:"Notes",path:"/notes",icon:wf}],cce=[{label:"Analytics",path:"/analytics",icon:goe},{label:"Copilot",path:"/copilot",icon:so},{label:"Recommendations",path:"/recommendations",icon:zU},{label:"Agents & Workflows",path:"/automation",icon:n_},{label:"Team & settings",path:"/settings",icon:Foe},{label:"Billing & security",path:"/admin",icon:FU}];function fce({children:e}){const{user:t,loading:r,logout:n}=hle(),[a,i]=Dy(),[s,o]=N.useState(!1);if(r)return x.jsx("div",{"data-loc":"client/src/components/ScoutShell.tsx:36",className:"grid min-h-screen place-items-center bg-[#f7f8fb]",children:x.jsx("div",{"data-loc":"client/src/components/ScoutShell.tsx:36",className:"scout-pulse h-10 w-10 rounded-2xl bg-indigo-600"})});if(!t)return x.jsx("main",{"data-loc":"client/src/components/ScoutShell.tsx:38",className:"min-h-screen bg-[#f7f8fb] px-6 py-12 text-slate-900",children:x.jsx("div",{"data-loc":"client/src/components/ScoutShell.tsx:38",className:"mx-auto grid min-h-[80vh] max-w-5xl place-items-center",children:x.jsxs("section",{"data-loc":"client/src/components/ScoutShell.tsx:38",className:"max-w-2xl text-center",children:[x.jsx("div",{"data-loc":"client/src/components/ScoutShell.tsx:38",className:"mx-auto mb-8 flex size-14 items-center justify-center rounded-2xl bg-indigo-600 text-white shadow-xl shadow-indigo-200",children:x.jsx(so,{"data-loc":"client/src/components/ScoutShell.tsx:38",className:"size-7"})}),x.jsx("p",{"data-loc":"client/src/components/ScoutShell.tsx:38",className:"mb-4 text-sm font-semibold uppercase tracking-[0.18em] text-indigo-600",children:"AI-native revenue intelligence"}),x.jsx("h1",{"data-loc":"client/src/components/ScoutShell.tsx:38",className:"text-balance text-5xl font-semibold tracking-[-0.05em] sm:text-6xl",children:"See what matters. Act with confidence."}),x.jsx("p",{"data-loc":"client/src/components/ScoutShell.tsx:38",className:"mx-auto mt-6 max-w-xl text-lg leading-8 text-slate-600",children:"Scout AI organizes your customer data, explains revenue signals, and keeps the next best action close at hand."}),x.jsx(jt,{"data-loc":"client/src/components/ScoutShell.tsx:38",onClick:()=>ZT(),size:"lg",className:"mt-9 rounded-xl bg-indigo-600 px-7 shadow-lg shadow-indigo-200 hover:bg-indigo-700",children:"Sign in to Scout AI"}),x.jsx("p",{"data-loc":"client/src/components/ScoutShell.tsx:38",className:"mt-5 text-sm text-slate-500",children:"Find Opportunities. Take Action. Close More."})]})})});const u=(c,h)=>x.jsxs("div",{"data-loc":"client/src/components/ScoutShell.tsx:41",className:"space-y-1",children:[h?x.jsx("p",{"data-loc":"client/src/components/ScoutShell.tsx:41",className:Nt("px-3 pb-2 pt-5 text-[10px] font-bold uppercase tracking-[0.14em] text-slate-400",s&&"sr-only"),children:h}):null,c.map(d=>{const m=a===d.path;return x.jsxs("button",{"data-loc":"client/src/components/ScoutShell.tsx:41",onClick:()=>i(d.path),title:s?d.label:void 0,className:Nt("group flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm font-medium transition",m?"bg-indigo-50 text-indigo-700":"text-slate-500 hover:bg-slate-100 hover:text-slate-900",s&&"justify-center px-2"),children:[x.jsx(d.icon,{"data-loc":"client/src/components/ScoutShell.tsx:41",className:Nt("size-4 shrink-0",m&&"text-indigo-600")}),x.jsx("span",{"data-loc":"client/src/components/ScoutShell.tsx:41",className:Nt("truncate",s&&"sr-only"),children:d.label})]},d.path)})]});return x.jsxs("div",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"min-h-screen bg-[#f7f8fb] text-slate-900",children:[x.jsxs("aside",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:Nt("fixed inset-y-0 left-0 z-30 hidden border-r border-slate-200/80 bg-white p-3 transition-all duration-200 lg:flex lg:flex-col",s?"w-[76px]":"w-[250px]"),children:[x.jsxs("div",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:Nt("flex h-12 items-center px-2",s?"justify-center":"justify-between"),children:[x.jsxs("button",{"data-loc":"client/src/components/ScoutShell.tsx:43",onClick:()=>i("/app"),className:"flex items-center gap-2",children:[x.jsx("span",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"flex size-8 items-center justify-center rounded-xl bg-indigo-600 text-white",children:x.jsx(so,{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"size-4"})}),x.jsxs("span",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:Nt("font-semibold tracking-[-0.03em]",s&&"sr-only"),children:["scout",x.jsx("span",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"text-indigo-600",children:"ai"})]})]}),s?null:x.jsx("button",{"data-loc":"client/src/components/ScoutShell.tsx:43",onClick:()=>o(!0),"aria-label":"Collapse sidebar",className:"rounded-lg p-1.5 text-slate-400 hover:bg-slate-100",children:x.jsx(voe,{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"size-4"})})]}),x.jsxs("nav",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"mt-7 flex-1 overflow-y-auto",children:[s?x.jsx("button",{"data-loc":"client/src/components/ScoutShell.tsx:43",onClick:()=>o(!1),className:"mb-4 flex w-full justify-center rounded-lg py-2 text-slate-400 hover:bg-slate-100",children:x.jsx(CN,{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"size-4"})}):null,u(uce),u(cce,"Intelligence")]}),x.jsxs("div",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"border-t border-slate-100 pt-3",children:[x.jsxs("button",{"data-loc":"client/src/components/ScoutShell.tsx:43",onClick:()=>i("/settings"),className:Nt("flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-sm text-slate-500 hover:bg-slate-100",s&&"justify-center px-2"),children:[x.jsx(Doe,{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"size-4"}),x.jsx("span",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:s?"sr-only":"",children:"Worksp
362ace settings"})]}),x.jsxs("button",{"data-loc":"client/src/components/ScoutShell.tsx:43",onClick:n,className:Nt("mt-1 flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-sm text-slate-500 hover:bg-slate-100",s&&"justify-center px-2"),children:[x.jsx(oce,{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"size-5",children:x.jsx(lce,{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"bg-slate-200 text-[9px] text-slate-600",children:t.name?.slice(0,1).toUpperCase()??"U"})}),x.jsx("span",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:Nt("truncate",s&&"sr-only"),children:t.name??"Account"})]})]})]}),x.jsxs("div",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:Nt("min-h-screen transition-[margin] duration-200",s?"lg:ml-[76px]":"lg:ml-[250px]"),children:[x.jsxs("header",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"sticky top-0 z-20 flex h-16 items-center gap-3 border-b border-slate-200/75 bg-[#f7f8fb]/90 px-4 backdrop-blur lg:px-8",children:[x.jsx("button",{"data-loc":"client/src/components/ScoutShell.tsx:43",onClick:()=>o(!s),className:"rounded-lg p-2 text-slate-500 hover:bg-white lg:hidden",children:x.jsx(CN,{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"size-5"})}),x.jsx("div",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"hidden flex-1 sm:block",children:x.jsx(Zue,{"data-loc":"client/src/components/ScoutShell.tsx:43"})}),x.jsxs("div",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"ml-auto flex items-center gap-2",children:[x.jsx(jt,{"data-loc":"client/src/components/ScoutShell.tsx:43",variant:"ghost",size:"icon",onClick:()=>i("/copilot"),className:"rounded-xl text-indigo-600",children:x.jsx(so,{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"size-4"})}),x.jsx(jt,{"data-loc":"client/src/components/ScoutShell.tsx:43",variant:"ghost",size:"icon",onClick:()=>i("/settings"),className:"rounded-xl text-slate-500",children:x.jsx(zU,{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"size-4"})})]})]}),x.jsx("main",{"data-loc":"client/src/components/ScoutShell.tsx:43",className:"mx-auto max-w-[1600px] px-4 py-6 sm:px-6 lg:px-8",children:e})]})]})}const dce=N.createContext(void 0);function hce({children:e,defaultTheme:t="light",switchable:r=!1}){const[n,a]=N.useState(()=>r&&localStorage.getItem("theme")||t);N.useEffect(()=>{const s=document.documentElement;n==="dark"?s.classList.add("dark"):s.classList.remove("dark"),r&&localStorage.setItem("theme",n)},[n,r]);const i=r?()=>{a(s=>s==="light"?"dark":"light")}:void 0;return x.jsx(dce.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:n,toggleTheme:i,switchable:r},children:e})}const pce=DU("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 yu({className:e,variant:t,asChild:r=!1,...n}){const a=r?FF:"span";return x.jsx(a,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:Nt(pce({variant:t}),e),...n})}function Bg(e){const t=N.useRef(e);t.current=e;const r=N.useRef(null);return r.current||(r.current=function(...n){return t.current.apply(this,n)}),r.current}function DH(e={}){const{onKeyDown:t,onCompositionStart:r,onCompositionEnd:n}=e,a=N.useRef(!1),i=N.useRef(null),s=N.useRef(null),o=Bg(d=>{i.current&&(clearTimeout(i.current),i.current=null),s.current&&(clearTimeout(s.current),s.current=null),a.current=!0,r?.(d)}),u=Bg(d=>{i.current=setTimeout(()=>{s.current=setTimeout(()=>{a.current=!1})}),n?.(d)}),c=Bg(d=>
362{if(a.current&&(d.key==="Escape"||d.key==="Enter"&&!d.shiftKey)){d.stopPropagation();return}t?.(d)}),h=Bg(()=>a.current);return{onCompositionStart:o,onCompositionEnd:u,onKeyDown:c,isComposing:h}}function Eu({className:e,type:t,onKeyDown:r,onCompositionStart:n,onCompositionEnd:a,...i}){const s=kH(),{onCompositionStart:o,onCompositionEnd:u,onKeyDown:c}=DH({onKeyDown:h=>{const d=h.nativeEvent.isComposing||s.justEndedComposing();h.key==="Enter"&&d||r?.(h)},onCompositionStart:h=>{s.setComposing(!0),n?.(h)},onCompositionEnd:h=>{s.markCompositionEnd(),setTimeout(()=>{s.setComposing(!1)},100),a?.(h)}});return x.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:Nt("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:o,onCompositionEnd:u,onKeyDown:c,...i})}function wa({eyebrow:e,title:t,description:r,action:n}){return x.jsxs("div",{"data-loc":"client/src/components/PagePrimitives.tsx:6",className:"mb-7 flex flex-col justify-between gap-4 sm:flex-row sm:items-end",children:[x.jsxs("div",{"data-loc":"client/src/components/PagePrimitives.tsx:6",children:[x.jsx("p",{"data-loc":"client/src/components/PagePrimitives.tsx:6",className:"text-xs font-bold uppercase tracking-[0.14em] text-indigo-600",children:e}),x.jsx("h1",{"data-loc":"client/src/components/PagePrimitives.tsx:6",className:"mt-2 text-3xl font-semibold tracking-[-0.045em] text-slate-950",children:t}),x.jsx("p",{"data-loc":"client/src/components/PagePrimitives.tsx:6",className:"mt-2 max-w-2xl text-sm leading-6 text-slate-500",children:r})]}),n]})}function sA({value:e,onChange:t,placeholder:r="Search records"}){return x.jsxs("div",{"data-loc":"client/src/components/PagePrimitives.tsx:8",className:"relative",children:[x.jsx(YT,{"data-loc":"client/src/components/PagePrimitives.tsx:8",className:"pointer-events-none absolute left-3 top-3 size-4 text-slate-400"}),x.jsx(Eu,{"data-loc":"client/src/components/PagePrimitives.tsx:8",value:e,onChange:n=>t(n.target.value),placeholder:r,className:"h-10 rounded-xl border-slate-200 bg-white pl-9 shadow-sm"})]})}function vo({label:e,onClick:t}){return x.jsxs(jt,{"data-loc":"client/src/components/PagePrimitives.tsx:10",onClick:t,className:"rounded-xl bg-indigo-600 shadow-md shadow-indigo-100 hover:bg-indigo-700",children:[x.jsx(Moe,{"data-loc":"client/src/components/PagePrimitives.tsx:10",className:"mr-2 size-4"}),e]})}function Ea({loading:e,error:t,empty:r,children:n}){return e?x.jsx("div",{"data-loc":"client/src/components/PagePrimitives.tsx:12",className:"grid min-h-48 place-items-center rounded-2xl border border-slate-200 bg-white",children:x.jsx(a_,{"data-loc":"client/src/components/PagePrimitives.tsx:12",className:"size-5 animate-spin text-indigo-600"})}):t?x.jsx("div",{"data-loc":"client/src/components/PagePrimitives.tsx:12",className:"rounded-2xl border border-rose-200 bg-rose-50 p-5 text-sm text-rose-700",children:"Scout AI could not load this workspace data. Please refresh and try again."}):r?x.jsxs("div",{"data-loc":"client/src/components/PagePrimitives.tsx:12",className:"rounded-2xl border border-dashed border-slate-300 bg-white p-10 text-center",children:[x.jsx("p",{"data-loc":"client/src/components/PagePrimitives.tsx:12",className:"font-medium text-slate-800",children:"Your workspace is ready for its first record."}),x.jsx("p",{"data-loc":"client/src/components/PagePrimitives.tsx:12",className:"mt-1 text-sm text-slate-500",children:"Add a record to start generating recommendations from your own data."})]}):x.jsx(x.Fragment,{children:n})}function $p({value:e,inverse:t=!1}){const r=t?e>=60?"bg-rose-50 text-rose-700":"bg-emerald-50 text-emerald-700":e>=75?"bg-emerald-50 text-emerald-700":e>=45?"bg-amber-50 text-amber-700":"bg-slate-100 text-slate-600";return x.jsxs(yu,{"data-loc":"client/src/components/PagePrimitives.tsx:14",className:`rounded-md px-2 py-0.5 font-semibold ${r}`,children:[e,"/100"]})}var mce="Label",LH=N.forwardRef((e,t)=>
vendor: 18,225 bytes, line 362
362x.jsx(ht.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));LH.displayName=mce;var gce=LH;function fs({className:e,...t}){return x.jsx(gce,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:Nt("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 u_(e,[t,r]){return Math.min(r,Math.max(t,e))}function vce(e){const t=e+"CollectionProvider",[r,n]=rc(t),[a,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=b=>{const{scope:E,children:_}=b,T=re.useRef(null),C=re.useRef(new Map).current;return x.jsx(a,{scope:E,itemMap:C,collectionRef:T,children:_})};s.displayName=t;const o=e+"CollectionSlot",u=$f(o),c=re.forwardRef((b,E)=>{const{scope:_,children:T}=b,C=i(o,_),P=nr(E,C.collectionRef);return x.jsx(u,{ref:P,children:T})});c.displayName=o;const h=e+"CollectionItemSlot",d="data-radix-collection-item",m=$f(h),v=re.forwardRef((b,E)=>{const{scope:_,children:T,...C}=b,P=re.useRef(null),O=nr(E,P),k=i(h,_);return re.useEffect(()=>(k.itemMap.set(P,{ref:P,...C}),()=>void k.itemMap.delete(P))),x.jsx(m,{[d]:"",ref:O,children:T})});v.displayName=h;function y(b){const E=i(e+"CollectionConsumer",b);return re.useCallback(()=>{const T=E.collectionRef.current;if(!T)return[];const C=Array.from(T.querySelectorAll(`[${d}]`));return Array.from(E.itemMap.values()).sort((k,M)=>C.indexOf(k.ref.current)-C.indexOf(M.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:s,Slot:c,ItemSlot:v},y,n]}var yce=N.createContext(void 0);function jH(e){const t=N.useContext(yce);return e||t||"ltr"}function bce(e){const t=N.useRef({value:e,previous:e});return N.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var xce=[" ","Enter","ArrowUp","ArrowDown"],Ece=[" ","Enter"],ju="Select",[zy,$y,wce]=vce(ju),[T0]=rc(ju,[wce,Ry]),Fy=Ry(),[_ce,Ml]=T0(ju),[Sce,Tce]=T0(ju),BH=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:a,onOpenChange:i,value:s,defaultValue:o,onValueChange:u,dir:c,name:h,autoComplete:d,disabled:m,required:v,form:y}=e,b=Fy(t),[E,_]=N.useState(null),[T,C]=N.useState(null),[P,O]=N.useState(!1),k=jH(c),[M,j]=Z5({prop:n,defaultProp:a??!1,onChange:i,caller:ju}),[z,$]=Z5({prop:s,defaultProp:o,onChange:u,caller:ju}),F=N.useRef(null),q=E?y||!!E.closest("form"):!0,[Q,X]=N.useState(new Set),te=Array.from(Q).map(U=>U.props.value).join(";");return x.jsx(ese,{...b,children:x.jsxs(_ce,{required:v,scope:t,trigger:E,onTriggerChange:_,valueNode:T,onValueNodeChange:C,valueNodeHasChildren:P,onValueNodeHasChildrenChange:O,contentId:gi(),value:z,onValueChange:$,open:M,onOpenChange:j,dir:k,triggerPointerDownPosRef:F,disabled:m,children:[x.jsx(zy.Provider,{scope:t,children:x.jsx(Sce,{scope:e.__scopeSelect,onNativeOptionAdd:N.useCallback(U=>{X(J=>new Set(J).add(U))},[]),onNativeOptionRemove:N.useCallback(U=>{X(J=>{const ee=new Set(J);return ee.delete(U),ee})},[]),children:r})}),q?x.jsxs(sq,{"aria-hidden":!0,required:v,tabIndex:-1,name:h,autoComplete:d,value:z,onChange:U=>$(U.target.value),disabled:m,form:y,children:[z===void 0?x.jsx("option",{value:""}):null,Array.from(Q)]},te):null]})})};BH.displayName=ju;var zH="SelectTrigger",$H=N.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...a}=e,i=Fy(r),s=Ml(zH,r),o=s.disabled||n,u=nr(t,s.onTriggerChange),c=$y(r),h=N.useRef("touch"),[d,m,v]=lq(b=>{const E=c().filter(C=>!C.disabled),_=E.find(C=>C.value===s.value),T=uq(E,b,_);T!==void 0&&s.onValueChange(T.value)}),y=b=>{o||(s.onOpenChange(!0),v()),b&&(s.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return x.jsx(dU,{asChild:!0,...i,children:x.jsx(ht.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":oq(s.value)?"":void 0,...a,ref:u,onClick:Tt(a.onClick,b=>{b.currentTarget.focus(),h.current!=="mouse"&&y(b)}),onPointerDown:Tt(a.onPointerDown,b=>{h.current=b.pointerType;const E=b.target;E.hasPointerCapture(b.pointerId)&&E.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(y(b),b.preventDefault())}),onKeyDown:Tt(a.onKeyDown,b=>{const E=d.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&m(b.key),!(E&&b.key===" ")&&xce.includes(b.key)&&(y(),b.preventDefault())})})})});$H.displayName=zH;var FH="SelectValue",UH=N.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,children:i,placeholder:s="",...o}=e,u=Ml(FH,r),{onValueNodeHasChildrenChange:c}=u,h=i!==void 0,d=nr(t,u.onValueNodeChange);return rn(()=>{c(h)},[c,h]),x.jsx(ht.span,{...o,ref:d,style:{pointerEvents:"none"},children:oq(u.value)?x.jsx(x.Fragment,{children:s}):i})});UH.displayName=FH;var Ace="SelectIcon",HH=N.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...a}=e;return x.jsx(ht.span,{"aria-hidden":!0,...a,ref:t,children:n||"▼"})});HH.displayName=Ace;var Cce="SelectPortal",qH=e=>x.jsx(HT,{asChild:!0,...e});qH.displayName=Cce;var Bu="SelectContent",VH=N.forwardRef((e,t)=>{const r=Ml(Bu,e.__scopeSelect),[n,a]=N.useState();if(rn(()=>{a(new DocumentFragment)},[]),!r.open){const i=n;return i?Lp.createPortal(x.jsx(GH,{scope:e.__scopeSelect,children:x.jsx(zy.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),i):null}return x.jsx(WH,{...e,ref:t})});VH.displayName=Bu;var Ni=10,[GH,Pl]=T0(Bu),Oce="SelectContentImpl",kce=$f("SelectContent.RemoveScroll"),WH=N.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:s,side:o,sideOffset:u,align:c,alignOffset:h,arrowPadding:d,collisionBoundary:m,collisionPadding:v,sticky:y,hideWhenDetached:b,avoidCollisions:E,..._}=e,T=Ml(Bu,r),[C,P]=N.useState(null),[O,k]=N.useState(null),M=nr(t,ye=>P(ye)),[j,z]=N.useState(null),[$,F]=N.useState(null),q=$y(r),[Q,X]=N.useState(!1),te=N.useRef(!1);N.useEffect(()=>{if(C)return uH(C)},[C]),eH();const U=N.useCallback(ye=>{const[Ne,...xe]=q().map(we=>we.ref.current),[Pe]=xe.slice(-1),ze=document.activeElement;for(const we of ye)if(we===ze||(we?.scrollIntoView({block:"nearest"}),we===Ne&&O&&(O.scrollTop=0),we===Pe&&O&&(O.scrollTop=O.scrollHeight),we?.focus(),document.activeElement!==ze))return},[q,O]),J=N.useCallback(()=>U([j,C]),[U,j,C]);N.useEffect(()=>{Q&&J()},[Q,J]);const{onOpenChange:ee,triggerPointerDownPosRef:de}=T;N.useEffect(()=>{if(C){let ye={x:0,y:0};const Ne=Pe=>{ye={x:Math.abs(Math.round(Pe.pageX)-(de.current?.x??0)),y:Math.abs(Math.round(Pe.pageY)-(de.current?.y??0))}},xe=Pe=>{ye.x<=10&&ye.y<=10?Pe.preventDefault():C.contains(Pe.target)||ee(!1),document.removeEventListener("pointermove",Ne),de.current=null};return de.current!==null&&(document.addEventListener("pointermove",Ne),document.addEventListener("pointerup",xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ne),document.removeEventListener("pointerup",xe,{capture:!0})}}},[C,ee,de]),N.useEffect(()=>{const ye=()=>ee(!1);return window.addEventListener("blur",ye),window.addEventListener("resize",ye),()=>{window.removeEventListener("blur",ye),window.removeEventListener("resize",ye)}},[ee]);const[G,Y]=lq(ye=>{const Ne=q().filter(ze=>!ze.disabled),xe=Ne.find(ze=>ze.ref.current===document.activeElement),Pe=uq(Ne,ye,xe);Pe&&setTimeout(()=>Pe.ref.current.focus())}),W=N.useCallback((ye,Ne,xe)=>{const Pe=!te.current&&!xe;(T.value!==void 0&&T.value===Ne||Pe)&&(z(ye),Pe&&(te.current=!0))},[T.value]),L=N.useCallback(()=>C?.focus(),[C]),le=N.useCallback((ye,Ne,xe)=>{const Pe=!te.current&&!xe;(T.value!==void 0&&T.value===Ne||Pe)&&F(ye)},[T.value]),fe=n==="popper"?c_:YH,Se=fe===c_?{side:o,sideOffset:u,align:c,alignOffset:h,arrowPadding:d,collisionBoundary:m,collisionPadding:v,sticky:y,hideWhenDetached:b,avoidCollisions:E}:{};return x.jsx(GH,{scope:r,content:C,viewport:O,onViewportChange:k,itemRefCallback:W,selectedItem:j,onItemLeave:L,itemTextRefCallback:le,focusSelectedItem:J,selectedItemText:$,position:n,isPositioned:Q,searchRef:G,children:x.jsx(eA,{as:kce,allowPinchZoom:!0,children:x.jsx(JT,{asChild:!0,trapped:T.open,onMountAutoFocus:ye=>{ye.preventDefault()},onUnmountAutoFocus:Tt(a,ye=>{T.trigger?.focus({preventScroll:!0}),ye.preventDefault()}),children:x.jsx(Ay,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:ye=>ye.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:x.jsx(fe,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:ye=>ye.preventDefault(),..._,...Se,onPlaced:()=>X(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:Tt(_.onKeyDown,ye=>{const Ne=ye.ctrlKey||ye.altKey||ye.metaKey;if(ye.key==="Tab"&&ye.preventDefault(),!Ne&&ye.key.length===1&&Y(ye.key),["ArrowUp","ArrowDown","Home","End"].includes(ye.key)){let Pe=q().filter(ze=>!ze.disabled).map(ze=>ze.ref.current);if(["ArrowUp","End"].includes(ye.key)&&(Pe=Pe.slice().reverse()),["ArrowUp","ArrowDown"].includes(ye.key)){const ze=ye.target,we=Pe.indexOf(ze);Pe=Pe.slice(we+1)}setTimeout(()=>U(Pe)),ye.preventDefault()}})})})})})})});WH.displayName=Oce;var Nce="SelectItemAlignedPosition",YH=N.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...a}=e,i=Ml(Bu,r),s=Pl(Bu,r),[o,u]=N.useState(null),[c,h]=N.useState(null),d=nr(t,M=>h(M)),m=$y(r),v=N.useRef(!1),y=N.useRef(!0),{viewport:b,selectedItem:E,selectedItemText:_,focusSelectedItem:T}=s,C=N.useCallback(()=>{if(i.trigger&&i.valueNode&&o&&c&&b&&E&&_){const M=i.trigger.getBoundingClientRect(),j=c.getBoundingClientRect(),z=i.valueNode.getBoundingClientRect(),$=_.getBoundingClientRect();if(i.dir!=="rtl"){const ze=$.left-j.left,we=z.left-ze,ft=M.left-we,Qe=M.width+ft,zt=Math.max(Qe,j.width),Pt=window.innerWidth-Ni,Ut=u_(we,[Ni,Math.max(Ni,Pt-zt)]);o.style.minWidth=Qe+"px",o.style.left=Ut+"px"}else{const ze=j.right-$.right,we=window.innerWidth-z.right-ze,ft=window.innerWidth-M.right-we,Qe=M.width+ft,zt=Math.max(Qe,j.width),Pt=window.innerWidth-Ni,Ut=u_(we,[Ni,Math.max(Ni,Pt-zt)]);o.style.minWidth=Qe+"px",o.style.right=Ut+"px"}const F=m(),q=window.innerHeight-Ni*2,Q=b.scrollHeight,X=window.getComputedStyle(c),te=parseInt(X.borderTopWidth,10),U=parseInt(X.paddingTop,10),J=parseInt(X.borderBottomWidth,10),ee=parseInt(X.paddingBottom,10),de=te+U+Q+ee+J,G=Math.min(E.offsetHeight*5,de),Y=window.getComputedStyle(b),W=parseInt(Y.paddingTop,10),L=parseInt(Y.paddingBottom,10),le=M.top+M.height/2-Ni,fe=q-le,Se=E.offsetHeight/2,ye=E.offsetTop+Se,Ne=te+U+ye,xe=de-Ne;if(Ne<=le){const ze=F.length>0&&E===F[F.length-1].ref.current;o.style.bottom="0px";const we=c.clientHeight-b.offsetTop-b.offsetHeight,ft=Math.max(fe,Se+(ze?L:0)+we+J),Qe=Ne+ft;o.style.height=Qe+"px"}else{const ze=F.length>0&&E===F[0].ref.current;o.style.top="0px";const ft=Math.max(le,te+b.offsetTop+(ze?W:0)+Se)+xe;o.style.height=ft+"px",b.scrollTop=Ne-le+b.offsetTop}o.style.margin=`${Ni}px 0`,o.style.minHeight=G+"px",o.style.maxHeight=q+"px",n?.(),requestAnimationFrame(()=>v.current=!0)}},[m,i.trigger,i.valueNode,o,c,b,E,_,i.dir,n]);rn(()=>C(),[C]);const[P,O]=N.useState();rn(()=>{c&&O(window.getComputedStyle(c).zIndex)},[c]);const k=N.useCallback(M=>{M&&y.current===!0&&(C(),T?.(),y.current=!1)},[C,T]);return x.jsx(Mce,{scope:r,contentWrapper:o,shouldExpandOnScrollRef:v,onScrollButtonChange:k,children:x.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:x.jsx(ht.div,{...a,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});YH.displayName=Nce;var Rce="SelectPopperPosition",c_=N.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:a=Ni,...i}=e,s=Fy(r);return x.jsx(hU,{...s,...i,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...i.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)"}})});c_.displayName=Rce;var[Mce,oA]=T0(Bu,{}),f_="SelectViewport",XH=N.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...a}=e,i=Pl(f_,r),s=oA(f_,r),o=nr(t,i.onViewportChange),u=N.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:n}),x.jsx(zy.Slot,{scope:r,children:x.jsx(ht.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Tt(a.onScroll,c=>{const h=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:m}=s;if(m?.current&&d){const v=Math.abs(u.current-h.scrollTop);if(v>0){const y=window.innerHeight-Ni*2,b=parseFloat(d.style.minHeight),E=parseFloat(d.style.height),_=Math.max(b,E);if(_<y){const T=_+v,C=Math.min(y,T),P=T-C;d.style.height=C+"px",d.style.bottom==="0px"&&(h.scrollTop=P>0?P:0,d.style.justifyContent="flex-end")}}}u.current=h.scrollTop})})})]})});XH.displayName=f_;var KH="SelectGroup",[Pce,Ice]=T0(KH),Dce=N.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=gi();return x.jsx(Pce,{scope:r,id:a,children:x.jsx(ht.div,{role:"group","aria-labelledby":a,...n,ref:t})})});Dce.displayName=KH;var QH="SelectLabel",Lce=N.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=Ice(QH,r);return x.jsx(ht.div,{id:a.id,...n,ref:t})});Lce.displayName=QH;var V1="SelectItem",[jce,ZH]=T0(V1),JH=N.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:a=!1,textValue:i,...s}=e,o=Ml(V1,r),u=Pl(V1,r),c=o.value===n,[h,d]=N.useState(i??""),[m,v]=N.useState(!1),y=nr(t,T=>u.itemRefCallback?.(T,n,a)),b=gi(),E=N.useRef("touch"),_=()=>{a||(o.onValueChange(n),o.onOpenChange(!1))};if(n==="")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(jce,{scope:r,value:n,disabled:a,textId:b,isSelected:c,onItemTextChange:N.useCallback(T=>{d(C=>C||(T?.textContent??"").trim())},[]),children:x.jsx(zy.ItemSlot,{scope:r,value:n,disabled:a,textValue:h,children:x.jsx(ht.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...s,ref:y,onFocus:Tt(s.onFocus,()=>v(!0)),onBlur:Tt(s.onBlur,()=>v(!1)),onClick:Tt(s.onClick,()=>{E.current!=="mouse"&&_()}),onPointerUp:Tt(s.onPointerUp,()=>{E.current==="mouse"&&_()}),onPointerDown:Tt(s.onPointerDown,T=>{E.current=T.pointerType}),onPointerMove:Tt(s.onPointerMove,T=>{E.current=T.pointerType,a?u.onItemLeave?.():E.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Tt(s.onPointerLeave,T=>{T.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:Tt(s.onKeyDown,T=>{u.searchRef?.current!==""&&T.key===" "||(Ece.includes(T.key)&&_(),T.key===" "&&T.preventDefault())})})})})});JH.displayName=V1;var ah="SelectItemText",eq=N.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,...i}=e,s=Ml(ah,r),o=Pl(ah,r),u=ZH(ah,r),c=Tce(ah,r),[h,d]=N.useState(null),m=nr(t,_=>d(_),u.onItemTextChange,_=>o.itemTextRefCallback?.(_,u.value,u.disabled)),v=h?.textContent,y=N.useMemo(()=>x.jsx("option",{value:u.value,disabled:u.disabled,children:v},u.value),[u.disabled,u.value,v]),{onNativeOptionAdd:b,onNativeOptionRemove:E}=c;return rn(()=>(b(y),()=>E(y)),[b,E,y]),x.jsxs(x.Fragment,{children:[x.jsx(ht.span,{id:u.textId,...i,ref:m}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Lp.createPortal(i.children,s.valueNode):null]})});eq.displayName=ah;var tq="SelectItemIndicator",rq=N.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return ZH(tq,r).isSelected?x.jsx(ht.span,{"aria-hidden":!0,...n,ref:t}):null});rq.displayName=tq;var d_="SelectScrollUpButton",nq=N.forwardRef((e,t)=>{const r=Pl(d_,e.__scopeSelect),n=oA(d_,e.__scopeSelect),[a,i]=N.useState(!1),s=nr(t,n.onScrollButtonChange);return rn(()=>{if(r.viewport&&r.isPositioned){let o=function(){const c=u.scrollTop>0;i(c)};const u=r.viewport;return o(),u.addEventListener("scroll",o),()=>u.removeEventListener("scroll",o)}},[r.viewport,r.isPositioned]),a?x.jsx(iq,{...e,ref:s,onAutoScroll:()=>{const{viewport:o,selectedItem:u}=r;o&&u&&(o.scrollTop=o.scrollTop-u.offsetHeight)}}):null});nq.displayName=d_;var h_="SelectScrollDownButton",aq=N.forwardRef((e,t)=>{const r=Pl(h_,e.__scopeSelect),n=oA(h_,e.__scopeSelect),[a,i]=N.useState(!1),s=nr(t,n.onScrollButtonChange);return rn(()=>{if(r.viewport&&r.isPositioned){let o=function(){const c=u.scrollHeight-u.clientHeight,h=Math.ceil(u.scrollTop)<c;i(h)};const u=r.viewport;return o(),u.addEventListener("scroll",o),()=>u.removeEventListener("scroll",o)}},[r.viewport,r.isPositioned]),a?x.jsx(iq,{...e,ref:s,onAutoScroll:()=>{const{viewport:o,selectedItem:u}=r;o&&u&&(o.scrollTop=o.scrollTop+u.offsetHeight)}}):null});aq.displayName=h_;var iq=N.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...a}=e,i=Pl("SelectScrollButton",r),s=N.useRef(null),o=$y(r),u=N.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return N.useEffect(()=>()=>u(),[u]),rn(()=>{o().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[o]),x.jsx(ht.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Tt(a.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:Tt(a.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:Tt(a.onPointerLeave,()=>{u()})})}),Bce="SelectSeparator",zce=N.forwardRef((e,t)=>
362{const{__scopeSelect:r,...n}=e;return x.jsx(ht.div,{"aria-hidden":!0,...n,ref:t})});zce.displayName=Bce;var p_="SelectArrow",$ce=N.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=Fy(r),i=Ml(p_,r),s=Pl(p_,r);return i.open&&s.position==="popper"?x.jsx(pU,{...a,...n,ref:t}):null});$ce.displayName=p_;var Fce="SelectBubbleInput",sq=N.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const a=N.useRef(null),i=nr(n,a),s=bce(t);return N.useEffect(()=>{const o=a.current;if(!o)return;const u=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(s!==t&&h){const d=new Event("change",{bubbles:!0});h.call(o,t),o.dispatchEvent(d)}},[s,t]),x.jsx(ht.select,{...r,style:{...mU,...r.style},ref:i,defaultValue:t})});sq.displayName=Fce;function oq(e){return e===""||e===void 0}function lq(e){const t=Zn(e),r=N.useRef(""),n=N.useRef(0),a=N.useCallback(s=>{const o=r.current+s;t(o),(function u(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>u(""),1e3))})(o)},[t]),i=N.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return N.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,i]}function uq(e,t,r){const a=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let s=Uce(e,Math.max(i,0));a.length===1&&(s=s.filter(c=>c!==r));const u=s.find(c=>c.textValue.toLowerCase().startsWith(a.toLowerCase()));return u!==r?u:void 0}function Uce(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Hce=BH,qce=$H,Vce=UH,Gce=HH,Wce=qH,Yce=VH,Xce=XH,Kce=JH,Qce=eq,Zce=rq,Jce=nq,efe=aq;function zu({...e}){return x.jsx(Hce,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...e})}function $u({...e}){return x.jsx(Vce,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...e})}function Fu({className:e,size:t="default",children:r,...n}){return x.jsxs(qce,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:Nt("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),...n,children:[r,x.jsx(Gce,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:x.jsx(BU,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"})})]})}function Uu({className:e,children:t,position:r="popper",align:n="center",...a}){return x.jsx(Wce,{"data-loc":"client/src/components/ui/select.tsx:59",children:x.jsxs(Yce,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:Nt("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 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",r==="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:r,align:n,...a,children:[x.jsx(tfe,{"data-loc":"client/src/components/ui/select.tsx:72"}),x.jsx(Xce,{"data-loc":"client/src/components/ui/select.tsx:73",className:Nt("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),x.jsx(rfe,{"data-loc":"client/src/components/ui/select.tsx:82"})]})})}function oo({className:e,children:t,...r}){return x.jsxs(Kce,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:Nt("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),...r,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(Zce,{"data-loc":"client/src/components/ui/select.tsx:116",children:x.jsx(GT,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"})})}),x.jsx(Qce,{"data-loc":"client/src/components/ui/select.tsx:120",children:t})]})}function tfe({className:e,...t}){return x.jsx(Jce,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:Nt("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(yoe,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"})})}function rfe({className:e,...t}){return x.jsx(efe,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:Nt("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(BU,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"})})}function Hu({className:e,onKeyDown:t,onCompositionStart:r,onCompositionEnd:n,...a}){const i=kH(),{onCompositionStart:s,onCompositionEnd:o,onKeyDown:u}=DH({onKeyDown:c=>{const h=c.nativeEvent.isComposing||i.justEndedComposing();c.key==="Enter"&&!c.shiftKey&&h||t?.(c)},onCompositionStart:c=>{i.setComposing(!0),r?.(c)},onCompositionEnd:c=>{i.markCompositionEnd(),setTimeout(()=>{i.setComposing(!1)},100),n?.(c)}});return x.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:Nt("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:s,onCompositionEnd:o,onKeyDown:u,...a})}const nfe=e=>e?new Date(e).toLocaleDateString():"—";function afe(){const[e,t]=N.useState(""),[r,n]=N.useState(!1),a=Je.useUtils(),i=Je.crm.leads.list.useQuery({search:e||void 0}),s=Je.crm.leads.create.useMutation({onSuccess:u=>{_t.success(`Lead created with Scout Score ${u.score.score}
362/100.`),n(!1),a.crm.leads.list.invalidate(),a.workspace.dashboard.invalidate()},onError:u=>_t.error(u.message)}),o=Je.crm.leads.rescore.useMutation({onSuccess:u=>{_t.success(`Scout Score updated to ${u.score}/100.`),a.crm.leads.list.invalidate()},onError:u=>_t.error(u.message)});return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/CRM.tsx:20",eyebrow:"Prospects",title:"Lead workspace",description:"Prioritize the people most likely to benefit from a timely, informed conversation.",action:x.jsx(vo,{"data-loc":"client/src/pages/CRM.tsx:20",label:"Add lead",onClick:()=>n(!r)})}),r?x.jsx(ife,{"data-loc":"client/src/pages/CRM.tsx:20",onCancel:()=>n(!1),onSubmit:u=>s.mutate(u),loading:s.isPending}):null,x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:20",className:"mb-4 max-w-md",children:x.jsx(sA,{"data-loc":"client/src/pages/CRM.tsx:20",value:e,onChange:t,placeholder:"Search people, companies, or emails"})}),x.jsx(Ea,{"data-loc":"client/src/pages/CRM.tsx:20",loading:i.isLoading,error:i.error,empty:!i.data?.length,children:x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:20",className:"overflow-hidden rounded-2xl border-slate-200 shadow-sm",children:x.jsx(ct,{"data-loc":"client/src/pages/CRM.tsx:20",className:"p-0",children:x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:20",className:"overflow-x-auto",children:x.jsxs("table",{"data-loc":"client/src/pages/CRM.tsx:20",className:"w-full min-w-[760px] text-left",children:[x.jsx("thead",{"data-loc":"client/src/pages/CRM.tsx:20",className:"bg-slate-50 text-xs uppercase tracking-wide text-slate-400",children:x.jsxs("tr",{"data-loc":"client/src/pages/CRM.tsx:20",children:[x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-3 font-semibold",children:"Lead"}),x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-3 font-semibold",children:"Company"}),x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-3 font-semibold",children:"Status"}),x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-3 font-semibold",children:"Signals"}),x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-3 font-semibold",children:"Scout Score"}),x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-3"})]})}),x.jsx("tbody",{"data-loc":"client/src/pages/CRM.tsx:20",className:"divide-y divide-slate-100",children:i.data?.map(u=>x.jsxs("tr",{"data-loc":"client/src/pages/CRM.tsx:20",className:"group hover:bg-slate-50/70",children:[x.jsxs("td",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-4",children:[x.jsxs("p",{"data-loc":"client/src/pages/CRM.tsx:20",className:"font-medium text-slate-800",children:[u.firstName," ",u.lastName]}),x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:20",className:"mt-0.5 text-xs text-slate-500",children:u.jobTitle??u.email??"No role provided"})]}),x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-4 text-sm text-slate-600",children:u.company??"—"}),x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-4",children:x.jsx("span",{"data-loc":"client/src/pages/CRM.tsx:20",className:"rounded-md bg-slate-100 px-2 py-1 text-xs font-medium text-slate-600",children:u.status})}),x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-4 text-xs text-slate-500",children:u.scoreSignals&&Array.isArray(u.scoreSignals)?`${u.scoreSignals.filter(c=>typeof c=="object"&&c&&"kind"in c&&c.kind==="positive").length} positive signals`:"Not scored"}),x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-4",children:x.jsx($p,{"data-loc":"client/src/pages/CRM.tsx:20",value:u.scoutScore})}),x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:20",className:"px-5 py-4 text-right",children:x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:20",variant:"ghost",size:"sm",disabled:o.isPending,onClick:()=>o.mutate({id:u.id}),children:"Re-score"})})]},u.id))})]})})})})})]})}function ife({onCancel:e,onSubmit:t,loading:r}){const[n,a]=N.useState("0"),[i,s]=N.useState("0"),[o,u]=N.useState("0"),c=h=>{h.preventDefault();const d=new FormData(h.currentTarget);t({firstName:String(d.get("firstName")??""),lastName:String(d.get("lastName")||"")||void 0,email:String(d.get("email")||"")||void 0,company:String(d.get("company")||"")||void 0,jobTitle:String(d.get("jobTitle")||"")||void 0,industry:String(d.get("industry")||"")||void 0,companySize:String(d.get("companySize")||"")||void 0,source:String(d.get("source")||"")||void 0,intentScore:Number(n),fitScore:Number(i),engagementScore:Number(o)})};return x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:23",className:"mb-5 rounded-2xl border-indigo-100 bg-indigo-50/30 shadow-sm",children:x.jsx(ct,{"data-loc":"client/src/pages/CRM.tsx:23",className:"p-5",children:x.jsxs("form",{"data-loc":"client/src/pages/CRM.tsx:23",onSubmit:c,children:[x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:23",className:"mb-4 flex items-center justify-between",children:[x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:23",children:[x.jsx("h2",{"data-loc":"client/src/pages/CRM.tsx:23",className:"font-semibold",children:"Add a qualified lead"}),x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:23",className:"mt-1 text-sm text-slate-500",children:"Scout Score is calculated from the context you provide and remains explainable."})]}),x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:23",type:"button",variant:"ghost",onClick:e,children:"Cancel"})]}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:23",className:"grid gap-3 md:grid-cols-2 xl:grid-cols-4",children:[x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:23",label:"First name",name:"firstName",required:!0}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:23",label:"Last name",name:"lastName"}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:23",label:"Work email",name:"email",type:"email"}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:23",label:"Company",name:"company"}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:23",label:"Job title",name:"jobTitle"}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:23",label:"Industry",name:"industry"}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:23",label:"Company size",name:"companySize"}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:23",label:"Source",name:"source"}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:23",label:"Intent score",name:"intentScore",type:"number",min:"0",max:"100",value:n,onChange:a}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:23",label:"ICP fit score",name:"fitScore",type:"number",min:"0",max:"100",value:i,onChange:s}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:23",label:"Engagement score",name:"engagementScore",type:"number",min:"0",max:"100",value:o,onChange:u})]}),x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:23",className:"mt-5 flex justify-end",children:x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:23",disabled:r,className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:r?"Calculating…":"Create & score lead"})})]})})})}function sfe(){const[e,t]=N.useState(""),[r,n]=N.useState(!1),a=Je.useUtils(),i=Je.crm.accounts.list.useQuery({search:e||void 0}),s=Je.crm.accounts.summary.useQuery(),o=Je.crm.accounts.create.useMutation({onSuccess:()=>{_t.success("Account added to the workspace."),n(!1),a.crm.accounts.list.invali
362date(),a.crm.accounts.summary.invalidate()},onError:c=>_t.error(c.message)}),u=s.isLoading?"Loading persistent account count…":`${s.data?.total??0} persistent accounts · ${s.data?.loqtaImported??0} LOQTA imports`;return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/CRM.tsx:25",eyebrow:"Companies",title:"Account intelligence",description:`Build a structured company profile around every customer relationship. ${u}`,action:x.jsx(vo,{"data-loc":"client/src/pages/CRM.tsx:25",label:"Add account",onClick:()=>n(!r)})}),r?x.jsx(dfe,{"data-loc":"client/src/pages/CRM.tsx:25",title:"Add account",fields:["name","website","industry","companySize","location","businessModel"],onCancel:()=>n(!1),loading:o.isPending,onSubmit:c=>o.mutate({name:c.name??"",website:c.website||void 0,industry:c.industry||void 0,companySize:c.companySize||void 0,location:c.location||void 0,businessModel:c.businessModel||void 0})}):null,x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:25",className:"mb-4 max-w-md",children:x.jsx(sA,{"data-loc":"client/src/pages/CRM.tsx:25",value:e,onChange:t,placeholder:"Search accounts or LOQTA source phone"})}),x.jsx(Ea,{"data-loc":"client/src/pages/CRM.tsx:25",loading:i.isLoading,error:i.error,empty:!i.data?.length,children:x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:25",className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:i.data?.map(c=>x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:25",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/CRM.tsx:25",className:"p-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:25",className:"flex items-start gap-3",children:[x.jsx("span",{"data-loc":"client/src/pages/CRM.tsx:25",className:"grid size-10 place-items-center rounded-xl bg-indigo-50 text-indigo-600",children:x.jsx(jU,{"data-loc":"client/src/pages/CRM.tsx:25",className:"size-5"})}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:25",className:"min-w-0",children:[x.jsx("h2",{"data-loc":"client/src/pages/CRM.tsx:25",className:"truncate font-semibold",children:c.name}),x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:25",className:"mt-1 truncate text-sm text-slate-500",children:c.industry??"Industry to be added"})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:25",className:"mt-5 grid grid-cols-2 gap-3 text-sm",children:[x.jsx(JN,{"data-loc":"client/src/pages/CRM.tsx:25",label:"Size",value:c.companySize??"—"}),x.jsx(JN,{"data-loc":"client/src/pages/CRM.tsx:25",label:"Location",value:c.location??"—"})]}),c.aiBrief?x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:25",className:"mt-4 rounded-xl bg-slate-50 p-3 text-xs leading-5 text-slate-600",children:c.aiBrief}):x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:25",className:"mt-4 text-xs text-slate-400",children:"AI Account Brief becomes available when organization knowledge and account activity are available."})]})},c.id))})})]})}function ofe(){const[e,t]=N.useState(""),[r,n]=N.useState(!1),a=Je.useUtils(),i=Je.crm.contacts.list.useQuery({search:e||void 0}),s=Je.crm.contacts.create.useMutation({onSuccess:()=>{_t.success("Contact added."),n(!1),a.crm.contacts.list.invalidate()},onError:o=>_t.error(o.message)});return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/CRM.tsx:27",eyebrow:"People",title:"Contact intelligence",description:"Map stakeholders, their engagement, and their relationship to your opportunities.",action:x.jsx(vo,{"data-loc":"client/src/pages/CRM.tsx:27",label:"Add contact",onClick:()=>n(!r)})}),r?x.jsx(hfe,{"data-loc":"client/src/pages/CRM.tsx:27",onCancel:()=>n(!1),loading:s.isPending,onSubmit:s.mutate}):null,x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:27",className:"mb-4 max-w-md",children:x.jsx(sA,{"data-loc":"client/src/pages/CRM.tsx:27",value:e,onChange:t,placeholder:"Search contacts"})}),x.jsx(Ea,{"data-loc":"client/src/pages/CRM.tsx:27",loading:i.isLoading,error:i.error,empty:!i.data?.length,children:x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:27",className:"overflow-hidden rounded-2xl border-slate-200 shadow-sm",children:x.jsx(ct,{"data-loc":"client/src/pages/CRM.tsx:27",className:"p-0",children:x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:27",className:"divide-y divide-slate-100",children:i.data?.map(o=>x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:27",className:"flex items-center gap-4 px-5 py-4",children:[x.jsx("span",{"data-loc":"client/src/pages/CRM.tsx:27",className:"grid size-10 place-items-center rounded-full bg-slate-100 text-slate-600",children:x.jsx(zoe,{"data-loc":"client/src/pages/CRM.tsx:27",className:"size-4"})}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:27",className:"min-w-0 flex-1",children:[x.jsxs("p",{"data-loc":"client/src/pages/CRM.tsx:27",className:"font-medium",children:[o.firstName," ",o.lastName]}),x.jsxs("p",{"data-loc":"client/src/pages/CRM.tsx:27",className:"truncate text-sm text-slate-500",children:[o.jobTitle??"Role not set",o.email?` · ${o.email}`:""]})]}),x.jsx("span",{"data-loc":"client/src/pages/CRM.tsx:27",className:"hidden rounded-md bg-slate-100 px-2 py-1 text-xs capitalize text-slate-600 sm:block",children:o.stakeholderRole.replaceAll("_"," ")}),x.jsx($p,{"data-loc":"client/src/pages/CRM.tsx:27",value:o.engagementScore})]},o.id))})})})})]})}function lfe(){const[e,t]=N.useState(!1),r=Je.useUtils(),n=Je.crm.pipeline.list.useQuery(),a=Je.crm.deals.list.useQuery({}),i=Je.crm.pipeline.create.useMutation({onSuccess:()=>
362{_t.success("Pipeline created."),r.crm.pipeline.list.invalidate()},onError:c=>_t.error(c.message)}),s=Je.crm.deals.create.useMutation({onSuccess:()=>{_t.success("Deal created and health assessed."),t(!1),r.crm.deals.list.invalidate(),r.workspace.dashboard.invalidate()},onError:c=>_t.error(c.message)}),o=Je.crm.deals.move.useMutation({onSuccess:()=>{r.crm.deals.list.invalidate(),r.workspace.dashboard.invalidate()},onError:c=>_t.error(c.message)}),u=n.data?.[0];return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/CRM.tsx:29",eyebrow:"Pipeline",title:"Deal workspace",description:"A visual, multi-stage view of commercial momentum and deal health.",action:u?x.jsx(vo,{"data-loc":"client/src/pages/CRM.tsx:29",label:"Add deal",onClick:()=>t(!e)}):void 0}),n.isLoading||a.isLoading?x.jsx(Ea,{"data-loc":"client/src/pages/CRM.tsx:29",loading:!0,error:void 0,empty:!1,children:x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:29"})}):u?x.jsxs(x.Fragment,{children:[x.jsxs("p",{"data-loc":"client/src/pages/CRM.tsx:29",className:"mb-4 text-sm text-slate-500",children:[u.name," · Drag-ready stage workflow with controlled, audited stage moves."]}),e?x.jsx(pfe,{"data-loc":"client/src/pages/CRM.tsx:29",pipeline:u,onCancel:()=>t(!1),onSubmit:s.mutate,loading:s.isPending}):null,x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:29",className:"grid gap-4 xl:grid-cols-5",children:u.stages.map(c=>{const h=a.data?.filter(d=>d.stageId===c.id)??[];return x.jsxs("section",{"data-loc":"client/src/pages/CRM.tsx:29",className:"min-h-64 rounded-2xl border border-slate-200 bg-slate-50/60 p-3",children:[x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:29",className:"mb-3 flex items-center justify-between",children:[x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:29",className:"flex items-center gap-2",children:[x.jsx("span",{"data-loc":"client/src/pages/CRM.tsx:29",className:"size-2 rounded-full",style:{background:c.color}}),x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:29",className:"text-sm font-semibold",children:c.name})]}),x.jsx("span",{"data-loc":"client/src/pages/CRM.tsx:29",className:"text-xs text-slate-400",children:h.length})]}),x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:29",className:"space-y-2",children:h.map(d=>x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:29",className:"rounded-xl border-slate-200 bg-white shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/CRM.tsx:29",className:"p-3",children:[x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:29",className:"text-sm font-medium",children:d.name}),x.jsxs("p",{"data-loc":"client/src/pages/CRM.tsx:29",className:"mt-1 text-xs text-slate-500",children:["$",Number(d.value).toLocaleString()," · ",d.probability,"%"]}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:29",className:"mt-3 flex items-center justify-between",children:[x.jsx($p,{"data-loc":"client/src/pages/CRM.tsx:29",value:d.healthScore}),x.jsxs(zu,{"data-loc":"client/src/pages/CRM.tsx:29",onValueChange:m=>o.mutate({id:d.id,stageId:Number(m)}),children:[x.jsx(Fu,{"data-loc":"client/src/pages/CRM.tsx:29",className:"h-7 w-24 border-0 bg-slate-50 text-[11px]",children:x.jsx($u,{"data-loc":"client/src/pages/CRM.tsx:29",placeholder:"Move"})}),x.jsx(Uu,{"data-loc":"client/src/pages/CRM.tsx:29",children:u.stages.filter(m=>m.id!==c.id).map(m=>x.jsx(oo,{"data-loc":"client/src/pages/CRM.tsx:29",value:String(m.id),children:m.name},m.id))})]})]})]})},d.id))})]},c.id)})})]}):x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:29",className:"rounded-2xl border-dashed border-slate-300",children:x.jsxs(ct,{"data-loc":"client/src/pages/CRM.tsx:29",className:"p-10 text-center",children:[x.jsx(gfe,{"data-loc":"client/src/pages/CRM.tsx:29"}),x.jsx("h2",{"data-loc":"client/src/pages/CRM.tsx:29",className:"mt-4 font-semibold",children:"Set up your first sales pipeline"}),x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:29",className:"mx-auto mt-2 max-w-md text-sm text-slate-500",children:"Create a real pipeline with editable stages. No CRM data is preloaded."}),x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:29",disabled:i.isPending,onClick:()=>i.mutate({name:"Sales pipeline",stages:[{name:"Discovery",probability:15,color:"#6366f1",stageType:"open"},{name:"Qualified",probability:35,color:"#0ea5e9",stageType:"open"},{name:"Proposal",probability:65,color:"#f59e0b",stageType:"open"},{name:"Closed won",probability:100,color:"#10b981",stageType:"won"},{name:"Closed lost",probability:0,color:"#ef4444",stageType:"lost"}]}),className:"mt-5 rounded-xl bg-indigo-600 hover:bg-indigo-700",children:"Create sales pipeline"})]})})]})}function ufe(){const e=Je.useUtils(),t=Je.crm.tasks.list.useQuery({status:"open"}),r=Je.crm.tasks.complete.useMutation({onSuccess:()=>
362{_t.success("Task completed."),e.crm.tasks.list.invalidate(),e.workspace.dashboard.invalidate()},onError:s=>_t.error(s.message)}),[n,a]=N.useState(!1),i=Je.crm.tasks.create.useMutation({onSuccess:()=>{_t.success("Task created."),a(!1),e.crm.tasks.list.invalidate(),e.workspace.dashboard.invalidate()},onError:s=>_t.error(s.message)});return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/CRM.tsx:31",eyebrow:"Execution",title:"Tasks & follow-through",description:"Keep every next step visible, owned, and connected to real revenue work.",action:x.jsx(vo,{"data-loc":"client/src/pages/CRM.tsx:31",label:"Create task",onClick:()=>a(!n)})}),n?x.jsx(mfe,{"data-loc":"client/src/pages/CRM.tsx:31",onCancel:()=>a(!1),onSubmit:i.mutate,loading:i.isPending}):null,x.jsx(Ea,{"data-loc":"client/src/pages/CRM.tsx:31",loading:t.isLoading,error:t.error,empty:!t.data?.length,children:x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:31",className:"space-y-2",children:t.data?.map(s=>x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:31",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/CRM.tsx:31",className:"flex items-center gap-4 p-4",children:[x.jsx("button",{"data-loc":"client/src/pages/CRM.tsx:31",onClick:()=>r.mutate({id:s.id,completed:!0}),"aria-label":`Complete ${s.title}`,className:"grid size-6 place-items-center rounded-full border-2 border-slate-300 text-transparent transition hover:border-indigo-600 hover:text-indigo-600",children:x.jsx(GT,{"data-loc":"client/src/pages/CRM.tsx:31",className:"size-3"})}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:31",className:"min-w-0 flex-1",children:[x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:31",className:"font-medium",children:s.title}),x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:31",className:"mt-1 truncate text-sm text-slate-500",children:s.description??"No additional context"})]}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:31",className:"text-right",children:[x.jsx("span",{"data-loc":"client/src/pages/CRM.tsx:31",className:`rounded-md px-2 py-1 text-xs font-medium ${s.priority==="urgent"?"bg-rose-50 text-rose-700":s.priority==="high"?"bg-amber-50 text-amber-700":"bg-slate-100 text-slate-600"}`,children:s.priority}),x.jsxs("p",{"data-loc":"client/src/pages/CRM.tsx:31",className:"mt-2 text-xs text-slate-400",children:["Due ",nfe(s.dueAt)]})]})]})},s.id))})})]})}function ZN(){const e=Je.workspace.bootstrap.useQuery(),t=Je.governance.overview.useQuery(),r=Je.useUtils(),n=Je.workspace.onboarding.save.useMutation({onSuccess:()=>{_t.success("Workspace profile saved."),r.workspace.bootstrap.invalidate()},onError:s=>_t.error(s.message)}),a=e.data?.organization,i=s=>{s.preventDefault();const o=new FormData(s.currentTarget);n.mutate({name:String(o.get("name")??""),industry:String(o.get("industry")||"")||void 0,companySize:String(o.get("companySize")||"")||void 0,website:String(o.get("website")||"")||void 0,step:12,complete:!0})};return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/CRM.tsx:33",eyebrow:"Workspace",title:"Team & settings",description:"Complete your organization context to make CRM intelligence more relevant."}),x.jsx(Ea,{"data-loc":"client/src/pages/CRM.tsx:33",loading:e.isLoading,error:e.error,empty:!a,children:x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:33",className:"grid max-w-5xl gap-5 xl:grid-cols-[1fr_340px]",children:[x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:33",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsx(ct,{"data-loc":"client/src/pages/CRM.tsx:33",className:"p-6",children:x.jsxs("form",{"data-loc":"client/src/pages/CRM.tsx:33",onSubmit:i,className:"space-y-4",children:[x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:33",label:"Company name",name:"name",required:!0,defaultValue:a?.name??""}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:33",label:"Industry",name:"industry",defaultValue:a?.industry??""}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:33",label:"Company size",name:"companySize",defaultValue:a?.companySize??""}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:33",label:"Website",name:"website",type:"url",defaultValue:a?.website??""}),x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:33",className:"flex justify-end",children:x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:33",disabled:n.isPending,className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:n.isPending?"Saving…":"Save workspace profile"})})]})})}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:33",className:"space-y-4",children:[x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:33",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/CRM.tsx:33",className:"p-5",children:[x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:33",className:"text-sm font-semibold",children:"AI usage"}),x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:33",className:"mt-3 text-2xl font-semibold",children:t.data?.usage.requests??
3620}),x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:33",className:"text-xs text-slate-500",children:"Recorded Copilot requests"}),x.jsxs("p",{"data-loc":"client/src/pages/CRM.tsx:33",className:"mt-4 text-sm font-medium text-slate-700",children:[t.data?.usage.tokenEstimate??0," tokens"]}),x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:33",className:"text-xs text-slate-500",children:"Recorded prompt + completion tokens"})]})}),x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:33",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/CRM.tsx:33",className:"p-5",children:[x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:33",className:"text-sm font-semibold",children:"Governance activity"}),x.jsxs("p",{"data-loc":"client/src/pages/CRM.tsx:33",className:"mt-3 text-sm text-slate-600",children:[t.data?.audits.length??0," recent audit events available to your role."]}),x.jsxs("p",{"data-loc":"client/src/pages/CRM.tsx:33",className:"mt-2 text-sm text-slate-600",children:[t.data?.integrations.length??0," integration configuration records."]})]})})]})]})}),x.jsx(cfe,{"data-loc":"client/src/pages/CRM.tsx:33",loading:t.isLoading,error:t.error,records:t.data?.usage.records??[]}),x.jsx(ffe,{"data-loc":"client/src/pages/CRM.tsx:33",loading:t.isLoading,error:t.error,audits:t.data?.audits??[]})]})}function cfe({loading:e,error:t,records:r}){return x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:35",className:"mt-5 max-w-5xl rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/CRM.tsx:35",className:"p-5",children:[x.jsx("h2",{"data-loc":"client/src/pages/CRM.tsx:35",className:"font-semibold",children:"Recent AI usage records"}),e?x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:35",className:"mt-3 text-sm text-slate-500",children:"Loading usage history…"}):t?x.jsxs("p",{"data-loc":"client/src/pages/CRM.tsx:35",className:"mt-3 text-sm text-rose-600",children:["Usage history could not load: ",t.message]}):r.length?x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:35",className:"mt-4 overflow-x-auto",children:x.jsxs("table",{"data-loc":"client/src/pages/CRM.tsx:35",className:"w-full min-w-[580px] text-left text-sm",children:[x.jsx("thead",{"data-loc":"client/src/pages/CRM.tsx:35",className:"border-b text-xs uppercase tracking-wide text-slate-400",children:x.jsxs("tr",{"data-loc":"client/src/pages/CRM.tsx:35",children:[x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:35",className:"pb-2",children:"Category"}),x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:35",className:"pb-2",children:"Quantity"}),x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:35",className:"pb-2",children:"Tokens"}),x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:35",className:"pb-2",children:"Recorded"})]})}),x.jsx("tbody",{"data-loc":"client/src/pages/CRM.tsx:35",children:r.slice(0,10).map(n=>{const a=n.metadata&&typeof n.metadata=="object"?n.metadata:{},i=Number(a.promptTokens??0)+Number(a.completionTokens??0);return x.jsxs("tr",{"data-loc":"client/src/pages/CRM.tsx:35",className:"border-b border-slate-100",children:[x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:35",className:"py-3 font-medium",children:n.category}),x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:35",className:"py-3",children:n.quantity}),x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:35",className:"py-3",children:i||"—"}),x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:35",className:"py-3 text-slate-500",children:new Date(n.recordedAt).toLocaleString()})]},n.id)})})]})}):x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:35",className:"mt-3 text-sm text-slate-500",children:"No AI usage has been recorded for this organization yet."})]})})}function ffe({loading:e,error:t,audits:r}){return x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:37",className:"mt-5 max-w-5xl rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/CRM.tsx:37",className:"p-5",children:[x.jsx("h2",{"data-loc":"client/src/pages/CRM.tsx:37",className:"font-semibold",children:"Recent audit events"}),e?x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:37",className:"mt-3 text-sm text-slate-500",children:"Loading audit events…"}):t?x.jsxs("p",{"data-loc":"client/src/pages/CRM.tsx:37",className:"mt-3 text-sm text-rose-600",children:["Audit events could not load: ",t.message]}):r.length?x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:37",className:"mt-4 overflow-x-auto",children:x.jsxs("table",{"data-loc":"client/src/pages/CRM.tsx:37",className:"w-full min-w-[580px] text-left text-sm",children:[x.jsx("thead",{"data-loc":"client/src/pages/CRM.tsx:37",className:"border-b text-xs uppercase tracking-wide text-slate-400",children:x.jsxs("tr",{"data-loc":"client/src/pages/CRM.tsx:37",children:[x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:37",className:"pb-2",children:"Action"}),x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:37",className:"pb-2",children:"Entity"}),x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:37",className:"pb-2",children:"Reference"}),x.jsx("th",{"data-loc":"client/src/pages/CRM.tsx:37",className:"pb-2",children:"Recorded"})]})}),x.jsx("tbody",{"data-loc":"client/src/pages/CRM.tsx:37",children:r.slice(0,15).map(n=>x.jsxs("tr",{"data-loc":"client/src/pages/CRM.tsx:37",className:"border-b border-slate-100",children:[x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:37",className:"py-3 font-medium capitalize",children:n.action.replaceAll("_"," ")}),x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:37",className:"py-3",children:n.entityType}),x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:37",className:"py-3 text-slate-500",children:n.entity
362Id??"—"}),x.jsx("td",{"data-loc":"client/src/pages/CRM.tsx:37",className:"py-3 text-slate-500",children:new Date(n.createdAt).toLocaleString()})]},n.id))})]})}):x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:37",className:"mt-3 text-sm text-slate-500",children:"No audit events are available to your role yet."})]})})}function Tr({label:e,name:t,type:r="text",required:n,min:a,max:i,value:s,onChange:o,defaultValue:u}){return x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:39",className:"space-y-1.5",children:[x.jsx(fs,{"data-loc":"client/src/pages/CRM.tsx:39",htmlFor:t,className:"text-xs font-medium text-slate-600",children:e}),x.jsx(Eu,{"data-loc":"client/src/pages/CRM.tsx:39",id:t,name:t,type:r,required:n,min:a,max:i,value:s,onChange:o?c=>o(c.target.value):void 0,defaultValue:u,className:"rounded-xl border-slate-200 bg-white"})]})}function JN({label:e,value:t}){return x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:40",children:[x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:40",className:"text-xs text-slate-400",children:e}),x.jsx("p",{"data-loc":"client/src/pages/CRM.tsx:40",className:"mt-1 truncate font-medium text-slate-700",children:t})]})}function dfe({title:e,fields:t,onCancel:r,onSubmit:n,loading:a}){return x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:41",className:"mb-5 rounded-2xl border-indigo-100 bg-indigo-50/30",children:x.jsx(ct,{"data-loc":"client/src/pages/CRM.tsx:41",className:"p-5",children:x.jsxs("form",{"data-loc":"client/src/pages/CRM.tsx:41",onSubmit:i=>{i.preventDefault(),n(Object.fromEntries(new FormData(i.currentTarget)))},children:[x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:41",className:"mb-4 flex items-center justify-between",children:[x.jsx("h2",{"data-loc":"client/src/pages/CRM.tsx:41",className:"font-semibold",children:e}),x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:41",type:"button",variant:"ghost",onClick:r,children:"Cancel"})]}),x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:41",className:"grid gap-3 md:grid-cols-3",children:t.map(i=>x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:41",label:i.replace(/([A-Z])/g," $1"),name:i,required:i==="name",type:i==="website"?"url":"text"},i))}),x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:41",className:"mt-5 flex justify-end",children:x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:41",disabled:a,className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:a?"Saving…":"Save account"})})]})})})}function hfe({onCancel:e,onSubmit:t,loading:r}){return x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:42",className:"mb-5 rounded-2xl border-indigo-100 bg-indigo-50/30",children:x.jsx(ct,{"data-loc":"client/src/pages/CRM.tsx:42",className:"p-5",children:x.jsxs("form",{"data-loc":"client/src/pages/CRM.tsx:42",onSubmit:n=>{n.preventDefault();const a=new FormData(n.currentTarget);t({firstName:String(a.get("firstName")??""),lastName:String(a.get("lastName")||"")||void 0,email:String(a.get("email")||"")||void 0,jobTitle:String(a.get("jobTitle")||"")||void 0,stakeholderRole:String(a.get("stakeholderRole")??"unknown")})},children:[x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:42",className:"mb-4 flex items-center justify-between",children:[x.jsx("h2",{"data-loc":"client/src/pages/CRM.tsx:42",className:"font-semibold",children:"Add contact"}),x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:42",type:"button",variant:"ghost",onClick:e,children:"Cancel"})]}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:42",className:"grid gap-3 md:grid-cols-3",children:[x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:42",label:"First name",name:"firstName",required:!0}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:42",label:"Last name",name:"lastName"}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:42",label:"Work email",name:"email",type:"email"}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:42",label:"Job title",name:"jobTitle"}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:42",className:"space-y-1.5",children:[x.jsx(fs,{"data-loc":"client/src/pages/CRM.tsx:42",className:"text-xs font-medium text-slate-600",children:"Stakeholder role"}),x.jsxs(zu,{"data-loc":"client/src/pages/CRM.tsx:42",name:"stakeholderRole",defaultValue:"unknown",children:[x.jsx(Fu,{"data-loc":"client/src/pages/CRM.tsx:42",className:"rounded-xl border-slate-200 bg-white",children:x.jsx($u,{"data-loc":"client/src/pages/CRM.tsx:42"})}),x.jsx(Uu,{"data-loc":"client/src/pages/CRM.tsx:42",children:["unknown","decision_maker","champion","influencer","end_user","gatekeeper"].map(n=>x.jsx(oo,{"data-loc":"client/src/pages/CRM.tsx:42",value:n,children:n.replaceAll("_"," ")},n))})]})]})]}),x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:42",className:"mt-5 flex justify-end",children:x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:42",disabled:r,className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:r?"Saving…":"Save contact"})})]})})})}function pfe({pipeline:e,onCancel:t,onSubmit:r,loading:n}){const[a,i]=N.useState(String(e.stages[0]?.id??"")),s=e.stages.find(o=>o.id===Number(a));return x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:43",className:"mb-5 rounded-2xl border-indigo-100 bg-indigo-50/30",children:x.jsx(ct,{"data-loc":"client/src/pages/CRM.tsx:43",className:"p-5",children:x.jsxs("form",{"data-loc":"client/src/pages/CRM.tsx:43",onSubmit:o=>{o.preventDefault();const u=new FormData(o.currentTarget);r({pipelineId:e.id,stageId:Number(a),name:String(u.get("name")??""),value:Number(u.get("value")??0),currency:"USD",probability:s?.probability??0,nextStep:String(u.get("nextStep")||"")||void 0})},children:[x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:43",className:"mb-4 flex items-center justify-between",children:[x.jsx("h2",{"data-loc":"client/src/pages/CRM.tsx:43",className:"font-semibold",children:"Add deal"}),x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:43",type:"button",variant:"ghost",onClick:t,children:"Cancel"})]}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:43",className:"grid gap-3 md:grid-cols-4",children:[x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:43",label:"Deal name",name:"name",required:!0}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:43",label:"Value (USD)",name:"value",type:"number",required:!0,min:"0"}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:43",className:"space-y-1.5",children:[x.jsx(fs,{"data-loc":"client/src/pages/CRM.tsx:43",className:"text-xs font-medium text-slate-600",children:"Pipeline stage"}),x.jsxs(zu,{"data-loc":"client/src/pages/CRM.tsx:43",value:a,onValueChange:i,children:[x.jsx(Fu,{"data-loc":"client/src/pages/CRM.tsx:43",className:"rounded-xl border-slate-200 bg-white",children:x.jsx($u,{"data-loc":"client/src/pages/CRM.tsx:43"})}),x.jsx(Uu,{"data-loc":"client/src/pages/CRM.tsx:43",children:e.stages.map(o=>x.jsxs(oo,{"data-loc":"client/src/pages/CRM.tsx:43",value:String(o.id),children:[o.name," · ",o.probability,"%"]},o.id))})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:43",className:"md:col-span-4",children:[x.jsx(fs,{"data-loc":"client/src/pages/CRM.tsx:43",htmlFor:"nextStep",className:"text-xs font-medium text-slate-600",children:"Documented next step"}),x.jsx(Hu,{"data-loc":"client/src/pages/CRM.tsx:43",id:"nextStep",name:"nextStep",className:"mt-1.5 rounded-xl border-slate-200 bg-white",placeholder:"For example: confirm decision-maker needs and schedule proposal review"})]})]}),x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:43",className:"mt-5 flex justify-end",children:x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:43",disabled:n,className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:n?"Assessing…":"Create & assess deal"})})]})})})}function mfe({onCancel:e,onSubmit:t,loading:r}){const[n,a]=N.useState("medium");return x.jsx(ut,{"data-loc":"client/src/pages/CRM.tsx:44",className:"mb-5 rounded-2xl border-indigo-100 bg-indigo-50/30",children:x.jsx(ct,{"data-loc":"client/src/pages/CRM.tsx:44",className:"p-5",children:x.jsxs("form",{"data-loc":"client/src/pages/CRM.tsx:44",onSubmit:i=>{i.preventDefault();const s=new FormData(i.currentTarget),o=String(s.get("dueAt")||"");t({title:String(s.get("title")??""),description:String(s.get("description")||"")||void 0,priority:n,dueAt:o?new Date(`${o}T12:00:00`):void 0})},children:[x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:44",className:"mb-4 flex items-center justify-between",children:[x.jsx("h2",{"data-loc":"client/src/pages/CRM.tsx:44",className:"font-semibold",children:"Create task"}),x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:44",type:"button",variant:"ghost",onClick:e,children:"Cancel"})]}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:44",className:"grid gap-3 md:grid-cols-3",children:[x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:44",label:"Task title",name:"title",required:!0}),x.jsx(Tr,{"data-loc":"client/src/pages/CRM.tsx:44",label:"Due date",name:"dueAt",type:"date"}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:44",className:"space-y-1.5",children:[x.jsx(fs,{"data-loc":"client/src/pages/CRM.tsx:44",className:"text-xs font-medium text-slate-600",children:"Priority"}),x.jsxs(zu,{"data-loc":"client/src/pages/CRM.tsx:44",value:n,onValueChange:i=>a(i),children:[x.jsx(Fu,{"data-loc":"client/src/pages/CRM.tsx:44",className:"rounded-xl border-slate-200 bg-white",children:x.jsx($u,{"data-loc":"client/src/pages/CRM.tsx:44"})}),x.jsx(Uu,{"data-loc":"client/src/pages/CRM.tsx:44",children:["low","medium","high","urgent"].map(i=>x.jsx(oo,{"data-loc":"client/src/pages/CRM.tsx:44",value:i,children:i},i))})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/CRM.tsx:44",className:"md:col-span-3",children:[x.jsx(fs,{"data-loc":"client/src/pages/CRM.tsx:44",htmlFor:"description",className:"text-xs font-medium text-slate-600",children:"Context"}),x.jsx(Hu,{"data-loc":"client/src/pages/CRM.tsx:44",id:"description",name:"description",className:"mt-1.5 rounded-xl border-slate-200 bg-white"})]})]}),x.jsx("div",{"data-loc":"client/src/pages/CRM.tsx:44",className:"mt-5 flex justify-end",children:x.jsx(jt,{"data-loc":"client/src/pages/CRM.tsx:44",disabled:r,className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:r?"Creating…":"Create task"})})]})})})}function gfe(){return x.jsx("span",{"data-loc":"client/src/pages/CRM.tsx:45",className:"mx-auto grid size-12 place-items-center rounded-2xl bg-indigo-50 text-indigo-600",children:x.jsx(XT,{"data-loc":"client/src/pages/CRM.tsx:45",className:"size-6"})})}const zg=e=>new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",maximumFractionDigits:0}).format(e);function eR(){const e=Je.workspace.dashboard.useQuery(),[,t]=Dy(),r=e.data,n=!!(r&&(r.metrics.accounts||r.metrics.leads||r.metrics.openDeals||r.metrics.overdueTasks));return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/Workspace.tsx:17",eyebrow:"My Scout",title:"Your revenue command center",description:"Live priorities and opportunity signals, calculated from your organization’s CRM activity.",action:x.jsxs(jt,{"data-loc":"client/src/pages/Workspace.tsx:17",onClick:()=>t("/copilot"),className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:[x.jsx(XT,{"data-loc":"client/src/pages/Workspace.tsx:17",className:"mr-2 size-4"}),"Ask Scout"]})}),e.error?x.jsx(ut,{"data-loc":"client/src/pages/Workspace.tsx:18",className:"rounded-2xl border-rose-200 bg-rose-50",children:x.jsxs(ct,{"data-loc":"client/src/pages/Workspace.tsx:18",className:"p-6",children:[x.jsx("h2",{"data-loc":"client/src/pages/Workspace.tsx:18",className:"font-semibold text-rose-900",children:"Worksp
362ace data could not load"}),x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:18",className:"mt-2 text-sm text-rose-700",children:e.error.message}),x.jsx(jt,{"data-loc":"client/src/pages/Workspace.tsx:18",onClick:()=>e.refetch(),variant:"outline",className:"mt-4 rounded-xl bg-white",children:"Try again"})]})}):x.jsx(Ea,{"data-loc":"client/src/pages/Workspace.tsx:19",loading:e.isLoading,error:void 0,empty:!n,children:r?x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:19",className:"space-y-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:20",className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-5",children:[x.jsx(zd,{"data-loc":"client/src/pages/Workspace.tsx:21",label:"Customer accounts",value:String(r.metrics.accounts),icon:AN,note:"Persistent tenant records"}),x.jsx(zd,{"data-loc":"client/src/pages/Workspace.tsx:22",label:"Open pipeline",value:zg(r.metrics.pipelineValue),icon:AN,note:`${r.metrics.openDeals} open deals`}),x.jsx(zd,{"data-loc":"client/src/pages/Workspace.tsx:23",label:"AI forecast",value:zg(r.forecast.predictedRevenue),icon:hoe,note:`${r.forecast.confidence}% confidence`}),x.jsx(zd,{"data-loc":"client/src/pages/Workspace.tsx:24",label:"Hot leads",value:String(r.metrics.leads),icon:_oe,note:"Top scored opportunities"}),x.jsx(zd,{"data-loc":"client/src/pages/Workspace.tsx:25",label:"Attention needed",value:String(r.metrics.atRiskDeals+r.metrics.overdueTasks),icon:WT,note:`${r.metrics.atRiskDeals} risks · ${r.metrics.overdueTasks} overdue`})]}),x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:27",className:"grid gap-6 xl:grid-cols-[1.4fr_1fr]",children:[x.jsx(ut,{"data-loc":"client/src/pages/Workspace.tsx:28",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Workspace.tsx:28",className:"p-0",children:[x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:28",className:"flex items-center justify-between border-b border-slate-100 px-5 py-4",children:[x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:28",children:[x.jsx("h2",{"data-loc":"client/src/pages/Workspace.tsx:28",className:"font-semibold tracking-tight",children:"Today’s opportunities"}),x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:28",className:"mt-1 text-xs text-slate-500",children:"Prioritized by current Scout Score."})]}),x.jsx(jt,{"data-loc":"client/src/pages/Workspace.tsx:28",variant:"ghost",size:"sm",onClick:()=>t("/leads"),children:"View leads"})]}),x.jsx("div",{"data-loc":"client/src/pages/Workspace.tsx:28",className:"divide-y divide-slate-100",children:r.hotLeads.map(a=>x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:28",className:"flex items-center gap-3 px-5 py-4",children:[x.jsx("div",{"data-loc":"client/src/pages/Workspace.tsx:28",className:"grid size-9 place-items-center rounded-xl bg-indigo-50 text-sm font-semibold text-indigo-700",children:a.firstName.slice(0,1)}),x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:28",className:"min-w-0 flex-1",children:[x.jsxs("p",{"data-loc":"client/src/pages/Workspace.tsx:28",className:"truncate text-sm font-medium",children:[a.firstName," ",a.lastName]}),x.jsxs("p",{"data-loc":"client/src/pages/Workspace.tsx:28",className:"truncate text-xs text-slate-500",children:[a.jobTitle??"Contact",a.company?` · ${a.company}`:""]})]}),x.jsx($p,{"data-loc":"client/src/pages/Workspace.tsx:28",value:a.scoutScore})]},a.id))})]})}),x.jsx(ut,{"data-loc":"client/src/pages/Workspace.tsx:29",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Workspace.tsx:29",className:"p-0",children:[x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:29",className:"border-b border-slate-100 px-5 py-4",children:[x.jsx("h2",{"data-loc":"client/src/pages/Workspace.tsx:29",className:"font-semibold tracking-tight",children:"Forecast context"}),x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:29",className:"mt-1 text-xs text-slate-500",children:"A prediction, not a guarantee."})]}),x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:29",className:"space-y-4 p-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:29",children:[x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:29",className:"text-3xl font-semibold tracking-[-0.04em]",children:zg(r.forecast.predictedRevenue)}),x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:29",className:"mt-1 text-sm text-slate-500",children:"Weighted from current pipeline probabilities."})]}),x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:29",className:"rounded-xl bg-slate-50 p-3",children:[x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:29",className:"text-xs font-semibold uppercase tracking-wide text-slate-400",children:"Drivers"}),r.forecast.drivers.map(a=>x.jsxs("p",{"data-loc":"client/src/pages/Workspace.tsx:29",className:"mt-2 flex gap-2 text-sm text-slate-600",children:[x.jsx(boe,{"data-loc":"client/src/pages/Workspace.tsx:29",className:"mt-0.5 size-4 shrink-0 text-emerald-600"}),a]},a))]})]})]})})]}),x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:31",className:"grid gap-6 xl:grid-cols-2",children:[x.jsx(tR,{"data-loc":"client/src/pages/Workspace.tsx:31",title:"Deals needing attention",emptyText:"No at-risk deal
362s from current deal health rules.",rows:r.atRiskDeals.map(a=>({label:a.name,detail:`${zg(Number(a.value))} · ${a.nextStep??"No next step"}`,score:a.riskScore})),inverse:!0,onClick:()=>t("/deals")}),x.jsx(tR,{"data-loc":"client/src/pages/Workspace.tsx:31",title:"Your next tasks",emptyText:"No open tasks. Create one from any customer record or the task workspace.",rows:r.tasks.map(a=>({label:a.title,detail:a.dueAt?`Due ${new Date(a.dueAt).toLocaleDateString()}`:"No due date",score:a.priority==="urgent"?100:a.priority==="high"?75:45})),onClick:()=>t("/tasks")})]})]}):null})]})}function zd({label:e,value:t,icon:r,note:n}){return x.jsx(ut,{"data-loc":"client/src/pages/Workspace.tsx:36",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Workspace.tsx:36",className:"p-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:36",className:"flex items-start justify-between",children:[x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:36",className:"text-sm font-medium text-slate-500",children:e}),x.jsx("span",{"data-loc":"client/src/pages/Workspace.tsx:36",className:"grid size-8 place-items-center rounded-lg bg-indigo-50 text-indigo-600",children:x.jsx(r,{"data-loc":"client/src/pages/Workspace.tsx:36",className:"size-4"})})]}),x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:36",className:"mt-4 text-2xl font-semibold tracking-[-0.04em]",children:t}),x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:36",className:"mt-1 text-xs text-slate-400",children:n})]})})}function tR({title:e,emptyText:t,rows:r,inverse:n,onClick:a}){return x.jsx(ut,{"data-loc":"client/src/pages/Workspace.tsx:37",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Workspace.tsx:37",className:"p-0",children:[x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:37",className:"flex items-center justify-between border-b border-slate-100 px-5 py-4",children:[x.jsx("h2",{"data-loc":"client/src/pages/Workspace.tsx:37",className:"font-semibold tracking-tight",children:e}),x.jsx(jt,{"data-loc":"client/src/pages/Workspace.tsx:37",variant:"ghost",size:"sm",onClick:a,children:"Open"})]}),r.length?x.jsx("div",{"data-loc":"client/src/pages/Workspace.tsx:37",className:"divide-y divide-slate-100",children:r.slice(0,5).map(i=>x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:37",className:"flex items-center gap-3 px-5 py-3.5",children:[x.jsxs("div",{"data-loc":"client/src/pages/Workspace.tsx:37",className:"min-w-0 flex-1",children:[x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:37",className:"truncate text-sm font-medium",children:i.label}),x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:37",className:"truncate text-xs text-slate-500",children:i.detail})]}),x.jsx($p,{"data-loc":"client/src/pages/Workspace.tsx:37",value:i.score,inverse:n})]},i.label))}):x.jsx("p",{"data-loc":"client/src/pages/Workspace.tsx:37",className:"px-5 py-8 text-sm text-slate-500",children:t})]})})}function vfe(e,t){return N.useReducer((r,n)=>t[r][n]??r,e)}var lA="ScrollArea",[cq]=rc(lA),[yfe,wi]=cq(lA),fq=N.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:a,scrollHideDelay:i=600,...s}=e,[o,u]=N.useState(null),[c,h]=N.useState(null),[d,m]=N.useState(null),[v,y]=N.useState(null),[b,E]=N.useState(null),[_,T]=N.useState(0),[C,P]=N.useState(0),[O,k]=N.useState(!1),[M,j]=N.useState(!1),z=nr(t,F=>u(F)),$=jH(a);return x.jsx(yfe,{scope:r,type:n,dir:$,scrollHideDelay:i,scrollArea:o,viewport:c,onViewportChange:h,content:d,onContentChange:m,scrollbarX:v,onScrollbarXChange:y,scrollbarXEnabled:O,onScrollbarXEnabledChange:k,scrollbarY:b,onScrollbarYChange:E,scrollbarYEnabled:M,onScrollbarYEnabledChange:j,onCornerWidthChange:T,onCornerHeightChange:P,children:x.jsx(ht.div,{dir:$,...s,ref:z,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});fq.displayName=lA;var dq="ScrollAreaViewport",hq=N.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:a,...i}=e,s=wi(dq,r),o=N.useRef(null),u=nr(t,o,s.onViewportChange);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),x.jsx(ht.div,{"data-radix-scroll-area-viewport":"",...i,ref:u,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:x.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});
vendor: 8,252 bytes, line 362
362hq.displayName=dq;var _s="ScrollAreaScrollbar",pq=N.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=wi(_s,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=a,o=e.orientation==="horizontal";return N.useEffect(()=>(o?i(!0):s(!0),()=>{o?i(!1):s(!1)}),[o,i,s]),a.type==="hover"?x.jsx(bfe,{...n,ref:t,forceMount:r}):a.type==="scroll"?x.jsx(xfe,{...n,ref:t,forceMount:r}):a.type==="auto"?x.jsx(mq,{...n,ref:t,forceMount:r}):a.type==="always"?x.jsx(uA,{...n,ref:t}):null});pq.displayName=_s;var bfe=N.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=wi(_s,e.__scopeScrollArea),[i,s]=N.useState(!1);return N.useEffect(()=>{const o=a.scrollArea;let u=0;if(o){const c=()=>{window.clearTimeout(u),s(!0)},h=()=>{u=window.setTimeout(()=>s(!1),a.scrollHideDelay)};return o.addEventListener("pointerenter",c),o.addEventListener("pointerleave",h),()=>{window.clearTimeout(u),o.removeEventListener("pointerenter",c),o.removeEventListener("pointerleave",h)}}},[a.scrollArea,a.scrollHideDelay]),x.jsx(Ao,{present:r||i,children:x.jsx(mq,{"data-state":i?"visible":"hidden",...n,ref:t})})}),xfe=N.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=wi(_s,e.__scopeScrollArea),i=e.orientation==="horizontal",s=Hy(()=>u("SCROLL_END"),100),[o,u]=vfe("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return N.useEffect(()=>{if(o==="idle"){const c=window.setTimeout(()=>u("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(c)}},[o,a.scrollHideDelay,u]),N.useEffect(()=>{const c=a.viewport,h=i?"scrollLeft":"scrollTop";if(c){let d=c[h];const m=()=>{const v=c[h];d!==v&&(u("SCROLL"),s()),d=v};return c.addEventListener("scroll",m),()=>c.removeEventListener("scroll",m)}},[a.viewport,i,u,s]),x.jsx(Ao,{present:r||o!=="hidden",children:x.jsx(uA,{"data-state":o==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Tt(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:Tt(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),mq=N.forwardRef((e,t)=>{const r=wi(_s,e.__scopeScrollArea),{forceMount:n,...a}=e,[i,s]=N.useState(!1),o=e.orientation==="horizontal",u=Hy(()=>{if(r.viewport){const c=r.viewport.offsetWidth<r.viewport.scrollWidth,h=r.viewport.offsetHeight<r.viewport.scrollHeight;s(o?c:h)}},10);return Hf(r.viewport,u),Hf(r.content,u),x.jsx(Ao,{present:n||i,children:x.jsx(uA,{"data-state":i?"visible":"hidden",...a,ref:t})})}),uA=N.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,a=wi(_s,e.__scopeScrollArea),i=N.useRef(null),s=N.useRef(0),[o,u]=N.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=xq(o.viewport,o.content),h={...n,sizes:o,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:m=>i.current=m,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:m=>s.current=m};function d(m,v){return Afe(m,s.current,o,v)}return r==="horizontal"?x.jsx(Efe,{...h,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const m=a.viewport.scrollLeft,v=rR(m,o,a.dir);i.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:m=>{a.viewport&&(a.viewport.scrollLeft=m)},onDragScroll:m=>{a.viewport&&(a.viewport.scrollLeft=d(m,a.dir))}}):r==="vertical"?x.jsx(wfe,{...h,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const m=a.viewport.scrollTop,v=rR(m,o);i.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:m=>{a.viewport&&(a.viewport.scrollTop=m)},onDragScroll:m=>{a.viewport&&(a.viewport.scrollTop=d(m))}}):null}),Efe=N.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...a}=e,i=wi(_s,e.__scopeScrollArea),[s,o]=N.useState(),u=N.useRef(null),c=nr(t,u,i.onScrollbarXChange);return N.useEffect(()=>{u.current&&o(getComputedStyle(u.current))},[u]),x.jsx(vq,{"data-orientation":"horizontal",...a,ref:c,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Uy(r)+"px",...e.style},onThumbPointerDown:h=>e.onThumbPointerDown(h.x),onDragScroll:h=>e.onDragScroll(h.x),onWheelScroll:(h,d)=>{if(i.viewport){const m=i.viewport.scrollLeft+h.deltaX;e.onWheelScroll(m),wq(m,d)&&h.preventDefault()}},onResize:()=>{u.current&&i.viewport&&s&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:W1(s.paddingLeft),paddingEnd:W1(s.paddingRight)}})}})}),wfe=N.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...a}=e,i=wi(_s,e.__scopeScrollArea),[s,o]=N.useState(),u=N.useRef(null),c=nr(t,u,i.onScrollbarYChange);return N.useEffect(()=>{u.current&&o(getComputedStyle(u.current))},[u]),x.jsx(vq,{"data-orientation":"vertical",...a,ref:c,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Uy(r)+"px",...e.style},onThumbPointerDown:h=>e.onThumbPointerDown(h.y),onDragScroll:h=>e.onDragScroll(h.y),onWheelScroll:(h,d)=>{if(i.viewport){const m=i.viewport.scrollTop+h.deltaY;e.onWheelScroll(m),wq(m,d)&&h.preventDefault()}},onResize:()=>{u.current&&i.viewport&&s&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:W1(s.paddingTop),paddingEnd:W1(s.paddingBottom)}})}})}),[_fe,gq]=cq(_s),vq=N.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:a,onThumbChange:i,onThumbPointerUp:s,onThumbPointerDown:o,onThumbPositionChange:u,onDragScroll:c,onWheelScroll:h,onResize:d,...m}=e,v=wi(_s,r),[y,b]=N.useState(null),E=nr(t,z=>b(z)),_=N.useRef(null),T=N.useRef(""),C=v.viewport,P=n.content-n.viewport,O=Zn(h),k=Zn(u),M=Hy(d,10);function j(z){if(_.current){const $=z.clientX-_.current.left,F=z.clientY-_.current.top;c({x:$,y:F})}}return N.useEffect(()=>{const z=$=>{const F=$.target;y?.contains(F)&&O($,P)};return document.addEventListener("wheel",z,{passive:!1}),()=>document.removeEventListener("wheel",z,{passive:!1})},[C,y,P,O]),N.useEffect(k,[n,k]),Hf(y,M),Hf(v.content,M),x.jsx(_fe,{scope:r,scrollbar:y,hasThumb:a,onThumbChange:Zn(i),onThumbPointerUp:Zn(s),onThumbPositionChange:k,onThumbPointerDown:Zn(o),children:x.jsx(ht.div,{...m,ref:E,style:{position:"absolute",...m.style},onPointerDown:Tt(e.onPointerDown,z=>{z.button===0&&(z.target.setPointerCapture(z.pointerId),_.current=y.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),j(z))}),onPointerMove:Tt(e.onPointerMove,j),onPointerUp:Tt(e.onPointerUp,z=>{const $=z.target;$.hasPointerCapture(z.pointerId)&&$.releasePointerCapture(z.pointerId),document.body.style.webkitUserSelect=T.current,v.viewport&&(v.viewport.style.scrollBehavior=""),_.current=null})})})}),G1="ScrollAreaThumb",yq=N.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=gq(G1,e.__scopeScrollArea);return x.jsx(Ao,{present:r||a.hasThumb,children:x.jsx(Sfe,{ref:t,...n})})}),Sfe=N.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...a}=e,i=wi(G1,r),s=gq(G1,r),{onThumbPositionChange:o}=s,u=nr(t,d=>s.onThumbChange(d)),c=N.useRef(void 0),h=Hy(()=>{c.current&&(c.current(),c.current=void 0)},100);return N.useEffect(()=>{const d=i.viewport;if(d){const m=()=>{if(h(),!c.current){const v=Cfe(d,o);c.current=v,o()}};return o(),d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[i.viewport,h,o]),x.jsx(ht.div,{"data-state":s.hasThumb?"visible":"hidden",...a,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Tt(e.onPointerDownCapture,d=>{const v=d.target.getBoundingClientRect(),y=d.clientX-v.left,b=d.clientY-v.top;s.onThumbPointerDown({x:y,y:b})}),onPointerUp:Tt(e.onPointerUp,s.onThumbPointerUp)})});yq.displayName=G1;var cA="ScrollAreaCorner",bq=N.forwardRef((e,t)=>{const r=wi(cA,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?x.jsx(Tfe,{...e,ref:t}):null});bq.displayName=cA;var Tfe=N.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,a=wi(cA,r),[i,s]=N.useState(0),[o,u]=N.useState(0),c=!!(i&&o);return Hf(a.scrollbarX,()=>{const h=a.scrollbarX?.offsetHeight||0;
362a.onCornerHeightChange(h),u(h)}),Hf(a.scrollbarY,()=>{const h=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(h),s(h)}),c?x.jsx(ht.div,{...n,ref:t,style:{width:i,height:o,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function W1(e){return e?parseInt(e,10):0}function xq(e,t){const r=e/t;return isNaN(r)?0:r}function Uy(e){const t=xq(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Afe(e,t,r,n="ltr"){const a=Uy(r),i=a/2,s=t||i,o=a-s,u=r.scrollbar.paddingStart+s,c=r.scrollbar.size-r.scrollbar.paddingEnd-o,h=r.content-r.viewport,d=n==="ltr"?[0,h]:[h*-1,0];return Eq([u,c],d)(e)}function rR(e,t,r="ltr"){const n=Uy(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-a,s=t.content-t.viewport,o=i-n,u=r==="ltr"?[0,s]:[s*-1,0],c=u_(e,u);return Eq([0,s],[0,o])(c)}function Eq(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function wq(e,t){return e>0&&e<t}var Cfe=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function a(){const i={left:e.scrollLeft,top:e.scrollTop},s=r.left!==i.left,o=r.top!==i.top;(s||o)&&t(),r=i,n=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(n)};function Hy(e,t){const r=Zn(e),n=N.useRef(0);return N.useEffect(()=>()=>window.clearTimeout(n.current),[]),N.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Hf(e,t){const r=Zn(t);rn(()=>{let n=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(n),a.unobserve(e)}}},[e,r])}var Ofe=fq,kfe=hq,Nfe=bq;function Rfe({className:e,children:t,...r}){return x.jsxs(Ofe,{"data-loc":"client/src/components/ui/scroll-area.tsx:12","data-slot":"scroll-area",className:Nt("relative",e),...r,children:[x.jsx(kfe,{"data-loc":"client/src/components/ui/scroll-area.tsx:17","data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),x.jsx(Mfe,{"data-loc":"client/src/components/ui/scroll-area.tsx:23"}),x.jsx(Nfe,{"data-loc":"client/src/components/ui/scroll-area.tsx:24"})]})}function Mfe({className:e,orientation:t="vertical",...r}){return x.jsx(pq,{"data-loc":"client/src/components/ui/scroll-area.tsx:35","data-slot":"scroll-area-scrollbar",orientation:t,className:Nt("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...r,children:x.jsx(yq,{"data-loc":"client/src/components/ui/scroll-area.tsx:48","data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}const Pfe="modulepreload",Ife=function(e){return"/"+e},nR={},Z=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){let u=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=s?.nonce||s?.getAttribute("nonce");a=u(r.map(c=>{if(c=Ife(c),c in nR)return;nR[c]=!0;const h=c.endsWith(".css"),d=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const m=document.createElement("link");if(m.rel=h?"stylesheet":Pfe,h||(m.as="script"),m.crossOrigin="",m.href=c,o&&m.setAttribute("nonce",o),document.head.appendChild(m),h)return new Promise((v,y)=>{m.addEventListener("load",v),m.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return a.then(s=>{for(const o of s||[])o.status==="rejected"&&i(o.reason);return t().catch(i)})};function aR(e){const t=[],r=String(e||"");let n=r.indexOf(","),a=0,i=!1;for(;!i;){n===-1&&(n=r.length,i=!0);const s=r.slice(a,n).trim();(s||!i)&&t.push(s),a=n+1,n=r.indexOf(",",a)}return t}function fA(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Dfe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Lfe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jfe={};function iR(e,t){return(jfe.jsx?Lfe:Dfe).test(e)}const Bfe=/[ \t\n\f\r]/g;function qy(e){return typeof e=="object"?e.type==="text"?sR(e.value):!1:sR(e)}function sR(e){return e.replace(Bfe,"")===""}let Fp=class{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}};Fp.prototype.normal={};Fp.prototype.property={};Fp.prototype.space=void 0;function _q(e,t){const r={},n={};for(const a of e)Object.assign(r,a.property),Object.assign(n,a.normal);return new Fp(r,n,t)}function $h(e){return e.toLowerCase()}let _a=class{constructor(t,r){this.attribute=r,this.property=t}};_a.prototype.attribute="";_a.prototype.booleanish=!1;_a.prototype.boolean=!1;_a.prototype.commaOrSpaceSeparated=!1;_a.prototype.commaSeparated=!1;_a.prototype.defined=!1;_a.prototype.mustUseProperty=!1;_a.prototype.number=!1;_a.prototype.overloadedBoolean=!1;_a.prototype.property="";_a.prototype.spaceSeparated=!1;_a.prototype.space=void 0;let zfe=0;const bt=nc(),Qr=nc(),m_=nc(),je=nc(),pr=nc(),Nf=nc(),Ia=nc();function nc(){return 2**++zfe}const g_=Object.freeze(Object.defineProperty({__proto__:null,boolean:bt,booleanish:Qr,commaOrSpaceSeparated:Ia,commaSeparated:Nf,number:je,overloadedBoolean:m_,spaceSeparated:pr},Symbol.toStringTag,{value:"Module"})),I4=Object.keys(g_);let dA=class extends _a{constructor(t,r,n,a){let i=-1;
vendor: 4,265 bytes, line 362
362if(super(t,r),oR(this,"space",a),typeof n=="number")for(;++i<I4.length;){const s=I4[i];oR(this,I4[i],(n&g_[s])===g_[s])}}};dA.prototype.defined=!0;function oR(e,t,r){r&&(e[t]=r)}function A0(e){const t={},r={};for(const[n,a]of Object.entries(e.properties)){const i=new dA(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[$h(n)]=n,r[$h(i.attribute)]=n}return new Fp(t,r,e.space)}const Sq=A0({properties:{ariaActiveDescendant:null,ariaAtomic:Qr,ariaAutoComplete:null,ariaBusy:Qr,ariaChecked:Qr,ariaColCount:je,ariaColIndex:je,ariaColSpan:je,ariaControls:pr,ariaCurrent:null,ariaDescribedBy:pr,ariaDetails:null,ariaDisabled:Qr,ariaDropEffect:pr,ariaErrorMessage:null,ariaExpanded:Qr,ariaFlowTo:pr,ariaGrabbed:Qr,ariaHasPopup:null,ariaHidden:Qr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pr,ariaLevel:je,ariaLive:null,ariaModal:Qr,ariaMultiLine:Qr,ariaMultiSelectable:Qr,ariaOrientation:null,ariaOwns:pr,ariaPlaceholder:null,ariaPosInSet:je,ariaPressed:Qr,ariaReadOnly:Qr,ariaRelevant:null,ariaRequired:Qr,ariaRoleDescription:pr,ariaRowCount:je,ariaRowIndex:je,ariaRowSpan:je,ariaSelected:Qr,ariaSetSize:je,ariaSort:null,ariaValueMax:je,ariaValueMin:je,ariaValueNow:je,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Tq(e,t){return t in e?e[t]:t}function Aq(e,t){return Tq(e,t.toLowerCase())}const $fe=A0({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Nf,acceptCharset:pr,accessKey:pr,action:null,allow:null,allowFullScreen:bt,allowPaymentRequest:bt,allowUserMedia:bt,alt:null,as:null,async:bt,autoCapitalize:null,autoComplete:pr,autoFocus:bt,autoPlay:bt,blocking:pr,capture:null,charSet:null,checked:bt,cite:null,className:pr,cols:je,colSpan:null,content:null,contentEditable:Qr,controls:bt,controlsList:pr,coords:je|Nf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:bt,defer:bt,dir:null,dirName:null,disabled:bt,download:m_,draggable:Qr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:bt,formTarget:null,headers:pr,height:je,hidden:m_,high:je,href:null,hrefLang:null,htmlFor:pr,httpEquiv:pr,id:null,imageSizes:null,imageSrcSet:null,inert:bt,inputMode:null,integrity:null,is:null,isMap:bt,itemId:null,itemProp:pr,itemRef:pr,itemScope:bt,itemType:pr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:bt,low:je,manifest:null,max:null,maxLength:je,media:null,method:null,min:null,minLength:je,multiple:bt,muted:bt,name:null,nonce:null,noModule:bt,noValidate:bt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:bt,optimum:je,pattern:null,ping:pr,placeholder:null,playsInl
362ine:bt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:bt,referrerPolicy:null,rel:pr,required:bt,reversed:bt,rows:je,rowSpan:je,sandbox:pr,scope:null,scoped:bt,seamless:bt,selected:bt,shadowRootClonable:bt,shadowRootDelegatesFocus:bt,shadowRootMode:null,shape:null,size:je,sizes:null,slot:null,span:je,spellCheck:Qr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:je,step:null,style:null,tabIndex:je,target:null,title:null,translate:null,type:null,typeMustMatch:bt,useMap:null,value:Qr,width:je,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pr,axis:null,background:null,bgColor:null,border:je,borderColor:null,bottomMargin:je,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:bt,declare:bt,event:null,face:null,frame:null,frameBorder:null,hSpace:je,leftMargin:je,link:null,longDesc:null,lowSrc:null,marginHeight:je,marginWidth:je,noResize:bt,noHref:bt,noShade:bt,noWrap:bt,object:null,profile:null,prompt:null,rev:null,rightMargin:je,rules:null,scheme:null,scrolling:Qr,standby:null,summary:null,text:null,topMargin:je,valueType:null,version:null,vAlign:null,vLink:null,vSpace:je,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:bt,disableRemotePlayback:bt,prefix:null,property:null,results:je,security:null,unselectable:null},space:"html",transform:Aq}),Ffe=A0({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
362-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ia,accentHeight:je,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:je,amplitude:je,arabicForm:null,ascent:je,attributeName:null,attributeType:null,azimuth:je,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:je,by:null,calcMode:null,capHeight:je,className:pr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:je,diffuseConstant:je,direction:null,display:null,dur:null,divisor:je,dominantBaseline:null,download:bt,dx:null,dy:null,edgeMode:null,editable:null,elevation:je,enableBackground:null,end:null,event:null,exponent:je,externalResourcesRequired:null,fill:null,fillOpacity:je,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Nf,g2:Nf,glyphName:Nf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:je,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:je,horizOriginX:je,horizOriginY:je,id:null,ideographic:je,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:je,k:je,k1:je,k2:je,k3:je,k4:je,kernelMatrix:Ia,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:je,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:je,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 9,209 bytes, lines 362-363
362Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:je,overlineThickness:je,paintOrder:null,panose1:null,path:null,pathLength:je,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:je,pointsAtY:je,pointsAtZ:je,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ia,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ia,rev:Ia,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ia,requiredFeatures:Ia,requiredFonts:Ia,requiredFormats:Ia,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:je,specularExponent:je,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:je,strikethroughThickness:je,string:null,stroke:null,strokeDashArray:Ia,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:je,strokeOpacity:je,strokeWidth:null,style:null,surfaceScale:je,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ia,tabIndex:je,tableValues:null,target:null,targetX:je,targetY:je,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ia,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:je,underlineThickness:je,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:je,values:null,vAlphabetic:je,vMathematical:je,vectorEffect:null,vHanging:je,vIdeographic:je,version:null,vertAdvY:je,vertOriginX:je,vertOriginY:je,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:je,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Tq}),Cq=A0({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Oq=A0({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Aq}),kq=A0({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ufe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Hfe=/[A-Z]/g,lR=/-[a-z]/g,qfe=/^data[-\w.:]+$/i;function Vy(e,t){const r=$h(t);let n=t,a=_a;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&qfe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(lR,Gfe);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!lR.test(i)){let s=i.replace(Hfe,Vfe);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=dA}return new a(n,t)}function Vfe(e){return"-"+e.toLowerCase()}function Gfe(e){return e.charAt(1).toUpperCase()}const Up=_q([Sq,$fe,Cq,Oq,kq],"html"),Il=_q([Sq,Ffe,Cq,Oq,kq],"svg");function uR(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function hA(e){return e.join(" ").trim()}var of={},D4,cR;function Wfe(){if(cR)return D4;cR=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=`
363`,c="/",h="*",d="",m="comment",v="declaration";D4=function(b,E){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];E=E||{};var _=1,T=1;function C(Q){var X=Q.match(t);X&&(_+=X.length);var te=Q.lastIndexOf(u);T=~te?Q.length-te:T+Q.length}function P(){var Q={line:_,column:T};return function(X){return X.position=new O(Q),j(),X}}function O(Q){this.start=Q,this.end={line:_,column:T},this.source=E.source}O.prototype.content=b;function k(Q){var X=new Error(E.source+":"+_+":"+T+": "+Q);if(X.reason=Q,X.filename=E.source,X.line=_,X.column=T,X.source=b,!E.silent)throw X}function M(Q){var X=Q.exec(b);if(X){var te=X[0];return C(te),b=b.slice(te.length),X}}function j(){M(r)}function z(Q){var X;for(Q=Q||[];X=$();)X!==!1&&Q.push(X);return Q}function $(){var Q=P();if(!(c!=b.charAt(0)||h!=b.charAt(1))){for(var X=2;d!=b.charAt(X)&&(h!=b.charAt(X)||c!=b.charAt(X+1));)++X;if(X+=2,d===b.charAt(X-1))return k("End of comment missing");var te=b.slice(2,X-2);return T+=2,C(te),b=b.slice(X),T+=2,Q({type:m,comment:te})}}function F(){var Q=P(),X=M(n);if(X){if($(),!M(a))return k("property missing ':'");var te=M(i),U=Q({type:v,property:y(X[0].replace(e,d)),value:te?y(te[0].replace(e,d)):d});return M(s),U}}function q(){var Q=[];z(Q);for(var X;X=F();)X!==!1&&(Q.push(X),z(Q));return Q}return j(),q()};function y(b){return b?b.replace(o,d):d}return D4}var fR;function Yfe(){if(fR)return of;fR=1;var e=of&&of.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(of,"__esModule",{value:!0}),of.default=r;const t=e(Wfe());function r(n,a){let i=null;if(!n||typeof n!="string")return i;const s=(0,t.default)(n),o=typeof a=="function";return s.forEach(u=>{if(u.type!=="declaration")return;const{property:c,value:h}=u;o?a(c,h,u):h&&(i=i||{},i[c]=h)}),i}return of}var $d={},dR;function Xfe(){if(dR)return $d;dR=1,Object.defineProperty($d,"__esModule",{value:!0}),$d.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(c){return!c||r.test(c)||e.test(c)},s=function(c,h){return h.toUpperCase()},o=function(c,h){return"".concat(h,"-")},u=function(c,h){return h===void 0&&(h={}),i(c)?c:(c=c.toLowerCase(),h.reactCompat?c=c.replace(a,o):c=c.replace(n,o),c.replace(t,s))};return $d.camelCase=u,$d}var Fd,hR;function Kfe(){if(hR)return Fd;hR=1;var e=Fd&&Fd.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Yfe()),r=Xfe();function n(a,i){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(o,u){o&&u&&(s[(0,r.camelCase)(o,i)]=u)}),s}return n.default=n,Fd=n,Fd}var Qfe=Kfe();const Zfe=er(Qfe),Gy=Nq("end"),Ss=Nq("start");function Nq(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Jfe(e){const t=Ss(e),r=Gy(e);if(t&&r)return{start:t,end:r}}function mh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?pR(e.position):"start"in e||"end"in e?pR(e):"line"in e||"column"in e?v_(e):""}function v_(e){return mR(e&&e.line)+":"+mR(e&&e.column)}function pR(e){return v_(e&&e.start)+"-"+v_(e&&e.end)}function mR(e){return e&&typeof e=="number"?e:1}class Vn extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let a="",i={},s=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?a=t:!i.cause&&t&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof n=="string"){const u=n.indexOf(":");u===-1?i.ruleId=n:(i.source=n.slice(0,u),i.ruleId=n.slice(u+1))}if(!i.place&&i.ancestors&&i.ancestors){const u=i.ancestors[i.ancestors.length-1];u&&(i.place=u.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=mh(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Vn.prototype.file="";Vn.prototype.name="";Vn.prototype.reason="";Vn.prototype.message="";Vn.prototype.stack="";Vn.prototype.column=void 0;Vn.prototype.line=void 0;Vn.prototype.ancestors=void 0;Vn.prototype.cause=void 0;Vn.prototype.fatal=void 0;Vn.prototype.place=void 0;Vn.prototype.ruleId=void 0;Vn.prototype.source=void 0;const pA={}.hasOwnProperty,e0e=new Map,t0e=/[A-Z]/g,r0e=new Set(["table","tbody","thead","tfoot","tr"]),n0e=new Set(["td","th"]),Rq="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function a0e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=d0e(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 10,582 bytes, line 363
363if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=f0e(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Il:Up,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Mq(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Mq(e,t,r){if(t.type==="element")return i0e(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return s0e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return l0e(e,t,r);if(t.type==="mdxjsEsm")return o0e(e,t);if(t.type==="root")return u0e(e,t,r);if(t.type==="text")return c0e(e,t)}function i0e(e,t,r){const n=e.schema;let a=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=Il,e.schema=a),e.ancestors.push(t);const i=Iq(e,t.tagName,!1),s=h0e(e,t);let o=gA(e,t);return r0e.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!qy(u):!0})),Pq(e,s,i,t),mA(s,o),e.ancestors.pop(),e.schema=n,e.create(t,i,s,r)}function s0e(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Fh(e,t.position)}function o0e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Fh(e,t.position)}function l0e(e,t,r){const n=e.schema;let a=n;t.name==="svg"&&n.space==="html"&&(a=Il,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Iq(e,t.name,!0),s=p0e(e,t),o=gA(e,t);return Pq(e,s,i,t),mA(s,o),e.ancestors.pop(),e.schema=n,e.create(t,i,s,r)}function u0e(e,t,r){const n={};return mA(n,gA(e,t)),e.create(t,e.Fragment,n,r)}function c0e(e,t){return t.value}function Pq(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function mA(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function f0e(e,t,r){return n;function n(a,i,s,o){const c=Array.isArray(s.children)?r:t;return o?c(i,s,o):c(i,s)}}function d0e(e,t){return r;function r(n,a,i,s){const o=Array.isArray(i.children),u=Ss(n);return t(a,i,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function h0e(e,t){const r={};let n,a;for(a in t.properties)if(a!=="children"&&pA.call(t.properties,a)){const i=m0e(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&n0e.has(t.tagName)?n=o:r[s]=o}}if(n){const i=r.style||(r.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function p0e(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];i.type;const s=i.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else Fh(e,t.position);else{const a=n.name;let i;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const o=n.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else Fh(e,t.position);else i=n.value===null?!0:n.value;r[a]=i}return r}function gA(e,t){const r=[];let n=-1;const a=e.passKeys?new Map:e0e;for(;++n<t.children.length;){const i=t.children[n];let s;if(e.passKeys){const u=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(u){const c=a.get(u)||0;s=u+"-"+c,a.set(u,c+1)}}const o=Mq(e,i,s);o!==void 0&&r.push(o)}return r}function m0e(e,t,r){const n=Vy(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?fA(r):hA(r)),n.property==="style"){let a=typeof r=="object"?r:g0e(e,String(r));return e.stylePropertyNameCase==="css"&&(a=v0e(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&n.space?Ufe[n.property]||n.property:n.attribute,r]}}function g0e(e,t){try{return Zfe(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,a=new Vn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Rq+"#cannot-parse-style-attribute",a}}function Iq(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const o=iR(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}n=s}else n=iR(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const a=n.value;return pA.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(n);Fh(e)}function Fh(e,t){const r=new Vn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Rq+"#cannot-handle-mdx-estrees-without-createevaluater",r}function v0e(e){const t={};let r;for(r in e)pA.call(e,r)&&(t[y0e(r)]=e[r]);return t}function y0e(e){let t=e.replace(t0e,b0e);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function b0e(e){return"-"+e.toLowerCase()}const L4={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},x0e={};function vA(e,t){const r=x0e,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Dq(e,n,a)}function Dq(e,t,r){if(E0e(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return gR(e.children,t,r)}return Array.isArray(e)?gR(e,t,r):""}function gR(e,t,r){const n=[];let a=-1;for(;++a<e.length;)n[a]=Dq(e[a],t,r);return n.join("")}function E0e(e){return!!(e&&typeof e=="object")}const vR=document.createElement("i");function yA(e){const t="&"+e+";";vR.innerHTML=t;const r=vR.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function qa(e,t,r,n){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);i<n.length;)s=n.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function ui(e,t){return e.length>0?(qa(e,e.length,0,t),e):t}const yR={}.hasOwnProperty;function Lq(e){const t={};let r=-1;for(;++r<e.length;)w0e(t,e[r]);return t}function w0e(e,t){let r;for(r in t){const a=(yR.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let s;if(i)for(s in i){yR.call(a,s)||(a[s]=[]);const o=i[s];_0e(a[s],Array.isArray(o)?o:o?[o]:[])}}}function _0e(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);qa(e,0,0,n)}function jq(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function $i(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jn=Dl(/[A-Za-z]/),qn=Dl(/[\dA-Za-z]/),S0e=Dl(/[#-'*+\--9=?A-Z^-~]/);function Y1(e){return e!==null&&(e<32||e===127)}const y_=Dl(/\d/),T0e=Dl(/[\dA-Fa-f]/),A0e=Dl(/[!-/:-@[-`{-~]/);function Ze(e){return e!==null&&e<-2}function dr(e){return e!==null&&(e<0||e===32)}function Rt(e){return e===-2||e===-1||e===32}const Wy=Dl(new RegExp("\\p{P}|\\p{S}","u")),qu=Dl(/\s/);function Dl(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function C0(e){const t=[];let r=-1,n=0,a=0;for(;++r<e.length;){const i=e.charCodeAt(r);let s="";if(i===37&&qn(e.charCodeAt(r+1))&&qn(e.charCodeAt(r+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(r+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+a+1,s=""),a&&(r+=a,a=0)}return t.join("")+e.slice(n)}function At(e,t,r,n){const a=n?n-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(u){return Rt(u)?(e.enter(r),o(u)):t(u)}function o(u){return Rt(u)&&i++<a?(e.consume(u),o):(e.exit(r),t(u))}}const C0e={tokenize:O0e};function O0e(e){const t=e.attempt(this.parser.constructs.contentInitial,n,a);let r;return t;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),At(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const u=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Ze(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const k0e={tokenize:N0e},bR={tokenize:R0e};function N0e(e){const t=this,r=[];let n=0,a,i,s;return o;function o(C){if(n<r.length){const P=r[n];return t.containerState=P[1],e.attempt(P[0].continuation,u,c)(C)}return c(C)}function u(C){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&T();const P=t.events.length;let O=P,k;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){k=t.events[O][1].end;break}_(n);let M=P;for(;M<t.events.length;)t.events[M][1].end={...k},M++;return qa(t.events,O+1,0,t.events.slice(P)),t.events.length=M,c(C)}return o(C)}function c(C){if(n===r.length){if(!a)return m(C);if(a.currentConstruct&&a.currentConstruct.concrete)return y(C);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(bR,h,d)(C)}function h(C){return a&&T(),_(n),m(C)}function d(C){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,y(C)}function m(C){return t.containerState={},e.attempt(bR,v,y)(C)}function v(C){return n++,r.push([t.currentConstruct,t.containerState]),m(C)}function y(C){if(C===null){a&&T(),_(0),e.consume(C);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),b(C)}function b(C){if(C===null){E(e.exit("chunkFlow"),!0),_(0),e.consume(C);return}return Ze(C)?(e.consume(C),E(e.exit("chunkFlow")),n=0,t.interrupt=void 0,o):(e.consume(C),b)}function E(C,P){const O=t.sliceStream(C);
vendor: 6,679 bytes, line 363
363if(P&&O.push(null),C.previous=i,i&&(i.next=C),i=C,a.defineSkip(C.start),a.write(O),t.parser.lazy[C.start.line]){let k=a.events.length;for(;k--;)if(a.events[k][1].start.offset<s&&(!a.events[k][1].end||a.events[k][1].end.offset>s))return;const M=t.events.length;let j=M,z,$;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(z){$=t.events[j][1].end;break}z=!0}for(_(n),k=M;k<t.events.length;)t.events[k][1].end={...$},k++;qa(t.events,j+1,0,t.events.slice(M)),t.events.length=k}}function _(C){let P=r.length;for(;P-- >C;){const O=r[P];t.containerState=O[1],O[0].exit.call(t,e)}r.length=C}function T(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function R0e(e,t,r){return At(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qf(e){if(e===null||dr(e)||qu(e))return 1;if(Wy(e))return 2}function Yy(e,t,r){const n=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}const b_={name:"attention",resolveAll:M0e,tokenize:P0e};function M0e(e,t){let r=-1,n,a,i,s,o,u,c,h;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const d={...e[n][1].end},m={...e[r][1].start};xR(d,-u),xR(m,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:m},i={type:u>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},a={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[r][1].start={...o.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=ui(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=ui(c,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=ui(c,Yy(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=ui(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(h=2,c=ui(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):h=0,qa(e,n-1,r-n+3,c),r=n+c.length-h-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function P0e(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,a=qf(n);let i;return s;function s(u){return i=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===i)return e.consume(u),o;const c=e.exit("attentionSequence"),h=qf(u),d=!h||h===2&&a||r.includes(u),m=!a||a===2&&h||r.includes(n);return c._open=!!(i===42?d:d&&(a||!m)),c._close=!!(i===42?m:m&&(h||!d)),t(u)}}function xR(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const I0e={name:"autolink",tokenize:D0e};function D0e(e,t,r){let n=0;return a;function a(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(v){return Jn(v)?(e.consume(v),s):v===64?r(v):c(v)}function s(v){return v===43||v===45||v===46||qn(v)?(n=1,o(v)):c(v)}function o(v){return v===58?(e.consume(v),n=0,u):(v===43||v===45||v===46||qn(v))&&n++<32?(e.consume(v),o):(n=0,c(v))}function u(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):v===null||v===32||v===60||Y1(v)?r(v):(e.consume(v),u)}function c(v){return v===64?(e.consume(v),h):S0e(v)?(e.consume(v),c):r(v)}function h(v){return qn(v)?d(v):r(v)}function d(v){return v===46?(e.consume(v),n=0,h):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):m(v)}function m(v){if((v===45||qn(v))&&n++<63){const y=v===45?m:d;return e.consume(v),y}return r(v)}}const Hp={partial:!0,tokenize:L0e};function L0e(e,t,r){return n;function n(i){return Rt(i)?At(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||Ze(i)?t(i):r(i)}}const Bq={continuation:{tokenize:B0e},exit:z0e,name:"blockQuote",tokenize:j0e};function j0e(e,t,r){const n=this;return a;function a(s){if(s===62){const o=n.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return r(s)}function i(s){return Rt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function B0e(e,t,r){const n=this;return a;function a(s){return Rt(s)?At(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(Bq,t,r)(s)}}function z0e(e){e.exit("blockQuote")}const zq={name:"characterEscape",tokenize:$0e};function $0e(e,t,r){return n;function n(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return A0e(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}const $q={name:"characterReference",tokenize:F0e};function F0e(e,t,r){const n=this;let a=0,i,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),u}function u(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=qn,h(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=T0e,h):(e.enter("characterReferenceValue"),i=7,s=y_,h(d))}function h(d){if(d===59&&a){const m=e.exit("characterReferenceValue");return s===qn&&!yA(n.sliceSerialize(m))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&a++<i?(e.consume(d),h):r(d)}}const ER={partial:!0,tokenize:H0e},wR={concrete:!0,name:"codeFenced",tokenize:U0e};function U0e(e,t,r){const n=this,a={partial:!0,tokenize:O};let i=0,s=0,o;return u;function u(k){return c(k)}function c(k){const M=n.events[n.events.length-1];return i=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,o=k,e.enter("co
363deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(k)}function h(k){return k===o?(s++,e.consume(k),h):s<3?r(k):(e.exit("codeFencedFenceSequence"),Rt(k)?At(e,d,"whitespace")(k):d(k))}function d(k){return k===null||Ze(k)?(e.exit("codeFencedFence"),n.interrupt?t(k):e.check(ER,b,P)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(k))}function m(k){return k===null||Ze(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(k)):Rt(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),At(e,v,"whitespace")(k)):k===96&&k===o?r(k):(e.consume(k),m)}function v(k){return k===null||Ze(k)?d(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===null||Ze(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(k)):k===96&&k===o?r(k):(e.consume(k),y)}function b(k){return e.attempt(a,P,E)(k)}function E(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),_}function _(k){return i>0&&Rt(k)?At(e,T,"linePrefix",i+1)(k):T(k)}function T(k){return k===null||Ze(k)?e.check(ER,b,P)(k):(e.enter("codeFlowValue"),C(k))}function C(k){return k===null||Ze(k)?(e.exit("codeFlowValue"),T(k)):(e.consume(k),C)}function P(k){return e.exit("codeFenced"),t(k)}function O(k,M,j){let z=0;return $;function $(te){return k.enter("lineEnding"),k.consume(te),k.exit("lineEnding"),F}function F(te){return k.enter("codeFencedFence"),Rt(te)?At(k,q,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):q(te)}function q(te){return te===o?(k.enter("codeFencedFenceSequence"),Q(te)):j(te)}function Q(te){return te===o?(z++,k.consume(te),Q):z>=s?(k.exit("codeFencedFenceSequence"),Rt(te)?At(k,X,"whitespace")(te):X(te)):j(te)}function X(te){return te===null||Ze(te)?(k.exit("codeFencedFence"),M(te)):j(te)}}}function H0e(e,t,r){const n=this;return a;function a(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}const j4={name:"codeIndented",tokenize:V0e},q0e={partial:!0,tokenize:G0e};function V0e(e,t,r){const n=this;return a;function a(c){return e.enter("codeIndented"),At(e,i,"linePrefix",5)(c)}function i(c){const h=n.events[n.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(c):r(c)}function s(c){return c===null?u(c):Ze(c)?e.attempt(q0e,s,u)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||Ze(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function u(c){return e.exit("codeIndented"),t(c)}}function G0e(e,t,r){const n=this;return a;function a(s){return n.parser.lazy[n.now().line]?r(s):Ze(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):At(e,i,"linePrefix",5)(s)}function i(s){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Ze(s)?a(s):r(s)}}const W0e={name:"codeText",previous:X0e,resolve:Y0e,tokenize:K0e};function Y0e(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="codeTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function X0e(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function K0e(e,t,r){let n=0,a,i;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),n++,o):(e.exit("codeTextSequence"),u(d))}function u(d){return d===null?r(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),u):d===96?(i=e.enter("codeTextSequence"),a=0,h(d)):Ze(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Ze(d)?(e.exit("codeTextData"),u(d)):(e.consume(d),c)}function h(d){return d===96?(e.consume(d),a++,h):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}class Q0e{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const a=r||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return n&&Ud(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ud(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ud(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Ud(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ud(this.left,r.reverse())}}}function Ud(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Fq(e){const t={};let r=-1,n,a,i,s,o,u,c;const h=new Q0e(e);for(;++r<h.length;){for(;r in t;)r=t[r];if(n=h.get(r),r&&n[1].type==="chunkFlow"&&h.get(r-1)[1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,i=0,i<u.length&&u[i][1].type==="lineEndingBlank"&&(i+=2),i<u.length&&u[i][1].type==="content"))for(;++i<u.length&&u[i][1].type!=="content";)u[i][1].type==="chunkText"&&(u[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Z0e(h,r)),r=t[r],c=!0);else if(n[1]._container){for(i=r,a=void 0;i--;)if(s=h.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(h.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(n[1].end={...h.get(a)[1].start},o=h.slice(a,r),o.unshift(n),h.splice(a,r-a+1,o))}}return qa(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function Z0e(e,t){const r=e.get(t)[1],n=e.get(t)[2];let a=t-1;const i=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._c
vendor: 5,973 bytes, line 363
363ontentTypeTextTrailing=!0));const o=s.events,u=[],c={};let h,d,m=-1,v=r,y=0,b=0;const E=[b];for(;v;){for(;e.get(++a)[1]!==v;);i.push(a),v._tokenizer||(h=n.sliceStream(v),v.next||h.push(null),d&&s.defineSkip(v.start),v._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),v._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=v,v=v.next}for(v=r;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(b=m+1,E.push(b),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(s.events=[],v?(v._tokenizer=void 0,v.previous=void 0):E.pop(),m=E.length;m--;){const _=o.slice(E[m],E[m+1]),T=i.pop();u.push([T,T+_.length-1]),e.splice(T,2,_)}for(u.reverse(),m=-1;++m<u.length;)c[y+u[m][0]]=y+u[m][1],y+=u[m][1]-u[m][0]-1;return c}const J0e={resolve:tde,tokenize:rde},ede={partial:!0,tokenize:nde};function tde(e){return Fq(e),e}function rde(e,t){let r;return n;function n(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):Ze(o)?e.check(ede,s,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function nde(e,t,r){const n=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),At(e,i,"linePrefix")}function i(s){if(s===null||Ze(s))return r(s);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function Uq(e,t,r,n,a,i,s,o,u){const c=u||Number.POSITIVE_INFINITY;let h=0;return d;function d(_){return _===60?(e.enter(n),e.enter(a),e.enter(i),e.consume(_),e.exit(i),m):_===null||_===32||_===41||Y1(_)?r(_):(e.enter(n),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(_))}function m(_){return _===62?(e.enter(i),e.consume(_),e.exit(i),e.exit(a),e.exit(n),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===62?(e.exit("chunkString"),e.exit(o),m(_)):_===null||_===60||Ze(_)?r(_):(e.consume(_),_===92?y:v)}function y(_){return _===60||_===62||_===92?(e.consume(_),v):v(_)}function b(_){return!h&&(_===null||_===41||dr(_))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(n),t(_)):h<c&&_===40?(e.consume(_),h++,b):_===41?(e.consume(_),h--,b):_===null||_===32||_===40||Y1(_)?r(_):(e.consume(_),_===92?E:b)}function E(_){return _===40||_===41||_===92?(e.consume(_),b):b(_)}}function Hq(e,t,r,n,a,i){const s=this;let o=0,u;return c;function c(v){return e.enter(n),e.enter(a),e.consume(v),e.exit(a),e.enter(i),h}function h(v){return o>999||v===null||v===91||v===93&&!u||v===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(v):v===93?(e.exit(i),e.enter(a),e.consume(v),e.exit(a),e.exit(n),t):Ze(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(v))}function d(v){return v===null||v===91||v===93||Ze(v)||o++>999?(e.exit("chunkString"),h(v)):(e.consume(v),u||(u=!Rt(v)),v===92?m:d)}function m(v){return v===91||v===92||v===93?(e.consume(v),o++,d):d(v)}}function qq(e,t,r,n,a,i){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(n),e.enter(a),e.consume(m),e.exit(a),s=m===40?41:m,u):r(m)}function u(m){return m===s?(e.enter(a),e.consume(m),e.exit(a),e.exit(n),t):(e.enter(i),c(m))}function c(m){return m===s?(e.exit(i),u(s)):m===null?r(m):Ze(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),At(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===s||m===null||Ze(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?d:h)}function d(m){return m===s||m===92?(e.consume(m),h):h(m)}}function gh(e,t){let r;return n;function n(a){return Ze(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,n):Rt(a)?At(e,n,r?"linePrefix":"lineSuffix")(a):t(a)}}const ade={name:"definition",tokenize:sde},ide={partial:!0,tokenize:ode};function sde(e,t,r){const n=this;let a;return i;function i(v){return e.enter("definition"),s(v)}function s(v){return Hq.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function o(v){return a=$i(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),u):r(v)}function u(v){return dr(v)?gh(e,c)(v):c(v)}function c(v){return Uq(e,h,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function h(v){return e.attempt(ide,d,d)(v)}function d(v){return Rt(v)?At(e,m,"whitespace")(v):m(v)}function m(v){return v===null||Ze(v)?(e.exit("definition"),n.parser.defined.push(a),t(v)):r(v)}}function ode(e,t,r){return n;function n(o){return dr(o)?gh(e,a)(o):r(o)}function a(o){return qq(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return Rt(o)?At(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Ze(o)?t(o):r(o)}}const lde={name:"hardBreakEscape",tokenize:ude};function ude(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Ze(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}const cde={name:"headingAtx",resolve:fde,tokenize:dde};function fde(e,t){let r=e.length-2,n=3,a,i;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(a={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},i={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},qa(e,n,r-n+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]]
vendor: 17,133 bytes, line 363
363)),e}function dde(e,t,r){let n=0;return a;function a(h){return e.enter("atxHeading"),i(h)}function i(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&n++<6?(e.consume(h),s):h===null||dr(h)?(e.exit("atxHeadingSequence"),o(h)):r(h)}function o(h){return h===35?(e.enter("atxHeadingSequence"),u(h)):h===null||Ze(h)?(e.exit("atxHeading"),t(h)):Rt(h)?At(e,o,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function u(h){return h===35?(e.consume(h),u):(e.exit("atxHeadingSequence"),o(h))}function c(h){return h===null||h===35||dr(h)?(e.exit("atxHeadingText"),o(h)):(e.consume(h),c)}}const hde=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_R=["pre","script","style","textarea"],pde={concrete:!0,name:"htmlFlow",resolveTo:vde,tokenize:yde},mde={partial:!0,tokenize:xde},gde={partial:!0,tokenize:bde};function vde(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function yde(e,t,r){const n=this;let a,i,s,o,u;return c;function c(L){return h(L)}function h(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),d}function d(L){return L===33?(e.consume(L),m):L===47?(e.consume(L),i=!0,b):L===63?(e.consume(L),a=3,n.interrupt?t:G):Jn(L)?(e.consume(L),s=String.fromCharCode(L),E):r(L)}function m(L){return L===45?(e.consume(L),a=2,v):L===91?(e.consume(L),a=5,o=0,y):Jn(L)?(e.consume(L),a=4,n.interrupt?t:G):r(L)}function v(L){return L===45?(e.consume(L),n.interrupt?t:G):r(L)}function y(L){const le="CDATA[";return L===le.charCodeAt(o++)?(e.consume(L),o===le.length?n.interrupt?t:q:y):r(L)}function b(L){return Jn(L)?(e.consume(L),s=String.fromCharCode(L),E):r(L)}function E(L){if(L===null||L===47||L===62||dr(L)){const le=L===47,fe=s.toLowerCase();return!le&&!i&&_R.includes(fe)?(a=1,n.interrupt?t(L):q(L)):hde.includes(s.toLowerCase())?(a=6,le?(e.consume(L),_):n.interrupt?t(L):q(L)):(a=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(L):i?T(L):C(L))}return L===45||qn(L)?(e.consume(L),s+=String.fromCharCode(L),E):r(L)}function _(L){return L===62?(e.consume(L),n.interrupt?t:q):r(L)}function T(L){return Rt(L)?(e.consume(L),T):$(L)}function C(L){return L===47?(e.consume(L),$):L===58||L===95||Jn(L)?(e.consume(L),P):Rt(L)?(e.consume(L),C):$(L)}function P(L){return L===45||L===46||L===58||L===95||qn(L)?(e.consume(L),P):O(L)}function O(L){return L===61?(e.consume(L),k):Rt(L)?(e.consume(L),O):C(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),u=L,M):Rt(L)?(e.consume(L),k):j(L)}function M(L){return L===u?(e.consume(L),u=null,z):L===null||Ze(L)?r(L):(e.consume(L),M)}function j(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||dr(L)?O(L):(e.consume(L),j)}function z(L){return L===47||L===62||Rt(L)?C(L):r(L)}function $(L){return L===62?(e.consume(L),F):r(L)}function F(L){return L===null||Ze(L)?q(L):Rt(L)?(e.consume(L),F):r(L)}function q(L){return L===45&&a===2?(e.consume(L),U):L===60&&a===1?(e.consume(L),J):L===62&&a===4?(e.consume(L),Y):L===63&&a===3?(e.consume(L),G):L===93&&a===5?(e.consume(L),de):Ze(L)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(mde,W,Q)(L)):L===null||Ze(L)?(e.exit("htmlFlowData"),Q(L)):(e.consume(L),q)}function Q(L){return e.check(gde,X,W)(L)}function X(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),te}function te(L){return L===null||Ze(L)?Q(L):(e.enter("htmlFlowData"),q(L))}function U(L){return L===45?(e.consume(L),G):q(L)}function J(L){return L===47?(e.consume(L),s="",ee):q(L)}function ee(L){if(L===62){const le=s.toLowerCase();return _R.includes(le)?(e.consume(L),Y):q(L)}return Jn(L)&&s.length<8?(e.consume(L),s+=String.fromCharCode(L),ee):q(L)}function de(L){return L===93?(e.consume(L),G):q(L)}function G(L){return L===62?(e.consume(L),Y):L===45&&a===2?(e.consume(L),G):q(L)}function Y(L){return L===null||Ze(L)?(e.exit("htmlFlowData"),W(L)):(e.consume(L),Y)}function W(L){return e.exit("htmlFlow"),t(L)}}function bde(e,t,r){const n=this;return a;function a(s){return Ze(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):r(s)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function xde(e,t,r){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Hp,t,r)}}const Ede={name:"htmlText",tokenize:wde};function wde(e,t,r){const n=this;let a,i,s;return o;function o(G){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(G),u}function u(G){return G===33?(e.consume(G),c):G===47?(e.consume(G),O):G===63?(e.consume(G),C):Jn(G)?(e.consume(G),j):r(G)}function c(G){return G===45?(e.consume(G),h):G===91?(e.consume(G),i=0,y):Jn(G)?(e.consume(G),T):r(G)}function h(G){return G===45?(e.consume(G),v):r(G)}function d(G){return G===null?r(G):G===45?(e.consume(G),m):Ze(G)?(s=d,J(G)):(e.consume(G),d)}function m(G){return G===45?(e.consume(G),v):d(G)}function v(G){return G===62?U(G):G===45?m(G):d(G)}function y(G){const Y="CDATA[";return G===Y.charCodeAt(i++)?(e.consume(G),i===Y.length?b:y):r(G)}function b(G){return G===null?r(G):G===93?(e.consume(G),E):Ze(G)?(s=b,J(G)):(e.consume(G),b)}function E(G){return G===93?(e.consume(G),_):b(G)}function _(G){return G===62?U(G):G===93?(e.consume(G),_):b(G)}function T(G){return G===null||G===62?U(G):Ze(G)?(s=T,J(G)):(e.consume(G),T)}function C(G){return G===null?r(G):G===63?(e.consume(G),P):Ze(G)?(s=C,J(G)):(e.consume(G),C)}function P(G){return G===62?U(G):C(G)}function O(G){return Jn(G)?(e.consume(G),k):r(G)}function k(G){return G===45||qn(G)?(e.consume(G),k):M(G)}function M(G){return Ze(G)?(s=M,J(G)):Rt(G)?(e.consume(G),M):U(G)}function j(G){return G===45||qn(G)?(e.consume(G),j):G===47||G===62||dr(G)?z(G):r(G)}function z(G){return G===47?(e.consume(G),U):G===58||G===95||Jn(G)?(e.consume(G),$):Ze(G)?(s=z,J(G)):Rt(G)?(e.consume(G),z):U(G)}function $(G){return G===45||G===46||G===58||G===95||qn(G)?(e.consume(G),$):F(G)}function F(G){return G===61?(e.consume(G),q):Ze(G)?(s=F,J(G)):Rt(G)?(e.consume(G),F):z(G)}function q(G){return G===null||G===60||G===61||G===62||G===96?r(G):G===34||G===39?(e.consume(G),a=G,Q):Ze(G)?(s=q,J(G)):Rt(G)?(e.consume(G),q):(e.consume(G),X)}function Q(G){return G===a?(e.consume(G),a=void 0,te):G===null?r(G):Ze(G)?(s=Q,J(G)):(e.consume(G),Q)}function X(G){return G===null||G===34||G===39||G===60||G===61||G===96?r(G):G===47||G===62||dr(G)?z(G):(e.consume(G),X)}function te(G){return G===47||G===62||dr(G)?z(G):r(G)}function U(G){return G===62?(e.consume(G),e.exit("htmlTextData"),e.exit("htmlText"),t):r(G)}function J(G){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),ee}function ee(G){return Rt(G)?At(e,de,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):de(G)}function de(G){return e.enter("htmlTextData"),s(G)}}const bA={name:"labelEnd",resolveAll:Ade,resolveTo:Cde,tokenize:Ode},_de={tokenize:kde},Sde={tokenize:Nde},Tde={tokenize:Rde};function Ade(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const a=n.type==="labelImage"?4:2;n.type="data",t+=a}}return e.length!==r.length&&qa(e,0,e.length,r),e}function Cde(e,t){let r=e.length,n=0,a,i,s,o;for(;r--;)if(a=e[r][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=r,a.type!=="labelLink")){n=2;break}}else a.type==="labelEnd"&&(s=r);const u={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[i+n+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",c,t]],o=ui(o,e.slice(i+1,i+n+3)),o=ui(o,[["enter",h,t]]),o=ui(o,Yy(t.parser.constructs.insideSpan.null,e.slice(i+n+4,s-3),t)),o=ui(o,[["exit",h,t],e[s-2],e[s-1],["exit",c,t]]),o=ui(o,e.slice(s+1)),o=ui(o,[["exit",u,t]]),qa(e,i,e.length,o),e}function Ode(e,t,r){const n=this;let a=n.events.length,i,s;for(;a--;)if((n.events[a][1].type==="labelImage"||n.events[a][1].type==="labelLink")&&!n.events[a][1]._balanced){i=n.events[a][1];break}return o;function o(m){return i?i._inactive?d(m):(s=n.parser.defined.includes($i(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),u):r(m)}function u(m){return m===40?e.attempt(_de,h,s?h:d)(m):m===91?e.attempt(Sde,h,s?c:d)(m):s?h(m):d(m)}function c(m){return e.attempt(Tde,h,d)(m)}function h(m){return t(m)}function d(m){return i._balanced=!0,r(m)}}function kde(e,t,r){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return dr(d)?gh(e,i)(d):i(d)}function i(d){return d===41?h(d):Uq(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return dr(d)?gh(e,u)(d):h(d)}function o(d){return r(d)}function u(d){return d===34||d===39||d===40?qq(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):h(d)}function c(d){return dr(d)?gh(e,h)(d):h(d)}function h(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):r(d)}}function Nde(e,t,r){const n=this;return a;function a(o){return Hq.call(n,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return n.parser.defined.includes($i(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function Rde(e,t,r){return n;function n(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}const Mde={name:"labelStartImage",resolveAll:bA.resolveAll,tokenize:Pde};function Pde(e,t,r){const n=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const Ide={name:"labelStartLink",resolveAll:bA.resolveAll,tokenize:Dde};function Dde(e,t,r){const n=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const B4={name:"lineEnding",tokenize:Lde};function Lde(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),At(e,t,"linePrefix")}}const N1={name:"thematicBreak",tokenize:jde};function jde(e,t,r){let n=0,a;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return a=c,o(c)}function o(c){return c===a?(e.enter("thematicBreakSequence"),u(c)):n>=3&&(c===null||Ze(c))?(e.exit("thematicBreak"),t(c)):r(c)}function u(c){return c===a?(e.consume(c),n++,u):(e.exit("thematicBreakSequence"),Rt(c)?At(e,o,"whitespace")(c):o(c))}}const ga={continuation:{tokenize:Fde},exit:Hde,name:"list",tokenize:$de},Bde={partial:!0,tokenize:qde},zde={partial:!0,tokenize:Ude};function $de(e,t,r){const n=this,a=n.events[n.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(v){const y=n.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!n.containerState.marker||v===n.containerState.marker:y_(v)){if(n.containerState.type||(n.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(N1,r,c)(v):c(v);if(!n.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(v)}return r(v)}function u(v){return y_(v)&&++s<10?(e.consume(v),u):(!n.interrupt||s<2)&&(n.containerState.marker?v===n.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),c(v)):r(v)}function c(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||v,e.check(Hp,n.interrupt?r:h,e.attempt(Bde,m,d))}function h(v){return n.containerState.initialBlankLine=!0,i++,m(v)}function d(v){return Rt(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),m):r(v)}function m(v){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(v)}}function Fde(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Hp,a,i);function a(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,At(e,t,"listItemIndent",n.containerState.size+1)(o)}function i(o){return n.containerState.furtherBlankLines||!Rt(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(zde,t,s)(o))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,At(e,e.attempt(ga,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Ude(e,t,r){const n=this;return At(e,a,"listItemIndent",n.containerState.size+1);function a(i){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(i):r(i)}}function Hde(e){e.exit(this.containerState.type)}function qde(e,t,r){const n=this;return At(e,a,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=n.events[n.events.length-1];return!Rt(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}const SR={name:"setextUnderline",resolveTo:Vde,tokenize:Gde};function Vde(e,t){let r=e.length,n,a,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function Gde(e,t,r){const n=this;let a;return i;function i(c){let h=n.events.length,d;for(;h--;)if(n.events[h][1].type!=="lineEnding"&&n.events[h][1].type!=="linePrefix"&&n.events[h][1].type!=="content"){d=n.events[h][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),a=c,s(c)):r(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===a?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),Rt(c)?At(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||Ze(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}const Wde={tokenize:Yde};function Yde(e){const t=this,r=e.attempt(Hp,n,e.attempt(this.parser.constructs.flowInitial,a,At(e,e.attempt(this.parser.constructs.flow,a,e.attempt(J0e,a)),"linePrefix")));return r;function n(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Xde={resolveAll:Gq()},Kde=Vq("string"),Qde=Vq("text");function Vq(e){return{resolveAll:Gq(e==="text"?Zde:void 0),tokenize:t};function t(r){const n=this,a=this.parser.constructs[e],i=r.attempt(a,s,o);return s;function s(h){return c(h)?i(h):o(h)}function o(h){if(h===null){r.consume(h);return}return r.enter("data"),r.consume(h),u}function u(h){return c(h)?(r.exit("data"),i(h)):(r.consume(h),u)}function c(h){if(h===null)return!0;const d=a[h];let m=-1;if(d)for(;++m<d.length;){const v=d[m];if(!v.previous||v.previous.call(n,n.previous))return!0}return!1}}}function Gq(e){return t;function t(r,n){let a=-1,i;for(;++a<=r.length;)i===void 0?r[a]&&r[a][1].type==="data"&&(i=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==i+2&&(r[i][1].end=r[a-1][1].end,r.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(r,n):r}}function Zde(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],a=t.sliceStream(n);let i=a.length,s=-1,o=0,u;for(;i--;){const c=a[i];if(typeof c=="string"){for(s=c.length;
vendor: 4,932 bytes, lines 363-365
363c.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(c===-2)u=!0,o++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const c={type:r===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:n.start._bufferIndex+s,_index:n.start._index+i,line:n.end.line,column:n.end.column-o,offset:n.end.offset-o},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}const Jde={42:ga,43:ga,45:ga,48:ga,49:ga,50:ga,51:ga,52:ga,53:ga,54:ga,55:ga,56:ga,57:ga,62:Bq},ehe={91:ade},the={[-2]:j4,[-1]:j4,32:j4},rhe={35:cde,42:N1,45:[SR,N1],60:pde,61:SR,95:N1,96:wR,126:wR},nhe={38:$q,92:zq},ahe={[-5]:B4,[-4]:B4,[-3]:B4,33:Mde,38:$q,42:b_,60:[I0e,Ede],91:Ide,92:[lde,zq],93:bA,95:b_,96:W0e},ihe={null:[b_,Xde]},she={null:[42,95]},ohe={null:[]},lhe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:she,contentInitial:ehe,disable:ohe,document:Jde,flow:rhe,flowInitial:the,insideSpan:ihe,string:nhe,text:ahe},Symbol.toStringTag,{value:"Module"}));function uhe(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const a={},i=[];let s=[],o=[];const u={attempt:M(O),check:M(k),consume:T,enter:C,exit:P,interrupt:M(k,{interrupt:!0})},c={code:null,containerState:{},defineSkip:b,events:[],now:y,parser:e,previous:null,sliceSerialize:m,sliceStream:v,write:d};let h=t.tokenize.call(c,u);return t.resolveAll&&i.push(t),c;function d(F){return s=ui(s,F),E(),s[s.length-1]!==null?[]:(j(t,0),c.events=Yy(i,c.events,c),c.events)}function m(F,q){return fhe(v(F),q)}function v(F){return che(s,F)}function y(){const{_bufferIndex:F,_index:q,line:Q,column:X,offset:te}=n;return{_bufferIndex:F,_index:q,line:Q,column:X,offset:te}}function b(F){a[F.line]=F.column,$()}function E(){let F;for(;n._index<s.length;){const q=s[n._index];if(typeof q=="string")for(F=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===F&&n._bufferIndex<q.length;)_(q.charCodeAt(n._bufferIndex));else _(q)}}function _(F){h=h(F)}function T(F){Ze(F)?(n.line++,n.column=1,n.offset+=F===-3?2:1,$()):F!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=F}function C(F,q){const Q=q||{};return Q.type=F,Q.start=y(),c.events.push(["enter",Q,c]),o.push(Q),Q}function P(F){const q=o.pop();return q.end=y(),c.events.push(["exit",q,c]),q}function O(F,q){j(F,q.from)}function k(F,q){q.restore()}function M(F,q){return Q;function Q(X,te,U){let J,ee,de,G;return Array.isArray(X)?W(X):"tokenize"in X?W([X]):Y(X);function Y(Se){return ye;function ye(Ne){const xe=Ne!==null&&Se[Ne],Pe=Ne!==null&&Se.null,ze=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return W(ze)(Ne)}}function W(Se){return J=Se,ee=0,Se.length===0?U:L(Se[ee])}function L(Se){return ye;function ye(Ne){return G=z(),de=Se,Se.partial||(c.currentConstruct=Se),Se.name&&c.parser.constructs.disable.null.includes(Se.name)?fe():Se.tokenize.call(q?Object.assign(Object.create(c),q):c,u,le,fe)(Ne)}}function le(Se){return F(de,G),te}function fe(Se){return G.restore(),++ee<J.length?L(J[ee]):U}}}function j(F,q){F.resolveAll&&!i.includes(F)&&i.push(F),F.resolve&&qa(c.events,q,c.events.length-q,F.resolve(c.events.slice(q),c)),F.resolveTo&&(c.events=F.resolveTo(c.events,c))}function z(){const F=y(),q=c.previous,Q=c.currentConstruct,X=c.events.length,te=Array.from(o);return{from:X,restore:U};function U(){n=F,c.previous=q,c.currentConstruct=Q,c.events.length=X,o=te,$()}}function $(){n.line in a&&n.column<2&&(n.column=a[n.line],n.offset+=a[n.line]-1)}}function che(e,t){const r=t.start._index,n=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(r===a)s=[e[r].slice(n,i)];else{if(s=e.slice(r,a),n>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(n):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function fhe(e,t){let r=-1;const n=[];let a;for(;++r<e.length;){const i=e[r];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
364`;break}case-3:{s=`\r
365`;break}case-2:{s=t?" ":"	";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,n.push(s)}return n.join("")}function dhe(e){const n={constructs:Lq([lhe,...(e||{}).extensions||[]]),content:a(C0e),defined:[],document:a(k0e),flow:a(Wde),lazy:{},string:a(Kde),text:a(Qde)};return n;function a(i){return s;function s(o){return uhe(n,i,o)}}}function hhe(e){for(;!Fq(e););return e}const TR=/[\0\t\n\r]/g;function phe(){let e=1,t="",r=!0,n;return a;function a(i,s,o){const u=[];let c,h,d,m,v;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),d=0,t="",r&&(i.charCodeAt(0)===65279&&d++,r=void 0);d<i.length;){if(TR.lastIndex=d,c=TR.exec(i),m=c&&c.index!==void 0?c.index:i.length,v=i.charCodeAt(m),!c){t=i.slice(d);break}if(v===10&&d===m&&n)u.push(-3),n=void 0;
vendor: 15,348 bytes, lines 365-368
365else switch(n&&(u.push(-5),n=void 0),d<m&&(u.push(i.slice(d,m)),e+=m-d),v){case 0:{u.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,u.push(-2);e++<h;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:n=!0,e=1}d=m+1}return o&&(n&&u.push(-5),t&&u.push(t),u.push(null)),u}}const mhe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ghe(e){return e.replace(mhe,vhe)}function vhe(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),i=a===120||a===88;return jq(r.slice(i?2:1),i?16:10)}return yA(r)||e}const Wq={}.hasOwnProperty;function yhe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),bhe(r)(hhe(dhe(r).document().write(phe()(e,t,!0))))}function bhe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ar),autolinkProtocol:z,autolinkEmail:z,atxHeading:i(zt),blockQuote:i(Pe),characterEscape:z,characterReference:z,codeFenced:i(ze),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(ze,s),codeText:i(we,s),codeTextData:z,data:z,codeFlowValue:z,definition:i(ft),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Qe),hardBreakEscape:i(Pt),hardBreakTrailing:i(Pt),htmlFlow:i(Ut,s),htmlFlowData:z,htmlText:i(Ut,s),htmlTextData:z,image:i(jr),label:s,link:i(ar),listItem:i(Wn),listItemValue:m,listOrdered:i(Aa,d),listUnordered:i(Aa),paragraph:i(yr),reference:L,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(zt),strong:i(aa),thematicBreak:i(Mo)},exit:{atxHeading:u(),atxHeadingSequence:O,autolink:u(),autolinkEmail:xe,autolinkProtocol:Ne,blockQuote:u(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:fe,characterReferenceMarkerNumeric:fe,characterReferenceValue:Se,characterReference:ye,codeFenced:u(E),codeFencedFence:b,codeFencedFenceInfo:v,codeFencedFenceMeta:y,codeFlowValue:$,codeIndented:u(_),codeText:u(te),codeTextData:$,data:$,definition:u(),definitionDestinationString:P,definitionLabelString:T,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(q),hardBreakTrailing:u(q),htmlFlow:u(Q),htmlFlowData:$,htmlText:u(X),htmlTextData:$,image:u(J),label:de,labelText:ee,lineEnding:F,link:u(U),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:le,resourceDestinationString:G,resourceTitleString:Y,resource:W,setextHeading:u(j),setextHeadingLineSequence:M,setextHeadingText:k,strong:u(),thematicBreak:u()}};Yq(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(Ae){let $e={type:"root",children:[]};const nt={stack:[$e],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:h,data:r},vt=[];let Ct=-1;for(;++Ct<Ae.length;)if(Ae[Ct][1].type==="listOrdered"||Ae[Ct][1].type==="listUnordered")if(Ae[Ct][0]==="enter")vt.push(Ct);else{const In=vt.pop();Ct=a(Ae,In,Ct)}for(Ct=-1;++Ct<Ae.length;){const In=t[Ae[Ct][0]];Wq.call(In,Ae[Ct][1].type)&&In[Ae[Ct][1].type].call(Object.assign({sliceSerialize:Ae[Ct][2].sliceSerialize},nt),Ae[Ct][1])}if(nt.tokenStack.length>0){const In=nt.tokenStack[nt.tokenStack.length-1];(In[1]||AR).call(nt,void 0,In[0])}for($e.position={start:il(Ae.length>0?Ae[0][1].start:{line:1,column:1,offset:0}),end:il(Ae.length>0?Ae[Ae.length-2][1].end:{line:1,column:1,offset:0})},Ct=-1;++Ct<t.transforms.length;)$e=t.transforms[Ct]($e)||$e;return $e}function a(Ae,$e,nt){let vt=$e-1,Ct=-1,In=!1,Dn,Tn,Br,An;for(;++vt<=nt;){const Qt=Ae[vt];switch(Qt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qt[0]==="enter"?Ct++:Ct--,An=void 0;break}case"lineEndingBlank":{Qt[0]==="enter"&&(Dn&&!An&&!Ct&&!Br&&(Br=vt),An=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:An=void 0}if(!Ct&&Qt[0]==="enter"&&Qt[1].type==="listItemPrefix"||Ct===-1&&Qt[0]==="exit"&&(Qt[1].type==="listUnordered"||Qt[1].type==="listOrdered")){if(Dn){let Wi=vt;for(Tn=void 0;Wi--;){const Yn=Ae[Wi];if(Yn[1].type==="lineEnding"||Yn[1].type==="lineEndingBlank"){if(Yn[0]==="exit")continue;Tn&&(Ae[Tn][1].type="lineEndingBlank",In=!0),Yn[1].type="lineEnding",Tn=Wi}else if(!(Yn[1].type==="linePrefix"||Yn[1].type==="blockQuotePrefix"||Yn[1].type==="blockQuotePrefixWhitespace"||Yn[1].type==="blockQuoteMarker"||Yn[1].type==="listItemIndent"))break}Br&&(!Tn||Br<Tn)&&(Dn._spread=!0),Dn.end=Object.assign({},Tn?Ae[Tn][1].start:Qt[1].end),Ae.splice(Tn||vt,0,["exit",Dn,Qt[2]]),vt++,nt++}if(Qt[1].type==="listItemPrefix"){const Wi={type:"listItem",_spread:!1,start:Object.assign({},Qt[1].start),end:void 0};Dn=Wi,Ae.splice(vt,0,["enter",Wi,Qt[2]]),vt++,nt++,Br=void 0,An=!0}}}return Ae[$e][1]._spread=In,nt}function i(Ae,$e){return nt;function nt(vt){o.call(this,Ae(vt),vt),$e&&$e.call(this,vt)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(Ae,$e,nt){this.stack[this.stack.length-1].children.push(Ae),this.stack.push(Ae),this.tokenStack.push([$e,nt||void 0]),Ae.position={start:il($e.start),end:void 0}}function u(Ae){return $e;function $e(nt){Ae&&Ae.call(this,nt),c.call(this,nt)}}function c(Ae,$e){const nt=this.stack.pop(),vt=this.tokenStack.pop();if(vt)vt[0].type!==Ae.type&&($e?$e.call(this,Ae,vt[0]):(vt[1]||AR).call(this,Ae,vt[0]));else throw new Error("Cannot close `"+Ae.type+"` ("+mh({start:Ae.start,end:Ae.end})+"): it’s not open");nt.position.end=il(Ae.end)}function h(){return vA(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(Ae){if(this.data.expectingFirstListItemValue){const $e=this.stack[this.stack.length-2];$e.start=Number.parseInt(this.sliceSerialize(Ae),10),this.data.expectingFirstListItemValue=void 0}}function v(){const Ae=this.resume(),$e=this.stack[this.stack.length-1];$e.lang=Ae}function y(){const Ae=this.resume(),$e=this.stack[this.stack.length-1];$e.meta=Ae}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const Ae=this.resume(),$e=this.stack[this.stack.length-1];$e.value=Ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const Ae=this.resume(),$e=this.stack[this.stack.length-1];$e.value=Ae.replace(/(\r?\n|\r)$/g,"")}function T(Ae){const $e=this.resume(),nt=this.stack[this.stack.length-1];nt.label=$e,nt.identifier=$i(this.sliceSerialize(Ae)).toLowerCase()}function C(){const Ae=this.resume(),$e=this.stack[this.stack.length-1];$e.title=Ae}function P(){const Ae=this.resume(),$e=this.stack[this.stack.length-1];$e.url=Ae}function O(Ae){const $e=this.stack[this.stack.length-1];if(!$e.depth){const nt=this.sliceSerialize(Ae).length;$e.depth=nt}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function M(Ae){const $e=this.stack[this.stack.length-1];$e.depth=this.sliceSerialize(Ae).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function z(Ae){const nt=this.stack[this.stack.length-1].children;let vt=nt[nt.length-1];(!vt||vt.type!=="text")&&(vt=Gr(),vt.position={start:il(Ae.start),end:void 0},nt.push(vt)),this.stack.push(vt)}function $(Ae){const $e=this.stack.pop();$e.value+=this.sliceSerialize(Ae),$e.position.end=il(Ae.end)}function F(Ae){const $e=this.stack[this.stack.length-1];if(this.data.atHardBreak){const nt=$e.children[$e.children.length-1];nt.position.end=il(Ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($e.type)&&(z.call(this,Ae),$.call(this,Ae))}function q(){this.data.atHardBreak=!0}function Q(){const Ae=this.resume(),$e=this.stack[this.stack.length-1];$e.value=Ae}function X(){const Ae=this.resume(),$e=this.stack[this.stack.length-1];$e.value=Ae}function te(){const Ae=this.resume(),$e=this.stack[this.stack.length-1];$e.value=Ae}function U(){const Ae=this.stack[this.stack.length-1];if(this.data.inReference){const $e=this.data.referenceType||"shortcut";Ae.type+="Reference",Ae.referenceType=$e,delete Ae.url,delete Ae.title}else delete Ae.identifier,delete Ae.label;this.data.referenceType=void 0}function J(){const Ae=this.stack[this.stack.length-1];if(this.data.inReference){const $e=this.data.referenceType||"shortcut";Ae.type+="Reference",Ae.referenceType=$e,delete Ae.url,delete Ae.title}else delete Ae.identifier,delete Ae.label;this.data.referenceType=void 0}function ee(Ae){const $e=this.sliceSerialize(Ae),nt=this.stack[this.stack.length-2];nt.label=ghe($e),nt.identifier=$i($e).toLowerCase()}function de(){const Ae=this.stack[this.stack.length-1],$e=this.resume(),nt=this.stack[this.stack.length-1];if(this.data.inReference=!0,nt.type==="link"){const vt=Ae.children;nt.children=vt}else nt.alt=$e}function G(){const Ae=this.resume(),$e=this.stack[this.stack.length-1];$e.url=Ae}function Y(){const Ae=this.resume(),$e=this.stack[this.stack.length-1];$e.title=Ae}function W(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function le(Ae){const $e=this.resume(),nt=this.stack[this.stack.length-1];nt.label=$e,nt.identifier=$i(this.sliceSerialize(Ae)).toLowerCase(),this.data.referenceType="full"}function fe(Ae){this.data.characterReferenceType=Ae.type}function Se(Ae){const $e=this.sliceSerialize(Ae),nt=this.data.characterReferenceType;let vt;nt?(vt=jq($e,nt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):vt=yA($e);const Ct=this.stack[this.stack.length-1];Ct.value+=vt}function ye(Ae){const $e=this.stack.pop();$e.position.end=il(Ae.end)}function Ne(Ae){$.call(this,Ae);const $e=this.stack[this.stack.length-1];$e.url=this.sliceSerialize(Ae)}function xe(Ae){$.call(this,Ae);const $e=this.stack[this.stack.length-1];$e.url="mailto:"+this.sliceSerialize(Ae)}function Pe(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function we(){return{type:"inlineCode",value:""}}function ft(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qe(){return{type:"emphasis",children:[]}}function zt(){return{type:"heading",depth:0,children:[]}}function Pt(){return{type:"break"}}function Ut(){return{type:"html",value:""}}function jr(){return{type:"image",title:null,url:"",alt:null}}function ar(){return{type:"link",title:null,url:"",children:[]}}function Aa(Ae){return{type:"list",ordered:Ae.type==="listOrdered",start:null,spread:Ae._spread,children:[]}}function Wn(Ae){return{type:"listItem",spread:Ae._spread,checked:null,children:[]}}function yr(){return{type:"paragraph",children:[]}}function aa(){return{type:"strong",children:[]}}function Gr(){return{type:"text",value:""}}function Mo(){return{type:"thematicBreak"}}}function il(e){return{line:e.line,column:e.column,offset:e.offset}}function Yq(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?Yq(e,n):xhe(e,n)}}function xhe(e,t){let r;for(r in t)if(Wq.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function AR(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+mh({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+mh({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+mh({start:t.start,end:t.end})+") is still open")}function Ehe(e){const t=this;t.parser=r;function r(n){return yhe(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function whe(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function _he(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
366`}]}function She(e,t){const r=t.value?t.value+`
367`:"",n={};t.lang&&(n.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function The(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ahe(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Che(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),a=C0(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let s,o=e.footnoteCounts.get(n);o===void 0?(o=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=i+1,o+=1,e.footnoteCounts.set(n,o);const u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)}function Ohe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function khe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Xq(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=n:a.push({type:"text",value:n}),a}function Nhe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Xq(e,t);const a={src:C0(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function Rhe(e,t){const r={src:C0(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function Mhe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function Phe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Xq(e,t);const a={href:C0(n.url||"")};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Ihe(e,t){const r={href:C0(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Dhe(e,t,r){const n=e.all(t),a=r?Lhe(r):Kq(t),i={},s=[];if(typeof t.checked=="boolean"){const h=n[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},n.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<n.length;){const h=n[o];(a||o!==0||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
368`}
vendor: 5,293 bytes, lines 368-369
368),h.type==="element"&&h.tagName==="p"&&!a?s.push(...h.children):s.push(h)}const u=n[n.length-1];u&&(a||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
369`});const c={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,c),e.applyData(t,c)}function Lhe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Kq(r[n])}return t}function Kq(e){const t=e.spread;return t??e.children.length>1}function jhe(e,t){const r={},n=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<n.length;){const s=n[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)}function Bhe(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zhe(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function $he(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Fhe(e,t){const r=e.all(t),n=r.shift(),a=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),a.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=Ss(t.children[1]),u=Gy(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),a.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function Uhe(e,t,r){const n=r?r.children:void 0,i=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let u=-1;const c=[];for(;++u<o;){const d=t.children[u],m={},v=s?s[u]:void 0;v&&(m.align=v);let y={type:"element",tagName:i,properties:m,children:[]};d&&(y.children=e.all(d),e.patch(d,y),y=e.applyData(d,y)),c.push(y)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,h),e.applyData(t,h)}function Hhe(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const CR=9,OR=32;function qhe(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),a=0;const i=[];for(;n;)i.push(kR(t.slice(a,n.index),a>0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return i.push(kR(t.slice(a),a>0,!1)),i.join("")}function kR(e,t,r){let n=0,a=e.length;if(t){let i=e.codePointAt(n);for(;i===CR||i===OR;)n++,i=e.codePointAt(n)}if(r){let i=e.codePointAt(a-1);for(;i===CR||i===OR;)a--,i=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}function Vhe(e,t){const r={type:"text",value:qhe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Ghe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Whe={blockquote:whe,break:_he,code:She,delete:The,emphasis:Ahe,footnoteReference:Che,heading:Ohe,html:khe,imageReference:Nhe,image:Rhe,inlineCode:Mhe,linkReference:Phe,link:Ihe,listItem:Dhe,list:jhe,paragraph:Bhe,root:zhe,strong:$he,table:Fhe,tableCell:Hhe,tableRow:Uhe,text:Vhe,thematicBreak:Ghe,toml:$g,yaml:$g,definition:$g,footnoteDefinition:$g};function $g(){}const Qq=-1,Xy=0,vh=1,X1=2,xA=3,EA=4,wA=5,_A=6,Zq=7,Jq=8,NR=typeof self=="object"?self:globalThis,Yhe=(e,t)=>{const r=(a,i)=>(e.set(i,a),a),n=a=>{if(e.has(a))return e.get(a);const[i,s]=t[a];switch(i){case Xy:case Qq:return r(s,a);case vh:{const o=r([],a);for(const u of s)o.push(n(u));return o}case X1:{const o=r({},a);for(const[u,c]of s)o[n(u)]=n(c);return o}case xA:return r(new Date(s),a);case EA:{const{source:o,flags:u}=s;return r(new RegExp(o,u),a)}case wA:{const o=r(new Map,a);for(const[u,c]of s)o.set(n(u),n(c));return o}case _A:{const o=r(new Set,a);for(const u of s)o.add(n(u));return o}case Zq:{const{name:o,message:u}=s;return r(new NR[o](u),a)}case Jq:return r(BigInt(s),a);case"BigInt":return r(Object(BigInt(s)),a);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(new NR[i](s),a)};return n},RR=e=>Yhe(new Map,e)(0),lf="",{toString:Xhe}={},{keys:Khe}=Object,Hd=e=>{const t=typeof e;if(t!=="object"||!e)return[Xy,t];const r=Xhe.call(e).slice(8,-1);switch(r){case"Array":return[vh,lf];case"Object":return[X1,lf];case"Date":return[xA,lf];case"RegExp":return[EA,lf];case"Map":return[wA,lf];case"Set":return[_A,lf];case"DataView":return[vh,r]}return r.includes("Array")?[vh,r]:r.includes("Error")?[Zq,r]:[X1,r]},Fg=([e,t])=>e===Xy&&(t==="function"||t==="symbol"),Qhe=(e,t,r,n)=>{const a=(s,o)=>{const u=n.push(s)-1;return r.set(o,u),u},i=s=>{if(r.has(s))return r.get(s);let[o,u]=Hd(s);switch(o){case Xy:{let h=s;switch(u){case"bigint":o=Jq,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);h=null;break;case"undefined":return a([Qq],s)}return a([o,h],s)}case vh:{if(u){let m=s;return u==="DataView"?m=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(m=new Uint8Array(s)),a([u,[...m]],s)}const h=[],d=a([o,h],s);for(const m of s)h.push(i(m));return d}
vendor: 2,631 bytes, lines 369-370
369case X1:{if(u)switch(u){case"BigInt":return a([u,s.toString()],s);case"Boolean":case"Number":case"String":return a([u,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());const h=[],d=a([o,h],s);for(const m of Khe(s))(e||!Fg(Hd(s[m])))&&h.push([i(m),i(s[m])]);return d}case xA:return a([o,s.toISOString()],s);case EA:{const{source:h,flags:d}=s;return a([o,{source:h,flags:d}],s)}case wA:{const h=[],d=a([o,h],s);for(const[m,v]of s)(e||!(Fg(Hd(m))||Fg(Hd(v))))&&h.push([i(m),i(v)]);return d}case _A:{const h=[],d=a([o,h],s);for(const m of s)(e||!Fg(Hd(m)))&&h.push(i(m));return d}}const{message:c}=s;return a([o,{name:u,message:c}],s)};return i},MR=(e,{json:t,lossy:r}={})=>{const n=[];return Qhe(!(t||r),!!t,new Map,n)(e),n},Vf=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?RR(MR(e,t)):structuredClone(e):(e,t)=>RR(MR(e,t));function Zhe(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Jhe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function epe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Zhe,n=e.options.footnoteBackLabel||Jhe,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const h=e.all(c),d=String(c.identifier).toUpperCase(),m=C0(d.toLowerCase());let v=0;const y=[],b=e.footnoteCounts.get(d);for(;b!==void 0&&++v<=b;){y.length>0&&y.push({type:"text",value:" "});let T=typeof r=="string"?r:r(u,v);typeof T=="string"&&(T={type:"text",value:T}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(u,v),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const E=h[h.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const T=E.children[E.children.length-1];T&&T.type==="text"?T.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...y)}else h.push(...y);const _={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(h,!0)};e.patch(c,_),o.push(_)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Vf(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
370`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)}
vendor: 5,593 bytes, lines 370-375
370,{type:"text",value:`
371`}]}}const qp=(function(e){if(e==null)return ape;if(typeof e=="function")return Ky(e);if(typeof e=="object")return Array.isArray(e)?tpe(e):rpe(e);if(typeof e=="string")return npe(e);throw new Error("Expected function, string, or object as test")});function tpe(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=qp(e[r]);return Ky(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function rpe(e){const t=e;return Ky(r);function r(n){const a=n;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function npe(e){return Ky(t);function t(r){return r&&r.type===e}}function Ky(e){return t;function t(r,n,a){return!!(ipe(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function ape(){return!0}function ipe(e){return e!==null&&typeof e=="object"&&"type"in e}const eV=[],ih=!0,x_=!1,K1="skip";function SA(e,t,r,n){let a;typeof t=="function"&&typeof r!="function"?(n=r,r=t):a=t;const i=qp(a),s=n?-1:1;o(e,void 0,[])();function o(u,c,h){const d=u&&typeof u=="object"?u:{};if(typeof d.type=="string"){const v=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(u.type+(v?"<"+v+">":""))+")"})}return m;function m(){let v=eV,y,b,E;if((!t||i(u,c,h[h.length-1]||void 0))&&(v=spe(r(u,h)),v[0]===x_))return v;if("children"in u&&u.children){const _=u;if(_.children&&v[0]!==K1)for(b=(n?_.children.length:-1)+s,E=h.concat(_);b>-1&&b<_.children.length;){const T=_.children[b];if(y=o(T,b,E)(),y[0]===x_)return y;b=typeof y[1]=="number"?y[1]:b+s}}return v}}}function spe(e){return Array.isArray(e)?e:typeof e=="number"?[ih,e]:e==null?eV:[e]}function Vu(e,t,r,n){let a,i,s;typeof t=="function"&&typeof r!="function"?(i=void 0,s=t,a=r):(i=t,s=r,a=n),SA(e,i,o,a);function o(u,c){const h=c[c.length-1],d=h?h.children.indexOf(u):void 0;return s(u,d,h)}}const E_={}.hasOwnProperty,ope={};function lpe(e,t){const r=t||ope,n=new Map,a=new Map,i=new Map,s={...Whe,...r.handlers},o={all:c,applyData:cpe,definitionById:n,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:u,options:r,patch:upe,wrap:dpe};return Vu(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?n:a,m=String(h.identifier).toUpperCase();d.has(m)||d.set(m,h)}}),o;function u(h,d){const m=h.type,v=o.handlers[m];if(E_.call(o.handlers,m)&&v)return v(o,h,d);if(o.options.passThrough&&o.options.passThrough.includes(m)){if("children"in h){const{children:b,...E}=h,_=Vf(E);return _.children=o.all(h),_}return Vf(h)}return(o.options.unknownHandler||fpe)(o,h,d)}function c(h){const d=[];if("children"in h){const m=h.children;let v=-1;for(;++v<m.length;){const y=o.one(m[v],h);if(y){if(v&&m[v-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=PR(y.value)),!Array.isArray(y)&&y.type==="element")){const b=y.children[0];b&&b.type==="text"&&(b.value=PR(b.value))}Array.isArray(y)?d.push(...y):d.push(y)}}}return d}}function upe(e,t){e.position&&(t.position=Jfe(e))}function cpe(e,t){let r=t;if(e&&e.data){const n=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&i&&Object.assign(r.properties,Vf(i)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function fpe(e,t){const r=t.data||{},n="value"in t&&!(E_.call(r,"hProperties")||E_.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dpe(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
372`});++n<e.length;)n&&r.push({type:"text",value:`
373`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
374`}),r}function PR(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function IR(e,t){const r=lpe(e,t),n=r.one(e,void 0),a=epe(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
375`},a),i}function hpe(e,t){return e&&"run"in e?async function(r,n){const a=IR(r,{file:n,...t});await e.run(a,n)}:function(r,n){return IR(r,{file:n,...e||t})}}function DR(e){if(e)throw e}var z4,LR;function ppe(){if(LR)return z4;LR=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},i=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var h=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!h&&!d)return!1;var m;for(m in c);return typeof m>"u"||e.call(c,m)},s=function(c,h){r&&h.name==="__proto__"?r(c,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):c[h.name]=h.newValue},o=function(c,h){if(h==="__proto__")if(e.call(c,h)){if(n)return n(c,h).value}else return;return c[h]};return z4=function u(){var c,h,d,m,v,y,b=arguments[0],E=1,_=arguments.length,T=!1;for(typeof b=="boolean"&&(T=b,b=arguments[1]||{},E=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});E<_;++E)if(c=arguments[E],c!=null)for(h in c)d=o(b,h),m=o(c,h),b!==m&&(T&&m&&(i(m)||(v=a(m)))?(v?(v=!1,y=d&&a(d)?d:[]):y=d&&i(d)?d:{},s(b,{name:h,newValue:u(T,y,m)})):typeof m<"u"&&s(b,{name:h,newValue:m}));return b},z4}var mpe=ppe();const $4=er(mpe);function w_(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);
vendor: 4,395 bytes, line 375
375return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function gpe(){const e=[],t={run:r,use:n};return t;function r(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(u,...c){const h=e[++i];let d=-1;if(u){s(u);return}for(;++d<a.length;)(c[d]===null||c[d]===void 0)&&(c[d]=a[d]);a=c,h?vpe(h,o)(...c):s(null,...c)}}function n(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function vpe(e,t){let r;return n;function n(...s){const o=e.length>s.length;let u;o&&s.push(a);try{u=e.apply(this,s)}catch(c){const h=c;if(o&&r)throw h;return a(h)}o||(u&&u.then&&typeof u.then=="function"?u.then(i,a):u instanceof Error?a(u):i(u))}function a(s,...o){r||(r=!0,t(s,...o))}function i(s){a(null,s)}}const is={basename:ype,dirname:bpe,extname:xpe,join:Epe,sep:"/"};function ype(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Vp(e);let r=0,n=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else n<0&&(i=!0,n=a+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else s<0&&(i=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(n=a):(o=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function bpe(e){if(Vp(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xpe(e){Vp(e);let t=e.length,r=-1,n=0,a=-1,i=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||r<0||i===0||i===1&&a===r-1&&a===n+1?"":e.slice(a,r)}function Epe(...e){let t=-1,r;for(;++t<e.length;)Vp(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":wpe(r)}function wpe(e){Vp(e);const t=e.codePointAt(0)===47;let r=_pe(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function _pe(e,t){let r="",n=0,a=-1,i=0,s=-1,o,u;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(u=r.lastIndexOf("/"),u!==r.length-1){u<0?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),a=s,i=0;continue}}else if(r.length>0){r="",n=0,a=s,i=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),n=s-a-1;a=s,i=0}else o===46&&i>-1?i++:i=-1}return r}function Vp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Spe={cwd:Tpe};function Tpe(){return"/"}function __(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ape(e){if(typeof e=="string")e=new URL(e);else if(!__(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Cpe(e)}function Cpe(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const F4=["history","path","basename","stem","extname","dirname"];class tV{constructor(t){let r;t?__(t)?r={path:t}:typeof t=="string"||Ope(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Spe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<F4.length;){const i=F4[n];i in r&&r[i]!==void 0&&r[i]!==null&&(this[i]=i==="history"?[...r[i]]:r[i])}let a;for(a in r)F4.includes(a)||(this[a]=r[a])}
vendor: 9,547 bytes, line 375
375get basename(){return typeof this.path=="string"?is.basename(this.path):void 0}set basename(t){H4(t,"basename"),U4(t,"basename"),this.path=is.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?is.dirname(this.path):void 0}set dirname(t){jR(this.basename,"dirname"),this.path=is.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?is.extname(this.path):void 0}set extname(t){if(U4(t,"extname"),jR(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=is.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){__(t)&&(t=Ape(t)),H4(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?is.basename(this.path,this.extname):void 0}set stem(t){H4(t,"stem"),U4(t,"stem"),this.path=is.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const a=this.message(t,r,n);throw a.fatal=!0,a}info(t,r,n){const a=this.message(t,r,n);return a.fatal=void 0,a}message(t,r,n){const a=new Vn(t,r,n);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function U4(e,t){if(e&&e.includes(is.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+is.sep+"`")}function H4(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function jR(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ope(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kpe=(function(e){const n=this.constructor.prototype,a=n[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,n),i}),Npe={}.hasOwnProperty;class TA extends kpe{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=gpe()}copy(){const t=new TA;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data($4(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(G4("data",this.frozen),this.namespace[t]=r,this):Npe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(G4("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const a=r.call(t,...n);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Ug(t),n=this.parser||this.Parser;return q4("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),q4("process",this.parser||this.Parser),V4("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(i,s){const o=Ug(t),u=n.parse(o);n.run(u,o,function(h,d,m){if(h||!d||!m)return c(h);const v=d,y=n.stringify(v,m);Ppe(y)?m.value=y:m.result=y,c(h,m)});function c(h,d){h||!d?s(h):i?i(d):r(void 0,d)}}}processSync(t){let r=!1,n;return this.freeze(),q4("processSync",this.parser||this.Parser),V4("processSync",this.compiler||this.Compiler),this.process(t,a),zR("processSync","process",r),n;function a(i,s){r=!0,DR(i),n=s}}run(t,r,n){BR(t),this.freeze();const a=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?i(void 0,n):new Promise(i);function i(s,o){const u=Ug(r);a.run(t,u,c);function c(h,d,m){const v=d||t;h?o(h):s?s(v):n(void 0,v,m)}}}runSync(t,r){let n=!1,a;return this.run(t,r,i),zR("runSync","run",n),a;function i(s,o){DR(s),a=o,n=!0}}stringify(t,r){this.freeze();const n=Ug(r),a=this.compiler||this.Compiler;return V4("stringify",a),BR(t),a(t,n)}use(t,...r){const n=this.attachers,a=this.namespace;if(G4("use",this.frozen),t!=null)if(typeof t=="function")u(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...d]=c;u(h,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(c.plugins),c.settings&&(a.settings=$4(!0,a.settings,c.settings))}function o(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const d=c[h];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,h){let d=-1,m=-1;for(;++d<n.length;)if(n[d][0]===c){m=d;break}if(m===-1)n.push([c,...h]);else if(h.length>0){let[v,...y]=h;const b=n[m][1];w_(b)&&w_(v)&&(v=$4(!0,b,v)),n[m]=[c,v,...y]}}}}const Rpe=new TA().freeze();function q4(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function V4(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function G4(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function BR(e){if(!w_(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zR(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ug(e){return Mpe(e)?e:new tV(e)}function Mpe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ppe(e){return typeof e=="string"||Ipe(e)}function Ipe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Dpe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$R=[],FR={allowDangerousHtml:!0},Lpe=/^(https?|ircs?|mailto|xmpp)$/i,jpe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Bpe(e){const t=zpe(e),r=$pe(e);return Fpe(t.runSync(t.parse(r),r),e)}function zpe(e){const t=e.rehypePlugins||$R,r=e.remarkPlugins||$R,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...FR}:FR;return Rpe().use(Ehe).use(r).use(hpe,n).use(t)}function $pe(e){const t=e.children||"",r=new tV;return typeof t=="string"&&(r.value=t),r}function Fpe(e,t){const r=t.allowedElements,n=t.allowElement,a=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||Upe;for(const h of jpe)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+Dpe+h.id,void 0);return Vu(e,c),a0e(e,{Fragment:x.Fragment,components:a,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function c(h,d,m){if(h.type==="raw"&&m&&typeof d=="number")return s?m.children.splice(d,1):m.children[d]={type:"text",value:h.value},d;if(h.type==="element"){let v;for(v in L4)if(Object.hasOwn(L4,v)&&Object.hasOwn(h.properties,v)){const y=h.properties[v],b=L4[v];(b===null||b.includes(h.tagName))&&(h.properties[v]=u(String(y||""),v,h))}}if(h.type==="element"){let v=r?!r.includes(h.tagName):i?i.includes(h.tagName):!1;if(!v&&n&&typeof d=="number"&&(v=!n(h,d,m)),v&&m&&typeof d=="number")return o&&h.children?m.children.splice(d,1,...h.children):m.children.splice(d,1),d}}}function Upe(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||r!==-1&&t>r||n!==-1&&t>n||Lpe.test(e.slice(0,t))?e:""}const UR=/[#.]/g;function Hpe(e,t){const r=e||"",n={};let a=0,i,s;for(;a<r.length;){UR.lastIndex=a;const o=UR.exec(r),u=r.slice(a,o?o.index:r.length);u&&(i?i==="#"?n.id=u:Array.isArray(n.className)?n.className.push(u):n.className=[u]:s=u,a+=u.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||t||"div",properties:n,children:[]}}function rV(e,t,r){const n=r?Wpe(r):void 0;function a(i,s,...o){let u;if(i==null){u={type:"root",children:[]};const c=s;o.unshift(c)}else{u=Hpe(i,t);const c=u.tagName.toLowerCase(),h=n?n.get(c):void 0;if(u.tagName=h||c,qpe(s))o.unshift(s);else for(const[d,m]of Object.entries(s))Vpe(e,u.properties,d,m)}for(const c of o)S_(u.children,c);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function qpe(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;
vendor: 14,867 bytes, lines 375-377
375if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const a=t[n];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Vpe(e,t,r,n){const a=Vy(e,r);let i;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;i=n}else typeof n=="boolean"?i=n:typeof n=="string"?a.spaceSeparated?i=uR(n):a.commaSeparated?i=aR(n):a.commaOrSpaceSeparated?i=uR(aR(n).join(" ")):i=HR(a,a.property,n):Array.isArray(n)?i=[...n]:i=a.property==="style"?Gpe(n):String(n);if(Array.isArray(i)){const s=[];for(const o of i)s.push(HR(a,a.property,o));i=s}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function S_(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)S_(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?S_(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function HR(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||$h(r)===$h(t)))return!0}return r}function Gpe(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function Wpe(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const Ype=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],nV=rV(Up,"div"),aV=rV(Il,"g",Ype),ds={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xpe(e,t){return iV(e,{})||{type:"root",children:[]}}function iV(e,t){const r=Kpe(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function Kpe(e,t){switch(e.nodeType){case 1:return eme(e,t);case 3:return Zpe(e);case 8:return Jpe(e);case 9:return qR(e,t);case 10:return Qpe();case 11:return qR(e,t);default:return}}function qR(e,t){return{type:"root",children:sV(e,t)}}function Qpe(){return{type:"doctype"}}function Zpe(e){return{type:"text",value:e.nodeValue||""}}function Jpe(e){return{type:"comment",value:e.nodeValue||""}}function eme(e,t){const r=e.namespaceURI,n=r===ds.svg?aV:nV,a=r===ds.html?e.tagName.toLowerCase():e.tagName,i=r===ds.html&&a==="template"?e.content:e,s=e.getAttributeNames(),o={};let u=-1;for(;++u<s.length;)o[s[u]]=e.getAttribute(s[u])||"";return n(a,o,sV(i,t))}function sV(e,t){const r=e.childNodes,n=[];let a=-1;for(;++a<r.length;){const i=iV(r[a],t);i!==void 0&&n.push(i)}return n}new DOMParser;function tme(e,t){const r=rme(e);return Xpe(r)}function rme(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const VR=(function(e,t,r){const n=qp(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]}),ac=(function(e){if(e==null)return ime;if(typeof e=="string")return ame(e);if(typeof e=="object")return nme(e);if(typeof e=="function")return AA(e);throw new Error("Expected function, string, or array as `test`")});function nme(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=ac(e[r]);return AA(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function ame(e){return AA(t);function t(r){return r.tagName===e}}function AA(e){return t;function t(r,n,a){return!!(sme(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function ime(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function sme(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const GR=/\n/g,WR=/[\t ]+/g,T_=ac("br"),YR=ac(pme),ome=ac("p"),XR=ac("tr"),lme=ac(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",hme,mme]),oV=ac(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function ume(e,t){const r=t||{},n="children"in e?e.children:[],a=oV(e),i=cV(e,{whitespace:r.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...uV(e,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<n.length;)s.push(...lV(n[o],e,{whitespace:i,breakBefore:o?void 0:a,breakAfter:o<n.length-1?T_(n[o+1]):a}));const u=[];let c;for(o=-1;++o<s.length;){const h=s[o];typeof h=="number"?c!==void 0&&h>c&&(c=h):h&&(c!==void 0&&c>-1&&u.push(`
376`.repeat(c)||" "),c=-1,u.push(h))}return u.join("")}function lV(e,t,r){return e.type==="element"?cme(e,t,r):e.type==="text"?r.whitespace==="normal"?uV(e,r):fme(e):[]}function cme(e,t,r){const n=cV(e,r),a=e.children||[];let i=-1,s=[];if(lme(e))return s;let o,u;for(T_(e)||XR(e)&&VR(t,e,XR)?u=`
377`:ome(e)?(o=2,u=2):oV(e)&&(o=1,u=1);++i<a.length;)s=s.concat(lV(a[i],e,{whitespace:n,breakBefore:i?void 0:o,breakAfter:i<a.length-1?T_(a[i+1]):u}));return YR(e)&&VR(t,e,YR)&&s.push("	"),o&&s.unshift(o),u&&s.push(u),s}function uV(e,t){const r=String(e.value),n=[],a=[];let i=0;for(;i<=r.length;){GR.lastIndex=i;const u=GR.exec(r),c=u&&"index"in u?u.index:r.length;n.push(dme(r.slice(i,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,c===r.length?t.breakAfter:!0)),i=c+1}let s=-1,o;for(;++s<n.length;)n[s].charCodeAt(n[s].length-1)===8203||s<n.length-1&&n[s+1].charCodeAt(0)===8203?(a.push(n[s]),o=void 0):n[s]?(typeof o=="number"&&a.push(o),a.push(n[s]),o=0):(s===0||s===n.length-1)&&a.push(0);return a}function fme(e){return[String(e.value)]}function dme(e,t,r){const n=[];let a=0,i;for(;a<e.length;){WR.lastIndex=a;const s=WR.exec(e);i=s?s.index:e.length,!a&&!i&&s&&!t&&n.push(""),a!==i&&n.push(e.slice(a,i)),a=s?i+s[0].length:i}return a!==i&&!r&&n.push(""),n.join(" ")}function cV(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function hme(e){return!!(e.properties||{}).hidden}function pme(e){return e.tagName==="td"||e.tagName==="th"}function mme(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class ba{constructor(t,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new ba(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class Va{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new Va(r,ba.range(this,t))}}class Le{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+t,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var u=o.slice(a,i).replace(/[^]/g,"$&̲"),c;a>15?c="…"+o.slice(a-15,a):c=o.slice(0,a);var h;i+15<o.length?h=o.slice(i,i+15)+"…":h=o.slice(i),n+=c+u+h}var d=new Error(n);return d.name="ParseError",d.__proto__=Le.prototype,d.position=a,a!=null&&i!=null&&(d.length=i-a),d.rawMessage=t,d}}Le.prototype.__proto__=Error.prototype;var gme=function(t,r){return t===void 0?r:t},vme=/([A-Z])/g,yme=function(t){return t.replace(vme,"-$1").toLowerCase()},bme={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},xme=/[&><"']/g;function Eme(e){return String(e).replace(xme,t=>bme[t])}var fV=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},wme=function(t){var r=fV(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},_me=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Sme=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},Wt={deflt:gme,escape:Eme,hyphenate:yme,getBaseElem:fV,isCharacterBox:wme,protocolFromUrl:Sme},yh={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Tme(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class CA{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in yh)if(yh.hasOwnProperty(r)){var n=yh[r];this[r]=t[r]!==void 0?n.processor?n.processor(t[r]):t[r]:Tme(n)}}reportNonstrict(t,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(t,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Le("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var a=this.strict;if(typeof a=="function")try{a=a(t,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=Wt.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class sl{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return os[Ame[this.id]]}sub(){return os[Cme[this.id]]}fracNum(){return os[Ome[this.id]]}fracDen(){return os[kme[this.id]]}cramp(){return os[Nme[this.id]]}text(){return os[Rme[this.id]]}isTight(){return this.size>=2}}var OA=0,Q1=1,Rf=2,lo=3,Uh=4,hi=5,Gf=6,ea=7,os=[new sl(OA,0,!1),new sl(Q1,0,!0),new sl(Rf,1,!1),new sl(lo,1,!0),new sl(Uh,2,!1),new sl(hi,2,!0),new sl(Gf,3,!1),new sl(ea,3,!0)],Ame=[Uh,hi,Uh,hi,Gf,ea,Gf,ea],Cme=[hi,hi,hi,hi,ea,ea,ea,ea],Ome=[Rf,lo,Uh,hi,Gf,ea,Gf,ea],kme=[lo,lo,hi,hi,ea,ea,ea,ea],Nme=[Q1,Q1,lo,lo,hi,hi,ea,ea],Rme=[OA,Q1,Rf,lo,Rf,lo,Rf,lo],rt={DISPLAY:os[OA],TEXT:os[Rf],SCRIPT:os[Uh],SCRIPTSCRIPT:os[Gf]},A_=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Mme(e){for(var t=0;t<A_.length;t++)for(var r=A_[t],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(e>=a[0]&&e<=a[1])return r.name}return null}var R1=[];
vendor: 4,413 bytes, lines 377-428
377A_.forEach(e=>e.blocks.forEach(t=>R1.push(...t)));function dV(e){for(var t=0;t<R1.length;t+=2)if(e>=R1[t]&&e<=R1[t+1])return!0;return!1}var uf=80,Pme=function(t,r){return"M95,"+(622+t+r)+`
378c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
379c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
380c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
381s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
382c69,-144,104.5,-217.7,106.5,-221
383l`+t/2.075+" -"+t+`
384c5.3,-9.3,12,-14,20,-14
385H400000v`+(40+t)+`H845.2724
386s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
387c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
388M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Ime=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
389c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
390c340,-704.7,510.7,-1060.3,512,-1067
391l`+t/2.084+" -"+t+`
392c4.7,-7.3,11,-11,19,-11
393H40000v`+(40+t)+`H1012.3
394s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
395c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
396s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
397c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
398M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Dme=function(t,r){return"M983 "+(10+t+r)+`
399l`+t/3.13+" -"+t+`
400c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
401H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
402s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
403c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
404c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
405c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
406c53.7,-170.3,84.5,-266.8,92.5,-289.5z
407M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Lme=function(t,r){return"M424,"+(2398+t+r)+`
408c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
409c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
410s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
411s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
412l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
413v`+(40+t)+`H1014.6
414s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
415c-2,6,-10,9,-24,9
416c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
417h400000v`+(40+t)+"h-400000z"},jme=function(t,r){return"M473,"+(2713+t+r)+`
418c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
419c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
420s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
421c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
422c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
423s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
424606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},Bme=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},zme=function(t,r,n){var a=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
425H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
426h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
427c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
428219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},$me=function(t,r,n){r=1e3*r;var a="";switch(t){case"sqrtMain":a=Pme(r,uf);break;case"sqrtSize1":a=Ime(r,uf);break;case"sqrtSize2":a=Dme(r,uf);break;case"sqrtSize3":a=Lme(r,uf);break;case"sqrtSize4":a=jme(r,uf);break;case"sqrtTall":a=zme(r,uf,n)}return a},Fme=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},KR
vendor: 15,381 bytes, lines 428-603
428={doubleleftarrow:`M262 157
429l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
430 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
431 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
432c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
433 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
434-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
435-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
436m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
437-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
438 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
439-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
440-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
441-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
442c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
443-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
444 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
445-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
446c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
447 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
448 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
449 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
450-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
451 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
452 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
453 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
454-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
455H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
456 435 0h399565z`,leftgroupunder:`M400000 262
457H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
458 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
459-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
460-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
461-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
462 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
463-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
464-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
465m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
466 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
467 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
468-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
469 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
470-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
471v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
472-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
473-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
474 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
475M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
476M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
477-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
478c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
479 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
480M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
481c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
482-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
483 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
484 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
485c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
486 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
487 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
488-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
489-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
490m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
49160.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
492-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
493m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
494c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
495-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
496m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
49785.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
498-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
499m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
500c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
501-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
502 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
503 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
504-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
505-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
506 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
507-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
508s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
509c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
510 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
511-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
512 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
513 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
514-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
515-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
516 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
517-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
518 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
519m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
520 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
521-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
522-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
523 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
524 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
525-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
526m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
527 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
528-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
529 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
530M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
531 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
532-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
533-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
534 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
535-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
536-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
537-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
538 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
539c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
540 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
541 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
542-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
543 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
544-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
545 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
546 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
547-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
548-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
549 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
550c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
551 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
552-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
553 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
554 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
555 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
556-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
557 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
558 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
559 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
5603.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
56110.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
562-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
563-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
564H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
565c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
566c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
567-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
568-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
569-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
570-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
571-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
572-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
573-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
574c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
575c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
576s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
577121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
578s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
579c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
580M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
581-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
58213.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
583-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
584-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
585-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
586151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
587c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
588c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
589c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
590c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
591M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
592c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
593-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
594c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
595M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
596c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
5971c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
598-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
599M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
600c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
601-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
602c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
603M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 3,206 bytes, lines 603-631
603Ume=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
604H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
605M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
606c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
607c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
608c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
609c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
610M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
611c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
612c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
613MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
614MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
615M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
616M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
617c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
618-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
619949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
620c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
621-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
622l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
623-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
62463,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
625c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
626c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
627c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
628c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
629c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
630l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
631-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let Gp=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}};var hs
vendor: 57,629 bytes, line 631
631={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},
vendor: 2,747 bytes, line 631
631Hg={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},QR={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function hV(e,t){hs[e]=t}function kA(e,t,r){if(!hs[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=hs[t][n];if(!a&&e[0]in QR&&(n=QR[e[0]].charCodeAt(0),a=hs[t][n]),!a&&r==="text"&&dV(n)&&(a=hs[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var W4={};function Hme(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!W4[t]){var r=W4[t]={cssEmPerMu:Hg.quad[t]/18};for(var n in Hg)Hg.hasOwnProperty(n)&&(r[n]=Hg[n][t])}return W4[t]}var qme=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ZR=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],JR=function(t,r){return r.size<2?t:qme[t-1][r.size-1]};class Js{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Js.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=ZR[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,ph
vendor: 8,240 bytes, line 631
631antom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return new Js(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:JR(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:ZR[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=JR(Js.BASESIZE,t);return this.size===r&&this.textSize===Js.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Js.BASESIZE?["sizing","reset-size"+this.size,"size"+Js.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Hme(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Js.BASESIZE=6;var C_={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Vme={ex:!0,em:!0,mu:!0},pV=function(t){return typeof t!="string"&&(t=t.unit),t in C_||t in Vme||t==="ex"},Nr=function(t,r){var n;if(t.unit in C_)n=C_[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,t.unit==="ex")n=a.fontMetrics().xHeight;else if(t.unit==="em")n=a.fontMetrics().quad;else throw new Le("Invalid unit: '"+t.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Fe=function(t){return+t.toFixed(4)+"em"},Ol=function(t){return t.filter(r=>r).join(" ")},mV=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}},gV=function(t){var r=document.createElement(t);r.className=Ol(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&r.setAttribute(a,this.attributes[a]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},Gme=/[\s"'>/=\x00-\x1f]/,vV=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Wt.escape(Ol(this.classes))+'"');var n="";for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=Wt.hyphenate(a)+":"+this.style[a]+";");n&&(r+=' style="'+Wt.escape(n)+'"');for(var i in this.attributes)if(this.attributes.hasOwnProperty(i)){if(Gme.test(i))throw new Le("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Wt.escape(this.attributes[i])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class Wp{constructor(t,r,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,mV.call(this,t,n,a),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return gV.call(this,"span")}toMarkup(){return vV.call(this,"span")}}class NA{constructor(t,r,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,mV.call(this,r,a),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return gV.call(this,"a")}toMarkup(){return vV.call(this,"a")}}class Wme{constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t='<img src="'+Wt.escape(this.src)+'"'+(' alt="'+Wt.escape(this.alt)+'"'),r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=Wt.hyphenate(n)+":"+this.style[n]+";");return r&&(t+=' style="'+Wt.escape(r)+'"'),t+="'/>",t}}var Yme={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class bi{constructor(t,r,n,a,i,s,o,u){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=s||0,this.classes=o||[],this.style=u||{},this.maxFontSize=0;var c=Mme(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Yme[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Fe(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Ol(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=Wt.escape(Ol(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=Wt.hyphenate(a)+":"+this.style[a]+";");n&&(t=!0,r+=' style="'+Wt.escape(n)+'"');var i=Wt.escape(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class yo{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+Wt.escape(this.attributes[r])+'"');t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class kl{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",KR[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Wt.escape(this.alternate)+'"/>':'<path d="'+Wt.escape(KR[this.pathName])+'"/>'}}class O_{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+Wt.escape(this.attributes[r])+'"');return t+="/>",t}}function eM(e){if(e instanceof bi)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Xme(e){if(e instanceof Wp)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Kme={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Qme={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},vr={math:{},text:{}};function R(e,t,r,n,a,i){vr[e][a]={font:t,group:r,replace:n},i&&n&&(vr[e][n]=vr[e][a])}
631var I="math",Re="text",B="main",ae="ams",Cr="accent-token",Ve="bin",na="close",O0="inner",tt="mathord",nn="op-token",Wa="open",Qy="punct",ie="rel",Co="spacing",ce="textord";R(I,B,ie,"≡","\\equiv",!0);R(I,B,ie,"≺","\\prec",!0);R(I,B,ie,"≻","\\succ",!0);R(I,B,ie,"∼","\\sim",!0);R(I,B,ie,"⊥","\\perp");R(I,B,ie,"⪯","\\preceq",!0);R(I,B,ie,"⪰","\\succeq",!0);R(I,B,ie,"≃","\\simeq",!0);R(I,B,ie,"∣","\\mid",!0);R(I,B,ie,"≪","\\ll",!0);R(I,B,ie,"≫","\\gg",!0);R(I,B,ie,"≍","\\asymp",!0);R(I,B,ie,"∥","\\parallel");R(I,B,ie,"⋈","\\bowtie",!0);R(I,B,ie,"⌣","\\smile",!0);R(I,B,ie,"⊑","\\sqsubseteq",!0);R(I,B,ie,"⊒","\\sqsupseteq",!0);R(I,B,ie,"≐","\\doteq",!0);R(I,B,ie,"⌢","\\frown",!0);R(I,B,ie,"∋","\\ni",!0);R(I,B,ie,"∝","\\propto",!0);R(I,B,ie,"⊢","\\vdash",!0);R(I,B,ie,"⊣","\\dashv",!0);R(I,B,ie,"∋","\\owns");R(I,B,Qy,".","\\ldotp");R(I,B,Qy,"⋅","\\cdotp");R(I,B,ce,"#","\\#");R(Re,B,ce,"#","\\#");R(I,B,ce,"&","\\&");R(Re,B,ce,"&","\\&");R(I,B,ce,"ℵ","\\aleph",!0);R(I,B,ce,"∀","\\forall",!0);R(I,B,ce,"ℏ","\\hbar",!0);R(I,B,ce,"∃","\\exists",!0);R(I,B,ce,"∇","\\nabla",!0);R(I,B,ce,"♭","\\flat",!0);R(I,B,ce,"ℓ","\\ell",!0);R(I,B,ce,"♮","\\natural",!0);R(I,B,ce,"♣","\\clubsuit",!0);R(I,B,ce,"℘","\\wp",!0);R(I,B,ce,"♯","\\sharp",!0);R(I,B,ce,"♢","\\diamondsuit",!0);R(I,B,ce,"ℜ","\\Re",!0);R(I,B,ce,"♡","\\heartsuit",!0);R(I,B,ce,"ℑ","\\Im",!0);R(I,B,ce,"♠","\\spadesuit",!0);R(I,B,ce,"§","\\S",!0);R(Re,B,ce,"§","\\S");R(I,B,ce,"¶","\\P",!0);R(Re,B,ce,"¶","\\P");R(I,B,ce,"†","\\dag");R(Re,B,ce,"†","\\dag");R(Re,B,ce,"†","\\textdagger");R(I,B,ce,"‡","\\ddag");R(Re,B,ce,"‡","\\ddag");R(Re,B,ce,"‡","\\textdaggerdbl");R(I,B,na,"⎱","\\rmoustache",!0);R(I,B,Wa,"⎰","\\lmoustache",!0);R(I,B,na,"⟯","\\rgroup",!0);R(I,B,Wa,"⟮","\\lgroup",!0);R(I,B,Ve,"∓","\\mp",!0);R(I,B,Ve,"⊖","\\ominus",!0);R(I,B,Ve,"⊎","\\uplus",!0);R(I,B,Ve,"⊓","\\sqcap",!0);R(I,B,Ve,"∗","\\ast");R(I,B,Ve,"⊔","\\sqcup",!0);R(I,B,Ve,"◯","\\bigcirc",!0);R(I,B,Ve,"∙","\\bullet",!0);R(I,B,Ve,"‡","\\ddagger");R(I,B,Ve,"≀","\\wr",!0);R(I,B,Ve,"⨿","\\amalg");R(I,B,Ve,"&","\\And");R(I,B,ie,"⟵","\\longleftarrow",!0);R(I,B,ie,"⇐","\\Leftarrow",!0);R(I,B,ie,"⟸","\\Longleftarrow",!0);R(I,B,ie,"⟶","\\longrightarrow",!0);R(I,B,ie,"⇒","\\Rightarrow",!0);R(I,B,ie,"⟹","\\Longrightarrow",!0);R(I,B,ie,"↔","\\leftrightarrow",!0);R(I,B,ie,"⟷","\\longleftrightarrow",!0);R(I,B,ie,"⇔","\\Leftrightarrow",!0);R(I,B,ie,"⟺","\\Longleftrightarrow",!0);R(I,B,ie,"↦","\\mapsto",!0);R(I,B,ie,"⟼","\\longmapsto",!0);R(I,B,ie,"↗","\\nearrow",!0);R(I,B,ie,"↩","\\hookleftarrow",!0);R(I,B,ie,"↪","\\hookrightarrow",!0);R(I,B,ie,"↘","\\searrow",!0);R(I,B,ie,"↼","\\leftharpoonup",!0);R(I,B,ie,"⇀","\\rightharpoonup",!0);R(I,B,ie,"↙","\\swarrow",!0);R(I,B,ie,"↽","\\leftharpoondown",!0);R(I,B,ie,"⇁","\\rightharpoondown",!0);R(I,B,ie,"↖","\\nwarrow",!0);R(I,B,ie,"⇌","\\rightleftharpoons",!0);R(I,ae,ie,"≮","\\nless",!0);R(I,ae,ie,"","\\@nleqslant");R(I,ae,ie,"","\\@nleqq");R(I,ae,ie,"⪇","\\lneq",!0);R(I,ae,ie,"≨","\\lneqq",!0);R(I,ae,ie,"","\\@lvertneqq");R(I,ae,ie,"⋦","\\lnsim",!0);R(I,ae,ie,"⪉","\\lnapprox",!0);R(I,ae,ie,"⊀","\\nprec",!0);R(I,ae,ie,"⋠","\\npreceq",!0);R(I,ae,ie,"⋨","\\precnsim",!0);R(I,ae,ie,"⪹","\\precnapprox",!0);R(I,ae,ie,"≁","\\nsim",!0);R(I,ae,ie,"","\\@nshortmid");R(I,ae,ie,"∤","\\nmid",!0);R(I,ae,ie,"⊬","\\nvdash",!0);R(I,ae,ie,"⊭","\\nvDash",!0);R(I,ae,ie,"⋪","\\ntriangleleft");R(I,ae,ie,"⋬","\\ntrianglelefteq",!0);R(I,ae,ie,"⊊","\\subsetneq",!0);R(I,ae,ie,"","\\@varsubsetneq");R(I,ae,ie,"⫋","\\subsetneqq",!0);R(I,ae,ie,"","\\@varsubsetneqq");R(I,ae,ie,"≯","\\ngtr",!0);R(I,ae,ie,"","\\@ngeqslant");R(I,ae,ie,"","\\@ngeqq");R(I,ae,ie,"⪈","\\gneq",!0);R(I,ae,ie,"≩","\\gneqq",!0);R(I,ae,ie,"","\\@gvertneqq");R(I,ae,ie,"⋧","\\gnsim",!0);R(I,ae,ie,"⪊","\\gnapprox",!0);R(I,ae,ie,"⊁","\\nsucc",!0);R(I,ae,ie,"⋡","\\nsucceq",!0);R(I,ae,ie,"⋩","\\succnsim",!0);R(I,ae,ie,"⪺","\\succnapprox",!0);R(I,ae,ie,"≆","\\ncong",!0);R(I,ae,ie,"","\\@nshortparallel");R(I,ae,ie,"∦","\\nparallel",!0);R(I,ae,ie,"⊯","\\nVDash",!0);R(I,ae,ie,"⋫","\\ntriangleright");R(I,ae,ie,"⋭","\\ntrianglerighteq",!0);R(I,ae,ie,"","\\@nsupseteqq");R(I,ae,ie,"⊋","\\supsetneq",!0);R(I,ae,ie,"","\\@varsupsetneq");R(I,ae,ie,"⫌","\\supsetneqq",!0);R(I,ae,ie,"","\\@varsupsetneqq");R(I,ae,ie,"⊮","\\nVdash",!0);R(I,ae,ie,"⪵","\\precneqq",!0);R(I,ae,ie,"⪶","\\succneqq",!0);
631R(I,ae,ie,"","\\@nsubseteqq");R(I,ae,Ve,"⊴","\\unlhd");R(I,ae,Ve,"⊵","\\unrhd");R(I,ae,ie,"↚","\\nleftarrow",!0);R(I,ae,ie,"↛","\\nrightarrow",!0);R(I,ae,ie,"⇍","\\nLeftarrow",!0);R(I,ae,ie,"⇏","\\nRightarrow",!0);R(I,ae,ie,"↮","\\nleftrightarrow",!0);R(I,ae,ie,"⇎","\\nLeftrightarrow",!0);R(I,ae,ie,"△","\\vartriangle");R(I,ae,ce,"ℏ","\\hslash");R(I,ae,ce,"▽","\\triangledown");R(I,ae,ce,"◊","\\lozenge");R(I,ae,ce,"Ⓢ","\\circledS");R(I,ae,ce,"®","\\circledR");R(Re,ae,ce,"®","\\circledR");R(I,ae,ce,"∡","\\measuredangle",!0);R(I,ae,ce,"∄","\\nexists");R(I,ae,ce,"℧","\\mho");R(I,ae,ce,"Ⅎ","\\Finv",!0);R(I,ae,ce,"⅁","\\Game",!0);R(I,ae,ce,"‵","\\backprime");R(I,ae,ce,"▲","\\blacktriangle");R(I,ae,ce,"▼","\\blacktriangledown");R(I,ae,ce,"■","\\blacksquare");R(I,ae,ce,"⧫","\\blacklozenge");R(I,ae,ce,"★","\\bigstar");R(I,ae,ce,"∢","\\sphericalangle",!0);R(I,ae,ce,"∁","\\complement",!0);R(I,ae,ce,"ð","\\eth",!0);R(Re,B,ce,"ð","ð");R(I,ae,ce,"╱","\\diagup");R(I,ae,ce,"╲","\\diagdown");R(I,ae,ce,"□","\\square");R(I,ae,ce,"□","\\Box");R(I,ae,ce,"◊","\\Diamond");R(I,ae,ce,"¥","\\yen",!0);R(Re,ae,ce,"¥","\\yen",!0);R(I,ae,ce,"✓","\\checkmark",!0);R(Re,ae,ce,"✓","\\checkmark");R(I,ae,ce,"ℶ","\\beth",!0);R(I,ae,ce,"ℸ","\\daleth",!0);R(I,ae,ce,"ℷ","\\gimel",!0);R(I,ae,ce,"ϝ","\\digamma",!0);R(I,ae,ce,"ϰ","\\varkappa");R(I,ae,Wa,"┌","\\@ulcorner",!0);R(I,ae,na,"┐","\\@urcorner",!0);R(I,ae,Wa,"└","\\@llcorner",!0);R(I,ae,na,"┘","\\@lrcorner",!0);R(I,ae,ie,"≦","\\leqq",!0);R(I,ae,ie,"⩽","\\leqslant",!0);R(I,ae,ie,"⪕","\\eqslantless",!0);R(I,ae,ie,"≲","\\lesssim",!0);R(I,ae,ie,"⪅","\\lessapprox",!0);R(I,ae,ie,"≊","\\approxeq",!0);R(I,ae,Ve,"⋖","\\lessdot");R(I,ae,ie,"⋘","\\lll",!0);R(I,ae,ie,"≶","\\lessgtr",!0);R(I,ae,ie,"⋚","\\lesseqgtr",!0);R(I,ae,ie,"⪋","\\lesseqqgtr",!0);R(I,ae,ie,"≑","\\doteqdot");R(I,ae,ie,"≓","\\risingdotseq",!0);R(I,ae,ie,"≒","\\fallingdotseq",!0);R(I,ae,ie,"∽","\\backsim",!0);R(I,ae,ie,"⋍","\\backsimeq",!0);R(I,ae,ie,"⫅","\\subseteqq",!0);R(I,ae,ie,"⋐","\\Subset",!0);R(I,ae,ie,"⊏","\\sqsubset",!0);R(I,ae,ie,"≼","\\preccurlyeq",!0);R(I,ae,ie,"⋞","\\curlyeqprec",!0);R(I,ae,ie,"≾","\\precsim",!0);R(I,ae,ie,"⪷","\\precapprox",!0);R(I,ae,ie,"⊲","\\vartriangleleft");R(I,ae,ie,"⊴","\\trianglelefteq");R(I,ae,ie,"⊨","\\vDash",!0);R(I,ae,ie,"⊪","\\Vvdash",!0);R(I,ae,ie,"⌣","\\smallsmile");R(I,ae,ie,"⌢","\\smallfrown");R(I,ae,ie,"≏","\\bumpeq",!0);R(I,ae,ie,"≎","\\Bumpeq",!0);R(I,ae,ie,"≧","\\geqq",!0);R(I,ae,ie,"⩾","\\geqslant",!0);R(I,ae,ie,"⪖","\\eqslantgtr",!0);R(I,ae,ie,"≳","\\gtrsim",!0);R(I,ae,ie,"⪆","\\gtrapprox",!0);R(I,ae,Ve,"⋗","\\gtrdot");R(I,ae,ie,"⋙","\\ggg",!0);R(I,ae,ie,"≷","\\gtrless",!0);R(I,ae,ie,"⋛","\\gtreqless",!0);R(I,ae,ie,"⪌","\\gtreqqless",!0);R(I,ae,ie,"≖","\\eqcirc",!0);R(I,ae,ie,"≗","\\circeq",!0);R(I,ae,ie,"≜","\\triangleq",!0);R(I,ae,ie,"∼","\\thicksim");R(I,ae,ie,"≈","\\thickapprox");R(I,ae,ie,"⫆","\\supseteqq",!0);R(I,ae,ie,"⋑","\\Supset",!0);R(I,ae,ie,"⊐","\\sqsupset",!0);R(I,ae,ie,"≽","\\succcurlyeq",!0);R(I,ae,ie,"⋟","\\curlyeqsucc",!0);R(I,ae,ie,"≿","\\succsim",!0);R(I,ae,ie,"⪸","\\succapprox",!0);R(I,ae,ie,"⊳","\\vartriangleright");R(I,ae,ie,"⊵","\\trianglerighteq");R(I,ae,ie,"⊩","\\Vdash",!0);R(I,ae,ie,"∣","\\shortmid");R(I,ae,ie,"∥","\\shortparallel");R(I,ae,ie,"≬","\\between",!0);R(I,ae,ie,"⋔","\\pitchfork",!0);R(I,ae,ie,"∝","\\varpropto");R(I,ae,ie,"◀","\\blacktriangleleft");R(I,ae,ie,"∴","\\therefore",!0);R(I,ae,ie,"∍","\\backepsilon");R(I,ae,ie,"▶","\\blacktriangleright");R(I,ae,ie,"∵","\\because",!0);R(I,ae,ie,"⋘","\\llless");R(I,ae,ie,"⋙","\\gggtr");R(I,ae,Ve,"⊲","\\lhd");R(I,ae,Ve,"⊳","\\rhd");R(I,ae,ie,"≂","\\eqsim",!0);R(I,B,ie,"⋈","\\Join");R(I,ae,ie,"≑","\\Doteq",!0);R(I,ae,Ve,"∔","\\dotplus",!0);R(I,ae,Ve,"∖","\\smallsetminus");R(I,ae,Ve,"⋒","\\Cap",!0);R(I,ae,Ve,"⋓","\\Cup",!0);R(I,ae,Ve,"⩞","\\doublebarwedge",!0);R(I,ae,Ve,"⊟","\\boxminus",!0);R(I,ae,Ve,"⊞","\\boxplus",!0);
631R(I,ae,Ve,"⋇","\\divideontimes",!0);R(I,ae,Ve,"⋉","\\ltimes",!0);R(I,ae,Ve,"⋊","\\rtimes",!0);R(I,ae,Ve,"⋋","\\leftthreetimes",!0);R(I,ae,Ve,"⋌","\\rightthreetimes",!0);R(I,ae,Ve,"⋏","\\curlywedge",!0);R(I,ae,Ve,"⋎","\\curlyvee",!0);R(I,ae,Ve,"⊝","\\circleddash",!0);R(I,ae,Ve,"⊛","\\circledast",!0);R(I,ae,Ve,"⋅","\\centerdot");R(I,ae,Ve,"⊺","\\intercal",!0);R(I,ae,Ve,"⋒","\\doublecap");R(I,ae,Ve,"⋓","\\doublecup");R(I,ae,Ve,"⊠","\\boxtimes",!0);R(I,ae,ie,"⇢","\\dashrightarrow",!0);R(I,ae,ie,"⇠","\\dashleftarrow",!0);R(I,ae,ie,"⇇","\\leftleftarrows",!0);R(I,ae,ie,"⇆","\\leftrightarrows",!0);R(I,ae,ie,"⇚","\\Lleftarrow",!0);R(I,ae,ie,"↞","\\twoheadleftarrow",!0);R(I,ae,ie,"↢","\\leftarrowtail",!0);R(I,ae,ie,"↫","\\looparrowleft",!0);R(I,ae,ie,"⇋","\\leftrightharpoons",!0);R(I,ae,ie,"↶","\\curvearrowleft",!0);R(I,ae,ie,"↺","\\circlearrowleft",!0);R(I,ae,ie,"↰","\\Lsh",!0);R(I,ae,ie,"⇈","\\upuparrows",!0);R(I,ae,ie,"↿","\\upharpoonleft",!0);R(I,ae,ie,"⇃","\\downharpoonleft",!0);R(I,B,ie,"⊶","\\origof",!0);R(I,B,ie,"⊷","\\imageof",!0);R(I,ae,ie,"⊸","\\multimap",!0);R(I,ae,ie,"↭","\\leftrightsquigarrow",!0);R(I,ae,ie,"⇉","\\rightrightarrows",!0);R(I,ae,ie,"⇄","\\rightleftarrows",!0);R(I,ae,ie,"↠","\\twoheadrightarrow",!0);R(I,ae,ie,"↣","\\rightarrowtail",!0);R(I,ae,ie,"↬","\\looparrowright",!0);R(I,ae,ie,"↷","\\curvearrowright",!0);R(I,ae,ie,"↻","\\circlearrowright",!0);R(I,ae,ie,"↱","\\Rsh",!0);R(I,ae,ie,"⇊","\\downdownarrows",!0);R(I,ae,ie,"↾","\\upharpoonright",!0);R(I,ae,ie,"⇂","\\downharpoonright",!0);R(I,ae,ie,"⇝","\\rightsquigarrow",!0);R(I,ae,ie,"⇝","\\leadsto");R(I,ae,ie,"⇛","\\Rrightarrow",!0);R(I,ae,ie,"↾","\\restriction");R(I,B,ce,"‘","`");R(I,B,ce,"$","\\$");R(Re,B,ce,"$","\\$");R(Re,B,ce,"$","\\textdollar");R(I,B,ce,"%","\\%");R(Re,B,ce,"%","\\%");R(I,B,ce,"_","\\_");R(Re,B,ce,"_","\\_");R(Re,B,ce,"_","\\textunderscore");R(I,B,ce,"∠","\\angle",!0);R(I,B,ce,"∞","\\infty",!0);R(I,B,ce,"′","\\prime");R(I,B,ce,"△","\\triangle");R(I,B,ce,"Γ","\\Gamma",!0);R(I,B,ce,"Δ","\\Delta",!0);R(I,B,ce,"Θ","\\Theta",!0);R(I,B,ce,"Λ","\\Lambda",!0);R(I,B,ce,"Ξ","\\Xi",!0);R(I,B,ce,"Π","\\Pi",!0);R(I,B,ce,"Σ","\\Sigma",!0);R(I,B,ce,"Υ","\\Upsilon",!0);R(I,B,ce,"Φ","\\Phi",!0);R(I,B,ce,"Ψ","\\Psi",!0);R(I,B,ce,"Ω","\\Omega",!0);R(I,B,ce,"A","Α");R(I,B,ce,"B","Β");R(I,B,ce,"E","Ε");R(I,B,ce,"Z","Ζ");R(I,B,ce,"H","Η");R(I,B,ce,"I","Ι");R(I,B,ce,"K","Κ");R(I,B,ce,"M","Μ");R(I,B,ce,"N","Ν");R(I,B,ce,"O","Ο");R(I,B,ce,"P","Ρ");R(I,B,ce,"T","Τ");R(I,B,ce,"X","Χ");R(I,B,ce,"¬","\\neg",!0);R(I,B,ce,"¬","\\lnot");R(I,B,ce,"⊤","\\top");R(I,B,ce,"⊥","\\bot");R(I,B,ce,"∅","\\emptyset");R(I,ae,ce,"∅","\\varnothing");R(I,B,tt,"α","\\alpha",!0);R(I,B,tt,"β","\\beta",!0);R(I,B,tt,"γ","\\gamma",!0);R(I,B,tt,"δ","\\delta",!0);R(I,B,tt,"ϵ","\\epsilon",!0);R(I,B,tt,"ζ","\\zeta",!0);R(I,B,tt,"η","\\eta",!0);R(I,B,tt,"θ","\\theta",!0);R(I,B,tt,"ι","\\iota",!0);R(I,B,tt,"κ","\\kappa",!0);R(I,B,tt,"λ","\\lambda",!0);R(I,B,tt,"μ","\\mu",!0);R(I,B,tt,"ν","\\nu",!0);R(I,B,tt,"ξ","\\xi",!0);R(I,B,tt,"ο","\\omicron",!0);R(I,B,tt,"π","\\pi",!0);R(I,B,tt,"ρ","\\rho",!0);R(I,B,tt,"σ","\\sigma",!0);R(I,B,tt,"τ","\\tau",!0);R(I,B,tt,"υ","\\upsilon",!0);R(I,B,tt,"ϕ","\\phi",!0);R(I,B,tt,"χ","\\chi",!0);R(I,B,tt,"ψ","\\psi",!0);R(I,B,tt,"ω","\\omega",!0);R(I,B,tt,"ε","\\varepsilon",!0);R(I,B,tt,"ϑ","\\vartheta",!0);R(I,B,tt,"ϖ","\\varpi",!0);R(I,B,tt,"ϱ","\\varrho",!0);R(I,B,tt,"ς","\\varsigma",!0);R(I,B,tt,"φ","\\varphi",!0);R(I,B,Ve,"∗","*",!0);R(I,B,Ve,"+","+");R(I,B,Ve,"−","-",!0);R(I,B,Ve,"⋅","\\cdot",!0);R(I,B,Ve,"∘","\\circ",!0);R(I,B,Ve,"÷","\\div",!0);R(I,B,Ve,"±","\\pm",!0);R(I,B,Ve,"×","\\times",!0);R(I,B,Ve,"∩","\\cap",!0);R(I,B,Ve,"∪","\\cup",!0);R(I,B,Ve,"∖","\\setminus",!0);R(I,B,Ve,"∧","\\land");R(I,B,Ve,"∨","\\lor");R(I,B,Ve,"∧","\\wedge",!0);R(I,B,Ve,"∨","\\vee",!0);R(I,B,ce,"√","\\surd");R(I,B,Wa,"⟨","\\langle",!0);R(I,B,Wa,"∣","\\lvert");R(I,B,Wa,"∥","\\lVert");R(I,B,na,"?","?");R(I,B,na,"!","!");R(I,B,na,"⟩","\\rangle",!0);R(I,B,na,"∣","\\rvert");R(I,B,na,"∥","\\rVert");R(I,B,ie,"=","=");R(I,B,ie,":",":");R(I,B,ie,"≈","\\approx",!0);R(I,B,ie,"≅","\\cong",!0);R(I,B,ie,"≥","\\ge");R(I,B,ie,"≥","\\geq",!0);R(I,B,ie,"←","\\gets");R(I,B,ie,">","\\gt",!0);R(I,B,ie,"∈","\\in",!0);R(I,B,ie,"","\\@not");R(I,B,ie,"⊂","\\subset",!0);R(I,B,ie,"⊃","\\supset",!0);R(I,B,ie,"⊆","\\subseteq",!0);R(I,B,ie,"⊇","\\supseteq",!0);R(I,ae,ie,"⊈","\\nsubseteq",!0);R(I,ae,ie,"⊉","\\nsupseteq",!0);R(I,B,ie,"⊨","\\models");R(I,B,ie,"←","\\leftarrow",!0);R(I,B,ie,"≤","\\le");R(I,B,ie,"≤","\\leq",!0);R(I,B,ie,"<","\\lt",!0);R(I,B,ie,"→","\\rightarrow",!0);R(I,B,ie,"→","\\to");R(I,ae,ie,"≱","\\ngeq",!0);R(I,ae,ie,"≰","\\nleq",!0);
vendor: 9,780 bytes, line 631
631R(I,B,Co," ","\\ ");R(I,B,Co," ","\\space");R(I,B,Co," ","\\nobreakspace");R(Re,B,Co," ","\\ ");R(Re,B,Co," "," ");R(Re,B,Co," ","\\space");R(Re,B,Co," ","\\nobreakspace");R(I,B,Co,null,"\\nobreak");R(I,B,Co,null,"\\allowbreak");R(I,B,Qy,",",",");R(I,B,Qy,";",";");R(I,ae,Ve,"⊼","\\barwedge",!0);R(I,ae,Ve,"⊻","\\veebar",!0);R(I,B,Ve,"⊙","\\odot",!0);R(I,B,Ve,"⊕","\\oplus",!0);R(I,B,Ve,"⊗","\\otimes",!0);R(I,B,ce,"∂","\\partial",!0);R(I,B,Ve,"⊘","\\oslash",!0);R(I,ae,Ve,"⊚","\\circledcirc",!0);R(I,ae,Ve,"⊡","\\boxdot",!0);R(I,B,Ve,"△","\\bigtriangleup");R(I,B,Ve,"▽","\\bigtriangledown");R(I,B,Ve,"†","\\dagger");R(I,B,Ve,"⋄","\\diamond");R(I,B,Ve,"⋆","\\star");R(I,B,Ve,"◃","\\triangleleft");R(I,B,Ve,"▹","\\triangleright");R(I,B,Wa,"{","\\{");R(Re,B,ce,"{","\\{");R(Re,B,ce,"{","\\textbraceleft");R(I,B,na,"}","\\}");R(Re,B,ce,"}","\\}");R(Re,B,ce,"}","\\textbraceright");R(I,B,Wa,"{","\\lbrace");R(I,B,na,"}","\\rbrace");R(I,B,Wa,"[","\\lbrack",!0);R(Re,B,ce,"[","\\lbrack",!0);R(I,B,na,"]","\\rbrack",!0);R(Re,B,ce,"]","\\rbrack",!0);R(I,B,Wa,"(","\\lparen",!0);R(I,B,na,")","\\rparen",!0);R(Re,B,ce,"<","\\textless",!0);R(Re,B,ce,">","\\textgreater",!0);R(I,B,Wa,"⌊","\\lfloor",!0);R(I,B,na,"⌋","\\rfloor",!0);R(I,B,Wa,"⌈","\\lceil",!0);R(I,B,na,"⌉","\\rceil",!0);R(I,B,ce,"\\","\\backslash");R(I,B,ce,"∣","|");R(I,B,ce,"∣","\\vert");R(Re,B,ce,"|","\\textbar",!0);R(I,B,ce,"∥","\\|");R(I,B,ce,"∥","\\Vert");R(Re,B,ce,"∥","\\textbardbl");R(Re,B,ce,"~","\\textasciitilde");R(Re,B,ce,"\\","\\textbackslash");R(Re,B,ce,"^","\\textasciicircum");R(I,B,ie,"↑","\\uparrow",!0);R(I,B,ie,"⇑","\\Uparrow",!0);R(I,B,ie,"↓","\\downarrow",!0);R(I,B,ie,"⇓","\\Downarrow",!0);R(I,B,ie,"↕","\\updownarrow",!0);R(I,B,ie,"⇕","\\Updownarrow",!0);R(I,B,nn,"∐","\\coprod");R(I,B,nn,"⋁","\\bigvee");R(I,B,nn,"⋀","\\bigwedge");R(I,B,nn,"⨄","\\biguplus");R(I,B,nn,"⋂","\\bigcap");R(I,B,nn,"⋃","\\bigcup");R(I,B,nn,"∫","\\int");R(I,B,nn,"∫","\\intop");R(I,B,nn,"∬","\\iint");R(I,B,nn,"∭","\\iiint");R(I,B,nn,"∏","\\prod");R(I,B,nn,"∑","\\sum");R(I,B,nn,"⨂","\\bigotimes");R(I,B,nn,"⨁","\\bigoplus");R(I,B,nn,"⨀","\\bigodot");R(I,B,nn,"∮","\\oint");R(I,B,nn,"∯","\\oiint");R(I,B,nn,"∰","\\oiiint");R(I,B,nn,"⨆","\\bigsqcup");R(I,B,nn,"∫","\\smallint");R(Re,B,O0,"…","\\textellipsis");R(I,B,O0,"…","\\mathellipsis");R(Re,B,O0,"…","\\ldots",!0);R(I,B,O0,"…","\\ldots",!0);R(I,B,O0,"⋯","\\@cdots",!0);R(I,B,O0,"⋱","\\ddots",!0);R(I,B,ce,"⋮","\\varvdots");R(Re,B,ce,"⋮","\\varvdots");R(I,B,Cr,"ˊ","\\acute");R(I,B,Cr,"ˋ","\\grave");R(I,B,Cr,"¨","\\ddot");R(I,B,Cr,"~","\\tilde");R(I,B,Cr,"ˉ","\\bar");R(I,B,Cr,"˘","\\breve");R(I,B,Cr,"ˇ","\\check");R(I,B,Cr,"^","\\hat");R(I,B,Cr,"⃗","\\vec");R(I,B,Cr,"˙","\\dot");R(I,B,Cr,"˚","\\mathring");R(I,B,tt,"","\\@imath");R(I,B,tt,"","\\@jmath");R(I,B,ce,"ı","ı");R(I,B,ce,"ȷ","ȷ");R(Re,B,ce,"ı","\\i",!0);R(Re,B,ce,"ȷ","\\j",!0);R(Re,B,ce,"ß","\\ss",!0);R(Re,B,ce,"æ","\\ae",!0);R(Re,B,ce,"œ","\\oe",!0);R(Re,B,ce,"ø","\\o",!0);R(Re,B,ce,"Æ","\\AE",!0);R(Re,B,ce,"Œ","\\OE",!0);R(Re,B,ce,"Ø","\\O",!0);R(Re,B,Cr,"ˊ","\\'");R(Re,B,Cr,"ˋ","\\`");R(Re,B,Cr,"ˆ","\\^");R(Re,B,Cr,"˜","\\~");R(Re,B,Cr,"ˉ","\\=");R(Re,B,Cr,"˘","\\u");R(Re,B,Cr,"˙","\\.");R(Re,B,Cr,"¸","\\c");R(Re,B,Cr,"˚","\\r");R(Re,B,Cr,"ˇ","\\v");R(Re,B,Cr,"¨",'\\"');R(Re,B,Cr,"˝","\\H");R(Re,B,Cr,"◯","\\textcircled");var yV={"--":!0,"---":!0,"``":!0,"''":!0};R(Re,B,ce,"–","--",!0);R(Re,B,ce,"–","\\textendash");R(Re,B,ce,"—","---",!0);R(Re,B,ce,"—","\\textemdash");R(Re,B,ce,"‘","`",!0);R(Re,B,ce,"‘","\\textquoteleft");R(Re,B,ce,"’","'",!0);R(Re,B,ce,"’","\\textquoteright");R(Re,B,ce,"“","``",!0);R(Re,B,ce,"“","\\textquotedblleft");R(Re,B,ce,"”","''",!0);R(Re,B,ce,"”","\\textquotedblright");R(I,B,ce,"°","\\degree",!0);R(Re,B,ce,"°","\\degree");R(Re,B,ce,"°","\\textdegree",!0);R(I,B,ce,"£","\\pounds");R(I,B,ce,"£","\\mathsterling",!0);R(Re,B,ce,"£","\\pounds");R(Re,B,ce,"£","\\textsterling",!0);R(I,ae,ce,"✠","\\maltese");R(Re,ae,ce,"✠","\\maltese");var tM='0123456789/@."';for(var Y4=0;Y4<tM.length;Y4++){var rM=tM.charAt(Y4);R(I,B,ce,rM,rM)}var nM='0123456789!@*()-=+";:?/.,';for(var X4=0;X4<nM.length;X4++){var aM=nM.charAt(X4);R(Re,B,ce,aM,aM)}var Z1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var K4=0;K4<Z1.length;K4++){var qg=Z1.charAt(K4);R(I,B,tt,qg,qg),R(Re,B,ce,qg,qg)}R(I,ae,ce,"C","ℂ");R(Re,ae,ce,"C","ℂ");R(I,ae,ce,"H","ℍ");R(Re,ae,ce,"H","ℍ");R(I,ae,ce,"N","ℕ");R(Re,ae,ce,"N","ℕ");R(I,ae,ce,"P","ℙ");R(Re,ae,ce,"P","ℙ");R(I,ae,ce,"Q","ℚ");R(Re,ae,ce,"Q","ℚ");R(I,ae,ce,"R","ℝ");R(Re,ae,ce,"R","ℝ");R(I,ae,ce,"Z","ℤ");R(Re,ae,ce,"Z","ℤ");R(I,B,tt,"h","ℎ");R(Re,B,tt,"h","ℎ");var st="";for(var Kn=0;Kn<Z1.length;Kn++){var Pr=Z1.charAt(Kn);st=String.fromCharCode(55349,56320+Kn),R(I,B,tt,Pr,st),R(Re,B,ce,Pr,st),st=String.fromCharCode(55349,56372+Kn),R(I,B,tt,Pr,st),R(Re,B,ce,Pr,st),st=String.fromCharCode(55349,56424+Kn),R(I,B,tt,Pr,st),R(Re,B,ce,Pr,st),st=String.fromCharCode(55349,56580+Kn),R(I,B,tt,Pr,st),R(Re,B,ce,Pr,st),st=String.fromCharCode(55349,56684+Kn),R(I,B,tt,Pr,st),R(Re,B,ce,Pr,st),st=String.fromCharCode(55349,56736+Kn),R(I,B,tt,Pr,st),R(Re,B,ce,Pr,st),st=String.fromCharCode(55349,56788+Kn),R(I,B,tt,Pr,st),R(Re,B,ce,Pr,st),st=String.fromCharCode(55349,56840+Kn),R(I,B,tt,Pr,st),R(Re,B,ce,Pr,st),st=String.fromCharCode(55349,56944+Kn),R(I,B,tt,Pr,st),R(Re,B,ce,Pr,st),Kn<26&&(st=String.fromCharCode(55349,56632+Kn),R(I,B,tt,Pr,st),R(Re,B,ce,Pr,st),st=String.fromCharCode(55349,56476+Kn),R(I,B,tt,Pr,st),R(Re,B,ce,Pr,st))}st="𝕜";R(I,B,tt,"k",st);R(Re,B,ce,"k",st);for(var lu=0;lu<10;lu++){var ol=lu.toString();st=String.fromCharCode(55349,57294+lu),R(I,B,tt,ol,st),R(Re,B,ce,ol,st),st=String.fromCharCode(55349,57314+lu),R(I,B,tt,ol,st),R(Re,B,ce,ol,st),st=String.fromCharCode(55349,57324+lu),R(I,B,tt,ol,st),R(Re,B,ce,ol,st),st=String.fromCharCode(55349,57334+lu),R(I,B,tt,ol,st),R(Re,B,ce,ol,st)}var k_="ÐÞþ";for(var Q4=0;Q4<k_.length;Q4++){var Vg=k_.charAt(Q4);R(I,B,tt,Vg,Vg),R(Re,B,ce,Vg,Vg)}var Gg=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],iM=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Zme=function(t,r){var n=t.charCodeAt(0),a=t.charCodeAt(1),i=(n-55296)*1024+(a-56320)+65536,s=r==="math"?0:1;if(119808<=i&&i<120484){var o=Math.floor((i-119808)/26);return[Gg[o][2],Gg[o][s]]}else if(120782<=i&&i<=120831){var u=Math.floor((i-120782)/10);return[iM[u][2],iM[u][s]]}else{if(i===120485||i===120486)return[Gg[0][2],Gg[0][s]];if(120486<i&&i<120782)return["",""];throw new Le("Unsupported character: "+t)}},Zy=function(t,r,n){return vr[n][t]&&vr[n][t].replace&&(t=vr[n][t].replace),{value:t,metrics:kA(t,r,n)}},Ri=function(t,r,n,a,i){var s=Zy(t,r,n),o=s.metrics;t=s.value;var u;if(o){var c=o.italic;(n==="text"||a&&a.font==="mathit")&&(c=0),u=new bi(t,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),u=new bi(t,0,0,0,0,0,i);if(a){u.maxFontSize=a.sizeMultiplier,a.style.isTight()&&u.classes.push("mtight");var h=a.getColor();h&&(u.style.color=h)}return u},Jme=function(t,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Zy(t,"Main-Bold",r).metrics?Ri(t,"Main-Bold",r,n,a.concat(["mathbf"])):t==="\\"||vr[r][t].font==="main"?Ri(t,"Main-Regular",r,n,a):Ri(t,"AMS-Regular",r,n,a.concat(["amsrm"]))},ege=function(t,r,n,a,i){return i!=="textord"&&Zy(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},tge=function(t,r,n){var a=t.mode,i=t.text,s=["mord"],o=a==="math"||a==="text"&&r.font,u=o?r.font:r.fontFamily,c="",h="";if(i.charCodeAt(0)===55349&&([c,h]=Zme(i,a)),c.length>0)return Ri(i,c,a,r,s.concat(h));if(u){var d,m;if(u==="boldsymbol"){var v=ege(i,a,r,s,n);d=v.fontName,m=[v.fontClass]}else o?(d=EV[u].fontName,m=[u]):(d=Wg(u,r.fontWeight,r.fontShape),m=[u,r.fontWeight,r.fontShape]);if(Zy(i,d,a).metrics)return Ri(i,d,a,r,s.concat(m));if(yV.hasOwnProperty(i)&&d.slice(0,10)==="Typewriter"){for(var y=[],b=0;b<i.length;b++)y.push(Ri(i[b],d,a,r,s.concat(m)));return xV(y)}}if(n==="mathord")return Ri(i,"Math-Italic",a,r,s.concat(["mathnormal"]));if(n==="textord"){var E=vr[a][i]&&vr[a][i].font;if(E==="ams"){var _=Wg("amsrm",r.fontWeight,r.fontShape);return Ri(i,_,a,r,s.concat("amsrm",r.fontWeight,r.fontShape))}else if(E==="main"||!E){var T=Wg("textrm",r.fontWeight,r.fontShape);return Ri(i,T,a,r,s.concat(r.fontWeight,r.fontShape))}else{var C=Wg(E,r.fontWeight,r.fontShape);return Ri(i,C,a,r,s.concat(C,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},rge=(e,t)=>
vendor: 4,414 bytes, line 631
631{if(Ol(e.classes)!==Ol(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},nge=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof bi&&n instanceof bi&&rge(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},RA=function(t){for(var r=0,n=0,a=0,i=0;i<t.children.length;i++){var s=t.children[i];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=a},va=function(t,r,n,a){var i=new Wp(t,r,n,a);return RA(i),i},bV=(e,t,r,n)=>new Wp(e,t,r,n),age=function(t,r,n){var a=va([t],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=Fe(a.height),a.maxFontSize=1,a},ige=function(t,r,n,a){var i=new NA(t,r,n,a);return RA(i),i},xV=function(t){var r=new Gp(t);return RA(r),r},sge=function(t,r){return t instanceof Gp?va([],[t],r):t},oge=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s<r.length;s++){var o=-r[s].shift-i-r[s].elem.depth,u=o-(r[s-1].elem.height+r[s-1].elem.depth);i=i+o,n.push({type:"kern",size:u}),n.push(r[s])}return{children:n,depth:a}}var c;if(t.positionType==="top"){for(var h=t.positionData,d=0;d<t.children.length;d++){var m=t.children[d];h-=m.type==="kern"?m.size:m.elem.height+m.elem.depth}c=h}else if(t.positionType==="bottom")c=-t.positionData;else{var v=t.children[0];if(v.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")c=-v.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")c=-v.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:c}},lge=function(t,r){for(var{children:n,depth:a}=oge(t),i=0,s=0;s<n.length;s++){var o=n[s];if(o.type==="elem"){var u=o.elem;i=Math.max(i,u.maxFontSize,u.height)}}i+=2;var c=va(["pstrut"],[]);c.style.height=Fe(i);for(var h=[],d=a,m=a,v=a,y=0;y<n.length;y++){var b=n[y];if(b.type==="kern")v+=b.size;else{var E=b.elem,_=b.wrapperClasses||[],T=b.wrapperStyle||{},C=va(_,[c,E],void 0,T);C.style.top=Fe(-i-v-E.depth),b.marginLeft&&(C.style.marginLeft=b.marginLeft),b.marginRight&&(C.style.marginRight=b.marginRight),h.push(C),v+=E.height+E.depth}d=Math.min(d,v),m=Math.max(m,v)}var P=va(["vlist"],h);P.style.height=Fe(m);var O;if(d<0){var k=va([],[]),M=va(["vlist"],[k]);M.style.height=Fe(-d);var j=va(["vlist-s"],[new bi("​")]);O=[va(["vlist-r"],[P,j]),va(["vlist-r"],[M])]}else O=[va(["vlist-r"],[P])];var z=va(["vlist-t"],O);return O.length===2&&z.classes.push("vlist-t2"),z.height=m,z.depth=-d,z},uge=(e,t)=>{var r=va(["mspace"],[],t),n=Nr(e,t);return r.style.marginRight=Fe(n),r},Wg=function(t,r,n){var a="";switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}var i;return r==="textbf"&&n==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",a+"-"+i},EV={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},wV={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},cge=function(t,r){var[n,a,i]=wV[t],s=new kl(n),o=new yo([s],{width:Fe(a),height:Fe(i),style:"width:"+Fe(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),u=bV(["overlay"],[o],r);return u.height=i,u.style.height=Fe(i),u.style.width=Fe(a),u}
vendor: 17,009 bytes, lines 631-632
631,ge={fontMap:EV,makeSymbol:Ri,mathsym:Jme,makeSpan:va,makeSvgSpan:bV,makeLineSpan:age,makeAnchor:ige,makeFragment:xV,wrapFragment:sge,makeVList:lge,makeOrd:tge,makeGlue:uge,staticSvg:cge,svgData:wV,tryCombineChars:nge},kr={number:3,unit:"mu"},uu={number:4,unit:"mu"},Xs={number:5,unit:"mu"},fge={mord:{mop:kr,mbin:uu,mrel:Xs,minner:kr},mop:{mord:kr,mop:kr,mrel:Xs,minner:kr},mbin:{mord:uu,mop:uu,mopen:uu,minner:uu},mrel:{mord:Xs,mop:Xs,mopen:Xs,minner:Xs},mopen:{},mclose:{mop:kr,mbin:uu,mrel:Xs,minner:kr},mpunct:{mord:kr,mop:kr,mrel:Xs,mopen:kr,mclose:kr,mpunct:kr,minner:kr},minner:{mord:kr,mop:kr,mbin:uu,mrel:Xs,mopen:kr,mpunct:kr,minner:kr}},dge={mord:{mop:kr},mop:{mord:kr,mop:kr},mbin:{},mrel:{},mopen:{},mclose:{mop:kr},mpunct:{},minner:{mop:kr}},_V={},J1={},ev={};function He(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=e,o={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},u=0;u<r.length;++u)_V[r[u]]=o;t&&(i&&(J1[t]=i),s&&(ev[t]=s))}function ic(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;He({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var tv=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},qr=function(t){return t.type==="ordgroup"?t.body:[t]},bo=ge.makeSpan,hge=["leftmost","mbin","mopen","mrel","mop","mpunct"],pge=["rightmost","mrel","mclose","mpunct"],mge={display:rt.DISPLAY,text:rt.TEXT,script:rt.SCRIPT,scriptscript:rt.SCRIPTSCRIPT},gge={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},dn=function(t,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<t.length;s++){var o=Ht(t[s],r);if(o instanceof Gp){var u=o.children;i.push(...u)}else i.push(o)}if(ge.tryCombineChars(i),!n)return i;var c=r;if(t.length===1){var h=t[0];h.type==="sizing"?c=r.havingSize(h.size):h.type==="styling"&&(c=r.havingStyle(mge[h.style]))}var d=bo([a[0]||"leftmost"],[],r),m=bo([a[1]||"rightmost"],[],r),v=n==="root";return sM(i,(y,b)=>{var E=b.classes[0],_=y.classes[0];E==="mbin"&&pge.includes(_)?b.classes[0]="mord":_==="mbin"&&hge.includes(E)&&(y.classes[0]="mord")},{node:d},m,v),sM(i,(y,b)=>{var E=N_(b),_=N_(y),T=E&&_?y.hasClass("mtight")?dge[E][_]:fge[E][_]:null;if(T)return ge.makeGlue(T,c)},{node:d},m,v),i},sM=function e(t,r,n,a,i){a&&t.push(a);for(var s=0;s<t.length;s++){var o=t[s],u=SV(o);if(u){e(u.children,r,n,null,i);continue}var c=!o.hasClass("mspace");if(c){var h=r(o,n.node);h&&(n.insertAfter?n.insertAfter(h):(t.unshift(h),s++))}c?n.node=o:i&&o.hasClass("newline")&&(n.node=bo(["leftmost"])),n.insertAfter=(d=>m=>{t.splice(d+1,0,m),s++})(s)}a&&t.pop()},SV=function(t){return t instanceof Gp||t instanceof NA||t instanceof Wp&&t.hasClass("enclosing")?t:null},vge=function e(t,r){var n=SV(t);if(n){var a=n.children;if(a.length){if(r==="right")return e(a[a.length-1],"right");if(r==="left")return e(a[0],"left")}}return t},N_=function(t,r){return t?(r&&(t=vge(t,r)),gge[t.classes[0]]||null):null},Hh=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return bo(r.concat(n))},Ht=function(t,r,n){if(!t)return bo();if(J1[t.type]){var a=J1[t.type](t,r);if(n&&r.size!==n.size){a=bo(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new Le("Got group of unknown type: '"+t.type+"'")};function Yg(e,t){var r=bo(["base"],e,t),n=bo(["strut"]);return n.style.height=Fe(r.height+r.depth),r.depth&&(n.style.verticalAlign=Fe(-r.depth)),r.children.unshift(n),r}function R_(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=dn(e,t,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var u=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(u=!0);u||(i.push(Yg(s,t)),s=[])}else n[o].hasClass("newline")&&(s.pop(),s.length>0&&(i.push(Yg(s,t)),s=[]),i.push(n[o]));s.length>0&&i.push(Yg(s,t));var c;r?(c=Yg(dn(r,t,!0)),c.classes=["tag"],i.push(c)):a&&i.push(a);var h=bo(["katex-html"],i);if(h.setAttribute("aria-hidden","true"),c){var d=c.children[0];d.style.height=Fe(h.height+h.depth),h.depth&&(d.style.verticalAlign=Fe(-h.depth))}return h}function TV(e){return new Gp(e)}class Fa{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=Ol(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof ps&&this.children[n+1]instanceof ps){for(var a=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof ps;)a+=this.children[++n].toText();t.appendChild(new ps(a).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=Wt.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Wt.escape(Ol(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class ps{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Wt.escape(this.toText())}toText(){return this.text}}class yge{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Fe(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Fe(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var De={MathNode:Fa,TextNode:ps,SpaceNode:yge,newDocumentFragment:TV},xi=function(t,r,n){return vr[r][t]&&vr[r][t].replace&&t.charCodeAt(0)!==55349&&!(yV.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=vr[r][t].replace),new De.TextNode(t)},MA=function(t){return t.length===1?t[0]:new De.MathNode("mrow",t)},PA=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var a=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var i=t.text;if(["\\imath","\\jmath"].includes(i))return null;vr[a][i]&&vr[a][i].replace&&(i=vr[a][i].replace);var s=ge.fontMap[n].fontName;return kA(i,s,a)?ge.fontMap[n].variant:null};function Z4(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof ps&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof ps&&r.text===","}else return!1}var Sa=function(t,r,n){if(t.length===1){var a=hr(t[0],r);return n&&a instanceof Fa&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o<t.length;o++){var u=hr(t[o],r);if(u instanceof Fa&&s instanceof Fa){if(u.type==="mtext"&&s.type==="mtext"&&u.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...u.children);continue}else if(u.type==="mn"&&s.type==="mn"){s.children.push(...u.children);continue}else if(Z4(u)&&s.type==="mn"){s.children.push(...u.children);continue}else if(u.type==="mn"&&Z4(s))u.children=[...s.children,...u.children],i.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(s.type==="mn"||Z4(s))){var c=u.children[0];c instanceof Fa&&c.type==="mn"&&(c.children=[...s.children,...c.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var h=s.children[0];if(h instanceof ps&&h.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var d=u.children[0];d instanceof ps&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),i.pop())}}}i.push(u),s=u}return i},Nl=function(t,r,n){return MA(Sa(t,r,n))},hr=function(t,r){if(!t)return new De.MathNode("mrow");if(ev[t.type]){var n=ev[t.type](t,r);return n}else throw new Le("Got group of unknown type: '"+t.type+"'")};function oM(e,t,r,n,a){var i=Sa(e,r),s;i.length===1&&i[0]instanceof Fa&&["mrow","mtable"].includes(i[0].type)?s=i[0]:s=new De.MathNode("mrow",i);var o=new De.MathNode("annotation",[new De.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new De.MathNode("semantics",[s,o]),c=new De.MathNode("math",[u]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block");var h=a?"katex":"katex-mathml";return ge.makeSpan([h],[c])}var AV=function(t){return new Js({style:t.displayMode?rt.DISPLAY:rt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},CV=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=ge.makeSpan(n,[t])}return t},bge=function(t,r,n){var a=AV(n),i;if(n.output==="mathml")return oM(t,r,a,n.displayMode,!0);if(n.output==="html"){var s=R_(t,a);i=ge.makeSpan(["katex"],[s])}else{var o=oM(t,r,a,n.displayMode,!1),u=R_(t,a);i=ge.makeSpan(["katex"],[o,u])}return CV(i,n)},xge=function(t,r,n){var a=AV(n),i=R_(t,a),s=ge.makeSpan(["katex"],[i]);return CV(s,n)},Ege={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},wge=function(t){var r=new De.MathNode("mo",[new De.TextNode(Ege[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},_ge={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Sge=function(t){return t.type==="ordgroup"?t.body.length:1},Tge=function(t,r){function n(){var o=4e5,u=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(u)){var c=t,h=Sge(c.base),d,m,v;if(h>5)u==="widehat"||u==="widecheck"?(d=420,o=2364,v=.42,m=u+"4"):(d=312,o=2340,v=.34,m="tilde4");else{var y=[1,1,2,2,3,3][h];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][y],d=[0,239,300,360,420][y],v=[0,.24,.3,.3,.36,.42][y],m=u+y):(o=[0,600,1033,2339,2340][y],d=[0,260,286,306,312][y],v=[0,.26,.286,.3,.306,.34][y],m="tilde"+y)}var b=new kl(m),E=new yo([b],{width:"100%",height:Fe(v),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:ge.makeSvgSpan([],[E],r),minWidth:0,height:v}}else{var _=[],T=_ge[u],[C,P,O]=T,k=O/1e3,M=C.length,j,z;if(M===1){var $=T[3];j=["hide-tail"],z=[$]}else if(M===2)j=["halfarrow-left","halfarrow-right"],z=["xMinYMin","xMaxYMin"];else if(M===3)j=["brace-left","brace-center","brace-right"],z=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
632                    `+M+" children.");for(var F=0;F<M;F++){var q=new kl(C[F]),Q=new yo([q],{width:"400em",height:Fe(k),viewBox:"0 0 "+o+" "+O,preserveAspectRatio:z[F]+" slice"}),X=ge.makeSvgSpan([j[F]],[Q],r);if(M===1)return{span:X,minWidth:P,height:k};X.style.height=Fe(k),_.push(X)}return{span:ge.makeSpan(["stretchy"],_,r),minWidth:P,height:k}}}var{span:a,minWidth:i,height:s}=n();return a.height=s,a.style.height=Fe(s),i>0&&(a.style.minWidth=Fe(i)),a},Age=function(t,r,n,a,i){var s,o=t.height+t.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=ge.makeSpan(["stretchy",r],[],i),r==="fbox"){var u=i.color&&i.getColor();u&&(s.style.borderColor=u)}}else{var c=[];/^[bx]cancel$/.test(r)&&c.push(new O_({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&c.push(new O_({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new yo(c,{width:"100%",height:Fe(o)});s=ge.makeSvgSpan([],[h],i)}return s.height=o,s.style.height=Fe(o),s},xo={encloseSpan:Age,mathMLnode:wge,svgSpan:Tge};function xt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function IA(e){var t=Jy(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Jy(e){return e&&(e.type==="atom"||Qme.hasOwnProperty(e.type))?e:null}var DA=(e,t)=>{var r,n,a;e&&e.type==="supsub"?(n=xt(e.base,"accent"),r=n.base,e.base=r,a=Xme(Ht(e,t)),e.base=n):(n=xt(e,"accent"),r=n.base);var i=Ht(r,t.havingCrampedStyle()),s=n.isShifty&&Wt.isCharacterBox(r),o=0;if(s){var u=Wt.getBaseElem(r),c=Ht(u,t.havingCrampedStyle());o=eM(c).skew}
vendor: 15,639 bytes, line 632
632var h=n.label==="\\c",d=h?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),m;if(n.isStretchy)m=xo.svgSpan(n,t),m=ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Fe(2*o)+")",marginLeft:Fe(2*o)}:void 0}]},t);else{var v,y;n.label==="\\vec"?(v=ge.staticSvg("vec",t),y=ge.svgData.vec[1]):(v=ge.makeOrd({mode:n.mode,text:n.label},t,"textord"),v=eM(v),v.italic=0,y=v.width,h&&(d+=v.depth)),m=ge.makeSpan(["accent-body"],[v]);var b=n.label==="\\textcircled";b&&(m.classes.push("accent-full"),d=i.height);var E=o;b||(E-=y/2),m.style.left=Fe(E),n.label==="\\textcircled"&&(m.style.top=".2em"),m=ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-d},{type:"elem",elem:m}]},t)}var _=ge.makeSpan(["mord","accent"],[m],t);return a?(a.children[0]=_,a.height=Math.max(_.height,a.height),a.classes[0]="mord",a):_},OV=(e,t)=>{var r=e.isStretchy?xo.mathMLnode(e.label):new De.MathNode("mo",[xi(e.label,e.mode)]),n=new De.MathNode("mover",[hr(e.base,t),r]);return n.setAttribute("accent","true"),n},Cge=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));He({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=tv(t[0]),n=!Cge.test(e.funcName),a=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:DA,mathmlBuilder:OV});He({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:DA,mathmlBuilder:OV});He({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(e,t)=>{var r=Ht(e.base,t),n=xo.svgSpan(e,t),a=e.label==="\\utilde"?.12:0,i=ge.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},t);return ge.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=xo.mathMLnode(e.label),n=new De.MathNode("munder",[hr(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Xg=e=>{var t=new De.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};He({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:a}=e;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),a=ge.wrapFragment(Ht(e.body,n,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;e.below&&(n=t.havingStyle(r.sub()),s=ge.wrapFragment(Ht(e.below,n,t),t),s.classes.push(i+"-arrow-pad"));var o=xo.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,c=-t.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(c-=a.depth);var h;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;h=ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:c},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:d}]},t)}else h=ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:c},{type:"elem",elem:o,shift:u}]},t);return h.children[0].children[0].children[1].classes.push("svg-align"),ge.makeSpan(["mrel","x-arrow"],[h],t)},mathmlBuilder(e,t){var r=xo.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var a=Xg(hr(e.body,t));if(e.below){var i=Xg(hr(e.below,t));n=new De.MathNode("munderover",[r,i,a])}else n=new De.MathNode("mover",[r,a])}else if(e.below){var s=Xg(hr(e.below,t));n=new De.MathNode("munder",[r,s])}else n=Xg(),n=new De.MathNode("mover",[r,n]);return n}});var Oge=ge.makeSpan;function kV(e,t){var r=dn(e.body,t,!0);return Oge([e.mclass],r,t)}function NV(e,t){var r,n=Sa(e.body,t);return e.mclass==="minner"?r=new De.MathNode("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new De.MathNode("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new De.MathNode("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}He({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:qr(a),isCharacterBox:Wt.isCharacterBox(a)}},htmlBuilder:kV,mathmlBuilder:NV});var eb=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};He({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:eb(t[0]),body:qr(t[1]),isCharacterBox:Wt.isCharacterBox(t[1])}}});He({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,a=t[1],i=t[0],s;n!=="\\stackrel"?s=eb(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:qr(a)},u={type:"supsub",mode:i.mode,base:o,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:s,body:[u],isCharacterBox:Wt.isCharacterBox(u)}},htmlBuilder:kV,mathmlBuilder:NV});He({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:eb(t[0]),body:qr(t[0])}},htmlBuilder(e,t){var r=dn(e.body,t,!0),n=ge.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Sa(e.body,t),n=new De.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var kge={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},lM=()=>({type:"styling",body:[],mode:"math",style:"display"}),uM=e=>e.type==="textord"&&e.text==="@",Nge=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Rge(e,t,r){var n=kge[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[a,s,o]};return r.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Mge(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Le("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],a=[n],i=0;i<t.length;i++){for(var s=t[i],o=lM(),u=0;u<s.length;u++)if(!uM(s[u]))o.body.push(s[u]);else{n.push(o),u+=1;var c=IA(s[u]).text,h=new Array(2);if(h[0]={type:"ordgroup",mode:"math",body:[]},h[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(c)>-1))if("<>AV".indexOf(c)>-1)for(var d=0;d<2;d++){for(var m=!0,v=u+1;v<s.length;v++){if(Nge(s[v],c)){m=!1,u=v;break}if(uM(s[v]))throw new Le("Missing a "+c+" character to complete a CD arrow.",s[v]);h[d].body.push(s[v])}if(m)throw new Le("Missing a "+c+" character to complete a CD arrow.",s[u])}else throw new Le('Expected one of "<>AV=|." after @',s[u]);var y=Rge(c,h,e),b={type:"styling",body:[y],mode:"math",style:"display"};n.push(b),o=lM()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var E=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:E,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}He({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=ge.wrapFragment(Ht(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Fe(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new De.MathNode("mrow",[hr(e.label,t)]);return r=new De.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new De.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});He({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=ge.wrapFragment(Ht(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new De.MathNode("mrow",[hr(e.fragment,t)])}});He({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=xt(t[0],"ordgroup"),a=n.body,i="",s=0;s<a.length;s++){var o=xt(a[s],"textord");i+=o.text}var u=parseInt(i),c;if(isNaN(u))throw new Le("\\@char has non-numeric argument "+i);if(u<0||u>=1114111)throw new Le("\\@char with invalid code point "+i);return u<=65535?c=String.fromCharCode(u):(u-=65536,c=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:r.mode,text:c}}});var RV=(e,t)=>{var r=dn(e.body,t.withColor(e.color),!1);return ge.makeFragment(r)},MV=(e,t)=>{var r=Sa(e.body,t.withColor(e.color)),n=new De.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};He({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=xt(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:qr(a)}},htmlBuilder:RV,mathmlBuilder:MV});He({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,a=xt(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:RV,mathmlBuilder:MV});He({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&xt(a,"size").value}},htmlBuilder(e,t){var r=ge.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Fe(Nr(e.size,t)))),r},mathmlBuilder(e,t){var r=new De.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Fe(Nr(e.size,t)))),r}});var M_={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},PV=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Le("Expected a control sequence",e);return t},Pge=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},IV=(e,t,r,n)=>{var a=e.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};He({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(M_[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=M_[n.text]),xt(t.parseFunction(),"internal");throw new Le("Invalid token after macro prefix",n)}});He({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Le("Expected a control sequence",n);for(var i=0,s,o=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[i].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Le('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new Le('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new Le("Expected a macro definition");o[i].push(n.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(r==="\\edef"||r==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(a,{tokens:u,numArgs:i,delimiters:o},r===M_[r]),{type:"internal",mode:t.mode}}});He({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=PV(t.gullet.popToken());t.gullet.consumeSpaces();var a=Pge(t);return IV(t,n,a,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});He({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=PV(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return IV(t,n,i,r==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var sh=function(t,r,n){var a=vr.math[t]&&vr.math[t].replace,i=kA(a||t,r,n);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return i},LA=function(t,r,n,a){var i=n.havingBaseStyle(r),s=ge.makeSpan(a.concat(i.sizingClasses(n)),[t],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s}
vendor: 8,011 bytes, line 632
632,DV=function(t,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Fe(i),t.height-=i,t.depth+=i},Ige=function(t,r,n,a,i,s){var o=ge.makeSymbol(t,"Main-Regular",i,a),u=LA(o,r,a,s);return n&&DV(u,a,r),u},Dge=function(t,r,n,a){return ge.makeSymbol(t,"Size"+r+"-Regular",n,a)},LV=function(t,r,n,a,i,s){var o=Dge(t,r,i,a),u=LA(ge.makeSpan(["delimsizing","size"+r],[o],a),rt.TEXT,a,s);return n&&DV(u,a,rt.TEXT),u},J4=function(t,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=ge.makeSpan(["delimsizinginner",a],[ge.makeSpan([],[ge.makeSymbol(t,r,n)])]);return{type:"elem",elem:i}},e3=function(t,r,n){var a=hs["Size4-Regular"][t.charCodeAt(0)]?hs["Size4-Regular"][t.charCodeAt(0)][4]:hs["Size1-Regular"][t.charCodeAt(0)][4],i=new kl("inner",Fme(t,Math.round(1e3*r))),s=new yo([i],{width:Fe(a),height:Fe(r),style:"width:"+Fe(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=ge.makeSvgSpan([],[s],n);return o.height=r,o.style.height=Fe(r),o.style.width=Fe(a),{type:"elem",elem:o}},P_=.008,Kg={type:"kern",size:-1*P_},Lge=["|","\\lvert","\\rvert","\\vert"],jge=["\\|","\\lVert","\\rVert","\\Vert"],jV=function(t,r,n,a,i,s){var o,u,c,h,d="",m=0;o=c=h=t,u=null;var v="Size1-Regular";t==="\\uparrow"?c=h="⏐":t==="\\Uparrow"?c=h="‖":t==="\\downarrow"?o=c="⏐":t==="\\Downarrow"?o=c="‖":t==="\\updownarrow"?(o="\\uparrow",c="⏐",h="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",c="‖",h="\\Downarrow"):Lge.includes(t)?(c="∣",d="vert",m=333):jge.includes(t)?(c="∥",d="doublevert",m=556):t==="["||t==="\\lbrack"?(o="⎡",c="⎢",h="⎣",v="Size4-Regular",d="lbrack",m=667):t==="]"||t==="\\rbrack"?(o="⎤",c="⎥",h="⎦",v="Size4-Regular",d="rbrack",m=667):t==="\\lfloor"||t==="⌊"?(c=o="⎢",h="⎣",v="Size4-Regular",d="lfloor",m=667):t==="\\lceil"||t==="⌈"?(o="⎡",c=h="⎢",v="Size4-Regular",d="lceil",m=667):t==="\\rfloor"||t==="⌋"?(c=o="⎥",h="⎦",v="Size4-Regular",d="rfloor",m=667):t==="\\rceil"||t==="⌉"?(o="⎤",c=h="⎥",v="Size4-Regular",d="rceil",m=667):t==="("||t==="\\lparen"?(o="⎛",c="⎜",h="⎝",v="Size4-Regular",d="lparen",m=875):t===")"||t==="\\rparen"?(o="⎞",c="⎟",h="⎠",v="Size4-Regular",d="rparen",m=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",h="⎩",c="⎪",v="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",h="⎭",c="⎪",v="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",h="⎩",c="⎪",v="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",h="⎭",c="⎪",v="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",h="⎭",c="⎪",v="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",h="⎩",c="⎪",v="Size4-Regular");var y=sh(o,v,i),b=y.height+y.depth,E=sh(c,v,i),_=E.height+E.depth,T=sh(h,v,i),C=T.height+T.depth,P=0,O=1;if(u!==null){var k=sh(u,v,i);P=k.height+k.depth,O=2}var M=b+C+P,j=Math.max(0,Math.ceil((r-M)/(O*_))),z=M+j*O*_,$=a.fontMetrics().axisHeight;n&&($*=a.sizeMultiplier);var F=z/2-$,q=[];if(d.length>0){var Q=z-b-C,X=Math.round(z*1e3),te=Ume(d,Math.round(Q*1e3)),U=new kl(d,te),J=(m/1e3).toFixed(3)+"em",ee=(X/1e3).toFixed(3)+"em",de=new yo([U],{width:J,height:ee,viewBox:"0 0 "+m+" "+X}),G=ge.makeSvgSpan([],[de],a);G.height=X/1e3,G.style.width=J,G.style.height=ee,q.push({type:"elem",elem:G})}else{if(q.push(J4(h,v,i)),q.push(Kg),u===null){var Y=z-b-C+2*P_;q.push(e3(c,Y,a))}else{var W=(z-b-C-P)/2+2*P_;q.push(e3(c,W,a)),q.push(Kg),q.push(J4(u,v,i)),q.push(Kg),q.push(e3(c,W,a))}q.push(Kg),q.push(J4(o,v,i))}var L=a.havingBaseStyle(rt.TEXT),le=ge.makeVList({positionType:"bottom",positionData:F,children:q},L);return LA(ge.makeSpan(["delimsizing","mult"],[le],L),rt.TEXT,a,s)},t3=80,r3=.08,n3=function(t,r,n,a,i){var s=$me(t,a,n),o=new kl(t,s),u=new yo([o],{width:"400em",height:Fe(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return ge.makeSvgSpan(["hide-tail"],[u],i)},Bge=function(t,r){var n=r.havingBaseSizing(),a=FV("\\surd",t*n.sizeMultiplier,$V,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,u=0,c=0,h=0,d;return a.type==="small"?(h=1e3+1e3*s+t3,t<1?i=1:t<1.4&&(i=.7),u=(1+s+r3)/i,c=(1+s)/i,o=n3("sqrtMain",u,h,s,r),o.style.minWidth="0.853em",d=.833/i):a.type==="large"?(h=(1e3+t3)*bh[a.size],c=(bh[a.size]+s)/i,u=(bh[a.size]+s+r3)/i,o=n3("sqrtSize"+a.size,u,h,s,r),o.style.minWidth="1.02em",d=1/i):(u=t+s+r3,c=t+s,h=Math.floor(1e3*t+s)+t3,o=n3("sqrtTall",u,h,s,r),o.style.minWidth="0.742em",d=1.056),o.height=c,o.style.height=Fe(u),{span:o,advanceWidth:d,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},BV=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],zge=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],zV=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],bh=[0,1.2,1.8,2.4,3],$ge=function(t,r,n,a,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),BV.includes(t)||zV.includes(t))return LV(t,r,!1,n,a,i);if(zge.includes(t))return jV(t,bh[r],!1,n,a,i);throw new Le("Illegal delimiter: '"+t+"'")},Fge=[{type:"small",style:rt.SCRIPTSCRIPT},{type:"small",style:rt.SCRIPT},{type:"small",style:rt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Uge=[{type:"small",style:rt.SCRIPTSCRIPT},{type:"small",style:rt.SCRIPT},{type:"small",style:rt.TEXT},{type:"stack"}],$V=[{type:"small",style:rt.SCRIPTSCRIPT},{type:"small",style:rt.SCRIPT},{type:"small",style:rt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Hge=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},FV=function(t,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;s<n.length&&n[s].type!=="stack";s++){var o=sh(t,Hge(n[s]),"math"),u=o.height+o.depth;if(n[s].type==="small"){var c=a.havingBaseStyle(n[s].style);u*=c.sizeMultiplier}if(u>r)return n[s]}return n[n.length-1]},UV=function(t,r,n,a,i,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;zV.includes(t)?o=Fge:BV.includes(t)?o=$V:o=Uge;var u=FV(t,r,o,a);return u.type==="small"?Ige(t,u.style,n,a,i,s):u.type==="large"?LV(t,u.size,n,a,i,s):jV(t,r,n,a,i,s)},qge=function(t,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,u=901,c=5/a.fontMetrics().ptPerEm,h=Math.max(r-o,n+o),d=Math.max(h/500*u,2*h-c);return UV(t,d,!0,a,i,s)},uo={sqrtImage:Bge,sizedDelim:$ge,sizeToMaxHeight:bh,customSizedDelim:UV,leftRightDelim:qge},cM={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Vge=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function tb(e,t){var r=Jy(e);if(r&&Vge.includes(r.text))return r;
vendor: 14,077 bytes, line 632
632throw r?new Le("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Le("Invalid delimiter type '"+e.type+"'",e)}He({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=tb(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:cM[e.funcName].size,mclass:cM[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?ge.makeSpan([e.mclass]):uo.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(xi(e.delim,e.mode));var r=new De.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Fe(uo.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function fM(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}He({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Le("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:tb(t[0],e).text,color:r}}});He({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=tb(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=xt(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{fM(e);for(var r=dn(e.body,t,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s<r.length;s++)r[s].isMiddle?i=!0:(n=Math.max(r[s].height,n),a=Math.max(r[s].depth,a));n*=t.sizeMultiplier,a*=t.sizeMultiplier;var o;if(e.left==="."?o=Hh(t,["mopen"]):o=uo.leftRightDelim(e.left,n,a,t,e.mode,["mopen"]),r.unshift(o),i)for(var u=1;u<r.length;u++){var c=r[u],h=c.isMiddle;h&&(r[u]=uo.leftRightDelim(h.delim,n,a,h.options,e.mode,[]))}var d;if(e.right===".")d=Hh(t,["mclose"]);else{var m=e.rightColor?t.withColor(e.rightColor):t;d=uo.leftRightDelim(e.right,n,a,m,e.mode,["mclose"])}return r.push(d),ge.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{fM(e);var r=Sa(e.body,t);if(e.left!=="."){var n=new De.MathNode("mo",[xi(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var a=new De.MathNode("mo",[xi(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return MA(r)}});He({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=tb(t[0],e);if(!e.parser.leftrightDepth)throw new Le("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Hh(t,[]);else{r=uo.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?xi("|","text"):xi(e.delim,e.mode),n=new De.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var jA=(e,t)=>{var r=ge.wrapFragment(Ht(e.body,t),t),n=e.label.slice(1),a=t.sizeMultiplier,i,s=0,o=Wt.isCharacterBox(e.body);if(n==="sout")i=ge.makeSpan(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/a,s=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var u=Nr({number:.6,unit:"pt"},t),c=Nr({number:.35,unit:"ex"},t),h=t.havingBaseSizing();a=a/h.sizeMultiplier;var d=r.height+r.depth+u+c;r.style.paddingLeft=Fe(d/2+u);var m=Math.floor(1e3*d*a),v=Bme(m),y=new yo([new kl("phase",v)],{width:"400em",height:Fe(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});i=ge.makeSvgSpan(["hide-tail"],[y],t),i.style.height=Fe(d),s=r.depth+u+c}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var b=0,E=0,_=0;/box/.test(n)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),b=t.fontMetrics().fboxsep+(n==="colorbox"?0:_),E=b):n==="angl"?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),b=4*_,E=Math.max(0,.25-r.depth)):(b=o?.2:0,E=b),i=xo.encloseSpan(r,n,b,E,t),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=Fe(_)):n==="angl"&&_!==.049&&(i.style.borderTopWidth=Fe(_),i.style.borderRightWidth=Fe(_)),s=r.depth+E,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var T;if(e.backgroundColor)T=ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]},t);else{var C=/cancel|phase/.test(n)?["svg-align"]:[];T=ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:C}]},t)}return/cancel/.test(n)&&(T.height=r.height,T.depth=r.depth),/cancel/.test(n)&&!o?ge.makeSpan(["mord","cancel-lap"],[T],t):ge.makeSpan(["mord"],[T],t)},BA=(e,t)=>{var r=0,n=new De.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[hr(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};He({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=xt(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:jA,mathmlBuilder:BA});He({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=xt(t[0],"color-token").color,s=xt(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:jA,mathmlBuilder:BA});He({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});He({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:jA,mathmlBuilder:BA});He({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var HV={};function Ts(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=e,o={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},u=0;u<r.length;++u)HV[r[u]]=o;i&&(J1[t]=i),s&&(ev[t]=s)}var qV={};function V(e,t){qV[e]=t}function dM(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var rb=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Le("{"+e.envName+"} can be used only in display mode.")};function zA(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Ll(e,t,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:c,emptySingleRow:h,maxNumCols:d,leqno:m}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var v=e.gullet.expandMacroAsText("\\arraystretch");if(v==null)s=1;else if(s=parseFloat(v),!s||s<0)throw new Le("Invalid \\arraystretch: "+v)}e.gullet.beginGroup();var y=[],b=[y],E=[],_=[],T=u!=null?[]:void 0;function C(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function P(){T&&(e.gullet.macros.get("\\df@tag")?(T.push(e.subparse([new Va("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):T.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(C(),_.push(dM(e));;){var O=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),O={type:"ordgroup",mode:e.mode,body:O},r&&(O={type:"styling",mode:e.mode,style:r,body:[O]}),y.push(O);var k=e.fetch().text;if(k==="&"){if(d&&y.length===d){if(c||o)throw new Le("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(k==="\\end"){P(),y.length===1&&O.type==="styling"&&O.body[0].body.length===0&&(b.length>1||!h)&&b.pop(),_.length<b.length+1&&_.push([]);break}else if(k==="\\\\"){e.consume();var M=void 0;e.gullet.future().text!==" "&&(M=e.parseSizeGroup(!0)),E.push(M?M.value:null),P(),_.push(dM(e)),y=[],b.push(y),C()}else throw new Le("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:s,body:b,cols:i,rowGaps:E,hskipBeforeAndAfter:n,hLinesBeforeRow:_,colSeparationType:o,tags:T,leqno:m}}function $A(e){return e.slice(0,1)==="d"?"display":"text"}var As=function(t,r){var n,a,i=t.body.length,s=t.hLinesBeforeRow,o=0,u=new Array(i),c=[],h=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),d=1/r.fontMetrics().ptPerEm,m=5*d;if(t.colSeparationType&&t.colSeparationType==="small"){var v=r.havingStyle(rt.SCRIPT).sizeMultiplier;m=.2778*(v/r.sizeMultiplier)}var y=t.colSeparationType==="CD"?Nr({number:3,unit:"ex"},r):12*d,b=3*d,E=t.arraystretch*y,_=.7*E,T=.3*E,C=0;function P(jr){for(var ar=0;ar<jr.length;++ar)ar>0&&(C+=.25),c.push({pos:C,isDashed:jr[ar]})}for(P(s[0]),n=0;n<t.body.length;++n){var O=t.body[n],k=_,M=T;o<O.length&&(o=O.length);var j=new Array(O.length);for(a=0;a<O.length;++a){var z=Ht(O[a],r);M<z.depth&&(M=z.depth),k<z.height&&(k=z.height),j[a]=z}var $=t.rowGaps[n],F=0;$&&(F=Nr($,r),F>0&&(F+=T,M<F&&(M=F),F=0)),t.addJot&&(M+=b),j.height=k,j.depth=M,C+=k,j.pos=C,C+=M+F,u[n]=j,P(s[n+1])}var q=C/2+r.fontMetrics().axisHeight,Q=t.cols||[],X=[],te,U,J=[];if(t.tags&&t.tags.some(jr=>jr))for(n=0;n<i;++n){var ee=u[n],de=ee.pos-q,G=t.tags[n],Y=void 0;G===!0?Y=ge.makeSpan(["eqn-num"],[],r):G===!1?Y=ge.makeSpan([],[],r):Y=ge.makeSpan([],dn(G,r,!0),r),Y.depth=ee.depth,Y.height=ee.height,J.push({type:"elem",elem:Y,shift:de})}for(a=0,U=0;a<o||U<Q.length;++a,++U){for(var W=Q[U]||{},L=!0;W.type==="separator";){if(L||(te=ge.makeSpan(["arraycolsep"],[]),te.style.width=Fe(r.fontMetrics().doubleRuleSep),X.push(te)),W.separator==="|"||W.separator===":"){var le=W.separator==="|"?"solid":"dashed",fe=ge.makeSpan(["vertical-separator"],[],r);fe.style.height=Fe(C),fe.style.borderRightWidth=Fe(h),fe.style.borderRightStyle=le,fe.style.margin="0 "+Fe(-h/2);var Se=C-q;Se&&(fe.style.verticalAlign=Fe(-Se)),X.push(fe)}else throw new Le("Invalid separator type: "+W.separator);U++,W=Q[U]||{},L=!1}if(!(a>=o)){var ye=void 0;(a>0||t.hskipBeforeAndAfter)&&(ye=Wt.deflt(W.pregap,m),ye!==0&&(te=ge.makeSpan(["arraycolsep"],[]),te.style.width=Fe(ye),X.push(te)));var Ne=[];for(n=0;n<i;++n){var xe=u[n],Pe=xe[a];if(Pe){var ze=xe.pos-q;Pe.depth=xe.depth,Pe.height=xe.height,Ne.push({type:"elem",elem:Pe,shift:ze})}}Ne=ge.makeVList({positionType:"individualShift",children:Ne},r),Ne=ge.makeSpan(["col-align-"+(W.align||"c")],[Ne]),X.push(Ne),(a<o-1||t.hskipBeforeAndAfter)&&(ye=Wt.deflt(W.postgap,m),ye!==0&&(te=ge.makeSpan(["arraycolsep"],[]),te.style.width=Fe(ye),X.push(te)))}}if(u=ge.makeSpan(["mtable"],X),c.length>0){for(var we=ge.makeLineSpan("hline",r,h),ft=ge.makeLineSpan("hdashline",r,h),Qe=[{type:"elem",elem:u,shift:0}];c.length>0;){var zt=c.pop(),Pt=zt.pos-q;zt.isDashed?Qe.push({type:"elem",elem:ft,shift:Pt}):Qe.push({type:"elem",elem:we,shift:Pt})}u=ge.makeVList({positionType:"individualShift",children:Qe},r)}if(J.length===0)return ge.makeSpan(["mord"],[u],r);var Ut=ge.makeVList({positionType:"individualShift",children:J},r);return Ut=ge.makeSpan(["tag"],[Ut],r),ge.makeFragment([u,Ut])},Gge={c:"center ",l:"left ",r:"right "},Cs=function(t,r){for(var n=[],a=new De.MathNode("mtd",[],["mtr-glue"]),i=new De.MathNode("mtd",[],["mml-eqn-num"]),s=0;s<t.body.length;s++){for(var o=t.body[s],u=[],c=0;c<o.length;c++)u.push(new De.MathNode("mtd",[hr(o[c],r)]));t.tags&&t.tags[s]&&(u.unshift(a),u.push(a),t.leqno?u.unshift(i):u.push(i)),n.push(new De.MathNode("mtr",u))}var h=new De.MathNode("mtable",n),d=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);h.setAttribute("rowspacing",Fe(d));var m="",v="";if(t.cols&&t.cols.length>0){var y=t.cols,b="",E=!1,_=0,T=y.length;y[0].type==="separator"&&(m+="top ",_=1),y[y.length-1].type==="separator"&&(m+="bottom ",T-=1);for(var C=_;C<T;C++)y[C].type==="align"?(v+=Gge[y[C].align],E&&(b+="none "),E=!0):y[C].type==="separator"&&E&&(b+=y[C].separator==="|"?"solid ":"dashed ",E=!1);h.setAttribute("columnalign",v.trim()),/[sd]/.test(b)&&h.setAttribute("columnlines",b.trim())}if(t.colSeparationType==="align"){for(var P=t.cols||[],O="",k=1;k<P.length;k++)O+=k%2?"0em ":"1em ";h.setAttribute("columnspacing",O.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?h.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?h.setAttribute("columnspacing","0.5em"):h.setAttribute("columnspacing","1em");
vendor: 5,711 bytes, line 632
632var M="",j=t.hLinesBeforeRow;m+=j[0].length>0?"left ":"",m+=j[j.length-1].length>0?"right ":"";for(var z=1;z<j.length-1;z++)M+=j[z].length===0?"none ":j[z][0]?"dashed ":"solid ";return/[sd]/.test(M)&&h.setAttribute("rowlines",M.trim()),m!==""&&(h=new De.MathNode("menclose",[h]),h.setAttribute("notation",m.trim())),t.arraystretch&&t.arraystretch<1&&(h=new De.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},VV=function(t,r){t.envName.indexOf("ed")===-1&&rb(t);var n=[],a=t.envName.indexOf("at")>-1?"alignat":"align",i=t.envName==="split",s=Ll(t.parser,{cols:n,addJot:!0,autoTag:i?void 0:zA(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,c={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var h="",d=0;d<r[0].body.length;d++){var m=xt(r[0].body[d],"textord");h+=m.text}o=Number(h),u=o*2}var v=!u;s.body.forEach(function(_){for(var T=1;T<_.length;T+=2){var C=xt(_[T],"styling"),P=xt(C.body[0],"ordgroup");P.body.unshift(c)}if(v)u<_.length&&(u=_.length);else{var O=_.length/2;if(o<O)throw new Le("Too many math in a row: "+("expected "+o+", but got "+O),_[0])}});for(var y=0;y<u;++y){var b="r",E=0;y%2===1?b="l":y>0&&v&&(E=1),n[y]={type:"align",align:b,pregap:E,postgap:0}}return s.colSeparationType=v?"align":"alignat",s};Ts({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Jy(t[0]),n=r?[t[0]]:xt(t[0],"ordgroup").body,a=n.map(function(s){var o=IA(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new Le("Unknown column alignment: "+u,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Ll(e.parser,i,$A(e.envName))},htmlBuilder:As,mathmlBuilder:Cs});Ts({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,"lcr".indexOf(r)===-1)throw new Le("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=Ll(e.parser,n,$A(e.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:As,mathmlBuilder:Cs});Ts({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Ll(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:As,mathmlBuilder:Cs});Ts({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Jy(t[0]),n=r?[t[0]]:xt(t[0],"ordgroup").body,a=n.map(function(s){var o=IA(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new Le("Unknown column alignment: "+u,s)});if(a.length>1)throw new Le("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(i=Ll(e.parser,i,"script"),i.body.length>0&&i.body[0].length>1)throw new Le("{subarray} can contain only one column");return i},htmlBuilder:As,mathmlBuilder:Cs});Ts({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Ll(e.parser,t,$A(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:As,mathmlBuilder:Cs});Ts({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:VV,htmlBuilder:As,mathmlBuilder:Cs});Ts({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&rb(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:zA(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ll(e.parser,t,"display")},htmlBuilder:As,mathmlBuilder:Cs});Ts({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:VV,htmlBuilder:As,mathmlBuilder:Cs});Ts({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){rb(e);var t={autoTag:zA(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ll(e.parser,t,"display")},htmlBuilder:As,mathmlBuilder:Cs});Ts({type:"array",names:["CD"],props:{numArgs:0},handler(e){return rb(e),Mge(e.parser)},htmlBuilder:As,mathmlBuilder:Cs});V("\\nonumber","\\gdef\\@eqnsw{0}");V("\\notag","\\nonumber");He({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Le(e.funcName+" valid only within array environment")}});var hM=HV;He({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];if(a.type!=="ordgroup")throw new Le("Invalid environment name",a);for(var i="",s=0;s<a.body.length;++s)i+=xt(a.body[s],"textord").text;if(n==="\\begin"){if(!hM.hasOwnProperty(i))throw new Le("No such environment: "+i,a);var o=hM[i],{args:u,optArgs:c}=r.parseArguments("\\begin{"+i+"}",o),h={mode:r.mode,envName:i,parser:r},d=o.handler(h,u,c);r.expect("\\end",!1);var m=r.nextToken,v=xt(r.parseFunction(),"environment");
vendor: 16,401 bytes, line 632
632if(v.name!==i)throw new Le("Mismatch: \\begin{"+i+"} matched by \\end{"+v.name+"}",m);return d}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var GV=(e,t)=>{var r=e.font,n=t.withFont(r);return Ht(e.body,n)},WV=(e,t)=>{var r=e.font,n=t.withFont(r);return hr(e.body,n)},pM={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};He({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=tv(t[0]),i=n;return i in pM&&(i=pM[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:GV,mathmlBuilder:WV});He({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],a=Wt.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:eb(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:a}}});He({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:a}=e,{mode:i}=r,s=r.parseExpression(!0,a),o="math"+n.slice(1);return{type:"font",mode:i,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:GV,mathmlBuilder:WV});var YV=(e,t)=>{var r=t;return e==="display"?r=r.id>=rt.SCRIPT.id?r.text():rt.DISPLAY:e==="text"&&r.size===rt.DISPLAY.size?r=rt.TEXT:e==="script"?r=rt.SCRIPT:e==="scriptscript"&&(r=rt.SCRIPTSCRIPT),r},FA=(e,t)=>{var r=YV(e.size,t.style),n=r.fracNum(),a=r.fracDen(),i;i=t.havingStyle(n);var s=Ht(e.numer,i,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<u?u:s.depth}i=t.havingStyle(a);var c=Ht(e.denom,i,t),h,d,m;e.hasBarLine?(e.barSize?(d=Nr(e.barSize,t),h=ge.makeLineSpan("frac-line",t,d)):h=ge.makeLineSpan("frac-line",t),d=h.height,m=h.height):(h=null,d=0,m=t.fontMetrics().defaultRuleThickness);var v,y,b;r.size===rt.DISPLAY.size||e.size==="display"?(v=t.fontMetrics().num1,d>0?y=3*m:y=7*m,b=t.fontMetrics().denom1):(d>0?(v=t.fontMetrics().num2,y=m):(v=t.fontMetrics().num3,y=3*m),b=t.fontMetrics().denom2);var E;if(h){var T=t.fontMetrics().axisHeight;v-s.depth-(T+.5*d)<y&&(v+=y-(v-s.depth-(T+.5*d))),T-.5*d-(c.height-b)<y&&(b+=y-(T-.5*d-(c.height-b)));var C=-(T-.5*d);E=ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:b},{type:"elem",elem:h,shift:C},{type:"elem",elem:s,shift:-v}]},t)}else{var _=v-s.depth-(c.height-b);_<y&&(v+=.5*(y-_),b+=.5*(y-_)),E=ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:b},{type:"elem",elem:s,shift:-v}]},t)}i=t.havingStyle(r),E.height*=i.sizeMultiplier/t.sizeMultiplier,E.depth*=i.sizeMultiplier/t.sizeMultiplier;var P;r.size===rt.DISPLAY.size?P=t.fontMetrics().delim1:r.size===rt.SCRIPTSCRIPT.size?P=t.havingStyle(rt.SCRIPT).fontMetrics().delim2:P=t.fontMetrics().delim2;var O,k;return e.leftDelim==null?O=Hh(t,["mopen"]):O=uo.customSizedDelim(e.leftDelim,P,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?k=ge.makeSpan([]):e.rightDelim==null?k=Hh(t,["mclose"]):k=uo.customSizedDelim(e.rightDelim,P,!0,t.havingStyle(r),e.mode,["mclose"]),ge.makeSpan(["mord"].concat(i.sizingClasses(t)),[O,ge.makeSpan(["mfrac"],[E]),k],t)},UA=(e,t)=>{var r=new De.MathNode("mfrac",[hr(e.numer,t),hr(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=Nr(e.barSize,t);r.setAttribute("linethickness",Fe(n))}var a=YV(e.size,t.style);if(a.size!==t.style.size){r=new De.MathNode("mstyle",[r]);var i=a.size===rt.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new De.MathNode("mo",[new De.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(r),e.rightDelim!=null){var u=new De.MathNode("mo",[new De.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return MA(s)}return r};He({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1],s,o=null,u=null,c="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:a,denom:i,hasBarLine:s,leftDelim:o,rightDelim:u,size:c,barSize:null}},htmlBuilder:FA,mathmlBuilder:UA});He({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:a,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});He({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:n}}});var mM=["display","text","script","scriptscript"],gM=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};He({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],a=t[5],i=tv(t[0]),s=i.type==="atom"&&i.family==="open"?gM(i.text):null,o=tv(t[1]),u=o.type==="atom"&&o.family==="close"?gM(o.text):null,c=xt(t[2],"size"),h,d=null;c.isBlank?h=!0:(d=c.value,h=d.number>0);var m="auto",v=t[3];if(v.type==="ordgroup"){if(v.body.length>0){var y=xt(v.body[0],"textord");m=mM[Number(y.text)]}}else v=xt(v,"textord"),m=mM[Number(v.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:h,barSize:d,leftDelim:s,rightDelim:u,size:m}},htmlBuilder:FA,mathmlBuilder:UA});He({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:a}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:xt(t[0],"size").value,token:a}}});He({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=_me(xt(t[1],"infix").size),s=t[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:FA,mathmlBuilder:UA});var XV=(e,t)=>{var r=t.style,n,a;e.type==="supsub"?(n=e.sup?Ht(e.sup,t.havingStyle(r.sup()),t):Ht(e.sub,t.havingStyle(r.sub()),t),a=xt(e.base,"horizBrace")):a=xt(e,"horizBrace");var i=Ht(a.base,t.havingBaseStyle(rt.DISPLAY)),s=xo.svgSpan(a,t),o;if(a.isOver?(o=ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=ge.makeVList({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),n){var u=ge.makeSpan(["mord",a.isOver?"mover":"munder"],[o],t);a.isOver?o=ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},t):o=ge.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return ge.makeSpan(["mord",a.isOver?"mover":"munder"],[o],t)},Wge=(e,t)=>{var r=xo.mathMLnode(e.label);return new De.MathNode(e.isOver?"mover":"munder",[hr(e.base,t),r])};He({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:XV,mathmlBuilder:Wge});He({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],a=xt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:qr(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=dn(e.body,t,!1);return ge.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Nl(e.body,t);return r instanceof Fa||(r=new Fa("mrow",[r])),r.setAttribute("href",e.href),r}});He({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=xt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var s=n[i];s==="~"&&(s="\\textasciitilde"),a.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:qr(o)}}});He({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:qr(t[0])}},htmlBuilder(e,t){var r=dn(e.body,t,!1);return ge.makeFragment(r)},mathmlBuilder(e,t){return new De.MathNode("mrow",Sa(e.body,t))}});He({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:a}=e,i=xt(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(n){case"\\htmlClass":u.class=i,o={command:"\\htmlClass",class:i};break;case"\\htmlId":u.id=i,o={command:"\\htmlId",id:i};break;case"\\htmlStyle":u.style=i,o={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var c=i.split(","),h=0;h<c.length;h++){var d=c[h].split("=");if(d.length!==2)throw new Le("Error parsing key-value for \\htmlData");u["data-"+d[0].trim()]=d[1].trim()}o={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(o)?{type:"html",mode:r.mode,attributes:u,body:qr(s)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=dn(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var a=ge.makeSpan(n,r,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>Nl(e.body,t)});He({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:qr(t[0]),mathml:qr(t[1])}},htmlBuilder:(e,t)=>{var r=dn(e.html,t,!1);return ge.makeFragment(r)},mathmlBuilder:(e,t)=>Nl(e.mathml,t)});var a3=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new Le("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!pV(n))throw new Le("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};He({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var u=xt(r[0],"raw").string,c=u.split(","),h=0;h<c.length;h++){var d=c[h].split("=");if(d.length===2){var m=d[1].trim();switch(d[0].trim()){case"alt":o=m;break;case"width":a=a3(m);break;case"height":i=a3(m);break;case"totalheight":s=a3(m);break;default:throw new Le("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var v=xt(t[0],"url").url;return o===""&&(o=v,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:v})?{type:"includegraphics",mode:n.mode,alt:o,width:a,height:i,totalheight:s,src:v}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Nr(e.height,t),n=0;e.totalheight.number>0&&(n=Nr(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=Nr(e.width,t));var i={height:Fe(r+n)};a>0&&(i.width=Fe(a)),n>0&&(i.verticalAlign=Fe(-n));var s=new Wme(e.src,e.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(e,t)=>{var r=new De.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=Nr(e.height,t),a=0;if(e.totalheight.number>0&&(a=Nr(e.totalheight,t)-n,r.setAttribute("valign",Fe(-a))),r.setAttribute("height",Fe(n+a)),e.width.number>0){var i=Nr(e.width,t);r.setAttribute("width",Fe(i))}return r.setAttribute("src",e.src),r}});He({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=xt(t[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(e,t){return ge.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=Nr(e.dimension,t);return new De.SpaceNode(r)}});He({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=ge.makeSpan([],[Ht(e.body,t)]),r=ge.makeSpan(["inner"],[r],t)):r=ge.makeSpan(["inner"],[Ht(e.body,t)]);var n=ge.makeSpan(["fix"],[]),a=ge.makeSpan([e.alignment],[r,n],t),i=ge.makeSpan(["strut"]);return i.style.height=Fe(a.height+a.depth),a.depth&&(i.style.verticalAlign=Fe(-a.depth)),a.children.unshift(i),a=ge.makeSpan(["thinbox"],[a],t),ge.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var r=new De.MathNode("mpadded",[hr(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});He({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:s}}});He({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Le("Mismatched "+e.funcName)}});var vM=(e,t)=>{switch(t.style.size){case rt.DISPLAY.size:return e.display;case rt.TEXT.size:return e.text;case rt.SCRIPT.size:return e.script;case rt.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};He({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:qr(t[0]),text:qr(t[1]),script:qr(t[2]),scriptscript:qr(t[3])}},htmlBuilder:(e,t)=>{var r=vM(e,t),n=dn(r,t,!1);return ge.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=vM(e,t);return Nl(r,t)}});var KV=(e,t,r,n,a,i,s)=>{e=ge.makeSpan([],[e]);var o=r&&Wt.isCharacterBox(r),u,c;if(t){var h=Ht(t,n.havingStyle(a.sup()),n);c={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-h.depth)}}if(r){var d=Ht(r,n.havingStyle(a.sub()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-d.height)}}var m;if(c&&u){var v=n.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;m=ge.makeVList({positionType:"bottom",positionData:v,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:Fe(-i)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Fe(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}
vendor: 4,611 bytes, line 632
632else if(u){var y=e.height-s;m=ge.makeVList({positionType:"top",positionData:y,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:Fe(-i)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},n)}else if(c){var b=e.depth+s;m=ge.makeVList({positionType:"bottom",positionData:b,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Fe(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return e;var E=[m];if(u&&i!==0&&!o){var _=ge.makeSpan(["mspace"],[],n);_.style.marginRight=Fe(i),E.unshift(_)}return ge.makeSpan(["mop","op-limits"],E,n)},QV=["\\smallint"],k0=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=xt(e.base,"op"),a=!0):i=xt(e,"op");var s=t.style,o=!1;s.size===rt.DISPLAY.size&&i.symbol&&!QV.includes(i.name)&&(o=!0);var u;if(i.symbol){var c=o?"Size2-Regular":"Size1-Regular",h="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(h=i.name.slice(1),i.name=h==="oiint"?"\\iint":"\\iiint"),u=ge.makeSymbol(i.name,c,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),h.length>0){var d=u.italic,m=ge.staticSvg(h+"Size"+(o?"2":"1"),t);u=ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:m,shift:o?.08:0}]},t),i.name="\\"+h,u.classes.unshift("mop"),u.italic=d}}else if(i.body){var v=dn(i.body,t,!0);v.length===1&&v[0]instanceof bi?(u=v[0],u.classes[0]="mop"):u=ge.makeSpan(["mop"],v,t)}else{for(var y=[],b=1;b<i.name.length;b++)y.push(ge.mathsym(i.name[b],i.mode,t));u=ge.makeSpan(["mop"],y,t)}var E=0,_=0;return(u instanceof bi||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(E=(u.height-u.depth)/2-t.fontMetrics().axisHeight,_=u.italic),a?KV(u,r,n,t,s,_,E):(E&&(u.style.position="relative",u.style.top=Fe(E)),u)},Yp=(e,t)=>{var r;if(e.symbol)r=new Fa("mo",[xi(e.name,e.mode)]),QV.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Fa("mo",Sa(e.body,t));else{r=new Fa("mi",[new ps(e.name.slice(1))]);var n=new Fa("mo",[xi("⁡","text")]);e.parentIsSupSub?r=new Fa("mrow",[r,n]):r=TV([r,n])}return r},Yge={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};He({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=n;return a.length===1&&(a=Yge[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:k0,mathmlBuilder:Yp});He({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:qr(n)}},htmlBuilder:k0,mathmlBuilder:Yp});var Xge={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};He({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:k0,mathmlBuilder:Yp});He({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:k0,mathmlBuilder:Yp});He({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=Xge[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:k0,mathmlBuilder:Yp});var ZV=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=xt(e.base,"operatorname"),a=!0):i=xt(e,"operatorname");var s;if(i.body.length>0){for(var o=i.body.map(d=>{var m=d.text;return typeof m=="string"?{type:"textord",mode:d.mode,text:m}:d}),u=dn(o,t.withFont("mathrm"),!0),c=0;c<u.length;c++){var h=u[c];h instanceof bi&&(h.text=h.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=ge.makeSpan(["mop"],u,t)}else s=ge.makeSpan(["mop"],[],t);return a?KV(s,r,n,t,t.style,0,0):s},Kge=(e,t)=>
vendor: 8,722 bytes, line 632
632{for(var r=Sa(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof De.SpaceNode))if(i instanceof De.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof De.TextNode?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(h=>h.toText()).join("");r=[new De.TextNode(o)]}var u=new De.MathNode("mi",r);u.setAttribute("mathvariant","normal");var c=new De.MathNode("mo",[xi("⁡","text")]);return e.parentIsSupSub?new De.MathNode("mrow",[u,c]):De.newDocumentFragment([u,c])};He({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"operatorname",mode:r.mode,body:qr(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:ZV,mathmlBuilder:Kge});V("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ic({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ge.makeFragment(dn(e.body,t,!1)):ge.makeSpan(["mord"],dn(e.body,t,!0),t)},mathmlBuilder(e,t){return Nl(e.body,t,!0)}});He({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=Ht(e.body,t.havingCrampedStyle()),n=ge.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]},t);return ge.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new De.MathNode("mo",[new De.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new De.MathNode("mover",[hr(e.body,t),r]);return n.setAttribute("accent","true"),n}});He({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:qr(n)}},htmlBuilder:(e,t)=>{var r=dn(e.body,t.withPhantom(),!1);return ge.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=Sa(e.body,t);return new De.MathNode("mphantom",r)}});He({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=ge.makeSpan([],[Ht(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),ge.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=Sa(qr(e.body),t),n=new De.MathNode("mphantom",r),a=new De.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}});He({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=ge.makeSpan(["inner"],[Ht(e.body,t.withPhantom())]),n=ge.makeSpan(["fix"],[]);return ge.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Sa(qr(e.body),t),n=new De.MathNode("mphantom",r),a=new De.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}});He({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=xt(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(e,t){var r=Ht(e.body,t),n=Nr(e.dy,t);return ge.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new De.MathNode("mpadded",[hr(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});He({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});He({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,a=r[0],i=xt(t[0],"size"),s=xt(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&xt(a,"size").value,width:i.value,height:s.value}},htmlBuilder(e,t){var r=ge.makeSpan(["mord","rule"],[],t),n=Nr(e.width,t),a=Nr(e.height,t),i=e.shift?Nr(e.shift,t):0;return r.style.borderRightWidth=Fe(n),r.style.borderTopWidth=Fe(a),r.style.bottom=Fe(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Nr(e.width,t),n=Nr(e.height,t),a=e.shift?Nr(e.shift,t):0,i=t.color&&t.getColor()||"black",s=new De.MathNode("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",Fe(r)),s.setAttribute("height",Fe(n));var o=new De.MathNode("mpadded",[s]);return a>=0?o.setAttribute("height",Fe(a)):(o.setAttribute("height",Fe(a)),o.setAttribute("depth",Fe(-a))),o.setAttribute("voffset",Fe(a)),o}});function JV(e,t,r){for(var n=dn(e,t,!1),a=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[s+1]==="reset-size"+t.size&&(n[i].classes[s+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return ge.makeFragment(n)}var yM=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Qge=(e,t)=>{var r=t.havingSize(e.size);return JV(e.body,r,t)};He({type:"sizing",names:yM,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:yM.indexOf(n)+1,body:i}},htmlBuilder:Qge,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Sa(e.body,r),a=new De.MathNode("mstyle",n);return a.setAttribute("mathsize",Fe(r.sizeMultiplier)),a}});He({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,a=!1,i=!1,s=r[0]&&xt(r[0],"ordgroup");if(s)for(var o="",u=0;u<s.body.length;++u){var c=s.body[u];if(o=c.text,o==="t")a=!0;else if(o==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var h=t[0];return{type:"smash",mode:n.mode,body:h,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var r=ge.makeSpan([],[Ht(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var a=0;a<r.children.length;a++)r.children[a].depth=0;var i=ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return ge.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new De.MathNode("mpadded",[hr(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});He({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,a=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(e,t){var r=Ht(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=ge.wrapFragment(r,t);var n=t.fontMetrics(),a=n.defaultRuleThickness,i=a;t.style.id<rt.TEXT.id&&(i=t.fontMetrics().xHeight);var s=a+i/4,o=r.height+r.depth+s+a,{span:u,ruleWidth:c,advanceWidth:h}=uo.sqrtImage(o,t),d=u.height-c;d>r.height+r.depth+s&&(s=(s+d-r.height-r.depth)/2);var m=u.height-r.height-s-c;r.style.paddingLeft=Fe(h);var v=ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+m)},{type:"elem",elem:u},{type:"kern",size:c}]},t);if(e.index){var y=t.havingStyle(rt.SCRIPTSCRIPT),b=Ht(e.index,y,t),E=.6*(v.height-v.depth),_=ge.makeVList({positionType:"shift",positionData:-E,children:[{type:"elem",elem:b}]},t),T=ge.makeSpan(["root"],[_]);return ge.makeSpan(["mord","sqrt"],[T,v],t)}else return ge.makeSpan(["mord","sqrt"],[v],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new De.MathNode("mroot",[hr(r,t),hr(n,t)]):new De.MathNode("msqrt",[hr(r,t)])}});var bM={display:rt.DISPLAY,text:rt.TEXT,script:rt.SCRIPT,scriptscript:rt.SCRIPTSCRIPT};He({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(e,t){var r=bM[e.style],n=t.havingStyle(r).withFont("");return JV(e.body,n,t)},mathmlBuilder(e,t){var r=bM[e.style],n=t.havingStyle(r),a=Sa(e.body,n),i=new De.MathNode("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}
vendor: 12,599 bytes, lines 632-636
632,o=s[e.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var Zge=function(t,r){var n=t.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===rt.DISPLAY.size||n.alwaysHandleSupSub);return a?k0:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===rt.DISPLAY.size||n.limits);return i?ZV:null}else{if(n.type==="accent")return Wt.isCharacterBox(n.base)?DA:null;if(n.type==="horizBrace"){var s=!t.sub;return s===n.isOver?XV:null}else return null}else return null};ic({type:"supsub",htmlBuilder(e,t){var r=Zge(e,t);if(r)return r(e,t);var{base:n,sup:a,sub:i}=e,s=Ht(n,t),o,u,c=t.fontMetrics(),h=0,d=0,m=n&&Wt.isCharacterBox(n);if(a){var v=t.havingStyle(t.style.sup());o=Ht(a,v,t),m||(h=s.height-v.fontMetrics().supDrop*v.sizeMultiplier/t.sizeMultiplier)}if(i){var y=t.havingStyle(t.style.sub());u=Ht(i,y,t),m||(d=s.depth+y.fontMetrics().subDrop*y.sizeMultiplier/t.sizeMultiplier)}var b;t.style===rt.DISPLAY?b=c.sup1:t.style.cramped?b=c.sup3:b=c.sup2;var E=t.sizeMultiplier,_=Fe(.5/c.ptPerEm/E),T=null;if(u){var C=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof bi||C)&&(T=Fe(-s.italic))}var P;if(o&&u){h=Math.max(h,b,o.depth+.25*c.xHeight),d=Math.max(d,c.sub2);var O=c.defaultRuleThickness,k=4*O;if(h-o.depth-(u.height-d)<k){d=k-(h-o.depth)+u.height;var M=.8*c.xHeight-(h-o.depth);M>0&&(h+=M,d-=M)}var j=[{type:"elem",elem:u,shift:d,marginRight:_,marginLeft:T},{type:"elem",elem:o,shift:-h,marginRight:_}];P=ge.makeVList({positionType:"individualShift",children:j},t)}else if(u){d=Math.max(d,c.sub1,u.height-.8*c.xHeight);var z=[{type:"elem",elem:u,marginLeft:T,marginRight:_}];P=ge.makeVList({positionType:"shift",positionData:d,children:z},t)}else if(o)h=Math.max(h,b,o.depth+.25*c.xHeight),P=ge.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:o,marginRight:_}]},t);else throw new Error("supsub must have either sup or sub.");var $=N_(s,"right")||"mord";return ge.makeSpan([$],[s,ge.makeSpan(["msupsub"],[P])],t)},mathmlBuilder(e,t){var r=!1,n,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[hr(e.base,t)];e.sub&&i.push(hr(e.sub,t)),e.sup&&i.push(hr(e.sup,t));var s;if(r)s=n?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===rt.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===rt.DISPLAY||c.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===rt.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===rt.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===rt.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===rt.DISPLAY)?s="mover":s="msup"}return new De.MathNode(s,i)}});ic({type:"atom",htmlBuilder(e,t){return ge.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new De.MathNode("mo",[xi(e.text,e.mode)]);if(e.family==="bin"){var n=PA(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var eG={mi:"italic",mn:"normal",mtext:"normal"};ic({type:"mathord",htmlBuilder(e,t){return ge.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new De.MathNode("mi",[xi(e.text,e.mode,t)]),n=PA(e,t)||"italic";return n!==eG[r.type]&&r.setAttribute("mathvariant",n),r}});ic({type:"textord",htmlBuilder(e,t){return ge.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=xi(e.text,e.mode,t),n=PA(e,t)||"normal",a;return e.mode==="text"?a=new De.MathNode("mtext",[r]):/[0-9]/.test(e.text)?a=new De.MathNode("mn",[r]):e.text==="\\prime"?a=new De.MathNode("mo",[r]):a=new De.MathNode("mi",[r]),n!==eG[a.type]&&a.setAttribute("mathvariant",n),a}});var i3={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},s3={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ic({type:"spacing",htmlBuilder(e,t){if(s3.hasOwnProperty(e.text)){var r=s3[e.text].className||"";if(e.mode==="text"){var n=ge.makeOrd(e,t,"textord");return n.classes.push(r),n}else return ge.makeSpan(["mspace",r],[ge.mathsym(e.text,e.mode,t)],t)}else{if(i3.hasOwnProperty(e.text))return ge.makeSpan(["mspace",i3[e.text]],[],t);throw new Le('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(s3.hasOwnProperty(e.text))r=new De.MathNode("mtext",[new De.TextNode(" ")]);else{if(i3.hasOwnProperty(e.text))return new De.MathNode("mspace");throw new Le('Unknown type of space "'+e.text+'"')}return r}});var xM=()=>{var e=new De.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ic({type:"tag",mathmlBuilder(e,t){var r=new De.MathNode("mtable",[new De.MathNode("mtr",[xM(),new De.MathNode("mtd",[Nl(e.body,t)]),xM(),new De.MathNode("mtd",[Nl(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var EM={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},wM={"\\textbf":"textbf","\\textmd":"textmd"},Jge={"\\textit":"textit","\\textup":"textup"},_M=(e,t)=>{var r=e.font;if(r){if(EM[r])return t.withTextFontFamily(EM[r]);if(wM[r])return t.withTextFontWeight(wM[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Jge[r])};He({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"text",mode:r.mode,body:qr(a),font:n}},htmlBuilder(e,t){var r=_M(e,t),n=dn(e.body,r,!0);return ge.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=_M(e,t);return Nl(e.body,r)}});He({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Ht(e.body,t),n=ge.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=ge.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]},t);return ge.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new De.MathNode("mo",[new De.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new De.MathNode("munder",[hr(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});He({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Ht(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return ge.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new De.MathNode("mpadded",[hr(e.body,t)],["vcenter"])}});He({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Le("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=SM(e),n=[],a=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var s=r[i];s==="~"&&(s="\\textasciitilde"),n.push(ge.makeSymbol(s,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return ge.makeSpan(["mord","text"].concat(a.sizingClasses(t)),ge.tryCombineChars(n),a)},mathmlBuilder(e,t){var r=new De.TextNode(SM(e)),n=new De.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var SM=e=>e.body.replace(/ /g,e.star?"␣":" "),gl=_V,tG=`[ \r
633	]`,e1e="\\\\[a-zA-Z@]+",t1e="\\\\[^\uD800-\uDFFF]",r1e="("+e1e+")"+tG+"*",n1e=`\\\\(
634|[ \r	]+
635?)[ \r	]*`,I_="[̀-ͯ]",a1e=new RegExp(I_+"+$"),i1e="("+tG+"+)|"+(n1e+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(I_+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(I_+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+r1e)+("|"+t1e+")");class TM{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(i1e,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Va("EOF",new ba(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new Le("Unexpected character: '"+t[r]+"'",new Va(t[r],new ba(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=t.indexOf(`
636`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new Va(a,new ba(this,r,this.tokenRegex.lastIndex))}}class s1e{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Le("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var o1e=qV;V("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});V("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});V("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});V("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});V("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});V("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");V("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var AM={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};V("\\char",function(e){var t=e.popToken(),r,n="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Le("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=AM[t.text],n==null||n>=r)throw new Le("Invalid base-"+r+" digit "+t.text);for(var a;(a=AM[e.future().text])!=null&&a<r;)n*=r,n+=a,e.popToken()}return"\\@char{"+n+"}"});var HA=(e,t,r,n)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new Le("\\newcommand's first argument must be a macro name");var i=a[0].text,s=e.isDefined(i);if(s&&!t)throw new Le("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new Le("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var u="",c=e.expandNextToken();c.text!=="]"&&c.text!=="EOF";)u+=c.text,c=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new Le("Invalid number of arguments: "+u);o=parseInt(u),a=e.consumeArg().tokens}return s&&n||e.macros.set(i,{tokens:a,numArgs:o}),""};V("\\newcommand",e=>HA(e,!1,!0,!1));V("\\renewcommand",e=>HA(e,!0,!1,!1));V("\\providecommand",e=>HA(e,!0,!0,!0));V("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});V("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});V("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),gl[r],vr.math[r],vr.text[r]),""});V("\\bgroup","{");V("\\egroup","}");
vendor: 6,450 bytes, line 636
636V("~","\\nobreakspace");V("\\lq","`");V("\\rq","'");V("\\aa","\\r a");V("\\AA","\\r A");V("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");V("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");V("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");V("ℬ","\\mathscr{B}");V("ℰ","\\mathscr{E}");V("ℱ","\\mathscr{F}");V("ℋ","\\mathscr{H}");V("ℐ","\\mathscr{I}");V("ℒ","\\mathscr{L}");V("ℳ","\\mathscr{M}");V("ℛ","\\mathscr{R}");V("ℭ","\\mathfrak{C}");V("ℌ","\\mathfrak{H}");V("ℨ","\\mathfrak{Z}");V("\\Bbbk","\\Bbb{k}");V("·","\\cdotp");V("\\llap","\\mathllap{\\textrm{#1}}");V("\\rlap","\\mathrlap{\\textrm{#1}}");V("\\clap","\\mathclap{\\textrm{#1}}");V("\\mathstrut","\\vphantom{(}");V("\\underbar","\\underline{\\text{#1}}");V("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');V("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");V("\\ne","\\neq");V("≠","\\neq");V("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");V("∉","\\notin");V("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");V("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");V("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");V("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");V("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");V("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");V("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");V("⟂","\\perp");V("‼","\\mathclose{!\\mkern-0.8mu!}");V("∌","\\notni");V("⌜","\\ulcorner");V("⌝","\\urcorner");V("⌞","\\llcorner");V("⌟","\\lrcorner");V("©","\\copyright");V("®","\\textregistered");V("️","\\textregistered");V("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');V("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');V("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');V("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');V("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");V("⋮","\\vdots");V("\\varGamma","\\mathit{\\Gamma}");V("\\varDelta","\\mathit{\\Delta}");V("\\varTheta","\\mathit{\\Theta}");V("\\varLambda","\\mathit{\\Lambda}");V("\\varXi","\\mathit{\\Xi}");V("\\varPi","\\mathit{\\Pi}");V("\\varSigma","\\mathit{\\Sigma}");V("\\varUpsilon","\\mathit{\\Upsilon}");V("\\varPhi","\\mathit{\\Phi}");V("\\varPsi","\\mathit{\\Psi}");V("\\varOmega","\\mathit{\\Omega}");V("\\substack","\\begin{subarray}{c}#1\\end{subarray}");V("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");V("\\boxed","\\fbox{$\\displaystyle{#1}$}");V("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");V("\\implies","\\DOTSB\\;\\Longrightarrow\\;");V("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");V("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");V("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var CM={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};V("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in CM?t=CM[r]:(r.slice(0,4)==="\\not"||r in vr.math&&["bin","rel"].includes(vr.math[r].group))&&(t="\\dotsb"),t});var qA={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};V("\\dotso",function(e){var t=e.future().text;return t in qA?"\\ldots\\,":"\\ldots"});V("\\dotsc",function(e){var t=e.future().text;return t in qA&&t!==","?"\\ldots\\,":"\\ldots"});V("\\cdots",function(e){var t=e.future().text;return t in qA?"\\@cdots\\,":"\\@cdots"});V("\\dotsb","\\cdots");V("\\dotsm","\\cdots");V("\\dotsi","\\!\\cdots");V("\\dotsx","\\ldots\\,");V("\\DOTSI","\\relax");V("\\DOTSB","\\relax");V("\\DOTSX","\\relax");V("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");V("\\,","\\tmspace+{3mu}{.1667em}");V("\\thinspace","\\,");V("\\>","\\mskip{4mu}");V("\\:","\\tmspace+{4mu}{.2222em}");V("\\medspace","\\:");V("\\;","\\tmspace+{5mu}{.2777em}");V("\\thickspace","\\;");V("\\!","\\tmspace-{3mu}{.1667em}");V("\\negthinspace","\\!");V("\\negmedspace","\\tmspace-{4mu}{.2222em}");V("\\negthickspace","\\tmspace-{5mu}{.277em}");V("\\enspace","\\kern.5em ");V("\\enskip","\\hskip.5em\\relax");V("\\quad","\\hskip1em\\relax");V("\\qquad","\\hskip2em\\relax");V("\\tag","\\@ifstar\\tag@literal\\tag@paren");V("\\tag@paren","\\tag@literal{({#1})}");V("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Le("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});V("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");V("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");V("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");V("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");V("\\newline","\\\\\\relax");V("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var rG=Fe(hs["Main-Regular"][84][1]-.7*hs["Main-Regular"][65][1]);V("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+rG+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");
636V("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+rG+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");V("\\hspace","\\@ifstar\\@hspacer\\@hspace");V("\\@hspace","\\hskip #1\\relax");V("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");V("\\ordinarycolon",":");V("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");V("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');V("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');V("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');V("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');V("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');V("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');V("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');V("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');V("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');V("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');V("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');V("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');V("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');V("∷","\\dblcolon");V("∹","\\eqcolon");V("≔","\\coloneqq");V("≕","\\eqqcolon");V("⩴","\\Coloneqq");V("\\ratio","\\vcentcolon");V("\\coloncolon","\\dblcolon");V("\\colonequals","\\coloneqq");V("\\coloncolonequals","\\Coloneqq");V("\\equalscolon","\\eqqcolon");V("\\equalscoloncolon","\\Eqqcolon");V("\\colonminus","\\coloneq");V("\\coloncolonminus","\\Coloneq");V("\\minuscolon","\\eqcolon");V("\\minuscoloncolon","\\Eqcolon");V("\\coloncolonapprox","\\Colonapprox");V("\\coloncolonsim","\\Colonsim");V("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");V("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");V("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");V("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");V("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");V("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");V("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");V("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");V("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");V("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");V("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");V("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");V("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");V("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");V("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");V("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");V("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");V("\\nleqq","\\html@mathml{\\@nleqq}{≰}");V("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");V("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");V("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");V("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");V("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");V("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");V("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");V("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");V("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");V("\\imath","\\html@mathml{\\@imath}{ı}");V("\\jmath","\\html@mathml{\\@jmath}{ȷ}");V("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");V("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");V("⟦","\\llbracket");V("⟧","\\rrbracket");V("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}
636{\\mathopen{\\char`⦃}}");V("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");V("⦃","\\lBrace");V("⦄","\\rBrace");V("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");V("⦵","\\minuso");V("\\darr","\\downarrow");V("\\dArr","\\Downarrow");V("\\Darr","\\Downarrow");V("\\lang","\\langle");V("\\rang","\\rangle");V("\\uarr","\\uparrow");V("\\uArr","\\Uparrow");V("\\Uarr","\\Uparrow");V("\\N","\\mathbb{N}");V("\\R","\\mathbb{R}");V("\\Z","\\mathbb{Z}");V("\\alef","\\aleph");V("\\alefsym","\\aleph");V("\\Alpha","\\mathrm{A}");V("\\Beta","\\mathrm{B}");V("\\bull","\\bullet");V("\\Chi","\\mathrm{X}");V("\\clubs","\\clubsuit");V("\\cnums","\\mathbb{C}");V("\\Complex","\\mathbb{C}");V("\\Dagger","\\ddagger");V("\\diamonds","\\diamondsuit");V("\\empty","\\emptyset");V("\\Epsilon","\\mathrm{E}");V("\\Eta","\\mathrm{H}");V("\\exist","\\exists");V("\\harr","\\leftrightarrow");V("\\hArr","\\Leftrightarrow");V("\\Harr","\\Leftrightarrow");V("\\hearts","\\heartsuit");V("\\image","\\Im");V("\\infin","\\infty");V("\\Iota","\\mathrm{I}");V("\\isin","\\in");V("\\Kappa","\\mathrm{K}");V("\\larr","\\leftarrow");V("\\lArr","\\Leftarrow");V("\\Larr","\\Leftarrow");V("\\lrarr","\\leftrightarrow");V("\\lrArr","\\Leftrightarrow");V("\\Lrarr","\\Leftrightarrow");V("\\Mu","\\mathrm{M}");V("\\natnums","\\mathbb{N}");V("\\Nu","\\mathrm{N}");V("\\Omicron","\\mathrm{O}");V("\\plusmn","\\pm");V("\\rarr","\\rightarrow");V("\\rArr","\\Rightarrow");V("\\Rarr","\\Rightarrow");V("\\real","\\Re");V("\\reals","\\mathbb{R}");V("\\Reals","\\mathbb{R}");V("\\Rho","\\mathrm{P}");V("\\sdot","\\cdot");V("\\sect","\\S");V("\\spades","\\spadesuit");V("\\sub","\\subset");V("\\sube","\\subseteq");V("\\supe","\\supseteq");V("\\Tau","\\mathrm{T}");V("\\thetasym","\\vartheta");V("\\weierp","\\wp");V("\\Zeta","\\mathrm{Z}");V("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");V("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");V("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");V("\\bra","\\mathinner{\\langle{#1}|}");V("\\ket","\\mathinner{|{#1}\\rangle}");V("\\braket","\\mathinner{\\langle{#1}\\rangle}");V("\\Bra","\\left\\langle#1\\right|");V("\\Ket","\\left|#1\\right\\rangle");var nG=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var u=d=>m=>{e&&(m.macros.set("|",s),a.length&&m.macros.set("\\|",o));var v=d;if(!d&&a.length){var y=m.future();y.text==="|"&&(m.popToken(),v=!0)}return{tokens:v?a:n,numArgs:0}};t.macros.set("|",u(!1)),a.length&&t.macros.set("\\|",u(!0));var c=t.consumeArg().tokens,h=t.expandTokens([...i,...c,...r]);return t.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};V("\\bra@ket",nG(!1));V("\\bra@set",nG(!0));V("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");V("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");V("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");V("\\angln","{\\angl n}");V("\\blue","\\textcolor{##6495ed}{#1}");V("\\orange","\\textcolor{##ffa500}{#1}");V("\\pink","\\textcolor{##ff00af}{#1}");V("\\red","\\textcolor{##df0030}{#1}");V("\\green","\\textcolor{##28ae7b}{#1}");V("\\gray","\\textcolor{gray}{#1}");V("\\purple","\\textcolor{##9d38bd}{#1}");V("\\blueA","\\textcolor{##ccfaff}{#1}");V("\\blueB","\\textcolor{##80f6ff}{#1}");V("\\blueC","\\textcolor{##63d9ea}{#1}");V("\\blueD","\\textcolor{##11accd}{#1}");V("\\blueE","\\textcolor{##0c7f99}{#1}");V("\\tealA","\\textcolor{##94fff5}{#1}");V("\\tealB","\\textcolor{##26edd5}{#1}");V("\\tealC","\\textcolor{##01d1c1}{#1}");V("\\tealD","\\textcolor{##01a995}{#1}");V("\\tealE","\\textcolor{##208170}{#1}");V("\\greenA","\\textcolor{##b6ffb0}{#1}");V("\\greenB","\\textcolor{##8af281}{#1}");V("\\greenC","\\textcolor{##74cf70}{#1}");V("\\greenD","\\textcolor{##1fab54}{#1}");V("\\greenE","\\textcolor{##0d923f}{#1}");V("\\goldA","\\textcolor{##ffd0a9}{#1}");V("\\goldB","\\textcolor{##ffbb71}{#1}");V("\\goldC","\\textcolor{##ff9c39}{#1}");V("\\goldD","\\textcolor{##e07d10}{#1}");V("\\goldE","\\textcolor{##a75a05}{#1}");V("\\redA","\\textcolor{##fca9a9}{#1}");V("\\redB","\\textcolor{##ff8482}{#1}");V("\\redC","\\textcolor{##f9685d}{#1}");V("\\redD","\\textcolor{##e84d39}{#1}");
vendor: 4,558 bytes, line 636
636V("\\redE","\\textcolor{##bc2612}{#1}");V("\\maroonA","\\textcolor{##ffbde0}{#1}");V("\\maroonB","\\textcolor{##ff92c6}{#1}");V("\\maroonC","\\textcolor{##ed5fa6}{#1}");V("\\maroonD","\\textcolor{##ca337c}{#1}");V("\\maroonE","\\textcolor{##9e034e}{#1}");V("\\purpleA","\\textcolor{##ddd7ff}{#1}");V("\\purpleB","\\textcolor{##c6b9fc}{#1}");V("\\purpleC","\\textcolor{##aa87ff}{#1}");V("\\purpleD","\\textcolor{##7854ab}{#1}");V("\\purpleE","\\textcolor{##543b78}{#1}");V("\\mintA","\\textcolor{##f5f9e8}{#1}");V("\\mintB","\\textcolor{##edf2df}{#1}");V("\\mintC","\\textcolor{##e0e5cc}{#1}");V("\\grayA","\\textcolor{##f6f7f7}{#1}");V("\\grayB","\\textcolor{##f0f1f2}{#1}");V("\\grayC","\\textcolor{##e3e5e6}{#1}");V("\\grayD","\\textcolor{##d6d8da}{#1}");V("\\grayE","\\textcolor{##babec2}{#1}");V("\\grayF","\\textcolor{##888d93}{#1}");V("\\grayG","\\textcolor{##626569}{#1}");V("\\grayH","\\textcolor{##3b3e40}{#1}");V("\\grayI","\\textcolor{##21242c}{#1}");V("\\kaBlue","\\textcolor{##314453}{#1}");V("\\kaGreen","\\textcolor{##71B307}{#1}");var aG={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class l1e{constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new s1e(o1e,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new TM(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new Va("EOF",n.loc)),this.pushTokens(a),new Va("",ba.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new Le("Extra }",i)}else if(i.text==="EOF")throw new Le("Unexpected end of input in a macro argument, expected '"+(t&&n?t[o]:"}")+"'",i);if(t&&n)if((s===0||s===1&&t[o]==="{")&&i.text===t[o]){if(++o,o===t.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new Le("The length of delimiters doesn't match the number of args!");for(var n=r[0],a=0;a<n.length;a++){var i=this.popToken();if(n[a]!==i.text)throw new Le("Use of the macro doesn't match its definition",i)}}for(var s=[],o=0;o<t;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Le("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||t&&a.unexpandable){if(t&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new Le("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var u=i[o];if(u.text==="#"){if(o===0)throw new Le("Incomplete placeholder at end of macro body",u);if(u=i[--o],u.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(u.text))i.splice(o,2,...s[+u.text-1]);else throw new Le("Not a valid argument number",u)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Va(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];
vendor: 5,115 bytes, line 636
636if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.indexOf("#")!==-1)for(var s=a.replace(/##/g,"");s.indexOf("#"+(i+1))!==-1;)++i;for(var o=new TM(a,this.settings),u=[],c=o.lex();c.text!=="EOF";)u.push(c),c=o.lex();u.reverse();var h={tokens:u,numArgs:i};return h}return a}isDefined(t){return this.macros.has(t)||gl.hasOwnProperty(t)||vr.math.hasOwnProperty(t)||vr.text.hasOwnProperty(t)||aG.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:gl.hasOwnProperty(t)&&!gl[t].primitive}}var OM=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Qg=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),o3={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},kM={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ
vendor: 16,784 bytes, lines 636-638
636:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let iG=class sG{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new l1e(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new Le("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Va("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(sG.endOfExpression.indexOf(a.text)!==-1||r&&a.text===r||t&&gl[a.text]&&gl[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,a=0;a<t.length;a++)if(t[a].type==="infix"){if(r!==-1)throw new Le("only one infix operator per group",t[a].token);r=a,n=t[a].replaceWith}if(r!==-1&&n){var i,s,o=t.slice(0,r),u=t.slice(r+1);o.length===1&&o[0].type==="ordgroup"?i=o[0]:i={type:"ordgroup",mode:this.mode,body:o},u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u};var c;return n==="\\\\abovefrac"?c=this.callFunction(n,[i,t[r],s],[]):c=this.callFunction(n,[i,s],[]),[c]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(t)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new Le("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var a={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var n,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op"){var s=i.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new Le("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new Le("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new Le("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new Le("Double superscript",i);var o={type:"textord",mode:this.mode,text:"\\prime"},u=[o];for(this.consume();this.fetch().text==="'";)u.push(o),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:u}}else if(Qg[i.text]){var c=OM.test(i.text),h=[];for(h.push(new Va(Qg[i.text])),this.consume();;){var d=this.fetch().text;if(!Qg[d]||OM.test(d)!==c)break;h.unshift(new Va(Qg[d])),this.consume()}var m=this.subparse(h);c?a={type:"ordgroup",mode:"math",body:m}:n={type:"ordgroup",mode:"math",body:m}}else break}return n||a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:r}parseFunction(t,r){var n=this.fetch(),a=n.text,i=gl[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new Le("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new Le("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new Le("Can't use function '"+a+"' in math mode",n);var{args:s,optArgs:o}=this.parseArguments(a,i);return this.callFunction(a,s,o,n,t)}callFunction(t,r,n,a,i){var s={funcName:t,parser:this,token:a,breakOnTokenText:i},o=gl[t];if(o&&o.handler)return o.handler(s,r,n);throw new Le("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var a=[],i=[],s=0;s<n;s++){var o=r.argTypes&&r.argTypes[s],u=s<r.numOptionalArgs;(r.primitive&&o==null||r.type==="sqrt"&&s===1&&i[0]==null)&&(o="primitive");var c=this.parseGroupOfType("argument to '"+t+"'",o,u);if(u)i.push(c);else if(c!=null)a.push(c);else throw new Le("Null argument, please report this as a bug")}return{args:a,optArgs:i}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",n);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(n)throw new Le("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new Le("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new Le("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var a="",i;(i=this.fetch()).text!=="EOF";)a+=i.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(t,r){for(var n=this.fetch(),a=n,i="",s;(s=this.fetch()).text!=="EOF"&&t.test(i+s.text);)a=s,i+=a.text,this.consume();if(i==="")throw new Le("Invalid "+r+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new Le("Invalid color: '"+r.text+"'",r);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new Le("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!pV(i))throw new Le("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var a=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return r&&this.switchMode(a),s}parseGroup(t,r){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var s=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),u=this.fetch();this.expect(s),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:ba.range(n,u),body:o,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,t)||this.parseSymbol(),i==null&&a[0]==="\\"&&!aG.hasOwnProperty(a)){if(this.settings.throwOnError)throw new Le("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var a=t[n],i=a.text;i==="-"&&t[n+1].text==="-"&&(n+1<r&&t[n+2].text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:ba.range(a,t[n+2]),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:ba.range(a,t[n+1]),text:"--"}),r-=1)),(i==="'"||i==="`")&&t[n+1].text===i&&(t.splice(n,2,{type:"textord",mode:"text",loc:ba.range(a,t[n+1]),text:i+i}),r-=1)}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new Le(`\\verb assertion failed --
637                    please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}kM.hasOwnProperty(r[0])&&!vr[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=kM[r[0]]+r.slice(1));var i=a1e.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(vr[this.mode][r]){this.settings.strict&&this.mode==="math"&&k_.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var o=vr[this.mode][r].group,u=ba.range(t),c;if(Kme.hasOwnProperty(o)){var h=o;c={type:"atom",mode:this.mode,family:h,loc:u,text:r}}else c={type:o,mode:this.mode,loc:u,text:r};s=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(dV(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:ba.range(t),text:r};else return null;if(this.consume(),i)for(var d=0;d<i[0].length;d++){var m=i[0][d];if(!o3[m])throw new Le("Unknown accent ' "+m+"'",t);var v=o3[m][this.mode]||o3[m].text;if(!v)throw new Le("Accent "+m+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:ba.range(t),label:v,isStretchy:!1,isShifty:!0,base:s}}return s}};iG.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var VA=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new iG(t,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new Le("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new Va("\\df@tag")])}]}return a},GA=function(t,r,n){r.textContent="";var a=nb(t,n).toNode();r.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),GA=function(){throw new Le("KaTeX doesn't work in quirks mode.")});var oG=function(t,r){var n=nb(t,r).toMarkup();return n},lG=function(t,r){var n=new CA(r);return VA(t,n)},uG=function(t,r,n){if(n.throwOnError||!(t instanceof Le))throw t;var a=ge.makeSpan(["katex-error"],[new bi(r)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+n.errorColor),a},nb=function(t,r){var n=new CA(r);try{var a=VA(t,n);return bge(a,t,n)}catch(i){return uG(i,t,n)}},cG=function(t,r){var n=new CA(r);try{var a=VA(t,n);return xge(a,t,n)}catch(i){return uG(i,t,n)}},fG="0.16.25",dG={Span:Wp,Anchor:NA,SymbolNode:bi,SvgNode:yo,PathNode:kl,LineNode:O_},D_={version:fG,render:GA,renderToString:oG,ParseError:Le,SETTINGS_SCHEMA:yh,__parse:lG,__renderToDomTree:nb,__renderToHTMLTree:cG,__setFontMetrics:hV,__defineSymbol:R,__defineFunction:He,__defineMacro:V,__domTree:dG};const vje=Object.freeze(Object.defineProperty({__proto__:null,ParseError:Le,SETTINGS_SCHEMA:yh,__defineFunction:He,__defineMacro:V,__defineSymbol:R,__domTree:dG,__parse:lG,__renderToDomTree:nb,__renderToHTMLTree:cG,__setFontMetrics:hV,default:D_,get render(){return GA},renderToString:oG,version:fG},Symbol.toStringTag,{value:"Module"})),u1e={},c1e=[];function f1e(e){const t=e||u1e;return function(r,n){SA(r,"element",function(a,i){const s=Array.isArray(a.properties.className)?a.properties.className:c1e,o=s.includes("language-math"),u=s.includes("math-display"),c=s.includes("math-inline");let h=u;if(!o&&!u&&!c)return;let d=i[i.length-1],m=a;if(a.tagName==="code"&&o&&d&&d.type==="element"&&d.tagName==="pre"&&(m=d,d=i[i.length-2],h=!0),!d)return;const v=ume(m,{whitespace:"pre"});let y;try{y=D_.renderToString(v,{...t,displayMode:h,throwOnError:!0})}catch(E){const _=E,T=_.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...i,a],cause:_,place:a.position,ruleId:T,source:"rehype-katex"});try{y=D_.renderToString(v,{...t,displayMode:h,strict:"ignore",throwOnError:!1})}catch{y=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(E)},children:[{type:"text",value:v}]}]}}typeof y=="string"&&(y=tme(y).children);const b=d.children.indexOf(m);return d.children.splice(b,1,...y),K1})}}function d1e(e){const t=String(e),r=[];return{toOffset:a,toPoint:n};function n(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let o=r[s];if(o===void 0){const u=NM(t,r[s-1]);o=u===-1?t.length+1:u+1,r[s]=o}if(o>i)return{line:s+1,column:i-(s>0?r[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;r.length<i.line;){const o=r[r.length-1],u=NM(t,o),c=u===-1?t.length+1:u+1;if(o===c)break;r.push(c)}const s=(i.line>1?r[i.line-2]:0)+i.column-1;if(s<r[i.line-1])return s}}}function NM(e,t){const r=e.indexOf("\r",t),n=e.indexOf(`
638`,t);return n===-1?r:r===-1||r+1===n?n:r<n?r:n}const hG={}.hasOwnProperty,h1e=Object.prototype;function p1e(e,t){const r=t||{};return WA({file:r.file||void 0,location:!1,schema:r.space==="svg"?Il:Up,verbose:r.verbose||!1},e)}function WA(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},M1(e,n,r),r}case"#document":case"#document-fragment":{const n=t,a="mode"in n?n.mode==="quirks"||n.mode==="limited-quirks":!1;if(r={type:"root",children:pG(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=d1e(i),o=s.toPoint(0),u=s.toPoint(i.length);r.position={start:o,end:u}}return r}case"#documentType":{const n=t;return r={type:"doctype"},M1(e,n,r),r}case"#text":{const n=t;return r={type:"text",value:n.value},M1(e,n,r),r}default:return r=m1e(e,t),r}}function pG(e,t){let r=-1;const n=[];for(;++r<t.length;){const a=WA(e,t[r]);n.push(a)}return n}function m1e(e,t){const r=e.schema;e.schema=t.namespaceURI===ds.svg?Il:Up;let n=-1;const a={};for(;++n<t.attrs.length;){const o=t.attrs[n],u=(o.prefix?o.prefix+":":"")+o.name;hG.call(h1e,u)||(a[u]=o.value)}const s=(e.schema.space==="svg"?aV:nV)(t.tagName,a,pG(e,t.childNodes));if(M1(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,c=u&&u.startTag&&_f(u.startTag),h=u&&u.endTag&&_f(u.endTag),d=WA(e,o.content);c&&h&&e.file&&(d.position={start:c.end,end:h.start}),s.content=d}return e.schema=r,s}function M1(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=g1e(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function g1e(e,t,r){const n=_f(r);if(t.type==="element"){const a=t.children[t.children.length-1];if(n&&!r.endTag&&a&&a.position&&a.position.end&&(n.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(r.attrs)for(s in r.attrs)hG.call(r.attrs,s)&&(i[Vy(e.schema,s).property]=_f(r.attrs[s]));r.startTag;const o=_f(r.startTag),u=r.endTag?_f(r.endTag):void 0,c={opening:o};u&&(c.closing=u),c.properties=i,t.data={position:c}}}return n}function _f(e){const t=RM({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=RM({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function RM(e){return e.line&&e.column?e:void 0}class Xp{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}Xp.prototype.property={};Xp.prototype.normal={};Xp.prototype.space=null;function mG(e,t){const r={},n={};let a=-1;for(;++a<e.length;
vendor: 4,196 bytes, line 638
638)Object.assign(r,e[a].property),Object.assign(n,e[a].normal);return new Xp(r,n,t)}function L_(e){return e.toLowerCase()}class _i{constructor(t,r){this.property=t,this.attribute=r}}_i.prototype.space=null;_i.prototype.boolean=!1;_i.prototype.booleanish=!1;_i.prototype.overloadedBoolean=!1;_i.prototype.number=!1;_i.prototype.commaSeparated=!1;_i.prototype.spaceSeparated=!1;_i.prototype.commaOrSpaceSeparated=!1;_i.prototype.mustUseProperty=!1;_i.prototype.defined=!1;let v1e=0;const gt=sc(),Zr=sc(),gG=sc(),Be=sc(),mr=sc(),Mf=sc(),Da=sc();function sc(){return 2**++v1e}const j_=Object.freeze(Object.defineProperty({__proto__:null,boolean:gt,booleanish:Zr,commaOrSpaceSeparated:Da,commaSeparated:Mf,number:Be,overloadedBoolean:gG,spaceSeparated:mr},Symbol.toStringTag,{value:"Module"})),l3=Object.keys(j_);class YA extends _i{constructor(t,r,n,a){let i=-1;if(super(t,r),MM(this,"space",a),typeof n=="number")for(;++i<l3.length;){const s=l3[i];MM(this,l3[i],(n&j_[s])===j_[s])}}}YA.prototype.defined=!0;function MM(e,t,r){r&&(e[t]=r)}const y1e={}.hasOwnProperty;function N0(e){const t={},r={};let n;for(n in e.properties)if(y1e.call(e.properties,n)){const a=e.properties[n],i=new YA(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[L_(n)]=n,r[L_(i.attribute)]=n}return new Xp(t,r,e.space)}const vG=N0({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),yG=N0({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function bG(e,t){return t in e?e[t]:t}function xG(e,t){return bG(e,t.toLowerCase())}const EG=N0({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xG,properties:{xmlns:null,xmlnsXLink:null}}),wG=N0({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Zr,ariaAutoComplete:null,ariaBusy:Zr,ariaChecked:Zr,ariaColCount:Be,ariaColIndex:Be,ariaColSpan:Be,ariaControls:mr,ariaCurrent:null,ariaDescribedBy:mr,ariaDetails:null,ariaDisabled:Zr,ariaDropEffect:mr,ariaErrorMessage:null,ariaExpanded:Zr,ariaFlowTo:mr,ariaGrabbed:Zr,ariaHasPopup:null,ariaHidden:Zr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:mr,ariaLevel:Be,ariaLive:null,ariaModal:Zr,ariaMultiLine:Zr,ariaMultiSelectable:Zr,ariaOrientation:null,ariaOwns:mr,ariaPlaceholder:null,ariaPosInSet:Be,ariaPressed:Zr,ariaReadOnly:Zr,ariaRelevant:null,ariaRequired:Zr,ariaRoleDescription:mr,ariaRowCount:Be,ariaRowIndex:Be,ariaRowSpan:Be,ariaSelected:Zr,ariaSetSize:Be,ariaSort:null,ariaValueMax:Be,ariaValueMin:Be,ariaValueNow:Be,ariaValueText:null,role:null}}),b1e=N0({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:xG,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mf,acceptCharset:mr,accessKey:mr,action:null,allow:null,allowFullScreen:gt,allowPaymentRequest:gt,allowUserMedia:gt,alt:null,as:null,async:gt,autoCapitalize:null,autoComplete:mr,autoFocus:gt,autoPlay:gt,blocking:mr,capture:null,charSet:null,checked:gt,cite:null,className:mr,cols:Be,colSpan:null,content:null,contentEditable:Zr,controls:gt,controlsList:mr,coords:Be|Mf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:gt,defer:gt,dir:null,dirName:null,disabled:gt,download:gG,draggable:Zr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:gt,formTarget:null,headers:mr,height:Be,hidden:gt,high:Be,href:null,hrefLang:null,htmlFor:mr,httpEquiv:mr,id:null,imageSizes:null,imageSrcSet:null,inert:gt,inputMode:null,integrity:null,is:null,isMap:gt,itemId:null,itemProp:mr,itemRef:mr,itemScope:gt,itemType:mr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:gt,low:Be,manifest:null,max:null,maxLength:Be,media:null,method:null,min:null,minLength:Be,multiple:gt,muted:gt,name:null,nonce:null,noModule:gt,noValidate:gt,onAbort:null,onAfterPrint:null,onAuxCl
638ick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:gt,optimum:Be,pattern:null,ping:mr,placeholder:null,playsInline:gt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:gt,referrerPolicy:null,rel:mr,required:gt,reversed:gt,rows:Be,rowSpan:Be,sandbox:mr,scope:null,scoped:gt,seamless:gt,selected:gt,shadowRootClonable:gt,shadowRootDelegatesFocus:gt,shadowRootMode:null,shape:null,size:Be,sizes:null,slot:null,span:Be,spellCheck:Zr,src:null,
638srcDoc:null,srcLang:null,srcSet:null,start:Be,step:null,style:null,tabIndex:Be,target:null,title:null,translate:null,type:null,typeMustMatch:gt,useMap:null,value:Zr,width:Be,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:mr,axis:null,background:null,bgColor:null,border:Be,borderColor:null,bottomMargin:Be,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:gt,declare:gt,event:null,face:null,frame:null,frameBorder:null,hSpace:Be,leftMargin:Be,link:null,longDesc:null,lowSrc:null,marginHeight:Be,marginWidth:Be,noResize:gt,noHref:gt,noShade:gt,noWrap:gt,object:null,profile:null,prompt:null,rev:null,rightMargin:Be,rules:null,scheme:null,scrolling:Zr,standby:null,summary:null,text:null,topMargin:Be,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Be,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:gt,disableRemotePlayback:gt,prefix:null,property:null,results:Be,security:null,unselectable:null}}),x1e=N0({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
638-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:bG,properties:{about:Da,accentHeight:Be,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Be,amplitude:Be,arabicForm:null,ascent:Be,attributeName:null,attributeType:null,azimuth:Be,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Be,by:null,calcMode:null,capHeight:Be,className:mr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Be,diffuseConstant:Be,direction:null,display:null,dur:null,divisor:Be,dominantBaseline:null,download:gt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Be,enableBackground:null,end:null,event:null,exponent:Be,externalResourcesRequired:null,fill:null,fillOpacity:Be,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Mf,g2:Mf,glyphName:Mf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Be,horizOriginX:Be,horizOriginY:Be,id:null,ideographic:Be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Be,k:Be,k1:Be,k2:Be,k3:Be,k4:Be,kernelMatrix:Da,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Be,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Be,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,111 bytes, line 638
638Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Be,overlineThickness:Be,paintOrder:null,panose1:null,path:null,pathLength:Be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:mr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Be,pointsAtY:Be,pointsAtZ:Be,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Da,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Da,rev:Da,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Da,requiredFeatures:Da,requiredFonts:Da,requiredFormats:Da,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Be,specularExponent:Be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Be,strikethroughThickness:Be,string:null,stroke:null,strokeDashArray:Da,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Be,strokeOpacity:Be,strokeWidth:null,style:null,surfaceScale:Be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Da,tabIndex:Be,tableValues:null,target:null,targetX:Be,targetY:Be,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Da,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Be,underlineThickness:Be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Be,values:null,vAlphabetic:Be,vMathematical:Be,vectorEffect:null,vHanging:Be,vIdeographic:Be,version:null,vertAdvY:Be,vertOriginX:Be,vertOriginY:Be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),E1e=/^data[-\w.:]+$/i,PM=/-[a-z]/g,w1e=/[A-Z]/g;function _1e(e,t){const r=L_(t);let n=t,a=_i;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&E1e.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(PM,T1e);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!PM.test(i)){let s=i.replace(w1e,S1e);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=YA}return new a(n,t)}function S1e(e){return"-"+e.toLowerCase()}function T1e(e){return e.charAt(1).toUpperCase()}const A1e=mG([yG,vG,EG,wG,b1e],"html"),_G=mG([yG,vG,EG,wG,x1e],"svg"),IM={}.hasOwnProperty;function XA(e,t){const r=t||{};function n(a,...i){let s=n.invalid;const o=n.handlers;if(a&&IM.call(a,e)){const u=String(a[e]);s=IM.call(o,u)?o[u]:n.unknown}if(s)return s.call(this,a,...i)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const C1e={},O1e={}.hasOwnProperty,SG=XA("type",{handlers:{root:N1e,element:D1e,text:P1e,comment:I1e,doctype:M1e}});function k1e(e,t){const n=(t||C1e).space;return SG(e,n==="svg"?_G:A1e)}function N1e(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=KA(e.children,r,t),R0(e,r),r}function R1e(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=KA(e.children,r,t),R0(e,r),r}function M1e(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return R0(e,t),t}function P1e(e){const t={nodeName:"#text",value:e.value,parentNode:null};return R0(e,t),t}function I1e(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return R0(e,t),t}function D1e(e,t){const r=t;let n=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=_G);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&O1e.call(e.properties,i)){const u=L1e(n,i,e.properties[i]);u&&a.push(u)}}const s=n.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:ds[s],childNodes:[],parentNode:null};return o.childNodes=KA(e.children,o,n),R0(e,o),e.tagName==="template"&&e.content&&(o.content=R1e(e.content,n)),o}function L1e(e,t,r){const n=_1e(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?fA(r):hA(r));const a={name:n.attribute,value:r===!0?"":String(r)};if(n.space&&n.space!=="html"&&n.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=n.attribute.slice(0,i)),a.namespace=ds[n.space]}return a}function KA(e,t,r){let n=-1;const a=[];if(e)for(;++n<e.length;){const i=SG(e[n],r);i.parentNode=t,a.push(i)}return a}function R0(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const TG=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","
638image","img","input","keygen","link","meta","param","source","track","wbr"],j1e=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Sr="�";var K;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(K||(K={}));const ma={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function AG(e){return e>=55296&&e<=57343}function B1e(e){return e>=56320&&e<=57343}function z1e(e,t){return(e-55296)*1024+9216+t}function CG(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function OG(e){return e>=64976&&e<=65007||j1e.has(e)}var _e;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invali
vendor: 4,085 bytes, line 638
638dCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(_e||(_e={}));const $1e=65536;class F1e{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=$1e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:n,col:a,offset:i}=this,s=a+r,o=i+r;return{code:t,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(B1e(r))return this.pos++,this._addGap(),z1e(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,K.EOF;return this._err(_e.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,K.EOF;const n=this.html.charCodeAt(r);return n===K.CARRIAGE_RETURN?K.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,K.EOF;let t=this.html.charCodeAt(this.pos);return t===K.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,K.LINE_FEED):t===K.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,AG(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===K.LINE_FEED||t===K.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){CG(t)?this._err(_e.controlCharacterInInputStream):OG(t)&&this._err(_e.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var St;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(St||(St={}));function kG(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}
638const U1e=new Uint16Array('
vendor: 16,129 bytes, line 638
638ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms�„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;æ«§ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapÓºÓ¾cr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpÔ¦Ôªon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋ĀipÕªÕ¯sts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0Ö£mallSquare;旼erySmallSquare;斪Ͱֺ\0Ö¿\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0Ú²f;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgÜ´Ü·r;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyÞ±Þµrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āeyß¶ß»dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;æ««y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;æ©°cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;æ§«riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0á ±;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0á«¢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;æ©­nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0á­µr;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;oá³§á³°ntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;æ§¶rok;䄑Ādrá¶°á¶´ot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;æ§£us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0á¾½g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;
vendor: 4,294 bytes, line 638
638䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;
vendor: 6,210 bytes, line 638
638astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌
638'.split("").map(e=>e.charCodeAt(0))),H1e=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function q1e(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=H1e.get(e))!==null&&t!==void 0?t:e}var wn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(wn||(wn={}));const V1e=32;var vl;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(vl||(vl={}));function B_(e){return e>=wn.ZERO&&e<=wn.NINE}function G1e(e){return e>=wn.UPPER_A&&e<=wn.UPPER_F||e>=wn.LOWER_A&&e<=wn.LOWER_F}function W1e(e){return e>=wn.UPPER_A&&e<=wn.UPPER_Z||e>=wn.LOWER_A&&e<=wn.LOWER_Z||B_(e)}function Y1e(e){return e===wn.EQUALS||W1e(e)}var bn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(bn||(bn={}));var to;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(to||(to={}));class X1e{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=bn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=to.Strict}startEntity(t){this.decodeMode=t,this.state=bn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case bn.EntityStart:return t.charCodeAt(r)===wn.NUM?(this.state=bn.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=bn.NamedEntity,this.stateNamedEntity(t,r));case bn.NumericStart:return this.stateNumericStart(t,r);case bn.NumericDecimal:return this.stateNumericDecimal(t,r);case bn.NumericHex:return this.stateNumericHex(t,r);case bn.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|V1e)===wn.LOWER_X?(this.state=bn.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=bn.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,a){if(r!==n){const i=n-r;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(r,i),a),this.consumed+=i}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(B_(a)||G1e(a))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(B_(a))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===wn.SEMI)this.consumed+=1;else if(this.decodeMode===to.Strict)return 0;return this.emitCodePoint(q1e(this.result),this.consumed),this.errors&&(t!==wn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let a=n[this.treeIndex],i=(a&vl.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=K1e(n,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===to.Attribute&&(i===0||Y1e(s))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],i=(a&vl.VALUE_LENGTH)>>14,i!==0){if(s===wn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==to.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,a=(n[r]&vl.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:a}=this;return this.emitCodePoint(r===1?a[t]&~vl.VALUE_LENGTH:a[t+1],n),r===3&&this.emitCodePoint(a[t+2],n),n}end(){var t;switch(this.state){case bn.NamedEntity:return this.result!==0&&(this.decodeMode!==to.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case bn.NumericDecimal:return this.emitNumericEntity(0,2);case bn.NumericHex:return this.emitNumericEntity(0,3);case bn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case bn.EntityStart:return 0}}}function K1e(e,t,r,n){const a=(t&vl.BRANCH_LENGTH)>>7,i=t&vl.JUMP_TABLE;if(a===0)return i!==0&&n===i?r:-1;if(i){const u=n-i;return u<0||u>=a?-1:e[r+u]-1}let s=r,o=s+a-1;for(;s<=o;){const u=s+o>>>1,c=e[u];if(c<n)s=u+1;else if(c>n)o=u-1;else return e[u+a]}return-1}var Me;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Me||(Me={}));var Ou;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ou||(Ou={}));var ci;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ci||(ci={}));var pe;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="str
638ike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(pe||(pe={}));var A;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(A||(A={}));const Q1e=new Map([[pe.A,A.A],[pe.ADDRESS,A.ADDRESS],[pe.ANNOTATION_XML,A.ANNOTATION_XML],[pe.APPLET,A.APPLET],[pe.AREA,A.AREA],[pe.ARTICLE,A.ARTICLE],[pe.ASIDE,A.ASIDE],[pe.B,A.B],[pe.BASE,A.BASE],[pe.BASEFONT,A.BASEFONT],[pe.BGSOUND,A.BGSOUND],[pe.BIG,A.BIG],[pe.BLOCKQUOTE,A.BLOCKQUOTE],[pe.BODY,A.BODY],[pe.BR,A.BR],[pe.BUTTON,A.BUTTON],[pe.CAPTION,A.CAPTION],[pe.CENTER,A.CENTER],[pe.CODE,A.CODE],[pe.COL,A.COL],[pe.COLGROUP,A.COLGROUP],[pe.DD,A.DD],[pe.DESC,A.DESC],[pe.DETAILS,A.DETAILS],[pe.DIALOG,A.DIALOG],[pe.DIR,A.DIR],[pe.DIV,A.DIV],[pe.DL,A.DL],[pe.DT,A.DT],[pe.EM,A.EM],[pe.EMBED,A.EMBED],[pe.FIELDSET,A.FIELDSET],[pe.FIGCAPTION,A.FIGCAPTION],[pe.FIGURE,A.FIGURE],[pe.FONT,A.FONT],[pe.FOOTER,A.FOOTER],[pe.FOREIGN_OBJECT,A.FOREIGN_OBJECT],[pe.FORM,A.FORM],[pe.FRAME,A.FRAME],[pe.FRAMESET,A.FRAMESET],[pe.H1,A.H1],[pe.H2,A.H2],[pe.H3,A.H3],[pe.H4,A.H4],[pe.H5,A.H5],[pe.H6,A.H6],[pe.HEAD,A.HEAD],[pe.HEADER,A.HEADER],[pe.HGROUP,A.HGROUP],[pe.HR,A.HR],[pe.HTML,A.HTML],[pe.I,A.I],[pe.IMG,A.IMG],[pe.IMAGE,A.IMAGE],[pe.INPUT,A.INPUT],[pe.IFRAME,A.IFRAME],[pe.KEYGEN,A.KEYGEN],[pe.LABEL,A.LABEL],[pe.LI,A.LI],[pe.LINK,A.LINK],[pe.LISTING,A.LISTING],[pe.MAIN,A.MAIN],[pe.MALIGNMARK,A.MALIGNMARK],[pe.MARQUEE,A.MARQUEE],[pe.MATH,A.MATH],[pe.MENU,A.MENU],[pe.META,A.META],[pe.MGLYPH,A.MGLYPH],[pe.MI,A.MI],[pe.MO,A.MO],[pe.MN,A.MN],[pe.MS,A.MS],[pe.MTEXT,A.MTEXT],[pe.NAV,A.NAV],[pe.NOBR,A.NOBR],[pe.NOFRAMES,A.NOFRAMES],[pe.NOEMBED,A.NOEMBED],[pe.NOSCRIPT,A.NOSCRIPT],[pe.OBJECT,A.OBJECT],[pe.OL,A.OL],[pe.OPTGROUP,A.OPTGROUP],[pe.OPTION,A.OPTION],[pe.P,A.P],[pe.PARAM,A.PARAM],[pe.PLAINTEXT,A.PLAINTEXT],[pe.PRE,A.PRE],[pe.RB,A.RB],[pe.RP,A.RP],[pe.RT,A.RT],[pe.RTC,A.RTC],[pe.RUBY,A.RUBY],[pe.S,A.S],[pe.SCRIPT,A.SCRIPT],[pe.SEARCH,A.SEARCH],[pe.SECTION,A.SECTION],[pe.SELECT,A.SELECT],[pe.SOURCE,A.SOURCE],[pe.SMALL,A.SMALL],[pe.SPAN,A.SPAN],[pe.STRIKE,A.STRIKE],[pe.STRONG,A.STRONG],[pe.STYLE,A.STYLE],[pe.SUB,A.SUB],[pe.SUMMARY,A.SUMMARY],[pe.SUP,A.SUP],[pe.TABLE,A.TABLE],[pe.TBODY,A.TBODY],[pe.TEMPLATE,A.TEMPLATE],[pe.TEXTAREA,A.TEXTAREA],[pe.TFOOT,A.TFOOT],[pe.TD,A.TD],[pe.TH,A.TH],[pe.THEAD,A.THEAD],[pe.TITLE,A.TITLE],[pe.TR,A.TR],[pe.TRACK,A.TRACK],[pe.TT,A.TT],[pe.U,A.U],[pe.UL,A.UL],[pe.SVG,A.SVG],[pe.VAR,A.VAR],[pe.WBR,A.WBR],[pe.XMP,A.XMP]]);function M0(e){var t;return(t=Q1e.get(e))!==null&&t!==void 0?t:A.UNKNOWN}const Ie=A,Z1e={[Me.HTML]:new Set([Ie.ADDRESS,Ie.APPLET,Ie.AREA,Ie.ARTICLE,Ie.ASIDE,Ie.BASE,Ie.BASEFONT,Ie.BGSOUND,Ie.BLOCKQUOTE,Ie.BODY,Ie.BR,Ie.BUTTON,Ie.CAPTION,Ie.CENTER,Ie.COL,Ie.COLGROUP,Ie.DD,Ie.DETAILS,Ie.DIR,Ie.DIV,Ie.DL,Ie.DT,Ie.EMBED,Ie.FIELDSET,Ie.FIGCAPTION,Ie.FIGURE,Ie.FOOTER,Ie.FORM,Ie.FRAME,Ie.FRAMESET,Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6,Ie.HEAD,Ie.HEADER,Ie.HGROUP,Ie.HR,Ie.HTML,Ie.IFRAME,Ie.IMG,Ie.INPUT,Ie.LI,Ie.LINK,Ie.LISTING,Ie.MAIN,Ie.MARQUEE,Ie.MENU,Ie.META,Ie.NAV,Ie.NOEMBED,Ie.NOFRAMES,Ie.NOSCRIPT,Ie.OBJECT,Ie.OL,Ie.P,Ie.PARAM,Ie.PLAINTEXT,Ie.PRE,Ie.SCRIPT,Ie.SECTION,Ie.SELECT,Ie.SOURCE,Ie.STYLE,Ie.SUMMARY,Ie.TABLE,Ie.TBODY,Ie.TD,Ie.TEMPLATE,Ie.TEXTAREA,Ie.TFOOT,Ie.TH,Ie.THEAD,Ie.TITLE,Ie.TR,Ie.TRACK,Ie.UL,Ie.WBR,Ie.XMP]),[Me.MATHML]:new Set([Ie.MI,Ie.MO,Ie.MN,Ie.MS,Ie.MTEXT,Ie.ANNOTATION_XML]),[Me.SVG]:new Set([Ie.TITLE,Ie.FOREIGN_OBJECT,Ie.DESC]),[Me.XLINK]:new Set,[Me.XML]:new Set,[Me.XMLNS]:new Set},z_=new Set([Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6]);pe.STYLE,pe.SCRIPT,pe.XMP,pe.IFRAME,pe.NOEMBED,pe.NOFRAMES,pe.PLAINTEXT;var ne;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ne||(ne={}));const Ur={DATA:ne.DATA,RCDATA:ne.RCDATA,RAWTEXT:ne.RAWTEXT,SCRIPT_DATA:ne.SCRIPT_DATA,PLAINTEXT:ne.PLAINTEXT,CDATA_SECTION:ne.CDATA_SECTION};function J1e(e){return e>=K.DIGIT_0&&e<=K.DIGIT_9}function oh(e){return e>=K.LATIN_CAPITAL_A&&e<=K.LATIN_CAPITAL_Z}function eve(e){return e>=K.LATIN_SMALL_A&&e<=K.LATIN_SMALL_Z}function ul(e){return eve(e)||oh(e)}function DM(e){return ul(e)||J1e(e)}function Zg(e){return e+32}function NG(e){return e===K.SPACE||e===K.LINE_FEED||e===K.TABULATION||e===K.FORM_FEED}function LM(e){return NG(e)||e===K.SOLIDUS||e===K.GREATER_THAN_SIGN}
vendor: 111,052 bytes, line 638
638function tve(e){return e===K.NULL?_e.nullCharacterReference:e>1114111?_e.characterReferenceOutsideUnicodeRange:AG(e)?_e.surrogateCharacterReference:OG(e)?_e.noncharacterCharacterReference:CG(e)||e===K.CARRIAGE_RETURN?_e.controlCharacterReference:null}class rve{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ne.DATA,this.returnState=ne.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new F1e(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new X1e(U1e,(n,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(_e.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(_e.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const a=tve(n);a&&this._err(a,1)}}:void 0)}_err(t,r=0){var n,a;(a=(n=this.handler).onParseError)===null||a===void 0||a.call(n,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:St.START_TAG,tagName:"",tagID:A.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:St.END_TAG,tagName:"",tagID:A.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:St.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:St.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const n=this.currentToken;if(kG(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const a=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(_e.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=M0(t.tagName),t.type===St.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(_e.endTagWithAttributes),t.selfClosing&&this._err(_e.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case St.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case St.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case St.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:St.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=NG(t)?St.WHITESPACE_CHARACTER:t===K.NULL?St.NULL_CHARACTER:St.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(St.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=ne.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?to.Attribute:to.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ne.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ne.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ne.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ne.DATA:{this._stateData(t);break}case ne.RCDATA:{this._stateRcdata(t);break}case ne.RAWTEXT:{this._stateRawtext(t);break}case ne.SCRIPT_DATA:{this._stateScriptData(t);break}case ne.PLAINTEXT:{this._statePlaintext(t);break}case ne.TAG_OPEN:{this._stateTagOpen(t);break}case ne.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ne.TAG_NAME:{this._stateTagName(t);break}case ne.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ne.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ne.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ne.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ne.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ne.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ne.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ne.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ne.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ne.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ne.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ne.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ne.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ne.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ne.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ne.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ne.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ne.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ne.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ne.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ne.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ne.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ne.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ne.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ne.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ne.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ne.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ne.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ne.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ne.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ne.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ne.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ne.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ne.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ne.COMMENT_START:{this._stateCommentStart(t);break}case ne.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ne.COMMENT:{this._stateComment(t);break}case ne.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ne.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ne.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ne.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ne.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ne.COMMENT_END:{this._stateCommentEnd(t);break}case ne.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ne.DOCTYPE:{this._stateDoctype(t);break}case ne.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ne.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ne.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ne.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ne.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ne.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ne.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ne.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ne.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ne.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ne.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ne.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ne.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ne.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ne.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ne.CDATA_SECTION:{this._stateCdataSection(t);break}case ne.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ne.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ne.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case ne.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case K.LESS_THAN_SIGN:{this.state=ne.TAG_OPEN;break}case K.AMPERSAND:{this._startCharacterReference();break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this._emitCodePoint(t);break}case K.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case K.AMPERSAND:{this._startCharacterReference();break}case K.LESS_THAN_SIGN:{this.state=ne.RCDATA_LESS_THAN_SIGN;break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sr);break}case K.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case K.LESS_THAN_SIGN:{this.state=ne.RAWTEXT_LESS_THAN_SIGN;break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sr);break}case K.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case K.LESS_THAN_SIGN:{this.state=ne.SCRIPT_DATA_LESS_THAN_SIGN;break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sr);break}case K.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case K.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sr);break}case K.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ul(t))this._createStartTagToken(),this.state=ne.TAG_NAME,this._stateTagName(t);else switch(t){case K.EXCLAMATION_MARK:{this.state=ne.MARKUP_DECLARATION_OPEN;break}case K.SOLIDUS:{this.state=ne.END_TAG_OPEN;break}case K.QUESTION_MARK:{this._err(_e.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ne.BOGUS_COMMENT,this._stateBogusComment(t);break}case K.EOF:{this._err(_e.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(_e.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ne.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ul(t))this._createEndTagToken(),this.state=ne.TAG_NAME,this._stateTagName(t);else switch(t){case K.GREATER_THAN_SIGN:{this._err(_e.missingEndTagName),this.state=ne.DATA;break}case K.EOF:{this._err(_e.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(_e.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ne.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:{this.state=ne.BEFORE_ATTRIBUTE_NAME;break}case K.SOLIDUS:{this.state=ne.SELF_CLOSING_START_TAG;break}case K.GREATER_THAN_SIGN:{this.state=ne.DATA,this.emitCurrentTagToken();break}case K.NULL:{this._err(_e.unexpectedNullCharacter),r.tagName+=Sr;break}case K.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(oh(t)?Zg(t):t)}}_stateRcdataLessThanSign(t){t===K.SOLIDUS?this.state=ne.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ne.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){ul(t)?(this.state=ne.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=ne.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ne.BEFORE_ATTRIBUTE_NAME,!1;case K.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ne.SELF_CLOSING_START_TAG,!1;case K.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ne.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=ne.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===K.SOLIDUS?this.state=ne.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ne.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){ul(t)?(this.state=ne.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=ne.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=ne.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case K.SOLIDUS:{this.state=ne.SCRIPT_DATA_END_TAG_OPEN;break}case K.EXCLAMATION_MARK:{this.state=ne.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=ne.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){ul(t)?(this.state=ne.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=ne.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=ne.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===K.HYPHEN_MINUS?(this.state=ne.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ne.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===K.HYPHEN_MINUS?(this.state=ne.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ne.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case K.HYPHEN_MINUS:{this.state=ne.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case K.LESS_THAN_SIGN:{this.state=ne.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sr);break}case K.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case K.HYPHEN_MINUS:{this.state=ne.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case K.LESS_THAN_SIGN:{this.state=ne.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this.state=ne.SCRIPT_DATA_ESCAPED,this._emitChars(Sr);break}case K.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ne.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case K.HYPHEN_MINUS:{this._emitChars("-");break}case K.LESS_THAN_SIGN:{this.state=ne.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case K.GREATER_THAN_SIGN:{this.state=ne.SCRIPT_DATA,this._emitChars(">");break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this.state=ne.SCRIPT_DATA_ESCAPED,this._emitChars(Sr);break}case K.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ne.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===K.SOLIDUS?this.state=ne.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ul(t)?(this._emitChars("<"),this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ne.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ul(t)?(this.state=ne.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=ne.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=ne.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(ma.SCRIPT,!1)&&LM(this.preprocessor.peek(ma.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<ma.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ne.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case K.HYPHEN_MINUS:{this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case K.LESS_THAN_SIGN:{this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sr);break}case K.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case K.HYPHEN_MINUS:{this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case K.LESS_THAN_SIGN:{this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Sr);break}case K.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case K.HYPHEN_MINUS:{this._emitChars("-");break}case K.LESS_THAN_SIGN:{this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case K.GREATER_THAN_SIGN:{this.state=ne.SCRIPT_DATA,this._emitChars(">");break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Sr);break}case K.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===K.SOLIDUS?(this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(ma.SCRIPT,!1)&&LM(this.preprocessor.peek(ma.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<ma.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=ne.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ne.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.SOLIDUS:case K.GREATER_THAN_SIGN:case K.EOF:{this.state=ne.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case K.EQUALS_SIGN:{this._err(_e.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ne.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=ne.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:case K.SOLIDUS:case K.GREATER_THAN_SIGN:case K.EOF:{this._leaveAttrName(),this.state=ne.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case K.EQUALS_SIGN:{this._leaveAttrName(),this.state=ne.BEFORE_ATTRIBUTE_VALUE;break}case K.QUOTATION_MARK:case K.APOSTROPHE:case K.LESS_THAN_SIGN:{this._err(_e.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.name+=Sr;break}default:this.currentAttr.name+=String.fromCodePoint(oh(t)?Zg(t):t)}}_stateAfterAttributeName(t){switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.SOLIDUS:{this.state=ne.SELF_CLOSING_START_TAG;break}case K.EQUALS_SIGN:{this.state=ne.BEFORE_ATTRIBUTE_VALUE;break}case K.GREATER_THAN_SIGN:{this.state=ne.DATA,this.emitCurrentTagToken();break}case K.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=ne.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:{this.state=ne.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case K.APOSTROPHE:{this.state=ne.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case K.GREATER_THAN_SIGN:{this._err(_e.missingAttributeValue),this.state=ne.DATA,this.emitCurrentTagToken();break}default:this.state=ne.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case K.QUOTATION_MARK:{this.state=ne.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case K.AMPERSAND:{this._startCharacterReference();break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.value+=Sr;break}case K.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case K.APOSTROPHE:{this.state=ne.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case K.AMPERSAND:{this._startCharacterReference();break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.value+=Sr;break}case K.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:{this._leaveAttrValue(),this.state=ne.BEFORE_ATTRIBUTE_NAME;break}case K.AMPERSAND:{this._startCharacterReference();break}case K.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ne.DATA,this.emitCurrentTagToken();break}case K.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.value+=Sr;break}case K.QUOTATION_MARK:case K.APOSTROPHE:case K.LESS_THAN_SIGN:case K.EQUALS_SIGN:case K.GRAVE_ACCENT:{this._err(_e.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case K.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:{this._leaveAttrValue(),this.state=ne.BEFORE_ATTRIBUTE_NAME;break}case K.SOLIDUS:{this._leaveAttrValue(),this.state=ne.SELF_CLOSING_START_TAG;break}case K.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ne.DATA,this.emitCurrentTagToken();break}case K.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this._err(_e.missingWhitespaceBetweenAttributes),this.state=ne.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case K.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=ne.DATA,this.emitCurrentTagToken();break}case K.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this._err(_e.unexpectedSolidusInTag),this.state=ne.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case K.GREATER_THAN_SIGN:{this.state=ne.DATA,this.emitCurrentComment(r);break}case K.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case K.NULL:{this._err(_e.unexpectedNullCharacter),r.data+=Sr;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(ma.DASH_DASH,!0)?(this._createCommentToken(ma.DASH_DASH.length+1),this.state=ne.COMMENT_START):this._consumeSequenceIfMatch(ma.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(ma.DOCTYPE.length+1),this.state=ne.DOCTYPE):this._consumeSequenceIfMatch(ma.CDATA_START,!0)?this.inForeignNode?this.state=ne.CDATA_SECTION:(this._err(_e.cdataInHtmlContent),this._createCommentToken(ma.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=ne.BOGUS_COMMENT):this._ensureHibernation()||(this._err(_e.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ne.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case K.HYPHEN_MINUS:{this.state=ne.COMMENT_START_DASH;break}case K.GREATER_THAN_SIGN:{this._err(_e.abruptClosingOfEmptyComment),this.state=ne.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=ne.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case K.HYPHEN_MINUS:{this.state=ne.COMMENT_END;break}case K.GREATER_THAN_SIGN:{this._err(_e.abruptClosingOfEmptyComment),this.state=ne.DATA,this.emitCurrentComment(r);break}case K.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=ne.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case K.HYPHEN_MINUS:{this.state=ne.COMMENT_END_DASH;break}case K.LESS_THAN_SIGN:{r.data+="<",this.state=ne.COMMENT_LESS_THAN_SIGN;break}case K.NULL:{this._err(_e.unexpectedNullCharacter),r.data+=Sr;break}case K.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case K.EXCLAMATION_MARK:{r.data+="!",this.state=ne.COMMENT_LESS_THAN_SIGN_BANG;break}case K.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=ne.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===K.HYPHEN_MINUS?this.state=ne.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ne.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===K.HYPHEN_MINUS?this.state=ne.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ne.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==K.GREATER_THAN_SIGN&&t!==K.EOF&&this._err(_e.nestedComment),this.state=ne.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case K.HYPHEN_MINUS:{this.state=ne.COMMENT_END;break}case K.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=ne.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case K.GREATER_THAN_SIGN:{this.state=ne.DATA,this.emitCurrentComment(r);break}case K.EXCLAMATION_MARK:{this.state=ne.COMMENT_END_BANG;break}case K.HYPHEN_MINUS:{r.data+="-";break}case K.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=ne.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case K.HYPHEN_MINUS:{r.data+="--!",this.state=ne.COMMENT_END_DASH;break}case K.GREATER_THAN_SIGN:{this._err(_e.incorrectlyClosedComment),this.state=ne.DATA,this.emitCurrentComment(r);break}case K.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=ne.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:{this.state=ne.BEFORE_DOCTYPE_NAME;break}case K.GREATER_THAN_SIGN:{this.state=ne.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case K.EOF:{this._err(_e.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(_e.missingWhitespaceBeforeDoctypeName),this.state=ne.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(oh(t))this._createDoctypeToken(String.fromCharCode(Zg(t))),this.state=ne.DOCTYPE_NAME;else switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.NULL:{this._err(_e.unexpectedNullCharacter),this._createDoctypeToken(Sr),this.state=ne.DOCTYPE_NAME;break}case K.GREATER_THAN_SIGN:{this._err(_e.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=ne.DATA;break}case K.EOF:{this._err(_e.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=ne.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:{this.state=ne.AFTER_DOCTYPE_NAME;break}case K.GREATER_THAN_SIGN:{this.state=ne.DATA,this.emitCurrentDoctype(r);break}case K.NULL:{this._err(_e.unexpectedNullCharacter),r.name+=Sr;break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(oh(t)?Zg(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:{this.state=ne.DATA,this.emitCurrentDoctype(r);break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(ma.PUBLIC,!1)?this.state=ne.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ma.SYSTEM,!1)?this.state=ne.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(_e.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=ne.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:{this.state=ne.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case K.QUOTATION_MARK:{this._err(_e.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=ne.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case K.APOSTROPHE:{this._err(_e.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=ne.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case K.GREATER_THAN_SIGN:{this._err(_e.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=ne.DATA,this.emitCurrentDoctype(r);break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=ne.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:{r.publicId="",this.state=ne.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case K.APOSTROPHE:{r.publicId="",this.state=ne.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case K.GREATER_THAN_SIGN:{this._err(_e.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=ne.DATA,this.emitCurrentDoctype(r);break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=ne.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case K.QUOTATION_MARK:{this.state=ne.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case K.NULL:{this._err(_e.unexpectedNullCharacter),r.publicId+=Sr;break}case K.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=ne.DATA;break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case K.APOSTROPHE:{this.state=ne.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case K.NULL:{this._err(_e.unexpectedNullCharacter),r.publicId+=Sr;break}case K.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=ne.DATA;break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:{this.state=ne.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case K.GREATER_THAN_SIGN:{this.state=ne.DATA,this.emitCurrentDoctype(r);break}case K.QUOTATION_MARK:{this._err(_e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=ne.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case K.APOSTROPHE:{this._err(_e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=ne.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=ne.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=ne.DATA;break}case K.QUOTATION_MARK:{r.systemId="",this.state=ne.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case K.APOSTROPHE:{r.systemId="",this.state=ne.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=ne.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:{this.state=ne.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case K.QUOTATION_MARK:{this._err(_e.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=ne.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case K.APOSTROPHE:{this._err(_e.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=ne.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case K.GREATER_THAN_SIGN:{this._err(_e.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=ne.DATA,this.emitCurrentDoctype(r);break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=ne.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:{r.systemId="",this.state=ne.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case K.APOSTROPHE:{r.systemId="",this.state=ne.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case K.GREATER_THAN_SIGN:{this._err(_e.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=ne.DATA,this.emitCurrentDoctype(r);break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=ne.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case K.QUOTATION_MARK:{this.state=ne.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case K.NULL:{this._err(_e.unexpectedNullCharacter),r.systemId+=Sr;break}case K.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=ne.DATA;break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case K.APOSTROPHE:{this.state=ne.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case K.NULL:{this._err(_e.unexpectedNullCharacter),r.systemId+=Sr;break}case K.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=ne.DATA;break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=ne.DATA;break}case K.EOF:{this._err(_e.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(_e.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ne.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case K.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=ne.DATA;break}case K.NULL:{this._err(_e.unexpectedNullCharacter);break}case K.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case K.RIGHT_SQUARE_BRACKET:{this.state=ne.CDATA_SECTION_BRACKET;break}case K.EOF:{this._err(_e.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===K.RIGHT_SQUARE_BRACKET?this.state=ne.CDATA_SECTION_END:(this._emitChars("]"),this.state=ne.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case K.GREATER_THAN_SIGN:{this.state=ne.DATA;break}case K.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=ne.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(K.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&DM(this.preprocessor.peek(1))?ne.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){DM(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===K.SEMICOLON&&this._err(_e.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const RG=new Set([A.DD,A.DT,A.LI,A.OPTGROUP,A.OPTION,A.P,A.RB,A.RP,A.RT,A.RTC]),jM=new Set([...RG,A.CAPTION,A.COLGROUP,A.TBODY,A.TD,A.TFOOT,A.TH,A.THEAD,A.TR]),rv=new Set([A.APPLET,A.CAPTION,A.HTML,A.MARQUEE,A.OBJECT,A.TABLE,A.TD,A.TEMPLATE,A.TH]),nve=new Set([...rv,A.OL,A.UL]),ave=new Set([...rv,A.BUTTON]),BM=new Set([A.ANNOTATION_XML,A.MI,A.MN,A.MO,A.MS,A.MTEXT]),zM=new Set([A.DESC,A.FOREIGN_OBJECT,A.TITLE]),ive=new Set([A.TR,A.TEMPLATE,A.HTML]),sve=new Set([A.TBODY,A.TFOOT,A.THEAD,A.TEMPLATE,A.HTML]),ove=new Set([A.TABLE,A.TEMPLATE,A.HTML]),lve=new Set([A.TD,A.TH]);class uve{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=A.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===A.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Me.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){const a=this._indexOf(t)+1;this.items.splice(a,0,r),this.tagIDs.splice(a,0,n),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==Me.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(z_,Me.HTML)}popUntilTableCellPopped(){this.popUntilPopped(lve,Me.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(ove,Me.HTML)}clearBackToTableBodyContext(){this.clearBackTo(sve,Me.HTML)}clearBackToTableRowContext(){this.clearBackTo(ive,Me.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===A.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===A.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){const a=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Me.HTML:{if(a===t)return!0;if(r.has(a))return!1;break}case Me.SVG:{if(zM.has(a))return!1;break}case Me.MATHML:{if(BM.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,rv)}hasInListItemScope(t){return this.hasInDynamicScope(t,nve)}hasInButtonScope(t){return this.hasInDynamicScope(t,ave)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Me.HTML:{if(z_.has(r))return!0;if(rv.has(r))return!1;break}case Me.SVG:{if(zM.has(r))return!1;break}case Me.MATHML:{if(BM.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===Me.HTML)switch(this.tagIDs[r]){case t:return!0;case A.TABLE:case A.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Me.HTML)switch(this.tagIDs[t]){case A.TBODY:case A.THEAD:case A.TFOOT:return!0;case A.TABLE:case A.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===Me.HTML)switch(this.tagIDs[r]){case t:return!0;case A.OPTION:case A.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&RG.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&jM.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&jM.has(this.currentTagId);)this.pop()}}const u3=3;var ls;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ls||(ls={}));const $M={type:ls.Marker};class cve{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const n=[],a=r.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===ls.Marker)break;const{element:c}=u;if(this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===s){const h=this.treeAdapter.getAttrList(c);h.length===a&&n.push({idx:o,attrs:h})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<u3)return;const r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<u3)return;const a=new Map(r.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<n.length;s++){const o=n[s];o.attrs.every(u=>a.get(u.name)===u.value)&&(i+=1,i>=u3&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift($M)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:ls.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:ls.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf($M);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(n=>n.type===ls.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===ls.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===ls.Element&&r.element===t)}}const cl={createDocument(){return{nodeName:"#document",mode:ci.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=r,a.systemId=n;else{const i={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};cl.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(cl.isTextNode(r)){r.value+=t;return}}cl.appendChild(e,cl.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&cl.isTextNode(n)?n.value+=t:cl.insertBefore(e,cl.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},MG="html",fve="about:legacy-compat",dve="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",PG=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],hve=[...PG,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],pve=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),IG=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],mve=[...IG,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function FM(e,t){return t.some(r=>e.startsWith(r))}function gve(e){return e.name===MG&&e.publicId===null&&(e.systemId===null||e.systemId===fve)}function vve(e){if(e.name!==MG)return ci.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===dve)return ci.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),pve.has(r))return ci.QUIRKS;let n=t===null?hve:PG;if(FM(r,n))return ci.QUIRKS;if(n=t===null?IG:mve,FM(r,n))return ci.LIMITED_QUIRKS}return ci.NO_QUIRKS}const UM={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},yve="definitionurl",bve="definitionURL",xve=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Eve=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Me.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Me.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Me.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Me.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Me.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Me.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Me.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Me.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Me.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Me.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Me.XMLNS}]]),wve=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),_ve=new Set([A.B,A.BIG,A.BLOCKQUOTE,A.BODY,A.BR,A.CENTER,A.CODE,A.DD,A.DIV,A.DL,A.DT,A.EM,A.EMBED,A.H1,A.H2,A.H3,A.H4,A.H5,A.H6,A.HEAD,A.HR,A.I,A.IMG,A.LI,A.LISTING,A.MENU,A.META,A.NOBR,A.OL,A.P,A.PRE,A.RUBY,A.S,A.SMALL,A.SPAN,A.STRONG,A.STRIKE,A.SUB,A.SUP,A.TABLE,A.TT,A.U,A.UL,A.VAR]);function Sve(e){const t=e.tagID;return t===A.FONT&&e.attrs.some(({name:n})=>n===Ou.COLOR||n===Ou.SIZE||n===Ou.FACE)||_ve.has(t)}function DG(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===yve){e.attrs[t].name=bve;break}}function LG(e){for(let t=0;t<e.attrs.length;t++){const r=xve.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function QA(e){for(let t=0;t<e.attrs.length;t++){const r=Eve.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function Tve(e){const t=wve.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=M0(e.tagName))}function Ave(e,t){return t===Me.MATHML&&(e===A.MI||e===A.MO||e===A.MN||e===A.MS||e===A.MTEXT)}function Cve(e,t,r){if(t===Me.MATHML&&e===A.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===Ou.ENCODING){const a=r[n].value.toLowerCase();return a===UM.TEXT_HTML||a===UM.APPLICATION_XML}}return t===Me.SVG&&(e===A.FOREIGN_OBJECT||e===A.DESC||e===A.TITLE)}function Ove(e,t,r,n){return(!n||n===Me.HTML)&&Cve(e,t,r)||(!n||n===Me.MATHML)&&Ave(e,t)}const kve="hidden",Nve=8,Rve=3;var se;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(se||(se={}));const Mve={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},jG=new Set([A.TABLE,A.TBODY,A.TFOOT,A.THEAD,A.TR]),HM={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:cl,onParseError:null};class qM{constructor(t,r,n=null,a=null){this.fragmentContext=n,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=se.INITIAL,this.originalInsertionMode=se.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...HM,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new rve(this.options,this),this.activeFormattingElements=new cve(this.treeAdapter),this.fragmentContextID=n?M0(this.treeAdapter.getTagName(n)):A.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new uve(this.document,this.treeAdapter,this)}static parse(t,r){const n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){const n={...HM,...r};t??(t=n.treeAdapter.createElement(pe.TEMPLATE,Me.HTML,[]));const a=n.treeAdapter.createElement("documentmock",Me.HTML,[]),i=new this(n,a,t);return i.fragmentContextID===A.TEMPLATE&&i.tmplInsertionModeStack.unshift(se.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:Mve,s={code:r,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,r,n){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(n=this.treeAdapter).onItemPop)===null||a===void 0||a.call(n,t,this.openElements.current),r){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,r){const n=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Me.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,Me.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=se.TEXT}switchToPlaintextParsing(){this.insertionMode=se.TEXT,this.originalInsertionMode=se.IN_BODY,this.tokenizer.state=Ur.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===pe.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Me.HTML))switch(this.fragmentContextID){case A.TITLE:case A.TEXTAREA:{this.tokenizer.state=Ur.RCDATA;break}case A.STYLE:case A.XMP:case A.IFRAME:case A.NOEMBED:case A.NOFRAMES:case A.NOSCRIPT:{this.tokenizer.state=Ur.RAWTEXT;break}case A.SCRIPT:{this.tokenizer.state=Ur.SCRIPT_DATA;break}case A.PLAINTEXT:{this.tokenizer.state=Ur.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",n=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,t)}}_appendElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){const n=this.treeAdapter.createElement(t,Me.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,Me.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(pe.HTML,Me.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,A.HTML)}_appendCommentNode(t,r){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(r),i=n?a.lastIndexOf(n):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:c,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:c,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const n=r.location,a=this.treeAdapter.getTagName(t),i=r.type===St.END_TAG&&a===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===A.SVG&&this.treeAdapter.getTagName(r)===pe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===Me.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===A.MGLYPH||t.tagID===A.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,Me.HTML)}_processToken(t){switch(t.type){case St.CHARACTER:{this.onCharacter(t);break}case St.NULL_CHARACTER:{this.onNullCharacter(t);break}case St.COMMENT:{this.onComment(t);break}case St.DOCTYPE:{this.onDoctype(t);break}case St.START_TAG:{this._processStartTag(t);break}case St.END_TAG:{this.onEndTag(t);break}case St.EOF:{this.onEof(t);break}case St.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){const a=this.treeAdapter.getNamespaceURI(r),i=this.treeAdapter.getAttrList(r);return Ove(t,a,i,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(a=>a.type===ls.Marker||this.openElements.contains(a.element)),n=r===-1?t-1:r-1;for(let a=n;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=se.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(A.P),this.openElements.popUntilTagNamePopped(A.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case A.TR:{this.insertionMode=se.IN_ROW;return}case A.TBODY:case A.THEAD:case A.TFOOT:{this.insertionMode=se.IN_TABLE_BODY;return}case A.CAPTION:{this.insertionMode=se.IN_CAPTION;return}case A.COLGROUP:{this.insertionMode=se.IN_COLUMN_GROUP;return}case A.TABLE:{this.insertionMode=se.IN_TABLE;return}case A.BODY:{this.insertionMode=se.IN_BODY;return}case A.FRAMESET:{this.insertionMode=se.IN_FRAMESET;return}case A.SELECT:{this._resetInsertionModeForSelect(t);return}case A.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case A.HTML:{this.insertionMode=this.headElement?se.AFTER_HEAD:se.BEFORE_HEAD;return}case A.TD:case A.TH:{if(t>0){this.insertionMode=se.IN_CELL;return}break}case A.HEAD:{if(t>0){this.insertionMode=se.IN_HEAD;return}break}}this.insertionMode=se.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const n=this.openElements.tagIDs[r];if(n===A.TEMPLATE)break;if(n===A.TABLE){this.insertionMode=se.IN_SELECT_IN_TABLE;return}}this.insertionMode=se.IN_SELECT}_isElementCausesFosterParenting(t){return jG.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case A.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===Me.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case A.TABLE:{const n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const n=this.treeAdapter.getNamespaceURI(t);return Z1e[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){lbe(this,t);return}switch(this.insertionMode){case se.INITIAL:{qd(this,t);break}case se.BEFORE_HTML:{xh(this,t);break}case se.BEFORE_HEAD:{Eh(this,t);break}case se.IN_HEAD:{wh(this,t);break}case se.IN_HEAD_NO_SCRIPT:{_h(this,t);break}case se.AFTER_HEAD:{Sh(this,t);break}case se.IN_BODY:case se.IN_CAPTION:case se.IN_CELL:case se.IN_TEMPLATE:{zG(this,t);break}case se.TEXT:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case se.IN_TABLE:case se.IN_TABLE_BODY:case se.IN_ROW:{c3(this,t);break}case se.IN_TABLE_TEXT:{VG(this,t);break}case se.IN_COLUMN_GROUP:{nv(this,t);break}case se.AFTER_BODY:{av(this,t);break}case se.AFTER_AFTER_BODY:{P1(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){obe(this,t);return}switch(this.insertionMode){case se.INITIAL:{qd(this,t);break}case se.BEFORE_HTML:{xh(this,t);break}case se.BEFORE_HEAD:{Eh(this,t);break}case se.IN_HEAD:{wh(this,t);break}case se.IN_HEAD_NO_SCRIPT:{_h(this,t);break}case se.AFTER_HEAD:{Sh(this,t);break}case se.TEXT:{this._insertCharacters(t);break}case se.IN_TABLE:case se.IN_TABLE_BODY:case se.IN_ROW:{c3(this,t);break}case se.IN_COLUMN_GROUP:{nv(this,t);break}case se.AFTER_BODY:{av(this,t);break}case se.AFTER_AFTER_BODY:{P1(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){$_(this,t);return}switch(this.insertionMode){case se.INITIAL:case se.BEFORE_HTML:case se.BEFORE_HEAD:case se.IN_HEAD:case se.IN_HEAD_NO_SCRIPT:case se.AFTER_HEAD:case se.IN_BODY:case se.IN_TABLE:case se.IN_CAPTION:case se.IN_COLUMN_GROUP:case se.IN_TABLE_BODY:case se.IN_ROW:case se.IN_CELL:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:case se.IN_TEMPLATE:case se.IN_FRAMESET:case se.AFTER_FRAMESET:{$_(this,t);break}case se.IN_TABLE_TEXT:{Vd(this,t);break}case se.AFTER_BODY:{zve(this,t);break}case se.AFTER_AFTER_BODY:case se.AFTER_AFTER_FRAMESET:{$ve(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case se.INITIAL:{Fve(this,t);break}case se.BEFORE_HEAD:case se.IN_HEAD:case se.IN_HEAD_NO_SCRIPT:case se.AFTER_HEAD:{this._err(t,_e.misplacedDoctype);break}case se.IN_TABLE_TEXT:{Vd(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,_e.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?ube(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case se.INITIAL:{qd(this,t);break}case se.BEFORE_HTML:{Uve(this,t);break}case se.BEFORE_HEAD:{qve(this,t);break}case se.IN_HEAD:{Vi(this,t);break}case se.IN_HEAD_NO_SCRIPT:{Wve(this,t);break}case se.AFTER_HEAD:{Xve(this,t);break}case se.IN_BODY:{Gn(this,t);break}case se.IN_TABLE:{Wf(this,t);break}case se.IN_TABLE_TEXT:{Vd(this,t);break}case se.IN_CAPTION:{Vye(this,t);break}case se.IN_COLUMN_GROUP:{e8(this,t);break}case se.IN_TABLE_BODY:{sb(this,t);break}case se.IN_ROW:{ob(this,t);break}case se.IN_CELL:{Yye(this,t);break}case se.IN_SELECT:{YG(this,t);break}case se.IN_SELECT_IN_TABLE:{Kye(this,t);break}case se.IN_TEMPLATE:{Zye(this,t);break}case se.AFTER_BODY:{ebe(this,t);break}case se.IN_FRAMESET:{tbe(this,t);break}case se.AFTER_FRAMESET:{nbe(this,t);break}case se.AFTER_AFTER_BODY:{ibe(this,t);break}case se.AFTER_AFTER_FRAMESET:{sbe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?cbe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case se.INITIAL:{qd(this,t);break}case se.BEFORE_HTML:{Hve(this,t);break}case se.BEFORE_HEAD:{Vve(this,t);break}case se.IN_HEAD:{Gve(this,t);break}case se.IN_HEAD_NO_SCRIPT:{Yve(this,t);break}case se.AFTER_HEAD:{Kve(this,t);break}case se.IN_BODY:{ib(this,t);break}case se.TEXT:{Dye(this,t);break}case se.IN_TABLE:{qh(this,t);break}case se.IN_TABLE_TEXT:{Vd(this,t);break}case se.IN_CAPTION:{Gye(this,t);break}case se.IN_COLUMN_GROUP:{Wye(this,t);break}case se.IN_TABLE_BODY:{F_(this,t);break}case se.IN_ROW:{WG(this,t);break}case se.IN_CELL:{Xye(this,t);break}case se.IN_SELECT:{XG(this,t);break}case se.IN_SELECT_IN_TABLE:{Qye(this,t);break}case se.IN_TEMPLATE:{Jye(this,t);break}case se.AFTER_BODY:{QG(this,t);break}case se.IN_FRAMESET:{rbe(this,t);break}case se.AFTER_FRAMESET:{abe(this,t);break}case se.AFTER_AFTER_BODY:{P1(this,t);break}}}onEof(t){switch(this.insertionMode){case se.INITIAL:{qd(this,t);break}case se.BEFORE_HTML:{xh(this,t);break}case se.BEFORE_HEAD:{Eh(this,t);break}case se.IN_HEAD:{wh(this,t);break}case se.IN_HEAD_NO_SCRIPT:{_h(this,t);break}case se.AFTER_HEAD:{Sh(this,t);break}case se.IN_BODY:case se.IN_TABLE:case se.IN_CAPTION:case se.IN_COLUMN_GROUP:case se.IN_TABLE_BODY:case se.IN_ROW:case se.IN_CELL:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:{HG(this,t);break}case se.TEXT:{Lye(this,t);break}case se.IN_TABLE_TEXT:{Vd(this,t);break}case se.IN_TEMPLATE:{KG(this,t);break}case se.AFTER_BODY:case se.IN_FRAMESET:case se.AFTER_FRAMESET:case se.AFTER_AFTER_BODY:case se.AFTER_AFTER_FRAMESET:{JA(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===K.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case se.IN_HEAD:case se.IN_HEAD_NO_SCRIPT:case se.AFTER_HEAD:case se.TEXT:case se.IN_COLUMN_GROUP:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:case se.IN_FRAMESET:case se.AFTER_FRAMESET:{this._insertCharacters(t);break}case se.IN_BODY:case se.IN_CAPTION:case se.IN_CELL:case se.IN_TEMPLATE:case se.AFTER_BODY:case se.AFTER_AFTER_BODY:case se.AFTER_AFTER_FRAMESET:{BG(this,t);break}case se.IN_TABLE:case se.IN_TABLE_BODY:case se.IN_ROW:{c3(this,t);break}case se.IN_TABLE_TEXT:{qG(this,t);break}}}}function Pve(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):UG(e,t),r}function Ive(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const a=e.openElements.items[n];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[n])&&(r=a)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function Dve(e,t,r){let n=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==r;i++,s=a){a=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&i>=Rve;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Lve(e,o),n===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(s,n),n=s)}return n}function Lve(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function jve(e,t,r){const n=e.treeAdapter.getTagName(t),a=M0(n);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(r);else{const i=e.treeAdapter.getNamespaceURI(t);a===A.TEMPLATE&&i===Me.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Bve(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:a}=r,i=e.treeAdapter.createElement(a.tagName,n,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,i,a.tagID)}function ZA(e,t){for(let r=0;r<Nve;r++){const n=Pve(e,t);if(!n)break;const a=Ive(e,n);if(!a)break;e.activeFormattingElements.bookmark=n;const i=Dve(e,a,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),s&&jve(e,s,i),Bve(e,a,n)}}function $_(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function zve(e,t){e._appendCommentNode(t,e.openElements.items[0])}function $ve(e,t){e._appendCommentNode(t,e.document)}function JA(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(n);if(a&&!a.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function Fve(e,t){e._setDocumentType(t);const r=t.forceQuirks?ci.QUIRKS:vve(t);gve(t)||e._err(t,_e.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=se.BEFORE_HTML}function qd(e,t){e._err(t,_e.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ci.QUIRKS),e.insertionMode=se.BEFORE_HTML,e._processToken(t)}function Uve(e,t){t.tagID===A.HTML?(e._insertElement(t,Me.HTML),e.insertionMode=se.BEFORE_HEAD):xh(e,t)}function Hve(e,t){const r=t.tagID;(r===A.HTML||r===A.HEAD||r===A.BODY||r===A.BR)&&xh(e,t)}function xh(e,t){e._insertFakeRootElement(),e.insertionMode=se.BEFORE_HEAD,e._processToken(t)}function qve(e,t){switch(t.tagID){case A.HTML:{Gn(e,t);break}case A.HEAD:{e._insertElement(t,Me.HTML),e.headElement=e.openElements.current,e.insertionMode=se.IN_HEAD;break}default:Eh(e,t)}}function Vve(e,t){const r=t.tagID;r===A.HEAD||r===A.BODY||r===A.HTML||r===A.BR?Eh(e,t):e._err(t,_e.endTagWithoutMatchingOpenElement)}function Eh(e,t){e._insertFakeElement(pe.HEAD,A.HEAD),e.headElement=e.openElements.current,e.insertionMode=se.IN_HEAD,e._processToken(t)}function Vi(e,t){switch(t.tagID){case A.HTML:{Gn(e,t);break}case A.BASE:case A.BASEFONT:case A.BGSOUND:case A.LINK:case A.META:{e._appendElement(t,Me.HTML),t.ackSelfClosing=!0;break}case A.TITLE:{e._switchToTextParsing(t,Ur.RCDATA);break}case A.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ur.RAWTEXT):(e._insertElement(t,Me.HTML),e.insertionMode=se.IN_HEAD_NO_SCRIPT);break}case A.NOFRAMES:case A.STYLE:{e._switchToTextParsing(t,Ur.RAWTEXT);break}case A.SCRIPT:{e._switchToTextParsing(t,Ur.SCRIPT_DATA);break}case A.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=se.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(se.IN_TEMPLATE);break}case A.HEAD:{e._err(t,_e.misplacedStartTagForHeadElement);break}default:wh(e,t)}}function Gve(e,t){switch(t.tagID){case A.HEAD:{e.openElements.pop(),e.insertionMode=se.AFTER_HEAD;break}case A.BODY:case A.BR:case A.HTML:{wh(e,t);break}case A.TEMPLATE:{oc(e,t);break}default:e._err(t,_e.endTagWithoutMatchingOpenElement)}}function oc(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==A.TEMPLATE&&e._err(t,_e.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(A.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,_e.endTagWithoutMatchingOpenElement)}function wh(e,t){e.openElements.pop(),e.insertionMode=se.AFTER_HEAD,e._processToken(t)}function Wve(e,t){switch(t.tagID){case A.HTML:{Gn(e,t);break}case A.BASEFONT:case A.BGSOUND:case A.HEAD:case A.LINK:case A.META:case A.NOFRAMES:case A.STYLE:{Vi(e,t);break}case A.NOSCRIPT:{e._err(t,_e.nestedNoscriptInHead);break}default:_h(e,t)}}function Yve(e,t){switch(t.tagID){case A.NOSCRIPT:{e.openElements.pop(),e.insertionMode=se.IN_HEAD;break}case A.BR:{_h(e,t);break}default:e._err(t,_e.endTagWithoutMatchingOpenElement)}}function _h(e,t){const r=t.type===St.EOF?_e.openElementsLeftAfterEof:_e.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=se.IN_HEAD,e._processToken(t)}function Xve(e,t){switch(t.tagID){case A.HTML:{Gn(e,t);break}case A.BODY:{e._insertElement(t,Me.HTML),e.framesetOk=!1,e.insertionMode=se.IN_BODY;break}case A.FRAMESET:{e._insertElement(t,Me.HTML),e.insertionMode=se.IN_FRAMESET;break}case A.BASE:case A.BASEFONT:case A.BGSOUND:case A.LINK:case A.META:case A.NOFRAMES:case A.SCRIPT:case A.STYLE:case A.TEMPLATE:case A.TITLE:{e._err(t,_e.abandonedHeadElementChild),e.openElements.push(e.headElement,A.HEAD),Vi(e,t),e.openElements.remove(e.headElement);break}case A.HEAD:{e._err(t,_e.misplacedStartTagForHeadElement);break}default:Sh(e,t)}}function Kve(e,t){switch(t.tagID){case A.BODY:case A.HTML:case A.BR:{Sh(e,t);break}case A.TEMPLATE:{oc(e,t);break}default:e._err(t,_e.endTagWithoutMatchingOpenElement)}}function Sh(e,t){e._insertFakeElement(pe.BODY,A.BODY),e.insertionMode=se.IN_BODY,ab(e,t)}function ab(e,t){switch(t.type){case St.CHARACTER:{zG(e,t);break}case St.WHITESPACE_CHARACTER:{BG(e,t);break}case St.COMMENT:{$_(e,t);break}case St.START_TAG:{Gn(e,t);break}case St.END_TAG:{ib(e,t);break}case St.EOF:{HG(e,t);break}}}function BG(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function zG(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Qve(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Zve(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function Jve(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Me.HTML),e.insertionMode=se.IN_FRAMESET)}function eye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Me.HTML)}function tye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&z_.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Me.HTML)}function rye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Me.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function nye(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Me.HTML),r||(e.formElement=e.openElements.current))}function aye(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const a=e.openElements.tagIDs[n];if(r===A.LI&&a===A.LI||(r===A.DD||r===A.DT)&&(a===A.DD||a===A.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==A.ADDRESS&&a!==A.DIV&&a!==A.P&&e._isSpecialElement(e.openElements.items[n],a))break}e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Me.HTML)}function iye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Me.HTML),e.tokenizer.state=Ur.PLAINTEXT}function sye(e,t){e.openElements.hasInScope(A.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Me.HTML),e.framesetOk=!1}function oye(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(pe.A);r&&(ZA(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function lye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function uye(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(A.NOBR)&&(ZA(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function cye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Me.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function fye(e,t){e.treeAdapter.getDocumentMode(e.document)!==ci.QUIRKS&&e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Me.HTML),e.framesetOk=!1,e.insertionMode=se.IN_TABLE}function $G(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function FG(e){const t=kG(e,Ou.TYPE);return t!=null&&t.toLowerCase()===kve}function dye(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Me.HTML),FG(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function hye(e,t){e._appendElement(t,Me.HTML),t.ackSelfClosing=!0}function pye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._appendElement(t,Me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function mye(e,t){t.tagName=pe.IMG,t.tagID=A.IMG,$G(e,t)}function gye(e,t){e._insertElement(t,Me.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ur.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=se.TEXT}function vye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ur.RAWTEXT)}function yye(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ur.RAWTEXT)}function VM(e,t){e._switchToTextParsing(t,Ur.RAWTEXT)}function bye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Me.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===se.IN_TABLE||e.insertionMode===se.IN_CAPTION||e.insertionMode===se.IN_TABLE_BODY||e.insertionMode===se.IN_ROW||e.insertionMode===se.IN_CELL?se.IN_SELECT_IN_TABLE:se.IN_SELECT}function xye(e,t){e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Me.HTML)}function Eye(e,t){e.openElements.hasInScope(A.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Me.HTML)}function wye(e,t){e.openElements.hasInScope(A.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(A.RTC),e._insertElement(t,Me.HTML)}function _ye(e,t){e._reconstructActiveFormattingElements(),DG(t),QA(t),t.selfClosing?e._appendElement(t,Me.MATHML):e._insertElement(t,Me.MATHML),t.ackSelfClosing=!0}function Sye(e,t){e._reconstructActiveFormattingElements(),LG(t),QA(t),t.selfClosing?e._appendElement(t,Me.SVG):e._insertElement(t,Me.SVG),t.ackSelfClosing=!0}function GM(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Me.HTML)}function Gn(e,t){switch(t.tagID){case A.I:case A.S:case A.B:case A.U:case A.EM:case A.TT:case A.BIG:case A.CODE:case A.FONT:case A.SMALL:case A.STRIKE:case A.STRONG:{lye(e,t);break}case A.A:{oye(e,t);break}case A.H1:case A.H2:case A.H3:case A.H4:case A.H5:case A.H6:{tye(e,t);break}case A.P:case A.DL:case A.OL:case A.UL:case A.DIV:case A.DIR:case A.NAV:case A.MAIN:case A.MENU:case A.ASIDE:case A.CENTER:case A.FIGURE:case A.FOOTER:case A.HEADER:case A.HGROUP:case A.DIALOG:case A.DETAILS:case A.ADDRESS:case A.ARTICLE:case A.SEARCH:case A.SECTION:case A.SUMMARY:case A.FIELDSET:case A.BLOCKQUOTE:case A.FIGCAPTION:{eye(e,t);break}case A.LI:case A.DD:case A.DT:{aye(e,t);break}case A.BR:case A.IMG:case A.WBR:case A.AREA:case A.EMBED:case A.KEYGEN:{$G(e,t);break}case A.HR:{pye(e,t);break}case A.RB:case A.RTC:{Eye(e,t);break}case A.RT:case A.RP:{wye(e,t);break}case A.PRE:case A.LISTING:{rye(e,t);break}case A.XMP:{vye(e,t);break}case A.SVG:{Sye(e,t);break}case A.HTML:{Qve(e,t);break}case A.BASE:case A.LINK:case A.META:case A.STYLE:case A.TITLE:case A.SCRIPT:case A.BGSOUND:case A.BASEFONT:case A.TEMPLATE:{Vi(e,t);break}case A.BODY:{Zve(e,t);break}case A.FORM:{nye(e,t);break}case A.NOBR:{uye(e,t);break}case A.MATH:{_ye(e,t);break}case A.TABLE:{fye(e,t);break}case A.INPUT:{dye(e,t);break}case A.PARAM:case A.TRACK:case A.SOURCE:{hye(e,t);break}case A.IMAGE:{mye(e,t);break}case A.BUTTON:{sye(e,t);break}case A.APPLET:case A.OBJECT:case A.MARQUEE:{cye(e,t);break}case A.IFRAME:{yye(e,t);break}case A.SELECT:{bye(e,t);break}case A.OPTION:case A.OPTGROUP:{xye(e,t);break}case A.NOEMBED:case A.NOFRAMES:{VM(e,t);break}case A.FRAMESET:{Jve(e,t);break}case A.TEXTAREA:{gye(e,t);break}case A.NOSCRIPT:{e.options.scriptingEnabled?VM(e,t):GM(e,t);break}case A.PLAINTEXT:{iye(e,t);break}case A.COL:case A.TH:case A.TD:case A.TR:case A.HEAD:case A.FRAME:case A.TBODY:case A.TFOOT:case A.THEAD:case A.CAPTION:case A.COLGROUP:break;default:GM(e,t)}}function Tye(e,t){if(e.openElements.hasInScope(A.BODY)&&(e.insertionMode=se.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function Aye(e,t){e.openElements.hasInScope(A.BODY)&&(e.insertionMode=se.AFTER_BODY,QG(e,t))}function Cye(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function Oye(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(A.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(A.FORM):r&&e.openElements.remove(r))}function kye(e){e.openElements.hasInButtonScope(A.P)||e._insertFakeElement(pe.P,A.P),e._closePElement()}function Nye(e){e.openElements.hasInListItemScope(A.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(A.LI),e.openElements.popUntilTagNamePopped(A.LI))}function Rye(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function Mye(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Pye(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function Iye(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(pe.BR,A.BR),e.openElements.pop(),e.framesetOk=!1}function UG(e,t){const r=t.tagName,n=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(n===s&&(n!==A.UNKNOWN||e.treeAdapter.getTagName(i)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function ib(e,t){switch(t.tagID){case A.A:case A.B:case A.I:case A.S:case A.U:case A.EM:case A.TT:case A.BIG:case A.CODE:case A.FONT:case A.NOBR:case A.SMALL:case A.STRIKE:case A.STRONG:{ZA(e,t);break}case A.P:{kye(e);break}case A.DL:case A.UL:case A.OL:case A.DIR:case A.DIV:case A.NAV:case A.PRE:case A.MAIN:case A.MENU:case A.ASIDE:case A.BUTTON:case A.CENTER:case A.FIGURE:case A.FOOTER:case A.HEADER:case A.HGROUP:case A.DIALOG:case A.ADDRESS:case A.ARTICLE:case A.DETAILS:case A.SEARCH:case A.SECTION:case A.SUMMARY:case A.LISTING:case A.FIELDSET:case A.BLOCKQUOTE:case A.FIGCAPTION:{Cye(e,t);break}case A.LI:{Nye(e);break}case A.DD:case A.DT:{Rye(e,t);break}case A.H1:case A.H2:case A.H3:case A.H4:case A.H5:case A.H6:{Mye(e);break}case A.BR:{Iye(e);break}case A.BODY:{Tye(e,t);break}case A.HTML:{Aye(e,t);break}case A.FORM:{Oye(e);break}case A.APPLET:case A.OBJECT:case A.MARQUEE:{Pye(e,t);break}case A.TEMPLATE:{oc(e,t);break}default:UG(e,t)}}function HG(e,t){e.tmplInsertionModeStack.length>0?KG(e,t):JA(e,t)}function Dye(e,t){var r;t.tagID===A.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Lye(e,t){e._err(t,_e.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function c3(e,t){if(e.openElements.currentTagId!==void 0&&jG.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=se.IN_TABLE_TEXT,t.type){case St.CHARACTER:{VG(e,t);break}case St.WHITESPACE_CHARACTER:{qG(e,t);break}}else Kp(e,t)}function jye(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Me.HTML),e.insertionMode=se.IN_CAPTION}function Bye(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Me.HTML),e.insertionMode=se.IN_COLUMN_GROUP}function zye(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(pe.COLGROUP,A.COLGROUP),e.insertionMode=se.IN_COLUMN_GROUP,e8(e,t)}function $ye(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Me.HTML),e.insertionMode=se.IN_TABLE_BODY}function Fye(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(pe.TBODY,A.TBODY),e.insertionMode=se.IN_TABLE_BODY,sb(e,t)}function Uye(e,t){e.openElements.hasInTableScope(A.TABLE)&&(e.openElements.popUntilTagNamePopped(A.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Hye(e,t){FG(t)?e._appendElement(t,Me.HTML):Kp(e,t),t.ackSelfClosing=!0}function qye(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Me.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Wf(e,t){switch(t.tagID){case A.TD:case A.TH:case A.TR:{Fye(e,t);break}case A.STYLE:case A.SCRIPT:case A.TEMPLATE:{Vi(e,t);break}case A.COL:{zye(e,t);break}case A.FORM:{qye(e,t);break}case A.TABLE:{Uye(e,t);break}case A.TBODY:case A.TFOOT:case A.THEAD:{$ye(e,t);break}case A.INPUT:{Hye(e,t);break}case A.CAPTION:{jye(e,t);break}case A.COLGROUP:{Bye(e,t);break}default:Kp(e,t)}}function qh(e,t){switch(t.tagID){case A.TABLE:{e.openElements.hasInTableScope(A.TABLE)&&(e.openElements.popUntilTagNamePopped(A.TABLE),e._resetInsertionMode());break}case A.TEMPLATE:{oc(e,t);break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:case A.TBODY:case A.TD:case A.TFOOT:case A.TH:case A.THEAD:case A.TR:break;default:Kp(e,t)}}function Kp(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ab(e,t),e.fosterParentingEnabled=r}function qG(e,t){e.pendingCharacterTokens.push(t)}function VG(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Vd(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Kp(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const GG=new Set([A.CAPTION,A.COL,A.COLGROUP,A.TBODY,A.TD,A.TFOOT,A.TH,A.THEAD,A.TR]);function Vye(e,t){const r=t.tagID;GG.has(r)?e.openElements.hasInTableScope(A.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=se.IN_TABLE,Wf(e,t)):Gn(e,t)}function Gye(e,t){const r=t.tagID;switch(r){case A.CAPTION:case A.TABLE:{e.openElements.hasInTableScope(A.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=se.IN_TABLE,r===A.TABLE&&qh(e,t));break}case A.BODY:case A.COL:case A.COLGROUP:case A.HTML:case A.TBODY:case A.TD:case A.TFOOT:case A.TH:case A.THEAD:case A.TR:break;default:ib(e,t)}}function e8(e,t){switch(t.tagID){case A.HTML:{Gn(e,t);break}case A.COL:{e._appendElement(t,Me.HTML),t.ackSelfClosing=!0;break}case A.TEMPLATE:{Vi(e,t);break}default:nv(e,t)}}function Wye(e,t){switch(t.tagID){case A.COLGROUP:{e.openElements.currentTagId===A.COLGROUP&&(e.openElements.pop(),e.insertionMode=se.IN_TABLE);break}case A.TEMPLATE:{oc(e,t);break}case A.COL:break;default:nv(e,t)}}function nv(e,t){e.openElements.currentTagId===A.COLGROUP&&(e.openElements.pop(),e.insertionMode=se.IN_TABLE,e._processToken(t))}function sb(e,t){switch(t.tagID){case A.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Me.HTML),e.insertionMode=se.IN_ROW;break}case A.TH:case A.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(pe.TR,A.TR),e.insertionMode=se.IN_ROW,ob(e,t);break}case A.CAPTION:case A.COL:case A.COLGROUP:case A.TBODY:case A.TFOOT:case A.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE,Wf(e,t));break}default:Wf(e,t)}}function F_(e,t){const r=t.tagID;switch(t.tagID){case A.TBODY:case A.TFOOT:case A.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE);break}case A.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE,qh(e,t));break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:case A.TD:case A.TH:case A.TR:break;default:qh(e,t)}}function ob(e,t){switch(t.tagID){case A.TH:case A.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Me.HTML),e.insertionMode=se.IN_CELL,e.activeFormattingElements.insertMarker();break}case A.CAPTION:case A.COL:case A.COLGROUP:case A.TBODY:case A.TFOOT:case A.THEAD:case A.TR:{e.openElements.hasInTableScope(A.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE_BODY,sb(e,t));break}default:Wf(e,t)}}function WG(e,t){switch(t.tagID){case A.TR:{e.openElements.hasInTableScope(A.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE_BODY);break}case A.TABLE:{e.openElements.hasInTableScope(A.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE_BODY,F_(e,t));break}case A.TBODY:case A.TFOOT:case A.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(A.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=se.IN_TABLE_BODY,F_(e,t));break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:case A.TD:case A.TH:break;default:qh(e,t)}}function Yye(e,t){const r=t.tagID;GG.has(r)?(e.openElements.hasInTableScope(A.TD)||e.openElements.hasInTableScope(A.TH))&&(e._closeTableCell(),ob(e,t)):Gn(e,t)}function Xye(e,t){const r=t.tagID;switch(r){case A.TD:case A.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=se.IN_ROW);break}case A.TABLE:case A.TBODY:case A.TFOOT:case A.THEAD:case A.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),WG(e,t));break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:break;default:ib(e,t)}}function YG(e,t){switch(t.tagID){case A.HTML:{Gn(e,t);break}case A.OPTION:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e._insertElement(t,Me.HTML);break}case A.OPTGROUP:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e.openElements.currentTagId===A.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Me.HTML);break}case A.HR:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e.openElements.currentTagId===A.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Me.HTML),t.ackSelfClosing=!0;break}case A.INPUT:case A.KEYGEN:case A.TEXTAREA:case A.SELECT:{e.openElements.hasInSelectScope(A.SELECT)&&(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode(),t.tagID!==A.SELECT&&e._processStartTag(t));break}case A.SCRIPT:case A.TEMPLATE:{Vi(e,t);break}}}function XG(e,t){switch(t.tagID){case A.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===A.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===A.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===A.OPTGROUP&&e.openElements.pop();break}case A.OPTION:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop();break}case A.SELECT:{e.openElements.hasInSelectScope(A.SELECT)&&(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode());break}case A.TEMPLATE:{oc(e,t);break}}}function Kye(e,t){const r=t.tagID;r===A.CAPTION||r===A.TABLE||r===A.TBODY||r===A.TFOOT||r===A.THEAD||r===A.TR||r===A.TD||r===A.TH?(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode(),e._processStartTag(t)):YG(e,t)}function Qye(e,t){const r=t.tagID;r===A.CAPTION||r===A.TABLE||r===A.TBODY||r===A.TFOOT||r===A.THEAD||r===A.TR||r===A.TD||r===A.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode(),e.onEndTag(t)):XG(e,t)}function Zye(e,t){switch(t.tagID){case A.BASE:case A.BASEFONT:case A.BGSOUND:case A.LINK:case A.META:case A.NOFRAMES:case A.SCRIPT:case A.STYLE:case A.TEMPLATE:case A.TITLE:{Vi(e,t);break}case A.CAPTION:case A.COLGROUP:case A.TBODY:case A.TFOOT:case A.THEAD:{e.tmplInsertionModeStack[0]=se.IN_TABLE,e.insertionMode=se.IN_TABLE,Wf(e,t);break}case A.COL:{e.tmplInsertionModeStack[0]=se.IN_COLUMN_GROUP,e.insertionMode=se.IN_COLUMN_GROUP,e8(e,t);break}case A.TR:{e.tmplInsertionModeStack[0]=se.IN_TABLE_BODY,e.insertionMode=se.IN_TABLE_BODY,sb(e,t);break}case A.TD:case A.TH:{e.tmplInsertionModeStack[0]=se.IN_ROW,e.insertionMode=se.IN_ROW,ob(e,t);break}default:e.tmplInsertionModeStack[0]=se.IN_BODY,e.insertionMode=se.IN_BODY,Gn(e,t)}}function Jye(e,t){t.tagID===A.TEMPLATE&&oc(e,t)}function KG(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(A.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):JA(e,t)}function ebe(e,t){t.tagID===A.HTML?Gn(e,t):av(e,t)}function QG(e,t){var r;if(t.tagID===A.HTML){if(e.fragmentContext||(e.insertionMode=se.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===A.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else av(e,t)}function av(e,t){e.insertionMode=se.IN_BODY,ab(e,t)}function tbe(e,t){switch(t.tagID){case A.HTML:{Gn(e,t);break}case A.FRAMESET:{e._insertElement(t,Me.HTML);break}case A.FRAME:{e._appendElement(t,Me.HTML),t.ackSelfClosing=!0;break}case A.NOFRAMES:{Vi(e,t);break}}}function rbe(e,t){t.tagID===A.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==A.FRAMESET&&(e.insertionMode=se.AFTER_FRAMESET))}function nbe(e,t){switch(t.tagID){case A.HTML:{Gn(e,t);break}case A.NOFRAMES:{Vi(e,t);break}}}function abe(e,t){t.tagID===A.HTML&&(e.insertionMode=se.AFTER_AFTER_FRAMESET)}function ibe(e,t){t.tagID===A.HTML?Gn(e,t):P1(e,t)}function P1(e,t){e.insertionMode=se.IN_BODY,ab(e,t)}function sbe(e,t){switch(t.tagID){case A.HTML:{Gn(e,t);break}case A.NOFRAMES:{Vi(e,t);break}}}function obe(e,t){t.chars=Sr,e._insertCharacters(t)}function lbe(e,t){e._insertCharacters(t),e.framesetOk=!1}function ZG(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Me.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ube(e,t){if(Sve(t))ZG(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===Me.MATHML?DG(t):n===Me.SVG&&(Tve(t),LG(t)),QA(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function cbe(e,t){if(t.tagID===A.P||t.tagID===A.BR){ZG(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===Me.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(n);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(r);break}}}pe.AREA,pe.BASE,pe.BASEFONT,pe.BGSOUND,pe.BR,pe.COL,pe.EMBED,pe.FRAME,pe.HR,pe.IMG,pe.INPUT,pe.KEYGEN,pe.LINK,pe.META,pe.PARAM,pe.SOURCE,pe.TRACK,pe.WBR;const fbe=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,dbe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),WM={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function JG(e,t){const r=wbe(e),n=XA("type",{handlers:{root:hbe,element:pbe,text:mbe,comment:tW,doctype:gbe,raw:ybe},unknown:bbe}),a={parser:r?new qM(WM):qM.getFragmentParser(void 0,WM),handle(o){n(o,a)},stitches:!1,options:t||{}};n(e,a),P0(a,Ss());const i=r?a.parser.document:a.parser.getFragment(),s=p1e(i,{file:a.options.file});return a.stitches&&Vu(s,"comment",function(o,u,c){const h=o;if(h.value.stitch&&c&&u!==void 0){const d=c.children;return d[u]=h.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function eW(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function hbe(e,t){eW(e.children,t)}function pbe(e,t){xbe(e,t),eW(e.children,t),Ebe(e,t)}function mbe(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:St.CHARACTER,chars:e.value,location:Qp(e)};P0(t,Ss(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function gbe(e,t){const r={type:St.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Qp(e)};P0(t,Ss(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function vbe(e,t){t.stitches=!0;const r=_be(e);if("children"in e&&"children"in r){const n=JG({type:"root",children:e.children},t.options);r.children=n.children}tW({type:"comment",value:{stitch:r}},t)}function tW(e,t){const r=e.value,n={type:St.COMMENT,data:r,location:Qp(e)};P0(t,Ss(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ybe(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,rW(t,Ss(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(fbe,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function bbe(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))vbe(r,t);else{let n="";throw dbe.has(r.type)&&(n=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+n)}}function P0(e,t){rW(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ur.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function rW(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function xbe(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ur.PLAINTEXT)return;P0(t,Ss(e));const n=t.parser.openElements.current;let a="namespaceURI"in n?n.namespaceURI:ds.html;a===ds.html&&r==="svg"&&(a=ds.svg);const i=k1e({...e,children:[]},{space:a===ds.svg?"svg":"html"}),s={type:St.START_TAG,tagName:r,tagID:M0(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Qp(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function Ebe(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&TG.includes(r)||t.parser.tokenizer.state===Ur.PLAINTEXT)return;P0(t,Gy(e));const n={type:St.END_TAG,tagName:r,tagID:M0(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Qp(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ur.RCDATA||t.parser.tokenizer.state===Ur.RAWTEXT||t.parser.tokenizer.state===Ur.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ur.DATA)}function wbe(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Qp(e){const t=Ss(e)||{line:void 0,column:void 0,offset:void 0},r=Gy(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function _be(e){return"children"in e?Vf({...e,children:[]}):Vf(e)}function Sbe(e){return function(t,r){return JG(t,{...e,file:r})}}function iv(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,a=r.indexOf(t);for(;a!==-1;)n++,a=r.indexOf(t,a+t.length);return n}function Tbe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Abe(e,t,r){const a=qp((r||{}).ignore||[]),i=Cbe(t);let s=-1;for(;++s<i.length;)SA(e,"text",o);function o(c,h){let d=-1,m;
vendor: 5,071 bytes, lines 638-639
638for(;++d<h.length;){const v=h[d],y=m?m.children:void 0;if(a(v,y?y.indexOf(v):void 0,m))return;m=v}if(m)return u(c,h)}function u(c,h){const d=h[h.length-1],m=i[s][0],v=i[s][1];let y=0;const E=d.children.indexOf(c);let _=!1,T=[];m.lastIndex=0;let C=m.exec(c.value);for(;C;){const P=C.index,O={index:C.index,input:C.input,stack:[...h,c]};let k=v(...C,O);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?m.lastIndex=P+1:(y!==P&&T.push({type:"text",value:c.value.slice(y,P)}),Array.isArray(k)?T.push(...k):k&&T.push(k),y=P+C[0].length,_=!0),!m.global)break;C=m.exec(c.value)}return _?(y<c.value.length&&T.push({type:"text",value:c.value.slice(y)}),d.children.splice(E,1,...T)):T=[c],E+T.length}}function Cbe(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const a=r[n];t.push([Obe(a[0]),kbe(a[1])])}return t}function Obe(e){return typeof e=="string"?new RegExp(Tbe(e),"g"):e}function kbe(e){return typeof e=="function"?e:function(){return e}}const f3="phrasing",d3=["autolink","link","image","label"];function Nbe(){return{transforms:[jbe],enter:{literalAutolink:Mbe,literalAutolinkEmail:h3,literalAutolinkHttp:h3,literalAutolinkWww:h3},exit:{literalAutolink:Lbe,literalAutolinkEmail:Dbe,literalAutolinkHttp:Pbe,literalAutolinkWww:Ibe}}}function Rbe(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:f3,notInConstruct:d3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:f3,notInConstruct:d3},{character:":",before:"[ps]",after:"\\/",inConstruct:f3,notInConstruct:d3}]}}function Mbe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function h3(e){this.config.enter.autolinkProtocol.call(this,e)}function Pbe(e){this.config.exit.autolinkProtocol.call(this,e)}function Ibe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Dbe(e){this.config.exit.autolinkEmail.call(this,e)}function Lbe(e){this.exit(e)}function jbe(e){Abe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Bbe],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),zbe]],{ignore:["link","linkReference"]})}function Bbe(e,t,r,n,a){let i="";if(!nW(a)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!$be(r)))return!1;const s=Fbe(r+n);if(!s[0])return!1;const o={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function zbe(e,t,r,n){return!nW(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function $be(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Fbe(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const a=iv(e,"(");let i=iv(e,")");for(;n!==-1&&a>i;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),i++;return[e,r]}function nW(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||qu(r)||Wy(r))&&(!t||r!==47)}aW.peek=Kbe;function Ube(){this.buffer()}function Hbe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qbe(){this.buffer()}function Vbe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Gbe(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=$i(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Wbe(e){this.exit(e)}function Ybe(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=$i(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Xbe(e){this.exit(e)}function Kbe(){return"["}function aW(e,t,r,n){const a=r.createTracker(n);let i=a.move("[^");const s=r.enter("footnoteReference"),o=r.enter("reference");return i+=a.move(r.safe(r.associationId(e),{after:"]",before:i})),o(),s(),i+=a.move("]"),i}function Qbe(){return{enter:{gfmFootnoteCallString:Ube,gfmFootnoteCall:Hbe,gfmFootnoteDefinitionLabelString:qbe,gfmFootnoteDefinition:Vbe},exit:{gfmFootnoteCallString:Gbe,gfmFootnoteCall:Wbe,gfmFootnoteDefinitionLabelString:Ybe,gfmFootnoteDefinition:Xbe}}}function Zbe(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:aW},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,a,i,s){const o=i.createTracker(s);let u=o.move("[^");const c=i.enter("footnoteDefinition"),h=i.enter("label");return u+=o.move(i.safe(i.associationId(n),{before:u,after:"]"})),h(),u+=o.move("]:"),n.children&&n.children.length>0&&(o.shift(4),u+=o.move((t?`
639`:" ")+i.indentLines(i.containerFlow(n,o.current()),t?iW:Jbe))),c(),u}}function Jbe(e,t,r){return t===0?e:iW(e,t,r)}function iW(e,t,r){return(r?"":"    ")+e}const e2e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];sW.peek=i2e;
vendor: 13,713 bytes, lines 639-651
639function t2e(){return{canContainEols:["delete"],enter:{strikethrough:n2e},exit:{strikethrough:a2e}}}function r2e(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:e2e}],handlers:{delete:sW}}}function n2e(e){this.enter({type:"delete",children:[]},e)}function a2e(e){this.exit(e)}function sW(e,t,r,n){const a=r.createTracker(n),i=r.enter("strikethrough");let s=a.move("~~");return s+=r.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function i2e(){return"~"}function s2e(e){return e.length}function o2e(e,t){const r=t||{},n=(r.align||[]).concat(),a=r.stringLength||s2e,i=[],s=[],o=[],u=[];let c=0,h=-1;for(;++h<e.length;){const b=[],E=[];let _=-1;for(e[h].length>c&&(c=e[h].length);++_<e[h].length;){const T=l2e(e[h][_]);if(r.alignDelimiters!==!1){const C=a(T);E[_]=C,(u[_]===void 0||C>u[_])&&(u[_]=C)}b.push(T)}s[h]=b,o[h]=E}let d=-1;if(typeof n=="object"&&"length"in n)for(;++d<c;)i[d]=YM(n[d]);else{const b=YM(n);for(;++d<c;)i[d]=b}d=-1;const m=[],v=[];for(;++d<c;){const b=i[d];let E="",_="";b===99?(E=":",_=":"):b===108?E=":":b===114&&(_=":");let T=r.alignDelimiters===!1?1:Math.max(1,u[d]-E.length-_.length);const C=E+"-".repeat(T)+_;r.alignDelimiters!==!1&&(T=E.length+T+_.length,T>u[d]&&(u[d]=T),v[d]=T),m[d]=C}s.splice(1,0,m),o.splice(1,0,v),h=-1;const y=[];for(;++h<s.length;){const b=s[h],E=o[h];d=-1;const _=[];for(;++d<c;){const T=b[d]||"";let C="",P="";if(r.alignDelimiters!==!1){const O=u[d]-(E[d]||0),k=i[d];k===114?C=" ".repeat(O):k===99?O%2?(C=" ".repeat(O/2+.5),P=" ".repeat(O/2-.5)):(C=" ".repeat(O/2),P=C):P=" ".repeat(O)}r.delimiterStart!==!1&&!d&&_.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||d)&&_.push(" "),r.alignDelimiters!==!1&&_.push(C),_.push(T),r.alignDelimiters!==!1&&_.push(P),r.padding!==!1&&_.push(" "),(r.delimiterEnd!==!1||d!==c-1)&&_.push("|")}y.push(r.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return y.join(`
640`)}function l2e(e){return e==null?"":String(e)}function YM(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function u2e(e,t,r,n){const a=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);const s=r.indentLines(r.containerFlow(e,i.current()),c2e);return a(),s}function c2e(e,t,r){return">"+(r?"":" ")+e}function f2e(e,t){return XM(e,t.inConstruct,!0)&&!XM(e,t.notInConstruct,!1)}function XM(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function KM(e,t,r,n){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
641`&&f2e(r.stack,r.unsafe[a]))return/[ \t]/.test(n.before)?"":" ";return`\\
642`}function oW(e,t){const r=String(e);let n=r.indexOf(t),a=n,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===a?++i>s&&(s=i):i=1,a=n+t.length,n=r.indexOf(t,a);return s}function d2e(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function h2e(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function p2e(e,t,r,n){const a=h2e(r),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(d2e(e,r)){const d=r.enter("codeIndented"),m=r.indentLines(i,m2e);return d(),m}const o=r.createTracker(n),u=a.repeat(Math.max(oW(i,a)+1,3)),c=r.enter("codeFenced");let h=o.move(u);if(e.lang){const d=r.enter(`codeFencedLang${s}`);h+=o.move(r.safe(e.lang,{before:h,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=r.enter(`codeFencedMeta${s}`);h+=o.move(" "),h+=o.move(r.safe(e.meta,{before:h,after:`
643`,encode:["`"],...o.current()})),d()}return h+=o.move(`
644`),i&&(h+=o.move(i+`
645`)),h+=o.move(u),c(),h}function m2e(e,t,r){return(r?"":"    ")+e}function t8(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function g2e(e,t,r,n){const a=t8(r),i=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=r.enter("label");const u=r.createTracker(n);let c=u.move("[");return c+=u.move(r.safe(r.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=r.enter("destinationRaw"),c+=u.move(r.safe(e.url,{before:c,after:e.title?" ":`
646`,...u.current()}))),o(),e.title&&(o=r.enter(`title${i}`),c+=u.move(" "+a),c+=u.move(r.safe(e.title,{before:c,after:a,...u.current()})),c+=u.move(a),o()),s(),c}function v2e(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Vh(e){return"&#x"+e.toString(16).toUpperCase()+";"}function sv(e,t,r){const n=qf(e),a=qf(t);return n===void 0?a===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}lW.peek=y2e;function lW(e,t,r,n){const a=v2e(r),i=r.enter("emphasis"),s=r.createTracker(n),o=s.move(a);let u=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const c=u.charCodeAt(0),h=sv(n.before.charCodeAt(n.before.length-1),c,a);h.inside&&(u=Vh(c)+u.slice(1));const d=u.charCodeAt(u.length-1),m=sv(n.after.charCodeAt(0),d,a);m.inside&&(u=u.slice(0,-1)+Vh(d));const v=s.move(a);return i(),r.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},o+u+v}function y2e(e,t,r){return r.options.emphasis||"*"}function b2e(e,t){let r=!1;return Vu(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,x_}),!!((!e.depth||e.depth<3)&&vA(e)&&(t.options.setext||r))}function x2e(e,t,r,n){const a=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(b2e(e,r)){const h=r.enter("headingSetext"),d=r.enter("phrasing"),m=r.containerPhrasing(e,{...i.current(),before:`
647`,after:`
648`});return d(),h(),m+`
649`+(a===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
650`))+1))}const s="#".repeat(a),o=r.enter("headingAtx"),u=r.enter("phrasing");i.move(s+" ");let c=r.containerPhrasing(e,{before:"# ",after:`
651`,...i.current()});return/^[\t ]/.test(c)&&(c=Vh(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,r.options.closeAtx&&(c+=" "+s),u(),o(),c}uW.peek=E2e;function uW(e){return e.value||""}function E2e(){return"<"}cW.peek=w2e;function cW(e,t,r,n){const a=t8(r),i=a==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=r.enter("label");const u=r.createTracker(n);let c=u.move("![");return c+=u.move(r.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=r.enter("destinationRaw"),c+=u.move(r.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=r.enter(`title${i}`),c+=u.move(" "+a),c+=u.move(r.safe(e.title,{before:c,after:a,...u.current()})),c+=u.move(a),o()),c+=u.move(")"),s(),c}function w2e(){return"!"}fW.peek=_2e;function fW(e,t,r,n){const a=e.referenceType,i=r.enter("imageReference");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("![");const c=r.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),s();const h=r.stack;r.stack=[],s=r.enter("reference");const d=r.safe(r.associationId(e),{before:u,after:"]",...o.current()});return s(),r.stack=h,i(),a==="full"||!c||c!==d?u+=o.move(d+"]"):a==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function _2e(){return"!"}dW.peek=S2e;function dW(e,t,r){let n=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(n);)a+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){const s=r.unsafe[i],o=r.compilePattern(s);let u;if(s.atBreak)for(;u=o.exec(n);){let c=u.index;n.charCodeAt(c)===10&&n.charCodeAt(c-1)===13&&c--,n=n.slice(0,c)+" "+n.slice(u.index+1)}}return a+n+a}function S2e(){return"`"}function hW(e,t){const r=vA(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}pW.peek=T2e;function pW(e,t,r,n){const a=t8(r),i=a==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let o,u;if(hW(e,r)){const h=r.stack;r.stack=[],o=r.enter("autolink");let d=s.move("<");return d+=s.move(r.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),r.stack=h,d}o=r.enter("link"),u=r.enter("label");let c=s.move("[");return c+=s.move(r.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(r.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(u=r.enter("destinationRaw"),c+=s.move(r.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=r.enter(`title${i}`),c+=s.move(" "+a),c+=s.move(r.safe(e.title,{before:c,after:a,...s.current()})),c+=s.move(a),u()),c+=s.move(")"),o(),c}function T2e(e,t,r){return hW(e,r)?"<":"["}mW.peek=A2e;function mW(e,t,r,n){const a=e.referenceType,i=r.enter("linkReference");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("[");const c=r.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),s();const h=r.stack;r.stack=[],s=r.enter("reference");const d=r.safe(r.associationId(e),{before:u,after:"]",...o.current()});return s(),r.stack=h,i(),a==="full"||!c||c!==d?u+=o.move(d+"]"):a==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function A2e(){return"["}function r8(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function C2e(e){const t=r8(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function O2e(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function gW(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function k2e(e,t,r,n){const a=r.enter("list"),i=r.bulletCurrent;let s=e.ordered?O2e(r):r8(r);const o=e.ordered?s==="."?")":".":C2e(r);let u=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(u=!0),gW(r)===s&&h){let d=-1;for(;++d<e.children.length;){const m=e.children[d];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=o),r.bulletCurrent=s;const c=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=i,a(),c}function N2e(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function R2e(e,t,r,n){const a=N2e(r);let i=r.bulletCurrent||r8(r);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=r.createTracker(n);o.move(i+" ".repeat(s-i.length)),o.shift(s);const u=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,o.current()),h);return u(),c;function h(d,m,v){return m?(v?"":" ".repeat(s))+d:(v?i:i+" ".repeat(s-i.length))+d}}function M2e(e,t,r,n){const a=r.enter("paragraph"),i=r.enter("phrasing"),s=r.containerPhrasing(e,n);return i(),a(),s}const P2e=qp(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function I2e(e,t,r,n){return(e.children.some(function(s){return P2e(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function D2e(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}vW.peek=L2e;function vW(e,t,r,n){const a=D2e(r),i=r.enter("strong"),s=r.createTracker(n),o=s.move(a+a);let u=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const c=u.charCodeAt(0),h=sv(n.before.charCodeAt(n.before.length-1),c,a);h.inside&&(u=Vh(c)+u.slice(1));const d=u.charCodeAt(u.length-1),m=sv(n.after.charCodeAt(0),d,a);m.inside&&(u=u.slice(0,-1)+Vh(d));const v=s.move(a+a);return i(),r.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},o+u+v}function L2e(e,t,r){return r.options.strong||"*"}
vendor: 5,299 bytes, lines 651-653
651function j2e(e,t,r,n){return r.safe(e.value,n)}function B2e(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function z2e(e,t,r){const n=(gW(r)+(r.options.ruleSpaces?" ":"")).repeat(B2e(r));return r.options.ruleSpaces?n.slice(0,-1):n}const yW={blockquote:u2e,break:KM,code:p2e,definition:g2e,emphasis:lW,hardBreak:KM,heading:x2e,html:uW,image:cW,imageReference:fW,inlineCode:dW,link:pW,linkReference:mW,list:k2e,listItem:R2e,paragraph:M2e,root:I2e,strong:vW,text:j2e,thematicBreak:z2e};function $2e(){return{enter:{table:F2e,tableData:QM,tableHeader:QM,tableRow:H2e},exit:{codeText:q2e,table:U2e,tableData:p3,tableHeader:p3,tableRow:p3}}}function F2e(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function U2e(e){this.exit(e),this.data.inTable=void 0}function H2e(e){this.enter({type:"tableRow",children:[]},e)}function p3(e){this.exit(e)}function QM(e){this.enter({type:"tableCell",children:[]},e)}function q2e(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,V2e));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function V2e(e,t){return t==="|"?t:e}function G2e(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,a=t.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
652`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:u,tableRow:o}};function s(v,y,b,E){return c(h(v,b,E),v.align)}function o(v,y,b,E){const _=d(v,b,E),T=c([_]);return T.slice(0,T.indexOf(`
653`))}function u(v,y,b,E){const _=b.enter("tableCell"),T=b.enter("phrasing"),C=b.containerPhrasing(v,{...E,before:i,after:i});return T(),_(),C}function c(v,y){return o2e(v,{align:y,alignDelimiters:n,padding:r,stringLength:a})}function h(v,y,b){const E=v.children;let _=-1;const T=[],C=y.enter("table");for(;++_<E.length;)T[_]=d(E[_],y,b);return C(),T}function d(v,y,b){const E=v.children;let _=-1;const T=[],C=y.enter("tableRow");for(;++_<E.length;)T[_]=u(E[_],v,y,b);return C(),T}function m(v,y,b){let E=yW.inlineCode(v,y,b);return b.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function W2e(){return{exit:{taskListCheckValueChecked:ZM,taskListCheckValueUnchecked:ZM,paragraph:X2e}}}function Y2e(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:K2e}}}function ZM(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function X2e(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const a=t.children;let i=-1,s;for(;++i<a.length;){const o=a[i];if(o.type==="paragraph"){s=o;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function K2e(e,t,r,n){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=r.createTracker(n);i&&o.move(s);let u=yW.listItem(e,t,r,{...n,...o.current()});return i&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(h){return h+s}}function Q2e(){return[Nbe(),Qbe(),t2e(),$2e(),W2e()]}function Z2e(e){return{extensions:[Rbe(),Zbe(e),r2e(),G2e(e),Y2e()]}}const J2e={tokenize:ixe,partial:!0},bW={tokenize:sxe,partial:!0},xW={tokenize:oxe,partial:!0},EW={tokenize:lxe,partial:!0},exe={tokenize:uxe,partial:!0},wW={name:"wwwAutolink",tokenize:nxe,previous:SW},_W={name:"protocolAutolink",tokenize:axe,previous:TW},Oo={name:"emailAutolink",tokenize:rxe,previous:AW},Os={};function txe(){return{text:Os}}let cu=48;for(;cu<123;)Os[cu]=Oo,cu++,cu===58?cu=65:cu===91&&(cu=97);Os[43]=Oo;Os[45]=Oo;Os[46]=Oo;Os[95]=Oo;Os[72]=[Oo,_W];Os[104]=[Oo,_W];Os[87]=[Oo,wW];Os[119]=[Oo,wW];function rxe(e,t,r){const n=this;let a,i;return s;function s(d){return!U_(d)||!AW.call(n,n.previous)||n8(n.events)?r(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return U_(d)?(e.consume(d),o):d===64?(e.consume(d),u):r(d)}function u(d){return d===46?e.check(exe,h,c)(d):d===45||d===95||qn(d)?(i=!0,e.consume(d),u):h(d)}function c(d){return e.consume(d),a=!0,u}function h(d){return i&&a&&Jn(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):r(d)}}function nxe(e,t,r){const n=this;return a;function a(s){return s!==87&&s!==119||!SW.call(n,n.previous)||n8(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(J2e,e.attempt(bW,e.attempt(xW,i),r),r)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function axe(e,t,r){const n=this;let a="",i=!1;return s;function s(d){return(d===72||d===104)&&TW.call(n,n.previous)&&!n8(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),o):r(d)}
vendor: 8,621 bytes, line 653
653function o(d){if(Jn(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const m=a.toLowerCase();if(m==="http"||m==="https")return e.consume(d),u}return r(d)}function u(d){return d===47?(e.consume(d),i?c:(i=!0,u)):r(d)}function c(d){return d===null||Y1(d)||dr(d)||qu(d)||Wy(d)?r(d):e.attempt(bW,e.attempt(xW,h),r)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function ixe(e,t,r){let n=0;return a;function a(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),a):s===46&&n===3?(e.consume(s),i):r(s)}function i(s){return s===null?r(s):t(s)}}function sxe(e,t,r){let n,a,i;return s;function s(c){return c===46||c===95?e.check(EW,u,o)(c):c===null||dr(c)||qu(c)||c!==45&&Wy(c)?u(c):(i=!0,e.consume(c),s)}function o(c){return c===95?n=!0:(a=n,n=void 0),e.consume(c),s}function u(c){return a||n||!i?r(c):t(c)}}function oxe(e,t){let r=0,n=0;return a;function a(s){return s===40?(r++,e.consume(s),a):s===41&&n<r?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(EW,t,i)(s):s===null||dr(s)||qu(s)?t(s):(e.consume(s),a)}function i(s){return s===41&&n++,e.consume(s),a}}function lxe(e,t,r){return n;function n(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),n):o===38?(e.consume(o),i):o===93?(e.consume(o),a):o===60||o===null||dr(o)||qu(o)?t(o):r(o)}function a(o){return o===null||o===40||o===91||dr(o)||qu(o)?t(o):n(o)}function i(o){return Jn(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),n):Jn(o)?(e.consume(o),s):r(o)}}function uxe(e,t,r){return n;function n(i){return e.consume(i),a}function a(i){return qn(i)?r(i):t(i)}}function SW(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dr(e)}function TW(e){return!Jn(e)}function AW(e){return!(e===47||U_(e))}function U_(e){return e===43||e===45||e===46||e===95||qn(e)}function n8(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const cxe={tokenize:yxe,partial:!0};function fxe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:mxe,continuation:{tokenize:gxe},exit:vxe}},text:{91:{name:"gfmFootnoteCall",tokenize:pxe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dxe,resolveTo:hxe}}}}function dxe(e,t,r){const n=this;let a=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;a--;){const u=n.events[a][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return r(u);const c=$i(n.sliceSerialize({start:s.end,end:n.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?r(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function hxe(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},o=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...o),e}function pxe(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?r(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(i>999||d===93&&!s||d===null||d===91||dr(d))return r(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes($i(n.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(d)}return dr(d)||(s=!0),i++,e.consume(d),d===92?h:c}function h(d){return d===91||d===92||d===93?(e.consume(d),i++,c):c(d)}}function mxe(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,s=0,o;return u;function u(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):r(y)}function h(y){if(s>999||y===93&&!o||y===null||y===91||dr(y))return r(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return i=$i(n.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return dr(y)||(o=!0),s++,e.consume(y),y===92?d:h}function d(y){return y===91||y===92||y===93?(e.consume(y),s++,h):h(y)}function m(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),a.includes(i)||a.push(i),At(e,v,"gfmFootnoteDefinitionWhitespace")):r(y)}function v(y){return t(y)}}function gxe(e,t,r){return e.check(Hp,t,e.attempt(cxe,t,r))}function vxe(e){e.exit("gfmFootnoteDefinition")}function yxe(e,t,r){const n=this;return At(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):r(i)}}function bxe(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:a};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function a(s,o){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let c=u;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[u][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[u][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[u][1].start)},m=[["enter",h,o],["enter",s[c][1],o],["exit",s[c][1],o],["enter",d,o]],v=o.parser.constructs.insideSpan.null;v&&qa(m,m.length,0,Yy(v,s.slice(c+1,u),o)),qa(m,m.length,0,[["exit",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["exit",h,o]]),qa(s,c-1,u-c+3,m),u=c+m.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function i(s,o,u){const c=this.previous,h=this.events;let d=0;return m;function m(y){return c===126&&h[h.length-1][1].type!=="characterEscape"?u(y):(s.enter("strikethroughSequenceTemporary"),v(y))}function v(y){const b=qf(c);if(y===126)return d>1?u(y):(s.consume(y),d++,v);if(d<2&&!r)return u(y);const E=s.exit("strikethroughSequenceTemporary"),_=qf(y);return E._open=!_||_===2&&!!b,E._close=!b||b===2&&!!_,o(y)}}}class xxe{constructor(){this.map=[]}add(t,r,n){Exe(this,t,r,n)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let a=n.pop();for(;a;){for(const i of a)t.push(i);a=n.pop()}this.map.length=0}}function Exe(e,t,r,n){let a=0;if(!(r===0&&n.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=r,e.map[a][2].push(...n);return}a+=1}e.map.push([t,r,n])}}function wxe(e,t){let r=!1;const n=[];for(;t<e.length;){const a=e[t];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left"
vendor: 4,360 bytes, line 653
653:"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function _xe(){return{flow:{null:{name:"table",tokenize:Sxe,resolveAll:Txe}}}}function Sxe(e,t,r){const n=this;let a=0,i=0,s;return o;function o($){let F=n.events.length-1;for(;F>-1;){const X=n.events[F][1].type;if(X==="lineEnding"||X==="linePrefix")F--;else break}const q=F>-1?n.events[F][1].type:null,Q=q==="tableHead"||q==="tableRow"?k:u;return Q===k&&n.parser.lazy[n.now().line]?r($):Q($)}function u($){return e.enter("tableHead"),e.enter("tableRow"),c($)}function c($){return $===124||(s=!0,i+=1),h($)}function h($){return $===null?r($):Ze($)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),v):r($):Rt($)?At(e,h,"whitespace")($):(i+=1,s&&(s=!1,a+=1),$===124?(e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),d($)))}function d($){return $===null||$===124||dr($)?(e.exit("data"),h($)):(e.consume($),$===92?m:d)}function m($){return $===92||$===124?(e.consume($),d):d($)}function v($){return n.interrupt=!1,n.parser.lazy[n.now().line]?r($):(e.enter("tableDelimiterRow"),s=!1,Rt($)?At(e,y,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):y($))}function y($){return $===45||$===58?E($):$===124?(s=!0,e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),b):O($)}function b($){return Rt($)?At(e,E,"whitespace")($):E($)}function E($){return $===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume($),e.exit("tableDelimiterMarker"),_):$===45?(i+=1,_($)):$===null||Ze($)?P($):O($)}function _($){return $===45?(e.enter("tableDelimiterFiller"),T($)):O($)}function T($){return $===45?(e.consume($),T):$===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume($),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C($))}function C($){return Rt($)?At(e,P,"whitespace")($):P($)}function P($){return $===124?y($):$===null||Ze($)?!s||a!==i?O($):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t($)):O($)}function O($){return r($)}function k($){return e.enter("tableRow"),M($)}function M($){return $===124?(e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),M):$===null||Ze($)?(e.exit("tableRow"),t($)):Rt($)?At(e,M,"whitespace")($):(e.enter("data"),j($))}function j($){return $===null||$===124||dr($)?(e.exit("data"),M($)):(e.consume($),$===92?z:j)}function z($){return $===92||$===124?(e.consume($),j):j($)}}function Txe(e,t){let r=-1,n=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,c,h,d;const m=new xxe;for(;++r<e.length;){const v=e[r],y=v[1];v[0]==="enter"?y.type==="tableHead"?(o=!1,u!==0&&(JM(m,t,u,c,h),h=void 0,u=0),c={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},m.add(r,0,[["enter",c,t]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(n=!0,d=void 0,i=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,h={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},m.add(r,0,[["enter",h,t]])),a=y.type==="tableDelimiterRow"?2:h?3:1):a&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],d=Jg(m,t,i,a,void 0,d),i=[0,0,0,0]),s[2]=r)):y.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(s[0]=s[1],d=Jg(m,t,i,a,void 0,d)),i=s,s=[i[1],r,0,0])):y.type==="tableHead"?(o=!0,u=r):y.type==="tableRow"||y.type==="tableDelimiterRow"?(u=r,i[1]!==0?(s[0]=s[1],d=Jg(m,t,i,a,r,d)):s[1]!==0&&(d=Jg(m,t,s,a,r,d)),a=0):a&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(s[3]=r)}for(u!==0&&JM(m,t,u,c,h),m.consume(t.events),r=-1;++r<t.events.length;){const v=t.events[r];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=wxe(t.events,r))}return e}function Jg(e,t,r,n,a,i){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(i.end=Object.assign({},yf(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const u=yf(t.events,r[1]);if(i={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(r[1],0,[["enter",i,t]]),r[2]!==0){const c=yf(t.events,r[2]),h=yf(t.events,r[3]),d={type:o,start:Object.assign({},c),end:Object.assign({},h)};
vendor: 11,614 bytes, lines 653-677
653if(e.add(r[2],0,[["enter",d,t]]),n!==2){const m=t.events[r[2]],v=t.events[r[3]];if(m[1].end=Object.assign({},v[1].end),m[1].type="chunkText",m[1].contentType="text",r[3]>r[2]+1){const y=r[2]+1,b=r[3]-r[2]-1;e.add(y,b,[])}}e.add(r[3]+1,0,[["exit",d,t]])}return a!==void 0&&(i.end=Object.assign({},yf(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function JM(e,t,r,n,a){const i=[],s=yf(t.events,r);a&&(a.end=Object.assign({},s),i.push(["exit",a,t])),n.end=Object.assign({},s),i.push(["exit",n,t]),e.add(r+1,0,i)}function yf(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const Axe={name:"tasklistCheck",tokenize:Oxe};function Cxe(){return{text:{91:Axe}}}function Oxe(e,t,r){const n=this;return a;function a(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),i)}function i(u){return dr(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):r(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(u)}function o(u){return Ze(u)?t(u):Rt(u)?e.check({tokenize:kxe},t,r)(u):r(u)}}function kxe(e,t,r){return At(e,n,"whitespace");function n(a){return a===null?r(a):t(a)}}function Nxe(e){return Lq([txe(),fxe(),bxe(e),_xe(),Cxe()])}const Rxe={};function Mxe(e){const t=this,r=e||Rxe,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(Nxe(r)),i.push(Q2e()),s.push(Z2e(r))}function Pxe(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:a,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},u)}function t(){this.buffer()}function r(){const u=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=u}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(u){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.stack[this.stack.length-1];h.type,this.exit(u),h.value=c;const d=h.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function i(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const c=this.resume(),h=this.stack[this.stack.length-1];h.type,this.exit(u),h.value=c,h.data.hChildren.push({type:"text",value:c})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function Ixe(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
654`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(i,s,o,u){const c=i.value||"",h=o.createTracker(u),d="$".repeat(Math.max(oW(c,"$")+1,2)),m=o.enter("mathFlow");let v=h.move(d);if(i.meta){const y=o.enter("mathFlowMeta");v+=h.move(o.safe(i.meta,{after:`
655`,before:v,encode:["$"],...h.current()})),y()}return v+=h.move(`
656`),c&&(v+=h.move(c+`
657`)),v+=h.move(d),m(),v}function n(i,s,o){let u=i.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(u);)c++;const h="$".repeat(c);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let d=-1;for(;++d<o.unsafe.length;){const m=o.unsafe[d];if(!m.atBreak)continue;const v=o.compilePattern(m);let y;for(;y=v.exec(u);){let b=y.index;u.codePointAt(b)===10&&u.codePointAt(b-1)===13&&b--,u=u.slice(0,b)+" "+u.slice(y.index+1)}}return h+u+h}function a(){return"$"}}const Dxe={tokenize:Lxe,concrete:!0,name:"mathFlow"},eP={tokenize:jxe,partial:!0};function Lxe(e,t,r){const n=this,a=n.events[n.events.length-1],i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let s=0;return o;function o(T){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(T)}function u(T){return T===36?(e.consume(T),s++,u):s<2?r(T):(e.exit("mathFlowFenceSequence"),At(e,c,"whitespace")(T))}function c(T){return T===null||Ze(T)?d(T):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===null||Ze(T)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(T)):T===36?r(T):(e.consume(T),h)}function d(T){return e.exit("mathFlowFence"),n.interrupt?t(T):e.attempt(eP,m,E)(T)}function m(T){return e.attempt({tokenize:_,partial:!0},E,v)(T)}function v(T){return(i?At(e,y,"linePrefix",i+1):y)(T)}function y(T){return T===null?E(T):Ze(T)?e.attempt(eP,m,E)(T):(e.enter("mathFlowValue"),b(T))}function b(T){return T===null||Ze(T)?(e.exit("mathFlowValue"),y(T)):(e.consume(T),b)}function E(T){return e.exit("mathFlow"),t(T)}function _(T,C,P){let O=0;return At(T,k,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function k(z){return T.enter("mathFlowFence"),T.enter("mathFlowFenceSequence"),M(z)}function M(z){return z===36?(O++,T.consume(z),M):O<s?P(z):(T.exit("mathFlowFenceSequence"),At(T,j,"whitespace")(z))}function j(z){return z===null||Ze(z)?(T.exit("mathFlowFence"),C(z)):P(z)}}}function jxe(e,t,r){const n=this;return a;function a(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function Bxe(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:zxe,previous:$xe,name:"mathText"};function n(a,i,s){let o=0,u,c;return h;function h(b){return a.enter("mathText"),a.enter("mathTextSequence"),d(b)}function d(b){return b===36?(a.consume(b),o++,d):o<2&&!r?s(b):(a.exit("mathTextSequence"),m(b))}function m(b){return b===null?s(b):b===36?(c=a.enter("mathTextSequence"),u=0,y(b)):b===32?(a.enter("space"),a.consume(b),a.exit("space"),m):Ze(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),m):(a.enter("mathTextData"),v(b))}function v(b){return b===null||b===32||b===36||Ze(b)?(a.exit("mathTextData"),m(b)):(a.consume(b),v)}function y(b){return b===36?(a.consume(b),u++,y):u===o?(a.exit("mathTextSequence"),a.exit("mathText"),i(b)):(c.type="mathTextData",v(b))}}}function zxe(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="mathTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function $xe(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Fxe(e){return{flow:{36:Dxe},text:{36:Bxe(e)}}}const Uxe={};function Hxe(e){const t=this,r=e||Uxe,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(Fxe(r)),i.push(Pxe()),s.push(Ixe(r))}function qxe({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:n=!1,blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:i="text-gray-500"}){const s=t.length&&!t.every(u=>u==="*"),o=r.length&&!r.every(u=>u==="*");if(!e&&(s||o))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return u=>{const c=Wxe(e,t,r,n,a,i);Vu(u,c)}}function tP(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}return null}}function Vxe(e){return typeof e!="string"?!1:e.startsWith("/")}const Gxe=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:"]);function rP(e,t,r,n=!1,a=!1){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!a)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return a&&n&&e.startsWith("data:image/")?e:null;const i=tP(e,r);if(!i||!Gxe.has(i.protocol))return null;if(i.protocol==="mailto:")return i.href;const s=Vxe(e);return i&&t.some(o=>{const u=tP(o,r);return!u||u.origin!==i.origin?!1:i.href.startsWith(u.href)})?s?i.pathname+i.search+i.hash:i.href:t.includes("*")?i.protocol!=="https:"&&i.protocol!=="http:"?null:s?i.pathname+i.search+i.hash:i.href:null}const m3=Symbol("node-seen"),Wxe=(e,t,r,n,a,i)=>{const s=(o,u,c)=>{if(o.type!=="element"||o[m3])return ih;if(o.tagName==="a"){const h=rP(o.properties.href,t,e,!1,!1);return h===null?(o[m3]=!0,Vu(o,s),c&&typeof u=="number"&&(c.children[u]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(o.properties.href),class:i},children:[...o.children,{type:"text",value:" [blocked]"}]}),K1):(o.properties.href=h,o.properties.target="_blank",o.properties.rel="noopener noreferrer",ih)}if(o.tagName==="img"){const h=rP(o.properties.src,r,e,n,!0);return h===null?(o[m3]=!0,Vu(o,s),c&&typeof u=="number"&&(c.children[u]={type:"element",tagName:"span",properties:{class:a},children:[{type:"text",value:"[Image blocked: "+String(o.properties.alt||"No description")+"]"}]}),K1):(o.properties.src=h,ih)}return ih};return s};/**
658 * @license lucide-react v0.542.0 - ISC
659 *
660 * This source code is licensed under the ISC license.
661 * See the LICENSE file in the root directory of this source tree.
662 */const Yxe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xxe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),nP=e=>{const t=Xxe(e);return t.charAt(0).toUpperCase()+t.slice(1)},CW=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Kxe=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
663 * @license lucide-react v0.542.0 - ISC
664 *
665 * This source code is licensed under the ISC license.
666 * See the LICENSE file in the root directory of this source tree.
667 */var Qxe={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"};/**
668 * @license lucide-react v0.542.0 - ISC
669 *
670 * This source code is licensed under the ISC license.
671 * See the LICENSE file in the root directory of this source tree.
672 */const Zxe=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:s,...o},u)=>N.createElement("svg",{ref:u,...Qxe,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:CW("lucide",a),...!i&&!Kxe(o)&&{"aria-hidden":"true"},...o},[...s.map(([c,h])=>N.createElement(c,h)),...Array.isArray(i)?i:[i]]));/**
673 * @license lucide-react v0.542.0 - ISC
674 *
675 * This source code is licensed under the ISC license.
676 * See the LICENSE file in the root directory of this source tree.
677 */const a8=(e,t)=>{const r=N.forwardRef(({className:n,...a},i)=>N.createElement(Zxe,{ref:i,iconNode:t,className:CW(`lucide-${Yxe(nP(e))}`,`lucide-${e}`,n),...a}
vendor: 45,315 bytes, lines 677-694
677));return r.displayName=nP(e),r};/**
678 * @license lucide-react v0.542.0 - ISC
679 *
680 * This source code is licensed under the ISC license.
681 * See the LICENSE file in the root directory of this source tree.
682 */const Jxe=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],OW=a8("check",Jxe);/**
683 * @license lucide-react v0.542.0 - ISC
684 *
685 * This source code is licensed under the ISC license.
686 * See the LICENSE file in the root directory of this source tree.
687 */const e4e=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],kW=a8("copy",e4e);/**
688 * @license lucide-react v0.542.0 - ISC
689 *
690 * This source code is licensed under the ISC license.
691 * See the LICENSE file in the root directory of this source tree.
692 */const t4e=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],i8=a8("download",t4e);let en=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function r4e(e){return s8(e)}function s8(e){return Array.isArray(e)?n4e(e):e instanceof RegExp?e:typeof e=="object"?a4e(e):e}function n4e(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=s8(e[r]);return t}function a4e(e){let t={};for(let r in e)t[r]=s8(e[r]);return t}function NW(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function RW(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?RW(e.substring(0,e.length-1)):e.substr(~t+1)}var g3=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,e1=class{static hasCaptures(e){return e===null?!1:(g3.lastIndex=0,g3.test(e))}static replaceCaptures(e,t,r){return e.replace(g3,(n,a,i,s)=>{let o=r[parseInt(a||i,10)];if(o){let u=t.substring(o.start,o.end);for(;u[0]===".";)u=u.substring(1);switch(s){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return n})}};function MW(e,t){return e<t?-1:e>t?1:0}function PW(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let a=0;a<r;a++){let i=MW(e[a],t[a]);if(i!==0)return i}return 0}return r-n}function aP(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function IW(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var DW=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},ov=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(o4e(e),t)}static createFromParsedTheme(e,t){return u4e(e,t)}_cachedMatchRoot=new DW(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(a=>i4e(e.parent,a.parentScopes));return n?new LW(n.fontStyle,n.foreground,n.background):null}},v3=class I1{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const n of r)t=new I1(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new I1(r,t[n]);return r}push(t){return new I1(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function i4e(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],a=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],a=!0}for(;e&&!s4e(e.scopeName,n);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function s4e(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var LW=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function o4e(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let a=0,i=t.length;a<i;a++){let s=t[a];if(!s.settings)continue;let o;if(typeof s.scope=="string"){let d=s.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),o=d.split(",")}else Array.isArray(s.scope)?o=s.scope:o=[""];let u=-1;if(typeof s.settings.fontStyle=="string"){u=0;let d=s.settings.fontStyle.split(" ");for(let m=0,v=d.length;m<v;m++)switch(d[m]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let c=null;typeof s.settings.foreground=="string"&&aP(s.settings.foreground)&&(c=s.settings.foreground);let h=null;typeof s.settings.background=="string"&&aP(s.settings.background)&&(h=s.settings.background);for(let d=0,m=o.length;d<m;d++){let y=o[d].trim().split(" "),b=y[y.length-1],E=null;y.length>1&&(E=y.slice(0,y.length-1),E.reverse()),r[n++]=new l4e(b,E,a,u,c,h)}}return r}var l4e=class{constructor(e,t,r,n,a,i){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=a,this.background=i}},Hn=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Hn||{});function u4e(e,t){e.sort((u,c)=>{let h=MW(u.scope,c.scope);return h!==0||(h=PW(u.parentScopes,c.parentScopes),h!==0)?h:u.index-c.index});let r=0,n="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let u=e.shift();u.fontStyle!==-1&&(r=u.fontStyle),u.foreground!==null&&(n=u.foreground),u.background!==null&&(a=u.background)}let i=new c4e(t),s=new LW(r,i.getId(n),i.getId(a)),o=new d4e(new H_(0,null,-1,0,0),[]);for(let u=0,c=e.length;u<c;u++){let h=e[u];o.insert(0,h.scope,h.parentScopes,h.fontStyle,i.getId(h.foreground),i.getId(h.background))}return new ov(i,s,o)}var c4e=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},f4e=Object.freeze([]),H_=class jW{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,r,n,a,i){this.scopeDepth=t,this.parentScopes=r||f4e,this.fontStyle=n,this.foreground=a,this.background=i}clone(){return new jW(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,a=t.length;n<a;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),a!==0&&(this.background=a)}},d4e=class q_{constructor(t,r=[],n={}){this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,a=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[a]===">"&&a++,!(n>=t.parentScopes.length||a>=r.parentScopes.length);){const i=r.parentScopes[a].length-t.parentScopes[n].length;if(i!==0)return i;n++,a++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),a,i;if(n===-1?(a=t,i=""):(a=t.substring(0,n),i=t.substring(n+1)),this._children.hasOwnProperty(a))return this._children[a].match(i)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(q_._cmpBySpecificity),r}insert(t,r,n,a,i,s){if(r===""){this._doInsertHere(t,n,a,i,s);return}let o=r.indexOf("."),u,c;o===-1?(u=r,c=""):(u=r.substring(0,o),c=r.substring(o+1));let h;this._children.hasOwnProperty(u)?h=this._children[u]:(h=new q_(this._mainRule.clone(),H_.cloneArr(this._rulesWithParentScopes)),this._children[u]=h),h.insert(t+1,c,n,a,i,s)}_doInsertHere(t,r,n,a,i){if(r===null){this._mainRule.acceptOverwrite(t,n,a,i);return}for(let s=0,o=this._rulesWithParentScopes.length;s<o;s++){let u=this._rulesWithParentScopes[s];if(PW(u.parentScopes,r)===0){u.acceptOverwrite(t,n,a,i);return}}n===-1&&(n=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new H_(t,r,n,a,i))}},Yf=class oi{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=oi.getLanguageId(t),n=oi.getTokenType(t),a=oi.getFontStyle(t),i=oi.getForeground(t),s=oi.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:a,foreground:i,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,a,i,s,o){let u=oi.getLanguageId(t),c=oi.getTokenType(t),h=oi.containsBalancedBrackets(t)?1:0,d=oi.getFontStyle(t),m=oi.getForeground(t),v=oi.getBackground(t);return r!==0&&(u=r),n!==8&&(c=n),a!==null&&(h=a?1:0),i!==-1&&(d=i),s!==0&&(m=s),o!==0&&(v=o),(u<<0|c<<8|h<<10|d<<11|m<<15|v<<24)>>>0}};function lv(e,t){const r=[],n=h4e(e);let a=n.next();for(;a!==null;){let u=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=n.next()}let c=s();if(r.push({matcher:c,priority:u}),a!==",")break;a=n.next()}return r;function i(){if(a==="-"){a=n.next();const u=i();return c=>!!u&&!u(c)}if(a==="("){a=n.next();const u=o();return a===")"&&(a=n.next()),u}if(iP(a)){const u=[];do u.push(a),a=n.next();while(iP(a));return c=>t(u,c)}return null}function s(){const u=[];let c=i();for(;c;)u.push(c),c=i();return h=>u.every(d=>d(h))}function o(){const u=[];let c=s();for(;c&&(u.push(c),a==="|"||a===",");){do a=n.next();while(a==="|"||a===",");c=s()}return h=>u.some(d=>d(h))}}function iP(e){return!!e&&!!e.match(/[\w\.:]+/)}function h4e(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const n=r[0];return r=t.exec(e),n}}}function BW(e){typeof e.dispose=="function"&&e.dispose()}var Gh=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},p4e=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},m4e=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},g4e=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Gh(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new m4e;for(const r of e)v4e(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof Gh){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function v4e(e,t,r,n){const a=r.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=r.lookup(t);e instanceof Gh?D1({baseGrammar:i,selfGrammar:a},n):V_(e.ruleName,{baseGrammar:i,selfGrammar:a,repository:a.repository},n);const s=r.injections(e.scopeName);if(s)for(const o of s)n.add(new Gh(o))}function V_(e,t,r){if(t.repository&&t.repository[e]){const n=t.repository[e];uv([n],t,r)}}function D1(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&uv(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&uv(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function uv(e,t,r){for(const n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const a=n.repository?NW({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&uv(n.patterns,{...t,repository:a},r);const i=n.include;if(!i)continue;const s=zW(i);switch(s.kind){case 0:D1({...t,selfGrammar:t.baseGrammar},r);break;case 1:D1(t,r);break;case 2:V_(s.ruleName,{...t,repository:a},r);break;case 3:case 4:const o=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){const u={baseGrammar:t.baseGrammar,selfGrammar:o,repository:a};s.kind===4?V_(s.ruleName,u,r):D1(u,r)}else s.kind===4?r.add(new p4e(s.scopeName,s.ruleName)):r.add(new Gh(s.scopeName));break}}}var y4e=class{kind=0},b4e=class{kind=1},x4e=class{constructor(e){this.ruleName=e}kind=2},E4e=class{constructor(e){this.scopeName=e}kind=3},w4e=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function zW(e){if(e==="$base")return new y4e;if(e==="$self")return new b4e;const t=e.indexOf("#");if(t===-1)return new E4e(e);if(t===0)return new x4e(e.substring(1));{const r=e.substring(0,t),n=e.substring(t+1);return new w4e(r,n)}}var _4e=/\\(\d+)/,sP=/\\(\d+)/g,S4e=-1,$W=-2;var Zp=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=e1.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=e1.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${RW(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:e1.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:e1.replaceCaptures(this._contentName,e,t)}},T4e=class extends Zp{retokenizeCapturedWithRuleId;constructor(e,t,r,n,a){super(e,t,r,n),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,n){throw new Error("Not supported!")}},A4e=class extends Zp{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,a){super(e,t,r,null),this._match=new Wh(n,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Yh,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},oP=class extends Zp{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,a){super(e,t,r,n),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Yh,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},G_=class extends Zp{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,a,i,s,o,u,c){super(e,t,r,n),this._begin=new Wh(a,this.id),this.beginCaptures=i,this._end=new Wh(s||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=u||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Yh;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},cv=class extends Zp{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,a,i,s,o,u){super(e,t,r,n),this._begin=new Wh(a,this.id),this.beginCaptures=i,this.whileCaptures=o,this._while=new Wh(s,$W),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Yh;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Yh,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}},FW=class Bn{static createCaptureRule(t,r,n,a,i){return t.registerRule(s=>new T4e(r,s,n,a,i))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(a=>{if(t.id=a,t.match)return new A4e(t.$vscodeTextmateLocation,t.id,t.name,t.match,Bn._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=NW({},n,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new oP(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Bn._compilePatterns(i,r,n))}return t.while?new cv(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Bn._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,Bn._compileCaptures(t.whileCaptures||t.captures,r,n),Bn._compilePatterns(t.patterns,r,n)):new G_(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Bn._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,Bn._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,Bn._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let a=[];if(t){let i=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const o=parseInt(s,10);o>i&&(i=o)}for(let s=0;s<=i;s++)a[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const o=parseInt(s,10);let u=0;t[s].patterns&&(u=Bn.getCompiledRuleId(t[s],r,n)),a[o]=Bn.createCaptureRule(r,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,u)}}return a}static _compilePatterns(t,r,n){let a=[];if(t)for(let i=0,s=t.length;i<s;i++){const o=t[i];let u=-1;if(o.include){const c=zW(o.include);switch(c.kind){case 0:case 1:u=Bn.getCompiledRuleId(n[o.include],r,n);break;case 2:let h=n[c.ruleName];h&&(u=Bn.getCompiledRuleId(h,r,n));break;case 3:case 4:const d=c.scopeName,m=c.kind===4?c.ruleName:null,v=r.getExternalGrammar(d,n);if(v)if(m){let y=v.repository[m];y&&(u=Bn.getCompiledRuleId(y,r,v.repository))}else u=Bn.getCompiledRuleId(v.repository.$self,r,v.repository);break}}else u=Bn.getCompiledRuleId(o,r,n);if(u!==-1){const c=r.getRule(u);let h=!1;if((c instanceof oP||c instanceof G_||c instanceof cv)&&c.hasMissingPatterns&&c.patterns.length===0&&(h=!0),h)continue;a.push(u)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Wh=class UW{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,r){if(t&&typeof t=="string"){const n=t.length;let a=0,i=[],s=!1;for(let o=0;o<n;o++)if(t.charAt(o)==="\\"&&o+1<n){const c=t.charAt(o+1);c==="z"?(i.push(t.substring(a,o)),i.push("$(?!\\n)(?<!\\n)"),a=o+2):(c==="A"||c==="G")&&(s=!0),o++}this.hasAnchor=s,a===0?this.source=t:(i.push(t.substring(a,n)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=_4e.test(this.source):this.hasBackReferences=!1}clone(){return new UW(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(a=>t.substring(a.start,a.end));return sP.lastIndex=0,this.source.replace(sP,(a,i)=>IW(n[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],n=[],a=[],i,s,o,u;for(i=0,s=this.source.length;i<s;i++)o=this.source.charAt(i),t[i]=o,r[i]=o,n[i]=o,a[i]=o,o==="\\"&&i+1<s&&(u=this.source.charAt(i+1),u==="A"?(t[i+1]="ï¿¿",r[i+1]="ï¿¿",n[i+1]="A",a[i+1]="A"):u==="G"?(t[i+1]="ï¿¿",r[i+1]="G",n[i+1]="ï¿¿",a[i+1]="G"):(t[i+1]=u,r[i+1]=u,n[i+1]=u,a[i+1]=u),i++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:a.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Yh=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new lP(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(a=>a.resolveAnchors(t,r));return new lP(e,n,this._items.map(a=>a.ruleId))}},lP=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
693`)}findNextMatchSync(e,t,r){const n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},y3=class{constructor(e,t){this.languageId=e,this.tokenType=t}},C4e=class W_{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,r){this._defaultAttributes=new y3(t,8),this._embeddedLanguagesMatcher=new O4e(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?W_._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new y3(0,0);_getBasicScopeAttributes=new DW(t=>{const r=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new y3(r,n)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const r=t.match(W_.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},O4e=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([r,n])=>IW(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},uP=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function HW(e,t,r,n,a,i,s,o){const u=t.content.length;let c=!1,h=-1;if(s){const v=k4e(e,t,r,n,a,i);a=v.stack,n=v.linePos,r=v.isFirstLine,h=v.anchorPosition}const d=Date.now();for(;!c;){if(o!==0&&Date.now()-d>o)return new uP(a,!0);m()}return new uP(a,!1);function m(){const v=N4e(e,t,r,n,a,h);if(!v){i.produce(a,u),c=!0;return}const y=v.captureIndices,b=v.matchedRuleId,E=y&&y.length>0?y[0].end>n:!1;if(b===S4e){const _=a.getRule(e);i.produce(a,y[0].start),a=a.withContentNameScopesList(a.nameScopesList),lh(e,t,r,a,i,_.endCaptures,y),i.produce(a,y[0].end);const T=a;if(a=a.parent,h=T.getAnchorPos(),!E&&T.getEnterPos()===n){a=T,i.produce(a,u),c=!0;return}}else{const _=e.getRule(b);i.produce(a,y[0].start);const T=a,C=_.getName(t.content,y),P=a.contentNameScopesList.pushAttributed(C,e);if(a=a.push(b,n,h,y[0].end===u,null,P,P),_ instanceof G_){const O=_;lh(e,t,r,a,i,O.beginCaptures,y),i.produce(a,y[0].end),h=y[0].end;const k=O.getContentName(t.content,y),M=P.pushAttributed(k,e);if(a=a.withContentNameScopesList(M),O.endHasBackReferences&&(a=a.withEndRule(O.getEndWithResolvedBackReferences(t.content,y))),!E&&T.hasSameRuleAs(a)){a=a.pop(),i.produce(a,u),c=!0;return}}else if(_ instanceof cv){const O=_;lh(e,t,r,a,i,O.beginCaptures,y),i.produce(a,y[0].end),h=y[0].end;const k=O.getContentName(t.content,y),M=P.pushAttributed(k,e);if(a=a.withContentNameScopesList(M),O.whileHasBackReferences&&(a=a.withEndRule(O.getWhileWithResolvedBackReferences(t.content,y))),!E&&T.hasSameRuleAs(a)){a=a.pop(),i.produce(a,u),c=!0;return}}else if(lh(e,t,r,a,i,_.captures,y),i.produce(a,y[0].end),a=a.pop(),!E){a=a.safePop(),i.produce(a,u),c=!0;return}}y[0].end>n&&(n=y[0].end,r=!1)}}function k4e(e,t,r,n,a,i){let s=a.beginRuleCapturedEOL?0:-1;const o=[];for(let u=a;u;u=u.pop()){const c=u.getRule(e);c instanceof cv&&o.push({rule:c,stack:u})}for(let u=o.pop();u;u=o.pop()){const{ruleScanner:c,findOptions:h}=P4e(u.rule,e,u.stack.endRule,r,n===s),d=c.findNextMatchSync(t,n,h);if(d){if(d.ruleId!==$W){a=u.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(u.stack,d.captureIndices[0].start),lh(e,t,r,u.stack,i,u.rule.whileCaptures,d.captureIndices),i.produce(u.stack,d.captureIndices[0].end),s=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,r=!1))}else{a=u.stack.pop();break}}return{stack:a,linePos:n,anchorPosition:s,isFirstLine:r}}function N4e(e,t,r,n,a,i){const s=R4e(e,t,r,n,a,i),o=e.getInjections();if(o.length===0)return s;const u=M4e(o,e,t,r,n,a,i);if(!u)return s;if(!s)return u;const c=s.captureIndices[0].start,h=u.captureIndices[0].start;return h<c||u.priorityMatch&&h===c?u:s}function R4e(e,t,r,n,a,i){const s=a.getRule(e),{ruleScanner:o,findOptions:u}=qW(s,e,a.endRule,r,n===i),c=o.findNextMatchSync(t,n,u);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function M4e(e,t,r,n,a,i,s){let o=Number.MAX_VALUE,u=null,c,h=0;const d=i.contentNameScopesList.getScopeNames();for(let m=0,v=e.length;m<v;m++){const y=e[m];if(!y.matcher(d))continue;const b=t.getRule(y.ruleId),{ruleScanner:E,findOptions:_}=qW(b,t,null,n,a===s),T=E.findNextMatchSync(r,a,_);if(!T)continue;const C=T.captureIndices[0].start;if(!(C>=o)&&(o=C,u=T.captureIndices,c=T.ruleId,h=y.priority,o===a))break}return u?{priorityMatch:h===-1,captureIndices:u,matchedRuleId:c}:null}function qW(e,t,r,n,a){return{ruleScanner:e.compileAG(t,r,n,a),findOptions:0}}function P4e(e,t,r,n,a){return{ruleScanner:e.compileWhileAG(t,r,n,a),findOptions:0}}function lh(e,t,r,n,a,i,s){if(i.length===0)return;const o=t.content,u=Math.min(i.length,s.length),c=[],h=s[0].end;for(let d=0;d<u;d++){const m=i[d];if(m===null)continue;const v=s[d];if(v.length===0)continue;if(v.start>h)break;for(;c.length>0&&c[c.length-1].endPos<=v.start;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?a.produceFromScopes(c[c.length-1].scopes,v.start):a.produce(n,v.start),m.retokenizeCapturedWithRuleId){const b=m.getName(o,s),E=n.contentNameScopesList.pushAttributed(b,e),_=m.getContentName(o,s),T=E.pushAttributed(_,e),C=n.push(m.retokenizeCapturedWithRuleId,v.start,-1,!1,null,E,T),P=e.createOnigString(o.substring(0,v.end));HW(e,P,r&&v.start===0,v.start,C,a,!1,0),BW(P);continue}const y=m.getName(o,s);if(y!==null){const E=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).pushAttributed(y,e);c.push(new I4e(E,v.end))}}for(;c.length>0;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var I4e=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function D4e(e,t,r,n,a,i,s,o){return new j4e(e,t,r,n,a,i,s,o)}function cP(e,t,r,n,a){const i=lv(t,fv),s=FW.getCompiledRuleId(r,n,a.repository);for(const o of i)e.push({debugSelector:t,matcher:o.matcher,ruleId:s,grammar:a,priority:o.priority})}function fv(e,t){if(t.length<e.length)return!1;let r=0;return e.every(n=>{for(let a=r;a<t.length;a++)if(L4e(t[a],n))return r=a+1,!0;return!1})}function L4e(e,t){if(!e)return!1;if(e===t)return!0;const r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var j4e=class{constructor(e,t,r,n,a,i,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=o,this._basicScopeAttributesProvider=new C4e(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=fP(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const u of Object.keys(a)){const c=lv(u,fv);for(const h of c)this._tokenTypeMatchers.push({matcher:h.matcher,type:a[u]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],r=this._rootScopeName,n=e.lookup(r);if(n){const a=n.injections;if(a)for(let s in a)cP(t,s,a[s],this,n);const i=this._grammarRepository.injections(r);i&&i.forEach(s=>{const o=this.getExternalGrammar(s);if(o){const u=o.injectionSelector;u&&cP(t,u,o,this,o)}})}return t.sort((a,i)=>a.priority-i.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=fP(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){const n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){const n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){this._rootId===-1&&(this._rootId=FW.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===Y_.NULL){a=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),h=this.themeProvider.getDefaults(),d=Yf.set(0,c.languageId,c.tokenType,null,h.fontStyle,h.foregroundId,h.backgroundId),m=this.getRule(this._rootId).getName(null,null);let v;m?v=Th.createRootAndLookUpScopeName(m,d,this):v=Th.createRoot("unknown",d),t=new Y_(null,this._rootId,-1,-1,!1,null,v,v)}else a=!1,t.reset();e=e+`
694`;const i=this.createOnigString(e),s=i.content.length,o=new z4e(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),u=HW(this,i,a,0,t,o,!0,n);return BW(i),{lineLength:s,lineTokens:o,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function fP(e,t){return e=r4e(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Th=class rs{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,a=t?.scopePath??null;for(const i of r)a=v3.push(a,i.scopeNames),n=new rs(n,a,i.encodedTokenAttributes);return n}static createRoot(t,r){return new rs(null,new v3(null,t),r)}static createRootAndLookUpScopeName(t,r,n){const a=n.getMetadataForScope(t),i=new v3(null,t),s=n.themeProvider.themeMatch(i),o=rs.mergeAttributes(r,a,s);return new rs(null,i,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return rs.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let a=-1,i=0,s=0;return n!==null&&(a=n.fontStyle,i=n.foregroundId,s=n.backgroundId),Yf.set(t,r.languageId,r.tokenType,null,a,i,s)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return rs._pushAttributed(this,t,r);const n=t.split(/ /g);let a=this;for(const i of n)a=rs._pushAttributed(a,i,r);return a}static _pushAttributed(t,r,n){const a=n.getMetadataForScope(r),i=t.scopePath.push(r),s=n.themeProvider.themeMatch(i),o=rs.mergeAttributes(t.tokenAttributes,a,s);return new rs(t,i,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===t?r.reverse():void 0}},Y_=class pu{constructor(t,r,n,a,i,s,o,u){this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=i,this.endRule=s,this.nameScopesList=o,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new pu(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:pu._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?Th.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){pu._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,a,i,s,o){return new pu(this,t,r,n,a,i,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new pu(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){const n=Th.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new pu(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,Th.fromExtension(n,r.contentNameScopesList))}},B4e=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):lv(r,fv).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>lv(r,fv).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},z4e=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=e?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(i)&&(n=Yf.set(n,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(i))}if(a&&(n=Yf.set(n,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,a=this._binaryTokens.length;n<a;n++)r[n]=this._binaryTokens[n];return r}},$4e=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,a){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,D4e(e,i,t,r,n,a,this,this._onigLib))}return this._grammars.get(e)}},F4e=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new $4e(ov.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,r){this._syncRegistry.setTheme(ov.createFromRawTheme(t,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,r,n){return this.loadGrammarWithConfiguration(t,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,r,n){return this._loadGrammar(t,r,n.embeddedLanguages,n.tokenTypes,new B4e(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,r,n,a,i){const s=new g4e(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(o=>this._loadSingleGrammar(o.scopeName)),s.processQueue();return this._grammarForScopeName(t,r,n,a,i)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const r=this._options.loadGrammar(t);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(t,r=[],n=0,a=null){return this._syncRegistry.addGrammar(t,r),this._grammarForScopeName(t.scopeName,n,a)}_grammarForScopeName(t,r=0,n=null,a=null,i=null){return this._syncRegistry.grammarForScopeName(t,r,n,a,i)}},X_=Y_.NULL;const U4e=/["&'<>`]/g,H4e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,q4e=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,V4e=/[|\\{}()[\]^$+*?.]/g,dP=new WeakMap;function G4e(e,t){if(e=e.replace(t.subset?W4e(t.subset):U4e,n),t.subset||t.escapeOnly)return e;return e.replace(H4e,r).replace(q4e,n);function r(a,i,s){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function n(a,i,s){return t.format(a.charCodeAt(0),s.charCodeAt(i+1),t)}}function W4e(e){let t=dP.get(e);return t||(t=Y4e(e),dP.set(e,t)),t}function Y4e(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(V4e,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const X4e=/[\dA-Fa-f]/;function K4e(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!X4e.test(String.fromCharCode(t))?n:n+";"}const Q4e=/\d/;function Z4e(e,t,r){const n="&#"+String(e);return r&&t&&!Q4e.test(String.fromCharCode(t))?n:n+";"}const J4e=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslas
694h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],b3={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub
vendor: 58,401 bytes, lines 694-703
694:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},e3e=["cent","copy","divide","gt","lt","not","para","times"],VW={}.hasOwnProperty,K_={};let t1;for(t1 in b3)VW.call(b3,t1)&&(K_[b3[t1]]=t1);const t3e=/[^\dA-Za-z]/;function r3e(e,t,r,n){const a=String.fromCharCode(e);if(VW.call(K_,a)){const i=K_[a],s="&"+i;return r&&J4e.includes(i)&&!e3e.includes(i)&&(!n||t&&t!==61&&t3e.test(String.fromCharCode(t)))?s:s+";"}return""}function n3e(e,t,r){let n=K4e(e,t,r.omitOptionalSemicolons),a;if((r.useNamedReferences||r.useShortestReferences)&&(a=r3e(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!a)&&r.useShortestReferences){const i=Z4e(e,t,r.omitOptionalSemicolons);i.length<n.length&&(n=i)}return a&&(!r.useShortestReferences||a.length<n.length)?a:n}function Pf(e,t){return G4e(e,Object.assign({format:n3e},t))}const a3e=/^>|^->|<!--|-->|--!>|<!-$/g,i3e=[">"],s3e=["<",">"];function o3e(e,t,r,n){return n.settings.bogusComments?"<?"+Pf(e.value,Object.assign({},n.settings.characterReferences,{subset:i3e}))+">":"<!--"+e.value.replace(a3e,a)+"-->";function a(i){return Pf(i,Object.assign({},n.settings.characterReferences,{subset:s3e}))}}function l3e(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}const hn=WW(1),GW=WW(-1),u3e=[];function WW(e){return t;function t(r,n,a){const i=r?r.children:u3e;let s=(n||0)+e,o=i[s];if(!a)for(;o&&qy(o);)s+=e,o=i[s];return o}}const c3e={}.hasOwnProperty;function YW(e){return t;function t(r,n,a){return c3e.call(e,r.tagName)&&e[r.tagName](r,n,a)}}const o8=YW({body:d3e,caption:x3,colgroup:x3,dd:g3e,dt:m3e,head:x3,html:f3e,li:p3e,optgroup:v3e,option:y3e,p:h3e,rp:hP,rt:hP,tbody:x3e,td:pP,tfoot:E3e,th:pP,thead:b3e,tr:w3e});function x3(e,t,r){const n=hn(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&qy(n.value.charAt(0)))}function f3e(e,t,r){const n=hn(r,t);return!n||n.type!=="comment"}function d3e(e,t,r){const n=hn(r,t);return!n||n.type!=="comment"}function h3e(e,t,r){const n=hn(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function p3e(e,t,r){const n=hn(r,t);return!n||n.type==="element"&&n.tagName==="li"}function m3e(e,t,r){const n=hn(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function g3e(e,t,r){const n=hn(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function hP(e,t,r){const n=hn(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function v3e(e,t,r){const n=hn(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function y3e(e,t,r){const n=hn(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function b3e(e,t,r){const n=hn(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function x3e(e,t,r){const n=hn(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function E3e(e,t,r){return!hn(r,t)}function w3e(e,t,r){const n=hn(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function pP(e,t,r){const n=hn(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const _3e=YW({body:A3e,colgroup:C3e,head:T3e,html:S3e,tbody:O3e});function S3e(e){const t=hn(e,-1);return!t||t.type!=="comment"}function T3e(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function A3e(e){const t=hn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&qy(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function C3e(e,t,r){const n=GW(r,t),a=hn(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&o8(n,r.children.indexOf(n),r)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function O3e(e,t,r){const n=GW(r,t),a=hn(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&o8(n,r.children.indexOf(n),r)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const r1={name:[[`	
695\f\r &/=>`.split(""),`	
696\f\r "&'/=>\``.split("")],[`\0	
697\f\r "&'/<=>`.split(""),`\0	
698\f\r "&'/<=>\``.split("")]],unquoted:[[`	
699\f\r &>`.split(""),`\0	
700\f\r "&'<=>\``.split("")],[`\0	
701\f\r "&'<=>\``.split(""),`\0	
702\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function k3e(e,t,r,n){const a=n.schema,i=a.space==="svg"?!1:n.settings.omitOptionalTags;let s=a.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const o=[];let u;a.space==="html"&&e.tagName==="svg"&&(n.schema=Il);const c=N3e(n,e.properties),h=n.all(a.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=a,h&&(s=!1),(c||!i||!_3e(e,t,r))&&(o.push("<",e.tagName,c?" "+c:""),s&&(a.space==="svg"||n.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!n.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(h),!s&&(!i||!o8(e,t,r))&&o.push("</"+e.tagName+">"),o.join("")}function N3e(e,t){const r=[];let n=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const i=R3e(e,a,t[a]);i&&r.push(i)}}for(;++n<r.length;){const i=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&i!=='"'&&i!=="'"&&(r[n]+=" ")}return r.join("")}function R3e(e,t,r){const n=Vy(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let s=e.quote,o;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const u=Pf(n.attribute,Object.assign({},e.settings.characterReferences,{subset:r1.name[a][i]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?fA:hA)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?u:(e.settings.preferUnquoted&&(o=Pf(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:r1.unquoted[a][i]}))),o!==r&&(e.settings.quoteSmart&&iv(r,s)>iv(r,e.alternative)&&(s=e.alternative),o=s+Pf(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?r1.single:r1.double)[a][i],attribute:!0}))+s),u+(o&&"="+o))}const M3e=["<","&"];function XW(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Pf(e.value,Object.assign({},n.settings.characterReferences,{subset:M3e}))}function P3e(e,t,r,n){return n.settings.allowDangerousHtml?e.value:XW(e,t,r,n)}function I3e(e,t,r,n){return n.all(e)}const D3e=XA("type",{invalid:L3e,unknown:j3e,handlers:{comment:o3e,doctype:l3e,element:k3e,raw:P3e,root:I3e,text:XW}});function L3e(e){throw new Error("Expected node, not `"+e+"`")}function j3e(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const B3e={},z3e={},$3e=[];function F3e(e,t){const r=t||B3e,n=r.quote||'"',a=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:U3e,all:H3e,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||TG,characterReferences:r.characterReferences||z3e,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Il:Up,quote:n,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function U3e(e,t,r){return D3e(e,t,r,this)}function H3e(e){const t=[],r=e&&e.children||$3e;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function dv(e,t){const r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[a,i]of Object.entries(t?.colorReplacements||{}))typeof i=="string"?r[a]=i:a===n&&Object.assign(r,i);return r}function xl(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function q3e(e){return Array.isArray(e)?e:[e]}async function KW(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function l8(e){return!e||["plaintext","txt","text","plain"].includes(e)}function QW(e){return e==="ansi"||l8(e)}function u8(e){return e==="none"}function ZW(e){return u8(e)}function JW(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const n of r)n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function lb(e,t=!1){const r=e.split(/(\r?\n)/g);let n=0;const a=[];for(let i=0;i<r.length;i+=2){const s=t?r[i]+(r[i+1]||""):r[i];a.push([s,n]),n+=r[i].length,n+=r[i+1]?.length||0}return a}function V3e(e){const t=lb(e,!0).map(([a])=>a);function r(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let i=a,s=0;for(const o of t){if(i<o.length)break;i-=o.length,s++}return{line:s,character:i}}function n(a,i){let s=0;for(let o=0;o<a;o++)s+=t[o].length;return s+=i,s}return{lines:t,indexToPos:r,posToIndex:n}}const c8="light-dark()",G3e=["color","background-color"];function W3e(e,t){let r=0;const n=[];for(const a of t)a>r&&n.push({...e,content:e.content.slice(r,a),offset:e.offset+r}),r=a;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function Y3e(e,t){const r=Array.from(t instanceof Set?t:new Set(t)).sort((n,a)=>n-a);return r.length?e.map(n=>n.flatMap(a=>{const i=r.filter(s=>a.offset<s&&s<a.offset+a.content.length).map(s=>s-a.offset).sort((s,o)=>s-o);return i.length?W3e(a,i):a})):e}function X3e(e,t,r,n,a="css-vars"){const i={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(h=>hv(e.variants[h])),o=new Set(s.flatMap(h=>Object.keys(h))),u={},c=(h,d)=>{const m=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return r+t[h]+(d==="color"?"":m)};return s.forEach((h,d)=>{for(const m of o){const v=h[m]||"inherit";if(d===0&&n&&G3e.includes(m))if(n===c8&&s.length>1){const y=t.findIndex(T=>T==="light"),b=t.findIndex(T=>T==="dark");if(y===-1||b===-1)throw new en('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const E=s[y][m]||"inherit",_=s[b][m]||"inherit";u[m]=`light-dark(${E}, ${_})`,a==="css-vars"&&(u[c(d,m)]=v)}else u[m]=v;else a==="css-vars"&&(u[c(d,m)]=v)}}),i.htmlStyle=u,i}function hv(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Hn.Italic&&(t["font-style"]="italic"),e.fontStyle&Hn.Bold&&(t["font-weight"]="bold");const r=[];e.fontStyle&Hn.Underline&&r.push("underline"),e.fontStyle&Hn.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function Q_(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}const eY=new WeakMap;function ub(e,t){eY.set(e,t)}function Xh(e){return eY.get(e)}class I0{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new I0(Object.fromEntries(q3e(r).map(n=>[n,X_])),t)}constructor(...t){if(t.length===2){const[r,n]=t;this.lang=n,this._stacks=r}else{const[r,n,a]=t;this.lang=n,this._stacks={[a]:r}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return K3e(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function K3e(e){const t=[],r=new Set;function n(a){if(r.has(a))return;r.add(a);const i=a?.nameScopesList?.scopeName;i&&t.push(i),a.parent&&n(a.parent)}return n(e),t}function Q3e(e,t){if(!(e instanceof I0))throw new en("Invalid grammar state");return e.getInternalStack(t)}function Z3e(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let n=function(s){if(typeof s=="number"){if(s<0||s>r.source.length)throw new en(`Invalid decoration offset: ${s}. Code length: ${r.source.length}`);return{...a.indexToPos(s),offset:s}}else{const o=a.lines[s.line];if(o===void 0)throw new en(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${a.lines.length}`);let u=s.character;if(u<0&&(u=o.length+u),u<0||u>o.length)throw new en(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${o.length}`);return{...s,character:u,offset:a.posToIndex(s.line,u)}}};const a=V3e(r.source),i=(r.options.decorations||[]).map(s=>({...s,start:n(s.start),end:n(s.end)}));J3e(i),e.set(r.meta,{decorations:i,converter:a,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(!this.options.decorations?.length)return;const a=t(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return Y3e(r,a)},code(r){if(!this.options.decorations?.length)return;const n=t(this),a=Array.from(r.children).filter(h=>h.type==="element"&&h.tagName==="span");if(a.length!==n.converter.lines.length)throw new en(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(h,d,m,v){const y=a[h];let b="",E=-1,_=-1;if(d===0&&(E=0),m===0&&(_=0),m===Number.POSITIVE_INFINITY&&(_=y.children.length),E===-1||_===-1)for(let C=0;C<y.children.length;C++)b+=tY(y.children[C]),E===-1&&b.length===d&&(E=C+1),_===-1&&b.length===m&&(_=C+1);if(E===-1)throw new en(`Failed to find start index for decoration ${JSON.stringify(v.start)}`);if(_===-1)throw new en(`Failed to find end index for decoration ${JSON.stringify(v.end)}`);const T=y.children.slice(E,_);if(!v.alwaysWrap&&T.length===y.children.length)o(y,v,"line");else if(!v.alwaysWrap&&T.length===1&&T[0].type==="element")o(T[0],v,"token");else{const C={type:"element",tagName:"span",properties:{},children:T};o(C,v,"wrapper"),y.children.splice(E,T.length,C)}}function s(h,d){a[h]=o(a[h],d,"line")}function o(h,d,m){const v=d.properties||{},y=d.transform||(b=>b);return h.tagName=d.tagName||"span",h.properties={...h.properties,...v,class:h.properties.class},d.properties?.class&&JW(h,d.properties.class),h=y(h,m)||h,h}const u=[],c=n.decorations.sort((h,d)=>d.start.offset-h.start.offset||h.end.offset-d.end.offset);for(const h of c){const{start:d,end:m}=h;if(d.line===m.line)i(d.line,d.character,m.character,h);else if(d.line<m.line){i(d.line,d.character,Number.POSITIVE_INFINITY,h);for(let v=d.line+1;v<m.line;v++)u.unshift(()=>s(v,h));i(m.line,0,m.character,h)}}u.forEach(h=>h())}}}function J3e(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.start.offset>r.end.offset)throw new en(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){const a=e[n],i=r.start.offset<=a.start.offset&&a.start.offset<r.end.offset,s=r.start.offset<a.end.offset&&a.end.offset<=r.end.offset,o=a.start.offset<=r.start.offset&&r.start.offset<a.end.offset,u=a.start.offset<r.end.offset&&r.end.offset<=a.end.offset;if(i||s||o||u){if(i&&s||o&&u||o&&r.start.offset===r.end.offset||s&&a.start.offset===a.end.offset)continue;throw new en(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function tY(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(tY).join(""):""}const e6e=[Z3e()];function pv(e){const t=t6e(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...e6e]}function t6e(e){const t=[],r=[],n=[];for(const a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":r.push(a);break;default:n.push(a)}return{pre:t,post:r,normal:n}}var wu=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],E3={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function r6e(e,t){const r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){const n=e.indexOf("m",r);if(n!==-1)return{sequence:e.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:e.length}}function mP(e){const t=e.shift();if(t==="2"){const r=e.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){const r=e.shift();if(r)return{type:"table",index:Number(r)}}}function n6e(e){const t=[];for(;e.length>0;){const r=e.shift();if(!r)continue;const n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)E3[n]&&t.push({type:"setDecoration",value:E3[n]});else if(n<=29){const a=E3[n-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:wu[n-30]}});else if(n===38){const a=mP(e);a&&t.push({type:"setForegroundColor",value:a})}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:wu[n-40]}});else if(n===48){const a=mP(e);a&&t.push({type:"setBackgroundColor",value:a})}else n===49?t.push({type:"resetBackgroundColor"}):n===53?t.push({type:"setDecoration",value:"overline"}):n===55?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:wu[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:wu[n-100+8]}})}return t}function a6e(){let e=null,t=null,r=new Set;return{parse(n){const a=[];let i=0;do{const s=r6e(n,i),o=s.sequence?n.substring(i,s.startPosition):n.substring(i);if(o.length>0&&a.push({value:o,foreground:e,background:t,decorations:new Set(r)}),s.sequence){const u=n6e(s.sequence);for(const c of u)c.type==="resetAll"?(e=null,t=null,r.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&r.delete(c.value);for(const c of u)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&r.add(c.value)}i=s.position}while(i<n.length);return a}}}var i6e={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function s6e(e=i6e){function t(o){return e[o]}function r(o){return`#${o.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}let n;function a(){if(n)return n;n=[];for(let c=0;c<wu.length;c++)n.push(t(wu[c]));let o=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let h=0;h<6;h++)for(let d=0;d<6;d++)n.push(r([o[c],o[h],o[d]]));let u=8;for(let c=0;c<24;c++,u+=10)n.push(r([u,u,u]));return n}function i(o){return a()[o]}function s(o){switch(o.type){case"named":return t(o.name);case"rgb":return r(o.rgb);case"table":return i(o.index)}}return{value:s}}function o6e(e,t,r){const n=dv(e,r),a=lb(t),i=s6e(Object.fromEntries(wu.map(o=>[o,e.colors?.[`terminal.ansi${o[0].toUpperCase()}${o.substring(1)}`]]))),s=a6e();return a.map(o=>s.parse(o[0]).map(u=>{let c,h;u.decorations.has("reverse")?(c=u.background?i.value(u.background):e.bg,h=u.foreground?i.value(u.foreground):e.fg):(c=u.foreground?i.value(u.foreground):e.fg,h=u.background?i.value(u.background):void 0),c=xl(c,n),h=xl(h,n),u.decorations.has("dim")&&(c=l6e(c));let d=Hn.None;return u.decorations.has("bold")&&(d|=Hn.Bold),u.decorations.has("italic")&&(d|=Hn.Italic),u.decorations.has("underline")&&(d|=Hn.Underline),u.decorations.has("strikethrough")&&(d|=Hn.Strikethrough),{content:u.value,offset:o[1],color:c,bgColor:h,fontStyle:d}}))}function l6e(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const n=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${n}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(n=>`${n}${n}`).join("")}80`;const r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function f8(e,t,r={}){const{lang:n="text",theme:a=e.getLoadedThemes()[0]}=r;if(l8(n)||u8(a))return lb(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:i,colorMap:s}=e.setTheme(a);if(n==="ansi")return o6e(i,t,r);const o=e.getLanguage(n);if(r.grammarState){if(r.grammarState.lang!==o.name)throw new en(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${o.name}"`);if(!r.grammarState.themes.includes(i.name))throw new en(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return c6e(t,o,i,s,r)}function u6e(...e){if(e.length===2)return Xh(e[1]);const[t,r,n={}]=e,{lang:a="text",theme:i=t.getLoadedThemes()[0]}=n;if(l8(a)||u8(i))throw new en("Plain language does not have grammar state");if(a==="ansi")throw new en("ANSI language does not have grammar state");const{theme:s,colorMap:o}=t.setTheme(i),u=t.getLanguage(a);return new I0(mv(r,u,s,o,n).stateStack,u.name,s.name)}function c6e(e,t,r,n,a){const i=mv(e,t,r,n,a),s=new I0(mv(e,t,r,n,a).stateStack,t.name,r.name);return ub(i.tokens,s),i.tokens}function mv(e,t,r,n,a){const i=dv(r,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500}=a,u=lb(e);let c=a.grammarState?Q3e(a.grammarState,r.name)??X_:a.grammarContextCode!=null?mv(a.grammarContextCode,t,r,n,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:X_,h=[];const d=[];for(let m=0,v=u.length;m<v;m++){const[y,b]=u[m];if(y===""){h=[],d.push([]);continue}if(s>0&&y.length>=s){h=[],d.push([{content:y,offset:b,color:"",fontStyle:0}]);continue}let E,_,T;a.includeExplanation&&(E=t.tokenizeLine(y,c,o),_=E.tokens,T=0);const C=t.tokenizeLine2(y,c,o),P=C.tokens.length/2;for(let O=0;O<P;O++){const k=C.tokens[2*O],M=O+1<P?C.tokens[2*O+2]:y.length;if(k===M)continue;const j=C.tokens[2*O+1],z=xl(n[Yf.getForeground(j)],i),$=Yf.getFontStyle(j),F={content:y.substring(k,M),offset:b+k,color:z,fontStyle:$};if(a.includeExplanation){const q=[];if(a.includeExplanation!=="scopeName")for(const X of r.settings){let te;switch(typeof X.scope){case"string":te=X.scope.split(/,/).map(U=>U.trim());break;case"object":te=X.scope;break;default:continue}q.push({settings:X,selectors:te.map(U=>U.split(/ /))})}F.explanation=[];let Q=0;for(;k+Q<M;){const X=_[T],te=y.substring(X.startIndex,X.endIndex);Q+=te.length,F.explanation.push({content:te,scopes:a.includeExplanation==="scopeName"?f6e(X.scopes):d6e(q,X.scopes)}),T+=1}}h.push(F)}d.push(h),h=[],c=C.ruleStack}return{tokens:d,stateStack:c}}function f6e(e){return e.map(t=>({scopeName:t}))}function d6e(e,t){const r=[];for(let n=0,a=t.length;n<a;n++){const i=t[n];r[n]={scopeName:i,themeMatches:p6e(e,i,t.slice(0,n))}}return r}function gP(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function h6e(e,t,r){if(!gP(e[e.length-1],t))return!1;let n=e.length-2,a=r.length-1;for(;n>=0&&a>=0;)gP(e[n],r[a])&&(n-=1),a-=1;return n===-1}function p6e(e,t,r){const n=[];for(const{selectors:a,settings:i}of e)for(const s of a)if(h6e(s,t,r)){n.push(i);break}return n}function rY(e,t,r){const n=Object.entries(r.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),a=n.map(u=>{const c=f8(e,t,{...r,theme:u.theme}),h=Xh(c),d=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:c,state:h,theme:d}}),i=m6e(...a.map(u=>u.tokens)),s=i[0].map((u,c)=>u.map((h,d)=>{const m={content:h.content,variants:{},offset:h.offset};return"includeExplanation"in r&&r.includeExplanation&&(m.explanation=h.explanation),i.forEach((v,y)=>{const{content:b,explanation:E,offset:_,...T}=v[c][d];m.variants[n[y].color]=T}),m})),o=a[0].state?new I0(Object.fromEntries(a.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),a[0].state.lang):void 0;return o&&ub(s,o),s}function m6e(...e){const t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){const a=e.map(u=>u[n]),i=t.map(()=>[]);t.forEach((u,c)=>u.push(i[c]));const s=a.map(()=>0),o=a.map(u=>u[0]);for(;o.every(u=>u);){const u=Math.min(...o.map(c=>c.content.length));for(let c=0;c<r;c++){const h=o[c];h.content.length===u?(i[c].push(h),s[c]+=1,o[c]=a[c][s[c]]):(i[c].push({...h,content:h.content.slice(0,u)}),o[c]={...h,content:h.content.slice(u),offset:h.offset+u})}}}return t}function gv(e,t,r){let n,a,i,s,o,u;if("themes"in r){const{defaultColor:c="light",cssVariablePrefix:h="--shiki-",colorsRendering:d="css-vars"}=r,m=Object.entries(r.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,T)=>_.color===c?-1:T.color===c?1:0);if(m.length===0)throw new en("`themes` option must not be empty");const v=rY(e,t,r);if(u=Xh(v),c&&c8!==c&&!m.find(_=>_.color===c))throw new en(`\`themes\` option must contain the defaultColor key \`${c}\``);const y=m.map(_=>e.getTheme(_.theme)),b=m.map(_=>_.color);i=v.map(_=>_.map(T=>X3e(T,b,h,c,d))),u&&ub(i,u);const E=m.map(_=>dv(_.theme,r));a=vP(m,y,E,h,c,"fg",d),n=vP(m,y,E,h,c,"bg",d),s=`shiki-themes ${y.map(_=>_.name).join(" ")}`,o=c?void 0:[a,n].join(";")}else if("theme"in r){const c=dv(r.theme,r);i=f8(e,t,r);const h=e.getTheme(r.theme);n=xl(h.bg,c),a=xl(h.fg,c),s=h.name,u=Xh(i)}else throw new en("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:a,bg:n,themeName:s,rootStyle:o,grammarState:u}}function vP(e,t,r,n,a,i,s){return e.map((o,u)=>{const c=xl(t[u][i],r[u])||"inherit",h=`${n+o.color}${i==="bg"?"-bg":""}:${c}`;if(u===0&&a){if(a===c8&&e.length>1){const d=e.findIndex(b=>b.color==="light"),m=e.findIndex(b=>b.color==="dark");if(d===-1||m===-1)throw new en('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const v=xl(t[d][i],r[d])||"inherit",y=xl(t[m][i],r[m])||"inherit";return`light-dark(${v}, ${y});${h}`}return c}return s==="css-vars"?h:null}).filter(o=>!!o).join(";")}function vv(e,t,r,n={meta:{},options:r,codeToHast:(a,i)=>vv(e,a,i),codeToTokens:(a,i)=>gv(e,a,i)}){let a=t;for(const y of pv(r))a=y.preprocess?.call(n,a,r)||a;let{tokens:i,fg:s,bg:o,themeName:u,rootStyle:c,grammarState:h}=gv(e,a,r);const{mergeWhitespaces:d=!0,mergeSameStyleTokens:m=!1}=r;d===!0?i=v6e(i):d==="never"&&(i=y6e(i)),m&&(i=b6e(i));const v={...n,get source(){return a}};for(const y of pv(r))i=y.tokens?.call(v,i)||i;return g6e(i,{...r,fg:s,bg:o,themeName:u,rootStyle:c},v,h)}function g6e(e,t,r,n=Xh(e)){const a=pv(t),i=[],s={type:"root",children:[]},{structure:o="classic",tabindex:u="0"}=t;let c={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...u!==!1&&u!=null?{tabindex:u.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([y])=>!y.startsWith("_")))},children:[]},h={type:"element",tagName:"code",properties:{},children:i};const d=[],m={...r,structure:o,addClassToHast:JW,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return c},get code(){return h},get lines(){return d}};if(e.forEach((y,b)=>{b&&(o==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&i.push({type:"text",value:`
703`}));let E={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const T of y){let C={type:"element",tagName:"span",properties:{...T.htmlAttrs},children:[{type:"text",value:T.content}]};const P=Q_(T.htmlStyle||hv(T));P&&(C.properties.style=P);for(const O of a)C=O?.span?.call(m,C,b+1,_,E,T)||C;o==="inline"?s.children.push(C):o==="classic"&&E.children.push(C),_+=T.content.length}if(o==="classic"){for(const T of a)E=T?.line?.call(m,E,b+1)||E;d.push(E),i.push(E)}}),o==="classic"){for(const y of a)h=y?.code?.call(m,h)||h;c.children.push(h);for(const y of a)c=y?.pre?.call(m,c)||c;s.children.push(c)}let v=s;for(const y of a)v=y?.root?.call(m,v)||v;return n&&ub(v,n),v}function v6e(e){return e.map(t=>{const r=[];let n="",a=0;return t.forEach((i,s)=>{const u=!(i.fontStyle&&(i.fontStyle&Hn.Underline||i.fontStyle&Hn.Strikethrough));u&&i.content.match(/^\s+$/)&&t[s+1]?(a||(a=i.offset),n+=i.content):n?(u?r.push({...i,offset:a,content:n+i.content}):r.push({content:n,offset:a},i),a=0,n=""):r.push(i)}),r})}function y6e(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,a,i,s]=n;if(!a&&!s)return r;const o=[{...r,offset:r.offset+a.length,content:i}];return a&&o.unshift({content:a,offset:r.offset}),s&&o.push({content:s,offset:r.offset+a.length+i.length}),o}))}function b6e(e){return e.map(t=>{const r=[];for(const n of t){if(r.length===0){r.push({...n});continue}const a=r[r.length-1],i=Q_(a.htmlStyle||hv(a)),s=Q_(n.htmlStyle||hv(n)),o=a.fontStyle&&(a.fontStyle&Hn.Underline||a.fontStyle&Hn.Strikethrough),u=n.fontStyle&&(n.fontStyle&Hn.Underline||n.fontStyle&Hn.Strikethrough);!o&&!u&&i===s?a.content+=n.content:r.push({...n})}return r})}const x6e=F3e;function E6e(e,t,r){const n={meta:{},options:r,codeToHast:(i,s)=>vv(e,i,s),codeToTokens:(i,s)=>gv(e,i,s)};let a=x6e(vv(e,t,r,n));for(const i of pv(r))a=i.postprocess?.call(n,a,r)||a;return a}const yP={light:"#333333",dark:"#bbbbbb"},bP={light:"#fffffe",dark:"#1e1e1e"},xP="__shiki_resolved";function d8(e){if(e?.[xP])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:n}=t;if(!r||!n){const o=t.settings?t.settings.find(u=>!u.name&&!u.scope):void 0;o?.settings?.foreground&&(n=o.settings.foreground),o?.settings?.background&&(r=o.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n=t.type==="light"?yP.light:yP.dark),r||(r=t.type==="light"?bP.light:bP.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const i=new Map;function s(o){if(i.has(o))return i.get(o);a+=1;const u=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${u}`]?s(o):(i.set(o,u),u)}t.settings=t.settings.map(o=>{const u=o.settings?.foreground&&!o.settings.foreground.startsWith("#"),c=o.settings?.background&&!o.settings.background.startsWith("#");if(!u&&!c)return o;const h={...o,settings:{...o.settings}};if(u){const d=s(o.settings.foreground);t.colorReplacements[d]=o.settings.foreground,h.settings.foreground=d}if(c){const d=s(o.settings.background);t.colorReplacements[d]=o.settings.background,h.settings.background=d}return h});for(const o of Object.keys(t.colors||{}))if((o==="editor.foreground"||o==="editor.background"||o.startsWith("terminal.ansi"))&&!t.colors[o]?.startsWith("#")){const u=s(t.colors[o]);t.colorReplacements[u]=t.colors[o],t.colors[o]=u}return Object.defineProperty(t,xP,{enumerable:!1,writable:!1,value:!0}),t}async function nY(e){return Array.from(new Set((await Promise.all(e.filter(t=>!QW(t)).map(async t=>await KW(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function aY(e){return(await Promise.all(e.map(async r=>ZW(r)?null:d8(await KW(r))))).filter(r=>!!r)}let w6e=3;function _6e(e,t=3){t>w6e||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let Sf=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class S6e extends F4e{constructor(t,r,n,a={}){super(t),this._resolver=t,this._themes=r,this._langs=n,this._alias=a,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const r=d8(t);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let r=this._textmateThemeCache.get(t);r||(r=ov.createFromRawTheme(t),this._textmateThemeCache.set(t,r)),this._syncRegistry.setTheme(r)}getGrammar(t){if(this._alias[t]){const r=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],r.has(t))throw new Sf(`Circular alias \`${Array.from(r).join(" -> ")} -> ${t}\``);r.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const r=new Set([...this._langMap.values()].filter(i=>i.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(i=>{this._alias[i]=t.name}),this._loadedLanguagesCache=null,r.size)for(const i of r)this._resolvedGrammars.delete(i.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(i.scopeName),this._syncRegistry?._grammars?.delete(i.scopeName),this.loadLanguage(this._langMap.get(i.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const r=Array.from(this._langGraph.entries()),n=r.filter(([a,i])=>!i);if(n.length){const a=r.filter(([i,s])=>s&&s.embeddedLangs?.some(o=>n.map(([u])=>u).includes(o))).filter(i=>!n.includes(i));throw new Sf(`Missing languages ${n.map(([i])=>`\`${i}\``).join(", ")}, required by ${a.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[a,i]of r)this._resolver.addLanguage(i);for(const[a,i]of r)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const r of t.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class T6e{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,r){this._onigLib={createOnigScanner:n=>t.createScanner(n),createOnigString:n=>t.createString(n)},r.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(r=>{this._langs.set(r,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(t.scopeName)})}getInjections(t){const r=t.split(".");let n=[];for(let a=1;a<=r.length;a++){const i=r.slice(0,a).join(".");n=[...n,...this._injections.get(i)||[]]}return n}}let Gd=0;function A6e(e){Gd+=1,e.warnings!==!1&&Gd>=10&&Gd%10===0&&console.warn(`[Shiki] ${Gd} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Sf("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(d8),a=new T6e(e.engine,r),i=new S6e(a,n,r,e.langAlias);let s;function o(T){E();const C=i.getGrammar(typeof T=="string"?T:T.name);if(!C)throw new Sf(`Language \`${T}\` not found, you may need to load it first`);return C}function u(T){if(T==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};E();const C=i.getTheme(T);if(!C)throw new Sf(`Theme \`${T}\` not found, you may need to load it first`);return C}function c(T){E();const C=u(T);s!==T&&(i.setTheme(C),s=T);const P=i.getColorMap();return{theme:C,colorMap:P}}function h(){return E(),i.getLoadedThemes()}function d(){return E(),i.getLoadedLanguages()}function m(...T){E(),i.loadLanguages(T.flat(1))}async function v(...T){return m(await nY(T))}function y(...T){E();for(const C of T.flat(1))i.loadTheme(C)}async function b(...T){return E(),y(await aY(T))}function E(){if(t)throw new Sf("Shiki instance has been disposed")}function _(){t||(t=!0,i.dispose(),Gd-=1)}return{setTheme:c,getTheme:u,getLanguage:o,getLoadedThemes:h,getLoadedLanguages:d,loadLanguage:v,loadLanguageSync:m,loadTheme:b,loadThemeSync:y,dispose:_,[Symbol.dispose]:_}}async function C6e(e){e.engine||_6e("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,r,n]=await Promise.all([aY(e.themes||[]),nY(e.langs||[]),e.engine]);return A6e({...e,themes:t,langs:r,engine:n})}async function O6e(e){const t=await C6e(e);return{getLastGrammarState:(...r)=>u6e(t,...r),codeToTokensBase:(r,n)=>f8(t,r,n),codeToTokensWithThemes:(r,n)=>rY(t,r,n),codeToTokens:(r,n)=>gv(t,r,n),codeToHast:(r,n)=>vv(t,r,n),codeToHtml:(r,n)=>E6e(t,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function k6e(e){const t=e.langs,r=e.themes,n=e.engine;async function a(i){function s(d){if(typeof d=="string"){if(QW(d))return[];d=i.langAlias?.[d]||d;const m=t[d];if(!m)throw new en(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return m}return d}function o(d){if(ZW(d))return"none";if(typeof d=="string"){const m=r[d];if(!m)throw new en(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return m}return d}const u=(i.themes??[]).map(d=>o(d)),c=(i.langs??[]).map(d=>s(d)),h=await O6e({engine:i.engine??n(),...i,themes:u,langs:c});return{...h,loadLanguage(...d){return h.loadLanguage(...d.map(s))},loadTheme(...d){return h.loadTheme(...d.map(o))},getBundledLanguages(){return t},getBundledThemes(){return r}}}return a}const iY=[{id:"abap",name:"ABAP",import:(()=>Z(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>Z(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>Z(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>Z(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>Z(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>Z(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>Z(()=>import("./apex-C7Pw0Ztw.js"),[]))},{id:"apl",name:"APL",import:(()=>Z(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>Z(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>Z(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>Z(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>Z(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>Z(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>Z(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>Z(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>Z(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>Z(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>Z(()=>import("./berry-D08WgyRC.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>Z(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>Z(()=>import("./bicep-6nHXG8SA.js"),[]))},{id:"blade",name:"Blade",import:(()=>Z(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>Z(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>Z(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>Z(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>Z(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>Z(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>Z(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>Z(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>Z(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>Z(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>Z(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>Z(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>Z(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>Z(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>Z(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>Z(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>Z(()=>import("./csharp-CX12Zw3r.js"),[]))},{id:"css",name:"CSS",import:(()=>Z(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>Z(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>Z(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>Z(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>Z(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>Z(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>Z(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>Z(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>Z(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>Z(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>Z(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>Z(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>Z(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>Z(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>Z(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>Z(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>Z(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>Z(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>Z(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>Z(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>Z(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>Z(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>Z(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>Z(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>Z(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>Z(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>Z(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>Z(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>Z(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>Z(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>Z(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>Z(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>Z(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>Z(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>Z(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>Z(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>Z(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>Z(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>Z(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>Z(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>Z(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>Z(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>Z(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>Z(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>Z(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>Z(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>Z(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>Z(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>Z(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>Z(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>Z(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>Z(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>Z(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>Z(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>Z(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>Z(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>Z(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>Z(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>Z(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>Z(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>Z(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>Z(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>Z(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>Z(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>Z(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>Z(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>Z(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>Z(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>Z(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>Z(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>Z(()=>import("./latex-BUKiar2Z.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>Z(()=>import("./lean-DP1Csr6i.js"),[]))},{id:"less",name:"Less",import:(()=>Z(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>Z(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>Z(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>Z(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>Z(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>Z(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>Z(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>Z(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>Z(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>Z(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>Z(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>Z(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>Z(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>Z(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>Z(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>Z(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>Z(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>Z(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>Z(()=>import("./nextflow-CUEJCptM.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>Z(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>Z(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>Z(()=>import("./nix-BbRYJGeE.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>Z(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>Z(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>Z(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>Z(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>Z(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>Z(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>Z(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>Z(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>Z(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>Z(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>Z(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>Z(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>Z(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>Z(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>Z(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>Z(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>Z(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>Z(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>Z(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>Z(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>Z(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>Z(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>Z(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>Z(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>Z(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>Z(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>Z(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>Z(()=>import("./razor-WgofotgN.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>Z(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>Z(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>Z(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>Z(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>Z(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>Z(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>Z(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>Z(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>Z(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>Z(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>Z(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>Z(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>Z(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>Z(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>Z(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>Z(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>Z(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>Z(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>Z(()=>import("./solidity-BbcW6ACK.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>Z(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>Z(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>Z(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>Z(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>Z(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>Z(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>Z(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>Z(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>Z(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>Z(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>Z(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>Z(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>Z(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>Z(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>Z(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>Z(()=>import("./terraform-BETggiCN.js"),[]))}
703,{id:"tex",name:"TeX",import:(()=>Z(()=>import("./tex-Cppo0RY3.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>Z(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>Z(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>Z(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>Z(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>Z(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>Z(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>Z(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>Z(()=>import("./typespec-Df68jz8_.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>Z(()=>import("./typst-DHCkPAjA.js"),[]))}
vendor: 5,484 bytes, line 703
703,{id:"v",name:"V",import:(()=>Z(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>Z(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>Z(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>Z(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>Z(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>Z(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>Z(()=>import("./vue-CCoi5OLL.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>Z(()=>import("./vue-html-DAAvJJDi.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>Z(()=>import("./vue-vine-_Ih-lPRR.js"),__vite__mapDeps([94,3,5,67,95,12,92,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>Z(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>Z(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>Z(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>Z(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>Z(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>Z(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>Z(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>Z(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>Z(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>Z(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>Z(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>Z(()=>import("./zig-VOosw3JB.js"),[]))}],N6e=Object.fromEntries(iY.map(e=>[e.id,e.import])),R6e=Object.fromEntries(iY.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),sY={...N6e,...R6e},M6e=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>Z(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>Z(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>Z(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>Z(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>Z(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>Z(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>Z(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>Z(()=>import("./dark-plus-eOWES_5F.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>Z(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>Z(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>Z(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>Z(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>Z(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>Z(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>Z(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>Z(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>Z(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>Z(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>Z(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>Z(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>Z(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>Z(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>Z(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>Z(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>Z(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>Z(()=>
703import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>Z(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>Z(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>Z(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>Z(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>Z(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>Z(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>Z(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>Z(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>Z(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>Z(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>Z(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>Z(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>Z(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>Z(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>Z(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>Z(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>Z(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>Z(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>Z(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>Z(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>Z(()=>import("./rose-pine-BHrmToEH.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>Z(()=>import("./rose-pine-dawn-CnK8MTSM.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>Z(()=>import("./rose-pine-moon-NleAzG8P.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>Z(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>Z(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>Z(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>Z(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>Z(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>Z(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>Z(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>Z(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>Z(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>Z(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>Z(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],P6e=Object.fromEntries(M6e.map(e=>[e.id,e.import]));
vendor: 19,624 bytes, lines 703-735
703class h8 extends Error{constructor(t){super(t),this.name="ShikiError"}}function I6e(){return 2147483648}function D6e(){return typeof performance<"u"?performance.now():Date.now()}const L6e=(e,t)=>e+(t-e%t)%t;async function j6e(e){let t,r;const n={};function a(v){r=v,n.HEAPU8=new Uint8Array(v),n.HEAPU32=new Uint32Array(v)}function i(v,y,b){n.HEAPU8.copyWithin(v,y,y+b)}function s(v){try{return t.grow(v-r.byteLength+65535>>>16),a(t.buffer),1}catch{}}function o(v){const y=n.HEAPU8.length;v=v>>>0;const b=I6e();if(v>b)return!1;for(let E=1;E<=4;E*=2){let _=y*(1+.2/E);_=Math.min(_,v+100663296);const T=Math.min(b,L6e(Math.max(v,_),65536));if(s(T))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(v,y,b=1024){const E=y+b;let _=y;for(;v[_]&&!(_>=E);)++_;if(_-y>16&&v.buffer&&u)return u.decode(v.subarray(y,_));let T="";for(;y<_;){let C=v[y++];if(!(C&128)){T+=String.fromCharCode(C);continue}const P=v[y++]&63;if((C&224)===192){T+=String.fromCharCode((C&31)<<6|P);continue}const O=v[y++]&63;if((C&240)===224?C=(C&15)<<12|P<<6|O:C=(C&7)<<18|P<<12|O<<6|v[y++]&63,C<65536)T+=String.fromCharCode(C);else{const k=C-65536;T+=String.fromCharCode(55296|k>>10,56320|k&1023)}}return T}function h(v,y){return v?c(n.HEAPU8,v,y):""}const d={emscripten_get_now:D6e,emscripten_memcpy_big:i,emscripten_resize_heap:o,fd_write:()=>0};async function m(){const y=await e({env:d,wasi_snapshot_preview1:d});t=y.memory,a(t.buffer),Object.assign(n,y),n.UTF8ToString=h}return await m(),n}var B6e=Object.defineProperty,z6e=(e,t,r)=>t in e?B6e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,un=(e,t,r)=>z6e(e,typeof t!="symbol"?t+"":t,r);let xn=null;function $6e(e){throw new h8(e.UTF8ToString(e.getLastOnigError()))}class cb{constructor(t){un(this,"utf16Length"),un(this,"utf8Length"),un(this,"utf16Value"),un(this,"utf8Value"),un(this,"utf16OffsetToUtf8"),un(this,"utf8OffsetToUtf16");const r=t.length,n=cb._utf8ByteLength(t),a=n!==r,i=a?new Uint32Array(r+1):null;a&&(i[r]=n);const s=a?new Uint32Array(n+1):null;a&&(s[n]=r);const o=new Uint8Array(n);let u=0;for(let c=0;c<r;c++){const h=t.charCodeAt(c);let d=h,m=!1;if(h>=55296&&h<=56319&&c+1<r){const v=t.charCodeAt(c+1);v>=56320&&v<=57343&&(d=(h-55296<<10)+65536|v-56320,m=!0)}a&&(i[c]=u,m&&(i[c+1]=u),d<=127?s[u+0]=c:d<=2047?(s[u+0]=c,s[u+1]=c):d<=65535?(s[u+0]=c,s[u+1]=c,s[u+2]=c):(s[u+0]=c,s[u+1]=c,s[u+2]=c,s[u+3]=c)),d<=127?o[u++]=d:d<=2047?(o[u++]=192|(d&1984)>>>6,o[u++]=128|(d&63)>>>0):d<=65535?(o[u++]=224|(d&61440)>>>12,o[u++]=128|(d&4032)>>>6,o[u++]=128|(d&63)>>>0):(o[u++]=240|(d&1835008)>>>18,o[u++]=128|(d&258048)>>>12,o[u++]=128|(d&4032)>>>6,o[u++]=128|(d&63)>>>0),m&&c++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=t,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let r=0;for(let n=0,a=t.length;n<a;n++){const i=t.charCodeAt(n);let s=i,o=!1;if(i>=55296&&i<=56319&&n+1<a){const u=t.charCodeAt(n+1);u>=56320&&u<=57343&&(s=(i-55296<<10)+65536|u-56320,o=!0)}s<=127?r+=1:s<=2047?r+=2:s<=65535?r+=3:r+=4,o&&n++}return r}createString(t){const r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}}const fb=class ns{constructor(t){if(un(this,"id",++ns.LAST_ID),un(this,"_onigBinding"),un(this,"content"),un(this,"utf16Length"),un(this,"utf8Length"),un(this,"utf16OffsetToUtf8"),un(this,"utf8OffsetToUtf16"),un(this,"ptr"),!xn)throw new h8("Must invoke loadWasm first.");this._onigBinding=xn,this.content=t;const r=new cb(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!ns._sharedPtrInUse?(ns._sharedPtr||(ns._sharedPtr=xn.omalloc(1e4)),ns._sharedPtrInUse=!0,xn.HEAPU8.set(r.utf8Value,ns._sharedPtr),this.ptr=ns._sharedPtr):this.ptr=r.createString(xn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===ns._sharedPtr?ns._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};un(fb,"LAST_ID",0);un(fb,"_sharedPtr",0);un(fb,"_sharedPtrInUse",!1);let oY=fb;class F6e{constructor(t){if(un(this,"_onigBinding"),un(this,"_ptr"),!xn)throw new h8("Must invoke loadWasm first.");const r=[],n=[];for(let o=0,u=t.length;o<u;o++){const c=new cb(t[o]);r[o]=c.createString(xn),n[o]=c.utf8Length}const a=xn.omalloc(4*t.length);xn.HEAPU32.set(r,a/4);const i=xn.omalloc(4*t.length);xn.HEAPU32.set(n,i/4);const s=xn.createOnigScanner(a,i,t.length);for(let o=0,u=t.length;o<u;o++)xn.ofree(r[o]);xn.ofree(i),xn.ofree(a),s===0&&$6e(xn),this._onigBinding=xn,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,r,n){let a=0;if(typeof n=="number"&&(a=n),typeof t=="string"){t=new oY(t);const i=this._findNextMatchSync(t,r,!1,a);return t.dispose(),i}return this._findNextMatchSync(t,r,!1,a)}_findNextMatchSync(t,r,n,a){const i=this._onigBinding,s=i.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(r),a);if(s===0)return null;const o=i.HEAPU32;let u=s/4;const c=o[u++],h=o[u++],d=[];for(let m=0;m<h;m++){const v=t.convertUtf8OffsetToUtf16(o[u++]),y=t.convertUtf8OffsetToUtf16(o[u++]);d[m]={start:v,end:y,length:y-v}}return{index:c,captureIndices:d}}}function U6e(e){return typeof e.instantiator=="function"}function H6e(e){return typeof e.default=="function"}function q6e(e){return typeof e.data<"u"}function V6e(e){return typeof Response<"u"&&e instanceof Response}function G6e(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let n1;function W6e(e){if(n1)return n1;async function t(){xn=await j6e(async r=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),U6e(n)?n=await n.instantiator(r):H6e(n)?n=await n.default(r):(q6e(n)&&(n=n.data),V6e(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Y6e(n)(r):n=await X6e(n)(r):G6e(n)?n=await w3(n)(r):n instanceof WebAssembly.Module?n=await w3(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await w3(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return n1=t(),n1}function w3(e){return t=>WebAssembly.instantiate(e,t)}function Y6e(e){return t=>WebAssembly.instantiateStreaming(e,t)}function X6e(e){return async t=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}async function K6e(e){return e&&await W6e(e),{createScanner(t){return new F6e(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new oY(t)}}}const EP=k6e({langs:sY,themes:P6e,engine:()=>K6e(Z(()=>import("./wasm-CG6Dc4jp.js"),[]))});function D0(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Q6e(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}const p8=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),_n=String.raw;function L0(e,t){if(e==null)throw new Error(t??"Value expected");return e}const lY=_n`\[\^?`,uY=`c.? | C(?:-.?)?|${_n`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${_n`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${_n`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${_n`o\{[^\}]*\}?`}|${_n`\d{1,3}`}`,m8=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,a1=new RegExp(_n`
704  \\ (?:
705    ${uY}
706    | [gk]<[^>]*>?
707    | [gk]'[^']*'?
708    | .
709  )
710  | \( (?:
711    \? (?:
712      [:=!>({]
713      | <[=!]
714      | <[^>]*>
715      | '[^']*'
716      | ~\|?
717      | #(?:[^)\\]|\\.?)*
718      | [^:)]*[:)]
719    )?
720    | \*[^\)]*\)?
721  )?
722  | (?:${m8.source})+
723  | ${lY}
724  | .
725`.replace(/\s+/g,""),"gsu"),_3=new RegExp(_n`
726  \\ (?:
727    ${uY}
728    | .
729  )
730  | \[:(?:\^?\p{Alpha}+|\^):\]
731  | ${lY}
732  | &&
733  | .
734`.replace(/\s+/g,""),"gsu");function Z6e(e,t={}){const r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const n=vEe(r.flags),a=[n.extended],i={captureGroup:r.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(d){a.push(d)},replaceCurrentModX(d){a[a.length-1]=d},singleline:r.rules.singleline};let s=[],o;for(a1.lastIndex=0;o=a1.exec(e);){const d=J6e(i,e,o[0],a1.lastIndex);d.tokens?s.push(...d.tokens):d.token&&s.push(d.token),d.lastIndex!==void 0&&(a1.lastIndex=d.lastIndex)}const u=[];let c=0;s.filter(d=>d.type==="GroupOpen").forEach(d=>{d.kind==="capturing"?d.number=++c:d.raw==="("&&u.push(d)}),c||u.forEach((d,m)=>{d.kind="capturing",d.number=m+1});const h=c||u.length;return{tokens:s.map(d=>d.type==="EscapedNumber"?bEe(d,h):d).flat(),flags:n}}function J6e(e,t,r,n){const[a,i]=r;if(r==="["||r==="[^"){const s=eEe(t,r,n);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(i))return{token:wP(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:cEe(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:fY(r)}}if(i==="K")return{token:dY("keep",r)};if(i==="N"||i==="R")return{token:_u("newline",r,{negate:i==="N"})};if(i==="O")return{token:_u("any",r)};if(i==="X")return{token:_u("text_segment",r)};const s=cY(r,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(a==="("){if(i==="*")return{token:pEe(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:hEe(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:bf("group",r)};if(r==="(?>")return{token:bf("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:bf(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:bf("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:bf("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:oEe(r)}}if(e.getCurrentModX()){if(r==="#"){const s=t.indexOf(`
735`,n);return{lastIndex:s===-1?t.length:s}}if(/^\s$/.test(r)){const s=/\s+/y;return s.lastIndex=n,{lastIndex:s.exec(t)?s.lastIndex:n}}}if(r===".")return{token:_u("dot",r)};if(r==="^"||r==="$"){const s=e.singleline?{"^":_n`\A`,$:_n`\Z`}[r]:r;return{token:wP(s,r)}}return r==="|"?{token:rEe(r)}:m8.test(r)?{tokens:xEe(r)}:{token:ro(D0(r),r)}}function eEe(e,t,r){const n=[_P(t[1]==="^",t)];let a=1,i;for(_3.lastIndex=r;i=_3.exec(e);){const s=i[0];if(s[0]==="["&&s[1]!==":")a++,n.push(_P(s[1]==="^",s));else if(s==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(ro(93,s));else if(a--,n.push(nEe(s)),!a)break}else{const o=tEe(s);Array.isArray(o)?n.push(...o):n.push(o)}}return{tokens:n,lastIndex:_3.lastIndex||e.length}}function tEe(e){if(e[0]==="\\")return cY(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!p8.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return _u("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?aEe(e):e==="&&"?iEe(e):ro(D0(e),e)}function cY(e,{inCharClass:t}){const r=e[1];if(r==="c"||r==="C")return dEe(e);if("dDhHsSwW".includes(r))return mEe(e);if(e.startsWith(_n`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return gEe(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const n=e.split(/\\x/).slice(1).map(s=>parseInt(s,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),i=new TextEncoder;return[...a].map(s=>{const o=[...i.encode(s)].map(u=>`\\x${u.toString(16)}`).join("");return ro(D0(s),o)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return ro(yEe(e),e);if(SP.has(r))return ro(SP.get(r),e);if(/\d/.test(r))return sEe(t,e);if(e==="\\")throw new Error(_n`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return ro(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function rEe(e){return{type:"Alternator",raw:e}}function wP(e,t){return{type:"Assertion",kind:e,raw:t}}function fY(e){return{type:"Backreference",raw:e}}function ro(e,t){return{type:"Character",value:e,raw:t}}function nEe(e){return{type:"CharacterClassClose",raw:e}}function aEe(e){return{type:"CharacterClassHyphen",raw:e}}function iEe(e){return{type:"CharacterClassIntersector",raw:e}}function _P(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function _u(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function dY(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:L0(r.flags),raw:t}}function sEe(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function oEe(e){return{type:"GroupClose",raw:e}}function bf(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function lEe(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}function uEe(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}function cEe(e){return{type:"Subroutine",raw:e}}const fEe=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),SP=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function dEe(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return ro(D0(t.toUpperCase())-64,e)}function hEe(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";const a=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),i=AP(r),s=AP(n),o={};if(i&&(o.enable=i),s&&(o.disable=s),e.endsWith(")"))return t.replaceCurrentModX(a),dY("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,bf("group",e,{...(i||s)&&{flags:o}});throw new Error(`Unexpected flag modifier "${e}"`)}function pEe(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:r,tag:n,args:a}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const i=a?a.split(",").filter(h=>h!=="").map(h=>/^[+-]?\d+$/.test(h)?+h:h):[],[s,o,u]=i,c=fEe.has(r)?r.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(i.length>0)throw new Error(`Named callout arguments not allowed "${i}"`);break;case"error":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(typeof s=="string")throw new Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!i.length||i.length>2)throw new Error(`Named callout must have one or two arguments "${i}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(i.length===2&&(typeof o=="number"||!/^[<>X]$/.test(o)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(i.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(i.length!==3)throw new Error(`Named callout must have three arguments "${i}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof o=="number"||!/^(?:[<>!=]=|[<>])$/.test(o))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if(typeof u=="string"&&!/^[A-Za-z_]\w*$/.test(u))throw new Error(`Named callout argument three must be a tag or number "${u}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return lEe(c,n??null,a?.split(",")??null,e)}function TP(e){let t=null,r,n;if(e[0]==="{"){const{minStr:a,maxStr:i}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,s=1e5;if(+a>s||i&&+i>s)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+a,n=i===void 0?+a:i===""?1/0:+i,r>n&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return uEe(t,r,n,e)}function mEe(e){const t=e[1].toLowerCase();return _u({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function gEe(e){const{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return _u("property",e,{value:n,negate:t==="P"&&!r||t==="p"&&!!r})}function AP(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function vEe(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){const n=e[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return t}function yEe(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function bEe(e,t){const{raw:r,inCharClass:n}=e,a=r.slice(1);if(!n&&(a!=="0"&&a.length===1||a[0]!=="0"&&+a<=t))return[fY(r)];const i=[],s=a.match(/^[0-7]+|\d/g);for(let o=0;o<s.length;o++){const u=s[o];let c;if(o===0&&u!=="8"&&u!=="9"){if(c=parseInt(u,8),c>127)throw new Error(_n`Octal encoded byte above 177 unsupported "${r}"`)}else c=D0(u);i.push(ro(c,(o===0?"\\":"")+u))}return i}function xEe(e){const t=[],r=new RegExp(m8,"gy");let n;for(;n=r.exec(e);){const a=n[0];if(a[0]==="{"){const i=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(i){const{min:s,max:o}=i.groups;if(+s>+o&&a.endsWith("?")){r.lastIndex--,t.push(TP(a.slice(0,-1)));continue}}}t.push(TP(a))}return t}function hY(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const r=e.body[0];return!t||Object.keys(t).every(n=>t[n]===r[n])}function EEe(e){return wEe.has(e.type)}const wEe=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subrout
735ine"]);function pY(e,t={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=Z6e(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),a=(m,v)=>{const y=n.tokens[i.nextIndex];switch(i.parent=m,i.nextIndex++,y.type){case"Alternator":return Gu();case"Assertion":return _Ee(y);case"Backreference":return SEe(y,i);case"Character":return db(y.value,{useLastValid:!!v.isCheckingRangeEnd});case"CharacterClassHyphen":return TEe(y,i,v);case"CharacterClassOpen":return AEe(y,i,v);case"CharacterSet":return CEe(y,i);case"Directive":return PEe(y.kind,{flags:y.flags});case"GroupOpen":return OEe(y,i,v);case"NamedCallout":return DEe(y.kind,y.tag,y.arguments);case"Quantifier":return kEe(y,i);case"Subroutine":return NEe(y,i);default:throw new Error(`Unexpected token type "${y.type}"`)}},i={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:a},s=jEe(IEe(n.flags));let o=s.body[0];for(;i.nextIndex<n.tokens.length;){const m=a(o,{});m.type==="Alternative"?(s.body.push(m),o=m):o.body.push(m)}const{capturingGroups:u,hasNumberedRef:c,namedGroupsByName:h,subroutines:d}=i;if(c&&h.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:m}of d)if(typeof m=="number"){if(m>u.length)throw new Error("Subroutine uses a group number that's not defined");m&&(u[m-1].isSubroutined=!0)}else if(h.has(m)){if(h.get(m).length>1)throw new Error(_n`Subroutine uses a duplicate group name "\g<${m}>"`);h.get(m)[0].isSubroutined=!0}else throw new Error(_n`Subroutine uses a group name that's not defined "\g<${m}>"`);return s}function _Ee({kind:e}){return Z_(L0({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===_n`\B`||e===_n`\Y`})}function SEe({raw:e},t){const r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),a=(i,s=!1)=>{const o=t.capturingGroups.length;let u=!1;if(i>o)if(t.skipBackrefValidation)u=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,J_(s?o+1-i:i,{orphan:u})};if(r){const i=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(i)return a(+i.groups.num,!!i.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);
vendor: 5,405 bytes, line 735
735if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return J_(n)}return a(+n)}function TEe(e,t,r){const{tokens:n,walk:a}=t,i=t.parent,s=i.body.at(-1),o=n[t.nextIndex];if(!r.isCheckingRangeEnd&&s&&s.type!=="CharacterClass"&&s.type!=="CharacterClassRange"&&o&&o.type!=="CharacterClassOpen"&&o.type!=="CharacterClassClose"&&o.type!=="CharacterClassIntersector"){const u=a(i,{...r,isCheckingRangeEnd:!0});if(s.type==="Character"&&u.type==="Character")return i.body.pop(),MEe(s,u);throw new Error("Invalid character class range")}return db(D0("-"))}function AEe({negate:e},t,r){const{tokens:n,walk:a}=t,i=n[t.nextIndex],s=[L1()];let o=kP(i);for(;o.type!=="CharacterClassClose";){if(o.type==="CharacterClassIntersector")s.push(L1()),t.nextIndex++;else{const c=s.at(-1);c.body.push(a(c,r))}o=kP(n[t.nextIndex],i)}const u=L1({negate:e});return s.length===1?u.body=s[0].body:(u.kind="intersection",u.body=s.map(c=>c.body.length===1?c.body[0]:c)),t.nextIndex++,u}function CEe({kind:e,negate:t,value:r},n){const{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:s}=n;if(e==="property"){const o=hb(r);if(p8.has(o)&&!s?.has(o))e="posix",r=o;else return xf(r,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:s})}return e==="posix"?LEe(r,{negate:t}):eS(e,{negate:t})}function OEe(e,t,r){const{tokens:n,capturingGroups:a,namedGroupsByName:i,skipLookbehindValidation:s,walk:o}=t,u=BEe(e),c=u.type==="AbsenceFunction",h=OP(u),d=h&&u.negate;if(u.type==="CapturingGroup"&&(a.push(u),u.name&&Q6e(i,u.name,[]).push(u)),c&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let m=NP(n[t.nextIndex]);for(;m.type!=="GroupClose";){if(m.type==="Alternator")u.body.push(Gu()),t.nextIndex++;else{const v=u.body.at(-1),y=o(v,{...r,isInAbsenceFunction:r.isInAbsenceFunction||c,isInLookbehind:r.isInLookbehind||h,isInNegLookbehind:r.isInNegLookbehind||d});if(v.body.push(y),(h||r.isInLookbehind)&&!s){const b="Lookbehind includes a pattern not allowed by Oniguruma";if(d||r.isInNegLookbehind){if(CP(y)||y.type==="CapturingGroup")throw new Error(b)}else if(CP(y)||OP(y)&&y.negate)throw new Error(b)}}m=NP(n[t.nextIndex])}return t.nextIndex++,u}function kEe({kind:e,min:t,max:r},n){const a=n.parent,i=a.body.at(-1);if(!i||!EEe(i))throw new Error("Quantifier requires a repeatable token");const s=gY(e,t,r,i);return a.body.pop(),s}function NEe({raw:e},t){const{capturingGroups:r,subroutines:n}=t;let a=e.slice(3,-1);const i=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(i){const o=+i.groups.num,u=r.length;if(t.hasNumberedRef=!0,a={"":o,"+":u+o,"-":u+1-o}[i.groups.sign],a<1)throw new Error("Invalid subroutine number")}else a==="0"&&(a=0);const s=vY(a);return n.push(s),s}function REe(e,t){return{type:"AbsenceFunction",kind:e,body:Jp(t?.body)}}function Gu(e){return{type:"Alternative",body:yY(e?.body)}}function Z_(e,t){const r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}function J_(e,t){const r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function mY(e,t){const r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!zEe(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Jp(t?.body)}}function db(e,t){const r={useLastValid:!1,...t};if(e>1114111){const n=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:e}}function L1(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:yY(e?.body)}}function MEe(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function eS(e,t){const r=!!t?.negate,n={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(n.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(n.variableLength=!0),n}function PEe(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:L0(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function IEe(e){return{type:"Flags",...e}}function ji(e){const t=e?.atomic,r=e?.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:Jp(e?.body)}}function bu(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Jp(e?.body)}}function DEe(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function LEe(e,t){const r=!!t?.negate;if(!p8.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function gY(e,t,r,n){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function jEe(e,t){return{type:"Regex",body:Jp(t?.body),flags:e}}function vY(e){return{type:"Subroutine",ref:e}}function xf(e,t){const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let n=r.unicodePropertyMap?.get(hb(e));
vendor: 13,113 bytes, lines 735-832
735if(!n){if(r.normalizeUnknownPropertyNames)n=$Ee(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(_n`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function BEe({flags:e,kind:t,name:r,negate:n,number:a}){switch(t){case"absence_repeater":return REe("repeater");case"atomic":return ji({atomic:!0});case"capturing":return mY(a,{name:r});case"group":return ji({flags:e});case"lookahead":case"lookbehind":return bu({behind:t==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${t}"`)}}function Jp(e){if(e===void 0)e=[Gu()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function yY(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function CP(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function OP(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function zEe(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function $Ee(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function hb(e){return e.replace(/[- _]+/g,"").toLowerCase()}function kP(e,t){return L0(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function NP(e){return L0(e,"Unclosed group")}function Ah(e,t,r=null){function n(i,s){for(let o=0;o<i.length;o++){const u=a(i[o],s,o,i);o=Math.max(-1,o+u)}}function a(i,s=null,o=null,u=null){let c=0,h=!1;const d={node:i,parent:s,key:o,container:u,root:e,remove(){i1(u).splice(Math.max(0,cf(o)+c),1),c--,h=!0},removeAllNextSiblings(){return i1(u).splice(cf(o)+1)},removeAllPrevSiblings(){const _=cf(o)+c;return c-=_,i1(u).splice(0,Math.max(0,_))},replaceWith(_,T={}){const C=!!T.traverse;u?u[Math.max(0,cf(o)+c)]=_:L0(s,"Can't replace root node")[o]=_,C&&a(_,s,o,u),h=!0},replaceWithMultiple(_,T={}){const C=!!T.traverse;if(i1(u).splice(Math.max(0,cf(o)+c),1,..._),c+=_.length-1,C){let P=0;for(let O=0;O<_.length;O++)P+=a(_[O],s,cf(o)+O+P,u)}h=!0},skip(){h=!0}},{type:m}=i,v=t["*"],y=t[m],b=typeof v=="function"?v:v?.enter,E=typeof y=="function"?y:y?.enter;if(b?.(d,r),E?.(d,r),!h)switch(m){case"AbsenceFunction":case"CapturingGroup":case"Group":n(i.body,i);break;case"Alternative":case"CharacterClass":n(i.body,i);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(i.min,i,"min"),a(i.max,i,"max");break;case"LookaroundAssertion":n(i.body,i);break;case"Quantifier":a(i.body,i,"body");break;case"Regex":n(i.body,i),a(i.flags,i,"flags");break;default:throw new Error(`Unexpected node type "${m}"`)}return y?.exit?.(d,r),v?.exit?.(d,r),c}return a(e),e}function i1(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function cf(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const FEe=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function UEe(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function HEe(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}const pi=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function g8(e,t,r,n){const a=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1];let s=0,o="";for(const u of e.matchAll(a)){const{0:c,groups:{$skip:h}}=u;if(!h&&(!n||n===pi.DEFAULT==!s)){r instanceof Function?o+=r(u,{context:s?pi.CHAR_CLASS:pi.DEFAULT,negated:i[i.length-1]}):o+=r;continue}c[0]==="["?(s++,i.push(c[1]==="^")):c==="]"&&s&&(s--,i.pop()),o+=c}return o}function bY(e,t,r,n){g8(e,t,r,n)}function qEe(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;const a=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=r;let i=0,s;for(;s=a.exec(e);){const{0:o,groups:{$skip:u}}=s;if(!u&&(!n||n===pi.DEFAULT==!i))return s;o==="["?i++:o==="]"&&i&&i--,a.lastIndex==s.index&&a.lastIndex++}return null}function s1(e,t,r){return!!qEe(e,t,0,r)}function VEe(e,t){const r=/\\?./gsu;r.lastIndex=t;let n=e.length,a=0,i=1,s;for(;s=r.exec(e);){const[o]=s;if(o==="[")a++;else if(a)o==="]"&&a--;else if(o==="(")i++;else if(o===")"&&(i--,!i)){n=s.index;break}}return e.slice(t,n)}const RP=new RegExp(String.raw`(?<noncapturingStart>${FEe})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function GEe(e,t){const r=t?.hiddenCaptures??[];let n=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};const a="(?>",i="(?:(?=(",s=[0],o=[];let u=0,c=0,h=NaN,d;do{d=!1;let m=0,v=0,y=!1,b;for(RP.lastIndex=Number.isNaN(h)?0:h+i.length;b=RP.exec(e);){const{0:E,index:_,groups:{capturingStart:T,noncapturingStart:C}}=b;if(E==="[")m++;else if(m)E==="]"&&m--;else if(E===a&&!y)h=_,y=!0;else if(y&&C)v++;else if(T)y?v++:(u++,s.push(u+c));else if(E===")"&&y){if(!v){c++;const P=u+c;if(e=`${e.slice(0,h)}${i}${e.slice(h+a.length,_)}))<$$${P}>)${e.slice(_+1)}`,d=!0,o.push(P),UEe(r,P),n.size){const O=new Map;n.forEach((k,M)=>{O.set(M>=P?M+1:M,k.map(j=>j>=P?j+1:j))}),n=O}break}v--}}}while(d);return r.push(...o),e=g8(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:m,groups:{backrefNum:v,wrappedBackrefNum:y}})=>{if(v){const b=+v;if(b>s.length-1)throw new Error(`Backref "${m}" greater than number of captures`);return`\\${s[b]}`}return`\\${y}`},pi.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}const xY=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,S3=new RegExp(String.raw`
736\\(?: \d+
737  | c[A-Za-z]
738  | [gk]<[^>]+>
739  | [pPu]\{[^\}]+\}
740  | u[A-Fa-f\d]{4}
741  | x[A-Fa-f\d]{2}
742  )
743| \((?: \? (?: [:=!>]
744  | <(?:[=!]|[^>]+>)
745  | [A-Za-z\-]+:
746  | \(DEFINE\)
747  ))?
748| (?<qBase>${xY})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
749| \\?.
750`.replace(/\s+/g,""),"gsu");function WEe(e){if(!new RegExp(`${xY}\\+`).test(e))return{pattern:e};const t=[];let r=null,n=null,a="",i=0,s;for(S3.lastIndex=0;s=S3.exec(e);){const{0:o,index:u,groups:{qBase:c,qMod:h,invalidQ:d}}=s;if(o==="[")i||(n=u),i++;else if(o==="]")i?i--:n=null;else if(!i)if(h==="+"&&a&&!a.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${o}"`);let m=-1;if(/^\{\d+\}$/.test(c))e=HEe(e,u+c.length,h,"");else{if(a===")"||a==="]"){const v=a===")"?r:n;if(v===null)throw new Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,v)}(?>${e.slice(v,u)}${c})${e.slice(u+o.length)}`}else e=`${e.slice(0,u-a.length)}(?>${a}${c})${e.slice(u+o.length)}`;m+=4}S3.lastIndex+=m}else o[0]==="("?t.push(u):o===")"&&(r=t.length?t.pop():null);a=o}return{pattern:e}}const di=String.raw,YEe=di`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,tS=di`\(\?R=(?<rDepth>[^\)]+)\)|${YEe}`,pb=di`\(\?<(?![=!])(?<captureName>[^>]+)>`,EY=di`${pb}|(?<unnamed>\()(?!\?)`,fu=new RegExp(di`${pb}|${tS}|\(\?|\\?.`,"gsu"),T3="Cannot use multiple overlapping recursions";function XEe(e,t){const{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...t};let a=t?.captureTransfers??new Map;if(!new RegExp(tS,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};if(n==="plugin"&&s1(e,di`\(\?\(DEFINE\)`,pi.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const i=[],s=s1(e,di`\\[1-9]`,pi.DEFAULT),o=new Map,u=[];let c=!1,h=0,d=0,m;for(fu.lastIndex=0;m=fu.exec(e);){const{0:v,groups:{captureName:y,rDepth:b,gRNameOrNum:E,gRDepth:_}}=m;if(v==="[")h++;else if(h)v==="]"&&h--;else if(b){if(MP(b),c)throw new Error(T3);if(s)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const T=e.slice(0,m.index),C=e.slice(fu.lastIndex);if(s1(C,tS,pi.DEFAULT))throw new Error(T3);const P=+b-1;e=PP(T,C,P,!1,r,i,d),a=DP(a,T,P,i.length,0,d);break}else if(E){MP(_);let T=!1;for(const q of u)if(q.name===E||q.num===+E){if(T=!0,q.hasRecursedWithin)throw new Error(T3);break}if(!T)throw new Error(di`Recursive \g cannot be used outside the referenced group "${n==="external"?E:di`\g<${E}&R=${_}>`}"`);const C=o.get(E),P=VEe(e,C);if(s&&s1(P,di`${pb}|\((?!\?)`,pi.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const O=e.slice(C,m.index),k=P.slice(O.length+v.length),M=i.length,j=+_-1,z=PP(O,k,j,!0,r,i,d);a=DP(a,O,j,i.length-M,M,d);const $=e.slice(0,C),F=e.slice(C+P.length);e=`${$}${z}${F}`,fu.lastIndex+=z.length-v.length-O.length-k.length,u.forEach(q=>q.hasRecursedWithin=!0),c=!0}else if(y)d++,o.set(String(d),fu.lastIndex),o.set(y,fu.lastIndex),u.push({num:d,name:y});else if(v[0]==="("){const T=v==="(";T&&(d++,o.set(String(d),fu.lastIndex)),u.push(T?{num:d}:{})}else v===")"&&u.pop()}return r.push(...i),{pattern:e,captureTransfers:a,hiddenCaptures:r}}function MP(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function PP(e,t,r,n,a,i,s){const o=new Set;n&&bY(e+t,pb,({groups:{captureName:c}})=>{o.add(c)},pi.DEFAULT);const u=[r,n?o:null,a,i,s];return`${e}${IP(`(?:${e}`,"forward",...u)}(?:)${IP(`${t})`,"backward",...u)}${t}`}function IP(e,t,r,n,a,i,s){const u=h=>t==="forward"?h+2:r-h+2-1;let c="";for(let h=0;h<r;h++){const d=u(h);c+=g8(e,di`${EY}|\\k<(?<backref>[^>]+)>`,({0:m,groups:{captureName:v,unnamed:y,backref:b}})=>{if(b&&n&&!n.has(b))return m;const E=`_$${d}`;if(y||v){const _=s+i.length+1;return i.push(_),KEe(a,_),y?m:`(?<${v}${E}>`}return di`\k<${b}${E}>`},pi.DEFAULT)}return c}function KEe(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function DP(e,t,r,n,a,i){if(e.size&&n){let s=0;bY(t,EY,()=>s++,pi.DEFAULT);const o=i-s+a,u=new Map;return e.forEach((c,h)=>{const d=(n-s*r)/r,m=s*r,v=h>o+s?h+n:h,y=[];for(const b of c)if(b<=o)y.push(b);else if(b>o+s+d)y.push(b+n);else if(b<=o+s)for(let E=0;E<=r;E++)y.push(b+s*E);else for(let E=0;E<=r;E++)y.push(b+m+d*E);u.set(v,y)}),u}return e}var cn=String.fromCodePoint,pt=String.raw,co={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};co.bugFlagVLiteralHyphenIsRange=co.unicodeSets?(()=>{try{new RegExp(pt`[\d\-a]`,"v")}catch{return!0}return!1})():!1;co.bugNestedClassIgnoresNegation=co.unicodeSets&&new RegExp("[[^a]]","v").test("a");function yv(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Kh(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function rS(e,t){return LP[e]>=LP[t]}function QEe(e,t){if(e==null)throw new Error(t??"Value expected");return e}var LP={ES2025:2025,ES2024:2024,ES2018:2018},ZEe={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function wY(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!ZEe[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=co.flagGroups?"ES2025":co.unicodeSets?"ES2024":"ES2018"),t}var JEe="[	-\r ]",ewe=new Set([cn(304),cn(305)]),Ks=pt`[\p{L}\p{M}\p{N}\p{Pc}]`;function _Y(e){if(ewe.has(e))return[e];const t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),a=nwe.get(r),i=twe.get(r),s=rwe.get(r);return[...n].length===1&&t.add(n),s&&t.add(s),a&&t.add(a),t.add(r),i&&t.add(i),[...t]}var v8=new Map(`C Other
751Cc Control cntrl
752Cf Format
753Cn Unassigned
754Co Private_Use
755Cs Surrogate
756L Letter
757LC Cased_Letter
758Ll Lowercase_Letter
759Lm Modifier_Letter
760Lo Other_Letter
761Lt Titlecase_Letter
762Lu Uppercase_Letter
763M Mark Combining_Mark
764Mc Spacing_Mark
765Me Enclosing_Mark
766Mn Nonspacing_Mark
767N Number
768Nd Decimal_Number digit
769Nl Letter_Number
770No Other_Number
771P Punctuation punct
772Pc Connector_Punctuation
773Pd Dash_Punctuation
774Pe Close_Punctuation
775Pf Final_Punctuation
776Pi Initial_Punctuation
777Po Other_Punctuation
778Ps Open_Punctuation
779S Symbol
780Sc Currency_Symbol
781Sk Modifier_Symbol
782Sm Math_Symbol
783So Other_Symbol
784Z Separator
785Zl Line_Separator
786Zp Paragraph_Separator
787Zs Space_Separator
788ASCII
789ASCII_Hex_Digit AHex
790Alphabetic Alpha
791Any
792Assigned
793Bidi_Control Bidi_C
794Bidi_Mirrored Bidi_M
795Case_Ignorable CI
796Cased
797Changes_When_Casefolded CWCF
798Changes_When_Casemapped CWCM
799Changes_When_Lowercased CWL
800Changes_When_NFKC_Casefolded CWKCF
801Changes_When_Titlecased CWT
802Changes_When_Uppercased CWU
803Dash
804Default_Ignorable_Code_Point DI
805Deprecated Dep
806Diacritic Dia
807Emoji
808Emoji_Component EComp
809Emoji_Modifier EMod
810Emoji_Modifier_Base EBase
811Emoji_Presentation EPres
812Extended_Pictographic ExtPict
813Extender Ext
814Grapheme_Base Gr_Base
815Grapheme_Extend Gr_Ext
816Hex_Digit Hex
817IDS_Binary_Operator IDSB
818IDS_Trinary_Operator IDST
819ID_Continue IDC
820ID_Start IDS
821Ideographic Ideo
822Join_Control Join_C
823Logical_Order_Exception LOE
824Lowercase Lower
825Math
826Noncharacter_Code_Point NChar
827Pattern_Syntax Pat_Syn
828Pattern_White_Space Pat_WS
829Quotation_Mark QMark
830Radical
831Regional_Indicator RI
832Sentence_Terminal STerm
833Soft_Dotted SD
834Terminal_Punctuation Term
835Unified_Ideograph UIdeo
836Uppercase Upper
837Variation_Selector VS
838White_Space space
839XID_Continue XIDC
840XID_Start XIDS`.split(/\s/).map(e=>[hb(e),e])),twe=new Map([["s",cn(383)],[cn(383),"s"]]),rwe=new Map([[cn(223),cn(7838)],[cn(107),cn(8490)],[cn(229),cn(8491)],[cn(969),cn(8486)]]),nwe=new Map([fl(453),fl(456),fl(459),fl(498),...A3(8072,8079),...A3(8088,8095),...A3(8104,8111),fl(8124),fl(8140),fl(8188)]),awe=new Map([["alnum",pt`[\p{Alpha}\p{Nd}]`],["alpha",pt`\p{Alpha}`],["ascii",pt`\p{ASCII}`],["blank",pt`[\p{Zs}\t]`],["cntrl",pt`\p{Cc}`],["digit",pt`\p{Nd}`],["graph",pt`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",pt`\p{Lower}`],["print",pt`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",pt`[\p{P}\p{S}]`],["space",pt`\p{space}`],["upper",pt`\p{Upper}`],["word",pt`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",pt`\p{AHex}`]]);function iwe(e,t){const r=[];for(let n=e;n<=t;n++)r.push(n);return r}function fl(e){const t=cn(e);return[t.toLowerCase(),t]}function A3(e,t){return iwe(e,t).map(r=>fl(r))}var SY=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function swe(e,t){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};TY(e);const n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:rS(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Ah(e,owe,n);const a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},i={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};Ah(e,lwe,i);const s={groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer};return Ah(e,uwe,s),e._originMap=i.groupOriginByCopy,e._strategy=n.strategy,e}var owe={AbsenceFunction({node:e,parent:t,replaceWith:r}){const{body:n,kind:a}=e;if(a==="repeater"){const i=ji();i.body[0].body.push(bu({negate:!0,body:n}),xf("Any"));const s=ji();s.body[0].body.push(gY("greedy",0,1/0,i)),r(Fr(s,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){const a=e.body.filter(i=>i.kind==="flags");for(let i=r+1;i<t.body.length;i++){const s=t.body[i];Kh(n,s,[]).push(...a)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const r=CY(t.get(e));if(r){const n=ji({flags:r});n.body[0].body=e.body,e.body=[Fr(n,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:a,remove:i,replaceWith:s},o){const{kind:u,negate:c}=e,{asciiWordBoundaries:h,avoidSubclass:d,supportedGNodes:m,wordIsAscii:v}=o;if(u==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(u==="line_end")s(Fr(bu({body:[Gu({body:[Z_("string_end")]}),Gu({body:[db(10)]})]}),t));else if(u==="line_start")s(Fr(Qs(pt`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(u==="search_start")if(m.has(e))a.flags.sticky=!0,i();else{const y=n[r-1];if(y&&mwe(y))s(Fr(bu({negate:!0}),t));else{if(d)throw new Error(pt`Uses "\G" in a way that requires a subclass`);s(dl(Z_("string_start"),t)),o.strategy="clip_search"}}else if(!(u==="string_end"||u==="string_start"))if(u==="string_end_newline")s(Fr(Qs(pt`(?=\n?\z)`),t));else if(u==="word_boundary"){if(!v&&!h){const y=`(?:(?<=${Ks})(?!${Ks})|(?<!${Ks})(?=${Ks}))`,b=`(?:(?<=${Ks})(?=${Ks})|(?<!${Ks})(?!${Ks}))`;s(Fr(Qs(c?b:y),t))}}else throw new Error(`Unexpected assertion kind "${u}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!O3(r)&&(r=C3(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!O3(n)&&(n=C3(n,t),e.name=n),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){const n=L1({body:[e]});r(Fr(n,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:a,digitIsAscii:i,spaceIsAscii:s,wordIsAscii:o}){const{kind:u,negate:c,value:h}=e;if(i&&(u==="digit"||h==="digit")){r(dl(eS("digit",{negate:c}),t));return}if(s&&(u==="space"||h==="space")){r(Fr(k3(Qs(JEe),c),t));return}if(o&&(u==="word"||h==="word")){r(dl(eS("word",{negate:c}),t));return}if(u==="any")r(dl(xf("Any"),t));else if(u==="digit")r(dl(xf("Nd",{negate:c}),t));else if(u!=="dot")if(u==="text_segment"){if(n==="strict")throw new Error(pt`Use of "\X" requires non-strict accuracy`);const d="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",m=pt`\p{RI}{2}|${d}(?:\u200D${d})*`;r(Fr(Qs(pt`(?>\r\n|${a?pt`\p{RGI_Emoji}`:m}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}
vendor: 16,990 bytes, lines 840-843
840),t))}else if(u==="hex")r(dl(xf("AHex",{negate:c}),t));else if(u==="newline")r(Fr(Qs(c?`[^
841]`:`(?>\r
842?|[
843\v\f…\u2028\u2029])`),t));else if(u==="posix")if(!a&&(h==="graph"||h==="print")){if(n==="strict")throw new Error(`POSIX class "${h}" requires min target ES2024 or non-strict accuracy`);let d={graph:"!-~",print:" -~"}[h];c&&(d=`\0-${cn(d.codePointAt(0)-1)}${cn(d.codePointAt(2)+1)}-􏿿`),r(Fr(Qs(`[${d}]`),t))}else r(Fr(k3(Qs(awe.get(h)),c),t));else if(u==="property")v8.has(hb(h))||(e.key="sc");else if(u==="space")r(dl(xf("space",{negate:c}),t));else if(u==="word")r(Fr(k3(Qs(Ks),c),t));else throw new Error(`Unexpected character set kind "${u}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:a,removeAllPrevSiblings:i,removeAllNextSiblings:s}){const{kind:o,flags:u}=e;if(o==="flags")if(!u.enable&&!u.disable)n();else{const c=ji({flags:u});c.body[0].body=s(),a(Fr(c,t),{traverse:!0})}else if(o==="keep"){const c=r.body[0],d=r.body.length===1&&hY(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:r;if(t.parent!==d||d.body.length>1)throw new Error(pt`Uses "\K" in a way that's unsupported`);const m=bu({behind:!0});m.body[0].body=i(),a(Fr(m,t))}else throw new Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){const{kind:n}=e;if(n==="fail")r(Fr(bu({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=ji();t.body[0].body.push(e.body),e.body=Fr(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const r=[];let n=!1,a=!1;for(const i of e.body)if(i.body.length===1&&i.body[0].kind==="search_start")i.body.pop();else{const s=kY(i.body);s?(n=!0,Array.isArray(s)?r.push(...s):r.push(s)):a=!0}n&&!a&&r.forEach(i=>t.add(i))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if(t==="strict"&&r&&n)throw new Error(pt`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!O3(r)&&(r=C3(r,t),e.ref=r)}},lwe={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){const{orphan:n,ref:a}=e;n||r.set(e,[...t.get(a).map(({node:i})=>i)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:a,groupsByName:i,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:u}){const c=a.get(e);if(c&&o.has(e.number)){const d=dl(jP(e.number),t);u.set(d,o.get(e.number)),r(d);return}o.set(e.number,e),s.set(e.number,[]),e.name&&Kh(s,e.name,[]);const h=s.get(e.name??e.number);for(let d=0;d<h.length;d++){const m=h[d];if(c===m.node||c&&c===m.origin||e===m.origin){h.splice(d,1);break}}if(s.get(e.number).push({node:e,origin:c}),e.name&&s.get(e.name).push({node:e,origin:c}),e.name){const d=Kh(i,e.name,new Map);let m=!1;if(c)m=!0;else for(const v of d.values())if(!v.hasDuplicateNameToRemove){m=!0;break}i.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:m})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=yv(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){const{isRecursive:a,ref:i}=e;if(a){let h=t;for(;(h=h.parent)&&!(h.type==="CapturingGroup"&&(h.name===i||h.number===i)););n.reffedNodesByReferencer.set(e,h);return}const s=n.subroutineRefMap.get(i),o=i===0,u=o?jP(0):AY(s,n.groupOriginByCopy,null);let c=u;if(!o){const h=CY(dwe(s,m=>m.type==="Group"&&!!m.flags)),d=h?yv(n.globalFlags,h):n.globalFlags;cwe(d,n.currentFlags)||(c=ji({flags:hwe(d)}),c.body[0].body.push(u))}r(Fr(c,t),{traverse:!o})}},uwe={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}const i=n.reffedNodesByReferencer.get(e).filter(s=>fwe(s,e));if(!i.length)r(Fr(bu({negate:!0}),t));else if(i.length>1){const s=ji({atomic:!0,body:i.reverse().map(o=>Gu({body:[J_(o.number)]}))});r(Fr(s,t))}else e.ref=i[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let n=0;n<r;n++){const a=mY();e.body.at(-1).body.push(a)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function TY(e){Ah(e,{"*"({node:t,parent:r}){t.parent=r}})}function cwe(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function fwe(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;const n=OY(r.parent);for(const a of n){if(a===r)break;if(a===e||NY(a,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function AY(e,t,r,n){const a=Array.isArray(e)?[]:{};for(const[i,s]of Object.entries(e))i==="parent"?a.parent=Array.isArray(r)?n:r:s&&typeof s=="object"?a[i]=AY(s,t,a,r):(i==="type"&&s==="CapturingGroup"&&t.set(a,t.get(e)??e),a[i]=s);return a}function jP(e){const t=vY(e);return t.isRecursive=!0,t}function dwe(e,t){const r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function C3(e,t){if(t.has(e))return t.get(e);const r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function CY(e){const t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:n})=>{t.forEach(a=>{n.enable?.[a]&&(delete r.disable[a],r.enable[a]=!0),n.disable?.[a]&&(r.disable[a]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function hwe({dotAll:e,ignoreCase:t}){const r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function OY(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function kY(e){const t=e.find(r=>r.kind==="search_start"||gwe(r,{negate:!1})||!pwe(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const r=[];for(const n of t.body){const a=kY(n.body);if(!a)return null;Array.isArray(a)?r.push(...a):r.push(a)}return r}return null}function NY(e,t){const r=OY(e)??[];for(const n of r)if(n===t||NY(n,t))return!0;return!1}function pwe({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function mwe(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function gwe(e,t){const r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&hY(e.body[0],{type:"Assertion",kind:"search_start"})}function O3(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Qs(e,t){const n=pY(e,{...t,unicodePropertyMap:v8}).body;return n.length>1||n[0].body.length>1?ji({body:n}):n[0].body[0]}function k3(e,t){return e.negate=t,e}function dl(e,t){return e.parent=t,e}function Fr(e,t){return TY(e),e.parent=t,e}function vwe(e,t){const r=wY(t),n=rS(r.target,"ES2024"),a=rS(r.target,"ES2025"),i=r.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw new Error("Invalid recursionLimit; use 2-20");let s=null,o=null;if(!a){const v=[e.flags.ignoreCase];Ah(e,ywe,{getCurrentModI:()=>v.at(-1),popModI(){v.pop()},pushModI(y){v.push(y)},setHasCasedChar(){v.at(-1)?s=!0:o=!0}})}const u={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!o)};let c=e;const h={accuracy:r.accuracy,appliedGlobalFlags:u,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!a&&s&&o),useFlagMods:a,useFlagV:n,verbose:r.verbose};function d(v){return h.lastNode=c,c=v,QEe(bwe[v.type],`Unexpected node type "${v.type}"`)(v,h,d)}const m={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return n||(delete m.options.force.v,m.options.disable.v=!0,m.options.unicodeSetsPlugin=null),m._captureTransfers=new Map,m._hiddenCaptures=[],h.captureMap.forEach((v,y)=>{v.hidden&&m._hiddenCaptures.push(y),v.transferTo&&Kh(m._captureTransfers,v.transferTo,[]).push(y)}),m}var ywe={"*":{enter({node:e},t){if(zP(e)){const r=t.getCurrentModI();t.pushModI(e.flags?yv({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){zP(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){y8(cn(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),RY(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&SY.has(e.value)&&t.setHasCasedChar()}},bwe={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?pt`\B`:pt`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){const{body:n,name:a,number:i}=e,s={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(s.hidden=!0,i>o.number&&(s.transferTo=o.number)),t.captureMap.set(i,s),`(${a?`?<${a}>`:""}${n.map(r).join("|")})`},Character({value:e},t){const r=cn(e),n=ff(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&y8(r)){const a=_Y(r);return t.inCharClass?a.join(""):a.length>1?`[${a.join("")}]`:a[0]}return r},CharacterClass(e,t,r){const{kind:n,negate:a,parent:i}=e;let{body:s}=e;if(n==="intersection"&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");co.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some($P)&&(s=[db(45),...s.filter(c=>!$P(c))]);const o=()=>`[${a?"^":""}${s.map(r).join(n==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||co.bugNestedClassIgnoresNegation)&&!a){const h=s.filter(d=>d.type==="CharacterClass"&&d.kind==="union"&&d.negate);if(h.length){const d=ji(),m=d.body[0];return d.parent=i,m.parent=d,s=s.filter(v=>!h.includes(v)),e.body=s,s.length?(e.parent=m,m.body.push(e)):d.body.pop(),h.forEach(v=>{const y=Gu({body:[v]});v.parent=y,y.parent=d,d.body.push(y)}),r(d)}}t.inCharClass=!0;const c=o();return t.inCharClass=!1,c}const u=s[0];if(n==="union"&&!a&&u&&((!t.useFlagV||!t.verbose)&&i.kind==="union"&&!(co.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&i.kind==="intersection"&&s.length===1&&u.type!=="CharacterClassRange"))return s.map(r).join("");if(!t.useFlagV&&i.type==="CharacterClass")throw new Error("Use of nested character class requires min target ES2024");return o()},CharacterClassRange(e,t){const r=e.min.value,n=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},i=ff(r,a),s=ff(n,a),o=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const u=RY(e);Swe(u).forEach(h=>{o.add(Array.isArray(h)?`${ff(h[0],a)}-${ff(h[1],a)}`:ff(h,a))})}return`${i}-${s}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},a){if(e==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":pt`[^\n]`;if(e==="digit")return t?pt`\D`:pt`\d`;if(e==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&SY.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?pt`\P`:pt`\p`}{${n?`${n}=`:""}${r}}`}if(e==="word")return t?pt`\W`:pt`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:n},a,i){const s=a.currentFlags;r&&(a.currentFlags=yv(s,r));const o=t.map(i).join("|"),u=!a.verbose&&t.length===1&&n.type!=="Quantifier"&&!e&&(!a.useFlagMods||!r)?o:`(?${Twe(e,r,a.useFlagMods)}${o})`;return a.currentFlags=s,u},LookaroundAssertion({body:e,kind:t,negate:r},n,a){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(a).join("|")})`},Quantifier(e,t,r){return r(e.body)+Awe(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return t===0?`(?R=${n})`:pt`\g<${t}&R=${n}>`}},xwe=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Ewe=new Set(["-","\\","]","^","["]),wwe=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),BP=new Map([[9,pt`\t`],[10,pt`\n`],[11,pt`\v`],[12,pt`\f`],[13,pt`\r`],[8232,pt`\u2028`],[8233,pt`\u2029`],[65279,pt`\uFEFF`]]),_we=new RegExp("^\\p{Cased}$","u");function y8(e){return _we.test(e)}function RY(e,t){const r=!!t?.firstOnly,n=e.min.value,a=e.max.value,i=[];if(n<65&&(a===65535||a>=131071)||n===65536&&a>=131071)return i;for(let s=n;s<=a;s++){const o=cn(s);if(!y8(o))continue;const u=_Y(o).filter(c=>{const h=c.codePointAt(0);return h<n||h>a});if(u.length&&(i.push(...u),r))break}return i}function ff(e,{escDigit:t,inCharClass:r,useFlagV:n}){if(BP.has(e))return BP.get(e);if(e<32||e>126&&e<160||e>262143||t&&Cwe(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const a=r?n?wwe:Ewe:xwe,i=cn(e);return(a.has(i)?"\\":"")+i}function Swe(e){const t=e.map(a=>a.codePointAt(0)).sort((a,i)=>a-i),r=[];let n=null;for(let a=0;a<t.length;a++)t[a+1]===t[a]+1?n??=t[a]:n===null?r.push(t[a]):(r.push([n,t[a]]),n=null);return r}function Twe(e,t,r){if(e)return">";let n="";if(t&&r){const{enable:a,disable:i}=t;n=(a?.ignoreCase?"i":"")+(a?.dotAll?"s":"")+(i?"-":"")+(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")}return`${n}:`}function Awe({kind:e,max:t,min:r}){let n;return!r&&t===1?n="?":!r&&t===1/0?n="*":r===1&&t===1/0?n="+":r===t?n=`{${r}}`:n=`{${r},${t===1/0?"":t}}`,n+{greedy:"",lazy:"?",possessive:"+"}[e]}function zP({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function Cwe(e){return e>47&&e<58}function $P({type:e,value:t}){return e==="Character"&&t===45}var Owe=class nS extends RegExp{#t=new Map;#e=null;#r;#a=null;#n=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,r,n){const a=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const i=t;super(i,r),this.#r=i.source,i instanceof nS&&(this.#t=i.#t,this.#a=i.#a,this.#n=i.#n,this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...n};super(a?"":t,r),this.#r=t,this.#t=Nwe(i.hiddenCaptures,i.transfers),this.#n=i.strategy,this.rawOptions=n??{}}a||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:a,...i}=this.rawOptions;this.#e=new nS(this.#r,this.flags,i)}const r=this.global||this.sticky,n=this.lastIndex;if(this.#n==="clip_search"&&r&&n){this.lastIndex=0;const a=this.#i(t.slice(n));return a&&(kwe(a,n,t,this.hasIndices),this.lastIndex+=n),a}return this.#i(t)}#i(t){this.#e.lastIndex=this.lastIndex;const r=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!r||!this.#t.size)return r;const n=[...r];r.length=1;let a;this.hasIndices&&(a=[...r.indices],r.indices.length=1);const i=[0];for(let s=1;s<n.length;s++){const{hidden:o,transferTo:u}=this.#t.get(s)??{};if(o?i.push(null):(i.push(r.length),r.push(n[s]),this.hasIndices&&r.indices.push(a[s])),u&&n[s]!==void 0){const c=i[u];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(r[c]=n[s],this.hasIndices&&(r.indices[c]=a[s]),r.groups){this.#a||(this.#a=Rwe(this.source));const h=this.#a.get(u);h&&(r.groups[h]=n[s],this.hasIndices&&(r.indices.groups[h]=a[s]))}}}return r}};function kwe(e,t,r,n){if(e.index+=t,e.input=r,n){const a=e.indices;for(let s=0;s<a.length;s++){const o=a[s];o&&(a[s]=[o[0]+t,o[1]+t])}const i=a.groups;
843i&&Object.keys(i).forEach(s=>{const o=i[s];o&&(i[s]=[o[0]+t,o[1]+t])})}}function Nwe(e,t){const r=new Map;for(const n of e)r.set(n,{hidden:!0});for(const[n,a]of t)for(const i of a)Kh(r,i,{}).transferTo=n;return r}function Rwe(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,a=0,i;for(;i=t.exec(e);){const{0:s,groups:{capture:o,name:u}}=i;s==="["?n++:n?s==="]"&&n--:o&&(a++,u&&r.set(a,u))}return r}function Mwe(e,t){const r=Pwe(e,t);return r.options?new Owe(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function Pwe(e,t){const r=wY(t),n=pY(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:v8}),a=swe(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),i=vwe(a,r),s=XEe(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),o=WEe(s.pattern),u=GEe(o.pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),c={pattern:u.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const h=u.hiddenCaptures.sort((y,b)=>y-b),d=Array.from(u.captureTransfers),m=a._strategy,v=c.pattern.length>=r.lazyCompileLength;(h.length||d.length||m||v)&&(c.options={...h.length&&{hiddenCaptures:h},...d.length&&{transfers:d},...m&&{strategy:m},...v&&{lazyCompile:v}})}return c}const FP=4294967295;class Iwe{constructor(t,r={}){this.patterns=t,this.options=r;const{forgiving:n=!1,cache:a,regexConstructor:i}=r;if(!i)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(s=>{if(typeof s!="string")return s;const o=a?.get(s);if(o){if(o instanceof RegExp)return o;if(n)return null;throw o}try{const u=i(s);return a?.set(s,u),u}catch(u){if(a?.set(s,u),n)return null;throw u}})}regexps;findNextMatchSync(t,r,n){const a=typeof t=="string"?t:t.content,i=[];function s(o,u,c=0){return{index:o,captureIndices:u.indices.map(h=>h==null?{start:FP,end:FP,length:0}:{start:h[0]+c,end:h[1]+c,length:h[1]-h[0]})}}for(let o=0;o<this.regexps.length;o++){const u=this.regexps[o];if(u)try{u.lastIndex=r;const c=u.exec(a);if(!c)continue;if(c.index===r)return s(o,c,0);i.push([o,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(i.length){const o=Math.min(...i.map(u=>u[1].index));for(const[u,c,h]of i)if(c.index===o)return s(u,c,h)}return null}}function Dwe(e,t){return Mwe(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Lwe(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=r=>Dwe(r,{target:t.target}),{createScanner(r){return new Iwe(r,t)},createString(r){return{content:r}}}}function b8(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var lc=b8();function MY(e){lc=e}var Ch={exec:()=>null};function Yt(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(ta.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,t)};return n}var ta={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},jwe=/^(?:[ \t]*(?:\n|$))+/,Bwe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,zwe=/^ {0,3}(`{3,}
vendor: 4,788 bytes, lines 843-844
843(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,em=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$we=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,x8=/(?:[*+-]|\d{1,9}[.)])/,PY=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,IY=Yt(PY).replace(/bull/g,x8).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Fwe=Yt(PY).replace(/bull/g,x8).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),E8=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Uwe=/^[^\n]+/,w8=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Hwe=Yt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",w8).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),qwe=Yt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,x8).getRegex(),mb="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",_8=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Vwe=Yt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",_8).replace("tag",mb).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),DY=Yt(E8).replace("hr",em).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex(),Gwe=Yt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",DY).getRegex(),S8={blockquote:Gwe,code:Bwe,def:Hwe,fences:zwe,heading:$we,hr:em,html:Vwe,lheading:IY,list:qwe,newline:jwe,paragraph:DY,table:Ch,text:Uwe},UP=Yt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",em).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex(),Wwe={...S8,lheading:Fwe,table:UP,paragraph:Yt(E8).replace("hr",em).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",UP).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex()},Ywe={...S8,html:Yt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",_8).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ch,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Yt(E8).replace("hr",em).replace("heading",` *#{1,6} *[^
844]`).replace("lheading",IY).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Xwe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Kwe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,LY=/^( {2,}
844|\\)\n(?!\s*$)/,Qwe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gb=/[\p{P}\p{S}]/u,T8=/[\s\p{P}\p{S}]/u,jY=/[^\s\p{P}\p{S}]/u,Zwe=Yt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,T8).getRegex(),BY=/(?!~)[\p{P}\p{S}]/u,Jwe=/(?!~)[\s\p{P}\p{S}]/u,e5e=/(?:[^\s\p{P}\p{S}]|~)/u,t5e=Yt(/link|code|html/,"g").replace("link",new RegExp("\\[(?:[^\\[\\]`]|(?<!`)(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("code",new RegExp("(?<!`)(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),zY=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,r5e=Yt(zY,"u").replace(/punct/g,gb).getRegex(),n5e=Yt(zY,"u").replace(/punct/g,BY).getRegex(),$Y="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",a5e=Yt($Y,"gu").replace(/notPunctSpace/g,jY).replace(/punctSpace/g,T8).replace(/punct/g,gb).getRegex(),i5e=Yt($Y,"gu").replace(/notPunctSpace/g,e5e).replace(/punctSpace/g,Jwe).replace(/punct/g,BY).getRegex(),s5e=Yt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,jY).replace(/punctSpace/g,T8).replace(/punct/g,gb).getRegex(),o5e=Yt(/\\(punct)/,"gu").replace(/punct/g,gb).getRegex(),l5e=Yt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),u5e=Yt(_8).replace("(?:-->|$)","-->").getRegex(),c5e=Yt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",u5e).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bv=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,f5e=Yt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",bv).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),FY=Yt(/^!?\[(label)\]\[(ref)\]/).replace("label",bv).replace("ref",w8).getRegex(),UY=Yt(/^!?\[(ref)\](?:\[\])?/).replace("ref",w8).getRegex(),d5e=Yt("reflink|nolink(?!\\()","g").replace("reflink",FY).replace("nolink",UY).getRegex(),HP=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,A8={_backpedal:Ch,anyPunctuation:o5e,autolink:l5e,blockSkip:t5e,br:LY,code:Kwe,del:Ch,emStrongLDelim:r5e,emStrongRDelimAst:a5e,emStrongRDelimUnd:s5e,escape:Xwe,link:f5e,nolink:UY,punctuation:Zwe,reflink:FY,reflinkSearch:d5e,tag:c5e,text:Qwe,url:Ch},h5e={...A8,link:Yt(/^!?\[(label)\]\((.*?)\)/).replace("label",bv).getRegex(),reflink:Yt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bv).getRegex()},aS={...A8,emStrongRDelimAst:i5e,emStrongLDelim:n5e,url:Yt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",HP).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Yt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",HP).getRegex()},p5e={...aS,br:Yt(LY).replace("{2,}","*").getRegex(),text:Yt(aS.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},o1={normal:S8,gfm:Wwe,pedantic:Ywe}
vendor: 8,405 bytes, lines 844-868
844,Wd={normal:A8,gfm:aS,breaks:p5e,pedantic:h5e},m5e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qP=e=>m5e[e];function as(e,t){if(t){if(ta.escapeTest.test(e))return e.replace(ta.escapeReplace,qP)}else if(ta.escapeTestNoEncode.test(e))return e.replace(ta.escapeReplaceNoEncode,qP);return e}function VP(e){try{e=encodeURI(e).replace(ta.percentDecode,"%")}catch{return null}return e}function GP(e,t){let r=e.replace(ta.findPipe,(i,s,o)=>{let u=!1,c=s;for(;--c>=0&&o[c]==="\\";)u=!u;return u?"|":" |"}),n=r.split(ta.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(ta.slashPipe,"|");return n}function Yd(e,t,r){let n=e.length;if(n===0)return"";let a=0;for(;a<n&&e.charAt(n-a-1)===t;)a++;return e.slice(0,n-a)}function g5e(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function WP(e,t,r,n,a){let i=t.href,s=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,u}function v5e(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let a=n[1];return t.split(`
845`).map(i=>{let s=i.match(r.other.beginningSpace);if(s===null)return i;let[o]=s;return o.length>=a.length?i.slice(a.length):i}).join(`
846`)}var xv=class{options;rules;lexer;constructor(t){this.options=t||lc}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Yd(n,`
847`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],a=v5e(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:a}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let a=Yd(n,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(n=a.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Yd(r[0],`
848`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Yd(r[0],`
849`).split(`
850`),a="",i="",s=[];for(;n.length>0;){let o=!1,u=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))u.push(n[c]),o=!0;else if(!o)u.push(n[c]);else break;n=n.slice(c);let h=u.join(`
851`),d=h.replace(this.rules.other.blockquoteSetextReplace,`
852    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
853${h}`:h,i=i?`${i}
854${d}`:d;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,s,!0),this.lexer.state.top=m,n.length===0)break;let v=s.at(-1);if(v?.type==="code")break;if(v?.type==="blockquote"){let y=v,b=y.raw+`
855`+n.join(`
856`),E=this.blockquote(b);s[s.length-1]=E,a=a.substring(0,a.length-y.raw.length)+E.raw,i=i.substring(0,i.length-y.text.length)+E.text;break}else if(v?.type==="list"){let y=v,b=y.raw+`
857`+n.join(`
858`),E=this.list(b);s[s.length-1]=E,a=a.substring(0,a.length-v.raw.length)+E.raw,i=i.substring(0,i.length-y.raw.length)+E.raw,n=b.substring(s.at(-1).raw.length).split(`
859`);continue}}return{type:"blockquote",raw:a,tokens:s,text:i}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),a=n.length>1,i={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=a?n:"[*+-]");let s=this.rules.other.listItemRegex(n),o=!1;for(;t;){let c=!1,h="",d="";if(!(r=s.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let m=r[2].split(`
860`,1)[0].replace(this.rules.other.listReplaceTabs,T=>" ".repeat(3*T.length)),v=t.split(`
861`,1)[0],y=!m.trim(),b=0;if(this.options.pedantic?(b=2,d=m.trimStart()):y?b=r[1].length+1:(b=r[2].search(this.rules.other.nonSpaceChar),b=b>4?1:b,d=m.slice(b),b+=r[1].length),y&&this.rules.other.blankLine.test(v)&&(h+=v+`
862`,t=t.substring(v.length+1),c=!0),!c){let T=this.rules.other.nextBulletRegex(b),C=this.rules.other.hrRegex(b),P=this.rules.other.fencesBeginRegex(b),O=this.rules.other.headingBeginRegex(b),k=this.rules.other.htmlBeginRegex(b);for(;t;){let M=t.split(`
863`,1)[0],j;if(v=M,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting,"  "),j=v):j=v.replace(this.rules.other.tabCharGlobal,"    "),P.test(v)||O.test(v)||k.test(v)||T.test(v)||C.test(v))break;if(j.search(this.rules.other.nonSpaceChar)>=b||!v.trim())d+=`
864`+j.slice(b);else{if(y||m.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||P.test(m)||O.test(m)||C.test(m))break;d+=`
865`+v}!y&&!v.trim()&&(y=!0),h+=M+`
866`,t=t.substring(M.length+1),m=j.slice(b)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(o=!0));let E=null,_;this.options.gfm&&(E=this.rules.other.listIsTask.exec(d),E&&(_=E[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:h,task:!!E,checked:_,loose:!1,text:d,tokens:[]}),i.raw+=h}let u=i.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let c=0;c<i.items.length;c++)if(this.lexer.state.top=!1,i.items[c].tokens=this.lexer.blockTokens(i.items[c].text,[]),!i.loose){let h=i.items[c].tokens.filter(m=>m.type==="space"),d=h.length>0&&h.some(m=>this.rules.other.anyLine.test(m.raw));i.loose=d}if(i.loose)for(let c=0;c<i.items.length;c++)i.items[c].loose=!0;return i}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:a,title:i}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=GP(r[1]),a=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
867`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===a.length){for(let o of a)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<n.length;o++)s.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:s.align[o]});for(let o of i)s.rows.push(GP(o,s.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:s.align[c]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
868`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if
vendor: 7,205 bytes, lines 868-882
868(!this.rules.other.endAngleBracket.test(n))return;let s=Yd(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=g5e(r[2],"()");if(s===-2)return;if(s>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let a=r[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(a);s&&(a=s[1],i=s[3])}else i=r[3]?r[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?a=a.slice(1):a=a.slice(1,-1)),WP(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let a=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=r[a.toLowerCase()];if(!i){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return WP(n,i,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let a=this.rules.inline.emStrongLDelim.exec(t);if(!(!a||a[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...a[0]].length-1,s,o,u=i,c=0,h=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+i);(a=h.exec(r))!=null;){if(s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!s)continue;if(o=[...s].length,a[3]||a[4]){u+=o;continue}else if((a[5]||a[6])&&i%3&&!((i+o)%3)){c+=o;continue}if(u-=o,u>0)continue;o=Math.min(o,o+u+c);let d=[...a[0]][0].length,m=t.slice(0,i+a.index+d+o);if(Math.min(i,o)%2){let y=m.slice(1,-1);return{type:"em",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}let v=m.slice(2,-2);return{type:"strong",raw:m,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return a&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,a;return r[2]==="@"?(n=r[1],a="mailto:"+n):(n=r[1],a=n),{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let n,a;if(r[2]==="@")n=r[0],a="mailto:"+n;else{let i;do i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(i!==r[0]);n=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},fi=class iS{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||lc,this.options.tokenizer=this.options.tokenizer||new xv,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:ta,block:o1.normal,inline:Wd.normal};this.options.pedantic?(r.block=o1.pedantic,r.inline=Wd.pedantic):this.options.gfm&&(r.block=o1.gfm,this.options.breaks?r.inline=Wd.breaks:r.inline=Wd.gfm),this.tokenizer.rules=r}static get rules(){return{block:o1,inline:Wd}}static lex(t,r){return new iS(r).lex(t)}static lexInline(t,r){return new iS(r).inlineTokens(t)}lex(t){t=t.replace(ta.carriageReturn,`
869`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){for(this.options.pedantic&&(t=t.replace(ta.tabCharGlobal,"    ").replace(ta.spaceLine,""));t;){let a;if(this.options.extensions?.block?.some(s=>(a=s.call({lexer:this},t,r))?(t=t.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let s=r.at(-1);a.raw.length===1&&s!==void 0?s.raw+=`
870`:r.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
871`)?"":`
872`)+a.raw,s.text+=`
873`+a.text,this.inlineQueue.at(-1).src=s.text):r.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
874`)?"":`
875`)+a.raw,s.text+=`
876`+a.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},r.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),r.push(a);continue}let i=t;if(this.options.extensions?.startBlock){let s=1/0,o=t.slice(1),u;this.options.extensions.startBlock.forEach(c=>{u=c.call({lexer:this},o),typeof u=="number"&&u>=0&&(s=Math.min(s,u))}),s<1/0&&s>=0&&(i=t.substring(0,s+1))}if(this.state.top&&(a=this.tokenizer.paragraph(i))){let s=r.at(-1);n&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
877`)?"":`
878`)+a.raw,s.text+=`
879`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(a),n=i.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let s=r.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
880`)?"":`
881`)+a.raw,s.text+=`
882`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(a);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n=t,a=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)o.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,a.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(a=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,s="";for(;t;
vendor: 7,988 bytes, lines 882-901
882){i||(s=""),i=!1;let o;if(this.options.extensions?.inline?.some(c=>(o=c.call({lexer:this},t,r))?(t=t.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.escape(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.tag(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.link(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(o.raw.length);let c=r.at(-1);o.type==="text"&&c?.type==="text"?(c.raw+=o.raw,c.text+=o.text):r.push(o);continue}if(o=this.tokenizer.emStrong(t,n,s)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.codespan(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.br(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.del(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.autolink(t)){t=t.substring(o.raw.length),r.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(t))){t=t.substring(o.raw.length),r.push(o);continue}let u=t;if(this.options.extensions?.startInline){let c=1/0,h=t.slice(1),d;this.options.extensions.startInline.forEach(m=>{d=m.call({lexer:this},h),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(u=t.substring(0,c+1))}if(o=this.tokenizer.inlineText(u)){t=t.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(s=o.raw.slice(-1)),i=!0;let c=r.at(-1);c?.type==="text"?(c.raw+=o.raw,c.text+=o.text):r.push(o);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return r}},Ev=class{options;parser;constructor(t){this.options=t||lc}space(t){return""}code({text:t,lang:r,escaped:n}){let a=(r||"").match(ta.notSpaceStart)?.[0],i=t.replace(ta.endingNewline,"")+`
883`;return a?'<pre><code class="language-'+as(a)+'">'+(n?i:as(i,!0))+`</code></pre>
884`:"<pre><code>"+(n?i:as(i,!0))+`</code></pre>
885`}blockquote({tokens:t}){return`<blockquote>
886${this.parser.parse(t)}</blockquote>
887`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
888`}hr(t){return`<hr>
889`}list(t){let r=t.ordered,n=t.start,a="";for(let o=0;o<t.items.length;o++){let u=t.items[o];a+=this.listitem(u)}let i=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
890`+a+"</"+i+`>
891`}listitem(t){let r="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+as(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
892`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
893`}table(t){let r="",n="";for(let i=0;i<t.header.length;i++)n+=this.tablecell(t.header[i]);r+=this.tablerow({text:n});let a="";for(let i=0;i<t.rows.length;i++){let s=t.rows[i];n="";for(let o=0;o<s.length;o++)n+=this.tablecell(s[o]);a+=this.tablerow({text:n})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
894<thead>
895`+r+`</thead>
896`+a+`</table>
897`}tablerow({text:t}){return`<tr>
898${t}</tr>
899`}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
900`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${as(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let a=this.parser.parseInline(n),i=VP(t);if(i===null)return a;t=i;let s='<a href="'+t+'"';return r&&(s+=' title="'+as(r)+'"'),s+=">"+a+"</a>",s}image({href:t,title:r,text:n,tokens:a}){a&&(n=this.parser.parseInline(a,this.parser.textRenderer));let i=VP(t);if(i===null)return as(n);t=i;let s=`<img src="${t}" alt="${n}"`;return r&&(s+=` title="${as(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:as(t.text)}},C8=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Di=class sS{options;renderer;textRenderer;constructor(t){this.options=t||lc,this.options.renderer=this.options.renderer||new Ev,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new C8}static parse(t,r){return new sS(r).parse(t)}static parseInline(t,r){return new sS(r).parseInline(t)}parse(t,r=!0){let n="";for(let a=0;a<t.length;a++){let i=t[a];if(this.options.extensions?.renderers?.[i.type]){let o=i,u=this.options.extensions.renderers[o.type].call({parser:this},o);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){n+=u||"";continue}}let s=i;switch(s.type){case"space":{n+=this.renderer.space(s);continue}case"hr":{n+=this.renderer.hr(s);continue}case"heading":{n+=this.renderer.heading(s);continue}case"code":{n+=this.renderer.code(s);continue}case"table":{n+=this.renderer.table(s);continue}case"blockquote":{n+=this.renderer.blockquote(s);continue}case"list":{n+=this.renderer.list(s);continue}case"html":{n+=this.renderer.html(s);continue}case"def":{n+=this.renderer.def(s);continue}case"paragraph":{n+=this.renderer.paragraph(s);continue}case"text":{let o=s,u=this.renderer.text(o);for(;a+1<t.length&&t[a+1].type==="text";)o=t[++a],u+=`
901`+this.renderer.text(o);r?n+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):n+=u;continue}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}parseInline(t,r=this.renderer){let n="";for(let a=0;a<t.length;a++){let i=t[a];if(this.options.extensions?.renderers?.[i.type]){let o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=o||"";continue}}let s=i;switch(s.type){case"escape":{n+=r.text(s);break}case"html":{n+=r.html(s);break}case"link":{n+=r.link(s);break}case"image":{n+=r.image(s);break}case"strong":{n+=r.strong(s);break}case"em":{n+=r.em(s);break}case"codespan":{n+=r.codespan(s);break}case"br":{n+=r.br(s);break}case"del":{n+=r.del(s);break}case"text":{n+=r.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},uh=class{options;block;constructor(e){this.options=e||lc}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?fi.lex:fi.lexInline}provideParser(){return this.block?Di.parse:Di.parseInline}},y5e=class{defaults=b8();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Di;Renderer=Ev;TextRenderer=C8;Lexer=fi;Tokenizer=xv;Hooks=uh;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let a=n;for(let i of a.header)r=r.concat(this.walkTokens(i.tokens,t));for(let i of a.rows)for(let s of i)r=r.concat(this.walkTokens(s.tokens,t));break}case"list":{let a=n;r=r.concat(this.walkTokens(a.items,t));break}default:{let a=n;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(i=>
vendor: 5,567 bytes, lines 901-902
901{let s=a[i].flat(1/0);r=r.concat(this.walkTokens(s,t))}):a.tokens&&(r=r.concat(this.walkTokens(a.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let i=t.renderers[a.name];i?t.renderers[a.name]=function(...s){let o=a.renderer.apply(this,s);return o===!1&&(o=i.apply(this,s)),o}:t.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[a.level];i?i.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&(a.level==="block"?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:a.level==="inline"&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),n.extensions=t),r.renderer){let a=this.defaults.renderer||new Ev(this.defaults);for(let i in r.renderer){if(!(i in a))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let s=i,o=r.renderer[s],u=a[s];a[s]=(...c)=>{let h=o.apply(a,c);return h===!1&&(h=u.apply(a,c)),h||""}}n.renderer=a}if(r.tokenizer){let a=this.defaults.tokenizer||new xv(this.defaults);for(let i in r.tokenizer){if(!(i in a))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let s=i,o=r.tokenizer[s],u=a[s];a[s]=(...c)=>{let h=o.apply(a,c);return h===!1&&(h=u.apply(a,c)),h}}n.tokenizer=a}if(r.hooks){let a=this.defaults.hooks||new uh;for(let i in r.hooks){if(!(i in a))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let s=i,o=r.hooks[s],u=a[s];uh.passThroughHooks.has(i)?a[s]=c=>{if(this.defaults.async&&uh.passThroughHooksRespectAsync.has(i))return(async()=>{let d=await o.call(a,c);return u.call(a,d)})();let h=o.call(a,c);return u.call(a,h)}:a[s]=(...c)=>{if(this.defaults.async)return(async()=>{let d=await o.apply(a,c);return d===!1&&(d=await u.apply(a,c)),d})();let h=o.apply(a,c);return h===!1&&(h=u.apply(a,c)),h}}n.hooks=a}if(r.walkTokens){let a=this.defaults.walkTokens,i=r.walkTokens;n.walkTokens=function(s){let o=[];return o.push(i.call(this,s)),a&&(o=o.concat(a.call(this,s))),o}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return fi.lex(e,t??this.defaults)}parser(e,t){return Di.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},a={...this.defaults,...n},i=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(t):t,o=await(a.hooks?await a.hooks.provideLexer():e?fi.lex:fi.lexInline)(s,a),u=a.hooks?await a.hooks.processAllTokens(o):o;a.walkTokens&&await Promise.all(this.walkTokens(u,a.walkTokens));let c=await(a.hooks?await a.hooks.provideParser():e?Di.parse:Di.parseInline)(u,a);return a.hooks?await a.hooks.postprocess(c):c})().catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let s=(a.hooks?a.hooks.provideLexer():e?fi.lex:fi.lexInline)(t,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let o=(a.hooks?a.hooks.provideParser():e?Di.parse:Di.parseInline)(s,a);return a.hooks&&(o=a.hooks.postprocess(o)),o}catch(s){return i(s)}}}onError(e,t){return r=>{if(r.message+=`
902Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+as(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Wu=new y5e;function ur(e,t){return Wu.parse(e,t)}ur.options=ur.setOptions=function(e){return Wu.setOptions(e),ur.defaults=Wu.defaults,MY(ur.defaults),ur};ur.getDefaults=b8;ur.defaults=lc;ur.use=function(...e){return Wu.use(...e),ur.defaults=Wu.defaults,MY(ur.defaults),ur};ur.walkTokens=function(e,t){return Wu.walkTokens(e,t)};ur.parseInline=Wu.parseInline;ur.Parser=Di;ur.parser=Di.parse;ur.Renderer=Ev;ur.TextRenderer=C8;ur.Lexer=fi;ur.lexer=fi.lex;ur.Tokenizer=xv;ur.Hooks=uh;ur.parse=ur;ur.options;ur.setOptions;ur.use;ur.walkTokens;ur.parseInline;Di.parse;fi.lex;var Bt=(...e)=>IU(Lt(e)),O8=(e,t,r)=>{let n=typeof t=="string"?new Blob([t],{type:r}):t,a=URL.createObjectURL(n),i=document.createElement("a");i.href=a,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)},b5e=/<pre(\s|>)/,k8=N.createContext({code:""}),x5e=class{constructor(){this.lightHighlighter=null,this.darkHighlighter=null,this.lightTheme=null,this.darkTheme=null,this.loadedLanguages=new Set,this.initializationPromise=null}isLanguageSupported(e){return Object.hasOwn(sY,e)}getFallbackLanguage(){return"text"}async ensureHighlightersInitialized(e,t){var r,n;let[a,i]=e,s=Lwe({forgiving:!0}),o=!this.lightHighlighter||this.lightTheme!==a,u=!this.darkHighlighter||this.darkTheme!==i;(o||u)&&this.loadedLanguages.clear();let c=this.isLanguageSupported(t),h=!this.loadedLanguages.has(t)&&
902c;if(o?(this.lightHighlighter=await EP({themes:[a],langs:c?[t]:[],engine:s}),this.lightTheme=a,c&&this.loadedLanguages.add(t)):h&&await((r=this.lightHighlighter)==null?void 0:r.loadLanguage(t)),u){let d=h?[...this.loadedLanguages].concat(c?[t]:[]):Array.from(this.loadedLanguages);this.darkHighlighter=await EP({themes:[i],langs:d.length>0?d:c?[t]:[],engine:s}),this.darkTheme=i}else h&&await((n=this.darkHighlighter)==null?void 0:n.loadLanguage(t));h&&this.loadedLanguages.add(t)}async highlightCode(e,t,r,n){var a,i;this.initializationPromise&&await this.initializationPromise,this.initializationPromise=this.ensureHighlightersInitialized(r,t),await this.initializationPromise,this.initializationPromise=null;let[s,o]=r,u=this.isLanguageSupported(t)?t:this.getFallbackLanguage(),c=(a=this.lightHighlighter)==null?void 0:a.codeToHtml(e,{lang:u,theme:s}),h=(i=this.darkHighlighter)==null?void 0:i.codeToHtml(e,{lang:u,theme:o}),d=m=>n?m.replace(b5e,`<pre class="${n}"$1`):m;return[d(c),d(h)]}},E5e=new x5e,w5e=({code:e,language:t,className:r,children:n,preClassName:a,...i})=>{let[s,o]=N.useState(""),[u,c]=N.useState(""),h=N.useRef(!1),[d,m]=N.useContext(vX);return N.useEffect(()=>(h.current=!0,E5e.highlightCode(e,t,[d,m],a).then(([v,y])=>{h.current&&(o(v),c(y))}),()=>{h.current=!1}),[e,t,d,m,a]),x.jsx(k8.Provider,{value:{code:e},children:x.jsxs("div",{className:"my-4 w-full overflow-hidden rounded-xl border","data-code-block-container":!0,"data-language":t,children:[x.jsxs("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-code-block-header":!0,"data-language":t,children:[x.jsx("span",{className:"ml-1 font-mono lowercase",children:t}),x.jsx("div",{className:"flex items-center gap-2",children:n})]}),x.jsx("div",{className:"w-full",children:x.jsxs("div",{className:"min-w-full",children:[x.jsx("div",{className:Bt("overflow-x-auto dark:hidden",r),dangerouslySetInnerHTML:{__html:s},"data-code-block":!0,"data-language":t,...i}),x.jsx("div",{className:Bt("hidden overflow-x-auto dark:block",r),dangerouslySetInnerHTML:{__html:u},"data-code-block":!0,"data-language":t,...i})]})})]})})},YP={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},XP=({onDownload:e,onError:t,language:r,children:n,className:a,code:i,...s})=>{let{code:o}=N.useContext(k8),{isAnimating:u}=N.useContext(tm),c=i??o,h=`file.${r&&r in YP?YP[r]:"txt"}`,d="text/plain",m=()=>{try{O8(h,c,d),e?.()}catch(v){t?.(v)}};return x.jsx("button",{className:Bt("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:u,onClick:m,title:"Download file",type:"button",...s,children:n??x.jsx(i8,{size:14})})},KP=({onCopy:e,onError:t,timeout:r=2e3,children:n,className:a,code:i,...s})=>{let[o,u]=N.useState(!1),c=N.useRef(0),{code:h}=N.useContext(k8),{isAnimating:d}=N.useContext(tm),m=i??h,v=async()=>{var b;if(typeof window>"u"||!((b=navigator?.clipboard)!=null&&b.writeText)){t?.(new Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(m),u(!0),e?.(),c.current=window.setTimeout(()=>u(!1),r))}catch(E){t?.(E)}};N.useEffect(()=>()=>{window.clearTimeout(c.current)},[]);let y=o?OW:kW;return x.jsx("button",{className:Bt("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:d,onClick:v,type:"button",...s,children:n??x.jsx(y,{size:14})})},_5e=({node:e,className:t,src:r,alt:n,...a})=>{let i=async()=>{var s;if(r)try{let o=await(await fetch(r)).blob(),u=new URL(r,window.location.origin).pathname.split("/").pop()||"",c=u.includes(".")&&((s=u.split(".").pop())==null?void 0:s.length)<=4,h="";if(c)h=u;else{let d=o.type,m="png";d.includes("jpeg")||d.includes("jpg")?m="jpg":d.includes("png")?m="png":d.includes("svg")?m="svg":d.includes("gif")?m="gif":d.includes("webp")&&(m="webp"),h=`${(n||u||"image").replace(/\.[^/.]+$/,"")}.${m}`}O8(h,o,o.type)}catch(o){console.error("Failed to download image:",o)}};return r?x.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[x.jsx("img",{alt:n,className:Bt("max-w-full rounded-lg",t),"data-streamdown":"image",src:r,...a}),x.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),x.jsx("button",{className:Bt("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:i,title:"Download image",type:"button",children:x.jsx(i8,{size:14})})]}):null},S5e=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},r=(await Z(async()=>{const{default:n}=await import("./mermaid.core-VSd3rZST.js").then(a=>a.b8);return{default:n}},[])).default;return r.initialize(t),r},T5e=({chart:e,className:t,config:r})=>{let[n,a]=N.useState(null),[i,s]=N.useState(!0),[o,u]=N.useState(""),[c,h]=N.useState("");
902if(N.useEffect(()=>{(async()=>{try{a(null),s(!0);let m=await S5e(r),v=e.split("").reduce((E,_)=>(E<<5)-E+_.charCodeAt(0)|0,0),y=`mermaid-${Math.abs(v)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:b}=await m.render(y,e);u(b),h(b)}catch(m){if(!(c||o)){let v=m instanceof Error?m.message:"Failed to render Mermaid chart";a(v)}}finally{s(!1)}})()},[e,r]),i&&!o&&!c)return x.jsx("div",{className:Bt("my-4 flex justify-center p-4",t),children:x.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[x.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),x.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(n&&!o&&!c)return x.jsxs("div",{className:Bt("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[x.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",n]}),x.jsxs("details",{className:"mt-2",children:[x.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),x.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let d=o||c;return x.jsx("div",{"aria-label":"Mermaid chart",className:Bt("my-4 flex justify-center",t),dangerouslySetInnerHTML:{__html:d},role:"img"})};function HY(e){var t,r;let n=[],a=[],i=e.querySelectorAll("thead th");for(let o of i)n.push(((t=o.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let o of s){let u=[],c=o.querySelectorAll("td");for(let h of c)u.push(((r=h.textContent)==null?void 0:r.trim())||"");a.push(u)}return{headers:n,rows:a}}function qY(e){let{headers:t,rows:r}=e,n=i=>i.includes(",")||i.includes('"')||i.includes(`
903`)?`"${i.replace(/"/g,'""')}"`:i,a=[];t.length>0&&a.push(t.map(n).join(","));for(let i of r)a.push(i.map(n).join(","));return a.join(`
904`)}function VY(e){let{headers:t,rows:r}=e;if(t.length===0)return"";let n=[],a=t.map(i=>i.replace(/\|/g,"\\|"));n.push(`| ${a.join(" | ")} |`),n.push(`| ${t.map(()=>"---").join(" | ")} |`);for(let i of r){let s=[...i];for(;s.length<t.length;)s.push("");let o=s.map(u=>u.replace(/\|/g,"\\|"));n.push(`| ${o.join(" | ")} |`)}return n.join(`
905`)}var A5e=({children:e,className:t,onCopy:r,onError:n,timeout:a=2e3,format:i="markdown"})=>{let[s,o]=N.useState(!1),u=N.useRef(0),{isAnimating:c}=N.useContext(tm),h=async m=>{var v;if(typeof window>"u"||!((v=navigator?.clipboard)!=null&&v.write)){n?.(new Error("Clipboard API not available"));return}try{if(!s){let y=m.currentTarget.closest('[data-streamdown="table-wrapper"]'),b=y?.querySelector("table");if(!b){n?.(new Error("Table not found"));return}let E=HY(b),_=new ClipboardItem({"text/plain":i==="markdown"?VY(E):qY(E),"text/html":new Blob([b.outerHTML],{type:"text/html"})});await navigator.clipboard.write([_]),o(!0),r?.(),u.current=window.setTimeout(()=>o(!1),a)}}catch(y){n?.(y)}};N.useEffect(()=>()=>{window.clearTimeout(u.current)},[]);let d=s?OW:kW;return x.jsx("button",{className:Bt("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:c,onClick:h,title:`Copy table as ${i}`,type:"button",children:e??x.jsx(d,{size:14})})},C5e=({children:e,className:t,onDownload:r,onError:n})=>{let[a,i]=N.useState(!1),s=N.useRef(null),{isAnimating:o}=N.useContext(tm),u=c=>{var h;try{let d=(h=s.current)==null?void 0:h.closest('[data-streamdown="table-wrapper"]'),m=d?.querySelector("table");if(!m){n?.(new Error("Table not found"));return}let v=HY(m),y=c==="csv"?qY(v):VY(v);O8(`table.${c==="csv"?"csv":"md"}`,y,c==="csv"?"text/csv":"text/markdown"),i(!1),r?.(c)}catch(d){n?.(d)}};return N.useEffect(()=>{let c=h=>{s.current&&!s.current.contains(h.target)&&i(!1)};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[]),x.jsxs("div",{className:"relative",ref:s,children:[x.jsx("button",{className:Bt("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:()=>i(!a),title:"Download table",type:"button",children:e??x.jsx(i8,{size:14})}),a&&x.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] rounded-md border border-border bg-background shadow-lg",children:[x.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("csv"),type:"button",children:"CSV"}),x.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("markdown"),type:"button",children:"Markdown"})]})]})},O5e=/language-([^\s]+)/;function vb(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;
905if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let r=e.position.start,n=t.position.start,a=e.position.end,i=t.position.end;return r?.line===n?.line&&r?.column===n?.column&&a?.line===i?.line&&a?.column===i?.column}function Lr(e,t){return e.className===t.className&&vb(e.node,t.node)}var oS=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,N8=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("ol",{className:Bt("ml-4 list-outside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...n,children:e}),(e,t)=>Lr(e,t));N8.displayName="MarkdownOl";var GY=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("li",{className:Bt("py-1",t),"data-streamdown":"list-item",...n,children:e}),(e,t)=>e.className===t.className&&vb(e.node,t.node));GY.displayName="MarkdownLi";var WY=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("ul",{className:Bt("ml-4 list-outside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...n,children:e}),(e,t)=>Lr(e,t));WY.displayName="MarkdownUl";var YY=N.memo(({className:e,node:t,...r})=>x.jsx("hr",{className:Bt("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r}),(e,t)=>Lr(e,t));YY.displayName="MarkdownHr";var XY=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("span",{className:Bt("font-semibold",t),"data-streamdown":"strong",...n,children:e}),(e,t)=>Lr(e,t));XY.displayName="MarkdownStrong";var KY=N.memo(({children:e,className:t,href:r,node:n,...a})=>{let i=r==="streamdown:incomplete-link";return x.jsx("a",{className:Bt("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":i,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...a,children:e})},(e,t)=>Lr(e,t)&&e.href===t.href);KY.displayName="MarkdownA";var QY=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("h1",{className:Bt("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e}),(e,t)=>Lr(e,t));QY.displayName="MarkdownH1";var ZY=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("h2",{className:Bt("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e}),(e,t)=>Lr(e,t));ZY.displayName="MarkdownH2";var JY=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("h3",{className:Bt("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e}),(e,t)=>Lr(e,t));JY.displayName="MarkdownH3";var eX=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("h4",{className:Bt("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e}),(e,t)=>Lr(e,t));eX.displayName="MarkdownH4";var tX=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("h5",{className:Bt("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e}),(e,t)=>Lr(e,t));tX.displayName="MarkdownH5";var rX=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("h6",{className:Bt("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e}),(e,t)=>Lr(e,t));rX.displayName="MarkdownH6";var nX=N.memo(({children:e,className:t,node:r,...n})=>{let a=N.useContext(R8),i=oS(a,"table");return x.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[i&&x.jsxs("div",{className:"flex items-center justify-end gap-1",children:[x.jsx(A5e,{}),x.jsx(C5e,{})]}),x.jsx("div",{className:"overflow-x-auto",children:x.jsx("table",{className:Bt("w-full border-collapse border border-border",t),"data-streamdown":"table",...n,children:e})})]})},(e,t)=>Lr(e,t));nX.displayName="MarkdownTable";var aX=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("thead",{className:Bt("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e}),(e,t)=>Lr(e,t));aX.displayName="MarkdownThead";var iX=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("tbody",{className:Bt("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...n,children:e}),(e,t)=>Lr(e,t));iX.displayName="MarkdownTbody";var sX=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("tr",{className:Bt("border-border border-b",t),"data-streamdown":"table-row",...n,children:e}),(e,t)=>Lr(e,t));sX.displayName="MarkdownTr";var oX=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("th",{className:Bt("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e}),(e,t)=>Lr(e,t));oX.displayName="MarkdownTh";var lX=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("td",{className:Bt("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e}),(e,t)=>Lr(e,t));lX.displayName="MarkdownTd";var uX=N.memo(({children:e,className:t,node:r,...n})=>
905x.jsx("blockquote",{className:Bt("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e}),(e,t)=>Lr(e,t));uX.displayName="MarkdownBlockquote";var cX=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("sup",{className:Bt("text-sm",t),"data-streamdown":"superscript",...n,children:e}),(e,t)=>Lr(e,t));cX.displayName="MarkdownSup";var fX=N.memo(({children:e,className:t,node:r,...n})=>x.jsx("sub",{className:Bt("text-sm",t),"data-streamdown":"subscript",...n,children:e}),(e,t)=>Lr(e,t));fX.displayName="MarkdownSub";var dX=N.memo(({children:e,className:t,node:r,...n})=>{if("data-footnotes"in n){let a=s=>{var o,u;if(!N.isValidElement(s))return!1;let c=Array.isArray(s.props.children)?s.props.children:[s.props.children],h=!1,d=!1;for(let m of c)if(m){if(typeof m=="string")m.trim()!==""&&(h=!0);else if(N.isValidElement(m))if(((o=m.props)==null?void 0:o["data-footnote-backref"])!==void 0)d=!0;else{let v=Array.isArray(m.props.children)?m.props.children:[m.props.children];for(let y of v){if(typeof y=="string"&&y.trim()!==""){h=!0;break}if(N.isValidElement(y)&&((u=y.props)==null?void 0:u["data-footnote-backref"])===void 0){h=!0;break}}}}return d&&!h},i=Array.isArray(e)?e.map(s=>{if(!N.isValidElement(s))return s;if(s.type===N8){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(u=>!a(u));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(i)?i.some(s=>s!==null):i!==null)?x.jsx("section",{className:t,...n,children:i}):null}return x.jsx("section",{className:t,...n,children:e})},(e,t)=>Lr(e,t));dX.displayName="MarkdownSection";var k5e=({node:e,className:t,children:r,...n})=>{var a,i,s;let o=((a=e?.position)==null?void 0:a.start.line)===((i=e?.position)==null?void 0:i.end.line),u=N.useContext(yX),c=N.useContext(R8);if(o)return x.jsx("code",{className:Bt("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...n,children:r});let h=t?.match(O5e),d=(s=h?.at(1))!=null?s:"",m="";if(N.isValidElement(r)&&r.props&&typeof r.props=="object"&&"children"in r.props&&typeof r.props.children=="string"?m=r.props.children:typeof r=="string"&&(m=r),d==="mermaid"){let y=oS(c,"mermaid");return x.jsxs("div",{className:Bt("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[y&&x.jsxs("div",{className:"flex items-center justify-end gap-2",children:[x.jsx(XP,{code:m,language:d}),x.jsx(KP,{code:m})]}),x.jsx(T5e,{chart:m,config:u})]})}let v=oS(c,"code");return x.jsx(w5e,{className:Bt("overflow-x-auto border-t",t),code:m,"data-language":d,"data-streamdown":"code-block",language:d,preClassName:"overflow-x-auto font-mono text-xs p-4 bg-muted/40",children:v&&x.jsxs(x.Fragment,{children:[x.jsx(XP,{code:m,language:d}),x.jsx(KP,{})]})})},hX=N.memo(k5e,(e,t)=>e.className===t.className&&vb(e.node,t.node));hX.displayName="MarkdownCode";var pX=N.memo(_5e,(e,t)=>e.className===t.className&&vb(e.node,t.node));pX.displayName="MarkdownImg";var mX=N.memo(({children:e,className:t,node:r,...n})=>{var a;let i=(Array.isArray(e)?e:[e]).filter(s=>s!=null&&s!=="");return i.length===1&&N.isValidElement(i[0])&&((a=i[0].props.node)==null?void 0:a.tagName)==="img"?x.jsx(x.Fragment,{children:e}):x.jsx("p",{className:t,...n,children:e})},(e,t)=>Lr(e,t));mX.displayName="MarkdownParagraph";var N5e={ol:N8,li:GY,ul:WY,hr:YY,strong:XY,a:KY,h1:QY,h2:ZY,h3:JY,h4:eX,h5:tX,h6:rX,table:nX,thead:aX,tbody:iX,tr:sX,th:oX,td:lX,blockquote:uX,code:hX,img:pX,pre:({children:e})=>e,sup:cX,sub:fX,p:mX,section:dX},R5e=e=>{let t=/\[\^[^\]\s]{1,200}\](?!:)/.test(e),r=/\[\^[^\]\s]{1,200}\]:/.test(e);if(t||r)return[e];let n=fi.lex(e,{gfm:!0}),a=[],i=[];for(let s=0;s<n.length;s++){let o=n[s],u=o.raw;if(i.length>0){if(a[a.length-1]+=u,o.type==="html"){let c=u.match(/<\/(\w+)>/);if(c){let h=c[1];i[i.length-1]===h&&i.pop()}}continue}if(o.type==="html"&&o.block){let c=u.match(/<(\w+)[\s>]/);if(c){let h=c[1];u.includes(`</${h}>`)||i.push(h)}}if(u.trim()==="$$"&&a.length>0){let c=a.at(-1);if(!c){a.push(u);continue}let h=c.trimStart().startsWith("$$"),d=(c.match(/\$\$/g)||[]).length;if(h&&d%2===1){a[a.length-1]=c+u;continue}}if(a.length>0&&u.trimEnd().endsWith("$$")){let c=a.at(-1);if(!c){a.push(u);continue}let h=c.trimStart().startsWith("$$"),d=(c.match(/\$\$/g)||[]).length,m=(u.match(/\$\$/g)||[]).length;if(h&&d%2===1&&!u.trimStart().startsWith("$$")&&m===1){a[a.length-1]=c+u;continue}}a.push(u)}return a},M5e=/(!?\[)([^\]]*?)$/,P5e=/(\*\*)([^*]*?)$/,I5e=/(__)([^_]*?)$/,D5e=/(\*\*\*)([^*]*?)$/,L5e=/(\*)([^*]*?)$/,j5e=/(_)([^_]*?)$/,B5e=/(`)([^`]*?)$/,z5e=/(~~)([^~]*?)$/,yb=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2===0&&e.includes(`
906`)},$5e=e=>{let t=/(!?)\[([^\]]+)\]\(([^)]+)$/,r=e.match(t);if(r){let a=r[1]==="!",i=r[2],s=r[3],o=e.lastIndexOf(`${a?"!":""}[${i}](${s}`),u=e.substring(0,o);return a?u:`${u}[${i}](streamdown:incomplete-link)`}let n=e.match(M5e);if(n){if(n[1].startsWith("!")){let a=e.lastIndexOf(n[1]);return e.substring(0,a)}return`${e}
906](streamdown:incomplete-link)`}return e},F5e=e=>{if(yb(e))return e;let t=e.match(P5e);if(t){let r=t[2];if(!r||/^[\s_~*`]*$/.test(r))return e;let n=e.lastIndexOf(t[1]),a=e.substring(0,n).lastIndexOf(`
907`),i=a===-1?0:a+1,s=e.substring(i,n);if(/^[\s]*[-*+][\s]+$/.test(s)&&r.includes(`
908`))return e;if((e.match(/\*\*/g)||[]).length%2===1)return`${e}**`}return e},U5e=e=>{let t=e.match(I5e);if(t){let r=t[2];if(!r||/^[\s_~*`]*$/.test(r))return e;let n=e.lastIndexOf(t[1]),a=e.substring(0,n).lastIndexOf(`
909`),i=a===-1?0:a+1,s=e.substring(i,n);if(/^[\s]*[-*+][\s]+$/.test(s)&&r.includes(`
910`))return e;if((e.match(/__/g)||[]).length%2===1)return`${e}__`}return e},H5e=e=>e.split("").reduce((t,r,n)=>{if(r==="*"){let a=e[n-1],i=e[n+1];if(a==="\\")return t;let s=n;for(let o=n-1;o>=0;o--){if(e[o]===`
911`){s=o+1;break}if(o===0){s=0;break}}if(e.substring(s,n).trim()===""&&(i===" "||i==="	"))return t;if(a!=="*"&&i!=="*")return t+1}return t},0),q5e=e=>{if(yb(e))return e;if(e.match(L5e)){let t=-1;for(let n=0;n<e.length;n++)if(e[n]==="*"&&e[n-1]!=="*"&&e[n+1]!=="*"){t=n;break}if(t===-1)return e;let r=e.substring(t+1);if(!r||/^[\s_~*`]*$/.test(r))return e;if(H5e(e)%2===1)return`${e}*`}return e},gX=(e,t)=>{let r=!1,n=!1;for(let a=0;a<e.length&&a<t;a++){if(e[a]==="\\"&&e[a+1]==="$"){a++;continue}e[a]==="$"&&(e[a+1]==="$"?(n=!n,a++,r=!1):n||(r=!r))}return r||n},V5e=e=>e.split("").reduce((t,r,n)=>{if(r==="_"){let a=e[n-1],i=e[n+1];if(a==="\\"||gX(e,n)||a&&i&&/[\p{L}\p{N}_]/u.test(a)&&/[\p{L}\p{N}_]/u.test(i))return t;if(a!=="_"&&i!=="_")return t+1}return t},0),G5e=e=>{if(yb(e))return e;if(e.match(j5e)){let t=-1;for(let n=0;n<e.length;n++)if(e[n]==="_"&&e[n-1]!=="_"&&e[n+1]!=="_"&&e[n-1]!=="\\"&&!gX(e,n)){let a=n>0?e[n-1]:"",i=n<e.length-1?e[n+1]:"";if(a&&i&&/[\p{L}\p{N}_]/u.test(a)&&/[\p{L}\p{N}_]/u.test(i))continue;t=n;break}if(t===-1)return e;let r=e.substring(t+1);if(!r||/^[\s_~*`]*$/.test(r))return e;if(V5e(e)%2===1){let n=e.match(/\n+$/);return n?`${e.slice(0,-n[0].length)}_${n[0]}`:`${e}_`}}return e},W5e=(e,t)=>{let r=e.substring(t,t+3)==="```",n=t>0&&e.substring(t-1,t+2)==="```",a=t>1&&e.substring(t-2,t+1)==="```";return r||n||a},Y5e=e=>{let t=0;for(let r=0;r<e.length;r++)e[r]==="`"&&!W5e(e,r)&&t++;return t},X5e=e=>{if(e.match(/^```[^`\n]*```?$/)&&!e.includes(`
912`))return e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;let t=(e.match(/```/g)||[]).length,r=t%2===1;if(t>0&&t%2===0&&e.includes(`
913`)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2===0)return e;let n=e.match(B5e);if(n&&!r){let a=n[2];if(!a||/^[\s_~*`]*$/.test(a))return e;if(Y5e(e)%2===1)return`${e}\``}return e},K5e=e=>{let t=e.match(z5e);if(t){let r=t[2];if(!r||/^[\s_~*`]*$/.test(r))return e;if((e.match(/~~/g)||[]).length%2===1)return`${e}~~`}return e},Q5e=e=>{if((e.match(/\$\$/g)||[]).length%2===0)return e;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
914`,t)!==-1&&!e.endsWith(`
915`)?`${e}
916$$`:`${e}$$`},Z5e=e=>{let t=0,r=e.match(/\*+/g)||[];for(let n of r){let a=n.length;a>=3&&(t+=Math.floor(a/3))}return t},J5e=e=>{if(yb(e)||/^\*{4,}$/.test(e))return e;let t=e.match(D5e);if(t){let r=t[2];if(!r||/^[\s_~*`]*$/.test(r))return e;if(Z5e(e)%2===1)return`${e}***`}return e},e_e=e=>{if(!e||typeof e!="string")return e;let t=e,r=$5e(t);return r.endsWith("](streamdown:incomplete-link)")?r:(t=r,t=J5e(t),t=F5e(t),t=U5e(t),t=q5e(t),t=G5e(t),t=X5e(t),t=K5e(t),t=Q5e(t),t)},t_e={harden:[qxe,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],defaultOrigin:void 0,allowDataImages:!0}],raw:Sbe,katex:[f1e,{errorColor:"var(--color-muted-foreground)"}]},r_e={gfm:[Mxe,{}],math:[Hxe,{singleDollarTextMath:!1}]},vX=N.createContext(["github-light","github-dark"]),yX=N.createContext(void 0),R8=N.createContext(!0),tm=N.createContext({isAnimating:!1}),bX=N.memo(({content:e,shouldParseIncompleteMarkdown:t,...r})=>{let n=N.useMemo(()=>typeof e=="string"&&t?e_e(e.trim()):e,[e,t]);return x.jsx(Bpe,{...r,children:n})},(e,t)=>e.content===t.content);bX.displayName="Block";var xX=N.memo(({children:e,parseIncompleteMarkdown:t=!0,components:r,rehypePlugins:n=Object.values(t_e),remarkPlugins:a=Object.values(r_e),className:i,shikiTheme:s=["github-light","github-dark"],mermaidConfig:o,controls:u=!0,isAnimating:c=!1,...h})=>{let d=N.useId(),m=N.useMemo(()=>R5e(typeof e=="string"?e:""),[e]);return x.jsx(vX.Provider,{value:s,children:x.jsx(yX.Provider,{value:o,children:x.jsx(R8.Provider,{value:u,children:x.jsx(tm.Provider,{value:{isAnimating:c},children:x.jsx("div",{className:Bt("space-y-4",i),children:m.map((v,y)=>x.jsx(bX,{components:{...N5e,...r},content:v,rehypePlugins:n,remarkPlugins:a,shouldParseIncompleteMarkdown:t,...h},`${d}-block-${y}`))})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating);xX.displayName="Streamdown";function n_e({messages:e,onSendMessage:t,isLoading:r=!1,placeholder:n="Type your message...",className:a,height:i="600px",emptyStateMessage:s="Start a conversation with AI",suggestedPrompts:o}){const[u,c]=N.useState(""),h=N.useRef(null),d=N.useRef(null),m=N.useRef(null),v=N.useRef(null),y=e.filter(P=>P.role!=="system"),[b,E]=N.useState(0);N.useEffect(()=>{if(d.current&&m.current){const P=d.current.offsetHeight,O=m.current.offsetHeight,j=P-O-32-56;E(Math.max(0,j))}},[]);const _=()=>{const P=h.current?.querySelector("[data-radix-scroll-area-viewport]");P&&requestAnimationFrame(()=>{P.scrollTo({top:P.scrollHeight,behavior:"smooth"})})},T=P=>{P.preventDefault();const O=u.trim();!O||r||(t(O),c(""),_(),v.current?.focus())},C=P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),T(P))};return x.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:191",ref:d,className:Nt("flex flex-col bg-card text-card-foreground rounded-lg border shadow-sm",a),style:{height:i},children:[x.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:200",ref:h,className:"flex-1 overflow-hidden",children:y.length===0?x.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:202",className:"flex h-full flex-col p-4",children:x.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:203",className:"flex flex-1 flex-col items-center justify-center gap-6 text-muted-foreground",children:[x.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:204",className:"flex flex-col items-center gap-3",children:[x.jsx(so,{"data-loc":"client/src/components/AIChatBox.tsx:205",className:"size-12 opacity-20"}),x.jsx("p",{"data-loc":"client/src/components/AIChatBox.tsx:206",className:"text-sm",children:s})]}),o&&o.length>0&&x.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:210",className:"flex max-w-2xl flex-wrap justify-center gap-2",children:o.map((P,O)=>x.jsx("button",{"data-loc":"client/src/components/AIChatBox.tsx:212",onClick:()=>t(P),disabled:r,className:"rounded-lg border border-border bg-card px-4 py-2 text-sm transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50",children:P},O))})]})}):x.jsx(Rfe,{"data-loc":"client/src/components/AIChatBox.tsx:226",className:"h-full",children:x.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:227",className:"flex flex-col space-y-4 p-4",children:[y.map((P,O)=>{const M=O===y.length-1&&!r&&b>0;return x.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:235",className:Nt("flex gap-3",P.role==="user"?"justify-end items-start":"justify-start items-start"),style:M?{minHeight:`${b}px`}:void 0,children:[P.role==="assistant"&&x.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:250",className:"size-8 shrink-0 mt-1 rounded-full bg-primary/10 flex items-center justify-center",children:x.jsx(so,{"data-loc":"client/src/components/AIChatBox.tsx:251",className:"size-4 text-primary"})}),x.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:255",className:Nt("max-w-[80%] rounded-lg px-4 py-2.5",P.role==="user"?"bg-primary text-primary-foreground":"bg-muted text-foreground"),children:P.role==="assistant"?x.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:264",className:"prose prose-sm dark:prose-invert max-w-none",children:x.jsx(xX,{"data-loc":"client/src/components/AIChatBox.tsx:265",children:P.content})}):x.jsx("p",{"data-loc":"client/src/components/AIChatBox.tsx:268",className:"whitespace-pre-wrap text-sm",children:P.content})}),P.role==="user"&&x.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:275",className:"size-8 shrink-0 mt-1 rounded-full bg-secondary flex items-center justify-center",children:x.jsx($oe,{"data-loc":"client/src/components/AIChatBox.tsx:276",className:"size-4 text-secondary-foreground"})})]},O)}),r&&x.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:284",className:"flex items-start gap-3",style:b>0?{minHeight:`${b}px`}:void 0,children:[x.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:292",className:"size-8 shrink-0 mt-1 rounded-full bg-primary/10 flex items-center justify-center",children:x.jsx(so,{"data-loc":"client/src/components/AIChatBox.tsx:293",className:"size-4 text-primary"})}),x.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:295",className:"rounded-lg bg-muted px-4 py-2.5",children:x.jsx(a_,{"data-loc":"client/src/components/AIChatBox.tsx:296",className:"size-4 animate-spin text-muted-foreground"})})]})]})})}),x.jsxs("form",{"data-loc":"client/src/components/AIChatBox.tsx:306",ref:m,onSubmit:T,className:"flex gap-2 p-4 border-t bg-background/50 items-end",children:[x.jsx(Hu,{"data-loc":"client/src/components/AIChatBox.tsx:311",ref:v,value:u,onChange:P=>c(P.target.value),onKeyDown:C,placeholder:n,className:"flex-1 max-h-32 resize-none min-h-9",rows:1}),x.jsx(jt,{"data-loc":"client/src/components/AIChatBox.tsx:320",type:"submit",size:"icon",disabled:!u.trim()||r,className:"shrink-0 h-[38px] w-[38px]",children:r?x.jsx(a_,{"data-loc":"client/src/components/AIChatBox.tsx:327",className:"size-4 animate-spin"}):x.jsx(Ioe,{"data-loc":"client/src/components/AIChatBox.tsx:329",className:"size-4"})})]})]})}const a_e=["Who should I call today?","Which deals are at risk?","Show my hottest leads and explain why.","What CRM data is missing for my highest-value opportunities?"];function i_e(){const[e,t]=N.useState([]),[r,n]=N.useState(null),a=Je.ai.copilot.chat.useMutation({onSuccess:s=>{t(o=>[...o,{role:"assistant",content:s.answer}]),n(s.evidence)},onError:s=>{_t.error(s.message),t(o=>o.slice(0,-1))}}),i=s=>{t(o=>[...o,{role:"user",content:s}]),a.mutate({prompt:s})};return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/Copilot.tsx:17",eyebrow:"Scout intelligence",title:"Scout Copilot",description:"Ask questions over your organization’s live CRM facts. Recommendations are clearly separated from recorded data."}),x.jsxs("div",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"grid gap-6 xl:grid-cols-[1fr_320px]",children:[x.jsx(n_e,{"data-loc":"client/src/pages/Copilot.tsx:17",messages:e,onSendMessage:i,isLoading:a.isPending,height:"calc(100vh - 245px)",placeholder:"Ask about leads, deals, risks, or next actions…",emptyStateMessage:"Ask Scout about the CRM data in your workspace.",suggestedPrompts:a_e}),x.jsxs("aside",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"space-y-4",children:[x.jsx(ut,{"data-loc":"client/src/pages/Copilot.tsx:17",className:"rounded-2xl border-indigo-100 bg-indigo-50/40 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Copilot.tsx:17",className:"p-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"flex items-center gap-2 text-indigo-700",children:[x.jsx(so,{"data-loc":"client/src/pages/Copilot.tsx:17",className:"size-4"}),x.jsx("p",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"text-sm font-semibold",children:"Evidence-first AI"})]}),x.jsx("p",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"mt-3 text-sm leading-6 text-slate-600",children:"Scout Copilot is instructed to use CRM facts and approved business memory only. It flags gaps instead of filling them with guesses."})]})}),x.jsx(ut,{"data-loc":"client/src/pages/Copilot.tsx:17",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Copilot.tsx:17",className:"p-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"flex items-center gap-2",children:[x.jsx($U,{"data-loc":"client/src/pages/Copilot.tsx:17",className:"size-4 text-slate-500"}),x.jsx("p",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"text-sm font-semibold",children:"Current context"})]}),r?x.jsxs("div",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"mt-4 flex flex-wrap gap-2",children:[x.jsxs(yu,{"data-loc":"client/src/pages/Copilot.tsx:17",variant:"secondary",children:[r.leadCount," leads"]}),x.jsxs(yu,{"data-loc":"client/src/pages/Copilot.tsx:17",variant:"secondary",children:[r.dealCount," deals"]}
916),x.jsxs(yu,{"data-loc":"client/src/pages/Copilot.tsx:17",variant:"secondary",children:[r.accountCount," accounts"]}),x.jsxs(yu,{"data-loc":"client/src/pages/Copilot.tsx:17",variant:"secondary",children:[r.taskCount," tasks"]}),x.jsxs(yu,{"data-loc":"client/src/pages/Copilot.tsx:17",variant:"secondary",children:[r.memoryCount," memories"]})]}):x.jsx("p",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"mt-3 text-sm text-slate-500",children:"Context counts appear after your first question."})]})}),x.jsx(ut,{"data-loc":"client/src/pages/Copilot.tsx:17",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Copilot.tsx:17",className:"p-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"flex items-center gap-2",children:[x.jsx(Aoe,{"data-loc":"client/src/pages/Copilot.tsx:17",className:"size-4 text-slate-500"}),x.jsx("p",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"text-sm font-semibold",children:"Action control"})]}),x.jsx("p",{"data-loc":"client/src/pages/Copilot.tsx:17",className:"mt-3 text-sm leading-6 text-slate-500",children:"Copilot can recommend actions. Actions that change records or reach outside your workspace require an explicit review step."})]})})]})]})]})}const s_e={email:Coe,call:Noe,meeting:moe,note:wf,task:UU,message:Ooe,crm_change:wf,ai_action:wf,automation:wf};function o_e(){const[e,t]=N.useState(!1),[r,n]=N.useState("note"),a=Je.crm.activities.list.useQuery(),i=Je.useUtils(),s=Je.crm.activities.create.useMutation({onSuccess:()=>{_t.success("Activity added to the shared timeline."),t(!1),i.crm.activities.list.invalidate()},onError:u=>_t.error(u.message)}),o=u=>{u.preventDefault();const c=new FormData(u.currentTarget);s.mutate({type:r,subject:String(c.get("subject")??""),body:String(c.get("body")||"")||void 0,sentiment:String(c.get("sentiment")||"neutral")})};return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/Activities.tsx:15",eyebrow:"Communication",title:"Activity timeline",description:"Record calls, meetings, messages, notes, and CRM events in one tenant-scoped timeline.",action:x.jsx(vo,{"data-loc":"client/src/pages/Activities.tsx:15",label:"Log activity",onClick:()=>t(!e)})}),e?x.jsx(ut,{"data-loc":"client/src/pages/Activities.tsx:15",className:"mb-5 rounded-2xl border-indigo-100 bg-indigo-50/30",children:x.jsx(ct,{"data-loc":"client/src/pages/Activities.tsx:15",className:"p-5",children:x.jsxs("form",{"data-loc":"client/src/pages/Activities.tsx:15",onSubmit:o,children:[x.jsxs("div",{"data-loc":"client/src/pages/Activities.tsx:15",className:"mb-4 flex items-center justify-between",children:[x.jsx("h2",{"data-loc":"client/src/pages/Activities.tsx:15",className:"font-semibold",children:"Log customer activity"}),x.jsx(jt,{"data-loc":"client/src/pages/Activities.tsx:15",type:"button",variant:"ghost",onClick:()=>t(!1),children:"Cancel"})]}),x.jsxs("div",{"data-loc":"client/src/pages/Activities.tsx:15",className:"grid gap-3 md:grid-cols-3",children:[x.jsxs("div",{"data-loc":"client/src/pages/Activities.tsx:15",className:"space-y-1.5",children:[x.jsx(fs,{"data-loc":"client/src/pages/Activities.tsx:15",className:"text-xs font-medium text-slate-600",children:"Activity type"}),x.jsxs(zu,{"data-loc":"client/src/pages/Activities.tsx:15",value:r,onValueChange:u=>n(u),children:[x.jsx(Fu,{"data-loc":"client/src/pages/Activities.tsx:15",className:"rounded-xl border-slate-200 bg-white",children:x.jsx($u,{"data-loc":"client/src/pages/Activities.tsx:15"})}),x.jsx(Uu,{"data-loc":"client/src/pages/Activities.tsx:15",children:["email","call","meeting","note","message"].map(u=>x.jsx(oo,{"data-loc":"client/src/pages/Activities.tsx:15",value:u,children:u},u))})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/Activities.tsx:15",className:"space-y-1.5 md:col-span-2",children:[x.jsx(fs,{"data-loc":"client/src/pages/Activities.tsx:15",htmlFor:"subject",className:"text-xs font-medium text-slate-600",children:"Subject"}),x.jsx(Eu,{"data-loc":"client/src/pages/Activities.tsx:15",id:"subject",name:"subject",required:!0,className:"rounded-xl border-slate-200 bg-white",placeholder:"What happened?"})]}),x.jsxs("div",{"data-loc":"client/src/pages/Activities.tsx:15",className:"space-y-1.5",children:[x.jsx(fs,{"data-loc":"client/src/pages/Activities.tsx:15",className:"text-xs font-medium text-slate-600",children:"Sentiment"}),x.jsxs(zu,{"data-loc":"client/src/pages/Activities.tsx:15",name:"sentiment",defaultValue:"neutral",children:[x.jsx(Fu,{"data-loc":"client/src/pages/Activities.tsx:15",className:"rounded-xl border-slate-200 bg-white",children:x.jsx($u,{"data-loc":"client/src/pages/Activities.tsx:15"})}),x.jsx(Uu,{"data-loc":"client/src/pages/Activities.tsx:15",children:["positive","neutral","negative"].map(u=>x.jsx(oo,{"data-loc":"client/src/pages/Activities.tsx:15",value:u,children:u},u))})]})]}),x.jsxs("div",{"data-loc":"client/src/pages/Activities.tsx:15",className:"space-y-1.5 md:col-span-3",children:[x.jsx(fs,{"data-loc":"client/src/pages/Activities.tsx:15",htmlFor:"body",className:"text-xs font-medium text-slate-600",children:"Notes"}),x.jsx(Hu,{"data-loc":"client/src/pages/Activities.tsx:15",id:"body",name:"body",className:"rounded-xl border-slate-200 bg-white",placeholder:"Capture the key details, objections, or commitments."})]})]}),x.jsx("div",{"data-loc":"client/src/pages/Activities.tsx:15",className:"mt-5 flex justify-end",children:x.jsx(jt,{"data-loc":"client/src/pages/Activities.tsx:15",disabled:s.isPending,className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:s.isPending?"Logging…":"Add to timeline"})})]})})}):null,x.jsx(Ea,{"data-loc":"client/src/pages/Activities.tsx:15",loading:a.isLoading,error:a.error,empty:!a.data?.length,children:x.jsx("div",{"data-loc":"client/src/pages/Activities.tsx:15",className:"relative space-y-3 before:absolute before:bottom-4 before:left-5 before:top-4 before:w-px before:bg-slate-200",children:a.data?.map(u=>{const c=s_e[u.type];return x.jsx(ut,{"data-loc":"client/src/pages/Activities.tsx:15",className:"relative rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Activities.tsx:15",className:"flex gap-4 p-4",children:[x.jsx("span",{"data-loc":"client/src/pages/Activities.tsx:15",className:"z-10 grid size-10 shrink-0 place-items-center rounded-xl bg-indigo-50 text-indigo-600",children:x.jsx(c,{"data-loc":"client/src/pages/Activities.tsx:15",className:"size-4"})}),x.jsxs("div",{"data-loc":"client/src/pages/Activities.tsx:15",className:"min-w-0 flex-1",children:[x.jsxs("div",{"data-loc":"client/src/pages/Activities.tsx:15",className:"flex flex-wrap items-center gap-2",children:[x.jsx("p",{"data-loc":"client/src/pages/Activities.tsx:15",className:"font-medium",children:u.subject}),x.jsx("span",{"data-loc":"client/src/pages/Activities.tsx:15",className:"rounded-md bg-slate-100 px-2 py-0.5 text-[11px] capitalize text-slate-600",children:u.type.replaceAll("_"," ")}),u.sentiment?x.jsx("span",{"data-loc":"client/src/pages/Activities.tsx:15",className:`rounded-md px-2 py-0.5 text-[11px] capitalize ${u.sentiment==="positive"?"bg-emerald-50 text-emerald-700":u.sentiment==="negative"?"bg-rose-50 text-rose-700":"bg-slate-100 text-slate-600"}`,children:u.sentiment}):null]}),u.body?x.jsx("p",{"data-loc":"client/src/pages/Activities.tsx:15",className:"mt-1.5 text-sm leading-6 text-slate-500",children:u.body}):null,x.jsx("p",{"data-loc":"client/src/pages/Activities.tsx:15",className:"mt-2 text-xs text-slate-400",children:new Date(u.occurredAt).toLocaleStr
916ing()})]})]})},u.id)})})})]})}function l_e(){const[e,t]=N.useState(""),[r,n]=N.useState(!1),a=Je.useUtils(),i=Je.crm.notes.list.useQuery(),s=Je.crm.notes.create.useMutation({onSuccess:()=>{_t.success("Note saved."),t(""),n(!1),a.crm.notes.list.invalidate()},onError:c=>_t.error(c.message)}),o=Je.crm.notes.archive.useMutation({onSuccess:()=>a.crm.notes.list.invalidate(),onError:c=>_t.error(c.message)}),u=c=>{c.preventDefault(),s.mutate({content:e})};return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/Notes.tsx:10",eyebrow:"Context",title:"Workspace notes",description:"Capture customer context and institutional knowledge with an audit trail.",action:x.jsx(vo,{"data-loc":"client/src/pages/Notes.tsx:10",label:"Add note",onClick:()=>n(!r)})}),r?x.jsx(ut,{"data-loc":"client/src/pages/Notes.tsx:10",className:"mb-5 rounded-2xl border-indigo-100 bg-indigo-50/30",children:x.jsx(ct,{"data-loc":"client/src/pages/Notes.tsx:10",className:"p-5",children:x.jsxs("form",{"data-loc":"client/src/pages/Notes.tsx:10",onSubmit:u,children:[x.jsx(Hu,{"data-loc":"client/src/pages/Notes.tsx:10",value:e,onChange:c=>t(c.target.value),required:!0,className:"min-h-32 rounded-xl border-slate-200 bg-white",placeholder:"Write a clear internal note…"}),x.jsxs("div",{"data-loc":"client/src/pages/Notes.tsx:10",className:"mt-4 flex justify-end gap-2",children:[x.jsx(jt,{"data-loc":"client/src/pages/Notes.tsx:10",type:"button",variant:"ghost",onClick:()=>n(!1),children:"Cancel"}),x.jsx(jt,{"data-loc":"client/src/pages/Notes.tsx:10",disabled:s.isPending||!e.trim(),className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:"Save note"})]})]})})}):null,x.jsx(Ea,{"data-loc":"client/src/pages/Notes.tsx:10",loading:i.isLoading,error:i.error,empty:!i.data?.length,children:x.jsx("div",{"data-loc":"client/src/pages/Notes.tsx:10",className:"grid gap-3 lg:grid-cols-2",children:i.data?.map(c=>x.jsx(ut,{"data-loc":"client/src/pages/Notes.tsx:10",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Notes.tsx:10",className:"p-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/Notes.tsx:10",className:"flex gap-3",children:[x.jsx(wf,{"data-loc":"client/src/pages/Notes.tsx:10",className:"mt-0.5 size-4 shrink-0 text-indigo-600"}),x.jsx("p",{"data-loc":"client/src/pages/Notes.tsx:10",className:"flex-1 whitespace-pre-wrap text-sm leading-6 text-slate-700",children:c.content}),x.jsx(jt,{"data-loc":"client/src/pages/Notes.tsx:10",variant:"ghost",size:"icon",onClick:()=>o.mutate({id:c.id}),"aria-label":"Archive note",children:x.jsx(Loe,{"data-loc":"client/src/pages/Notes.tsx:10",className:"size-4 text-slate-400"})})]}),x.jsxs("p",{"data-loc":"client/src/pages/Notes.tsx:10",className:"mt-4 text-xs text-slate-400",children:["Updated ",new Date(c.updatedAt).toLocaleString()]})]})},c.id))})})]})}var N3,QP;function Ta(){if(QP)return N3;QP=1;var e=Array.isArray;return N3=e,N3}var R3,ZP;function EX(){if(ZP)return R3;ZP=1;var e=typeof Sg=="object"&&Sg&&Sg.Object===Object&&Sg;return R3=e,R3}var M3,JP;function ks(){if(JP)return M3;JP=1;var e=EX(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return M3=r,M3}var P3,eI;function rm(){if(eI)return P3;eI=1;var e=ks(),t=e.Symbol;return P3=t,P3}var I3,tI;function u_e(){if(tI)return I3;tI=1;var e=rm(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(s){var o=r.call(s,a),u=s[a];try{s[a]=void 0;var c=!0}catch{}var h=n.call(s);return c&&(o?s[a]=u:delete s[a]),h}return I3=i,I3}var D3,rI;function c_e(){if(rI)return D3;rI=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return D3=r,D3}var L3,nI;function ko(){if(nI)return L3;nI=1;var e=rm(),t=u_e(),r=c_e(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function s(o){return o==null?o===void 0?a:n:i&&i in Object(o)?t(o):r(o)}return L3=s,L3}var j3,aI;function No(){if(aI)return j3;aI=1;function e(t){return t!=null&&typeof t=="object"}return j3=e,j3}var B3,iI;function j0(){if(iI)return B3;iI=1;var e=ko(),t=No(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return B3=n,B3}var z3,sI;function M8(){if(sI)return z3;sI=1;var e=Ta(),t=j0(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,s){if(e(i))return!1;var o=typeof i;return o=="number"||o=="symbol"||o=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||s!=null&&i in Object(s)}return z3=a,z3}var $3,oI;function jl(){if(oI)return $3;oI=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return $3=e,$3}var F3,lI;function P8(){if(lI)return F3;lI=1;var e=ko(),t=jl(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function s(o){if(!t(o))return!1;var u=e(o);return u==n||u==a||u==r||u==i}return F3=s,F3}var U3,uI;function f_e(){if(uI)return U3;uI=1;
vendor: 4,305 bytes, line 916
916var e=ks(),t=e["__core-js_shared__"];return U3=t,U3}var H3,cI;function d_e(){if(cI)return H3;cI=1;var e=f_e(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return H3=r,H3}var q3,fI;function wX(){if(fI)return q3;fI=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return q3=r,q3}var V3,dI;function h_e(){if(dI)return V3;dI=1;var e=P8(),t=d_e(),r=jl(),n=wX(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,u=s.toString,c=o.hasOwnProperty,h=RegExp("^"+u.call(c).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(m){if(!r(m)||t(m))return!1;var v=e(m)?h:i;return v.test(n(m))}return V3=d,V3}var G3,hI;function p_e(){if(hI)return G3;hI=1;function e(t,r){return t?.[r]}return G3=e,G3}var W3,pI;function uc(){if(pI)return W3;pI=1;var e=h_e(),t=p_e();function r(n,a){var i=t(n,a);return e(i)?i:void 0}return W3=r,W3}var Y3,mI;function bb(){if(mI)return Y3;mI=1;var e=uc(),t=e(Object,"create");return Y3=t,Y3}var X3,gI;function m_e(){if(gI)return X3;gI=1;var e=bb();function t(){this.__data__=e?e(null):{},this.size=0}return X3=t,X3}var K3,vI;function g_e(){if(vI)return K3;vI=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return K3=e,K3}var Q3,yI;function v_e(){if(yI)return Q3;yI=1;var e=bb(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(i){var s=this.__data__;if(e){var o=s[i];return o===t?void 0:o}return n.call(s,i)?s[i]:void 0}return Q3=a,Q3}var Z3,bI;function y_e(){if(bI)return Z3;bI=1;var e=bb(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:r.call(i,a)}return Z3=n,Z3}var J3,xI;function b_e(){if(xI)return J3;xI=1;var e=bb(),t="__lodash_hash_undefined__";function r(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?t:a,this}return J3=r,J3}var e6,EI;function x_e(){if(EI)return e6;EI=1;var e=m_e(),t=g_e(),r=v_e(),n=y_e(),a=b_e();function i(s){var o=-1,u=s==null?0:s.length;for(this.clear();++o<u;){var c=s[o];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,e6=i,e6}var t6,wI;function E_e(){if(wI)return t6;wI=1;function e(){this.__data__=[],this.size=0}return t6=e,t6}var r6,_I;function I8(){if(_I)return r6;_I=1;function e(t,r){return t===r||t!==t&&r!==r}return r6=e,r6}var n6,SI;function xb(){if(SI)return n6;SI=1;var e=I8();function t(r,n){for(var a=r.length;a--;)if(e(r[a][0],n))return a;return-1}return n6=t,n6}var a6,TI;function w_e(){if(TI)return a6;TI=1;var e=xb(),t=Array.prototype,r=t.splice;function n(a){var i=this.__data__,s=e(i,a);if(s<0)return!1;var o=i.length-1;return s==o?i.pop():r.call(i,s,1),--this.size,!0}return a6=n,a6}var i6,AI;function __e(){if(AI)return i6;AI=1;var e=xb();function t(r){var n=this.__data__,a=e(n,r);return a<0?void 0:n[a][1]}return i6=t,i6}var s6,CI;function S_e(){if(CI)return s6;CI=1;var e=xb();function t(r){return e(this.__data__,r)>-1}return s6=t,s6}var o6,OI;function T_e(){if(OI)return o6;OI=1;var e=xb();function t(r,n){var a=this.__data__,i=e(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return o6=t,o6}var l6,kI;function Eb(){if(kI)return l6;kI=1;var e=E_e(),t=w_e(),r=__e(),n=S_e(),a=T_e();function i(s){var o=-1,u=s==null?0:s.length;for(this.clear();++o<u;){var c=s[o];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,l6=i,l6}var u6,NI;function D8(){if(NI)return u6;NI=1;var e=uc(),t=ks(),r=e(t,"Map");return u6=r,u6}var c6,RI;function A_e(){if(RI)return c6;RI=1;var e=x_e(),t=Eb(),r=D8();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return c6=n,c6}var f6,MI;function C_e(){if(MI)return f6;MI=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return f6=e,f6}var d6,PI;function wb(){if(PI)return d6;PI=1;var e=C_e();function t(r,n){var a=r.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return d6=t,d6}var h6,II;function O_e(){if(II)return h6;II=1;
vendor: 11,609 bytes, lines 916-924
916var e=wb();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return h6=t,h6}var p6,DI;function k_e(){if(DI)return p6;DI=1;var e=wb();function t(r){return e(this,r).get(r)}return p6=t,p6}var m6,LI;function N_e(){if(LI)return m6;LI=1;var e=wb();function t(r){return e(this,r).has(r)}return m6=t,m6}var g6,jI;function R_e(){if(jI)return g6;jI=1;var e=wb();function t(r,n){var a=e(this,r),i=a.size;return a.set(r,n),this.size+=a.size==i?0:1,this}return g6=t,g6}var v6,BI;function L8(){if(BI)return v6;BI=1;var e=A_e(),t=O_e(),r=k_e(),n=N_e(),a=R_e();function i(s){var o=-1,u=s==null?0:s.length;for(this.clear();++o<u;){var c=s[o];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,v6=i,v6}var y6,zI;function _X(){if(zI)return y6;zI=1;var e=L8(),t="Expected a function";function r(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var i=function(){var s=arguments,o=a?a.apply(this,s):s[0],u=i.cache;if(u.has(o))return u.get(o);var c=n.apply(this,s);return i.cache=u.set(o,c)||u,c};return i.cache=new(r.Cache||e),i}return r.Cache=e,y6=r,y6}var b6,$I;function M_e(){if($I)return b6;$I=1;var e=_X(),t=500;function r(n){var a=e(n,function(s){return i.size===t&&i.clear(),s}),i=a.cache;return a}return b6=r,b6}var x6,FI;function P_e(){if(FI)return x6;FI=1;var e=M_e(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(t,function(s,o,u,c){i.push(u?c.replace(r,"$1"):o||s)}),i});return x6=n,x6}var E6,UI;function j8(){if(UI)return E6;UI=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=Array(a);++n<a;)i[n]=r(t[n],n,t);return i}return E6=e,E6}var w6,HI;function I_e(){if(HI)return w6;HI=1;var e=rm(),t=j8(),r=Ta(),n=j0(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function s(o){if(typeof o=="string")return o;if(r(o))return t(o,s)+"";if(n(o))return i?i.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}return w6=s,w6}var _6,qI;function SX(){if(qI)return _6;qI=1;var e=I_e();function t(r){return r==null?"":e(r)}return _6=t,_6}var S6,VI;function TX(){if(VI)return S6;VI=1;var e=Ta(),t=M8(),r=P_e(),n=SX();function a(i,s){return e(i)?i:t(i,s)?[i]:r(n(i))}return S6=a,S6}var T6,GI;function _b(){if(GI)return T6;GI=1;var e=j0();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return T6=t,T6}var A6,WI;function B8(){if(WI)return A6;WI=1;var e=TX(),t=_b();function r(n,a){a=e(a,n);for(var i=0,s=a.length;n!=null&&i<s;)n=n[t(a[i++])];return i&&i==s?n:void 0}return A6=r,A6}var C6,YI;function AX(){if(YI)return C6;YI=1;var e=B8();function t(r,n,a){var i=r==null?void 0:e(r,n);return i===void 0?a:i}return C6=t,C6}var D_e=AX();const vi=er(D_e);var O6,XI;function L_e(){if(XI)return O6;XI=1;function e(t){return t==null}return O6=e,O6}var j_e=L_e();const Mt=er(j_e);var k6,KI;function B_e(){if(KI)return k6;KI=1;var e=ko(),t=Ta(),r=No(),n="[object String]";function a(i){return typeof i=="string"||!t(i)&&r(i)&&e(i)==n}return k6=a,k6}var z_e=B_e();const Yu=er(z_e);var $_e=P8();const wt=er($_e);var F_e=jl();const B0=er(F_e);var N6={exports:{}},Zt={};/**
917 * @license React
918 * react-is.production.min.js
919 *
920 * Copyright (c) Facebook, Inc. and its affiliates.
921 *
922 * This source code is licensed under the MIT license found in the
923 * LICENSE file in the root directory of this source tree.
924 */var QI;function U_e(){if(QI)return Zt;QI=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function b(E){if(typeof E=="object"&&E!==null){var _=E.$$typeof;switch(_){case e:switch(E=E.type,E){case r:case a:case n:case c:case h:return E;default:switch(E=E&&E.$$typeof,E){case o:case s:case u:case m:case d:case i:return E;default:return _}}case t:return _}}}return Zt.ContextConsumer=s,Zt.ContextProvider=i,Zt.Element=e,Zt.ForwardRef=u,Zt.Fragment=r,Zt.Lazy=m,Zt.Memo=d,Zt.Portal=t,Zt.Profiler=a,Zt.StrictMode=n,Zt.Suspense=c,Zt.SuspenseList=h,Zt.isAsyncMode=function(){return!1},Zt.isConcurrentMode=function(){return!1},Zt.isContextConsumer=function(E){return b(E)===s},Zt.isContextProvider=function(E){return b(E)===i},Zt.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},Zt.isForwardRef=function(E){return b(E)===u},Zt.isFragment=function(E){return b(E)===r},Zt.isLazy=function(E){return b(E)===m},Zt.isMemo=function(E){return b(E)===d},Zt.isPortal=function(E){return b(E)===t},Zt.isProfiler=function(E){return b(E)===a},Zt.isStrictMode=function(E){return b(E)===n},Zt.isSuspense=function(E){return b(E)===c},Zt.isSuspenseList=function(E){return b(E)===h},Zt.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===a||E===n||E===c||E===h||E===v||typeof E=="object"&&E!==null&&(E.$$typeof===m||E.$$typeof===d||E.$$typeof===i||E.$$typeof===s||E.$$typeof===u||E.$$typeof===y||E.getModuleId!==void 0)},Zt.typeOf=b,Zt}var ZI;function H_e(){return ZI||(ZI=1,N6.exports=U_e()),N6.exports}var q_e=H_e(),R6,JI;function CX(){if(JI)return R6;JI=1;var e=ko(),t=No(),r="[object Number]";function n(a){return typeof a=="number"||t(a)&&e(a)==r}return R6=n,R6}var M6,eD;function V_e(){if(eD)return M6;eD=1;var e=CX();function t(r){return e(r)&&r!=+r}return M6=t,M6}var G_e=V_e();const nm=er(G_e);var W_e=CX();const Y_e=er(W_e);var zi=function(t){return t===0?0:t>0?1:-1},Su=function(t){return Yu(t)&&t.indexOf("%")===t.length-1},Ue=function(t){return Y_e(t)&&!nm(t)},X_e=function(t){return Mt(t)},fn=function(t){return Ue(t)||Yu(t)},K_e=0,am=function(t){var r=++K_e;return"".concat(t||"").concat(r)},Xu=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ue(t)&&!Yu(t))return n;var i;if(Su(t)){var s=t.indexOf("%");i=r*parseFloat(t.slice(0,s))/100}else i=+t;return nm(i)&&(i=n),a&&i>r&&(i=r),i},pl=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Q_e=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a<r;a++)if(!n[t[a]])n[t[a]]=!0;else return!0;return!1},Li=function(t,r){return Ue(t)&&Ue(r)?function(n){return t+n*(r-t)}:function(){return r}};function wv(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):vi(n,t))===r})}var Z_e=function(t,r){return Ue(t)&&Ue(r)?t-r:Yu(t)&&Yu(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function If(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function lS(e){"@babel/helpers - typeof";return lS=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},lS(e)}var J_e=["viewBox","children"],eSe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],tD=["points","pathLength"],P6={svg:J_e,polygon:tD,polyline:tD},z8=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
924ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],_v=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!B0(n))return null;var a={};return Object.keys(n).forEach(function(i){z8.includes(i)&&(a[i]=r||function(s){return n[i](n,s)})}),a},tSe=function(t,r,n){return function(a){return t(r,n,a),null}},Sv=function(t,r,n){if(!B0(t)||lS(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var s=t[i];z8.includes(i)&&typeof s=="function"&&(a||(a={}),a[i]=tSe(s,r,n))}),a},rSe=["children"],nSe=["children"];function rD(e,t){if(e==null)return{};var r=aSe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aSe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function uS(e){"@babel/helpers - typeof";return uS=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},uS(e)}var nD={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"}
vendor: 4,238 bytes, line 924
924,fo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},aD=null,I6=null,$8=function e(t){if(t===aD&&Array.isArray(I6))return I6;var r=[];return N.Children.forEach(t,function(n){Mt(n)||(q_e.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),I6=r,aD=t,r};function yi(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return fo(a)}):n=[fo(t)],$8(e).forEach(function(a){var i=vi(a,"type.displayName")||vi(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function Ba(e,t){var r=yi(e,t);return r&&r[0]}var iD=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!Ue(n)||n<=0||!Ue(a)||a<=0)},iSe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],sSe=function(t){return t&&t.type&&Yu(t.type)&&iSe.indexOf(t.type)>=0},oSe=function(t){return t&&uS(t)==="object"&&"clipDot"in t},lSe=function(t,r,n,a){var i,s=(i=P6?.[a])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!wt(t)&&(a&&s.includes(r)||eSe.includes(r))||n&&z8.includes(r)},Ft=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(N.isValidElement(t)&&(a=t.props),!B0(a))return null;var i={};return Object.keys(a).forEach(function(s){var o;lSe((o=a)===null||o===void 0?void 0:o[s],s,r,n)&&(i[s]=a[s])}),i},cS=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return sD(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=t[a],s=r[a];if(Array.isArray(i)||Array.isArray(s)){if(!e(i,s))return!1}else if(!sD(i,s))return!1}return!0},sD=function(t,r){if(Mt(t)&&Mt(r))return!0;if(!Mt(t)&&!Mt(r)){var n=t.props||{},a=n.children,i=rD(n,rSe),s=r.props||{},o=s.children,u=rD(s,nSe);return a&&o?If(i,u)&&cS(a,o):!a&&!o?If(i,u):!1}return!1},oD=function(t,r){var n=[],a={};return $8(t).forEach(function(i,s){if(sSe(i))n.push(i);else if(i){var o=fo(i.type),u=r[o]||{},c=u.handler,h=u.once;if(c&&(!h||!a[o])){var d=c(i,o,s);n.push(d),a[o]=!0}}}),n},uSe=function(t){var r=t&&t.type;return r&&nD[r]?nD[r]:null},cSe=function(t,r){return $8(r).indexOf(t)},fSe=["children","width","height","viewBox","className","style","title","desc"];function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fS.apply(this,arguments)}function dSe(e,t){if(e==null)return{};var r=hSe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hSe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dS(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,s=e.style,o=e.title,u=e.desc,c=dSe(e,fSe),h=a||{width:r,height:n,x:0,y:0},d=Lt("recharts-surface",i);return re.createElement("svg",fS({},Ft(c,!0,"svg"),{className:d,width:r,height:n,style:s,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),re.createElement("title",null,o),re.createElement("desc",null,u),t)}var pSe=["children","className"];function hS(){return hS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
924for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hS.apply(this,arguments)}function mSe(e,t){if(e==null)return{};var r=gSe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gSe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Hr=re.forwardRef(function(e,t){var r=e.children,n=e.className,a=mSe(e,pSe),i=Lt("recharts-layer",n);return re.createElement("g",hS({className:i},Ft(a,!0),{ref:t}),r)}),ho=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]},D6,lD;function vSe(){if(lD)return D6;lD=1;function e(t,r,n){var a=-1,i=t.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var s=Array(i);++a<i;)s[a]=t[a+r];return s}return D6=e,D6}var L6,uD;function ySe(){if(uD)return L6;uD=1;var e=vSe();function t(r,n,a){var i=r.length;return a=a===void 0?i:a,!n&&a>=i?r:e(r,n,a)}return L6=t,L6}var j6,cD;function OX(){if(cD)return j6;cD=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",s="\\u200d",o=RegExp("["+s+e+a+i+"]");function u(c){return o.test(c)}return j6=u,j6}var B6,fD;function bSe(){if(fD)return B6;fD=1;function e(t){return t.split("")}return B6=e,B6}var z6,dD;function xSe(){if(dD)return z6;dD=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",s="["+e+"]",o="["+a+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+o+"|"+u+")",h="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",v="\\u200d",y=c+"?",b="["+i+"]?",E="(?:"+v+"(?:"+[h,d,m].join("|")+")"+b+y+")*",_=b+y+E,T="(?:"+[h+o+"?",o,d,m,s].join("|")+")",C=RegExp(u+"(?="+u+")|"+T+_,"g");function P(O){return O.match(C)||[]}return z6=P,z6}var $6,hD;function ESe(){if(hD)return $6;hD=1;var e=bSe(),t=OX(),r=xSe();function n(a){return t(a)?r(a):e(a)}return $6=n,$6}var F6,pD;function wSe(){if(pD)return F6;pD=1;var e=ySe(),t=OX(),r=ESe(),n=SX();function a(i){return function(s){s=n(s);var o=t(s)?r(s):void 0,u=o?o[0]:s.charAt(0),c=o?e(o,1).join(""):s.slice(1);return u[i]()+c}}return F6=a,F6}var U6,mD;function _Se(){if(mD)return U6;mD=1;var e=wSe(),t=e("toUpperCase");return U6=t,U6}var SSe=_Se();const Sb=er(SSe);function gr(e){return function(){return e}}const _je=Math.abs,Sje=Math.atan2,kX=Math.cos,Tje=Math.max,Aje=Math.min,Tv=Math.sin,Gi=Math.sqrt,Cje=1e-12,Xf=Math.PI,gD=Xf/2,Tb=2*Xf;function Oje(e){return e>1?0:e<-1?Xf:Math.acos(e)}function kje(e){return e>=1?gD:e<=-1?-gD:Math.asin(e)}const pS=Math.PI,mS=2*pS,mu=1e-6,TSe=mS-mu;function NX(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function ASe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return NX;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;a<i;++a)this._+=Math.round(arguments[a]*r)/r+n[a]}}class CSe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?NX:ASe(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,a){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(t,r,n,a,i,s){this._append`C${+t},${+r},${+n},${+a},${this._x1=+i},${this._y1=+s}`}arcTo(t,r,n,a,i){if(t=+t,r=+r,n=+n,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let s=this._x1,o=this._y1,u=n-t,c=a-r,h=s-t,d=o-r,m=h*h+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>mu)if(!(Math.abs(d*u-c*h)>mu)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-s,y=a-o,b=u*u+c*c,E=v*v+y*y,_=Math.sqrt(b),T=Math.sqrt(m),C=i*Math.tan((pS-Math.acos((b+m-E)/(2*_*T)))/2),P=C/T,O=C/_;Math.abs(P-1)>mu&&this._append`L${t+P*h},${r+P*d}`,this._append`A${i},${i},0,0,${+(d*v>h*y)},${this._x1=t+O*u},${this._y1=r+O*c}`}}arc(t,r,n,a,i,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(a),u=n*Math.sin(a),c=t+o,h=r+u,d=1^s,m=s?a-i:i-a;
924this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>mu||Math.abs(this._y1-h)>mu)&&this._append`L${c},${h}`,n&&(m<0&&(m=m%mS+mS),m>TSe?this._append`A${n},${n},0,1,${d},${t-o},${r-u}A${n},${n},0,1,${d},${this._x1=c},${this._y1=h}`:m>mu&&this._append`A${n},${n},0,${+(m>=pS)},${d},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function F8(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new CSe(t)}function U8(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function RX(e){this._context=e}RX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ab(e){return new RX(e)}function MX(e){return e[0]}function PX(e){return e[1]}function IX(e,t){var r=gr(!0),n=null,a=Ab,i=null,s=F8(o);e=typeof e=="function"?e:e===void 0?MX:gr(e),t=typeof t=="function"?t:t===void 0?PX:gr(t);function o(u){var c,h=(u=U8(u)).length,d,m=!1,v;for(n==null&&(i=a(v=s())),c=0;c<=h;++c)!(c<h&&r(d=u[c],c,u))===m&&((m=!m)?i.lineStart():i.lineEnd()),m&&i.point(+e(d,c,u),+t(d,c,u));if(v)return i=null,v+""||null}return o.x=function(u){return arguments.length?(e=typeof u=="function"?u:gr(+u),o):e},o.y=function(u){return arguments.length?(t=typeof u=="function"?u:gr(+u),o):t},o.defined=function(u){return arguments.length?(r=typeof u=="function"?u:gr(!!u),o):r},o.curve=function(u){return arguments.length?(a=u,n!=null&&(i=a(n)),o):a},o.context=function(u){return arguments.length?(u==null?n=i=null:i=a(n=u),o):n},o}function l1(e,t,r){var n=null,a=gr(!0),i=null,s=Ab,o=null,u=F8(c);e=typeof e=="function"?e:e===void 0?MX:gr(+e),t=typeof t=="function"?t:gr(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?PX:gr(+r);function c(d){var m,v,y,b=(d=U8(d)).length,E,_=!1,T,C=new Array(b),P=new Array(b);for(i==null&&(o=s(T=u())),m=0;m<=b;++m){if(!(m<b&&a(E=d[m],m,d))===_)if(_=!_)v=m,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),y=m-1;y>=v;--y)o.point(C[y],P[y]);o.lineEnd(),o.areaEnd()}_&&(C[m]=+e(E,m,d),P[m]=+t(E,m,d),o.point(n?+n(E,m,d):C[m],r?+r(E,m,d):P[m]))}if(T)return o=null,T+""||null}function h(){return IX().defined(a).curve(s).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:gr(+d),n=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:gr(+d),c):e},c.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:gr(+d),c):n},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:gr(+d),r=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:gr(+d),c):t},c.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:gr(+d),c):r},c.lineX0=c.lineY0=function(){return h().x(e).y(t)},c.lineY1=function(){return h().x(e).y(r)},c.lineX1=function(){return h().x(n).y(t)},c.defined=function(d){return arguments.length?(a=typeof d=="function"?d:gr(!!d),c):a},c.curve=function(d){return arguments.length?(s=d,i!=null&&(o=s(i)),c):s},c.context=function(d){return arguments.length?(d==null?i=o=null:o=s(i=d),c):i},c}class DX{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function OSe(e){return new DX(e,!0)}function kSe(e){return new DX(e,!1)}const H8={draw(e,t){const r=Gi(t/Xf);e.moveTo(r,0),e.arc(0,0,r,0,Tb)}},NSe={draw(e,t){const r=Gi(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},LX=Gi(1/3),RSe=LX*2,MSe={draw(e,t){const r=Gi(t/RSe),n=r*LX;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},PSe={draw(e,t){const r=Gi(t),n=-r/2;e.rect(n,n,r,r)}}
924,ISe=.8908130915292852,jX=Tv(Xf/10)/Tv(7*Xf/10),DSe=Tv(Tb/10)*jX,LSe=-kX(Tb/10)*jX,jSe={draw(e,t){const r=Gi(t*ISe),n=DSe*r,a=LSe*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const s=Tb*i/5,o=kX(s),u=Tv(s);e.lineTo(u*r,-o*r),e.lineTo(o*n-u*a,u*n+o*a)}e.closePath()}},H6=Gi(3),BSe={draw(e,t){const r=-Gi(t/(H6*3));e.moveTo(0,r*2),e.lineTo(-H6*r,-r),e.lineTo(H6*r,-r),e.closePath()}},ai=-.5,ii=Gi(3)/2,gS=1/Gi(12),zSe=(gS/2+1)*3,$Se={draw(e,t){const r=Gi(t/zSe),n=r/2,a=r*gS,i=n,s=r*gS+r,o=-i,u=s;e.moveTo(n,a),e.lineTo(i,s),e.lineTo(o,u),e.lineTo(ai*n-ii*a,ii*n+ai*a),e.lineTo(ai*i-ii*s,ii*i+ai*s),e.lineTo(ai*o-ii*u,ii*o+ai*u),e.lineTo(ai*n+ii*a,ai*a-ii*n),e.lineTo(ai*i+ii*s,ai*s-ii*i),e.lineTo(ai*o+ii*u,ai*u-ii*o),e.closePath()}};function FSe(e,t){let r=null,n=F8(a);e=typeof e=="function"?e:gr(e||H8),t=typeof t=="function"?t:gr(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:gr(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:gr(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Av(){}function Cv(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function BX(e){this._context=e}BX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Cv(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Cv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function USe(e){return new BX(e)}function zX(e){this._context=e}zX.prototype={areaStart:Av,areaEnd:Av,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Cv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function HSe(e){return new zX(e)}function $X(e){this._context=e}$X.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Cv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qSe(e){return new $X(e)}function FX(e){this._context=e}FX.prototype={areaStart:Av,areaEnd:Av,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function VSe(e){return new FX(e)}function vD(e){return e<0?-1:1}function yD(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),s=(r-e._y1)/(a||n<0&&-0),o=(i*a+s*n)/(n+a);return(vD(i)+vD(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(o))||0}function bD(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function q6(e,t,r){var n=e._x0,a=e._y0,i=e._x1,s=e._y1,o=(i-n)/3;e._context.bezierCurveTo(n+o,a+o*t,i-o,s-o*r,i,s)}function Ov(e){this._context=e}Ov.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:q6(this,this._t0,bD(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,q6(this,bD(this,r=yD(this,e,t)),r);break;default:q6(this,this._t0,r=yD(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function UX(e){this._context=new HX(e)}(UX.prototype=Object.create(Ov.prototype)).point=function(e,t){Ov.prototype.point.call(this,t,e)};function HX(e){this._context=e}HX.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function GSe(e){return new Ov(e)}function WSe(e){return new UX(e)}function qX(e){this._context=e}qX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=xD(e),a=xD(t),i=0,s=1;s<r;++i,++s)this._context.bezierCurveTo(n[0][i],a[0][i],n[1][i],a[1][i],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function xD(e){var t,r=e.length-1,n,a=new Array(r),i=new Array(r),s=new Array(r);for(a[0]=0,i[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,i[t]=4,s[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/i[t-1],i[t]-=n,s[t]-=n*s[t-1];for(a[r-1]=s[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(s[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function YSe(e){return new qX(e)}function Cb(e,t){this._context=e,this._t=t}Cb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 15,378 bytes, lines 924-927
924default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function XSe(e){return new Cb(e,.5)}function KSe(e){return new Cb(e,0)}function QSe(e){return new Cb(e,1)}function Kf(e,t){if((s=e.length)>1)for(var r=1,n,a,i=e[t[0]],s,o=i.length;r<s;++r)for(a=i,i=e[t[r]],n=0;n<o;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function vS(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function ZSe(e,t){return e[t]}function JSe(e){const t=[];return t.key=e,t}function eTe(){var e=gr([]),t=vS,r=Kf,n=ZSe;function a(i){var s=Array.from(e.apply(this,arguments),JSe),o,u=s.length,c=-1,h;for(const d of i)for(o=0,++c;o<u;++o)(s[o][c]=[0,+n(d,s[o].key,c,i)]).data=d;for(o=0,h=U8(t(s));o<u;++o)s[h[o]].index=o;return r(s,h),s}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:gr(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:gr(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?vS:typeof i=="function"?i:gr(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??Kf,a):r},a}function tTe(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,s;a<i;++a){for(s=r=0;r<n;++r)s+=e[r][a][1]||0;if(s)for(r=0;r<n;++r)e[r][a][1]/=s}Kf(e,t)}}function rTe(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var s=0,o=0;s<a;++s)o+=e[s][r][1]||0;n[r][1]+=n[r][0]=-o/2}Kf(e,t)}}function nTe(e,t){if(!(!((s=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,s;n<i;++n){for(var o=0,u=0,c=0;o<s;++o){for(var h=e[t[o]],d=h[n][1]||0,m=h[n-1][1]||0,v=(d-m)/2,y=0;y<o;++y){var b=e[t[y]],E=b[n][1]||0,_=b[n-1][1]||0;v+=E-_}u+=d,c+=v*d}a[n-1][1]+=a[n-1][0]=r,u&&(r-=c/u)}a[n-1][1]+=a[n-1][0]=r,Kf(e,t)}}function Qh(e){"@babel/helpers - typeof";return Qh=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},Qh(e)}var aTe=["type","size","sizeType"];function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yS.apply(this,arguments)}function ED(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function wD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ED(Object(r),!0).forEach(function(n){iTe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ED(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iTe(e,t,r){return t=sTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sTe(e){var t=oTe(e,"string");return Qh(t)=="symbol"?t:t+""}function oTe(e,t){if(Qh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lTe(e,t){if(e==null)return{};var r=uTe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uTe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var VX={symbolCircle:H8,symbolCross:NSe,symbolDiamond:MSe,symbolSquare:PSe,symbolStar:jSe,symbolTriangle:BSe,symbolWye:$Se},cTe=Math.PI/180,fTe=function(t){var r="symbol".concat(Sb(t));return VX[r]||H8},dTe=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*cTe;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},hTe=function(t,r){VX["symbol".concat(Sb(t))]=r},q8=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,s=t.sizeType,o=s===void 0?"area":s,u=lTe(t,aTe),c=wD(wD({},u),{},{type:n,size:i,sizeType:o}),h=function(){var E=fTe(n),_=FSe().type(E).size(dTe(i,o,n));return _()},d=c.className,m=c.cx,v=c.cy,y=Ft(c,!0);return m===+m&&v===+v&&i===+i?re.createElement("path",yS({},y,{className:Lt("recharts-symbols",d),transform:"translate(".concat(m,", ").concat(v,")"),d:h()})):null};q8.registerSymbol=hTe;function Qf(e){"@babel/helpers - typeof";return Qf=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},Qf(e)}function bS(){return bS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bS.apply(this,arguments)}function _D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function pTe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_D(Object(r),!0).forEach(function(n){Zh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_D(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gTe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WX(n.key),n)}}function vTe(e,t,r){return t&&gTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yTe(e,t,r){return t=kv(t),bTe(e,GX()?Reflect.construct(t,r||[],kv(e).constructor):t.apply(e,r))}function bTe(e,t){if(t&&(Qf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xTe(e)}function xTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GX=function(){return!!e})()}function kv(e){return kv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kv(e)}function ETe(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&&xS(e,t)}function xS(e,t){return xS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},xS(e,t)}function Zh(e,t,r){return t=WX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WX(e){var t=wTe(e,"string");return Qf(t)=="symbol"?t:t+""}function wTe(e,t){if(Qf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var si=32,V8=(function(e){function t(){return mTe(this,t),yTe(this,t,arguments)}return ETe(t,e),vTe(t,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=si/2,s=si/6,o=si/3,u=n.inactive?a:n.color;if(n.type==="plainline")return re.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:si,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return re.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(i,"h").concat(o,`
925            A`).concat(s,",").concat(s,",0,1,1,").concat(2*o,",").concat(i,`
926            H`).concat(si,"M").concat(2*o,",").concat(i,`
927            A`).concat(s,",").concat(s,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return re.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(si/8,"h").concat(si,"v").concat(si*3/4,"h").concat(-si,"z"),className:"recharts-legend-icon"});if(re.isValidElement(n.legendIcon)){var c=pTe({},n);return delete c.legendIcon,re.cloneElement(n.legendIcon,c)}return re.createElement(q8,{fill:u,cx:i,cy:i,size:si,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,s=a.iconSize,o=a.layout,u=a.formatter,c=a.inactiveColor,h={x:0,y:0,width:si,height:si},d={display:o==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(v,y){var b=v.formatter||u,E=Lt(Zh(Zh({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",v.inactive));if(v.type==="none")return null;var _=wt(v.value)?null:v.value;ho(!wt(v.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var T=v.inactive?c:v.color;return re.createElement("li",bS({className:E,style:d,key:"legend-item-".concat(y)},Sv(n.props,v,y)),re.createElement(dS,{width:s,height:s,viewBox:h,style:m},n.renderIcon(v)),re.createElement("span",{className:"recharts-legend-item-text",style:{color:T}},b?b(_,v,y):_))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,s=n.align;if(!a||!a.length)return null;var o={padding:0,margin:0,textAlign:i==="horizontal"?s:"left"};return re.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])})(N.PureComponent);Zh(V8,"displayName","Legend");Zh(V8,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var V6,SD;function _Te(){if(SD)return V6;SD=1;var e=Eb();function t(){this.__data__=new e,this.size=0}return V6=t,V6}var G6,TD;function STe(){if(TD)return G6;TD=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return G6=e,G6}var W6,AD;function TTe(){if(AD)return W6;AD=1;function e(t){return this.__data__.get(t)}return W6=e,W6}var Y6,CD;function ATe(){if(CD)return Y6;CD=1;function e(t){return this.__data__.has(t)}return Y6=e,Y6}var X6,OD;function CTe(){if(OD)return X6;OD=1;var e=Eb(),t=D8(),r=L8(),n=200;function a(i,s){var o=this.__data__;if(o instanceof e){var u=o.__data__;if(!t||u.length<n-1)return u.push([i,s]),this.size=++o.size,this;o=this.__data__=new r(u)}return o.set(i,s),this.size=o.size,this}return X6=a,X6}var K6,kD;function YX(){if(kD)return K6;kD=1;var e=Eb(),t=_Te(),r=STe(),n=TTe(),a=ATe(),i=CTe();function s(o){var u=this.__data__=new e(o);this.size=u.size}return s.prototype.clear=t,s.prototype.delete=r,s.prototype.get=n,s.prototype.has=a,s.prototype.set=i,K6=s,K6}var Q6,ND;function OTe(){if(ND)return Q6;ND=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Q6=t,Q6}var Z6,RD;function kTe(){if(RD)return Z6;RD=1;function e(t){return this.__data__.has(t)}return Z6=e,Z6}var J6,MD;function XX(){if(MD)return J6;MD=1;var e=L8(),t=OTe(),r=kTe();function n(a){var i=-1,s=a==null?0:a.length;for(this.__data__=new e;++i<s;)this.add(a[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,J6=n,J6}var eE,PD;function KX(){if(PD)return eE;PD=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(t[n],n,t))return!0;return!1}return eE=e,eE}var tE,ID;function QX(){if(ID)return tE;ID=1;function e(t,r){return t.has(r)}return tE=e,tE}var rE,DD;function ZX(){if(DD)return rE;DD=1;var e=XX(),t=KX(),r=QX(),n=1,a=2;function i(s,o,u,c,h,d){var m=u&n,v=s.length,y=o.length;if(v!=y&&!(m&&y>v))return!1;var b=d.get(s),E=d.get(o);if(b&&E)return b==o&&E==s;var _=-1,T=!0,C=u&a?new e:void 0;for(d.set(s,o),d.set(o,s);++_<v;){var P=s[_],O=o[_];if(c)var k=m?c(O,P,_,o,s,d):c(P,O,_,s,o,d);if(k!==void 0){if(k)continue;T=!1;break}if(C){if(!t(o,function(M,j){if(!r(C,j)&&(P===M||h(P,M,u,c,d)))return C.push(j)})){T=!1;break}}else if(!(P===O||h(P,O,u,c,d))){T=!1;break}}return d.delete(s),d.delete(o),T}return rE=i,rE}var nE,LD;function NTe(){if(LD)return nE;LD=1;var e=ks(),t=e.Uint8Array;return nE=t,nE}var aE,jD;function RTe(){if(jD)return aE;jD=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,i){n[++r]=[i,a]}),n}return aE=e,aE}var iE,BD;function G8(){if(BD)return iE;BD=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return iE=e,iE}var sE,zD;function MTe(){if(zD)return sE;zD=1;var e=rm(),t=NTe(),r=I8(),n=ZX(),a=RTe(),i=G8(),s=1,o=2,u="[object Boolean]",c="[object Date]",h="[object Error]",d="[object Map]",m="[object Number]",v="[object RegExp]",y="[object Set]",b="[object String]",E="[object Symbol]",_="[object ArrayBuffer]",T="[object DataView]",C=e?e.prototype:void 0,P=C?C.valueOf:void 0;function O(k,M,j,z,$,F,q){switch(j){case T:if(k.byteLength!=M.byteLength||k.byteOffset!=M.byteOffset)return!1;k=k.buffer,M=M.buffer;case _:return!(k.byteLength!=M.byteLength||!F(new t(k),new t(M)));case u:case c:case m:return r(+k,+M);case h:return k.name==M.name&&k.message==M.message;case v:case b:return k==M+"";case d:var Q=a;case y:var X=z&s;if(Q||(Q=i),k.size!=M.size&&!X)return!1;var te=q.get(k);if(te)return te==M;z|=o,q.set(k,M);var U=n(Q(k),Q(M),z,$,F,q);return q.delete(k),U;case E:if(P)return P.call(k)==P.call(M)}return!1}return sE=O,sE}var oE,$D;function JX(){if($D)return oE;$D=1;function e(t,r){for(var n=-1,a=r.length,i=t.length;++n<a;)t[i+n]=r[n];return t}return oE=e,oE}var lE,FD;function PTe(){if(FD)return lE;FD=1;var e=JX(),t=Ta();function r(n,a,i){var s=a(n);return t(n)?s:e(s,i(n))}return lE=r,lE}var uE,UD;function ITe(){if(UD)return uE;UD=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=0,s=[];++n<a;){var o=t[n];r(o,n,t)&&(s[i++]=o)}return s}return uE=e,uE}var cE,HD;function DTe(){if(HD)return cE;HD=1;function e(){return[]}return cE=e,cE}var fE,qD;function LTe(){if(qD)return fE;qD=1;var e=ITe(),t=DTe(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(s){return s==null?[]:(s=Object(s),e(a(s),function(o){return n.call(s,o)}))}:t;return fE=i,fE}var dE,VD;function jTe(){if(VD)return dE;VD=1;function e(t,r){for(var n=-1,a=Array(t);++n<t;)a[n]=r(n);return a}return dE=e,dE}var hE,GD;function BTe(){if(GD)return hE;GD=1;var e=ko(),t=No(),r="[object Arguments]";function n(a){return t(a)&&e(a)==r}return hE=n,hE}var pE,WD;function W8(){if(WD)return pE;WD=1;var e=BTe(),t=No(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(s){return t(s)&&n.call(s,"callee")&&!a.call(s,"callee")};return pE=i,pE}var ch={exports:{}},mE,YD;function zTe(){if(YD)return mE;YD=1;function e(){return!1}return mE=e,mE}ch.exports;var XD;
vendor: 5,513 bytes, line 927
927function eK(){return XD||(XD=1,(function(e,t){var r=ks(),n=zTe(),a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,o=s?r.Buffer:void 0,u=o?o.isBuffer:void 0,c=u||n;e.exports=c})(ch,ch.exports)),ch.exports}var gE,KD;function Y8(){if(KD)return gE;KD=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<a}return gE=r,gE}var vE,QD;function X8(){if(QD)return vE;QD=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return vE=t,vE}var yE,ZD;function $Te(){if(ZD)return yE;ZD=1;var e=ko(),t=X8(),r=No(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",s="[object Date]",o="[object Error]",u="[object Function]",c="[object Map]",h="[object Number]",d="[object Object]",m="[object RegExp]",v="[object Set]",y="[object String]",b="[object WeakMap]",E="[object ArrayBuffer]",_="[object DataView]",T="[object Float32Array]",C="[object Float64Array]",P="[object Int8Array]",O="[object Int16Array]",k="[object Int32Array]",M="[object Uint8Array]",j="[object Uint8ClampedArray]",z="[object Uint16Array]",$="[object Uint32Array]",F={};F[T]=F[C]=F[P]=F[O]=F[k]=F[M]=F[j]=F[z]=F[$]=!0,F[n]=F[a]=F[E]=F[i]=F[_]=F[s]=F[o]=F[u]=F[c]=F[h]=F[d]=F[m]=F[v]=F[y]=F[b]=!1;function q(Q){return r(Q)&&t(Q.length)&&!!F[e(Q)]}return yE=q,yE}var bE,JD;function tK(){if(JD)return bE;JD=1;function e(t){return function(r){return t(r)}}return bE=e,bE}var fh={exports:{}};fh.exports;var eL;function FTe(){return eL||(eL=1,(function(e,t){var r=EX(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,s=i&&r.process,o=(function(){try{var u=a&&a.require&&a.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}})();e.exports=o})(fh,fh.exports)),fh.exports}var xE,tL;function rK(){if(tL)return xE;tL=1;var e=$Te(),t=tK(),r=FTe(),n=r&&r.isTypedArray,a=n?t(n):e;return xE=a,xE}var EE,rL;function UTe(){if(rL)return EE;rL=1;var e=jTe(),t=W8(),r=Ta(),n=eK(),a=Y8(),i=rK(),s=Object.prototype,o=s.hasOwnProperty;function u(c,h){var d=r(c),m=!d&&t(c),v=!d&&!m&&n(c),y=!d&&!m&&!v&&i(c),b=d||m||v||y,E=b?e(c.length,String):[],_=E.length;for(var T in c)(h||o.call(c,T))&&!(b&&(T=="length"||v&&(T=="offset"||T=="parent")||y&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||a(T,_)))&&E.push(T);return E}return EE=u,EE}var wE,nL;function HTe(){if(nL)return wE;nL=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return wE=t,wE}var _E,aL;function nK(){if(aL)return _E;aL=1;function e(t,r){return function(n){return t(r(n))}}return _E=e,_E}var SE,iL;function qTe(){if(iL)return SE;iL=1;var e=nK(),t=e(Object.keys,Object);return SE=t,SE}var TE,sL;function VTe(){if(sL)return TE;sL=1;var e=HTe(),t=qTe(),r=Object.prototype,n=r.hasOwnProperty;function a(i){if(!e(i))return t(i);var s=[];for(var o in Object(i))n.call(i,o)&&o!="constructor"&&s.push(o);return s}return TE=a,TE}var AE,oL;function im(){if(oL)return AE;oL=1;var e=P8(),t=X8();function r(n){return n!=null&&t(n.length)&&!e(n)}return AE=r,AE}var CE,lL;function Ob(){if(lL)return CE;lL=1;var e=UTe(),t=VTe(),r=im();function n(a){return r(a)?e(a):t(a)}return CE=n,CE}var OE,uL;function GTe(){if(uL)return OE;uL=1;var e=PTe(),t=LTe(),r=Ob();function n(a){return e(a,r,t)}return OE=n,OE}var kE,cL;function WTe(){if(cL)return kE;cL=1;var e=GTe(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(i,s,o,u,c,h){var d=o&t,m=e(i),v=m.length,y=e(s),b=y.length;if(v!=b&&!d)return!1;for(var E=v;E--;){var _=m[E];if(!(d?_ in s:n.call(s,_)))return!1}var T=h.get(i),C=h.get(s);if(T&&C)return T==s&&C==i;var P=!0;h.set(i,s),h.set(s,i);for(var O=d;++E<v;){_=m[E];var k=i[_],M=s[_];if(u)var j=d?u(M,k,_,s,i,h):u(k,M,_,i,s,h);if(!(j===void 0?k===M||c(k,M,o,u,h):j)){P=!1;break}O||(O=_=="constructor")}if(P&&!O){var z=i.constructor,$=s.constructor;z!=$&&"constructor"in i&&"constructor"in s&&!(typeof z=="function"&&z instanceof z&&typeof $=="function"&&$ instanceof $)&&(P=!1)}return h.delete(i),h.delete(s),P}return kE=a,kE}var NE,fL;function YTe(){if(fL)return NE;fL=1;var e=uc(),t=ks(),r=e(t,"DataView");return NE=r,NE}var RE,dL;function XTe(){if(dL)return RE;dL=1;var e=uc(),t=ks(),r=e(t,"Promise");return RE=r,RE}var ME,hL;function aK(){if(hL)return ME;hL=1;var e=uc(),t=ks(),r=e(t,"Set");return ME=r,ME}var PE,pL;function KTe(){if(pL)return PE;pL=1;var e=uc(),t=ks(),r=e(t,"WeakMap");return PE=r,PE}var IE,mL;function QTe(){if(mL)return IE;mL=1;var e=YTe(),t=D8(),r=XTe(),n=aK(),a=KTe(),i=ko(),s=wX(),o="[object Map]",u="[object Object]",c="[object Promise]",h="[object Set]",d="[object WeakMap]",m="[object DataView]",v=s(e),y=s(t),b=s(r),E=s(n),_=s(a),T=i;return(e&&T(new e(new ArrayBuffer(1)))!=m||t&&T(new t)!=o||r&&T(r.resolve())!=c||n&&T(new n)!=h||a&&T(new a)!=d)&&(T=function(C){var P=i(C),O=P==u?C.constructor:void 0,k=O?s(O):"";if(k)switch(k){case v:return m;case y:return o;case b:return c;case E:return h;case _:return d}return P}),IE=T,IE}var DE,gL;function ZTe(){if(gL)return DE;gL=1;var e=YX(),t=ZX(),r=MTe(),n=WTe(),a=QTe(),i=Ta(),s=eK(),o=rK(),u=1,c="[object Arguments]",h="[object Array]",d="[object Object]",m=Object.prototype,v=m.hasOwnProperty;function y(b,E,_,T,C,P){var O=i(b),k=i(E),M=O?h:a(b),j=k?h:a(E);M=M==c?d:M,j=j==c?d:j;var z=M==d,$=j==d,F=M==j;if(F&&s(b)){if(!s(E))return!1;O=!0,z=!1}if(F&&!z)return P||(P=new e),O||o(b)?t(b,E,_,T,C,P):r(b,E,M,_,T,C,P);if(!(_&u)){var q=z&&v.call(b,"__wrapped__"),Q=$&&v.call(E,"__wrapped__");
vendor: 21,044 bytes, lines 927-928
927if(q||Q){var X=q?b.value():b,te=Q?E.value():E;return P||(P=new e),C(X,te,_,T,P)}}return F?(P||(P=new e),n(b,E,_,T,C,P)):!1}return DE=y,DE}var LE,vL;function K8(){if(vL)return LE;vL=1;var e=ZTe(),t=No();function r(n,a,i,s,o){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,i,s,r,o)}return LE=r,LE}var jE,yL;function JTe(){if(yL)return jE;yL=1;var e=YX(),t=K8(),r=1,n=2;function a(i,s,o,u){var c=o.length,h=c,d=!u;if(i==null)return!h;for(i=Object(i);c--;){var m=o[c];if(d&&m[2]?m[1]!==i[m[0]]:!(m[0]in i))return!1}for(;++c<h;){m=o[c];var v=m[0],y=i[v],b=m[1];if(d&&m[2]){if(y===void 0&&!(v in i))return!1}else{var E=new e;if(u)var _=u(y,b,v,i,s,E);if(!(_===void 0?t(b,y,r|n,u,E):_))return!1}}return!0}return jE=a,jE}var BE,bL;function iK(){if(bL)return BE;bL=1;var e=jl();function t(r){return r===r&&!e(r)}return BE=t,BE}var zE,xL;function eAe(){if(xL)return zE;xL=1;var e=iK(),t=Ob();function r(n){for(var a=t(n),i=a.length;i--;){var s=a[i],o=n[s];a[i]=[s,o,e(o)]}return a}return zE=r,zE}var $E,EL;function sK(){if(EL)return $E;EL=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return $E=e,$E}var FE,wL;function tAe(){if(wL)return FE;wL=1;var e=JTe(),t=eAe(),r=sK();function n(a){var i=t(a);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(s){return s===a||e(s,a,i)}}return FE=n,FE}var UE,_L;function rAe(){if(_L)return UE;_L=1;function e(t,r){return t!=null&&r in Object(t)}return UE=e,UE}var HE,SL;function nAe(){if(SL)return HE;SL=1;var e=TX(),t=W8(),r=Ta(),n=Y8(),a=X8(),i=_b();function s(o,u,c){u=e(u,o);for(var h=-1,d=u.length,m=!1;++h<d;){var v=i(u[h]);if(!(m=o!=null&&c(o,v)))break;o=o[v]}return m||++h!=d?m:(d=o==null?0:o.length,!!d&&a(d)&&n(v,d)&&(r(o)||t(o)))}return HE=s,HE}var qE,TL;function aAe(){if(TL)return qE;TL=1;var e=rAe(),t=nAe();function r(n,a){return n!=null&&t(n,a,e)}return qE=r,qE}var VE,AL;function iAe(){if(AL)return VE;AL=1;var e=K8(),t=AX(),r=aAe(),n=M8(),a=iK(),i=sK(),s=_b(),o=1,u=2;function c(h,d){return n(h)&&a(d)?i(s(h),d):function(m){var v=t(m,h);return v===void 0&&v===d?r(m,h):e(d,v,o|u)}}return VE=c,VE}var GE,CL;function z0(){if(CL)return GE;CL=1;function e(t){return t}return GE=e,GE}var WE,OL;function sAe(){if(OL)return WE;OL=1;function e(t){return function(r){return r?.[t]}}return WE=e,WE}var YE,kL;function oAe(){if(kL)return YE;kL=1;var e=B8();function t(r){return function(n){return e(n,r)}}return YE=t,YE}var XE,NL;function lAe(){if(NL)return XE;NL=1;var e=sAe(),t=oAe(),r=M8(),n=_b();function a(i){return r(i)?e(n(i)):t(i)}return XE=a,XE}var KE,RL;function Bl(){if(RL)return KE;RL=1;var e=tAe(),t=iAe(),r=z0(),n=Ta(),a=lAe();function i(s){return typeof s=="function"?s:s==null?r:typeof s=="object"?n(s)?t(s[0],s[1]):e(s):a(s)}return KE=i,KE}var QE,ML;function oK(){if(ML)return QE;ML=1;function e(t,r,n,a){for(var i=t.length,s=n+(a?1:-1);a?s--:++s<i;)if(r(t[s],s,t))return s;return-1}return QE=e,QE}var ZE,PL;function uAe(){if(PL)return ZE;PL=1;function e(t){return t!==t}return ZE=e,ZE}var JE,IL;function cAe(){if(IL)return JE;IL=1;function e(t,r,n){for(var a=n-1,i=t.length;++a<i;)if(t[a]===r)return a;return-1}return JE=e,JE}var ew,DL;function fAe(){if(DL)return ew;DL=1;var e=oK(),t=uAe(),r=cAe();function n(a,i,s){return i===i?r(a,i,s):e(a,t,s)}return ew=n,ew}var tw,LL;function dAe(){if(LL)return tw;LL=1;var e=fAe();function t(r,n){var a=r==null?0:r.length;return!!a&&e(r,n,0)>-1}return tw=t,tw}var rw,jL;function hAe(){if(jL)return rw;jL=1;function e(t,r,n){for(var a=-1,i=t==null?0:t.length;++a<i;)if(n(r,t[a]))return!0;return!1}return rw=e,rw}var nw,BL;function pAe(){if(BL)return nw;BL=1;function e(){}return nw=e,nw}var aw,zL;function mAe(){if(zL)return aw;zL=1;var e=aK(),t=pAe(),r=G8(),n=1/0,a=e&&1/r(new e([,-0]))[1]==n?function(i){return new e(i)}:t;return aw=a,aw}var iw,$L;function gAe(){if($L)return iw;$L=1;var e=XX(),t=dAe(),r=hAe(),n=QX(),a=mAe(),i=G8(),s=200;function o(u,c,h){var d=-1,m=t,v=u.length,y=!0,b=[],E=b;if(h)y=!1,m=r;else if(v>=s){var _=c?null:a(u);if(_)return i(_);y=!1,m=n,E=new e}else E=c?[]:b;e:for(;++d<v;){var T=u[d],C=c?c(T):T;if(T=h||T!==0?T:0,y&&C===C){for(var P=E.length;P--;)if(E[P]===C)continue e;c&&E.push(C),b.push(T)}else m(E,C,h)||(E!==b&&E.push(C),b.push(T))}return b}return iw=o,iw}var sw,FL;function vAe(){if(FL)return sw;FL=1;var e=Bl(),t=gAe();function r(n,a){return n&&n.length?t(n,e(a,2)):[]}return sw=r,sw}var yAe=vAe();const UL=er(yAe);function lK(e,t,r){return t===!0?UL(e,r):wt(t)?UL(e,t):e}function Zf(e){"@babel/helpers - typeof";return Zf=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},Zf(e)}var bAe=["ref"];function HL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HL(Object(r),!0).forEach(function(n){kb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cK(n.key),n)}}function EAe(e,t,r){return t&&qL(e.prototype,t),r&&qL(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wAe(e,t,r){return t=Nv(t),_Ae(e,uK()?Reflect.construct(t,r||[],Nv(e).constructor):t.apply(e,r))}function _Ae(e,t){if(t&&(Zf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SAe(e)}function SAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uK=function(){return!!e})()}function Nv(e){return Nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nv(e)}function TAe(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&&ES(e,t)}function ES(e,t){return ES=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ES(e,t)}function kb(e,t,r){return t=cK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cK(e){var t=AAe(e,"string");return Zf(t)=="symbol"?t:t+""}function AAe(e,t){if(Zf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function CAe(e,t){if(e==null)return{};var r=OAe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OAe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kAe(e){return e.value}function NAe(e,t){if(re.isValidElement(e))return re.cloneElement(e,t);if(typeof e=="function")return re.createElement(e,t);t.ref;var r=CAe(t,bAe);return re.createElement(V8,r)}var VL=1,Df=(function(e){function t(){var r;xAe(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=wAe(this,t,[].concat(a)),kb(r,"lastBoundingBox",{width:-1,height:-1}),r}return TAe(t,e),EAe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>VL||Math.abs(a.height-this.lastBoundingBox.height)>VL)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Zs({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,s=a.align,o=a.verticalAlign,u=a.margin,c=a.chartWidth,h=a.chartHeight,d,m;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(s==="center"&&i==="vertical"){var v=this.getBBoxSnapshot();d={left:((c||0)-v.width)/2}}else d=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(o==="middle"){var y=this.getBBoxSnapshot();m={top:((h||0)-y.height)/2}}else m=o==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Zs(Zs({},d),m)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,s=a.width,o=a.height,u=a.wrapperStyle,c=a.payloadUniqBy,h=a.payload,d=Zs(Zs({position:"absolute",width:s||"auto",height:o||"auto"},this.getDefaultPosition(u)),u);return re.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(v){n.wrapperNode=v}},NAe(i,Zs(Zs({},this.props),{},{payload:lK(h,c,kAe)})))}}],[{key:"getWithHeight",value:function(n,a){var i=Zs(Zs({},this.defaultProps),n.props),s=i.layout;return s==="vertical"&&Ue(n.props.height)?{height:n.props.height}:s==="horizontal"?{width:n.props.width||a}:null}}])})(N.PureComponent);kb(Df,"displayName","Legend");kb(Df,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var ow,GL;function RAe(){if(GL)return ow;GL=1;var e=rm(),t=W8(),r=Ta(),n=e?e.isConcatSpreadable:void 0;function a(i){return r(i)||t(i)||!!(n&&i&&i[n])}return ow=a,ow}var lw,WL;function fK(){if(WL)return lw;WL=1;var e=JX(),t=RAe();function r(n,a,i,s,o){var u=-1,c=n.length;for(i||(i=t),o||(o=[]);++u<c;){var h=n[u];a>0&&i(h)?a>1?r(h,a-1,i,s,o):e(o,h):s||(o[o.length]=h)}return o}return lw=r,lw}var uw,YL;function MAe(){if(YL)return uw;YL=1;function e(t){return function(r,n,a){for(var i=-1,s=Object(r),o=a(r),u=o.length;u--;){var c=o[t?u:++i];if(n(s[c],c,s)===!1)break}return r}}return uw=e,uw}var cw,XL;function PAe(){if(XL)return cw;XL=1;var e=MAe(),t=e();return cw=t,cw}var fw,KL;function dK(){if(KL)return fw;KL=1;var e=PAe(),t=Ob();function r(n,a){return n&&e(n,a,t)}return fw=r,fw}var dw,QL;function IAe(){if(QL)return dw;QL=1;var e=im();function t(r,n){return function(a,i){if(a==null)return a;if(!e(a))return r(a,i);for(var s=a.length,o=n?s:-1,u=Object(a);(n?o--:++o<s)&&i(u[o],o,u)!==!1;);return a}}return dw=t,dw}var hw,ZL;function Q8(){if(ZL)return hw;ZL=1;var e=dK(),t=IAe(),r=t(e);return hw=r,hw}var pw,JL;function hK(){if(JL)return pw;JL=1;var e=Q8(),t=im();function r(n,a){var i=-1,s=t(n)?Array(n.length):[];return e(n,function(o,u,c){s[++i]=a(o,u,c)}),s}return pw=r,pw}var mw,ej;function DAe(){if(ej)return mw;ej=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return mw=e,mw}var gw,tj;function LAe(){if(tj)return gw;tj=1;var e=j0();function t(r,n){if(r!==n){var a=r!==void 0,i=r===null,s=r===r,o=e(r),u=n!==void 0,c=n===null,h=n===n,d=e(n);if(!c&&!d&&!o&&r>n||o&&u&&h&&!c&&!d||i&&u&&h||!a&&h||!s)return 1;if(!i&&!o&&!d&&r<n||d&&a&&s&&!i&&!o||c&&a&&s||!u&&s||!h)return-1}return 0}return gw=t,gw}var vw,rj;function jAe(){if(rj)return vw;rj=1;var e=LAe();function t(r,n,a){for(var i=-1,s=r.criteria,o=n.criteria,u=s.length,c=a.length;++i<u;){var h=e(s[i],o[i]);if(h){if(i>=c)return h;var d=a[i];return h*(d=="desc"?-1:1)}}return r.index-n.index}return vw=t,vw}var yw,nj;function BAe(){if(nj)return yw;nj=1;var e=j8(),t=B8(),r=Bl(),n=hK(),a=DAe(),i=tK(),s=jAe(),o=z0(),u=Ta();function c(h,d,m){d.length?d=e(d,function(b){return u(b)?function(E){return t(E,b.length===1?b[0]:b)}:b}):d=[o];var v=-1;d=e(d,i(r));var y=n(h,function(b,E,_){var T=e(d,function(C){return C(b)});return{criteria:T,index:++v,value:b}});return a(y,function(b,E){return s(b,E,m)})}return yw=c,yw}var bw,aj;function zAe(){if(aj)return bw;aj=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return bw=e,bw}var xw,ij;function $Ae(){if(ij)return xw;ij=1;var e=zAe(),t=Math.max;function r(n,a,i){return a=t(a===void 0?n.length-1:a,0),function(){for(var s=arguments,o=-1,u=t(s.length-a,0),c=Array(u);++o<u;)c[o]=s[a+o];o=-1;for(var h=Array(a+1);++o<a;)h[o]=s[o];return h[a]=i(c),e(n,this,h)}}return xw=r,xw}var Ew,sj;function FAe(){if(sj)return Ew;sj=1;function e(t){return function(){return t}}return Ew=e,Ew}var ww,oj;function pK(){if(oj)return ww;oj=1;var e=uc(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return ww=t,ww}var _w,lj;function UAe(){if(lj)return _w;lj=1;var e=FAe(),t=pK(),r=z0(),n=t?function(a,i){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:r;return _w=n,_w}var Sw,uj;function HAe(){if(uj)return Sw;uj=1;var e=800,t=16,r=Date.now;function n(a){var i=0,s=0;return function(){var o=r(),u=t-(o-s);if(s=o,u>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return Sw=n,Sw}var Tw,cj;function qAe(){if(cj)return Tw;cj=1;var e=UAe(),t=HAe(),r=t(e);return Tw=r,Tw}var Aw,fj;function VAe(){if(fj)return Aw;fj=1;var e=z0(),t=$Ae(),r=qAe();function n(a,i){return r(t(a,i,e),a+"")}return Aw=n,Aw}var Cw,dj;function Nb(){if(dj)return Cw;dj=1;var e=I8(),t=im(),r=Y8(),n=jl();function a(i,s,o){if(!n(o))return!1;var u=typeof s;return(u=="number"?t(o)&&r(s,o.length):u=="string"&&s in o)?e(o[s],i):!1}return Cw=a,Cw}var Ow,hj;function GAe(){if(hj)return Ow;hj=1;var e=fK(),t=BAe(),r=VAe(),n=Nb(),a=r(function(i,s){if(i==null)return[];var o=s.length;return o>1&&n(i,s[0],s[1])?s=[]:o>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),t(i,e(s,1),[])});return Ow=a,Ow}var WAe=GAe();const Z8=er(WAe);function Jh(e){"@babel/helpers - typeof";return Jh=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},Jh(e)}function wS(){return wS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wS.apply(this,arguments)}function YAe(e,t){return ZAe(e)||QAe(e,t)||KAe(e,t)||XAe()}function XAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
928In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KAe(e,t){if(e){if(typeof e=="string")return pj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pj(e,t)}}function pj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function QAe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function ZAe(e){if(Array.isArray(e))return e}function mj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function kw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mj(Object(r),!0).forEach(function(n){JAe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JAe(e,t,r){return t=e8e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e8e(e){var t=t8e(e,"string");return Jh(t)=="symbol"?t:t+""}function t8e(e,t){if(Jh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r8e(e){return Array.isArray(e)&&fn(e[0])&&fn(e[1])?e.join(" ~ "):e}var n8e=function(t){var r=t.separator,n=r===void 0?" : ":r,a=t.contentStyle,i=a===void 0?{}:a,s=t.itemStyle,o=s===void 0?{}:s,u=t.labelStyle,c=u===void 0?{}:u,h=t.payload,d=t.formatter,m=t.itemSorter,v=t.wrapperClassName,y=t.labelClassName,b=t.label,E=t.labelFormatter,_=t.accessibilityLayer,T=_===void 0?!1:_,C=function(){if(h&&h.length){var q={padding:0,margin:0},Q=(m?Z8(h,m):h).map(function(X,te){if(X.type==="none")return null;var U=kw({display:"block",paddingTop:4,paddingBottom:4,color:X.color||"#000"},o),J=X.formatter||d||r8e,ee=X.value,de=X.name,G=ee,Y=de;if(J&&G!=null&&Y!=null){var W=J(ee,de,X,te,h);if(Array.isArray(W)){var L=YAe(W,2);G=L[0],Y=L[1]}else G=W}return re.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(te),style:U},fn(Y)?re.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,fn(Y)?re.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,re.createElement("span",{className:"recharts-tooltip-item-value"},G),re.createElement("span",{className:"recharts-tooltip-item-unit"},X.unit||""))});return re.createElement("ul",{className:"recharts-tooltip-item-list",style:q},Q)}return null},P=kw({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),O=kw({margin:0},c),k=!Mt(b),M=k?b:"",j=Lt("recharts-default-tooltip",v),z=Lt("recharts-tooltip-label",y);k&&E&&h!==void 0&&h!==null&&(M=E(b,h));var $=T?{role:"status","aria-live":"assertive"}:{};return re.createElement("div",wS({className:j,style:P},$),re.createElement("p",{className:z,style:O},re.isValidElement(M)?M:"".concat(M)),C())};function ep(e){"@babel/helpers - typeof";return ep=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},ep(e)}function u1(e,t,r){return t=a8e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a8e(e){var t=i8e(e,"string");return ep(t)=="symbol"?t:t+""}function i8e(e,t){if(ep(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ep(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xd="recharts-tooltip-wrapper",s8e={visibility:"hidden"};function o8e(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Lt(Xd,u1(u1(u1(u1({},"".concat(Xd,"-right"),Ue(r)&&t&&Ue(t.x)&&r>=t.x),"".concat(Xd,"-left"),Ue(r)&&t&&Ue(t.x)&&r<t.x),"".concat(Xd,"-bottom"),Ue(n)&&t&&Ue(t.y)&&n>=t.y),"".concat(Xd,"-top"),Ue(n)&&t&&Ue(t.y)&&n<t.y))}function gj(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,a=e.offsetTopLeft,i=e.position,s=e.reverseDirection,o=e.tooltipDimension,u=e.viewBox,c=e.viewBoxDimension;if(i&&Ue(i[n]))return i[n];var h=r[n]-o-a,d=r[n]+a;if(t[n])return s[n]?h:d;if(s[n]){var m=h,v=u[n];return m<v?Math.max(d,u[n]):Math.max(h,u[n])}var y=d+o,b=u[n]+c;return y>b?Math.max(h,u[n]):Math.max(d,u[n])}function l8e(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function u8e(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipBox,o=e.useTranslate3d,u=e.viewBox,c,h,d;return s.height>0&&s.width>0&&r?(h=gj({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:s.width,viewBox:u,viewBoxDimension:u.width}),d=gj({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:s.height,viewBox:u,viewBoxDimension:u.he
928ight}),c=l8e({translateX:h,translateY:d,useTranslate3d:o})):c=s8e,{cssProperties:c,cssClasses:o8e({translateX:h,translateY:d,coordinate:r})}}function Jf(e){"@babel/helpers - typeof";return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jf(e)}function vj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vj(Object(r),!0).forEach(function(n){SS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f8e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gK(n.key),n)}}function d8e(e,t,r){return t&&f8e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}
vendor: 25,457 bytes, lines 928-935
928function h8e(e,t,r){return t=Rv(t),p8e(e,mK()?Reflect.construct(t,r||[],Rv(e).constructor):t.apply(e,r))}function p8e(e,t){if(t&&(Jf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m8e(e)}function m8e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mK=function(){return!!e})()}function Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rv(e)}function g8e(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&&_S(e,t)}function _S(e,t){return _S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},_S(e,t)}function SS(e,t,r){return t=gK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gK(e){var t=v8e(e,"string");return Jf(t)=="symbol"?t:t+""}function v8e(e,t){if(Jf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bj=1,y8e=(function(e){function t(){var r;c8e(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=h8e(this,t,[].concat(a)),SS(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),SS(r,"handleKeyDown",function(s){if(s.key==="Escape"){var o,u,c,h;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(o=(u=r.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&o!==void 0?o:0,y:(c=(h=r.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&c!==void 0?c:0}})}}),r}return g8e(t,e),d8e(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>bj||Math.abs(n.height-this.state.lastBoundingBox.height)>bj)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,s=a.allowEscapeViewBox,o=a.animationDuration,u=a.animationEasing,c=a.children,h=a.coordinate,d=a.hasPayload,m=a.isAnimationActive,v=a.offset,y=a.position,b=a.reverseDirection,E=a.useTranslate3d,_=a.viewBox,T=a.wrapperStyle,C=u8e({allowEscapeViewBox:s,coordinate:h,offsetTopLeft:v,position:y,reverseDirection:b,tooltipBox:this.state.lastBoundingBox,useTranslate3d:E,viewBox:_}),P=C.cssClasses,O=C.cssProperties,k=yj(yj({transition:m&&i?"transform ".concat(o,"ms ").concat(u):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},T);return re.createElement("div",{tabIndex:-1,className:P,style:k,ref:function(j){n.wrapperNode=j}},c)}}])})(N.PureComponent),b8e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},$0={isSsr:b8e()};function e0(e){"@babel/helpers - typeof";return e0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e0(e)}function xj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ej(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xj(Object(r),!0).forEach(function(n){J8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E8e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yK(n.key),n)}}function w8e(e,t,r){return t&&E8e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _8e(e,t,r){return t=Mv(t),S8e(e,vK()?Reflect.construct(t,r||[],Mv(e).constructor):t.apply(e,r))}function S8e(e,t){if(t&&(e0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T8e(e)}function T8e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vK=function(){return!!e})()}function Mv(e){return Mv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mv(e)}function A8e(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&&TS(e,t)}function TS(e,t){return TS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},TS(e,t)}function J8(e,t,r){return t=yK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yK(e){var t=C8e(e,"string");return e0(t)=="symbol"?t:t+""}function C8e(e,t){if(e0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(e0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function O8e(e){return e.dataKey}function k8e(e,t){return re.isValidElement(e)?re.cloneElement(e,t):typeof e=="function"?re.createElement(e,t):re.createElement(n8e,t)}var Mi=(function(e){function t(){return x8e(this,t),_8e(this,t,arguments)}return A8e(t,e),w8e(t,[{key:"render",value:function(){var n=this,a=this.props,i=a.active,s=a.allowEscapeViewBox,o=a.animationDuration,u=a.animationEasing,c=a.content,h=a.coordinate,d=a.filterNull,m=a.isAnimationActive,v=a.offset,y=a.payload,b=a.payloadUniqBy,E=a.position,_=a.reverseDirection,T=a.useTranslate3d,C=a.viewBox,P=a.wrapperStyle,O=y??[];d&&O.length&&(O=lK(y.filter(function(M){return M.value!=null&&(M.hide!==!0||n.props.includeHidden)}),b,O8e));var k=O.length>0;return re.createElement(y8e,{allowEscapeViewBox:s,animationDuration:o,animationEasing:u,isAnimationActive:m,active:i,coordinate:h,hasPayload:k,offset:v,position:E,reverseDirection:_,useTranslate3d:T,viewBox:C,wrapperStyle:P},k8e(c,Ej(Ej({},this.props),{},{payload:O})))}}])})(N.PureComponent);J8(Mi,"displayName","Tooltip");J8(Mi,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!$0.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Nw,wj;function N8e(){if(wj)return Nw;wj=1;var e=ks(),t=function(){return e.Date.now()};return Nw=t,Nw}var Rw,_j;function R8e(){if(_j)return Rw;_j=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Rw=t,Rw}var Mw,Sj;function M8e(){if(Sj)return Mw;Sj=1;var e=R8e(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Mw=r,Mw}var Pw,Tj;function bK(){if(Tj)return Pw;Tj=1;var e=M8e(),t=jl(),r=j0(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function u(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var h=typeof c.valueOf=="function"?c.valueOf():c;c=t(h)?h+"":h}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=i.test(c);return d||s.test(c)?o(c.slice(2),d?2:8):a.test(c)?n:+c}return Pw=u,Pw}var Iw,Aj;function P8e(){if(Aj)return Iw;Aj=1;var e=jl(),t=N8e(),r=bK(),n="Expected a function",a=Math.max,i=Math.min;function s(o,u,c){var h,d,m,v,y,b,E=0,_=!1,T=!1,C=!0;if(typeof o!="function")throw new TypeError(n);u=r(u)||0,e(c)&&(_=!!c.leading,T="maxWait"in c,m=T?a(r(c.maxWait)||0,u):m,C="trailing"in c?!!c.trailing:C);function P(Q){var X=h,te=d;return h=d=void 0,E=Q,v=o.apply(te,X),v}function O(Q){return E=Q,y=setTimeout(j,u),_?P(Q):v}function k(Q){var X=Q-b,te=Q-E,U=u-X;return T?i(U,m-te):U}function M(Q){var X=Q-b,te=Q-E;return b===void 0||X>=u||X<0||T&&te>=m}function j(){var Q=t();if(M(Q))return z(Q);y=setTimeout(j,k(Q))}function z(Q){return y=void 0,C&&h?P(Q):(h=d=void 0,v)}function $(){y!==void 0&&clearTimeout(y),E=0,h=b=d=y=void 0}function F(){return y===void 0?v:z(t())}function q(){var Q=t(),X=M(Q);if(h=arguments,d=this,b=Q,X){if(y===void 0)return O(b);if(T)return clearTimeout(y),y=setTimeout(j,u),P(b)}return y===void 0&&(y=setTimeout(j,u)),v}return q.cancel=$,q.flush=F,q}return Iw=s,Iw}var Dw,Cj;function I8e(){if(Cj)return Dw;Cj=1;var e=P8e(),t=jl(),r="Expected a function";function n(a,i,s){var o=!0,u=!0;if(typeof a!="function")throw new TypeError(r);return t(s)&&(o="leading"in s?!!s.leading:o,u="trailing"in s?!!s.trailing:u),e(a,i,{leading:o,maxWait:i,trailing:u})}return Dw=n,Dw}var D8e=I8e();const xK=er(D8e);function tp(e){"@babel/helpers - typeof";return tp=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},tp(e)}function Oj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function c1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oj(Object(r),!0).forEach(function(n){L8e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L8e(e,t,r){return t=j8e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j8e(e){var t=B8e(e,"string");return tp(t)=="symbol"?t:t+""}function B8e(e,t){if(tp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z8e(e,t){return H8e(e)||U8e(e,t)||F8e(e,t)||$8e()}function $8e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
929In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F8e(e,t){if(e){if(typeof e=="string")return kj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kj(e,t)}}function kj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U8e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function H8e(e){if(Array.isArray(e))return e}var Nj=N.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,a=n===void 0?{width:-1,height:-1}:n,i=e.width,s=i===void 0?"100%":i,o=e.height,u=o===void 0?"100%":o,c=e.minWidth,h=c===void 0?0:c,d=e.minHeight,m=e.maxHeight,v=e.children,y=e.debounce,b=y===void 0?0:y,E=e.id,_=e.className,T=e.onResize,C=e.style,P=C===void 0?{}:C,O=N.useRef(null),k=N.useRef();k.current=T,N.useImperativeHandle(t,function(){return Object.defineProperty(O.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),O.current},configurable:!0})});var M=N.useState({containerWidth:a.width,containerHeight:a.height}),j=z8e(M,2),z=j[0],$=j[1],F=N.useCallback(function(Q,X){$(function(te){var U=Math.round(Q),J=Math.round(X);return te.containerWidth===U&&te.containerHeight===J?te:{containerWidth:U,containerHeight:J}})},[]);N.useEffect(function(){var Q=function(de){var G,Y=de[0].contentRect,W=Y.width,L=Y.height;F(W,L),(G=k.current)===null||G===void 0||G.call(k,W,L)};b>0&&(Q=xK(Q,b,{trailing:!0,leading:!1}));var X=new ResizeObserver(Q),te=O.current.getBoundingClientRect(),U=te.width,J=te.height;return F(U,J),X.observe(O.current),function(){X.disconnect()}},[F,b]);var q=N.useMemo(function(){var Q=z.containerWidth,X=z.containerHeight;if(Q<0||X<0)return null;ho(Su(s)||Su(u),`The width(%s) and height(%s) are both fixed numbers,
930       maybe you don't need to use a ResponsiveContainer.`,s,u),ho(!r||r>0,"The aspect(%s) must be greater than zero.",r);var te=Su(s)?Q:s,U=Su(u)?X:u;r&&r>0&&(te?U=te/r:U&&(te=U*r),m&&U>m&&(U=m)),ho(te>0||U>0,`The width(%s) and height(%s) of chart should be greater than 0,
931       please check the style of container, or the props width(%s) and height(%s),
932       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
933       height and width.`,te,U,s,u,h,d,r);var J=!Array.isArray(v)&&fo(v.type).endsWith("Chart");return re.Children.map(v,function(ee){return re.isValidElement(ee)?N.cloneElement(ee,c1({width:te,height:U},J?{style:c1({height:"100%",width:"100%",maxHeight:U,maxWidth:te},ee.props.style)}:{})):ee})},[r,v,u,m,d,h,z,s]);return re.createElement("div",{id:E?"".concat(E):void 0,className:Lt("recharts-responsive-container",_),style:c1(c1({},P),{},{width:s,height:u,minWidth:h,minHeight:d,maxHeight:m}),ref:O},q)}),e7=function(t){return null};e7.displayName="Cell";function rp(e){"@babel/helpers - typeof";return rp=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},rp(e)}function Rj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function AS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rj(Object(r),!0).forEach(function(n){q8e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q8e(e,t,r){return t=V8e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V8e(e){var t=G8e(e,"string");return rp(t)=="symbol"?t:t+""}function G8e(e,t){if(rp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var df={widthCache:{},cacheCount:0},W8e=2e3,Y8e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Mj="recharts_measurement_span";function X8e(e){var t=AS({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Oh=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||$0.isSsr)return{width:0,height:0};var n=X8e(r),a=JSON.stringify({text:t,copyStyle:n});if(df.widthCache[a])return df.widthCache[a];try{var i=document.getElementById(Mj);i||(i=document.createElement("span"),i.setAttribute("id",Mj),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var s=AS(AS({},Y8e),n);Object.assign(i.style,s),i.textContent="".concat(t);var o=i.getBoundingClientRect(),u={width:o.width,height:o.height};return df.widthCache[a]=u,++df.cacheCount>W8e&&(df.cacheCount=0,df.widthCache={}),u}catch{return{width:0,height:0}}},K8e=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function np(e){"@babel/helpers - typeof";return np=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},np(e)}function Pv(e,t){return e7e(e)||J8e(e,t)||Z8e(e,t)||Q8e()}function Q8e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
934In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z8e(e,t){if(e){if(typeof e=="string")return Pj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pj(e,t)}}function Pj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function J8e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function e7e(e){if(Array.isArray(e))return e}function t7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ij(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n7e(n.key),n)}}function r7e(e,t,r){return t&&Ij(e.prototype,t),r&&Ij(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function n7e(e){var t=a7e(e,"string");return np(t)=="symbol"?t:t+""}function a7e(e,t){if(np(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(np(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Dj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Lj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,i7e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,s7e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,EK={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},o7e=Object.keys(EK),Tf="NaN";function l7e(e,t){return e*EK[t]}var f1=(function(){function e(t,r){t7e(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!i7e.test(r)&&(this.num=NaN,this.unit=""),o7e.includes(r)&&(this.num=l7e(t,r),this.unit="px")}return r7e(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,a=(n=s7e.exec(r))!==null&&n!==void 0?n:[],i=Pv(a,3),s=i[1],o=i[2];return new e(parseFloat(s),o??"")}}])})();function wK(e){if(e.includes(Tf))return Tf;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Dj.exec(t))!==null&&r!==void 0?r:[],a=Pv(n,4),i=a[1],s=a[2],o=a[3],u=f1.parse(i??""),c=f1.parse(o??""),h=s==="*"?u.multiply(c):u.divide(c);if(h.isNaN())return Tf;t=t.replace(Dj,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,m=(d=Lj.exec(t))!==null&&d!==void 0?d:[],v=Pv(m,4),y=v[1],b=v[2],E=v[3],_=f1.parse(y??""),T=f1.parse(E??""),C=b==="+"?_.add(T):_.subtract(T);if(C.isNaN())return Tf;t=t.replace(Lj,C.toString())}return t}var jj=/\(([^()]*)\)/;function u7e(e){for(var t=e;t.includes("(");){var r=jj.exec(t),n=Pv(r,2),a=n[1];t=t.replace(jj,wK(a))}return t}function c7e(e){var t=e.replace(/\s+/g,"");return t=u7e(t),t=wK(t),t}function f7e(e){try{return c7e(e)}catch{return Tf}}function Lw(e){var t=f7e(e.slice(5,-1));return t===Tf?"":t}var d7e=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],h7e=["dx","dy","angle","className","breakAll"];function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CS.apply(this,arguments)}function Bj(e,t){if(e==null)return{};var r=p7e(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p7e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function zj(e,t){return y7e(e)||v7e(e,t)||g7e(e,t)||m7e()}function m7e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
935In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g7e(e,t){if(e){if(typeof e=="string")return $j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $j(e,t)}}function $j(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v7e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function y7e(e){if(Array.isArray(e))return e}var _K=/[ \f\n\r\t\v\u2028\u2029]+/,SK=function(t){var r=t.children,n=t.breakAll,a=t.style;try{var i=[];Mt(r)||(n?i=r.toString().split(""):i=r.toString().split(_K));var s=i.map(function(u){return{word:u,width:Oh(u,a).width}}),o=n?0:Oh(" ",a).width;return{wordsWithComputedWidth:s,spaceWidth:o}}catch{return null}},b7e=function(t,r,n,a,i){var s=t.maxLines,o=t.children,u=t.style,c=t.breakAll,h=Ue(s),d=o,m=function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return te.reduce(function(U,J){var ee=J.word,de=J.width,G=U[U.length-1];if(G&&(a==null||i||G.width+de+n<Number(a)))G.words.push(ee),G.width+=de+n;else{var Y={words:[ee],width:de};U.push(Y)}return U},[])},v=m(r),y=function(te){return te.reduce(function(U,J){return U.width>J.width?U:J})};if(!h)return v;for(var b="…",E=function(te){var U=d.slice(0,te),J=SK({breakAll:c,style:u,children:U+b}).wordsWithComputedWidth,ee=m(J),de=ee.length>s||y(ee).width>Number(a);return[de,ee]},_=0,T=d.length-1,C=0,P;_<=T&&C<=d.length-1;){var O=Math.floor((_+T)/2),k=O-1,M=E(k),j=zj(M,2),z=j[0],$=j[1],F=E(O),q=zj(F,1),Q=q[0];if(!z&&!Q&&(_=O+1),z&&Q&&(T=O-1),!z&&Q){P=$;break}C++}return P||v},Fj=function(t){var r=Mt(t)?[]:t.toString().split(_K);return[{words:r}]},x7e=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,s=t.breakAll,o=t.maxLines;if((r||n)&&!$0.isSsr){var u,c,h=SK({breakAll:s,children:a,style:i});if(h){var d=h.wordsWithComputedWidth,m=h.spaceWidth;u=d,c=m}else return Fj(a);return b7e({breakAll:s,children:a,maxLines:o,style:i},u,c,r,n)}return Fj(a)},Uj="#808080",Iv=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,s=t.lineHeight,o=s===void 0?"1em":s,u=t.capHeight,c=u===void 0?"0.71em":u,h=t.scaleToFit,d=h===void 0?!1:h,m=t.textAnchor,v=m===void 0?"start":m,y=t.verticalAnchor,b=y===void 0?"end":y,E=t.fill,_=E===void 0?Uj:E,T=Bj(t,d7e),C=N.useMemo(function(){return x7e({breakAll:T.breakAll,children:T.children,maxLines:T.maxLines,scaleToFit:d,style:T.style,width:T.width})}
935,[T.breakAll,T.children,T.maxLines,d,T.style,T.width]),P=T.dx,O=T.dy,k=T.angle,M=T.className,j=T.breakAll,z=Bj(T,h7e);if(!fn(n)||!fn(i))return null;var $=n+(Ue(P)?P:0),F=i+(Ue(O)?O:0),q;switch(b){case"start":q=Lw("calc(".concat(c,")"));break;case"middle":q=Lw("calc(".concat((C.length-1)/2," * -").concat(o," + (").concat(c," / 2))"));break;default:q=Lw("calc(".concat(C.length-1," * -").concat(o,")"));break}var Q=[];if(d){var X=C[0].width,te=T.width;Q.push("scale(".concat((Ue(te)?te/X:1)/X,")"))}return k&&Q.push("rotate(".concat(k,", ").concat($,", ").concat(F,")")),Q.length&&(z.transform=Q.join(" ")),re.createElement("text",CS({},Ft(z,!0),{x:$,y:F,className:Lt("recharts-text",M),textAnchor:v,fill:_.includes("url")?Uj:_}),C.map(function(U,J){var ee=U.words.join(j?"":" ");return re.createElement("tspan",{x:$,dy:J===0?q:o,key:"".concat(ee,"-").concat(J)},ee)}))};function El(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function E7e(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function t7(e){let t,r,n;e.length!==2?(t=El,r=(o,u)=>El(e(o),u),n=(o,u)=>e(o)-u):(t=e===El||e===E7e?e:w7e,r=e,n=e);function a(o,u,c=0,h=o.length){if(c<h){if(t(u,u)!==0)return h;do{const d=c+h>>>1;r(o[d],u)<0?c=d+1:h=d}while(c<h)}return c}function i(o,u,c=0,h=o.length){if(c<h){if(t(u,u)!==0)return h;do{const d=c+h>>>1;r(o[d],u)<=0?c=d+1:h=d}while(c<h)}return c}function s(o,u,c=0,h=o.length){const d=a(o,u,c,h-1);return d>c&&n(o[d-1],u)>-n(o[d],u)?d-1:d}return{left:a,center:s,right:i}}function w7e(){return 0}function TK(e){return e===null?NaN:+e}function*_7e(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const S7e=t7(El),sm=S7e.right;t7(TK).center;class Hj extends Map{constructor(t,r=C7e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(qj(this,t))}has(t){return super.has(qj(this,t))}set(t,r){return super.set(T7e(this,t),r)}delete(t){return super.delete(A7e(this,t))}}function qj({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function T7e({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function A7e({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function C7e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function O7e(e=El){if(e===El)return AK;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function AK(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const k7e=Math.sqrt(50),N7e=Math.sqrt(10),R7e=Math.sqrt(2);function Dv(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),s=i>=k7e?10:i>=N7e?5:i>=R7e?2:1;let o,u,c;return a<0?(c=Math.pow(10,-a)/s,o=Math.round(e*c),u=Math.round(t*c),o/c<e&&++o,u/c>t&&--u,c=-c):(c=Math.pow(10,a)*s,o=Math.round(e/c),u=Math.round(t/c),o*c<e&&++o,u*c>t&&--u),u<o&&.5<=r&&r<2?Dv(e,t,r*2):[o,u,c]}function OS(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[a,i,s]=n?Dv(t,e,r):Dv(e,t,r);if(!(i>=a))return[];const o=i-a+1,u=new Array(o);if(n)if(s<0)for(let c=0;c<o;++c)u[c]=(i-c)/-s;else for(let c=0;c<o;++c)u[c]=(i-c)*s;else if(s<0)for(let c=0;c<o;++c)u[c]=(a+c)/-s;else for(let c=0;c<o;++c)u[c]=(a+c)*s;return u}function kS(e,t,r){return t=+t,e=+e,r=+r,Dv(e,t,r)[2]}function NS(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?kS(t,e,r):kS(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function Vj(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}return r}function Gj(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function CK(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?AK:O7e(a);n>r;){if(n-r>600){const u=n-r+1,c=t-r+1,h=Math.log(u),d=.5*Math.exp(2*h/3),m=.5*Math.sqrt(h*d*(u-d)/u)*(c-u/2<0?-1:1),v=Math.max(r,Math.floor(t-c*d/u+m)),y=Math.min(n,Math.floor(t+(u-c)*d/u+m));CK(e,t,v,y,a)}const i=e[t];let s=r,o=n;for(Kd(e,r,t),a(e[n],i)>0&&Kd(e,r,n);s<o;){for(Kd(e,s,o),++s,--o;a(e[s],i)<0;)++s;for(;a(e[o],i)>0;)--o}a(e[r],i)===0?Kd(e,r,o):(++o,Kd(e,o,n)),o<=t&&(r=o+1),t<=o&&(n=o-1)}return e}function Kd(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function M7e(e,t,r){if(e=Float64Array.from(_7e(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Gj(e);if(t>=1)return Vj(e);var n,a=(n-1)*t,i=Math.floor(a),s=Vj(CK(e,i).subarray(0,i+1)),o=Gj(e.subarray(i+1));return s+(o-s)*(a-i)}}function P7e(e,t,r=TK){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),s=+r(e[i],i,e),o=+r(e[i+1],i+1,e);return s+(o-s)*(a-i)}}function I7e(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n<a;)i[n]=e+n*r;return i}function Si(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ro(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 10,456 bytes, line 935
935const RS=Symbol("implicit");function r7(){var e=new Hj,t=[],r=[],n=RS;function a(i){let s=e.get(i);if(s===void 0){if(n!==RS)return n;e.set(i,s=t.push(i)-1)}return r[s%r.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new Hj;for(const s of i)e.has(s)||e.set(s,t.push(s)-1);return a},a.range=function(i){return arguments.length?(r=Array.from(i),a):r.slice()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return r7(t,r).unknown(n)},Si.apply(a,arguments),a}function ap(){var e=r7().unknown(void 0),t=e.domain,r=e.range,n=0,a=1,i,s,o=!1,u=0,c=0,h=.5;delete e.unknown;function d(){var m=t().length,v=a<n,y=v?a:n,b=v?n:a;i=(b-y)/Math.max(1,m-u+c*2),o&&(i=Math.floor(i)),y+=(b-y-i*(m-u))*h,s=i*(1-u),o&&(y=Math.round(y),s=Math.round(s));var E=I7e(m).map(function(_){return y+i*_});return r(v?E.reverse():E)}return e.domain=function(m){return arguments.length?(t(m),d()):t()},e.range=function(m){return arguments.length?([n,a]=m,n=+n,a=+a,d()):[n,a]},e.rangeRound=function(m){return[n,a]=m,n=+n,a=+a,o=!0,d()},e.bandwidth=function(){return s},e.step=function(){return i},e.round=function(m){return arguments.length?(o=!!m,d()):o},e.padding=function(m){return arguments.length?(u=Math.min(1,c=+m),d()):u},e.paddingInner=function(m){return arguments.length?(u=Math.min(1,m),d()):u},e.paddingOuter=function(m){return arguments.length?(c=+m,d()):c},e.align=function(m){return arguments.length?(h=Math.max(0,Math.min(1,m)),d()):h},e.copy=function(){return ap(t(),[n,a]).round(o).paddingInner(u).paddingOuter(c).align(h)},Si.apply(d(),arguments)}function OK(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return OK(t())},e}function kh(){return OK(ap.apply(null,arguments).paddingInner(1))}function n7(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function kK(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function om(){}var ip=.7,Lv=1/ip,Lf="\\s*([+-]?\\d+)\\s*",sp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",D7e=/^#([0-9a-f]{3,8})$/,L7e=new RegExp(`^rgb\\(${Lf},${Lf},${Lf}\\)$`),j7e=new RegExp(`^rgb\\(${vs},${vs},${vs}\\)$`),B7e=new RegExp(`^rgba\\(${Lf},${Lf},${Lf},${sp}\\)$`),z7e=new RegExp(`^rgba\\(${vs},${vs},${vs},${sp}\\)$`),$7e=new RegExp(`^hsl\\(${sp},${vs},${vs}\\)$`),F7e=new RegExp(`^hsla\\(${sp},${vs},${vs},${sp}\\)$`),Wj={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};n7(om,op,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Yj,formatHex:Yj,formatHex8:U7e,formatHsl:H7e,formatRgb:Xj,toString:Xj});function Yj(){return this.rgb().formatHex()}function U7e(){return this.rgb().formatHex8()}function H7e(){return NK(this).formatHsl()}function Xj(){return this.rgb().formatRgb()}function op(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=D7e.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Kj(t):r===3?new xa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?d1(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?d1(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=L7e.exec(e))?new xa(t[1],t[2],t[3],1):(t=j7e.exec(e))?new xa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=B7e.exec(e))?d1(t[1],t[2],t[3],t[4]):(t=z7e.exec(e))?d1(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$7e.exec(e))?Jj(t[1],t[2]/100,t[3]/100,1):(t=F7e.exec(e))?Jj(t[1],t[2]/100,t[3]/100,t[4]):Wj.hasOwnProperty(e)?Kj(Wj[e]):e==="transparent"?new xa(NaN,NaN,NaN,0):null}function Kj(e){return new xa(e>>16&255,e>>8&255,e&255,1)}function d1(e,t,r,n){return n<=0&&(e=t=r=NaN),new xa(e,t,r,n)}function q7e(e){return e instanceof om||(e=op(e)),e?(e=e.rgb(),new xa(e.r,e.g,e.b,e.opacity)):new xa}function MS(e,t,r,n){return arguments.length===1?q7e(e):new xa(e,t,r,n??1)}function xa(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}n7(xa,MS,kK(om,{brighter(e){return e=e==null?Lv:Math.pow(Lv,e),new xa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ip:Math.pow(ip,e),new xa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xa(ku(this.r),ku(this.g),ku(this.b),jv(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Qj,formatHex:Qj,formatHex8:V7e,formatRgb:Zj,toString:Zj}));function Qj(){return`#${Tu(this.r)}${Tu(this.g)}${Tu(this.b)}`}function V7e(){return`#${Tu(this.r)}${Tu(this.g)}${Tu(this.b)}${Tu((isNaN(this.opacity)?1:this.opacity)*255)}`}function Zj(){const e=jv(this.opacity);return`${e===1?"rgb(":"rgba("}${ku(this.r)}, ${ku(this.g)}, ${ku(this.b)}${e===1?")":`, ${e})`}`}function jv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ku(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Tu(e){return e=ku(e),(e<16?"0":"")+e.toString(16)}function Jj(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Bi(e,t,r,n)}function NK(e){if(e instanceof Bi)return new Bi(e.h,e.s,e.l,e.opacity);if(e instanceof om||(e=op(e)),!e)return new Bi;if(e instanceof Bi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),s=NaN,o=i-a,u=(i+a)/2;return o?(t===i?s=(r-n)/o+(r<n)*6:r===i?s=(n-t)/o+2:s=(t-r)/o+4,o/=u<.5?i+a:2-i-a,s*=60):o=u>0&&u<1?0:s,new Bi(s,o,u,e.opacity)}function G7e(e,t,r,n){return arguments.length===1?NK(e):new Bi(e,t,r,n??1)}function Bi(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}n7(Bi,G7e,kK(om,{brighter(e){return e=e==null?Lv:Math.pow(Lv,e),new Bi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ip:Math.pow(ip,e),new Bi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new xa(jw(e>=240?e-240:e+120,a,n),jw(e,a,n),jw(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Bi(eB(this.h),h1(this.s),h1(this.l),jv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=jv(this.opacity);return`${e===1?"hsl(":"hsla("}${eB(this.h)}, ${h1(this.s)*100}%, ${h1(this.l)*100}%${e===1?")":`, ${e})`}`}}));function eB(e){return e=(e||0)%360,e<0?e+360:e}function h1(e){return Math.max(0,Math.min(1,e||0))}function jw(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Rb=e=>()=>e;function RK(e,t){return function(r){return e+r*t}}function W7e(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Nje(e,t){var r=t-e;return r?RK(e,r>180||r<-180?r-360*Math.round(r/360):r):Rb(isNaN(e)?t:e)}function Y7e(e){return(e=+e)==1?MK:function(t,r){return r-t?W7e(t,r,e):Rb(isNaN(t)?r:t)}}function MK(e,t){var r=t-e;return r?RK(e,r):Rb(isNaN(e)?t:e)}const tB=(function e(t){var r=Y7e(t);function n(a,i){var s=r((a=MS(a)).r,(i=MS(i)).r),o=r(a.g,i.g),u=r(a.b,i.b),c=MK(a.opacity,i.opacity);return function(h){return a.r=s(h),a.g=o(h),a.b=u(h),a.opacity=c(h),a+""}}return n.gamma=e,n})(1);function X7e(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;a<r;++a)n[a]=e[a]*(1-i)+t[a]*i;return n}}function K7e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Q7e(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,a=new Array(n),i=new Array(r),s;for(s=0;s<n;++s)a[s]=F0(e[s],t[s]);for(;s<r;++s)i[s]=t[s];return function(o){for(s=0;s<n;++s)i[s]=a[s](o);return i}}function Z7e(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Bv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function J7e(e,t){var r={},n={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});
vendor: 4,871 bytes, line 935
935for(a in t)a in e?r[a]=F0(e[a],t[a]):n[a]=t[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var PS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bw=new RegExp(PS.source,"g");function eCe(e){return function(){return e}}function tCe(e){return function(t){return e(t)+""}}function rCe(e,t){var r=PS.lastIndex=Bw.lastIndex=0,n,a,i,s=-1,o=[],u=[];for(e=e+"",t=t+"";(n=PS.exec(e))&&(a=Bw.exec(t));)(i=a.index)>r&&(i=t.slice(r,i),o[s]?o[s]+=i:o[++s]=i),(n=n[0])===(a=a[0])?o[s]?o[s]+=a:o[++s]=a:(o[++s]=null,u.push({i:s,x:Bv(n,a)})),r=Bw.lastIndex;return r<t.length&&(i=t.slice(r),o[s]?o[s]+=i:o[++s]=i),o.length<2?u[0]?tCe(u[0].x):eCe(t):(t=u.length,function(c){for(var h=0,d;h<t;++h)o[(d=u[h]).i]=d.x(c);return o.join("")})}function F0(e,t){var r=typeof t,n;return t==null||r==="boolean"?Rb(t):(r==="number"?Bv:r==="string"?(n=op(t))?(t=n,tB):rCe:t instanceof op?tB:t instanceof Date?Z7e:K7e(t)?X7e:Array.isArray(t)?Q7e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?J7e:Bv)(e,t)}function a7(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function nCe(e,t){t===void 0&&(t=e,e=F0);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(s){var o=Math.max(0,Math.min(n-1,Math.floor(s*=n)));return i[o](s-o)}}function aCe(e){return function(){return e}}function zv(e){return+e}var rB=[0,1];function ra(e){return e}function IS(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:aCe(isNaN(t)?NaN:.5)}function iCe(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function sCe(e,t,r){var n=e[0],a=e[1],i=t[0],s=t[1];return a<n?(n=IS(a,n),i=r(s,i)):(n=IS(n,a),i=r(i,s)),function(o){return i(n(o))}}function oCe(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),i=new Array(n),s=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<n;)a[s]=IS(e[s],e[s+1]),i[s]=r(t[s],t[s+1]);return function(o){var u=sm(e,o,1,n)-1;return i[u](a[u](o))}}function lm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Mb(){var e=rB,t=rB,r=F0,n,a,i,s=ra,o,u,c;function h(){var m=Math.min(e.length,t.length);return s!==ra&&(s=iCe(e[0],e[m-1])),o=m>2?oCe:sCe,u=c=null,d}function d(m){return m==null||isNaN(m=+m)?i:(u||(u=o(e.map(n),t,r)))(n(s(m)))}return d.invert=function(m){return s(a((c||(c=o(t,e.map(n),Bv)))(m)))},d.domain=function(m){return arguments.length?(e=Array.from(m,zv),h()):e.slice()},d.range=function(m){return arguments.length?(t=Array.from(m),h()):t.slice()},d.rangeRound=function(m){return t=Array.from(m),r=a7,h()},d.clamp=function(m){return arguments.length?(s=m?!0:ra,h()):s!==ra},d.interpolate=function(m){return arguments.length?(r=m,h()):r},d.unknown=function(m){return arguments.length?(i=m,d):i},function(m,v){return n=m,a=v,h()}}function i7(){return Mb()(ra,ra)}function lCe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $v(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function t0(e){return e=$v(Math.abs(e)),e?e[1]:NaN}function uCe(e,t){return function(r,n){for(var a=r.length,i=[],s=0,o=e[0],u=0;a>0&&o>0&&(u+o+1>n&&(o=Math.max(1,n-u)),i.push(r.substring(a-=o,a+o)),!((u+=o+1)>n));)o=e[s=(s+1)%e.length];return i.reverse().join(t)}}function cCe(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var fCe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function lp(e){if(!(t=fCe.exec(e)))throw new Error("invalid format: "+e);var t;return new s7({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}lp.prototype=s7.prototype;function s7(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}s7.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function dCe(e){e:for(var t=e.length,r=1,n=-1,a;r<t;++r)switch(e[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var PK;function hCe(e,t){var r=$v(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(PK=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=n.length;return i===s?n:i>s?n+new Array(i-s+1).join("0"):i>
9350?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+$v(e,Math.max(0,t+i-1))[0]}function nB(e,t){var r=$v(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const aB={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:lCe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>nB(e*100,t),r:nB,s:hCe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function iB(e){return e}var sB=Array.prototype.map,oB=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pCe(e){var t=e.grouping===void 0||e.thousands===void 0?iB:uCe(sB.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?iB:cCe(sB.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(d){d=lp(d);var m=d.fill,v=d.align,y=d.sign,b=d.symbol,E=d.zero,_=d.width,T=d.comma,C=d.precision,P=d.trim,O=d.type;O==="n"?(T=!0,O="g"):aB[O]||(C===void 0&&(C=12),P=!0,O="g"),(E||m==="0"&&v==="=")&&(E=!0,m="0",v="=");var k=b==="$"?r:b==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",M=b==="$"?n:/[%p]/.test(O)?s:"",j=aB[O],z=/[defgprs%]/.test(O);C=C===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function $(F){var q=k,Q=M,X,te,U;if(O==="c")Q=j(F)+Q,F="";else{F=+F;var J=F<0||1/F<0;if(F=isNaN(F)?u:j(Math.abs(F),C),P&&(F=dCe(F)),J&&+F==0&&y!=="+"&&(J=!1),q=(J?y==="("?y:o:y==="-"||y==="("?"":y)+q,Q=(O==="s"?oB[8+PK/3]:"")+Q+(J&&y==="("?")":""),z){for(X=-1,te=F.length;++X<te;)if(U=F.charCodeAt(X),48>U||U>57){Q=(U===46?a+F.slice(X+1):F.slice(X))+Q,F=F.slice(0,X);break}}}T&&!E&&(F=t(F,1/0));var ee=q.length+F.length+Q.length,de=ee<_?new Array(_-ee+1).join(m):"";switch(T&&E&&(F=t(de+F,de.length?_-Q.length:1/0),de=""),v){case"<":F=q+F+Q+de;break;case"=":F=q+de+F+Q;break;case"^":F=de.slice(0,ee=de.length>>1)+q+F+Q+de.slice(ee);break;default:F=de+q+F+Q;break}return i(F)}return $.toString=function(){return d+""},$}function h(d,m){var v=c((d=lp(d),d.type="f",d)),y=Math.max(-8,Math.min(8,Math.floor(t0(m)/3)))*3,b=Math.pow(10,-y),E=oB[8+y/3];return function(_){return v(b*_)+E}}return{format:c,formatPrefix:h}}var p1,o7,IK;mCe({thousands:",",grouping:[3],currency:["$",""]});function mCe(e){return p1=pCe(e),o7=p1.format,IK=p1.formatPrefix,p1}function gCe(e){return Math.max(0,-t0(Math.abs(e)))}function vCe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(t0(t)/3)))*3-t0(Math.abs(e)))}function yCe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,t0(t)-t0(e))+1}function DK(e,t,r,n){var a=NS(e,t,r),i;switch(n=lp(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=vCe(a,s))&&(n.precision=i),IK(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=yCe(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=gCe(a))&&(n.precision=i-(n.type==="%")*2);break}}return o7(n)}function zl(e){var t=e.domain;return e.ticks=function(r){var n=t();return OS(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return DK(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,s=n[a],o=n[i],u,c,h=10;for(o<s&&(c=s,s=o,o=c,c=a,a=i,i=c);h-- >0;){if(c=kS(s,o,r),c===u)return n[a]=s,n[i]=o,t(n);if(c>0)s=Math.floor(s/c)*c,o=Math.ceil(o/c)*c;else if(c<0)s=Math.ceil(s*c)/c,o=Math.floor(o*c)/c;else break;u=c}return e},e}function Fv(){var e=i7();return e.copy=function(){return lm(e,Fv())},Si.apply(e,arguments),zl(e)}function LK(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,zv),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return LK(e).unknown(t)},e=arguments.length?Array.from(e,zv):[0,1],zl(r)}function jK(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],s;return i<a&&(s=r,r=n,n=s,s=a,a=i,i=s),e[r]=t.floor(a),e[n]=t.ceil(i),e}function lB(e){return Math.log(e)}function uB(e){return Math.exp(e)}function bCe(e){return-Math.log(-e)}function xCe(e){return-Math.exp(-e)}function ECe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function wCe(e){return e===10?ECe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function _Ce(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function cB(e){return(t,r)=>-e(-t,r)}function l7(e){const t=e(lB,uB),r=t.domain;let n=10,a,i;function s(){return a=_Ce(n),i=wCe(n),r()[0]<0?(a=cB(a),i=cB(i),e(bCe,xCe)):e(lB,uB),t}return t.base=function(o){return arguments.length?(n=+o,s()):n},t.domain=function(o){return arguments.length?(r(o),s()):r()},t.ticks=o=>{const u=r();let c=u[0],h=u[u.length-1];const d=h<c;d&&([c,h]=[h,c]);let m=a(c),v=a(h),y,b;const E=o==null?10:+o;let _=[];
vendor: 4,741 bytes, line 935
935if(!(n%1)&&v-m<E){if(m=Math.floor(m),v=Math.ceil(v),c>0){for(;m<=v;++m)for(y=1;y<n;++y)if(b=m<0?y/i(-m):y*i(m),!(b<c)){if(b>h)break;_.push(b)}}else for(;m<=v;++m)for(y=n-1;y>=1;--y)if(b=m>0?y/i(-m):y*i(m),!(b<c)){if(b>h)break;_.push(b)}_.length*2<E&&(_=OS(c,h,E))}else _=OS(m,v,Math.min(v-m,E)).map(i);return d?_.reverse():_},t.tickFormat=(o,u)=>{if(o==null&&(o=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=lp(u)).precision==null&&(u.trim=!0),u=o7(u)),o===1/0)return u;const c=Math.max(1,n*o/t.ticks().length);return h=>{let d=h/i(Math.round(a(h)));return d*n<n-.5&&(d*=n),d<=c?u(h):""}},t.nice=()=>r(jK(r(),{floor:o=>i(Math.floor(a(o))),ceil:o=>i(Math.ceil(a(o)))})),t}function BK(){const e=l7(Mb()).domain([1,10]);return e.copy=()=>lm(e,BK()).base(e.base()),Si.apply(e,arguments),e}function fB(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function dB(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function u7(e){var t=1,r=e(fB(t),dB(t));return r.constant=function(n){return arguments.length?e(fB(t=+n),dB(t)):t},zl(r)}function zK(){var e=u7(Mb());return e.copy=function(){return lm(e,zK()).constant(e.constant())},Si.apply(e,arguments)}function hB(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function SCe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function TCe(e){return e<0?-e*e:e*e}function c7(e){var t=e(ra,ra),r=1;function n(){return r===1?e(ra,ra):r===.5?e(SCe,TCe):e(hB(r),hB(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},zl(t)}function f7(){var e=c7(Mb());return e.copy=function(){return lm(e,f7()).exponent(e.exponent())},Si.apply(e,arguments),e}function ACe(){return f7.apply(null,arguments).exponent(.5)}function pB(e){return Math.sign(e)*e*e}function CCe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function $K(){var e=i7(),t=[0,1],r=!1,n;function a(i){var s=CCe(e(i));return isNaN(s)?n:r?Math.round(s):s}return a.invert=function(i){return e.invert(pB(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,zv)).map(pB)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return $K(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Si.apply(a,arguments),zl(a)}function FK(){var e=[],t=[],r=[],n;function a(){var s=0,o=Math.max(1,t.length);for(r=new Array(o-1);++s<o;)r[s-1]=P7e(e,s/o);return i}function i(s){return s==null||isNaN(s=+s)?n:t[sm(r,s)]}return i.invertExtent=function(s){var o=t.indexOf(s);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},i.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let o of s)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(El),a()},i.range=function(s){return arguments.length?(t=Array.from(s),a()):t.slice()},i.unknown=function(s){return arguments.length?(n=s,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return FK().domain(e).range(t).unknown(n)},Si.apply(i,arguments)}function UK(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function s(u){return u!=null&&u<=u?a[sm(n,u,0,r)]:i}function o(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return s}return s.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,o()):[e,t]},s.range=function(u){return arguments.length?(r=(a=Array.from(u)).length-1,o()):a.slice()},s.invertExtent=function(u){var c=a.indexOf(u);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},s.unknown=function(u){return arguments.length&&(i=u),s},s.thresholds=function(){return n.slice()},s.copy=function(){return UK().domain([e,t]).range(a).unknown(i)},Si.apply(zl(s),arguments)}function HK(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[sm(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var s=t.indexOf(i);return[e[s-1],e[s]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return HK().domain(e).range(t).unknown(r)},Si.apply(a,arguments)}const zw=new Date,$w=new Date;function pn(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const s=a(i),o=a.ceil(i);return i-s<o-i?s:o},a.offset=(i,s)=>(t(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,o)=>{const u=[];
vendor: 6,689 bytes, line 935
935if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i<s)||!(o>0))return u;let c;do u.push(c=new Date(+i)),t(i,o),e(i);while(c<i&&i<s);return u},a.filter=i=>pn(s=>{if(s>=s)for(;e(s),!i(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;t(s,-1),!i(s););else for(;--o>=0;)for(;t(s,1),!i(s););}),r&&(a.count=(i,s)=>(zw.setTime(+i),$w.setTime(+s),e(zw),e($w),Math.floor(r(zw,$w))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?s=>n(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Uv=pn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Uv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pn(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Uv);Uv.range;const no=1e3,mi=no*60,ao=mi*60,Eo=ao*24,d7=Eo*7,mB=Eo*30,Fw=Eo*365,Au=pn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*no)},(e,t)=>(t-e)/no,e=>e.getUTCSeconds());Au.range;const h7=pn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*no)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getMinutes());h7.range;const p7=pn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getUTCMinutes());p7.range;const m7=pn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*no-e.getMinutes()*mi)},(e,t)=>{e.setTime(+e+t*ao)},(e,t)=>(t-e)/ao,e=>e.getHours());m7.range;const g7=pn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ao)},(e,t)=>(t-e)/ao,e=>e.getUTCHours());g7.range;const um=pn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mi)/Eo,e=>e.getDate()-1);um.range;const Pb=pn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Eo,e=>e.getUTCDate()-1);Pb.range;const qK=pn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Eo,e=>Math.floor(e/Eo));qK.range;function cc(e){return pn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*mi)/d7)}const Ib=cc(0),Hv=cc(1),OCe=cc(2),kCe=cc(3),r0=cc(4),NCe=cc(5),RCe=cc(6);Ib.range;Hv.range;OCe.range;kCe.range;r0.range;NCe.range;RCe.range;function fc(e){return pn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/d7)}const Db=fc(0),qv=fc(1),MCe=fc(2),PCe=fc(3),n0=fc(4),ICe=fc(5),DCe=fc(6);Db.range;qv.range;MCe.range;PCe.range;n0.range;ICe.range;DCe.range;const v7=pn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());v7.range;const y7=pn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());y7.range;const wo=pn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});wo.range;const _o=pn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());_o.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});_o.range;function VK(e,t,r,n,a,i){const s=[[Au,1,no],[Au,5,5*no],[Au,15,15*no],[Au,30,30*no],[i,1,mi],[i,5,5*mi],[i,15,15*mi],[i,30,30*mi],[a,1,ao],[a,3,3*ao],[a,6,6*ao],[a,12,12*ao],[n,1,Eo],[n,2,2*Eo],[r,1,d7],[t,1,mB],[t,3,3*mB],[e,1,Fw]];function o(c,h,d){const m=h<c;m&&([c,h]=[h,c]);const v=d&&typeof d.range=="function"?d:u(c,h,d),y=v?v.range(c,+h+1):[];return m?y.reverse():y}function u(c,h,d){const m=Math.abs(h-c)/d,v=t7(([,,E])=>E).right(s,m);if(v===s.length)return e.every(NS(c/Fw,h/Fw,d));if(v===0)return Uv.every(Math.max(NS(c,h,d),1));const[y,b]=s[m/s[v-1][2]<s[v][2]/m?v-1:v];return y.every(b)}return[o,u]}const[LCe,jCe]=VK(_o,y7,Db,qK,g7,p7),[BCe,zCe]=VK(wo,v7,Ib,um,m7,h7);function Uw(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Hw(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Qd(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function $Ce(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,s=e.shortDays,o=e.months,u=e.shortMonths,c=Zd(a),h=Jd(a),d=Zd(i),m=Jd(i),v=Zd(s),y=Jd(s),b=Zd(o),E=Jd(o),_=Zd(u),T=Jd(u),C={a:J,A:ee,b:de,B:G,c:null,d:EB,e:EB,f:uOe,g:bOe,G:EOe,H:sOe,I:oOe,j:lOe,L:GK,m:cOe,M:fOe,p:Y,q:W,Q:SB,s:TB,S:dOe,u:hOe,U:pOe,V:mOe,w:gOe,W:vOe,x:null,X:null,y:yOe,Y:xOe,Z:wOe,"%":_B},P={a:L,A:le,b:fe,B:Se,c:null,d:wB,e:wB,f:AOe,g:LOe,G:BOe,H:_Oe,I:SOe,j:TOe,L:YK,m:COe,M:OOe,p:ye,q:Ne,Q:SB,s:TB,S:kOe,u:NOe,U:ROe,V:MOe,w:POe,W:IOe,x:null,X:null,y:DOe,Y:jOe,Z:zOe,"%":_B},O={a:$,A:F,b:q,B:Q,c:X,d:bB,e:bB,f:rOe,g:yB,G:vB,H:xB,I:xB,j:ZCe,L:tOe,m:QCe,M:JCe,p:z,q:KCe,Q:aOe,s:iOe,S:eOe,u:VCe,U:GCe,V:WCe,w:qCe,W:YCe,x:te,X:U,y:yB,Y:vB,Z:XCe,"%":nOe};C.x=k(r,C),C.X=k(n,C),C.c=k(t,C),P.x=k(r,P),P.X=k(n,P),P.c=k(t,P);function k(xe,Pe){return function(ze){var we=[],ft=-1,Qe=0,zt=xe.length,Pt,Ut,jr;for(ze instanceof Date||(ze=new Date(+ze));++ft<zt;)xe.charCodeAt(ft)===37&&(we.push(xe.slice(Qe,ft)),(Ut=gB[Pt=xe.charAt(++ft)])!=null?Pt=xe.charAt(++ft):Ut=Pt==="e"?" ":"0",(jr=Pe[Pt])&&(Pt=jr(ze,Ut)),we.push(Pt),Qe=ft+1);return we.push(xe.slice(Qe,ft)),we.join("")}}function M(xe,Pe){return function(ze){var we=Qd(1900,void 0,1),ft=j(we,xe,ze+="",0),Qe,zt;if(ft!=ze.length)return null;if("Q"in we)return new Date(we.Q);if("s"in we)return new Date(we.s*1e3+("L"in we?we.L:0));if(Pe&&!("Z"in we)&&(we.Z=0),"p"in we&&(we.H=we.H%12+we.p*12),we.m===void 0&&(we.m="q"in we?we.q:0),"V"in we){if(we.V<1||we.V>53)return null;"w"in we||(we.w=1),"Z"in we?(Qe=Hw(Qd(we.y,0,1)),zt=Qe.getUTCDay(),Qe=zt>4||zt===0?qv.ceil(Qe):qv(Qe),Qe=Pb.offset(Qe,(we.V-1)*7),we.y=Qe.getUTCFullYear(),we.m=Qe.getUTCMonth(),we.d=Qe.getUTCDate()+(we.w+6)%7):(Qe=Uw(Qd(we.y,0,1)),zt=Qe.getDay(),Qe=zt>4||zt===0?Hv.ceil(Qe):Hv(Qe),Qe=um.offset(Qe,(we.V-1)*7),we.y=Qe.getFullYear(),we.m=Qe.getMonth(),we.d=Qe.getDate()+(we.w+6)%7)}else("W"in we||"U"in we)&&("w"in we||(we.w="u"in we?we.u%7:"W"in we?1:0),zt="Z"in we?Hw(Qd(we.y,0,1)).getUTCDay():Uw(Qd(we.y,0,1)).getDay(),we.m=0,we.d="W"
vendor: 6,630 bytes, line 935
935in we?(we.w+6)%7+we.W*7-(zt+5)%7:we.w+we.U*7-(zt+6)%7);return"Z"in we?(we.H+=we.Z/100|0,we.M+=we.Z%100,Hw(we)):Uw(we)}}function j(xe,Pe,ze,we){for(var ft=0,Qe=Pe.length,zt=ze.length,Pt,Ut;ft<Qe;){if(we>=zt)return-1;if(Pt=Pe.charCodeAt(ft++),Pt===37){if(Pt=Pe.charAt(ft++),Ut=O[Pt in gB?Pe.charAt(ft++):Pt],!Ut||(we=Ut(xe,ze,we))<0)return-1}else if(Pt!=ze.charCodeAt(we++))return-1}return we}function z(xe,Pe,ze){var we=c.exec(Pe.slice(ze));return we?(xe.p=h.get(we[0].toLowerCase()),ze+we[0].length):-1}function $(xe,Pe,ze){var we=v.exec(Pe.slice(ze));return we?(xe.w=y.get(we[0].toLowerCase()),ze+we[0].length):-1}function F(xe,Pe,ze){var we=d.exec(Pe.slice(ze));return we?(xe.w=m.get(we[0].toLowerCase()),ze+we[0].length):-1}function q(xe,Pe,ze){var we=_.exec(Pe.slice(ze));return we?(xe.m=T.get(we[0].toLowerCase()),ze+we[0].length):-1}function Q(xe,Pe,ze){var we=b.exec(Pe.slice(ze));return we?(xe.m=E.get(we[0].toLowerCase()),ze+we[0].length):-1}function X(xe,Pe,ze){return j(xe,t,Pe,ze)}function te(xe,Pe,ze){return j(xe,r,Pe,ze)}function U(xe,Pe,ze){return j(xe,n,Pe,ze)}function J(xe){return s[xe.getDay()]}function ee(xe){return i[xe.getDay()]}function de(xe){return u[xe.getMonth()]}function G(xe){return o[xe.getMonth()]}function Y(xe){return a[+(xe.getHours()>=12)]}function W(xe){return 1+~~(xe.getMonth()/3)}function L(xe){return s[xe.getUTCDay()]}function le(xe){return i[xe.getUTCDay()]}function fe(xe){return u[xe.getUTCMonth()]}function Se(xe){return o[xe.getUTCMonth()]}function ye(xe){return a[+(xe.getUTCHours()>=12)]}function Ne(xe){return 1+~~(xe.getUTCMonth()/3)}return{format:function(xe){var Pe=k(xe+="",C);return Pe.toString=function(){return xe},Pe},parse:function(xe){var Pe=M(xe+="",!1);return Pe.toString=function(){return xe},Pe},utcFormat:function(xe){var Pe=k(xe+="",P);return Pe.toString=function(){return xe},Pe},utcParse:function(xe){var Pe=M(xe+="",!0);return Pe.toString=function(){return xe},Pe}}}var gB={"-":"",_:" ",0:"0"},Sn=/^\s*\d+/,FCe=/^%/,UCe=/[\\^$*+?|[\]().{}]/g;function Xt(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function HCe(e){return e.replace(UCe,"\\$&")}function Zd(e){return new RegExp("^(?:"+e.map(HCe).join("|")+")","i")}function Jd(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function qCe(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function VCe(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function GCe(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function WCe(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function YCe(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function vB(e,t,r){var n=Sn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function yB(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function XCe(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function KCe(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function QCe(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function bB(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function ZCe(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function xB(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function JCe(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function eOe(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function tOe(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function rOe(e,t,r){var n=Sn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function nOe(e,t,r){var n=FCe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function aOe(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function iOe(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function EB(e,t){return Xt(e.getDate(),t,2)}function sOe(e,t){return Xt(e.getHours(),t,2)}function oOe(e,t){return Xt(e.getHours()%12||12,t,2)}function lOe(e,t){return Xt(1+um.count(wo(e),e),t,3)}function GK(e,t){return Xt(e.getMilliseconds(),t,3)}function uOe(e,t){return GK(e,t)+"000"}function cOe(e,t){return Xt(e.getMonth()+1,t,2)}function fOe(e,t){return Xt(e.getMinutes(),t,2)}function dOe(e,t){return Xt(e.getSeconds(),t,2)}function hOe(e){var t=e.getDay();return t===0?7:t}function pOe(e,t){return Xt(Ib.count(wo(e)-1,e),t,2)}function WK(e){var t=e.getDay();return t>=4||t===0?r0(e):r0.ceil(e)}function mOe(e,t){return e=WK(e),Xt(r0.count(wo(e),e)+(wo(e).getDay()===4),t,2)}function gOe(e){return e.getDay()}function vOe(e,t){return Xt(Hv.count(wo(e)-1,e),t,2)}function yOe(e,t){return Xt(e.getFullYear()%100,t,2)}function bOe(e,t){return e=WK(e),Xt(e.getFullYear()%100,t,2)}function xOe(e,t){return Xt(e.getFullYear()%1e4,t,4)}function EOe(e,t){var r=e.getDay();return e=r>=4||r===0?r0(e):r0.ceil(e),Xt(e.getFullYear()%1e4,t,4)}function wOe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Xt(t/60|0,"0",2)+Xt(t%60,"0",2)}function wB(e,t){return Xt(e.getUTCDate(),t,2)}function _Oe(e,t){return Xt(e.getUTCHours(),t,2)}function SOe(e,t){return Xt(e.getUTCHours()%12||12,t,2)}function TOe(e,t){return Xt(1+Pb.count(_o(e),e),t,3)}function YK(e,t){return Xt(e.getUTCMilliseconds(),t,3)}function AOe(e,t){return YK(e,t)+"000"}function COe(e,t){return Xt(e.getUTCMonth()+1,t,2)}function OOe(e,t){return Xt(e.getUTCMinutes(),t,2)}function kOe(e,t){return Xt(e.getUTCSeconds(),t,2)}function NOe(e){var t=e.getUTCDay();return t===0?7:t}function ROe(e,t){return Xt(Db.count(_o(e)-1,e),t,2)}function XK(e){var t=e.getUTCDay();return t>=4||t===0?n0(e):n0.ceil(e)}function MOe(e,t){return e=XK(e),Xt(n0.count(_o(e),e)+(_o(e).getUTCDay()===4),t,2)}function POe(e){return e.getUTCDay()}function IOe(e,t){return Xt(qv.count(_o(e)-1,e),t,2)}function DOe(e,t){return Xt(e.getUTCFullYear()%100,t,2)}function LOe(e,t){return e=XK(e),Xt(e.getUTCFullYear()%100,t,2)}function jOe(e,t){return Xt(e.getUTCFullYear()%1e4,t,4)}function BOe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?n0(e):n0.ceil(e),Xt(e.getUTCFullYear()%1e4,t,4)}function zOe(){return"+0000"}function _B(){return"%"}function SB(e){return+e}function TB(e){return Math.floor(+e/1e3)}var hf,KK,QK;$Oe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
935ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $Oe(e){return hf=$Ce(e),KK=hf.format,hf.parse,QK=hf.utcFormat,hf.utcParse,hf}function FOe(e){return new Date(e)}function UOe(e){return e instanceof Date?+e:+new Date(+e)}function b7(e,t,r,n,a,i,s,o,u,c){var h=i7(),d=h.invert,m=h.domain,v=c(".%L"),y=c(":%S"),b=c("%I:%M"),E=c("%I %p"),_=c("%a %d"),T=c("%b %d"),C=c("%B"),P=c("%Y");function O(k){return(u(k)<k?v:o(k)<k?y:s(k)<k?b:i(k)<k?E:n(k)<k?a(k)<k?_:T:r(k)<k?C:P)(k)}return h.invert=function(k){return new Date(d(k))},h.domain=function(k){return arguments.length?m(Array.from(k,UOe)):m().map(FOe)},h.ticks=function(k){var M=m();return e(M[0],M[M.length-1],k??10)},h.tickFormat=function(k,M){return M==null?O:c(M)},h.nice=function(k){var M=m();return(!k||typeof k.range!="function")&&(k=t(M[0],M[M.length-1],k??10)),k?m(jK(M,k)):h},h.copy=function(){return lm(h,b7(e,t,r,n,a,i,s,o,u,c))},h}function HOe(){return Si.apply(b7(BCe,zCe,wo,v7,Ib,um,m7,h7,Au,KK).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function qOe(){return Si.apply(b7(LCe,jCe,_o,y7,Db,Pb,g7,p7,Au,QK).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Lb(){var e=0,t=1,r,n,a,i,s=ra,o=!1,u;function c(d){return d==null||isNaN(d=+d)?u:s(a===0?.5:(d=(i(d)-r)*a,o?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(d){return arguments.length?(o=!!d,c):o},c.interpolator=function(d){return arguments.length?(s=d,c):s};function h(d){return function(m){var v,y;return arguments.length?([v,y]=m,s=d(v,y),c):[s(0),s(1)]}}return c.range=h(F0),c.rangeRound=h(a7),c.unknown=function(d){return arguments.length?(u=d,c):u},function(d){return i=d,r=d(e),n=d(t),a=r===n?0:1/(n-r),c}}function $l(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ZK(){var e=zl(Lb()(ra));
vendor: 64,224 bytes, lines 935-961
935return e.copy=function(){return $l(e,ZK())},Ro.apply(e,arguments)}function JK(){var e=l7(Lb()).domain([1,10]);return e.copy=function(){return $l(e,JK()).base(e.base())},Ro.apply(e,arguments)}function eQ(){var e=u7(Lb());return e.copy=function(){return $l(e,eQ()).constant(e.constant())},Ro.apply(e,arguments)}function x7(){var e=c7(Lb());return e.copy=function(){return $l(e,x7()).exponent(e.exponent())},Ro.apply(e,arguments)}function VOe(){return x7.apply(null,arguments).exponent(.5)}function tQ(){var e=[],t=ra;function r(n){if(n!=null&&!isNaN(n=+n))return t((sm(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(El),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>M7e(e,i/n))},r.copy=function(){return tQ(t).domain(e)},Ro.apply(r,arguments)}function jb(){var e=0,t=.5,r=1,n=1,a,i,s,o,u,c=ra,h,d=!1,m;function v(b){return isNaN(b=+b)?m:(b=.5+((b=+h(b))-i)*(n*b<n*i?o:u),c(d?Math.max(0,Math.min(1,b)):b))}v.domain=function(b){return arguments.length?([e,t,r]=b,a=h(e=+e),i=h(t=+t),s=h(r=+r),o=a===i?0:.5/(i-a),u=i===s?0:.5/(s-i),n=i<a?-1:1,v):[e,t,r]},v.clamp=function(b){return arguments.length?(d=!!b,v):d},v.interpolator=function(b){return arguments.length?(c=b,v):c};function y(b){return function(E){var _,T,C;return arguments.length?([_,T,C]=E,c=nCe(b,[_,T,C]),v):[c(0),c(.5),c(1)]}}return v.range=y(F0),v.rangeRound=y(a7),v.unknown=function(b){return arguments.length?(m=b,v):m},function(b){return h=b,a=b(e),i=b(t),s=b(r),o=a===i?0:.5/(i-a),u=i===s?0:.5/(s-i),n=i<a?-1:1,v}}function rQ(){var e=zl(jb()(ra));return e.copy=function(){return $l(e,rQ())},Ro.apply(e,arguments)}function nQ(){var e=l7(jb()).domain([.1,1,10]);return e.copy=function(){return $l(e,nQ()).base(e.base())},Ro.apply(e,arguments)}function aQ(){var e=u7(jb());return e.copy=function(){return $l(e,aQ()).constant(e.constant())},Ro.apply(e,arguments)}function E7(){var e=c7(jb());return e.copy=function(){return $l(e,E7()).exponent(e.exponent())},Ro.apply(e,arguments)}function GOe(){return E7.apply(null,arguments).exponent(.5)}const AB=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ap,scaleDiverging:rQ,scaleDivergingLog:nQ,scaleDivergingPow:E7,scaleDivergingSqrt:GOe,scaleDivergingSymlog:aQ,scaleIdentity:LK,scaleImplicit:RS,scaleLinear:Fv,scaleLog:BK,scaleOrdinal:r7,scalePoint:kh,scalePow:f7,scaleQuantile:FK,scaleQuantize:UK,scaleRadial:$K,scaleSequential:ZK,scaleSequentialLog:JK,scaleSequentialPow:x7,scaleSequentialQuantile:tQ,scaleSequentialSqrt:VOe,scaleSequentialSymlog:eQ,scaleSqrt:ACe,scaleSymlog:zK,scaleThreshold:HK,scaleTime:HOe,scaleUtc:qOe,tickFormat:DK},Symbol.toStringTag,{value:"Module"}));var qw,CB;function iQ(){if(CB)return qw;CB=1;var e=j0();function t(r,n,a){for(var i=-1,s=r.length;++i<s;){var o=r[i],u=n(o);if(u!=null&&(c===void 0?u===u&&!e(u):a(u,c)))var c=u,h=o}return h}return qw=t,qw}var Vw,OB;function WOe(){if(OB)return Vw;OB=1;function e(t,r){return t>r}return Vw=e,Vw}var Gw,kB;function YOe(){if(kB)return Gw;kB=1;var e=iQ(),t=WOe(),r=z0();function n(a){return a&&a.length?e(a,r,t):void 0}return Gw=n,Gw}var XOe=YOe();const Bb=er(XOe);var Ww,NB;function KOe(){if(NB)return Ww;NB=1;function e(t,r){return t<r}return Ww=e,Ww}var Yw,RB;function QOe(){if(RB)return Yw;RB=1;var e=iQ(),t=KOe(),r=z0();function n(a){return a&&a.length?e(a,r,t):void 0}return Yw=n,Yw}var ZOe=QOe();const zb=er(ZOe);var Xw,MB;function JOe(){if(MB)return Xw;MB=1;var e=j8(),t=Bl(),r=hK(),n=Ta();function a(i,s){var o=n(i)?e:r;return o(i,t(s,3))}return Xw=a,Xw}var Kw,PB;function eke(){if(PB)return Kw;PB=1;var e=fK(),t=JOe();function r(n,a){return e(t(n,a),1)}return Kw=r,Kw}var tke=eke();const rke=er(tke);var Qw,IB;function nke(){if(IB)return Qw;IB=1;var e=K8();function t(r,n){return e(r,n)}return Qw=t,Qw}var ake=nke();const $b=er(ake);var U0=1e9,ike={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},_7,Ar=!0,Ei="[DecimalError] ",Nu=Ei+"Invalid argument: ",w7=Ei+"Exponent out of range: ",H0=Math.floor,gu=Math.pow,ske=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ua,En=1e7,Er=7,sQ=9007199254740991,Vv=H0(sQ/Er),Ge={};Ge.absoluteValue=Ge.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ge.comparedTo=Ge.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=n<a?n:a;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};Ge.decimalPlaces=Ge.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Er;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Ge.dividedBy=Ge.div=function(e){return po(this,new this.constructor(e))};Ge.dividedToIntegerBy=Ge.idiv=function(e){var t=this,r=t.constructor;return fr(po(t,new r(e),0,1),r.precision)};Ge.equals=Ge.eq=function(e){return!this.cmp(e)};Ge.exponent=function(){return tn(this)};Ge.greaterThan=Ge.gt=function(e){return this.cmp(e)>0};Ge.greaterThanOrEqualTo=Ge.gte=function(e){return this.cmp(e)>=0};Ge.isInteger=Ge.isint=function(){return this.e>this.d.length-2};Ge.isNegative=Ge.isneg=function(){return this.s<0};Ge.isPositive=Ge.ispos=function(){return this.s>0};Ge.isZero=function(){return this.s===0};Ge.lessThan=Ge.lt=function(e){return this.cmp(e)<0};Ge.lessThanOrEqualTo=Ge.lte=function(e){return this.cmp(e)<1};Ge.logarithm=Ge.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ua))throw Error(Ei+"NaN");if(r.s<1)throw Error(Ei+(r.s?"NaN":"-Infinity"));return r.eq(Ua)?new n(0):(Ar=!1,t=po(up(r,i),up(e,i),i),Ar=!0,fr(t,a))};Ge.minus=Ge.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?uQ(t,e):oQ(t,(e.s=-e.s,e))};Ge.modulo=Ge.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(Ei+"NaN");return r.s?(Ar=!1,t=po(r,e,0,1).times(e),Ar=!0,r.minus(t)):fr(new n(r),a)};Ge.naturalExponential=Ge.exp=function(){return lQ(this)};Ge.naturalLogarithm=Ge.ln=function(){return up(this)};Ge.negated=Ge.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ge.plus=Ge.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oQ(t,e):uQ(t,(e.s=-e.s,e))};Ge.precision=Ge.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Nu+e);if(t=tn(a)+1,n=a.d.length-1,r=n*Er+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Ge.squareRoot=Ge.sqrt=function(){var e,t,r,n,a,i,s,o=this,u=o.constructor;if(o.s<1){if(!o.s)return new u(0);throw Error(Ei+"NaN")}for(e=tn(o),Ar=!1,a=Math.sqrt(+o),a==0||a==1/0?(t=ms(o.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=H0((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(a.toString()),r=u.precision,a=s=r+3;;)if(i=n,n=i.plus(po(o,i,s+2)).times(.5),ms(i.d).slice(0,s)===(t=ms(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),a==s&&t=="4999"){if(fr(i,r+1,0),i.times(i).eq(o)){n=i;break}}else if(t!="9999")break;s+=4}return Ar=!0,fr(n,r)};Ge.times=Ge.mul=function(e){var t,r,n,a,i,s,o,u,c,h=this,d=h.constructor,m=h.d,v=(e=new d(e)).d;if(!h.s||!e.s)return new d(0);for(e.s*=h.s,r=h.e+e.e,u=m.length,c=v.length,u<c&&(i=m,m=v,v=i,s=u,u=c,c=s),i=[],s=u+c,n=s;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,a=u+n;a>n;)o=i[a]+v[n]*m[a-n-1]+t,i[a--]=o%En|0,t=o/En|0;i[a]=(i[a]+t)%En|0}for(;!i[--s];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,Ar?fr(e,d.precision):e};Ge.toDecimalPlaces=Ge.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(xs(e,0,U0),t===void 0?t=n.rounding:xs(t,0,8),fr(r,e+tn(r)+1,t))};Ge.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=Ku(n,!0):(xs(e,0,U0),t===void 0?t=a.rounding:xs(t,0,8),n=fr(new a(n),e+1,t),r=Ku(n,!0,e+1)),r};Ge.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?Ku(a):(xs(e,0,U0),t===void 0?t=i.rounding:xs(t,0,8),n=fr(new i(a),e+tn(a)+1,t),r=Ku(n.abs(),!1,e+tn(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};Ge.toInteger=Ge.toint=function(){var e=this,t=e.constructor;return fr(new t(e),tn(e)+1,t.rounding)};Ge.toNumber=function(){return+this};Ge.toPower=Ge.pow=function(e){var t,r,n,a,i,s,o=this,u=o.constructor,c=12,h=+(e=new u(e));if(!e.s)return new u(Ua);if(o=new u(o),!o.s){if(e.s<1)throw Error(Ei+"Infinity");return o}if(o.eq(Ua))return o;if(n=u.precision,e.eq(Ua))return fr(o,n);if(t=e.e,r=e.d.length-1,s=t>=r,i=o.s,s){if((r=h<0?-h:h)<=sQ){for(a=new u(Ua),t=Math.ceil(n/Er+4),Ar=!1;r%2&&(a=a.times(o),LB(a.d,t)),r=H0(r/2),r!==0;)o=o.times(o),LB(o.d,t);return Ar=!0,e.s<0?new u(Ua).div(a):fr(a,n)}}else if(i<0)throw Error(Ei+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,o.s=1,Ar=!1,a=e.times(up(o,n+c)),Ar=!0,a=lQ(a),a.s=i,a};Ge.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=tn(a),n=Ku(a,r<=i.toExpNeg||r>=i.toExpPos)):(xs(e,1,U0),t===void 0?t=i.rounding:xs(t,0,8),a=fr(new i(a),e,t),r=tn(a),n=Ku(a,e<=r||r<=i.toExpNeg,e)),n};Ge.toSignificantDigits=Ge.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(xs(e,1,U0),t===void 0?t=n.rounding:xs(t,0,8)),fr(new n(r),e,t)};Ge.toString=Ge.valueOf=Ge.val=Ge.toJSON=Ge[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=tn(e),r=e.constructor;return Ku(e,t<=r.toExpNeg||t>=r.toExpPos)};function oQ(e,t){var r,n,a,i,s,o,u,c,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),Ar?fr(t,d):t;if(u=e.d,c=t.d,s=e.e,a=t.e,u=u.slice(),i=s-a,i){for(i<0?(n=u,i=-i,o=c.length):(n=c,a=s,o=u.length),s=Math.ceil(d/Er),o=s>o?s+1:o+1,i>o&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(o=u.length,i=c.length,o-i<0&&(i=o,n=c,c=u,u=n),r=0;i;)r=(u[--i]=u[i]+c[i]+r)/En|0,u[i]%=En;for(r&&(u.unshift(r),++a),o=u.length;u[--o]==0;)u.pop();return t.d=u,t.e=a,Ar?fr(t,d):t}function xs(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Nu+e)}function ms(e){var t,r,n,a=e.length-1,i="",s=e[0];if(a>0){for(i+=s,t=1;t<a;t++)n=e[t]+"",r=Er-n.length,r&&(i+=hl(r)),i+=n;s=e[t],n=s+"",r=Er-n.length,r&&(i+=hl(r))}else if(s===0)return"0";for(;s%10===0;)s/=10;return i+s}var po=(function(){function e(n,a){var i,s=0,o=n.length;for(n=n.slice();o--;)i=n[o]*a+s,n[o]=i%En|0,s=i/En|0;return s&&n.unshift(s),n}function t(n,a,i,s){var o,u;if(i!=s)u=i>s?1:-1;else for(o=u=0;o<i;o++)if(n[o]!=a[o]){u=n[o]>a[o]?1:-1;break}return u}function r(n,a,i){for(var s=0;i--;)n[i]-=s,s=n[i]<a[i]?1:0,n[i]=s*En+n[i]-a[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,i,s){var o,u,c,h,d,m,v,y,b,E,_,T,C,P,O,k,M,j,z=n.constructor,$=n.s==a.s?1:-1,F=n.d,q=a.d;if(!n.s)return new z(n);if(!a.s)throw Error(Ei+"Division by zero");for(u=n.e-a.e,M=q.length,O=F.length,v=new z($),y=v.d=[],c=0;q[c]==(F[c]||0);)++c;if(q[c]>(F[c]||0)&&--u,i==null?T=i=z.precision:s?T=i+(tn(n)-tn(a))+1:T=i,T<0)return new z(0);if(T=T/Er+2|0,c=0,M==1)for(h=0,q=q[0],T++;(c<O||h)&&T--;c++)C=h*En+(F[c]||0),y[c]=C/q|0,h=C%q|0;else{for(h=En/(q[0]+1)|0,h>1&&(q=e(q,h),F=e(F,h),M=q.length,O=F.length),P=M,b=F.slice(0,M),E=b.length;E<M;)b[E++]=0;j=q.slice(),j.unshift(0),k=q[0],q[1]>=En/2&&++k;do h=0,o=t(q,b,M,E),o<0?(_=b[0],M!=E&&(_=_*En+(b[1]||0)),h=_/k|0,h>1?(h>=En&&(h=En-1),d=e(q,h),m=d.length,E=b.length,o=t(d,b,m,E),o==1&&(h--,r(d,M<m?j:q,m))):(h==0&&(o=h=1),d=q.slice()),m=d.length,m<E&&d.unshift(0),r(b,d,E),o==-1&&(E=b.length,o=t(q,b,M,E),o<1&&(h++,r(b,M<E?j:q,E))),E=b.length):o===0&&(h++,b=[0]),y[c++]=h,o&&b[0]?b[E++]=F[P]||0:(b=[F[P]],E=1);while((P++<O||b[0]!==void 0)&&T--)}return y[0]||y.shift(),v.e=u,fr(v,s?i+tn(v)+1:i)}})();function lQ(e,t){var r,n,a,i,s,o,u=0,c=0,h=e.constructor,d=h.precision;if(tn(e)>16)throw Error(w7+tn(e));if(!e.s)return new h(Ua);for(Ar=!1,o=d,s=new h(.03125);e.abs().gte(.1);)e=e.times(s),c+=5;for(n=Math.log(gu(2,c))/Math.LN10*2+5|0,o+=n,r=a=i=new h(Ua),h.precision=o;;){if(a=fr(a.times(e),o),r=r.times(++u),s=i.plus(po(a,r,o)),ms(s.d).slice(0,o)===ms(i.d).slice(0,o)){for(;c--;)i=fr(i.times(i),o);return h.precision=d,t==null?(Ar=!0,fr(i,d)):i}i=s}}function tn(e){for(var t=e.e*Er,r=e.d[0];r>=10;r/=10)t++;return t}function Zw(e,t,r){if(t>e.LN10.sd())throw Ar=!0,r&&(e.precision=r),Error(Ei+"LN10 precision limit exceeded");return fr(new e(e.LN10),t)}function hl(e){for(var t="";e--;)t+="0";return t}function up(e,t){var r,n,a,i,s,o,u,c,h,d=1,m=10,v=e,y=v.d,b=v.constructor,E=b.precision;if(v.s<1)throw Error(Ei+(v.s?"NaN":"-Infinity"));if(v.eq(Ua))return new b(0);if(t==null?(Ar=!1,c=E):c=t,v.eq(10))return t==null&&(Ar=!0),Zw(b,c);if(c+=m,b.precision=c,r=ms(y),n=r.charAt(0),i=tn(v),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=ms(v.d),n=r.charAt(0),d++;i=tn(v),n>1?(v=new b("0."+r),i++):v=new b(n+"."+r.slice(1))}else return u=Zw(b,c+2,E).times(i+""),v=up(new b(n+"."+r.slice(1)),c-m).plus(u),b.precision=E,t==null?(Ar=!0,fr(v,E)):v;for(o=s=v=po(v.minus(Ua),v.plus(Ua),c),h=fr(v.times(v),c),a=3;;){if(s=fr(s.times(h),c),u=o.plus(po(s,new b(a),c)),ms(u.d).slice(0,c)===ms(o.d).slice(0,c))return o=o.times(2),i!==0&&(o=o.plus(Zw(b,c+2,E).times(i+""))),o=po(o,new b(d),c),b.precision=E,t==null?(Ar=!0,fr(o,E)):o;o=u,a+=2}}function DB(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=H0(r/Er),e.d=[],n=(r+1)%Er,r<0&&(n+=Er),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=Er;n<a;)e.d.push(+t.slice(n,n+=Er));t=t.slice(n),n=Er-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),Ar&&(e.e>Vv||e.e<-Vv))throw Error(w7+r)}else e.s=0,e.e=0,e.d=[0];return e}function fr(e,t,r){var n,a,i,s,o,u,c,h,d=e.d;for(s=1,i=d[0];i>=10;i/=10)s++;if(n=t-s,n<0)n+=Er,a=t,c=d[h=0];else{if(h=Math.ceil((n+1)/Er),i=d.length,h>=i)return e;for(c=i=d[h],s=1;i>=10;i/=10)s++;n%=Er,a=n-Er+s}if(r!==void 0&&(i=gu(10,s-a-1),o=c/i%10|0,u=t<0||d[h+1]!==void 0||c%i,u=r<4?(o||u)&&(r==0||r==(e.s<0?3:2)):o>5||o==5&&(r==4||u||r==6&&(n>0?a>0?c/gu(10,s-a):0:d[h-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return u?(i=tn(e),d.length=1,t=t-i-1,d[0]=gu(10,(Er-t%Er)%Er),e.e=H0(-t/Er)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(n==0?(d.length=h,i=1,h--):(d.length=h+1,i=gu(10,Er-n),d[h]=a>0?(c/gu(10,s-a)%gu(10,a)|0)*i:0),u)for(;;)if(h==0){(d[0]+=i)==En&&(d[0]=1,++e.e);break}else{if(d[h]+=i,d[h]!=En)break;d[h--]=0,i=1}for(n=d.length;d[--n]===0;)d.pop();if(Ar&&(e.e>Vv||e.e<-Vv))throw Error(w7+tn(e));return e}function uQ(e,t){var r,n,a,i,s,o,u,c,h,d,m=e.constructor,v=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),Ar?fr(t,v):t;if(u=e.d,d=t.d,n=t.e,c=e.e,u=u.slice(),s=c-n,s){for(h=s<0,h?(r=u,s=-s,o=d.length):(r=d,n=c,o=u.length),a=Math.max(Math.ceil(v/Er),o)+2,s>a&&(s=a,r.length=1),r.reverse(),a=s;a--;)r.push(0);r.reverse()}else{for(a=u.length,o=d.length,h=a<o,h&&(o=a),a=0;a<o;a++)if(u[a]!=d[a]){h=u[a]<d[a];break}s=0}for(h&&(r=u,u=d,d=r,t.s=-t.s),o=u.length,a=d.length-o;a>0;--a)u[o++]=0;for(a=d.length;a>s;){if(u[--a]<d[a]){for(i=a;i&&u[--i]===0;)u[i]=En-1;--u[i],u[a]+=En}u[a]-=d[a]}for(;u[--o]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,Ar?fr(t,v):t):new m(0)}function Ku(e,t,r){var n,a=tn(e),i=ms(e.d),s=i.length;return t?(r&&(n=r-s)>0?i=i.charAt(0)+"."+i.slice(1)+hl(n):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+hl(-a-1)+i,r&&(n=r-s)>0&&(i+=hl(n))):a>=s?(i+=hl(a+1-s),r&&(n=r-a-1)>0&&(i=i+"."+hl(n))):((n=a+1)<s&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-s)>0&&(a+1===s&&(i+="."),i+=hl(n))),e.s<0?"-"+i:i}function LB(e,t){if(e.length>t)return e.length=t,!0}function cQ(e){var t,r,n;function a(i){var s=this;if(!(s instanceof a))return new a(i);if(s.constructor=a,i instanceof a){s.s=i.s,s.e=i.e,s.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Nu+i);if(i>0)s.s=1;else if(i<0)i=-i,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(i===~~i&&i<1e7){s.e=0,s.d=[i];return}return DB(s,i.toString())}else if(typeof i!="string")throw Error(Nu+i);if(i.charCodeAt(0)===45?(i=i.slice(1),s.s=-1):s.s=1,ske.test(i))DB(s,i);else throw Error(Nu+i)}if(a.prototype=Ge,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=cQ,a.config=a.set=oke,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return a.config(e),a}function oke(e){if(!e||typeof e!="object")throw Error(Ei+"Object expected");var t,r,n,a=["precision",1,U0,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((n=e[r=a[t]])!==void 0)if(H0(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(Nu+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Nu+r+": "+n);return this}var _7=cQ(ike);Ua=new _7(1);const lr=_7;function lke(e){return dke(e)||fke(e)||cke(e)||uke()}function uke(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
936In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cke(e,t){if(e){if(typeof e=="string")return DS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DS(e,t)}}function fke(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function dke(e){if(Array.isArray(e))return DS(e)}function DS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var hke=function(t){return t},fQ={},dQ=function(t){return t===fQ},jB=function(t){return function r(){return arguments.length===0||arguments.length===1&&dQ(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},pke=function e(t,r){return t===1?r:jB(function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var s=a.filter(function(o){return o!==fQ}).length;return s>=t?r.apply(void 0,a):e(t-s,jB(function(){for(var o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];var h=a.map(function(d){return dQ(d)?u.shift():d});return r.apply(void 0,lke(h).concat(u))}))})},Fb=function(t){return pke(t.length,t)},LS=function(t,r){for(var n=[],a=t;a<r;++a)n[a-t]=a;return n},mke=Fb(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),gke=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return hke;var a=r.reverse(),i=a[0],s=a.slice(1);return function(){return s.reduce(function(o,u){return u(o)},i.apply(void 0,arguments))}},jS=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},hQ=function(t){var r=null,n=null;return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return r&&i.every(function(o,u){return o===r[u]})||(r=i,n=t.apply(void 0,i)),n}};function vke(e){var t;return e===0?t=1:t=Math.floor(new lr(e).abs().log(10).toNumber())+1,t}function yke(e,t,r){for(var n=new lr(e),a=0,i=[];n.lt(t)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var bke=Fb(function(e,t,r){var n=+e,a=+t;return n+r*(a-n)}),xke=Fb(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),Eke=Fb(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Ub={rangeStep:yke,getDigitCount:vke,interpolateNumber:bke,uninterpolateNumber:xke,uninterpolateTruncation:Eke};function BS(e){return Ske(e)||_ke(e)||pQ(e)||wke()}function wke(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
937In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ke(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Ske(e){if(Array.isArray(e))return zS(e)}function cp(e,t){return Cke(e)||Ake(e,t)||pQ(e,t)||Tke()}function Tke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
938In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pQ(e,t){if(e){if(typeof e=="string")return zS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zS(e,t)}}function zS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ake(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var s=e[Symbol.iterator](),o;!(n=(o=s.next()).done)&&(r.push(o.value),!(t&&r.length===t));n=!0);}catch(u){a=!0,i=u}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw i}}return r}}function Cke(e){if(Array.isArray(e))return e}function mQ(e){var t=cp(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function gQ(e,t,r){if(e.lte(0))return new lr(0);var n=Ub.getDigitCount(e.toNumber()),a=new lr(10).pow(n),i=e.div(a),s=n!==1?.05:.1,o=new lr(Math.ceil(i.div(s).toNumber())).add(r).mul(s),u=o.mul(a);return t?u:new lr(Math.ceil(u))}function Oke(e,t,r){var n=1,a=new lr(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new lr(10).pow(Ub.getDigitCount(e)-1),a=new lr(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new lr(Math.floor(e)))}else e===0?a=new lr(Math.floor((t-1)/2)):r||(a=new lr(Math.floor(e)));var s=Math.floor((t-1)/2),o=gke(mke(function(u){return a.add(new lr(u-s).mul(n)).toNumber()}),LS);return o(0,t)}function vQ(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new lr(0),tickMin:new lr(0),tickMax:new lr(0)};var i=gQ(new lr(t).sub(e).div(r-1),n,a),s;e<=0&&t>=0?s=new lr(0):(s=new lr(e).add(t).div(2),s=s.sub(new lr(s).mod(i)));var o=Math.ceil(s.sub(e).div(i).toNumber()),u=Math.ceil(new lr(t).sub(s).div(i).toNumber()),c=o+u+1;return c>r?vQ(e,t,r,n,a+1):(c<r&&(u=t>0?u+(r-c):u,o=t>0?o:o+(r-c)),{step:i,tickMin:s.sub(new lr(o).mul(i)),tickMax:s.add(new lr(u).mul(i))})}function kke(e){var t=cp(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(a,2),o=mQ([r,n]),u=cp(o,2),c=u[0],h=u[1];if(c===-1/0||h===1/0){var d=h===1/0?[c].concat(BS(LS(0,a-1).map(function(){return 1/0}))):[].concat(BS(LS(0,a-1).map(function(){return-1/0})),[h]);return r>n?jS(d):d}if(c===h)return Oke(c,a,i);var m=vQ(c,h,s,i),v=m.step,y=m.tickMin,b=m.tickMax,E=Ub.rangeStep(y,b.add(new lr(.1).mul(v)),v);return r>n?jS(E):E}function Nke(e,t){var r=cp(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=mQ([n,a]),o=cp(s,2),u=o[0],c=o[1];if(u===-1/0||c===1/0)return[n,a];if(u===c)return[u];var h=Math.max(t,2),d=gQ(new lr(c).sub(u).div(h-1),i,0),m=[].concat(BS(Ub.rangeStep(new lr(u),new lr(c).sub(new lr(.99).mul(d)),d)),[c]);return n>a?jS(m):m}var Rke=hQ(kke),Mke=hQ(Nke),Pke="Invariant failed";function Qu(e,t){throw new Error(Pke)}var Ike=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function a0(e){"@babel/helpers - typeof";return a0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a0(e)}function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gv.apply(this,arguments)}function Dke(e,t){return zke(e)||Bke(e,t)||jke(e,t)||Lke()}function Lke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
939In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jke(e,t){if(e){if(typeof e=="string")return BB(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BB(e,t)}}function BB(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bke(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function zke(e){if(Array.isArray(e))return e}function $ke(e,t){if(e==null)return{};var r=Fke(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fke(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Uke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hke(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xQ(n.key),n)}}function qke(e,t,r){return t&&Hke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vke(e,t,r){return t=Wv(t),Gke(e,yQ()?Reflect.construct(t,r||[],Wv(e).constructor):t.apply(e,r))}function Gke(e,t){if(t&&(a0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wke(e)}function Wke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yQ=function(){return!!e})()}function Wv(e){return Wv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wv(e)}function Yke(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&&$S(e,t)}function $S(e,t){return $S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},$S(e,t)}function bQ(e,t,r){return t=xQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xQ(e){var t=Xke(e,"string");return a0(t)=="symbol"?t:t+""}function Xke(e,t){if(a0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(a0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cm=(function(e){function t(){return Uke(this,t),Vke(this,t,arguments)}return Yke(t,e),qke(t,[{key:"render",value:function(){var n=this.props,a=n.offset,i=n.layout,s=n.width,o=n.dataKey,u=n.data,c=n.dataPointFormatter,h=n.xAxis,d=n.yAxis,m=$ke(n,Ike),v=Ft(m,!1);this.props.direction==="x"&&h.type!=="number"&&Qu();var y=u.map(function(b){var E=c(b,o),_=E.x,T=E.y,C=E.value,P=E.errorVal;if(!P)return null;var O=[],k,M;if(Array.isArray(P)){var j=Dke(P,2);k=j[0],M=j[1]}else k=M=P;if(i==="vertical"){var z=h.scale,$=T+a,F=$+s,q=$-s,Q=z(C-k),X=z(C+M);O.push({x1:X,y1:F,x2:X,y2:q}),O.push({x1:Q,y1:$,x2:X,y2:$}),O.push({x1:Q,y1:F,x2:Q,y2:q})}else if(i==="horizontal"){var te=d.scale,U=_+a,J=U-s,ee=U+s,de=te(C-k),G=te(C+M);O.push({x1:J,y1:G,x2:ee,y2:G}),O.push({x1:U,y1:de,x2:U,y2:G}),O.push({x1:J,y1:de,x2:ee,y2:de})}return re.createElement(Hr,Gv({className:"recharts-errorBar",key:"bar-".concat(O.map(function(Y){return"".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))},v),O.map(function(Y){return re.createElement("line",Gv({},Y,{key:"line-".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))}))});return re.createElement(Hr,{className:"recharts-errorBars"},y)}}])})(re.Component);bQ(cm,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});bQ(cm,"displayName","ErrorBar");function fp(e){"@babel/helpers - typeof";return fp=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},fp(e)}function zB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function du(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zB(Object(r),!0).forEach(function(n){Kke(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kke(e,t,r){return t=Qke(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qke(e){var t=Zke(e,"string");return fp(t)=="symbol"?t:t+""}function Zke(e,t){if(fp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EQ=function(t){var r=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,s=Ba(r,Df);if(!s)return null;var o=Df.defaultProps,u=o!==void 0?du(du({},o),s.props):{},c;return s.props&&s.props.payload?c=s.props&&s.props.payload:i==="children"?c=(n||[]).reduce(function(h,d){var m=d.item,v=d.props,y=v.sectors||v.data||[];return h.concat(y.map(function(b){return{type:s.props.iconType||m.props.legendType,value:b.name,color:b.fill,payload:b}}))},[]):c=(n||[]).map(function(h){var d=h.item,m=d.type.defaultProps,v=m!==void 0?du(du({},m),d.props):{},y=v.dataKey,b=v.name,E=v.legendType,_=v.hide;return{inactive:_,dataKey:y,type:u.iconType||E||"square",color:S7(d),value:b||y,payload:v}}),du(du(du({},u),Df.getWithHeight(s,a)),{},{payload:c,item:s})};function dp(e){"@babel/helpers - typeof";return dp=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},dp(e)}function $B(e){return r9e(e)||t9e(e)||e9e(e)||Jke()}function Jke(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
940In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e9e(e,t){if(e){if(typeof e=="string")return FS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FS(e,t)}}function t9e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function r9e(e){if(Array.isArray(e))return FS(e)}function FS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FB(Object(r),!0).forEach(function(n){jf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jf(e,t,r){return t=n9e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n9e(e){var t=a9e(e,"string");return dp(t)=="symbol"?t:t+""}function a9e(e,t){if(dp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ga(e,t,r){return Mt(e)||Mt(t)?r:fn(t)?vi(e,t,r):wt(t)?t(e):r}function Nh(e,t,r,n){var a=rke(e,function(o){return Ga(o,t)});if(r==="number"){var i=a.filter(function(o){return Ue(o)||parseFloat(o)});return i.length?[zb(i),Bb(i)]:[1/0,-1/0]}var s=n?a.filter(function(o){return!Mt(o)}):a;return s.map(function(o){return fn(o)||o instanceof Date?o:""})}var i9e=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,s=-1,o=(r=n?.length)!==null&&r!==void 0?r:0;if(o<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var u=i.range,c=0;c<o;c++){var h=c>0?a[c-1].coordinate:a[o-1].coordinate,d=a[c].coordinate,m=c>=o-1?a[0].coordinate:a[c+1].coordinate,v=void 0;if(zi(d-h)!==zi(m-d)){var y=[];if(zi(m-d)===zi(u[1]-u[0])){v=m;var b=d+u[1]-u[0];y[0]=Math.min(b,(b+h)/2),y[1]=Math.max(b,(b+h)/2)}else{v=h;var E=m+u[1]-u[0];y[0]=Math.min(d,(E+d)/2),y[1]=Math.max(d,(E+d)/2)}var _=[Math.min(d,(v+d)/2),Math.max(d,(v+d)/2)];if(t>_[0]&&t<=_[1]||t>=y[0]&&t<=y[1]){s=a[c].index;break}}else{var T=Math.min(h,m),C=Math.max(h,m);if(t>(T+d)/2&&t<=(C+d)/2){s=a[c].index;break}}}else for(var P=0;P<o;P++)if(P===0&&t<=(n[P].coordinate+n[P+1].coordinate)/2||P>0&&P<o-1&&t>(n[P].coordinate+n[P-1].coordinate)/2&&t<=(n[P].coordinate+n[P+1].coordinate)/2||P===o-1&&t>(n[P].coordinate+n[P-1].coordinate)/2){s=n[P].index;break}return s},S7=function(t){var r,n=t,a=n.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ir(Ir({},t.type.defaultProps),t.props):t.props,s=i.stroke,o=i.fill,u;switch(a){case"Line":u=s;break;case"Area":case"Radar":u=s&&s!=="none"?s:o;break;default:u=o;break}return u},s9e=function(t){var r=t.barSize,n=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var s={},o=Object.keys(i),u=0,c=o.length;u<c;u++)for(var h=i[o[u]].stackGroups,d=Object.keys(h),m=0,v=d.length;m<v;m++){var y=h[d[m]],b=y.items,E=y.cateAxisId,_=b.filter(function(M){return fo(M.type).indexOf("Bar")>=0});if(_&&_.length){var T=_[0].type.defaultProps,C=T!==void 0?Ir(Ir({},T),_[0].props):_[0].props,P=C.barSize,O=C[E];s[O]||(s[O]=[]);var k=Mt(P)?r:P;s[O].push({item:_[0],stackList:_.slice(1),barSize:Mt(k)?void 0:Xu(k,n,0)})}}return s},o9e=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,i=t.sizeList,s=i===void 0?[]:i,o=t.maxBarSize,u=s.length;if(u<1)return null;var c=Xu(r,a,0,!0),h,d=[];if(s[0].barSize===+s[0].barSize){var m=!1,v=a/u,y=s.reduce(function(P,O){return P+O.barSize||0},0);y+=(u-1)*c,y>=a&&(y-=(u-1)*c,c=0),y>=a&&v>0&&(m=!0,v*=.9,y=u*v);var b=(a-y)/2>>0,E={offset:b-c,size:0};h=s.reduce(function(P,O){var k={item:O.item,position:{offset:E.offset+E.size+c,size:m?v:O.barSize}},M=[].concat($B(P),[k]);return E=M[M.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(j){M.push({item:j,position:E})}),M},d)}else{var _=Xu(n,a,0,!0);a-2*_-(u-1)*c<=0&&(c=0);var T=(a-2*_-(u-1)*c)/u;T>1&&(T>>=0);var C=o===+o?Math.min(T,o):T;h=s.reduce(function(P,O,k){var M=[].concat($B(P),[{item:O.item,position:{offset:_+(T+c)*k+(T-C)/2,size:C}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(j){M.push({item:j,position:M[M.length-1].position})}),M},d)}return h},l9e=function(t,r,n,a){var i=n.children,s=n.width,o=n.margin,u=s-(o.left||0)-(o.right||0),c=EQ({children:i,legendWidth:u});if(c){var h=a||{},d=h.width,m=h.height,v=c.align,y=c.verticalAlign,b=c.layout;if((b==="vertical"||b==="horizontal"&&y==="middle")&&v!=="center"&&Ue(t[v]))return Ir(Ir({},t),{},jf({},v,t[v]+(d||0)));if((b==="horizontal"||b==="vertical"&&v==="center")&&y!=="middle"&&Ue(t[y]))return Ir(Ir({},t),{},jf({},y,t[y]+(m||0)))}return t},u9e=function(t,r,n){return Mt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},wQ=function(t,r,n,a,i){var s=r.props.children,o=yi(s,cm).filter(function(c){return u9e(a,i,c.props.direction)});if(o&&o.length){var u=o.map(function(c){return c.props.dataKey});return t.reduce(function(c,h){var d=Ga(h,n);if(Mt(d))return c;var m=Array.isArray(d)?[zb(d),Bb(d)]:[d,d],v=u.reduce(function(y,b){var E=Ga(h,b,0),_=m[0]-Math.abs(Array.isArray(E)?E[0]:E),T=m[1]+Math.abs(Array.isArray(E)?E[1]:E);return[Math.min(_,y[0]),Math.max(T,y[1])]},[1/0,-1/0]);return[Math.min(v[0],c[0]),Math.max(v[1],c[1])]},[1/0,-1/0])}return null},c9e=function(t,r,n,a,i){var s=r.map(function(o){return wQ(t,o,n,i,a)}).filter(function(o){return!Mt(o)});return s&&s.length?s.reduce(function(o,u){return[Math.min(o[0],u[0]),Math.max(o[1],u[1])]},[1/0,-1/0]):null},_Q=function(t,r,n,a,i){var s=r.map(function(u){var c=u.props.dataKey;return n==="number"&&c&&wQ(t,u,c,a)||Nh(t,c,n,i)});if(n==="number")return s.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);var o={};return s.reduce(function(u,c){for(var h=0,d=c.length;h<d;h++)o[c[h]]||(o[c[h]]=!0,u.push(c[h]));return u},[])},SQ=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},TQ=function(t,r,n,a){if(a)return t.map(function(u){return u.coordinate});var i,s,o=t.map(function(u){return u.coordinate===r&&(i=!0),u.coordinate===n&&(s=!0),u.coordinate});return i||o.push(r),s||o.push(n),o},io=function(t,r,n){if(!t)return null;var a=t.scale,i=t.duplicateDomain,s=t.type,o=t.range,u=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,c=(r||n)&&s==="category"&&a.bandwidth?a.bandwidth()/u:0;if(c=t.axisType==="angleAxis"&&o?.length>=2?zi(o[0]-o[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(d){var m=i?i.indexOf(d):d;return{coordinate:a(m)+c,value:d,offset:c}});return h.filter(function(d){return!nm(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,m){return{coordinate:a(d)+c,value:d,index:m,offset:c}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(d){return{coordinate:a(d)+c,value:d,offset:c}}):a.domain().map(function(d,m){return{coordinate:a(d)+c,value:i?i[d]:d,index:m,offset:c}})},Jw=new WeakMap,m1=function(t,r){if(typeof r!="function")return t;Jw.has(t)||Jw.set(t,new WeakMap);var n=Jw.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},f9e=function(t,r,n){var a=t.scale,i=t.type,s=t.layout,o=t.axisType;if(a==="auto")return s==="radial"&&o==="radiusAxis"?{scale:ap(),realScaleType:"band"}:s==="radial"&&o==="angleAxis"?{scale:Fv(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:kh(),realScaleType:"point"}:i==="category"?{scale:ap(),realScaleType:"band"}:{scale:Fv(),realScaleType:"linear"};if(Yu(a)){var u="scale".concat(Sb(a));return{scale:(AB[u]||kh)(),realScaleType:AB[u]?u:"point"}}return wt(a)?{scale:a}:{scale:kh(),realScaleType:"point"}},UB=1e-4,d9e=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-UB,s=Math.max(a[0],a[1])+UB,o=t(r[0]),u=t(r[n-1]);(o<i||o>s||u<i||u>s)&&t.domain([r[0],r[n-1]])}},h9e=function(t,r){if(!t)return null;for(var n=0,a=t.length;n<a;n++)if(t[n].item===r)return t[n].position;return null},p9e=function(t,r){if(!r||r.length!==2||!Ue(r[0])||!Ue(r[1]))return t;var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),i=[t[0],t[1]];return(!Ue(t[0])||t[0]<n)&&(i[0]=n),(!Ue(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<n&&(i[1]=n),i},m9e=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,s=0,o=0;o<r;++o){var u=nm(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=i,t[o][n][1]=i+u,i=t[o][n][1]):(t[o][n][0]=s,t[o][n][1]=s+u,s=t[o][n][1])}},g9e=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,s=0;s<r;++s){var o=nm(t[s][n][1])?t[s][n][0]:t[s][n][1];o>=0?(t[s][n][0]=i,t[s][n][1]=i+o,i=t[s][n][1]):(t[s][n][0]=0,t[s][n][1]=0)}},v9e={sign:m9e,expand:tTe,none:Kf,silhouette:rTe,wiggle:nTe,positive:g9e},y9e=function(t,r,n){var a=r.map(function(o){return o.props.dataKey}),i=v9e[n],s=eTe().keys(a).value(function(o,u){return+Ga(o,u,0)}).order(vS).offset(i);return s(t)},b9e=function(t,r,n,a,i,s){if(!t)return null;var o=s?r.reverse():r,u={},c=o.reduce(function(d,m){var v,y=(v=m.type)!==null&&v!==void 0&&v.defaultProps?Ir(Ir({},m.type.defaultProps),m.props):m.props,b=y.stackId,E=y.hide;if(E)return d;var _=y[n],T=d[_]||{hasStack:!1,stackGroups:{}};if(fn(b)){var C=T.stackGroups[b]||{numericAxisId:n,cateAxisId:a,items:[]};C.items.push(m),T.hasStack=!0,T.stackGroups[b]=C}else T.stackGroups[am("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[m]};return Ir(Ir({},d),{},jf({},_,T))},u),h={};return Object.keys(c).reduce(function(d,m){var v=c[m];if(v.hasStack){var y={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(b,E){var _=v.stackGroups[E];return Ir(Ir({},b),{},jf({},E,{numericAxisId:n,cateAxisId:a,items:_.items,stackedData:y9e(t,_.items,i)}))},y)}return Ir(Ir({},d),{},jf({},m,v))},h)},x9e=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,s=r.originalDomain,o=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(i&&a==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var c=t.domain();if(!c.length)return null;var h=Rke(c,i,o);return t.domain([zb(h),Bb(h)]),{niceTicks:h}}if(i&&a==="number"){var d=t.domain(),m=Mke(d,i,o);return{niceTicks:m}}return null};function HB(e){var t=e.axis,r=e.ticks,n=e.bandSize,a=e.entry,i=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Mt(a[t.dataKey])){var o=wv(r,"value",a[t.dataKey]);if(o)return o.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=Ga(a,Mt(s)?t.dataKey:s);return Mt(u)?null:t.scale(u)}var qB=function(t){var r=t.axis,n=t.ticks,a=t.offset,i=t.bandSize,s=t.entry,o=t.index;if(r.type==="category")return n[o]?n[o].coordinate+a:null;var u=Ga(s,r.dataKey,r.domain[o]);return Mt(u)?null:r.scale(u)-i/2+a},E9e=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},w9e=function(t,r){var n,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ir(Ir({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(fn(i)){var s=r[i];if(s){var o=s.items.indexOf(t);return o>=0?s.stackedData[o]:null}}return null},_9e=function(t){return t.reduce(function(r,n){return[zb(n.concat([r[0]]).filter(Ue)),Bb(n.concat([r[1]]).filter(Ue))]},[1/0,-1/0])},AQ=function(t,r,n){return Object.keys(t).reduce(function(a,i){var s=t[i],o=s.stackedData,u=o.reduce(function(c,h){var d=_9e(h.slice(r,n+1));return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);return[Math.min(u[0],a[0]),Math.max(u[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},VB=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,GB=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,US=function(t,r,n){if(wt(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(Ue(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(VB.test(t[0])){var i=+VB.exec(t[0])[1];a[0]=r[0]-i}else wt(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(Ue(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(GB.test(t[1])){var s=+GB.exec(t[1])[1];a[1]=r[1]+s}else wt(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},Yv=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=Z8(r,function(d){return d.coordinate}),s=1/0,o=1,u=i.length;o<u;o++){var c=i[o],h=i[o-1];s=Math.min((c.coordinate||0)-(h.coordinate||0),s)}return s===1/0?0:s}return n?void 0:0},WB=function(t,r,n){return!t||!t.length||$b(t,vi(n,"type.defaultProps.domain"))?r:t},CQ=function(t,r){var n=t.type.defaultProps?Ir(Ir({},t.type.defaultProps),t.props):t.props,a=n.dataKey,i=n.name,s=n.unit,o=n.formatter,u=n.tooltipType,c=n.chartType,h=n.hide;return Ir(Ir({},Ft(t,!1)),{},{dataKey:a,unit:s,formatter:o,name:i||a,color:S7(t),value:Ga(r,a),type:u,payload:r,chartType:c,hide:h})};function hp(e){"@babel/helpers - typeof";return hp=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},hp(e)}function YB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function XB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YB(Object(r),!0).forEach(function(n){S9e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S9e(e,t,r){return t=T9e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T9e(e){var t=A9e(e,"string");return hp(t)=="symbol"?t:t+""}function A9e(e,t){if(hp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xv=Math.PI/180,C9e=function(t){return t*180/Math.PI},Pn=function(t,r,n,a){return{x:t+Math.cos(-Xv*a)*n,y:r+Math.sin(-Xv*a)*n}},O9e=function(t,r){var n=t.x,a=t.y,i=r.x,s=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(a-s,2))},k9e=function(t,r){var n=t.x,a=t.y,i=r.cx,s=r.cy,o=O9e({x:n,y:a},{x:i,y:s});if(o<=0)return{radius:o};var u=(n-i)/o,c=Math.acos(u);return a>s&&(c=2*Math.PI-c),{radius:o,angle:C9e(c),angleInRadian:c}},N9e=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),s=Math.min(a,i);return{startAngle:r-s*360,endAngle:n-s*360}},R9e=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),s=Math.floor(a/360),o=Math.min(i,s);return t+o*360},KB=function(t,r){var n=t.x,a=t.y,i=k9e({x:n,y:a},r),s=i.radius,o=i.angle,u=r.innerRadius,c=r.outerRadius;if(s<u||s>c)return!1;if(s===0)return!0;var h=N9e(r),d=h.startAngle,m=h.endAngle,v=o,y;if(d<=m){for(;v>m;)v-=360;for(;v<d;)v+=360;y=v>=d&&v<=m}else{for(;v>d;)v-=360;for(;v<m;)v+=360;y=v>=m&&v<=d}return y?XB(XB({},r),{},{radius:s,angle:R9e(v,r)}):null};function pp(e){"@babel/helpers - typeof";return pp=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},pp(e)}var M9e=["offset"];function P9e(e){return j9e(e)||L9e(e)||D9e(e)||I9e()}function I9e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
941In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D9e(e,t){if(e){if(typeof e=="string")return HS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return HS(e,t)}}function L9e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function j9e(e){if(Array.isArray(e))return HS(e)}function HS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function B9e(e,t){if(e==null)return{};var r=z9e(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function z9e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function QB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ln(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QB(Object(r),!0).forEach(function(n){$9e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $9e(e,t,r){return t=F9e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F9e(e){var t=U9e(e,"string");return pp(t)=="symbol"?t:t+""}function U9e(e,t){if(pp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mp.apply(this,arguments)}var H9e=function(t){var r=t.value,n=t.formatter,a=Mt(t.children)?r:t.children;return wt(n)?n(a):a},q9e=function(t,r){var n=zi(r-t),a=Math.min(Math.abs(r-t),360);return n*a},V9e=function(t,r,n){var a=t.position,i=t.viewBox,s=t.offset,o=t.className,u=i,c=u.cx,h=u.cy,d=u.innerRadius,m=u.outerRadius,v=u.startAngle,y=u.endAngle,b=u.clockWise,E=(d+m)/2,_=q9e(v,y),T=_>=0?1:-1,C,P;a==="insideStart"?(C=v+T*s,P=b):a==="insideEnd"?(C=y-T*s,P=!b):a==="end"&&(C=y+T*s,P=b),P=_<=0?P:!P;var O=Pn(c,h,E,C),k=Pn(c,h,E,C+(P?1:-1)*359),M="M".concat(O.x,",").concat(O.y,`
942    A`).concat(E,",").concat(E,",0,1,").concat(P?0:1,`,
943    `).concat(k.x,",").concat(k.y),j=Mt(t.id)?am("recharts-radial-line-"):t.id;return re.createElement("text",mp({},n,{dominantBaseline:"central",className:Lt("recharts-radial-bar-label",o)}),re.createElement("defs",null,re.createElement("path",{id:j,d:M})),re.createElement("textPath",{xlinkHref:"#".concat(j)},r))},G9e=function(t){var r=t.viewBox,n=t.offset,a=t.position,i=r,s=i.cx,o=i.cy,u=i.innerRadius,c=i.outerRadius,h=i.startAngle,d=i.endAngle,m=(h+d)/2;if(a==="outside"){var v=Pn(s,o,c+n,m),y=v.x,b=v.y;return{x:y,y:b,textAnchor:y>=s?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"end"};var E=(u+c)/2,_=Pn(s,o,E,m),T=_.x,C=_.y;return{x:T,y:C,textAnchor:"middle",verticalAnchor:"middle"}},W9e=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,s=r,o=s.x,u=s.y,c=s.width,h=s.height,d=h>=0?1:-1,m=d*a,v=d>0?"end":"start",y=d>0?"start":"end",b=c>=0?1:-1,E=b*a,_=b>0?"end":"start",T=b>0?"start":"end";if(i==="top"){var C={x:o+c/2,y:u-d*a,textAnchor:"middle",verticalAnchor:v};return ln(ln({},C),n?{height:Math.max(u-n.y,0),width:c}:{})}if(i==="bottom"){var P={x:o+c/2,y:u+h+m,textAnchor:"middle",verticalAnchor:y};return ln(ln({},P),n?{height:Math.max(n.y+n.height-(u+h),0),width:c}:{})}if(i==="left"){var O={x:o-E,y:u+h/2,textAnchor:_,verticalAnchor:"middle"};return ln(ln({},O),n?{width:Math.max(O.x-n.x,0),height:h}:{})}if(i==="right"){var k={x:o+c+E,y:u+h/2,textAnchor:T,verticalAnchor:"middle"};return ln(ln({},k),n?{width:Math.max(n.x+n.width-k.x,0),height:h}:{})}var M=n?{width:c,height:h}:{};return i==="insideLeft"?ln({x:o+E,y:u+h/2,textAnchor:T,verticalAnchor:"middle"},M):i==="insideRight"?ln({x:o+c-E,y:u+h/2,textAnchor:_,verticalAnchor:"middle"},M):i==="insideTop"?ln({x:o+c/2,y:u+m,textAnchor:"middle",verticalAnchor:y},M):i==="insideBottom"?ln({x:o+c/2,y:u+h-m,textAnchor:"middle",verticalAnchor:v},M):i==="insideTopLeft"?ln({x:o+E,y:u+m,textAnchor:T,verticalAnchor:y},M):i==="insideTopRight"?ln({x:o+c-E,y:u+m,textAnchor:_,verticalAnchor:y},M):i==="insideBottomLeft"?ln({x:o+E,y:u+h-m,textAnchor:T,verticalAnchor:v},M):i==="insideBottomRight"?ln({x:o+c-E,y:u+h-m,textAnchor:_,verticalAnchor:v},M):B0(i)&&(Ue(i.x)||Su(i.x))&&(Ue(i.y)||Su(i.y))?ln({x:o+Xu(i.x,c),y:u+Xu(i.y,h),textAnchor:"end",verticalAnchor:"end"},M):ln({x:o+c/2,y:u+h/2,textAnchor:"middle",verticalAnchor:"middle"},M)},Y9e=function(t){return"cx"in t&&Ue(t.cx)};function Fn(e){var t=e.offset,r=t===void 0?5:t,n=B9e(e,M9e),a=ln({offset:r},n),i=a.viewBox,s=a.position,o=a.value,u=a.children,c=a.content,h=a.className,d=h===void 0?"":h,m=a.textBreakAll;if(!i||Mt(o)&&Mt(u)&&!N.isValidElement(c)&&!wt(c))return null;if(N.isValidElement(c))return N.cloneElement(c,a);var v;if(wt(c)){if(v=N.createElement(c,a),N.isValidElement(v))return v}else v=H9e(a);var y=Y9e(i),b=Ft(a,!0);if(y&&(s==="insideStart"||s==="insideEnd"||s==="end"))return V9e(a,v,b);var E=y?G9e(a):W9e(a);return re.createElement(Iv,mp({className:Lt("recharts-label",d)},b,E,{breakAll:m}),v)}Fn.displayName="Label";var OQ=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,s=t.endAngle,o=t.r,u=t.radius,c=t.innerRadius,h=t.outerRadius,d=t.x,m=t.y,v=t.top,y=t.left,b=t.width,E=t.height,_=t.clockWise,T=t.labelViewBox;if(T)return T;if(Ue(b)&&Ue(E)){if(Ue(d)&&Ue(m))return{x:d,y:m,width:b,height:E};if(Ue(v)&&Ue(y))return{x:v,y,width:b,height:E}}return Ue(d)&&Ue(m)?{x:d,y:m,width:0,height:0}:Ue(r)&&Ue(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:s||a||0,innerRadius:c||0,outerRadius:h||u||o||0,clockWise:_}:t.viewBox?t.viewBox:{}},X9e=function(t,r){return t?t===!0?re.createElement(Fn,{key:"label-implicit",viewBox:r}):fn(t)?re.createElement(Fn,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===Fn?N.cloneElement(t,{key:"label-implicit",viewBox:r}):re.createElement(Fn,{key:"label-implicit",content:t,viewBox:r}):wt(t)?re.createElement(Fn,{key:"label-implicit",content:t,viewBox:r}):B0(t)?re.createElement(Fn,mp({viewBox:r},t,{key:"label-implicit"})):null:null},K9e=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,i=OQ(t),s=yi(a,Fn).map(function(u,c){return N.cloneElement(u,{viewBox:r||i,key:"label-".concat(c)})});if(!n)return s;var o=X9e(t.label,r||i);return[o].concat(P9e(s))};Fn.parseViewBox=OQ;Fn.renderCallByParent=K9e;var e5,ZB;function Q9e(){if(ZB)return e5;ZB=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return e5=e,e5}var Z9e=Q9e();const J9e=er(Z9e);function gp(e){"@babel/helpers - typeof";return gp=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},gp(e)}var eNe=["valueAccessor"],tNe=["data","dataKey","clockWise","id","textBreakAll"];function rNe(e){return sNe(e)||iNe(e)||aNe(e)||nNe()}function nNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
944In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aNe(e,t){if(e){if(typeof e=="string")return qS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qS(e,t)}}function iNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sNe(e){if(Array.isArray(e))return qS(e)}function qS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Kv(){return Kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kv.apply(this,arguments)}function JB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ez(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JB(Object(r),!0).forEach(function(n){oNe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oNe(e,t,r){return t=lNe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lNe(e){var t=uNe(e,"string");return gp(t)=="symbol"?t:t+""}function uNe(e,t){if(gp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tz(e,t){if(e==null)return{};var r=cNe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cNe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var fNe=function(t){return Array.isArray(t.value)?J9e(t.value):t.value};function wl(e){var t=e.valueAccessor,r=t===void 0?fNe:t,n=tz(e,eNe),a=n.data,i=n.dataKey,s=n.clockWise,o=n.id,u=n.textBreakAll,c=tz(n,tNe);return!a||!a.length?null:re.createElement(Hr,{className:"recharts-label-list"},a.map(function(h,d){var m=Mt(i)?r(h,d):Ga(h&&h.payload,i),v=Mt(o)?{}:{id:"".concat(o,"-").concat(d)};return re.createElement(Fn,Kv({},Ft(h,!0),c,v,{parentViewBox:h.parentViewBox,value:m,textBreakAll:u,viewBox:Fn.parseViewBox(Mt(s)?h:ez(ez({},h),{},{clockWise:s})),key:"label-".concat(d),index:d}))}))}wl.displayName="LabelList";function dNe(e,t){return e?e===!0?re.createElement(wl,{key:"labelList-implicit",data:t}):re.isValidElement(e)||wt(e)?re.createElement(wl,{key:"labelList-implicit",data:t,content:e}):B0(e)?re.createElement(wl,Kv({data:t},e,{key:"labelList-implicit"})):null:null}function hNe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,a=yi(n,wl).map(function(s,o){return N.cloneElement(s,{data:t,key:"labelList-".concat(o)})});if(!r)return a;var i=dNe(e.label,t);return[i].concat(rNe(a))}wl.renderCallByParent=hNe;function vp(e){"@babel/helpers - typeof";return vp=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},vp(e)}function VS(){return VS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},VS.apply(this,arguments)}function rz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rz(Object(r),!0).forEach(function(n){pNe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rz(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pNe(e,t,r){return t=mNe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mNe(e){var t=gNe(e,"string");return vp(t)=="symbol"?t:t+""}function gNe(e,t){if(vp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vNe=function(t,r){var n=zi(r-t),a=Math.min(Math.abs(r-t),359.999);return n*a},g1=function(t){var r=t.cx,n=t.cy,a=t.radius,i=t.angle,s=t.sign,o=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,h=u*(o?1:-1)+a,d=Math.asin(u/h)/Xv,m=c?i:i+s*d,v=Pn(r,n,h,m),y=Pn(r,n,a,m),b=c?i-s*d:i,E=Pn(r,n,h*Math.cos(d*Xv),b);return{center:v,circleTangency:y,lineTangency:E,theta:d}},kQ=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,s=t.startAngle,o=t.endAngle,u=vNe(s,o),c=s+u,h=Pn(r,n,i,s),d=Pn(r,n,i,c),m="M ".concat(h.x,",").concat(h.y,`
945    A `).concat(i,",").concat(i,`,0,
946    `).concat(+(Math.abs(u)>180),",").concat(+(s>c),`,
947    `).concat(d.x,",").concat(d.y,`
948  `);if(a>0){var v=Pn(r,n,a,s),y=Pn(r,n,a,c);m+="L ".concat(y.x,",").concat(y.y,`
949            A `).concat(a,",").concat(a,`,0,
950            `).concat(+(Math.abs(u)>180),",").concat(+(s<=c),`,
951            `).concat(v.x,",").concat(v.y," Z")}else m+="L ".concat(r,",").concat(n," Z");return m},yNe=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,s=t.cornerRadius,o=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,h=t.endAngle,d=zi(h-c),m=g1({cx:r,cy:n,radius:i,angle:c,sign:d,cornerRadius:s,cornerIsExternal:u}),v=m.circleTangency,y=m.lineTangency,b=m.theta,E=g1({cx:r,cy:n,radius:i,angle:h,sign:-d,cornerRadius:s,cornerIsExternal:u}),_=E.circleTangency,T=E.lineTangency,C=E.theta,P=u?Math.abs(c-h):Math.abs(c-h)-b-C;if(P<0)return o?"M ".concat(y.x,",").concat(y.y,`
952        a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
953        a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
954      `):kQ({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:c,endAngle:h});var O="M ".concat(y.x,",").concat(y.y,`
955    A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(v.x,",").concat(v.y,`
956    A`).concat(i,",").concat(i,",0,").concat(+(P>180),",").concat(+(d<0),",").concat(_.x,",").concat(_.y,`
957    A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(T.x,",").concat(T.y,`
958  `);if(a>0){var k=g1({cx:r,cy:n,radius:a,angle:c,sign:d,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),M=k.circleTangency,j=k.lineTangency,z=k.theta,$=g1({cx:r,cy:n,radius:a,angle:h,sign:-d,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),F=$.circleTangency,q=$.lineTangency,Q=$.theta,X=u?Math.abs(c-h):Math.abs(c-h)-z-Q;if(X<0&&s===0)return"".concat(O,"L").concat(r,",").concat(n,"Z");O+="L".concat(q.x,",").concat(q.y,`
959      A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(F.x,",").concat(F.y,`
960      A`).concat(a,",").concat(a,",0,").concat(+(X>180),",").concat(+(d>0),",").concat(M.x,",").concat(M.y,`
961      A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(j.x,",").concat(j.y,"Z")}else O+="L".concat(r,",").concat(n,"Z");return O},bNe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},NQ=function(t){var r=nz(nz({},bNe),t),n=r.cx,a=r.cy,i=r.innerRadius,s=r.outerRadius,o=r.cornerRadius,u=r.forceCornerRadius,c=r.cornerIsExternal,h=r.startAngle,d=r.endAngle,m=r.className;if(s<i||h===d)return null;var v=Lt("recharts-sector",m),y=s-i,b=Xu(o,y,0,!0),E;return b>0&&Math.abs(h-d)<360?E=yNe({cx:n,cy:a,innerRadius:i,outerRadius:s,cornerRadius:Math.min(b,y/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:h,endAngle:d}):E=kQ({cx:n,cy:a,innerRadius:i,outerRadius:s,startAngle:h,endAngle:d}),re.createElement("path",VS({},Ft(r,!0),{className:v,d:E,role:"img"}))};function yp(e){"@babel/helpers - typeof";return yp=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},yp(e)}function GS(){return GS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
961for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},GS.apply(this,arguments)}function az(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function iz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?az(Object(r),!0).forEach(function(n){xNe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):az(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xNe(e,t,r){return t=ENe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ENe(e){var t=wNe(e,"string");return yp(t)=="symbol"?t:t+""}function wNe(e,t){if(yp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sz={curveBasisClosed:HSe,curveBasisOpen:qSe,curveBasis:USe,curveBumpX:OSe,curveBumpY:kSe,curveLinearClosed:VSe,curveLinear:Ab,curveMonotoneX:GSe,curveMonotoneY:WSe,curveNatural:YSe,curveStep:XSe,curveStepAfter:QSe,curveStepBefore:KSe},v1=function(t){return t.x===+t.x&&t.y===+t.y},eh=function(t){return t.x},th=function(t){return t.y},_Ne=function(t,r){if(wt(t))return t;var n="curve".concat(Sb(t));return(n==="curveMonotone"||n==="curveBump")&&r?sz["".concat(n).concat(r==="vertical"?"Y":"X")]:sz[n]||Ab},SNe=function(t){var r=t.type,n=r===void 0?"linear":r,a=t.points,i=a===void 0?[]:a,s=t.baseLine,o=t.layout,u=t.connectNulls,c=u===void 0?!1:u,h=_Ne(n,o),d=c?i.filter(function(b){return v1(b)}):i,m;if(Array.isArray(s)){var v=c?s.filter(function(b){return v1(b)}):s,y=d.map(function(b,E){return iz(iz({},b),{},{base:v[E]})});return o==="vertical"?m=l1().y(th).x1(eh).x0(function(b){return b.base.x}):m=l1().x(eh).y1(th).y0(function(b){return b.base.y}),m.defined(v1).curve(h),m(y)}return o==="vertical"&&Ue(s)?m=l1().y(th).x1(eh).x0(s):Ue(s)?m=l1().x(eh).y1(th).y0(s):m=IX().x(eh).y(th),m.defined(v1).curve(h),m(d)},WS=function(t){var r=t.className,n=t.points,a=t.path,i=t.pathRef;if((!n||!n.length)&&!a)return null;var s=n&&n.length?SNe(t):a;return N.createElement("path",GS({},Ft(t,!1),_v(t),{className:Lt("recharts-curve",r),d:s,ref:i}))},t5={exports:{}},r5,oz;function TNe(){if(oz)return r5;oz=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return r5=e,r5}var n5,lz;function ANe(){if(lz)return n5;lz=1;var e=TNe();function t(){}function r(){}return r.resetWarningCache=t,n5=function(){function n(s,o,u,c,h,d){if(d!==e){var m=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 m.name="Invariant Violation",m}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},n5}var uz;function CNe(){return uz||(uz=1,t5.exports=ANe()()),t5.exports}var ONe=CNe();const Jt=er(ONe);var kNe=Object.getOwnPropertyNames,NNe=Object.getOwnPropertySymbols,RNe=Object.prototype.hasOwnProperty;function cz(e,t){return function(n,a,i){return e(n,a,i)&&t(n,a,i)}}function y1(e){return function(r,n,a){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,a);var i=a.cache,s=i.get(r),o=i.get(n);if(s&&o)return s===n&&o===r;i.set(r,n),i.set(n,r);var u=e(r,n,a);return i.delete(r),i.delete(n),u}}function MNe(e){return e?.[Symbol.toStringTag]}function fz(e){return kNe(e).concat(NNe(e))}var PNe=Object.hasOwn||(function(e,t){return RNe.call(e,t)});function dc(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var INe="__v",DNe="__o",LNe="_owner",dz=Object.getOwnPropertyDescriptor,hz=Object.keys;function jNe(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function BNe(e,t){return dc(e.getTime(),t.getTime())}function zNe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function $Ne(e,t){return e===t}function pz(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.entries(),s,o,u=0;(s=i.next())&&!s.done;){for(var c=t.entries(),h=!1,d=0;(o=c.next())&&!o.done;){if(a[d]){d++;continue}var m=s.value,v=o.value;if(r.equals(m[0],v[0],u,d,e,t,r)&&r.equals(m[1],v[1],m[0],v[0],e,t,r)){h=a[d]=!0;break}d++}if(!h)return!1;u++}return!0}var FNe=dc;function UNe(e,t,r){var n=hz(e),a=n.length;if(hz(t).length!==a)return!1;for(;a-- >0;)if(!RQ(e,t,r,n[a]))return!1;return!0}function rh(e,t,r){var n=fz(e),a=n.length;if(fz(t).length!==a)return!1;for(var i,s,o;a-- >0;)if(i=n[a],!RQ(e,t,r,i)||(s=dz(e,i),o=dz(t,i),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function HNe(e,t){return dc(e.valueOf(),t.valueOf())}function qNe(e,t){return e.source===t.source&&e.flags===t.flags}function mz(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.values(),s,o;(s=i.next())&&!s.done;){for(var u=t.values(),c=!1,h=0;(o=u.next())&&!o.done;){if(!a[h]&&r.equals(s.value,o.value,s.value,o.value,e,t,r)){c=a[h]=!0;break}h++}if(!c)return!1}return!0}function VNe(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function GNe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function RQ(e,t,r,n){return(n===LNe||n===DNe||n===INe)&&(e.$$typeof||t.$$typeof)?!0:PNe(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var WNe="[object Arguments]",YNe="[object Boolean]",XNe="[object Date]",KNe="[object Error]",QNe="[object Map]",ZNe="[object Number]",JNe="[object Object]",eRe="[object RegExp]",tRe="[object Set]",rRe="[object String]",nRe="[object URL]",aRe=Array.isArray,gz=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,vz=Object.assign,iRe=Object.prototype.toString.call.bind(Object.prototype.toString);function sRe(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,s=e.areNumbersEqual,o=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,h=e.areSetsEqual,d=e.areTypedArraysEqual,m=e.areUrlsEqual,v=e.unknownTagComparators;return function(b,E,_){if(b===E)return!0;
961if(b==null||E==null)return!1;var T=typeof b;if(T!==typeof E)return!1;if(T!=="object")return T==="number"?s(b,E,_):T==="function"?a(b,E,_):!1;var C=b.constructor;if(C!==E.constructor)return!1;if(C===Object)return o(b,E,_);if(aRe(b))return t(b,E,_);if(gz!=null&&gz(b))return d(b,E,_);if(C===Date)return r(b,E,_);if(C===RegExp)return c(b,E,_);if(C===Map)return i(b,E,_);if(C===Set)return h(b,E,_);var P=iRe(b);if(P===XNe)return r(b,E,_);if(P===eRe)return c(b,E,_);if(P===QNe)return i(b,E,_);if(P===tRe)return h(b,E,_);if(P===JNe)return typeof b.then!="function"&&typeof E.then!="function"&&o(b,E,_);if(P===nRe)return m(b,E,_);if(P===KNe)return n(b,E,_);if(P===WNe)return o(b,E,_);if(P===YNe||P===ZNe||P===rRe)return u(b,E,_);if(v){var O=v[P];if(!O){var k=MNe(b);k&&(O=v[k])}if(O)return O(b,E,_)}return!1}}function oRe(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?rh:jNe,areDatesEqual:BNe,areErrorsEqual:zNe,areFunctionsEqual:$Ne,areMapsEqual:n?cz(pz,rh):pz,areNumbersEqual:FNe,areObjectsEqual:n?rh:UNe,arePrimitiveWrappersEqual:HNe,areRegExpsEqual:qNe,areSetsEqual:n?cz(mz,rh):mz,areTypedArraysEqual:n?rh:VNe,areUrlsEqual:GNe,unknownTagComparators:void 0};if(r&&(a=vz({},a,r(a))),t){var i=y1(a.areArraysEqual),s=y1(a.areMapsEqual),o=y1(a.areObjectsEqual),u=y1(a.areSetsEqual);a=vz({},a,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:o,areSetsEqual:u})}return a}function lRe(e){return function(t,r,n,a,i,s,o){return e(t,r,o)}}function uRe(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,i=e.strict;if(n)return function(u,c){var h=n(),d=h.cache,m=d===void 0?t?new WeakMap:void 0:d,v=h.meta;return r(u,c,{cache:m,equals:a,meta:v,strict:i})};if(t)return function(u,c){return r(u,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var s={cache:void 0,equals:a,meta:void 0,strict:i};return function(u,c){return r(u,c,s)}}var cRe=Fl();Fl({strict:!0});Fl({circular:!0});Fl({circular:!0,strict:!0});Fl({createInternalComparator:function(){return dc}});Fl({strict:!0,createInternalComparator:function(){return dc}});Fl({circular:!0,createInternalComparator:function(){return dc}});Fl({circular:!0,createInternalComparator:function(){return dc},strict:!0});function Fl(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,i=e.strict,s=i===void 0?!1:i,o=oRe(e),u=sRe(o),c=n?n(u):lRe(u);return uRe({circular:r,comparator:u,createState:a,equals:c,strict:s})}function fRe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function yz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):fRe(a)};requestAnimationFrame(n)}function YS(e){"@babel/helpers - typeof";return YS=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},YS(e)}function dRe(e){return gRe(e)||mRe(e)||pRe(e)||hRe()}function hRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
962In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pRe(e,t){if(e){if(typeof e=="string")return bz(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bz(e,t)}}function bz(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gRe(e){if(Array.isArray(e))return e}function vRe(){var e={},t=function(){return null},r=!1,n=function a(i){if(!r){if(Array.isArray(i)){if(!i.length)return;var s=i,o=dRe(s),u=o[0],c=o.slice(1);if(typeof u=="number"){yz(a.bind(null,c),u);return}a(u),yz(a.bind(null,c));return}YS(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){r=!0},start:function(i){r=!1,n(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function bp(e){"@babel/helpers - typeof";return bp=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},bp(e)}function xz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ez(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 159,773 bytes, lines 962-984
962t%2?xz(Object(r),!0).forEach(function(n){MQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xz(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MQ(e,t,r){return t=yRe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yRe(e){var t=bRe(e,"string");return bp(t)==="symbol"?t:String(t)}function bRe(e,t){if(bp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xRe=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,a){return n.filter(function(i){return a.includes(i)})})},ERe=function(t){return t},wRe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Rh=function(t,r){return Object.keys(r).reduce(function(n,a){return Ez(Ez({},n),{},MQ({},a,t(a,r[a])))},{})},wz=function(t,r,n){return t.map(function(a){return"".concat(wRe(a)," ").concat(r,"ms ").concat(n)}).join(",")};function _Re(e,t){return ARe(e)||TRe(e,t)||PQ(e,t)||SRe()}function SRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
963In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TRe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function ARe(e){if(Array.isArray(e))return e}function CRe(e){return NRe(e)||kRe(e)||PQ(e)||ORe()}function ORe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
964In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PQ(e,t){if(e){if(typeof e=="string")return XS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return XS(e,t)}}function kRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NRe(e){if(Array.isArray(e))return XS(e)}function XS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Qv=1e-4,IQ=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},DQ=function(t,r){return t.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},_z=function(t,r){return function(n){var a=IQ(t,r);return DQ(a,n)}},RRe=function(t,r){return function(n){var a=IQ(t,r),i=[].concat(CRe(a.map(function(s,o){return s*o}).slice(1)),[0]);return DQ(i,n)}},Sz=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0],i=r[1],s=r[2],o=r[3];if(r.length===1)switch(r[0]){case"linear":a=0,i=0,s=1,o=1;break;case"ease":a=.25,i=.1,s=.25,o=1;break;case"ease-in":a=.42,i=0,s=1,o=1;break;case"ease-out":a=.42,i=0,s=.58,o=1;break;case"ease-in-out":a=0,i=0,s=.58,o=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var c=u[1].split(")")[0].split(",").map(function(E){return parseFloat(E)}),h=_Re(c,4);a=h[0],i=h[1],s=h[2],o=h[3]}}}var d=_z(a,s),m=_z(i,o),v=RRe(a,s),y=function(_){return _>1?1:_<0?0:_},b=function(_){for(var T=_>1?1:_,C=T,P=0;P<8;++P){var O=d(C)-T,k=v(C);if(Math.abs(O-T)<Qv||k<Qv)return m(C);C=y(C-O/k)}return m(C)};return b.isStepper=!1,b},MRe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,s=t.dt,o=s===void 0?17:s,u=function(h,d,m){var v=-(h-d)*n,y=m*i,b=m+(v-y)*o/1e3,E=m*o/1e3+h;return Math.abs(E-d)<Qv&&Math.abs(b)<Qv?[d,0]:[E,b]};return u.isStepper=!0,u.dt=o,u},PRe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Sz(a);case"spring":return MRe();default:if(a.split("(")[0]==="cubic-bezier")return Sz(a)}return typeof a=="function"?a:null};function xp(e){"@babel/helpers - typeof";return xp=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},xp(e)}function Tz(e){return LRe(e)||DRe(e)||LQ(e)||IRe()}function IRe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
965In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LRe(e){if(Array.isArray(e))return QS(e)}function Az(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Az(Object(r),!0).forEach(function(n){KS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Az(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KS(e,t,r){return t=jRe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jRe(e){var t=BRe(e,"string");return xp(t)==="symbol"?t:String(t)}function BRe(e,t){if(xp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zRe(e,t){return URe(e)||FRe(e,t)||LQ(e,t)||$Re()}function $Re(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
966In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LQ(e,t){if(e){if(typeof e=="string")return QS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return QS(e,t)}}function QS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FRe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function URe(e){if(Array.isArray(e))return e}var Zv=function(t,r,n){return t+(r-t)*n},ZS=function(t){var r=t.from,n=t.to;return r!==n},HRe=function e(t,r,n){var a=Rh(function(i,s){if(ZS(s)){var o=t(s.from,s.to,s.velocity),u=zRe(o,2),c=u[0],h=u[1];return Mn(Mn({},s),{},{from:c,velocity:h})}return s},r);return n<1?Rh(function(i,s){return ZS(s)?Mn(Mn({},s),{},{velocity:Zv(s.velocity,a[i].velocity,n),from:Zv(s.from,a[i].from,n)}):s},r):e(t,a,n-1)};const qRe=(function(e,t,r,n,a){var i=xRe(e,t),s=i.reduce(function(E,_){return Mn(Mn({},E),{},KS({},_,[e[_],t[_]]))},{}),o=i.reduce(function(E,_){return Mn(Mn({},E),{},KS({},_,{from:e[_],velocity:0,to:t[_]}))},{}),u=-1,c,h,d=function(){return null},m=function(){return Rh(function(_,T){return T.from},o)},v=function(){return!Object.values(o).filter(ZS).length},y=function(_){c||(c=_);var T=_-c,C=T/r.dt;o=HRe(r,o,C),a(Mn(Mn(Mn({},e),t),m())),c=_,v()||(u=requestAnimationFrame(d))},b=function(_){h||(h=_);var T=(_-h)/n,C=Rh(function(O,k){return Zv.apply(void 0,Tz(k).concat([r(T)]))},s);if(a(Mn(Mn(Mn({},e),t),C)),T<1)u=requestAnimationFrame(d);else{var P=Rh(function(O,k){return Zv.apply(void 0,Tz(k).concat([r(1)]))},s);a(Mn(Mn(Mn({},e),t),P))}};return d=r.isStepper?y:b,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(u)}}});function i0(e){"@babel/helpers - typeof";return i0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i0(e)}var VRe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function GRe(e,t){if(e==null)return{};var r=WRe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WRe(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function a5(e){return QRe(e)||KRe(e)||XRe(e)||YRe()}function YRe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
967In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XRe(e,t){if(e){if(typeof e=="string")return JS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return JS(e,t)}}function KRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QRe(e){if(Array.isArray(e))return JS(e)}function JS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Cz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ki(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cz(Object(r),!0).forEach(function(n){dh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cz(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dh(e,t,r){return t=jQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZRe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JRe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jQ(n.key),n)}}function eMe(e,t,r){return t&&JRe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jQ(e){var t=tMe(e,"string");return i0(t)==="symbol"?t:String(t)}function tMe(e,t){if(i0(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(i0(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rMe(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&&eT(e,t)}function eT(e,t){return eT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},eT(e,t)}function nMe(e){var t=aMe();return function(){var n=Jv(e),a;if(t){var i=Jv(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return tT(this,a)}}function tT(e,t){if(t&&(i0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rT(e)}function rT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aMe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jv(e){return Jv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jv(e)}var So=(function(e){rMe(r,e);var t=nMe(r);function r(n,a){var i;ZRe(this,r),i=t.call(this,n,a);var s=i.props,o=s.isActive,u=s.attributeName,c=s.from,h=s.to,d=s.steps,m=s.children,v=s.duration;if(i.handleStyleChange=i.handleStyleChange.bind(rT(i)),i.changeStyle=i.changeStyle.bind(rT(i)),!o||v<=0)return i.state={style:{}},typeof m=="function"&&(i.state={style:h}),tT(i);if(d&&d.length)i.state={style:d[0].style};else if(c){if(typeof m=="function")return i.state={style:c},tT(i);i.state={style:u?dh({},u,c):c}}else i.state={style:{}};return i}return eMe(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,s=a.canBegin;this.mounted=!0,!(!i||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,s=i.isActive,o=i.canBegin,u=i.attributeName,c=i.shouldReAnimate,h=i.to,d=i.from,m=this.state.style;if(o){if(!s){var v={style:u?dh({},u,h):h};this.state&&m&&(u&&m[u]!==h||!u&&m!==h)&&this.setState(v);return}if(!(cRe(a.to,h)&&a.canBegin&&a.isActive)){var y=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var b=y||c?d:a.to;if(this.state&&m){var E={style:u?dh({},u,b):b};(u&&m[u]!==b||!u&&m!==b)&&this.setState(E)}this.runAnimation(ki(ki({},this.props),{},{from:b,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,s=a.from,o=a.to,u=a.duration,c=a.easing,h=a.begin,d=a.onAnimationEnd,m=a.onAnimationStart,v=qRe(s,o,PRe(c),u,this.changeStyle),y=function(){i.stopJSAnimation=v()};this.manager.start([m,h,y,u,d])}},{key:"runStepAnimation",value:function(a){var i=this,s=a.steps,o=a.begin,u=a.onAnimationStart,c=s[0],h=c.style,d=c.duration,m=d===void 0?0:d,v=function(b,E,_){if(_===0)return b;var T=E.duration,C=E.easing,P=C===void 0?"ease":C,O=E.style,k=E.properties,M=E.onAnimationEnd,j=_>0?s[_-1]:E,z=k||Object.keys(O);if(typeof P=="function"||P==="spring")return[].concat(a5(b),[i.runJSAnimation.bind(i,{from:j.style,to:O,duration:T,easing:P}),T]);var $=wz(z,T,P),F=ki(ki(ki({},j.style),O),{},{transition:$});return[].concat(a5(b),[F,T,M]).filter(ERe)};return this.manager.start([u].concat(a5(s.reduce(v,[h,Math.max(m,o)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=vRe());var i=a.begin,s=a.duration,o=a.attributeName,u=a.to,c=a.easing,h=a.onAnimationStart,d=a.onAnimationEnd,m=a.steps,v=a.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof v=="function"||c==="spring"){this.runJSAnimation(a);return}if(m.length>1){this.runStepAnimation(a);return}var b=o?dh({},o,u):u,E=wz(Object.keys(b),s,c);y.start([h,i,ki(ki({},b),{},{transition:E}),s,d])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var s=a.duration;a.attributeName,a.easing;var o=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var u=GRe(a,VRe),c=N.Children.count(i),h=this.state.style;if(typeof i=="function")return i(h);if(!o||c===0||s<=0)return i;var d=function(v){var y=v.props,b=y.style,E=b===void 0?{}:b,_=y.className,T=N.cloneElement(v,ki(ki({},u),{},{style:ki(ki({},E),h),className:_}));return T};return c===1?d(N.Children.only(i)):re.createElement("div",null,N.Children.map(i,function(m){return d(m)}))}}]),r})(N.PureComponent);So.displayName="Animate";So.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};So.propTypes={from:Jt.oneOfType([Jt.object,Jt.string]),to:Jt.oneOfType([Jt.object,Jt.string]),attributeName:Jt.string,duration:Jt.number,begin:Jt.number,easing:Jt.oneOfType([Jt.string,Jt.func]),steps:Jt.arrayOf(Jt.shape({duration:Jt.number.isRequired,style:Jt.object.isRequired,easing:Jt.oneOfType([Jt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Jt.func]),properties:Jt.arrayOf("string"),onAnimationEnd:Jt.func})),children:Jt.oneOfType([Jt.node,Jt.func]),isActive:Jt.bool,canBegin:Jt.bool,onAnimationEnd:Jt.func,shouldReAnimate:Jt.bool,onAnimationStart:Jt.func,onAnimationReStart:Jt.func};function Ep(e){"@babel/helpers - typeof";return Ep=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},Ep(e)}function ey(){return ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ey.apply(this,arguments)}function iMe(e,t){return uMe(e)||lMe(e,t)||oMe(e,t)||sMe()}function sMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
968In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oMe(e,t){if(e){if(typeof e=="string")return Oz(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oz(e,t)}}function Oz(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lMe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function uMe(e){if(Array.isArray(e))return e}function kz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Nz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kz(Object(r),!0).forEach(function(n){cMe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kz(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cMe(e,t,r){return t=fMe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fMe(e){var t=dMe(e,"string");return Ep(t)=="symbol"?t:t+""}function dMe(e,t){if(Ep(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ep(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rz=function(t,r,n,a,i){var s=Math.min(Math.abs(n)/2,Math.abs(a)/2),o=a>=0?1:-1,u=n>=0?1:-1,c=a>=0&&n>=0||a<0&&n<0?1:0,h;if(s>0&&i instanceof Array){for(var d=[0,0,0,0],m=0,v=4;m<v;m++)d[m]=i[m]>s?s:i[m];h="M".concat(t,",").concat(r+o*d[0]),d[0]>0&&(h+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(c,",").concat(t+u*d[0],",").concat(r)),h+="L ".concat(t+n-u*d[1],",").concat(r),d[1]>0&&(h+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(c,`,
969        `).concat(t+n,",").concat(r+o*d[1])),h+="L ".concat(t+n,",").concat(r+a-o*d[2]),d[2]>0&&(h+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(c,`,
970        `).concat(t+n-u*d[2],",").concat(r+a)),h+="L ".concat(t+u*d[3],",").concat(r+a),d[3]>0&&(h+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(c,`,
971        `).concat(t,",").concat(r+a-o*d[3])),h+="Z"}else if(s>0&&i===+i&&i>0){var y=Math.min(s,i);h="M ".concat(t,",").concat(r+o*y,`
972            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+u*y,",").concat(r,`
973            L `).concat(t+n-u*y,",").concat(r,`
974            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+o*y,`
975            L `).concat(t+n,",").concat(r+a-o*y,`
976            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-u*y,",").concat(r+a,`
977            L `).concat(t+u*y,",").concat(r+a,`
978            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+a-o*y," Z")}else h="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return h},hMe=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,i=r.x,s=r.y,o=r.width,u=r.height;if(Math.abs(o)>0&&Math.abs(u)>0){var c=Math.min(i,i+o),h=Math.max(i,i+o),d=Math.min(s,s+u),m=Math.max(s,s+u);return n>=c&&n<=h&&a>=d&&a<=m}return!1},pMe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},T7=function(t){var r=Nz(Nz({},pMe),t),n=N.useRef(),a=N.useState(-1),i=iMe(a,2),s=i[0],o=i[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var P=n.current.getTotalLength();P&&o(P)}catch{}},[]);var u=r.x,c=r.y,h=r.width,d=r.height,m=r.radius,v=r.className,y=r.animationEasing,b=r.animationDuration,E=r.animationBegin,_=r.isAnimationActive,T=r.isUpdateAnimationActive;if(u!==+u||c!==+c||h!==+h||d!==+d||h===0||d===0)return null;var C=Lt("recharts-rectangle",v);return T?re.createElement(So,{canBegin:s>0,from:{width:h,height:d,x:u,y:c},to:{width:h,height:d,x:u,y:c},duration:b,animationEasing:y,isActive:T},function(P){var O=P.width,k=P.height,M=P.x,j=P.y;return re.createElement(So,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:E,duration:b,isActive:_,easing:y},re.createElement("path",ey({},Ft(r,!0),{className:C,d:Rz(M,j,O,k,m),ref:n})))}):re.createElement("path",ey({},Ft(r,!0),{className:C,d:Rz(u,c,h,d,m)}))};function nT(){return nT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nT.apply(this,arguments)}var A7=function(t){var r=t.cx,n=t.cy,a=t.r,i=t.className,s=Lt("recharts-dot",i);return r===+r&&n===+n&&a===+a?N.createElement("circle",nT({},Ft(t,!1),_v(t),{className:s,cx:r,cy:n,r:a})):null};function wp(e){"@babel/helpers - typeof";return wp=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},wp(e)}var mMe=["x","y","top","left","width","height","className"];function aT(){return aT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aT.apply(this,arguments)}function Mz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function gMe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mz(Object(r),!0).forEach(function(n){vMe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mz(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vMe(e,t,r){return t=yMe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yMe(e){var t=bMe(e,"string");return wp(t)=="symbol"?t:t+""}function bMe(e,t){if(wp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xMe(e,t){if(e==null)return{};var r=EMe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EMe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var wMe=function(t,r,n,a,i,s){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(s,",").concat(r,"h").concat(n)},_Me=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,s=t.top,o=s===void 0?0:s,u=t.left,c=u===void 0?0:u,h=t.width,d=h===void 0?0:h,m=t.height,v=m===void 0?0:m,y=t.className,b=xMe(t,mMe),E=gMe({x:n,y:i,top:o,left:c,width:d,height:v},b);return!Ue(n)||!Ue(i)||!Ue(d)||!Ue(v)||!Ue(o)||!Ue(c)?null:re.createElement("path",aT({},Ft(E,!0),{className:Lt("recharts-cross",y),d:wMe(n,i,d,v,o,c)}))},i5,Pz;function SMe(){if(Pz)return i5;Pz=1;var e=nK(),t=e(Object.getPrototypeOf,Object);return i5=t,i5}var s5,Iz;function TMe(){if(Iz)return s5;Iz=1;var e=ko(),t=SMe(),r=No(),n="[object Object]",a=Function.prototype,i=Object.prototype,s=a.toString,o=i.hasOwnProperty,u=s.call(Object);function c(h){if(!r(h)||e(h)!=n)return!1;var d=t(h);if(d===null)return!0;var m=o.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&s.call(m)==u}return s5=c,s5}var AMe=TMe();const CMe=er(AMe);var o5,Dz;function OMe(){if(Dz)return o5;Dz=1;var e=ko(),t=No(),r="[object Boolean]";function n(a){return a===!0||a===!1||t(a)&&e(a)==r}return o5=n,o5}var kMe=OMe();const NMe=er(kMe);function _p(e){"@babel/helpers - typeof";return _p=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},_p(e)}function ty(){return ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ty.apply(this,arguments)}function RMe(e,t){return DMe(e)||IMe(e,t)||PMe(e,t)||MMe()}function MMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
979In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PMe(e,t){if(e){if(typeof e=="string")return Lz(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lz(e,t)}}function Lz(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function IMe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function DMe(e){if(Array.isArray(e))return e}function jz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Bz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jz(Object(r),!0).forEach(function(n){LMe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jz(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LMe(e,t,r){return t=jMe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jMe(e){var t=BMe(e,"string");return _p(t)=="symbol"?t:t+""}function BMe(e,t){if(_p(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_p(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zz=function(t,r,n,a,i){var s=n-a,o;return o="M ".concat(t,",").concat(r),o+="L ".concat(t+n,",").concat(r),o+="L ".concat(t+n-s/2,",").concat(r+i),o+="L ".concat(t+n-s/2-a,",").concat(r+i),o+="L ".concat(t,",").concat(r," Z"),o},zMe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$Me=function(t){var r=Bz(Bz({},zMe),t),n=N.useRef(),a=N.useState(-1),i=RMe(a,2),s=i[0],o=i[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var C=n.current.getTotalLength();C&&o(C)}catch{}},[]);var u=r.x,c=r.y,h=r.upperWidth,d=r.lowerWidth,m=r.height,v=r.className,y=r.animationEasing,b=r.animationDuration,E=r.animationBegin,_=r.isUpdateAnimationActive;if(u!==+u||c!==+c||h!==+h||d!==+d||m!==+m||h===0&&d===0||m===0)return null;var T=Lt("recharts-trapezoid",v);return _?re.createElement(So,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:m,x:u,y:c},to:{upperWidth:h,lowerWidth:d,height:m,x:u,y:c},duration:b,animationEasing:y,isActive:_},function(C){var P=C.upperWidth,O=C.lowerWidth,k=C.height,M=C.x,j=C.y;return re.createElement(So,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:E,duration:b,easing:y},re.createElement("path",ty({},Ft(r,!0),{className:T,d:zz(M,j,P,O,k),ref:n})))}):re.createElement("g",null,re.createElement("path",ty({},Ft(r,!0),{className:T,d:zz(u,c,h,d,m)})))},FMe=["option","shapeType","propTransformer","activeClassName","isActive"];function Sp(e){"@babel/helpers - typeof";return Sp=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},Sp(e)}function UMe(e,t){if(e==null)return{};var r=HMe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HMe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ry(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$z(Object(r),!0).forEach(function(n){qMe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$z(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qMe(e,t,r){return t=VMe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VMe(e){var t=GMe(e,"string");return Sp(t)=="symbol"?t:t+""}function GMe(e,t){if(Sp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WMe(e,t){return ry(ry({},t),e)}function YMe(e,t){return e==="symbols"}function Fz(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return re.createElement(T7,r);case"trapezoid":return re.createElement($Me,r);case"sector":return re.createElement(NQ,r);case"symbols":if(YMe(t))return re.createElement(q8,r);break;default:return null}}function XMe(e){return N.isValidElement(e)?e.props:e}function KMe(e){var t=e.option,r=e.shapeType,n=e.propTransformer,a=n===void 0?WMe:n,i=e.activeClassName,s=i===void 0?"recharts-active-shape":i,o=e.isActive,u=UMe(e,FMe),c;if(N.isValidElement(t))c=N.cloneElement(t,ry(ry({},u),XMe(t)));else if(wt(t))c=t(u);else if(CMe(t)&&!NMe(t)){var h=a(t,u);c=re.createElement(Fz,{shapeType:r,elementProps:h})}else{var d=u;c=re.createElement(Fz,{shapeType:r,elementProps:d})}return o?re.createElement(Hr,{className:s},c):c}function Hb(e,t){return t!=null&&"trapezoids"in e.props}function qb(e,t){return t!=null&&"sectors"in e.props}function Tp(e,t){return t!=null&&"points"in e.props}function QMe(e,t){var r,n,a=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,i=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return a&&i}function ZMe(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function JMe(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function ePe(e,t){var r;return Hb(e,t)?r=QMe:qb(e,t)?r=ZMe:Tp(e,t)&&(r=JMe),r}function tPe(e,t){var r;return Hb(e,t)?r="trapezoids":qb(e,t)?r="sectors":Tp(e,t)&&(r="points"),r}function rPe(e,t){if(Hb(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(qb(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Tp(e,t)?t.payload:{}}function nPe(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=tPe(r,t),i=rPe(r,t),s=n.filter(function(u,c){var h=$b(i,u),d=r.props[a].filter(function(y){var b=ePe(r,t);return b(y,t)}),m=r.props[a].indexOf(d[d.length-1]),v=c===m;return h&&v}),o=n.indexOf(s[s.length-1]);return o}var l5,Uz;function aPe(){if(Uz)return l5;Uz=1;var e=Math.ceil,t=Math.max;function r(n,a,i,s){for(var o=-1,u=t(e((a-n)/(i||1)),0),c=Array(u);u--;)c[s?u:++o]=n,n+=i;return c}return l5=r,l5}var u5,Hz;function BQ(){if(Hz)return u5;Hz=1;var e=bK(),t=1/0,r=17976931348623157e292;function n(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var i=a<0?-1:1;return i*r}return a===a?a:0}return u5=n,u5}var c5,qz;function iPe(){if(qz)return c5;qz=1;var e=aPe(),t=Nb(),r=BQ();function n(a){return function(i,s,o){return o&&typeof o!="number"&&t(i,s,o)&&(s=o=void 0),i=r(i),s===void 0?(s=i,i=0):s=r(s),o=o===void 0?i<s?1:-1:r(o),e(i,s,o,a)}}return c5=n,c5}var f5,Vz;function sPe(){if(Vz)return f5;Vz=1;var e=iPe(),t=e();return f5=t,f5}var oPe=sPe();const ny=er(oPe);function Ap(e){"@babel/helpers - typeof";return Ap=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},Ap(e)}function Gz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Wz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gz(Object(r),!0).forEach(function(n){zQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gz(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zQ(e,t,r){return t=lPe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lPe(e){var t=uPe(e,"string");return Ap(t)=="symbol"?t:t+""}function uPe(e,t){if(Ap(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ap(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cPe=["Webkit","Moz","O","ms"],fPe=function(t,r){var n=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=cPe.reduce(function(i,s){return Wz(Wz({},i),{},zQ({},s+n,r))},{});return a[t]=r,a};function s0(e){"@babel/helpers - typeof";return s0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s0(e)}function ay(){return ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ay.apply(this,arguments)}function Yz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function d5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yz(Object(r),!0).forEach(function(n){ja(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yz(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FQ(n.key),n)}}function hPe(e,t,r){return t&&Xz(e.prototype,t),r&&Xz(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pPe(e,t,r){return t=iy(t),mPe(e,$Q()?Reflect.construct(t,r||[],iy(e).constructor):t.apply(e,r))}function mPe(e,t){if(t&&(s0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gPe(e)}function gPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $Q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($Q=function(){return!!e})()}function iy(e){return iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},iy(e)}function vPe(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&&iT(e,t)}function iT(e,t){return iT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},iT(e,t)}function ja(e,t,r){return t=FQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FQ(e){var t=yPe(e,"string");return s0(t)=="symbol"?t:t+""}function yPe(e,t){if(s0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(s0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bPe=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,s=t.width,o=t.travellerWidth;if(!r||!r.length)return{};var u=r.length,c=kh().domain(ny(0,u)).range([i,i+s-o]),h=c.domain().map(function(d){return c(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(a),scale:c,scaleValues:h}},Kz=function(t){return t.changedTouches&&!!t.changedTouches.length},o0=(function(e){function t(r){var n;return dPe(this,t),n=pPe(this,t,[r]),ja(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),ja(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),ja(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,i=a.endIndex,s=a.onDragEnd,o=a.startIndex;s?.({endIndex:i,startIndex:o})}),n.detachDragEndListener()}),ja(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ja(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ja(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ja(n,"handleSlideDragStart",function(a){var i=Kz(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return vPe(t,e),hPe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,i=n.endX,s=this.state.scaleValues,o=this.props,u=o.gap,c=o.data,h=c.length-1,d=Math.min(a,i),m=Math.max(a,i),v=t.getIndexInRange(s,d),y=t.getIndexInRange(s,m);return{startIndex:v-v%u,endIndex:y===h?h:y-y%u}}},{key:"getTextOfTick",value:function(n){var a=this.props,i=a.data,s=a.tickFormatter,o=a.dataKey,u=Ga(i[n],o,n);return wt(s)?s(u,n):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var a=this.state,i=a.slideMoveStartX,s=a.startX,o=a.endX,u=this.props,c=u.x,h=u.width,d=u.travellerWidth,m=u.startIndex,v=u.endIndex,y=u.onChange,b=n.pageX-i;b>0?b=Math.min(b,c+h-d-o,c+h-d-s):b<0&&(b=Math.max(b,c-s,c-o));var E=this.getIndex({startX:s+b,endX:o+b});(E.startIndex!==m||E.endIndex!==v)&&y&&y(E),this.setState({startX:s+b,endX:o+b,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var i=Kz(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,i=a.brushMoveStartX,s=a.movingTravellerId,o=a.endX,u=a.startX,c=this.state[s],h=this.props,d=h.x,m=h.width,v=h.travellerWidth,y=h.onChange,b=h.gap,E=h.data,_={startX:this.state.startX,endX:this.state.endX},T=n.pageX-i;T>0?T=Math.min(T,d+m-v-c):T<0&&(T=Math.max(T,d-c)),_[s]=c+T;var C=this.getIndex(_),P=C.startIndex,O=C.endIndex,k=function(){var j=E.length-1;return s==="startX"&&(o>u?P%b===0:O%b===0)||o<u&&O===j||s==="endX"&&(o>u?O%b===0:P%b===0)||o>u&&O===j};this.setState(ja(ja({},s,c+T),"brushMoveStartX",n.pageX),function(){y&&k()&&y(C)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var i=this,s=this.state,o=s.scaleValues,u=s.startX,c=s.endX,h=this.state[a],d=o.indexOf(h);if(d!==-1){var m=d+n;if(!(m===-1||m>=o.length)){var v=o[m];a==="startX"&&v>=c||a==="endX"&&v<=u||this.setState(ja({},a,v),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,i=n.y,s=n.width,o=n.height,u=n.fill,c=n.stroke;return re.createElement("rect",{stroke:c,fill:u,x:a,y:i,width:s,height:o})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,i=n.y,s=n.width,o=n.height,u=n.data,c=n.children,h=n.padding,d=N.Children.only(c);return d?re.cloneElement(d,{x:a,y:i,width:s,height:o,margin:h,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,a){var i,s,o=this,u=this.props,c=u.y,h=u.travellerWidth,d=u.height,m=u.traveller,v=u.ariaLabel,y=u.data,b=u.startIndex,E=u.endIndex,_=Math.max(n,this.props.x),T=d5(d5({},Ft(this.props,!1)),{},{x:_,y:c,width:h,height:d}),C=v||"Min value: ".concat((i=y[b])===null||i===void 0?void 0:i.name,", Max value: ").concat((s=y[E])===null||s===void 0?void 0:s.name);return re.createElement(Hr,{tabIndex:0,role:"slider","aria-label":C,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),o.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,T))}},{key:"renderSlide",value:function(n,a){var i=this.props,s=i.y,o=i.height,u=i.stroke,c=i.travellerWidth,h=Math.min(n,a)+c,d=Math.max(Math.abs(a-n)-c,0);return re.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:h,y:s,width:d,height:o})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,i=n.endIndex,s=n.y,o=n.height,u=n.travellerWidth,c=n.stroke,h=this.state,d=h.startX,m=h.endX,v=5,y={pointerEvents:"none",fill:c};return re.createElement(Hr,{className:"recharts-brush-texts"},re.createElement(Iv,ay({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,m)-v,y:s+o/2},y),this.getTextOfTick(a)),re.createElement(Iv,ay({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,m)+u+v,y:s+o/2},y),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,a=n.data,i=n.className,s=n.children,o=n.x,u=n.y,c=n.width,h=n.height,d=n.alwaysShowText,m=this.state,v=m.startX,y=m.endX,b=m.isTextActive,E=m.isSlideMoving,_=m.isTravellerMoving,T=m.isTravellerFocused;if(!a||!a.length||!Ue(o)||!Ue(u)||!Ue(c)||!Ue(h)||c<=0||h<=0)return null;var C=Lt("recharts-brush",i),P=re.Children.count(s)===1,O=fPe("userSelect","none");return re.createElement(Hr,{className:C,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),P&&this.renderPanorama(),this.renderSlide(v,y),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(y,"endX"),(b||E||_||T||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,i=n.y,s=n.width,o=n.height,u=n.stroke,c=Math.floor(i+o/2)-1;return re.createElement(re.Fragment,null,re.createElement("rect",{x:a,y:i,width:s,height:o,fill:u,stroke:"none"}),re.createElement("line",{x1:a+1,y1:c,x2:a+s-1,y2:c,fill:"none",stroke:"#fff"}),re.createElement("line",{x1:a+1,y1:c+2,x2:a+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var i;return re.isValidElement(n)?i=re.cloneElement(n,a):wt(n)?i=n(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(n,a){var i=n.data,s=n.width,o=n.x,u=n.travellerWidth,c=n.updateId,h=n.startIndex,d=n.endIndex;if(i!==a.prevData||c!==a.prevUpdateId)return d5({prevData:i,prevTravellerWidth:u,prevUpdateId:c,prevX:o,prevWidth:s},i&&i.length?bPe({data:i,width:s,x:o,travellerWidth:u,startIndex:h,endIndex:d}):{scale:null,scaleValues:null});if(a.scale&&(s!==a.prevWidth||o!==a.prevX||u!==a.prevTravellerWidth)){a.scale.range([o,o+s-u]);var m=a.scale.domain().map(function(v){return a.scale(v)});return{prevData:i,prevTravellerWidth:u,prevUpdateId:c,prevX:o,prevWidth:s,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(n,a){for(var i=n.length,s=0,o=i-1;o-s>1;){var u=Math.floor((s+o)/2);n[u]>a?o=u:s=u}return a>=n[o]?o:s}}])})(N.PureComponent);ja(o0,"displayName","Brush");ja(o0,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var h5,Qz;function xPe(){if(Qz)return h5;Qz=1;var e=Q8();function t(r,n){var a;return e(r,function(i,s,o){return a=n(i,s,o),!a}),!!a}return h5=t,h5}var p5,Zz;function EPe(){if(Zz)return p5;Zz=1;var e=KX(),t=Bl(),r=xPe(),n=Ta(),a=Nb();function i(s,o,u){var c=n(s)?e:r;return u&&a(s,o,u)&&(o=void 0),c(s,t(o,3))}return p5=i,p5}var wPe=EPe();const _Pe=er(wPe);var ys=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},m5,Jz;function SPe(){if(Jz)return m5;Jz=1;var e=pK();function t(r,n,a){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return m5=t,m5}var g5,e$;function TPe(){if(e$)return g5;e$=1;var e=SPe(),t=dK(),r=Bl();function n(a,i){var s={};return i=r(i,3),t(a,function(o,u,c){e(s,u,i(o,u,c))}),s}return g5=n,g5}var APe=TPe();const CPe=er(APe);var v5,t$;function OPe(){if(t$)return v5;t$=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(!r(t[n],n,t))return!1;return!0}return v5=e,v5}var y5,r$;function kPe(){if(r$)return y5;r$=1;var e=Q8();function t(r,n){var a=!0;return e(r,function(i,s,o){return a=!!n(i,s,o),a}),a}return y5=t,y5}var b5,n$;function NPe(){if(n$)return b5;n$=1;var e=OPe(),t=kPe(),r=Bl(),n=Ta(),a=Nb();function i(s,o,u){var c=n(s)?e:t;return u&&a(s,o,u)&&(o=void 0),c(s,r(o,3))}return b5=i,b5}var RPe=NPe();const UQ=er(RPe);var MPe=["x","y"];function Cp(e){"@babel/helpers - typeof";return Cp=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},Cp(e)}function sT(){return sT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sT.apply(this,arguments)}function a$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a$(Object(r),!0).forEach(function(n){PPe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PPe(e,t,r){return t=IPe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IPe(e){var t=DPe(e,"string");return Cp(t)=="symbol"?t:t+""}function DPe(e,t){if(Cp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LPe(e,t){if(e==null)return{};var r=jPe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function BPe(e,t){var r=e.x,n=e.y,a=LPe(e,MPe),i="".concat(r),s=parseInt(i,10),o="".concat(n),u=parseInt(o,10),c="".concat(t.height||a.height),h=parseInt(c,10),d="".concat(t.width||a.width),m=parseInt(d,10);return nh(nh(nh(nh(nh({},t),a),s?{x:s}:{}),u?{y:u}:{}),{},{height:h,width:m,name:t.name,radius:t.radius})}function i$(e){return re.createElement(KMe,sT({shapeType:"rectangle",propTransformer:BPe,activeClassName:"recharts-active-bar"},e))}var zPe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,a){if(typeof t=="number")return t;var i=Ue(n)||X_e(n);return i?t(n,a):(i||Qu(),r)}},$Pe=["value","background"],HQ;function l0(e){"@babel/helpers - typeof";return l0=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},l0(e)}function FPe(e,t){if(e==null)return{};var r=UPe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sy(){return sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sy.apply(this,arguments)}function s$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Jr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s$(Object(r),!0).forEach(function(n){yl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VQ(n.key),n)}}function qPe(e,t,r){return t&&o$(e.prototype,t),r&&o$(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function VPe(e,t,r){return t=oy(t),GPe(e,qQ()?Reflect.construct(t,r||[],oy(e).constructor):t.apply(e,r))}function GPe(e,t){if(t&&(l0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WPe(e)}function WPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qQ=function(){return!!e})()}function oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oy(e)}function YPe(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&&oT(e,t)}function oT(e,t){return oT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},oT(e,t)}function yl(e,t,r){return t=VQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VQ(e){var t=XPe(e,"string");return l0(t)=="symbol"?t:t+""}function XPe(e,t){if(l0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(l0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hc=(function(e){function t(){var r;HPe(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=VPe(this,t,[].concat(a)),yl(r,"state",{isAnimationFinished:!1}),yl(r,"id",am("recharts-bar-")),yl(r,"handleAnimationEnd",function(){var s=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),s&&s()}),yl(r,"handleAnimationStart",function(){var s=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),s&&s()}),r}return YPe(t,e),qPe(t,[{key:"renderRectanglesStatically",value:function(n){var a=this,i=this.props,s=i.shape,o=i.dataKey,u=i.activeIndex,c=i.activeBar,h=Ft(this.props,!1);return n&&n.map(function(d,m){var v=m===u,y=v?c:s,b=Jr(Jr(Jr({},h),d),{},{isActive:v,option:y,index:m,dataKey:o,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return re.createElement(Hr,sy({className:"recharts-bar-rectangle"},Sv(a.props,d,m),{key:"rectangle-".concat(d?.x,"-").concat(d?.y,"-").concat(d?.value,"-").concat(m)}),re.createElement(i$,b))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,a=this.props,i=a.data,s=a.layout,o=a.isAnimationActive,u=a.animationBegin,c=a.animationDuration,h=a.animationEasing,d=a.animationId,m=this.state.prevData;return re.createElement(So,{begin:u,duration:c,isActive:o,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var y=v.t,b=i.map(function(E,_){var T=m&&m[_];if(T){var C=Li(T.x,E.x),P=Li(T.y,E.y),O=Li(T.width,E.width),k=Li(T.height,E.height);return Jr(Jr({},E),{},{x:C(y),y:P(y),width:O(y),height:k(y)})}if(s==="horizontal"){var M=Li(0,E.height),j=M(y);return Jr(Jr({},E),{},{y:E.y+E.height-j,height:j})}var z=Li(0,E.width),$=z(y);return Jr(Jr({},E),{},{width:$})});return re.createElement(Hr,null,n.renderRectanglesStatically(b))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,i=n.isAnimationActive,s=this.state.prevData;return i&&a&&a.length&&(!s||!$b(s,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var n=this,a=this.props,i=a.data,s=a.dataKey,o=a.activeIndex,u=Ft(this.props.background,!1);return i.map(function(c,h){c.value;var d=c.background,m=FPe(c,$Pe);if(!d)return null;var v=Jr(Jr(Jr(Jr(Jr({},m),{},{fill:"#eee"},d),u),Sv(n.props,c,h)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:s,index:h,className:"recharts-bar-background-rectangle"});return re.createElement(i$,sy({key:"background-bar-".concat(h),option:n.props.background,isActive:h===o},v))})}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,s=i.data,o=i.xAxis,u=i.yAxis,c=i.layout,h=i.children,d=yi(h,cm);if(!d)return null;var m=c==="vertical"?s[0].height/2:s[0].width/2,v=function(E,_){var T=Array.isArray(E.value)?E.value[1]:E.value;return{x:E.x,y:E.y,value:T,errorVal:Ga(E,_)}},y={clipPath:n?"url(#clipPath-".concat(a,")"):null};return re.createElement(Hr,y,d.map(function(b){return re.cloneElement(b,{key:"error-bar-".concat(a,"-").concat(b.props.dataKey),data:s,xAxis:o,yAxis:u,layout:c,offset:m,dataPointFormatter:v})}))}},{key:"render",value:function(){var n=this.props,a=n.hide,i=n.data,s=n.className,o=n.xAxis,u=n.yAxis,c=n.left,h=n.top,d=n.width,m=n.height,v=n.isAnimationActive,y=n.background,b=n.id;if(a||!i||!i.length)return null;var E=this.state.isAnimationFinished,_=Lt("recharts-bar",s),T=o&&o.allowDataOverflow,C=u&&u.allowDataOverflow,P=T||C,O=Mt(b)?this.id:b;return re.createElement(Hr,{className:_},T||C?re.createElement("defs",null,re.createElement("clipPath",{id:"clipPath-".concat(O)},re.createElement("rect",{x:T?c:c-d/2,y:C?h:h-m/2,width:T?d:d*2,height:C?m:m*2}))):null,re.createElement(Hr,{className:"recharts-bar-rectangles",clipPath:P?"url(#clipPath-".concat(O,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(P,O),(!v||E)&&wl.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:a.curData}:n.data!==a.curData?{curData:n.data}:null}}])})(N.PureComponent);HQ=hc;yl(hc,"displayName","Bar");yl(hc,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!$0.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});yl(hc,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,a=e.bandSize,i=e.xAxis,s=e.yAxis,o=e.xAxisTicks,u=e.yAxisTicks,c=e.stackedData,h=e.dataStartIndex,d=e.displayedData,m=e.offset,v=h9e(n,r);if(!v)return null;var y=t.layout,b=r.type.defaultProps,E=b!==void 0?Jr(Jr({},b),r.props):r.props,_=E.dataKey,T=E.children,C=E.minPointSize,P=y==="horizontal"?s:i,O=c?P.scale.domain():null,k=E9e({numericAxis:P}),M=yi(T,e7),j=d.map(function(z,$){var F,q,Q,X,te,U;c?F=p9e(c[h+$],O):(F=Ga(z,_),Array.isArray(F)||(F=[k,F]));var J=zPe(C,HQ.defaultProps.minPointSize)(F[1],$);if(y==="horizontal"){var ee,de=[s.scale(F[0]),s.scale(F[1])],G=de[0],Y=de[1];q=qB({axis:i,ticks:o,bandSize:a,offset:v.offset,entry:z,index:$}),Q=(ee=Y??G)!==null&&ee!==void 0?ee:void 0,X=v.size;var W=G-Y;if(te=Number.isNaN(W)?0:W,U={x:q,y:s.y,width:X,height:s.height},Math.abs(J)>0&&Math.abs(te)<Math.abs(J)){var L=zi(te||J)*(Math.abs(J)-Math.abs(te));Q-=L,te+=L}}else{var le=[i.scale(F[0]),i.scale(F[1])],fe=le[0],Se=le[1];if(q=fe,Q=qB({axis:s,ticks:u,bandSize:a,offset:v.offset,entry:z,index:$}),X=Se-fe,te=v.size,U={x:i.x,y:Q,width:i.width,height:te},Math.abs(J)>0&&Math.abs(X)<Math.abs(J)){var ye=zi(X||J)*(Math.abs(J)-Math.abs(X));X+=ye}}return Jr(Jr(Jr({},z),{},{x:q,y:Q,width:X,height:te,value:c?F:F[1],payload:z,background:U},M&&M[$]&&M[$].props),{},{tooltipPayload:[CQ(r,z)],tooltipPosition:{x:q+X/2,y:Q+te/2}})});return Jr({data:j,layout:y},m)});function Op(e){"@babel/helpers - typeof";return Op=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},Op(e)}function KPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GQ(n.key),n)}}function QPe(e,t,r){return t&&l$(e.prototype,t),r&&l$(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u$(Object(r),!0).forEach(function(n){Vb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vb(e,t,r){return t=GQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GQ(e){var t=ZPe(e,"string");return Op(t)=="symbol"?t:t+""}function ZPe(e,t){if(Op(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Op(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WQ=function(t,r,n,a,i){var s=t.width,o=t.height,u=t.layout,c=t.children,h=Object.keys(r),d={left:n.left,leftMirror:n.left,right:s-n.right,rightMirror:s-n.right,top:n.top,topMirror:n.top,bottom:o-n.bottom,bottomMirror:o-n.bottom},m=!!Ba(c,hc);return h.reduce(function(v,y){var b=r[y],E=b.orientation,_=b.domain,T=b.padding,C=T===void 0?{}:T,P=b.mirror,O=b.reversed,k="".concat(E).concat(P?"Mirror":""),M,j,z,$,F;if(b.type==="number"&&(b.padding==="gap"||b.padding==="no-gap")){var q=_[1]-_[0],Q=1/0,X=b.categoricalDomain.sort(Z_e);if(X.forEach(function(le,fe){fe>0&&(Q=Math.min((le||0)-(X[fe-1]||0),Q))}),Number.isFinite(Q)){var te=Q/q,U=b.layout==="vertical"?n.height:n.width;if(b.padding==="gap"&&(M=te*U/2),b.padding==="no-gap"){var J=Xu(t.barCategoryGap,te*U),ee=te*U/2;M=ee-J-(ee-J)/U*J}}}a==="xAxis"?j=[n.left+(C.left||0)+(M||0),n.left+n.width-(C.right||0)-(M||0)]:a==="yAxis"?j=u==="horizontal"?[n.top+n.height-(C.bottom||0),n.top+(C.top||0)]:[n.top+(C.top||0)+(M||0),n.top+n.height-(C.bottom||0)-(M||0)]:j=b.range,O&&(j=[j[1],j[0]]);var de=f9e(b,i,m),G=de.scale,Y=de.realScaleType;G.domain(_).range(j),d9e(G);var W=x9e(G,Pi(Pi({},b),{},{realScaleType:Y}));a==="xAxis"?(F=E==="top"&&!P||E==="bottom"&&P,z=n.left,$=d[k]-F*b.height):a==="yAxis"&&(F=E==="left"&&!P||E==="right"&&P,z=d[k]-F*b.width,$=n.top);var L=Pi(Pi(Pi({},b),W),{},{realScaleType:Y,x:z,y:$,scale:G,width:a==="xAxis"?n.width:b.width,height:a==="yAxis"?n.height:b.height});return L.bandSize=Yv(L,W),!b.hide&&a==="xAxis"?d[k]+=(F?-1:1)*L.height:b.hide||(d[k]+=(F?-1:1)*L.width),Pi(Pi({},v),{},Vb({},y,L))},{})},YQ=function(t,r){var n=t.x,a=t.y,i=r.x,s=r.y;return{x:Math.min(n,i),y:Math.min(a,s),width:Math.abs(i-n),height:Math.abs(s-a)}},JPe=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return YQ({x:r,y:n},{x:a,y:i})},XQ=(function(){function e(t){KPe(this,e),this.scale=t}return QPe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(r)+o}default:return this.scale(r)}if(a){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}])})();Vb(XQ,"EPS",1e-4);var C7=function(t){var r=Object.keys(t).reduce(function(n,a){return Pi(Pi({},n),{},Vb({},a,XQ.create(t[a])))},{});return Pi(Pi({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.bandAware,o=i.position;return CPe(a,function(u,c){return r[c].apply(u,{bandAware:s,position:o})})},isInRange:function(a){return UQ(a,function(i,s){return r[s].isInRange(i)})}})};function eIe(e){return(e%180+180)%180}var tIe=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=eIe(a),s=i*Math.PI/180,o=Math.atan(n/r),u=s>o&&s<Math.PI-o?n/Math.sin(s):r/Math.cos(s);return Math.abs(u)},x5,c$;function rIe(){if(c$)return x5;c$=1;var e=Bl(),t=im(),r=Ob();function n(a){return function(i,s,o){var u=Object(i);if(!t(i)){var c=e(s,3);i=r(i),s=function(d){return c(u[d],d,u)}}var h=a(i,s,o);return h>-1?u[c?i[h]:h]:void 0}}return x5=n,x5}var E5,f$;function nIe(){if(f$)return E5;f$=1;var e=BQ();function t(r){var n=e(r),a=n%1;return n===n?a?n-a:n:0}return E5=t,E5}var w5,d$;function aIe(){if(d$)return w5;d$=1;var e=oK(),t=Bl(),r=nIe(),n=Math.max;function a(i,s,o){var u=i==null?0:i.length;if(!u)return-1;var c=o==null?0:r(o);return c<0&&(c=n(u+c,0)),e(i,t(s,3),c)}return w5=a,w5}var _5,h$;function iIe(){if(h$)return _5;h$=1;var e=rIe(),t=aIe(),r=e(t);return _5=r,_5}var sIe=iIe();const oIe=er(sIe);var lIe=_X();const uIe=er(lIe);var cIe=uIe(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),O7=N.createContext(void 0),k7=N.createContext(void 0),KQ=N.createContext(void 0),QQ=N.createContext({}),ZQ=N.createContext(void 0),JQ=N.createContext(0),eZ=N.createContext(0),p$=function(t){var r=t.state,n=r.xAxisMap,a=r.yAxisMap,i=r.offset,s=t.clipPathId,o=t.children,u=t.width,c=t.height,h=cIe(i);return re.createElement(O7.Provider,{value:n},re.createElement(k7.Provider,{value:a},re.createElement(QQ.Provider,{value:i},re.createElement(KQ.Provider,{value:h},re.createElement(ZQ.Provider,{value:s},re.createElement(JQ.Provider,{value:c},re.createElement(eZ.Provider,{value:u},o)))))))},fIe=function(){return N.useContext(ZQ)},tZ=function(t){var r=N.useContext(O7);r==null&&Qu();var n=r[t];return n==null&&Qu(),n},dIe=function(){var t=N.useContext(O7);return pl(t)},hIe=function(){var t=N.useContext(k7),r=oIe(t,function(n){return UQ(n.domain,Number.isFinite)});return r||pl(t)},rZ=function(t){var r=N.useContext(k7);r==null&&Qu();var n=r[t];return n==null&&Qu(),n},pIe=function(){var t=N.useContext(KQ);return t},mIe=function(){return N.useContext(QQ)},N7=function(){return N.useContext(eZ)},R7=function(){return N.useContext(JQ)};function u0(e){"@babel/helpers - typeof";return u0=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},u0(e)}function gIe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vIe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aZ(n.key),n)}}function yIe(e,t,r){return t&&vIe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bIe(e,t,r){return t=ly(t),xIe(e,nZ()?Reflect.construct(t,r||[],ly(e).constructor):t.apply(e,r))}function xIe(e,t){if(t&&(u0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EIe(e)}function EIe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nZ=function(){return!!e})()}function ly(e){return ly=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ly(e)}function wIe(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&&lT(e,t)}function lT(e,t){return lT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},lT(e,t)}function m$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function g$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m$(Object(r),!0).forEach(function(n){M7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M7(e,t,r){return t=aZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aZ(e){var t=_Ie(e,"string");return u0(t)=="symbol"?t:t+""}function _Ie(e,t){if(u0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(u0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function SIe(e,t){return OIe(e)||CIe(e,t)||AIe(e,t)||TIe()}function TIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
980In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AIe(e,t){if(e){if(typeof e=="string")return v$(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v$(e,t)}}function v$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function CIe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function OIe(e){if(Array.isArray(e))return e}function uT(){return uT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uT.apply(this,arguments)}var kIe=function(t,r){var n;return re.isValidElement(t)?n=re.cloneElement(t,r):wt(t)?n=t(r):n=re.createElement("line",uT({},r,{className:"recharts-reference-line-line"})),n},NIe=function(t,r,n,a,i,s,o,u,c){var h=i.x,d=i.y,m=i.width,v=i.height;if(n){var y=c.y,b=t.y.apply(y,{position:s});if(ys(c,"discard")&&!t.y.isInRange(b))return null;var E=[{x:h+m,y:b},{x:h,y:b}];return u==="left"?E.reverse():E}if(r){var _=c.x,T=t.x.apply(_,{position:s});if(ys(c,"discard")&&!t.x.isInRange(T))return null;var C=[{x:T,y:d+v},{x:T,y:d}];return o==="top"?C.reverse():C}if(a){var P=c.segment,O=P.map(function(k){return t.apply(k,{position:s})});return ys(c,"discard")&&_Pe(O,function(k){return!t.isInRange(k)})?null:O}return null};function RIe(e){var t=e.x,r=e.y,n=e.segment,a=e.xAxisId,i=e.yAxisId,s=e.shape,o=e.className,u=e.alwaysShow,c=fIe(),h=tZ(a),d=rZ(i),m=pIe();if(!c||!m)return null;ho(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=C7({x:h.scale,y:d.scale}),y=fn(t),b=fn(r),E=n&&n.length===2,_=NIe(v,y,b,E,m,e.position,h.orientation,d.orientation,e);if(!_)return null;var T=SIe(_,2),C=T[0],P=C.x,O=C.y,k=T[1],M=k.x,j=k.y,z=ys(e,"hidden")?"url(#".concat(c,")"):void 0,$=g$(g$({clipPath:z},Ft(e,!0)),{},{x1:P,y1:O,x2:M,y2:j});return re.createElement(Hr,{className:Lt("recharts-reference-line",o)},kIe(s,$),Fn.renderCallByParent(e,JPe({x1:P,y1:O,x2:M,y2:j})))}var P7=(function(e){function t(){return gIe(this,t),bIe(this,t,arguments)}return wIe(t,e),yIe(t,[{key:"render",value:function(){return re.createElement(RIe,this.props)}}])})(re.Component);M7(P7,"displayName","ReferenceLine");M7(P7,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function cT(){return cT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cT.apply(this,arguments)}function c0(e){"@babel/helpers - typeof";return c0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c0(e)}function y$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function b$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y$(Object(r),!0).forEach(function(n){Gb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MIe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PIe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sZ(n.key),n)}}function IIe(e,t,r){return t&&PIe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DIe(e,t,r){return t=uy(t),LIe(e,iZ()?Reflect.construct(t,r||[],uy(e).constructor):t.apply(e,r))}function LIe(e,t){if(t&&(c0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jIe(e)}function jIe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iZ=function(){return!!e})()}function uy(e){return uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uy(e)}function BIe(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&&fT(e,t)}function fT(e,t){return fT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},fT(e,t)}function Gb(e,t,r){return t=sZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sZ(e){var t=zIe(e,"string");return c0(t)=="symbol"?t:t+""}function zIe(e,t){if(c0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(c0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $Ie=function(t){var r=t.x,n=t.y,a=t.xAxis,i=t.yAxis,s=C7({x:a.scale,y:i.scale}),o=s.apply({x:r,y:n},{bandAware:!0});return ys(t,"discard")&&!s.isInRange(o)?null:o},Wb=(function(e){function t(){return MIe(this,t),DIe(this,t,arguments)}return BIe(t,e),IIe(t,[{key:"render",value:function(){var n=this.props,a=n.x,i=n.y,s=n.r,o=n.alwaysShow,u=n.clipPathId,c=fn(a),h=fn(i);if(ho(o===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!h)return null;var d=$Ie(this.props);if(!d)return null;var m=d.x,v=d.y,y=this.props,b=y.shape,E=y.className,_=ys(this.props,"hidden")?"url(#".concat(u,")"):void 0,T=b$(b$({clipPath:_},Ft(this.props,!0)),{},{cx:m,cy:v});return re.createElement(Hr,{className:Lt("recharts-reference-dot",E)},t.renderDot(b,T),Fn.renderCallByParent(this.props,{x:m-s,y:v-s,width:2*s,height:2*s}))}}])})(re.Component);Gb(Wb,"displayName","ReferenceDot");Gb(Wb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Gb(Wb,"renderDot",function(e,t){var r;return re.isValidElement(e)?r=re.cloneElement(e,t):wt(e)?r=e(t):r=re.createElement(A7,cT({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function dT(){return dT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dT.apply(this,arguments)}function f0(e){"@babel/helpers - typeof";return f0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f0(e)}function x$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function E$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x$(Object(r),!0).forEach(function(n){Yb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FIe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UIe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lZ(n.key),n)}}function HIe(e,t,r){return t&&UIe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qIe(e,t,r){return t=cy(t),VIe(e,oZ()?Reflect.construct(t,r||[],cy(e).constructor):t.apply(e,r))}function VIe(e,t){if(t&&(f0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GIe(e)}function GIe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oZ=function(){return!!e})()}function cy(e){return cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cy(e)}function WIe(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&&hT(e,t)}function hT(e,t){return hT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},hT(e,t)}function Yb(e,t,r){return t=lZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lZ(e){var t=YIe(e,"string");return f0(t)=="symbol"?t:t+""}function YIe(e,t){if(f0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(f0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var XIe=function(t,r,n,a,i){var s=i.x1,o=i.x2,u=i.y1,c=i.y2,h=i.xAxis,d=i.yAxis;if(!h||!d)return null;var m=C7({x:h.scale,y:d.scale}),v={x:t?m.x.apply(s,{position:"start"}):m.x.rangeMin,y:n?m.y.apply(u,{position:"start"}):m.y.rangeMin},y={x:r?m.x.apply(o,{position:"end"}):m.x.rangeMax,y:a?m.y.apply(c,{position:"end"}):m.y.rangeMax};return ys(i,"discard")&&(!m.isInRange(v)||!m.isInRange(y))?null:YQ(v,y)},Xb=(function(e){function t(){return FIe(this,t),qIe(this,t,arguments)}return WIe(t,e),HIe(t,[{key:"render",value:function(){var n=this.props,a=n.x1,i=n.x2,s=n.y1,o=n.y2,u=n.className,c=n.alwaysShow,h=n.clipPathId;ho(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=fn(a),m=fn(i),v=fn(s),y=fn(o),b=this.props.shape;if(!d&&!m&&!v&&!y&&!b)return null;var E=XIe(d,m,v,y,this.props);if(!E&&!b)return null;var _=ys(this.props,"hidden")?"url(#".concat(h,")"):void 0;return re.createElement(Hr,{className:Lt("recharts-reference-area",u)},t.renderRect(b,E$(E$({clipPath:_},Ft(this.props,!0)),E)),Fn.renderCallByParent(this.props,E))}}])})(re.Component);Yb(Xb,"displayName","ReferenceArea");Yb(Xb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Yb(Xb,"renderRect",function(e,t){var r;return re.isValidElement(e)?r=re.cloneElement(e,t):wt(e)?r=e(t):r=re.createElement(T7,dT({},t,{className:"recharts-reference-area-rect"})),r});function uZ(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],a=0;a<e.length;a+=t)n.push(e[a]);return n}function KIe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return tIe(n,r)}function QIe(e,t,r){var n=r==="width",a=e.x,i=e.y,s=e.width,o=e.height;return t===1?{start:n?a:i,end:n?a+s:i+o}:{start:n?a+s:i+o,end:n?a:i}}function fy(e,t,r,n,a){if(e*t<e*n||e*t>e*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function ZIe(e,t){return uZ(e,t+1)}function JIe(e,t,r,n,a){for(var i=(n||[]).slice(),s=t.start,o=t.end,u=0,c=1,h=s,d=function(){var y=n?.[u];if(y===void 0)return{v:uZ(n,c)};var b=u,E,_=function(){return E===void 0&&(E=r(y,b)),E},T=y.coordinate,C=u===0||fy(e,T,_,h,o);C||(u=0,h=s,c+=1),C&&(h=T+e*(_()/2+a),u+=c)},m;c<=i.length;)if(m=d(),m)return m.v;return[]}function kp(e){"@babel/helpers - typeof";return kp=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},kp(e)}function w$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w$(Object(r),!0).forEach(function(n){eDe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eDe(e,t,r){return t=tDe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tDe(e){var t=rDe(e,"string");return kp(t)=="symbol"?t:t+""}function rDe(e,t){if(kp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nDe(e,t,r,n,a){for(var i=(n||[]).slice(),s=i.length,o=t.start,u=t.end,c=function(m){var v=i[m],y,b=function(){return y===void 0&&(y=r(v,m)),y};if(m===s-1){var E=e*(v.coordinate+e*b()/2-u);i[m]=v=zn(zn({},v),{},{tickCoord:E>0?v.coordinate-E*e:v.coordinate})}else i[m]=v=zn(zn({},v),{},{tickCoord:v.coordinate});var _=fy(e,v.tickCoord,b,o,u);_&&(u=v.tickCoord-e*(b()/2+a),i[m]=zn(zn({},v),{},{isShow:!0}))},h=s-1;h>=0;h--)c(h);return i}function aDe(e,t,r,n,a,i){var s=(n||[]).slice(),o=s.length,u=t.start,c=t.end;if(i){var h=n[o-1],d=r(h,o-1),m=e*(h.coordinate+e*d/2-c);s[o-1]=h=zn(zn({},h),{},{tickCoord:m>0?h.coordinate-m*e:h.coordinate});var v=fy(e,h.tickCoord,function(){return d},u,c);v&&(c=h.tickCoord-e*(d/2+a),s[o-1]=zn(zn({},h),{},{isShow:!0}))}for(var y=i?o-1:o,b=function(T){var C=s[T],P,O=function(){return P===void 0&&(P=r(C,T)),P};if(T===0){var k=e*(C.coordinate-e*O()/2-u);s[T]=C=zn(zn({},C),{},{tickCoord:k<0?C.coordinate-k*e:C.coordinate})}else s[T]=C=zn(zn({},C),{},{tickCoord:C.coordinate});var M=fy(e,C.tickCoord,O,u,c);M&&(u=C.tickCoord+e*(O()/2+a),s[T]=zn(zn({},C),{},{isShow:!0}))},E=0;E<y;E++)b(E);return s}function I7(e,t,r){var n=e.tick,a=e.ticks,i=e.viewBox,s=e.minTickGap,o=e.orientation,u=e.interval,c=e.tickFormatter,h=e.unit,d=e.angle;if(!a||!a.length||!n)return[];if(Ue(u)||$0.isSsr)return ZIe(a,typeof u=="number"&&Ue(u)?u:0);var m=[],v=o==="top"||o==="bottom"?"width":"height",y=h&&v==="width"?Oh(h,{fontSize:t,letterSpacing:r}):{width:0,height:0},b=function(C,P){var O=wt(c)?c(C.value,P):C.value;return v==="width"?KIe(Oh(O,{fontSize:t,letterSpacing:r}),y,d):Oh(O,{fontSize:t,letterSpacing:r})[v]},E=a.length>=2?zi(a[1].coordinate-a[0].coordinate):1,_=QIe(i,E,v);return u==="equidistantPreserveStart"?JIe(E,_,b,a,s):(u==="preserveStart"||u==="preserveStartEnd"?m=aDe(E,_,b,a,s,u==="preserveStartEnd"):m=nDe(E,_,b,a,s),m.filter(function(T){return T.isShow}))}var iDe=["viewBox"],sDe=["viewBox"],oDe=["ticks"];function d0(e){"@babel/helpers - typeof";return d0=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},d0(e)}function Af(){return Af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Af.apply(this,arguments)}function _$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function on(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_$(Object(r),!0).forEach(function(n){D7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S5(e,t){if(e==null)return{};var r=lDe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lDe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function uDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fZ(n.key),n)}}function cDe(e,t,r){return t&&S$(e.prototype,t),r&&S$(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fDe(e,t,r){return t=dy(t),dDe(e,cZ()?Reflect.construct(t,r||[],dy(e).constructor):t.apply(e,r))}function dDe(e,t){if(t&&(d0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hDe(e)}function hDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cZ=function(){return!!e})()}function dy(e){return dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dy(e)}function pDe(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&&pT(e,t)}function pT(e,t){return pT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},pT(e,t)}function D7(e,t,r){return t=fZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fZ(e){var t=mDe(e,"string");return d0(t)=="symbol"?t:t+""}function mDe(e,t){if(d0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(d0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var q0=(function(e){function t(r){var n;return uDe(this,t),n=fDe(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return pDe(t,e),cDe(t,[{key:"shouldComponentUpdate",value:function(n,a){var i=n.viewBox,s=S5(n,iDe),o=this.props,u=o.viewBox,c=S5(o,sDe);return!If(i,u)||!If(s,c)||!If(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.x,s=a.y,o=a.width,u=a.height,c=a.orientation,h=a.tickSize,d=a.mirror,m=a.tickMargin,v,y,b,E,_,T,C=d?-1:1,P=n.tickSize||h,O=Ue(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":v=y=n.coordinate,E=s+ +!d*u,b=E-C*P,T=b-C*m,_=O;break;case"left":b=E=n.coordinate,y=i+ +!d*o,v=y-C*P,_=v-C*m,T=O;break;case"right":b=E=n.coordinate,y=i+ +d*o,v=y+C*P,_=v+C*m,T=O;break;default:v=y=n.coordinate,E=s+ +d*u,b=E+C*P,T=b+C*m,_=O;break}return{line:{x1:v,y1:b,x2:y,y2:E},tick:{x:_,y:T}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,s;switch(a){case"left":s=i?"start":"end";break;case"right":s=i?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,s="end";switch(a){case"left":case"right":s="middle";break;case"top":s=i?"start":"end";break;default:s=i?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.x,i=n.y,s=n.width,o=n.height,u=n.orientation,c=n.mirror,h=n.axisLine,d=on(on(on({},Ft(this.props,!1)),Ft(h,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var m=+(u==="top"&&!c||u==="bottom"&&c);d=on(on({},d),{},{x1:a,y1:i+m*o,x2:a+s,y2:i+m*o})}else{var v=+(u==="left"&&!c||u==="right"&&c);d=on(on({},d),{},{x1:a+v*s,y1:i,x2:a+v*s,y2:i+o})}return re.createElement("line",Af({},d,{className:Lt("recharts-cartesian-axis-line",vi(h,"className"))}))}},{key:"renderTicks",value:function(n,a,i){var s=this,o=this.props,u=o.tickLine,c=o.stroke,h=o.tick,d=o.tickFormatter,m=o.unit,v=I7(on(on({},this.props),{},{ticks:n}),a,i),y=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),E=Ft(this.props,!1),_=Ft(h,!1),T=on(on({},E),{},{fill:"none"},Ft(u,!1)),C=v.map(function(P,O){var k=s.getTickLineCoord(P),M=k.line,j=k.tick,z=on(on(on(on({textAnchor:y,verticalAnchor:b},E),{},{stroke:"none",fill:c},_),j),{},{index:O,payload:P,visibleTicksCount:v.length,tickFormatter:d});return re.createElement(Hr,Af({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},Sv(s.props,P,O)),u&&re.createElement("line",Af({},T,M,{className:Lt("recharts-cartesian-axis-tick-line",vi(u,"className"))})),h&&t.renderTickItem(h,z,"".concat(wt(d)?d(P.value,O):P.value).concat(m||"")))});return re.createElement("g",{className:"recharts-cartesian-axis-ticks"},C)}},{key:"render",value:function(){var n=this,a=this.props,i=a.axisLine,s=a.width,o=a.height,u=a.ticksGenerator,c=a.className,h=a.hide;if(h)return null;var d=this.props,m=d.ticks,v=S5(d,oDe),y=m;return wt(u)&&(y=m&&m.length>0?u(this.props):u(v)),s<=0||o<=0||!y||!y.length?null:re.createElement(Hr,{className:Lt("recharts-cartesian-axis",c),ref:function(E){n.layerReference=E}},i&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Fn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,i){var s,o=Lt(a.className,"recharts-cartesian-axis-tick-value");return re.isValidElement(n)?s=re.cloneElement(n,on(on({},a),{},{className:o})):wt(n)?s=n(on(on({},a),{},{className:o})):s=re.createElement(Iv,Af({},a,{className:"recharts-cartesian-axis-tick-value"}),i),s}}])})(N.Component);D7(q0,"displayName","CartesianAxis");D7(q0,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var gDe=["x1","y1","x2","y2","key"],vDe=["offset"];function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}function T$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T$(Object(r),!0).forEach(function(n){yDe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yDe(e,t,r){return t=bDe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bDe(e){var t=xDe(e,"string");return Zu(t)=="symbol"?t:t+""}function xDe(e,t){if(Zu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cu(){return Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cu.apply(this,arguments)}function A$(e,t){if(e==null)return{};var r=EDe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EDe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var wDe=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,a=t.x,i=t.y,s=t.width,o=t.height,u=t.ry;return re.createElement("rect",{x:a,y:i,ry:u,width:s,height:o,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function dZ(e,t){var r;if(re.isValidElement(e))r=re.cloneElement(e,t);else if(wt(e))r=e(t);else{var n=t.x1,a=t.y1,i=t.x2,s=t.y2,o=t.key,u=A$(t,gDe),c=Ft(u,!1);c.offset;var h=A$(c,vDe);r=re.createElement("line",Cu({},h,{x1:n,y1:a,x2:i,y2:s,fill:"none",key:o}))}return r}function _De(e){var t=e.x,r=e.width,n=e.horizontal,a=n===void 0?!0:n,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var s=i.map(function(o,u){var c=Un(Un({},e),{},{x1:t,y1:o,x2:t+r,y2:o,key:"line-".concat(u),index:u});return dZ(a,c)});return re.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function SDe(e){var t=e.y,r=e.height,n=e.vertical,a=n===void 0?!0:n,i=e.verticalPoints;if(!a||!i||!i.length)return null;var s=i.map(function(o,u){var c=Un(Un({},e),{},{x1:o,y1:t,x2:o,y2:t+r,key:"line-".concat(u),index:u});return dZ(a,c)});return re.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function TDe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,a=e.y,i=e.width,s=e.height,o=e.horizontalPoints,u=e.horizontal,c=u===void 0?!0:u;if(!c||!t||!t.length)return null;var h=o.map(function(m){return Math.round(m+a-a)}).sort(function(m,v){return m-v});a!==h[0]&&h.unshift(0);var d=h.map(function(m,v){var y=!h[v+1],b=y?a+s-m:h[v+1]-m;if(b<=0)return null;var E=v%t.length;return re.createElement("rect",{key:"react-".concat(v),y:m,x:n,height:b,width:i,stroke:"none",fill:t[E],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return re.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function ADe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,a=e.fillOpacity,i=e.x,s=e.y,o=e.width,u=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var h=c.map(function(m){return Math.round(m+i-i)}).sort(function(m,v){return m-v});i!==h[0]&&h.unshift(0);var d=h.map(function(m,v){var y=!h[v+1],b=y?i+o-m:h[v+1]-m;if(b<=0)return null;var E=v%n.length;return re.createElement("rect",{key:"react-".concat(v),x:m,y:s,width:b,height:u,stroke:"none",fill:n[E],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return re.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var CDe=function(t,r){var n=t.xAxis,a=t.width,i=t.height,s=t.offset;return TQ(I7(Un(Un(Un({},q0.defaultProps),n),{},{ticks:io(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.left,s.left+s.width,r)},ODe=function(t,r){var n=t.yAxis,a=t.width,i=t.height,s=t.offset;return TQ(I7(Un(Un(Un({},q0.defaultProps),n),{},{ticks:io(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.top,s.top+s.height,r)},pf={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function mT(e){var t,r,n,a,i,s,o=N7(),u=R7(),c=mIe(),h=Un(Un({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:pf.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:pf.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:pf.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:pf.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:pf.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:pf.verticalFill,x:Ue(e.x)?e.x:c.left,y:Ue(e.y)?e.y:c.top,width:Ue(e.width)?e.width:c.width,height:Ue(e.height)?e.height:c.height}),d=h.x,m=h.y,v=h.width,y=h.height,b=h.syncWithTicks,E=h.horizontalValues,_=h.verticalValues,T=dIe(),C=hIe();if(!Ue(v)||v<=0||!Ue(y)||y<=0||!Ue(d)||d!==+d||!Ue(m)||m!==+m)return null;var P=h.verticalCoordinatesGenerator||CDe,O=h.horizontalCoordinatesGenerator||ODe,k=h.horizontalPoints,M=h.verticalPoints;if((!k||!k.length)&&wt(O)){var j=E&&E.length,z=O({yAxis:C?Un(Un({},C),{},{ticks:j?E:C.ticks}):void 0,width:o,height:u,offset:c},j?!0:b);ho(Array.isArray(z),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Zu(z),"]")),Array.isArray(z)&&(k=z)}if((!M||!M.length)&&wt(P)){var $=_&&_.length,F=P({xAxis:T?Un(Un({},T),{},{ticks:$?_:T.ticks}):void 0,width:o,height:u,offset:c},$?!0:b);ho(Array.isArray(F),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Zu(F),"]")),Array.isArray(F)&&(M=F)}return re.createElement("g",{className:"recharts-cartesian-grid"},re.createElement(wDe,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),re.createElement(_De,Cu({},h,{offset:c,horizontalPoints:k,xAxis:T,yAxis:C})),re.createElement(SDe,Cu({},h,{offset:c,verticalPoints:M,xAxis:T,yAxis:C})),re.createElement(TDe,Cu({},h,{horizontalPoints:k})),re.createElement(ADe,Cu({},h,{verticalPoints:M})))}mT.displayName="CartesianGrid";var kDe=["type","layout","connectNulls","ref"],NDe=["key"];function h0(e){"@babel/helpers - typeof";return h0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h0(e)}function C$(e,t){if(e==null)return{};var r=RDe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RDe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mh.apply(this,arguments)}function O$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function La(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O$(Object(r),!0).forEach(function(n){Ii(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mf(e){return DDe(e)||IDe(e)||PDe(e)||MDe()}function MDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
981In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PDe(e,t){if(e){if(typeof e=="string")return gT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gT(e,t)}}function IDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DDe(e){if(Array.isArray(e))return gT(e)}function gT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function LDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pZ(n.key),n)}}function jDe(e,t,r){return t&&k$(e.prototype,t),r&&k$(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function BDe(e,t,r){return t=hy(t),zDe(e,hZ()?Reflect.construct(t,r||[],hy(e).constructor):t.apply(e,r))}function zDe(e,t){if(t&&(h0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $De(e)}function $De(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hZ=function(){return!!e})()}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hy(e)}function FDe(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&&vT(e,t)}function vT(e,t){return vT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},vT(e,t)}function Ii(e,t,r){return t=pZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pZ(e){var t=UDe(e,"string");return h0(t)=="symbol"?t:t+""}function UDe(e,t){if(h0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(h0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fm=(function(e){function t(){var r;LDe(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=BDe(this,t,[].concat(a)),Ii(r,"state",{isAnimationFinished:!0,totalLength:0}),Ii(r,"generateSimpleStrokeDasharray",function(s,o){return"".concat(o,"px ").concat(s-o,"px")}),Ii(r,"getStrokeDasharray",function(s,o,u){var c=u.reduce(function(_,T){return _+T});if(!c)return r.generateSimpleStrokeDasharray(o,s);for(var h=Math.floor(s/c),d=s%c,m=o-s,v=[],y=0,b=0;y<u.length;b+=u[y],++y)if(b+u[y]>d){v=[].concat(mf(u.slice(0,y)),[d-b]);break}var E=v.length%2===0?[0,m]:[m];return[].concat(mf(t.repeat(u,h)),mf(v),E).map(function(_){return"".concat(_,"px")}).join(", ")}),Ii(r,"id",am("recharts-line-")),Ii(r,"pathRef",function(s){r.mainCurve=s}),Ii(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Ii(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return FDe(t,e),jDe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,s=i.points,o=i.xAxis,u=i.yAxis,c=i.layout,h=i.children,d=yi(h,cm);if(!d)return null;var m=function(b,E){return{x:b.x,y:b.y,value:b.value,errorVal:Ga(b.payload,E)}},v={clipPath:n?"url(#clipPath-".concat(a,")"):null};return re.createElement(Hr,v,d.map(function(y){return re.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:s,xAxis:o,yAxis:u,layout:c,dataPointFormatter:m})}))}},{key:"renderDots",value:function(n,a,i){var s=this.props.isAnimationActive;if(s&&!this.state.isAnimationFinished)return null;var o=this.props,u=o.dot,c=o.points,h=o.dataKey,d=Ft(this.props,!1),m=Ft(u,!0),v=c.map(function(b,E){var _=La(La(La({key:"dot-".concat(E),r:3},d),m),{},{index:E,cx:b.x,cy:b.y,value:b.value,dataKey:h,payload:b.payload,points:c});return t.renderDotItem(u,_)}),y={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return re.createElement(Hr,Mh({className:"recharts-line-dots",key:"dots"},y),v)}},{key:"renderCurveStatically",value:function(n,a,i,s){var o=this.props,u=o.type,c=o.layout,h=o.connectNulls;o.ref;var d=C$(o,kDe),m=La(La(La({},Ft(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:n},s),{},{type:u,layout:c,connectNulls:h});return re.createElement(WS,Mh({},m,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,a){var i=this,s=this.props,o=s.points,u=s.strokeDasharray,c=s.isAnimationActive,h=s.animationBegin,d=s.animationDuration,m=s.animationEasing,v=s.animationId,y=s.animateNewValues,b=s.width,E=s.height,_=this.state,T=_.prevPoints,C=_.totalLength;return re.createElement(So,{begin:h,duration:d,isActive:c,easing:m,from:{t:0},to:{t:1},key:"line-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(P){var O=P.t;if(T){var k=T.length/o.length,M=o.map(function(q,Q){var X=Math.floor(Q*k);if(T[X]){var te=T[X],U=Li(te.x,q.x),J=Li(te.y,q.y);return La(La({},q),{},{x:U(O),y:J(O)})}if(y){var ee=Li(b*2,q.x),de=Li(E/2,q.y);return La(La({},q),{},{x:ee(O),y:de(O)})}return La(La({},q),{},{x:q.x,y:q.y})});return i.renderCurveStatically(M,n,a)}var j=Li(0,C),z=j(O),$;if(u){var F="".concat(u).split(/[,\s]+/gim).map(function(q){return parseFloat(q)});$=i.getStrokeDasharray(z,C,F)}else $=i.generateSimpleStrokeDasharray(C,z);return i.renderCurveStatically(o,n,a,{strokeDasharray:$})})}},{key:"renderCurve",value:function(n,a){var i=this.props,s=i.points,o=i.isAnimationActive,u=this.state,c=u.prevPoints,h=u.totalLength;return o&&s&&s.length&&(!c&&h>0||!$b(c,s))?this.renderCurveWithAnimation(n,a):this.renderCurveStatically(s,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,s=a.dot,o=a.points,u=a.className,c=a.xAxis,h=a.yAxis,d=a.top,m=a.left,v=a.width,y=a.height,b=a.isAnimationActive,E=a.id;if(i||!o||!o.length)return null;var _=this.state.isAnimationFinished,T=o.length===1,C=Lt("recharts-line",u),P=c&&c.allowDataOverflow,O=h&&h.allowDataOverflow,k=P||O,M=Mt(E)?this.id:E,j=(n=Ft(s,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},z=j.r,$=z===void 0?3:z,F=j.strokeWidth,q=F===void 0?2:F,Q=oSe(s)?s:{},X=Q.clipDot,te=X===void 0?!0:X,U=$*2+q;return re.createElement(Hr,{className:C},P||O?re.createElement("defs",null,re.createElement("clipPath",{id:"clipPath-".concat(M)},re.createElement("rect",{x:P?m:m-v/2,y:O?d:d-y/2,width:P?v:v*2,height:O?y:y*2})),!te&&re.createElement("clipPath",{id:"clipPath-dots-".concat(M)},re.createElement("rect",{x:m-U/2,y:d-U/2,width:v+U,height:y+U}))):null,!T&&this.renderCurve(k,M),this.renderErrorBar(k,M),(T||s)&&this.renderDots(k,te,M),(!b||_)&&wl.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:a.curPoints}:n.points!==a.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,a){for(var i=n.length%2!==0?[].concat(mf(n),[0]):n,s=[],o=0;o<a;++o)s=[].concat(mf(s),mf(i));return s}},{key:"renderDotItem",value:function(n,a){var i;if(re.isValidElement(n))i=re.cloneElement(n,a);else if(wt(n))i=n(a);else{var s=a.key,o=C$(a,NDe),u=Lt("recharts-line-dot",typeof n!="boolean"?n.className:"");i=re.createElement(A7,Mh({key:s},o,{className:u}))}return i}}])})(N.PureComponent);Ii(fm,"displayName","Line");Ii(fm,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!$0.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ii(fm,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,s=e.dataKey,o=e.bandSize,u=e.displayedData,c=e.offset,h=t.layout,d=u.map(function(m,v){var y=Ga(m,s);return h==="horizontal"?{x:HB({axis:r,ticks:a,bandSize:o,entry:m,index:v}),y:Mt(y)?null:n.scale(y),value:y,payload:m}:{x:Mt(y)?null:r.scale(y),y:HB({axis:n,ticks:i,bandSize:o,entry:m,index:v}),value:y,payload:m}});return La({points:d,layout:h},c)});function p0(e){"@babel/helpers - typeof";return p0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p0(e)}function HDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qDe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vZ(n.key),n)}}function VDe(e,t,r){return t&&qDe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GDe(e,t,r){return t=py(t),WDe(e,mZ()?Reflect.construct(t,r||[],py(e).constructor):t.apply(e,r))}function WDe(e,t){if(t&&(p0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YDe(e)}function YDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mZ=function(){return!!e})()}function py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},py(e)}function XDe(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&&yT(e,t)}function yT(e,t){return yT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},yT(e,t)}function gZ(e,t,r){return t=vZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vZ(e){var t=KDe(e,"string");return p0(t)=="symbol"?t:t+""}function KDe(e,t){if(p0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(p0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bT(){return bT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bT.apply(this,arguments)}function QDe(e){var t=e.xAxisId,r=N7(),n=R7(),a=tZ(t);return a==null?null:N.createElement(q0,bT({},a,{className:Lt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(s){return io(s,!0)}}))}var m0=(function(e){function t(){return HDe(this,t),GDe(this,t,arguments)}return XDe(t,e),VDe(t,[{key:"render",value:function(){return N.createElement(QDe,this.props)}}])})(N.Component);gZ(m0,"displayName","XAxis");gZ(m0,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function g0(e){"@babel/helpers - typeof";return g0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g0(e)}function ZDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JDe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xZ(n.key),n)}}function eLe(e,t,r){return t&&JDe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tLe(e,t,r){return t=my(t),rLe(e,yZ()?Reflect.construct(t,r||[],my(e).constructor):t.apply(e,r))}function rLe(e,t){if(t&&(g0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nLe(e)}function nLe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yZ=function(){return!!e})()}function my(e){return my=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},my(e)}function aLe(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&&xT(e,t)}function xT(e,t){return xT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},xT(e,t)}function bZ(e,t,r){return t=xZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xZ(e){var t=iLe(e,"string");return g0(t)=="symbol"?t:t+""}function iLe(e,t){if(g0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(g0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ET(){return ET=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ET.apply(this,arguments)}var sLe=function(t){var r=t.yAxisId,n=N7(),a=R7(),i=rZ(r);return i==null?null:N.createElement(q0,ET({},i,{className:Lt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(o){return io(o,!0)}}))},v0=(function(e){function t(){return ZDe(this,t),tLe(this,t,arguments)}return aLe(t,e),eLe(t,[{key:"render",value:function(){return N.createElement(sLe,this.props)}}])})(N.Component);bZ(v0,"displayName","YAxis");bZ(v0,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function N$(e){return cLe(e)||uLe(e)||lLe(e)||oLe()}function oLe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
982In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lLe(e,t){if(e){if(typeof e=="string")return wT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wT(e,t)}}function uLe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cLe(e){if(Array.isArray(e))return wT(e)}function wT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _T=function(t,r,n,a,i){var s=yi(t,P7),o=yi(t,Wb),u=[].concat(N$(s),N$(o)),c=yi(t,Xb),h="".concat(a,"Id"),d=a[0],m=r;if(u.length&&(m=u.reduce(function(b,E){if(E.props[h]===n&&ys(E.props,"extendDomain")&&Ue(E.props[d])){var _=E.props[d];return[Math.min(b[0],_),Math.max(b[1],_)]}return b},m)),c.length){var v="".concat(d,"1"),y="".concat(d,"2");m=c.reduce(function(b,E){if(E.props[h]===n&&ys(E.props,"extendDomain")&&Ue(E.props[v])&&Ue(E.props[y])){var _=E.props[v],T=E.props[y];return[Math.min(b[0],_,T),Math.max(b[1],_,T)]}return b},m)}return i&&i.length&&(m=i.reduce(function(b,E){return Ue(E)?[Math.min(b[0],E),Math.max(b[1],E)]:b},m)),m},T5={exports:{}},R$;function fLe(){return R$||(R$=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(u,c,h){this.fn=u,this.context=c,this.once=h||!1}function i(u,c,h,d,m){if(typeof h!="function")throw new TypeError("The listener must be a function");var v=new a(h,d||u,m),y=r?r+c:c;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],v]:u._events[y].push(v):(u._events[y]=v,u._eventsCount++),u}function s(u,c){--u._eventsCount===0?u._events=new n:delete u._events[c]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],h,d;if(this._eventsCount===0)return c;for(d in h=this._events)t.call(h,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(h)):c},o.prototype.listeners=function(c){var h=r?r+c:c,d=this._events[h];if(!d)return[];if(d.fn)return[d.fn];for(var m=0,v=d.length,y=new Array(v);m<v;m++)y[m]=d[m].fn;return y},o.prototype.listenerCount=function(c){var h=r?r+c:c,d=this._events[h];return d?d.fn?1:d.length:0},o.prototype.emit=function(c,h,d,m,v,y){var b=r?r+c:c;if(!this._events[b])return!1;var E=this._events[b],_=arguments.length,T,C;if(E.fn){switch(E.once&&this.removeListener(c,E.fn,void 0,!0),_){case 1:return E.fn.call(E.context),!0;case 2:return E.fn.call(E.context,h),!0;case 3:return E.fn.call(E.context,h,d),!0;case 4:return E.fn.call(E.context,h,d,m),!0;case 5:return E.fn.call(E.context,h,d,m,v),!0;case 6:return E.fn.call(E.context,h,d,m,v,y),!0}for(C=1,T=new Array(_-1);C<_;C++)T[C-1]=arguments[C];E.fn.apply(E.context,T)}else{var P=E.length,O;for(C=0;C<P;C++)switch(E[C].once&&this.removeListener(c,E[C].fn,void 0,!0),_){case 1:E[C].fn.call(E[C].context);break;case 2:E[C].fn.call(E[C].context,h);break;case 3:E[C].fn.call(E[C].context,h,d);break;case 4:E[C].fn.call(E[C].context,h,d,m);break;default:if(!T)for(O=1,T=new Array(_-1);O<_;O++)T[O-1]=arguments[O];E[C].fn.apply(E[C].context,T)}}return!0},o.prototype.on=function(c,h,d){return i(this,c,h,d,!1)},o.prototype.once=function(c,h,d){return i(this,c,h,d,!0)},o.prototype.removeListener=function(c,h,d,m){var v=r?r+c:c;if(!this._events[v])return this;if(!h)return s(this,v),this;var y=this._events[v];if(y.fn)y.fn===h&&(!m||y.once)&&(!d||y.context===d)&&s(this,v);else{for(var b=0,E=[],_=y.length;b<_;b++)(y[b].fn!==h||m&&!y[b].once||d&&y[b].context!==d)&&E.push(y[b]);E.length?this._events[v]=E.length===1?E[0]:E:s(this,v)}return this},o.prototype.removeAllListeners=function(c){var h;return c?(h=r?r+c:c,this._events[h]&&s(this,h)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o})(T5)),T5.exports}var dLe=fLe();const hLe=er(dLe);var A5=new hLe,C5="recharts.syncMouseEvents";function Np(e){"@babel/helpers - typeof";return Np=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},Np(e)}function pLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mLe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EZ(n.key),n)}}function gLe(e,t,r){return t&&mLe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function O5(e,t,r){return t=EZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EZ(e){var t=vLe(e,"string");return Np(t)=="symbol"?t:t+""}function vLe(e,t){if(Np(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Np(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yLe=(function(){function e(){pLe(this,e),O5(this,"activeIndex",0),O5(this,"coordinateList",[]),O5(this,"layout","horizontal")}return gLe(e,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,i=a===void 0?null:a,s=r.container,o=s===void 0?null:s,u=r.layout,c=u===void 0?null:u,h=r.offset,d=h===void 0?null:h,m=r.mouseHandlerCallback,v=m===void 0?null:m;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=o??this.container,this.layout=c??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=v??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,s=a.y,o=a.height,u=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,h=((n=window)===null||n===void 0?void 0:n.scrollY)||0,d=i+u+c,m=s+this.offset.top+o/2+h;this.mouseHandlerCallback({pageX:d,pageY:m})}}}])})();function bLe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],a=e?.[1];if(n&&a&&Ue(n)&&Ue(a))return!0}return!1}function xLe(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function wZ(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,s=Pn(t,r,n,a),o=Pn(t,r,n,i);return{points:[s,o],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function ELe(e,t,r){var n,a,i,s;if(e==="horizontal")n=t.x,i=n,a=r.top,s=r.top+r.height;else if(e==="vertical")a=t.y,s=a,n=r.left,i=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var o=t.cx,u=t.cy,c=t.innerRadius,h=t.outerRadius,d=t.angle,m=Pn(o,u,c,d),v=Pn(o,u,h,d);n=m.x,a=m.y,i=v.x,s=v.y}else return wZ(t);return[{x:n,y:a},{x:i,y:s}]}function Rp(e){"@babel/helpers - typeof";return Rp=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},Rp(e)}function M$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function b1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M$(Object(r),!0).forEach(function(n){wLe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wLe(e,t,r){return t=_Le(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _Le(e){var t=SLe(e,"string");return Rp(t)=="symbol"?t:t+""}function SLe(e,t){if(Rp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TLe(e){var t,r,n=e.element,a=e.tooltipEventType,i=e.isActive,s=e.activeCoordinate,o=e.activePayload,u=e.offset,c=e.activeTooltipIndex,h=e.tooltipAxisBandSize,d=e.layout,m=e.chartName,v=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!v||!i||!s||m!=="ScatterChart"&&a!=="axis")return null;var y,b=WS;if(m==="ScatterChart")y=s,b=_Me;else if(m==="BarChart")y=xLe(d,s,u,h),b=T7;else if(d==="radial"){var E=wZ(s),_=E.cx,T=E.cy,C=E.radius,P=E.startAngle,O=E.endAngle;y={cx:_,cy:T,startAngle:P,endAngle:O,innerRadius:C,outerRadius:C},b=NQ}else y={points:ELe(d,s,u)},b=WS;var k=b1(b1(b1(b1({stroke:"#ccc",pointerEvents:"none"},u),y),Ft(v,!1)),{},{payload:o,payloadIndex:c,className:Lt("recharts-tooltip-cursor",v.className)});return N.isValidElement(v)?N.cloneElement(v,k):N.createElement(b,k)}var ALe=["item"],CLe=["children","className","width","height","style","compact","title","desc"];function y0(e){"@babel/helpers - typeof";return y0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y0(e)}function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cf.apply(this,arguments)}function P$(e,t){return NLe(e)||kLe(e,t)||SZ(e,t)||OLe()}function OLe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
983In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kLe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function NLe(e){if(Array.isArray(e))return e}function I$(e,t){if(e==null)return{};var r=RLe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RLe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function MLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PLe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TZ(n.key),n)}}function ILe(e,t,r){return t&&PLe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DLe(e,t,r){return t=gy(t),LLe(e,_Z()?Reflect.construct(t,r||[],gy(e).constructor):t.apply(e,r))}function LLe(e,t){if(t&&(y0(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jLe(e)}function jLe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _Z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_Z=function(){return!!e})()}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gy(e)}function BLe(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&&ST(e,t)}function ST(e,t){return ST=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ST(e,t)}function b0(e){return FLe(e)||$Le(e)||SZ(e)||zLe()}function zLe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
984In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SZ(e,t){if(e){if(typeof e=="string")return TT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TT(e,t)}}function $Le(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FLe(e){if(Array.isArray(e))return TT(e)}function TT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D$(Object(r),!0).forEach(function(n){it(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function it(e,t,r){return t=TZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TZ(e){var t=ULe(e,"string");return y0(t)=="symbol"?t:t+""}function ULe(e,t){if(y0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(y0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HLe={xAxis:["bottom","top"],yAxis:["left","right"]},qLe={width:"100%",height:"100%"},AZ={x:0,y:0};function x1(e){return e}var VLe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},GLe=function(t,r,n,a){var i=r.find(function(h){return h&&h.index===n});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var s=i.coordinate,o=a.radius;return Ce(Ce(Ce({},a),Pn(a.cx,a.cy,o,s)),{},{angle:s,radius:o})}var u=i.coordinate,c=a.angle;return Ce(Ce(Ce({},a),Pn(a.cx,a.cy,u,c)),{},{angle:c,radius:u})}return AZ},Kb=function(t,r){var n=r.graphicalItems,a=r.dataStartIndex,i=r.dataEndIndex,s=(n??[]).reduce(function(o,u){var c=u.props.data;return c&&c.length?[].concat(b0(o),b0(c)):o},[]);return s.length>0?s:t&&t.length&&Ue(a)&&Ue(i)?t.slice(a,i+1):[]};function CZ(e){return e==="number"?[0,"auto"]:void 0}var AT=function(t,r,n,a){var i=t.graphicalItems,s=t.tooltipAxis,o=Kb(r,t);return n<0||!i||!i.length||n>=o.length?null:i.reduce(function(u,c){var h,d=(h=c.props.data)!==null&&h!==void 0?h:r;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(s.dataKey&&!s.allowDuplicatedCategory){var v=d===void 0?o:d;m=wv(v,s.dataKey,a)}else m=d&&d[n]||o[n];return m?[].concat(b0(u),[CQ(c,m)]):u},[])},L$=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},s=VLe(i,n),o=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,h=i9e(s,o,c,u);if(h>=0&&c){var d=c[h]&&c[h].value,m=AT(t,r,h,d),v=GLe(n,o,h,i);return{activeTooltipIndex:h,activeLabel:d,activePayload:m,activeCoordinate:v}}return null},WLe=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,s=r.axisIdKey,o=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,h=t.layout,d=t.children,m=t.stackOffset,v=SQ(h,i);return n.reduce(function(y,b){var E,_=b.type.defaultProps!==void 0?Ce(Ce({},b.type.defaultProps),b.props):b.props,T=_.type,C=_.dataKey,P=_.allowDataOverflow,O=_.allowDuplicatedCategory,k=_.scale,M=_.ticks,j=_.includeHidden,z=_[s];if(y[z])return y;var $=Kb(t.data,{graphicalItems:a.filter(function(W){var L,le=s in W.props?W.props[s]:(L=W.type.defaultProps)===null||L===void 0?void 0:L[s];return le===z}),dataStartIndex:u,dataEndIndex:c}),F=$.length,q,Q,X;bLe(_.domain,P,T)&&(q=US(_.domain,null,P),v&&(T==="number"||k!=="auto")&&(X=Nh($,C,"category")));var te=CZ(T);if(!q||q.length===0){var U,J=(U=_.domain)!==null&&U!==void 0?U:te;if(C){if(q=Nh($,C,T),T==="category"&&v){var ee=Q_e(q);O&&ee?(Q=q,q=ny(0,F)):O||(q=WB(J,q,b).reduce(function(W,L){return W.indexOf(L)>=0?W:[].concat(b0(W),[L])},[]))}else if(T==="category")O?q=q.filter(function(W){return W!==""&&!Mt(W)}):q=WB(J,q,b).reduce(function(W,L){return W.indexOf(L)>=0||L===""||Mt(L)?W:[].concat(b0(W),[L])},[]);else if(T==="number"){var de=c9e($,a.filter(function(W){var L,le,fe=s in W.props?W.props[s]:(L=W.type.defaultProps)===null||L===void 0?void 0:L[s],Se="hide"in W.props?W.props.hide:(le=W.type.defaultProps)===null||le===void 0?void 0:le.hide;return fe===z&&(j||!Se)}),C,i,h);de&&(q=de)}v&&(T==="number"||k!=="auto")&&(X=Nh($,C,"category"))}else v?q=ny(0,F):o&&o[z]&&o[z].hasStack&&T==="number"?q=m==="expand"?[0,1]:AQ(o[z].stackGroups,u,c):q=_Q($,a.filter(function(W){var L=s in W.props?W.props[s]:W.type.defaultProps[s],le="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return L===z&&(j||!le)}),T,h,!0);if(T==="number")q=_T(d,q,z,i,M),J&&(q=US(J,q,P));else if(T==="category"&&J){var G=J,Y=q.every(function(W){return G.indexOf(W)>=0});Y&&(q=G)}}return Ce(Ce({},y),{},it({},z,Ce(Ce({},_),{},{axisType:i,domain:q,categoricalDomain:X,duplicateDomain:Q,originalDomain:(E=_.domain)!==null&&E!==void 0?E:te,isCategorical:v,layout:h})))},{})},YLe=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,s=r.axisIdKey,o=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,h=t.layout,d=t.children,m=Kb(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:c}),v=m.length,y=SQ(h,i),b=-1;return n.reduce(function(E,_){var T=_.type.defaultProps!==void 0?Ce(Ce({},_.type.defaultProps),_.props):_.props,C=T[s],P=CZ("number");if(!E[C]){b++;var O;return y?O=ny(0,v):o&&o[C]&&o[C].hasStack?(O=AQ(o[C].stackGroups,u,c),O=_T(d,O,C,i)):(O=US(P,_Q(m,n.filter(function(k){var M,j,z=s in k.props?k.props[s]:(M=k.type.defaultProps)===null||M===void 0?void 0:M[s],$="hide"in k.props?k.props.hide:(j=k.type.defaultProps)===null||j===void 0?void 0:j.hide;return z===C&&!$}),"number",h),a.defaultProps.allowDataOverflow),O=_T(d,O,C,i)),Ce(Ce({},E),{},it({},C,Ce(Ce({axisType:i},a.defaultProps),{},{hide:!0,orientation:vi(HLe,"".concat(i,".").concat(b%2),null),domain:O,originalDomain:P,isCategorical:y,layout:h})))}return E},{})},XLe=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,s=r.graphicalItems,o=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,h=t.children,d="".concat(a,"Id"),m=yi(h,i),v={};return m&&m.length?v=WLe(t,{axes:m,graphicalItems:s,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:u,dataEndIndex:c}):s&&s.length&&(v=YLe(t,{Axis:i,graphicalItems:s,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:u,dataEndIndex:c})),v},KLe=function(t){var r=pl(t),n=io(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Z8(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Yv(r,n)}},j$=function(t){var r=t.children,n=t.defaultShowTooltip,a=Ba(r,o0),i=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(s=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!n}},QLe=function(t){return!t||!t.length?!1:t.some(function(r){var n=fo(r&&r.type);return n&&n.indexOf("Bar")>=0})},B$=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ZLe=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,s=i===void 0?{}:i,o=t.yAxisMap,u=o===void 0?{}:o,c=n.width,h=n.height,d=n.children,m=n.margin||{},v=Ba(d,o0),y=Ba(d,Df),b=Object.keys(u).reduce(function(O,k){var M=u[k],j=M.orientation;return!M.mirror&&!M.hide?Ce(Ce({},O),{},it({},j,O[j]+M.width)):O},{left:m.left||0,right:m.right||0}),E=Object.keys(s).reduce(function(O,k){var M=s[k],j=M.orientation;return!M.mirror&&!M.hide?Ce(Ce({},O),{},it({},j,vi(O,"".concat(j))+M.height)):O},{top:m.top||0,bottom:m.bottom||0}),_=Ce(Ce({},E),b),T=_.bottom;v&&(_.bottom+=v.props.height||o0.defaultProps.height),y&&r&&(_=l9e(_,a,n,r));var C=c-_.left-_.right,P=h-_.top-_.bottom;return Ce(Ce({brushBottom:T},_),{},{width:Math.max(C,0),height:Math.max(P,0)})},JLe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},OZ=function(t){var r=t.chartName,n=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,s=t.validateTooltipEventTypes,o=s===void 0?["axis"]:s,u=t.axisComponents,c=t.legendContent,h=t.formatAxisMap,d=t.defaultProps,m=function(_,T){var C=T.graphicalItems,P=T.stackGroups,O=T.offset,k=T.updateId,M=T.dataStartIndex,j=T.dataEndIndex,z=_.barSize,$=_.layout,F=_.barGap,q=_.barCategoryGap,Q=_.maxBarSize,X=B$($),te=X.numericAxisName,U=X.cateAxisName,J=QLe(C),ee=[];return C.forEach(function(de,G){var Y=Kb(_.data,{graphicalItems:[de],dataStartIndex:M,dataEndIndex:j}),W=de.type.defaultProps!==void 0?Ce(Ce({},de.type.defaultProps),de.props):de.props,L=W.dataKey,le=W.maxBarSize,fe=W["".concat(te,"Id")],Se=W["".concat(U,"Id")],ye={},Ne=u.reduce(function(Wn,yr){var aa=T["".concat(yr.axisType,"Map")],Gr=W["".concat(yr.axisType,"Id")];aa&&aa[Gr]||yr.axisType==="zAxis"||Qu();var Mo=aa[Gr];return Ce(Ce({},Wn),{},it(it({},yr.axisType,Mo),"".concat(yr.axisType,"Ticks"),io(Mo)))},ye),xe=Ne[U],Pe=Ne["".concat(U,"Ticks")],ze=P&&P[fe]&&P[fe].hasStack&&w9e(de,P[fe].stackGroups),we=fo(de.type).indexOf("Bar")>=0,ft=Yv(xe,Pe),Qe=[],zt=J&&s9e({barSize:z,stackGroups:P,totalSize:JLe(Ne,U)});if(we){var Pt,Ut,jr=Mt(le)?Q:le,ar=(Pt=(Ut=Yv(xe,Pe,!0))!==null&&Ut!==void 0?Ut:jr)!==null&&Pt!==void 0?Pt:0;Qe=o9e({barGap:F,barCategoryGap:q,bandSize:ar!==ft?ar:ft,sizeList:zt[Se],maxBarSize:jr}),ar!==ft&&(Qe=Qe.map(function(Wn){return Ce(Ce({},Wn),{},{position:Ce(Ce({},Wn.position),{},{offset:Wn.position.offset-ar/2})})}))}var Aa=de&&de.type&&de.type.getComposedData;Aa&&ee.push({props:Ce(Ce({},Aa(Ce(Ce({},Ne),{},{displayedData:Y,props:_,dataKey:L,item:de,bandSize:ft,barPosition:Qe,offset:O,stackedData:ze,layout:$,dataStartIndex:M,dataEndIndex:j}))),{},it(it(it({key:de.key||"item-".concat(G)},te,Ne[te]),U,Ne[U]),"animationId",k)),childIndex:cSe(de,_.children),item:de})}),ee},v=function(_,T){var C=_.props,P=_.dataStartIndex,O=_.dataEndIndex,k=_.updateId;if(!iD({props:C}))return null;var M=C.children,j=C.layout,z=C.stackOffset,$=C.data,F=C.reverseStackOrder,q=B$(j),Q=q.numericAxisName,X=q.cateAxisName,te=yi(M,n),U=b9e($,te,"".concat(Q,"Id"),"".concat(X,"Id"),z,F),J=u.reduce(function(W,L){var le="".concat(L.axisType,"Map");return Ce(Ce({},W),{},it({},le,XLe(C,Ce(Ce({},L),{},{graphicalItems:te,stackGroups:L.axisType===Q&&U,dataStartIndex:P,dataEndIndex:O}))))},{}),ee=ZLe(Ce(Ce({},J),{},{props:C,graphicalItems:te}),T?.legendBBox);Object.keys(J).forEach(function(W){J[W]=h(C,J[W],ee,W.replace("Map",""),r)});var de=J["".concat(X,"Map")],G=KLe(de),Y=m(C,Ce(Ce({},J),{},{dataStartIndex:P,dataEndIndex:O,updateId:k,graphicalItems:te,stackGroups:U,offset:ee}));return Ce(Ce({formattedGraphicalItems:Y,graphicalItems:te,offset:ee,stackGroups:U},G),J)},y=(function(E){function _(T){var C,P,O;return MLe(this,_),O=DLe(this,_,[T]),it(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),it(O,"accessibilityManager",new yLe),it(O,"handleLegendBBoxUpdate",function(k){if(k){var M=O.state,j=M.dataStartIndex,z=M.dataEndIndex,$=M.updateId;O.setState(Ce({legendBBox:k},v({props:O.props,dataStartIndex:j,dataEndIndex:z,updateId:$},Ce(Ce({},O.state),{},{legendBBox:k}))))}}),it(O,"handleReceiveSyncEvent",function(k,M,j){if(O.props.syncId===k){if(j===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(M)}}),it(O,"handleBrushChange",function(k){var M=k.startIndex,j=k.endIndex;if(M!==O.state.dataStartIndex||j!==O.state.dataEndIndex){var z=O.state.updateId;O.setState(function(){return Ce({dataStartIndex:M,dataEndIndex:j},v({props:O.props,dataStartIndex:M,dataEndIndex:j,updateId:z},O.state))}),O.triggerSyncEvent({dataStartIndex:M,dataEndIndex:j})}}),it(O,"handleMouseEnter",function(k){var M=O.getMouseInfo(k);if(M){var j=Ce(Ce({},M),{},{isTooltipActive:!0});O.setState(j),O.triggerSyncEvent(j);var z=O.props.onMouseEnter;wt(z)&&z(j,k)}}),it(O,"triggeredAfterMouseMove",function(k){var M=O.getMouseInfo(k),j=M?Ce(Ce({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(j),O.triggerSyncEvent(j);var z=O.props.onMouseMove;wt(z)&&z(j,k)}),it(O,"handleItemMouseEnter",function(k){O.setState(function(){return{isTooltipActive:!0,activeItem:k,activePayload:k.tooltipPayload,activeCoordinate:k.tooltipPosition||{x:k.cx,y:k.cy}}})}),it(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),it(O,"handleMouseMove",function(k){k.persist(),O.throttleTriggeredAfterMouseMove(k)}),it(O,"handleMouseLeave",function(k){O.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};O.setState(M),O.triggerSyncEvent(M);var j=O.props.onMouseLeave;wt(j)&&j(M,k)}),it(O,"handleOuterEvent",function(k){var M=uSe(k),j=vi(O.props,"".concat(M));if(M&&wt(j)){var z,$;/.*touch.*/i.test(M)?$=O.getMouseInfo(k.changedTouches[0]):$=O.getMouseInfo(k),j((z=$)!==null&&z!==void 0?z:{},k)}}),it(O,"handleClick",function(k){var M=O.getMouseInfo(k);if(M){var j=Ce(Ce({},M),{},{isTooltipActive:!0});O.setState(j),O.triggerSyncEvent(j);var z=O.props.onClick;wt(z)&&z(j,k)}}),it(O,"handleMouseDown",function(k){var M=O.props.onMouseDown;if(wt(M)){var j=O.getMouseInfo(k);M(j,k)}}),it(O,"handleMouseUp",function(k){var M=O.props.onMouseUp;if(wt(M)){var j=O.getMouseInfo(k);M(j,k)}}),it(O,"handleTouchMove",function(k){k.changedTouches!=null&&k.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(k.changedTouches[0])}),it(O,"handleTouchStart",function(k){k.changedTouches!=null&&k.changedTouches.length>0&&O.handleMouseDown(k.changedTouches[0])}),it(O,"handleTouchEnd",function(k){k.changedTouches!=null&&k.changedTouches.length>0&&O.handleMouseUp(k.changedTouches[0])}),it(O,"handleDoubleClick",function(k){var M=O.props.onDoubleClick;if(wt(M)){var j=O.getMouseInfo(k);M(j,k)}}),it(O,"handleContextMenu",function(k){var M=O.props.onContextMenu;if(wt(M)){var j=O.getMouseInfo(k);M(j,k)}}),it(O,"triggerSyncEvent",function(k){O.props.syncId!==void 0&&A5.emit(C5,O.props.syncId,k,O.eventEmitterSymbol)}),it(O,"applySyncEvent",function(k){var M=O.props,j=M.layout,z=M.syncMethod,$=O.state.updateId,F=k.dataStartIndex,q=k.dataEndIndex;if(k.dataStartIndex!==void 0||k.dataEndIndex!==void 0)O.setState(Ce({dataStartIndex:F,dataEndIndex:q},v({props:O.props,dataStartIndex:F,dataEndIndex:q,updateId:$},O.state)));else if(k.activeTooltipIndex!==void 0){var Q=k.chartX,X=k.chartY,te=k.activeTooltipIndex,U=O.state,J=U.offset,ee=U.tooltipTicks;if(!J)return;if(typeof z=="function")te=z(ee,k);else if(z==="value"){te=-1;for(var de=0;de<ee.length;de++)if(ee[de].value===k.activeLabel){te=de;break}}var G=Ce(Ce({},J),{},{x:J.left,y:J.top}),Y=Math.min(Q,G.x+G.width),W=Math.min(X,G.y+G.height),L=ee[te]&&ee[te].value,le=AT(O.state,O.props.data,te),fe=ee[te]?{x:j==="horizontal"?ee[te].coordinate:Y,y:j==="horizontal"?W:ee[te].coordinate}:AZ;O.setState(Ce(Ce({},k),{},{activeLabel:L,activeCoordinate:fe,activePayload:le,activeTooltipIndex:te}))}else O.setState(k)}),it(O,"renderCursor",function(k){var M,j=O.state,z=j.isTooltipActive,$=j.activeCoordinate,F=j.activePayload,q=j.offset,Q=j.activeTooltipIndex,X=j.tooltipAxisBandSize,te=O.getTooltipEventType(),U=(M=k.props.active)!==null&&M!==void 0?M:z,J=O.props.layout,ee=k.key||"_recharts-cursor";return re.createElement(TLe,{key:ee,activeCoordinate:$,activePayload:F,activeTooltipIndex:Q,chartName:r,element:k,isActive:U,layout:J,offset:q,tooltipAxisBandSize:X,tooltipEventType:te})}),it(O,"renderPolarAxis",function(k,M,j){var z=vi(k,"type.axisType"),$=vi(O.state,"".concat(z,"Map")),F=k.type.defaultProps,q=F!==void 0?Ce(Ce({},F),k.props):k.props,Q=$&&$[q["".concat(z,"Id")]];return N.cloneElement(k,Ce(Ce({},Q),{},{className:Lt(z,Q.className),key:k.key||"".concat(M,"-").concat(j),ticks:io(Q,!0)}))}),it(O,"renderPolarGrid",function(k){var M=k.props,j=M.radialLines,z=M.polarAngles,$=M.polarRadius,F=O.state,q=F.radiusAxisMap,Q=F.angleAxisMap,X=pl(q),te=pl(Q),U=te.cx,J=te.cy,ee=te.innerRadius,de=te.outerRadius;return N.cloneElement(k,{polarAngles:Array.isArray(z)?z:io(te,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray($)?$:io(X,!0).map(function(G){return G.coordinate}),cx:U,cy:J,innerRadius:ee,outerRadius:de,key:k.key||"polar-grid",radialLines:j})}),it(O,"renderLegend",function(){var k=O.state.formattedGraphicalItems,M=O.props,j=M.children,z=M.width,$=M.height,F=O.props.margin||{},q=z-(F.left||0)-(F.right||0),Q=EQ({children:j,formattedGraphicalItems:k,legendWidth:q,legendContent:c});if(!Q)return null;var X=Q.item,te=I$(Q,ALe);return N.cloneElement(X,Ce(Ce({},te),{},{chartWidth:z,chartHeight:$,margin:F,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),it(O,"renderTooltip",function(){var k,M=O.props,j=M.children,z=M.accessibilityLayer,$=Ba(j,Mi);if(!$)return null;var F=O.state,q=F.isTooltipActive,Q=F.activeCoordinate,X=F.activePayload,te=F.activeLabel,U=F.offset,J=(k=$.props.active)!==null&&k!==void 0?k:q;return N.cloneElement($,{viewBox:Ce(Ce({},U),{},{x:U.left,y:U.top}),active:J,label:te,payload:J?X:[],coordinate:Q,accessibilityLayer:z})}),it(O,"renderBrush",function(k){var M=O.props,j=M.margin,z=M.data,$=O.state,F=$.offset,q=$.dataStartIndex,Q=$.dataEndIndex,X=$.updateId;return N.cloneElement(k,{key:k.key||"_recharts-brush",onChange:m1(O.handleBrushChange,k.props.onChange),data:z,x:Ue(k.props.x)?k.props.x:F.left,y:Ue(k.props.y)?k.props.y:F.top+F.height+F.brushBottom-(j.bottom||0),width:Ue(k.props.width)?k.props.width:F.width,startIndex:q,endIndex:Q,updateId:"brush-".concat(X)})}),it(O,"renderReferenceElement",function(k,M,j){if(!k)return null;var z=O,$=z.clipPathId,F=O.state,q=F.xAxisMap,Q=F.yAxisMap,X=F.offset,te=k.type.defaultProps||{},U=k.props,J=U.xAxisId,ee=J===void 0?te.xAxisId:J,de=U.yAxisId,G=de===void 0?te.yAxisId:de;return N.cloneElement(k,{key:k.key||"".concat(M,"-").concat(j),xAxis:q[ee],yAxis:Q[G],viewBox:{x:X.left,y:X.top,width:X.width,height:X.height},clipPathId:$})}),it(O,"renderActivePoints",function(k){var M=k.item,j=k.activePoint,z=k.basePoint,$=k.childIndex,F=k.isRange,q=[],Q=M.props.key,X=M.item.type.defaultProps!==void 0?Ce(Ce({},M.item.type.defaultProps),M.item.props):M.item.props,te=X.activeDot,U=X.dataKey,J=Ce(Ce({index:$,dataKey:U,cx:j.x,cy:j.y,r:4,fill:S7(M.item),strokeWidth:2,stroke:"#fff",payload:j.payload,value:j.value},Ft(te,!1)),_v(te));return q.push(_.renderActiveDot(te,J,"".concat(Q,"-activePoint-").concat($))),z?q.push(_.renderActiveDot(te,Ce(Ce({},J),{},{cx:z.x,cy:z.y}),"".concat(Q,"-basePoint-").concat($))):F&&q.push(null),q}),it(O,"renderGraphicChild",function(k,M,j){var z=O.filterFormatItem(k,M,j);if(!z)return null;var $=O.getTooltipEventType(),F=O.state,q=F.isTooltipActive,Q=F.tooltipAxis,X=F.activeTooltipIndex,te=F.activeLabel,U=O.props.children,J=Ba(U,Mi),ee=z.props,de=ee.points,G=ee.isRange,Y=ee.baseLine,W=z.item.type.defaultProps!==void 0?Ce(Ce({},z.item.type.defaultProps),z.item.props):z.item.props,L=W.activeDot,le=W.hide,fe=W.activeBar,Se=W.activeShape,ye=!!(!le&&q&&J&&(L||fe||Se)),Ne={};$!=="axis"&&J&&J.props.trigger==="click"?Ne={onClick:m1(O.handleItemMouseEnter,k.props.onClick)}:$!=="axis"&&(Ne={onMouseLeave:m1(O.handleItemMouseLeave,k.props.onMouseLeave),onMouseEnter:m1(O.handleItemMouseEnter,k.props.onMouseEnter)});var xe=N.cloneElement(k,Ce(Ce({},z.props),Ne));function Pe(yr){return typeof Q.dataKey=="function"?Q.dataKey(yr.payload):null}if(ye)if(X>=0){var ze,we;if(Q.dataKey&&!Q.allowDuplicatedCategory){var ft=typeof Q.dataKey=="function"?Pe:"payload.".concat(Q.dataKey.toString());ze=wv(de,ft,te),we=G&&Y&&wv(Y,ft,te)}else ze=de?.[X],we=G&&Y&&Y[X];if(Se||fe){var Qe=k.props.activeIndex!==void 0?k.props.activeIndex:X;return[N.cloneElement(k,Ce(Ce(Ce({},z.props),Ne),{},{activeIndex:Qe})),null,null]}if(!Mt(ze))return[xe].concat(b0(O.renderActivePoints({item:z,activePoint:ze,basePoint:we,childIndex:X,isRange:G})))}else{var zt,Pt=(zt=O.getItemByXY(O.state.activeCoordinate))!==null&&zt!==void 0?zt:{graphicalItem:xe},Ut=Pt.graphicalItem,jr=Ut.item,ar=jr===void 0?k:jr,Aa=Ut.childIndex,Wn=Ce(Ce(Ce({},z.props),Ne),{},{activeIndex:Aa});return[N.cloneElement(ar,Wn),null,null]}return G?[xe,null,null]:[xe,null]}),it(O,"renderCustomized",function(k,M,j){return N.cloneElement(k,Ce(Ce({key:"recharts-customized-".concat(j)},O.props),O.state))}),it(O,"renderMap",{CartesianGrid:{handler:x1,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:x1},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:x1},YAxis:{handler:x1},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((C=T.id)!==null&&C!==void 0?C:am("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=xK(O.triggeredAfterMouseMove,(P=T.throttleDelay)!==null&&P!==void 0?P:1e3/60),O.state={},O}return BLe(_,E),ILe(_,[{key:"componentDidMount",value:function(){var C,P;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(C=this.props.margin.left)!==null&&C!==void 0?C:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var C=this.props,P=C.children,O=C.data,k=C.height,M=C.layout,j=Ba(P,Mi);if(j){var z=j.props.defaultIndex;if(!(typeof z!="number"||z<0||z>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[z]&&this.state.tooltipTicks[z].value,F=AT(this.state,O,z,$),q=this.state.tooltipTicks[z].coordinate,Q=(this.state.offset.top+k)/2,X=M==="horizontal",te=X?{x:q,y:Q}:{y:q,x:Q},U=this.state.formattedGraphicalItems.find(function(ee){var de=ee.item;return de.type.name==="Scatter"});U&&(te=Ce(Ce({},te),U.props.points[z].tooltipPosition),F=U.props.points[z].tooltipPayload);var J={activeTooltipIndex:z,isTooltipActive:!0,activeLabel:$,activePayload:F,activeCoordinate:te};this.setState(J),this.renderCursor(j),this.accessibilityManager.setIndex(z)}}}},{key:"getSnapshotBeforeUpdate",value:function(C,P){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==P.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==C.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==C.margin){var O,k;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(k=this.props.margin.top)!==null&&k!==void 0?k:0}})}return null}},{key:"componentDidUpdate",value:function(C){cS([Ba(C.children,Mi)],[Ba(this.props.children,Mi)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var C=Ba(this.props.children,Mi);if(C&&typeof C.props.shared=="boolean"){var P=C.props.shared?"axis":"item";return o.indexOf(P)>=0?P:i}return i}},{key:"getMouseInfo",value:function(C){if(!this.container)return null;var P=this.container,O=P.getBoundingClientRect(),k=K8e(O),M={chartX:Math.round(C.pageX-k.left),chartY:Math.round(C.pageY-k.top)},j=O.width/P.offsetWidth||1,z=this.inRange(M.chartX,M.chartY,j);if(!z)return null;var $=this.state,F=$.xAxisMap,q=$.yAxisMap,Q=this.getTooltipEventType(),X=L$(this.state,this.props.data,this.props.layout,z);if(Q!=="axis"&&F&&q){var te=pl(F).scale,U=pl(q).scale,J=te&&te.invert?te.invert(M.chartX):null,ee=U&&U.invert?U.invert(M.chartY):null;return Ce(Ce({},M),{},{xValue:J,yValue:ee},X)}return X?Ce(Ce({},M),X):null}},{key:"inRange",value:function(C,P){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,k=this.props.layout,M=C/O,j=P/O;if(k==="horizontal"||k==="vertical"){var z=this.state.offset,$=M>=z.left&&M<=z.left+z.width&&j>=z.top&&j<=z.top+z.height;return $?{x:M,y:j}:null}var F=this.state,q=F.angleAxisMap,Q=F.radiusAxisMap;if(q&&Q){var X=pl(q);return KB({x:M,y:j},X)}return null}},{key:"parseEventsOfWrapper",value:function(){var C=this.props.children,P=this.getTooltipEventType(),O=Ba(C,Mi),k={};O&&P==="axis"&&(O.props.trigger==="click"?k={onClick:this.handleClick}:k={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var M=_v(this.props,this.handleOuterEvent);return Ce(Ce({},M),k)}},{key:"addListener",value:function(){A5.on(C5,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){A5.removeListener(C5,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(C,P,O){for(var k=this.state.formattedGraphicalItems,M=0,j=k.length;M<j;M++){var z=k[M];if(z.item===C||z.props.key===C.key||P===fo(z.item.type)&&O===z.childIndex)return z}return null}},{key:"renderClipPath",value:function(){var C=this.clipPathId,P=this.state.offset,O=P.left,k=P.top,M=P.height,j=P.width;return re.createElement("defs",null,re.createElement("clipPath",{id:C},re.createElement("rect",{x:O,y:k,height:M,width:j})))}},{key:"getXScales",value:function(){var C=this.state.xAxisMap;return C?Object.entries(C).reduce(function(P,O){var k=P$(O,2),M=k[0],j=k[1];return Ce(Ce({},P),{},it({},M,j.scale))},{}):null}},{key:"getYScales",value:function(){var C=this.state.yAxisMap;return C?Object.entries(C).reduce(function(P,O){var k=P$(O,2),M=k[0],j=k[1];return Ce(Ce({},P),{},it({},M,j.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(C){var P;return(P=this.state.xAxisMap)===null||P===void 0||(P=P[C])===null||P===void 0?void 0:P.scale}},{key:"getYScaleByAxisId",value:function(C){var P;return(P=this.state.yAxisMap)===null||P===void 0||(P=P[C])===null||P===void 0?void 0:P.scale}},{key:"getItemByXY",value:function(C){var P=this.state,O=P.formattedGraphicalItems,k=P.activeItem;if(O&&O.length)for(var M=0,j=O.length;M<j;M++){var z=O[M],$=z.props,F=z.item,q=F.type.defaultProps!==void 0?Ce(Ce({},F.type.defaultProps),F.props):F.props,Q=fo(F.type);if(Q==="Bar"){var X=($.data||[]).find(function(ee){return hMe(C,ee)});if(X)return{graphicalItem:z,payload:X}}else if(Q==="RadialBar"){var te=($.data||[]).find(function(ee){return KB(C,ee)});if(te)return{graphicalItem:z,payload:te}}else if(Hb(z,k)||qb(z,k)||Tp(z,k)){var U=nPe({graphicalItem:z,activeTooltipItem:k,itemData:q.data}),J=q.activeIndex===void 0?U:q.activeIndex;return{graphicalItem:Ce(Ce({},z),{},{childIndex:J}),payload:Tp(z,k)?q.data[U]:z.props.data[U]}}}return null}},{key:"render",value:function(){var C=this;if(!iD(this))return null;var P=this.props,O=P.children,k=P.className,M=P.width,j=P.height,z=P.style,$=P.compact,F=P.title,q=P.desc,Q=I$(P,CLe),X=Ft(Q,!1);if($)return re.createElement(p$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},re.createElement(dS,Cf({},X,{width:M,height:j,title:F,desc:q}),this.renderClipPath(),oD(O,this.renderMap)));if(this.props.accessibilityLayer){var te,U;X.tabIndex=(te=this.props.tabIndex)!==null&&te!==void 0?te:0,X.role=(U=this.props.role)!==null&&U!==void 0?U:"application",X.onKeyDown=function(ee){C.accessibilityManager.keyboardEvent(ee)},X.onFocus=function(){C.accessibilityManager.focus()}}var J=this.parseEventsOfWrapper();return re.createElement(p$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},re.createElement("div",Cf({className:Lt("recharts-wrapper",k),style:Ce({position:"relative",curs
984or:"default",width:M,height:j},z)},J,{ref:function(de){C.container=de}}),re.createElement(dS,Cf({},X,{width:M,height:j,title:F,desc:q,style:qLe}),this.renderClipPath(),oD(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);it(y,"displayName",r),it(y,"defaultProps",Ce({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),it(y,"getDerivedStateFromProps",function(E,_){var T=E.dataKey,C=E.data,P=E.children,O=E.width,k=E.height,M=E.layout,j=E.stackOffset,z=E.margin,$=_.dataStartIndex,F=_.dataEndIndex;if(_.updateId===void 0){var q=j$(E);return Ce(Ce(Ce({},q),{},{updateId:0},v(Ce(Ce({props:E},q),{},{updateId:0}),_)),{},{prevDataKey:T,prevData:C,prevWidth:O,prevHeight:k,prevLayout:M,prevStackOffset:j,prevMargin:z,prevChildren:P})}if(T!==_.prevDataKey||C!==_.prevData||O!==_.prevWidth||k!==_.prevHeight||M!==_.prevLayout||j!==_.prevStackOffset||!If(z,_.prevMargin)){var Q=j$(E),X={chartX:_.chartX,chartY:_.chartY,isTooltipActive:_.isTooltipActive},te=Ce(Ce({},L$(_,C,M)),{},{updateId:_.updateId+1}),U=Ce(Ce(Ce({},Q),X),te);return Ce(Ce(Ce({},U),v(Ce({props:E},U),_)),{},{prevDataKey:T,prevData:C,prevWidth:O,prevHeight:k,prevLayout:M,prevStackOffset:j,prevMargin:z,prevChildren:P})}if(!cS(P,_.prevChildren)){var J,ee,de,G,Y=Ba(P,o0),W=Y&&(J=(ee=Y.props)===null||ee===void 0?void 0:ee.startIndex)!==null&&J!==void 0?J:$,L=Y&&(de=(G=Y.props)===null||G===void 0?void 0:G.endIndex)!==null&&de!==void 0?de:F,le=W!==$||L!==F,fe=!Mt(C),Se=fe&&!le?_.updateId:_.updateId+1;return Ce(Ce({updateId:Se},v(Ce(Ce({props:E},_),{},{updateId:Se,dataStartIndex:W,dataEndIndex:L}),_)),{},{prevChildren:P,dataStartIndex:W,dataEndIndex:L})}return null}),it(y,"renderActiveDot",function(E,_,T){var C;return N.isValidElement(E)?C=N.cloneElement(E,_):wt(E)?C=E(_):C=re.createElement(A7,_),re.createElement(Hr,{className:"recharts-active-dot",key:T},C)});var b=N.forwardRef(function(_,T){return re.createElement(y,Cf({},_,{ref:T}))});return b.displayName=y.displayName,b},eje=OZ({chartName:"LineChart",GraphicalChild:fm,axisComponents:[{axisType:"xAxis",AxisComp:m0},{axisType:"yAxis",AxisComp:v0}],formatAxisMap:WQ}),tje=OZ({chartName:"BarChart",GraphicalChild:hc,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:m0},{axisType:"yAxis",AxisComp:v0}],formatAxisMap:WQ});const E1=e=>new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",maximumFractionDigits:0}).format(e),w1=["#4f46e5","#6366f1","#818cf8","#a5b4fc","#c7d2fe"];function rje(){const[e,t]=N.useState(90),r=Je.analytics.overview.useQuery({days:e}),n=()=>
984{if(!r.data)return;const i=["Metric,Value",...Object.entries(r.data.metrics).map(([u,c])=>`${u},${c}`)],s=URL.createObjectURL(new Blob([i.join(`
985`)],{type:"text/csv"})),o=document.createElement("a");o.href=s,o.download="scout-ai-analytics.csv",o.click(),URL.revokeObjectURL(s)},a=!r.data||!r.data.metrics.pipelineValue&&!r.data.metrics.recentDeals&&!r.data.stageData.some(i=>i.count)&&!r.data.sources.length;return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/Analytics.tsx:13",eyebrow:"Revenue intelligence",title:"Analytics & forecast",description:"Live operational metrics calculated from records in your organization, never fabricated dashboard data.",action:x.jsxs("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"flex gap-2",children:[x.jsxs(zu,{"data-loc":"client/src/pages/Analytics.tsx:13",value:String(e),onValueChange:i=>t(Number(i)),children:[x.jsx(Fu,{"data-loc":"client/src/pages/Analytics.tsx:13",className:"w-28 rounded-xl border-slate-200 bg-white",children:x.jsx($u,{"data-loc":"client/src/pages/Analytics.tsx:13"})}),x.jsxs(Uu,{"data-loc":"client/src/pages/Analytics.tsx:13",children:[x.jsx(oo,{"data-loc":"client/src/pages/Analytics.tsx:13",value:"30",children:"30 days"}),x.jsx(oo,{"data-loc":"client/src/pages/Analytics.tsx:13",value:"90",children:"90 days"}),x.jsx(oo,{"data-loc":"client/src/pages/Analytics.tsx:13",value:"180",children:"180 days"})]})]}),x.jsxs(jt,{"data-loc":"client/src/pages/Analytics.tsx:13",onClick:n,variant:"outline",className:"rounded-xl bg-white",children:[x.jsx(woe,{"data-loc":"client/src/pages/Analytics.tsx:13",className:"mr-2 size-4"}),"Export CSV"]})]})}),x.jsx(Ea,{"data-loc":"client/src/pages/Analytics.tsx:13",loading:r.isLoading,error:r.error,empty:a,children:r.data?x.jsxs("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"space-y-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:[x.jsx(_1,{"data-loc":"client/src/pages/Analytics.tsx:13",label:"Open pipeline",value:E1(r.data.metrics.pipelineValue),note:"Current open-deal value"}),x.jsx(_1,{"data-loc":"client/src/pages/Analytics.tsx:13",label:"Win rate",value:`${r.data.metrics.winRate}%`,note:"Won / decided deals"}),x.jsx(_1,{"data-loc":"client/src/pages/Analytics.tsx:13",label:"Average deal",value:E1(r.data.metrics.averageDealSize),note:"Across all active records"}),x.jsx(_1,{"data-loc":"client/src/pages/Analytics.tsx:13",label:"Lead → deal",value:`${r.data.metrics.leadToDeal}%`,note:"Current CRM conversion ratio"})]}),x.jsxs("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"grid gap-6 xl:grid-cols-[1.35fr_1fr]",children:[x.jsx(k5,{"data-loc":"client/src/pages/Analytics.tsx:13",title:"Won revenue trend",subtitle:"Closed-won value by month",children:x.jsx(Nj,{"data-loc":"client/src/pages/Analytics.tsx:13",width:"100%",height:260,children:x.jsxs(eje,{"data-loc":"client/src/pages/Analytics.tsx:13",data:r.data.revenueTrend,children:[x.jsx(mT,{"data-loc":"client/src/pages/Analytics.tsx:13",vertical:!1,stroke:"#e2e8f0"}),x.jsx(m0,{"data-loc":"client/src/pages/Analytics.tsx:13",dataKey:"month",axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#64748b"}}),x.jsx(v0,{"data-loc":"client/src/pages/Analytics.tsx:13",axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#64748b"},tickFormatter:i=>`$${Number(i)/1e3}k`}),x.jsx(Mi,{"data-loc":"client/src/pages/Analytics.tsx:13",formatter:i=>E1(i)}),x.jsx(fm,{"data-loc":"client/src/pages/Analytics.tsx:13",type:"monotone",dataKey:"revenue",stroke:"#4f46e5",strokeWidth:3,dot:{r:3,fill:"#4f46e5"}})]})})}),x.jsx(ut,{"data-loc":"client/src/pages/Analytics.tsx:13",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Analytics.tsx:13",className:"p-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"flex items-center gap-2",children:[x.jsx("span",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"grid size-8 place-items-center rounded-lg bg-indigo-50 text-indigo-600",children:x.jsx(joe,{"data-loc":"client/src/pages/Analytics.tsx:13",className:"size-4"})}),x.jsxs("div",{"data-loc":"client/src/pages/Analytics.tsx:13",children:[x.jsx("h2",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"font-semibold tracking-tight",children:"AI forecast"}),x.jsx("p",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"text-xs text-slate-500",children:"A prediction, not a guarantee."})]})]}),x.jsx("p",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"mt-6 text-3xl font-semibold tracking-[-0.04em]",children:E1(r.data.forecast.predictedRevenue)}),x.jsxs("p",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"mt-1 text-sm text-slate-500",children:["Weighted pipeline forecast · ",r.data.forecast.confidence,"% confidence"]}),x.jsxs("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"mt-6 rounded-xl bg-slate-50 p-4",children:[x.jsx("p",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"text-xs font-bold uppercase tracking-wide text-slate-400",children:"Forecast drivers"}),r.data.forecast.drivers.map(i=>x.jsx("p",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"mt-3 text-sm text-slate-600",children:i},i))]})]})})]}),x.jsxs("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"grid gap-6 xl:grid-cols-2",children:[x.jsx(k5,{"data-loc":"client/src/pages/Analytics.tsx:13",title:"Pipeline by stage",subt
985itle:"Current count by each configured pipeline stage",children:x.jsx(Nj,{"data-loc":"client/src/pages/Analytics.tsx:13",width:"100%",height:270,children:x.jsxs(tje,{"data-loc":"client/src/pages/Analytics.tsx:13",data:r.data.stageData,children:[x.jsx(mT,{"data-loc":"client/src/pages/Analytics.tsx:13",vertical:!1,stroke:"#e2e8f0"}),x.jsx(m0,{"data-loc":"client/src/pages/Analytics.tsx:13",dataKey:"stage",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#64748b"}}),x.jsx(v0,{"data-loc":"client/src/pages/Analytics.tsx:13",allowDecimals:!1,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#64748b"}}),x.jsx(Mi,{"data-loc":"client/src/pages/Analytics.tsx:13"}),x.jsx(hc,{"data-loc":"client/src/pages/Analytics.tsx:13",dataKey:"count",radius:[6,6,0,0],children:r.data.stageData.map((i,s)=>x.jsx(e7,{"data-loc":"client/src/pages/Analytics.tsx:13",fill:w1[s%w1.length]},`${i.stage}-${s}`))})]})})}),x.jsx(k5,{"data-loc":"client/src/pages/Analytics.tsx:13",title:"Lead source quality",subtitle:"Volume and average Scout Score by recorded source",children:x.jsx("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"space-y-3 pt-2",children:r.data.sources.length?r.data.sources.slice(0,6).map((i,s)=>x.jsxs("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"grid grid-cols-[minmax(0,1fr)_50px_62px] items-center gap-3",children:[x.jsxs("div",{"data-loc":"client/src/pages/Analytics.tsx:13",children:[x.jsxs("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"flex justify-between gap-3 text-sm",children:[x.jsx("span",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"truncate font-medium",children:i.source}),x.jsxs("span",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"text-slate-400",children:[i.count," leads"]})]}),x.jsx("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"mt-1.5 h-2 overflow-hidden rounded-full bg-slate-100",children:x.jsx("div",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"h-full rounded-full",style:{width:`${Math.min(100,i.avgScore)}%`,background:w1[s%w1.length]}})})]}),x.jsx("span",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"text-right text-sm font-semibold text-slate-700",children:i.avgScore}),x.jsx("span",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"text-xs text-slate-400",children:"avg score"})]},i.source)):x.jsx("p",{"data-loc":"client/src/pages/Analytics.tsx:13",className:"py-14 text-center text-sm text-slate-500",children:"Lead sources appear as your team records them."})})})]})]}):null})]})}function _1({label:e,value:t,note:r}){return x.jsx(ut,{"data-loc":"client/src/pages/Analytics.tsx:14",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Analytics.tsx:14",className:"p-5",children:[x.jsx("p",{"data-loc":"client/src/pages/Analytics.tsx:14",className:"text-sm font-medium text-slate-500",children:e}),x.jsx("p",{"data-loc":"client/src/pages/Analytics.tsx:14",className:"mt-4 text-2xl font-semibold tracking-[-0.04em]",children:t}),x.jsx("p",{"data-loc":"client/src/pages/Analytics.tsx:14",className:"mt-1 text-xs text-slate-400",children:r})]})})}function k5({title:e,subtitle:t,children:r}){return x.jsx(ut,{"data-loc":"client/src/pages/Analytics.tsx:15",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Analytics.tsx:15",className:"p-5",children:[x.jsx("h2",{"data-loc":"client/src/pages/Analytics.tsx:15",className:"font-semibold tracking-tight",children:e}),x.jsx("p",{"data-loc":"client/src/pages/Analytics.tsx:15",className:"mt-1 text-xs text-slate-500",children:t}),x.jsx("div",{"data-loc":"client/src/pages/Analytics.tsx:15",className:"mt-5",children:r})]})})}function nje(){const e=Je.useUtils(),t=Je.ai.recommendations.useQuery(),r=Je.ai.actions.pending.useQuery(),n=Je.ai.actions.requestTask.useMutation({onSuccess:()=>{_t.success("Recommendation queued for your approval."),e.ai.actions.pending.invalidate()},onError:i=>_t.error(i.message)}),a=Je.ai.actions.review.useMutation({onSuccess:i=>{_t.success(i.status==="executed"?"Task created after approval.":"Recommendation rejected."),e.ai.actions.pending.
985invalidate(),e.crm.tasks.list.invalidate(),e.workspace.dashboard.invalidate()},onError:i=>_t.error(i.message)});return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/Recommendations.tsx:8",eyebrow:"Intelligence",title:"Next best actions",description:"Every recommendation shows the CRM evidence, expected outcome, and required human approval before it acts."}),x.jsx(Ea,{"data-loc":"client/src/pages/Recommendations.tsx:8",loading:t.isLoading||r.isLoading,error:t.error||r.error,empty:!t.data?.length&&!r.data?.length,children:x.jsxs("div",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"grid gap-6 xl:grid-cols-[1.4fr_1fr]",children:[x.jsx("section",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"space-y-3",children:t.data?.map(i=>x.jsx(ut,{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsx(ct,{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"p-5",children:x.jsxs("div",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"flex gap-3",children:[x.jsx("span",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"grid size-9 shrink-0 place-items-center rounded-xl bg-indigo-50 text-indigo-600",children:x.jsx(so,{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"size-4"})}),x.jsxs("div",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"min-w-0 flex-1",children:[x.jsxs("div",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"flex flex-wrap items-center gap-2",children:[x.jsx("h2",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"font-semibold",children:i.title}),x.jsxs("span",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"rounded-md bg-emerald-50 px-2 py-0.5 text-[11px] font-medium text-emerald-700",children:[i.riskLevel," risk"]})]}),x.jsx("p",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"mt-3 text-sm leading-6 text-slate-600",children:i.rationale}),x.jsxs("div",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"mt-3 rounded-xl bg-slate-50 p-3",children:[x.jsx("p",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"text-xs font-semibold uppercase tracking-wide text-slate-400",children:"Expected outcome"}),x.jsx("p",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"mt-1 text-sm text-slate-600",children:i.expectedOutcome})]}),x.jsx("div",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"mt-4 flex justify-end",children:x.jsx(jt,{"data-loc":"client/src/pages/Recommendations.tsx:8",disabled:n.isPending,onClick:()=>n.mutate({...i.action,rationale:i.rationale}),className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:"Request task approval"})})]})]})})},`${i.type}-${i.entityId}`))}),x.jsx("aside",{"data-loc":"client/src/pages/Recommendations.tsx:8",children:x.jsx(ut,{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"p-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"flex items-center gap-2",children:[x.jsx(WT,{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"size-4 text-amber-500"}),x.jsx("h2",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"font-semibold",children:"Approval queue"})]}),x.jsx("p",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"mt-2 text-sm text-slate-500",children:"Review exactly what Scout AI proposes before it creates an internal task."}),x.jsx("div",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"mt-5 space-y-3",children:r.data?.length?r.data.map(i=>{const s=i.payload;return x.jsxs("div",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"rounded-xl border border-slate-200 p-3",children:[x.jsx("p",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"text-sm font-medium",children:s.title??i.actionType}),x.jsx("p",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"mt-1 text-xs leading-5 text-slate-500",children:i.rationale}),x.jsxs("div",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"mt-3 flex gap-2",children:[x.jsxs(jt,{"data-loc":"client/src/pages/Recommendations.tsx:8",size:"sm",disabled:a.isPending,onClick:()=>a.mutate({id:i.id,approved:!0}),className:"rounded-lg bg-indigo-600 hover:bg-indigo-700",children:[x.jsx(GT,{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"mr-1 size-3"}),"Approve"]}),x.jsxs(jt,{"data-loc":"client/src/pages/Recommendations.tsx:8",size:"sm",variant:"outline",disabled:a.isPending,onClick:()=>a.mutate({id:i.id,approved:!1}),className:"rounded-lg",children:[x.jsx(Hoe,{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"mr-1 size-3"}),"Reject"]})]})]},i.id)}):x.jsx("p",{"data-loc":"client/src/pages/Recommendations.tsx:8",className:"py-6 text-center text-sm text-slate-500",children:"No pending approvals."})})]})})})]})})]})}function aje(){const e=Je.useUtils(),t=Je.operations.agents.list.useQuery(),r=Je.operations.workflows.list.useQuery(),n=Je.operations.memory.list.useQuery(),[a,i]=N.useState(!1),[s,o]=N.useState(!1),u=Je.operations.agents.provisionDefaults.useMutation({onSuccess:v=>{_t.success(v.created?`${v.created} agent configurations provisioned.`:"All default agents are already configured."),e.operations.agents.list.invali
985date()},onError:v=>_t.error(v.message)}),c=Je.operations.workflows.create.useMutation({onSuccess:()=>{_t.success("Workflow created and enabled."),i(!1),e.operations.workflows.list.invalidate()},onError:v=>_t.error(v.message)}),h=Je.operations.workflows.run.useMutation({onSuccess:()=>{_t.success("Workflow ran and created its task."),e.crm.tasks.list.invalidate(),e.workspace.dashboard.invalidate()},onError:v=>_t.error(v.message)}),d=Je.operations.memory.create.useMutation({onSuccess:()=>{_t.success("Business memory saved."),o(!1),e.operations.memory.list.invalidate()},onError:v=>_t.error(v.message)}),m="mb-3 flex flex-col items-start gap-3 sm:flex-row sm:items-center sm:justify-between";return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/Operations.tsx:11",eyebrow:"Operations",title:"Agents & workflows",description:"Configure bounded revenue agents, run deterministic workflow actions, and maintain the business context they can safely use."}),x.jsxs("div",{"data-loc":"client/src/pages/Operations.tsx:11",className:"space-y-6",children:[x.jsxs("section",{"data-loc":"client/src/pages/Operations.tsx:11",children:[x.jsxs("div",{"data-loc":"client/src/pages/Operations.tsx:11",className:m,children:[x.jsxs("div",{"data-loc":"client/src/pages/Operations.tsx:11",children:[x.jsx("h2",{"data-loc":"client/src/pages/Operations.tsx:11",className:"font-semibold",children:"Scout agents"}),x.jsx("p",{"data-loc":"client/src/pages/Operations.tsx:11",className:"mt-1 text-sm text-slate-500",children:"Reusable configurations; actions remain tenant-scoped and approval-aware."})]}),x.jsxs(jt,{"data-loc":"client/src/pages/Operations.tsx:11",disabled:u.isPending,onClick:()=>u.mutate(),className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:[x.jsx(n_,{"data-loc":"client/src/pages/Operations.tsx:11",className:"mr-2 size-4"}),"Provision default agents"]})]}),x.jsx(Ea,{"data-loc":"client/src/pages/Operations.tsx:11",loading:t.isLoading,error:t.error,empty:!t.data?.length,children:x.jsx("div",{"data-loc":"client/src/pages/Operations.tsx:11",className:"grid gap-3 md:grid-cols-2 xl:grid-cols-3",children:t.data?.map(v=>x.jsx(ut,{"data-loc":"client/src/pages/Operations.tsx:11",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Operations.tsx:11",className:"p-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/Operations.tsx:11",className:"flex items-center gap-3",children:[x.jsx("span",{"data-loc":"client/src/pages/Operations.tsx:11",className:"grid size-9 place-items-center rounded-xl bg-indigo-50 text-indigo-600",children:x.jsx(n_,{"data-loc":"client/src/pages/Operations.tsx:11",className:"size-4"})}),x.jsxs("div",{"data-loc":"client/src/pages/Operations.tsx:11",children:[x.jsx("p",{"data-loc":"client/src/pages/Operations.tsx:11",className:"font-semibold",children:v.name}),x.jsxs("p",{"data-loc":"client/src/pages/Operations.tsx:11",className:"text-xs capitalize text-slate-400",children:[v.status," · ",v.approvalPolicy.replaceAll("_"," ")]})]})]}),x.jsx("p",{"data-loc":"client/src/pages/Operations.tsx:11",className:"mt-4 text-sm leading-6 text-slate-600",children:v.description})]})},v.id))})})]}),x.jsxs("section",{"data-loc":"client/src/pages/Operations.tsx:11",children:[x.jsxs("div",{"data-loc":"client/src/pages/Operations.tsx:11",className:m,children:[x.jsxs("div",{"data-loc":"client/src/pages/Operations.tsx:11",children:[x.jsx("h2",{"data-loc":"client/src/pages/Operations.tsx:11",className:"font-semibold",children:"Manual workflows"}),x.jsx("p",{"data-loc":"client/src/pages/Operations.tsx:11",className:"mt-1 text-sm text-slate-500",children:"Each enabled workflow has a real, auditable internal action."})]}),x.jsx(vo,{"data-loc":"client/src/pages/Operations.tsx:11",label:"Create workflow",onClick:()=>i(!a)})]}),a?x.jsx(ut,{"data-loc":"client/src/pages/Operations.tsx:11",className:"mb-4 rounded-2xl border-indigo-100 bg-indigo-50/30",children:x.jsx(ct,{"data-loc":"client/src/pages/Operations.tsx:11",className:"p-5",children:x.jsxs("form",{"data-loc":"client/src/pages/Operations.tsx:11",onSubmit:v=>{v.preventDefault();const y=new FormData(v.currentTarget);c.mutate({name:String(y.get("name")??""),description:String(y.get("description")||"")||void 0,taskTitle:String(y.get("taskTitle")??""),requiresApproval:!0})},className:"grid gap-3 md:grid-cols-3",children:[x.jsx(Eu,{"data-loc":"client/src/pages/Operations.tsx:11",name:"name",required:!0,placeholder:"Workflow name",className:"rounded-xl bg-white"}),x.jsx(Eu,{"data-loc":"client/src/pages/Operations.tsx:11",name:"taskTitle",required:!0,placeholder:"Task created when run",className:"rounded-xl bg-white"}),x.jsx(jt,{"data-loc":"client/src/pages/Operations.tsx:11",disabled:c.isPending,className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:"Save workflow"}),x.jsx(Hu,{"data-loc":"client/src/pages/Operations.tsx:11",name:"description",placeholder:"What should trigger this workflow?",className:"md:col-span-3 rounded-xl bg-white"})]})})}):null,x.jsx(Ea,{"data-loc":"client/src/pages/Operations.tsx:11",loading:r.isLoading,error:r.error,empty:!r.data?.length,children:x.jsx("div",{"data-loc":"client/src/pages/Operations.tsx:11",className:"grid gap-3 lg:grid-cols-2",children:r.data?.map(v=>x.jsx(ut,{"data-loc":"client/src/pages/Operations.tsx:11",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Operations.tsx:11",className:"flex items-center gap-4 p-5",children:[x.jsx("span",{"data-loc":"client/src/pages/Operations.tsx:11",className:"grid size-9 place-items-center rounded-xl bg-indigo-50 text-indigo-600",children:x.jsx(Uoe,{"data-loc":"client/src/pages/Operations.tsx:11",className:"size-4"})}),x.jsxs("div",{"data-loc":"client/src/pages/Operations.tsx:11",className:"min-w-0 flex-1",children:[x.jsx("p",{"data-loc":"client/src/pages/Operations.tsx:11",className:"font-semibold",children:v.name}),x.jsx("p",{"data-loc":"client/src/pages/Operations.tsx:11",className:"mt-1 text-sm text-slate-500",children:v.description??"Manual workflow"})]}),x.jsxs(jt,{"data-loc":"client/src/pages/Operations.tsx:11",size:"sm",disabled:h.isPending||!v.enabled,onClick:()=>h.mutate({id:v.id}),className:"rounded-lg bg-indigo-600 hover:bg-indigo-700",children:[x.jsx(Roe,{"data-loc":"client/src/pages/Operations.tsx:11",className:"mr-1 size-3"}),"Run"]})]})},v.id))})})]}),x.jsxs("section",{"data-loc":"client/src/pages/Operations.tsx:11",children:[x.jsxs("div",{"data-loc":"client/src/pages/Operations.tsx:11",className:m,children:[x.jsxs("div",{"data-loc":"client/src/pages/Operations.tsx:11",children:[x.jsx("h2",{"data-loc":"client/src/pages/Operations.tsx:11",className:"font-semibold",children:"Scout Business Memory"}),x.jsx("p",{"data-loc":"client/src/pages/Operations.tsx:11",className:"mt-1 text-sm text-slate-500",children:"Approved organizational facts for AI context, with source and confidence."})]}),x.jsx(vo,{"data-loc":"client/src/pages/Operations.tsx:11",label:"Add memory",onClick:()=>o(!s)})]}),s?x.jsx(ut,{"data-loc":"client/src/pages/Operations.tsx:11",className:"mb-4 rounded-2xl border-indigo-100 bg-indigo-50/30",children:x.jsx(ct,{"data-loc":"client/src/pages/Operations.tsx:11",className:"p-5",children:x.jsxs("form",{"data-loc":"client/src/pages/Operations.tsx:11",onSubmit:v=>{v.preventDefault();const y=new FormData(v.currentTarget);d.mutate({category:String(y.get("category")??""),source:String(y.get("source")??""),content:String(y.get("content")??"")})},className:"grid gap-3 md:grid-cols-3",children:[x.jsx(Eu,{"data-loc":"client/src/pages/Operations.tsx:11",name:"category",required:!0,placeholder:"Category (e.g. ICP)",className:"rounded-xl bg-white"}),x.jsx(Eu,{"data-loc":"client/src/pages/Operations.tsx:11",name:"source",required:!0,placeholder:"Source (e.g. Sales playbook)",className:"rounded-xl bg-white"}),x.jsx(jt,{"data-loc":"client/src/pages/Operations.tsx:11",disabled:d.isPending,className:"rounded-xl bg-indigo-600 hover:bg-indigo-700",children:"Save memory"}),x.jsx(Hu,{"data-loc":"client/src/pages/Operations.tsx:11",name:"content",required:!0,placeholder:"Approved business fact or rule",className:"md:col-span-3 rounded-xl bg-white"})]})})}):null,x.jsx(Ea,{"data-loc":"client/src/pages/Operations.tsx:11",loading:n.isLoading,error:n.error,empty:!n.data?.length,children:x.jsx("div",{"data-loc":"client/src/pages/Operations.tsx:11",className:"grid gap-3 md:grid-cols-2",children:n.data?.map(v=>x.jsx(ut,{"data-loc":"client/src/pages/Operations.tsx:11",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Operations.tsx:11",className:"p-5",children:[x.jsxs("div",{"data-loc":"client/src/pages/Operations.tsx:11",className:"flex items-center gap-2",children:[x.jsx($U,{"data-loc":"client/src/pages/Operations.tsx:11",className:"size-4 text-indigo-600"}),x.jsx("p",{"data-loc":"client/src/pages/Operations.tsx:11",className:"font-semibold capitalize",children:v.category}),x.jsxs("span",{"data-loc":"client/src/pages/Operations.tsx:11",className:"ml-auto text-xs text-slate-400",children:[v.confidence,"% confidence"]})]}),x.jsx("p",{"data-loc":"client/src/pages/Operations.tsx:11",className:"mt-3 text-sm leading-6 text-slate-600",children:v.content}),x.jsxs("p",{"data-loc":"client/src/pages/Operations.tsx:11",className:"mt-3 text-xs text-slate-400",children:["Source: ",v.source]})]})},v.id))})})]})]})]})}function ije(){const e=Je.governance.admin.useQuery(),t=e.data,r=t?.subscription?.plan?.entitlements&&typeof t.subscription.plan.entitlements=="object"?Object.entries(t.subscription.plan.entitlements):[];return x.jsxs(x.Fragment,{children:[x.jsx(wa,{"data-loc":"client/src/pages/Admin.tsx:11",eyebrow:"Administration",title:"Billing & security",description:"Tenant-scoped subscription, entitlement, notification, and security-preference foundations."}),e.isLoading?x.jsx(ut,{"data-loc":"client/src/pages/Admin.tsx:11",className:"rounded-2xl border-slate-200",children:x.jsx(ct,{"data-loc":"client/src/pages/Admin.tsx:11",className:"p-6 text-sm text-slate-500",children:"Loading administration data…"})}):e.error?x.jsx(ut,{"data-loc":"client/src/pages/Admin.tsx:11",className:"rounded-2xl border-rose-200 bg-rose-50",children:x.jsxs(ct,{"data-loc":"client/src/pages/Admin.tsx:11",className:"p-6 text-sm text-rose-700",children:["Administration data could not load: ",e.error.message]})}):x.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:11",className:"space-y-6",children:[x.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:11",className:"grid gap-4 md:grid-cols-3",children:[x.jsx(ut,{"data-loc":"client/src/pages/Admin.tsx:11",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Admin.tsx:11",className:"p-5",children:[x.jsx(Eoe,{"data-loc":"client/src/pages/Admin.tsx:11",className:"size-5 text-indigo-600"}),x.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-4 text-sm font-semibold",children:"Subscription"}),t?.subscription?.subscription?x.jsxs(x.Fragment,{children:[x.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-2 text-lg font-semibold capitalize",children:t.subscription.subscription.status}),x.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-1 text-sm text-slate-500",children:t.subscription.plan?.name??"No plan assigned"})]}):x.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-2 text-sm text-slate-500",children:"No commercial subscription is configured for this tenant."})]})}),x.jsx(ut,{"data-loc":"client/src/pages/Admin.tsx:11",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Admin.tsx:11",className:"p-5",children:[x.jsx(FU,{"data-loc":"client/src/pages/Admin.tsx:11",className:"size-5 text-indigo-600"}),x.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-4 text-sm font-semibold",children:"Security preferences"}),x.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-2 text-sm text-slate-500",children:t?.security?"Workspace security preferences are stored for this tenant.":"No workspace security policy is configured yet."})]})}),x.jsx(ut,{"data-loc":"client/src/pages/Admin.tsx:11",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Admin.tsx:11",className:"p-5",children:[x.jsx(poe,{"data-loc":"client/src/pages/Admin.tsx:11",className:"size-5 text-indigo-600"}),x.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-4 text-sm font-semibold",children:"Notifications"}),x.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-2 text-sm text-slate-500",children:[t?.notifications.length??0," recent notifications for your member account."]})]})})]}),x.jsx(ut,{"data-loc":"client/src/pages/Admin.tsx:11",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Admin.tsx:11",className:"p-5",children:[x.jsx("h2",{"data-loc":"client/src/pages/Admin.tsx:11",className:"font-semibold",children:"Plan entitlements"}),r.length?x.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-4 flex flex-wrap gap-2",children:r.map(([n,a])=>x.jsxs(yu,{"data-loc":"client/src/pages/Admin.tsx:11",variant:"secondary",children:[n,": ",String(a)]},n))}):x.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-3 text-sm text-slate-500",children:"Entitlements become visible when an administrator assigns a commercial plan."})]})}),x.jsx(ut,{"data-loc":"client/src/pages/Admin.tsx:11",className:"rounded-2xl border-slate-200 shadow-sm",children:x.jsxs(ct,{"data-loc":"client/src/pages/Admin.tsx:11",className:"p-5",children:[x.jsx("h2",{"data-loc":"client/src/pages/Admin.tsx:11",className:"font-semibold",children:"Notification history"}),t?.notifications.length?x.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-4 divide-y divide-slate-100",children:t.notifications.map(n=>x.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:11",className:"py-3",children:[x.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"text-sm font-medium",children:n.title}),x.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-1 text-xs text-slate-500",children:[n.body??n.type," · ",new Date(n.createdAt).toLocaleStr
985ing()]})]},n.id))}):x.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:11",className:"mt-3 text-sm text-slate-500",children:"No notifications have been created for this member yet."})]})})]})]})}function sje(){const e=t=>()=>x.jsx(fce,{"data-loc":"client/src/App.tsx:20",children:x.jsx(t,{"data-loc":"client/src/App.tsx:20"})});return x.jsxs(fle,{"data-loc":"client/src/App.tsx:22",children:[x.jsx(yn,{"data-loc":"client/src/App.tsx:23",path:"/",component:e(eR)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:24",path:"/app",component:e(eR)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:25",path:"/leads",component:e(afe)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:26",path:"/accounts",component:e(sfe)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:27",path:"/contacts",component:e(ofe)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:28",path:"/deals",component:e(lfe)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:29",path:"/tasks",component:e(ufe)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:30",path:"/copilot",component:e(i_e)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:31",path:"/activities",component:e(o_e)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:32",path:"/notes",component:e(l_e)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:33",path:"/analytics",component:e(rje)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:34",path:"/recommendations",component:e(nje)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:35",path:"/automation",component:e(aje)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:36",path:"/admin",component:e(ije)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:37",path:"/team",component:e(ZN)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:38",path:"/settings",component:e(ZN)}),x.jsx(yn,{"data-loc":"client/src/App.tsx:39",path:"/404",component:DN}),x.jsx(yn,{"data-loc":"client/src/App.tsx:41",component:DN})]})}function oje(){return x.jsx(dle,{"data-loc":"client/src/App.tsx:53",children:x.jsx(hce,{"data-loc":"client/src/App.tsx:54",defaultTheme:"light",children:x.jsxs(ooe,{"data-loc":"client/src/App.tsx:58",children:[x.jsx(mae,{"data-loc":"client/src/App.tsx:59"}),x.jsx(sje,{"data-loc":"client/src/App.tsx:60"})]})})})}const vy=new pte,kZ=e=>{!(e instanceof Bf)||typeof window>"u"||!(e.message===Kre)||ZT()};vy.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;kZ(t),console.error("[API Query Error]",t)}});vy.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;kZ(t),console.error("[API Mutation Error]",t)}});const lje=Je.createClient({links:[wre({url:"/api/trpc",transformer:To,headers(){try{const e=sessionStorage.getItem("manus-cookie");if(e){const t=`${Xre}=`,n=e.split(";").find(a=>a.trim().startsWith(t))?.trim().slice(t.length);if(n)return{Authorization:`Bearer ${n}`}}}catch{}return{}},fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});ane.createRoot(document.getElementById("root")).render(x.jsx(Je.Provider,{"data-loc":"client/src/main.tsx:76",client:lje,queryClient:vy,children:x.jsx(gte,{"data-loc":"client/src/main.tsx:77",client:vy,children:x.jsx(oje,{"data-loc":"client/src/main.tsx:78"})})}));export{op as $,Nje as A,HOe as B,om as C,Gj as D,Vj as E,KK as F,v7 as G,Ib as H,RCe as I,NCe as J,r0 as K,kCe as L,OCe as M,Hv as N,um as O,m7 as P,h7 as Q,xa as R,Au as S,Uv as T,o7 as U,BX as V,Av as W,Bv as X,tB as Y,rCe as Z,Z as _,gr as a,KSe as a0,QSe as a1,XSe as a2,YSe as a3,WSe as a4,GSe as a5,VSe as a6,Ab as a7,kSe as a8,OSe as a9,qSe as aa,HSe as ab,ur as ac,vje as ad,Gi as b,kX as c,_je as d,Cje as e,Sje as f,kje as g,gD as h,Tje as i,Oje as j,ap as k,Fv as l,Aje as m,IX as n,USe as o,Xf as p,U8 as q,r7 as r,Tv as s,Tb as t,er as u,q7e as v,F8 as w,n7 as x,kK as y,MK as z};

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.